PageSourceSearch

https://ev-dashboard-react.onrender.com/assets/index-DaZomOzf.js

js ev-dashboard-react.onrender.com collected 2026-10-03 11:40:10 UTC 927,420 bytes, 271 lines download raw bytes

vendor: 5,381 bytes, lines 1-9
1function s2(r,s){for(var n=0;n<s.length;n++){const c=s[n];if(typeof c!="string"&&!Array.isArray(c)){for(const l in c)if(l!=="default"&&!(l in r)){const u=Object.getOwnPropertyDescriptor(c,l);u&&Object.defineProperty(r,l,u.get?u:{enumerable:!0,get:()=>c[l]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))c(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const x of u.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&c(x)}).observe(document,{childList:!0,subtree:!0});function n(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function c(l){if(l.ep)return;l.ep=!0;const u=n(l);fetch(l.href,u)}})();var rp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function li(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Fo(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var s=r.default;if(typeof s=="function"){var n=function c(){return this instanceof c?Reflect.construct(s,arguments,this.constructor):s.apply(this,arguments)};n.prototype=s.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(r).forEach(function(c){var l=Object.getOwnPropertyDescriptor(r,c);Object.defineProperty(n,c,l.get?l:{enumerable:!0,get:function(){return r[c]}})}),n}var ug={exports:{}},Kh={},hg={exports:{}},Rt={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var ay;function o2(){if(ay)return Rt;ay=1;var r=Symbol.for("react.element"),s=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),x=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),Q=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),W=Symbol.iterator;function G(D){return D===null||typeof D!="object"?null:(D=W&&D[W]||D["@@iterator"],typeof D=="function"?D:null)}var K={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,T={};function E(D,Z,X){this.props=D,this.context=Z,this.refs=T,this.updater=X||K}E.prototype.isReactComponent={},E.prototype.setState=function(D,Z){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,Z,"setState")},E.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function _(){}_.prototype=E.prototype;function g(D,Z,X){this.props=D,this.context=Z,this.refs=T,this.updater=X||K}var w=g.prototype=new _;w.constructor=g,S(w,E.prototype),w.isPureReactComponent=!0;var k=Array.isArray,b=Object.prototype.hasOwnProperty,C={current:null},m={key:!0,ref:!0,__self:!0,__source:!0};function q(D,Z,X){var ie,oe={},le=null,ue=null;if(Z!=null)for(ie in Z.ref!==void 0&&(ue=Z.ref),Z.key!==void 0&&(le=""+Z.key),Z)b.call(Z,ie)&&!m.hasOwnProperty(ie)&&(oe[ie]=Z[ie]);var F=arguments.length-2;if(F===1)oe.children=X;else if(1<F){for(var N=Array(F),ee=0;ee<F;ee++)N[ee]=arguments[ee+2];oe.children=N}if(D&&D.defaultProps)for(ie in F=D.defaultProps,F)oe[ie]===void 0&&(oe[ie]=F[ie]);return{$$typeof:r,type:D,key:le,ref:ue,props:oe,_owner:C.current}}function V(D,Z){return{$$typeof:r,type:D.type,key:Z,ref:D.ref,props:D.props,_owner:D._owner}}function H(D){return typeof D=="object"&&D!==null&&D.$$typeof===r}function M(D){var Z={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(X){return Z[X]})}var $=/\/+/g;function P(D,Z){return typeof D=="object"&&D!==null&&D.key!=null?M(""+D.key):Z.toString(36)}function h(D,Z,X,ie,oe){var le=typeof D;(le==="undefined"||le==="boolean")&&(D=null);var ue=!1;if(D===null)ue=!0;else switch(le){case"string":case"number":ue=!0;break;case"object":switch(D.$$typeof){case r:case s:ue=!0}}if(ue)return ue=D,oe=oe(ue),D=ie===""?"."+P(ue,0):ie,k(oe)?(X="",D!=null&&(X=D.replace($,"$&/")+"/"),h(oe,Z,X,"",function(ee){return ee})):oe!=null&&(H(oe)&&(oe=V(oe,X+(!oe.key||ue&&ue.key===oe.key?"":(""+oe.key).replace($,"$&/")+"/")+D)),Z.push(oe)),1;if(ue=0,ie=ie===""?".":ie+":",k(D))for(var F=0;F<D.length;F++){le=D[F];var N=ie+P(le,F);ue+=h(le,Z,X,N,oe)}else if(N=G(D),typeof N=="function")for(D=N.call(D),F=0;!(le=D.next()).done;)le=le.value,N=ie+P(le,F++),ue+=h(le,Z,X,N,oe);else if(le==="object")throw Z=String(D),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.");return ue}function f(D,Z,X){if(D==null)return D;var ie=[],oe=0;return h(D,ie,"","",function(le){return Z.call(X,le,oe++)}),ie}
vendor: 8,232 bytes, lines 9-25
9function L(D){if(D._status===-1){var Z=D._result;Z=Z(),Z.then(function(X){(D._status===0||D._status===-1)&&(D._status=1,D._result=X)},function(X){(D._status===0||D._status===-1)&&(D._status=2,D._result=X)}),D._status===-1&&(D._status=0,D._result=Z)}if(D._status===1)return D._result.default;throw D._result}var v={current:null},A={transition:null},B={ReactCurrentDispatcher:v,ReactCurrentBatchConfig:A,ReactCurrentOwner:C};function R(){throw Error("act(...) is not supported in production builds of React.")}return Rt.Children={map:f,forEach:function(D,Z,X){f(D,function(){Z.apply(this,arguments)},X)},count:function(D){var Z=0;return f(D,function(){Z++}),Z},toArray:function(D){return f(D,function(Z){return Z})||[]},only:function(D){if(!H(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},Rt.Component=E,Rt.Fragment=n,Rt.Profiler=l,Rt.PureComponent=g,Rt.StrictMode=c,Rt.Suspense=Y,Rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,Rt.act=R,Rt.cloneElement=function(D,Z,X){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var ie=S({},D.props),oe=D.key,le=D.ref,ue=D._owner;if(Z!=null){if(Z.ref!==void 0&&(le=Z.ref,ue=C.current),Z.key!==void 0&&(oe=""+Z.key),D.type&&D.type.defaultProps)var F=D.type.defaultProps;for(N in Z)b.call(Z,N)&&!m.hasOwnProperty(N)&&(ie[N]=Z[N]===void 0&&F!==void 0?F[N]:Z[N])}var N=arguments.length-2;if(N===1)ie.children=X;else if(1<N){F=Array(N);for(var ee=0;ee<N;ee++)F[ee]=arguments[ee+2];ie.children=F}return{$$typeof:r,type:D.type,key:oe,ref:le,props:ie,_owner:ue}},Rt.createContext=function(D){return D={$$typeof:x,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:u,_context:D},D.Consumer=D},Rt.createElement=q,Rt.createFactory=function(D){var Z=q.bind(null,D);return Z.type=D,Z},Rt.createRef=function(){return{current:null}},Rt.forwardRef=function(D){return{$$typeof:O,render:D}},Rt.isValidElement=H,Rt.lazy=function(D){return{$$typeof:te,_payload:{_status:-1,_result:D},_init:L}},Rt.memo=function(D,Z){return{$$typeof:Q,type:D,compare:Z===void 0?null:Z}},Rt.startTransition=function(D){var Z=A.transition;A.transition={};try{D()}finally{A.transition=Z}},Rt.unstable_act=R,Rt.useCallback=function(D,Z){return v.current.useCallback(D,Z)},Rt.useContext=function(D){return v.current.useContext(D)},Rt.useDebugValue=function(){},Rt.useDeferredValue=function(D){return v.current.useDeferredValue(D)},Rt.useEffect=function(D,Z){return v.current.useEffect(D,Z)},Rt.useId=function(){return v.current.useId()},Rt.useImperativeHandle=function(D,Z,X){return v.current.useImperativeHandle(D,Z,X)},Rt.useInsertionEffect=function(D,Z){return v.current.useInsertionEffect(D,Z)},Rt.useLayoutEffect=function(D,Z){return v.current.useLayoutEffect(D,Z)},Rt.useMemo=function(D,Z){return v.current.useMemo(D,Z)},Rt.useReducer=function(D,Z,X){return v.current.useReducer(D,Z,X)},Rt.useRef=function(D){return v.current.useRef(D)},Rt.useState=function(D){return v.current.useState(D)},Rt.useSyncExternalStore=function(D,Z,X){return v.current.useSyncExternalStore(D,Z,X)},Rt.useTransition=function(){return v.current.useTransition()},Rt.version="18.3.1",Rt}var ly;function Bp(){return ly||(ly=1,hg.exports=o2()),hg.exports}/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var cy;function a2(){if(cy)return Kh;cy=1;var r=Bp(),s=Symbol.for("react.element"),n=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function x(O,Y,Q){var te,W={},G=null,K=null;Q!==void 0&&(G=""+Q),Y.key!==void 0&&(G=""+Y.key),Y.ref!==void 0&&(K=Y.ref);for(te in Y)c.call(Y,te)&&!u.hasOwnProperty(te)&&(W[te]=Y[te]);if(O&&O.defaultProps)for(te in Y=O.defaultProps,Y)W[te]===void 0&&(W[te]=Y[te]);return{$$typeof:s,type:O,key:G,ref:K,props:W,_owner:l.current}}return Kh.Fragment=n,Kh.jsx=x,Kh.jsxs=x,Kh}var uy;function Cd(){return uy||(uy=1,ug.exports=a2()),ug.exports}var y=Cd(),Me=Bp();const Gt=li(Me),Ep=s2({__proto__:null,default:Gt},[Me]);var np={},dg={exports:{}},ii={},fg={exports:{}},pg={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var hy;function l2(){return hy||(hy=1,function(r){function s(A,B){var R=A.length;A.push(B);e:for(;0<R;){var D=R-1>>>1,Z=A[D];if(0<l(Z,B))A[D]=B,A[R]=Z,R=D;else break e}}function n(A){return A.length===0?null:A[0]}function c(A){if(A.length===0)return null;var B=A[0],R=A.pop();if(R!==B){A[0]=R;e:for(var D=0,Z=A.length,X=Z>>>1;D<X;){var ie=2*(D+1)-1,oe=A[ie],le=ie+1,ue=A[le];if(0>l(oe,R))le<Z&&0>l(ue,oe)?(A[D]=ue,A[le]=R,D=le):(A[D]=oe,A[ie]=R,D=ie);else if(le<Z&&0>l(ue,R))A[D]=ue,A[le]=R,D=le;else break e}}return B}function l(A,B){var R=A.sortIndex-B.sortIndex;return R!==0?R:A.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;r.unstable_now=function(){return u.now()}}else{var x=Date,O=x.now();r.unstable_now=function(){return x.now()-O}}var Y=[],Q=[],te=1,W=null,G=3,K=!1,S=!1,T=!1,E=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(A){for(var B=n(Q);B!==null;){if(B.callback===null)c(Q);else if(B.startTime<=A)c(Q),B.sortIndex=B.expirationTime,s(Y,B);else break;B=n(Q)}}function k(A){if(T=!1,w(A),!S)if(n(Y)!==null)S=!0,L(b);else{var B=n(Q);B!==null&&v(k,B.startTime-A)}}function b(A,B){S=!1,T&&(T=!1,_(q),q=-1),K=!0;var R=G;try{for(w(B),W=n(Y);W!==null&&(!(W.expirationTime>B)||A&&!M());){var D=W.callback;if(typeof D=="function"){W.callback=null,G=W.priorityLevel;var Z=D(W.expirationTime<=B);B=r.unstable_now(),typeof Z=="function"?W.callback=Z:W===n(Y)&&c(Y),w(B)}else c(Y);W=n(Y)}if(W!==null)var X=!0;else{var ie=n(Q);ie!==null&&v(k,ie.startTime-B),X=!1}return X}finally{W=null,G=R,K=!1}}var C=!1,m=null,q=-1,V=5,H=-1;function M(){return!(r.unstable_now()-H<V)}function $(){if(m!==null){var A=r.unstable_now();H=A;var B=!0;try{B=m(!0,A)}finally{B?P():(C=!1,m=null)}}else C=!1}var P;if(typeof g=="function")P=function(){g($)};else if(typeof MessageChannel<"u"){var h=new MessageChannel,f=h.port2;h.port1.onmessage=$,P=function(){f.postMessage(null)}}else P=function(){E($,0)};function L(A){m=A,C||(C=!0,P())}function v(A,B){q=E(function(){A(r.unstable_now())},B)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(A){A.callback=null},r.unstable_continueExecution=function(){S||K||(S=!0,L(b))},r.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<A?Math.floor(1e3/A):5},r.unstable_getCurrentPriorityLevel=function(){return G},r.unstable_getFirstCallbackNode=function(){return n(Y)},r.unstable_next=function(A){switch(G){case 1:case 2:case 3:var B=3;break;default:B=G}var R=G;G=B;try{return A()}finally{G=R}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(A,B){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var R=G;G=A;try{return B()}finally{G=R}},r.unstable_scheduleCallback=function(A,B,R){var D=r.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?D+R:D):R=D,A){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=R+Z,A={id:te++,callback:B,priorityLevel:A,startTime:R,expirationTime:Z,sortIndex:-1},R>
vendor: 4,562 bytes, lines 25-33
25D?(A.sortIndex=R,s(Q,A),n(Y)===null&&A===n(Q)&&(T?(_(q),q=-1):T=!0,v(k,R-D))):(A.sortIndex=Z,s(Y,A),S||K||(S=!0,L(b))),A},r.unstable_shouldYield=M,r.unstable_wrapCallback=function(A){var B=G;return function(){var R=G;G=B;try{return A.apply(this,arguments)}finally{G=R}}}}(pg)),pg}var dy;function c2(){return dy||(dy=1,fg.exports=l2()),fg.exports}/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var fy;function u2(){if(fy)return ii;fy=1;var r=Bp(),s=c2();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var c=new Set,l={};function u(e,t){x(e,t),x(e+"Capture",t)}function x(e,t){for(l[e]=t,e=0;e<t.length;e++)c.add(t[e])}var O=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Y=Object.prototype.hasOwnProperty,Q=/^[: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]*$/,te={},W={};function G(e){return Y.call(W,e)?!0:Y.call(te,e)?!1:Q.test(e)?W[e]=!0:(te[e]=!0,!1)}function K(e,t,a,d){if(a!==null&&a.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return d?!1:a!==null?!a.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function S(e,t,a,d){if(t===null||typeof t>"u"||K(e,t,a,d))return!0;if(d)return!1;if(a!==null)switch(a.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function T(e,t,a,d,z,re,ye){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=d,this.attributeNamespace=z,this.mustUseProperty=a,this.propertyName=e,this.type=t,this.sanitizeURL=re,this.removeEmptyString=ye}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){E[e]=new T(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];E[t]=new T(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){E[e]=new T(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){E[e]=new T(e,2,!1,e,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(e){E[e]=new T(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){E[e]=new T(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){E[e]=new T(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){E[e]=new T(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){E[e]=new T(e,5,!1,e.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function g(e){return e[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
33-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(e){var t=e.replace(_,g);E[t]=new T(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_,g);E[t]=new T(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_,g);E[t]=new T(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){E[e]=new T(e,1,!1,e.toLowerCase(),null,!1,!1)}),E.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){E[e]=new T(e,1,!1,e.toLowerCase(),null,!0,!0)});function w(e,t,a,d){var z=E.hasOwnProperty(t)?E[t]:null;(z!==null?z.type!==0:d||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(S(t,a,z,d)&&(a=null),d||z===null?G(t)&&(a===null?e.removeAttribute(t):e.setAttribute(t,""+a)):z.mustUseProperty?e[z.propertyName]=a===null?z.type===3?!1:"":a:(t=z.attributeName,d=z.attributeNamespace,a===null?e.removeAttribute(t):(z=z.type,a=z===3||z===4&&a===!0?"":""+a,d?e.setAttributeNS(d,t,a):e.setAttribute(t,a))))}var k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.element"),C=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),M=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),A=Symbol.iterator;function B(e){return e===null||typeof e!="object"?null:(e=A&&e[A]||e["@@iterator"],typeof e=="function"?e:null)}var R=Object.assign,D;function Z(e){if(D===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return`
34`+D+e}var X=!1;function ie(e,t){if(!e||X)return"";X=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(Ue){var d=Ue}Reflect.construct(e,[],t)}else{try{t.call()}catch(Ue){d=Ue}e.call(t.prototype)}else{try{throw Error()}catch(Ue){d=Ue}e()}}catch(Ue){if(Ue&&d&&typeof Ue.stack=="string"){for(var z=Ue.stack.split(`
35`),re=d.stack.split(`
36`),ye=z.length-1,Ae=re.length-1;1<=ye&&0<=Ae&&z[ye]!==re[Ae];)Ae--;for(;1<=ye&&0<=Ae;ye--,Ae--)if(z[ye]!==re[Ae]){if(ye!==1||Ae!==1)do if(ye--,Ae--,0>Ae||z[ye]!==re[Ae]){var je=`
37`+z[ye].replace(" at new "," at ");return e.displayName&&je.includes("<anonymous>")&&(je=je.replace("<anonymous>",e.displayName)),je}while(1<=ye&&0<=Ae);break}}}finally{X=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?Z(e):""}function oe(e){switch(e.tag){case 5:return Z(e.type);case 16:return Z("Lazy");case 13:return Z("Suspense");case 19:return Z("SuspenseList");case 0:case 2:case 15:return e=ie(e.type,!1),e;case 11:return e=ie(e.type.render,!1),e;case 1:return e=ie(e.type,!0),e;default:return""}}function le(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case m:return"Fragment";case C:return"Portal";case V:return"Profiler";case q:return"StrictMode";case P:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case M:return(e.displayName||"Context")+".Consumer";case H:return(e._context.displayName||"Context")+".Provider";case $:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case f:return t=e.displayName||null,t!==null?t:le(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}function ue(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return le(t);case 8:return t===q?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function F(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function N(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ee(e){var t=N(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),d=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var z=a.get,re=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return z.call(this)},set:function(ye){d=""+ye,re.call(this,ye)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return d},setValue:function(ye){d=""+ye},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ce(e){e._valueTracker||(e._valueTracker=ee(e))}function j(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),d="";return e&&(d=N(e)?e.checked?"true":"false":e.value),e=d,e!==a?(t.setValue(e),!0):!1}function I(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function U(e,t){var a=t.checked;return R({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??e._wrapperState.initialChecked})}function J(e,t){var a=t.defaultValue==null?"":t.defaultValue,d=t.checked!=null?t.checked:t.defaultChecked;a=F(t.value!=null?t.value:a),e._wrapperState={initialChecked:d,initialValue:a,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function se(e,t){t=t.checked,t!=null&&w(e,"checked",t,!1)}function ae(e,t){se(e,t);var a=F(t.value),d=t.type;if(a!=null)d==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+a):e.value!==""+a&&(e.value=""+a);else if(d==="submit"||d==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?me(e,t.type,a):t.hasOwnProperty("defaultValue")&&me(e,t.type,F(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function he(e,t,a){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var d=t.type;if(!(d!=="submit"&&d!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,a||t===e.value||(e.value=t),e.defaultValue=t}a=e.name,a!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,a!==""&&(e.name=a)}function me(e,t,a){(t!=="number"||I(e.ownerDocument)!==e)&&(a==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+a&&(e.defaultValue=""+a))}var ve=Array.isArray;function ke(e,t,a,d){if(e=e.options,t){t={};for(var z=0;z<a.length;z++)t["$"+a[z]]=!0;for(a=0;a<e.length;a++)z=t.hasOwnProperty("$"+e[a].value),e[a].selected!==z&&(e[a].selected=z),z&&d&&(e[a].defaultSelected=!0)}else{for(a=""+F(a),t=null,z=0;z<e.length;z++){if(e[z].value===a){e[z].selected=!0,d&&(e[z].defaultSelected=!0);return}t!==null||e[z].disabled||(t=e[z])}t!==null&&(t.selected=!0)}}function Pe(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(n(91));return R({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ge(e,t){var a=t.value;if(a==null){if(a=t.children,t=t.defaultValue,a!=null){if(t!=null)throw Error(n(92));if(ve(a)){if(1<a.length)throw Error(n(93));a=a[0]}t=a}t==null&&(t=""),a=t}e._wrapperState={initialValue:F(a)}}function de(e,t){var a=F(t.value),d=F(t.defaultValue);a!=null&&(a=""+a,a!==e.value&&(e.value=a),t.defaultValue==null&&e.defaultValue!==a&&(e.defaultValue=a)),d!=null&&(e.defaultValue=""+d)}function fe(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function xe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ee(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?xe(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Se,be=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,a,d,z){MSApp.execUnsafeLocalFunction(function(){return e(t,a,d,z)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Se=Se||document.createElement("div"),Se.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Te(e,t){if(t){var a=e.firstChild;
vendor: 33,713 bytes, lines 37-38
37if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Le={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},Ne=["Webkit","ms","Moz","O"];Object.keys(Le).forEach(function(e){Ne.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Le[t]=Le[e]})});function _e(e,t,a){return t==null||typeof t=="boolean"||t===""?"":a||typeof t!="number"||t===0||Le.hasOwnProperty(e)&&Le[e]?(""+t).trim():t+"px"}function We(e,t){e=e.style;for(var a in t)if(t.hasOwnProperty(a)){var d=a.indexOf("--")===0,z=_e(a,t[a],d);a==="float"&&(a="cssFloat"),d?e.setProperty(a,z):e[a]=z}}var He=R({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 Ye(e,t){if(t){if(He[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(n(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(n(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(t.style!=null&&typeof t.style!="object")throw Error(n(62))}}function Ge(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 Ve=null;function ot(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ct=null,ft=null,kt=null;function Mt(e){if(e=tn(e)){if(typeof ct!="function")throw Error(n(280));var t=e.stateNode;t&&(t=lc(t),ct(e.stateNode,e.type,t))}}function fr(e){ft?kt?kt.push(e):kt=[e]:ft=e}function Jt(){if(ft){var e=ft,t=kt;if(kt=ft=null,Mt(e),t)for(e=0;e<t.length;e++)Mt(t[e])}}function Er(e,t){return e(t)}function Qr(){}var Br=!1;function Wn(e,t,a){if(Br)return e(t,a);Br=!0;try{return Er(e,t,a)}finally{Br=!1,(ft!==null||kt!==null)&&(Qr(),Jt())}}function lr(e,t){var a=e.stateNode;if(a===null)return null;var d=lc(a);if(d===null)return null;a=d[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(e=e.type,d=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!d;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(n(231,t,typeof a));return a}var Sr=!1;if(O)try{var Yr={};Object.defineProperty(Yr,"passive",{get:function(){Sr=!0}}),window.addEventListener("test",Yr,Yr),window.removeEventListener("test",Yr,Yr)}catch{Sr=!1}function so(e,t,a,d,z,re,ye,Ae,je){var Ue=Array.prototype.slice.call(arguments,3);try{t.apply(a,Ue)}catch(Je){this.onError(Je)}}var Ji=!1,es=null,ui=!1,Ps=null,Es={onError:function(e){Ji=!0,es=e}};function ts(e,t,a,d,z,re,ye,Ae,je){Ji=!1,es=null,so.apply(Es,arguments)}function Ho(e,t,a,d,z,re,ye,Ae,je){if(ts.apply(this,arguments),Ji){if(Ji){var Ue=es;Ji=!1,es=null}else throw Error(n(198));ui||(ui=!0,Ps=Ue)}}function Dt(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function rr(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function rs(e){if(Dt(e)!==e)throw Error(n(188))}function hi(e){var t=e.alternate;if(!t){if(t=Dt(e),t===null)throw Error(n(188));return t!==e?null:e}for(var a=e,d=t;;){var z=a.return;if(z===null)break;var re=z.alternate;if(re===null){if(d=z.return,d!==null){a=d;continue}break}if(z.child===re.child){for(re=z.child;re;){if(re===a)return rs(z),e;if(re===d)return rs(z),t;re=re.sibling}throw Error(n(188))}if(a.return!==d.return)a=z,d=re;else{for(var ye=!1,Ae=z.child;Ae;){if(Ae===a){ye=!0,a=z,d=re;break}if(Ae===d){ye=!0,d=z,a=re;break}Ae=Ae.sibling}if(!ye){for(Ae=re.child;Ae;){if(Ae===a){ye=!0,a=re,d=z;break}if(Ae===d){ye=!0,d=re,a=z;break}Ae=Ae.sibling}if(!ye)throw Error(n(189))}}if(a.alternate!==d)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?e:t}function Xr(e){return e=hi(e),e!==null?ja(e):null}function ja(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ja(e);if(t!==null)return t;e=e.sibling}return null}var oo=s.unstable_scheduleCallback,Rd=s.unstable_cancelCallback,Ol=s.unstable_shouldYield,um=s.unstable_requestPaint,cr=s.unstable_now,hm=s.unstable_getCurrentPriorityLevel,Lu=s.unstable_ImmediatePriority,jd=s.unstable_UserBlockingPriority,Na=s.unstable_NormalPriority,Nd=s.unstable_LowPriority,Ru=s.unstable_IdlePriority,_l=null,Li=null;function dm(e){if(Li&&typeof Li.onCommitFiberRoot=="function")try{Li.onCommitFiberRoot(_l,e,void 0,(e.current.flags&128)===128)}catch{}}var di=Math.clz32?Math.clz32:Dd,Od=Math.log,_d=Math.LN2;function Dd(e){return e>>>=0,e===0?32:31-(Od(e)/_d|0)|0}var Yo=64,Dl=4194304;function Xo(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ao(e,t){var a=e.pendingLanes;if(a===0)return 0;var d=0,z=e.suspendedLanes,re=e.pingedLanes,ye=a&268435455;if(ye!==0){var Ae=ye&~z;Ae!==0?d=Xo(Ae):(re&=ye,re!==0&&(d=Xo(re)))}else ye=a&~z,ye!==0?d=Xo(ye):re!==0&&(d=Xo(re));if(d===0)return 0;if(t!==0&&t!==d&&(t&z)===0&&(z=d&-d,re=t&-t,z>=re||z===16&&(re&4194240)!==0))return t;if((d&4)!==0&&(d|=a&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=d;0<t;)a=31-di(t),z=1<<a,d|=e[a],t&=~z;return d}function Id(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fm(e,t){for(var a=e.suspendedLanes,d=e.pingedLanes,z=e.expirationTimes,re=e.pendingLanes;0<re;){var ye=31-di(re),Ae=1<<ye,je=z[ye];je===-1?((Ae&a)===0||(Ae&d)!==0)&&(z[ye]=Id(Ae,t)):je<=t&&(e.expiredLanes|=Ae),re&=~Ae}}function Il(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ju(){var e=Yo;return Yo<<=1,(Yo&4194240)===0&&(Yo=64),e}function Oa(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function _a(e,t,a){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-di(t),e[t]=a}function Bd(e,t){var a=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var d=e.eventTimes;for(e=e.expirationTimes;0<a;){var z=31-di(a),re=1<<z;t[z]=0,d[z]=-1,e[z]=-1,a&=~re}}function Da(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var d=31-di(a),z=1<<d;z&t|e[d]&t&&(e[d]|=t),a&=~z}}var zt=0;function lo(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Nu,Bl,Fd,Ou,_u,Fl=!1,Ia=[],Ms=null,Ts=null,As=null,Go=new Map,Ba=new Map,Ls=[],pm="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function zd(e,t){switch(e){case"focusin":case"focusout":Ms=null;break;case"dragenter":case"dragleave":Ts=null;break;case"mouseover":case"mouseout":As=null;break;case"pointerover":case"pointerout":Go.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ba.delete(t.pointerId)}}function co(e,t,a,d,z,re){return e===null||e.nativeEvent!==re?(e={blockedOn:t,domEventName:a,eventSystemFlags:d,nativeEvent:re,targetContainers:[z]},t!==null&&(t=tn(t),t!==null&&Bl(t)),e):(e.eventSystemFlags|=d,t=e.targetContainers,z!==null&&t.indexOf(z)===-1&&t.push(z),e)}function mm(e,t,a,d,z){switch(t){case"focusin":return Ms=co(Ms,e,t,a,d,z),!0;case"dragenter":return Ts=co(Ts,e,t,a,d,z),!0;case"mouseover":return As=co(As,e,t,a,d,z),!0;case"pointerover":var re=z.pointerId;return Go.set(re,co(Go.get(re)||null,e,t,a,d,z)),!0;case"gotpointercapture":return re=z.pointerId,Ba.set(re,co(Ba.get(re)||null,e,t,a,d,z)),!0}return!1}function $d(e){var t=Oi(e.target);if(t!==null){var a=Dt(t);if(a!==null){if(t=a.tag,t===13){if(t=rr(a),t!==null){e.blockedOn=t,_u(e.priority,function(){Fd(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ul(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(a===null){a=e.nativeEvent;var d=new a.constructor(a.type,a);Ve=d,a.target.dispatchEvent(d),Ve=null}else return t=tn(a),t!==null&&Bl(t),e.blockedOn=a,!1;t.shift()}return!0}function Wd(e,t,a){zl(e)&&a.delete(t)}function gm(){Fl=!1,Ms!==null&&zl(Ms)&&(Ms=null),Ts!==null&&zl(Ts)&&(Ts=null),As!==null&&zl(As)&&(As=null),Go.forEach(Wd),Ba.forEach(Wd)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Fl||(Fl=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,gm)))}function $t(e){function t(z){return Ut(z,e)}if(0<Ia.length){Ut(Ia[0],e);for(var a=1;a<Ia.length;a++){var d=Ia[a];d.blockedOn===e&&(d.blockedOn=null)}}for(Ms!==null&&Ut(Ms,e),Ts!==null&&Ut(Ts,e),As!==null&&Ut(As,e),Go.forEach(t),Ba.forEach(t),a=0;a<Ls.length;a++)d=Ls[a],d.blockedOn===e&&(d.blockedOn=null);for(;0<Ls.length&&(a=Ls[0],a.blockedOn===null);)$d(a),a.blockedOn===null&&Ls.shift()}var Vo=k.ReactCurrentBatchConfig,$l=!0;function ym(e,t,a,d){var z=zt,re=Vo.transition;Vo.transition=null;try{zt=1,Du(e,t,a,d)}finally{zt=z,Vo.transition=re}}function xm(e,t,a,d){var z=zt,re=Vo.transition;Vo.transition=null;try{zt=4,Du(e,t,a,d)}finally{zt=z,Vo.transition=re}}function Du(e,t,a,d){if($l){var z=Ul(e,t,a,d);if(z===null)Ju(e,t,d,Wl,a),zd(e,d);else if(mm(z,e,t,a,d))d.stopPropagation();else if(zd(e,d),t&4&&-1<pm.indexOf(e)){for(;z!==null;){var re=tn(z);if(re!==null&&Nu(re),re=Ul(e,t,a,d),re===null&&Ju(e,t,d,Wl,a),re===z)break;z=re}z!==null&&d.stopPropagation()}else Ju(e,t,d,null,a)}}var Wl=null;function Ul(e,t,a,d){if(Wl=null,e=ot(d),e=Oi(e),e!==null)if(t=Dt(e),t===null)e=null;else if(a=t.tag,a===13){if(e=rr(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wl=e,null}function Ud(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(hm()){case Lu:return 1;case jd:return 4;case Na:case Nd:return 16;case Ru:return 536870912;default:return 16}default:return 16}}var ur=null,Fa=null,Ri=null;function Iu(){if(Ri)return Ri;var e,t=Fa,a=t.length,d,z="value"in ur?ur.value:ur.textContent,re=z.length;for(e=0;e<a&&t[e]===z[e];e++);var ye=a-e;for(d=1;d<=ye&&t[a-d]===z[re-d];d++);return Ri=z.slice(e,1<d?1-d:void 0)}function qo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function hn(){return!0}function Bu(){return!1}function wn(e){function t(a,d,z,re,ye){this._reactName=a,this._targetInst=z,this.type=d,this.nativeEvent=re,this.target=ye,this.currentTarget=null;for(var Ae in e)e.hasOwnProperty(Ae)&&(a=e[Ae],this[Ae]=a?a(re):re[Ae]);return this.isDefaultPrevented=(re.defaultPrevented!=null?re.defaultPrevented:re.returnValue===!1)?hn:Bu,this.isPropagationStopped=Bu,this}return R(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=hn)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=hn)},persist:function(){},isPersistent:hn}),t}var uo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hl=wn(uo),Ko=R({},uo,{view:0,detail:0}),Hd=wn(Ko),dn,Fu,Jr,Yl=R({},Ko,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Jr&&(Jr&&e.type==="mousemove"?(dn=e.screenX-Jr.screenX,Fu=e.screenY-Jr.screenY):Fu=dn=0,Jr=e),dn)},movementY:function(e){return"movementY"in e?e.movementY:Fu}}),zu=wn(Yl),Rs=R({},Yl,{dataTransfer:0}),Xl=wn(Rs),$u=R({},Ko,{relatedTarget:0}),er=wn($u),js=R({},uo,{animationName:0,elapsedTime:0,pseudoElement:0}),Wu=wn(js),vm=R({},uo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Uu=wn(vm),bm=R({},uo,{data:0}),Yd=wn(bm),Sm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Gl={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gl[e])?!!t[e]:!1}function Hu(){return Zo}var Gd=R({},Ko,{key:function(e){if(e.key){var t=Sm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hu,charCode:function(e){return e.type==="keypress"?qo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Vd=wn(Gd),Yu=R({},Yl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vl=wn(Yu),qd=R({},Ko,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hu}),wm=wn(qd),Xu=R({},uo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gu=wn(Xu),Cm=R({},Yl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Kd=wn(Cm),jn=[9,13,27,32],za=O&&"CompositionEvent"in window,ns=null;O&&"documentMode"in document&&(ns=document.documentMode);var Zd=O&&"TextEvent"in window&&!ns,Vu=O&&(!za||ns&&8<ns&&11>=ns),Qd=" ",Jd=!1;function ef(e,t){switch(e){case"keyup":return jn.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qo=!1;function Jo(e,t){switch(e){case"compositionend":return tf(t);case"keypress":return t.which!==32?null:(Jd=!0,Qd);case"textInput":return e=t.data,e===Qd&&Jd?null:e;default:return null}}function km(e,t){if(Qo)return e==="compositionend"||!za&&ef(e,t)?(e=Iu(),Ri=Fa=ur=null,Qo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vu&&t.locale!=="ko"?null:t.data;default:return null}}var Pm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ql(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Pm[e.type]:t==="textarea"}function qu(e,t,a,d){fr(d),t=ic(t,"onChange"),0<t.length&&(a=new Hl("onChange","change",null,a,d),e.push({event:a,listeners:t}))}var Un=null,Ns=null;function Em(e){cf(e,0)}function Kl(e){var t=wt(e);if(j(t))return e}function Mm(e,t){if(e==="change")return t}var ho=!1;if(O){var Nn;if(O){var Zl="oninput"in document;if(!Zl){var rf=document.createElement("div");rf.setAttribute("oninput","return;"),Zl=typeof rf.oninput=="function"}Nn=Zl}else Nn=!1;ho=Nn&&(!document.documentMode||9<document.documentMode)}function nf(){Un&&(Un.detachEvent("onpropertychange",sf),Ns=Un=null)}function sf(e){if(e.propertyName==="value"&&Kl(Ns)){var t=[];qu(t,Ns,e,ot(e)),Wn(Em,t)}}function Tm(e,t,a){e==="focusin"?(nf(),Un=t,Ns=a,Un.attachEvent("onpropertychange",sf)):e==="focusout"&&nf()}function Am(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Kl(Ns)}function ea(e,t){if(e==="click")return Kl(t)}function Ie(e,t){if(e==="input"||e==="change")return Kl(t)}function Xe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $e=typeof Object.is=="function"?Object.is:Xe;function it(e,t){if($e(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),d=Object.keys(t);if(a.length!==d.length)return!1;for(d=0;d<a.length;d++){var z=a[d];if(!Y.call(t,z)||!$e(e[z],t[z]))return!1}return!0}function St(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function It(e,t){var a=St(e);e=0;for(var d;a;){if(a.nodeType===3){if(d=e+a.textContent.length,e<=t&&d>=t)return{node:a,offset:t-e};e=d}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=St(a)}}function Mr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vt(){for(var e=window,t=I();t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=I(e.document)}return t}function $a(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Lm(e){var t=Vt(),a=e.focusedElem,d=e.selectionRange;if(t!==a&&a&&a.ownerDocument&&Mr(a.ownerDocument.documentElement,a)){if(d!==null&&$a(a)){if(t=d.start,e=d.end,e===void 0&&(e=t),"selectionStart"in a)a.selectionStart=t,a.selectionEnd=Math.min(e,a.value.length);else if(e=(t=a.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var z=a.textContent.length,re=Math.min(d.start,z);d=d.end===void 0?re:Math.min(d.end,z),!e.extend&&re>d&&(z=d,d=re,re=z),z=It(a,re);var ye=It(a,d);z&&ye&&(e.rangeCount!==1||e.anchorNode!==z.node||e.anchorOffset!==z.offset||e.focusNode!==ye.node||e.focusOffset!==ye.offset)&&(t=t.createRange(),t.setStart(z.node,z.offset),e.removeAllRanges(),re>d?(e.addRange(t),e.extend(ye.node,ye.offset)):(t.setEnd(ye.node,ye.offset),e.addRange(t)))}}for(t=[],e=a;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<t.length;a++)e=t[a],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Hn=O&&"documentMode"in document&&11>=document.documentMode,is=null,Ku=null,ji=null,ta=!1;function Wa(e,t,a){var d=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ta||is==null||is!==I(d)||(d=is,"selectionStart"in d&&$a(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),ji&&it(ji,d)||(ji=d,d=ic(Ku,"onSelect"),0<d.length&&(t=new Hl("onSelect","select",null,t,a),e.push({event:t,listeners:d}),t.target=is)))}function Bt(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ra={animationend:Bt("Animation","AnimationEnd"),animationiteration:Bt("Animation","AnimationIteration"),animationstart:Bt("Animation","AnimationStart"),transitionend:Bt("Transition","TransitionEnd")},Ql={},Ua={};O&&(Ua=document.createElement("div").style,"AnimationEvent"in window||(delete ra.animationend.animation,delete ra.animationiteration.animation,delete ra.animationstart.animation),"TransitionEvent"in window||delete ra.transitionend.transition);function Jl(e){if(Ql[e])return Ql[e];if(!ra[e])return e;var t=ra[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Ua)return Ql[e]=t[a];return e}var of=Jl("animationend"),af=Jl("animationiteration"),Ha=Jl("animationstart"),ss=Jl("transitionend"),Ya=new Map,Zu="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function fi(e,t){Ya.set(e,t),u(t,[e])}for(var ec=0;ec<Zu.length;ec++){var tc=Zu[ec],rc=tc.toLowerCase(),lf=tc[0].toUpperCase()+tc.slice(1);fi(rc,"on"+lf)}fi(of,"onAnimationEnd"),fi(af,"onAnimationIteration"),fi(Ha,"onAnimationStart"),fi("dblclick","onDoubleClick"),fi("focusin","onFocus"),fi("focusout","onBlur"),fi(ss,"onTransitionEnd"),x("onMouseEnter",["mouseout","mouseover"]),x("onMouseLeave",["mouseout","mouseover"]),x("onPointerEnter",["pointerout","pointerover"]),x("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var os="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),fo=new Set("cancel close invalid load scroll toggle".split(" ").concat(os));function Xa(e,t,a){var d=e.type||"unknown-event";e.currentTarget=a,Ho(d,t,void 0,e),e.currentTarget=null}function cf(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var d=e[a],z=d.event;d=d.listeners;e:{var re=void 0;if(t)for(var ye=d.length-1;0<=ye;ye--){var Ae=d[ye],je=Ae.instance,Ue=Ae.currentTarget;if(Ae=Ae.listener,je!==re&&z.isPropagationStopped())break e;Xa(z,Ae,Ue),re=je}else for(ye=0;ye<d.length;ye++){if(Ae=d[ye],je=Ae.instance,Ue=Ae.currentTarget,Ae=Ae.listener,je!==re&&z.isPropagationStopped())break e;Xa(z,Ae,Ue),re=je}}}if(ui)throw e=Ps,ui=!1,Ps=null,e}function nr(e,t){var a=t[ac];a===void 0&&(a=t[ac]=new Set);var d=e+"__bubble";a.has(d)||(nc(t,e,2,!1),a.add(d))}function Qu(e,t,a){var d=0;t&&(d|=4),nc(a,e,d,t)}var po="_reactListening"+Math.random().toString(36).slice(2);function Os(e){if(!e[po]){e[po]=!0,c.forEach(function(a){a!=="selectionchange"&&(fo.has(a)||Qu(a,!1,e),Qu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[po]||(t[po]=!0,Qu("selectionchange",!1,t))}}function nc(e,t,a,d){switch(Ud(t)){case 1:var z=ym;break;case 4:z=xm;break;default:z=Du}a=z.bind(null,t,a,e),z=void 0,!Sr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(z=!0),d?z!==void 0?e.addEventListener(t,a,{capture:!0,passive:z}):e.addEventListener(t,a,!0):z!==void 0?e.addEventListener(t,a,{passive:z}):e.addEventListener(t,a,!1)}function Ju(e,t,a,d,z){var re=d;if((t&1)===0&&(t&2)===0&&d!==null)e:for(;;){if(d===null)return;var ye=d.tag;if(ye===3||ye===4){var Ae=d.stateNode.containerInfo;if(Ae===z||Ae.nodeType===8&&Ae.parentNode===z)break;if(ye===4)for(ye=d.return;ye!==null;){var je=ye.tag;if((je===3||je===4)&&(je=ye.stateNode.containerInfo,je===z||je.nodeType===8&&je.parentNode===z))return;ye=ye.return}for(;Ae!==null;){if(ye=Oi(Ae),ye===null)return;if(je=ye.tag,je===5||je===6){d=re=ye;continue e}Ae=Ae.parentNode}}d=d.return}Wn(function(){var Ue=re,Je=ot(a),tt=[];e:{var Qe=Ya.get(e);if(Qe!==void 0){var st=Hl,lt=e;switch(e){case"keypress":if(qo(a)===0)break e;case"keydown":case"keyup":st=Vd;break;case"focusin":lt="focus",st=er;break;case"focusout":lt="blur",st=er;break;case"beforeblur":case"afterblur":st=er;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":st=zu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":st=Xl;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":st=wm;break;case of:case af:case Ha:st=Wu;break;case ss:st=Gu;break;case"scroll":st=Hd;break;case"wheel":st=Kd;break;case"copy":case"cut":case"paste":st=Uu;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":st=Vl}var ut=(t&4)!==0,Cr=!ut&&e==="scroll",Fe=ut?Qe!==null?Qe+"Capture":null:Qe;ut=[];for(var De=Ue,ze;De!==null;){ze=De;var rt=ze.stateNode;if(ze.tag===5&&rt!==null&&(ze=rt,Fe!==null&&(rt=lr(De,Fe),rt!=null&&ut.push(na(De,rt,ze)))),Cr)break;De=De.return}0<ut.length&&(Qe=new st(Qe,lt,null,a,Je),tt.push({event:Qe,listeners:ut}))}}if((t&7)===0){e:{if(Qe=e==="mouseover"||e==="pointerover",st=e==="mouseout"||e==="pointerout",Qe&&a!==Ve&&(lt=a.relatedTarget||a.fromElement)&&(Oi(lt)||lt[On]))break e;if((st||Qe)&&(Qe=Je.window===Je?Je:(Qe=Je.ownerDocument)?Qe.defaultView||Qe.parentWindow:window,st?(lt=a.relatedTarget||a.toElement,st=Ue,lt=lt?Oi(lt):null,lt!==null&&(Cr=Dt(lt),lt!==Cr||lt.tag!==5&&lt.tag!==6)&&(lt=null)):(st=null,lt=Ue),st!==lt)){if(ut=zu,rt="onMouseLeave",Fe="onMouseEnter",De="mouse",(e==="pointerout"||e==="pointerover")&&(ut=Vl,rt="onPointerLeave",Fe="onPointerEnter",De="pointer"),Cr=st==null?Qe:wt(st),ze=lt==null?Qe:wt(lt),Qe=new ut(rt,De+"leave",st,a,Je),Qe.target=Cr,Qe.relatedTarget=ze,rt=null,Oi(Je)===Ue&&(ut=new ut(Fe,De+"enter",lt,a,Je),ut.target=ze,ut.relatedTarget=Cr,rt=ut),Cr=rt,st&&lt)t:{for(ut=st,Fe=lt,De=0,ze=ut;ze;ze=ia(ze))De++;for(ze=0,rt=Fe;rt;rt=ia(rt))ze++;for(;0<De-ze;)ut=ia(ut),De--;for(;0<ze-De;)Fe=ia(Fe),ze--;for(;De--;){if(ut===Fe||Fe!==null&&ut===Fe.alternate)break t;ut=ia(ut),Fe=ia(Fe)}ut=null}else ut=null;st!==null&&Tr(tt,Qe,st,ut,!1),lt!==null&&Cr!==null&&Tr(tt,Cr,lt,ut,!0)}}e:{if(Qe=Ue?wt(Ue):window,st=Qe.nodeName&&Qe.nodeName.toLowerCase(),st==="select"||st==="input"&&Qe.type==="file")var ht=Mm;else if(ql(Qe))if(ho)ht=Ie;else{ht=Am;var mt=Tm}else(st=Qe.nodeName)&&st.toLowerCase()==="input"&&(Qe.type==="checkbox"||Qe.type==="radio")&&(ht=ea);if(ht&&(ht=ht(e,Ue))){qu(tt,ht,a,Je);break e}mt&&mt(e,Qe,Ue),e==="focusout"&&(mt=Qe._wrapperState)&&mt.controlled&&Qe.type==="number"&&me(Qe,"number",Qe.value)}switch(mt=Ue?wt(Ue):window,e){case"focusin":(ql(mt)||mt.contentEditable==="true")&&(is=mt,Ku=Ue,ji=null);break;case"focusout":ji=Ku=is=null;break;case"mousedown":ta=!0;break;case"contextmenu":case"mouseup":case"dragend":ta=!1,Wa(tt,a,Je);break;case"selectionchange":if(Hn)break;case"keydown":case"keyup":Wa(tt,a,Je)}var pt;if(za)e:{switch(e){case"compositionstart":var yt="onCompositionStart";break e;case"compositionend":yt="onCompositionEnd";break e;case"compositionupdate":yt="onCompositionUpdate";break e}yt=void 0}else Qo?ef(e,a)&&(yt="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(yt="onCompositionStart");yt&&(Vu&&a.locale!=="ko"&&(Qo||yt!=="onCompositionStart"?yt==="onCompositionEnd"&&Qo&&(pt=Iu()):(ur=Je,Fa="value"in ur?ur.value:ur.textContent,Qo=!0)),mt=ic(Ue,yt),0<mt.length&&(yt=new Yd(yt,e,null,a,Je),tt.push({event:yt,listeners:mt}),pt?yt.data=pt:(pt=tf(a),pt!==null&&(yt.data=pt)))),(pt=Zd?Jo(e,a):km(e,a))&&(Ue=ic(Ue,"onBeforeInput"),0<Ue.length&&(Je=new Yd("onBeforeInput","beforeinput",null,a,Je),tt.push({event:Je,listeners:Ue}),Je.data=pt))}cf(tt,t)})}function na(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ic(e,t){for(var a=t+"Capture",d=[];e!==null;){var z=e,re=z.stateNode;z.tag===5&&re!==null&&(z=re,re=lr(e,a),re!=null&&d.unshift(na(e,re,z)),re=lr(e,t),re!=null&&d.push(na(e,re,z))),e=e.return}return d}function ia(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Tr(e,t,a,d,z){for(var re=t._reactName,ye=[];a!==null&&a!==d;){var Ae=a,je=Ae.alternate,Ue=Ae.stateNode;if(je!==null&&je===d)break;Ae.tag===5&&Ue!==null&&(Ae=Ue,z?(je=lr(a,re),je!=null&&ye.unshift(na(a,je,Ae))):z||(je=lr(a,re),je!=null&&ye.push(na(a,je,Ae)))),a=a.return}ye.length!==0&&e.push({event:t,listeners:ye})}var en=/\r\n?/g,Rm=/\u0000|\uFFFD/g;function uf(e){return(typeof e=="string"?e:""+e).replace(en,`
38`).replace(Rm,"")}function Ga(e,t,a){if(t=uf(t),uf(e)!==t&&a)throw Error(n(425))}function sc(){}var Va=null,mo=null;function qa(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var _s=typeof setTimeout=="function"?setTimeout:void 0,Ka=typeof clearTimeout=="function"?clearTimeout:void 0,sa=typeof Promise=="function"?Promise:void 0,oc=typeof queueMicrotask=="function"?queueMicrotask:typeof sa<"u"?function(e){return sa.resolve(null).then(e).catch(oa)}:_s;function oa(e){setTimeout(function(){throw e})}function eh(e,t){var a=t,d=0;do{var z=a.nextSibling;if(e.removeChild(a),z&&z.nodeType===8)if(a=z.data,a==="/$"){if(d===0){e.removeChild(z),$t(t);return}d--}else a!=="$"&&a!=="$?"&&a!=="$!"||d++;a=z}while(a);$t(t)}function Ds(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function hf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}var aa=Math.random().toString(36).slice(2),Ni="__reactFiber$"+aa,Is="__reactProps$"+aa,On="__reactContainer$"+aa,ac="__reactEvents$"+aa,we="__reactListeners$"+aa,la="__reactHandles$"+aa;function Oi(e){var t=e[Ni];if(t)return t;for(var a=e.parentNode;a;){if(t=a[On]||a[Ni]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=hf(e);e!==null;){if(a=e[Ni])return a;e=hf(e)}return t}e=a,a=e.parentNode}return null}function tn(e){return e=e[Ni]||e[On],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function wt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(n(33))}function lc(e){return e[Is]||null}var th=[],ca=-1;function Cn(e){return{current:e}}function ir(e){0>ca||(e.current=th[ca],th[ca]=null,ca--)}function tr(e,t){ca++,th[ca]=e.current,e.current=t}var Bs={},rn=Cn(Bs),kn=Cn(!1),fn=Bs;function ua(e,t){var a=e.type.contextTypes;if(!a)return Bs;var d=e.stateNode;
vendor: 8,984 bytes, line 38
38if(d&&d.__reactInternalMemoizedUnmaskedChildContext===t)return d.__reactInternalMemoizedMaskedChildContext;var z={},re;for(re in a)z[re]=t[re];return d&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=z),z}function Pn(e){return e=e.childContextTypes,e!=null}function cc(){ir(kn),ir(rn)}function df(e,t,a){if(rn.current!==Bs)throw Error(n(168));tr(rn,t),tr(kn,a)}function ff(e,t,a){var d=e.stateNode;if(t=t.childContextTypes,typeof d.getChildContext!="function")return a;d=d.getChildContext();for(var z in d)if(!(z in t))throw Error(n(108,ue(e)||"Unknown",z));return R({},a,d)}function Yn(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bs,fn=rn.current,tr(rn,e),tr(kn,kn.current),!0}function pf(e,t,a){var d=e.stateNode;if(!d)throw Error(n(169));a?(e=ff(e,t,fn),d.__reactInternalMemoizedMergedChildContext=e,ir(kn),ir(rn),tr(rn,e)):ir(kn),tr(kn,a)}var as=null,uc=!1,rh=!1;function mf(e){as===null?as=[e]:as.push(e)}function go(e){uc=!0,mf(e)}function Fs(){if(!rh&&as!==null){rh=!0;var e=0,t=zt;try{var a=as;for(zt=1;e<a.length;e++){var d=a[e];do d=d(!0);while(d!==null)}as=null,uc=!1}catch(z){throw as!==null&&(as=as.slice(e+1)),oo(Lu,Fs),z}finally{zt=t,rh=!1}}return null}var ha=[],nn=0,hc=null,dc=0,Xn=[],Gn=0,yo=null,_i=1,Di="";function xo(e,t){ha[nn++]=dc,ha[nn++]=hc,hc=e,dc=t}function gf(e,t,a){Xn[Gn++]=_i,Xn[Gn++]=Di,Xn[Gn++]=yo,yo=e;var d=_i;e=Di;var z=32-di(d)-1;d&=~(1<<z),a+=1;var re=32-di(t)+z;if(30<re){var ye=z-z%5;re=(d&(1<<ye)-1).toString(32),d>>=ye,z-=ye,_i=1<<32-di(t)+z|a<<z|d,Di=re+e}else _i=1<<re|a<<z|d,Di=e}function Za(e){e.return!==null&&(xo(e,1),gf(e,1,0))}function vo(e){for(;e===hc;)hc=ha[--nn],ha[nn]=null,dc=ha[--nn],ha[nn]=null;for(;e===yo;)yo=Xn[--Gn],Xn[Gn]=null,Di=Xn[--Gn],Xn[Gn]=null,_i=Xn[--Gn],Xn[Gn]=null}var sn=null,_n=null,sr=!1,pi=null;function Ii(e,t){var a=ei(5,null,null,0);a.elementType="DELETED",a.stateNode=t,a.return=e,t=e.deletions,t===null?(e.deletions=[a],e.flags|=16):t.push(a)}function fc(e,t){switch(e.tag){case 5:var a=e.type;return t=t.nodeType!==1||a.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,sn=e,_n=Ds(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,sn=e,_n=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(a=yo!==null?{id:_i,overflow:Di}:null,e.memoizedState={dehydrated:t,treeContext:a,retryLane:1073741824},a=ei(18,null,null,0),a.stateNode=t,a.return=e,e.child=a,sn=e,_n=null,!0):!1;default:return!1}}function ls(e){return(e.mode&1)!==0&&(e.flags&128)===0}function En(e){if(sr){var t=_n;if(t){var a=t;if(!fc(e,t)){if(ls(e))throw Error(n(418));t=Ds(a.nextSibling);var d=sn;t&&fc(e,t)?Ii(d,a):(e.flags=e.flags&-4097|2,sr=!1,sn=e)}}else{if(ls(e))throw Error(n(418));e.flags=e.flags&-4097|2,sr=!1,sn=e}}}function yf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;sn=e}function Qa(e){if(e!==sn)return!1;if(!sr)return yf(e),sr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!qa(e.type,e.memoizedProps)),t&&(t=_n)){if(ls(e))throw nh(),Error(n(418));for(;t;)Ii(e,t),t=Ds(t.nextSibling)}if(yf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"){if(t===0){_n=Ds(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++}e=e.nextSibling}_n=null}}else _n=sn?Ds(e.stateNode.nextSibling):null;return!0}function nh(){for(var e=_n;e;)e=Ds(e.nextSibling)}function Bi(){_n=sn=null,sr=!1}function Fi(e){pi===null?pi=[e]:pi.push(e)}var xf=k.ReactCurrentBatchConfig;function Ja(e,t,a){if(e=a.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(n(309));var d=a.stateNode}if(!d)throw Error(n(147,e));var z=d,re=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===re?t.ref:(t=function(ye){var Ae=z.refs;ye===null?delete Ae[re]:Ae[re]=ye},t._stringRef=re,t)}if(typeof e!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,e))}return e}function bo(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vf(e){var t=e._init;return t(e._payload)}function ih(e){function t(Fe,De){if(e){var ze=Fe.deletions;ze===null?(Fe.deletions=[De],Fe.flags|=16):ze.push(De)}}function a(Fe,De){if(!e)return null;for(;De!==null;)t(Fe,De),De=De.sibling;return null}function d(Fe,De){for(Fe=new Map;De!==null;)De.key!==null?Fe.set(De.key,De):Fe.set(De.index,De),De=De.sibling;return Fe}function z(Fe,De){return Fe=Si(Fe,De),Fe.index=0,Fe.sibling=null,Fe}function re(Fe,De,ze){return Fe.index=ze,e?(ze=Fe.alternate,ze!==null?(ze=ze.index,ze<De?(Fe.flags|=2,De):ze):(Fe.flags|=2,De)):(Fe.flags|=1048576,De)}function ye(Fe){return e&&Fe.alternate===null&&(Fe.flags|=2),Fe}function Ae(Fe,De,ze,rt){return De===null||De.tag!==6?(De=Hh(ze,Fe.mode,rt),De.return=Fe,De):(De=z(De,ze),De.return=Fe,De)}function je(Fe,De,ze,rt){var ht=ze.type;return ht===m?Je(Fe,De,ze.props.children,rt,ze.key):De!==null&&(De.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===L&&vf(ht)===De.type)?(rt=z(De,ze.props),rt.ref=Ja(Fe,De,ze),rt.return=Fe,rt):(rt=Vc(ze.type,ze.key,ze.props,null,Fe.mode,rt),rt.ref=Ja(Fe,De,ze),rt.return=Fe,rt)}function Ue(Fe,De,ze,rt){return De===null||De.tag!==4||De.stateNode.containerInfo!==ze.containerInfo||De.stateNode.implementation!==ze.implementation?(De=Yh(ze,Fe.mode,rt),De.return=Fe,De):(De=z(De,ze.children||[]),De.return=Fe,De)}function Je(Fe,De,ze,rt,ht){return De===null||De.tag!==7?(De=Ro(ze,Fe.mode,rt,ht),De.return=Fe,De):(De=z(De,ze),De.return=Fe,De)}function tt(Fe,De,ze){if(typeof De=="string"&&De!==""||typeof De=="number")return De=Hh(""+De,Fe.mode,ze),De.return=Fe,De;if(typeof De=="object"&&De!==null){switch(De.$$typeof){case b:return ze=Vc(De.type,De.key,De.props,null,Fe.mode,ze),ze.ref=Ja(Fe,null,De),ze.return=Fe,ze;case C:return De=Yh(De,Fe.mode,ze),De.return=Fe,De;case L:var rt=De._init;return tt(Fe,rt(De._payload),ze)}if(ve(De)||B(De))return De=Ro(De,Fe.mode,ze,null),De.return=Fe,De;bo(Fe,De)}return null}function Qe(Fe,De,ze,rt){var ht=De!==null?De.key:null;if(typeof ze=="string"&&ze!==""||typeof ze=="number")return ht!==null?null:Ae(Fe,De,""+ze,rt);if(typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case b:return ze.key===ht?je(Fe,De,ze,rt):null;case C:return ze.key===ht?Ue(Fe,De,ze,rt):null;case L:return ht=ze._init,Qe(Fe,De,ht(ze._payload),rt)}if(ve(ze)||B(ze))return ht!==null?null:Je(Fe,De,ze,rt,null);bo(Fe,ze)}return null}function st(Fe,De,ze,rt,ht){if(typeof rt=="string"&&rt!==""||typeof rt=="number")return Fe=Fe.get(ze)||null,Ae(De,Fe,""+rt,ht);if(typeof rt=="object"&&rt!==null){switch(rt.$$typeof){case b:return Fe=Fe.get(rt.key===null?ze:rt.key)||null,je(De,Fe,rt,ht);case C:return Fe=Fe.get(rt.key===null?ze:rt.key)||null,Ue(De,Fe,rt,ht);case L:var mt=rt._init;return st(Fe,De,ze,mt(rt._payload),ht)}if(ve(rt)||B(rt))return Fe=Fe.get(ze)||null,Je(De,Fe,rt,ht,null);bo(De,rt)}return null}function lt(Fe,De,ze,rt){for(var ht=null,mt=null,pt=De,yt=De=0,$r=null;pt!==null&&yt<ze.length;yt++){pt.index>yt?($r=pt,pt=null):$r=pt.sibling;var Ft=Qe(Fe,pt,ze[yt],rt);if(Ft===null){pt===null&&(pt=$r);break}e&&pt&&Ft.alternate===null&&t(Fe,pt),De=re(Ft,De,yt),mt===null?ht=Ft:mt.sibling=Ft,mt=Ft,pt=$r}if(yt===ze.length)return a(Fe,pt),sr&&xo(Fe,yt),ht;if(pt===null){for(;yt<ze.length;yt++)pt=tt(Fe,ze[yt],rt),pt!==null&&(De=re(pt,De,yt),mt===null?ht=pt:mt.sibling=pt,mt=pt);return sr&&xo(Fe,yt),ht}for(pt=d(Fe,pt);yt<ze.length;yt++)$r=st(pt,Fe,yt,ze[yt],rt),$r!==null&&(e&&$r.alternate!==null&&pt.delete($r.key===null?yt:$r.key),De=re($r,De,yt),mt===null?ht=$r:mt.sibling=$r,mt=$r);return e&&pt.forEach(function(Zs){return t(Fe,Zs)}),sr&&xo(Fe,yt),ht}function ut(Fe,De,ze,rt){var ht=B(ze);if(typeof ht!="function")throw Error(n(150));if(ze=ht.call(ze),ze==null)throw Error(n(151));for(var mt=ht=null,pt=De,yt=De=0,$r=null,Ft=ze.next();pt!==null&&!Ft.done;yt++,Ft=ze.next()){pt.index>yt?($r=pt,pt=null):$r=pt.sibling;var Zs=Qe(Fe,pt,Ft.value,rt);if(Zs===null){pt===null&&(pt=$r);break}e&&pt&&Zs.alternate===null&&t(Fe,pt),De=re(Zs,De,yt),mt===null?ht=Zs:mt.sibling=Zs,mt=Zs,pt=$r}if(Ft.done)return a(Fe,pt),sr&&xo(Fe,yt),ht;if(pt===null){for(;!Ft.done;yt++,Ft=ze.next())Ft=tt(Fe,Ft.value,rt),Ft!==null&&(De=re(Ft,De,yt),mt===null?ht=Ft:mt.sibling=Ft,mt=Ft);return sr&&xo(Fe,yt),ht}for(pt=d(Fe,pt);!Ft.done;yt++,Ft=ze.next())Ft=st(pt,Fe,yt,Ft.value,rt),Ft!==null&&(e&&Ft.alternate!==null&&pt.delete(Ft.key===null?yt:Ft.key),De=re(Ft,De,yt),mt===null?ht=Ft:mt.sibling=Ft,mt=Ft);return e&&pt.forEach(function(Qm){return t(Fe,Qm)}),sr&&xo(Fe,yt),ht}function Cr(Fe,De,ze,rt){if(typeof ze=="object"&&ze!==null&&ze.type===m&&ze.key===null&&(ze=ze.props.children),typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case b:e:{for(var ht=ze.key,mt=De;mt!==null;
vendor: 4,914 bytes, line 38
38){if(mt.key===ht){if(ht=ze.type,ht===m){if(mt.tag===7){a(Fe,mt.sibling),De=z(mt,ze.props.children),De.return=Fe,Fe=De;break e}}else if(mt.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===L&&vf(ht)===mt.type){a(Fe,mt.sibling),De=z(mt,ze.props),De.ref=Ja(Fe,mt,ze),De.return=Fe,Fe=De;break e}a(Fe,mt);break}else t(Fe,mt);mt=mt.sibling}ze.type===m?(De=Ro(ze.props.children,Fe.mode,rt,ze.key),De.return=Fe,Fe=De):(rt=Vc(ze.type,ze.key,ze.props,null,Fe.mode,rt),rt.ref=Ja(Fe,De,ze),rt.return=Fe,Fe=rt)}return ye(Fe);case C:e:{for(mt=ze.key;De!==null;){if(De.key===mt)if(De.tag===4&&De.stateNode.containerInfo===ze.containerInfo&&De.stateNode.implementation===ze.implementation){a(Fe,De.sibling),De=z(De,ze.children||[]),De.return=Fe,Fe=De;break e}else{a(Fe,De);break}else t(Fe,De);De=De.sibling}De=Yh(ze,Fe.mode,rt),De.return=Fe,Fe=De}return ye(Fe);case L:return mt=ze._init,Cr(Fe,De,mt(ze._payload),rt)}if(ve(ze))return lt(Fe,De,ze,rt);if(B(ze))return ut(Fe,De,ze,rt);bo(Fe,ze)}return typeof ze=="string"&&ze!==""||typeof ze=="number"?(ze=""+ze,De!==null&&De.tag===6?(a(Fe,De.sibling),De=z(De,ze),De.return=Fe,Fe=De):(a(Fe,De),De=Hh(ze,Fe.mode,rt),De.return=Fe,Fe=De),ye(Fe)):a(Fe,De)}return Cr}var vr=ih(!0),pc=ih(!1),el=Cn(null),Dn=null,zs=null,da=null;function cs(){da=zs=Dn=null}function mc(e){var t=el.current;ir(el),e._currentValue=t}function Gr(e,t,a){for(;e!==null;){var d=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,d!==null&&(d.childLanes|=t)):d!==null&&(d.childLanes&t)!==t&&(d.childLanes|=t),e===a)break;e=e.return}}function $s(e,t){Dn=e,da=zs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(mn=!0),e.firstContext=null)}function Vn(e){var t=e._currentValue;if(da!==e)if(e={context:e,memoizedValue:t,next:null},zs===null){if(Dn===null)throw Error(n(308));zs=e,Dn.dependencies={lanes:0,firstContext:e}}else zs=zs.next=e;return t}var So=null;function sh(e){So===null?So=[e]:So.push(e)}function gc(e,t,a,d){var z=t.interleaved;return z===null?(a.next=a,sh(t)):(a.next=z.next,z.next=a),t.interleaved=a,us(e,d)}function us(e,t){e.lanes|=t;var a=e.alternate;for(a!==null&&(a.lanes|=t),a=e,e=e.return;e!==null;)e.childLanes|=t,a=e.alternate,a!==null&&(a.childLanes|=t),a=e,e=e.return;return a.tag===3?a.stateNode:null}var qn=!1;function yc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function hs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Kn(e,t,a){var d=e.updateQueue;if(d===null)return null;if(d=d.shared,(Ot&2)!==0){var z=d.pending;return z===null?t.next=t:(t.next=z.next,z.next=t),d.pending=t,us(e,a)}return z=d.interleaved,z===null?(t.next=t,sh(d)):(t.next=z.next,z.next=t),d.interleaved=t,us(e,a)}function xc(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194240)!==0)){var d=t.lanes;d&=e.pendingLanes,a|=d,t.lanes=a,Da(e,a)}}function Sf(e,t){var a=e.updateQueue,d=e.alternate;if(d!==null&&(d=d.updateQueue,a===d)){var z=null,re=null;if(a=a.firstBaseUpdate,a!==null){do{var ye={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};re===null?z=re=ye:re=re.next=ye,a=a.next}while(a!==null);re===null?z=re=t:re=re.next=t}else z=re=t;a={baseState:d.baseState,firstBaseUpdate:z,lastBaseUpdate:re,shared:d.shared,effects:d.effects},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function fa(e,t,a,d){var z=e.updateQueue;qn=!1;var re=z.firstBaseUpdate,ye=z.lastBaseUpdate,Ae=z.shared.pending;if(Ae!==null){z.shared.pending=null;var je=Ae,Ue=je.next;je.next=null,ye===null?re=Ue:ye.next=Ue,ye=je;var Je=e.alternate;Je!==null&&(Je=Je.updateQueue,Ae=Je.lastBaseUpdate,Ae!==ye&&(Ae===null?Je.firstBaseUpdate=Ue:Ae.next=Ue,Je.lastBaseUpdate=je))}if(re!==null){var tt=z.baseState;ye=0,Je=Ue=je=null,Ae=re;do{var Qe=Ae.lane,st=Ae.eventTime;if((d&Qe)===Qe){Je!==null&&(Je=Je.next={eventTime:st,lane:0,tag:Ae.tag,payload:Ae.payload,callback:Ae.callback,next:null});e:{var lt=e,ut=Ae;switch(Qe=t,st=a,ut.tag){case 1:if(lt=ut.payload,typeof lt=="function"){tt=lt.call(st,tt,Qe);break e}tt=lt;break e;case 3:lt.flags=lt.flags&-65537|128;case 0:if(lt=ut.payload,Qe=typeof lt=="function"?lt.call(st,tt,Qe):lt,Qe==null)break e;tt=R({},tt,Qe);break e;case 2:qn=!0}}Ae.callback!==null&&Ae.lane!==0&&(e.flags|=64,Qe=z.effects,Qe===null?z.effects=[Ae]:Qe.push(Ae))}else st={eventTime:st,lane:Qe,tag:Ae.tag,payload:Ae.payload,callback:Ae.callback,next:null},Je===null?(Ue=Je=st,je=tt):Je=Je.next=st,ye|=Qe;if(Ae=Ae.next,Ae===null){if(Ae=z.shared.pending,Ae===null)break;Qe=Ae,Ae=Qe.next,Qe.next=null,z.lastBaseUpdate=Qe,z.shared.pending=null}}while(!0);
vendor: 8,608 bytes, line 38
38if(Je===null&&(je=tt),z.baseState=je,z.firstBaseUpdate=Ue,z.lastBaseUpdate=Je,t=z.shared.interleaved,t!==null){z=t;do ye|=z.lane,z=z.next;while(z!==t)}else re===null&&(z.shared.lanes=0);Xs|=ye,e.lanes=ye,e.memoizedState=tt}}function oh(e,t,a){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var d=e[t],z=d.callback;if(z!==null){if(d.callback=null,d=a,typeof z!="function")throw Error(n(191,z));z.call(d)}}}var tl={},zi=Cn(tl),rl=Cn(tl),pa=Cn(tl);function ds(e){if(e===tl)throw Error(n(174));return e}function ah(e,t){switch(tr(pa,t),tr(rl,e),tr(zi,tl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ee(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ee(t,e)}ir(zi),tr(zi,t)}function Ws(){ir(zi),ir(rl),ir(pa)}function lh(e){ds(pa.current);var t=ds(zi.current),a=Ee(t,e.type);t!==a&&(tr(rl,e),tr(zi,a))}function vc(e){rl.current===e&&(ir(zi),ir(rl))}var hr=Cn(0);function wo(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ch=[];function bc(){for(var e=0;e<ch.length;e++)ch[e]._workInProgressVersionPrimary=null;ch.length=0}var nl=k.ReactCurrentDispatcher,uh=k.ReactCurrentBatchConfig,Us=0,pr=null,wr=null,Nr=null,ma=!1,il=!1,Co=0,Pt=0;function on(){throw Error(n(321))}function hh(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!$e(e[a],t[a]))return!1;return!0}function ko(e,t,a,d,z,re){if(Us=re,pr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,nl.current=e===null||e.memoizedState===null?Nm:Mc,e=a(d,z),il){re=0;do{if(il=!1,Co=0,25<=re)throw Error(n(301));re+=1,Nr=wr=null,t.updateQueue=null,nl.current=va,e=a(d,z)}while(il)}if(nl.current=Ec,t=wr!==null&&wr.next!==null,Us=0,Nr=wr=pr=null,ma=!1,t)throw Error(n(300));return e}function Sc(){var e=Co!==0;return Co=0,e}function $i(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nr===null?pr.memoizedState=Nr=e:Nr=Nr.next=e,Nr}function Zn(){if(wr===null){var e=pr.alternate;e=e!==null?e.memoizedState:null}else e=wr.next;var t=Nr===null?pr.memoizedState:Nr.next;if(t!==null)Nr=t,wr=e;else{if(e===null)throw Error(n(310));wr=e,e={memoizedState:wr.memoizedState,baseState:wr.baseState,baseQueue:wr.baseQueue,queue:wr.queue,next:null},Nr===null?pr.memoizedState=Nr=e:Nr=Nr.next=e}return Nr}function an(e,t){return typeof t=="function"?t(e):t}function dh(e){var t=Zn(),a=t.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=e;var d=wr,z=d.baseQueue,re=a.pending;if(re!==null){if(z!==null){var ye=z.next;z.next=re.next,re.next=ye}d.baseQueue=z=re,a.pending=null}if(z!==null){re=z.next,d=d.baseState;var Ae=ye=null,je=null,Ue=re;do{var Je=Ue.lane;if((Us&Je)===Je)je!==null&&(je=je.next={lane:0,action:Ue.action,hasEagerState:Ue.hasEagerState,eagerState:Ue.eagerState,next:null}),d=Ue.hasEagerState?Ue.eagerState:e(d,Ue.action);else{var tt={lane:Je,action:Ue.action,hasEagerState:Ue.hasEagerState,eagerState:Ue.eagerState,next:null};je===null?(Ae=je=tt,ye=d):je=je.next=tt,pr.lanes|=Je,Xs|=Je}Ue=Ue.next}while(Ue!==null&&Ue!==re);je===null?ye=d:je.next=Ae,$e(d,t.memoizedState)||(mn=!0),t.memoizedState=d,t.baseState=ye,t.baseQueue=je,a.lastRenderedState=d}if(e=a.interleaved,e!==null){z=e;do re=z.lane,pr.lanes|=re,Xs|=re,z=z.next;while(z!==e)}else z===null&&(a.lanes=0);return[t.memoizedState,a.dispatch]}function ga(e){var t=Zn(),a=t.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=e;var d=a.dispatch,z=a.pending,re=t.memoizedState;if(z!==null){a.pending=null;var ye=z=z.next;do re=e(re,ye.action),ye=ye.next;while(ye!==z);$e(re,t.memoizedState)||(mn=!0),t.memoizedState=re,t.baseQueue===null&&(t.baseState=re),a.lastRenderedState=re}return[re,d]}function wc(){}function fh(e,t){var a=pr,d=Zn(),z=t(),re=!$e(d.memoizedState,z);if(re&&(d.memoizedState=z,mn=!0),d=d.queue,Wi(fs.bind(null,a,d,e),[e]),d.getSnapshot!==t||re||Nr!==null&&Nr.memoizedState.tag&1){if(a.flags|=2048,ya(9,Mn.bind(null,a,d,z,t),void 0,null),zr===null)throw Error(n(349));(Us&30)!==0||ph(a,t,z)}return z}function ph(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=pr.updateQueue,t===null?(t={lastEffect:null,stores:null},pr.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Mn(e,t,a,d){t.value=a,t.getSnapshot=d,Cc(t)&&mh(e)}function fs(e,t,a){return a(function(){Cc(t)&&mh(e)})}function Cc(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!$e(e,a)}catch{return!0}}function mh(e){var t=us(e,1);t!==null&&bi(t,e,1,-1)}function sl(e){var t=$i();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:an,lastRenderedState:e},t.queue=e,e=e.dispatch=Mf.bind(null,pr,e),[t.memoizedState,e]}function ya(e,t,a,d){return e={tag:e,create:t,destroy:a,deps:d,next:null},t=pr.updateQueue,t===null?(t={lastEffect:null,stores:null},pr.updateQueue=t,t.lastEffect=e.next=e):(a=t.lastEffect,a===null?t.lastEffect=e.next=e:(d=a.next,a.next=e,e.next=d,t.lastEffect=e)),e}function kc(){return Zn().memoizedState}function ol(e,t,a,d){var z=$i();pr.flags|=e,z.memoizedState=ya(1|t,a,void 0,d===void 0?null:d)}function xa(e,t,a,d){var z=Zn();d=d===void 0?null:d;var re=void 0;if(wr!==null){var ye=wr.memoizedState;if(re=ye.destroy,d!==null&&hh(d,ye.deps)){z.memoizedState=ya(t,a,re,d);return}}pr.flags|=e,z.memoizedState=ya(1|t,a,re,d)}function Pc(e,t){return ol(8390656,8,e,t)}function Wi(e,t){return xa(2048,8,e,t)}function wf(e,t){return xa(4,2,e,t)}function ps(e,t){return xa(4,4,e,t)}function gh(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function yh(e,t,a){return a=a!=null?a.concat([e]):null,xa(4,4,gh.bind(null,t,e),a)}function al(){}function Cf(e,t){var a=Zn();t=t===void 0?null:t;var d=a.memoizedState;return d!==null&&t!==null&&hh(t,d[1])?d[0]:(a.memoizedState=[e,t],e)}function kf(e,t){var a=Zn();t=t===void 0?null:t;var d=a.memoizedState;return d!==null&&t!==null&&hh(t,d[1])?d[0]:(e=e(),a.memoizedState=[e,t],e)}function Pf(e,t,a){return(Us&21)===0?(e.baseState&&(e.baseState=!1,mn=!0),e.memoizedState=a):($e(a,t)||(a=ju(),pr.lanes|=a,Xs|=a,e.baseState=!0),t)}function Ef(e,t){var a=zt;zt=a!==0&&4>a?a:4,e(!0);var d=uh.transition;uh.transition={};try{e(!1),t()}finally{zt=a,uh.transition=d}}function xh(){return Zn().memoizedState}function jm(e,t,a){var d=qs(e);if(a={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null},vh(e))pn(t,a);else if(a=gc(e,t,a,d),a!==null){var z=xn();bi(a,e,d,z),mi(a,t,d)}}function Mf(e,t,a){var d=qs(e),z={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null};if(vh(e))pn(t,z);else{var re=e.alternate;if(e.lanes===0&&(re===null||re.lanes===0)&&(re=t.lastRenderedReducer,re!==null))try{var ye=t.lastRenderedState,Ae=re(ye,a);if(z.hasEagerState=!0,z.eagerState=Ae,$e(Ae,ye)){var je=t.interleaved;je===null?(z.next=z,sh(t)):(z.next=je.next,je.next=z),t.interleaved=z;return}}catch{}finally{}a=gc(e,t,z,d),a!==null&&(z=xn(),bi(a,e,d,z),mi(a,t,d))}}function vh(e){var t=e.alternate;return e===pr||t!==null&&t===pr}function pn(e,t){il=ma=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function mi(e,t,a){if((a&4194240)!==0){var d=t.lanes;d&=e.pendingLanes,a|=d,t.lanes=a,Da(e,a)}}var Ec={readContext:Vn,useCallback:on,useContext:on,useEffect:on,useImperativeHandle:on,useInsertionEffect:on,useLayoutEffect:on,useMemo:on,useReducer:on,useRef:on,useState:on,useDebugValue:on,useDeferredValue:on,useTransition:on,useMutableSource:on,useSyncExternalStore:on,useId:on,unstable_isNewReconciler:!1},Nm={readContext:Vn,useCallback:function(e,t){return $i().memoizedState=[e,t===void 0?null:t],e},useContext:Vn,useEffect:Pc,useImperativeHandle:function(e,t,a){return a=a!=null?a.concat([e]):null,ol(4194308,4,gh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return ol(4194308,4,e,t)},useInsertionEffect:function(e,t){return ol(4,2,e,t)},useMemo:function(e,t){var a=$i();return t=t===void 0?null:t,e=e(),a.memoizedState=[e,t],e},useReducer:function(e,t,a){var d=$i();return t=a!==void 0?a(t):t,d.memoizedState=d.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},d.queue=e,e=e.dispatch=jm.bind(null,pr,e),[d.memoizedState,e]}
vendor: 5,284 bytes, lines 38-40
38,useRef:function(e){var t=$i();return e={current:e},t.memoizedState=e},useState:sl,useDebugValue:al,useDeferredValue:function(e){return $i().memoizedState=e},useTransition:function(){var e=sl(!1),t=e[0];return e=Ef.bind(null,e[1]),$i().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,a){var d=pr,z=$i();if(sr){if(a===void 0)throw Error(n(407));a=a()}else{if(a=t(),zr===null)throw Error(n(349));(Us&30)!==0||ph(d,t,a)}z.memoizedState=a;var re={value:a,getSnapshot:t};return z.queue=re,Pc(fs.bind(null,d,re,e),[e]),d.flags|=2048,ya(9,Mn.bind(null,d,re,a,t),void 0,null),a},useId:function(){var e=$i(),t=zr.identifierPrefix;if(sr){var a=Di,d=_i;a=(d&~(1<<32-di(d)-1)).toString(32)+a,t=":"+t+"R"+a,a=Co++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=Pt++,t=":"+t+"r"+a.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Mc={readContext:Vn,useCallback:Cf,useContext:Vn,useEffect:Wi,useImperativeHandle:yh,useInsertionEffect:wf,useLayoutEffect:ps,useMemo:kf,useReducer:dh,useRef:kc,useState:function(){return dh(an)},useDebugValue:al,useDeferredValue:function(e){var t=Zn();return Pf(t,wr.memoizedState,e)},useTransition:function(){var e=dh(an)[0],t=Zn().memoizedState;return[e,t]},useMutableSource:wc,useSyncExternalStore:fh,useId:xh,unstable_isNewReconciler:!1},va={readContext:Vn,useCallback:Cf,useContext:Vn,useEffect:Wi,useImperativeHandle:yh,useInsertionEffect:wf,useLayoutEffect:ps,useMemo:kf,useReducer:ga,useRef:kc,useState:function(){return ga(an)},useDebugValue:al,useDeferredValue:function(e){var t=Zn();return wr===null?t.memoizedState=e:Pf(t,wr.memoizedState,e)},useTransition:function(){var e=ga(an)[0],t=Zn().memoizedState;return[e,t]},useMutableSource:wc,useSyncExternalStore:fh,useId:xh,unstable_isNewReconciler:!1};function Qn(e,t){if(e&&e.defaultProps){t=R({},t),e=e.defaultProps;for(var a in e)t[a]===void 0&&(t[a]=e[a]);return t}return t}function Tc(e,t,a,d){t=e.memoizedState,a=a(d,t),a=a==null?t:R({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Ac={isMounted:function(e){return(e=e._reactInternals)?Dt(e)===e:!1},enqueueSetState:function(e,t,a){e=e._reactInternals;var d=xn(),z=qs(e),re=hs(d,z);re.payload=t,a!=null&&(re.callback=a),t=Kn(e,re,z),t!==null&&(bi(t,e,z,d),xc(t,e,z))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var d=xn(),z=qs(e),re=hs(d,z);re.tag=1,re.payload=t,a!=null&&(re.callback=a),t=Kn(e,re,z),t!==null&&(bi(t,e,z,d),xc(t,e,z))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=xn(),d=qs(e),z=hs(a,d);z.tag=2,t!=null&&(z.callback=t),t=Kn(e,z,d),t!==null&&(bi(t,e,d,a),xc(t,e,d))}};function bh(e,t,a,d,z,re,ye){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(d,re,ye):t.prototype&&t.prototype.isPureReactComponent?!it(a,d)||!it(z,re):!0}function Po(e,t,a){var d=!1,z=Bs,re=t.contextType;return typeof re=="object"&&re!==null?re=Vn(re):(z=Pn(t)?fn:rn.current,d=t.contextTypes,re=(d=d!=null)?ua(e,z):Bs),t=new t(a,re),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ac,e.stateNode=t,t._reactInternals=e,d&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=z,e.__reactInternalMemoizedMaskedChildContext=re),t}function ba(e,t,a,d){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,d),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,d),t.state!==e&&Ac.enqueueReplaceState(t,t.state,null)}function Sh(e,t,a,d){var z=e.stateNode;z.props=a,z.state=e.memoizedState,z.refs={},yc(e);var re=t.contextType;typeof re=="object"&&re!==null?z.context=Vn(re):(re=Pn(t)?fn:rn.current,z.context=ua(e,re)),z.state=e.memoizedState,re=t.getDerivedStateFromProps,typeof re=="function"&&(Tc(e,t,re,a),z.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof z.getSnapshotBeforeUpdate=="function"||typeof z.UNSAFE_componentWillMount!="function"&&typeof z.componentWillMount!="function"||(t=z.state,typeof z.componentWillMount=="function"&&z.componentWillMount(),typeof z.UNSAFE_componentWillMount=="function"&&z.UNSAFE_componentWillMount(),t!==z.state&&Ac.enqueueReplaceState(z,z.state,null),fa(e,a,z,d),z.state=e.memoizedState),typeof z.componentDidMount=="function"&&(e.flags|=4194308)}function Eo(e,t){try{var a="",d=t;do a+=oe(d),d=d.return;while(d);var z=a}catch(re){z=`
39Error generating stack: `+re.message+`
40`+re.stack}return{value:e,source:t,stack:z,digest:null}}function Lc(e,t,a){return{value:e,source:null,stack:a??null,digest:t??null}}function Sa(e,t){try{console.error(t.value)}catch(a){setTimeout(function(){throw a})}}var Tf=typeof WeakMap=="function"?WeakMap:Map;function ll(e,t,a){a=hs(-1,a),a.tag=3,a.payload={element:null};var d=t.value;return a.callback=function(){$c||($c=!0,Ih=d),Sa(e,t)},a}function Rc(e,t,a){a=hs(-1,a),a.tag=3;var d=e.type.getDerivedStateFromError;if(typeof d=="function"){var z=t.value;a.payload=function(){return d(z)},a.callback=function(){Sa(e,t)}}var re=e.stateNode;return re!==null&&typeof re.componentDidCatch=="function"&&(a.callback=function(){Sa(e,t),typeof d!="function"&&(Gs===null?Gs=new Set([this]):Gs.add(this));var ye=t.stack;this.componentDidCatch(t.value,{componentStack:ye!==null?ye:""})}),a}function cl(e,t,a){var d=e.pingCache;
vendor: 16,313 bytes, line 40
40if(d===null){d=e.pingCache=new Tf;var z=new Set;d.set(t,z)}else z=d.get(t),z===void 0&&(z=new Set,d.set(t,z));z.has(a)||(z.add(a),e=$m.bind(null,e,t,a),t.then(e,e))}function Af(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function wh(e,t,a,d,z){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(t=hs(-1,1),t.tag=2,Kn(a,t,1))),a.lanes|=1),e):(e.flags|=65536,e.lanes=z,e)}var jc=k.ReactCurrentOwner,mn=!1;function Vr(e,t,a,d){t.child=e===null?pc(t,null,a,d):vr(t,e.child,a,d)}function Lf(e,t,a,d,z){a=a.render;var re=t.ref;return $s(t,z),d=ko(e,t,a,d,re,z),a=Sc(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~z,gi(e,t,z)):(sr&&a&&Za(t),t.flags|=1,Vr(e,t,d,z),t.child)}function Ch(e,t,a,d,z){if(e===null){var re=a.type;return typeof re=="function"&&!Gc(re)&&re.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(t.tag=15,t.type=re,Ui(e,t,re,d,z)):(e=Vc(a.type,null,d,t,t.mode,z),e.ref=t.ref,e.return=t,t.child=e)}if(re=e.child,(e.lanes&z)===0){var ye=re.memoizedProps;if(a=a.compare,a=a!==null?a:it,a(ye,d)&&e.ref===t.ref)return gi(e,t,z)}return t.flags|=1,e=Si(re,d),e.ref=t.ref,e.return=t,t.child=e}function Ui(e,t,a,d,z){if(e!==null){var re=e.memoizedProps;if(it(re,d)&&e.ref===t.ref)if(mn=!1,t.pendingProps=d=re,(e.lanes&z)!==0)(e.flags&131072)!==0&&(mn=!0);else return t.lanes=e.lanes,gi(e,t,z)}return Eh(e,t,a,d,z)}function kh(e,t,a){var d=t.pendingProps,z=d.children,re=e!==null?e.memoizedState:null;if(d.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},tr(Pa,Bn),Bn|=a;else{if((a&1073741824)===0)return e=re!==null?re.baseLanes|a:a,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,tr(Pa,Bn),Bn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=re!==null?re.baseLanes:a,tr(Pa,Bn),Bn|=d}else re!==null?(d=re.baseLanes|a,t.memoizedState=null):d=a,tr(Pa,Bn),Bn|=d;return Vr(e,t,z,a),t.child}function Ph(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=512,t.flags|=2097152)}function Eh(e,t,a,d,z){var re=Pn(a)?fn:rn.current;return re=ua(t,re),$s(t,z),a=ko(e,t,a,d,re,z),d=Sc(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~z,gi(e,t,z)):(sr&&d&&Za(t),t.flags|=1,Vr(e,t,a,z),t.child)}function Mh(e,t,a,d,z){if(Pn(a)){var re=!0;Yn(t)}else re=!1;if($s(t,z),t.stateNode===null)Oc(e,t),Po(t,a,d),Sh(t,a,d,z),d=!0;else if(e===null){var ye=t.stateNode,Ae=t.memoizedProps;ye.props=Ae;var je=ye.context,Ue=a.contextType;typeof Ue=="object"&&Ue!==null?Ue=Vn(Ue):(Ue=Pn(a)?fn:rn.current,Ue=ua(t,Ue));var Je=a.getDerivedStateFromProps,tt=typeof Je=="function"||typeof ye.getSnapshotBeforeUpdate=="function";tt||typeof ye.UNSAFE_componentWillReceiveProps!="function"&&typeof ye.componentWillReceiveProps!="function"||(Ae!==d||je!==Ue)&&ba(t,ye,d,Ue),qn=!1;var Qe=t.memoizedState;ye.state=Qe,fa(t,d,ye,z),je=t.memoizedState,Ae!==d||Qe!==je||kn.current||qn?(typeof Je=="function"&&(Tc(t,a,Je,d),je=t.memoizedState),(Ae=qn||bh(t,a,Ae,d,Qe,je,Ue))?(tt||typeof ye.UNSAFE_componentWillMount!="function"&&typeof ye.componentWillMount!="function"||(typeof ye.componentWillMount=="function"&&ye.componentWillMount(),typeof ye.UNSAFE_componentWillMount=="function"&&ye.UNSAFE_componentWillMount()),typeof ye.componentDidMount=="function"&&(t.flags|=4194308)):(typeof ye.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=d,t.memoizedState=je),ye.props=d,ye.state=je,ye.context=Ue,d=Ae):(typeof ye.componentDidMount=="function"&&(t.flags|=4194308),d=!1)}else{ye=t.stateNode,bf(e,t),Ae=t.memoizedProps,Ue=t.type===t.elementType?Ae:Qn(t.type,Ae),ye.props=Ue,tt=t.pendingProps,Qe=ye.context,je=a.contextType,typeof je=="object"&&je!==null?je=Vn(je):(je=Pn(a)?fn:rn.current,je=ua(t,je));var st=a.getDerivedStateFromProps;(Je=typeof st=="function"||typeof ye.getSnapshotBeforeUpdate=="function")||typeof ye.UNSAFE_componentWillReceiveProps!="function"&&typeof ye.componentWillReceiveProps!="function"||(Ae!==tt||Qe!==je)&&ba(t,ye,d,je),qn=!1,Qe=t.memoizedState,ye.state=Qe,fa(t,d,ye,z);var lt=t.memoizedState;Ae!==tt||Qe!==lt||kn.current||qn?(typeof st=="function"&&(Tc(t,a,st,d),lt=t.memoizedState),(Ue=qn||bh(t,a,Ue,d,Qe,lt,je)||!1)?(Je||typeof ye.UNSAFE_componentWillUpdate!="function"&&typeof ye.componentWillUpdate!="function"||(typeof ye.componentWillUpdate=="function"&&ye.componentWillUpdate(d,lt,je),typeof ye.UNSAFE_componentWillUpdate=="function"&&ye.UNSAFE_componentWillUpdate(d,lt,je)),typeof ye.componentDidUpdate=="function"&&(t.flags|=4),typeof ye.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof ye.componentDidUpdate!="function"||Ae===e.memoizedProps&&Qe===e.memoizedState||(t.flags|=4),typeof ye.getSnapshotBeforeUpdate!="function"||Ae===e.memoizedProps&&Qe===e.memoizedState||(t.flags|=1024),t.memoizedProps=d,t.memoizedState=lt),ye.props=d,ye.state=lt,ye.context=je,d=Ue):(typeof ye.componentDidUpdate!="function"||Ae===e.memoizedProps&&Qe===e.memoizedState||(t.flags|=4),typeof ye.getSnapshotBeforeUpdate!="function"||Ae===e.memoizedProps&&Qe===e.memoizedState||(t.flags|=1024),d=!1)}return Th(e,t,a,d,re,z)}function Th(e,t,a,d,z,re){Ph(e,t);var ye=(t.flags&128)!==0;if(!d&&!ye)return z&&pf(t,a,!1),gi(e,t,re);d=t.stateNode,jc.current=t;var Ae=ye&&typeof a.getDerivedStateFromError!="function"?null:d.render();return t.flags|=1,e!==null&&ye?(t.child=vr(t,e.child,null,re),t.child=vr(t,null,Ae,re)):Vr(e,t,Ae,re),t.memoizedState=d.state,z&&pf(t,a,!0),t.child}function Rf(e){var t=e.stateNode;t.pendingContext?df(e,t.pendingContext,t.pendingContext!==t.context):t.context&&df(e,t.context,!1),ah(e,t.containerInfo)}function Hi(e,t,a,d,z){return Bi(),Fi(z),t.flags|=256,Vr(e,t,a,d),t.child}var ul={dehydrated:null,treeContext:null,retryLane:0};function hl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nc(e,t,a){var d=t.pendingProps,z=hr.current,re=!1,ye=(t.flags&128)!==0,Ae;if((Ae=ye)||(Ae=e!==null&&e.memoizedState===null?!1:(z&2)!==0),Ae?(re=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(z|=1),tr(hr,z&1),e===null)return En(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(ye=d.children,e=d.fallback,re?(d=t.mode,re=t.child,ye={mode:"hidden",children:ye},(d&1)===0&&re!==null?(re.childLanes=0,re.pendingProps=ye):re=qc(ye,d,0,null),e=Ro(e,d,a,null),re.return=t,e.return=t,re.sibling=e,t.child=re,t.child.memoizedState=hl(a),t.memoizedState=ul,e):wa(t,ye));if(z=e.memoizedState,z!==null&&(Ae=z.dehydrated,Ae!==null))return gt(e,t,ye,d,Ae,z,a);if(re){re=d.fallback,ye=t.mode,z=e.child,Ae=z.sibling;var je={mode:"hidden",children:d.children};return(ye&1)===0&&t.child!==z?(d=t.child,d.childLanes=0,d.pendingProps=je,t.deletions=null):(d=Si(z,je),d.subtreeFlags=z.subtreeFlags&14680064),Ae!==null?re=Si(Ae,re):(re=Ro(re,ye,a,null),re.flags|=2),re.return=t,d.return=t,d.sibling=re,t.child=d,d=re,re=t.child,ye=e.child.memoizedState,ye=ye===null?hl(a):{baseLanes:ye.baseLanes|a,cachePool:null,transitions:ye.transitions},re.memoizedState=ye,re.childLanes=e.childLanes&~a,t.memoizedState=ul,d}return re=e.child,e=re.sibling,d=Si(re,{mode:"visible",children:d.children}),(t.mode&1)===0&&(d.lanes=a),d.return=t,d.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=d,t.memoizedState=null,d}function wa(e,t){return t=qc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ms(e,t,a,d){return d!==null&&Fi(d),vr(t,e.child,null,a),e=wa(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function gt(e,t,a,d,z,re,ye){if(a)return t.flags&256?(t.flags&=-257,d=Lc(Error(n(422))),ms(e,t,ye,d)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(re=d.fallback,z=t.mode,d=qc({mode:"visible",children:d.children},z,0,null),re=Ro(re,z,ye,null),re.flags|=2,d.return=t,re.return=t,d.sibling=re,t.child=d,(t.mode&1)!==0&&vr(t,e.child,null,ye),t.child.memoizedState=hl(ye),t.memoizedState=ul,re);if((t.mode&1)===0)return ms(e,t,ye,null);if(z.data==="$!"){if(d=z.nextSibling&&z.nextSibling.dataset,d)var Ae=d.dgst;return d=Ae,re=Error(n(419)),d=Lc(re,d,void 0),ms(e,t,ye,d)}if(Ae=(ye&e.childLanes)!==0,mn||Ae){if(d=zr,d!==null){switch(ye&-ye){case 4:z=2;break;case 16:z=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:z=32;break;case 536870912:z=268435456;break;default:z=0}z=(z&(d.suspendedLanes|ye))!==0?0:z,z!==0&&z!==re.retryLane&&(re.retryLane=z,us(e,z),bi(d,e,z,-1))}return Uh(),d=Lc(Error(n(421))),ms(e,t,ye,d)}return z.data==="$?"?(t.flags|=128,t.child=e.child,t=Wm.bind(null,e),z._reactRetry=t,null):(e=re.treeContext,_n=Ds(z.nextSibling),sn=t,sr=!0,pi=null,e!==null&&(Xn[Gn++]=_i,Xn[Gn++]=Di,Xn[Gn++]=yo,_i=e.id,Di=e.overflow,yo=t),t=wa(t,d.children),t.flags|=4096,t)}function dl(e,t,a){e.lanes|=t;var d=e.alternate;d!==null&&(d.lanes|=t),Gr(e.return,t,a)}function fl(e,t,a,d,z){var re=e.memoizedState;re===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:d,tail:a,tailMode:z}:(re.isBackwards=t,re.rendering=null,re.renderingStartTime=0,re.last=d,re.tail=a,re.tailMode=z)}function Hs(e,t,a){var d=t.pendingProps,z=d.revealOrder,re=d.tail;if(Vr(e,t,d.children,a),d=hr.current,(d&2)!==0)d=d&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dl(e,a,t);else if(e.tag===19)dl(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}d&=1}if(tr(hr,d),(t.mode&1)===0)t.memoizedState=null;else switch(z){case"forwards":for(a=t.child,z=null;a!==null;)e=a.alternate,e!==null&&wo(e)===null&&(z=a),a=a.sibling;a=z,a===null?(z=t.child,t.child=null):(z=a.sibling,a.sibling=null),fl(t,!1,z,a,re);break;case"backwards":for(a=null,z=t.child,t.child=null;z!==null;){if(e=z.alternate,e!==null&&wo(e)===null){t.child=z;break}e=z.sibling,z.sibling=a,a=z,z=e}fl(t,!0,a,null,re);break;case"together":fl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Oc(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function gi(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Xs|=t.lanes,(a&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(n(153));if(t.child!==null){for(e=t.child,a=Si(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Si(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function jf(e,t,a){switch(t.tag){case 3:Rf(t),Bi();break;case 5:lh(t);break;case 1:Pn(t.type)&&Yn(t);break;case 4:ah(t,t.stateNode.containerInfo);break;case 10:var d=t.type._context,z=t.memoizedProps.value;tr(el,d._currentValue),d._currentValue=z;break;case 13:if(d=t.memoizedState,d!==null)return d.dehydrated!==null?(tr(hr,hr.current&1),t.flags|=128,null):(a&t.child.childLanes)!==0?Nc(e,t,a):(tr(hr,hr.current&1),e=gi(e,t,a),e!==null?e.sibling:null);tr(hr,hr.current&1);break;case 19:if(d=(a&t.childLanes)!==0,(e.flags&128)!==0){if(d)return Hs(e,t,a);t.flags|=128}if(z=t.memoizedState,z!==null&&(z.rendering=null,z.tail=null,z.lastEffect=null),tr(hr,hr.current),d)break;return null;case 22:case 23:return t.lanes=0,kh(e,t,a)}return gi(e,t,a)}var qr,Ah,Nf,Lh;qr=function(e,t){for(var a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Ah=function(){},Nf=function(e,t,a,d){var z=e.memoizedProps;if(z!==d){e=t.stateNode,ds(zi.current);var re=null;switch(a){case"input":z=U(e,z),d=U(e,d),re=[];break;case"select":z=R({},z,{value:void 0}),d=R({},d,{value:void 0}),re=[];break;case"textarea":z=Pe(e,z),d=Pe(e,d),re=[];break;default:typeof z.onClick!="function"&&typeof d.onClick=="function"&&(e.onclick=sc)}Ye(a,d);var ye;a=null;for(Ue in z)if(!d.hasOwnProperty(Ue)&&z.hasOwnProperty(Ue)&&z[Ue]!=null)if(Ue==="style"){var Ae=z[Ue];for(ye in Ae)Ae.hasOwnProperty(ye)&&(a||(a={}),a[ye]="")}else Ue!=="dangerouslySetInnerHTML"&&Ue!=="children"&&Ue!=="suppressContentEditableWarning"&&Ue!=="suppressHydrationWarning"&&Ue!=="autoFocus"&&(l.hasOwnProperty(Ue)?re||(re=[]):(re=re||[]).push(Ue,null));for(Ue in d){var je=d[Ue];if(Ae=z!=null?z[Ue]:void 0,d.hasOwnProperty(Ue)&&je!==Ae&&(je!=null||Ae!=null))if(Ue==="style")if(Ae){for(ye in Ae)!Ae.hasOwnProperty(ye)||je&&je.hasOwnProperty(ye)||(a||(a={}),a[ye]="");for(ye in je)je.hasOwnProperty(ye)&&Ae[ye]!==je[ye]&&(a||(a={}),a[ye]=je[ye])}else a||(re||(re=[]),re.push(Ue,a)),a=je;else Ue==="dangerouslySetInnerHTML"?(je=je?je.__html:void 0,Ae=Ae?Ae.__html:void 0,je!=null&&Ae!==je&&(re=re||[]).push(Ue,je)):Ue==="children"?typeof je!="string"&&typeof je!="number"||(re=re||[]).push(Ue,""+je):Ue!=="suppressContentEditableWarning"&&Ue!=="suppressHydrationWarning"&&(l.hasOwnProperty(Ue)?(je!=null&&Ue==="onScroll"&&nr("scroll",e),re||Ae===je||(re=[])):(re=re||[]).push(Ue,je))}a&&(re=re||[]).push("style",a);var Ue=re;(t.updateQueue=Ue)&&(t.flags|=4)}},Lh=function(e,t,a,d){a!==d&&(t.flags|=4)};function pl(e,t){if(!sr)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var d=null;a!==null;)a.alternate!==null&&(d=a),a=a.sibling;d===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:d.sibling=null}}function Kr(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,d=0;if(t)for(var z=e.child;z!==null;)a|=z.lanes|z.childLanes,d|=z.subtreeFlags&14680064,d|=z.flags&14680064,z.return=e,z=z.sibling;else for(z=e.child;z!==null;)a|=z.lanes|z.childLanes,d|=z.subtreeFlags,d|=z.flags,z.return=e,z=z.sibling;return e.subtreeFlags|=d,e.childLanes=a,t}function Om(e,t,a){var d=t.pendingProps;switch(vo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kr(t),null;case 1:return Pn(t.type)&&cc(),Kr(t),null;case 3:return d=t.stateNode,Ws(),ir(kn),ir(rn),bc(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(e===null||e.child===null)&&(Qa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,pi!==null&&(zh(pi),pi=null))),Ah(e,t),Kr(t),null;case 5:vc(t);var z=ds(pa.current);if(a=t.type,e!==null&&t.stateNode!=null)Nf(e,t,a,d,z),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!d){if(t.stateNode===null)throw Error(n(166));return Kr(t),null}if(e=ds(zi.current),Qa(t)){d=t.stateNode,a=t.type;var re=t.memoizedProps;switch(d[Ni]=t,d[Is]=re,e=(t.mode&1)!==0,a){case"dialog":nr("cancel",d),nr("close",d);break;case"iframe":case"object":case"embed":nr("load",d);break;case"video":case"audio":for(z=0;z<os.length;z++)nr(os[z],d);break;case"source":nr("error",d);break;case"img":case"image":case"link":nr("error",d),nr("load",d);break;case"details":nr("toggle",d);break;case"input":J(d,re),nr("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!re.multiple},nr("invalid",d);break;case"textarea":ge(d,re),nr("invalid",d)}Ye(a,re),z=null;for(var ye in re)if(re.hasOwnProperty(ye)){var Ae=re[ye];ye==="children"?typeof Ae=="string"?d.textContent!==Ae&&(re.suppressHydrationWarning!==!0&&Ga(d.textContent,Ae,e),z=["children",Ae]):typeof Ae=="number"&&d.textContent!==""+Ae&&(re.suppressHydrationWarning!==!0&&Ga(d.textContent,Ae,e),z=["children",""+Ae]):l.hasOwnProperty(ye)&&Ae!=null&&ye==="onScroll"&&nr("scroll",d)}switch(a){case"input":ce(d),he(d,re,!0);break;case"textarea":ce(d),fe(d);break;case"select":case"option":break;default:typeof re.onClick=="function"&&(d.onclick=sc)}d=z,t.updateQueue=d,d!==null&&(t.flags|=4)}else{ye=z.nodeType===9?z:z.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=xe(a)),e==="http://www.w3.org/1999/xhtml"?a==="script"?(e=ye.createElement("div"),e.innerHTML="<script><\/script>
40",e=e.removeChild(e.firstChild)):typeof d.is=="string"?e=ye.createElement(a,{is:d.is}):(e=ye.createElement(a),a==="select"&&(ye=e,d.multiple?ye.multiple=!0:d.size&&(ye.size=d.size))):e=ye.createElementNS(e,a),e[Ni]=t,e[Is]=d,qr(e,t,!1,!1),t.stateNode=e;e:{switch(ye=Ge(a,d),a){case"dialog":nr("cancel",e),nr("close",e),z=d;break;case"iframe":case"object":case"embed":nr("load",e),z=d;break;case"video":case"audio":for(z=0;z<os.length;z++)nr(os[z],e);z=d;break;case"source":nr("error",e),z=d;break;case"img":case"image":case"link":nr("error",e),nr("load",e),z=d;break;case"details":nr("toggle",e),z=d;break;case"input":J(e,d),z=U(e,d),nr("invalid",e);break;case"option":z=d;break;case"select":e._wrapperState={wasMultiple:!!d.multiple},z=R({},d,{value:void 0}),nr("invalid",e);break;case"textarea":ge(e,d),z=Pe(e,d),nr("invalid",e);break;default:z=d}Ye(a,z),Ae=z;for(re in Ae)if(Ae.hasOwnProperty(re)){var je=Ae[re];re==="style"?We(e,je):re==="dangerouslySetInnerHTML"?(je=je?je.__html:void 0,je!=null&&be(e,je)):re==="children"?typeof je=="string"?(a!=="textarea"||je!=="")&&Te(e,je):typeof je=="number"&&Te(e,""+je):re!=="suppressContentEditableWarning"&&re!=="suppressHydrationWarning"&&re!=="autoFocus"&&(l.hasOwnProperty(re)?je!=null&&re==="onScroll"&&nr("scroll",e):je!=null&&w(e,re,je,ye))}switch(a){case"input":ce(e),he(e,d,!1);break;case"textarea":ce(e),fe(e);break;case"option":d.value!=null&&e.setAttribute("value",""+F(d.value));break;case"select":e.multiple=!!d.multiple,re=d.value,re!=null?ke(e,!!d.multiple,re,!1):d.defaultValue!=null&&ke(e,!!d.multiple,d.defaultValue,!0);break;default:typeof z.onClick=="function"&&(e.onclick=sc)}switch(a){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Kr(t),null;case 6:if(e&&t.stateNode!=null)Lh(e,t,e.memoizedProps,d);else{if(typeof d!="string"&&t.stateNode===null)throw Error(n(166));if(a=ds(pa.current),ds(zi.current),Qa(t)){if(d=t.stateNode,a=t.memoizedProps,d[Ni]=t,(re=d.nodeValue!==a)&&(e=sn,e!==null))switch(e.tag){case 3:Ga(d.nodeValue,a,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ga(d.nodeValue,a,(e.mode&1)!==0)}re&&(t.flags|=4)}else d=(a.nodeType===9?a:a.ownerDocument).createTextNode(d),d[Ni]=t,t.stateNode=d}return Kr(t),null;case 13:if(ir(hr),d=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(sr&&_n!==null&&(t.mode&1)!==0&&(t.flags&128)===0)nh(),Bi(),t.flags|=98560,re=!1;else if(re=Qa(t),d!==null&&d.dehydrated!==null){if(e===null){if(!re)throw Error(n(318));if(re=t.memoizedState,re=re!==null?re.dehydrated:null,!re)throw Error(n(317));re[Ni]=t}else Bi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Kr(t),re=!1}else pi!==null&&(zh(pi),pi=null),re=!0;if(!re)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=a,t):(d=d!==null,d!==(e!==null&&e.memoizedState!==null)&&d&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(hr.current&1)!==0?Or===0&&(Or=3):Uh())),t.updateQueue!==null&&(t.flags|=4),Kr(t),null);case 4:return Ws(),Ah(e,t),e===null&&Os(t.stateNode.containerInfo),Kr(t),null;case 10:return mc(t.type._context),Kr(t),null;case 17:return Pn(t.type)&&cc(),Kr(t),null;case 19:if(ir(hr),re=t.memoizedState,re===null)return Kr(t),null;if(d=(t.flags&128)!==0,ye=re.rendering,ye===null)if(d)pl(re,!1);else{if(Or!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(ye=wo(e),ye!==null){for(t.flags|=128,pl(re,!1),d=ye.updateQueue,d!==null&&(t.updateQueue=d,t.flags|=4),t.subtreeFlags=0,d=a,a=t.child;a!==null;)re=a,e=d,re.flags&=14680066,ye=re.alternate,ye===null?(re.childLanes=0,re.lanes=e,re.child=null,re.subtreeFlags=0,re.memoizedProps=null,re.memoizedState=null,re.updateQueue=null,re.dependencies=null,re.stateNode=null):(re.childLanes=ye.childLanes,re.lanes=ye.lanes,re.child=ye.child,re.subtreeFlags=0,re.deletions=null,re.memoizedProps=ye.memoizedProps,re.memoizedState=ye.memoizedState,re.updateQueue=ye.updateQueue,re.type=ye.type,e=ye.dependencies,re.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),a=a.sibling;return tr(hr,hr.current&1|2),t.child}e=e.sibling}re.tail!==null&&cr()>Mo&&(t.flags|=128,d=!0,pl(re,!1),t.lanes=4194304)}else{if(!d)if(e=wo(ye),e!==null){if(t.flags|=128,d=!0,a=e.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),pl(re,!0),re.tail===null&&re.tailMode==="hidden"&&!ye.alternate&&!sr)return Kr(t),null}else 2*cr()-re.renderingStartTime>Mo&&a!==1073741824&&(t.flags|=128,d=!0,pl(re,!1),t.lanes=4194304);re.isBackwards?(ye.sibling=t.child,t.child=ye):(a=re.last,a!==null?a.sibling=ye:t.child=ye,re.last=ye)}return re.tail!==null?(t=re.tail,re.rendering=t,re.tail=t.sibling,re.renderingStartTime=cr(),t.sibling=null,a=hr.current,tr(hr,d?a&1|2:a&1),t):(Kr(t),null);case 22:case 23:return Wh(),d=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==d&&(t.flags|=8192),d&&(t.mode&1)!==0?(Bn&1073741824)!==0&&(Kr(t),t.subtreeFlags&6&&(t.flags|=8192)):Kr(t),null;case 24:return null;case 25:return null}throw Error(n(156,t.tag))}function _m(e,t){switch(vo(t),t.tag){case 1:return Pn(t.type)&&cc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ws(),ir(kn),ir(rn),bc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return vc(t),null;case 13:if(ir(hr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(n(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ir(hr),null;case 4:return Ws(),null;case 10:return mc(t.type._context),null;case 22:case 23:return Wh(),null;case 24:return null;default:return null}}var _c=!1,dr=!1,gn=typeof WeakSet=="function"?WeakSet:Set,at=null;function Ca(e,t){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(d){mr(e,t,d)}else a.current=null}function ml(e,t,a){try{a()}catch(d){mr(e,t,d)}}var Of=!1;function Dm(e,t){if(Va=$l,e=Vt(),$a(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var d=a.getSelection&&a.getSelection();if(d&&d.rangeCount!==0){a=d.anchorNode;var z=d.anchorOffset,re=d.focusNode;d=d.focusOffset;try{a.nodeType,re.nodeType}catch{a=null;break e}var ye=0,Ae=-1,je=-1,Ue=0,Je=0,tt=e,Qe=null;t:for(;;){for(var st;tt!==a||z!==0&&tt.nodeType!==3||(Ae=ye+z),tt!==re||d!==0&&tt.nodeType!==3||(je=ye+d),tt.n
vendor: 15,381 bytes, line 40
40odeType===3&&(ye+=tt.nodeValue.length),(st=tt.firstChild)!==null;)Qe=tt,tt=st;for(;;){if(tt===e)break t;if(Qe===a&&++Ue===z&&(Ae=ye),Qe===re&&++Je===d&&(je=ye),(st=tt.nextSibling)!==null)break;tt=Qe,Qe=tt.parentNode}tt=st}a=Ae===-1||je===-1?null:{start:Ae,end:je}}else a=null}a=a||{start:0,end:0}}else a=null;for(mo={focusedElem:e,selectionRange:a},$l=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){t=at;try{var lt=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(lt!==null){var ut=lt.memoizedProps,Cr=lt.memoizedState,Fe=t.stateNode,De=Fe.getSnapshotBeforeUpdate(t.elementType===t.type?ut:Qn(t.type,ut),Cr);Fe.__reactInternalSnapshotBeforeUpdate=De}break;case 3:var ze=t.stateNode.containerInfo;ze.nodeType===1?ze.textContent="":ze.nodeType===9&&ze.documentElement&&ze.removeChild(ze.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(rt){mr(t,t.return,rt)}if(e=t.sibling,e!==null){e.return=t.return,at=e;break}at=t.return}return lt=Of,Of=!1,lt}function gs(e,t,a){var d=t.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var z=d=d.next;do{if((z.tag&e)===e){var re=z.destroy;z.destroy=void 0,re!==void 0&&ml(t,a,re)}z=z.next}while(z!==d)}}function gl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var a=t=t.next;do{if((a.tag&e)===e){var d=a.create;a.destroy=d()}a=a.next}while(a!==t)}}function Dc(e){var t=e.ref;if(t!==null){var a=e.stateNode;switch(e.tag){case 5:e=a;break;default:e=a}typeof t=="function"?t(e):t.current=e}}function _f(e){var t=e.alternate;t!==null&&(e.alternate=null,_f(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ni],delete t[Is],delete t[ac],delete t[we],delete t[la])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Df(e){return e.tag===5||e.tag===3||e.tag===4}function If(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Df(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Rh(e,t,a){var d=e.tag;if(d===5||d===6)e=e.stateNode,t?a.nodeType===8?a.parentNode.insertBefore(e,t):a.insertBefore(e,t):(a.nodeType===8?(t=a.parentNode,t.insertBefore(e,a)):(t=a,t.appendChild(e)),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=sc));else if(d!==4&&(e=e.child,e!==null))for(Rh(e,t,a),e=e.sibling;e!==null;)Rh(e,t,a),e=e.sibling}function Ic(e,t,a){var d=e.tag;if(d===5||d===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(d!==4&&(e=e.child,e!==null))for(Ic(e,t,a),e=e.sibling;e!==null;)Ic(e,t,a),e=e.sibling}var Fr=null,yi=!1;function Yi(e,t,a){for(a=a.child;a!==null;)jh(e,t,a),a=a.sibling}function jh(e,t,a){if(Li&&typeof Li.onCommitFiberUnmount=="function")try{Li.onCommitFiberUnmount(_l,a)}catch{}switch(a.tag){case 5:dr||Ca(a,t);case 6:var d=Fr,z=yi;Fr=null,Yi(e,t,a),Fr=d,yi=z,Fr!==null&&(yi?(e=Fr,a=a.stateNode,e.nodeType===8?e.parentNode.removeChild(a):e.removeChild(a)):Fr.removeChild(a.stateNode));break;case 18:Fr!==null&&(yi?(e=Fr,a=a.stateNode,e.nodeType===8?eh(e.parentNode,a):e.nodeType===1&&eh(e,a),$t(e)):eh(Fr,a.stateNode));break;case 4:d=Fr,z=yi,Fr=a.stateNode.containerInfo,yi=!0,Yi(e,t,a),Fr=d,yi=z;break;case 0:case 11:case 14:case 15:if(!dr&&(d=a.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){z=d=d.next;do{var re=z,ye=re.destroy;re=re.tag,ye!==void 0&&((re&2)!==0||(re&4)!==0)&&ml(a,t,ye),z=z.next}while(z!==d)}Yi(e,t,a);break;case 1:if(!dr&&(Ca(a,t),d=a.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=a.memoizedProps,d.state=a.memoizedState,d.componentWillUnmount()}catch(Ae){mr(a,t,Ae)}Yi(e,t,a);break;case 21:Yi(e,t,a);break;case 22:a.mode&1?(dr=(d=dr)||a.memoizedState!==null,Yi(e,t,a),dr=d):Yi(e,t,a);break;default:Yi(e,t,a)}}function ka(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new gn),t.forEach(function(d){var z=Um.bind(null,e,d);a.has(d)||(a.add(d),d.then(z,z))})}}function In(e,t){var a=t.deletions;if(a!==null)for(var d=0;d<a.length;d++){var z=a[d];try{var re=e,ye=t,Ae=ye;e:for(;Ae!==null;){switch(Ae.tag){case 5:Fr=Ae.stateNode,yi=!1;break e;case 3:Fr=Ae.stateNode.containerInfo,yi=!0;break e;case 4:Fr=Ae.stateNode.containerInfo,yi=!0;break e}Ae=Ae.return}if(Fr===null)throw Error(n(160));jh(re,ye,z),Fr=null,yi=!1;var je=z.alternate;je!==null&&(je.return=null),z.return=null}catch(Ue){mr(z,t,Ue)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Nh(t,e),t=t.sibling}function Nh(e,t){var a=e.alternate,d=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(In(t,e),xi(e),d&4){try{gs(3,e,e.return),gl(3,e)}catch(ut){mr(e,e.return,ut)}try{gs(5,e,e.return)}catch(ut){mr(e,e.return,ut)}}break;case 1:In(t,e),xi(e),d&512&&a!==null&&Ca(a,a.return);break;case 5:if(In(t,e),xi(e),d&512&&a!==null&&Ca(a,a.return),e.flags&32){var z=e.stateNode;try{Te(z,"")}catch(ut){mr(e,e.return,ut)}}if(d&4&&(z=e.stateNode,z!=null)){var re=e.memoizedProps,ye=a!==null?a.memoizedProps:re,Ae=e.type,je=e.updateQueue;if(e.updateQueue=null,je!==null)try{Ae==="input"&&re.type==="radio"&&re.name!=null&&se(z,re),Ge(Ae,ye);var Ue=Ge(Ae,re);for(ye=0;ye<je.length;ye+=2){var Je=je[ye],tt=je[ye+1];Je==="style"?We(z,tt):Je==="dangerouslySetInnerHTML"?be(z,tt):Je==="children"?Te(z,tt):w(z,Je,tt,Ue)}switch(Ae){case"input":ae(z,re);break;case"textarea":de(z,re);break;case"select":var Qe=z._wrapperState.wasMultiple;z._wrapperState.wasMultiple=!!re.multiple;var st=re.value;st!=null?ke(z,!!re.multiple,st,!1):Qe!==!!re.multiple&&(re.defaultValue!=null?ke(z,!!re.multiple,re.defaultValue,!0):ke(z,!!re.multiple,re.multiple?[]:"",!1))}z[Is]=re}catch(ut){mr(e,e.return,ut)}}break;case 6:if(In(t,e),xi(e),d&4){if(e.stateNode===null)throw Error(n(162));z=e.stateNode,re=e.memoizedProps;try{z.nodeValue=re}catch(ut){mr(e,e.return,ut)}}break;case 3:if(In(t,e),xi(e),d&4&&a!==null&&a.memoizedState.isDehydrated)try{$t(t.containerInfo)}catch(ut){mr(e,e.return,ut)}break;case 4:In(t,e),xi(e);break;case 13:In(t,e),xi(e),z=e.child,z.flags&8192&&(re=z.memoizedState!==null,z.stateNode.isHidden=re,!re||z.alternate!==null&&z.alternate.memoizedState!==null||(Dh=cr())),d&4&&ka(e);break;case 22:if(Je=a!==null&&a.memoizedState!==null,e.mode&1?(dr=(Ue=dr)||Je,In(t,e),dr=Ue):In(t,e),xi(e),d&8192){if(Ue=e.memoizedState!==null,(e.stateNode.isHidden=Ue)&&!Je&&(e.mode&1)!==0)for(at=e,Je=e.child;Je!==null;){for(tt=at=Je;at!==null;){switch(Qe=at,st=Qe.child,Qe.tag){case 0:case 11:case 14:case 15:gs(4,Qe,Qe.return);break;case 1:Ca(Qe,Qe.return);var lt=Qe.stateNode;if(typeof lt.componentWillUnmount=="function"){d=Qe,a=Qe.return;try{t=d,lt.props=t.memoizedProps,lt.state=t.memoizedState,lt.componentWillUnmount()}catch(ut){mr(d,a,ut)}}break;case 5:Ca(Qe,Qe.return);break;case 22:if(Qe.memoizedState!==null){Ys(tt);continue}}st!==null?(st.return=Qe,at=st):Ys(tt)}Je=Je.sibling}e:for(Je=null,tt=e;;){if(tt.tag===5){if(Je===null){Je=tt;try{z=tt.stateNode,Ue?(re=z.style,typeof re.setProperty=="function"?re.setProperty("display","none","important"):re.display="none"):(Ae=tt.stateNode,je=tt.memoizedProps.style,ye=je!=null&&je.hasOwnProperty("display")?je.display:null,Ae.style.display=_e("display",ye))}catch(ut){mr(e,e.return,ut)}}}else if(tt.tag===6){if(Je===null)try{tt.stateNode.nodeValue=Ue?"":tt.memoizedProps}catch(ut){mr(e,e.return,ut)}}else if((tt.tag!==22&&tt.tag!==23||tt.memoizedState===null||tt===e)&&tt.child!==null){tt.child.return=tt,tt=tt.child;continue}if(tt===e)break e;for(;tt.sibling===null;){if(tt.return===null||tt.return===e)break e;Je===tt&&(Je=null),tt=tt.return}Je===tt&&(Je=null),tt.sibling.return=tt.return,tt=tt.sibling}}break;case 19:In(t,e),xi(e),d&4&&ka(e);break;case 21:break;default:In(t,e),xi(e)}}function xi(e){var t=e.flags;if(t&2){try{e:{for(var a=e.return;a!==null;){if(Df(a)){var d=a;break e}a=a.return}throw Error(n(160))}switch(d.tag){case 5:var z=d.stateNode;d.flags&32&&(Te(z,""),d.flags&=-33);var re=If(e);Ic(e,re,z);break;case 3:case 4:var ye=d.stateNode.containerInfo,Ae=If(e);Rh(e,Ae,ye);break;default:throw Error(n(161))}}catch(je){mr(e,e.return,je)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bc(e,t,a){at=e,Oh(e)}function Oh(e,t,a){for(var d=(e.mode&1)!==0;at!==null;){var z=at,re=z.child;if(z.tag===22&&d){var ye=z.memoizedState!==null||_c;if(!ye){var Ae=z.alternate,je=Ae!==null&&Ae.memoizedState!==null||dr;Ae=_c;var Ue=dr;if(_c=ye,(dr=je)&&!Ue)for(at=z;at!==null;)ye=at,je=ye.child,ye.tag===22&&ye.memoizedState!==null?Bf(z):je!==null?(je.return=ye,at=je):Bf(z);for(;re!==null;)at=re,Oh(re),re=re.sibling;at=z,_c=Ae,dr=Ue}vi(e)}else(z.subtreeFlags&8772)!==0&&re!==null?(re.return=z,at=re):vi(e)}}function vi(e){for(;at!==null;){var t=at;if((t.flags&8772)!==0){var a=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:dr||gl(5,t);break;case 1:var d=t.stateNode;if(t.flags&4&&!dr)if(a===null)d.componentDidMount();else{var z=t.elementType===t.type?a.memoizedProps:Qn(t.type,a.memoizedProps);d.componentDidUpdate(z,a.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var re=t.updateQueue;re!==null&&oh(t,re,d);break;case 3:var ye=t.updateQueue;if(ye!==null){if(a=null,t.child!==null)switch(t.child.tag){case 5:a=t.child.stateNode;break;case 1:a=t.child.stateNode}oh(t,ye,a)}break;case 5:var Ae=t.stateNode;if(a===null&&t.flags&4){a=Ae;var je=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":je.autoFocus&&a.focus();break;case"img":je.src&&(a.src=je.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var Ue=t.alternate;if(Ue!==null){var Je=Ue.memoizedState;if(Je!==null){var tt=Je.dehydrated;tt!==null&&$t(tt)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}dr||t.flags&512&&Dc(t)}catch(Qe){mr(t,t.return,Qe)}}if(t===e){at=null;break}if(a=t.sibling,a!==null){a.return=t.return,at=a;break}at=t.return}}function Ys(e){for(;at!==null;){var t=at;if(t===e){at=null;break}var a=t.sibling;if(a!==null){a.return=t.return,at=a;break}at=t.return}}function Bf(e){for(;at!==null;){var t=at;try{switch(t.tag){case 0:case 11:case 15:var a=t.return;try{gl(4,t)}catch(je){mr(t,a,je)}break;case 1:var d=t.stateNode;if(typeof d.componentDidMount=="function"){var z=t.return;try{d.componentDidMount()}catch(je){mr(t,z,je)}}var re=t.return;try{Dc(t)}catch(je){mr(t,re,je)}break;case 5:var ye=t.return;try{Dc(t)}catch(je){mr(t,ye,je)}}}catch(je){mr(t,t.return,je)}if(t===e){at=null;break}var Ae=t.sibling;if(Ae!==null){Ae.return=t.return,at=Ae;break}at=t.return}}var Ff=Math.ceil,Fc=k.ReactCurrentDispatcher,_h=k.ReactCurrentOwner,Jn=k.ReactCurrentBatchConfig,Ot=0,zr=null,Ar=null,Zr=0,Bn=0,Pa=Cn(0),Or=0,yl=null,Xs=0,xl=0,zc=0,vl=null,Tn=null,Dh=0,Mo=1/0,ys=null,$c=!1,Ih=null,Gs=null,Wc=!1,Vs=null,yn=0,bl=0,Bh=null,Uc=-1,Sl=0;function xn(){return(Ot&6)!==0?cr():Uc!==-1?Uc:Uc=cr()}function qs(e){return(e.mode&1)===0?1:(Ot&2)!==0&&Zr!==0?Zr&-Zr:xf.transition!==null?(Sl===0&&(Sl=ju()),Sl):(e=zt,e!==0||(e=window.event,e=e===void 0?16:Ud(e.type)),e)}function bi(e,t,a,d){if(50<bl)throw bl=0,Bh=null,Error(n(185));_a(e,a,d),((Ot&2)===0||e!==zr)&&(e===zr&&((Ot&2)===0&&(xl|=a),Or===4&&Ks(e,Zr)),An(e,d),a===1&&Ot===0&&(t.mode&1)===0&&(Mo=cr()+500,uc&&Fs()))}function An(e,t){var a=e.callbackNode;fm(e,t);var d=ao(e,e===zr?Zr:0);if(d===0)a!==null&&Rd(a),e.callbackNode=null,e.callbackPriority=0;else if(t=d&-d,e.callbackPriority!==t){if(a!=null&&Rd(a),t===1)e.tag===0?go(zf.bind(null,e)):mf(zf.bind(null,e)),oc(function(){(Ot&6)===0&&Fs()}),a=null;else{switch(lo(d)){case 1:a=Lu;break;case 4:a=jd;break;case 16:a=Na;break;case 536870912:a=Ru;break;default:a=Na}a=Gf(a,Hc.bind(null,e))}e.callbackPriority=t,e.callbackNode=a}}function Hc(e,t){if(Uc=-1,Sl=0,(Ot&6)!==0)throw Error(n(327));var a=e.callbackNode;if(Ea()&&e.callbackNode!==a)return null;var d=ao(e,e===zr?Zr:0);if(d===0)return null;if((d&30)!==0||(d&e.expiredLanes)!==0||t)t=Yc(e,d);else{t=d;var z=Ot;Ot|=2;var re=Wf();(zr!==e||Zr!==t)&&(ys=null,Mo=cr()+500,Ao(e,t));do try{Fm();break}catch(Ae){$f(e,Ae)}while(!0);cs(),Fc.current=re,Ot=z,Ar!==null?t=0:(zr=null,Zr=0,t=Or)}if(t!==0){if(t===2&&(z=Il(e),z!==0&&(d=z,t=Fh(e,z))),t===1)throw a=yl,Ao(e,0),Ks(e,d),An(e,cr()),a;if(t===6)Ks(e,d);else{if(z=e.current.alternate,(d&30)===0&&!Im(z)&&(t=Yc(e,d),t===2&&(re=Il(e),re!==0&&(d=re,t=Fh(e,re))),t===1))throw a=yl,Ao(e,0),Ks(e,d),An(e,cr()),a;switch(e.finishedWork=z,e.finishedLanes=d,t){case 0:case 1:throw Error(n(345));case 2:Lo(e,Tn,ys);break;case 3:if(Ks(e,d),(d&130023424)===d&&(t=Dh+500-cr(),10<t)){if(ao(e,0)!==0)break;if(z=e.suspendedLanes,(z&d)!==d){xn(),e.pingedLanes|=e.suspendedLanes&z;break}e.timeoutHandle=_s(Lo.bind(null,e,Tn,ys),t);break}Lo(e,Tn,ys);break;case 4:if(Ks(e,d),(d&4194240)===d)break;for(t=e.eventTimes,z=-1;0<d;){var ye=31-di(d);re=1<<ye,ye=t[ye],ye>z&&(z=ye),d&=~re}if(d=z,d=cr()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*Ff(d/1960))-d,10<d){e.timeoutHandle=_s(Lo.bind(null,e,Tn,ys),d);break}Lo(e,Tn,ys);break;case 5:Lo(e,Tn,ys);break;default:throw Error(n(329))}}}return An(e,cr()),e.callbackNode===a?Hc.bind(null,e):null}function Fh(e,t){var a=vl;return e.current.memoizedState.isDehydrated&&(Ao(e,t).flags|=256),e=Yc(e,t),e!==2&&(t=Tn,Tn=a,t!==null&&zh(t)),e}function zh(e){Tn===null?Tn=e:Tn.push.apply(Tn,e)}function Im(e){for(var t=e;;){if(t.flags&16384){var a=t.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var d=0;d<a.length;d++){var z=a[d],re=z.getSnapshot;z=z.value;try{if(!$e(re(),z))return!1}catch{return!1}}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ks(e,t){for(t&=~zc,t&=~xl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var a=31-di(t),d=1<<a;e[a]=-1,t&=~d}}function zf(e){if((Ot&6)!==0)throw Error(n(327));Ea();var t=ao(e,0);if((t&1)===0)return An(e,cr()),null;var a=Yc(e,t);if(e.tag!==0&&a===2){var d=Il(e);d!==0&&(t=d,a=Fh(e,d))}if(a===1)throw a=yl,Ao(e,0),Ks(e,t),An(e,cr()),a;if(a===6)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Lo(e,Tn,ys),An(e,cr()),null}function $h(e,t){var a=Ot;Ot|=1;try{return e(t)}finally{Ot=a,Ot===0&&(Mo=cr()+500,uc&&Fs())}}function To(e){Vs!==null&&Vs.tag===0&&(Ot&6)===0&&Ea();var t=Ot;Ot|=1;var a=Jn.transition,d=zt;try{if(Jn.transition=null,zt=1,e)return e()}finally{zt=d,Jn.transition=a,Ot=t,(Ot&6)===0&&Fs()}}function Wh(){Bn=Pa.current,ir(Pa)}function Ao(e,t){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;if(a!==-1&&(e.timeoutHandle=-1,Ka(a)),Ar!==null)for(a=Ar.return;a!==null;){var d=a;switch(vo(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&cc();break;case 3:Ws(),ir(kn),ir(rn),bc();break;case 5:vc(d);break;case 4:Ws();break;case 13:ir(hr);break;case 19:ir(hr);break;case 10:mc(d.type._context);break;case 22:case 23:Wh()}a=a.return}if(zr=e,Ar=e=Si(e.current,null),Zr=Bn=t,Or=0,yl=null,zc=xl=Xs=0,Tn=vl=null,So!==null){for(t=0;t<So.length;t++)if(a=So[t],d=a.interleaved,d!==null){a.interleaved=null;var z=d.next,re=a.pending;if(re!==null){var ye=re.next;
vendor: 7,152 bytes, line 40
40re.next=z,d.next=ye}a.pending=d}So=null}return e}function $f(e,t){do{var a=Ar;try{if(cs(),nl.current=Ec,ma){for(var d=pr.memoizedState;d!==null;){var z=d.queue;z!==null&&(z.pending=null),d=d.next}ma=!1}if(Us=0,Nr=wr=pr=null,il=!1,Co=0,_h.current=null,a===null||a.return===null){Or=1,yl=t,Ar=null;break}e:{var re=e,ye=a.return,Ae=a,je=t;if(t=Zr,Ae.flags|=32768,je!==null&&typeof je=="object"&&typeof je.then=="function"){var Ue=je,Je=Ae,tt=Je.tag;if((Je.mode&1)===0&&(tt===0||tt===11||tt===15)){var Qe=Je.alternate;Qe?(Je.updateQueue=Qe.updateQueue,Je.memoizedState=Qe.memoizedState,Je.lanes=Qe.lanes):(Je.updateQueue=null,Je.memoizedState=null)}var st=Af(ye);if(st!==null){st.flags&=-257,wh(st,ye,Ae,re,t),st.mode&1&&cl(re,Ue,t),t=st,je=Ue;var lt=t.updateQueue;if(lt===null){var ut=new Set;ut.add(je),t.updateQueue=ut}else lt.add(je);break e}else{if((t&1)===0){cl(re,Ue,t),Uh();break e}je=Error(n(426))}}else if(sr&&Ae.mode&1){var Cr=Af(ye);if(Cr!==null){(Cr.flags&65536)===0&&(Cr.flags|=256),wh(Cr,ye,Ae,re,t),Fi(Eo(je,Ae));break e}}re=je=Eo(je,Ae),Or!==4&&(Or=2),vl===null?vl=[re]:vl.push(re),re=ye;do{switch(re.tag){case 3:re.flags|=65536,t&=-t,re.lanes|=t;var Fe=ll(re,je,t);Sf(re,Fe);break e;case 1:Ae=je;var De=re.type,ze=re.stateNode;if((re.flags&128)===0&&(typeof De.getDerivedStateFromError=="function"||ze!==null&&typeof ze.componentDidCatch=="function"&&(Gs===null||!Gs.has(ze)))){re.flags|=65536,t&=-t,re.lanes|=t;var rt=Rc(re,Ae,t);Sf(re,rt);break e}}re=re.return}while(re!==null)}Hf(a)}catch(ht){t=ht,Ar===a&&a!==null&&(Ar=a=a.return);continue}break}while(!0)}function Wf(){var e=Fc.current;return Fc.current=Ec,e===null?Ec:e}function Uh(){(Or===0||Or===3||Or===2)&&(Or=4),zr===null||(Xs&268435455)===0&&(xl&268435455)===0||Ks(zr,Zr)}function Yc(e,t){var a=Ot;Ot|=2;var d=Wf();(zr!==e||Zr!==t)&&(ys=null,Ao(e,t));do try{Bm();break}catch(z){$f(e,z)}while(!0);if(cs(),Ot=a,Fc.current=d,Ar!==null)throw Error(n(261));return zr=null,Zr=0,Or}function Bm(){for(;Ar!==null;)Uf(Ar)}function Fm(){for(;Ar!==null&&!Ol();)Uf(Ar)}function Uf(e){var t=Xf(e.alternate,e,Bn);e.memoizedProps=e.pendingProps,t===null?Hf(e):Ar=t,_h.current=null}function Hf(e){var t=e;do{var a=t.alternate;if(e=t.return,(t.flags&32768)===0){if(a=Om(a,t,Bn),a!==null){Ar=a;return}}else{if(a=_m(a,t),a!==null){a.flags&=32767,Ar=a;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Or=6,Ar=null;return}}if(t=t.sibling,t!==null){Ar=t;return}Ar=t=e}while(t!==null);Or===0&&(Or=5)}function Lo(e,t,a){var d=zt,z=Jn.transition;try{Jn.transition=null,zt=1,zm(e,t,a,d)}finally{Jn.transition=z,zt=d}return null}function zm(e,t,a,d){do Ea();while(Vs!==null);if((Ot&6)!==0)throw Error(n(327));a=e.finishedWork;var z=e.finishedLanes;if(a===null)return null;if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var re=a.lanes|a.childLanes;if(Bd(e,re),e===zr&&(Ar=zr=null,Zr=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Wc||(Wc=!0,Gf(Na,function(){return Ea(),null})),re=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||re){re=Jn.transition,Jn.transition=null;var ye=zt;zt=1;var Ae=Ot;Ot|=4,_h.current=null,Dm(e,a),Nh(a,e),Lm(mo),$l=!!Va,mo=Va=null,e.current=a,Bc(a),um(),Ot=Ae,zt=ye,Jn.transition=re}else e.current=a;if(Wc&&(Wc=!1,Vs=e,yn=z),re=e.pendingLanes,re===0&&(Gs=null),dm(a.stateNode),An(e,cr()),t!==null)for(d=e.onRecoverableError,a=0;a<t.length;a++)z=t[a],d(z.value,{componentStack:z.stack,digest:z.digest});if($c)throw $c=!1,e=Ih,Ih=null,e;return(yn&1)!==0&&e.tag!==0&&Ea(),re=e.pendingLanes,(re&1)!==0?e===Bh?bl++:(bl=0,Bh=e):bl=0,Fs(),null}function Ea(){if(Vs!==null){var e=lo(yn),t=Jn.transition,a=zt;try{if(Jn.transition=null,zt=16>e?16:e,Vs===null)var d=!1;else{if(e=Vs,Vs=null,yn=0,(Ot&6)!==0)throw Error(n(331));var z=Ot;for(Ot|=4,at=e.current;at!==null;){var re=at,ye=re.child;if((at.flags&16)!==0){var Ae=re.deletions;if(Ae!==null){for(var je=0;je<Ae.length;je++){var Ue=Ae[je];for(at=Ue;at!==null;){var Je=at;switch(Je.tag){case 0:case 11:case 15:gs(8,Je,re)}var tt=Je.child;if(tt!==null)tt.return=Je,at=tt;else for(;at!==null;){Je=at;var Qe=Je.sibling,st=Je.return;if(_f(Je),Je===Ue){at=null;break}if(Qe!==null){Qe.return=st,at=Qe;break}at=st}}}var lt=re.alternate;if(lt!==null){var ut=lt.child;if(ut!==null){lt.child=null;do{var Cr=ut.sibling;ut.sibling=null,ut=Cr}while(ut!==null)}}at=re}}if((re.subtreeFlags&2064)!==0&&ye!==null)ye.return=re,at=ye;else e:for(;at!==null;){if(re=at,(re.flags&2048)!==0)switch(re.tag){case 0:case 11:case 15:gs(9,re,re.return)}var Fe=re.sibling;if(Fe!==null){Fe.return=re.return,at=Fe;break e}at=re.return}}var De=e.current;for(at=De;at!==null;){ye=at;var ze=ye.child;if((ye.subtreeFlags&2064)!==0&&ze!==null)ze.return=ye,at=ze;else e:for(ye=De;at!==null;){if(Ae=at,(Ae.flags&2048)!==0)try{switch(Ae.tag){case 0:case 11:case 15:gl(9,Ae)}}catch(ht){mr(Ae,Ae.return,ht)}if(Ae===ye){at=null;break e}var rt=Ae.sibling;if(rt!==null){rt.return=Ae.return,at=rt;break e}at=Ae.return}}if(Ot=z,Fs(),Li&&typeof Li.onPostCommitFiberRoot=="function")try{Li.onPostCommitFiberRoot(_l,e)}catch{}d=!0}return d}finally{zt=a,Jn.transition=t}}return!1}function Xc(e,t,a){t=Eo(a,t),t=ll(e,t,1),e=Kn(e,t,1),t=xn(),e!==null&&(_a(e,1,t),An(e,t))}function mr(e,t,a){if(e.tag===3)Xc(e,e,a);else for(;t!==null;){if(t.tag===3){Xc(t,e,a);break}else if(t.tag===1){var d=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Gs===null||!Gs.has(d))){e=Eo(a,e),e=Rc(t,e,1),t=Kn(t,e,1),e=xn(),t!==null&&(_a(t,1,e),An(t,e));break}}t=t.return}}function $m(e,t,a){var d=e.pingCache;d!==null&&d.delete(t),t=xn(),e.pingedLanes|=e.suspendedLanes&a,zr===e&&(Zr&a)===a&&(Or===4||Or===3&&(Zr&130023424)===Zr&&500>cr()-Dh?Ao(e,0):zc|=a),An(e,t)}function Yf(e,t){t===0&&((e.mode&1)===0?t=1:(t=Dl,Dl<<=1,(Dl&130023424)===0&&(Dl=4194304)));var a=xn();e=us(e,t),e!==null&&(_a(e,t,a),An(e,a))}function Wm(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Yf(e,a)}function Um(e,t){var a=0;switch(e.tag){case 13:var d=e.stateNode,z=e.memoizedState;z!==null&&(a=z.retryLane);break;case 19:d=e.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(t),Yf(e,a)}var Xf;Xf=function(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps||kn.current)mn=!0;else{if((e.lanes&a)===0&&(t.flags&128)===0)return mn=!1,jf(e,t,a);mn=(e.flags&131072)!==0}else mn=!1,sr&&(t.flags&1048576)!==0&&gf(t,dc,t.index);switch(t.lanes=0,t.tag){case 2:var d=t.type;Oc(e,t),e=t.pendingProps;var z=ua(t,rn.current);$s(t,a),z=ko(null,t,d,e,z,a);var re=Sc();return t.flags|=1,typeof z=="object"&&z!==null&&typeof z.render=="function"&&z.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pn(d)?(re=!0,Yn(t)):re=!1,t.memoizedState=z.state!==null&&z.state!==void 0?z.state:null,yc(t),z.updater=Ac,t.stateNode=z,z._reactInternals=t,Sh(t,d,e,a),t=Th(null,t,d,!0,re,a)):(t.tag=0,sr&&re&&Za(t),Vr(null,t,z,a),t=t.child),t;case 16:d=t.elementType;e:{switch(Oc(e,t),e=t.pendingProps,z=d._init,d=z(d._payload),t.type=d,z=t.tag=Ym(d),e=Qn(d,e),z){case 0:t=Eh(null,t,d,e,a);break e;case 1:t=Mh(null,t,d,e,a);break e;case 11:t=Lf(null,t,d,e,a);break e;
vendor: 9,327 bytes, line 40
40case 14:t=Ch(null,t,d,Qn(d.type,e),a);break e}throw Error(n(306,d,""))}return t;case 0:return d=t.type,z=t.pendingProps,z=t.elementType===d?z:Qn(d,z),Eh(e,t,d,z,a);case 1:return d=t.type,z=t.pendingProps,z=t.elementType===d?z:Qn(d,z),Mh(e,t,d,z,a);case 3:e:{if(Rf(t),e===null)throw Error(n(387));d=t.pendingProps,re=t.memoizedState,z=re.element,bf(e,t),fa(t,d,null,a);var ye=t.memoizedState;if(d=ye.element,re.isDehydrated)if(re={element:d,isDehydrated:!1,cache:ye.cache,pendingSuspenseBoundaries:ye.pendingSuspenseBoundaries,transitions:ye.transitions},t.updateQueue.baseState=re,t.memoizedState=re,t.flags&256){z=Eo(Error(n(423)),t),t=Hi(e,t,d,a,z);break e}else if(d!==z){z=Eo(Error(n(424)),t),t=Hi(e,t,d,a,z);break e}else for(_n=Ds(t.stateNode.containerInfo.firstChild),sn=t,sr=!0,pi=null,a=pc(t,null,d,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Bi(),d===z){t=gi(e,t,a);break e}Vr(e,t,d,a)}t=t.child}return t;case 5:return lh(t),e===null&&En(t),d=t.type,z=t.pendingProps,re=e!==null?e.memoizedProps:null,ye=z.children,qa(d,z)?ye=null:re!==null&&qa(d,re)&&(t.flags|=32),Ph(e,t),Vr(e,t,ye,a),t.child;case 6:return e===null&&En(t),null;case 13:return Nc(e,t,a);case 4:return ah(t,t.stateNode.containerInfo),d=t.pendingProps,e===null?t.child=vr(t,null,d,a):Vr(e,t,d,a),t.child;case 11:return d=t.type,z=t.pendingProps,z=t.elementType===d?z:Qn(d,z),Lf(e,t,d,z,a);case 7:return Vr(e,t,t.pendingProps,a),t.child;case 8:return Vr(e,t,t.pendingProps.children,a),t.child;case 12:return Vr(e,t,t.pendingProps.children,a),t.child;case 10:e:{if(d=t.type._context,z=t.pendingProps,re=t.memoizedProps,ye=z.value,tr(el,d._currentValue),d._currentValue=ye,re!==null)if($e(re.value,ye)){if(re.children===z.children&&!kn.current){t=gi(e,t,a);break e}}else for(re=t.child,re!==null&&(re.return=t);re!==null;){var Ae=re.dependencies;if(Ae!==null){ye=re.child;for(var je=Ae.firstContext;je!==null;){if(je.context===d){if(re.tag===1){je=hs(-1,a&-a),je.tag=2;var Ue=re.updateQueue;if(Ue!==null){Ue=Ue.shared;var Je=Ue.pending;Je===null?je.next=je:(je.next=Je.next,Je.next=je),Ue.pending=je}}re.lanes|=a,je=re.alternate,je!==null&&(je.lanes|=a),Gr(re.return,a,t),Ae.lanes|=a;break}je=je.next}}else if(re.tag===10)ye=re.type===t.type?null:re.child;else if(re.tag===18){if(ye=re.return,ye===null)throw Error(n(341));ye.lanes|=a,Ae=ye.alternate,Ae!==null&&(Ae.lanes|=a),Gr(ye,a,t),ye=re.sibling}else ye=re.child;if(ye!==null)ye.return=re;else for(ye=re;ye!==null;){if(ye===t){ye=null;break}if(re=ye.sibling,re!==null){re.return=ye.return,ye=re;break}ye=ye.return}re=ye}Vr(e,t,z.children,a),t=t.child}return t;case 9:return z=t.type,d=t.pendingProps.children,$s(t,a),z=Vn(z),d=d(z),t.flags|=1,Vr(e,t,d,a),t.child;case 14:return d=t.type,z=Qn(d,t.pendingProps),z=Qn(d.type,z),Ch(e,t,d,z,a);case 15:return Ui(e,t,t.type,t.pendingProps,a);case 17:return d=t.type,z=t.pendingProps,z=t.elementType===d?z:Qn(d,z),Oc(e,t),t.tag=1,Pn(d)?(e=!0,Yn(t)):e=!1,$s(t,a),Po(t,d,z),Sh(t,d,z,a),Th(null,t,d,!0,e,a);case 19:return Hs(e,t,a);case 22:return kh(e,t,a)}throw Error(n(156,t.tag))};function Gf(e,t){return oo(e,t)}function Hm(e,t,a,d){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ei(e,t,a,d){return new Hm(e,t,a,d)}function Gc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ym(e){if(typeof e=="function")return Gc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$)return 11;if(e===f)return 14}return 2}function Si(e,t){var a=e.alternate;return a===null?(a=ei(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&14680064,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function Vc(e,t,a,d,z,re){var ye=2;if(d=e,typeof e=="function")Gc(e)&&(ye=1);else if(typeof e=="string")ye=5;else e:switch(e){case m:return Ro(a.children,z,re,t);case q:ye=8,z|=8;break;case V:return e=ei(12,a,t,z|2),e.elementType=V,e.lanes=re,e;case P:return e=ei(13,a,t,z),e.elementType=P,e.lanes=re,e;case h:return e=ei(19,a,t,z),e.elementType=h,e.lanes=re,e;case v:return qc(a,z,re,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:ye=10;break e;case M:ye=9;break e;case $:ye=11;break e;case f:ye=14;break e;case L:ye=16,d=null;break e}throw Error(n(130,e==null?e:typeof e,""))}return t=ei(ye,a,t,z),t.elementType=e,t.type=d,t.lanes=re,t}function Ro(e,t,a,d){return e=ei(7,e,d,t),e.lanes=a,e}function qc(e,t,a,d){return e=ei(22,e,d,t),e.elementType=v,e.lanes=a,e.stateNode={isHidden:!1},e}function Hh(e,t,a){return e=ei(6,e,null,t),e.lanes=a,e}function Yh(e,t,a){return t=ei(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xm(e,t,a,d,z){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Oa(0),this.expirationTimes=Oa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oa(0),this.identifierPrefix=d,this.onRecoverableError=z,this.mutableSourceEagerHydrationData=null}function Xh(e,t,a,d,z,re,ye,Ae,je){return e=new Xm(e,t,a,Ae,je),t===1?(t=1,re===!0&&(t|=8)):t=0,re=ei(3,null,null,t),e.current=re,re.stateNode=e,re.memoizedState={element:d,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},yc(re),e}function Gm(e,t,a){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:C,key:d==null?null:""+d,children:e,containerInfo:t,implementation:a}}function Vf(e){if(!e)return Bs;e=e._reactInternals;e:{if(Dt(e)!==e||e.tag!==1)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Pn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(n(171))}if(e.tag===1){var a=e.type;if(Pn(a))return ff(e,a,t)}return t}function qf(e,t,a,d,z,re,ye,Ae,je){return e=Xh(a,d,!0,e,z,re,ye,Ae,je),e.context=Vf(null),a=e.current,d=xn(),z=qs(a),re=hs(d,z),re.callback=t??null,Kn(a,re,z),e.current.lanes=z,_a(e,z,d),An(e,d),e}function Kc(e,t,a,d){var z=t.current,re=xn(),ye=qs(z);return a=Vf(a),t.context===null?t.context=a:t.pendingContext=a,t=hs(re,ye),t.payload={element:e},d=d===void 0?null:d,d!==null&&(t.callback=d),e=Kn(z,t,ye),e!==null&&(bi(e,z,ye,re),xc(e,z,ye)),ye}function Zc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Kf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Gh(e,t){Kf(e,t),(e=e.alternate)&&Kf(e,t)}function Vm(){return null}var Zf=typeof reportError=="function"?reportError:function(e){console.error(e)};function Qc(e){this._internalRoot=e}wl.prototype.render=Qc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(n(409));Kc(e,t,null,null)},wl.prototype.unmount=Qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;To(function(){Kc(null,e,null,null)}),t[On]=null}};function wl(e){this._internalRoot=e}wl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ou();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ls.length&&t!==0&&t<Ls[a].priority;a++);Ls.splice(a,0,e),a===0&&$d(e)}};function Vh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Jc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Qf(){}function qm(e,t,a,d,z){if(z){if(typeof d=="function"){var re=d;d=function(){var Ue=Zc(ye);re.call(Ue)}}var ye=qf(t,d,e,0,null,!1,!1,"",Qf);return e._reactRootContainer=ye,e[On]=ye.current,Os(e.nodeType===8?e.parentNode:e),To(),ye}for(;z=e.lastChild;)e.removeChild(z);if(typeof d=="function"){var Ae=d;d=function(){var Ue=Zc(je);Ae.call(Ue)}}var je=Xh(e,0,!1,null,null,!1,!1,"",Qf);return e._reactRootContainer=je,e[On]=je.current,Os(e.nodeType===8?e.parentNode:e),To(function(){Kc(t,je,a,d)}),je}function jo(e,t,a,d,z){var re=a._reactRootContainer;if(re){var ye=re;if(typeof z=="function"){var Ae=z;z=function(){var je=Zc(ye);Ae.call(je)}}Kc(t,ye,e,z)}else ye=qm(a,t,e,z,d);return Zc(ye)}Nu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var a=Xo(t.pendingLanes);a!==0&&(Da(t,a|1),An(t,cr()),(Ot&6)===0&&(Mo=cr()+500,Fs()))}break;case 13:To(function(){var d=us(e,1);if(d!==null){var z=xn();bi(d,e,1,z)}}),Gh(e,1)}},Bl=function(e){if(e.tag===13){var t=us(e,134217728);if(t!==null){var a=xn();
40bi(t,e,134217728,a)}Gh(e,134217728)}},Fd=function(e){if(e.tag===13){var t=qs(e),a=us(e,t);if(a!==null){var d=xn();bi(a,e,t,d)}Gh(e,t)}},Ou=function(){return zt},_u=function(e,t){var a=zt;try{return zt=e,t()}finally{zt=a}},ct=function(e,t,a){switch(t){case"input":if(ae(e,a),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<a.length;t++){var d=a[t];if(d!==e&&d.form===e.form){var z=lc(d);if(!z)throw Error(n(90));j(d),ae(d,z)}}}break;case"textarea":de(e,a);break;case"select":t=a.value,t!=null&&ke(e,!!a.multiple,t,!1)}},Er=$h,Qr=To;var Km={usingClientEntryPoint:!1,Events:[tn,wt,lc,fr,Jt,$h]},Cl={findFiberByHostInstance:Oi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Zm={bundleType:Cl.bundleType,version:Cl.version,rendererPackageName:Cl.rendererPackageName,rendererConfig:Cl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Xr(e),e===null?null:e.stateNode},findFiberByHostInstance:Cl.findFiberByHostInstance||Vm,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var eu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eu.isDisabled&&eu.supportsFiber)try{_l=eu.inject(Zm),Li=eu}catch{}}return ii.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Km,ii.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Vh(t))throw Error(n(200));return Gm(e,t,null,a)},ii.createRoot=function(e,t){if(!Vh(e))throw Error(n(299));var a=!1,d="",z=Zf;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(d=t.identifierPrefix),t.onRecoverableError!==void 0&&(z=t.onRecoverableError)),t=Xh(e,1,!1,null,null,a,!1,d,z),e[On]=t.current,Os(e.nodeType===8?e.parentNode:e),new Qc(t)},ii.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(n(188)):(e=Object.keys(e).join(","),Error(n(268,e)));return e=Xr(t),e=e===null?null:e.stateNode,e},ii.flushSync=function(e){return To(e)},ii.hydrate=function(e,t,a){if(!Jc(t))throw Error(n(200));return jo(null,e,t,!0,a)},ii.hydrateRoot=function(e,t,a){if(!Vh(e))throw Error(n(405));var d=a!=null&&a.hydratedSources||null,z=!1,re="",ye=Zf;if(a!=null&&(a.unstable_strictMode===!0&&(z=!0),a.identifierPrefix!==void 0&&(re=a.identifierPrefix),a.onRecoverableError!==void 0&&(ye=a.onRecoverableError)),t=qf(t,null,e,1,a??null,z,!1,re,ye),e[On]=t.current,Os(e),d)for(e=0;e<d.length;e++)a=d[e],z=a._getVersion,z=z(a._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[a,z]:t.mutableSourceEagerHydrationData.push(a,z);return new wl(t)},ii.render=function(e,t,a){if(!Jc(t))throw Error(n(200));return jo(null,e,t,!1,a)},ii.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(n(40));return e._reactRootContainer?(To(function(){jo(null,null,e,!1,function(){e._reactRootContainer=null,e[On]=null})}),!0):!1},ii.unstable_batchedUpdates=$h,ii.unstable_renderSubtreeIntoContainer=function(e,t,a,d){if(!Jc(a))throw Error(n(200));if(e==null||e._reactInternals===void 0)throw Error(n(38));return jo(e,t,a,!1,d)},ii.version="18.3.1-next-f1338f8080-20240426",ii}var py;function nv(){if(py)return dg.exports;py=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(s){console.error(s)}}return r(),dg.exports=u2(),dg.exports}var my;function h2(){if(my)return np;my=1;var r=nv();return np.createRoot=r.createRoot,np.hydrateRoot=r.hydrateRoot,np}var d2=h2();const f2=li(d2);var iv=nv();const ip=li(iv);/**
41 * @remix-run/router v1.19.1
42 *
43 * Copyright (c) Remix Software Inc.
44 *
45 * This source code is licensed under the MIT license found in the
46 * LICENSE.md file in the root directory of this source tree.
47 *
48 * @license MIT
49 */function pd(){return pd=Object.assign?Object.assign.bind():function(r){for(var s=1;s<arguments.length;s++){var n=arguments[s];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(r[c]=n[c])}return r},pd.apply(this,arguments)}var Tl;(function(r){r.Pop="POP",r.Push="PUSH",r.Replace="REPLACE"})(Tl||(Tl={}));const gy="popstate";function p2(r){r===void 0&&(r={});function s(c,l){let{pathname:u,search:x,hash:O}=c.location;return qg("",{pathname:u,search:x,hash:O},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function n(c,l){return typeof l=="string"?l:sv(l)}return g2(s,n,null,r)}function to(r,s){if(r===!1||r===null||typeof r>"u")throw new Error(s)}function m2(){return Math.random().toString(36).substr(2,8)}function yy(r,s){return{usr:r.state,key:r.key,idx:s}}function qg(r,s,n,c){return n===void 0&&(n=null),pd({pathname:typeof r=="string"?r:r.pathname,search:"",hash:""},typeof s=="string"?Fp(s):s,{state:n,key:s&&s.key||c||m2()})}function sv(r){let{pathname:s="/",search:n="",hash:c=""}=r;return n&&n!=="?"&&(s+=n.charAt(0)==="?"?n:"?"+n),c&&c!=="#"&&(s+=c.charAt(0)==="#"?c:"#"+c),s}function Fp(r){let s={};if(r){let n=r.indexOf("#");n>=0&&(s.hash=r.substr(n),r=r.substr(0,n));let c=r.indexOf("?");c>=0&&(s.search=r.substr(c),r=r.substr(0,c)),r&&(s.pathname=r)}return s}function g2(r,s,n,c){c===void 0&&(c={});let{window:l=document.defaultView,v5Compat:u=!1}=c,x=l.history,O=Tl.Pop,Y=null,Q=te();Q==null&&(Q=0,x.replaceState(pd({},x.state,{idx:Q}),""));function te(){return(x.state||{idx:null}).idx}function W(){O=Tl.Pop;let E=te(),_=E==null?null:E-Q;Q=E,Y&&Y({action:O,location:T.location,delta:_})}function G(E,_){O=Tl.Push;let g=qg(T.location,E,_);Q=te()+1;let w=yy(g,Q),k=T.createHref(g);try{x.pushState(w,"",k)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;l.location.assign(k)}u&&Y&&Y({action:O,location:T.location,delta:1})}function K(E,_){O=Tl.Replace;let g=qg(T.location,E,_);Q=te();let w=yy(g,Q),k=T.createHref(g);x.replaceState(w,"",k),u&&Y&&Y({action:O,location:T.location,delta:0})}function S(E){let _=l.location.origin!=="null"?l.location.origin:l.location.href,g=typeof E=="string"?E:sv(E);return g=g.replace(/ $/,"%20"),to(_,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,_)}let T={get action(){return O},get location(){return r(l,x)},listen(E){if(Y)throw new Error("A history only accepts one active listener");return l.addEventListener(gy,W),Y=E,()=>{l.removeEventListener(gy,W),Y=null}},createHref(E){return s(l,E)},createURL:S,encodeLocation(E){let _=S(E);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:G,replace:K,go(E){return x.go(E)}};return T}var xy;(function(r){r.data="data",r.deferred="deferred",r.redirect="redirect",r.error="error"})(xy||(xy={}));function y2(r,s){if(s==="/")return r;if(!r.toLowerCase().startsWith(s.toLowerCase()))return null;let n=s.endsWith("/")?s.length-1:s.length,c=r.charAt(n);return c&&c!=="/"?null:r.slice(n)||"/"}function x2(r,s){s===void 0&&(s="/");let{pathname:n,search:c="",hash:l=""}=typeof r=="string"?Fp(r):r;return{pathname:n?n.startsWith("/")?n:v2(n,s):s,search:k2(c),hash:P2(l)}}function v2(r,s){let n=s.replace(/\/+$/,"").split("/");return r.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function mg(r,s,n,c){return"Cannot include a '"+r+"' character in a manually specified "+("`to."+s+"` field ["+JSON.stringify(c)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function b2(r){return r.filter((s,n)=>n===0||s.route.path&&s.route.path.length>0)}function S2(r,s){let n=b2(r);return s?n.map((c,l)=>l===n.length-1?c.pathname:c.pathnameBase):n.map(c=>c.pathnameBase)}function w2(r,s,n,c){c===void 0&&(c=!1);let l;typeof r=="string"?l=Fp(r):(l=pd({},r),to(!l.pathname||!l.pathname.includes("?"),mg("?","pathname","search",l)),to(!l.pathname||!l.pathname.includes("#"),mg("#","pathname","hash",l)),to(!l.search||!l.search.includes("#"),mg("#","search","hash",l)));let u=r===""||l.pathname==="",x=u?"/":l.pathname,O;if(x==null)O=n;else{let W=s.length-1;if(!c&&x.startsWith("..")){let G=x.split("/");for(;G[0]==="..";)G.shift(),W-=1;l.pathname=G.join("/")}O=W>=0?s[W]:"/"}let Y=x2(l,O),Q=x&&x!=="/"&&x.endsWith("/"),te=(u||x===".")&&n.endsWith("/");return!Y.pathname.endsWith("/")&&(Q||te)&&(Y.pathname+="/"),Y}const C2=r=>r.join("/").replace(/\/\/+/g,"/"),k2=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,P2=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r,ov=["post","put","patch","delete"];new Set(ov);const E2=["get",...ov];new Set(E2);
vendor: 4,823 bytes, lines 49-67
49/**
50 * React Router v6.26.1
51 *
52 * Copyright (c) Remix Software Inc.
53 *
54 * This source code is licensed under the MIT license found in the
55 * LICENSE.md file in the root directory of this source tree.
56 *
57 * @license MIT
58 */function Mp(){return Mp=Object.assign?Object.assign.bind():function(r){for(var s=1;s<arguments.length;s++){var n=arguments[s];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(r[c]=n[c])}return r},Mp.apply(this,arguments)}const av=Me.createContext(null),g0=Me.createContext(null),y0=Me.createContext(null),x0=Me.createContext({outlet:null,matches:[],isDataRoute:!1});function v0(){return Me.useContext(y0)!=null}function lv(){return v0()||to(!1),Me.useContext(y0).location}function cv(r){Me.useContext(g0).static||Me.useLayoutEffect(r)}function M2(){let{isDataRoute:r}=Me.useContext(x0);return r?j2():T2()}function T2(){v0()||to(!1);let r=Me.useContext(av),{basename:s,future:n,navigator:c}=Me.useContext(g0),{matches:l}=Me.useContext(x0),{pathname:u}=lv(),x=JSON.stringify(S2(l,n.v7_relativeSplatPath)),O=Me.useRef(!1);return cv(()=>{O.current=!0}),Me.useCallback(function(Q,te){if(te===void 0&&(te={}),!O.current)return;if(typeof Q=="number"){c.go(Q);return}let W=w2(Q,JSON.parse(x),u,te.relative==="path");r==null&&s!=="/"&&(W.pathname=W.pathname==="/"?s:C2([s,W.pathname])),(te.replace?c.replace:c.push)(W,te.state,te)},[s,c,x,u,r])}var uv=function(r){return r.UseBlocker="useBlocker",r.UseRevalidator="useRevalidator",r.UseNavigateStable="useNavigate",r}(uv||{}),hv=function(r){return r.UseBlocker="useBlocker",r.UseLoaderData="useLoaderData",r.UseActionData="useActionData",r.UseRouteError="useRouteError",r.UseNavigation="useNavigation",r.UseRouteLoaderData="useRouteLoaderData",r.UseMatches="useMatches",r.UseRevalidator="useRevalidator",r.UseNavigateStable="useNavigate",r.UseRouteId="useRouteId",r}(hv||{});function A2(r){let s=Me.useContext(av);return s||to(!1),s}function L2(r){let s=Me.useContext(x0);return s||to(!1),s}function R2(r){let s=L2(),n=s.matches[s.matches.length-1];return n.route.id||to(!1),n.route.id}function j2(){let{router:r}=A2(uv.UseNavigateStable),s=R2(hv.UseNavigateStable),n=Me.useRef(!1);return cv(()=>{n.current=!0}),Me.useCallback(function(l,u){u===void 0&&(u={}),n.current&&(typeof l=="number"?r.navigate(l):r.navigate(l,Mp({fromRouteId:s},u)))},[r,s])}function N2(r){let{basename:s="/",children:n=null,location:c,navigationType:l=Tl.Pop,navigator:u,static:x=!1,future:O}=r;v0()&&to(!1);let Y=s.replace(/^\/*/,"/"),Q=Me.useMemo(()=>({basename:Y,navigator:u,static:x,future:Mp({v7_relativeSplatPath:!1},O)}),[Y,O,u,x]);typeof c=="string"&&(c=Fp(c));let{pathname:te="/",search:W="",hash:G="",state:K=null,key:S="default"}=c,T=Me.useMemo(()=>{let E=y2(te,Y);return E==null?null:{location:{pathname:E,search:W,hash:G,state:K,key:S},navigationType:l}},[Y,te,W,G,K,S,l]);return T==null?null:Me.createElement(g0.Provider,{value:Q},Me.createElement(y0.Provider,{children:n,value:T}))}new Promise(()=>{});/**
59 * React Router DOM v6.26.1
60 *
61 * Copyright (c) Remix Software Inc.
62 *
63 * This source code is licensed under the MIT license found in the
64 * LICENSE.md file in the root directory of this source tree.
65 *
66 * @license MIT
67 */function Kg(r){return r===void 0&&(r=""),new URLSearchParams(typeof r=="string"||Array.isArray(r)||r instanceof URLSearchParams?r:Object.keys(r).reduce((s,n)=>{let c=r[n];return s.concat(Array.isArray(c)?c.map(l=>[n,l]):[[n,c]])},[]))}function O2(r,s){let n=Kg(r);return s&&s.forEach((c,l)=>{n.has(l)||s.getAll(l).forEach(u=>{n.append(l,u)})}),n}const _2="6";try{window.__reactRouterVersion=_2}catch{}const D2="startTransition",vy=Ep[D2];function I2(r){let{basename:s,children:n,future:c,window:l}=r,u=Me.useRef();u.current==null&&(u.current=p2({window:l,v5Compat:!0}));let x=u.current,[O,Y]=Me.useState({action:x.action,location:x.location}),{v7_startTransition:Q}=c||{},te=Me.useCallback(W=>{Q&&vy?vy(()=>Y(W)):Y(W)},[Y,Q]);return Me.useLayoutEffect(()=>x.listen(te),[x,te]),Me.createElement(N2,{basename:s,children:n,location:O.location,navigationType:O.action,navigator:x,future:c})}var by;(function(r){r.UseScrollRestoration="useScrollRestoration",r.UseSubmit="useSubmit",r.UseSubmitFetcher="useSubmitFetcher",r.UseFetcher="useFetcher",r.useViewTransitionState="useViewTransitionState"})(by||(by={}));var Sy;(function(r){r.UseFetcher="useFetcher",r.UseFetchers="useFetchers",r.UseScrollRestoration="useScrollRestoration"})(Sy||(Sy={}));function B2(r){let s=Me.useRef(Kg(r)),n=Me.useRef(!1),c=lv(),l=Me.useMemo(()=>O2(c.search,n.current?null:s.current),[c.search]),u=M2(),x=Me.useCallback((O,Y)=>{const Q=Kg(typeof O=="function"?O(l):O);n.current=!0,u("?"+Q,Y)},[u,l]);return[l,x]}function Xt(...r){return r.filter(Boolean).join(" ")}function F2({className:r,children:s,tabPaneClassName:n,useQueryParams:c=!0,queryName:l="tab"}
67){const[u,x]=B2();function O(){const S=u.get(l)?parseInt(u.get(l),10):0;return S>=0&&S<s.length?S:0}const Y=(S,T)=>{const E=new URLSearchParams(u);E.set(S,T),x(E)},[Q,te]=Me.useState(O());Me.useEffect(()=>{const S=O();te(S)},[u]);const W=S=>{c?Y(l,S):te(S)},G=Gt.Children.map(s,(S,T)=>y.jsxs("button",{onClick:()=>W(T),className:Xt(`flex flex-col tab-trigger ${Q===T?"active":""}`,"border-gray-300",S.props.className),children:[y.jsx("div",{children:S.props.label}),y.jsx("div",{className:"owercase font-normal text-sm",children:S.props.sublabel})]},T)),K=Gt.Children.map(s,(S,T)=>y.jsx("div",{className:Xt("tab-pane",`${Q===T?"active":""}`,`${n}`),children:S.props.children},T));return y.jsxs("div",{className:Xt("tabbed-container",`${r}`),children:[y.jsx("div",{className:"tabs",children:G}),y.jsx("div",{className:"tab-content",children:K})]})}function gg({props:r,children:s}){const{uppercase:n=!1}=r;return y.jsx(y.Fragment,{children:s})}function xr(r,s){if(r==null)return{};var n={};for(var c in r)if({}.hasOwnProperty.call(r,c)){if(s.indexOf(c)!==-1)continue;n[c]=r[c]}return n}function qe(){return qe=Object.assign?Object.assign.bind():function(r){for(var s=1;s<arguments.length;s++){var n=arguments[s];for(var c in n)({}).hasOwnProperty.call(n,c)&&(r[c]=n[c])}return r},qe.apply(null,arguments)}var yg={exports:{}},xg,wy;function z2(){if(wy)return xg;wy=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return xg=r,xg}var vg,Cy;function $2(){if(Cy)return vg;Cy=1;var r=z2();function s(){}function n(){}return n.resetWarningCache=s,vg=function(){function c(x,O,Y,Q,te,W){if(W!==r){var G=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 G.name="Invariant Violation",G}}c.isRequired=c;function l(){return c}var u={array:c,bigint:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:l,element:c,elementType:c,instanceOf:l,node:c,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:n,resetWarningCache:s};return u.PropTypes=u,u},vg}var ky;function W2(){return ky||(ky=1,yg.exports=$2()()),yg.exports}var U2=W2();const Nt=li(U2);function dv(r){var s,n,c="";if(typeof r=="string"||typeof r=="number")c+=r;else if(typeof r=="object")if(Array.isArray(r)){var l=r.length;for(s=0;s<l;s++)r[s]&&(n=dv(r[s]))&&(c&&(c+=" "),c+=n)}else for(n in r)r[n]&&(c&&(c+=" "),c+=n);return c}function or(){for(var r,s,n=0,c="",l=arguments.length;n<l;n++)(r=arguments[n])&&(s=dv(r))&&(c&&(c+=" "),c+=s);return c}function Tp(r,s){const n=qe({},s);return Object.keys(r).forEach(c=>{if(c.toString().match(/^(components|slots)$/))n[c]=qe({},r[c],n[c]);else if(c.toString().match(/^(componentsProps|slotProps)$/)){const l=r[c]||{},u=s[c];n[c]={},!u||!Object.keys(u)?n[c]=l:!l||!Object.keys(l)?n[c]=u:(n[c]=qe({},u),Object.keys(l).forEach(x=>{n[c][x]=Tp(l[x],u[x])}))}else n[c]===void 0&&(n[c]=r[c])}),n}function Ra(r,s,n=void 0){const c={};return Object.keys(r).forEach(l=>{c[l]=r[l].reduce((u,x)=>{if(x){const O=s(x);O!==""&&u.push(O),n&&n[x]&&u.push(n[x])}return u},[]).join(" ")}),c}var Pr={},bg={exports:{}},Py;function Mu(){return Py||(Py=1,function(r){function s(n){return n&&n.__esModule?n:{default:n}}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports}(bg)),bg.exports}function md(r){let s="https://mui.com/production-error/?code="+r;for(let n=1;n<arguments.length;n+=1)s+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+r+"; visit "+s+" for the full message."}const H2=Object.freeze(Object.defineProperty({__proto__:null,default:md},Symbol.toStringTag,{value:"Module"})),Y2=Fo(H2);function uu(r,s=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(s,Math.min(r,n))}const X2=Object.freeze(Object.defineProperty({__proto__:null,default:uu},Symbol.toStringTag,{value:"Module"})),G2=Fo(X2);var Ey;function V2(){if(Ey)return Pr;Ey=1;var r=Mu();Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.alpha=S,Pr.blend=C,Pr.colorChannel=void 0,Pr.darken=E,Pr.decomposeColor=x,Pr.emphasize=k,Pr.getContrastRatio=K,Pr.getLuminance=G,Pr.hexToRgb=l,Pr.hslToRgb=W,Pr.lighten=g,Pr.private_safeAlpha=T,Pr.private_safeColorChannel=void 0,Pr.private_safeDarken=_,Pr.private_safeEmphasize=b,Pr.private_safeLighten=w,Pr.recomposeColor=Q,Pr.rgbToHex=te;var s=r(Y2),n=r(G2);function c(m,q=0,V=1){return(0,n.default)(m,q,V)}function l(m){m=m.slice(1);const q=new RegExp(`.{1,${m.length>=6?2:1}}`,"g");let V=m.match(q);return V&&V[0].length===1&&(V=V.map(H=>H+H)),V?`rgb${V.length===4?"a":""}(${V.map((H,M)=>M<3?parseInt(H,16):Math.round(parseInt(H,16)/255*1e3)/1e3).join(", ")})`:""}function u(m){const q=m.toString(16);return q.length===1?`0${q}`:q}function x(m){if(m.type)return m;if(m.charAt(0)==="#")return x(l(m));const q=m.indexOf("("),V=m.substring(0,q);if(["rgb","rgba","hsl","hsla","color"].indexOf(V)===-1)throw new Error((0,s.default)(9,m));let H=m.substring(q+1,m.length-1),M;if(V==="color"){if(H=H.split(" "),M=H.shift(),H.length===4&&H[3].charAt(0)==="/"&&(H[3]=H[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(M)===-1)throw new Error((0,s.default)(10,M))}else H=H.split(",");return H=H.map($=>
67parseFloat($)),{type:V,values:H,colorSpace:M}}const O=m=>{const q=x(m);return q.values.slice(0,3).map((V,H)=>q.type.indexOf("hsl")!==-1&&H!==0?`${V}%`:V).join(" ")};Pr.colorChannel=O;const Y=(m,q)=>{try{return O(m)}catch{return m}};Pr.private_safeColorChannel=Y;function Q(m){const{type:q,colorSpace:V}=m;let{values:H}=m;return q.indexOf("rgb")!==-1?H=H.map((M,$)=>$<3?parseInt(M,10):M):q.indexOf("hsl")!==-1&&(H[1]=`${H[1]}%`,H[2]=`${H[2]}%`),q.indexOf("color")!==-1?H=`${V} ${H.join(" ")}`:H=`${H.join(", ")}`,`${q}(${H})`}function te(m){if(m.indexOf("#")===0)return m;const{values:q}=x(m);return`#${q.map((V,H)=>u(H===3?Math.round(255*V):V)).join("")}`}function W(m){m=x(m);const{values:q}=m,V=q[0],H=q[1]/100,M=q[2]/100,$=H*Math.min(M,1-M),P=(L,v=(L+V/30)%12)=>M-$*Math.max(Math.min(v-3,9-v,1),-1);let h="rgb";const f=[Math.round(P(0)*255),Math.round(P(8)*255),Math.round(P(4)*255)];return m.type==="hsla"&&(h+="a",f.push(q[3])),Q({type:h,values:f})}function G(m){m=x(m);let q=m.type==="hsl"||m.type==="hsla"?x(W(m)).values:m.values;return q=q.map(V=>(m.type!=="color"&&(V/=255),V<=.03928?V/12.92:((V+.055)/1.055)**2.4)),Number((.2126*q[0]+.7152*q[1]+.0722*q[2]).toFixed(3))}function K(m,q){const V=G(m),H=G(q);return(Math.max(V,H)+.05)/(Math.min(V,H)+.05)}function S(m,q){return m=x(m),q=c(q),(m.type==="rgb"||m.type==="hsl")&&(m.type+="a"),m.type==="color"?m.values[3]=`/${q}`:m.values[3]=q,Q(m)}function T(m,q,V){try{return S(m,q)}catch{return m}}function E(m,q){if(m=x(m),q=c(q),m.type.indexOf("hsl")!==-1)m.values[2]*=1-q;else if(m.type.indexOf("rgb")!==-1||m.type.indexOf("color")!==-1)for(let V=0;V<3;V+=1)m.values[V]*=1-q;return Q(m)}function _(m,q,V){try{return E(m,q)}catch{return m}}function g(m,q){if(m=x(m),q=c(q),m.type.indexOf("hsl")!==-1)m.values[2]+=(100-m.values[2])*q;else if(m.type.indexOf("rgb")!==-1)for(let V=0;V<3;V+=1)m.values[V]+=(255-m.values[V])*q;else if(m.type.indexOf("color")!==-1)for(let V=0;V<3;V+=1)m.values[V]+=(1-m.values[V])*q;return Q(m)}function w(m,q,V){try{return g(m,q)}catch{return m}}function k(m,q=.15){return G(m)>.5?E(m,q):g(m,q)}function b(m,q,V){try{return k(m,q)}catch{return m}}function C(m,q,V,H=1){const M=(f,L)=>Math.round((f**(1/H)*(1-V)+L**(1/H)*V)**H),$=x(m),P=x(q),h=[M($.values[0],P.values[0]),M($.values[1],P.values[1]),M($.values[2],P.values[2])];return Q({type:"rgb",values:h})}return Pr}var $n=V2(),Pl={},Sg={exports:{}},My;function q2(){return My||(My=1,function(r){function s(){return r.exports=s=Object.assign?Object.assign.bind():function(n){for(var c=1;c<arguments.length;c++){var l=arguments[c];for(var u in l)({}).hasOwnProperty.call(l,u)&&(n[u]=l[u])}return n},r.exports.__esModule=!0,r.exports.default=r.exports,s.apply(null,arguments)}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports}(Sg)),Sg.exports}var wg={exports:{}},Ty;function K2(){return Ty||(Ty=1,function(r){function s(n,c){if(n==null)return{};var l={};for(var u in n)if({}.hasOwnProperty.call(n,u)){if(c.indexOf(u)!==-1)continue;l[u]=n[u]}return l}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports}(wg)),wg.exports}function fv(r){var s=Object.create(null);return function(n){return s[n]===void 0&&(s[n]=r(n)),s[n]}}var Z2=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
67ine|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Q2=fv(function(r){return Z2.test(r)||r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)<91});function J2(r){if(r.sheet)return r.sheet;for(var s=0;s<document.styleSheets.length;s++)if(document.styleSheets[s].ownerNode===r)return document.styleSheets[s]}function ew(r){var s=document.createElement("style");return s.setAttribute("data-emotion",r.key),r.nonce!==void 0&&s.setAttribute("nonce",r.nonce),s.appendChild(document.createTextNode("")),s.setAttribute("data-s",""),s}var tw=function(){function r(n){var c=this;this._insertTag=function(l){var u;c.tags.length===0?c.insertionPoint?u=c.insertionPoint.nextSibling:c.prepend?u=c.container.firstChild:u=c.before:u=c.tags[c.tags.length-1].nextSibling,c.container.insertBefore(l,u),c.tags.push(l)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var s=r.prototype;
vendor: 5,258 bytes, line 67
67return s.hydrate=function(c){c.forEach(this._insertTag)},s.insert=function(c){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ew(this));var l=this.tags[this.tags.length-1];if(this.isSpeedy){var u=J2(l);try{u.insertRule(c,u.cssRules.length)}catch{}}else l.appendChild(document.createTextNode(c));this.ctr++},s.flush=function(){this.tags.forEach(function(c){return c.parentNode&&c.parentNode.removeChild(c)}),this.tags=[],this.ctr=0},r}(),Ln="-ms-",Ap="-moz-",Ht="-webkit-",pv="comm",b0="rule",S0="decl",rw="@import",mv="@keyframes",nw="@layer",iw=Math.abs,zp=String.fromCharCode,sw=Object.assign;function ow(r,s){return vn(r,0)^45?(((s<<2^vn(r,0))<<2^vn(r,1))<<2^vn(r,2))<<2^vn(r,3):0}function gv(r){return r.trim()}function aw(r,s){return(r=s.exec(r))?r[0]:r}function Yt(r,s,n){return r.replace(s,n)}function Zg(r,s){return r.indexOf(s)}function vn(r,s){return r.charCodeAt(s)|0}function gd(r,s,n){return r.slice(s,n)}function Qs(r){return r.length}function w0(r){return r.length}function sp(r,s){return s.push(r),r}function lw(r,s){return r.map(s).join("")}var $p=1,bu=1,yv=0,ai=0,Wr=0,Tu="";function Wp(r,s,n,c,l,u,x){return{value:r,root:s,parent:n,type:c,props:l,children:u,line:$p,column:bu,length:x,return:""}}function Zh(r,s){return sw(Wp("",null,null,"",null,null,0),r,{length:-r.length},s)}function cw(){return Wr}function uw(){return Wr=ai>0?vn(Tu,--ai):0,bu--,Wr===10&&(bu=1,$p--),Wr}function Mi(){return Wr=ai<yv?vn(Tu,ai++):0,bu++,Wr===10&&(bu=1,$p++),Wr}function ro(){return vn(Tu,ai)}function mp(){return ai}function kd(r,s){return gd(Tu,r,s)}function yd(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xv(r){return $p=bu=1,yv=Qs(Tu=r),ai=0,[]}function vv(r){return Tu="",r}function gp(r){return gv(kd(ai-1,Qg(r===91?r+2:r===40?r+1:r)))}function hw(r){for(;(Wr=ro())&&Wr<33;)Mi();return yd(r)>2||yd(Wr)>3?"":" "}function dw(r,s){for(;--s&&Mi()&&!(Wr<48||Wr>102||Wr>57&&Wr<65||Wr>70&&Wr<97););return kd(r,mp()+(s<6&&ro()==32&&Mi()==32))}function Qg(r){for(;Mi();)switch(Wr){case r:return ai;case 34:case 39:r!==34&&r!==39&&Qg(Wr);break;case 40:r===41&&Qg(r);break;case 92:Mi();break}return ai}function fw(r,s){for(;Mi()&&r+Wr!==57;)if(r+Wr===84&&ro()===47)break;return"/*"+kd(s,ai-1)+"*"+zp(r===47?r:Mi())}function pw(r){for(;!yd(ro());)Mi();return kd(r,ai)}function mw(r){return vv(yp("",null,null,null,[""],r=xv(r),0,[0],r))}function yp(r,s,n,c,l,u,x,O,Y){for(var Q=0,te=0,W=x,G=0,K=0,S=0,T=1,E=1,_=1,g=0,w="",k=l,b=u,C=c,m=w;E;)switch(S=g,g=Mi()){case 40:if(S!=108&&vn(m,W-1)==58){Zg(m+=Yt(gp(g),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:m+=gp(g);break;case 9:case 10:case 13:case 32:m+=hw(S);break;case 92:m+=dw(mp()-1,7);continue;case 47:switch(ro()){case 42:case 47:sp(gw(fw(Mi(),mp()),s,n),Y);break;default:m+="/"}break;case 123*T:O[Q++]=Qs(m)*_;case 125*T:case 59:case 0:switch(g){case 0:case 125:E=0;case 59+te:_==-1&&(m=Yt(m,/\f/g,"")),K>0&&Qs(m)-W&&sp(K>32?Ly(m+";",c,n,W-1):Ly(Yt(m," ","")+";",c,n,W-2),Y);break;case 59:m+=";";default:if(sp(C=Ay(m,s,n,Q,te,l,O,w,k=[],b=[],W),u),g===123)if(te===0)yp(m,s,C,C,k,u,W,O,b);else switch(G===99&&vn(m,3)===110?100:G){case 100:case 108:case 109:case 115:yp(r,C,C,c&&sp(Ay(r,C,C,0,0,l,O,w,l,k=[],W),b),l,b,W,O,c?k:b);break;default:yp(m,C,C,C,[""],b,0,O,b)}}Q=te=K=0,T=_=1,w=m="",W=x;break;case 58:W=1+Qs(m),K=S;default:if(T<1){if(g==123)--T;else if(g==125&&T++==0&&uw()==125)continue}switch(m+=zp(g),g*T){case 38:_=te>0?1:(m+="\f",-1);break;case 44:O[Q++]=(Qs(m)-1)*_,_=1;break;case 64:ro()===45&&(m+=gp(Mi())),G=ro(),te=W=Qs(w=m+=pw(mp())),g++;break;case 45:S===45&&Qs(m)==2&&(T=0)}}return u}function Ay(r,s,n,c,l,u,x,O,Y,Q,te){for(var W=l-1,G=l===0?u:[""],K=w0(G),S=0,T=0,E=0;S<c;++S)for(var _=0,g=gd(r,W+1,W=iw(T=x[S])),w=r;_<K;++_)(w=gv(T>0?G[_]+" "+g:Yt(g,/&\f/g,G[_])))&&(Y[E++]=w);return Wp(r,s,n,l===0?b0:O,Y,Q,te)}function gw(r,s,n){return Wp(r,s,n,pv,zp(cw()),gd(r,2,-2),0)}function Ly(r,s,n,c){return Wp(r,s,n,S0,gd(r,0,c),gd(r,c+1,-1),c)}function pu(r,s){for(var n="",c=w0(r),l=0;l<c;l++)n+=s(r[l],l,r,s)||"";return n}function yw(r,s,n,c){switch(r.type){case nw:if(r.children.length)break;case rw:case S0:return r.return=r.return||r.value;case pv:return"";case mv:return r.return=r.value+"{"+pu(r.children,c)+"}";case b0:r.value=r.props.join(",")}return Qs(n=pu(r.children,c))?r.return=r.value+"{"+n+"}":""}function xw(r){var s=w0(r);return function(n,c,l,u){for(var x="",O=0;O<s;O++)x+=r[O](n,c,l,u)||"";return x}}function vw(r){return function(s){s.root||(s=s.return)&&r(s)}}var bw=function(s,n,c){for(var l=0,u=0;l=u,u=ro(),l===38&&u===12&&(n[c]=1),!yd(u);)Mi();return kd(s,ai)},Sw=function(s,n){var c=-1,l=44;do switch(yd(l)){case 0:l===38&&ro()===12&&(n[c]=1),s[c]+=bw(ai-1,n,c);break;case 2:s[c]+=gp(l);break;case 4:if(l===44){s[++c]=ro()===58?"&\f":"",n[c]=s[c].length;break}default:s[c]+=zp(l)}while(l=Mi());return s},ww=function(s,n){return vv(Sw(xv(s),n))},Ry=new WeakMap,Cw=function(s){if(!(s.type!=="rule"||!s.parent||s.length<1)){for(var n=s.value,c=s.parent,l=s.column===c.column&&s.line===c.line;c.type!=="rule";)if(c=c.parent,!c)return;
vendor: 5,848 bytes, lines 67-74
67if(!(s.props.length===1&&n.charCodeAt(0)!==58&&!Ry.get(c))&&!l){Ry.set(s,!0);for(var u=[],x=ww(n,u),O=c.props,Y=0,Q=0;Y<x.length;Y++)for(var te=0;te<O.length;te++,Q++)s.props[Q]=u[Y]?x[Y].replace(/&\f/g,O[te]):O[te]+" "+x[Y]}}},kw=function(s){if(s.type==="decl"){var n=s.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(s.return="",s.value="")}};function bv(r,s){switch(ow(r,s)){case 5103:return Ht+"print-"+r+r;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ht+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return Ht+r+Ap+r+Ln+r+r;case 6828:case 4268:return Ht+r+Ln+r+r;case 6165:return Ht+r+Ln+"flex-"+r+r;case 5187:return Ht+r+Yt(r,/(\w+).+(:[^]+)/,Ht+"box-$1$2"+Ln+"flex-$1$2")+r;case 5443:return Ht+r+Ln+"flex-item-"+Yt(r,/flex-|-self/,"")+r;case 4675:return Ht+r+Ln+"flex-line-pack"+Yt(r,/align-content|flex-|-self/,"")+r;case 5548:return Ht+r+Ln+Yt(r,"shrink","negative")+r;case 5292:return Ht+r+Ln+Yt(r,"basis","preferred-size")+r;case 6060:return Ht+"box-"+Yt(r,"-grow","")+Ht+r+Ln+Yt(r,"grow","positive")+r;case 4554:return Ht+Yt(r,/([^-])(transform)/g,"$1"+Ht+"$2")+r;case 6187:return Yt(Yt(Yt(r,/(zoom-|grab)/,Ht+"$1"),/(image-set)/,Ht+"$1"),r,"")+r;case 5495:case 3959:return Yt(r,/(image-set\([^]*)/,Ht+"$1$`$1");case 4968:return Yt(Yt(r,/(.+:)(flex-)?(.*)/,Ht+"box-pack:$3"+Ln+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ht+r+r;case 4095:case 3583:case 4068:case 2532:return Yt(r,/(.+)-inline(.+)/,Ht+"$1$2")+r;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qs(r)-1-s>6)switch(vn(r,s+1)){case 109:if(vn(r,s+4)!==45)break;case 102:return Yt(r,/(.+:)(.+)-([^]+)/,"$1"+Ht+"$2-$3$1"+Ap+(vn(r,s+3)==108?"$3":"$2-$3"))+r;case 115:return~Zg(r,"stretch")?bv(Yt(r,"stretch","fill-available"),s)+r:r}break;case 4949:if(vn(r,s+1)!==115)break;case 6444:switch(vn(r,Qs(r)-3-(~Zg(r,"!important")&&10))){case 107:return Yt(r,":",":"+Ht)+r;case 101:return Yt(r,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ht+(vn(r,14)===45?"inline-":"")+"box$3$1"+Ht+"$2$3$1"+Ln+"$2box$3")+r}break;case 5936:switch(vn(r,s+11)){case 114:return Ht+r+Ln+Yt(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return Ht+r+Ln+Yt(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return Ht+r+Ln+Yt(r,/[svh]\w+-[tblr]{2}/,"lr")+r}return Ht+r+Ln+r+r}return r}var Pw=function(s,n,c,l){if(s.length>-1&&!s.return)switch(s.type){case S0:s.return=bv(s.value,s.length);break;case mv:return pu([Zh(s,{value:Yt(s.value,"@","@"+Ht)})],l);case b0:if(s.length)return lw(s.props,function(u){switch(aw(u,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pu([Zh(s,{props:[Yt(u,/:(read-\w+)/,":"+Ap+"$1")]})],l);case"::placeholder":return pu([Zh(s,{props:[Yt(u,/:(plac\w+)/,":"+Ht+"input-$1")]}),Zh(s,{props:[Yt(u,/:(plac\w+)/,":"+Ap+"$1")]}),Zh(s,{props:[Yt(u,/:(plac\w+)/,Ln+"input-$1")]})],l)}return""})}},Ew=[Pw],Sv=function(s){var n=s.key;if(n==="css"){var c=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(c,function(T){var E=T.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(T),T.setAttribute("data-s",""))})}var l=s.stylisPlugins||Ew,u={},x,O=[];x=s.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(T){for(var E=T.getAttribute("data-emotion").split(" "),_=1;_<E.length;_++)u[E[_]]=!0;O.push(T)});var Y,Q=[Cw,kw];{var te,W=[yw,vw(function(T){te.insert(T)})],G=xw(Q.concat(l,W)),K=function(E){return pu(mw(E),G)};Y=function(E,_,g,w){te=g,K(E?E+"{"+_.styles+"}":_.styles),w&&(S.inserted[_.name]=!0)}}var S={key:n,sheet:new tw({key:n,container:x,nonce:s.nonce,speedy:s.speedy,prepend:s.prepend,insertionPoint:s.insertionPoint}),nonce:s.nonce,inserted:u,registered:{},insert:Y};return S.sheet.hydrate(O),S},Cg={exports:{}},Kt={};/** @license React v16.13.1
68 * react-is.production.min.js
69 *
70 * Copyright (c) Facebook, Inc. and its affiliates.
71 *
72 * This source code is licensed under the MIT license found in the
73 * LICENSE file in the root directory of this source tree.
74 */var jy;function Mw(){if(jy)return Kt;jy=1;var r=typeof Symbol=="function"&&Symbol.for,s=r?Symbol.for("react.element"):60103,n=r?Symbol.for("react.portal"):60106,c=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,x=r?Symbol.for("react.provider"):60109,O=r?Symbol.for("react.context"):60110,Y=r?Symbol.for("react.async_mode"):60111,Q=r?Symbol.for("react.concurrent_mode"):60111,te=r?Symbol.for("react.forward_ref"):60112,W=r?Symbol.for("react.suspense"):60113,G=r?Symbol.for("react.suspense_list"):60120,K=r?Symbol.for("react.memo"):60115,S=r?Symbol.for("react.lazy"):60116,T=r?Symbol.for("react.block"):60121,E=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,g=r?Symbol.for("react.scope"):60119;function w(b){if(typeof b=="object"&&b!==null){var C=b.$$typeof;switch(C){case s:switch(b=b.type,b){case Y:case Q:case c:case u:case l:case W:return b;default:switch(b=b&&b.$$typeof,b){case O:case te:case S:case K:case x:return b;default:return C}}case n:return C}}}function k(b){return w(b)===Q}return Kt.AsyncMode=Y,Kt.ConcurrentMode=Q,Kt.ContextConsumer=O,Kt.ContextProvider=x,Kt.Element=s,Kt.ForwardRef=te,Kt.Fragment=c,Kt.Lazy=S,Kt.Memo=K,Kt.Portal=n,Kt.Profiler=u,Kt.StrictMode=l,Kt.Suspense=W,Kt.isAsyncMode=function(b){return k(b)||w(b)===Y},Kt.isConcurrentMode=k,Kt.isContextConsumer=function(b){return w(b)===O},Kt.isContextProvider=function(b){return w(b)===x},Kt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===s},Kt.isForwardRef=function(b){return w(b)===te}
vendor: 6,476 bytes, line 74
74,Kt.isFragment=function(b){return w(b)===c},Kt.isLazy=function(b){return w(b)===S},Kt.isMemo=function(b){return w(b)===K},Kt.isPortal=function(b){return w(b)===n},Kt.isProfiler=function(b){return w(b)===u},Kt.isStrictMode=function(b){return w(b)===l},Kt.isSuspense=function(b){return w(b)===W},Kt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===c||b===Q||b===u||b===l||b===W||b===G||typeof b=="object"&&b!==null&&(b.$$typeof===S||b.$$typeof===K||b.$$typeof===x||b.$$typeof===O||b.$$typeof===te||b.$$typeof===E||b.$$typeof===_||b.$$typeof===g||b.$$typeof===T)},Kt.typeOf=w,Kt}var Ny;function Tw(){return Ny||(Ny=1,Cg.exports=Mw()),Cg.exports}var kg,Oy;function Aw(){if(Oy)return kg;Oy=1;var r=Tw(),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},c={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[r.ForwardRef]=c,u[r.Memo]=l;function x(S){return r.isMemo(S)?l:u[S.$$typeof]||s}var O=Object.defineProperty,Y=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,te=Object.getOwnPropertyDescriptor,W=Object.getPrototypeOf,G=Object.prototype;function K(S,T,E){if(typeof T!="string"){if(G){var _=W(T);_&&_!==G&&K(S,_,E)}var g=Y(T);Q&&(g=g.concat(Q(T)));for(var w=x(S),k=x(T),b=0;b<g.length;++b){var C=g[b];if(!n[C]&&!(E&&E[C])&&!(k&&k[C])&&!(w&&w[C])){var m=te(T,C);try{O(S,C,m)}catch{}}}}return S}return kg=K,kg}Aw();var Lw=!0;function Rw(r,s,n){var c="";return n.split(" ").forEach(function(l){r[l]!==void 0?s.push(r[l]+";"):c+=l+" "}),c}var wv=function(s,n,c){var l=s.key+"-"+n.name;(c===!1||Lw===!1)&&s.registered[l]===void 0&&(s.registered[l]=n.styles)},Cv=function(s,n,c){wv(s,n,c);var l=s.key+"-"+n.name;if(s.inserted[n.name]===void 0){var u=n;do s.insert(n===u?"."+l:"",u,s.sheet,!0),u=u.next;while(u!==void 0)}};function jw(r){for(var s=0,n,c=0,l=r.length;l>=4;++c,l-=4)n=r.charCodeAt(c)&255|(r.charCodeAt(++c)&255)<<8|(r.charCodeAt(++c)&255)<<16|(r.charCodeAt(++c)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,s=(n&65535)*1540483477+((n>>>16)*59797<<16)^(s&65535)*1540483477+((s>>>16)*59797<<16);switch(l){case 3:s^=(r.charCodeAt(c+2)&255)<<16;case 2:s^=(r.charCodeAt(c+1)&255)<<8;case 1:s^=r.charCodeAt(c)&255,s=(s&65535)*1540483477+((s>>>16)*59797<<16)}return s^=s>>>13,s=(s&65535)*1540483477+((s>>>16)*59797<<16),((s^s>>>15)>>>0).toString(36)}var kv={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Nw=/[A-Z]|^ms/g,Ow=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Pv=function(s){return s.charCodeAt(1)===45},_y=function(s){return s!=null&&typeof s!="boolean"},Pg=fv(function(r){return Pv(r)?r:r.replace(Nw,"-$&").toLowerCase()}),Dy=function(s,n){switch(s){case"animation":case"animationName":if(typeof n=="string")return n.replace(Ow,function(c,l,u){return Js={name:l,styles:u,next:Js},l})}return kv[s]!==1&&!Pv(s)&&typeof n=="number"&&n!==0?n+"px":n};function xd(r,s,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Js={name:n.name,styles:n.styles,next:Js},n.name;if(n.styles!==void 0){var c=n.next;if(c!==void 0)for(;c!==void 0;)Js={name:c.name,styles:c.styles,next:Js},c=c.next;var l=n.styles+";";return l}return _w(r,s,n)}case"function":{if(r!==void 0){var u=Js,x=n(r);return Js=u,xd(r,s,x)}break}}if(s==null)return n;var O=s[n];return O!==void 0?O:n}function _w(r,s,n){var c="";if(Array.isArray(n))for(var l=0;l<n.length;l++)c+=xd(r,s,n[l])+";";else for(var u in n){var x=n[u];if(typeof x!="object")s!=null&&s[x]!==void 0?c+=u+"{"+s[x]+"}":_y(x)&&(c+=Pg(u)+":"+Dy(u,x)+";");else if(Array.isArray(x)&&typeof x[0]=="string"&&(s==null||s[x[0]]===void 0))for(var O=0;O<x.length;O++)_y(x[O])&&(c+=Pg(u)+":"+Dy(u,x[O])+";");else{var Y=xd(r,s,x);switch(u){case"animation":case"animationName":{c+=Pg(u)+":"+Y+";";break}default:c+=u+"{"+Y+"}"}}}return c}var Iy=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Js,C0=function(s,n,c){if(s.length===1&&typeof s[0]=="object"&&s[0]!==null&&s[0].styles!==void 0)return s[0];var l=!0,u="";Js=void 0;var x=s[0];x==null||x.raw===void 0?(l=!1,u+=xd(c,n,x)):u+=x[0];for(var O=1;O<s.length;O++)u+=xd(c,n,s[O]),l&&(u+=x[O]);Iy.lastIndex=0;for(var Y="",Q;(Q=Iy.exec(u))!==null;)Y+="-"+Q[1];var te=jw(u)+Y;return{name:te,styles:u,next:Js}},Dw=function(s){return s()},Ev=Ep.useInsertionEffect?Ep.useInsertionEffect:!1,Iw=Ev||Dw,By=Ev||Me.useLayoutEffect,Mv=Me.createContext(typeof HTMLElement<"u"?Sv({key:"css"}):null),Bw=Mv.Provider,Tv=function(s){return Me.forwardRef(function(n,c){var l=Me.useContext(Mv);return s(n,l,c)})},Pd=Me.createContext({}),Fw=Tv(function(r,s){var n=r.styles,c=C0([n],void 0,Me.useContext(Pd)),l=Me.useRef();return By(function(){var u=s.key+"-global",x=new s.sheet.constructor({key:u,nonce:s.sheet.nonce,container:s.sheet.container,speedy:s.sheet.isSpeedy}),O=!1,Y=document.querySelector('style[data-emotion="'+u+" "+c.name+'"]');return s.sheet.tags.length&&(x.before=s.sheet.tags[0]),Y!==null&&(O=!0,Y.setAttribute("data-emotion",u),x.hydrate([Y])),l.current=[x,O],function(){x.flush()}},[s]),By(function(){var u=l.current,x=u[0],O=u[1];if(O){u[1]=!1;return}if(c.next!==void 0&&Cv(s,c.next,!0),x.tags.length){var Y=x.tags[x.tags.length-1].nextElementSibling;x.before=Y,x.flush()}s.insert("",c,x,!1)},[s,c.name]),null});function Av(){for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return C0(s)}var Up=function(){var s=Av.apply(void 0,arguments),n="animation-"+s.name;return{name:n,styles:"@keyframes "+n+"{"+s.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},zw=Q2,$w=function(s){return s!=="theme"}
74,Fy=function(s){return typeof s=="string"&&s.charCodeAt(0)>96?zw:$w},zy=function(s,n,c){var l;if(n){var u=n.shouldForwardProp;l=s.__emotion_forwardProp&&u?function(x){return s.__emotion_forwardProp(x)&&u(x)}:u}return typeof l!="function"&&c&&(l=s.__emotion_forwardProp),l},Ww=function(s){var n=s.cache,c=s.serialized,l=s.isStringTag;return wv(n,c,l),Iw(function(){return Cv(n,c,l)}),null},Uw=function r(s,n){var c=s.__emotion_real===s,l=c&&s.__emotion_base||s,u,x;n!==void 0&&(u=n.label,x=n.target);var O=zy(s,n,c),Y=O||Fy(l),Q=!Y("as");return function(){var te=arguments,W=c&&s.__emotion_styles!==void 0?s.__emotion_styles.slice(0):[];if(u!==void 0&&W.push("label:"+u+";"),te[0]==null||te[0].raw===void 0)W.push.apply(W,te);else{W.push(te[0][0]);for(var G=te.length,K=1;K<G;K++)W.push(te[K],te[0][K])}var S=Tv(function(T,E,_){var g=Q&&T.as||l,w="",k=[],b=T;if(T.theme==null){b={};for(var C in T)b[C]=T[C];b.theme=Me.useContext(Pd)}typeof T.className=="string"?w=Rw(E.registered,k,T.className):T.className!=null&&(w=T.className+" ");var m=C0(W.concat(k),E.registered,b);w+=E.key+"-"+m.name,x!==void 0&&(w+=" "+x);var q=Q&&O===void 0?Fy(g):Y,V={};for(var H in T)Q&&H==="as"||q(H)&&(V[H]=T[H]);return V.className=w,V.ref=_,Me.createElement(Me.Fragment,null,Me.createElement(Ww,{cache:E,serialized:m,isStringTag:typeof g=="string"}),Me.createElement(g,V))});return S.displayName=u!==void 0?u:"Styled("+(typeof l=="string"?l:l.displayName||l.name||"Component")+")",S.defaultProps=s.defaultProps,S.__emotion_real=S,S.__emotion_base=l,S.__emotion_styles=W,S.__emotion_forwardProp=O,Object.defineProperty(S,"toString",{value:function(){return"."+x}}),S.withComponent=function(T,E){return r(T,qe({},n,E,{shouldForwardProp:zy(S,E,!0)})).apply(void 0,W)},S}},Hw=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Jg=Uw.bind();Hw.forEach(function(r){Jg[r]=Jg(r)});let e0;typeof document=="object"&&(e0=Sv({key:"css",prepend:!0}));function Yw(r){const{injectFirst:s,children:n}=r;return s&&e0?y.jsx(Bw,{value:e0,children:n}):n}function Xw(r){return r==null||Object.keys(r).length===0}function Gw(r){const{styles:s,defaultTheme:n={}}=r,c=typeof s=="function"?l=>s(Xw(l)?n:l):s;return y.jsx(Fw,{styles:c})}function Vw(r,s){return Jg(r,s)}const qw=(r,s)=>{Array.isArray(r.__emotion_styles)&&(r.__emotion_styles=s(r.__emotion_styles))},Kw=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Gw,StyledEngineProvider:Yw,ThemeContext:Pd,css:Av,default:Vw,internal_processStyles:qw,keyframes:Up},Symbol.toStringTag,{value:"Module"})),Zw=Fo(Kw);function Aa(r){if(typeof r!="object"||r===null)return!1;const s=Object.getPrototypeOf(r);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)}function Lv(r){if(!Aa(r))return r;const s={};return Object.keys(r).forEach(n=>{s[n]=Lv(r[n])}),s}function no(r,s,n={clone:!0}){const c=n.clone?qe({},r):r;return Aa(r)&&Aa(s)&&Object.keys(s).forEach(l=>{Aa(s[l])&&Object.prototype.hasOwnProperty.call(r,l)&&Aa(r[l])?c[l]=no(r[l],s[l],n):n.clone?c[l]=Aa(s[l])?Lv(s[l]):s[l]:c[l]=s[l]}),c}const Qw=Object.freeze(Object.defineProperty({__proto__:null,default:no,isPlainObject:Aa},Symbol.toStringTag,{value:"Module"})),Jw=Fo(Qw);function ar(r){if(typeof r!="string")throw new Error(md(7));return r.charAt(0).toUpperCase()+r.slice(1)}const eC=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"})),tC=Fo(eC);var Eg={exports:{}},Zt={};/**
75 * @license React
76 * react-is.production.min.js
77 *
78 * Copyright (c) Facebook, Inc. and its affiliates.
79 *
80 * This source code is licensed under the MIT license found in the
81 * LICENSE file in the root directory of this source tree.
82 */var $y;function rC(){if($y)return Zt;$y=1;var r=Symbol.for("react.element"),s=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),x=Symbol.for("react.context"),O=Symbol.for("react.server_context"),Y=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),K=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function T(E){if(typeof E=="object"&&E!==null){var _=E.$$typeof;switch(_){case r:switch(E=E.type,E){case n:case l:case c:case Q:case te:return E;default:switch(E=E&&E.$$typeof,E){case O:case x:case Y:case G:case W:case u:return E;default:return _}}case s:return _}}}return Zt.ContextConsumer=x,Zt.ContextProvider=u,Zt.Element=r,Zt.ForwardRef=Y,Zt.Fragment=n,Zt.Lazy=G,Zt.Memo=W,Zt.Portal=s,Zt.Profiler=l,Zt.StrictMode=c,Zt.Suspense=Q,Zt.SuspenseList=te,Zt.
82isAsyncMode=function(){return!1},Zt.isConcurrentMode=function(){return!1},Zt.isContextConsumer=function(E){return T(E)===x},Zt.isContextProvider=function(E){return T(E)===u},Zt.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===r},Zt.isForwardRef=function(E){return T(E)===Y},Zt.isFragment=function(E){return T(E)===n},Zt.isLazy=function(E){return T(E)===G},Zt.isMemo=function(E){return T(E)===W},Zt.isPortal=function(E){return T(E)===s},Zt.isProfiler=function(E){return T(E)===l},Zt.isStrictMode=function(E){return T(E)===c},Zt.isSuspense=function(E){return T(E)===Q},Zt.isSuspenseList=function(E){return T(E)===te},Zt.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===l||E===c||E===Q||E===te||E===K||typeof E=="object"&&E!==null&&(E.$$typeof===G||E.$$typeof===W||E.$$typeof===u||E.$$typeof===x||E.$$typeof===Y||E.$$typeof===S||E.getModuleId!==void 0)},Zt.typeOf=T,Zt}var Wy;function nC(){return Wy||(Wy=1,Eg.exports=rC()),Eg.exports}var Uy=nC();const iC=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Rv(r){const s=`${r}`.match(iC);return s&&s[1]||""}function jv(r,s=""){return r.displayName||r.name||Rv(r)||s}function Hy(r,s,n){const c=jv(s);return r.displayName||(c!==""?`${n}(${c})`:n)}function sC(r){if(r!=null){if(typeof r=="string")return r;if(typeof r=="function")return jv(r,"Component");if(typeof r=="object")switch(r.$$typeof){case Uy.ForwardRef:return Hy(r,r.render,"ForwardRef");case Uy.Memo:return Hy(r,r.type,"memo");default:return}}}const oC=Object.freeze(Object.defineProperty({__proto__:null,default:sC,getFunctionName:Rv},Symbol.toStringTag,{value:"Module"})),aC=Fo(oC),lC=["values","unit","step"],cC=r=>{const s=Object.keys(r).map(n=>({key:n,val:r[n]}))||[];return s.sort((n,c)=>n.val-c.val),s.reduce((n,c)=>qe({},n,{[c.key]:c.val}),{})};function Nv(r){const{values:s={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:c=5}=r,l=xr(r,lC),u=cC(s),x=Object.keys(u);function O(G){return`@media (min-width:${typeof s[G]=="number"?s[G]:G}${n})`}function Y(G){return`@media (max-width:${(typeof s[G]=="number"?s[G]:G)-c/100}${n})`}function Q(G,K){const S=x.indexOf(K);return`@media (min-width:${typeof s[G]=="number"?s[G]:G}${n}) and (max-width:${(S!==-1&&typeof s[x[S]]=="number"?s[x[S]]:K)-c/100}${n})`}function te(G){return x.indexOf(G)+1<x.length?Q(G,x[x.indexOf(G)+1]):O(G)}function W(G){const K=x.indexOf(G);return K===0?O(x[1]):K===x.length-1?Y(x[K]):Q(G,x[x.indexOf(G)+1]).replace("@media","@media not all and")}return qe({keys:x,values:u,up:O,down:Y,between:Q,only:te,not:W,unit:n},l)}const uC={borderRadius:4};function ad(r,s){return s?no(r,s,{clone:!1}):r}const k0={xs:0,sm:600,md:900,lg:1200,xl:1536},Yy={keys:["xs","sm","md","lg","xl"],up:r=>`@media (min-width:${k0[r]}px)`};function Bo(r,s,n){const c=r.theme||{};if(Array.isArray(s)){const u=c.breakpoints||Yy;return s.reduce((x,O,Y)=>(x[u.up(u.keys[Y])]=n(s[Y]),x),{})}if(typeof s=="object"){const u=c.breakpoints||Yy;return Object.keys(s).reduce((x,O)=>{if(Object.keys(u.values||k0).indexOf(O)!==-1){const Y=u.up(O);x[Y]=n(s[O],O)}else{const Y=O;x[Y]=s[Y]}return x},{})}return n(s)}function hC(r={}){var s;return((s=r.keys)==null?void 0:s.reduce((c,l)=>{const u=r.up(l);return c[u]={},c},{}))||{}}function dC(r,s){return r.reduce((n,c)=>{const l=n[c];return(!l||Object.keys(l).length===0)&&delete n[c],n},s)}function Hp(r,s,n=!0){if(!s||typeof s!="string")return null;if(r&&r.vars&&n){const c=`vars.${s}`.split(".").reduce((l,u)=>l&&l[u]?l[u]:null,r);if(c!=null)return c}return s.split(".").reduce((c,l)=>c&&c[l]!=null?c[l]:null,r)}function Lp(r,s,n,c=n){let l;return typeof r=="function"?l=r(n):Array.isArray(r)?l=r[n]||c:l=Hp(r,n)||c,s&&(l=s(l,c,r)),l}function Ir(r){const{prop:s,cssProperty:n=r.prop,themeKey:c,transform:l}=r,u=x=>{if(x[s]==null)return null;const O=x[s],Y=x.theme,Q=Hp(Y,c)||{};return Bo(x,O,W=>{let G=Lp(Q,l,W);return W===G&&typeof W=="string"&&(G=Lp(Q,l,`${s}${W==="default"?"":ar(W)}`,W)),n===!1?G:{[n]:G}})};return u.propTypes={},u.filterProps=[s],u}function fC(r){const s={};return n=>(s[n]===void 0&&(s[n]=r(n)),s[n])}const pC={m:"margin",p:"padding"},mC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Xy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gC=fC(r=>{if(r.length>2)if(Xy[r])r=Xy[r];else return[r];const[s,n]=r.split(""),c=pC[s],l=mC[n]||"";return Array.isArray(l)?l.map(u=>c+u):[c+l]}),P0=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],E0=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...P0,...E0];function Ed(r,s,n,c){var l;const u=(l=Hp(r,s,!1))!=null?l:n;return typeof u=="number"?x=>
82typeof x=="string"?x:u*x:Array.isArray(u)?x=>typeof x=="string"?x:u[x]:typeof u=="function"?u:()=>{}}function Ov(r){return Ed(r,"spacing",8)}function Md(r,s){if(typeof s=="string"||s==null)return s;const n=Math.abs(s),c=r(n);return s>=0?c:typeof c=="number"?-c:`-${c}`}function yC(r,s){return n=>r.reduce((c,l)=>(c[l]=Md(s,n),c),{})}function xC(r,s,n,c){if(s.indexOf(n)===-1)return null;const l=gC(n),u=yC(l,c),x=r[n];return Bo(r,x,u)}function _v(r,s){const n=Ov(r.theme);return Object.keys(r).map(c=>xC(r,s,c,n)).reduce(ad,{})}function Rr(r){return _v(r,P0)}Rr.propTypes={};Rr.filterProps=P0;function jr(r){return _v(r,E0)}jr.propTypes={};jr.filterProps=E0;function vC(r=8){if(r.mui)return r;const s=Ov({spacing:r}),n=(...c)=>(c.length===0?[1]:c).map(u=>{const x=s(u);return typeof x=="number"?`${x}px`:x}).join(" ");return n.mui=!0,n}function Yp(...r){const s=r.reduce((c,l)=>(l.filterProps.forEach(u=>{c[u]=l}),c),{}),n=c=>Object.keys(c).reduce((l,u)=>s[u]?ad(l,s[u](c)):l,{});return n.propTypes={},n.filterProps=r.reduce((c,l)=>c.concat(l.filterProps),[]),n}function qi(r){return typeof r!="number"?r:`${r}px solid`}function Qi(r,s){return Ir({prop:r,themeKey:"borders",transform:s})}const bC=Qi("border",qi),SC=Qi("borderTop",qi),wC=Qi("borderRight",qi),CC=Qi("borderBottom",qi),kC=Qi("borderLeft",qi),PC=Qi("borderColor"),EC=Qi("borderTopColor"),MC=Qi("borderRightColor"),TC=Qi("borderBottomColor"),AC=Qi("borderLeftColor"),LC=Qi("outline",qi),RC=Qi("outlineColor"),Xp=r=>{if(r.borderRadius!==void 0&&r.borderRadius!==null){const s=Ed(r.theme,"shape.borderRadius",4),n=c=>({borderRadius:Md(s,c)});return Bo(r,r.borderRadius,n)}return null};Xp.propTypes={};Xp.filterProps=["borderRadius"];Yp(bC,SC,wC,CC,kC,PC,EC,MC,TC,AC,Xp,LC,RC);const Gp=r=>{if(r.gap!==void 0&&r.gap!==null){const s=Ed(r.theme,"spacing",8),n=c=>({gap:Md(s,c)});return Bo(r,r.gap,n)}return null};Gp.propTypes={};Gp.filterProps=["gap"];const Vp=r=>{if(r.columnGap!==void 0&&r.columnGap!==null){const s=Ed(r.theme,"spacing",8),n=c=>({columnGap:Md(s,c)});return Bo(r,r.columnGap,n)}return null};Vp.propTypes={};Vp.filterProps=["columnGap"];const qp=r=>{if(r.rowGap!==void 0&&r.rowGap!==null){const s=Ed(r.theme,"spacing",8),n=c=>({rowGap:Md(s,c)});return Bo(r,r.rowGap,n)}return null};qp.propTypes={};qp.filterProps=["rowGap"];const jC=Ir({prop:"gridColumn"}),NC=Ir({prop:"gridRow"}),OC=Ir({prop:"gridAutoFlow"}),_C=Ir({prop:"gridAutoColumns"}),DC=Ir({prop:"gridAutoRows"}),IC=Ir({prop:"gridTemplateColumns"}),BC=Ir({prop:"gridTemplateRows"}),FC=Ir({prop:"gridTemplateAreas"}),zC=Ir({prop:"gridArea"});Yp(Gp,Vp,qp,jC,NC,OC,_C,DC,IC,BC,FC,zC);function mu(r,s){return s==="grey"?s:r}const $C=Ir({prop:"color",themeKey:"palette",transform:mu}),WC=Ir({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:mu}),UC=Ir({prop:"backgroundColor",themeKey:"palette",transform:mu});Yp($C,WC,UC);function Ei(r){return r<=1&&r!==0?`${r*100}%`:r}const HC=Ir({prop:"width",transform:Ei}),M0=r=>{if(r.maxWidth!==void 0&&r.maxWidth!==null){const s=n=>{var c,l;const u=((c=r.theme)==null||(c=c.breakpoints)==null||(c=c.values)==null?void 0:c[n])||k0[n];return u?((l=r.theme)==null||(l=l.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${u}${r.theme.breakpoints.unit}`}:{maxWidth:u}:{maxWidth:Ei(n)}};return Bo(r,r.maxWidth,s)}return null};M0.filterProps=["maxWidth"];const YC=Ir({prop:"minWidth",transform:Ei}),XC=Ir({prop:"height",transform:Ei}),GC=Ir({prop:"maxHeight",transform:Ei}),VC=Ir({prop:"minHeight",transform:Ei});Ir({prop:"size",cssProperty:"width",transform:Ei});Ir({prop:"size",cssProperty:"height",transform:Ei});const qC=Ir({prop:"boxSizing"});Yp(HC,M0,YC,XC,GC,VC,qC);const Td={border:{themeKey:"borders",transform:qi},borderTop:{themeKey:"borders",transform:qi},borderRight:{themeKey:"borders",transform:qi},borderBottom:{themeKey:"borders",transform:qi},borderLeft:{themeKey:"borders",transform:qi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"}
82,outline:{themeKey:"borders",transform:qi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xp},color:{themeKey:"palette",transform:mu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:mu},backgroundColor:{themeKey:"palette",transform:mu},p:{style:jr},pt:{style:jr},pr:{style:jr},pb:{style:jr},pl:{style:jr},px:{style:jr},py:{style:jr},padding:{style:jr},paddingTop:{style:jr},paddingRight:{style:jr},paddingBottom:{style:jr},paddingLeft:{style:jr},paddingX:{style:jr},paddingY:{style:jr},paddingInline:{style:jr},paddingInlineStart:{style:jr},paddingInlineEnd:{style:jr},paddingBlock:{style:jr},paddingBlockStart:{style:jr},paddingBlockEnd:{style:jr},m:{style:Rr},mt:{style:Rr},mr:{style:Rr},mb:{style:Rr},ml:{style:Rr},mx:{style:Rr},my:{style:Rr},margin:{style:Rr},marginTop:{style:Rr},marginRight:{style:Rr},marginBottom:{style:Rr},marginLeft:{style:Rr},marginX:{style:Rr},marginY:{style:Rr},marginInline:{style:Rr},marginInlineStart:{style:Rr},marginInlineEnd:{style:Rr},marginBlock:{style:Rr},marginBlockStart:{style:Rr},marginBlockEnd:{style:Rr},displayPrint:{cssProperty:!1,transform:r=>({"@media print":{display:r}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Gp},rowGap:{style:qp},columnGap:{style:Vp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ei},maxWidth:{style:M0},minWidth:{transform:Ei},height:{transform:Ei},maxHeight:{transform:Ei},minHeight:{transform:Ei},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function KC(...r){const s=r.reduce((c,l)=>c.concat(Object.keys(l)),[]),n=new Set(s);return r.every(c=>n.size===Object.keys(c).length)}function ZC(r,s){return typeof r=="function"?r(s):r}function Dv(){function r(n,c,l,u){const x={[n]:c,theme:l},O=u[n];if(!O)return{[n]:c};const{cssProperty:Y=n,themeKey:Q,transform:te,style:W}=O;if(c==null)return null;if(Q==="typography"&&c==="inherit")return{[n]:c};const G=Hp(l,Q)||{};return W?W(x):Bo(x,c,S=>{let T=Lp(G,te,S);return S===T&&typeof S=="string"&&(T=Lp(G,te,`${n}${S==="default"?"":ar(S)}`,S)),Y===!1?T:{[Y]:T}})}function s(n){var c;const{sx:l,theme:u={}}=n||{};if(!l)return null;const x=(c=u.unstable_sxConfig)!=null?c:Td;function O(Y){let Q=Y;if(typeof Y=="function")Q=Y(u);else if(typeof Y!="object")return Y;if(!Q)return null;const te=hC(u.breakpoints),W=Object.keys(te);let G=te;return Object.keys(Q).forEach(K=>{const S=ZC(Q[K],u);if(S!=null)if(typeof S=="object")if(x[K])G=ad(G,r(K,S,u,x));else{const T=Bo({theme:u},S,E=>({[K]:E}));KC(T,S)?G[K]=s({sx:S,theme:u}):G=ad(G,T)}else G=ad(G,r(K,S,u,x))}),dC(W,G)}return Array.isArray(l)?l.map(O):O(l)}return s}const Kp=Dv();Kp.filterProps=["sx"];function Iv(r,s){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(r).replace(/(\[[^\]]+\])/,"*:where($1)")]:s}:n.palette.mode===r?s:{}}const QC=["breakpoints","palette","spacing","shape"];function T0(r={},...s){const{breakpoints:n={},palette:c={},spacing:l,shape:u={}}=r,x=xr(r,QC),O=Nv(n),Y=vC(l);let Q=no({breakpoints:O,direction:"ltr",components:{},palette:qe({mode:"light"},c),spacing:Y,shape:qe({},uC,u)},x);return Q.applyStyles=Iv,Q=s.reduce((te,W)=>no(te,W),Q),Q.unstable_sxConfig=qe({},Td,x==null?void 0:x.unstable_sxConfig),Q.unstable_sx=function(W){return Kp({sx:W,theme:this})},Q}const JC=Object.freeze(Object.defineProperty({__proto__:null,default:T0,private_createBreakpoints:Nv,unstable_applyStyles:Iv},Symbol.toStringTag,{value:"Module"})),ek=Fo(JC),tk=["sx"],rk=r=>{var s,n;const c={systemProps:{},otherProps:{}},l=(s=r==null||(n=r.theme)==null?void 0:n.unstable_sxConfig)!=null?s:Td;return Object.keys(r).forEach(u=>{l[u]?c.systemProps[u]=r[u]:c.otherProps[u]=r[u]}),c};function nk(r){const{sx:s}=r,n=xr(r,tk),{systemProps:c,otherProps:l}=rk(n);let u;return Array.isArray(s)?u=[c,...s]:typeof s=="function"?u=(...x)=>{const O=s(...x);return Aa(O)?qe({},c,O):c}:u=qe({},c,s),qe({},l,{sx:u})}const ik=Object.freeze(Object.defineProperty({__proto__:null,default:Kp,extendSxProp:nk,unstable_createStyleFunctionSx:Dv,unstable_defaultSxConfig:Td},Symbol.toStringTag,{value:"Module"})),sk=Fo(ik);var Gy;function ok(){if(Gy)return Pl;Gy=1;var r=Mu();
82Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.default=k,Pl.shouldForwardProp=S,Pl.systemDefaultTheme=void 0;var s=r(q2()),n=r(K2()),c=W(Zw),l=Jw;r(tC),r(aC);var u=r(ek),x=r(sk);const O=["ownerState"],Y=["variants"],Q=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function te(b){if(typeof WeakMap!="function")return null;var C=new WeakMap,m=new WeakMap;return(te=function(q){return q?m:C})(b)}function W(b,C){if(b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var m=te(C);if(m&&m.has(b))return m.get(b);var q={__proto__:null},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in b)if(H!=="default"&&Object.prototype.hasOwnProperty.call(b,H)){var M=V?Object.getOwnPropertyDescriptor(b,H):null;M&&(M.get||M.set)?Object.defineProperty(q,H,M):q[H]=b[H]}return q.default=b,m&&m.set(b,q),q}function G(b){return Object.keys(b).length===0}function K(b){return typeof b=="string"&&b.charCodeAt(0)>96}function S(b){return b!=="ownerState"&&b!=="theme"&&b!=="sx"&&b!=="as"}const T=Pl.systemDefaultTheme=(0,u.default)(),E=b=>b&&b.charAt(0).toLowerCase()+b.slice(1);function _({defaultTheme:b,theme:C,themeId:m}){return G(C)?b:C[m]||C}function g(b){return b?(C,m)=>m[b]:null}function w(b,C){let{ownerState:m}=C,q=(0,n.default)(C,O);const V=typeof b=="function"?b((0,s.default)({ownerState:m},q)):b;if(Array.isArray(V))return V.flatMap(H=>w(H,(0,s.default)({ownerState:m},q)));if(V&&typeof V=="object"&&Array.isArray(V.variants)){const{variants:H=[]}=V;let $=(0,n.default)(V,Y);return H.forEach(P=>{let h=!0;typeof P.props=="function"?h=P.props((0,s.default)({ownerState:m},q,m)):Object.keys(P.props).forEach(f=>{(m==null?void 0:m[f])!==P.props[f]&&q[f]!==P.props[f]&&(h=!1)}),h&&(Array.isArray($)||($=[$]),$.push(typeof P.style=="function"?P.style((0,s.default)({ownerState:m},q,m)):P.style))}),$}return V}function k(b={}){const{themeId:C,defaultTheme:m=T,rootShouldForwardProp:q=S,slotShouldForwardProp:V=S}=b,H=M=>(0,x.default)((0,s.default)({},M,{theme:_((0,s.default)({},M,{defaultTheme:m,themeId:C}))}));return H.__mui_systemSx=!0,(M,$={})=>{(0,c.internal_processStyles)(M,le=>le.filter(ue=>!(ue!=null&&ue.__mui_systemSx)));const{name:P,slot:h,skipVariantsResolver:f,skipSx:L,overridesResolver:v=g(E(h))}=$,A=(0,n.default)($,Q),B=f!==void 0?f:h&&h!=="Root"&&h!=="root"||!1,R=L||!1;let D,Z=S;h==="Root"||h==="root"?Z=q:h?Z=V:K(M)&&(Z=void 0);const X=(0,c.default)(M,(0,s.default)({shouldForwardProp:Z,label:D},A)),ie=le=>typeof le=="function"&&le.__emotion_real!==le||(0,l.isPlainObject)(le)?ue=>w(le,(0,s.default)({},ue,{theme:_({theme:ue.theme,defaultTheme:m,themeId:C})})):le,oe=(le,...ue)=>{let F=ie(le);const N=ue?ue.map(ie):[];P&&v&&N.push(j=>{const I=_((0,s.default)({},j,{defaultTheme:m,themeId:C}));if(!I.components||!I.components[P]||!I.components[P].styleOverrides)return null;const U=I.components[P].styleOverrides,J={};
82return Object.entries(U).forEach(([se,ae])=>{J[se]=w(ae,(0,s.default)({},j,{theme:I}))}),v(j,J)}),P&&!B&&N.push(j=>{var I;const U=_((0,s.default)({},j,{defaultTheme:m,themeId:C})),J=U==null||(I=U.components)==null||(I=I[P])==null?void 0:I.variants;return w({variants:J},(0,s.default)({},j,{theme:U}))}),R||N.push(H);const ee=N.length-ue.length;if(Array.isArray(le)&&ee>0){const j=new Array(ee).fill("");F=[...le,...j],F.raw=[...le.raw,...j]}const ce=X(F,...N);return M.muiName&&(ce.muiName=M.muiName),ce};return X.withConfig&&(oe.withConfig=X.withConfig),oe}}return Pl}var ak=ok();const lk=li(ak),Vy=r=>r,ck=()=>{let r=Vy;return{configure(s){r=s},generate(s){return r(s)},reset(){r=Vy}}},Bv=ck(),uk={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function zo(r,s,n="Mui"){const c=uk[s];return c?`${n}-${c}`:`${Bv.generate(r)}-${s}`}function hk(r,s){return qe({toolbar:{minHeight:56,[r.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[r.up("sm")]:{minHeight:64}}},s)}const vd={black:"#000",white:"#fff"},dk={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},nu={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},iu={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Qh={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},su={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ou={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},au={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},fk=["mode","contrastThreshold","tonalOffset"],qy={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:vd.white,default:vd.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Mg={text:{primary:vd.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:vd.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Ky(r,s,n,c){const l=c.light||c,u=c.dark||c*1.5;r[s]||(r.hasOwnProperty(n)?r[s]=r[n]:s==="light"?r.light=$n.lighten(r.main,l):s==="dark"&&(r.dark=$n.darken(r.main,u)))}function pk(r="light"){return r==="dark"?{main:su[200],light:su[50],dark:su[400]}:{main:su[700],light:su[400],dark:su[800]}}function mk(r="light"){return r==="dark"?{main:nu[200],light:nu[50],dark:nu[400]}:{main:nu[500],light:nu[300],dark:nu[700]}}function gk(r="light"){return r==="dark"?{main:iu[500],light:iu[300],dark:iu[700]}:{main:iu[700],light:iu[400],dark:iu[800]}}function yk(r="light"){return r==="dark"?{main:ou[400],light:ou[300],dark:ou[700]}:{main:ou[700],light:ou[500],dark:ou[900]}}function xk(r="light"){return r==="dark"?{main:au[400],light:au[300],dark:au[700]}:{main:au[800],light:au[500],dark:au[900]}}function vk(r="light"){return r==="dark"?{main:Qh[400],light:Qh[300],dark:Qh[700]}:{main:"#ed6c02",light:Qh[500],dark:Qh[900]}}function bk(r){const{mode:s="light",contrastThreshold:n=3,tonalOffset:c=.2}=r,l=xr(r,fk),u=r.primary||pk(s),x=r.secondary||mk(s),O=r.error||gk(s),Y=r.info||yk(s),Q=r.success||xk(s),te=r.warning||vk(s);function W(T){return $n.getContrastRatio(T,Mg.text.primary)>=n?Mg.text.primary:qy.text.primary}const G=({color:T,name:E,mainShade:_=500,lightShade:g=300,darkShade:w=700})=>{if(T=qe({},T),!T.main&&T[_]&&(T.main=T[_]),!T.hasOwnProperty("main"))throw new Error(md(11,E?` (${E})`:"",_));if(typeof T.main!="string")throw new Error(md(12,E?` (${E})`:"",JSON.stringify(T.main)));
82return Ky(T,"light",g,c),Ky(T,"dark",w,c),T.contrastText||(T.contrastText=W(T.main)),T},K={dark:Mg,light:qy};return no(qe({common:qe({},vd),mode:s,primary:G({color:u,name:"primary"}),secondary:G({color:x,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:G({color:O,name:"error"}),warning:G({color:te,name:"warning"}),info:G({color:Y,name:"info"}),success:G({color:Q,name:"success"}),grey:dk,contrastThreshold:n,getContrastText:W,augmentColor:G,tonalOffset:c},K[s]),l)}const Sk=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function wk(r){return Math.round(r*1e5)/1e5}const Zy={textTransform:"uppercase"},Qy='"Roboto", "Helvetica", "Arial", sans-serif';function Ck(r,s){const n=typeof s=="function"?s(r):s,{fontFamily:c=Qy,fontSize:l=14,fontWeightLight:u=300,fontWeightRegular:x=400,fontWeightMedium:O=500,fontWeightBold:Y=700,htmlFontSize:Q=16,allVariants:te,pxToRem:W}=n,G=xr(n,Sk),K=l/14,S=W||(_=>`${_/Q*K}rem`),T=(_,g,w,k,b)=>qe({fontFamily:c,fontWeight:_,fontSize:S(g),lineHeight:w},c===Qy?{letterSpacing:`${wk(k/g)}em`}:{},b,te),E={h1:T(u,96,1.167,-1.5),h2:T(u,60,1.2,-.5),h3:T(x,48,1.167,0),h4:T(x,34,1.235,.25),h5:T(x,24,1.334,0),h6:T(O,20,1.6,.15),subtitle1:T(x,16,1.75,.15),subtitle2:T(O,14,1.57,.1),body1:T(x,16,1.5,.15),body2:T(x,14,1.43,.15),button:T(O,14,1.75,.4,Zy),caption:T(x,12,1.66,.4),overline:T(x,12,2.66,1,Zy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return no(qe({htmlFontSize:Q,pxToRem:S,fontFamily:c,fontSize:l,fontWeightLight:u,fontWeightRegular:x,fontWeightMedium:O,fontWeightBold:Y},E),G,{clone:!1})}const kk=.2,Pk=.14,Ek=.12;function br(...r){return[`${r[0]}px ${r[1]}px ${r[2]}px ${r[3]}px rgba(0,0,0,${kk})`,`${r[4]}px ${r[5]}px ${r[6]}px ${r[7]}px rgba(0,0,0,${Pk})`,`${r[8]}px ${r[9]}px ${r[10]}px ${r[11]}px rgba(0,0,0,${Ek})`].join(",")}const Mk=["none",br(0,2,1,-1,0,1,1,0,0,1,3,0),br(0,3,1,-2,0,2,2,0,0,1,5,0),br(0,3,3,-2,0,3,4,0,0,1,8,0),br(0,2,4,-1,0,4,5,0,0,1,10,0),br(0,3,5,-1,0,5,8,0,0,1,14,0),br(0,3,5,-1,0,6,10,0,0,1,18,0),br(0,4,5,-2,0,7,10,1,0,2,16,1),br(0,5,5,-3,0,8,10,1,0,3,14,2),br(0,5,6,-3,0,9,12,1,0,3,16,2),br(0,6,6,-3,0,10,14,1,0,4,18,3),br(0,6,7,-4,0,11,15,1,0,4,20,3),br(0,7,8,-4,0,12,17,2,0,5,22,4),br(0,7,8,-4,0,13,19,2,0,5,24,4),br(0,7,9,-4,0,14,21,2,0,5,26,4),br(0,8,9,-5,0,15,22,2,0,6,28,5),br(0,8,10,-5,0,16,24,2,0,6,30,5),br(0,8,11,-5,0,17,26,2,0,6,32,5),br(0,9,11,-5,0,18,28,2,0,7,34,6),br(0,9,12,-6,0,19,29,2,0,7,36,6),br(0,10,13,-6,0,20,31,3,0,8,38,7),br(0,10,13,-6,0,21,33,3,0,8,40,7),br(0,10,14,-6,0,22,35,3,0,8,42,7),br(0,11,14,-7,0,23,36,3,0,9,44,8),br(0,11,15,-7,0,24,38,3,0,9,46,8)],Tk=["duration","easing","delay"],Ak={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Lk={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Jy(r){return`${Math.round(r)}ms`}function Rk(r){if(!r)return 0;const s=r/36;return Math.round((4+15*s**.25+s/5)*10)}function jk(r){const s=qe({},Ak,r.easing),n=qe({},Lk,r.duration);return qe({getAutoHeightDuration:Rk,create:(l=["all"],u={})=>{const{duration:x=n.standard,easing:O=s.easeInOut,delay:Y=0}=u;return xr(u,Tk),(Array.isArray(l)?l:[l]).map(Q=>`${Q} ${typeof x=="string"?x:Jy(x)} ${O} ${typeof Y=="string"?Y:Jy(Y)}`).join(",")}},r,{easing:s,duration:n})}const Nk={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ok=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Zp(r={},...s){const{mixins:n={},palette:c={},transitions:l={},typography:u={}}=r,x=xr(r,Ok);if(r.vars)throw new Error(md(18));const O=bk(c),Y=T0(r);let Q=no(Y,{mixins:hk(Y.breakpoints,n),palette:O,shadows:Mk.slice(),typography:Ck(O,u),transitions:jk(l),zIndex:qe({},Nk)});return Q=no(Q,x),Q=s.reduce((te,W)=>no(te,W),Q),Q.unstable_sxConfig=qe({},Td,x==null?void 0:x.unstable_sxConfig),Q.unstable_sx=function(W){return Kp({sx:W,theme:this})},Q}const Fv=Zp(),Rp="$$material";function A0(r){return r!=="ownerState"&&r!=="theme"&&r!=="sx"&&r!=="as"}const zv=r=>A0(r)&&r!=="classes",Hr=lk({themeId:Rp,defaultTheme:Fv,rootShouldForwardProp:zv}),$v=Me.createContext(void 0);function _k({value:r,children:s}){return y.jsx($v.Provider,{value:r,children:s})}function Dk(r){const{theme:s,name:n,props:c}=r;if(!s||!s.components||!s.components[n])return c;const l=s.components[n];return l.defaultProps?Tp(l.defaultProps,c):!l.styleOverrides&&!l.variants?Tp(l,c):c}function Ik({props:r,name:s}){const n=Me.useContext($v);return Dk({props:r,name:s,theme:{components:n}})}function $o(r){return Ik(r)}function jp(r,s){typeof r=="function"?r(s):r&&(r.current=s)}function Ti(...r){return Me.useMemo(()=>r.every(s=>s==null)?null:s=>{r.forEach(n=>
82{jp(n,s)})},r)}const bd=typeof window<"u"?Me.useLayoutEffect:Me.useEffect;function Ss(r){const s=Me.useRef(r);return bd(()=>{s.current=r}),Me.useRef((...n)=>(0,s.current)(...n)).current}const ex={};function Bk(r,s){const n=Me.useRef(ex);return n.current===ex&&(n.current=r(s)),n}const Fk=[];function zk(r){Me.useEffect(r,Fk)}class Qp{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Qp}start(s,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},s)}}function Wv(){const r=Bk(Qp.create).current;return zk(r.disposeEffect),r}let Jp=!0,t0=!1;const $k=new Qp,Wk={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Uk(r){const{type:s,tagName:n}=r;return!!(n==="INPUT"&&Wk[s]&&!r.readOnly||n==="TEXTAREA"&&!r.readOnly||r.isContentEditable)}function Hk(r){r.metaKey||r.altKey||r.ctrlKey||(Jp=!0)}function Tg(){Jp=!1}function Yk(){this.visibilityState==="hidden"&&t0&&(Jp=!0)}function Xk(r){r.addEventListener("keydown",Hk,!0),r.addEventListener("mousedown",Tg,!0),r.addEventListener("pointerdown",Tg,!0),r.addEventListener("touchstart",Tg,!0),r.addEventListener("visibilitychange",Yk,!0)}function Gk(r){const{target:s}=r;try{return s.matches(":focus-visible")}catch{}return Jp||Uk(s)}function L0(){const r=Me.useCallback(l=>{l!=null&&Xk(l.ownerDocument)},[]),s=Me.useRef(!1);function n(){return s.current?(t0=!0,$k.start(100,()=>{t0=!1}),s.current=!1,!0):!1}function c(l){return Gk(l)?(s.current=!0,!0):!1}return{isFocusVisibleRef:s,onFocus:c,onBlur:n,ref:r}}function r0(r,s){return r0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,c){return n.__proto__=c,n},r0(r,s)}function Uv(r,s){r.prototype=Object.create(s.prototype),r.prototype.constructor=r,r0(r,s)}const tx={disabled:!1},Np=Gt.createContext(null);var Vk=function(s){return s.scrollTop},nd="unmounted",El="exited",Ml="entering",hu="entered",n0="exiting",io=function(r){Uv(s,r);function s(c,l){var u;u=r.call(this,c,l)||this;var x=l,O=x&&!x.isMounting?c.enter:c.appear,Y;return u.appearStatus=null,c.in?O?(Y=El,u.appearStatus=Ml):Y=hu:c.unmountOnExit||c.mountOnEnter?Y=nd:Y=El,u.state={status:Y},u.nextCallback=null,u}s.getDerivedStateFromProps=function(l,u){var x=l.in;return x&&u.status===nd?{status:El}:null};var n=s.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(l){var u=null;if(l!==this.props){var x=this.state.status;this.props.in?x!==Ml&&x!==hu&&(u=Ml):(x===Ml||x===hu)&&(u=n0)}this.updateStatus(!1,u)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var l=this.props.timeout,u,x,O;return u=x=O=l,l!=null&&typeof l!="number"&&(u=l.exit,x=l.enter,O=l.appear!==void 0?l.appear:x),{exit:u,enter:x,appear:O}},n.updateStatus=function(l,u){if(l===void 0&&(l=!1),u!==null)if(this.cancelNextCallback(),u===Ml){if(this.props.unmountOnExit||this.props.mountOnEnter){var x=this.props.nodeRef?this.props.nodeRef.current:ip.findDOMNode(this);x&&Vk(x)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===El&&this.setState({status:nd})},n.performEnter=function(l){var u=this,x=this.props.enter,O=this.context?this.context.isMounting:l,Y=this.props.nodeRef?[O]:[ip.findDOMNode(this),O],Q=Y[0],te=Y[1],W=this.getTimeouts(),G=O?W.appear:W.enter;if(!l&&!x||tx.disabled){this.safeSetState({status:hu},function(){u.props.onEntered(Q)});return}this.props.onEnter(Q,te),this.safeSetState({status:Ml},function(){u.props.onEntering(Q,te),u.onTransitionEnd(G,function(){u.safeSetState({status:hu},function(){u.props.onEntered(Q,te)})})})},n.performExit=function(){var l=this,u=this.props.exit,x=this.getTimeouts(),O=this.props.nodeRef?void 0:ip.findDOMNode(this);if(!u||tx.disabled){this.safeSetState({status:El},function(){l.props.onExited(O)});return}this.props.onExit(O),this.safeSetState({status:n0},function(){l.props.onExiting(O),l.onTransitionEnd(x.exit,function(){l.
vendor: 1,665 bytes, line 82
82safeSetState({status:El},function(){l.props.onExited(O)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(l,u){u=this.setNextCallback(u),this.setState(l,u)},n.setNextCallback=function(l){var u=this,x=!0;return this.nextCallback=function(O){x&&(x=!1,u.nextCallback=null,l(O))},this.nextCallback.cancel=function(){x=!1},this.nextCallback},n.onTransitionEnd=function(l,u){this.setNextCallback(u);var x=this.props.nodeRef?this.props.nodeRef.current:ip.findDOMNode(this),O=l==null&&!this.props.addEndListener;if(!x||O){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var Y=this.props.nodeRef?[this.nextCallback]:[x,this.nextCallback],Q=Y[0],te=Y[1];this.props.addEndListener(Q,te)}l!=null&&setTimeout(this.nextCallback,l)},n.render=function(){var l=this.state.status;if(l===nd)return null;var u=this.props,x=u.children;u.in,u.mountOnEnter,u.unmountOnExit,u.appear,u.enter,u.exit,u.timeout,u.addEndListener,u.onEnter,u.onEntering,u.onEntered,u.onExit,u.onExiting,u.onExited,u.nodeRef;var O=xr(u,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Gt.createElement(Np.Provider,{value:null},typeof x=="function"?x(l,O):Gt.cloneElement(Gt.Children.only(x),O))},s}(Gt.Component);io.contextType=Np;io.propTypes={};function lu(){}io.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:lu,onEntering:lu,onEntered:lu,onExit:lu,onExiting:lu,onExited:lu};io.UNMOUNTED=nd;io.EXITED=El;io.ENTERING=Ml;
82io.ENTERED=hu;io.EXITING=n0;function qk(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function R0(r,s){var n=function(u){return s&&Me.isValidElement(u)?s(u):u},c=Object.create(null);return r&&Me.Children.map(r,function(l){return l}).forEach(function(l){c[l.key]=n(l)}),c}function Kk(r,s){r=r||{},s=s||{};function n(te){return te in s?s[te]:r[te]}var c=Object.create(null),l=[];for(var u in r)u in s?l.length&&(c[u]=l,l=[]):l.push(u);var x,O={};for(var Y in s){if(c[Y])for(x=0;x<c[Y].length;x++){var Q=c[Y][x];O[c[Y][x]]=n(Q)}O[Y]=n(Y)}for(x=0;x<l.length;x++)O[l[x]]=n(l[x]);return O}function Al(r,s,n){return n[s]!=null?n[s]:r.props[s]}function Zk(r,s){return R0(r.children,function(n){return Me.cloneElement(n,{onExited:s.bind(null,n),in:!0,appear:Al(n,"appear",r),enter:Al(n,"enter",r),exit:Al(n,"exit",r)})})}function Qk(r,s,n){var c=R0(r.children),l=Kk(s,c);return Object.keys(l).forEach(function(u){var x=l[u];if(Me.isValidElement(x)){var O=u in s,Y=u in c,Q=s[u],te=Me.isValidElement(Q)&&!Q.props.in;Y&&(!O||te)?l[u]=Me.cloneElement(x,{onExited:n.bind(null,x),in:!0,exit:Al(x,"exit",r),enter:Al(x,"enter",r)}):!Y&&O&&!te?l[u]=Me.cloneElement(x,{in:!1}):Y&&O&&Me.isValidElement(Q)&&(l[u]=Me.cloneElement(x,{onExited:n.bind(null,x),in:Q.props.in,exit:Al(x,"exit",r),enter:Al(x,"enter",r)}))}}),l}var Jk=Object.values||function(r){return Object.keys(r).map(function(s){return r[s]})},eP={component:"div",childFactory:function(s){return s}},j0=function(r){Uv(s,r);function s(c,l){var u;u=r.call(this,c,l)||this;var x=u.handleExited.bind(qk(u));return u.state={contextValue:{isMounting:!0},handleExited:x,firstRender:!0},u}var n=s.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},s.getDerivedStateFromProps=function(l,u){var x=u.children,O=u.handleExited,Y=u.firstRender;return{children:Y?Zk(l,O):Qk(l,x,O),firstRender:!1}},n.handleExited=function(l,u){var x=R0(this.props.children);l.key in x||(l.props.onExited&&l.props.onExited(u),this.mounted&&this.setState(function(O){var Y=qe({},O.children);return delete Y[l.key],{children:Y}}))},n.render=function(){var l=this.props,u=l.component,x=l.childFactory,O=xr(l,["component","childFactory"]),Y=this.state.contextValue,Q=Jk(this.state.children).map(x);return delete O.appear,delete O.enter,delete O.exit,u===null?Gt.createElement(Np.Provider,{value:Y},Q):Gt.createElement(Np.Provider,{value:Y},Gt.createElement(u,O,Q))},s}(Gt.Component);j0.propTypes={};j0.defaultProps=eP;function tP(r){return Object.keys(r).length===0}function Hv(r=null){const s=Me.useContext(Pd);return!s||tP(s)?r:s}const rP=T0();function nP(r=rP){return Hv(r)}function Wo(r,s,n="Mui"){const c={};return s.forEach(l=>{c[l]=zo(r,l,n)}),c}function i0(...r){return r.reduce((s,n)=>n==null?s:function(...l){s.apply(this,l),n.apply(this,l)},()=>{})}function Yv(r,s=166){let n;function c(...l){const u=()=>{r.apply(this,l)};clearTimeout(n),n=setTimeout(u,s)}return c.clear=()=>{clearTimeout(n)},c}function iP(r,s){return()=>null}function sP(r,s){var n,c;return Me.isValidElement(r)&&s.indexOf((n=r.type.muiName)!=null?n:(c=r.type)==null||(c=c._payload)==null||(c=c.value)==null?void 0:c.muiName)!==-1}function un(r){return r&&r.ownerDocument||document}function Su(r){return un(r).defaultView||window}function oP(r,s){return()=>null}let rx=0;function aP(r){const[s,n]=Me.useState(r),c=r||s;return Me.useEffect(()=>{s==null&&(rx+=1,n(`mui-${rx}`))},[s]),c}const nx=Ep.useId;function lP(r){if(nx!==void 0){const s=nx();return r??s}return aP(r)}function cP(r,s,n,c,l){return null}function Xv({controlled:r,default:s,name:n,state:c="value"}){const{current:l}=Me.useRef(r!==void 0),[u,x]=Me.useState(s),O=l?r:u,Y=Me.useCallback(Q=>{l||x(Q)},[]);return[O,Y]}function uP(r){const s=r.documentElement.clientWidth;return Math.abs(window.innerWidth-s)}const hP={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Gv=Me.createContext(null);function Vv(){return Me.useContext(Gv)}const dP=typeof Symbol=="function"&&Symbol.for,fP=dP?Symbol.for("mui.nested"):"__THEME_NESTED__";function pP(r,s){return typeof s=="function"?s(r):qe({},r,s)}function mP(r){const{children:s,theme:n}=r,c=Vv(),l=Me.useMemo(()=>{const u=c===null?n:pP(c,n);return u!=null&&(u[fP]=c!==null),u},[n,c]);return y.jsx(Gv.Provider,{value:l,children:s})}const gP=["value"],qv=Me.createContext();function yP(r){let{value:s}=r,n=xr(r,gP);return y.jsx(qv.Provider,qe({value:s??!0},n))}const xP=()=>{const r=Me.useContext(qv);return r??!1},ix={};function sx(r,s,n,c=!1){return Me.useMemo(()=>{const l=r&&s[r]||s;if(typeof n=="function"){const u=n(l),x=r?qe({},s,{[r]:u}):u;return c?()=>x:x}return r?qe({},s,{[r]:n}):qe({},s,n)},[r,s,n,c])}function vP(r){const{children:s,theme:n,themeId:c}=r,l=Hv(ix),u=Vv()||ix,x=sx(c,l,n),O=sx(c,u,n,!0),Y=x.direction==="rtl";return y.jsx(mP,{theme:O,children:y.jsx(Pd.Provider,{value:x,children:y.jsx(yP,{value:Y,children:y.jsx(_k,{value:x==null?void 0:x.components,children:s})})})})}function bP(r){const{className:s,classes:n,pulsate:c=!1,rippleX:l,rippleY:u,rippleSize:x,in:O,onExited:Y,timeout:Q}=r,[te,W]=Me.useState(!1),G=or(s,n.ripple,n.rippleVisible,c&&n.ripplePulsate),K={width:x,height:x,top:-(x/2)+u,left:-(x/2)+l},S=or(n.child,te&&n.childLeaving,c&&n.childPulsate);return!O&&!te&&W(!0),Me.useEffect(()=>{if(!O&&Y!=null){const T=setTimeout(Y,Q);return()=>{clearTimeout(T)}}},[Y,O,Q]),y.jsx("span",{className:G,style:K,children:y.jsx("span",{className:S})})}const Vi=Wo("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),SP=["center","classes","className"];let em=r=>r,ox,ax,lx,cx;const s0=550,wP=80,CP=Up(ox||(ox=em`
83  0% {
84    transform: scale(0);
85    opacity: 0.1;
86  }
87
88  100% {
89    transform: scale(1);
90    opacity: 0.3;
91  }
92`)),kP=Up(ax||(ax=em`
93  0% {
94    opacity: 1;
95  }
96
97  100% {
98    opacity: 0;
99  }
100`)),PP=Up(lx||(lx=em`
101  0% {
102    transform: scale(1);
103  }
104
105  50% {
106    transform: scale(0.92);
107  }
108
109  100% {
110    transform: scale(1);
111  }
112`)),EP=Hr("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),MP=Hr(bP,{name:"MuiTouchRipple",slot:"Ripple"})(cx||(cx=em`
113  opacity: 0;
114  position: absolute;
115
116  &.${0} {
117    opacity: 0.3;
118    transform: scale(1);
119    animation-name: ${0};
120    animation-duration: ${0}ms;
121    animation-timing-function: ${0};
122  }
123
124  &.${0} {
125    animation-duration: ${0}ms;
126  }
127
128  & .${0} {
129    opacity: 1;
130    display: block;
131    width: 100%;
132    height: 100%;
133    border-radius: 50%;
134    background-color: currentColor;
135  }
136
137  & .${0} {
138    opacity: 0;
139    animation-name: ${0};
140    animation-duration: ${0}ms;
141    animation-timing-function: ${0};
142  }
143
144  & .${0} {
145    position: absolute;
146    /* @noflip */
147    left: 0px;
148    top: 0;
149    animation-name: ${0};
150    animation-duration: 2500ms;
151    animation-timing-function: ${0};
152    animation-iteration-count: infinite;
153    animation-delay: 200ms;
154  }
155`),Vi.rippleVisible,CP,s0,({theme:r})=>r.transitions.easing.easeInOut,Vi.ripplePulsate,({theme:r})=>r.transitions.duration.shorter,Vi.child,Vi.childLeaving,kP,s0,({theme:r})=>r.transitions.easing.easeInOut,Vi.childPulsate,PP,({theme:r})=>r.transitions.easing.easeInOut),TP=Me.forwardRef(function(s,n){const c=$o({props:s,name:"MuiTouchRipple"}),{center:l=!1,classes:u={},className:x}=c,O=xr(c,SP),[Y,Q]=Me.useState([]),te=Me.useRef(0),W=Me.useRef(null);Me.useEffect(()=>{W.current&&(W.current(),W.current=null)},[Y]);const G=Me.useRef(!1),K=Wv(),S=Me.useRef(null),T=Me.useRef(null),E=Me.useCallback(k=>{const{pulsate:b,rippleX:C,rippleY:m,rippleSize:q,cb:V}=k;Q(H=>[...H,y.jsx(MP,{classes:{ripple:or(u.ripple,Vi.ripple),rippleVisible:or(u.rippleVisible,Vi.rippleVisible),ripplePulsate:or(u.ripplePulsate,Vi.ripplePulsate),child:or(u.child,Vi.child),childLeaving:or(u.childLeaving,Vi.childLeaving),childPulsate:or(u.childPulsate,Vi.childPulsate)},timeout:s0,pulsate:b,rippleX:C,rippleY:m,rippleSize:q},te.current)]),te.current+=1,W.current=V},[u]),_=Me.useCallback((k={},b={},C=()=>{})=>{const{pulsate:m=!1,center:q=l||b.pulsate,fakeElement:V=!1}=b;if((k==null?void 0:k.type)==="mousedown"&&G.current){G.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(G.current=!0);const H=V?null:T.current,M=H?H.getBoundingClientRect():{width:0,height:0,left:0,top:0};let $,P,h;if(q||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)$=Math.round(M.width/2),P=Math.round(M.height/2);else{const{clientX:f,clientY:L}=k.touches&&k.touches.length>0?k.touches[0]:k;$=Math.round(f-M.left),P=Math.round(L-M.top)}if(q)h=Math.sqrt((2*M.width**2+M.height**2)/3),h%2===0&&(h+=1);else{const f=Math.max(Math.abs((H?H.clientWidth:0)-$),$)*2+2,L=Math.max(Math.abs((H?H.clientHeight:0)-P),P)*2+2;h=Math.sqrt(f**2+L**2)}k!=null&&k.touches?S.current===null&&(S.current=()=>{E({pulsate:m,rippleX:$,rippleY:P,rippleSize:h,cb:C})},K.start(wP,()=>{S.current&&(S.current(),S.current=null)})):E({pulsate:m,rippleX:$,rippleY:P,rippleSize:h,cb:C})},[l,E,K]),g=Me.useCallback(()=>{_({},{pulsate:!0})},[_]),w=Me.useCallback((k,b)=>{if(K.clear(),(k==null?void 0:k.type)==="touchend"&&S.current){S.current(),S.current=null,K.start(0,()=>{w(k,b)});return}S.current=null,Q(C=>C.length>0?C.slice(1):C),W.current=b},[K]);return Me.useImperativeHandle(n,()=>({pulsate:g,start:_,stop:w}),[g,_,w]),y.jsx(EP,qe({className:or(Vi.root,u.root,x),ref:T},O,{children:y.jsx(j0,{component:null,exit:!0,children:Y})}))});function AP(r){return zo("MuiButtonBase",r)}const LP=Wo("MuiButtonBase",["root","disabled","focusVisible"]),RP=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],jP=r=>{const{disabled:s,focusVisible:n,focusVisibleClassName:c,classes:l}=r,x=Ra({root:["root",s&&"disabled",n&&"focusVisible"]},AP,l);return n&&c&&(x.root+=` ${c}`),x},NP=Hr("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(r,s)=>s.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${LP.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),OP=Me.forwardRef(function(s,n){const c=$o({props:s,name:"MuiButtonBase"}),{action:l,centerRipple:u=!1,children:x,className:O,component:Y="button",disabled:Q=!1,disableRipple:te=!1,disableTouchRipple:W=!1,focusRipple:G=!1,LinkComponent:K="a",onBlur:S,onClick:T,onContextMenu:E,onDragLeave:_,onFocus:g,onFocusVisible:w,onKeyDown:k,onKeyUp:b,onMouseDown:C,onMouseLeave:m,onMouseUp:q,onTouchEnd:V,onTouchMove:H,onTouchStart:M,tabIndex:$=0,TouchRippleProps:P,touchRippleRef:h,type:f}=c,L=xr(c,RP),v=Me.useRef(null),A=Me.useRef(null),B=Ti(A,h),{isFocusVisibleRef:R,onFocus:D,onBlur:Z,ref:X}=L0(),[ie,oe]=Me.useState(!1);Q&&ie&&oe(!1),Me.useImperativeHandle(l,()=>({focusVisible:()=>{oe(!0),v.current.focus()}}),[]);const[le,ue]=Me.useState(!1);Me.useEffect(()=>{ue(!0)},[]);const F=le&&!te&&!Q;Me.useEffect(()=>{ie&&G&&!te&&le&&A.current.pulsate()},[te,G,ie,le]);function N(be,Te,Le=W){return Ss(Ne=>(Te&&Te(Ne),!Le&&A.current&&A.current[be](Ne),!0))}const ee=N("start",C),ce=N("stop",E),j=N("stop",_),I=N("stop",q),U=N("stop",be=>{ie&&be.preventDefault(),m&&m(be)}),J=N("start",M),se=N("stop",V),ae=N("stop",H),he=N("stop",be=>{Z(be),R.current===!1&&oe(!1),S&&S(be)},!1),me=Ss(be=>{v.current||(v.current=be.currentTarget),D(be),R.current===!0&&(oe(!0),w&&w(be)),g&&g(be)}),ve=()=>{const be=v.current;return Y&&Y!=="button"&&!(be.tagName==="A"&&be.href)},ke=Me.useRef(!1),Pe=Ss(be=>{G&&!ke.current&&ie&&A.current&&be.key===" "&&(ke.current=!0,A.current.stop(be,()=>{A.current.start(be)})),be.target===be.currentTarget&&ve()&&be.key===" "&&be.preventDefault(),k&&k(be),be.target===be.currentTarget&&ve()&&be.key==="Enter"&&!Q&&(be.preventDefault(),T&&T(be))}),ge=Ss(be=>{G&&be.key===" "&&A.current&&ie&&!be.defaultPrevented&&(ke.current=!1,A.current.stop(be,()=>{A.current.pulsate(be)})),b&&b(be),T&&be.target===be.currentTarget&&ve()&&be.key===" "&&!be.defaultPrevented&&T(be)});let de=Y;de==="button"&&(L.href||L.to)&&(de=K);const fe={};de==="button"?(fe.type=f===void 0?"button":f,fe.disabled=Q):(!L.href&&!L.to&&(fe.role="button"),Q&&(fe["aria-disabled"]=Q));const xe=Ti(n,X,v),Ee=qe({},c,{centerRipple:u,component:Y,disabled:Q,disableRipple:te,disableTouchRipple:W,focusRipple:G,tabIndex:$,focusVisible:ie}),Se=jP(Ee);return y.jsxs(NP,qe({as:de,className:or(Se.root,O),ownerState:Ee,onBlur:he,onClick:T,onContextMenu:ce,onFocus:me,onKeyDown:Pe,onKeyUp:ge,onMouseDown:ee,onMouseLeave:U,onMouseUp:I,onDragLeave:j,onTouchEnd:se,onTouchMove:ae,onTouchStart:J,ref:xe,tabIndex:Q?-1:$,type:f},fe,L,{children:[x,F?y.jsx(TP,qe({ref:B,center:u},P)):null]}))});function _P(r){return zo("MuiButton",r)}const op=Wo("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),DP=Me.createContext({}),IP=Me.createContext(void 0),BP=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],FP=r=>{const{color:s,disableElevation:n,fullWidth:c,size:l,variant:u,classes:x}=r,O={root:["root",u,`${u}${ar(s)}`,`size${ar(l)}`,`${u}Size${ar(l)}`,`color${ar(s)}`,n&&"disableElevation",c&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ar(l)}`],endIcon:["icon","endIcon",`iconSize${ar(l)}`]},Y=Ra(O,_P,x);return qe({},x,Y)},Kv=r=>qe({},r.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},r.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},r.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),zP=Hr(OP,{shouldForwardProp:r=>zv(r)||r==="classes",name:"MuiButton",slot:"Root",overridesResolver:(r,s)=>{const{ownerState:n}=r;return[s.root,s[n.variant],s[`${n.variant}${ar(n.color)}`],s[`size${ar(n.size)}`],s[`${n.variant}Size${ar(n.size)}`],n.color==="inherit"&&s.colorInherit,n.disableElevation&&s.disableElevation,n.fullWidth&&s.fullWidth]}})(({theme:r,ownerState:s})=>{var n,c;const l=r.palette.mode==="light"?r.palette.grey[300]:r.palette.grey[800],u=r.palette.mode==="light"?r.palette.grey.A100:r.palette.grey[700];return qe({},r.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(r.vars||r).shape.borderRadius,transition:r.transitions.create(["background-color","box-shadow","border-color","color"],{duration:r.transitions.duration.short}),"&:hover":qe({textDecoration:"none",backgroundColor:r.vars?`rgba(${r.vars.palette.text.primaryChannel} / ${r.vars.palette.action.hoverOpacity})`:$n.alpha(r.palette.text.primary,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},s.variant==="text"&&s.color!=="inherit"&&{backgroundColor:r.vars?`rgba(${r.vars.palette[s.color].mainCh
155annel} / ${r.vars.palette.action.hoverOpacity})`:$n.alpha(r.palette[s.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},s.variant==="outlined"&&s.color!=="inherit"&&{border:`1px solid ${(r.vars||r).palette[s.color].main}`,backgroundColor:r.vars?`rgba(${r.vars.palette[s.color].mainChannel} / ${r.vars.palette.action.hoverOpacity})`:$n.alpha(r.palette[s.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},s.variant==="contained"&&{backgroundColor:r.vars?r.vars.palette.Button.inheritContainedHoverBg:u,boxShadow:(r.vars||r).shadows[4],"@media (hover: none)":{boxShadow:(r.vars||r).shadows[2],backgroundColor:(r.vars||r).palette.grey[300]}},s.variant==="contained"&&s.color!=="inherit"&&{backgroundColor:(r.vars||r).palette[s.color].dark,"@media (hover: none)":{backgroundColor:(r.vars||r).palette[s.color].main}}),"&:active":qe({},s.variant==="contained"&&{boxShadow:(r.vars||r).shadows[8]}),[`&.${op.focusVisible}`]:qe({},s.variant==="contained"&&{boxShadow:(r.vars||r).shadows[6]}),[`&.${op.disabled}`]:qe({color:(r.vars||r).palette.action.disabled},s.variant==="outlined"&&{border:`1px solid ${(r.vars||r).palette.action.disabledBackground}`},s.variant==="contained"&&{color:(r.vars||r).palette.action.disabled,boxShadow:(r.vars||r).shadows[0],backgroundColor:(r.vars||r).palette.action.disabledBackground})},s.variant==="text"&&{padding:"6px 8px"},s.variant==="text"&&s.color!=="inherit"&&{color:(r.vars||r).palette[s.color].main},s.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},s.variant==="outlined"&&s.color!=="inherit"&&{color:(r.vars||r).palette[s.color].main,border:r.vars?`1px solid rgba(${r.vars.palette[s.color].mainChannel} / 0.5)`:`1px solid ${$n.alpha(r.palette[s.color].main,.5)}`},s.variant==="contained"&&{color:r.vars?r.vars.palette.text.primary:(n=(c=r.palette).getContrastText)==null?void 0:n.call(c,r.palette.grey[300]),backgroundColor:r.vars?r.vars.palette.Button.inheritContainedBg:l,boxShadow:(r.vars||r).shadows[2]},s.variant==="contained"&&s.color!=="inherit"&&{color:(r.vars||r).palette[s.color].contrastText,backgroundColor:(r.vars||r).palette[s.color].main},s.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},s.size==="small"&&s.variant==="text"&&{padding:"4px 5px",fontSize:r.typography.pxToRem(13)},s.size==="large"&&s.variant==="text"&&{padding:"8px 11px",fontSize:r.typography.pxToRem(15)},s.size==="small"&&s.variant==="outlined"&&{padding:"3px 9px",fontSize:r.typography.pxToRem(13)},s.size==="large"&&s.variant==="outlined"&&{padding:"7px 21px",fontSize:r.typography.pxToRem(15)},s.size==="small"&&s.variant==="contained"&&{padding:"4px 10px",fontSize:r.typography.pxToRem(13)},s.size==="large"&&s.variant==="contained"&&{padding:"8px 22px",fontSize:r.typography.pxToRem(15)},s.fullWidth&&{width:"100%"})},({ownerState:r})=>r.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${op.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${op.disabled}`]:{boxShadow:"none"}}),$P=Hr("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(r,s)=>{const{ownerState:n}=r;return[s.startIcon,s[`iconSize${ar(n.size)}`]]}})(({ownerState:r})=>qe({display:"inherit",marginRight:8,marginLeft:-4},r.size==="small"&&{marginLeft:-2},Kv(r))),WP=Hr("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(r,s)=>{const{ownerState:n}=r;return[s.endIcon,s[`iconSize${ar(n.size)}`]]}})(({ownerState:r})=>qe({display:"inherit",marginRight:-4,marginLeft:8},r.size==="small"&&{marginRight:-2},Kv(r))),ws=Me.forwardRef(function(s,n){const c=Me.useContext(DP),l=Me.useContext(IP),u=Tp(c,s),x=$o({props:u,name:"MuiButton"}),{children:O,color:Y="primary",component:Q="button",className:te,disabled:W=!1,disableElevation:G=!1,disableFocusRipple:K=!1,endIcon:S,focusVisibleClassName:T,fullWidth:E=!1,size:_="medium",startIcon:g,type:w,variant:k="text"}=x,b=xr(x,BP),C=qe({},x,{color:Y,component:Q,disabled:W,disableElevation:G,disableFocusRipple:K,fullWidth:E,size:_,type:w,variant:k}),m=FP(C),q=g&&y.jsx($P,{className:m.startIcon,ownerState:C,children:g}),V=S&&y.jsx(WP,{className:m.endIcon,ownerState:C,children:S}),H=l||"";return y.jsxs(zP,qe({ownerState:C,className:or(c.className,m.root,te,H),component:Q,disabled:W,focusRipple:!K,focusVisibleClassName:or(m.focu
155sVisible,T),ref:n,type:w},b,{classes:m,children:[q,O,V]}))});function Zv(){const r=nP(Fv);return r[Rp]||r}const UP=["theme"];function N0(r){let{theme:s}=r,n=xr(r,UP);const c=s[Rp];return y.jsx(vP,qe({},n,{themeId:c?Rp:void 0,theme:c||s}))}const ux=r=>{let s;return r<1?s=5.11916*r**2:s=4.5*Math.log(r+1)+2,(s/100).toFixed(2)},HP="https://rmi.org/battery-circular-economy-initiative/";function YP(r){const{action:s,className:n}=r;return y.jsx("div",{className:Xt("bg-bcei-blue text-white w-screen",`${n}`),children:y.jsxs("div",{className:"container m-auto px-4 py-10",children:[y.jsx("div",{className:"flex justify-between items-center align-baseline gap-2 flex-wrap md:flex-nowrap",children:y.jsxs("div",{className:"md:pb-0 font-semibold pb-8",children:[y.jsx("a",{className:"underline text-white hover:text-white visited:text-white",href:HP,children:"Return to the BCEI landing page"})," ","to review BCEI-related insights and resources."]})}),y.jsx("div",{className:"hidden md:display-block flex-grow"})]})})}function Sn(r){const{title:s,response:n,showData:c=!0,clear:l=!1}=r;return y.jsx(y.Fragment,{children:c&&y.jsxs("div",{className:"pb-12",children:[y.jsxs("h4",{className:"font-bold",children:[s,":"]}),y.jsx("p",{children:!l&&(n?JSON.stringify(n,null,2):"")})]})})}function gu(r){return typeof r=="string"}function XP(r,s,n){return r===void 0||gu(r)?s:qe({},s,{ownerState:qe({},s.ownerState,n)})}function GP(r,s,n=(c,l)=>c===l){return r.length===s.length&&r.every((c,l)=>n(c,s[l]))}function ld(r,s=[]){if(r===void 0)return{};const n={};return Object.keys(r).filter(c=>c.match(/^on[A-Z]/)&&typeof r[c]=="function"&&!s.includes(c)).forEach(c=>{n[c]=r[c]}),n}function VP(r,s,n){return typeof r=="function"?r(s,n):r}function hx(r){if(r===void 0)return{};const s={};return Object.keys(r).filter(n=>!(n.match(/^on[A-Z]/)&&typeof r[n]=="function")).forEach(n=>{s[n]=r[n]}),s}function qP(r){const{getSlotProps:s,additionalProps:n,externalSlotProps:c,externalForwardedProps:l,className:u}=r;if(!s){const K=or(n==null?void 0:n.className,u,l==null?void 0:l.className,c==null?void 0:c.className),S=qe({},n==null?void 0:n.style,l==null?void 0:l.style,c==null?void 0:c.style),T=qe({},n,l,c);return K.length>0&&(T.className=K),Object.keys(S).length>0&&(T.style=S),{props:T,internalRef:void 0}}const x=ld(qe({},l,c)),O=hx(c),Y=hx(l),Q=s(x),te=or(Q==null?void 0:Q.className,n==null?void 0:n.className,u,l==null?void 0:l.className,c==null?void 0:c.className),W=qe({},Q==null?void 0:Q.style,n==null?void 0:n.style,l==null?void 0:l.style,c==null?void 0:c.style),G=qe({},Q,n,Y,O);return te.length>0&&(G.className=te),Object.keys(W).length>0&&(G.style=W),{props:G,internalRef:Q.ref}}const KP=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Gi(r){var s;const{elementType:n,externalSlotProps:c,ownerState:l,skipResolvingSlotProps:u=!1}=r,x=xr(r,KP),O=u?{}:VP(c,l),{props:Y,internalRef:Q}=qP(qe({},x,{externalSlotProps:O})),te=Ti(Q,O==null?void 0:O.ref,(s=r.additionalProps)==null?void 0:s.ref);return XP(n,qe({},Y,{ref:te}),l)}const ZP=2;function Qv(r,s){return r-s}function dx(r,s){var n;const{index:c}=(n=r.reduce((l,u,x)=>{const O=Math.abs(s-u);return l===null||O<l.distance||O===l.distance?{distance:O,index:x}:l},null))!=null?n:{};return c}function ap(r,s){if(s.current!==void 0&&r.changedTouches){const n=r;for(let c=0;c<n.changedTouches.length;c+=1){const l=n.changedTouches[c];if(l.identifier===s.current)return{x:l.clientX,y:l.clientY}}return!1}return{x:r.clientX,y:r.clientY}}function Op(r,s,n){return(r-s)*100/(n-s)}function QP(r,s,n){return(n-s)*r+s}function JP(r){if(Math.abs(r)<1){const n=r.toExponential().split("e-"),c=n[0].split(".")[1];return(c?c.length:0)+parseInt(n[1],10)}const s=r.toString().split(".")[1];return s?s.length:0}function eE(r,s,n){const c=Math.round((r-n)/s)*s+n;return Number(c.toFixed(JP(s)))}function fx({values:r,newValue:s,index:n}){const c=r.slice();return c[n]=s,c.sort(Qv)}function lp({sliderRef:r,activeIndex:s,setActive:n}){var c,l;const u=un(r.current);if(!((c=r.current)!=null&&c.contains(u.activeElement))||Number(u==null||(l=u.activeElement)==null?void 0:l.getAttribute("data-index"))!==s){var x;(x=r.current)==null||x.querySelector(`[type="range"][data-index="${s}"]`).focus()}n&&n(s)}function cp(r,s){return typeof r=="number"&&typeof s=="number"?r===s:typeof r=="object"&&typeof s=="object"?GP(r,s):!1}const tE={horizontal:{offset:r=>({left:`${r}%`}),leap:r=>({width:`${r}%`})},"horizontal-reverse":{offset:r=>({right:`${r}%`}),leap:r=>({width:`${r}%`})},vertical:{offset:r=>({bottom:`${r}%`}),leap:r=>({height:`${r}%`})}},rE=r=>r;let up;function px(){return up===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?up=CSS.supports("touch-action","none"):up=!0),up}function nE(r){const{"aria-labelledby":s,defaultValue:n,disabled:c=!1,disableSwap:l=!1,isRtl:u=!1,marks:x=!1,max:O=100,min:Y=0,name:Q,onChange:te,onChangeCommitted:W,orientation:G="horizontal",rootRef:K,scale:S=rE,step:T=1,shiftStep:E=10,tabIndex:_,value:g}=r,w=Me.useRef(),[k,b]=Me.useState(-1),[C,m]=Me.useState(-1),[q,V]=Me.useState(!1),H=Me.useRef(0),[M,$]=Xv({controlled:g,default:n??Y,name:"Slider"}),P=te&&((Se,be,Te)=>{const Le=Se.nativeEvent||Se,Ne=new Le.constructor(Le.type,Le);Object.defineProperty(Ne,"target",{writable:!0,value:{value:be,name:Q}}),te(Ne,be,Te)}),h=Array.isArray(M);let f=h?M.slice().sort(Qv):[M];f=f.map(Se=>Se==null?Y:uu(Se,Y,O));const L=x===!0&&T!==null?[...Array(Math.floor((O-Y)/T)+1)].map((Se,be)=>({value:Y+T*be})):x||[],v=L.map(Se=>Se.value),{isFocusVisibleRef:A,onBlur:B,onFocus:R,ref:D}=L0(),[Z,X]=Me.useState(-1),ie=Me.useRef(),oe=Ti(D,ie),le=Ti(K,oe),ue=Se=>be=>{var Te;const Le=Number(be.currentTarget.getAttribute("data-index"));R(be),A.current===!0&&X(Le),m(Le),Se==null||(Te=Se.onFocus)==null||Te.call(Se,be)},F=Se=>be=>{var Te;B(be),A.current===!1&&X(-1),m(-1),Se==null||(Te=Se.onBlur)==null||Te.call(Se,be)},N=(Se,be)=>{const Te=Number(Se.currentTarget.getAttribute("data-index")),Le=f[Te],Ne=v.indexOf(Le);let _e=be;if(L&&T==null){const We=v[v.length-1];_e>We?_e=We:_e<v[0]?_e=v[0]:_e=_e<Le?v[Ne-1]:v[Ne+1]}if(_e=uu(_e,Y,O),h){l&&(_e=uu(_e,f[Te-1]||-1/0,f[Te+1]||1/0));const We=_e;_e=fx({values:f,newValue:_e,index:Te});let He=Te;l||(He=_e.indexOf(We)),lp({sliderRef:ie,activeIndex:He})}$(_e),X(Te),P&&!cp(_e,M)&&P(Se,_e,Te),W&&W(Se,_e)},ee=Se=>be=>{var Te;if(T!==null){const Le=Number(be.currentTarget.getAttribute("data-index")),Ne=f[Le];let _e=null;(be.key==="ArrowLeft"||be.key==="ArrowDown")&&be.shiftKey||be.key==="PageDown"?_e=Math.max(Ne-E,Y):((be.key==="ArrowRight"||be.key==="ArrowUp")&&be.shiftKey||be.key==="PageUp")&&(_e=Math.min(Ne+E,O)),_e!==null&&(N(be,_e),be.preventDefault())}Se==null||(Te=Se.onKeyDown)==null||Te.call(Se,be)};bd(()=>
155{if(c&&ie.current.contains(document.activeElement)){var Se;(Se=document.activeElement)==null||Se.blur()}},[c]),c&&k!==-1&&b(-1),c&&Z!==-1&&X(-1);const ce=Se=>be=>{var Te;(Te=Se.onChange)==null||Te.call(Se,be),N(be,be.target.valueAsNumber)},j=Me.useRef();let I=G;u&&G==="horizontal"&&(I+="-reverse");const U=({finger:Se,move:be=!1})=>{const{current:Te}=ie,{width:Le,height:Ne,bottom:_e,left:We}=Te.getBoundingClientRect();let He;I.indexOf("vertical")===0?He=(_e-Se.y)/Ne:He=(Se.x-We)/Le,I.indexOf("-reverse")!==-1&&(He=1-He);let Ye;if(Ye=QP(He,Y,O),T)Ye=eE(Ye,T,Y);else{const Ve=dx(v,Ye);Ye=v[Ve]}Ye=uu(Ye,Y,O);let Ge=0;if(h){be?Ge=j.current:Ge=dx(f,Ye),l&&(Ye=uu(Ye,f[Ge-1]||-1/0,f[Ge+1]||1/0));const Ve=Ye;Ye=fx({values:f,newValue:Ye,index:Ge}),l&&be||(Ge=Ye.indexOf(Ve),j.current=Ge)}return{newValue:Ye,activeIndex:Ge}},J=Ss(Se=>{const be=ap(Se,w);if(!be)return;if(H.current+=1,Se.type==="mousemove"&&Se.buttons===0){se(Se);return}const{newValue:Te,activeIndex:Le}=U({finger:be,move:!0});lp({sliderRef:ie,activeIndex:Le,setActive:b}),$(Te),!q&&H.current>ZP&&V(!0),P&&!cp(Te,M)&&P(Se,Te,Le)}),se=Ss(Se=>{const be=ap(Se,w);if(V(!1),!be)return;const{newValue:Te}=U({finger:be,move:!0});b(-1),Se.type==="touchend"&&m(-1),W&&W(Se,Te),w.current=void 0,he()}),ae=Ss(Se=>{if(c)return;px()||Se.preventDefault();const be=Se.changedTouches[0];be!=null&&(w.current=be.identifier);const Te=ap(Se,w);if(Te!==!1){const{newValue:Ne,activeIndex:_e}=U({finger:Te});lp({sliderRef:ie,activeIndex:_e,setActive:b}),$(Ne),P&&!cp(Ne,M)&&P(Se,Ne,_e)}H.current=0;const Le=un(ie.current);Le.addEventListener("touchmove",J,{passive:!0}),Le.addEventListener("touchend",se,{passive:!0})}),he=Me.useCallback(()=>{const Se=un(ie.current);Se.removeEventListener("mousemove",J),Se.removeEventListener("mouseup",se),Se.removeEventListener("touchmove",J),Se.removeEventListener("touchend",se)},[se,J]);Me.useEffect(()=>{const{current:Se}=ie;return Se.addEventListener("touchstart",ae,{passive:px()}),()=>{Se.removeEventListener("touchstart",ae),he()}},[he,ae]),Me.useEffect(()=>{c&&he()},[c,he]);const me=Se=>be=>{var Te;if((Te=Se.onMouseDown)==null||Te.call(Se,be),c||be.defaultPrevented||be.button!==0)return;be.preventDefault();const Le=ap(be,w);if(Le!==!1){const{newValue:_e,activeIndex:We}=U({finger:Le});lp({sliderRef:ie,activeIndex:We,setActive:b}),$(_e),P&&!cp(_e,M)&&P(be,_e,We)}H.current=0;const Ne=un(ie.current);Ne.addEventListener("mousemove",J,{passive:!0}),Ne.addEventListener("mouseup",se)},ve=Op(h?f[0]:Y,Y,O),ke=Op(f[f.length-1],Y,O)-ve,Pe=(Se={})=>{const be=ld(Se),Te={onMouseDown:me(be||{})},Le=qe({},be,Te);return qe({},Se,{ref:le},Le)},ge=Se=>be=>{var Te;(Te=Se.onMouseOver)==null||Te.call(Se,be);const Le=Number(be.currentTarget.getAttribute("data-index"));m(Le)},de=Se=>be=>{var Te;(Te=Se.onMouseLeave)==null||Te.call(Se,be),m(-1)};return{active:k,axis:I,axisProps:tE,dragging:q,focusedThumbIndex:Z,getHiddenInputProps:(Se={})=>{var be;const Te=ld(Se),Le={onChange:ce(Te||{}),onFocus:ue(Te||{}),onBlur:F(Te||{}),onKeyDown:ee(Te||{})},Ne=qe({},Te,Le);return qe({tabIndex:_,"aria-labelledby":s,"aria-orientation":G,"aria-valuemax":S(O),"aria-valuemin":S(Y),name:Q,type:"range",min:r.min,max:r.max,step:r.step===null&&r.marks?"any":(be=r.step)!=null?be:void 0,disabled:c},Se,Ne,{style:qe({},hP,{direction:u?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Pe,getThumbProps:(Se={})=>{const be=ld(Se),Te={onMouseOver:ge(be||{}),onMouseLeave:de(be||{})};return qe({},Se,be,Te)},marks:L,open:C,range:h,rootRef:le,trackLeap:ke,trackOffset:ve,values:f,getThumbStyle:Se=>({pointerEvents:k!==-1&&k!==Se?"none":void 0})}}const iE=r=>!r||!gu(r);function sE(r){return zo("MuiSlider",r)}const Ki=Wo("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),oE=r=>{const{open:s}=r;return{offset:or(s&&Ki.valueLabelOpen),circle:Ki.valueLabelCircle,label:Ki.valueLabelLabel}};function aE(r){const{children:s,className:n,value:c}=r,l=oE(r);return s?Me.cloneElement(s,{className:or(s.props.className)},y.jsxs(Me.Fragment,{children:[s.props.children,y.jsx("span",{className:or(l.offset,n),"aria-hidden":!0,
vendor: 9,118 bytes, line 155
155children:y.jsx("span",{className:l.circle,children:y.jsx("span",{className:l.label,children:c})})})]})):null}const lE=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function mx(r){return r}const cE=Hr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(r,s)=>{const{ownerState:n}=r;return[s.root,s[`color${ar(n.color)}`],n.size!=="medium"&&s[`size${ar(n.size)}`],n.marked&&s.marked,n.orientation==="vertical"&&s.vertical,n.track==="inverted"&&s.trackInverted,n.track===!1&&s.trackFalse]}})(({theme:r})=>{var s;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Ki.disabled}`]:{pointerEvents:"none",cursor:"default",color:(r.vars||r).palette.grey[400]},[`&.${Ki.dragging}`]:{[`& .${Ki.thumb}, & .${Ki.track}`]:{transition:"none"}},variants:[...Object.keys(((s=r.vars)!=null?s:r).palette).filter(n=>{var c;return((c=r.vars)!=null?c:r).palette[n].main}).map(n=>({props:{color:n},style:{color:(r.vars||r).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),uE=Hr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(r,s)=>s.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),hE=Hr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(r,s)=>s.track})(({theme:r})=>{var s;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:r.transitions.create(["left","width","bottom","height"],{duration:r.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((s=r.vars)!=null?s:r).palette).filter(n=>{var c;return((c=r.vars)!=null?c:r).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:qe({},r.vars?{backgroundColor:r.vars.palette.Slider[`${n}Track`],borderColor:r.vars.palette.Slider[`${n}Track`]}:qe({backgroundColor:$n.lighten(r.palette[n].main,.62),borderColor:$n.lighten(r.palette[n].main,.62)},r.applyStyles("dark",{backgroundColor:$n.darken(r.palette[n].main,.5)}),r.applyStyles("dark",{borderColor:$n.darken(r.palette[n].main,.5)})))}))]}}),dE=Hr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(r,s)=>{const{ownerState:n}=r;return[s.thumb,s[`thumbColor${ar(n.color)}`],n.size!=="medium"&&s[`thumbSize${ar(n.size)}`]]}})(({theme:r})=>{var s;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:r.transitions.create(["box-shadow","left","bottom"],{duration:r.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(r.vars||r).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Ki.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((s=r.vars)!=null?s:r).palette).filter(n=>{var c;return((c=r.vars)!=null?c:r).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${Ki.focusVisible}`]:qe({},r.vars?{boxShadow:`0px 0px 0px 8px rgba(${r.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${$n.alpha(r.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Ki.active}`]:qe({},r.vars?{boxShadow:`0px 0px 0px 14px rgba(${r.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${$n.alpha(r.palette[n].main,.16)}`})}}))]}}),fE=Hr(aE,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(r,s)=>s.valueLabel})(({theme:r})=>qe({zIndex:1,whiteSpace:"nowrap"},r.typography.body2,{fontWeight:500,transition:r.transitions.create(["transform"],{duration:r.transitions.duration.shortest}),position:"absolute",backgroundColor:(r.vars||r).palette.grey[600],borderRadius:2,color:(r.vars||r).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Ki.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Ki.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:r.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),pE=Hr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:r=>A0(r)&&r!=="markActive",overridesResolver:(r,s)=>{const{markActive:n}=r;return[s.mark,n&&s.markActive]}})(({theme:r})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(r.vars||r).palette.background.paper,opacity:.8}}]})),mE=Hr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:r=>A0(r)&&r!=="markLabelActive",overridesResolver:(r,s)=>s.markLabel})(({theme:r})=>qe({},r.typography.body2,{color:(r.vars||r).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(r.vars||r).palette.text.primary}}]})),gE=r=>{const{disabled:s,dragging:n,marked:c,orientation:l,track:u,classes:x,color:O,size:Y}=r,Q={root:["root",s&&"disabled",n&&"dragging",c&&"marked",l==="vertical"&&"vertical",u==="inverted"&&"trackInverted",u===!1&&"trackFalse",O&&`color${ar(O)}`,Y&&`size${ar(Y)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",s&&"disabled",Y&&`thumbSize${ar(Y)}`,O&&`thumbColor${ar(O)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ra(Q,sE,x)},yE=({children:r})=>r,xE=Me.forwardRef(function(s,n){var c,l,u,x,O,Y,Q,te,W,G,K,S,T,E,_,g,w,k,b,C,m,q,V,H;const M=$o({props:s,name:"MuiSlider"}),$=xP(),{"aria-label":P,"aria-valuetext":h,"aria-labelledby":f,component:L="span",components:v={},componentsProps:A={},color:B="primary",classes:R,className:D,disableSwap:Z=!1,disabled:X=!1,getAriaLabel:ie,getAriaValueText:oe,marks:le=!1,max:ue=100,min:F=0,orientation:N="horizontal",shiftStep:ee=10,size:ce="medium",step:j=1,scale:I=mx,slotProps:U,slots:J,track:se="normal",valueLabelDisplay:ae="off",valueLabelFormat:he=mx}=M,me=xr(M,lE),ve=qe({},M,{isRtl:$,max:ue,min:F,classes:R,disabled:X,disableSwap:Z,orientation:N,marks:le,color:B,size:ce,step:j,shiftStep:ee,scale:I,track:se,valueLabelDisplay:ae,valueLabelFormat:he}),{axisProps:ke,getRootProps:Pe,getHiddenInputProps:ge,getThumbProps:de,open:fe,active:xe,axis:Ee,focu
155sedThumbIndex:Se,range:be,dragging:Te,marks:Le,values:Ne,trackOffset:_e,trackLeap:We,getThumbStyle:He}=nE(qe({},ve,{rootRef:n}));ve.marked=Le.length>0&&Le.some(Dt=>Dt.label),ve.dragging=Te,ve.focusedThumbIndex=Se;const Ye=gE(ve),Ge=(c=(l=J==null?void 0:J.root)!=null?l:v.Root)!=null?c:cE,Ve=(u=(x=J==null?void 0:J.rail)!=null?x:v.Rail)!=null?u:uE,ot=(O=(Y=J==null?void 0:J.track)!=null?Y:v.Track)!=null?O:hE,ct=(Q=(te=J==null?void 0:J.thumb)!=null?te:v.Thumb)!=null?Q:dE,ft=(W=(G=J==null?void 0:J.valueLabel)!=null?G:v.ValueLabel)!=null?W:fE,kt=(K=(S=J==null?void 0:J.mark)!=null?S:v.Mark)!=null?K:pE,Mt=(T=(E=J==null?void 0:J.markLabel)!=null?E:v.MarkLabel)!=null?T:mE,fr=(_=(g=J==null?void 0:J.input)!=null?g:v.Input)!=null?_:"input",Jt=(w=U==null?void 0:U.root)!=null?w:A.root,Er=(k=U==null?void 0:U.rail)!=null?k:A.rail,Qr=(b=U==null?void 0:U.track)!=null?b:A.track,Br=(C=U==null?void 0:U.thumb)!=null?C:A.thumb,Wn=(m=U==null?void 0:U.valueLabel)!=null?m:A.valueLabel,lr=(q=U==null?void 0:U.mark)!=null?q:A.mark,Sr=(V=U==null?void 0:U.markLabel)!=null?V:A.markLabel,Yr=(H=U==null?void 0:U.input)!=null?H:A.input,so=Gi({elementType:Ge,getSlotProps:Pe,externalSlotProps:Jt,externalForwardedProps:me,additionalProps:qe({},iE(Ge)&&{as:L}),ownerState:qe({},ve,Jt==null?void 0:Jt.ownerState),className:[Ye.root,D]}),Ji=Gi({elementType:Ve,externalSlotProps:Er,ownerState:ve,className:Ye.rail}),es=Gi({elementType:ot,externalSlotProps:Qr,additionalProps:{style:qe({},ke[Ee].offset(_e),ke[Ee].leap(We))},ownerState:qe({},ve,Qr==null?void 0:Qr.ownerState),className:Ye.track}),ui=Gi({elementType:ct,getSlotProps:de,externalSlotProps:Br,ownerState:qe({},ve,Br==null?void 0:Br.ownerState),className:Ye.thumb}),Ps=Gi({elementType:ft,externalSlotProps:Wn,ownerState:qe({},ve,Wn==null?void 0:Wn.ownerState),className:Ye.valueLabel}),Es=Gi({elementType:kt,externalSlotProps:lr,ownerState:ve,className:Ye.mark}),ts=Gi({elementType:Mt,externalSlotProps:Sr,ownerState:ve,className:Ye.markLabel}),Ho=Gi({elementType:fr,getSlotProps:ge,externalSlotProps:Yr,ownerState:ve});return y.jsxs(Ge,qe({},so,{children:[y.jsx(Ve,qe({},Ji)),y.jsx(ot,qe({},es)),Le.filter(Dt=>Dt.value>=F&&Dt.value<=ue).map((Dt,rr)=>{const rs=Op(Dt.value,F,ue),hi=ke[Ee].offset(rs);let Xr;return se===!1?Xr=Ne.indexOf(Dt.value)!==-1:Xr=se==="normal"&&(be?Dt.value>=Ne[0]&&Dt.value<=Ne[Ne.length-1]:Dt.value<=Ne[0])||se==="inverted"&&(be?Dt.value<=Ne[0]||Dt.value>=Ne[Ne.length-1]:Dt.value>=Ne[0]),y.jsxs(Me.Fragment,{children:[y.jsx(kt,qe({"data-index":rr},Es,!gu(kt)&&{markActive:Xr},{style:qe({},hi,Es.style),className:or(Es.className,Xr&&Ye.markActive)})),Dt.label!=null?y.jsx(Mt,qe({"aria-hidden":!0,"data-index":rr},ts,!gu(Mt)&&{markLabelActive:Xr},{style:qe({},hi,ts.style),className:or(Ye.markLabel,ts.className,Xr&&Ye.markLabelActive),children:Dt.label})):null]},rr)}
155),Ne.map((Dt,rr)=>{const rs=Op(Dt,F,ue),hi=ke[Ee].offset(rs),Xr=ae==="off"?yE:ft;return y.jsx(Xr,qe({},!gu(Xr)&&{valueLabelFormat:he,valueLabelDisplay:ae,value:typeof he=="function"?he(I(Dt),rr):he,index:rr,open:fe===rr||xe===rr||ae==="on",disabled:X},Ps,{children:y.jsx(ct,qe({"data-index":rr},ui,{className:or(Ye.thumb,ui.className,xe===rr&&Ye.active,Se===rr&&Ye.focusVisible),style:qe({},hi,He(rr),ui.style),children:y.jsx(fr,qe({"data-index":rr,"aria-label":ie?ie(rr):P,"aria-valuenow":I(Dt),"aria-labelledby":f,"aria-valuetext":oe?oe(I(Dt),rr):h,value:Ne[rr]},Ho))}))}),rr)})]}))}),Jv=r=>r.scrollTop;function _p(r,s){var n,c;const{timeout:l,easing:u,style:x={}}=r;return{duration:(n=x.transitionDuration)!=null?n:typeof l=="number"?l:l[s.mode]||0,easing:(c=x.transitionTimingFunction)!=null?c:typeof u=="object"?u[s.mode]:u,delay:x.transitionDelay}}const vE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function o0(r){return`scale(${r}, ${r**2})`}const bE={entering:{opacity:1,transform:o0(1)},entered:{opacity:1,transform:"none"}},Ag=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),eb=Me.forwardRef(function(s,n){const{addEndListener:c,appear:l=!0,children:u,easing:x,in:O,onEnter:Y,onEntered:Q,onEntering:te,onExit:W,onExited:G,onExiting:K,style:S,timeout:T="auto",TransitionComponent:E=io}=s,_=xr(s,vE),g=Wv(),w=Me.useRef(),k=Zv(),b=Me.useRef(null),C=Ti(b,u.ref,n),m=f=>L=>{if(f){const v=b.current;L===void 0?f(v):f(v,L)}},q=m(te),V=m((f,L)=>{Jv(f);const{duration:v,delay:A,easing:B}=_p({style:S,timeout:T,easing:x},{mode:"enter"});let R;T==="auto"?(R=k.transitions.getAutoHeightDuration(f.clientHeight),w.current=R):R=v,f.style.transition=[k.transitions.create("opacity",{duration:R,delay:A}),k.transitions.create("transform",{duration:Ag?R:R*.666,delay:A,easing:B})].join(","),Y&&Y(f,L)}),H=m(Q),M=m(K),$=m(f=>{const{duration:L,delay:v,easing:A}=_p({style:S,timeout:T,easing:x},{mode:"exit"});let B;T==="auto"?(B=k.transitions.getAutoHeightDuration(f.clientHeight),w.current=B):B=L,f.style.transition=[k.transitions.create("opacity",{duration:B,delay:v}),k.transitions.create("transform",{duration:Ag?B:B*.666,delay:Ag?v:v||B*.333,easing:A})].join(","),f.style.opacity=0,f.style.transform=o0(.75),W&&W(f)}),P=m(G),h=f=>{T==="auto"&&g.start(w.current||0,f),c&&c(b.current,f)};return y.jsx(E,qe({appear:l,in:O,nodeRef:b,onEnter:V,onEntered:H,onEntering:q,onExit:$,onExited:P,onExiting:M,addEndListener:h,timeout:T==="auto"?null:T},_,{children:(f,L)=>Me.cloneElement(u,qe({style:qe({opacity:0,transform:o0(.75),visibility:f==="exited"&&!O?"hidden":void 0},bE[f],S,u.props.style),ref:C},L))}))});eb.muiSupportAuto=!0;function SE(r){const s=un(r);return s.body===r?Su(r).innerWidth>s.documentElement.clientWidth:r.scrollHeight>r.clientHeight}function cd(r,s){s?r.setAttribute("aria-hidden","true"):r.removeAttribute("aria-hidden")}function gx(r){return parseInt(Su(r).getComputedStyle(r).paddingRight,10)||0}function wE(r){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(r.tagName)!==-1,c=r.tagName==="INPUT"&&r.getAttribute("type")==="hidden";return n||c}function yx(r,s,n,c,l){const u=[s,n,...c];[].forEach.call(r.children,x=>{const O=u.indexOf(x)===-1,Y=!wE(x);O&&Y&&cd(x,l)})}function Lg(r,s){let n=-1;return r.some((c,l)=>s(c)?(n=l,!0):!1),n}function CE(r,s){const n=[],c=r.container;if(!s.disableScrollLock){if(SE(c)){const x=uP(un(c));n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${gx(c)+x}px`;const O=un(c).querySelectorAll(".mui-fixed");[].forEach.call(O,Y=>{n.push({value:Y.style.paddingRight,property:"padding-right",el:Y}),Y.style.paddingRight=`${gx(Y)+x}px`})}let u;if(c.parentNode instanceof DocumentFragment)u=un(c).body;else{const x=c.parentElement,O=Su(c);u=(x==null?void 0:x.nodeName)==="HTML"&&O.getComputedStyle(x).overflowY==="scroll"?x:c}n.push({value:u.style.overflow,property:"overflow",el:u},{value:u.style.overflowX,property:"overflow-x",el:u},{value:u.style.overflowY,property:"overflow-y",el:u}),u.style.overflow="hidden"}return()=>
155{n.forEach(({value:u,el:x,property:O})=>{u?x.style.setProperty(O,u):x.style.removeProperty(O)})}}function kE(r){const s=[];return[].forEach.call(r.children,n=>{n.getAttribute("aria-hidden")==="true"&&s.push(n)}),s}class PE{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(s,n){let c=this.modals.indexOf(s);if(c!==-1)return c;c=this.modals.length,this.modals.push(s),s.modalRef&&cd(s.modalRef,!1);const l=kE(n);yx(n,s.mount,s.modalRef,l,!0);const u=Lg(this.containers,x=>x.container===n);return u!==-1?(this.containers[u].modals.push(s),c):(this.containers.push({modals:[s],container:n,restore:null,hiddenSiblings:l}),c)}mount(s,n){const c=Lg(this.containers,u=>u.modals.indexOf(s)!==-1),l=this.containers[c];l.restore||(l.restore=CE(l,n))}remove(s,n=!0){const c=this.modals.indexOf(s);if(c===-1)return c;const l=Lg(this.containers,x=>x.modals.indexOf(s)!==-1),u=this.containers[l];if(u.modals.splice(u.modals.indexOf(s),1),this.modals.splice(c,1),u.modals.length===0)u.restore&&u.restore(),s.modalRef&&cd(s.modalRef,n),yx(u.container,s.mount,s.modalRef,u.hiddenSiblings,!1),this.containers.splice(l,1);else{const x=u.modals[u.modals.length-1];x.modalRef&&cd(x.modalRef,!1)}return c}isTopModal(s){return this.modals.length>0&&this.modals[this.modals.length-1]===s}}function EE(r){return typeof r=="function"?r():r}function ME(r){return r?r.props.hasOwnProperty("in"):!1}const TE=new PE;function AE(r){const{container:s,disableEscapeKeyDown:n=!1,disableScrollLock:c=!1,manager:l=TE,closeAfterTransition:u=!1,onTransitionEnter:x,onTransitionExited:O,children:Y,onClose:Q,open:te,rootRef:W}=r,G=Me.useRef({}),K=Me.useRef(null),S=Me.useRef(null),T=Ti(S,W),[E,_]=Me.useState(!te),g=ME(Y);let w=!0;(r["aria-hidden"]==="false"||r["aria-hidden"]===!1)&&(w=!1);const k=()=>un(K.current),b=()=>(G.current.modalRef=S.current,G.current.mount=K.current,G.current),C=()=>{l.mount(b(),{disableScrollLock:c}),S.current&&(S.current.scrollTop=0)},m=Ss(()=>{const L=EE(s)||k().body;l.add(b(),L),S.current&&C()}),q=Me.useCallback(()=>l.isTopModal(b()),[l]),V=Ss(L=>{K.current=L,L&&(te&&q()?C():S.current&&cd(S.current,w))}),H=Me.useCallback(()=>{l.remove(b(),w)},[w,l]);Me.useEffect(()=>()=>{H()},[H]),Me.useEffect(()=>{te?m():(!g||!u)&&H()},[te,H,g,u,m]);const M=L=>v=>{var A;(A=L.onKeyDown)==null||A.call(L,v),!(v.key!=="Escape"||v.which===229||!q())&&(n||(v.stopPropagation(),Q&&Q(v,"escapeKeyDown")))},$=L=>v=>{var A;(A=L.onClick)==null||A.call(L,v),v.target===v.currentTarget&&Q&&Q(v,"backdropClick")};return{getRootProps:(L={})=>{const v=ld(r);delete v.onTransitionEnter,delete v.onTransitionExited;const A=qe({},v,L);return qe({role:"presentation"},A,{onKeyDown:M(A),ref:T})},getBackdropProps:(L={})=>{const v=L;return qe({"aria-hidden":!0},v,{onClick:$(v),open:te})},getTransitionProps:()=>{const L=()=>{_(!1),x&&x()},v=()=>{_(!0),O&&O(),u&&H()};return{onEnter:i0(L,Y==null?void 0:Y.props.onEnter),onExited:i0(v,Y==null?void 0:Y.props.onExited)}},rootRef:T,portalRef:V,isTopModal:q,exited:E,hasTransition:g}}const LE=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function RE(r){const s=parseInt(r.getAttribute("tabindex")||"",10);return Number.isNaN(s)?r.contentEditable==="true"||(r.nodeName==="AUDIO"||r.nodeName==="VIDEO"||r.nodeName==="DETAILS")&&r.getAttribute("tabindex")===null?0:r.tabIndex:s}function jE(r){if(r.tagName!=="INPUT"||r.type!=="radio"||!r.name)return!1;const s=c=>r.ownerDocument.querySelector(`input[type="radio"]${c}`);let n=s(`[name="${r.name}"]:checked`);return n||(n=s(`[name="${r.name}"]`)),n!==r}function NE(r){return!(r.disabled||r.tagName==="INPUT"&&r.type==="hidden"||jE(r))}function OE(r){const s=[],n=[];return Array.from(r.querySelectorAll(LE)).forEach((c,l)=>{const u=RE(c);u===-1||!NE(c)||(u===0?s.push(c):n.push({documentOrder:l,tabIndex:u,node:c}))}),n.sort((c,l)=>c.tabIndex===l.tabIndex?c.documentOrder-l.documentOrder:c.tabIndex-l.tabIndex).map(c=>c.node).concat(s)}function _E(){return!0}function DE(r){const{children:s,disableAutoFocus:n=!1,disableEnforceFocus:c=!1,disableRestoreFocus:l=!1,getTabbable:u=OE,isEnabled:x=_E,open:O}=r,Y=Me.useRef(!1),Q=Me.useRef(null),te=Me.useRef(null),W=Me.useRef(null),G=Me.useRef(null),K=Me.useRef(!1),S=Me.useRef(null),T=Ti(s.ref,S),E=Me.useRef(null);Me.useEffect(()=>{!O||!S.current||(K.current=!n)},[n,O]),Me.useEffect(()=>{if(!O||!S.current)return;const w=un(S.current);return S.current.contains(w.activeElement)||(S.current.hasAttribute("tabIndex")||S.current.setAttribute("tabIndex","-1"),K.current&&S.current.focus()),()=>{l||(W.current&&W.current.focus&&(Y.current=!0,W.current.focus()),W.current=null)}},[O]),Me.useEffect(()=>{if(!O||!S.current)return;
155const w=un(S.current),k=m=>{E.current=m,!(c||!x()||m.key!=="Tab")&&w.activeElement===S.current&&m.shiftKey&&(Y.current=!0,te.current&&te.current.focus())},b=()=>{const m=S.current;if(m===null)return;if(!w.hasFocus()||!x()||Y.current){Y.current=!1;return}if(m.contains(w.activeElement)||c&&w.activeElement!==Q.current&&w.activeElement!==te.current)return;if(w.activeElement!==G.current)G.current=null;else if(G.current!==null)return;if(!K.current)return;let q=[];if((w.activeElement===Q.current||w.activeElement===te.current)&&(q=u(S.current)),q.length>0){var V,H;const M=!!((V=E.current)!=null&&V.shiftKey&&((H=E.current)==null?void 0:H.key)==="Tab"),$=q[0],P=q[q.length-1];typeof $!="string"&&typeof P!="string"&&(M?P.focus():$.focus())}else m.focus()};w.addEventListener("focusin",b),w.addEventListener("keydown",k,!0);const C=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&b()},50);return()=>{clearInterval(C),w.removeEventListener("focusin",b),w.removeEventListener("keydown",k,!0)}},[n,c,l,x,O,u]);const _=w=>{W.current===null&&(W.current=w.relatedTarget),K.current=!0,G.current=w.target;const k=s.props.onFocus;k&&k(w)},g=w=>{W.current===null&&(W.current=w.relatedTarget),K.current=!0};return y.jsxs(Me.Fragment,{children:[y.jsx("div",{tabIndex:O?0:-1,onFocus:g,ref:Q,"data-testid":"sentinelStart"}),Me.cloneElement(s,{ref:T,onFocus:_}),y.jsx("div",{tabIndex:O?0:-1,onFocus:g,ref:te,"data-testid":"sentinelEnd"})]})}function IE(r){return typeof r=="function"?r():r}const BE=Me.forwardRef(function(s,n){const{children:c,container:l,disablePortal:u=!1}=s,[x,O]=Me.useState(null),Y=Ti(Me.isValidElement(c)?c.ref:null,n);if(bd(()=>{u||O(IE(l)||document.body)},[l,u]),bd(()=>{if(x&&!u)return jp(n,x),()=>{jp(n,null)}},[n,x,u]),u){if(Me.isValidElement(c)){const Q={ref:Y};return Me.cloneElement(c,Q)}return y.jsx(Me.Fragment,{children:c})}return y.jsx(Me.Fragment,{children:x&&iv.createPortal(c,x)})}),FE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],zE={entering:{opacity:1},entered:{opacity:1}},$E=Me.forwardRef(function(s,n){const c=Zv(),l={enter:c.transitions.duration.enteringScreen,exit:c.transitions.duration.leavingScreen},{addEndListener:u,appear:x=!0,children:O,easing:Y,in:Q,onEnter:te,onEntered:W,onEntering:G,onExit:K,onExited:S,onExiting:T,style:E,timeout:_=l,TransitionComponent:g=io}=s,w=xr(s,FE),k=Me.useRef(null),b=Ti(k,O.ref,n),C=h=>f=>{if(h){const L=k.current;f===void 0?h(L):h(L,f)}},m=C(G),q=C((h,f)=>{Jv(h);const L=_p({style:E,timeout:_,easing:Y},{mode:"enter"});h.style.webkitTransition=c.transitions.create("opacity",L),h.style.transition=c.transitions.create("opacity",L),te&&te(h,f)}),V=C(W),H=C(T),M=C(h=>{const f=_p({style:E,timeout:_,easing:Y},{mode:"exit"});h.style.webkitTransition=c.transitions.create("opacity",f),h.style.transition=c.transitions.create("opacity",f),K&&K(h)}),$=C(S),P=h=>{u&&u(k.current,h)};return y.jsx(g,qe({appear:x,in:Q,nodeRef:k,onEnter:q,onEntered:V,onEntering:m,onExit:M,onExited:$,onExiting:H,addEndListener:P,timeout:_},w,{children:(h,f)=>Me.cloneElement(O,qe({style:qe({opacity:0,visibility:h==="exited"&&!Q?"hidden":void 0},zE[h],E,O.props.style),ref:b},f))}))});function WE(r){return zo("MuiBackdrop",r)}Wo("MuiBackdrop",["root","invisible"]);const UE=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],HE=r=>{const{classes:s,invisible:n}=r;return Ra({root:["root",n&&"invisible"]},WE,s)},YE=Hr("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(r,s)=>{const{ownerState:n}=r;return[s.root,n.invisible&&s.invisible]}})(({ownerState:r})=>qe({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},r.invisible&&{backgroundColor:"transparent"})),XE=Me.forwardRef(function(s,n){var c,l,u;const x=$o({props:s,name:"MuiBackdrop"}),{children:O,className:Y,component:Q="div",components:te={},componentsProps:W={}
155,invisible:G=!1,open:K,slotProps:S={},slots:T={},TransitionComponent:E=$E,transitionDuration:_}=x,g=xr(x,UE),w=qe({},x,{component:Q,invisible:G}),k=HE(w),b=(c=S.root)!=null?c:W.root;return y.jsx(E,qe({in:K,timeout:_},g,{children:y.jsx(YE,qe({"aria-hidden":!0},b,{as:(l=(u=T.root)!=null?u:te.Root)!=null?l:Q,className:or(k.root,Y,b==null?void 0:b.className),ownerState:qe({},w,b==null?void 0:b.ownerState),classes:k,ref:n,children:O}))}))});function GE(r){return zo("MuiModal",r)}Wo("MuiModal",["root","hidden","backdrop"]);const VE=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],qE=r=>{const{open:s,exited:n,classes:c}=r;return Ra({root:["root",!s&&n&&"hidden"],backdrop:["backdrop"]},GE,c)},KE=Hr("div",{name:"MuiModal",slot:"Root",overridesResolver:(r,s)=>{const{ownerState:n}=r;return[s.root,!n.open&&n.exited&&s.hidden]}})(({theme:r,ownerState:s})=>qe({position:"fixed",zIndex:(r.vars||r).zIndex.modal,right:0,bottom:0,top:0,left:0},!s.open&&s.exited&&{visibility:"hidden"})),ZE=Hr(XE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(r,s)=>s.backdrop})({zIndex:-1}),QE=Me.forwardRef(function(s,n){var c,l,u,x,O,Y;const Q=$o({name:"MuiModal",props:s}),{BackdropComponent:te=ZE,BackdropProps:W,className:G,closeAfterTransition:K=!1,children:S,container:T,component:E,components:_={},componentsProps:g={},disableAutoFocus:w=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:b=!1,disablePortal:C=!1,disableRestoreFocus:m=!1,disableScrollLock:q=!1,hideBackdrop:V=!1,keepMounted:H=!1,onBackdropClick:M,open:$,slotProps:P,slots:h}=Q,f=xr(Q,VE),L=qe({},Q,{closeAfterTransition:K,disableAutoFocus:w,disableEnforceFocus:k,disableEscapeKeyDown:b,disablePortal:C,disableRestoreFocus:m,disableScrollLock:q,hideBackdrop:V,keepMounted:H}),{getRootProps:v,getBackdropProps:A,getTransitionProps:B,portalRef:R,isTopModal:D,exited:Z,hasTransition:X}=AE(qe({},L,{rootRef:n})),ie=qe({},L,{exited:Z}),oe=qE(ie),le={};if(S.props.tabIndex===void 0&&(le.tabIndex="-1"),X){const{onEnter:I,onExited:U}=B();le.onEnter=I,le.onExited=U}const ue=(c=(l=h==null?void 0:h.root)!=null?l:_.Root)!=null?c:KE,F=(u=(x=h==null?void 0:h.backdrop)!=null?x:_.Backdrop)!=null?u:te,N=(O=P==null?void 0:P.root)!=null?O:g.root,ee=(Y=P==null?void 0:P.backdrop)!=null?Y:g.backdrop,ce=Gi({elementType:ue,externalSlotProps:N,externalForwardedProps:f,getSlotProps:v,additionalProps:{ref:n,as:E},ownerState:ie,className:or(G,N==null?void 0:N.className,oe==null?void 0:oe.root,!ie.open&&ie.exited&&(oe==null?void 0:oe.hidden))}),j=Gi({elementType:F,externalSlotProps:ee,additionalProps:W,getSlotProps:I=>A(qe({},I,{onClick:U=>{M&&M(U),I!=null&&I.onClick&&I.onClick(U)}})),className:or(ee==null?void 0:ee.className,W==null?void 0:W.className,oe==null?void 0:oe.backdrop),ownerState:ie});return!H&&!$&&(!X||Z)?null:y.jsx(BE,{ref:R,container:T,disablePortal:C,children:y.jsxs(ue,qe({},ce,{children:[!V&&te?y.jsx(F,qe({},j)):null,y.jsx(DE,{disableEnforceFocus:k,disableAutoFocus:w,disableRestoreFocus:m,isEnabled:D,open:$,children:Me.cloneElement(S,le)})]}))})});function JE(r){return zo("MuiPaper",r)}Wo("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const eM=["className","component","elevation","square","variant"],tM=r=>{const{square:s,elevation:n,variant:c,classes:l}=r,u={root:["root",c,!s&&"rounded",c==="elevation"&&`elevation${n}`]};return Ra(u,JE,l)},rM=Hr("div",{name:"MuiPaper",slot:"Root",overridesResolver:(r,s)=>{const{ownerState:n}=r;
vendor: 4,455 bytes, line 155
155return[s.root,s[n.variant],!n.square&&s.rounded,n.variant==="elevation"&&s[`elevation${n.elevation}`]]}})(({theme:r,ownerState:s})=>{var n;return qe({backgroundColor:(r.vars||r).palette.background.paper,color:(r.vars||r).palette.text.primary,transition:r.transitions.create("box-shadow")},!s.square&&{borderRadius:r.shape.borderRadius},s.variant==="outlined"&&{border:`1px solid ${(r.vars||r).palette.divider}`},s.variant==="elevation"&&qe({boxShadow:(r.vars||r).shadows[s.elevation]},!r.vars&&r.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${$n.alpha("#fff",ux(s.elevation))}, ${$n.alpha("#fff",ux(s.elevation))})`},r.vars&&{backgroundImage:(n=r.vars.overlays)==null?void 0:n[s.elevation]}))}),nM=Me.forwardRef(function(s,n){const c=$o({props:s,name:"MuiPaper"}),{className:l,component:u="div",elevation:x=1,square:O=!1,variant:Y="elevation"}=c,Q=xr(c,eM),te=qe({},c,{component:u,elevation:x,square:O,variant:Y}),W=tM(te);return y.jsx(rM,qe({as:u,ownerState:te,className:or(W.root,l),ref:n},Q))});function iM(r){return zo("MuiPopover",r)}Wo("MuiPopover",["root","paper"]);const sM=["onEntering"],oM=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],aM=["slotProps"];function xx(r,s){let n=0;return typeof s=="number"?n=s:s==="center"?n=r.height/2:s==="bottom"&&(n=r.height),n}function vx(r,s){let n=0;return typeof s=="number"?n=s:s==="center"?n=r.width/2:s==="right"&&(n=r.width),n}function bx(r){return[r.horizontal,r.vertical].map(s=>typeof s=="number"?`${s}px`:s).join(" ")}function Rg(r){return typeof r=="function"?r():r}const lM=r=>{const{classes:s}=r;return Ra({root:["root"],paper:["paper"]},iM,s)},cM=Hr(QE,{name:"MuiPopover",slot:"Root",overridesResolver:(r,s)=>s.root})({}),uM=Hr(nM,{name:"MuiPopover",slot:"Paper",overridesResolver:(r,s)=>s.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),hM=Me.forwardRef(function(s,n){var c,l,u;const x=$o({props:s,name:"MuiPopover"}),{action:O,anchorEl:Y,anchorOrigin:Q={vertical:"top",horizontal:"left"},anchorPosition:te,anchorReference:W="anchorEl",children:G,className:K,container:S,elevation:T=8,marginThreshold:E=16,open:_,PaperProps:g={},slots:w,slotProps:k,transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:C=eb,transitionDuration:m="auto",TransitionProps:{onEntering:q}={},disableScrollLock:V=!1}=x,H=xr(x.TransitionProps,sM),M=xr(x,oM),$=(c=k==null?void 0:k.paper)!=null?c:g,P=Me.useRef(),h=Ti(P,$.ref),f=qe({},x,{anchorOrigin:Q,anchorReference:W,elevation:T,marginThreshold:E,externalPaperSlotProps:$,transformOrigin:b,TransitionComponent:C,transitionDuration:m,TransitionProps:H}),L=lM(f),v=Me.useCallback(()=>{if(W==="anchorPosition")return te;const I=Rg(Y),J=(I&&I.nodeType===1?I:un(P.current).body).getBoundingClientRect();return{top:J.top+xx(J,Q.vertical),left:J.left+vx(J,Q.horizontal)}},[Y,Q.horizontal,Q.vertical,te,W]),A=Me.useCallback(I=>({vertical:xx(I,b.vertical),horizontal:vx(I,b.horizontal)}),[b.horizontal,b.vertical]),B=Me.useCallback(I=>{const U={width:I.offsetWidth,height:I.offsetHeight},J=A(U);if(W==="none")return{top:null,left:null,transformOrigin:bx(J)};const se=v();let ae=se.top-J.vertical,he=se.left-J.horizontal;const me=ae+U.height,ve=he+U.width,ke=Su(Rg(Y)),Pe=ke.innerHeight-E,ge=ke.innerWidth-E;if(E!==null&&ae<E){const de=ae-E;ae-=de,J.vertical+=de}else if(E!==null&&me>Pe){const de=me-Pe;ae-=de,J.vertical+=de}if(E!==null&&he<E){const de=he-E;he-=de,J.horizontal+=de}else if(ve>ge){const de=ve-ge;he-=de,J.horizontal+=de}return{top:`${Math.round(ae)}px`,left:`${Math.round(he)}px`,transformOrigin:bx(J)}},[Y,W,v,A,E]),[R,D]=Me.useState(_),Z=Me.useCallback(()=>{const I=P.current;if(!I)return;const U=B(I);U.top!==null&&(I.style.top=U.top),U.left!==null&&(I.style.left=U.left),I.style.transformOrigin=U.transformOrigin,D(!0)},[B]);Me.useEffect(()=>(V&&window.addEventListener("scroll",Z),()=>window.removeEventListener("scroll",Z)),[Y,V,Z]);const X=(I,U)=>{q&&q(I,U),Z()},ie=()=>{D(!1)};Me.useEffect(()=>{_&&Z()}),Me.useImperativeHandle(O,()=>_?{updatePosition:()=>{Z()}}:null,[_,Z]),Me.useEffect(()=>{if(!_)return;const I=Yv(()=>{Z()}),U=Su(Y);return U.addEventListener("resize",I),()=>
155{I.clear(),U.removeEventListener("resize",I)}},[Y,_,Z]);let oe=m;m==="auto"&&!C.muiSupportAuto&&(oe=void 0);const le=S||(Y?un(Rg(Y)).body:void 0),ue=(l=w==null?void 0:w.root)!=null?l:cM,F=(u=w==null?void 0:w.paper)!=null?u:uM,N=Gi({elementType:F,externalSlotProps:qe({},$,{style:R?$.style:qe({},$.style,{opacity:0})}),additionalProps:{elevation:T,ref:h},ownerState:f,className:or(L.paper,$==null?void 0:$.className)}),ee=Gi({elementType:ue,externalSlotProps:(k==null?void 0:k.root)||{},externalForwardedProps:M,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:le,open:_},ownerState:f,className:or(L.root,K)}),{slotProps:ce}=ee,j=xr(ee,aM);return y.jsx(ue,qe({},j,!gu(ue)&&{slotProps:ce,disableScrollLock:V},{children:y.jsx(C,qe({appear:!0,in:_,onEntering:X,onExited:ie,timeout:oe},H,{children:y.jsx(F,qe({},N,{children:G}))}))}))});var Jh={},jg={};function dM(r){return zo("MuiSvgIcon",r)}Wo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const fM=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],pM=r=>{const{color:s,fontSize:n,classes:c}=r,l={root:["root",s!=="inherit"&&`color${ar(s)}`,`fontSize${ar(n)}`]};return Ra(l,dM,c)},mM=Hr("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(r,s)=>{const{ownerState:n}=r;return[s.root,n.color!=="inherit"&&s[`color${ar(n.color)}`],s[`fontSize${ar(n.fontSize)}`]]}})(({theme:r,ownerState:s})=>{var n,c,l,u,x,O,Y,Q,te,W,G,K,S;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:s.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=r.transitions)==null||(c=n.create)==null?void 0:c.call(n,"fill",{duration:(l=r.transitions)==null||(l=l.duration)==null?void 0:l.shorter}),fontSize:{inherit:"inherit",small:((u=r.typography)==null||(x=u.pxToRem)==null?void 0:x.call(u,20))||"1.25rem",medium:((O=r.typography)==null||(Y=O.pxToRem)==null?void 0:Y.call(O,24))||"1.5rem",large:((Q=r.typography)==null||(te=Q.pxToRem)==null?void 0:te.call(Q,35))||"2.1875rem"}[s.fontSize],color:(W=(G=(r.vars||r).palette)==null||(G=G[s.color])==null?void 0:G.main)!=null?W:{action:(K=(r.vars||r).palette)==null||(K=K.action)==null?void 0:K.active,disabled:(S=(r.vars||r).palette)==null||(S=S.action)==null?void 0:S.disabled,inherit:void 0}[s.color]}}),a0=Me.forwardRef(function(s,n){const c=$o({props:s,name:"MuiSvgIcon"}),{children:l,className:u,color:x="inherit",component:O="svg",fontSize:Y="medium",htmlColor:Q,inheritViewBox:te=!1,titleAccess:W,viewBox:G="0 0 24 24"}=c,K=xr(c,fM),S=Me.isValidElement(l)&&l.type==="svg",T=qe({},c,{color:x,component:O,fontSize:Y,instanceFontSize:s.fontSize,inheritViewBox:te,viewBox:G,hasSvgAsChild:S}),E={};te||(E.viewBox=G);const _=pM(T);return y.jsxs(mM,qe({as:O,className:or(_.root,u),focusable:"false",color:Q,"aria-hidden":W?void 0:!0,role:W?"img":void 0,ref:n},E,K,S&&l.props,{ownerState:T,children:[S?l.props.children:l,W?y.jsx("title",{children:W}):null]}))});a0.muiName="SvgIcon";function gM(r,s){function n(c,l){return y.jsx(a0,qe({"data-testid":`${s}Icon`,ref:l},c,{children:r}))}return n.muiName=a0.muiName,Me.memo(Me.forwardRef(n))}const yM={configure:r=>{Bv.configure(r)}},xM=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ar,createChainedFunction:i0,createSvgIcon:gM,debounce:Yv,deprecatedPropType:iP,isMuiElement:sP,ownerDocument:un,ownerWindow:Su,requirePropFactory:oP,setRef:jp,unstable_ClassNameGenerator:yM,unstable_useEnhancedEffect:bd,unstable_useId:lP,unsupportedProp:cP,useControlled:Xv,useEventCallback:Ss,useForkRef:Ti,useIsFocusVisible:L0},Symbol.toStringTag,{value:"Module"})),vM=Fo(xM);var Sx;function tm(){return Sx||(Sx=1,function(r){"use client";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s.createSvgIcon}});var s=vM}(jg)),jg}var wx;function bM(){if(wx)return Jh;wx=1;var r=Mu();Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.default=void 0;var s=r(tm()),n=Cd();return Jh.default=(0,s.default)((0,n.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),Jh}var SM=bM();const wM=li(SM);function Cx(r){return r.substring(2).toLowerCase()}function CM(r,s){return s.documentElement.clientWidth<r.clientX||s.documentElement.clientHeight<r.clientY}function kM(r){const{children:s,disableReactTree:n=!1,mouseEvent:c="onClick",onClickAway:l,touchEvent:u="onTouchEnd"}=r,x=Me.useRef(!1),O=Me.useRef(null),Y=Me.useRef(!1),Q=Me.useRef(!1);Me.useEffect(()=>(setTimeout(()=>{Y.current=!0},0),()=>{Y.current=!1}),[]);const te=Ti(s.ref,O),W=Ss(S=>{const T=Q.current;Q.current=!1;const E=un(O.current);if(!Y.current||!O.current||"clientX"in S&&CM(S,E))return;if(x.current){x.current=!1;return}let _;S.composedPath?_=S.composedPath().indexOf(O.current)>-1:_=!E.documentElement.contains(S.target)||O.current.contains(S.target),!_&&(n||!T)&&l(S)}),G=S=>T=>{Q.current=!0;const E=s.props[S];E&&E(T)},K={ref:te};return u!==!1&&(K[u]=G(u)),Me.useEffect(()=>{if(u!==!1){const S=Cx(u),T=un(O.current),E=()=>{x.current=!0};
155return T.addEventListener(S,W),T.addEventListener("touchmove",E),()=>{T.removeEventListener(S,W),T.removeEventListener("touchmove",E)}}},[W,u]),c!==!1&&(K[c]=G(c)),Me.useEffect(()=>{if(c!==!1){const S=Cx(c),T=un(O.current);return T.addEventListener(S,W),()=>{T.removeEventListener(S,W)}}},[W,c]),y.jsx(Me.Fragment,{children:Me.cloneElement(s,K)})}var id={exports:{}};/**
156 * @license
157 * Lodash <https://lodash.com/>
158 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
159 * Released under MIT license <https://lodash.com/license>
160 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
161 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
162 */var PM=id.exports,kx;function EM(){return kx||(kx=1,function(r,s){(function(){var n,c="4.17.21",l=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",x="Expected a function",O="Invalid `variable` option passed into `_.template`",Y="__lodash_hash_undefined__",Q=500,te="__lodash_placeholder__",W=1,G=2,K=4,S=1,T=2,E=1,_=2,g=4,w=8,k=16,b=32,C=64,m=128,q=256,V=512,H=30,M="...",$=800,P=16,h=1,f=2,L=3,v=1/0,A=9007199254740991,B=17976931348623157e292,R=NaN,D=4294967295,Z=D-1,X=D>>>1,ie=[["ary",m],["bind",E],["bindKey",_],["curry",w],["curryRight",k],["flip",V],["partial",b],["partialRight",C],["rearg",q]],oe="[object Arguments]",le="[object Array]",ue="[object AsyncFunction]",F="[object Boolean]",N="[object Date]",ee="[object DOMException]",ce="[object Error]",j="[object Function]",I="[object GeneratorFunction]",U="[object Map]",J="[object Number]",se="[object Null]",ae="[object Object]",he="[object Promise]",me="[object Proxy]",ve="[object RegExp]",ke="[object Set]",Pe="[object String]",ge="[object Symbol]",de="[object Undefined]",fe="[object WeakMap]",xe="[object WeakSet]",Ee="[object ArrayBuffer]",Se="[object DataView]",be="[object Float32Array]",Te="[object Float64Array]",Le="[object Int8Array]",Ne="[object Int16Array]",_e="[object Int32Array]",We="[object Uint8Array]",He="[object Uint8ClampedArray]",Ye="[object Uint16Array]",Ge="[object Uint32Array]",Ve=/\b__p \+= '';/g,ot=/\b(__p \+=) '' \+/g,ct=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ft=/&(?:amp|lt|gt|quot|#39);/g,kt=/[&<>"']/g,Mt=RegExp(ft.source),fr=RegExp(kt.source),Jt=/<%-([\s\S]+?)%>/g,Er=/<%([\s\S]+?)%>/g,Qr=/<%=([\s\S]+?)%>/g,Br=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wn=/^\w*$/,lr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sr=/[\\^$.*+?()[\]{}|]/g,Yr=RegExp(Sr.source),so=/^\s+/,Ji=/\s/,es=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ui=/\{\n\/\* \[wrapped with (.+)\] \*/,Ps=/,? & /,Es=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ts=/[()=,{}\[\]\/\s]/,Ho=/\\(\\)?/g,Dt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rr=/\w*$/,rs=/^[-+]0x[0-9a-f]+$/i,hi=/^0b[01]+$/i,Xr=/^\[object .+?Constructor\]$/,ja=/^0o[0-7]+$/i,oo=/^(?:0|[1-9]\d*)$/,Rd=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 4,124 bytes, line 162
1627f]/g,Ol=/($^)/,um=/['\n\r\u2028\u2029\\]/g,cr="\\ud800-\\udfff",hm="\\u0300-\\u036f",Lu="\\ufe20-\\ufe2f",jd="\\u20d0-\\u20ff",Na=hm+Lu+jd,Nd="\\u2700-\\u27bf",Ru="a-z\\xdf-\\xf6\\xf8-\\xff",_l="\\xac\\xb1\\xd7\\xf7",Li="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dm="\\u2000-\\u206f",di=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Od="A-Z\\xc0-\\xd6\\xd8-\\xde",_d="\\ufe0e\\ufe0f",Dd=_l+Li+dm+di,Yo="['’]",Dl="["+cr+"]",Xo="["+Dd+"]",ao="["+Na+"]",Id="\\d+",fm="["+Nd+"]",Il="["+Ru+"]",ju="[^"+cr+Dd+Id+Nd+Ru+Od+"]",Oa="\\ud83c[\\udffb-\\udfff]",_a="(?:"+ao+"|"+Oa+")",Bd="[^"+cr+"]",Da="(?:\\ud83c[\\udde6-\\uddff]){2}",zt="[\\ud800-\\udbff][\\udc00-\\udfff]",lo="["+Od+"]",Nu="\\u200d",Bl="(?:"+Il+"|"+ju+")",Fd="(?:"+lo+"|"+ju+")",Ou="(?:"+Yo+"(?:d|ll|m|re|s|t|ve))?",_u="(?:"+Yo+"(?:D|LL|M|RE|S|T|VE))?",Fl=_a+"?",Ia="["+_d+"]?",Ms="(?:"+Nu+"(?:"+[Bd,Da,zt].join("|")+")"+Ia+Fl+")*",Ts="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",As="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Go=Ia+Fl+Ms,Ba="(?:"+[fm,Da,zt].join("|")+")"+Go,Ls="(?:"+[Bd+ao+"?",ao,Da,zt,Dl].join("|")+")",pm=RegExp(Yo,"g"),zd=RegExp(ao,"g"),co=RegExp(Oa+"(?="+Oa+")|"+Ls+Go,"g"),mm=RegExp([lo+"?"+Il+"+"+Ou+"(?="+[Xo,lo,"$"].join("|")+")",Fd+"+"+_u+"(?="+[Xo,lo+Bl,"$"].join("|")+")",lo+"?"+Bl+"+"+Ou,lo+"+"+_u,As,Ts,Id,Ba].join("|"),"g"),$d=RegExp("["+Nu+cr+Na+_d+"]"),zl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wd=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],gm=-1,Ut={};Ut[be]=Ut[Te]=Ut[Le]=Ut[Ne]=Ut[_e]=Ut[We]=Ut[He]=Ut[Ye]=Ut[Ge]=!0,Ut[oe]=Ut[le]=Ut[Ee]=Ut[F]=Ut[Se]=Ut[N]=Ut[ce]=Ut[j]=Ut[U]=Ut[J]=Ut[ae]=Ut[ve]=Ut[ke]=Ut[Pe]=Ut[fe]=!1;var $t={};$t[oe]=$t[le]=$t[Ee]=$t[Se]=$t[F]=$t[N]=$t[be]=$t[Te]=$t[Le]=$t[Ne]=$t[_e]=$t[U]=$t[J]=$t[ae]=$t[ve]=$t[ke]=$t[Pe]=$t[ge]=$t[We]=$t[He]=$t[Ye]=$t[Ge]=!0,$t[ce]=$t[j]=$t[fe]=!1;var Vo={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},$l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ym={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},xm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Du=parseFloat,Wl=parseInt,Ul=typeof rp=="object"&&rp&&rp.Object===Object&&rp,Ud=typeof self=="object"&&self&&self.Object===Object&&self,ur=Ul||Ud||Function("return this")(),Fa=s&&!s.nodeType&&s,Ri=Fa&&!0&&r&&!r.nodeType&&r,Iu=Ri&&Ri.exports===Fa,qo=Iu&&Ul.process,hn=function(){try{var Ie=Ri&&Ri.require&&Ri.require("util").t
vendor: 11,543 bytes, line 162
162ypes;return Ie||qo&&qo.binding&&qo.binding("util")}catch{}}(),Bu=hn&&hn.isArrayBuffer,wn=hn&&hn.isDate,uo=hn&&hn.isMap,Hl=hn&&hn.isRegExp,Ko=hn&&hn.isSet,Hd=hn&&hn.isTypedArray;function dn(Ie,Xe,$e){switch($e.length){case 0:return Ie.call(Xe);case 1:return Ie.call(Xe,$e[0]);case 2:return Ie.call(Xe,$e[0],$e[1]);case 3:return Ie.call(Xe,$e[0],$e[1],$e[2])}return Ie.apply(Xe,$e)}function Fu(Ie,Xe,$e,it){for(var St=-1,It=Ie==null?0:Ie.length;++St<It;){var Mr=Ie[St];Xe(it,Mr,$e(Mr),Ie)}return it}function Jr(Ie,Xe){for(var $e=-1,it=Ie==null?0:Ie.length;++$e<it&&Xe(Ie[$e],$e,Ie)!==!1;);return Ie}function Yl(Ie,Xe){for(var $e=Ie==null?0:Ie.length;$e--&&Xe(Ie[$e],$e,Ie)!==!1;);return Ie}function zu(Ie,Xe){for(var $e=-1,it=Ie==null?0:Ie.length;++$e<it;)if(!Xe(Ie[$e],$e,Ie))return!1;return!0}function Rs(Ie,Xe){for(var $e=-1,it=Ie==null?0:Ie.length,St=0,It=[];++$e<it;){var Mr=Ie[$e];Xe(Mr,$e,Ie)&&(It[St++]=Mr)}return It}function Xl(Ie,Xe){var $e=Ie==null?0:Ie.length;return!!$e&&Zo(Ie,Xe,0)>-1}function $u(Ie,Xe,$e){for(var it=-1,St=Ie==null?0:Ie.length;++it<St;)if($e(Xe,Ie[it]))return!0;return!1}function er(Ie,Xe){for(var $e=-1,it=Ie==null?0:Ie.length,St=Array(it);++$e<it;)St[$e]=Xe(Ie[$e],$e,Ie);return St}function js(Ie,Xe){for(var $e=-1,it=Xe.length,St=Ie.length;++$e<it;)Ie[St+$e]=Xe[$e];return Ie}function Wu(Ie,Xe,$e,it){var St=-1,It=Ie==null?0:Ie.length;for(it&&It&&($e=Ie[++St]);++St<It;)$e=Xe($e,Ie[St],St,Ie);return $e}function vm(Ie,Xe,$e,it){var St=Ie==null?0:Ie.length;for(it&&St&&($e=Ie[--St]);St--;)$e=Xe($e,Ie[St],St,Ie);return $e}function Uu(Ie,Xe){for(var $e=-1,it=Ie==null?0:Ie.length;++$e<it;)if(Xe(Ie[$e],$e,Ie))return!0;return!1}var bm=Yu("length");function Yd(Ie){return Ie.split("")}function Sm(Ie){return Ie.match(Es)||[]}function Xd(Ie,Xe,$e){var it;return $e(Ie,function(St,It,Mr){if(Xe(St,It,Mr))return it=It,!1}),it}function Gl(Ie,Xe,$e,it){for(var St=Ie.length,It=$e+(it?1:-1);it?It--:++It<St;)if(Xe(Ie[It],It,Ie))return It;return-1}function Zo(Ie,Xe,$e){return Xe===Xe?Kl(Ie,Xe,$e):Gl(Ie,Gd,$e)}function Hu(Ie,Xe,$e,it){for(var St=$e-1,It=Ie.length;++St<It;)if(it(Ie[St],Xe))return St;return-1}function Gd(Ie){return Ie!==Ie}function Vd(Ie,Xe){var $e=Ie==null?0:Ie.length;return $e?Xu(Ie,Xe)/$e:R}function Yu(Ie){return function(Xe){return Xe==null?n:Xe[Ie]}}function Vl(Ie){return function(Xe){return Ie==null?n:Ie[Xe]}}function qd(Ie,Xe,$e,it,St){return St(Ie,function(It,Mr,Vt){$e=it?(it=!1,It):Xe($e,It,Mr,Vt)}),$e}function wm(Ie,Xe){var $e=Ie.length;for(Ie.sort(Xe);$e--;)Ie[$e]=Ie[$e].value;return Ie}function Xu(Ie,Xe){for(var $e,it=-1,St=Ie.length;++it<St;){var It=Xe(Ie[it]);It!==n&&($e=$e===n?It:$e+It)}return $e}function Gu(Ie,Xe){for(var $e=-1,it=Array(Ie);++$e<Ie;)it[$e]=Xe($e);return it}function Cm(Ie,Xe){return er(Xe,function($e){return[$e,Ie[$e]]})}function Kd(Ie){return Ie&&Ie.slice(0,Zl(Ie)+1).replace(so,"")}function jn(Ie){return function(Xe){return Ie(Xe)}}function za(Ie,Xe){return er(Xe,function($e){return Ie[$e]})}function ns(Ie,Xe){return Ie.has(Xe)}function Zd(Ie,Xe){for(var $e=-1,it=Ie.length;++$e<it&&Zo(Xe,Ie[$e],0)>-1;);return $e}function Vu(Ie,Xe){for(var $e=Ie.length;$e--&&Zo(Xe,Ie[$e],0)>-1;);return $e}function Qd(Ie,Xe){for(var $e=Ie.length,it=0;$e--;)Ie[$e]===Xe&&++it;return it}var Jd=Vl(Vo),ef=Vl($l);function tf(Ie){return"\\"+xm[Ie]}function Qo(Ie,Xe){return Ie==null?n:Ie[Xe]}function Jo(Ie){return $d.test(Ie)}function km(Ie){return zl.test(Ie)}function Pm(Ie){for(var Xe,$e=[];!(Xe=Ie.next()).done;)$e.push(Xe.value);return $e}function ql(Ie){var Xe=-1,$e=Array(Ie.size);return Ie.forEach(function(it,St){$e[++Xe]=[St,it]}),$e}function qu(Ie,Xe){return function($e){return Ie(Xe($e))}}function Un(Ie,Xe){for(var $e=-1,it=Ie.length,St=0,It=[];++$e<it;){var Mr=Ie[$e];(Mr===Xe||Mr===te)&&(Ie[$e]=te,It[St++]=$e)}return It}function Ns(Ie){var Xe=-1,$e=Array(Ie.size);return Ie.forEach(function(it){$e[++Xe]=it}),$e}function Em(Ie){var Xe=-1,$e=Array(Ie.size);return Ie.forEach(function(it){$e[++Xe]=[it,it]}),$e}function Kl(Ie,Xe,$e){for(var it=$e-1,St=Ie.length;++it<St;)if(Ie[it]===Xe)return it;return-1}function Mm(Ie,Xe,$e){for(var it=$e+1;it--;)if(Ie[it]===Xe)return it;return it}function ho(Ie){return Jo(Ie)?nf(Ie):bm(Ie)}function Nn(Ie){return Jo(Ie)?sf(Ie):Yd(Ie)}function Zl(Ie){for(var Xe=Ie.length;Xe--&&Ji.test(Ie.charAt(Xe)););return Xe}var rf=Vl(ym);function nf(Ie){for(var Xe=co.lastIndex=0;co.test(Ie);)++Xe;return Xe}function sf(Ie){return Ie.match(co)||[]}function Tm(Ie){return Ie.match(mm)||[]}var Am=function Ie(Xe){Xe=Xe==null?ur:ea.defaults(ur.Object(),Xe,ea.pick(ur,Wd));var $e=Xe.Array,it=Xe.Date,St=Xe.Error,It=Xe.Function,Mr=Xe.Math,Vt=Xe.Object,$a=Xe.RegExp,Lm=Xe.String,Hn=Xe.TypeError,is=$e.prototype,Ku=It.prototype,ji=Vt.prototype,ta=Xe["__core-js_shared__"],Wa=Ku.toString,Bt=ji.hasOwnProperty,ra=0,Ql=function(){var i=/[^.]+$/.exec(ta&&ta.keys&&ta.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),Ua=ji.toString,Jl=Wa.call(Vt),of=ur._,af=$a("^"+Wa.call(Bt).replace(Sr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ha=Iu?Xe.Buffer:n,ss=Xe.Symbol,Ya=Xe.Uint8Array,Zu=Ha?Ha.allocUnsafe:n,fi=qu(Vt.getPrototypeOf,Vt),ec=Vt.create,tc=ji.propertyIsEnumerable,rc=is.splice,lf=ss?ss.isConcatSpreadable:n,os=ss?ss.iterator:n,fo=ss?ss.toStringTag:n,Xa=function(){try{var i=Hs(Vt,"defineProperty");return i({},"",{}),i}catch{}}(),cf=Xe.clearTimeout!==ur.clearTimeout&&Xe.clearTimeout,nr=it&&it.now!==ur.Date.now&&it.now,Qu=Xe.setTimeout!==ur.setTimeout&&Xe.setTimeout,po=Mr.ceil,Os=Mr.floor,nc=Vt.getOwnPropertySymbols,Ju=Ha?Ha.isBuffer:n,na=Xe.isFinite,ic=is.join,ia=qu(Vt.keys,Vt),Tr=Mr.max,en=Mr.min,Rm=it.now,uf=Xe.parseInt,Ga=Mr.random,sc=is.reverse,Va=Hs(Xe,"DataView"),mo=Hs(Xe,"Map"),qa=Hs(Xe,"Promise"),_s=Hs(Xe,"Set"),Ka=Hs(Xe,"WeakMap"),sa=Hs(Vt,"create"),oc=Ka&&new Ka,oa={},eh=Ys(Va),Ds=Ys(mo),hf=Ys(qa),aa=Ys(_s),Ni=Ys(Ka),Is=ss?ss.prototype:n,On=Is?Is.valueOf:n,ac=Is?Is.toString:n;function we(i){if(Lr(i)&&!Ct(i)&&!(i instanceof wt)){if(i instanceof tn)return i;if(Bt.call(i,"__wrapped__"))return Ff(i)}return new tn(i)}var la=function(){function i(){}return function(o){if(!kr(o))return{};if(ec)return ec(o);i.prototype=o;var p=new i;return i.prototype=n,p}}();function Oi(){}function tn(i,o){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=n}we.templateSettings={escape:Jt,evaluate:Er,interpolate:Qr,variable:"",imports:{_:we}},we.prototype=Oi.prototype,we.prototype.constructor=we,tn.prototype=la(Oi.prototype),tn.prototype.constructor=tn;function wt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=D,this.__views__=[]}function lc(){var i=new wt(this.__wrapped__);return i.__actions__=pn(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=pn(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=pn(this.__views__),i}function th(){if(this.__filtered__){var i=new wt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function ca(){var i=this.__wrapped__.value(),o=this.__dir__,p=Ct(i),ne=o<0,pe=p?i.length:0,Ce=Ah(0,pe,this.__views__),Re=Ce.start,Oe=Ce.end,Be=Oe-Re,Ke=ne?Oe:Re-1,Ze=this.__iteratees__,et=Ze.length,nt=0,dt=en(Be,this.__takeCount__);if(!p||!ne&&pe==Be&&dt==Be)return ya(i,this.__actions__);var xt=[];e:for(;Be--&&nt<dt;){Ke+=o;for(var Tt=-1,vt=i[Ke];++Tt<et;){var jt=Ze[Tt],_t=jt.iteratee,Ci=jt.type,Fn=_t(vt);if(Ci==f)vt=Fn;else if(!Fn){if(Ci==h)continue e;break e}}xt[nt++]=vt}return xt}wt.prototype=la(Oi.prototype),wt.prototype.constructor=wt;function Cn(i){var o=-1,p=i==null?0:i.length;for(this.clear();++o<p;){var ne=i[o];this.set(ne[0],ne[1])}}function ir(){this.__data__=sa?sa(null):{},this.size=0}function tr(i){var o=this.has(i)&&delete this.__data__[i];return this.size-=o?1:0,o}function Bs(i){var o=this.__data__;if(sa){var p=o[i];return p===Y?n:p}return Bt.call(o,i)?o[i]:n}function rn(i){var o=this.__data__;return sa?o[i]!==n:Bt.call(o,i)}function kn(i,o){var p=this.__data__;return this.size+=this.has(i)?0:1,p[i]=sa&&o===n?Y:o,this}Cn.prototype.clear=ir,Cn.prototype.delete=tr,Cn.prototype.get=Bs,Cn.prototype.has=rn,Cn.prototype.set=kn;function fn(i){var o=-1,p=i==null?0:i.length;for(this.clear();++o<p;){var ne=i[o];this.set(ne[0],ne[1])}}function ua(){this.__data__=[],this.size=0}function Pn(i){var o=this.__data__,p=sn(o,i);if(p<0)return!1;var ne=o.length-1;return p==ne?o.pop():rc.call(o,p,1),--this.size,!0}function cc(i){var o=this.__data__,p=sn(o,i);return p<0?n:o[p][1]}function df(i){return sn(this.__data__,i)>-1}function ff(i,o){var p=this.__data__,ne=sn(p,i);return ne<0?(++this.size,p.push([i,o])):p[ne][1]=o,this}fn.prototype.clear=ua,fn.prototype.delete=Pn,fn.prototype.get=cc,fn.prototype.has=df,fn.prototype.set=ff;function Yn(i){var o=-1,p=i==null?0:i.length;for(this.clear();++o<p;){var ne=i[o];this.set(ne[0],ne[1])}}function pf(){this.size=0,this.__data__={hash:new Cn,map:new(mo||fn),string:new Cn}}function as(i){var o=dl(this,i).delete(i);return this.size-=o?1:0,o}function uc(i){return dl(this,i).get(i)}function rh(i){return dl(this,i).has(i)}function mf(i,o){var p=dl(this,i),ne=p.size;return p.set(i,o),this.size+=p.size==ne?0:1,this}Yn.prototype.clear=pf,Yn.prototype.delete=as,Yn.prototype.get=uc,Yn.prototype.has=rh,Yn.prototype.set=mf;function go(i){var o=-1,p=i==null?0:i.length;for(this.__data__=new Yn;++o<p;)this.add(i[o])}function Fs(i){return this.__data__.set(i,Y),this}function ha(i){return this.__data__.has(i)}go.prototype.add=go.prototype.push=Fs,go.prototype.has=ha;function nn(i){var o=this.__data__=new fn(i);this.size=o.size}function hc(){this.__data__=new fn,this.size=0}function dc(i){var o=this.__data__,p=o.delete(i);return this.size=o.size,p}function Xn(i){return this.__data__.get(i)}function Gn(i){return this.__data__.has(i)}function yo(i,o){var p=this.__data__;if(p instanceof fn){var ne=p.__data__;if(!mo||ne.length<l-1)return ne.push([i,o]),this.size=++p.size,this;p=this.__data__=new Yn(ne)}return p.set(i,o),this.size=p.size,this}nn.prototype.clear=hc,nn.prototype.delete=dc,nn.prototype.get=Xn,nn.prototype.has=Gn,nn.prototype.set=yo;function _i(i,o){var p=Ct(i),ne=!p&&kl(i),pe=!p&&!ne&&Ma(i),Ce=!p&&!ne&&!pe&&tu(i),Re=p||ne||pe||Ce,Oe=Re?Gu(i.length,Lm):[],Be=Oe.length;for(var Ke in i)(o||Bt.call(i,Ke))&&!(Re&&(Ke=="length"||pe&&(Ke=="offset"||Ke=="parent")||Ce&&(Ke=="buffer"||Ke=="byteLength"||Ke=="byteOffset")||dr(Ke,Be)))&&Oe.push(Ke);return Oe}function Di(i){var o=i.length;return o?i[ma(0,o-1)]:n}function xo(i,o){return Bc(pn(i),ls(o,0,i.length))}function gf(i){return Bc(pn(i))}function Za(i,o,p){(p!==n&&!xs(i[o],p)||p===n&&!(o in i))&&Ii(i,o,p)}function vo(i,o,p){var ne=i[o];(!(Bt.call(i,o)&&xs(ne,p))||p===n&&!(o in i))&&Ii(i,o,p)}function sn(i,o){for(var p=i.length;p--;)if(xs(i[p][0],o))return p;return-1}function _n(i,o,p,ne){return Fi(i,function(pe,Ce,Re){o(ne,pe,p(pe),Re)}),ne}function sr(i,o){return i&&mi(o,ln(o),i)}function pi(i,o){return i&&mi(o,ri(o),i)}function Ii(i,o,p){o=="__proto__"&&Xa?Xa(i,o,{configurable:!0,enumerable:!0,value:p,writable:!0}):i[o]=p}function fc(i,o){for(var p=-1,ne=o.length,pe=$e(ne),Ce=i==null;++p<ne;)pe[p]=Ce?n:tg(i,o[p]);return pe}function ls(i,o,p){return i===i&&(p!==n&&(i=i<=p?i:p),o!==n&&(i=i>=o?i:o)),i}function En(i,o,p,ne,pe,Ce){var Re,Oe=o&W,Be=o&G,Ke=o&K;if(p&&(Re=pe?p(i,ne,pe,Ce):p(i)),Re!==n)return Re;if(!kr(i))return i;var Ze=Ct(i);if(Ze){if(Re=pl(i),!Oe)return pn(i,Re)}else{var et=qr(i),nt=et==j||et==I;
vendor: 11,668 bytes, line 162
162if(Ma(i))return yh(i,Oe);if(et==ae||et==oe||nt&&!pe){if(Re=Be||nt?{}:Kr(i),!Oe)return Be?Nm(i,pi(Re,i)):Ec(i,sr(Re,i))}else{if(!$t[et])return pe?i:{};Re=Om(i,et,Oe)}}Ce||(Ce=new nn);var dt=Ce.get(i);if(dt)return dt;Ce.set(i,Re),X0(i)?i.forEach(function(vt){Re.add(En(vt,o,p,vt,i,Ce))}):H0(i)&&i.forEach(function(vt,jt){Re.set(jt,En(vt,o,p,jt,i,Ce))});var xt=Ke?Be?hl:ul:Be?ri:ln,Tt=Ze?n:xt(i);return Jr(Tt||i,function(vt,jt){Tt&&(jt=vt,vt=i[jt]),vo(Re,jt,En(vt,o,p,jt,i,Ce))}),Re}function yf(i){var o=ln(i);return function(p){return Qa(p,i,o)}}function Qa(i,o,p){var ne=p.length;if(i==null)return!ne;for(i=Vt(i);ne--;){var pe=p[ne],Ce=o[pe],Re=i[pe];if(Re===n&&!(pe in i)||!Ce(Re))return!1}return!0}function nh(i,o,p){if(typeof i!="function")throw new Hn(x);return ka(function(){i.apply(n,p)},o)}function Bi(i,o,p,ne){var pe=-1,Ce=Xl,Re=!0,Oe=i.length,Be=[],Ke=o.length;if(!Oe)return Be;p&&(o=er(o,jn(p))),ne?(Ce=$u,Re=!1):o.length>=l&&(Ce=ns,Re=!1,o=new go(o));e:for(;++pe<Oe;){var Ze=i[pe],et=p==null?Ze:p(Ze);if(Ze=ne||Ze!==0?Ze:0,Re&&et===et){for(var nt=Ke;nt--;)if(o[nt]===et)continue e;Be.push(Ze)}else Ce(o,et,ne)||Be.push(Ze)}return Be}var Fi=Qn(Dn),xf=Qn(zs,!0);function Ja(i,o){var p=!0;return Fi(i,function(ne,pe,Ce){return p=!!o(ne,pe,Ce),p}),p}function bo(i,o,p){for(var ne=-1,pe=i.length;++ne<pe;){var Ce=i[ne],Re=o(Ce);if(Re!=null&&(Oe===n?Re===Re&&!wi(Re):p(Re,Oe)))var Oe=Re,Be=Ce}return Be}function vf(i,o,p,ne){var pe=i.length;for(p=Et(p),p<0&&(p=-p>pe?0:pe+p),ne=ne===n||ne>pe?pe:Et(ne),ne<0&&(ne+=pe),ne=p>ne?0:V0(ne);p<ne;)i[p++]=o;return i}function ih(i,o){var p=[];return Fi(i,function(ne,pe,Ce){o(ne,pe,Ce)&&p.push(ne)}),p}function vr(i,o,p,ne,pe){var Ce=-1,Re=i.length;for(p||(p=_c),pe||(pe=[]);++Ce<Re;){var Oe=i[Ce];o>0&&p(Oe)?o>1?vr(Oe,o-1,p,ne,pe):js(pe,Oe):ne||(pe[pe.length]=Oe)}return pe}var pc=Tc(),el=Tc(!0);function Dn(i,o){return i&&pc(i,o,ln)}function zs(i,o){return i&&el(i,o,ln)}function da(i,o){return Rs(o,function(p){return No(i[p])})}function cs(i,o){o=Wi(o,i);for(var p=0,ne=o.length;i!=null&&p<ne;)i=i[vi(o[p++])];return p&&p==ne?i:n}function mc(i,o,p){var ne=o(i);return Ct(i)?ne:js(ne,p(i))}function Gr(i){return i==null?i===n?de:se:fo&&fo in Vt(i)?Oc(i):Rh(i)}function $s(i,o){return i>o}function Vn(i,o){return i!=null&&Bt.call(i,o)}function So(i,o){return i!=null&&o in Vt(i)}function sh(i,o,p){return i>=en(o,p)&&i<Tr(o,p)}function gc(i,o,p){for(var ne=p?$u:Xl,pe=i[0].length,Ce=i.length,Re=Ce,Oe=$e(Ce),Be=1/0,Ke=[];Re--;){var Ze=i[Re];Re&&o&&(Ze=er(Ze,jn(o))),Be=en(Ze.length,Be),Oe[Re]=!p&&(o||pe>=120&&Ze.length>=120)?new go(Re&&Ze):n}Ze=i[0];var et=-1,nt=Oe[0];e:for(;++et<pe&&Ke.length<Be;){var dt=Ze[et],xt=o?o(dt):dt;if(dt=p||dt!==0?dt:0,!(nt?ns(nt,xt):ne(Ke,xt,p))){for(Re=Ce;--Re;){var Tt=Oe[Re];if(!(Tt?ns(Tt,xt):ne(i[Re],xt,p)))continue e}nt&&nt.push(xt),Ke.push(dt)}}return Ke}function us(i,o,p,ne){return Dn(i,function(pe,Ce,Re){o(ne,p(pe),Ce,Re)}),ne}function qn(i,o,p){o=Wi(o,i),i=Fr(i,o);var ne=i==null?i:i[vi(yn(o))];return ne==null?n:dn(ne,i,p)}function yc(i){return Lr(i)&&Gr(i)==oe}function bf(i){return Lr(i)&&Gr(i)==Ee}function hs(i){return Lr(i)&&Gr(i)==N}function Kn(i,o,p,ne,pe){return i===o?!0:i==null||o==null||!Lr(i)&&!Lr(o)?i!==i&&o!==o:xc(i,o,p,ne,Kn,pe)}function xc(i,o,p,ne,pe,Ce){var Re=Ct(i),Oe=Ct(o),Be=Re?le:qr(i),Ke=Oe?le:qr(o);Be=Be==oe?ae:Be,Ke=Ke==oe?ae:Ke;var Ze=Be==ae,et=Ke==ae,nt=Be==Ke;if(nt&&Ma(i)){if(!Ma(o))return!1;Re=!0,Ze=!1}if(nt&&!Ze)return Ce||(Ce=new nn),Re||tu(i)?Mh(i,o,p,ne,pe,Ce):Th(i,o,Be,p,ne,pe,Ce);if(!(p&S)){var dt=Ze&&Bt.call(i,"__wrapped__"),xt=et&&Bt.call(o,"__wrapped__");if(dt||xt){var Tt=dt?i.value():i,vt=xt?o.value():o;return Ce||(Ce=new nn),pe(Tt,vt,p,ne,Ce)}}return nt?(Ce||(Ce=new nn),Rf(i,o,p,ne,pe,Ce)):!1}function Sf(i){return Lr(i)&&qr(i)==U}function fa(i,o,p,ne){var pe=p.length,Ce=pe,Re=!ne;if(i==null)return!Ce;for(i=Vt(i);pe--;){var Oe=p[pe];if(Re&&Oe[2]?Oe[1]!==i[Oe[0]]:!(Oe[0]in i))return!1}for(;++pe<Ce;){Oe=p[pe];var Be=Oe[0],Ke=i[Be],Ze=Oe[1];if(Re&&Oe[2]){if(Ke===n&&!(Be in i))return!1}else{var et=new nn;if(ne)var nt=ne(Ke,Ze,Be,i,o,et);if(!(nt===n?Kn(Ze,Ke,S|T,ne,et):nt))return!1}}return!0}function oh(i){if(!kr(i)||Of(i))return!1;var o=No(i)?af:Xr;return o.test(Ys(i))}function tl(i){return Lr(i)&&Gr(i)==ve}function zi(i){return Lr(i)&&qr(i)==ke}function rl(i){return Lr(i)&&Jf(i.length)&&!!Ut[Gr(i)]}function pa(i){return typeof i=="function"?i:i==null?ni:typeof i=="object"?Ct(i)?hr(i[0],i[1]):vc(i):sy(i)}function ds(i){if(!gs(i))return ia(i);var o=[];for(var p in Vt(i))Bt.call(i,p)&&p!="constructor"&&o.push(p);return o}function ah(i){if(!kr(i))return If(i);var o=gs(i),p=[];for(var ne in i)ne=="constructor"&&(o||!Bt.call(i,ne))||p.push(ne);return p}function Ws(i,o){return i<o}function lh(i,o){var p=-1,ne=ti(i)?$e(i.length):[];return Fi(i,function(pe,Ce,Re){ne[++p]=o(pe,Ce,Re)}),ne}function vc(i){var o=fl(i);return o.length==1&&o[0][2]?Dc(o[0][0],o[0][1]):function(p){return p===i||fa(p,i,o)}}function hr(i,o){return at(i)&&gl(o)?Dc(vi(i),o):function(p){var ne=tg(p,i);return ne===n&&ne===o?rg(p,i):Kn(o,ne,S|T)}}function wo(i,o,p,ne,pe){i!==o&&pc(o,function(Ce,Re){if(pe||(pe=new nn),kr(Ce))ch(i,o,Re,p,wo,ne,pe);else{var Oe=ne?ne(Yi(i,Re),Ce,Re+"",i,o,pe):n;Oe===n&&(Oe=Ce),Za(i,Re,Oe)}},ri)}function ch(i,o,p,ne,pe,Ce,Re){var Oe=Yi(i,p),Be=Yi(o,p),Ke=Re.get(Be);if(Ke){Za(i,p,Ke);return}var Ze=Ce?Ce(Oe,Be,p+"",i,o,Re):n,et=Ze===n;if(et){var nt=Ct(Be),dt=!nt&&Ma(Be),xt=!nt&&!dt&&tu(Be);Ze=Be,nt||dt||xt?Ct(Oe)?Ze=Oe:_r(Oe)?Ze=pn(Oe):dt?(et=!1,Ze=yh(Be,!0)):xt?(et=!1,Ze=Ef(Be,!0)):Ze=[]:qh(Be)||kl(Be)?(Ze=Oe,kl(Oe)?Ze=q0(Oe):(!kr(Oe)||No(Oe))&&(Ze=Kr(Be))):et=!1}et&&(Re.set(Be,Ze),pe(Ze,Be,ne,Ce,Re),Re.delete(Be)),Za(i,p,Ze)}function bc(i,o){var p=i.length;if(p)return o+=o<0?p:0,dr(o,p)?i[o]:n}function nl(i,o,p){o.length?o=er(o,function(Ce){return Ct(Ce)?function(Re){return cs(Re,Ce.length===1?Ce[0]:Ce)}:Ce}):o=[ni];var ne=-1;o=er(o,jn(gt()));var pe=lh(i,function(Ce,Re,Oe){var Be=er(o,function(Ke){return Ke(Ce)});return{criteria:Be,index:++ne,value:Ce}});return wm(pe,function(Ce,Re){return jm(Ce,Re,p)})}function uh(i,o){return Us(i,o,function(p,ne){return rg(i,ne)})}function Us(i,o,p){for(var ne=-1,pe=o.length,Ce={};++ne<pe;){var Re=o[ne],Oe=cs(i,Re);p(Oe,Re)&&ko(Ce,Wi(Re,i),Oe)}return Ce}function pr(i){return function(o){return cs(o,i)}}function wr(i,o,p,ne){var pe=ne?Hu:Zo,Ce=-1,Re=o.length,Oe=i;for(i===o&&(o=pn(o)),p&&(Oe=er(i,jn(p)));++Ce<Re;)for(var Be=0,Ke=o[Ce],Ze=p?p(Ke):Ke;(Be=pe(Oe,Ze,Be,ne))>-1;)Oe!==i&&rc.call(Oe,Be,1),rc.call(i,Be,1);return i}function Nr(i,o){for(var p=i?o.length:0,ne=p-1;p--;){var pe=o[p];if(p==ne||pe!==Ce){var Ce=pe;dr(pe)?rc.call(i,pe,1):Cc(i,pe)}}return i}function ma(i,o){return i+Os(Ga()*(o-i+1))}function il(i,o,p,ne){for(var pe=-1,Ce=Tr(po((o-i)/(p||1)),0),Re=$e(Ce);Ce--;)Re[ne?Ce:++pe]=i,i+=p;return Re}function Co(i,o){var p="";if(!i||o<1||o>A)return p;do o%2&&(p+=i),o=Os(o/2),o&&(i+=i);while(o);return p}function Pt(i,o){return In(Ic(i,o,ni),i+"")}function on(i){return Di(ru(i))}function hh(i,o){var p=ru(i);return Bc(p,ls(o,0,p.length))}function ko(i,o,p,ne){if(!kr(i))return i;o=Wi(o,i);for(var pe=-1,Ce=o.length,Re=Ce-1,Oe=i;Oe!=null&&++pe<Ce;){var Be=vi(o[pe]),Ke=p;if(Be==="__proto__"||Be==="constructor"||Be==="prototype")return i;if(pe!=Re){var Ze=Oe[Be];Ke=ne?ne(Ze,Be,Oe):n,Ke===n&&(Ke=kr(Ze)?Ze:dr(o[pe+1])?[]:{})}vo(Oe,Be,Ke),Oe=Oe[Be]}return i}var Sc=oc?function(i,o){return oc.set(i,o),i}:ni,$i=Xa?function(i,o){return Xa(i,"toString",{configurable:!0,enumerable:!1,value:ig(o),writable:!0})}:ni;function Zn(i){return Bc(ru(i))}function an(i,o,p){var ne=-1,pe=i.length;o<0&&(o=-o>pe?0:pe+o),p=p>pe?pe:p,p<0&&(p+=pe),pe=o>p?0:p-o>>>0,o>>>=0;for(var Ce=$e(pe);++ne<pe;)Ce[ne]=i[ne+o];return Ce}function dh(i,o){var p;return Fi(i,function(ne,pe,Ce){return p=o(ne,pe,Ce),!p}),!!p}function ga(i,o,p){var ne=0,pe=i==null?ne:i.length;if(typeof o=="number"&&o===o&&pe<=X){for(;ne<pe;){var Ce=ne+pe>>>1,Re=i[Ce];Re!==null&&!wi(Re)&&(p?Re<=o:Re<o)?ne=Ce+1:pe=Ce}return pe}return wc(i,o,ni,p)}function wc(i,o,p,ne){var pe=0,Ce=i==null?0:i.length;if(Ce===0)return 0;o=p(o);for(var Re=o!==o,Oe=o===null,Be=wi(o),Ke=o===n;pe<Ce;){var Ze=Os((pe+Ce)/2),et=p(i[Ze]),nt=et!==n,dt=et===null,xt=et===et,Tt=wi(et);if(Re)var vt=ne||xt;else Ke?vt=xt&&(ne||nt):Oe?vt=xt&&nt&&(ne||!dt):Be?vt=xt&&nt&&!dt&&(ne||!Tt):dt||Tt?vt=!1:vt=ne?et<=o:et<o;vt?pe=Ze+1:Ce=Ze}return en(Ce,Z)}function fh(i,o){for(var p=-1,ne=i.length,pe=0,Ce=[];++p<ne;){var Re=i[p],Oe=o?o(Re):Re;if(!p||!xs(Oe,Be)){var Be=Oe;Ce[pe++]=Re===0?0:Re}}return Ce}function ph(i){return typeof i=="number"?i:wi(i)?R:+i}function Mn(i){if(typeof i=="string")return i;if(Ct(i))return er(i,Mn)+"";if(wi(i))return ac?ac.call(i):"";var o=i+"";return o=="0"&&1/i==-1/0?"-0":o}function fs(i,o,p){var ne=-1,pe=Xl,Ce=i.length,Re=!0,Oe=[],Be=Oe;if(p)Re=!1,pe=$u;else if(Ce>=l){var Ke=o?null:Lf(i);if(Ke)return Ns(Ke);Re=!1,pe=ns,Be=new go}else Be=o?[]:Oe;e:for(;++ne<Ce;){var Ze=i[ne],et=o?o(Ze):Ze;if(Ze=p||Ze!==0?Ze:0,Re&&et===et){for(var nt=Be.length;nt--;)if(Be[nt]===et)continue e;o&&Be.push(et),Oe.push(Ze)}else pe(Be,et,p)||(Be!==Oe&&Be.push(et),Oe.push(Ze))}return Oe}function Cc(i,o){return o=Wi(o,i),i=Fr(i,o),i==null||delete i[vi(yn(o))]}function mh(i,o,p,ne){return ko(i,o,p(cs(i,o)),ne)}function sl(i,o,p,ne){for(var pe=i.length,Ce=ne?pe:-1;(ne?Ce--:++Ce<pe)&&o(i[Ce],Ce,i););return p?an(i,ne?0:Ce,ne?Ce+1:pe):an(i,ne?Ce+1:0,ne?pe:Ce)}function ya(i,o){var p=i;return p instanceof wt&&(p=p.value()),Wu(o,function(ne,pe){return pe.func.apply(pe.thisArg,js([ne],pe.args))},p)}function kc(i,o,p){var ne=i.length;if(ne<2)return ne?fs(i[0]):[];for(var pe=-1,Ce=$e(ne);++pe<ne;)for(var Re=i[pe],Oe=-1;++Oe<ne;)Oe!=pe&&(Ce[pe]=Bi(Ce[pe]||Re,i[Oe],o,p));return fs(vr(Ce,1),o,p)}function ol(i,o,p){for(var ne=-1,pe=i.length,Ce=o.length,Re={};++ne<pe;){var Oe=ne<Ce?o[ne]:n;p(Re,i[ne],Oe)}return Re}function xa(i){return _r(i)?i:[]}function Pc(i){return typeof i=="function"?i:ni}function Wi(i,o){return Ct(i)?i:at(i,o)?[i]:Oh(qt(i))}var wf=Pt;function ps(i,o,p){var ne=i.length;return p=p===n?ne:p,!o&&p>=ne?i:an(i,o,p)}var gh=cf||function(i){return ur.clearTimeout(i)};function yh(i,o){if(o)return i.slice();var p=i.length,ne=Zu?Zu(p):new i.constructor(p);return i.copy(ne),ne}function al(i){var o=new i.constructor(i.byteLength);return new Ya(o).set(new Ya(i)),o}function Cf(i,o){var p=o?al(i.buffer):i.buffer;return new i.constructor(p,i.byteOffset,i.byteLength)}function kf(i){var o=new i.constructor(i.source,rr.exec(i));return o.lastIndex=i.lastIndex,o}function Pf(i){return On?Vt(On.call(i)):{}}function Ef(i,o){var p=o?al(i.buffer):i.buffer;return new i.constructor(p,i.byteOffset,i.length)}function xh(i,o){if(i!==o){var p=i!==n,ne=i===null,pe=i===i,Ce=wi(i),Re=o!==n,Oe=o===null,Be=o===o,Ke=wi(o);if(!Oe&&!Ke&&!Ce&&i>o||Ce&&Re&&Be&&!Oe&&!Ke||ne&&Re&&Be||!p&&Be||!pe)return 1;if(!ne&&!Ce&&!Ke&&i<o||Ke&&p&&pe&&!ne&&!Ce||Oe&&p&&pe||!Re&&pe||!Be)return-1}return 0}function jm(i,o,p){for(var ne=-1,pe=i.criteria,Ce=o.criteria,Re=pe.length,Oe=p.length;++ne<Re;){var Be=xh(pe[ne],Ce[ne]);if(Be){if(ne>=Oe)return Be;var Ke=p[ne];return Be*(Ke=="desc"?-1:1)}}return i.index-o.index}function Mf(i,o,p,ne){for(var pe=-1,Ce=i.length,Re=p.length,Oe=-1,Be=o.length,Ke=Tr(Ce-Re,0),Ze=$e(Be+Ke),et=!ne;++Oe<Be;)Ze[Oe]=o[Oe];for(;++pe<Re;)(et||pe<Ce)&&(Ze[p[pe]]=i[pe]);for(;Ke--;)Ze[Oe++]=i[pe++];return Ze}function vh(i,o,p,ne){for(var pe=-1,Ce=i.length,Re=-1,Oe=p.length,Be=-1,Ke=o.length,Ze=Tr(Ce-Oe,0),et=$e(Ze+Ke),nt=!ne;++pe<Ze;)et[pe]=i[pe];for(var dt=pe;++Be<Ke;)et[dt+Be]=o[Be];for(;++Re<Oe;)(nt||pe<Ce)&&(et[dt+p[Re]]=i[pe++]);return et}function pn(i,o){var p=-1,ne=i.length;for(o||(o=$e(ne));
vendor: 4,404 bytes, line 162
162++p<ne;)o[p]=i[p];return o}function mi(i,o,p,ne){var pe=!p;p||(p={});for(var Ce=-1,Re=o.length;++Ce<Re;){var Oe=o[Ce],Be=ne?ne(p[Oe],i[Oe],Oe,p,i):n;Be===n&&(Be=i[Oe]),pe?Ii(p,Oe,Be):vo(p,Oe,Be)}return p}function Ec(i,o){return mi(i,gi(i),o)}function Nm(i,o){return mi(i,jf(i),o)}function Mc(i,o){return function(p,ne){var pe=Ct(p)?Fu:_n,Ce=o?o():{};return pe(p,i,gt(ne,2),Ce)}}function va(i){return Pt(function(o,p){var ne=-1,pe=p.length,Ce=pe>1?p[pe-1]:n,Re=pe>2?p[2]:n;for(Ce=i.length>3&&typeof Ce=="function"?(pe--,Ce):n,Re&&gn(p[0],p[1],Re)&&(Ce=pe<3?n:Ce,pe=1),o=Vt(o);++ne<pe;){var Oe=p[ne];Oe&&i(o,Oe,ne,Ce)}return o})}function Qn(i,o){return function(p,ne){if(p==null)return p;if(!ti(p))return i(p,ne);for(var pe=p.length,Ce=o?pe:-1,Re=Vt(p);(o?Ce--:++Ce<pe)&&ne(Re[Ce],Ce,Re)!==!1;);return p}}function Tc(i){return function(o,p,ne){for(var pe=-1,Ce=Vt(o),Re=ne(o),Oe=Re.length;Oe--;){var Be=Re[i?Oe:++pe];if(p(Ce[Be],Be,Ce)===!1)break}return o}}function Ac(i,o,p){var ne=o&E,pe=ba(i);function Ce(){var Re=this&&this!==ur&&this instanceof Ce?pe:i;return Re.apply(ne?p:this,arguments)}return Ce}function bh(i){return function(o){o=qt(o);var p=Jo(o)?Nn(o):n,ne=p?p[0]:o.charAt(0),pe=p?ps(p,1).join(""):o.slice(1);return ne[i]()+pe}}function Po(i){return function(o){return Wu(ny(ry(o).replace(pm,"")),i,"")}}function ba(i){return function(){var o=arguments;switch(o.length){case 0:return new i;case 1:return new i(o[0]);case 2:return new i(o[0],o[1]);case 3:return new i(o[0],o[1],o[2]);case 4:return new i(o[0],o[1],o[2],o[3]);case 5:return new i(o[0],o[1],o[2],o[3],o[4]);case 6:return new i(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new i(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var p=la(i.prototype),ne=i.apply(p,o);return kr(ne)?ne:p}}function Sh(i,o,p){var ne=ba(i);function pe(){for(var Ce=arguments.length,Re=$e(Ce),Oe=Ce,Be=ms(pe);Oe--;)Re[Oe]=arguments[Oe];var Ke=Ce<3&&Re[0]!==Be&&Re[Ce-1]!==Be?[]:Un(Re,Be);if(Ce-=Ke.length,Ce<p)return mn(i,o,Sa,pe.placeholder,n,Re,Ke,n,n,p-Ce);var Ze=this&&this!==ur&&this instanceof pe?ne:i;return dn(Ze,this,Re)}return pe}function Eo(i){return function(o,p,ne){var pe=Vt(o);if(!ti(o)){var Ce=gt(p,3);o=ln(o),p=function(Oe){return Ce(pe[Oe],Oe,pe)}}var Re=i(o,p,ne);return Re>-1?pe[Ce?o[Re]:Re]:n}}function Lc(i){return Hi(function(o){var p=o.length,ne=p,pe=tn.prototype.thru;for(i&&o.reverse();ne--;){var Ce=o[ne];if(typeof Ce!="function")throw new Hn(x);if(pe&&!Re&&wa(Ce)=="wrapper")var Re=new tn([],!0)}for(ne=Re?ne:p;++ne<p;){Ce=o[ne];var Oe=wa(Ce),Be=Oe=="wrapper"?Nc(Ce):n;Be&&ml(Be[0])&&Be[1]==(m|w|b|q)&&!Be[4].length&&Be[9]==1?Re=Re[wa(Be[0])].apply(Re,Be[3]):Re=Ce.length==1&&ml(Ce)?Re[Oe]():Re.thru(Ce)}return function(){var Ke=arguments,Ze=Ke[0];if(Re&&Ke.length==1&&Ct(Ze))return Re.plant(Ze).value();for(var et=0,nt=p?o[et].apply(this,Ke):Ze;++et<p;)nt=o[et].call(this,nt);return nt}})}function Sa(i,o,p,ne,pe,Ce,Re,Oe,Be,Ke){var Ze=o&m,et=o&E,nt=o&_,dt=o&(w|k),xt=o&V,Tt=nt?n:ba(i);function vt(){for(var jt=arguments.length,_t=$e(jt),Ci=jt;Ci--;)_t[Ci]=arguments[Ci];if(dt)var Fn=ms(vt),ki=Qd(_t,Fn);if(ne&&(_t=Mf(_t,ne,pe,dt)),Ce&&(_t=vh(_t,Ce,Re,dt)),jt-=ki,dt&&jt<Ke){var Dr=Un(_t,Fn);return mn(i,o,Sa,vt.placeholder,p,_t,Dr,Oe,Be,Ke-jt)}var vs=et?p:this,_o=nt?vs[i]:i;return jt=_t.length,Oe?_t=yi(_t,Oe):xt&&jt>1&&_t.reverse(),Ze&&Be<jt&&(_t.length=Be),this&&this!==ur&&this instanceof vt&&(_o=Tt||ba(_o)),_o.apply(vs,_t)}return vt}function Tf(i,o){return function(p,ne){return us(p,i,o(ne),{})}}function ll(i,o){return function(p,ne){var pe;if(p===n&&ne===n)return o;if(p!==n&&(pe=p),ne!==n){if(pe===n)return ne;typeof p=="string"||typeof ne=="string"?(p=Mn(p),ne=Mn(ne)):(p=ph(p),ne=ph(ne)),pe=i(p,ne)}return pe}}function Rc(i){return Hi(function(o){return o=er(o,jn(gt())),Pt(function(p){var ne=this;return i(o,function(pe){return dn(pe,ne,p)})})})}function cl(i,o){o=o===n?" ":Mn(o);var p=o.length;if(p<2)return p?Co(o,i):o;var ne=Co(o,po(i/ho(o)));return Jo(o)?ps(Nn(ne),0,i).join(""):ne.slice(0,i)}function Af(i,o,p,ne){var pe=o&E,Ce=ba(i);function Re(){for(var Oe=-1,Be=arguments.length,Ke=-1,Ze=ne.length,et=$e(Ze+Be),nt=this&&this!==ur&&this instanceof Re?Ce:i;++Ke<Ze;)et[Ke]=ne[Ke];for(;Be--;)et[Ke++]=arguments[++Oe];return dn(nt,pe?p:this,et)}return Re}function wh(i){return function(o,p,ne){return ne&&typeof ne!="number"&&gn(o,p,ne)&&(p=ne=n),o=Oo(o),p===n?(p=o,o=0):p=Oo(p),ne=ne===n?o<p?1:-1:Oo(ne),il(o,p,ne,i)}}
vendor: 4,313 bytes, line 162
162function jc(i){return function(o,p){return typeof o=="string"&&typeof p=="string"||(o=Xi(o),p=Xi(p)),i(o,p)}}function mn(i,o,p,ne,pe,Ce,Re,Oe,Be,Ke){var Ze=o&w,et=Ze?Re:n,nt=Ze?n:Re,dt=Ze?Ce:n,xt=Ze?n:Ce;o|=Ze?b:C,o&=~(Ze?C:b),o&g||(o&=-4);var Tt=[i,o,pe,dt,et,xt,nt,Oe,Be,Ke],vt=p.apply(n,Tt);return ml(i)&&jh(vt,Tt),vt.placeholder=ne,Nh(vt,i,o)}function Vr(i){var o=Mr[i];return function(p,ne){if(p=Xi(p),ne=ne==null?0:en(Et(ne),292),ne&&na(p)){var pe=(qt(p)+"e").split("e"),Ce=o(pe[0]+"e"+(+pe[1]+ne));return pe=(qt(Ce)+"e").split("e"),+(pe[0]+"e"+(+pe[1]-ne))}return o(p)}}var Lf=_s&&1/Ns(new _s([,-0]))[1]==v?function(i){return new _s(i)}:ag;function Ch(i){return function(o){var p=qr(o);return p==U?ql(o):p==ke?Em(o):Cm(o,i(o))}}function Ui(i,o,p,ne,pe,Ce,Re,Oe){var Be=o&_;if(!Be&&typeof i!="function")throw new Hn(x);var Ke=ne?ne.length:0;if(Ke||(o&=-97,ne=pe=n),Re=Re===n?Re:Tr(Et(Re),0),Oe=Oe===n?Oe:Et(Oe),Ke-=pe?pe.length:0,o&C){var Ze=ne,et=pe;ne=pe=n}var nt=Be?n:Nc(i),dt=[i,o,p,ne,pe,Ze,et,Ce,Re,Oe];if(nt&&Df(dt,nt),i=dt[0],o=dt[1],p=dt[2],ne=dt[3],pe=dt[4],Oe=dt[9]=dt[9]===n?Be?0:i.length:Tr(dt[9]-Ke,0),!Oe&&o&(w|k)&&(o&=-25),!o||o==E)var xt=Ac(i,o,p);else o==w||o==k?xt=Sh(i,o,Oe):(o==b||o==(E|b))&&!pe.length?xt=Af(i,o,p,ne):xt=Sa.apply(n,dt);var Tt=nt?Sc:jh;return Nh(Tt(xt,dt),i,o)}function kh(i,o,p,ne){return i===n||xs(i,ji[p])&&!Bt.call(ne,p)?o:i}function Ph(i,o,p,ne,pe,Ce){return kr(i)&&kr(o)&&(Ce.set(o,i),wo(i,o,n,Ph,Ce),Ce.delete(o)),i}function Eh(i){return qh(i)?n:i}function Mh(i,o,p,ne,pe,Ce){var Re=p&S,Oe=i.length,Be=o.length;if(Oe!=Be&&!(Re&&Be>Oe))return!1;var Ke=Ce.get(i),Ze=Ce.get(o);if(Ke&&Ze)return Ke==o&&Ze==i;var et=-1,nt=!0,dt=p&T?new go:n;for(Ce.set(i,o),Ce.set(o,i);++et<Oe;){var xt=i[et],Tt=o[et];if(ne)var vt=Re?ne(Tt,xt,et,o,i,Ce):ne(xt,Tt,et,i,o,Ce);if(vt!==n){if(vt)continue;nt=!1;break}if(dt){if(!Uu(o,function(jt,_t){if(!ns(dt,_t)&&(xt===jt||pe(xt,jt,p,ne,Ce)))return dt.push(_t)})){nt=!1;break}}else if(!(xt===Tt||pe(xt,Tt,p,ne,Ce))){nt=!1;break}}return Ce.delete(i),Ce.delete(o),nt}function Th(i,o,p,ne,pe,Ce,Re){switch(p){case Se:if(i.byteLength!=o.byteLength||i.byteOffset!=o.byteOffset)return!1;i=i.buffer,o=o.buffer;case Ee:return!(i.byteLength!=o.byteLength||!Ce(new Ya(i),new Ya(o)));case F:case N:case J:return xs(+i,+o);case ce:return i.name==o.name&&i.message==o.message;case ve:case Pe:return i==o+"";case U:var Oe=ql;case ke:var Be=ne&S;if(Oe||(Oe=Ns),i.size!=o.size&&!Be)return!1;var Ke=Re.get(i);if(Ke)return Ke==o;ne|=T,Re.set(i,o);var Ze=Mh(Oe(i),Oe(o),ne,pe,Ce,Re);return Re.delete(i),Ze;case ge:if(On)return On.call(i)==On.call(o)}return!1}function Rf(i,o,p,ne,pe,Ce){var Re=p&S,Oe=ul(i),Be=Oe.length,Ke=ul(o),Ze=Ke.length;if(Be!=Ze&&!Re)return!1;for(var et=Be;et--;){var nt=Oe[et];if(!(Re?nt in o:Bt.call(o,nt)))return!1}var dt=Ce.get(i),xt=Ce.get(o);if(dt&&xt)return dt==o&&xt==i;var Tt=!0;Ce.set(i,o),Ce.set(o,i);for(var vt=Re;++et<Be;){nt=Oe[et];var jt=i[nt],_t=o[nt];if(ne)var Ci=Re?ne(_t,jt,nt,o,i,Ce):ne(jt,_t,nt,i,o,Ce);if(!(Ci===n?jt===_t||pe(jt,_t,p,ne,Ce):Ci)){Tt=!1;break}vt||(vt=nt=="constructor")}if(Tt&&!vt){var Fn=i.constructor,ki=o.constructor;Fn!=ki&&"constructor"in i&&"constructor"in o&&!(typeof Fn=="function"&&Fn instanceof Fn&&typeof ki=="function"&&ki instanceof ki)&&(Tt=!1)}return Ce.delete(i),Ce.delete(o),Tt}function Hi(i){return In(Ic(i,n,zc),i+"")}function ul(i){return mc(i,ln,gi)}function hl(i){return mc(i,ri,jf)}var Nc=oc?function(i){return oc.get(i)}:ag;function wa(i){for(var o=i.name+"",p=oa[o],ne=Bt.call(oa,o)?p.length:0;ne--;){var pe=p[ne],Ce=pe.func;if(Ce==null||Ce==i)return pe.name}return o}function ms(i){var o=Bt.call(we,"placeholder")?we:i;return o.placeholder}function gt(){var i=we.iteratee||sg;return i=i===sg?pa:i,arguments.length?i(arguments[0],arguments[1]):i}function dl(i,o){var p=i.__data__;return Ca(o)?p[typeof o=="string"?"string":"hash"]:p.map}function fl(i){for(var o=ln(i),p=o.length;p--;){var ne=o[p],pe=i[ne];o[p]=[ne,pe,gl(pe)]}return o}function Hs(i,o){var p=Qo(i,o);return oh(p)?p:n}function Oc(i){var o=Bt.call(i,fo),p=i[fo];try{i[fo]=n;var ne=!0}catch{}var pe=Ua.call(i);return ne&&(o?i[fo]=p:delete i[fo]),pe}var gi=nc?function(i){return i==null?[]:(i=Vt(i),Rs(nc(i),function(o){return tc.call(i,o)}))}:lg,jf=nc?function(i){for(var o=[];i;)js(o,gi(i)),i=fi(i);return o}
vendor: 4,119 bytes, lines 162-164
162:lg,qr=Gr;(Va&&qr(new Va(new ArrayBuffer(1)))!=Se||mo&&qr(new mo)!=U||qa&&qr(qa.resolve())!=he||_s&&qr(new _s)!=ke||Ka&&qr(new Ka)!=fe)&&(qr=function(i){var o=Gr(i),p=o==ae?i.constructor:n,ne=p?Ys(p):"";if(ne)switch(ne){case eh:return Se;case Ds:return U;case hf:return he;case aa:return ke;case Ni:return fe}return o});function Ah(i,o,p){for(var ne=-1,pe=p.length;++ne<pe;){var Ce=p[ne],Re=Ce.size;switch(Ce.type){case"drop":i+=Re;break;case"dropRight":o-=Re;break;case"take":o=en(o,i+Re);break;case"takeRight":i=Tr(i,o-Re);break}}return{start:i,end:o}}function Nf(i){var o=i.match(ui);return o?o[1].split(Ps):[]}function Lh(i,o,p){o=Wi(o,i);for(var ne=-1,pe=o.length,Ce=!1;++ne<pe;){var Re=vi(o[ne]);if(!(Ce=i!=null&&p(i,Re)))break;i=i[Re]}return Ce||++ne!=pe?Ce:(pe=i==null?0:i.length,!!pe&&Jf(pe)&&dr(Re,pe)&&(Ct(i)||kl(i)))}function pl(i){var o=i.length,p=new i.constructor(o);return o&&typeof i[0]=="string"&&Bt.call(i,"index")&&(p.index=i.index,p.input=i.input),p}function Kr(i){return typeof i.constructor=="function"&&!gs(i)?la(fi(i)):{}}function Om(i,o,p){var ne=i.constructor;switch(o){case Ee:return al(i);case F:case N:return new ne(+i);case Se:return Cf(i,p);case be:case Te:case Le:case Ne:case _e:case We:case He:case Ye:case Ge:return Ef(i,p);case U:return new ne;case J:case Pe:return new ne(i);case ve:return kf(i);case ke:return new ne;case ge:return Pf(i)}}function _m(i,o){var p=o.length;if(!p)return i;var ne=p-1;return o[ne]=(p>1?"& ":"")+o[ne],o=o.join(p>2?", ":" "),i.replace(es,`{
163/* [wrapped with `+o+`] */
164`)}function _c(i){return Ct(i)||kl(i)||!!(lf&&i&&i[lf])}function dr(i,o){var p=typeof i;return o=o??A,!!o&&(p=="number"||p!="symbol"&&oo.test(i))&&i>-1&&i%1==0&&i<o}function gn(i,o,p){if(!kr(p))return!1;var ne=typeof o;return(ne=="number"?ti(p)&&dr(o,p.length):ne=="string"&&o in p)?xs(p[o],i):!1}function at(i,o){if(Ct(i))return!1;var p=typeof i;return p=="number"||p=="symbol"||p=="boolean"||i==null||wi(i)?!0:Wn.test(i)||!Br.test(i)||o!=null&&i in Vt(o)}function Ca(i){var o=typeof i;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?i!=="__proto__":i===null}function ml(i){var o=wa(i),p=we[o];if(typeof p!="function"||!(o in wt.prototype))return!1;if(i===p)return!0;var ne=Nc(p);return!!ne&&i===ne[0]}function Of(i){return!!Ql&&Ql in i}var Dm=ta?No:cg;function gs(i){var o=i&&i.constructor,p=typeof o=="function"&&o.prototype||ji;return i===p}function gl(i){return i===i&&!kr(i)}function Dc(i,o){return function(p){return p==null?!1:p[i]===o&&(o!==n||i in Vt(p))}}function _f(i){var o=ze(i,function(ne){return p.size===Q&&p.clear(),ne}),p=o.cache;return o}function Df(i,o){var p=i[1],ne=o[1],pe=p|ne,Ce=pe<(E|_|m),Re=ne==m&&p==w||ne==m&&p==q&&i[7].length<=o[8]||ne==(m|q)&&o[7].length<=o[8]&&p==w;if(!(Ce||Re))return i;ne&E&&(i[2]=o[2],pe|=p&E?0:g);var Oe=o[3];if(Oe){var Be=i[3];i[3]=Be?Mf(Be,Oe,o[4]):Oe,i[4]=Be?Un(i[3],te):o[4]}return Oe=o[5],Oe&&(Be=i[5],i[5]=Be?vh(Be,Oe,o[6]):Oe,i[6]=Be?Un(i[5],te):o[6]),Oe=o[7],Oe&&(i[7]=Oe),ne&m&&(i[8]=i[8]==null?o[8]:en(i[8],o[8])),i[9]==null&&(i[9]=o[9]),i[0]=o[0],i[1]=pe,i}function If(i){var o=[];if(i!=null)for(var p in Vt(i))o.push(p);return o}function Rh(i){return Ua.call(i)}function Ic(i,o,p){return o=Tr(o===n?i.length-1:o,0),function(){for(var ne=arguments,pe=-1,Ce=Tr(ne.length-o,0),Re=$e(Ce);++pe<Ce;)Re[pe]=ne[o+pe];pe=-1;for(var Oe=$e(o+1);++pe<o;)Oe[pe]=ne[pe];return Oe[o]=p(Re),dn(i,this,Oe)}}function Fr(i,o){return o.length<2?i:cs(i,an(o,0,-1))}function yi(i,o){for(var p=i.length,ne=en(o.length,p),pe=pn(i);ne--;){var Ce=o[ne];i[ne]=dr(Ce,p)?pe[Ce]:n}return i}function Yi(i,o){if(!(o==="constructor"&&typeof i[o]=="function")&&o!="__proto__")return i[o]}var jh=xi(Sc),ka=Qu||function(i,o){return ur.setTimeout(i,o)},In=xi($i);function Nh(i,o,p){var ne=o+"";return In(i,_m(ne,Bf(Nf(ne),p)))}function xi(i){var o=0,p=0;return function(){var ne=Rm(),pe=P-(ne-p);if(p=ne,pe>0){if(++o>=$)return arguments[0]}else o=0;return i.apply(n,arguments)}}function Bc(i,o){var p=-1,ne=i.length,pe=ne-1;for(o=o===n?ne:o;++p<o;){var Ce=ma(p,pe),Re=i[Ce];i[Ce]=i[p],i[p]=Re}return i.length=o,i}var Oh=_f(function(i){var o=[];
vendor: 33,223 bytes, lines 164-181
164return i.charCodeAt(0)===46&&o.push(""),i.replace(lr,function(p,ne,pe,Ce){o.push(pe?Ce.replace(Ho,"$1"):ne||p)}),o});function vi(i){if(typeof i=="string"||wi(i))return i;var o=i+"";return o=="0"&&1/i==-1/0?"-0":o}function Ys(i){if(i!=null){try{return Wa.call(i)}catch{}try{return i+""}catch{}}return""}function Bf(i,o){return Jr(ie,function(p){var ne="_."+p[0];o&p[1]&&!Xl(i,ne)&&i.push(ne)}),i.sort()}function Ff(i){if(i instanceof wt)return i.clone();var o=new tn(i.__wrapped__,i.__chain__);return o.__actions__=pn(i.__actions__),o.__index__=i.__index__,o.__values__=i.__values__,o}function Fc(i,o,p){(p?gn(i,o,p):o===n)?o=1:o=Tr(Et(o),0);var ne=i==null?0:i.length;if(!ne||o<1)return[];for(var pe=0,Ce=0,Re=$e(po(ne/o));pe<ne;)Re[Ce++]=an(i,pe,pe+=o);return Re}function _h(i){for(var o=-1,p=i==null?0:i.length,ne=0,pe=[];++o<p;){var Ce=i[o];Ce&&(pe[ne++]=Ce)}return pe}function Jn(){var i=arguments.length;if(!i)return[];for(var o=$e(i-1),p=arguments[0],ne=i;ne--;)o[ne-1]=arguments[ne];return js(Ct(p)?pn(p):[p],vr(o,1))}var Ot=Pt(function(i,o){return _r(i)?Bi(i,vr(o,1,_r,!0)):[]}),zr=Pt(function(i,o){var p=yn(o);return _r(p)&&(p=n),_r(i)?Bi(i,vr(o,1,_r,!0),gt(p,2)):[]}),Ar=Pt(function(i,o){var p=yn(o);return _r(p)&&(p=n),_r(i)?Bi(i,vr(o,1,_r,!0),n,p):[]});function Zr(i,o,p){var ne=i==null?0:i.length;return ne?(o=p||o===n?1:Et(o),an(i,o<0?0:o,ne)):[]}function Bn(i,o,p){var ne=i==null?0:i.length;return ne?(o=p||o===n?1:Et(o),o=ne-o,an(i,0,o<0?0:o)):[]}function Pa(i,o){return i&&i.length?sl(i,gt(o,3),!0,!0):[]}function Or(i,o){return i&&i.length?sl(i,gt(o,3),!0):[]}function yl(i,o,p,ne){var pe=i==null?0:i.length;return pe?(p&&typeof p!="number"&&gn(i,o,p)&&(p=0,ne=pe),vf(i,o,p,ne)):[]}function Xs(i,o,p){var ne=i==null?0:i.length;if(!ne)return-1;var pe=p==null?0:Et(p);return pe<0&&(pe=Tr(ne+pe,0)),Gl(i,gt(o,3),pe)}function xl(i,o,p){var ne=i==null?0:i.length;if(!ne)return-1;var pe=ne-1;return p!==n&&(pe=Et(p),pe=p<0?Tr(ne+pe,0):en(pe,ne-1)),Gl(i,gt(o,3),pe,!0)}function zc(i){var o=i==null?0:i.length;return o?vr(i,1):[]}function vl(i){var o=i==null?0:i.length;return o?vr(i,v):[]}function Tn(i,o){var p=i==null?0:i.length;return p?(o=o===n?1:Et(o),vr(i,o)):[]}function Dh(i){for(var o=-1,p=i==null?0:i.length,ne={};++o<p;){var pe=i[o];ne[pe[0]]=pe[1]}return ne}function Mo(i){return i&&i.length?i[0]:n}function ys(i,o,p){var ne=i==null?0:i.length;if(!ne)return-1;var pe=p==null?0:Et(p);return pe<0&&(pe=Tr(ne+pe,0)),Zo(i,o,pe)}function $c(i){var o=i==null?0:i.length;return o?an(i,0,-1):[]}var Ih=Pt(function(i){var o=er(i,xa);return o.length&&o[0]===i[0]?gc(o):[]}),Gs=Pt(function(i){var o=yn(i),p=er(i,xa);return o===yn(p)?o=n:p.pop(),p.length&&p[0]===i[0]?gc(p,gt(o,2)):[]}),Wc=Pt(function(i){var o=yn(i),p=er(i,xa);return o=typeof o=="function"?o:n,o&&p.pop(),p.length&&p[0]===i[0]?gc(p,n,o):[]});function Vs(i,o){return i==null?"":ic.call(i,o)}function yn(i){var o=i==null?0:i.length;return o?i[o-1]:n}function bl(i,o,p){var ne=i==null?0:i.length;if(!ne)return-1;var pe=ne;return p!==n&&(pe=Et(p),pe=pe<0?Tr(ne+pe,0):en(pe,ne-1)),o===o?Mm(i,o,pe):Gl(i,Gd,pe,!0)}function Bh(i,o){return i&&i.length?bc(i,Et(o)):n}var Uc=Pt(Sl);function Sl(i,o){return i&&i.length&&o&&o.length?wr(i,o):i}function xn(i,o,p){return i&&i.length&&o&&o.length?wr(i,o,gt(p,2)):i}function qs(i,o,p){return i&&i.length&&o&&o.length?wr(i,o,n,p):i}var bi=Hi(function(i,o){var p=i==null?0:i.length,ne=fc(i,o);return Nr(i,er(o,function(pe){return dr(pe,p)?+pe:pe}).sort(xh)),ne});function An(i,o){var p=[];if(!(i&&i.length))return p;var ne=-1,pe=[],Ce=i.length;for(o=gt(o,3);++ne<Ce;){var Re=i[ne];o(Re,ne,i)&&(p.push(Re),pe.push(ne))}return Nr(i,pe),p}function Hc(i){return i==null?i:sc.call(i)}function Fh(i,o,p){var ne=i==null?0:i.length;return ne?(p&&typeof p!="number"&&gn(i,o,p)?(o=0,p=ne):(o=o==null?0:Et(o),p=p===n?ne:Et(p)),an(i,o,p)):[]}function zh(i,o){return ga(i,o)}function Im(i,o,p){return wc(i,o,gt(p,2))}function Ks(i,o){var p=i==null?0:i.length;if(p){var ne=ga(i,o);if(ne<p&&xs(i[ne],o))return ne}return-1}function zf(i,o){return ga(i,o,!0)}function $h(i,o,p){return wc(i,o,gt(p,2),!0)}function To(i,o){var p=i==null?0:i.length;if(p){var ne=ga(i,o,!0)-1;if(xs(i[ne],o))return ne}return-1}function Wh(i){return i&&i.length?fh(i):[]}function Ao(i,o){return i&&i.length?fh(i,gt(o,2)):[]}function $f(i){var o=i==null?0:i.length;return o?an(i,1,o):[]}function Wf(i,o,p){return i&&i.length?(o=p||o===n?1:Et(o),an(i,0,o<0?0:o)):[]}function Uh(i,o,p){var ne=i==null?0:i.length;return ne?(o=p||o===n?1:Et(o),o=ne-o,an(i,o<0?0:o,ne)):[]}function Yc(i,o){return i&&i.length?sl(i,gt(o,3),!1,!0):[]}function Bm(i,o){return i&&i.length?sl(i,gt(o,3)):[]}var Fm=Pt(function(i){return fs(vr(i,1,_r,!0))}),Uf=Pt(function(i){var o=yn(i);return _r(o)&&(o=n),fs(vr(i,1,_r,!0),gt(o,2))}),Hf=Pt(function(i){var o=yn(i);return o=typeof o=="function"?o:n,fs(vr(i,1,_r,!0),n,o)});function Lo(i){return i&&i.length?fs(i):[]}function zm(i,o){return i&&i.length?fs(i,gt(o,2)):[]}function Ea(i,o){return o=typeof o=="function"?o:n,i&&i.length?fs(i,n,o):[]}function Xc(i){if(!(i&&i.length))return[];var o=0;return i=Rs(i,function(p){if(_r(p))return o=Tr(p.length,o),!0}),Gu(o,function(p){return er(i,Yu(p))})}function mr(i,o){if(!(i&&i.length))return[];var p=Xc(i);return o==null?p:er(p,function(ne){return dn(o,n,ne)})}var $m=Pt(function(i,o){return _r(i)?Bi(i,o):[]}),Yf=Pt(function(i){return kc(Rs(i,_r))}),Wm=Pt(function(i){var o=yn(i);return _r(o)&&(o=n),kc(Rs(i,_r),gt(o,2))}),Um=Pt(function(i){var o=yn(i);return o=typeof o=="function"?o:n,kc(Rs(i,_r),n,o)}),Xf=Pt(Xc);function Gf(i,o){return ol(i||[],o||[],vo)}function Hm(i,o){return ol(i||[],o||[],ko)}var ei=Pt(function(i){var o=i.length,p=o>1?i[o-1]:n;return p=typeof p=="function"?(i.pop(),p):n,mr(i,p)});function Gc(i){var o=we(i);return o.__chain__=!0,o}function Ym(i,o){return o(i),i}function Si(i,o){return o(i)}var Vc=Hi(function(i){var o=i.length,p=o?i[0]:0,ne=this.__wrapped__,pe=function(Ce){return fc(Ce,i)};return o>1||this.__actions__.length||!(ne instanceof wt)||!dr(p)?this.thru(pe):(ne=ne.slice(p,+p+(o?1:0)),ne.__actions__.push({func:Si,args:[pe],thisArg:n}),new tn(ne,this.__chain__).thru(function(Ce){return o&&!Ce.length&&Ce.push(n),Ce}))});function Ro(){return Gc(this)}function qc(){return new tn(this.value(),this.__chain__)}function Hh(){this.__values__===n&&(this.__values__=G0(this.value()));var i=this.__index__>=this.__values__.length,o=i?n:this.__values__[this.__index__++];return{done:i,value:o}}function Yh(){return this}function Xm(i){for(var o,p=this;p instanceof Oi;){var ne=Ff(p);ne.__index__=0,ne.__values__=n,o?pe.__wrapped__=ne:o=ne;var pe=ne;p=p.__wrapped__}return pe.__wrapped__=i,o}function Xh(){var i=this.__wrapped__;if(i instanceof wt){var o=i;return this.__actions__.length&&(o=new wt(this)),o=o.reverse(),o.__actions__.push({func:Si,args:[Hc],thisArg:n}),new tn(o,this.__chain__)}return this.thru(Hc)}function Gm(){return ya(this.__wrapped__,this.__actions__)}var Vf=Mc(function(i,o,p){Bt.call(i,p)?++i[p]:Ii(i,p,1)});function qf(i,o,p){var ne=Ct(i)?zu:Ja;return p&&gn(i,o,p)&&(o=n),ne(i,gt(o,3))}function Kc(i,o){var p=Ct(i)?Rs:ih;return p(i,gt(o,3))}var Zc=Eo(Xs),Kf=Eo(xl);function Gh(i,o){return vr(jo(i,o),1)}function Vm(i,o){return vr(jo(i,o),v)}function Zf(i,o,p){return p=p===n?1:Et(p),vr(jo(i,o),p)}function Qc(i,o){var p=Ct(i)?Jr:Fi;return p(i,gt(o,3))}function wl(i,o){var p=Ct(i)?Yl:xf;return p(i,gt(o,3))}var Vh=Mc(function(i,o,p){Bt.call(i,p)?i[p].push(o):Ii(i,p,[o])});function Jc(i,o,p,ne){i=ti(i)?i:ru(i),p=p&&!ne?Et(p):0;var pe=i.length;return p<0&&(p=Tr(pe+p,0)),ep(i)?p<=pe&&i.indexOf(o,p)>-1:!!pe&&Zo(i,o,p)>-1}var Qf=Pt(function(i,o,p){var ne=-1,pe=typeof o=="function",Ce=ti(i)?$e(i.length):[];return Fi(i,function(Re){Ce[++ne]=pe?dn(o,Re,p):qn(Re,o,p)}),Ce}),qm=Mc(function(i,o,p){Ii(i,p,o)});function jo(i,o){var p=Ct(i)?er:lh;return p(i,gt(o,3))}function Km(i,o,p,ne){return i==null?[]:(Ct(o)||(o=o==null?[]:[o]),p=ne?n:p,Ct(p)||(p=p==null?[]:[p]),nl(i,o,p))}var Cl=Mc(function(i,o,p){i[p?0:1].push(o)},function(){return[[],[]]});function Zm(i,o,p){var ne=Ct(i)?Wu:qd,pe=arguments.length<3;return ne(i,gt(o,4),p,pe,Fi)}function eu(i,o,p){var ne=Ct(i)?vm:qd,pe=arguments.length<3;return ne(i,gt(o,4),p,pe,xf)}function e(i,o){var p=Ct(i)?Rs:ih;return p(i,rt(gt(o,3)))}function t(i){var o=Ct(i)?Di:on;return o(i)}function a(i,o,p){(p?gn(i,o,p):o===n)?o=1:o=Et(o);var ne=Ct(i)?xo:hh;return ne(i,o)}function d(i){var o=Ct(i)?gf:Zn;return o(i)}function z(i){if(i==null)return 0;if(ti(i))return ep(i)?ho(i):i.length;var o=qr(i);return o==U||o==ke?i.size:ds(i).length}function re(i,o,p){var ne=Ct(i)?Uu:dh;return p&&gn(i,o,p)&&(o=n),ne(i,gt(o,3))}var ye=Pt(function(i,o){if(i==null)return[];var p=o.length;return p>1&&gn(i,o[0],o[1])?o=[]:p>2&&gn(o[0],o[1],o[2])&&(o=[o[0]]),nl(i,vr(o,1),[])}),Ae=nr||function(){return ur.Date.now()};function je(i,o){if(typeof o!="function")throw new Hn(x);return i=Et(i),function(){if(--i<1)return o.apply(this,arguments)}}function Ue(i,o,p){return o=p?n:o,o=i&&o==null?i.length:o,Ui(i,m,n,n,n,n,o)}function Je(i,o){var p;if(typeof o!="function")throw new Hn(x);return i=Et(i),function(){return--i>0&&(p=o.apply(this,arguments)),i<=1&&(o=n),p}}var tt=Pt(function(i,o,p){var ne=E;if(p.length){var pe=Un(p,ms(tt));ne|=b}return Ui(i,ne,o,p,pe)}),Qe=Pt(function(i,o,p){var ne=E|_;if(p.length){var pe=Un(p,ms(Qe));ne|=b}return Ui(o,ne,i,p,pe)});function st(i,o,p){o=p?n:o;var ne=Ui(i,w,n,n,n,n,n,o);return ne.placeholder=st.placeholder,ne}function lt(i,o,p){o=p?n:o;var ne=Ui(i,k,n,n,n,n,n,o);return ne.placeholder=lt.placeholder,ne}function ut(i,o,p){var ne,pe,Ce,Re,Oe,Be,Ke=0,Ze=!1,et=!1,nt=!0;if(typeof i!="function")throw new Hn(x);o=Xi(o)||0,kr(p)&&(Ze=!!p.leading,et="maxWait"in p,Ce=et?Tr(Xi(p.maxWait)||0,o):Ce,nt="trailing"in p?!!p.trailing:nt);function dt(Dr){var vs=ne,_o=pe;return ne=pe=n,Ke=Dr,Re=i.apply(_o,vs),Re}function xt(Dr){return Ke=Dr,Oe=ka(jt,o),Ze?dt(Dr):Re}function Tt(Dr){var vs=Dr-Be,_o=Dr-Ke,oy=o-vs;return et?en(oy,Ce-_o):oy}function vt(Dr){var vs=Dr-Be,_o=Dr-Ke;return Be===n||vs>=o||vs<0||et&&_o>=Ce}function jt(){var Dr=Ae();if(vt(Dr))return _t(Dr);Oe=ka(jt,Tt(Dr))}function _t(Dr){return Oe=n,nt&&ne?dt(Dr):(ne=pe=n,Re)}function Ci(){Oe!==n&&gh(Oe),Ke=0,ne=Be=pe=Oe=n}function Fn(){return Oe===n?Re:_t(Ae())}function ki(){var Dr=Ae(),vs=vt(Dr);if(ne=arguments,pe=this,Be=Dr,vs){if(Oe===n)return xt(Be);if(et)return gh(Oe),Oe=ka(jt,o),dt(Be)}return Oe===n&&(Oe=ka(jt,o)),Re}return ki.cancel=Ci,ki.flush=Fn,ki}var Cr=Pt(function(i,o){return nh(i,1,o)}),Fe=Pt(function(i,o,p){return nh(i,Xi(o)||0,p)});function De(i){return Ui(i,V)}function ze(i,o){if(typeof i!="function"||o!=null&&typeof o!="function")throw new Hn(x);var p=function(){var ne=arguments,pe=o?o.apply(this,ne):ne[0],Ce=p.cache;if(Ce.has(pe))return Ce.get(pe);var Re=i.apply(this,ne);return p.cache=Ce.set(pe,Re)||Ce,Re};return p.cache=new(ze.Cache||Yn),p}ze.Cache=Yn;function rt(i){if(typeof i!="function")throw new Hn(x);return function(){var o=arguments;switch(o.length){case 0:return!i.call(this);case 1:return!i.call(this,o[0]);case 2:return!i.call(this,o[0],o[1]);case 3:return!i.call(this,o[0],o[1],o[2])}return!i.apply(this,o)}}function ht(i){return Je(2,i)}var mt=wf(function(i,o){o=o.length==1&&Ct(o[0])?er(o[0],jn(gt())):er(vr(o,1),jn(gt()));var p=o.length;return Pt(function(ne){for(var pe=-1,Ce=en(ne.length,p);++pe<Ce;)ne[pe]=o[pe].call(this,ne[pe]);return dn(i,this,ne)})}),pt=Pt(function(i,o){var p=Un(o,ms(pt));return Ui(i,b,n,o,p)}),yt=Pt(function(i,o){var p=Un(o,ms(yt));return Ui(i,C,n,o,p)}),$r=Hi(function(i,o){return Ui(i,q,n,n,n,o)});function Ft(i,o){if(typeof i!="function")throw new Hn(x);return o=o===n?o:Et(o),Pt(i,o)}function Zs(i,o){if(typeof i!="function")throw new Hn(x);return o=o==null?0:Tr(Et(o),0),Pt(function(p){var ne=p[o],pe=ps(p,0,o);return ne&&js(pe,ne),dn(i,this,pe)})}function Qm(i,o,p){var ne=!0,pe=!0;if(typeof i!="function")throw new Hn(x);return kr(p)&&(ne="leading"in p?!!p.leading:ne,pe="trailing"in p?!!p.trailing:pe),ut(i,o,{leading:ne,maxWait:o,trailing:pe})}function Db(i){return Ue(i,1)}function Ib(i,o){return pt(Pc(o),i)}function Bb(){if(!arguments.length)return[];var i=arguments[0];return Ct(i)?i:[i]}function Fb(i){return En(i,K)}function zb(i,o){return o=typeof o=="function"?o:n,En(i,K,o)}function $b(i){return En(i,W|K)}function Wb(i,o){return o=typeof o=="function"?o:n,En(i,W|K,o)}function Ub(i,o){return o==null||Qa(i,o,ln(o))}function xs(i,o){return i===o||i!==i&&o!==o}var Hb=jc($s),Yb=jc(function(i,o){return i>=o}),kl=yc(function(){return arguments}())?yc:function(i){return Lr(i)&&Bt.call(i,"callee")&&!tc.call(i,"callee")},Ct=$e.isArray,Xb=Bu?jn(Bu):bf;function ti(i){return i!=null&&Jf(i.length)&&!No(i)}function _r(i){return Lr(i)&&ti(i)}function Gb(i){return i===!0||i===!1||Lr(i)&&Gr(i)==F}var Ma=Ju||cg,Vb=wn?jn(wn):hs;function qb(i){return Lr(i)&&i.nodeType===1&&!qh(i)}function Kb(i){if(i==null)return!0;if(ti(i)&&(Ct(i)||typeof i=="string"||typeof i.splice=="function"||Ma(i)||tu(i)||kl(i)))return!i.length;var o=qr(i);if(o==U||o==ke)return!i.size;if(gs(i))return!ds(i).length;for(var p in i)if(Bt.call(i,p))return!1;return!0}function Zb(i,o){return Kn(i,o)}function Qb(i,o,p){p=typeof p=="function"?p:n;var ne=p?p(i,o):n;return ne===n?Kn(i,o,n,p):!!ne}function Jm(i){if(!Lr(i))return!1;var o=Gr(i);return o==ce||o==ee||typeof i.message=="string"&&typeof i.name=="string"&&!qh(i)}function Jb(i){return typeof i=="number"&&na(i)}function No(i){if(!kr(i))return!1;var o=Gr(i);return o==j||o==I||o==ue||o==me}function U0(i){return typeof i=="number"&&i==Et(i)}function Jf(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=A}function kr(i){var o=typeof i;return i!=null&&(o=="object"||o=="function")}function Lr(i){return i!=null&&typeof i=="object"}var H0=uo?jn(uo):Sf;function e1(i,o){return i===o||fa(i,o,fl(o))}function t1(i,o,p){return p=typeof p=="function"?p:n,fa(i,o,fl(o),p)}function r1(i){return Y0(i)&&i!=+i}function n1(i){if(Dm(i))throw new St(u);return oh(i)}function i1(i){return i===null}function s1(i){return i==null}function Y0(i){return typeof i=="number"||Lr(i)&&Gr(i)==J}function qh(i){if(!Lr(i)||Gr(i)!=ae)return!1;var o=fi(i);if(o===null)return!0;var p=Bt.call(o,"constructor")&&o.constructor;return typeof p=="function"&&p instanceof p&&Wa.call(p)==Jl}var eg=Hl?jn(Hl):tl;function o1(i){return U0(i)&&i>=-9007199254740991&&i<=A}var X0=Ko?jn(Ko):zi;function ep(i){return typeof i=="string"||!Ct(i)&&Lr(i)&&Gr(i)==Pe}function wi(i){return typeof i=="symbol"||Lr(i)&&Gr(i)==ge}var tu=Hd?jn(Hd):rl;function a1(i){return i===n}function l1(i){return Lr(i)&&qr(i)==fe}function c1(i){return Lr(i)&&Gr(i)==xe}var u1=jc(Ws),h1=jc(function(i,o){return i<=o});function G0(i){if(!i)return[];if(ti(i))return ep(i)?Nn(i):pn(i);if(os&&i[os])return Pm(i[os]());var o=qr(i),p=o==U?ql:o==ke?Ns:ru;return p(i)}function Oo(i){if(!i)return i===0?i:0;if(i=Xi(i),i===v||i===-1/0){var o=i<0?-1:1;return o*B}return i===i?i:0}function Et(i){var o=Oo(i),p=o%1;return o===o?p?o-p:o:0}function V0(i){return i?ls(Et(i),0,D):0}function Xi(i){if(typeof i=="number")return i;if(wi(i))return R;if(kr(i)){var o=typeof i.valueOf=="function"?i.valueOf():i;i=kr(o)?o+"":o}if(typeof i!="string")return i===0?i:+i;i=Kd(i);var p=hi.test(i);return p||ja.test(i)?Wl(i.slice(2),p?2:8):rs.test(i)?R:+i}function q0(i){return mi(i,ri(i))}function d1(i){return i?ls(Et(i),-9007199254740991,A):i===0?i:0}function qt(i){return i==null?"":Mn(i)}var f1=va(function(i,o){if(gs(o)||ti(o)){mi(o,ln(o),i);return}for(var p in o)Bt.call(o,p)&&vo(i,p,o[p])}),K0=va(function(i,o){mi(o,ri(o),i)}),tp=va(function(i,o,p,ne){mi(o,ri(o),i,ne)}),p1=va(function(i,o,p,ne){mi(o,ln(o),i,ne)}),m1=Hi(fc);function g1(i,o){var p=la(i);return o==null?p:sr(p,o)}var y1=Pt(function(i,o){i=Vt(i);var p=-1,ne=o.length,pe=ne>2?o[2]:n;for(pe&&gn(o[0],o[1],pe)&&(ne=1);++p<ne;)for(var Ce=o[p],Re=ri(Ce),Oe=-1,Be=Re.length;++Oe<Be;){var Ke=Re[Oe],Ze=i[Ke];(Ze===n||xs(Ze,ji[Ke])&&!Bt.call(i,Ke))&&(i[Ke]=Ce[Ke])}return i}),x1=Pt(function(i){return i.push(n,Ph),dn(Z0,n,i)});function v1(i,o){return Xd(i,gt(o,3),Dn)}function b1(i,o){return Xd(i,gt(o,3),zs)}function S1(i,o){return i==null?i:pc(i,gt(o,3),ri)}function w1(i,o){return i==null?i:el(i,gt(o,3),ri)}function C1(i,o){return i&&Dn(i,gt(o,3))}function k1(i,o){return i&&zs(i,gt(o,3))}function P1(i){return i==null?[]:da(i,ln(i))}function E1(i){return i==null?[]:da(i,ri(i))}function tg(i,o,p){var ne=i==null?n:cs(i,o);return ne===n?p:ne}function M1(i,o){return i!=null&&Lh(i,o,Vn)}function rg(i,o){return i!=null&&Lh(i,o,So)}var T1=Tf(function(i,o,p){o!=null&&typeof o.toString!="function"&&(o=Ua.call(o)),i[o]=p},ig(ni)),A1=Tf(function(i,o,p){o!=null&&typeof o.toString!="function"&&(o=Ua.call(o)),Bt.call(i,o)?i[o].push(p):i[o]=[p]},gt),L1=Pt(qn);function ln(i){return ti(i)?_i(i):ds(i)}function ri(i){return ti(i)?_i(i,!0):ah(i)}function R1(i,o){var p={};return o=gt(o,3),Dn(i,function(ne,pe,Ce){Ii(p,o(ne,pe,Ce),ne)}),p}function j1(i,o){var p={};return o=gt(o,3),Dn(i,function(ne,pe,Ce){Ii(p,pe,o(ne,pe,Ce))}),p}var N1=va(function(i,o,p){wo(i,o,p)}),Z0=va(function(i,o,p,ne){wo(i,o,p,ne)}),O1=Hi(function(i,o){var p={};if(i==null)return p;var ne=!1;o=er(o,function(Ce){return Ce=Wi(Ce,i),ne||(ne=Ce.length>1),Ce}),mi(i,hl(i),p),ne&&(p=En(p,W|G|K,Eh));for(var pe=o.length;pe--;)Cc(p,o[pe]);return p});function _1(i,o){return Q0(i,rt(gt(o)))}var D1=Hi(function(i,o){return i==null?{}:uh(i,o)});function Q0(i,o){if(i==null)return{};var p=er(hl(i),function(ne){return[ne]});return o=gt(o),Us(i,p,function(ne,pe){return o(ne,pe[0])})}function I1(i,o,p){o=Wi(o,i);var ne=-1,pe=o.length;for(pe||(pe=1,i=n);++ne<pe;){var Ce=i==null?n:i[vi(o[ne])];Ce===n&&(ne=pe,Ce=p),i=No(Ce)?Ce.call(i):Ce}return i}function B1(i,o,p){return i==null?i:ko(i,o,p)}function F1(i,o,p,ne){return ne=typeof ne=="function"?ne:n,i==null?i:ko(i,o,p,ne)}var J0=Ch(ln),ey=Ch(ri);function z1(i,o,p){var ne=Ct(i),pe=ne||Ma(i)||tu(i);if(o=gt(o,4),p==null){var Ce=i&&i.constructor;pe?p=ne?new Ce:[]:kr(i)?p=No(Ce)?la(fi(i)):{}:p={}}return(pe?Jr:Dn)(i,function(Re,Oe,Be){return o(p,Re,Oe,Be)}),p}function $1(i,o){return i==null?!0:Cc(i,o)}function W1(i,o,p){return i==null?i:mh(i,o,Pc(p))}function U1(i,o,p,ne){return ne=typeof ne=="function"?ne:n,i==null?i:mh(i,o,Pc(p),ne)}function ru(i){return i==null?[]:za(i,ln(i))}function H1(i){return i==null?[]:za(i,ri(i))}function Y1(i,o,p){return p===n&&(p=o,o=n),p!==n&&(p=Xi(p),p=p===p?p:0),o!==n&&(o=Xi(o),o=o===o?o:0),ls(Xi(i),o,p)}function X1(i,o,p){return o=Oo(o),p===n?(p=o,o=0):p=Oo(p),i=Xi(i),sh(i,o,p)}function G1(i,o,p){if(p&&typeof p!="boolean"&&gn(i,o,p)&&(o=p=n),p===n&&(typeof o=="boolean"?(p=o,o=n):typeof i=="boolean"&&(p=i,i=n)),i===n&&o===n?(i=0,o=1):(i=Oo(i),o===n?(o=i,i=0):o=Oo(o)),i>o){var ne=i;i=o,o=ne}if(p||i%1||o%1){var pe=Ga();return en(i+pe*(o-i+Du("1e-"+((pe+"").length-1))),o)}return ma(i,o)}var V1=Po(function(i,o,p){return o=o.toLowerCase(),i+(p?ty(o):o)});function ty(i){return ng(qt(i).toLowerCase())}function ry(i){return i=qt(i),i&&i.replace(Rd,Jd).replace(zd,"")}function q1(i,o,p){i=qt(i),o=Mn(o);var ne=i.length;p=p===n?ne:ls(Et(p),0,ne);var pe=p;return p-=o.length,p>=0&&i.slice(p,pe)==o}function K1(i){return i=qt(i),i&&fr.test(i)?i.replace(kt,ef):i}function Z1(i){return i=qt(i),i&&Yr.test(i)?i.replace(Sr,"\\$&"):i}var Q1=Po(function(i,o,p){return i+(p?"-":"")+o.toLowerCase()}),J1=Po(function(i,o,p){return i+(p?" ":"")+o.toLowerCase()}),eS=bh("toLowerCase");function tS(i,o,p){i=qt(i),o=Et(o);var ne=o?ho(i):0;if(!o||ne>=o)return i;var pe=(o-ne)/2;return cl(Os(pe),p)+i+cl(po(pe),p)}function rS(i,o,p){i=qt(i),o=Et(o);var ne=o?ho(i):0;return o&&ne<o?i+cl(o-ne,p):i}function nS(i,o,p){i=qt(i),o=Et(o);var ne=o?ho(i):0;return o&&ne<o?cl(o-ne,p)+i:i}function iS(i,o,p){return p||o==null?o=0:o&&(o=+o),uf(qt(i).replace(so,""),o||0)}function sS(i,o,p){return(p?gn(i,o,p):o===n)?o=1:o=Et(o),Co(qt(i),o)}function oS(){var i=arguments,o=qt(i[0]);return i.length<3?o:o.replace(i[1],i[2])}var aS=Po(function(i,o,p){return i+(p?"_":"")+o.toLowerCase()});function lS(i,o,p){return p&&typeof p!="number"&&gn(i,o,p)&&(o=p=n),p=p===n?D:p>>>0,p?(i=qt(i),i&&(typeof o=="string"||o!=null&&!eg(o))&&(o=Mn(o),!o&&Jo(i))?ps(Nn(i),0,p):i.split(o,p)):[]}var cS=Po(function(i,o,p){return i+(p?" ":"")+ng(o)});function uS(i,o,p){return i=qt(i),p=p==null?0:ls(Et(p),0,i.length),o=Mn(o),i.slice(p,p+o.length)==o}function hS(i,o,p){var ne=we.templateSettings;p&&gn(i,o,p)&&(o=n),i=qt(i),o=tp({},o,ne,kh);var pe=tp({},o.imports,ne.imports,kh),Ce=ln(pe),Re=za(pe,Ce),Oe,Be,Ke=0,Ze=o.interpolate||Ol,et="__p += '",nt=$a((o.escape||Ol).source+"|"+Ze.source+"|"+(Ze===Qr?Dt:Ol).source+"|"+(o.evaluate||Ol).source+"|$","g"),dt="//# sourceURL="+(Bt.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gm+"]")+`
165`;i.replace(nt,function(vt,jt,_t,Ci,Fn,ki){return _t||(_t=Ci),et+=i.slice(Ke,ki).replace(um,tf),jt&&(Oe=!0,et+=`' +
166__e(`+jt+`) +
167'`),Fn&&(Be=!0,et+=`';
168`+Fn+`;
169__p += '`),_t&&(et+=`' +
170((__t = (`+_t+`)) == null ? '' : __t) +
171'`),Ke=ki+vt.length,vt}),et+=`';
172`;var xt=Bt.call(o,"variable")&&o.variable;if(!xt)et=`with (obj) {
173`+et+`
174}
175`;else if(ts.test(xt))throw new St(O);et=(Be?et.replace(Ve,""):et).replace(ot,"$1").replace(ct,"$1;"),et="function("+(xt||"obj")+`) {
176`+(xt?"":`obj || (obj = {});
177`)+"var __t, __p = ''"+(Oe?", __e = _.escape":"")+(Be?`, __j = Array.prototype.join;
178function print() { __p += __j.call(arguments, '') }
179`:`;
180`)+et+`return __p
181}`;var Tt=iy(function(){return It(Ce,dt+"return "+et).apply(n,Re)});if(Tt.source=et,Jm(Tt))throw Tt;return Tt}function dS(i){return qt(i).toLowerCase()}function fS(i){return qt(i).toUpperCase()}function pS(i,o,p){if(i=qt(i),i&&(p||o===n))return Kd(i);if(!i||!(o=Mn(o)))return i;var ne=Nn(i),pe=Nn(o),Ce=Zd(ne,pe),Re=Vu(ne,pe)+1;return ps(ne,Ce,Re).join("")}function mS(i,o,p){if(i=qt(i),i&&(p||o===n))return i.slice(0,Zl(i)+1);if(!i||!(o=Mn(o)))return i;var ne=Nn(i),pe=Vu(ne,Nn(o))+1;return ps(ne,0,pe).join("")}function gS(i,o,p){if(i=qt(i),i&&(p||o===n))return i.replace(so,"");if(!i||!(o=Mn(o)))return i;var ne=Nn(i),pe=Zd(ne,Nn(o));return ps(ne,pe).join("")}function yS(i,o){var p=H,ne=M;if(kr(o)){var pe="separator"in o?o.separator:pe;p="length"in o?Et(o.length):p,ne="omission"in o?Mn(o.omission):ne}i=qt(i);var Ce=i.length;if(Jo(i)){var Re=Nn(i);Ce=Re.length}if(p>=Ce)return i;var Oe=p-ho(ne);if(Oe<1)return ne;var Be=Re?ps(Re,0,Oe).join(""):i.slice(0,Oe);if(pe===n)return Be+ne;if(Re&&(Oe+=Be.length-Oe),eg(pe)){if(i.slice(Oe).search(pe)){var Ke,Ze=Be;for(pe.global||(pe=$a(pe.source,qt(rr.exec(pe))+"g")),pe.lastIndex=0;Ke=pe.exec(Ze);)var et=Ke.index;Be=Be.slice(0,et===n?Oe:et)}}else if(i.indexOf(Mn(pe),Oe)!=Oe){var nt=Be.lastIndexOf(pe);nt>-1&&(Be=Be.slice(0,nt))}return Be+ne}function xS(i){return i=qt(i),i&&Mt.test(i)?i.replace(ft,rf):i}var vS=Po(function(i,o,p){return i+(p?" ":"")+o.toUpperCase()}),ng=bh("toUpperCase");function ny(i,o,p){return i=qt(i),o=p?n:o,o===n?km(i)?Tm(i):Sm(i):i.match(o)||[]}var iy=Pt(function(i,o){try{return dn(i,n,o)}catch(p){return Jm(p)?p:new St(p)}}),bS=Hi(function(i,o){return Jr(o,function(p){p=vi(p),Ii(i,p,tt(i[p],i))}),i});function SS(i){var o=i==null?0:i.length,p=gt();return i=o?er(i,function(ne){if(typeof ne[1]!="function")throw new Hn(x);return[p(ne[0]),ne[1]]}):[],Pt(function(ne){for(var pe=-1;++pe<o;){var Ce=i[pe];if(dn(Ce[0],this,ne))return dn(Ce[1],this,ne)}})}function wS(i){return yf(En(i,W))}function ig(i){return function(){return i}}function CS(i,o){return i==null||i!==i?o:i}var kS=Lc(),PS=Lc(!0);function ni(i){return i}function sg(i){return pa(typeof i=="function"?i:En(i,W))}function ES(i){return vc(En(i,W))}function MS(i,o){return hr(i,En(o,W))}var TS=Pt(function(i,o){return function(p){return qn(p,i,o)}}),AS=Pt(function(i,o){return function(p){return qn(i,p,o)}});function og(i,o,p){var ne=ln(o),pe=da(o,ne);p==null&&!(kr(o)&&(pe.length||!ne.length))&&(p=o,o=i,i=this,pe=da(o,ln(o)));var Ce=!(kr(p)&&"chain"in p)||!!p.chain,Re=No(i);return Jr(pe,function(Oe){var Be=o[Oe];i[Oe]=Be,Re&&(i.prototype[Oe]=function(){var Ke=this.__chain__;if(Ce||Ke){var Ze=i(this.__wrapped__),et=Ze.__actions__=pn(this.__actions__);return et.push({func:Be,args:arguments,thisArg:i}),Ze.__chain__=Ke,Ze}return Be.apply(i,js([this.value()],arguments))})}),i}function LS(){return ur._===this&&(ur._=of),this}function ag(){}function RS(i){return i=Et(i),Pt(function(o){return bc(o,i)})}var jS=Rc(er),NS=Rc(zu),OS=Rc(Uu);function sy(i){return at(i)?Yu(vi(i)):pr(i)}function _S(i){return function(o){return i==null?n:cs(i,o)}}var DS=wh(),IS=wh(!0);function lg(){return[]}function cg(){return!1}function BS(){return{}}function FS(){return""}function zS(){return!0}function $S(i,o){if(i=Et(i),i<1||i>A)return[];var p=D,ne=en(i,D);o=gt(o),i-=D;for(var pe=Gu(ne,o);++p<i;)o(p);return pe}function WS(i){return Ct(i)?er(i,vi):wi(i)?[i]:pn(Oh(qt(i)))}function US(i){var o=++ra;return qt(i)+o}var HS=ll(function(i,o){return i+o},0),YS=Vr("ceil"),XS=ll(function(i,o){return i/o},1),GS=Vr("floor");function VS(i){return i&&i.length?bo(i,ni,$s):n}function qS(i,o){return i&&i.length?bo(i,gt(o,2),$s):n}function KS(i){return Vd(i,ni)}function ZS(i,o){return Vd(i,gt(o,2))}function QS(i){return i&&i.length?bo(i,ni,Ws):n}function JS(i,o){return i&&i.length?bo(i,gt(o,2),Ws):n}var e2=ll(function(i,o){return i*o},1),t2=Vr("round"),r2=ll(function(i,o){return i-o},0);function n2(i){return i&&i.length?Xu(i,ni):0}function i2(i,o){return i&&i.length?Xu(i,gt(o,2)):0}return we.after=je,we.ary=Ue,we.assign=f1,we.assignIn=K0,we.assignInWith=tp,we.assignWith=p1,we.at=m1,we.before=Je,we.bind=tt,we.bindAll=bS,we.bindKey=Qe,we.castArray=Bb,we.chain=Gc,we.chunk=Fc,we.compact=_h,we.concat=Jn,we.cond=SS,we.conforms=wS,we.constant=ig,we.countBy=Vf,we.create=g1,we.curry=st,we.curryRight=lt,we.debounce=ut,we.defaults=y1,we.defaultsDeep=x1,we.defer=Cr,we.delay=Fe,we.difference=Ot,we.differenceBy=zr,we.differenceWith=Ar,we.drop=Zr,we.dropRight=Bn,we.dropRightWhile=Pa,we.dropWhile=Or,we.fill=yl,we.filter=Kc,we.flatMap=Gh,we.flatMapDeep=Vm,we.flatMapDepth=Zf,we.flatten=zc,we.flattenDeep=vl,we.flattenDepth=Tn,we.flip=De,we.flow=kS,we.flowRight=PS,we.fromPairs=Dh,we.functions=P1,we.functionsIn=E1,we.groupBy=Vh,we.initial=$c,we.intersection=Ih,we.intersectionBy=Gs,we.intersectionWith=Wc,we.invert=T1,we.invertBy=A1,we.invokeMap=Qf,we.iteratee=sg,we.keyBy=qm,we.keys=ln,we.keysIn=ri,we.map=jo,we.mapKeys=R1,we.mapValues=j1,we.matches=ES,we.matchesProperty=MS,we.memoize=ze,we.merge=N1,we.mergeWith=Z0,we.method=TS,we.methodOf=AS,we.mixin=og,we.negate=rt,we.nthArg=RS,we.omit=O1,we.omitBy=_1,we.once=ht,we.orderBy=Km,we.over=jS,we.overArgs=mt,we.overEvery=NS,we.overSome=OS,we.partial=pt,we.partialRight=yt,we.partition=Cl,we.pick=D1,we.pickBy=Q0,we.property=sy,we.propertyOf=_S,we.pull=Uc,we.pullAll=Sl,we.pullAllBy=xn,we.pullAllWith=qs,we.pullAt=bi,we.range=DS,we.rangeRight=IS,we.rearg=$r,we.reject=e,we.remove=An,we.rest=Ft,we.reverse=Hc,we.sampleSize=a,we.set=B1,we.setWith=F1,we.shuffle=d,we.slice=Fh,we.sortBy=ye,we.sortedUniq=Wh,we.sortedUniqBy=Ao,we.split=lS,we.spread=Zs,we.tail=$f,we.take=Wf,we.takeRight=Uh,we.takeRightWhile=Yc,we.takeWhile=Bm,we.tap=Ym,we.throttle=Qm,we.thru=Si,we.toArray=G0,we.toPairs=J0,we.toPairsIn=ey,we.toPath=WS,we.toPlainObject=q0,we.transform=z1,we.unary=Db,we.union=Fm,we.unionBy=Uf,we.unionWith=Hf,we.uniq=Lo,we.uniqBy=zm,we.uniqWith=Ea,we.unset=$1,we.unzip=Xc,we.unzipWith=mr,we.update=W1,we.updateWith=U1,we.values=ru,we.valuesIn=H1,we.without=$m,we.words=ny,we.wrap=Ib,we.xor=Yf,we.xorBy=Wm,we.xorWith=Um,we.zip=Xf,we.zipObject=Gf,we.zipObjectDeep=Hm,we.zipWith=ei,we.entries=J0,we.entriesIn=ey,we.extend=K0,we.extendWith=tp,og(we,we),we.add=HS,we.attempt=iy,we.camelCase=V1,we.capitalize=ty,we.ceil=YS,we.clamp=Y1,we.clone=Fb,we.cloneDeep=$b,we.cloneDeepWith=Wb,we.cloneWith=zb,we.conformsTo=Ub,we.deburr=ry,we.defaultTo=CS,we.divide=XS,we.endsWith=q1,we.eq=xs,we.escape=K1,we.escapeRegExp=Z1,we.every=qf,we.find=Zc,we.findIndex=Xs,we.findKey=v1,we.findLast=Kf,we.findLastIndex=xl,we.findLastKey=b1,we.floor=GS,we.forEach=Qc,we.forEachRight=wl,we.forIn=S1,we.forInRight=w1,we.forOwn=C1,we.forOwnRight=k1,we.get=tg,we.gt=Hb,we.gte=Yb,we.has=M1,we.hasIn=rg,we.head=Mo,we.identity=ni,we.includes=Jc,we.indexOf=ys,we.inRange=X1,we.invoke=L1,we.isArguments=kl,we.isArray=Ct,we.isArrayBuffer=Xb,we.isArrayLike=ti,we.isArrayLikeObject=_r,we.isBoolean=Gb,we.isBuffer=Ma,we.isDate=Vb,we.isElement=qb,we.isEmpty=Kb,we.isEqual=Zb,we.isEqualWith=Qb,we.isError=Jm,we.isFinite=Jb,we.isFunction=No,we.isInteger=U0,we.isLength=Jf,we.isMap=H0,we.isMatch=e1,we.isMatchWith=t1,we.isNaN=r1,we.isNative=n1,we.isNil=s1,we.isNull=i1,we.isNumber=Y0,we.isObject=kr,we.isObjectLike=Lr,we.isPlainObject=qh,we.isRegExp=eg,we.isSafeInteger=o1,we.isSet=X0,we.isString=ep,we.isSymbol=wi,we.isTypedArray=tu,we.isUndefined=a1,we.isWeakMap=l1,we.isWeakSet=c1,we.join=Vs,we.kebabCase=Q1,we.last=yn,we.lastIndexOf=bl,we.lowerCase=J1,we.lowerFirst=eS,we.lt=u1,we.lte=h1,we.max=VS,we.maxBy=qS,we.mean=KS,we.meanBy=ZS,we.min=QS,we.minBy=JS,we.stubArray=lg,we.stubFalse=cg,we.stubObject=BS,we.stubString=FS,we.stubTrue=zS,we.multiply=e2,we.nth=Bh,we.noConflict=LS,we.noop=ag,we.now=Ae,we.pad=tS,we.padEnd=rS,we.padStart=nS,we.parseInt=iS,we.random=G1,we.reduce=Zm,we.reduceRight=eu,we.repeat=sS,we.replace=oS,we.result=I1,we.round=t2,we.runInContext=Ie,we.sample=t,we.size=z,we.snakeCase=aS,we.some=re,we.sortedIndex=zh,we.sortedIndexBy=Im,we.sortedIndexOf=Ks,we.sortedLastIndex=zf,we.sortedLastIndexBy=$h,we.sortedLastIndexOf=To,we.startCase=cS,we.startsWith=uS,we.subtract=r2,we.sum=n2,we.sumBy=i2,we.template=hS,we.times=$S,we.toFinite=Oo,we.toInteger=Et,we.toLength=V0,we.toLower=dS,we.toNumber=Xi,we.toSafeInteger=d1,we.toString=qt,we.toUpper=fS,we.trim=pS,we.trimEnd=mS,we.trimStart=gS,we.truncate=yS,we.unescape=xS,we.uniqueId=US,we.upperCase=vS,we.upperFirst=ng,we.each=Qc,we.eachRight=wl,we.first=Mo,og(we,function(){var i={};return Dn(we,function(o,p){Bt.call(we.prototype,p)||(i[p]=o)}),i}(),{chain:!1}),we.VERSION=c,Jr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){we[i].placeholder=we}),Jr(["drop","take"],function(i,o){wt.prototype[i]=function(p){p=p===n?1:Tr(Et(p),0);var ne=this.__filtered__&&!o?new wt(this):this.clone();return ne.__filtered__?ne.__takeCount__=en(p,ne.__takeCount__):ne.__views__.push({size:en(p,D),type:i+(ne.__dir__<0?"Right":"")}),ne},wt.prototype[i+"Right"]=function(p){return this.reverse()[i](p).reverse()}}),Jr(["filter","map","takeWhile"],function(i,o){var p=o+1,ne=p==h||p==L;wt.prototype[i]=function(pe){var Ce=this.clone();return Ce.__iteratees__.push({iteratee:gt(pe,3),type:p}),Ce.__filtered__=Ce.__filtered__||ne,Ce}}),Jr(["head","last"],function(i,o){var p="take"+(o?"Right":"");wt.prototype[i]=function(){return this[p](1).value()[0]}}),Jr(["initial","tail"],function(i,o){var p="drop"+(o?"":"Right");wt.prototype[i]=function(){return this.__filtered__?new wt(this):this[p](1)}}),wt.prototype.compact=function(){return this.filter(ni)},wt.prototype.find=function(i){return this.filter(i).head()},wt.prototype.findLast=function(i){return this.reverse().find(i)},wt.prototype.invokeMap=Pt(function(i,o){return typeof i=="function"?new wt(this):this.map(function(p){return qn(p,i,o)})}),wt.prototype.reject=function(i){return this.filter(rt(gt(i)))},wt.prototype.slice=function(i,o){i=Et(i);var p=this;return p.__filtered__&&(i>0||o<0)?new wt(p):(i<0?p=p.takeRight(-i):i&&(p=p.drop(i)),o!==n&&(o=Et(o),p=o<0?p.dropRight(-o):p.take(o-i)),p)},wt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},wt.prototype.toArray=function(){return this.take(D)},Dn(wt.prototype,function(i,o){var p=/^(?:filter|find|map|reject)|While$/.test(o),ne=/^(?:head|last)$/.test(o),pe=we[ne?"take"+(o=="last"?"Right":""):o],Ce=ne||/^find/.test(o);pe&&(we.prototype[o]=function(){var Re=this.__wrapped__,Oe=ne?[1]:arguments,Be=Re instanceof wt,Ke=Oe[0],Ze=Be||Ct(Re),et=function(jt){var _t=pe.apply(we,js([jt],Oe));return ne&&nt?_t[0]:_t};Ze&&p&&typeof Ke=="function"&&Ke.length!=1&&(Be=Ze=!1);var nt=this.__chain__,dt=!!this.__actions__.length,xt=Ce&&!nt,Tt=Be&&!dt;if(!Ce&&Ze){Re=Tt?Re:new wt(this);var vt=i.apply(Re,Oe);return vt.__actions__.push({func:Si,args:[et],thisArg:n}),new tn(vt,nt)}return xt&&Tt?i.apply(this,Oe):(vt=this.thru(et),xt?ne?vt.value()[0]:vt.value():vt)})}),Jr(["pop","push","shift","sort","splice","unshift"],function(i){var o=is[i],p=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",ne=/^(?:pop|shift)$/.test(i);we.prototype[i]=function(){var pe=arguments;if(ne&&!this.__chain__){var Ce=this.value();return o.apply(Ct(Ce)?Ce:[],pe)}return this[p](function(Re){return o.apply(Ct(Re)?Re:[],pe)})}}),Dn(wt.prototype,function(i,o){var p=we[o];if(p){var ne=p.name+"";Bt.call(oa,ne)||(oa[ne]=[]),oa[ne].push({name:o,func:p})}}),oa[Sa(n,_).name]=[{name:"wrapper",func:n}],wt.prototype.clone=lc,wt.prototype.reverse=th,wt.prototype.value=ca,we.prototype.at=Vc,we.prototype.chain=Ro,we.prototype.commit=qc,we.prototype.next=Hh,we.prototype.plant=Xm,we.prototype.reverse=Xh,we.prototype.toJSON=we.prototype.valueOf=we.prototype.value=Gm,we.prototype.first=we.prototype.head,os&&(we.prototype[os]=Yh),we},ea=Am();Ri?((Ri.exports=ea)._=ea,Fa._=ea):ur._=ea}).call(PM)}
181(id,id.exports)),id.exports}var MM=EM();const Uo=li(MM);function tb(r){const{content:s,className:n}=r,[c,l]=Me.useState(null),[u,x]=Me.useState(!1),O=G=>{l(G.currentTarget),x(!0)},Y=()=>{x(!1),l(null)},Q=()=>{setTimeout(()=>{u||l(null)},100)},te=()=>{u||l(null)},W=!!c;return y.jsxs("div",{className:`${n}`,children:[y.jsx(wM,{"aria-owns":W?"mouse-over-popover":void 0,"aria-haspopup":"true",onMouseEnter:O,onMouseLeave:Q,className:"text-gray-400"}),y.jsx(kM,{onClickAway:te,children:y.jsx(hM,{className:"p-4",id:"mouse-over-popover",open:W,anchorEl:c,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"left"},onClose:te,disableRestoreFocus:!0,children:y.jsx("div",{onMouseEnter:()=>{x(!0)},onMouseLeave:Y,sx:{p:1},className:"p-4 max-w-sm",children:s&&s})})})]})}function si(r){const{label:s,labelUnits:n,name:c,description:l,info:u,className:x,children:O}=r;return y.jsxs("div",{className:Xt(`pb-4 ${x}`),children:[y.jsxs("label",{htmlFor:c,className:"text-md text-md flex font-semibold leading-6 text-gray-900",children:[y.jsx("span",{className:"pr-2 whitespace-pre-line",children:s}),n&&y.jsxs("span",{className:"pt-1 pr-2 text-xs font-normal text-gray-400 mb-auto whitespace-nowrap ",children:["(",n,")"]}),u&&y.jsx(tb,{content:u})]}),l&&y.jsx("div",{className:"text-sm",children:l}),O&&y.jsx("div",{className:"text-sm",children:O})]})}function yr(r){const{label:s,labelUnits:n,onChange:c,name:l,description:u,value:x,min:O,max:Y,info:Q,required:te,children:W,disabled:G,className:K,hidden:S,step:T}=r;return y.jsxs("div",{className:Xt(`grid grid-cols-12 pb-4 ${K} ${S?"hidden":""}`),children:[y.jsx(si,{className:"col-span-12",name:l,label:s,labelUnits:n,info:Q,description:u,children:W}),y.jsxs("div",{className:"col-span-12 grid grid-cols-12 gap-4",children:[y.jsx("div",{className:"col-span-8 md:col-span-7 xl:col-span-8 2xl:col-span-9",children:y.jsx("div",{className:"",children:y.jsx(xE,{name:l,value:x,onChange:c,min:O,max:Y,required:te,disabled:G,step:T})})}),y.jsx("div",{className:"col-span-4 md:col-span-5 xl:col-span-4 2xl:col-span-3",children:y.jsx("input",{name:`${l}-number`,type:"number",min:O,max:Y,className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",value:x,onChange:c,disabled:G})})]})]})}function Ng(r){const{label:s,labelUnits:n,onChange:c,name:l,description:u,required:x,options:O,info:Y,value:Q}=r;return y.jsxs("div",{className:"grid grid-cols-12 pb-4",children:[y.jsx(si,{className:"col-span-12",name:l,label:s,labelUnits:n,info:Y,description:u}),y.jsxs("div",{className:"col-span-12 grid grid-cols-12 gap-4",children:[y.jsx("div",{className:"col-span-4"}),y.jsx("div",{className:"col-span-8",children:y.jsx("select",{name:l,required:x,onChange:c,value:Q,className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",children:O&&O.map((te,W)=>y.jsx("option",{value:te,children:te},te))})})]})]})}var oi=function(){return oi=Object.assign||function(s){for(var n,c=1,l=arguments.length;c<l;c++){n=arguments[c];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(s[u]=n[u])}return s},oi.apply(this,arguments)};function Sd(r,s,n){if(n||arguments.length===2)for(var c=0,l=s.length,u;c<l;c++)(u||!(c in s))&&(u||(u=Array.prototype.slice.call(s,0,c)),u[c]=s[c]);return r.concat(u||Array.prototype.slice.call(s))}var gr="-ms-",ud="-moz-",Qt="-webkit-",rb="comm",rm="rule",O0="decl",TM="@import",nb="@keyframes",AM="@layer",ib=Math.abs,_0=String.fromCharCode,l0=Object.assign;function LM(r,s){return cn(r,0)^45?(((s<<2^cn(r,0))<<2^cn(r,1))<<2^cn(r,2))<<2^cn(r,3):0}function sb(r){return r.trim()}function Io(r,s){return(r=s.exec(r))?r[0]:r}function At(r,s,n){return r.replace(s,n)}function xp(r,s,n){return r.indexOf(s,n)}function cn(r,s){return r.charCodeAt(s)|0}function wu(r,s,n){return r.slice(s,n)}function eo(r){return r.length}function ob(r){return r.length}function sd(r,s){return s.push(r),r}function RM(r,s){return r.map(s).join("")}function Px(r,s){return r.filter(function(n){return!Io(n,s)})}var nm=1,Cu=1,ab=0,Zi=0,Ur=0,Au="";function im(r,s,n,c,l,u,x,O){return{value:r,root:s,parent:n,type:c,props:l,children:u,line:nm,column:Cu,length:x,return:"",siblings:O}}function Ta(r,s){return l0(im("",null,null,"",null,null,0,r.siblings),r,{length:-r.length},s)}function cu(r){for(;r.root;)r=Ta(r.root,{children:[r]});sd(r,r.siblings)}function jM(){return Ur}function NM(){return Ur=Zi>0?cn(Au,--Zi):0,Cu--,Ur===10&&(Cu=1,nm--),Ur}function Cs(){return Ur=Zi<ab?cn(Au,Zi++):0,Cu++,Ur===10&&(Cu=1,nm++),Ur}function Rl(){return cn(Au,Zi)}function vp(){return Zi}function sm(r,s){return wu(Au,r,s)}function c0(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function OM(r){return nm=Cu=1,ab=eo(Au=r),Zi=0,[]}function _M(r){return Au="",r}function Og(r){return sb(sm(Zi-1,u0(r===91?r+2:r===40?r+1:r)))}function DM(r){for(;(Ur=Rl())&&Ur<33;)Cs();return c0(r)>2||c0(Ur)>3?"":" "}function IM(r,s){for(;
vendor: 5,185 bytes, line 181
181--s&&Cs()&&!(Ur<48||Ur>102||Ur>57&&Ur<65||Ur>70&&Ur<97););return sm(r,vp()+(s<6&&Rl()==32&&Cs()==32))}function u0(r){for(;Cs();)switch(Ur){case r:return Zi;case 34:case 39:r!==34&&r!==39&&u0(Ur);break;case 40:r===41&&u0(r);break;case 92:Cs();break}return Zi}function BM(r,s){for(;Cs()&&r+Ur!==57;)if(r+Ur===84&&Rl()===47)break;return"/*"+sm(s,Zi-1)+"*"+_0(r===47?r:Cs())}function FM(r){for(;!c0(Rl());)Cs();return sm(r,Zi)}function zM(r){return _M(bp("",null,null,null,[""],r=OM(r),0,[0],r))}function bp(r,s,n,c,l,u,x,O,Y){for(var Q=0,te=0,W=x,G=0,K=0,S=0,T=1,E=1,_=1,g=0,w="",k=l,b=u,C=c,m=w;E;)switch(S=g,g=Cs()){case 40:if(S!=108&&cn(m,W-1)==58){xp(m+=At(Og(g),"&","&\f"),"&\f",ib(Q?O[Q-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:m+=Og(g);break;case 9:case 10:case 13:case 32:m+=DM(S);break;case 92:m+=IM(vp()-1,7);continue;case 47:switch(Rl()){case 42:case 47:sd($M(BM(Cs(),vp()),s,n,Y),Y);break;default:m+="/"}break;case 123*T:O[Q++]=eo(m)*_;case 125*T:case 59:case 0:switch(g){case 0:case 125:E=0;case 59+te:_==-1&&(m=At(m,/\f/g,"")),K>0&&eo(m)-W&&sd(K>32?Mx(m+";",c,n,W-1,Y):Mx(At(m," ","")+";",c,n,W-2,Y),Y);break;case 59:m+=";";default:if(sd(C=Ex(m,s,n,Q,te,l,O,w,k=[],b=[],W,u),u),g===123)if(te===0)bp(m,s,C,C,k,u,W,O,b);else switch(G===99&&cn(m,3)===110?100:G){case 100:case 108:case 109:case 115:bp(r,C,C,c&&sd(Ex(r,C,C,0,0,l,O,w,l,k=[],W,b),b),l,b,W,O,c?k:b);break;default:bp(m,C,C,C,[""],b,0,O,b)}}Q=te=K=0,T=_=1,w=m="",W=x;break;case 58:W=1+eo(m),K=S;default:if(T<1){if(g==123)--T;else if(g==125&&T++==0&&NM()==125)continue}switch(m+=_0(g),g*T){case 38:_=te>0?1:(m+="\f",-1);break;case 44:O[Q++]=(eo(m)-1)*_,_=1;break;case 64:Rl()===45&&(m+=Og(Cs())),G=Rl(),te=W=eo(w=m+=FM(vp())),g++;break;case 45:S===45&&eo(m)==2&&(T=0)}}return u}function Ex(r,s,n,c,l,u,x,O,Y,Q,te,W){for(var G=l-1,K=l===0?u:[""],S=ob(K),T=0,E=0,_=0;T<c;++T)for(var g=0,w=wu(r,G+1,G=ib(E=x[T])),k=r;g<S;++g)(k=sb(E>0?K[g]+" "+w:At(w,/&\f/g,K[g])))&&(Y[_++]=k);return im(r,s,n,l===0?rm:O,Y,Q,te,W)}function $M(r,s,n,c){return im(r,s,n,rb,_0(jM()),wu(r,2,-2),0,c)}function Mx(r,s,n,c,l){return im(r,s,n,O0,wu(r,0,c),wu(r,c+1,-1),c,l)}function lb(r,s,n){switch(LM(r,s)){case 5103:return Qt+"print-"+r+r;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Qt+r+r;case 4789:return ud+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return Qt+r+ud+r+gr+r+r;case 5936:switch(cn(r,s+11)){case 114:return Qt+r+gr+At(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return Qt+r+gr+At(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return Qt+r+gr+At(r,/[svh]\w+-[tblr]{2}/,"lr")+r}case 6828:case 4268:case 2903:return Qt+r+gr+r+r;case 6165:return Qt+r+gr+"flex-"+r+r;case 5187:return Qt+r+At(r,/(\w+).+(:[^]+)/,Qt+"box-$1$2"+gr+"flex-$1$2")+r;case 5443:return Qt+r+gr+"flex-item-"+At(r,/flex-|-self/g,"")+(Io(r,/flex-|baseline/)?"":gr+"grid-row-"+At(r,/flex-|-self/g,""))+r;case 4675:return Qt+r+gr+"flex-line-pack"+At(r,/align-content|flex-|-self/g,"")+r;case 5548:return Qt+r+gr+At(r,"shrink","negative")+r;case 5292:return Qt+r+gr+At(r,"basis","preferred-size")+r;case 6060:return Qt+"box-"+At(r,"-grow","")+Qt+r+gr+At(r,"grow","positive")+r;case 4554:return Qt+At(r,/([^-])(transform)/g,"$1"+Qt+"$2")+r;case 6187:return At(At(At(r,/(zoom-|grab)/,Qt+"$1"),/(image-set)/,Qt+"$1"),r,"")+r;case 5495:case 3959:return At(r,/(image-set\([^]*)/,Qt+"$1$`$1");case 4968:return At(At(r,/(.+:)(flex-)?(.*)/,Qt+"box-pack:$3"+gr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Qt+r+r;case 4200:if(!Io(r,/flex-|baseline/))return gr+"grid-column-align"+wu(r,s)+r;break;case 2592:case 3360:return gr+At(r,"template-","")+r;case 4384:case 3616:return n&&n.some(function(c,l){return s=l,Io(c.props,/grid-\w+-end/)})?~xp(r+(n=n[s].value),"span",0)?r:gr+At(r,"-start","")+r+gr+"grid-row-span:"+(~xp(n,"span",0)?Io(n,/\d+/):+Io(n,/\d+/)-+Io(r,/\d+/))+";":gr+At(r,"-start","")+r;case 4896:case 4128:return n&&n.some(function(c){return Io(c.props,/grid-\w+-start/)})?r:gr+At(At(r,"-end","-span"),"span ","")+r;case 4095:case 3583:case 4068:case 2532:return At(r,/(.+)-inline(.+)/,Qt+"$1$2")+r;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(eo(r)-1-s>6)switch(cn(r,s+1)){case 109:if(cn(r,s+4)!==45)break;case 102:return At(r,/(.+:)(.+)-([^]+)/,"$1"+Qt+"$2-$3$1"+ud+(cn(r,s+3)==108?"$3":"$2-$3"))+r;case 115:return~xp(r,"stretch",0)?lb(At(r,"stretch","fill-available"),s,n)+r:r}break;case 5152:case 5920:return At(r,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(c,l,u,x,O,Y,Q){return gr+l+":"+u+Q+(x?gr+l+"-span:"+(O?Y:+Y-+u)+Q:"")+r});case 4949:if(cn(r,s+6)===121)return At(r,":",":"+Qt)+r;break;case 6444:switch(cn(r,cn(r,14)===45?18:11)){case 120:return At(r,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Qt+(cn(r,14)===45?"inline-":"")+"box$3$1"+Qt+"$2$3$1"+gr+"$2box$3")+r;case 100:return At(r,":",":"+gr)+r}break;case 5719:case 2647:case 2135:case 3927:case 2391:return At(r,"scroll-","scroll-snap-")+r}return r}function Dp(r,s){for(var n="",c=0;c<r.length;
vendor: 16,864 bytes, lines 181-182
181c++)n+=s(r[c],c,r,s)||"";return n}function WM(r,s,n,c){switch(r.type){case AM:if(r.children.length)break;case TM:case O0:return r.return=r.return||r.value;case rb:return"";case nb:return r.return=r.value+"{"+Dp(r.children,c)+"}";case rm:if(!eo(r.value=r.props.join(",")))return""}return eo(n=Dp(r.children,c))?r.return=r.value+"{"+n+"}":""}function UM(r){var s=ob(r);return function(n,c,l,u){for(var x="",O=0;O<s;O++)x+=r[O](n,c,l,u)||"";return x}}function HM(r){return function(s){s.root||(s=s.return)&&r(s)}}function YM(r,s,n,c){if(r.length>-1&&!r.return)switch(r.type){case O0:r.return=lb(r.value,r.length,n);return;case nb:return Dp([Ta(r,{value:At(r.value,"@","@"+Qt)})],c);case rm:if(r.length)return RM(n=r.props,function(l){switch(Io(l,c=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":cu(Ta(r,{props:[At(l,/:(read-\w+)/,":"+ud+"$1")]})),cu(Ta(r,{props:[l]})),l0(r,{props:Px(n,c)});break;case"::placeholder":cu(Ta(r,{props:[At(l,/:(plac\w+)/,":"+Qt+"input-$1")]})),cu(Ta(r,{props:[At(l,/:(plac\w+)/,":"+ud+"$1")]})),cu(Ta(r,{props:[At(l,/:(plac\w+)/,gr+"input-$1")]})),cu(Ta(r,{props:[l]})),l0(r,{props:Px(n,c)});break}return""})}}var Pi={},ku=typeof process<"u"&&Pi!==void 0&&(Pi.REACT_APP_SC_ATTR||Pi.SC_ATTR)||"data-styled",cb="active",ub="data-styled-version",om="6.1.11",D0=`/*!sc*/
182`,I0=typeof window<"u"&&"HTMLElement"in window,XM=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Pi!==void 0&&Pi.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Pi.REACT_APP_SC_DISABLE_SPEEDY!==""?Pi.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Pi.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Pi!==void 0&&Pi.SC_DISABLE_SPEEDY!==void 0&&Pi.SC_DISABLE_SPEEDY!==""&&Pi.SC_DISABLE_SPEEDY!=="false"&&Pi.SC_DISABLE_SPEEDY),am=Object.freeze([]),Pu=Object.freeze({});function GM(r,s,n){return n===void 0&&(n=Pu),r.theme!==n.theme&&r.theme||s||n.theme}var hb=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),VM=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,qM=/(^-|-$)/g;function Tx(r){return r.replace(VM,"-").replace(qM,"")}var KM=/(a)(d)/gi,hp=52,Ax=function(r){return String.fromCharCode(r+(r>25?39:97))};function h0(r){var s,n="";for(s=Math.abs(r);s>hp;s=s/hp|0)n=Ax(s%hp)+n;return(Ax(s%hp)+n).replace(KM,"$1-$2")}var _g,db=5381,fu=function(r,s){for(var n=s.length;n;)r=33*r^s.charCodeAt(--n);return r},fb=function(r){return fu(db,r)};function pb(r){return h0(fb(r)>>>0)}function ZM(r){return r.displayName||r.name||"Component"}function Dg(r){return typeof r=="string"&&!0}var mb=typeof Symbol=="function"&&Symbol.for,gb=mb?Symbol.for("react.memo"):60115,QM=mb?Symbol.for("react.forward_ref"):60112,JM={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},eT={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},yb={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},tT=((_g={})[QM]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_g[gb]=yb,_g);function Lx(r){return("type"in(s=r)&&s.type.$$typeof)===gb?yb:"$$typeof"in r?tT[r.$$typeof]:JM;var s}var rT=Object.defineProperty,nT=Object.getOwnPropertyNames,Rx=Object.getOwnPropertySymbols,iT=Object.getOwnPropertyDescriptor,sT=Object.getPrototypeOf,jx=Object.prototype;function xb(r,s,n){if(typeof s!="string"){if(jx){var c=sT(s);c&&c!==jx&&xb(r,c,n)}var l=nT(s);Rx&&(l=l.concat(Rx(s)));for(var u=Lx(r),x=Lx(s),O=0;O<l.length;++O){var Y=l[O];if(!(Y in eT||n&&n[Y]||x&&Y in x||u&&Y in u)){var Q=iT(s,Y);try{rT(r,Y,Q)}catch{}}}}return r}function Eu(r){return typeof r=="function"}function B0(r){return typeof r=="object"&&"styledComponentId"in r}function Ll(r,s){return r&&s?"".concat(r," ").concat(s):r||s||""}function d0(r,s){if(r.length===0)return"";for(var n=r[0],c=1;c<r.length;c++)n+=r[c];return n}function wd(r){return r!==null&&typeof r=="object"&&r.constructor.name===Object.name&&!("props"in r&&r.$$typeof)}function f0(r,s,n){if(n===void 0&&(n=!1),!n&&!wd(r)&&!Array.isArray(r))return s;if(Array.isArray(s))for(var c=0;c<s.length;c++)r[c]=f0(r[c],s[c]);else if(wd(s))for(var c in s)r[c]=f0(r[c],s[c]);return r}function F0(r,s){Object.defineProperty(r,"toString",{value:s})}function Ad(r){for(var s=[],n=1;n<arguments.length;n++)s[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(r," for more information.").concat(s.length>0?" Args: ".concat(s.join(", ")):""))}var oT=function(){function r(s){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=s}return r.prototype.indexOfGroup=function(s){for(var n=0,c=0;c<s;c++)n+=this.groupSizes[c];return n},r.prototype.insertRules=function(s,n){if(s>=this.groupSizes.length){for(var c=this.groupSizes,l=c.length,u=l;s>=u;)if((u<<=1)<0)throw Ad(16,"".concat(s));this.groupSizes=new Uint32Array(u),this.groupSizes.set(c),this.length=u;for(var x=l;x<u;x++)this.groupSizes[x]=0}for(var O=this.indexOfGroup(s+1),Y=(x=0,n.length);x<Y;x++)this.tag.insertRule(O,n[x])&&(this.groupSizes[s]++,O++)},r.prototype.clearGroup=function(s){if(s<this.length){var n=this.groupSizes[s],c=this.indexOfGroup(s),l=c+n;this.groupSizes[s]=0;for(var u=c;u<l;u++)this.tag.deleteRule(c)}},r.prototype.getGroup=function(s){var n="";if(s>=this.length||this.groupSizes[s]===0)return n;for(var c=this.groupSizes[s],l=this.indexOfGroup(s),u=l+c,x=l;x<u;x++)n+="".concat(this.tag.getRule(x)).concat(D0);return n},r}(),Sp=new Map,Ip=new Map,wp=1,dp=function(r){if(Sp.has(r))return Sp.get(r);for(;Ip.has(wp);)wp++;var s=wp++;return Sp.set(r,s),Ip.set(s,r),s},aT=function(r,s){wp=s+1,Sp.set(r,s),Ip.set(s,r)},lT="style[".concat(ku,"][").concat(ub,'="').concat(om,'"]'),cT=new RegExp("^".concat(ku,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),uT=function(r,s,n){for(var c,l=n.split(","),u=0,x=l.length;u<x;u++)(c=l[u])&&r.registerName(s,c)},hT=function(r,s){for(var n,c=((n=s.textContent)!==null&&n!==void 0?n:"").split(D0),l=[],u=0,x=c.length;u<x;u++){var O=c[u].trim();if(O){var Y=O.match(cT);if(Y){var Q=0|parseInt(Y[1],10),te=Y[2];Q!==0&&(aT(te,Q),uT(r,te,Y[3]),r.getTag().insertRules(Q,l)),l.length=0}else l.push(O)}}};function dT(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var vb=function(r){var s=document.head,n=r||s,c=document.createElement("style"),l=function(O){var Y=Array.from(O.querySelectorAll("style[".concat(ku,"]")));return Y[Y.length-1]}(n),u=l!==void 0?l.nextSibling:null;c.setAttribute(ku,cb),c.setAttribute(ub,om);var x=dT();return x&&c.setAttribute("nonce",x),n.insertBefore(c,u),c},fT=function(){function r(s){this.element=vb(s),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var c=document.styleSheets,l=0,u=c.length;l<u;l++){var x=c[l];if(x.ownerNode===n)return x}throw Ad(17)}(this.element),this.length=0}return r.prototype.insertRule=function(s,n){try{return this.sheet.insertRule(n,s),this.length++,!0}catch{return!1}},r.prototype.deleteRule=function(s){this.sheet.deleteRule(s),this.length--},r.prototype.getRule=function(s){var n=this.sheet.cssRules[s];return n&&n.cssText?n.cssText:""},r}(),pT=function(){function r(s){this.element=vb(s),this.nodes=this.element.childNodes,this.length=0}return r.prototype.insertRule=function(s,n){if(s<=this.length&&s>=0){var c=document.createTextNode(n);return this.element.insertBefore(c,this.nodes[s]||null),this.length++,!0}return!1},r.prototype.deleteRule=function(s){this.element.removeChild(this.nodes[s]),this.length--},r.prototype.getRule=function(s){return s<this.length?this.nodes[s].textContent:""},r}(),mT=function(){function r(s){this.rules=[],this.length=0}return r.prototype.insertRule=function(s,n){return s<=this.length&&(this.rules.splice(s,0,n),this.length++,!0)},r.prototype.deleteRule=function(s){this.rules.splice(s,1),this.length--},r.prototype.getRule=function(s){return s<this.length?this.rules[s]:""},r}(),Nx=I0,gT={isServer:!I0,useCSSOMInjection:!XM},bb=function(){function r(s,n,c){s===void 0&&(s=Pu),n===void 0&&(n={});var l=this;this.options=oi(oi({},gT),s),this.gs=n,this.names=new Map(c),this.server=!!s.isServer,!this.server&&I0&&Nx&&(Nx=!1,function(u){for(var x=document.querySelectorAll(lT),O=0,Y=x.length;O<Y;O++){var Q=x[O];Q&&Q.getAttribute(ku)!==cb&&(hT(u,Q),Q.parentNode&&Q.parentNode.removeChild(Q))}}(this)),F0(this,function(){return function(u){for(var x=u.getTag(),O=x.length,Y="",Q=function(W){var G=function(_){return Ip.get(_)}(W);if(G===void 0)return"continue";var K=u.names.get(G),S=x.getGroup(W);if(K===void 0||S.length===0)return"continue";var T="".concat(ku,".g").concat(W,'[id="').concat(G,'"]'),E="";K!==void 0&&K.forEach(function(_){_.length>0&&(E+="".concat(_,","))}),Y+="".concat(S).concat(T,'{content:"').concat(E,'"}').concat(D0)},te=0;te<O;te++)Q(te);return Y}(l)})}return r.registerId=function(s){return dp(s)},r.prototype.reconstructWithOptions=function(s,n){return n===void 0&&(n=!0),new r(oi(oi({},this.options),s),this.gs,n&&this.names||void 0)},r.prototype.allocateGSInstance=function(s){return this.gs[s]=(this.gs[s]||0)+1},r.prototype.getTag=function(){return this.tag||(this.tag=(s=function(n){var c=n.useCSSOMInjection,l=n.target;return n.isServer?new mT(l):c?new fT(l):new pT(l)}(this.options),new oT(s)));var s},r.prototype.hasNameForId=function(s,n){return this.names.has(s)&&this.names.get(s).has(n)},r.prototype.registerName=function(s,n){if(dp(s),this.names.has(s))this.names.get(s).add(n);else{var c=new Set;c.add(n),this.names.set(s,c)}},r.prototype.insertRules=function(s,n,c){this.registerName(s,n),this.getTag().insertRules(dp(s),c)},r.prototype.clearNames=function(s){this.names.has(s)&&this.names.get(s).clear()},r.prototype.clearRules=function(s){this.getTag().clearGroup(dp(s)),this.clearNames(s)},r.prototype.clearTag=function(){this.tag=void 0},r}(),yT=/&/g,xT=/^\s*\/\/.*$/gm;function Sb(r,s){return r.map(function(n){return n.type==="rule"&&(n.value="".concat(s," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(s," ")),n.props=n.props.map(function(c){return"".concat(s," ").concat(c)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Sb(n.children,s)),n})}function vT(r){var s,n,c,l=Pu,u=l.options,x=u===void 0?Pu:u,O=l.plugins,Y=O===void 0?am:O,Q=function(G,K,S){return S.startsWith(n)&&S.endsWith(n)&&S.replaceAll(n,"").length>0?".".concat(s):G},te=Y.slice();te.push(function(G){G.type===rm&&G.value.includes("&")&&(G.props[0]=G.props[0].replace(yT,n).replace(c,Q))}),x.prefix&&te.push(YM),te.push(WM);var W=function(G,K,S,T){K===void 0&&(K=""),S===void 0&&(S=""),T===void 0&&(T="&"),s=T,n=K,c=new RegExp("\\".concat(n,"\\b"),"g");var E=G.replace(xT,""),_=zM(S||K?"".concat(S," ").concat(K," { ").concat(E," }"):E);x.namespace&&(_=Sb(_,x.namespace));var g=[];return Dp(_,UM(te.concat(HM(function(w){return g.push(w)})))),g};return W.hash=Y.length?Y.reduce(function(G,K){return K.name||Ad(15),fu(G,K.name)},db).toString():"",W}var bT=new bb,p0=vT(),wb=Gt.createContext({shouldForwardProp:void 0,styleSheet:bT,stylis:p0});wb.Consumer;Gt.createContext(void 0);function Ox(){return Me.useContext(wb)}var Cb=function(){function r(s,n){var c=this;this.inject=function(l,u){u===void 0&&(u=p0);var x=c.name+u.hash;l.hasNameForId(c.id,x)||l.insertRules(c.id,x,u(c.rules,x,"@keyframes"))},this.name=s,this.id="sc-keyframes-".concat(s),this.rules=n,F0(this,function(){throw Ad(12,String(c.name))})}return r.prototype.getName=function(s){return s===void 0&&(s=p0),this.name+s.hash},r}(),ST=function(r){return r>="A"&&r<="Z"};function _x(r){for(var s="",n=0;n<r.length;n++){var c=r[n];if(n===1&&c==="-"&&r[0]==="-")return r;ST(c)?s+="-"+c.toLowerCase():s+=c}return s.startsWith("ms-")?"-"+s:s}var kb=function(r){return r==null||r===!1||r===""},Pb=function(r){var s,n,c=[];for(var l in r){var u=r[l];r.hasOwnProperty(l)&&!kb(u)&&(Array.isArray(u)&&u.isCss||Eu(u)?c.push("".concat(_x(l),":"),u,";"):wd(u)?c.push.apply(c,Sd(Sd(["".concat(l," {")],Pb(u),!1),["}"],!1)):c.push("".concat(_x(l),": ").concat((s=l,(n=u)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||s in kv||s.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return c};function jl(r,s,n,c){if(kb(r))return[];if(B0(r))return[".".concat(r.styledComponentId)];if(Eu(r)){if(!Eu(u=r)||u.prototype&&u.prototype.isReactComponent||!s)return[r];var l=r(s);return jl(l,s,n,c)}var u;return r instanceof Cb?n?(r.inject(n,c),[r.getName(c)]):[r]:wd(r)?Pb(r):Array.isArray(r)?Array.prototype.concat.apply(am,r.map(function(x){return jl(x,s,n,c)})):[r.toString()]}function wT(r){for(var s=0;s<r.length;s+=1){var n=r[s];if(Eu(n)&&!B0(n))return!1}return!0}var CT=fb(om),kT=function(){function r(s,n,c){this.rules=s,this.staticRulesId="",this.isStatic=(c===void 0||c.isStatic)&&wT(s),this.componentId=n,this.baseHash=fu(CT,n),this.baseStyle=c,bb.registerId(n)}return r.prototype.generateAndInjectStyles=function(s,n,c){var l=this.baseStyle?this.baseStyle.generateAndInjectStyles(s,n,c):"";if(this.isStatic&&!c.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))l=Ll(l,this.staticRulesId);else{var u=d0(jl(this.rules,s,n,c)),x=h0(fu(this.baseHash,u)>>>0);if(!n.hasNameForId(this.componentId,x)){var O=c(u,".".concat(x),void 0,this.componentId);n.insertRules(this.componentId,x,O)}l=Ll(l,x),this.staticRulesId=x}else{for(var Y=fu(this.baseHash,c.hash),Q="",te=0;te<this.rules.length;te++){var W=this.rules[te];if(typeof W=="string")Q+=W;else if(W){var G=d0(jl(W,s,n,c));Y=fu(Y,G+te),Q+=G}}if(Q){var K=h0(Y>>>0);n.hasNameForId(this.componentId,K)||n.insertRules(this.componentId,K,c(Q,".".concat(K),void 0,this.componentId)),l=Ll(l,K)}}return l},r}(),Eb=Gt.createContext(void 0);Eb.Consumer;var Ig={};function PT(r,s,n){var c=B0(r),l=r,u=!Dg(r),x=s.attrs,O=x===void 0?am:x,Y=s.componentId,Q=Y===void 0?function(k,b){var C=typeof k!="string"?"sc":Tx(k);Ig[C]=(Ig[C]||0)+1;var m="".concat(C,"-").concat(pb(om+C+Ig[C]));return b?"".concat(b,"-").concat(m):m}(s.displayName,s.parentComponentId):Y,te=s.displayName,W=te===void 0?function(k){return Dg(k)?"styled.".concat(k):"Styled(".concat(ZM(k),")")}(r):te,G=s.displayName&&s.componentId?"".concat(Tx(s.displayName),"-").concat(s.componentId):s.componentId||Q,K=c&&l.attrs?l.attrs.concat(O).filter(Boolean):O,S=s.shouldForwardProp;if(c&&l.shouldForwardProp){var T=l.shouldForwardProp;if(s.shouldForwardProp){var E=s.shouldForwardProp;S=function(k,b){return T(k,b)&&E(k,b)}}else S=T}var _=new kT(n,G,c?l.componentStyle:void 0);function g(k,b){return function(C,m,q){var V=C.attrs,H=C.componentStyle,M=C.defaultProps,$=C.foldedComponentIds,P=C.styledComponentId,h=C.target,f=Gt.useContext(Eb),L=Ox(),v=C.shouldForwardProp||L.shouldForwardProp,A=GM(m,f,M)||Pu,B=function(oe,le,ue){for(var F,N=oi(oi({},le),{className:void 0,theme:ue}),ee=0;ee<oe.length;ee+=1){var ce=Eu(F=oe[ee])?F(N):F;for(var j in ce)N[j]=j==="className"?Ll(N[j],ce[j]):j==="style"?oi(oi({},N[j]),ce[j]):ce[j]}return le.className&&(N.className=Ll(N.className,le.className)),N}(V,m,A),R=B.as||h,D={};for(var Z in B)B[Z]===void 0||Z[0]==="$"||Z==="as"||Z==="theme"&&B.theme===A||(Z==="forwardedAs"?D.as=B.forwardedAs:v&&!v(Z,R)||(D[Z]=B[Z]));var X=function(oe,le){var ue=Ox(),F=oe.generateAndInjectStyles(le,ue.styleSheet,ue.stylis);return F}(H,B),ie=Ll($,P);return X&&(ie+=" "+X),B.className&&(ie+=" "+B.className),D[Dg(R)&&!hb.has(R)?"class":"className"]=ie,D.ref=q,Me.createElement(R,D)}(w,k,b)}g.displayName=W;var w=Gt.forwardRef(g);return w.attrs=K,w.componentStyle=_,w.displayName=W,w.shouldForwardProp=S,w.foldedComponentIds=c?Ll(l.foldedComponentIds,l.styledComponentId):"",w.styledComponentId=G,w.target=c?l.target:r,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=c?function(b){for(var C=[],m=1;m<arguments.length;
182m++)C[m-1]=arguments[m];for(var q=0,V=C;q<V.length;q++)f0(b,V[q],!0);return b}({},l.defaultProps,k):k}}),F0(w,function(){return".".concat(w.styledComponentId)}),u&&xb(w,r,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function Dx(r,s){for(var n=[r[0]],c=0,l=s.length;c<l;c+=1)n.push(s[c],r[c+1]);return n}var Ix=function(r){return Object.assign(r,{isCss:!0})};function Mb(r){for(var s=[],n=1;n<arguments.length;n++)s[n-1]=arguments[n];if(Eu(r)||wd(r))return Ix(jl(Dx(am,Sd([r],s,!0))));var c=r;return s.length===0&&c.length===1&&typeof c[0]=="string"?jl(c):Ix(jl(Dx(c,s)))}function m0(r,s,n){if(n===void 0&&(n=Pu),!s)throw Ad(1,s);var c=function(l){for(var u=[],x=1;x<arguments.length;x++)u[x-1]=arguments[x];return r(s,n,Mb.apply(void 0,Sd([l],u,!1)))};return c.attrs=function(l){return m0(r,s,oi(oi({},n),{attrs:Array.prototype.concat(n.attrs,l).filter(Boolean)}))},c.withConfig=function(l){return m0(r,s,oi(oi({},n),l))},c}var Tb=function(r){return m0(PT,r)},Nl=Tb;hb.forEach(function(r){Nl[r]=Tb(r)});function z0(r){for(var s=[],n=1;n<arguments.length;n++)s[n-1]=arguments[n];var c=d0(Mb.apply(void 0,Sd([r],s,!1))),l=pb(c);return new Cb(l,c)}const Bx="#4fa94d",ET={"aria-busy":!0,role:"progressbar"},MT=Nl.div`
183  display: ${r=>r.$visible?"flex":"none"};
184`,bs=242.776657104492,TT=1.6,AT=z0`
18512.5% {
186  stroke-dasharray: ${bs*.14}px, ${bs}px;
187  stroke-dashoffset: -${bs*.11}px;
188}
18943.75% {
190  stroke-dasharray: ${bs*.35}px, ${bs}px;
191  stroke-dashoffset: -${bs*.35}px;
192}
193100% {
194  stroke-dasharray: ${bs*.01}px, ${bs}px;
195  stroke-dashoffset: -${bs*.99}px;
196}
197`;Nl.path`
198  stroke-dasharray: ${bs*.01}px, ${bs};
199  stroke-dashoffset: 0;
200  animation: ${AT} ${TT}s linear infinite;
201`;const Bg=20,LT=r=>["M"+r+" 0c0-9.94-8.06",r,r,r].join("-"),RT=(r,s,n)=>{const c=Math.max(r,s),l=-20-c/2+1,u=n*2+c;return[l,l,u,u].join(" ")},jT=({height:r=80,width:s=80,color:n=Bx,secondaryColor:c=Bx,ariaLabel:l="oval-loading",wrapperStyle:u,wrapperClass:x,visible:O=!0,strokeWidth:Y=2,strokeWidthSecondary:Q})=>y.jsx(MT,{style:u,$visible:O,className:x,"data-testid":"oval-loading","aria-label":l,...ET,children:y.jsx("svg",{width:s,height:r,viewBox:RT(Number(Y),Number(Q||Y),Bg),xmlns:"http://www.w3.org/2000/svg",stroke:n,"data-testid":"oval-svg",children:y.jsx("g",{fill:"none",fillRule:"evenodd",children:y.jsxs("g",{transform:"translate(1 1)",strokeWidth:Number(Q||Y),"data-testid":"oval-secondary-group",children:[y.jsx("circle",{strokeOpacity:".5",cx:"0",cy:"0",r:Bg,stroke:c,strokeWidth:Y}),y.jsx("path",{d:LT(Bg),children:y.jsx("animateTransform",{attributeName:"transform",type:"rotate",from:"0 0 0",to:"360 0 0",dur:"1s",repeatCount:"indefinite"})})]})})})}),NT=z0`
202to {
203   transform: rotate(360deg);
204 }
205`;Nl.svg`
206  animation: ${NT} 0.75s steps(12, end) infinite;
207  animation-duration: 0.75s;
208`;Nl.polyline`
209  stroke-width: ${r=>
209r.width}px;
210  stroke-linecap: round;
211
212  &:nth-child(12n + 0) {
213    stroke-opacity: 0.08;
214  }
215
216  &:nth-child(12n + 1) {
217    stroke-opacity: 0.17;
218  }
219
220  &:nth-child(12n + 2) {
221    stroke-opacity: 0.25;
222  }
223
224  &:nth-child(12n + 3) {
225    stroke-opacity: 0.33;
226  }
227
228  &:nth-child(12n + 4) {
229    stroke-opacity: 0.42;
230  }
231
232  &:nth-child(12n + 5) {
233    stroke-opacity: 0.5;
234  }
235
236  &:nth-child(12n + 6) {
237    stroke-opacity: 0.58;
238  }
239
240  &:nth-child(12n + 7) {
241    stroke-opacity: 0.66;
242  }
243
244  &:nth-child(12n + 8) {
245    stroke-opacity: 0.75;
246  }
247
248  &:nth-child(12n + 9) {
249    stroke-opacity: 0.83;
250  }
251
252  &:nth-child(12n + 11) {
253    stroke-opacity: 0.92;
254  }
255`;const OT=z0`
256to {
257   stroke-dashoffset: 136;
258 }
259`;Nl.polygon`
260  stroke-dasharray: 17;
261  animation: ${OT} 2.5s cubic-bezier(0.35, 0.04, 0.63, 0.95) infinite;
262`;Nl.svg`
263  transform-origin: 50% 65%;
264`;lm.propTypes={children:Nt.node.isRequired,isVisible:Nt.bool,label:Nt.string};function lm(r){const{children:s,label:n,isVisible:c=!1,loader:l}=r;return y.jsxs("div",{className:Xt(c?"pointer-events-none":"","relative"),children:[l&&y.jsx("div",{className:"absolute flex h-full w-full items-center justify-center",children:y.jsx(jT,{strokeWidth:8,strokeWidthSecondary:8,color:"#007AFF",secondaryColor:"#74B6FF"})}),y.jsx("div",{className:Xt(c?"opacity-50":"opacity-100"),children:s})]})}var fp={},Fx;function _T(){if(Fx)return fp;Fx=1,fp.match=u,fp.parse=x;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,s=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,n=/^(?:(min|max)-)?(.+)/,c=/(em|rem|px|cm|mm|in|pt|pc)?$/,l=/(dpi|dpcm|dppx)?$/;function u(te,W){return x(te).some(function(G){var K=G.inverse,S=G.type==="all"||W.type===G.type;if(S&&K||!(S||K))return!1;var T=G.expressions.every(function(E){var _=E.feature,g=E.modifier,w=E.value,k=W[_];if(!k)return!1;switch(_){case"orientation":case"scan":return k.toLowerCase()===w.toLowerCase();case"width":case"height":case"device-width":case"device-height":w=Q(w),k=Q(k);break;case"resolution":w=Y(w),k=Y(k);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":w=O(w),k=O(k);break;case"grid":case"color":case"color-index":case"monochrome":w=parseInt(w,10)||1,k=parseInt(k,10)||0;break}switch(g){case"min":return k>=w;case"max":return k<=w;default:return k===w}});return T&&!K||!T&&K})}function x(te){return te.split(",").map(function(W){W=W.trim();var G=W.match(r),K=G[1],S=G[2],T=G[3]||"",E={};return E.inverse=!!K&&K.toLowerCase()==="not",E.type=S?S.toLowerCase():"all",T=T.match(/\([^\)]+\)/g)||[],E.expressions=T.map(function(_){var g=_.match(s),w=g[1].toLowerCase().match(n);return{modifier:w[1],feature:w[2],value:g[2]}}),E})}function O(te){var W=Number(te),G;return W||(G=te.match(/^(\d+)\s*\/\s*(\d+)$/),W=G[1]/G[2]),W}function Y(te){var W=parseFloat(te),G=String(te).match(l)[1];switch(G){case"dpcm":return W/2.54;case"dppx":return W*96;default:return W}}function Q(te){var W=parseFloat(te),G=String(te).match(c)[1];switch(G){case"em":return W*16;case"rem":return W*16;case"cm":return W*96/2.54;case"mm":return W*96/2.54/10;case"in":return W*96;case"pt":return W*72;case"pc":return W*72/12;default:return W}}return fp}var Fg,zx;function DT(){if(zx)return Fg;zx=1;var r=_T().match,s=typeof window<"u"?window.matchMedia:null;function n(l,u,x){var O=this,Y;s&&!x&&(Y=s.call(window,l)),Y?(this.matches=Y.matches,this.media=Y.media,Y.addListener(W)):(this.matches=r(l,u),this.media=l),this.addListener=Q,this.removeListener=te,this.dispose=G;function Q(K){Y&&Y.addListener(K)}function te(K){Y&&Y.removeListener(K)}function W(K){O.matches=K.matches,O.media=K.media}function G(){Y&&Y.removeListener(W)}}function c(l,u,x){return new n(l,u,x)}return Fg=c,Fg}var IT=DT();const BT=li(IT);var FT=/[A-Z]/g,zT=/^ms-/,zg={};function $T(r){return"-"+r.toLowerCase()}function Ab(r){if(zg.hasOwnProperty(r))return zg[r];var s=r.replace(FT,$T);return zg[r]=zT.test(s)?"-"+s:s}function WT(r,s){if(r===s)return!0;if(!r||!s)return!1;const n=Object.keys(r),c=Object.keys(s),l=n.length;if(c.length!==l)return!1;for(let u=0;u<l;u++){const x=n[u];if(r[x]!==s[x]||!Object.prototype.hasOwnProperty.call(s,x))return!1}return!0}const zn=Nt.oneOfType([Nt.string,Nt.number]),Lb={all:Nt.bool,grid:Nt.bool,aural:Nt.bool,braille:Nt.bool,handheld:Nt.bool,print:Nt.bool,projection:Nt.bool,screen:Nt.bool,tty:Nt.bool,tv:Nt.bool,embossed:Nt.bool},UT={orientation:Nt.oneOf(["portrait","landscape"]),scan:Nt.oneOf(["progressive","interlace"]),aspectRatio:Nt.string,deviceAspectRatio:Nt.string,height:zn,deviceHeight:zn,width:zn,deviceWidth:zn,color:Nt.bool,colorIndex:Nt.bool,monochrome:Nt.bool,resolution:zn,type:Object.keys(Lb)},{type:yA,...HT}=UT,YT={minAspectRatio:Nt.string,maxAspectRatio:Nt.string,minDeviceAspectRatio:Nt.string,maxDeviceAspectRatio:Nt.string,minHeight:zn,maxHeight:zn,minDeviceHeight:zn,maxDeviceHeight:zn,minWidth:zn,maxWidth:zn,minDeviceWidth:zn,maxDeviceWidth:zn,minColor:Nt.number,maxColor:Nt.number,minColorIndex:Nt.number,maxColorIndex:Nt.number,minMonochrome:Nt.number,maxMonochrome:Nt.number,minResolution:zn,maxResolution:zn,...HT},XT={...Lb,...YT};var GT={all:XT};const VT=r=>`not ${r}`,qT=(r,s)=>{const n=Ab(r);return typeof s=="number"&&(s=`${s}px`),s===!0?n:s===!1?VT(n):`(${n}: ${s})`},KT=r=>r.join(" and "),ZT=r=>{const s=[];return Object.keys(GT.all).forEach(n=>{const c=r[n];c!=null&&s.push(qT(n,c))}),KT(s)},QT=Me.createContext(void 0),JT=r=>r.query||ZT(r),$x=r=>r?Object.keys(r).reduce((n,c)=>(n[Ab(c)]=r[c],n),{}):void 0,Rb=()=>{const r=Me.useRef(!1);return Me.useEffect(()=>{r.current=!0},[]),r.current},e3=r=>{const s=Me.useContext(QT),n=()=>$x(r)||$x(s),[c,l]=Me.useState(n);return Me.useEffect(()=>{const u=n();WT(c,u)||l(u)},[r,s]),c},t3=r=>{const s=()=>JT(r),[n,c]=Me.useState(s);return Me.useEffect(()=>{const l=s();n!==l&&c(l)},[r]),n},r3=(r,s)=>{const n=()=>BT(r,s||{},!!s),[c,l]=Me.useState(n),u=Rb();return Me.useEffect(()=>{if(u){const x=n();return l(x),()=>{x&&x.dispose()}}},[r,s]),c},n3=r=>{const[s,n]=Me.useState(r.matches);return Me.useEffect(()=>{const c=l=>{n(l.matches)};
264return r.addListener(c),n(r.matches),()=>{r.removeListener(c)}},[r]),s},ks=(r,s,n)=>{const c=e3(s),l=t3(r);if(!l)throw new Error("Invalid or missing MediaQuery!");const u=r3(l,c),x=n3(u);return Rb(),Me.useEffect(()=>{},[x]),Me.useEffect(()=>()=>{u&&u.dispose()},[]),x};function yu({isOpen:r=!1,onToggle:s,children:n,className:c=""}){return y.jsx("div",{className:Xt(`accordion ${r?"open":""} ${c}`),children:Gt.Children.map(n,l=>Gt.cloneElement(l,{isOpen:r,onToggle:s}))})}var ed={},Wx;function i3(){if(Wx)return ed;Wx=1;var r=Mu();Object.defineProperty(ed,"__esModule",{value:!0}),ed.default=void 0;var s=r(tm()),n=Cd();return ed.default=(0,s.default)((0,n.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),ed}var s3=i3();const o3=li(s3);var td={},Ux;function a3(){if(Ux)return td;Ux=1;var r=Mu();Object.defineProperty(td,"__esModule",{value:!0}),td.default=void 0;var s=r(tm()),n=Cd();return td.default=(0,s.default)((0,n.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutlineOutlined"),td}var l3=a3();const c3=li(l3);var rd={},Hx;function u3(){if(Hx)return rd;Hx=1;var r=Mu();Object.defineProperty(rd,"__esModule",{value:!0}),rd.default=void 0;var s=r(tm()),n=Cd();return rd.default=(0,s.default)((0,n.jsx)("path",{d:"M7 11v2h10v-2zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"RemoveCircleOutlineOutlined"),rd}var h3=u3();const d3=li(h3);function xu({hasPlus:r=!1,isOpen:s,onToggle:n,children:c,backgroundColor:l="#F4F5F7",color:u="#000",className:x=""}){return y.jsxs("div",{className:Xt(`accordion-label flex justify-between ${s?"open":""} ${x}`),onClick:n,style:{backgroundColor:l,color:u},children:[y.jsxs("span",{className:"label-title",children:[r&&y.jsx("span",{className:"pr-2 pb-0 mb-0",children:s?y.jsx(d3,{fontSize:"medium"}):y.jsx(c3,{fontSize:"medium"})}),c]}),!r&&y.jsx("span",{className:`label-action  ${s?"label-open":""}`,children:y.jsx(o3,{fontSize:"medium"})})]})}function La({isOpen:r,children:s,className:n}){return y.jsx("div",{className:Xt(`accordion-content overflow-visible ${r?"open":""} ${n}`),style:{display:r?"block":"none"},children:s})}function vu({children:r,className:s,allowMultiple:n=!1,isOpen:c=!1}){const[l,u]=Me.useState(c?0:null),[x,O]=Me.useState(Array(r.length).fill(!!c)),Y=W=>{u(l===W?null:W)},Q=W=>{O(x.map((G,K)=>K===W?!G:G))},te=()=>{const W=Gt.Children.map(r,G=>Gt.isValidElement(G)&&G.props.isOpen||!1);O(W)};return Me.useEffect(()=>{te()},[r]),y.jsx("div",{className:Xt(`accordion-wrapper ${s}`),children:Gt.Children.map(r,(W,G)=>Gt.cloneElement(W,{isOpen:n?x[G]:l===G,onToggle:()=>n?Q(G):Y(G)}))})}function $0({title:r="",children:s,className:n="",hasPlus:c=!1,backgroundColor:l="#F4F5F7",color:u="#000",isOpen:x,classNameLabel:O=""}){return y.jsx(vu,{className:`py-2 text-black ${n}`,isOpen:x,children:y.jsxs(yu,{children:[y.jsx(xu,{className:`px-4 font-bold ${O}`,hasPlus:c,backgroundColor:l,color:u,children:r}),y.jsx(La,{className:"min-h-[100px] p-4 ",children:s})]})})}function Rn(r){const{children:s,title:n,className:c,accordion:l=void 0,isOpen:u=!1}=r;return l?y.jsx("div",{className:Xt(`w-full bg-gray-100 p-4 mb-2 ${c}`),children:y.jsx(vu,{isOpen:u,children:y.jsxs(yu,{children:[y.jsx(xu,{children:n&&y.jsx("div",{className:"_pb-4 text-xl font-semibold uppercase",children:n})}),y.jsx(La,{className:"pt-4",children:s})]})})}):y.jsxs("div",{className:Xt(`w-full bg-gray-100 p-4 mb-2 ${c}`),children:[n&&y.jsx("div",{className:"pb-4 text-xl font-semibold uppercase",children:n}),s]})}const f3="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";function Lt(r){const{children:s,onClick:n,className:c,selected:l=!1,rounded:u=!1,disabled:x=!1}=r;return y.jsx("button",{className:`text-xs border-input-blue border py-2 px-3 lg:px-4 font-normal
265        ${!x&&l?"hover:bg-input-blue-hover hover:text-white":l?"":"hover:bg-gray-100"}
266        disabled:opacity-50 ${l?"bg-input-blue text-white":" text-input-blue bg-transparent"} ${u?"rounded-full":"rounded-lg"} ${c}`,disabled:x,onClick:n,children:s})}const p3=Zp({components:{MuiChip:{styleOverrides:{root:{}}}}}),Do={demandMHDV:33,demandMHDVScenario:"Med",demand:911,batteryLifeMHDV:12,batteryLifeMHDVScenario:"User"};function m3(r){const{isOpen:s,handleDismiss:n,status:c,setStatus:l,title:u,subheading:x,showData:O=!1,setShowData:Y,responseData:Q,clear:te,setClear:W,className:G}=r;ks({query:"(max-width: 767px)"});const K=ks({query:"(min-width: 768px) and (max-width: 1023px)"});ks({query:"(min-width: 1024px)"});let S={demand:911,demandMHDVScenario:Do.demandMHDVScenario,demandMHDV:Do.demandMHDV,year:"2030",collectionEfficiency:99,recyclingCapacity:95,batteryLife:12,batteryLifeMHDV:Do.batteryLifeMHDV,batteryLifeMHDVScenario:Do.batteryLifeMHDVScenario,countryBucket:"All",scenario:"User Defined",sce
266narioLevel:"Low",recoveryRateLithium:80,recoveryRateCobalt:95,recoveryRateNickel:95};const[T,E]=Me.useState(0),[_,g]=Me.useState({}),[w,k]=Me.useState(S),[b,C]=Me.useState(""),[m,q]=Me.useState(Do.demand),[V,H]=Me.useState([1,0,0]),[M,$]=Me.useState([1,0,0]),[P,h]=Me.useState(Do.demandMHDV),[f,L]=Me.useState([0,0,1,0]),[v,A]=Me.useState(Do.batteryLifeMHDV),[B,R]=Me.useState([1,0,0]);function D(){k(S),H([1,0,0]),$([1,0,0]),L([1,0,0,0]),R([1,0,0]),h(Do.demandMHDV),A(Do.batteryLifeMHDV)}function Z(oe,le){const ue={...w};ue[oe]=le,k(ue)}function X(oe){const le={...w};oe.forEach((ue,F)=>{le[ue[0]]=ue[1]}),k(le)}async function ie(oe){oe.preventDefault(),W(!0),Q(b),l("loading");const ue="https://ev-dashboard-flask.onrender.com/api"+"/evb",F=await fetch(ue,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(w)}).catch(ee=>{console.log(`Error Message: ${ee}`)}),N=await F.json();F.ok?(C(N),W(!1),Q(N),l("success")):l("error")}return y.jsx("form",{onSubmit:oe=>ie(oe),className:Xt(`border border-slate-400 bg-white p-2 ${G}`),children:y.jsx(lm,{isVisible:c==="loading",loader:c==="loading",children:y.jsxs(N0,{theme:p3,children:[y.jsxs(Rn,{children:[y.jsx("h1",{className:"pb-4 text-3xl font-bold leading-7 text-gray-900",children:"User Inputs"}),y.jsxs("p",{className:"mt-1 pb-4 text-sm leading-6 text-gray-600",children:[y.jsx("b",{children:"Hit SUBMIT at the bottom of this form"})," to run the simulation."]})]}),y.jsxs(Rn,{title:"Demand Inputs",accordion:!0,isOpen:!0,children:[y.jsxs("div",{className:"input-scenario pb-4",children:[y.jsx(si,{label:"2030 Demand – Private Passenger Vehicles",name:"scenario",info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Predicted 2030 Demand – Private Passenger Vehicles"}),y.jsx("p",{className:"pb-4",children:"This is a subset of the total battery demand, which is used in Exhibits 1–6 of this dashboard."}),y.jsx("p",{children:`Users can enter EVB demand between 500 and 1,500 GWh with the User Defined Option or select RMI's projections for battery demand for this segment using "Without IRA" or "With IRA." Note: supply gaps in relation to demand can only be projected for 2030 in this model, since the US manufacturing supply data is available for 2030.`})]})}),y.jsxs("div",{className:"flex flex-wrap gap-4",children:[y.jsx(Lt,{rounded:!0,onClick:oe=>{oe.preventDefault(),H([1,0,0]),Z("scenario",oe.target.textContent)},selected:V[0],children:"User Defined"}),y.jsx(Lt,{rounded:!0,onClick:oe=>{oe.preventDefault(),H([0,1,0]),X([["demand",691],["scenario",oe.target.textContent]])},selected:V[1],children:"Without IRA"}),y.jsx(Lt,{rounded:!0,onClick:oe=>{oe.preventDefault(),H([0,0,1]),X([["demand",w.scenarioLevel==="Low"?750:w.scenarioLevel==="Medium"?911:1032],["scenario",oe.target.textContent]])},selected:V[2],children:"With IRA"})]})]}),y.jsxs("div",{className:Xt("input-scenario pb-4"),children:[y.jsx(si,{label:"IRA Level – Private Passenger Vehicles  ",name:"ira-level",info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"IRA Level"}),y.jsx("p",{children:"Depending on IRA guidance and vehicle manufacturer response, IRA incentive levels will vary over time by make and model. Users can insert their own EV demand projections or select from RMI's pre-defined scenarios. A “high” level assumes that all private passenger EVs sold in the United States are IRA compliant and therefore eligible for both available tax credits, totaling $7,500. A “low” level assumes that a minimal number of private passenger EVs sold are eligible for half of the available tax credits, as it may be difficult to comply with the foreign entity of concern (FEOC) guidance for the sourcing of battery minerals. The “medium” level is an average of the two extremes."})]})}),y.jsx("div",{className:"flex gap-4",children:y.jsxs("div",{className:"flex",children:[y.jsx(Lt,{className:Xt("rounded-full rounded-r-none border-r-0"),disabled:w.scenario!=="With IRA",rounded:!0,onClick:oe=>{oe.preventDefault(),$([1,0,0]),X([["demand",750],["scenarioLevel",oe.target.textContent]])},selected:M[0],children:"Low"}),y.jsx(Lt,{className:Xt("rounded-none"),disabled:w.scenario!=="With IRA",onClick:oe=>{oe.preventDefault(),$([0,1,0]),X([["demand",911],["scenarioLevel",oe.target.textContent]])},selected:M[1],children:"Medium"}),y.jsx(Lt,{className:Xt("rounded-full rounded-l-none border-l-0"),disabled:w.scenario!=="With IRA",rounded:!0,onClick:oe=>{oe.preventDefault(),$([0,0,1]),X([["demand",1032],["scenarioLevel",oe.target.textContent]])},selected:M[2],children:"High"})]})})]}),y.jsx(yr,{className:Xt(` ${w.demandMHDVScenario==="User Defined"?"":"disabled"}`),label:"Demand – Private Passenger Vehicles",labelUnits:"GWh/yr",name:"demand",onChange:oe=>{Z("demand",oe.target.value)},value:Number(w.demand),min:500,max:1500,required:!0,disabled:w.scenario!=="User Defined"}),y.jsx(yr,{disabled:w.demandMHDVScenario!=="User"&&w.demandMHDVScenario!=="User Defined",label:"Demand – Medium- and Heavy-Duty Vehicles (MDHVs)  ",labelUnits:"GWh",name:"demandMHDV",onChange:oe=>{Z("demandMHDV",oe.target.value),(w.demandMHDVScenario==="User"||w.demandMHDVScenario==="User Defined")&&h(oe.target.value)},value:Number(w.demandMHDV),min:0,max:100,required:!0,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Demand – Medium- and Heavy-Duty Vehicles (MDHVs) "}),y.jsx("p",{className:"pb-4",children:"This is a subset of the total battery demand, which is used in Exhibits 1–6 of this dashboard."}),y.jsx("p",{children:"Demand scenarios for this segment are built from EV sales projected in NREL’s Annual Technology Baseline data, using battery size assumptions. Users can select the preset scenarios or insert their own demand for this segment."})]}),children:y.jsxs("div",{className:"flex pt-4",children:[y.jsx(Lt,{className:"rounded-full rounded-r-none border-r-0",rounded:!0,onClick:oe=>{oe.preventDefault(),L([1,0,0,0]),X([["demandMHDV",P],["demandMHDVScenario",oe.target.textContent]])},selected:f[0],children:K?"User":"User Defined"}),y.jsx(Lt,{className:"rounded-none",rounded:!0,onClick:oe=>{oe.preventDefault(),L([0,1,0,0]),X([["demandMHDV",27],["demandMHDVScenario",oe.target.textContent]])},selected:f[1],children:"Low"}),y.jsx(Lt,{className:Xt("rounded-none rounded-l-none border-l-0"),rounded:!0,onClick:oe=>{oe.preventDefault(),L([0,0,1,0]),X([["demandMHDV",33],["demandMHDVScenario",oe.target.textContent]])},selected:f[2],children:K?"Med":"Medium"}),y.jsx(Lt,{className:Xt("rounded-full rounded-l-none border-l-0"),rounded:!0,onClick:oe=>{oe.preventDefault(),L([0,0,0,1]),X([["demandMHDV",41],["demandMHDVScenario",oe.target.textContent]])},selected:f[3],children:"High"})]})})]}),y.jsxs(Rn,{title:"Demand Inputs",className:"hidden",children:[y.jsx(Ng,{label:"2030 Demand Scenario",name:"scenario",onChange:oe=>{oe.target.value==="With IRA - High"?X([["demand",1032],["scenario",oe.target.value]]):oe.target.value==="With IRA - Med"?X([["demand",911],["scenario",oe.target.value]]):oe.target.value==="With IRA - Low"?X([["demand",750],["scenario",oe.target.value]]):oe.target.value==="Without IRA"&&X([["demand",691],["scenario",oe.target.value]])},value:w.scenario,options:["User Defined","Without IRA","With IRA - High","With IRA - Med","With IRA - Low"],required:!0,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Predicted 2030 Demand"}),y.jsx("p",{children:`Enter EVB demand between 500 and 1500 GWh with the User Defined Option, or select RMI's projections for battery demand using "Without IRA" or "With IRA". Note, supply gaps w.r.t. meeting demand can only be projected for 2030 in this model, since the U.S. manufacturing supply data is available for 2030.`})]})}),y.jsx(yr,{label:"Demand",labelUnits:"GWh",name:"demand",onChange:oe=>{Z("demand",oe.target.value)},value:Number(w.demand),min:500,max:1500,required:!0,disabled:w.scenario!=="User Defined"})]}),y.jsxs(Rn,{className:"hidden",title:"Supply Inputs",children:[y.jsx(Ng,{label:"Year",name:"year",onChange:oe=>{Z("year",oe.target.value)},value:w.year,options:["2030"],required:!0,info:f3}),y.jsx(Ng,{label:"Imports Country Bucket",name:"countryBucket",onChange:oe=>
266{Z("countryBucket",oe.target.value)},value:w.countryBucket,options:["All"],required:!0,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Imports Country Bucket"}),y.jsx("p",{children:'For now, this can only be set to "All." In the future, we will allow users to select if imports are coming from free trade agreement partners or foreign entities of concern.'})]})})]}),y.jsxs(Rn,{title:"Circularity Inputs",accordion:!0,children:[y.jsx(yr,{label:"Battery Life – Private Passenger Vehicles",labelUnits:"Years",name:"battery-life",onChange:oe=>{Z("batteryLife",oe.target.value)},value:Number(w.batteryLife),min:10,max:20,required:!0,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Battery Life – Private Passenger Vehicles"}),y.jsx("p",{children:"Users can enter battery life between 10 and 20 years for private passenger vehicles. This input is used to estimate future recycling volumes, based on historical battery volumes and projected battery demand."})]})}),y.jsx(yr,{disabled:w.batteryLifeMHDVScenario!=="User"&&w.batteryLifeMHDVScenario!=="User Defined",label:"Battery Life – MHDVs ",labelUnits:"Years",name:"batteryLifeMHDV",onChange:oe=>{Z("batteryLifeMHDV",oe.target.value),(w.batteryLifeMHDVScenario==="User"||w.batteryLifeMHDVScenario==="User Defined")&&A(oe.target.value)},value:Number(w.batteryLifeMHDV),min:6,max:20,required:!0,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Battery Life – MHDVs"}),y.jsx("p",{children:"MHDV battery life is significantly different from that of private passenger vehicles. Users can select RMI’s preset scenarios, which consider battery lifetimes based on vehicle size and duty cycle, or users can select “User Defined” and enter a value between 6 and 20 years. This input is used to estimate future recycling volumes, based on projected battery demand."})]}),children:y.jsxs("div",{className:"flex pt-4",children:[y.jsx(Lt,{className:Xt("rounded-full rounded-r-none border-r-0"),rounded:!0,onClick:oe=>{oe.preventDefault(),R([1,0,0]),X([["batteryLifeMHDV",v],["batteryLifeMHDVScenario",oe.target.textContent]])},selected:B[0],children:K?"User":"User Defined"}),y.jsx(Lt,{className:Xt("rounded-none"),rounded:!0,onClick:oe=>{oe.preventDefault(),R([0,1,0]),X([["batteryLifeMHDV",6],["batteryLifeMHDVScenario",oe.target.textContent]])},selected:B[1],children:K?"Min":"Minimum"}),y.jsx(Lt,{className:Xt("rounded-full rounded-l-none border-l-0"),rounded:!0,onClick:oe=>{oe.preventDefault(),R([0,0,1]),X([["batteryLifeMHDV",20],["batteryLifeMHDVScenario",oe.target.textContent]])},selected:B[2],children:K?"Max":"Maximum"})]})}),y.jsx(yr,{label:"Collection Efficiency",labelUnits:"%",name:"collection-efficiency",onChange:oe=>{Z("collectionEfficiency",oe.target.value)},value:Number(w.collectionEfficiency),min:0,max:100,required:!0,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Collection Efficiency (%)"}),y.jsx("p",{children:"Enter a percentage between 0 and 100. This value represents the amount of end-of-life (EOL) EVBs being collected compared to those retired. The default is set high at 99%, based off on the recycling rate of lead acid batteries, but it could easily be much lower(5% for all lithium-ion batteries are recycled in the U.S. today, which is mostly consumer electronics) in the absence of regulations or strong market demand."}),y.jsx("p",{children:"This input is used in the circularity index calculation, and is a common input across lithium, nickel and cobalt."})]})}),y.jsx(yr,{label:"Recycling Capacity",labelUnits:"%",data:w,name:"recycling-capacity",onChange:oe=>{Z("recyclingCapacity",oe.target.value)},value:Number(w.recyclingCapacity),min:0,max:100,required:!0,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Recycling Capacity (%)"}),y.jsx("p",{children:"Enter a percentage between 0 and 100. This represents the recycling capacity of existing facilities in a given region versus recycling feedstock collected. If recycling capacity meets or exceeds need, set this to 100%. Recycling capacity would be 0%, if collected feedstock or recycling intermediate products are exported out of the country before actual material recovery. Today, there are few EV battery recycling facilities operational in North America, but the default is set to 95% based off the announced recycling facilities expected by 2030."}),y.jsx("p",{children:"This input is used in the circularity index calculation, and is a common input across lithium, nickel and cobalt."})]})}),y.jsx(yr,{label:"Recovery Rate Lithium",labelUnits:"%",data:w,name:"recovery-rate-lithium",onChange:oe=>{Z("recoveryRateLithium",oe.target.value)},value:Number(w.recoveryRateLithium),min:0,max:100,required:!0,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Recovery Rate Lithium (%)"}),y.jsx("p",{children:"Typical recovery rate as fraction of recovered content from all lithium contained in a battery. This is meant to be representative of all recyclers in a given region, as opposed to an individual recycler's recovery rate. Typically, Nickel and Cobalt are always re
266covered at the same facility, but Lithium may not be. Recovery rate estimates that are representative of the whole industry are hard to come by; defaults are based on target recovery rates mentioned in the EU Battery Regulation proposal."}),y.jsx("p",{children:"This is used in the circularity index calculation, and is specific for a given critical mineral."})]})}),y.jsx(yr,{label:"Recovery Rate Nickel",labelUnits:"%",data:w,name:"recovery-rate-nickel",onChange:oe=>{Z("recoveryRateNickel",oe.target.value)},value:Number(w.recoveryRateNickel),min:0,max:100,required:!0,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Recovery Rate Nickel (%)"}),y.jsx("p",{children:"Typical recovery rate as fraction of recovered content from all nickel contained in a battery. This is meant to be representative of all recyclers in a given region, as opposed to an individual recycler's recovery rate. Typically, Nickel and Cobalt are always recovered at the same facility, but Lithium may not be. Recovery rate estimates that are representative of the whole industry are hard to come by; defaults are based on target recovery rates mentioned in the EU Battery Regulation proposal."}),y.jsx("p",{children:"This is used in the circularity index calculation, and is specific for a given critical mineral."})]})}),y.jsx(yr,{label:"Recovery Rate Cobalt",labelUnits:"%",data:w,name:"recovery-rate-cobalt",onChange:oe=>{Z("recoveryRateCobalt",oe.target.value)},value:Number(w.recoveryRateCobalt),min:0,max:100,required:!0,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Recovery Rate Cobalt (%)"}),y.jsx("p",{children:"Typical recovery rate as fraction of recovered content from all cobalt contained in a battery. This is meant to be representative of all recyclers in a given region, as opposed to an individual recycler's recovery rate. Typically, Nickel and Cobalt are always recovered at the same facility, but Lithium may not be. Recovery rate estimates that are representative of the whole industry are hard to come by; defaults are based on target recovery rates mentioned in the EU Battery Regulation proposal."}),y.jsx("p",{children:"This is used in the circularity index calculation, and is specific for a given critical mineral."})]})})]}),y.jsx(Rn,{className:"mb-0",children:y.jsxs("div",{className:"flex flex-wrap justify-end gap-4",children:[y.jsx(ws,{variant:"outlined",onClick:oe=>{oe.preventDefault(),W&&W(!0),D()},children:"Reset"}),y.jsx(ws,{id:"form-submit-button",type:"submit",variant:"contained",sx:{backgroundColor:"#1976D2"},children:"Submit"}),y.jsx(ws,{className:"h-10",variant:"outlined",onClick:oe=>{oe.preventDefault(),Y(!O)},children:"Show Data"})]})}),y.jsx("div",{className:"",children:O&&y.jsx(Sn,{title:"Payload",response:w})})]})})})}var Cp={exports:{}},g3=Cp.exports,Yx;function y3(){return Yx||(Yx=1,function(r){(function(s,n){r.exports?(n.default=n,r.exports=s&&s.document?n(s):n):(s.Highcharts&&s.Highcharts.error(16,!0),s.Highcharts=n(s))})(typeof window<"u"?window:g3,function(s){var n={};function c(l,u,x,O){l.hasOwnProperty(u)||(l[u]=O.apply(null,x),typeof CustomEvent=="function"&&s.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:u,module:l[u]}})))}return c(n,"Core/Globals.js",[],function(){var l,u;return(u=l||(l={})).SVG_NS="http://www.w3.org/2000/svg",u.product="Highcharts",u.version="11.4.5",u.win=s!==void 0?s:{},u.doc=u.win.document,u.svg=u.doc&&u.doc.createElementNS&&!!u.doc.createElementNS(u.SVG_NS,"svg").createSVGRect,u.userAgent=u.win.navigator&&u.win.navigator.userAgent||"",u.isChrome=u.win.chrome,u.isFirefox=u.userAgent.indexOf("Firefox")!==-1,u.isMS=/(edge|msie|trident)/i.test(u.userAgent)&&!u.win.opera,u.isSafari=!u.isChrome&&u.userAgent.indexOf("Safari")!==-1,u.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(u.userAgent),u.isWebKit=u.userAgent.indexOf("AppleWebKit")!==-1,u.deg2rad=2*Math.PI/360,u.hasBidiBug=u.isFirefox&&4>parseInt(u.userAgent.split("Firefox/")[1],10),u.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],u.noop=function(){},u.supportsPassiveEvents=function(){let x=!1;if(!u.isMS){let O=Object.defineProperty({},"passive",{get:function(){x=!0}});u.win.addEventListener&&u.win.removeEventListener&&(u.win.addEventListener("testPassive",u.
vendor: 9,675 bytes, lines 266-267
266noop,O),u.win.removeEventListener("testPassive",u.noop,O))}return x}(),u.charts=[],u.composed=[],u.dateFormats={},u.seriesTypes={},u.symbolSizes={},u.chartCount=0,l}),c(n,"Core/Utilities.js",[n["Core/Globals.js"]],function(l){let u,{charts:x,doc:O,win:Y}=l;function Q(h,f,L,v){let A=f?"Highcharts error":"Highcharts warning";h===32&&(h=`${A}: Deprecated member`);let B=E(h),R=B?`${A} #${h}: www.highcharts.com/errors/${h}/`:h.toString();if(v!==void 0){let D="";B&&(R+="?"),H(v,function(Z,X){D+=`
267 - ${X}: ${Z}`,B&&(R+=encodeURI(X)+"="+encodeURI(Z))}),R+=D}$(l,"displayError",{chart:L,code:h,message:R,params:v},function(){if(f)throw Error(R);Y.console&&Q.messages.indexOf(R)===-1&&console.warn(R)}),Q.messages.push(R)}function te(h,f){return parseInt(h,f||10)}function W(h){return typeof h=="string"}function G(h){let f=Object.prototype.toString.call(h);return f==="[object Array]"||f==="[object Array Iterator]"}function K(h,f){return!!h&&typeof h=="object"&&(!f||!G(h))}function S(h){return K(h)&&typeof h.nodeType=="number"}function T(h){let f=h&&h.constructor;return!!(K(h,!0)&&!S(h)&&f&&f.name&&f.name!=="Object")}function E(h){return typeof h=="number"&&!isNaN(h)&&h<1/0&&h>-1/0}function _(h){return h!=null}function g(h,f,L){let v,A=W(f)&&!_(L),B=(R,D)=>{_(R)?h.setAttribute(D,R):A?(v=h.getAttribute(D))||D!=="class"||(v=h.getAttribute(D+"Name")):h.removeAttribute(D)};return W(f)?B(L,f):H(f,B),v}function w(h){return G(h)?h:[h]}function k(h,f){let L;for(L in h||(h={}),f)h[L]=f[L];return h}function b(){let h=arguments,f=h.length;for(let L=0;L<f;L++){let v=h[L];if(v!=null)return v}}function C(h,f){k(h.style,f)}function m(h){return Math.pow(10,Math.floor(Math.log(h)/Math.LN10))}function q(h,f){return h>1e14?h:parseFloat(h.toPrecision(f||14))}(Q||(Q={})).messages=[],Math.easeInOutSine=function(h){return-.5*(Math.cos(Math.PI*h)-1)};let V=Array.prototype.find?function(h,f){return h.find(f)}:function(h,f){let L,v=h.length;for(L=0;L<v;L++)if(f(h[L],L))return h[L]};function H(h,f,L){for(let v in h)Object.hasOwnProperty.call(h,v)&&f.call(L||h[v],h[v],v,h)}function M(h,f,L){function v(R,D){let Z=h.removeEventListener;Z&&Z.call(h,R,D,!1)}function A(R){let D,Z;h.nodeName&&(f?(D={})[f]=!0:D=R,H(D,function(X,ie){if(R[ie])for(Z=R[ie].length;Z--;)v(ie,R[ie][Z].fn)}))}let B=typeof h=="function"&&h.prototype||h;if(Object.hasOwnProperty.call(B,"hcEvents")){let R=B.hcEvents;if(f){let D=R[f]||[];L?(R[f]=D.filter(function(Z){return L!==Z.fn}),v(f,L)):(A(R),R[f]=[])}else A(R),delete B.hcEvents}}function $(h,f,L,v){if(L=L||{},O.createEvent&&(h.dispatchEvent||h.fireEvent&&h!==l)){let A=O.createEvent("Events");A.initEvent(f,!0,!0),L=k(A,L),h.dispatchEvent?h.dispatchEvent(L):h.fireEvent(f,L)}else if(h.hcEvents){L.target||k(L,{preventDefault:function(){L.defaultPrevented=!0},target:h,type:f});let A=[],B=h,R=!1;for(;B.hcEvents;)Object.hasOwnProperty.call(B,"hcEvents")&&B.hcEvents[f]&&(A.length&&(R=!0),A.unshift.apply(A,B.hcEvents[f])),B=Object.getPrototypeOf(B);R&&A.sort((D,Z)=>D.order-Z.order),A.forEach(D=>{D.fn.call(h,L)===!1&&L.preventDefault()})}v&&!L.defaultPrevented&&v.call(h,L)}H({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(h,f){l[f]=function(L){return Q(32,!1,void 0,{[`Highcharts.${f}`]:`use Array.${h}`}),Array.prototype[h].apply(L,[].slice.call(arguments,1))}});let P=function(){let h=Math.random().toString(36).substring(2,9)+"-",f=0;return function(){return"highcharts-"+(u?"":h)+f++}}();return Y.jQuery&&(Y.jQuery.fn.highcharts=function(){let h=[].slice.call(arguments);if(this[0])return h[0]?(new l[W(h[0])?h.shift():"Chart"](this[0],h[0],h[1]),this):x[g(this[0],"data-highcharts-chart")]}),{addEvent:function(h,f,L,v={}){let A=typeof h=="function"&&h.prototype||h;Object.hasOwnProperty.call(A,"hcEvents")||(A.hcEvents={});let B=A.hcEvents;l.Point&&h instanceof l.Point&&h.series&&h.series.chart&&(h.series.chart.runTrackerClick=!0);let R=h.addEventListener;R&&R.call(h,f,L,!!l.supportsPassiveEvents&&{passive:v.passive===void 0?f.indexOf("touch")!==-1:v.passive,capture:!1}),B[f]||(B[f]=[]);let D={fn:L,order:typeof v.order=="number"?v.order:1/0};return B[f].push(D),B[f].sort((Z,X)=>Z.order-X.order),function(){M(h,f,L)}},arrayMax:function(h){let f=h.length,L=h[0];for(;f--;)h[f]>L&&(L=h[f]);return L},arrayMin:function(h){let f=h.length,L=h[0];for(;f--;)h[f]<L&&(L=h[f]);return L},attr:g,clamp:function(h,f,L){return h>f?h<L?h:L:f},clearTimeout:function(h){_(h)&&clearTimeout(h)},correctFloat:q,createElement:function(h,f,L,v,A){let B=O.createElement(h);return f&&k(B,f),A&&C(B,{padding:"0",border:"none",margin:"0"}),L&&C(B,L),v&&v.appendChild(B),B},crisp:(h,f=0,L)=>{let v=f%2/2,A=L?-1:1;return(Math.round(h*A-v)+v)*A},css:C,defined:_,destroyObjectProperties:function(h,f,L){H(h,function(v,A){v!==f&&(v!=null&&v.destroy)&&v.destroy(),(v!=null&&v.destroy||!L)&&delete h[A]})},diffObjects:function(h,f,L,v){let A={};return function B(R,D,Z,X){let ie=L?D:R;H(R,function(oe,le){if(!X&&v&&v.indexOf(le)>-1&&D[le]){oe=w(oe),Z[le]=[];for(let ue=0;ue<Math.max(oe.length,D[le].length);ue++)D[le][ue]&&(oe[ue]===void 0?Z[le][ue]=D[le][ue]:(Z[le][ue]={},B(oe[ue],D[le][ue],Z[le][ue],X+1)))}else K(oe,!0)&&!oe.nodeType?(Z[le]=G(oe)?[]:{},B(oe,D[le]||{},Z[le],X+1),Object.keys(Z[le]).length!==0||le==="colorAxis"&&X===0||delete Z[le]):(R[le]!==D[le]||le in R&&!(le in D))&&le!=="__proto__"&&le!=="constructor"&&(Z[le]=ie[le])})}(h,f,A,0),A},discardElement:function(h){h&&h.parentElement&&h.parentElement.removeChild(h)},erase:function(h,f){let L=h.length;for(;L--;)if(h[L]===f){h.splice(L,1);break}},error:Q,extend:k,extendClass:function(h,f){let L=function(){};return L.prototype=new h,k(L.prototype,f),L},find:V,fireEvent:$,getClosestDistance:function(h,f){let L,v,A,B=!f;return h.forEach(R=>{if(R.length>1)for(A=R.length-1;A>0;A--)(v=R[A]-R[A-1])<0&&!B?(f==null||f(),f=void 0):v&&(L===void 0||v<L)&&(L=v)}),L},getMagnitude:m,getNestedProperty:function(h,f){let L=h.split(".");for(;L.length&&_(f);){let v=L.shift();if(v===void 0||v==="__proto__")return;if(v==="this"){let B;return K(f)&&(B=f["@this"]),B??f}let A=f[v];if(!_(A)||typeof A=="function"||typeof A.nodeType=="number"||A===Y)return;f=A}return f},getStyle:function h(f,L,v){let A;if(L==="width"){let R=Math.min(f.offsetWidth,f.scrollWidth),D=f.getBoundingClientRect&&f.getBoundingClientRect().width;return D<R&&D>=R-1&&(R=Math.floor(D)),Math.max(0,R-(h(f,"padding-left",!0)||0)-(h(f,"padding-right",!0)||0))}if(L==="height")return Math.max(0,Math.min(f.offsetHeight,f.scrollHeight)-(h(f,"padding-top",!0)||0)-(h(f,"padding-bottom",!0)||0));let B=Y.getComputedStyle(f,void 0);return B&&(A=B.getPropertyValue(L),b(v,L!=="opacity")&&(A=te(A))),A},inArray:function(h,f,L){return Q(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),f.indexOf(h,L)},insertItem:function(h,f){let L,v=h.options.index,A=f.length;for(L=h.options.isInternal?A:0;L<A+1;L++)if(!f[L]||E(v)&&v<b(f[L].options.index,f[L]._i)||f[L].options.isInternal){f.splice(L,0,h);break}return L},isArray:G,isClass:T,isDOMElement:S,isFunction:function(h){return typeof h=="function"},isNumber:E,isObject:K,isString:W,keys:function(h){return Q(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(h)},merge:function(){let h,f=arguments,L={},v=function(B,R){return typeof B!="object"&&(B={}),H(R,function(D,Z){Z!=="__proto__"&&Z!=="constructor"&&(!K(D,!0)||T(D)||S(D)?B[Z]=R[Z]:B[Z]=v(B[Z]||{},D))}),B};f[0]===!0&&(L=f[1],f=Array.prototype.slice.call(f,2));let A=f.length;for(h=0;h<A;h++)L=v(L,f[h]);return L},normalizeTickInterval:function(h,f,L,v,A){let B,R=h;L=b(L,m(h));let D=h/L;for(!f&&(f=A?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],v===!1&&(L===1?f=f.filter(function(Z){return Z%1==0}):L<=.1&&(f=[1/L]))),B=0;B<f.length&&(R=f[B],(!A||!(R*L>=h))&&(A||!(D<=(f[B]+(f[B+1]||f[B]))/2)));B++);return q(R*L,-Math.round(Math.log(.001)/Math.LN10))},objectEach:H,offset:function(h){let f=O.documentElement,L=h.parentElement||h.parentNode?h.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:L.top+(Y.pageYOffset||f.scrollTop)-(f.clientTop||0),left:L.left+(Y.pageXOffset||f.scrollLeft)-(f.clientLeft||0),width:L.width,height:L.height}},pad:function(h,f,L){return Array((f||2)+1-String(h).replace("-","").length).join(L||"0")+h},pick:b,pInt:te,pushUnique:function(h,f){return 0>h.indexOf(f)&&!!h.push(f)},relativeLength:function(h,f,L){return/%$/.test(h)?f*parseFloat(h)/100+(L||0):parseFloat(h)},removeEvent:M,replaceNested:function(h,...f){let L,v;do for(v of(L=h,f))h=h.replace(v[0],v[1]);while(h!==L);return h},splat:w,stableSort:function(h,f){let L,v,A=h.length;for(v=0;v<A;v++)h[v].safeI=v;for(h.sort(function(B,R){return(L=f(B,R))===0?B.safeI-R.safeI:L}),v=0;v<A;v++)delete h[v].safeI},syncTimeout:function(h,f,L){return f>0?setTimeout(h,f,L):(h.call(0,L),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:P,useSerialIds:function(h){return u=b(h,u)},wrap:function(h,f,L){let v=h[f];h[f]=function(){let A=arguments,B=this;return L.apply(this,[function(){return v.apply(B,arguments.length?arguments:A)}].concat([].slice.call(arguments)))}}}}),c(n,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),c(n,"Core/Color/Palettes.js",[],function(){return{colors:["#2caffe","#544fc5","#00e272","#fe
2676a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}}),c(n,"Core/Time.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(l,u){let{win:x}=l,{defined:O,error:Y,extend:Q,isNumber:te,isObject:W,merge:G,objectEach:K,pad:S,pick:T,splat:E,timeUnits:_}=u,g=l.isSafari&&x.Intl&&x.Intl.DateTimeFormat.prototype.formatRange,w=l.isSafari&&x.Intl&&!x.Intl.DateTimeFormat.prototype.formatRange;class k{constructor(C){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=x.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(C)}get(C,m){if(this.variableTimezone||this.timezoneOffset){let q=m.getTime(),V=q-this.getTimezoneOffset(m);m.setTime(V);let H=m["getUTC"+C]();return m.setTime(q),H}return this.useUTC?m["getUTC"+C]():m["get"+C]()}set(C,m,q){if(this.variableTimezone||this.timezoneOffset){if(C==="Milliseconds"||C==="Seconds"||C==="Minutes"&&this.getTimezoneOffset(m)%36e5==0)return m["setUTC"+C](q);let V=this.getTimezoneOffset(m),H=m.getTime()-V;m.setTime(H),m["setUTC"+C](q);let M=this.getTimezoneOffset(m);return H=m.getTime()+M,m.setTime(H)}return this.useUTC||g&&C==="FullYear"?m["setUTC"+C](q):m["set"+C](q)}update(C={}){let m=T(C.useUTC,!0);this.options=C=G(!0,this.options,C),this.Date=C.Date||x.Date||Date,this.useUTC=m,this.timezoneOffset=m&&C.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=m&&!!(C.getTimezoneOffset||C.timezone)}makeTime(C,m,q,V,H,M){let $,P,h;return this.useUTC?($=this.Date.UTC.apply(0,arguments),P=this.getTimezoneOffset($),$+=P,P!==(h=this.getTimezoneOffset($))?$+=h-P:P-36e5!==this.getTimezoneOffset($-36e5)||w||($-=36e5)):$=new this.Date(C,m,T(q,1),T(V,0),T(H,0),T(M,0)).getTime(),$}timezoneOffsetFunction(){let C=this,m=this.options,q=m.getTimezoneOffset;return this.useUTC?m.timezone?V=>{try{let H=`shortOffset,${m.timezone||""}`,[M,$,P,h,f=0]=(k.formatCache[H]=k.formatCache[H]||Intl.DateTimeFormat("en",{timeZone:m.timezone,timeZoneName:"shortOffset"})).format(V).split(/(GMT|:)/).map(Number),L=-(36e5*(P+f/60));if(te(L))return L}catch{Y(34)}return 0}:this.useUTC&&q?V=>6e4*q(V.valueOf()):()=>6e4*(C.timezoneOffset||0):V=>6e4*new Date(V.toString()).getTimezoneOffset()}dateFormat(C,m,q){if(!O(m)||isNaN(m))return l.defaultOptions.lang&&l.defaultOptions.lang.invalidDate||"";C=T(C,"%Y-%m-%d %H:%M:%S");let V=this,H=new this.Date(m),M=this.get("Hours",H),$=this.get("Day",H),P=this.get("Date",H),h=this.get("Month",H),f=this.get("FullYear",H),L=l.defaultOptions.lang,v=L&&L.weekdays,A=L&&L.shortWeekdays;return K(Q({a:A?A[$]:v[$].substr(0,3),A:v[$],d:S(P),e:S(P,2," "),w:$,b:L.shortMonths[h],B:L.months[h],m:S(h+1),o:h+1,y:f.toString().substr(2,2),Y:f,H:S(M),k:M,I:S(M%12||12),l:M%12||12,M:S(this.get("Minutes",H)),p:M<12?"AM":"PM",P:M<12?"am":"pm",S:S(this.get("Seconds",H)),L:S(Math.floor(m%1e3),3)},l.dateFormats),function(B,R){for(;C.indexOf("%"+R)!==-1;)C=C.replace("%"+R,typeof B=="function"?B.call(V,m):B)}),q?C.substr(0,1).toUpperCase()+C.substr(1):C}resolveDTLFormat(C){return W(C,!0)?C:{main:(C=E(C))[0],from:C[1],to:C[2]}}getTimeTicks(C,m,q,V){let H,M,$,P,h=this,f=h.Date,L=[],v={},A=new f(m),B=C.unitRange,R=C.count||1;if(V=T(V,1),O(m)){h.set("Milliseconds",A,B>=_.second?0:R*Math.floor(h.get("Milliseconds",A)/R)),B>=_.second&&h.set("Seconds",A,B>=_.minute?0:R*Math.floor(h.get("Seconds",A)/R)),B>=_.minute&&h.set("Minutes",A,B>=_.hour?0:R*Math.floor(h.get("Minutes",A)/R)),B>=_.hour&&h.set("Hours",A,B>=_.day?0:R*Math.floor(h.get("Hours",A)/R)),B>=_.day&&h.set("Date",A,B>=_.month?1:Math.max(1,R*Math.floor(h.get("Date",A)/R))),B>=_.month&&(h.set("Month",A,B>=_.year?0:R*Math.floor(h.get("Month",A)/R)),M=h.get("FullYear",A)),B>=_.year&&(M-=M%R,h.set("FullYear",A,M)),B===_.week&&(P=h.get("Day",A),h.set("Date",A,h.get("Date",A)-P+V+(P<V?-7:0))),M=h.get("FullYear",A);let D=h.get("Month",A),Z=h.get("Date",A),X=h.get("Hours",A);m=A.getTime(),(h.variableTimezone||!h.useUTC)&&O(q)&&($=q-m>4*_.month||h.getTimezoneOffset(m)!==h.getTimezoneOffset(q));let ie=A.getTime();for(H=1;ie<q;)L.push(ie),B===_.year?ie=h.makeTime(M+H*R,0):B===_.month?ie=h.makeTime(M,D+H*R):$&&(B===_.day||B===_.week)?ie=h.makeTime(M,D,Z+H*R*(B===_.day?1:7)):$&&B===_.hour&&R>
2671?ie=h.makeTime(M,D,Z,X+H*R):ie+=B*R,H++;L.push(ie),B<=_.hour&&L.length<1e4&&L.forEach(function(oe){oe%18e5==0&&h.dateFormat("%H%M%S%L",oe)==="000000000"&&(v[oe]="day")})}return L.info=Q(C,{higherRanks:v,totalRange:B*R}),L}getDateFormat(C,m,q,V){let H=this.dateFormat("%m-%d %H:%M:%S.%L",m),M="01-01 00:00:00.000",$={millisecond:15,second:12,minute:9,hour:6,day:3},P="millisecond",h=P;for(P in _){if(C===_.week&&+this.dateFormat("%w",m)===q&&H.substr(6)===M.substr(6)){P="week";break}if(_[P]>C){P=h;break}if($[P]&&H.substr($[P])!==M.substr($[P]))break;P!=="week"&&(h=P)}return this.resolveDTLFormat(V[P]).main}}return k.formatCache={},k}),c(n,"Core/Defaults.js",[n["Core/Chart/ChartDefaults.js"],n["Core/Globals.js"],n["Core/Color/Palettes.js"],n["Core/Time.js"],n["Core/Utilities.js"]],function(l,u,x,O,Y){let{isTouchDevice:Q}=u,{fireEvent:te,merge:W}=Y,G={colors:x.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:l,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:S=>Math.sqrt(1-Math.pow(S-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:Q?25:10,headerFormat:'<span style="font-size: 0.8em">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};G.chart.styledMode=!1;let K=new O(G.time);return{defaultOptions:G,defaultTime:K,getOptions:function(){return G},setOptions:function(S){return te(u,"setOptions",{options:S}),W(!0,G,S),(S.time||S.global)&&(u.time?u.time.update(W(G.global,G.time,S.global,S.time)):u.time=K),G}}}),c(n,"Core/Color/Color.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(l,u){let{isNumber:x,merge:O,pInt:Y}=u;class Q{static parse(W){return W?new Q(W):Q.None}constructor(W){let G,K,S,T;this.rgba=[NaN,NaN,NaN,NaN],this.input=W;let E=l.Color;if(E&&E!==Q)return new E(W);if(typeof W=="object"&&W.stops!==void 0)this.stops=W.stops.map(_=>new Q(_[1]));else if(typeof W=="string"){if(this.input=W=Q.names[W.toLowerCase()]||W,W.charAt(0)==="#"){let _=W.length,g=parseInt(W.
267substr(1),16);_===7?K=[(16711680&g)>>16,(65280&g)>>8,255&g,1]:_===4&&(K=[(3840&g)>>4|(3840&g)>>8,(240&g)>>4|240&g,(15&g)<<4|15&g,1])}if(!K)for(S=Q.parsers.length;S--&&!K;)(G=(T=Q.parsers[S]).regex.exec(W))&&(K=T.parse(G))}K&&(this.rgba=K)}get(W){let G=this.input,K=this.rgba;if(typeof G=="object"&&this.stops!==void 0){let S=O(G);return S.stops=[].slice.call(S.stops),this.stops.forEach((T,E)=>{S.stops[E]=[S.stops[E][0],T.get(W)]}),S}return K&&x(K[0])?W!=="rgb"&&(W||K[3]!==1)?W==="a"?`${K[3]}`:"rgba("+K.join(",")+")":"rgb("+K[0]+","+K[1]+","+K[2]+")":G}brighten(W){let G=this.rgba;if(this.stops)this.stops.forEach(function(K){K.brighten(W)});else if(x(W)&&W!==0)for(let K=0;K<3;K++)G[K]+=Y(255*W),G[K]<0&&(G[K]=0),G[K]>255&&(G[K]=255);return this}setOpacity(W){return this.rgba[3]=W,this}tweenTo(W,G){let K=this.rgba,S=W.rgba;if(!x(K[0])||!x(S[0]))return W.input||"none";let T=S[3]!==1||K[3]!==1;return(T?"rgba(":"rgb(")+Math.round(S[0]+(K[0]-S[0])*(1-G))+","+Math.round(S[1]+(K[1]-S[1])*(1-G))+","+Math.round(S[2]+(K[2]-S[2])*(1-G))+(T?","+(S[3]+(K[3]-S[3])*(1-G)):"")+")"}}return Q.names={white:"#ffffff",black:"#000000"},Q.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(te){return[Y(te[1]),Y(te[2]),Y(te[3]),parseFloat(te[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(te){return[Y(te[1]),Y(te[2]),Y(te[3]),1]}}],Q.None=new Q(""),Q}),c(n,"Core/Animation/Fx.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(l,u,x){let{parse:O}=l,{win:Y}=u,{isNumber:Q,objectEach:te}=x;class W{constructor(K,S,T){this.pos=NaN,this.options=S,this.elem=K,this.prop=T}dSetter(){let K=this.paths,S=K&&K[0],T=K&&K[1],E=this.now||0,_=[];if(E!==1&&S&&T)if(S.length===T.length&&E<1)for(let g=0;g<T.length;g++){let w=S[g],k=T[g],b=[];for(let C=0;C<k.length;C++){let m=w[C],q=k[C];Q(m)&&Q(q)&&!(k[0]==="A"&&(C===4||C===5))?b[C]=m+E*(q-m):b[C]=q}_.push(b)}else _=T;else _=this.toD||[];this.elem.attr("d",_,void 0,!0)}update(){let K=this.elem,S=this.prop,T=this.now,E=this.options.step;this[S+"Setter"]?this[S+"Setter"]():K.attr?K.element&&K.attr(S,T,null,!0):K.style[S]=T+this.unit,E&&E.call(K,T,this)}run(K,S,T){let E=this,_=E.options,g=function(b){return!g.stopped&&E.step(b)},w=Y.requestAnimationFrame||function(b){setTimeout(b,13)},k=function(){for(let b=0;b<W.timers.length;b++)W.timers[b]()||W.timers.splice(b--,1);W.timers.length&&w(k)};K!==S||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=K,this.end=S,this.unit=T,this.now=this.start,this.pos=0,g.elem=this.elem,g.prop=this.prop,g()&&W.timers.push(g)===1&&w(k)):(delete _.curAnim[this.prop],_.complete&&Object.keys(_.curAnim).length===0&&_.complete.call(this.elem))}step(K){let S,T,E=+new Date,_=this.options,g=this.elem,w=_.complete,k=_.duration,b=_.curAnim;return g.attr&&!g.element?S=!1:K||E>=k+this.startTime?(this.now=this.end,this.pos=1,this.update(),b[this.prop]=!0,T=!0,te(b,function(C){C!==!0&&(T=!1)}),T&&w&&w.call(g),S=!1):(this.pos=_.easing((E-this.startTime)/k),this.now=this.start+(this.end-this.start)*this.pos,this.update(),S=!0),S}initPath(K,S,T){let E=K.startX,_=K.endX,g=T.slice(),w=K.isArea,k=w?2:1,b=S&&T.length>S.length&&T.hasStackedCliffs,C,m,q,V,H=S&&S.slice();if(!H||b)return[g,g];function M(P,h){for(;P.length<m;){let f=P[0],L=h[m-P.length];if(L&&f[0]==="M"&&(L[0]==="C"?P[0]=["C",f[1],f[2],f[1],f[2],f[1],f[2]]:P[0]=["L",f[1],f[2]]),P.unshift(f),w){let v=P.pop();P.push(P[P.length-1],v)}}}function $(P){for(;P.length<m;){let h=P[Math.floor(P.length/k)-1].slice();if(h[0]==="C"&&(h[1]=h[5],h[2]=h[6]),w){let f=P[Math.floor(P.length/k)].slice();P.splice(P.length/2,0,h,f)}else P.push(h)}}if(E&&_&&_.length){for(q=0;q<E.length;q++){if(E[q]===_[0]){C=q;break}if(E[0]===_[_.length-E.length+q]){C=q,V=!0;break}if(E[E.length-1]===_[_.length-E.length+q]){C=E.length-q;break}}C===void 0&&(H=[])}return H.length&&Q(C)&&(m=g.length+C*k,V?(M(H,g),$(g)):(M(g,H),$(H))),[H,g]}fillSetter(){W.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,O(this.start).tweenTo(O(this.end),this.pos),void 0,!0)}}return W.timers=[],W}),c(n,"Core/Animation/AnimationUtilities.js",[n["Core/Animation/Fx.js"],n["Core/Utilities.js"]],function(l,u){let{defined:x,getStyle:O,isArray:Y,isNumber:Q,isObject:te,merge:W,objectEach:G,pick:K}=u;function S(E){return te(E)?W({duration:500,defer:0},E):{duration:E?500:0,defer:0}}function T(E,_){let g=l.timers.length;for(;g--;)l.timers[g].elem!==E||_&&_!==l.timers[g].prop||(l.timers[g].stopped=!0)}return{animate:function(E,_,g){let w,k="",b,C,m;te(g)||(m=arguments,g={duration:m[2],easing:m[3],complete:m[4]}),Q(g.duration)||(g.duration=400),g.easing=typeof g.easing=="function"?g.easing:Math[g.easing]||Math.easeInOutSine,g.curAnim=W(_),G(_,function(q,V){T(E,V),
vendor: 6,093 bytes, line 267
267C=new l(E,g,V),b=void 0,V==="d"&&Y(_.d)?(C.paths=C.initPath(E,E.pathArray,_.d),C.toD=_.d,w=0,b=1):E.attr?w=E.attr(V):(w=parseFloat(O(E,V))||0,V!=="opacity"&&(k="px")),b||(b=q),typeof b=="string"&&b.match("px")&&(b=b.replace(/px/g,"")),C.run(w,b,k)})},animObject:S,getDeferredAnimation:function(E,_,g){let w=S(_),k=g?[g]:E.series,b=0,C=0;return k.forEach(m=>{let q=S(m.options.animation);b=te(_)&&x(_.defer)?w.defer:Math.max(b,q.duration+q.defer),C=Math.min(w.duration,q.duration)}),E.renderer.forExport&&(b=0),{defer:Math.max(0,b-C),duration:Math.min(b,C)}},setAnimation:function(E,_){_.renderer.globalAnimation=K(E,_.options.chart.animation,!0)},stop:T}}),c(n,"Core/Renderer/HTML/AST.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(l,u){let{SVG_NS:x,win:O}=l,{attr:Y,createElement:Q,css:te,error:W,isFunction:G,isString:K,objectEach:S,splat:T}=u,{trustedTypes:E}=O,_=E&&G(E.createPolicy)&&E.createPolicy("highcharts",{createHTML:b=>b}),g=_?_.createHTML(""):"",w=function(){try{return!!new DOMParser().parseFromString(g,"text/html")}catch{return!1}}();class k{static filterUserAttributes(C){return S(C,(m,q)=>{let V=!0;k.allowedAttributes.indexOf(q)===-1&&(V=!1),["background","dynsrc","href","lowsrc","src"].indexOf(q)!==-1&&(V=K(m)&&k.allowedReferences.some(H=>m.indexOf(H)===0)),V||(W(33,!1,void 0,{"Invalid attribute in config":`${q}`}),delete C[q]),K(m)&&C[q]&&(C[q]=m.replace(/</g,"&lt;"))}),C}static parseStyle(C){return C.split(";").reduce((m,q)=>{let V=q.split(":").map(M=>M.trim()),H=V.shift();return H&&V.length&&(m[H.replace(/-([a-z])/g,M=>M[1].toUpperCase())]=V.join(":")),m},{})}static setElementHTML(C,m){C.innerHTML=k.emptyHTML,m&&new k(m).addToDOM(C)}constructor(C){this.nodes=typeof C=="string"?this.parseMarkup(C):C}addToDOM(C){return function m(q,V){let H;return T(q).forEach(function(M){let $,P=M.tagName,h=M.textContent?l.doc.createTextNode(M.textContent):void 0,f=k.bypassHTMLFiltering;if(P)if(P==="#text")$=h;else if(k.allowedTags.indexOf(P)!==-1||f){let L=P==="svg"?x:V.namespaceURI||x,v=l.doc.createElementNS(L,P),A=M.attributes||{};S(M,function(B,R){R!=="tagName"&&R!=="attributes"&&R!=="children"&&R!=="style"&&R!=="textContent"&&(A[R]=B)}),Y(v,f?A:k.filterUserAttributes(A)),M.style&&te(v,M.style),h&&v.appendChild(h),m(M.children||[],v),$=v}else W(33,!1,void 0,{"Invalid tagName in config":P});$&&V.appendChild($),H=$}),H}(this.nodes,C)}parseMarkup(C){let m,q=[];if(C=C.trim().replace(/ style=(["'])/g," data-style=$1"),w)m=new DOMParser().parseFromString(_?_.createHTML(C):C,"text/html");else{let H=Q("div");H.innerHTML=C,m={body:H}}let V=(H,M)=>{let $=H.nodeName.toLowerCase(),P={tagName:$};$==="#text"&&(P.textContent=H.textContent||"");let h=H.attributes;if(h){let f={};[].forEach.call(h,L=>{L.name==="data-style"?P.style=k.parseStyle(L.value):f[L.name]=L.value}),P.attributes=f}if(H.childNodes.length){let f=[];[].forEach.call(H.childNodes,L=>{V(L,f)}),f.length&&(P.children=f)}M.push(P)};return[].forEach.call(m.body.childNodes,H=>V(H,q)),q}}return k.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],k.allowedReferences=["https://","http://","mailto:","/","../","./","#"],k.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],k.emptyHTML=g,k.bypassHTMLFiltering=!1,k}),c(n,"Core/Templating.js",[n["Core/Defaults.js"],n["Core/Utilities.js"]],function(l,u){let{defaultOptions:x,defaultTime:O}=l,{extend:Y,getNestedProperty:Q,isArray:te,isNumber:W,isObject:G,pick:K,pInt:S}=u,T={add:(g,w)=>g+w,divide:(g,w)=>w!==0?g/w:"",eq:(g,w)=>g==w,each:function(g){let w=arguments[arguments.length-1];return!!te(g)&&g.map((k,b)=>E(w.body,Y(G(k)?k:{"@this":k},{"@index":b,"@first":b===0,"@last":b===g.length-1}))).join("")},ge:(g,w)=>g>=w,gt:(g,w)=>g>w,if:g=>!!g,le:(g,w)=>g<=w,lt:(g,w)=>g<w,multiply:(g,w)=>g*w,ne:(g,w)=>g!=w,subtract:(g,w)=>g-w,unless:g=>!g};function E(g="",w,k){let b=/\{([\w\:\.\,;\-\/<>%@"'’= #\(\)]+)\}/g,C=/\(([\w\:\.\,;\-\/<>%@"'= ]+)\)/g,m=[],q=/f$/,V=/\.(\d)/,H=x.lang,M=k&&k.time||O,$=k&&k.numberFormatter||_,P=(A="")=>{let B;return A==="true"||A!=="false"&&((B=Number(A)).toString()===A?B:Q(A,w))},h,f,L=0,v;for(;(h=b.exec(g))!==null;){let A=C.exec(h[1]);A&&(h=A,v=!0),f&&f.isBlock||(f={ctx:w,expression:h[1],find:h[0],isBlock:h[1].charAt(0)==="#",start:h.index,startInner:h.index+h[0].length,length:h[0].length});let B=h[1].split(" ")[0].replace("#","");T[B]&&(f.isBlock&&B===f.fn&&L++,f.fn||(f.fn=B));let R=h[1]==="else";if(f.isBlock&&f.fn&&(h[1]===`/${f.fn}`||R))if(L)!R&&L--;else{let D=f.startInner,Z=g.substr(D,h.index-D);f.body===void 0?(f.body=Z,f.startInner=h.index+h[0].length):f.elseBody=Z,f.find+=Z+h[0],R||(m.push(f),f=void 0)}else f.isBlock||m.push(f);if(A&&!(f!=null&&f.isBlock))break}return m.forEach(A=>{let B,R,{body:D,elseBody:Z,expression:X,fn:ie}=A;if(ie){let oe=[A],le=X.split(" ");for(R=T[ie].length;R--;)oe.unshift(P(le[R+1]));
267B=T[ie].apply(w,oe),A.isBlock&&typeof B=="boolean"&&(B=E(B?D:Z,w,k))}else{let oe=X.split(":");if(B=P(oe.shift()||""),oe.length&&typeof B=="number"){let le=oe.join(":");if(q.test(le)){let ue=parseInt((le.match(V)||["","-1"])[1],10);B!==null&&(B=$(B,ue,H.decimalPoint,le.indexOf(",")>-1?H.thousandsSep:""))}else B=M.dateFormat(le,B)}}g=g.replace(A.find,K(B,""))}),v?E(g,w,k):g}function _(g,w,k,b){let C,m;g=+g||0,w=+w;let q=x.lang,V=(g.toString().split(".")[1]||"").split("e")[0].length,H=g.toString().split("e"),M=w;w===-1?w=Math.min(V,20):W(w)?w&&H[1]&&H[1]<0&&((m=w+ +H[1])>=0?(H[0]=(+H[0]).toExponential(m).split("e")[0],w=m):(H[0]=H[0].split(".")[0]||0,g=w<20?(H[0]*Math.pow(10,H[1])).toFixed(w):0,H[1]=0)):w=2;let $=(Math.abs(H[1]?H[0]:g)+Math.pow(10,-Math.max(w,V)-1)).toFixed(w),P=String(S($)),h=P.length>3?P.length%3:0;return k=K(k,q.decimalPoint),b=K(b,q.thousandsSep),C=(g<0?"-":"")+(h?P.substr(0,h)+b:""),0>+H[1]&&!M?C="0":C+=P.substr(h).replace(/(\d{3})(?=\d)/g,"$1"+b),w?C+=k+$.slice(-w):+C==0&&(C="0"),H[1]&&+C!=0&&(C+="e"+H[1]),C}return{dateFormat:function(g,w,k){return O.dateFormat(g,w,k)},format:E,helpers:T,numberFormat:_}}),c(n,"Core/Renderer/RendererRegistry.js",[n["Core/Globals.js"]],function(l){var u,x;let O;return(x=u||(u={})).rendererTypes={},x.getRendererType=function(Y=O){return x.rendererTypes[Y]||x.rendererTypes[O]},x.registerRendererType=function(Y,Q,te){x.rendererTypes[Y]=Q,(!O||te)&&(O=Y,l.Renderer=Q)},u}),c(n,"Core/Renderer/RendererUtilities.js",[n["Core/Utilities.js"]],function(l){var u;let{clamp:x,pick:O,pushUnique:Y,stableSort:Q}=l;return(u||(u={})).distribute=function te(W,G,K){let S=W,T=S.reducedLen||G,E=(P,h)=>P.target-h.target,_=[],g=W.length,w=[],k=_.push,b,C,m,q=!0,V,H,M=0,$;for(b=g;b--;)M+=W[b].size;if(M>T){for(Q(W,(P,h)=>(h.rank||0)-(P.rank||0)),m=($=W[0].rank===W[W.length-1].rank)?g/2:-1,C=$?m:g-1;m&&M>T;)V=W[b=Math.floor(C)],Y(w,b)&&(M-=V.size),C+=m,$&&C>=W.length&&(m/=2,C=m);w.sort((P,h)=>h-P).forEach(P=>k.apply(_,W.splice(P,1)))}for(Q(W,E),W=W.map(P=>({size:P.size,targets:[P.target],align:O(P.align,.5)}));q;){for(b=W.length;b--;)V=W[b],H=(Math.min.apply(0,V.targets)+Math.max.apply(0,V.targets))/2,V.pos=x(H-V.size*V.align,0,G-V.size);for(b=W.length,q=!1;b--;)b>0&&W[b-1].pos+W[b-1].size>W[b].pos&&(W[b-1].size+=W[b].size,W[b-1].targets=W[b-1].targets.concat(W[b].targets),W[b-1].align=.5,W[b-1].pos+W[b-1].size>G&&(W[b-1].pos=G-W[b-1].size),W.splice(b,1),q=!0)}return k.apply(S,_),b=0,W.some(P=>{let h=0;return(P.targets||[]).some(()=>(S[b].pos=P.pos+h,K!==void 0&&Math.abs(S[b].pos-S[b].target)>K?(S.slice(0,b+1).forEach(f=>delete f.pos),S.reducedLen=(S.reducedLen||G)-.1*G,S.reducedLen>.1*G&&te(S,G,K),!0):(h+=S[b].size,b++,!1)))}),Q(S,E),S},u}),c(n,"Core/Renderer/SVG/SVGElement.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(l,u,x,O){let{animate:Y,animObject:Q,stop:te}=l,{deg2rad:W,doc:G,svg:K,SVG_NS:S,win:T}=x,{addEvent:E,attr:_,createElement:g,crisp:w,css:k,defined:b,erase:C,extend:m,fireEvent:q,isArray:V,isFunction:H,isObject:M,isString:$,merge:P,objectEach:h,pick:f,pInt:L,pushUnique:v,replaceNested:A,syncTimeout:B,uniqueKey:R}=O;class D{_defaultGetter(X){let ie=f(this[X+"Value"],this[X],this.element?this.element.getAttribute(X):null,0);return/^-?[\d\.]+$/.test(ie)&&(ie=parseFloat(ie)),ie}_defaultSetter(X,ie,oe){oe.setAttribute(ie,X)}add(X){let ie,oe=this.renderer,le=this.element;return X&&(this.parentGroup=X),this.textStr!==void 0&&this.element.nodeName==="text"&&oe.buildText(this),this.added=!0,(!X||X.handleZ||this.zIndex)&&(ie=this.zIndexSetter()),ie||(X?X.element:oe.box).appendChild(le),this.onAdd&&this.onAdd(),this}addClass(X,ie){let oe=ie?"":this.attr("class")||"";return(X=(X||"").split(/ /g).reduce(function(le,ue){return oe.indexOf(ue)===-1&&le.push(ue),le},oe?[oe]:[]).join(" "))!==oe&&this.attr("class",X),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(X,ie,oe,le=!0){let ue,F,N,ee,ce={},j=this.renderer,I=j.alignedObjects,U=!!X;X?(this.alignOptions=X,this.alignByTranslate=ie,this.alignTo=oe):(X=this.alignOptions||{},ie=this.alignByTranslate,oe=this.alignTo);let J=!oe||$(oe)?oe||"renderer":void 0;J&&(U&&v(I,this),oe=void 0);let se=f(oe,j[J],j),ae=X.align,he=X.verticalAlign;return ue=(se.x||0)+(X.x||0),F=(se.y||0)+(X.y||0),ae==="right"?N=1:ae==="center"&&(N=2),N&&(ue+=((se.width||0)-(X.width||0))/N),ce[ie?"translateX":"x"]=Math.round(ue),he==="bottom"?ee=1:he==="middle"&&(ee=2),ee&&(F+=((se.height||0)-(X.height||0))/ee),ce[ie?"translateY":"y"]=Math.round(F),le&&(this[this.placed?"animate":"attr"](ce),this.placed=!0),this.alignAttr=ce,this}alignSetter(X){let ie={left:"start",center:"middle",right:"end"};ie[X]&&(this.alignValue=X,this.element.setAttribute("text-anchor",ie[X]))}animate(X,ie,oe){let le=Q(f(ie,this.renderer.globalAnimation,!0)),ue=le.defer;return G.hidden&&(le.duration=0),le.duration!==0?(oe&&(le.complete=oe),B(()=>{this.element&&Y(this,X,le)},ue)):(this.attr(X,void 0,oe||le.complete),h(X,function(F,N){le.step&&le.step.call(this,F,{prop:N,pos:1,elem:this})},this)),this}applyTextOutline(X){let ie=this.element;X.indexOf("contrast")!==-1&&(X=X.replace(/contrast/g,this.renderer.getContrast(ie.style.fill)));let oe=X.split(" "),le=oe[oe.length-1],ue=oe[0];if(ue&&ue!=="none"&&x.svg){this.fakeTS=!0,ue=ue.replace(/(^[\d\.]+)(.*?)$/g,function(j,I,U){return 2*Number(I)+U}),this.removeTextOutline();let F=G.createElementNS(S,"tspan");_(F,{class:"highcharts-text-outline",fill:le,stroke:le,"stroke-width":ue,"stroke-linejoin":"round"});let N=ie.querySelector("textPath")||ie;[].forEach.call(N.childNodes,j=>{let I=j.cloneNode(!0);I.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(U=>I.removeAttribute(U)),F.appendChild(I)});let ee=0;[].forEach.call(N.querySelectorAll("text tspan"),j=>{ee+=Number(j.getAttribute("dy"))});let ce=G.createElementNS(S,"tspan");ce.textContent="​",_(ce,{x:Number(ie.getAttribute("x")),dy:-ee}),F.appendChild(ce),N.insertBefore(F,N.firstChild)}}attr(X,ie,oe,le){let{element:ue}=this,F=D.symbolCustomAttribs,N,ee,ce=this,j;return typeof X=="string"&&ie!==void 0&&(N=X,(X={})[N]=ie),typeof X=="string"?ce=(this[X+"Getter"]||this._defaultGetter).call(this,X,ue):(h(X,function(I,U){j=!1,le||te(this,U),this.symbolName&&F.indexOf(U)!==-1&&(ee||(this.symbolAttr(X),ee=!0),j=!0),this.rotation&&(U==="x"||U==="y")&&(this.doTransform=!0),j||(this[U+"Setter"]||this._defaultSetter).call(this,I,U,ue)},this),this.afterSetters()),oe&&oe.call(this),ce}clip(X){if(X&&!X.clipPath){let ie=R()+"-",oe=this.renderer.createElement("clipPath").attr({id:ie}).add(this.renderer.defs);m(X,{clipPath:oe,id:ie,count:0}),X.add(oe)}return this.attr("clip-path",X?`url(${this.renderer.url}#${X.id})`:"none")}crisp(X,ie){ie=Math.round(ie||X.strokeWidth||0);let oe=X.x||this.x||0,le=X.y||this.y||0,ue=(X.width||this.width||0)+oe,F=(X.height||this.height||0)+le,N=w(oe,ie),ee=w(le,ie);return m(X,{x:N,y:ee,width:w(ue,ie)-N,height:w(F,ie)-ee}),b(X.strokeWidth)&&(X.strokeWidth=ie),X}complexColor(X,ie,oe){let le=this.renderer,ue,F,N,ee,ce,j,I,U,J,se,ae=[],he;q(this.renderer,"complexColor",{args:arguments},function(){if(X.radialGradient?F="radialGradient":X.linearGradient&&(F="linearGradient"),F){
vendor: 30,077 bytes, line 267
267if(N=X[F],ce=le.gradients,j=X.stops,J=oe.radialReference,V(N)&&(X[F]=N={x1:N[0],y1:N[1],x2:N[2],y2:N[3],gradientUnits:"userSpaceOnUse"}),F==="radialGradient"&&J&&!b(N.gradientUnits)&&(ee=N,N=P(N,le.getRadialAttr(J,ee),{gradientUnits:"userSpaceOnUse"})),h(N,function(me,ve){ve!=="id"&&ae.push(ve,me)}),h(j,function(me){ae.push(me)}),ce[ae=ae.join(",")])se=ce[ae].attr("id");else{N.id=se=R();let me=ce[ae]=le.createElement(F).attr(N).add(le.defs);me.radAttr=ee,me.stops=[],j.forEach(function(ve){ve[1].indexOf("rgba")===0?(I=(ue=u.parse(ve[1])).get("rgb"),U=ue.get("a")):(I=ve[1],U=1);let ke=le.createElement("stop").attr({offset:ve[0],"stop-color":I,"stop-opacity":U}).add(me);me.stops.push(ke)})}he="url("+le.url+"#"+se+")",oe.setAttribute(ie,he),oe.gradient=ae,X.toString=function(){return he}}})}css(X){let ie=this.styles,oe={},le=this.element,ue,F=!ie;if(ie&&h(X,function(N,ee){ie&&ie[ee]!==N&&(oe[ee]=N,F=!0)}),F){ie&&(X=m(ie,oe)),X.width===null||X.width==="auto"?delete this.textWidth:le.nodeName.toLowerCase()==="text"&&X.width&&(ue=this.textWidth=L(X.width)),m(this.styles,X),ue&&!K&&this.renderer.forExport&&delete X.width;let N=P(X);le.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(ee=>N&&delete N[ee]),N.color&&(N.fill=N.color)),k(le,N)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),X.textOutline&&this.applyTextOutline(X.textOutline)),this}dashstyleSetter(X){let ie,oe=this["stroke-width"];if(oe==="inherit"&&(oe=1),X=X&&X.toLowerCase()){let le=X.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(ie=le.length;ie--;)le[ie]=""+L(le[ie])*f(oe,NaN);X=le.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",X)}}destroy(){var ee;let X=this,ie=X.element||{},oe=X.renderer,le=ie.ownerSVGElement,ue=ie.nodeName==="SPAN"&&X.parentGroup||void 0,F,N;if(ie.onclick=ie.onmouseout=ie.onmouseover=ie.onmousemove=ie.point=null,te(X),X.clipPath&&le){let ce=X.clipPath;[].forEach.call(le.querySelectorAll("[clip-path],[CLIP-PATH]"),function(j){j.getAttribute("clip-path").indexOf(ce.element.id)>-1&&j.removeAttribute("clip-path")}),X.clipPath=ce.destroy()}if(X.connector=(ee=X.connector)==null?void 0:ee.destroy(),X.stops){for(N=0;N<X.stops.length;N++)X.stops[N].destroy();X.stops.length=0,X.stops=void 0}for(X.safeRemoveChild(ie);ue&&ue.div&&ue.div.childNodes.length===0;)F=ue.parentGroup,X.safeRemoveChild(ue.div),delete ue.div,ue=F;X.alignOptions&&C(oe.alignedObjects,X),h(X,function(ce,j){X[j]&&X[j].parentGroup===X&&X[j].destroy&&X[j].destroy(),delete X[j]})}dSetter(X,ie,oe){V(X)&&(typeof X[0]=="string"&&(X=this.renderer.pathToSegments(X)),this.pathArray=X,X=X.reduce((le,ue,F)=>ue&&ue.join?(F?le+" ":"")+ue.join(" "):(ue||"").toString(),"")),/(NaN| {2}|^$)/.test(X)&&(X="M 0 0"),this[ie]!==X&&(oe.setAttribute(ie,X),this[ie]=X)}fillSetter(X,ie,oe){typeof X=="string"?oe.setAttribute(ie,X):X&&this.complexColor(X,ie,oe)}hrefSetter(X,ie,oe){oe.setAttributeNS("http://www.w3.org/1999/xlink",ie,X)}getBBox(X,ie){let oe,le,ue,F,{alignValue:N,element:ee,renderer:ce,styles:j,textStr:I}=this,{cache:U,cacheKeys:J}=ce,se=ee.namespaceURI===this.SVG_NS,ae=f(ie,this.rotation,0),he=ce.styledMode?ee&&D.prototype.getStyle.call(ee,"font-size"):j.fontSize;if(b(I)&&((F=I.toString()).indexOf("<")===-1&&(F=F.replace(/\d/g,"0")),F+=["",ce.rootFontSize,he,ae,this.textWidth,N,j.textOverflow,j.fontWeight].join(",")),F&&!X&&(oe=U[F]),!oe||oe.polygon){if(se||ce.forExport){try{ue=this.fakeTS&&function(ve){let ke=ee.querySelector(".highcharts-text-outline");ke&&k(ke,{display:ve})},H(ue)&&ue("none"),oe=ee.getBBox?m({},ee.getBBox()):{width:ee.offsetWidth,height:ee.offsetHeight,x:0,y:0},H(ue)&&ue("")}catch{}(!oe||oe.width<0)&&(oe={x:0,y:0,width:0,height:0})}else oe=this.htmlGetBBox();le=oe.height,se&&(oe.height=le={"11px,17":14,"13px,20":16}[`${he||""},${Math.round(le)}`]||le),ae&&(oe=this.getRotatedBox(oe,ae));let me={bBox:oe};q(this,"afterGetBBox",me),oe=me.bBox}if(F&&(I===""||oe.height>0)){for(;J.length>250;)delete U[J.shift()];U[F]||J.push(F),U[F]=oe}return oe}getRotatedBox(X,ie){let{x:oe,y:le,width:ue,height:F}=X,{alignValue:N,translateY:ee,rotationOriginX:ce=0,rotationOriginY:j=0}=this,I={right:1,center:.5}[N||0]||0,U=Number(this.element.getAttribute("y")||0)-(ee?0:le),J=ie*W,se=(ie-90)*W,ae=Math.cos(J),he=Math.sin(J),me=ue*ae,ve=ue*he,ke=Math.cos(se),Pe=Math.sin(se),[[ge,de],[fe,xe]]=[ce,j].map(ot=>[ot-ot*ae,ot*he]),Ee=oe+I*(ue-me)+ge+xe+U*ke,Se=Ee+me,be=Se-F*ke,Te=be-me,Le=le+U-I*ve-de+fe+U*Pe,Ne=Le+ve,_e=Ne-F*Pe,We=_e-ve,He=Math.min(Ee,Se,be,Te),Ye=Math.min(Le,Ne,_e,We),Ge=Math.max(Ee,Se,be,Te)-He,Ve=Math.max(Le,Ne,_e,We)-Ye;return{x:He,y:Ye,width:Ge,height:Ve,polygon:[[Ee,Le],[Se,Ne],[be,_e],[Te,We]]}}getStyle(X){return T.getComputedStyle(this.element||this,"").getPropertyValue(X)}hasClass(X){return(""+this.attr("class")).split(" ").indexOf(X)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(X,ie){this.onEvents={},this.opacity=1,this.SVG_NS=S,this.element=ie==="span"||ie==="body"?g(ie):G.createElementNS(this.SVG_NS,ie),this.renderer=X,this.styles={},q(this,"afterInit")}on(X,ie){let{onEvents:oe}=this;return oe[X]&&oe[X](),oe[X]=E(this.element,X,ie),this}opacitySetter(X,ie,oe){let le=Number(Number(X).toFixed(3));this.opacity=le,oe.setAttribute(ie,le)}reAlign(){var X;(X=this.alignOptions)!=null&&X.width&&this.alignOptions.align!=="left"&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(X){return this.attr("class",(""+this.attr("class")).replace($(X)?RegExp(`(^| )${X}( |$)`):X," ").replace(/ +/g," ").trim())}removeTextOutline(){let X=this.element.querySelector("tspan.highcharts-text-outline");X&&this.safeRemoveChild(X)}safeRemoveChild(X){let ie=X.parentNode;ie&&ie.removeChild(X)}setRadialReference(X){let ie=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=X,ie&&ie.radAttr&&ie.animate(this.renderer.getRadialAttr(X,ie.radAttr)),this}shadow(X){var ue;let{renderer:ie}=this,oe=P(((ue=this.parentGroup)==null?void 0:ue.rotation)===90?{offsetX:-1,offsetY:-1}:{},M(X)?X:{}),le=ie.shadowDefinition(oe);return this.attr({filter:X?`url(${ie.url}#${le})`:"none"})}show(X=!0){return this.attr({visibility:X?"inherit":"visible"})}"stroke-widthSetter"(X,ie,oe){this[ie]=X,oe.setAttribute(ie,X)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let X=this.getStyle("stroke-width"),ie=0,oe;return/px$/.test(X)?ie=L(X):X!==""&&(_(oe=G.createElementNS(S,"rect"),{width:X,"stroke-width":0}),this.element.parentNode.appendChild(oe),ie=oe.getBBox().width,oe.parentNode.removeChild(oe)),ie}symbolAttr(X){let ie=this;D.symbolCustomAttribs.forEach(function(oe){ie[oe]=f(X[oe],ie[oe])}),ie.attr({d:ie.renderer.symbols[ie.symbolName](ie.x,ie.y,ie.width,ie.height,ie)})}textSetter(X){X!==this.textStr&&(delete this.textPxLength,this.textStr=X,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(X){let ie=this.element,oe=ie.getElementsByTagName("title")[0]||G.createElementNS(this.SVG_NS,"title");ie.insertBefore?ie.insertBefore(oe,ie.firstChild):ie.appendChild(oe),oe.textContent=A(f(X,""),[/<[^>]*>/g,""]).replace(/&lt;/g,"<").replace(/&gt;/g,">")}toFront(){let X=this.element;return X.parentNode.appendChild(X),this}translate(X,ie){return this.attr({translateX:X,translateY:ie})}updateTransform(X="transform"){var U;let{element:ie,matrix:oe,rotation:le=0,rotationOriginX:ue,rotationOriginY:F,scaleX:N,scaleY:ee,translateX:ce=0,translateY:j=0}=this,I=["translate("+ce+","+j+")"];b(oe)&&I.push("matrix("+oe.join(",")+")"),le&&(I.push("rotate("+le+" "+f(ue,ie.getAttribute("x"),0)+" "+f(F,ie.getAttribute("y")||0)+")"),((U=this.text)==null?void 0:U.element.tagName)==="SPAN"&&this.text.attr({rotation:le,rotationOriginX:(ue||0)-this.padding,rotationOriginY:(F||0)-this.padding})),(b(N)||b(ee))&&I.push("scale("+f(N,1)+" "+f(ee,1)+")"),I.length&&!(this.text||this).textPath&&ie.setAttribute(X,I.join(" "))}visibilitySetter(X,ie,oe){X==="inherit"?oe.removeAttribute(ie):this[ie]!==X&&oe.setAttribute(ie,X),this[ie]=X}xGetter(X){return this.element.nodeName==="circle"&&(X==="x"?X="cx":X==="y"&&(X="cy")),this._defaultGetter(X)}zIndexSetter(X,ie){let oe=this.renderer,le=this.parentGroup,ue=(le||oe).element||oe.box,F=this.element,N=ue===oe.box,ee,ce,j,I=!1,U,J=this.added,se;if(b(X)?(F.setAttribute("data-z-index",X),X=+X,this[ie]===X&&(J=!1)):b(this[ie])&&F.removeAttribute("data-z-index"),this[ie]=X,J){for((X=this.zIndex)&&le&&(le.handleZ=!0),se=(ee=ue.childNodes).length-1;se>=0&&!I;se--)U=!b(j=(ce=ee[se]).getAttribute("data-z-index")),ce!==F&&(X<0&&U&&!N&&!se?(ue.insertBefore(F,ee[se]),I=!0):(L(j)<=X||U&&(!b(X)||X>=0))&&(ue.insertBefore(F,ee[se+1]),I=!0));I||(ue.insertBefore(F,ee[N?3:0]),I=!0)}return I}}return D.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],D.prototype.strokeSetter=D.prototype.fillSetter,D.prototype.yGetter=D.prototype.xGetter,D.prototype.matrixSetter=D.prototype.rotationOriginXSetter=D.prototype.rotationOriginYSetter=D.prototype.rotationSetter=D.prototype.scaleXSetter=D.prototype.scaleYSetter=D.prototype.translateXSetter=D.prototype.translateYSetter=D.prototype.verticalAlignSetter=function(Z,X){this[X]=Z,this.doTransform=!0},D}),c(n,"Core/Renderer/SVG/SVGLabel.js",[n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],function(l,u){let{defined:x,extend:O,isNumber:Y,merge:Q,pick:te,removeEvent:W}=u;class G extends l{constructor(S,T,E,_,g,w,k,b,C,m){let q;super(S,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=T,this.x=E,this.y=_,this.anchorX=w,this.anchorY=k,this.baseline=C,this.className=m,this.addClass(m==="button"?"highcharts-no-tooltip":"highcharts-label"),m&&this.addClass("highcharts-"+m),this.text=S.text(void 0,0,0,b).attr({zIndex:1}),typeof g=="string"&&((q=/^url\((.*?)\)$/.test(g))||this.renderer.symbols[g])&&(this.symbolKey=g),this.bBox=G.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=S.styledMode||q,this.deferredAttr={},this.alignFactor=0}alignSetter(S){let T={left:0,center:.5,right:1}[S];T!==this.alignFactor&&(this.alignFactor=T,this.bBox&&Y(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(S,T){this.anchorX=S,this.boxAttr(T,Math.round(S)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(S,T){this.anchorY=S,this.boxAttr(T,S-this.ySetting)}boxAttr(S,T){this.box?this.box.attr(S,T):this.deferredAttr[S]=T}css(S){if(S){let T={};S=Q(S),G.textProps.forEach(E=>{S[E]!==void 0&&(T[E]=S[E],delete S[E])}),this.text.css(T),"fontSize"in T||"fontWeight"in T?this.updateTextPadding():("width"in T||"textOverflow"in T)&&this.updateBoxSize()}return l.prototype.css.call(this,S)}destroy(){W(this.element,"mouseenter"),W(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),l.prototype.destroy.call(this)}fillSetter(S,T){S&&(this.needsBox=!0),this.fill=S,this.boxAttr(T,S)}getBBox(S,T){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();let{padding:E,height:_=0,translateX:g=0,translateY:w=0,width:k=0}=this,b=te(this.paddingLeft,E),C=T??(this.rotation||0),m={width:k,height:_,x:g+this.bBox.x-b,y:w+this.bBox.y-E+this.baselineOffset};return C&&(m=this.getRotatedBox(m,C)),m}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(S){this.heightSetting=S,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:te(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&x(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(S,T){Y(S)?S!==this[T]&&(this[T]=S,this.updateTextPadding()):this[T]=void 0}rSetter(S,T){this.boxAttr(T,S)}strokeSetter(S,T){this.stroke=S,this.boxAttr(T,S)}"stroke-widthSetter"(S,T){S&&(this.needsBox=!0),this["stroke-width"]=S,this.boxAttr(T,S)}"text-alignSetter"(S){this.textAlign=S}textSetter(S){S!==void 0&&this.text.attr({text:S}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let S,T=this.text,E={},_=this.padding,g=this.bBox=(!Y(this.widthSetting)||!Y(this.heightSetting)||this.textAlign)&&x(T.textStr)?T.getBBox(void 0,0):G.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||g.height||0)+2*_;let w=this.renderer.fontMetrics(T);if(this.baselineOffset=_+Math.min((this.text.firstLineMetrics||w).b,g.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-w.h)/2),this.needsBox&&!T.textPath){if(!this.box){let k=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();k.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),k.add(this)}S=this.getCrispAdjust(),E.x=S,E.y=(this.baseline?-this.baselineOffset:0)+S,E.width=Math.round(this.width),E.height=Math.round(this.height),this.box.attr(O(E,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let S=this.text;if(!S.textPath){this.updateBoxSize();let T=this.baseline?0:this.baselineOffset,E=te(this.paddingLeft,this.padding);x(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(E+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(E!==S.x||T!==S.y)&&(S.attr("x",E),S.hasBoxWidthChanged&&(this.bBox=S.getBBox(!0)),T!==void 0&&S.attr("y",T)),S.x=E,S.y=T}}widthSetter(S){this.widthSetting=Y(S)?S:void 0,this.doUpdate=!0}getPaddedWidth(){let S=this.padding,T=te(this.paddingLeft,S),E=te(this.paddingRight,S);return(this.widthSetting||this.bBox.width||0)+T+E}xSetter(S){this.x=S,this.alignFactor&&(S-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(S),this.attr("translateX",this.xSetting)}ySetter(S){this.ySetting=this.y=Math.round(S),this.attr("translateY",this.ySetting)}}return G.emptyBBox={width:0,height:0,x:0,y:0},G.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],G}),c(n,"Core/Renderer/SVG/Symbols.js",[n["Core/Utilities.js"]],function(l){let{defined:u,isNumber:x,pick:O}=l;function Y(W,G,K,S,T){let E=[];if(T){let _=T.start||0,g=O(T.r,K),w=O(T.r,S||K),k=2e-4/Math.max(g,1),b=Math.abs((T.end||0)-_-2*Math.PI)<k,C=(T.end||0)-k,m=T.innerR,q=O(T.open,b),V=Math.cos(_),H=Math.sin(_),M=Math.cos(C),$=Math.sin(C),P=O(T.longArc,C-_-Math.PI<k?0:1),h=["A",g,w,0,P,O(T.clockwise,1),W+g*M,G+w*$];h.params={start:_,end:C,cx:W,cy:G},E.push(["M",W+g*V,G+w*H],h),u(m)&&((h=["A",m,m,0,P,u(T.clockwise)?1-T.clockwise:0,W+m*V,G+m*H]).params={start:C,end:_,cx:W,cy:G},E.push(q?["M",W+m*M,G+m*$]:["L",W+m*M,G+m*$],h)),q||E.push(["Z"])}return E}function Q(W,G,K,S,T){return T&&T.r?te(W,G,K,S,T):[["M",W,G],["L",W+K,G],["L",W+K,G+S],["L",W,G+S],["Z"]]}function te(W,G,K,S,T){let E=(T==null?void 0:T.r)||0;return[["M",W+E,G],["L",W+K-E,G],["A",E,E,0,0,1,W+K,G+E],["L",W+K,G+S-E],["A",E,E,0,0,1,W+K-E,G+S],["L",W+E,G+S],["A",E,E,0,0,1,W,G+S-E],["L",W,G+E],["A",E,E,0,0,1,W+E,G],["Z"]]}return{arc:Y,callout:function(W,G,K,S,T){let E=Math.min(T&&T.r||0,K,S),_=E+6,g=T&&T.anchorX,w=T&&T.anchorY||0,k=te(W,G,K,S,{r:E});if(!x(g)||g<K&&g>0&&w<S&&w>0)return k;if(W+g>K-_)if(w>G+_&&w<G+S-_)k.splice(3,1,["L",W+K,w-6],["L",W+K+6,w],["L",W+K,w+6],["L",W+K,G+S-E]);else if(g<K){let b=w<G+_,C=b?G:G+S;k.splice(b?2:5,0,["L",g,w],["L",W+K-E,C])}else k.splice(3,1,["L",W+K,S/2],["L",g,w],["L",W+K,S/2],["L",W+K,G+S-E]);else if(W+g<_)if(w>G+_&&w<G+S-_)k.splice(7,1,["L",W,w+6],["L",W-6,w],["L",W,w-6],["L",W,G+E]);else if(g>0){let b=w<G+_,C=b?G:G+S;k.splice(b?1:6,0,["L",g,w],["L",W+E,C])}else k.splice(7,1,["L",W,S/2],["L",g,w],["L",W,S/2],["L",W,G+E]);else w>S&&g<K-_?k.splice(5,1,["L",g+6,G+S],["L",g,G+S+6],["L",g-6,G+S],["L",W+E,G+S]):w<0&&g>_&&k.splice(1,1,["L",g-6,G],["L",g,G-6],["L",g+6,G],["L",K-E,G]);return k},circle:function(W,G,K,S){return Y(W+K/2,G+S/2,K/2,S/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(W,G,K,S){return[["M",W+K/2,G],["L",W+K,G+S/2],["L",W+K/2,G+S],["L",W,G+S/2],["Z"]]},rect:Q,roundedRect:te,square:Q,triangle:function(W,G,K,S){return[["M",W+K/2,G],["L",W+K,G+S],["L",W,G+S],["Z"]]},"triangle-down":function(W,G,K,S){return[["M",W,G],["L",W+K,G],["L",W+K/2,G+S],["Z"]]}}}),c(n,"Core/Renderer/SVG/TextBuilder.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(l,u,x){let{doc:O,SVG_NS:Y,win:Q}=u,{attr:te,extend:W,fireEvent:G,isString:K,objectEach:S,pick:T}=x;return class{constructor(E){let _=E.styles;this.renderer=E.renderer,this.svgElement=E,this.width=E.textWidth,this.textLineHeight=_&&_.lineHeight,this.textOutline=_&&_.textOutline,this.ellipsis=!!(_&&_.textOverflow==="ellipsis"),this.noWrap=!!(_&&_.whiteSpace==="nowrap")}buildSVG(){let E=this.svgElement,_=E.element,g=E.renderer,w=T(E.textStr,"").toString(),k=w.indexOf("<")!==-1,b=_.childNodes,C=!E.added&&g.box,m=[w,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,E.getStyle("font-size"),this.width].join(",");if(m!==E.textCache){E.textCache=m,delete E.actualWidth;for(let q=b.length;q--;)_.removeChild(b[q]);if(k||this.ellipsis||this.width||E.textPath||w.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(w))){if(w!==""){C&&C.appendChild(_);let q=new l(w);this.modifyTree(q.nodes),q.addToDOM(_),this.modifyDOM(),this.ellipsis&&(_.textContent||"").indexOf("…")!==-1&&E.attr("title",this.unescapeEntities(E.textStr||"",["&lt;","&gt;"])),C&&C.removeChild(_)}}else _.appendChild(O.createTextNode(this.unescapeEntities(w)));K(this.textOutline)&&E.applyTextOutline&&E.applyTextOutline(this.textOutline)}}modifyDOM(){let E,_=this.svgElement,g=te(_.element,"x");for(_.firstLineMetrics=void 0;(E=_.element.firstChild)&&/^[\s\u200B]*$/.test(E.textContent||" ");)_.element.removeChild(E);[].forEach.call(_.element.querySelectorAll("tspan.highcharts-br"),(C,m)=>{C.nextSibling&&C.previousSibling&&(m===0&&C.previousSibling.nodeType===1&&(_.firstLineMetrics=_.renderer.fontMetrics(C.previousSibling)),te(C,{dy:this.getLineHeight(C.nextSibling),x:g}))});let w=this.width||0;if(!w)return;let k=(C,m)=>{let q=C.textContent||"",V=q.replace(/([^\^])-/g,"$1- ").split(" "),H=!this.noWrap&&(V.length>1||_.element.childNodes.length>1),M=this.getLineHeight(m),$=0,P=_.actualWidth;if(this.ellipsis)q&&this.truncate(C,q,void 0,0,Math.max(0,w-.8*M),(h,f)=>h.substring(0,f)+"…");else if(H){let h=[],f=[];for(;m.firstChild&&m.firstChild!==C;)f.push(m.firstChild),m.removeChild(m.firstChild);for(;V.length;)V.length&&!this.noWrap&&$>0&&(h.push(C.textContent||""),C.textContent=V.join(" ").replace(/- /g,"-")),this.truncate(C,void 0,V,$===0&&P||0,w,(L,v)=>V.slice(0,v).join(" ").replace(/- /g,"-")),P=_.actualWidth,$++;f.forEach(L=>{m.insertBefore(L,C)}),h.forEach(L=>{m.insertBefore(O.createTextNode(L),C);let v=O.createElementNS(Y,"tspan");v.textContent="​",te(v,{dy:M,x:g}),m.insertBefore(v,C)})}},b=C=>{[].slice.call(C.childNodes).forEach(m=>{m.nodeType===Q.Node.TEXT_NODE?k(m,C):(m.className.baseVal.indexOf("highcharts-br")!==-1&&(_.actualWidth=0),b(m))})};b(_.element)}getLineHeight(E){let _=E.nodeType===Q.Node.TEXT_NODE?E.parentElement:E;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(_||this.svgElement.element).h}modifyTree(E){let _=(g,w)=>{let{attributes:k={},children:b,style:C={},tagName:m}=g,q=this.renderer.styledMode;if(m==="b"||m==="strong"?q?k.class="highcharts-strong":C.fontWeight="bold":(m==="i"||m==="em")&&(q?k.class="highcharts-emphasized":C.fontStyle="italic"),C&&C.color&&(C.fill=C.color),m==="br"){k.class="highcharts-br",g.textContent="​";let V=E[w+1];V&&V.textContent&&(V.textContent=V.textContent.replace(/^ +/gm,""))}else m==="a"&&b&&b.some(V=>V.tagName==="#text")&&(g.children=[{children:b,tagName:"tspan"}]);m!=="#text"&&m!=="a"&&(g.tagName="tspan"),W(g,{attributes:k,style:C}),b&&b.filter(V=>V.tagName!=="#text").forEach(_)};E.forEach(_),G(this.svgElement,"afterModifyTree",{nodes:E})}truncate(E,_,g,w,k,b){let C,m,q=this.svgElement,{rotation:V}=q,H=[],M=g?1:0,$=(_||g||"").length,P=$,h=function(f,L){let v=L||f,A=E.parentNode;if(A&&H[v]===void 0&&A.getSubStringLength)try{H[v]=w+A.getSubStringLength(0,g?v+1:v)}catch{}return H[v]};if(q.rotation=0,w+(m=h(E.textContent.length))>k){for(;M<=$;)P=Math.ceil((M+$)/2),g&&(C=b(g,P)),m=h(P,C&&C.length-1),M===$?M=$+1:m>k?$=P-1:M=P;$===0?E.textContent="":_&&$===_.length-1||(E.textContent=C||b(_||g,P))}g&&g.splice(0,P),q.actualWidth=m,q.rotation=V}unescapeEntities(E,_){return S(this.renderer.escapes,function(g,w){_&&_.indexOf(g)!==-1||(E=E.toString().replace(RegExp(g,"g"),w))}),E}}}),c(n,"Core/Renderer/SVG/SVGRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Defaults.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGLabel.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Renderer/SVG/TextBuilder.js"],n["Core/Utilities.js"]],function(l,u,x,O,Y,Q,te,W,G,K){let S,{defaultOptions:T}=u,{charts:E,deg2rad:_,doc:g,isFirefox:w,isMS:k,isWebKit:b,noop:C,SVG_NS:m,symbolSizes:q,win:V}=O,{addEvent:H,attr:M,createElement:$,crisp:P,css:h,defined:f,destroyObjectProperties:L,extend:v,isArray:A,isNumber:B,isObject:R,isString:D,merge:Z,pick:X,pInt:ie,replaceNested:oe,uniqueKey:le}=K;class ue{constructor(N,ee,ce,j,I,U,J){let se,ae,he=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),me=he.element;J||he.css(this.getStyle(j||{})),N.appendChild(me),M(N,"dir","ltr"),N.innerHTML.indexOf("xmlns")===-1&&M(me,"xmlns",this.SVG_NS),this.box=me,this.boxWrapper=he,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(g.createTextNode("Created with Highcharts 11.4.5")),this.defs=this.createElement("defs").add(),this.allowHTML=U,this.forExport=I,this.styledMode=J,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=he.getStyle("font-size"),this.setSize(ee,ce,!1),w&&N.getBoundingClientRect&&((se=function(){h(N,{left:0,top:0}),ae=N.getBoundingClientRect(),h(N,{left:Math.ceil(ae.left)-ae.left+"px",top:Math.ceil(ae.top)-ae.top+"px"})})(),this.unSubPixelFix=H(V,"resize",se))}definition(N){return new l([N]).addToDOM(this.defs.element)}getReferenceURL(){if((w||b)&&g.getElementsByTagName("base").length){if(!f(S)){let N=le(),ee=new l([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:N},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${N})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(g.body);h(ee,{position:"fixed",top:0,left:0,zIndex:9e5});let ce=g.elementFromPoint(6,6);S=(ce&&ce.id)==="hitme",g.body.removeChild(ee)}if(S)return oe(V.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(N){return this.style=v({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},N),this.style}setStyle(N){this.boxWrapper.css(this.getStyle(N))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let N=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),L(this.gradients||{}),this.gradients=null,this.defs=N.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(N){return new this.Element(this,N)}getRadialAttr(N,ee){return{cx:N[0]-N[2]/2+(ee.cx||0)*N[2],cy:N[1]-N[2]/2+(ee.cy||0)*N[2],r:(ee.r||0)*N[2]}}shadowDefinition(N){let ee=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(N).map(j=>`${j}-${N[j]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),ce=Z({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},N);return this.defs.element.querySelector(`#${ee}`)||this.definition({tagName:"filter",attributes:{id:ee,filterUnits:ce.filterUnits},children:this.getShadowFilterContent(ce)}),ee}getShadowFilterContent(N){return[{tagName:"feDropShadow",attributes:{dx:N.offsetX,dy:N.offsetY,"flood-color":N.color,"flood-opacity":Math.min(5*N.opacity,1),stdDeviation:N.width/2}}]}buildText(N){new G(N).buildSVG()}getContrast(N){let ee=x.parse(N).rgba.map(j=>{let I=j/255;return I<=.03928?I/12.92:Math.pow((I+.055)/1.055,2.4)}),ce=.2126*ee[0]+.7152*ee[1]+.0722*ee[2];return 1.05/(ce+.05)>(ce+.05)/.05?"#FFFFFF":"#000000"}button(N,ee,ce,j,I={},U,J,se,ae,he){let me=this.label(N,ee,ce,ae,void 0,void 0,he,void 0,"button"),ve=this.styledMode,ke=arguments,Pe=0;I=Z(T.global.buttonTheme,I),ve&&(delete I.fill,delete I.stroke,delete I["stroke-width"]);let ge=I.states||{},de=I.style||{};delete I.states,delete I.style;let fe=[l.filterUserAttributes(I)],xe=[de];return ve||["hover","select","disabled"].forEach((Ee,Se)=>{fe.push(Z(fe[0],l.filterUserAttributes(ke[Se+5]||ge[Ee]||{}))),xe.push(fe[Se+1].style),delete fe[Se+1].style}),H(me.element,k?"mouseover":"mouseenter",function(){Pe!==3&&me.setState(1)}),H(me.element,k?"mouseout":"mouseleave",function(){Pe!==3&&me.setState(Pe)}),me.setState=(Ee=0)=>{if(Ee!==1&&(me.state=Pe=Ee),me.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][Ee]),!ve){me.attr(fe[Ee]);let Se=xe[Ee];R(Se)&&me.css(Se)}},me.attr(fe[0]),!ve&&(me.css(v({cursor:"default"},de)),he&&me.text.css({pointerEvents:"none"})),me.on("touchstart",Ee=>Ee.stopPropagation()).on("click",function(Ee){Pe!==3&&j.call(me,Ee)})}crispLine(N,ee){let[ce,j]=N;return f(ce[1])&&ce[1]===j[1]&&(ce[1]=j[1]=P(ce[1],ee)),f(ce[2])&&ce[2]===j[2]&&(ce[2]=j[2]=P(ce[2],ee)),N}path(N){let ee=this.styledMode?{}:{fill:"none"};return A(N)?ee.d=N:R(N)&&v(ee,N),this.createElement("path").attr(ee)}circle(N,ee,ce){let j=R(N)?N:N===void 0?{}:{x:N,y:ee,r:ce},I=this.createElement("circle");return I.xSetter=I.ySetter=function(U,J,se){se.setAttribute("c"+J,U)},I.attr(j)}arc(N,ee,ce,j,I,U){let J;R(N)?(ee=(J=N).y,ce=J.r,j=J.innerR,I=J.start,U=J.end,N=J.x):J={innerR:j,start:I,end:U};let se=this.symbol("arc",N,ee,ce,ce,J);return se.r=ce,se}rect(N,ee,ce,j,I,U){let J=R(N)?N:N===void 0?{}:{x:N,y:ee,r:I,width:Math.max(ce||0,0),height:Math.max(j||0,0)},se=this.createElement("rect");return this.styledMode||(U!==void 0&&(J["stroke-width"]=U,v(J,se.crisp(J))),J.fill="none"),se.rSetter=function(ae,he,me){se.r=ae,M(me,{rx:ae,ry:ae})},se.rGetter=function(){return se.r||0},se.attr(J)}roundedRect(N){return this.symbol("roundedRect").attr(N)}setSize(N,ee,ce){this.width=N,this.height=ee,this.boxWrapper.animate({width:N,height:ee},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:X(ce,!0)?void 0:0}),this.alignElements()}g(N){let ee=this.createElement("g");return N?ee.attr({class:"highcharts-"+N}):ee}image(N,ee,ce,j,I,U){let J={preserveAspectRatio:"none"};B(ee)&&(J.x=ee),B(ce)&&(J.y=ce),B(j)&&(J.width=j),B(I)&&(J.height=I);let se=this.createElement("image").attr(J),ae=function(he){se.attr({href:N}),U.call(se,he)};if(U){se.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let he=new V.Image;H(he,"load",ae),he.src=N,he.complete&&ae({})}else se.attr({href:N});return se}symbol(N,ee,ce,j,I,U){let J,se,ae,he,me=this,ve=/^url\((.*?)\)$/,ke=ve.test(N),Pe=!ke&&(this.symbols[N]?N:"circle"),ge=Pe&&this.symbols[Pe];if(ge)typeof ee=="number"&&(se=ge.call(this.symbols,ee||0,ce||0,j||0,I||0,U)),J=this.path(se),me.styledMode||J.attr("fill","none"),v(J,{symbolName:Pe||void 0,x:ee,y:ce,width:j,height:I}),U&&v(J,U);else if(ke){ae=N.match(ve)[1];let de=J=this.image(ae);de.imgwidth=X(U&&U.width,q[ae]&&q[ae].width),de.imgheight=X(U&&U.height,q[ae]&&q[ae].height),he=fe=>fe.attr({width:fe.width,height:fe.height}),["width","height"].forEach(fe=>{de[`${fe}Setter`]=function(xe,Ee){this[Ee]=xe;let{alignByTranslate:Se,element:be,width:Te,height:Le,imgwidth:Ne,imgheight:_e}=this,We=Ee==="width"?Ne:_e,He=1;U&&U.backgroundSize==="within"&&Te&&Le&&Ne&&_e?(He=Math.min(Te/Ne,Le/_e),M(be,{width:Math.round(Ne*He),height:Math.round(_e*He)})):be&&We&&be.setAttribute(Ee,We),!Se&&Ne&&_e&&this.translate(((Te||0)-Ne*He)/2,((Le||0)-_e*He)/2)}}),f(ee)&&de.attr({x:ee,y:ce}),de.isImg=!0,f(de.imgwidth)&&f(de.imgheight)?he(de):(de.attr({width:0,height:0}),$("img",{onload:function(){let fe=E[me.chartIndex];this.width===0&&(h(this,{position:"absolute",top:"-999em"}),g.body.appendChild(this)),q[ae]={width:this.width,height:this.height},de.imgwidth=this.width,de.imgheight=this.height,de.element&&he(de),this.parentNode&&this.parentNode.removeChild(this),me.imgCount--,me.imgCount||!fe||fe.hasLoaded||fe.onload()},src:ae}),this.imgCount++)}return J}clipRect(N,ee,ce,j){return this.rect(N,ee,ce,j,0)}text(N,ee,ce,j){let I={};if(j&&(this.allowHTML||!this.forExport))return this.html(N,ee,ce);I.x=Math.round(ee||0),ce&&(I.y=Math.round(ce)),f(N)&&(I.text=N);let U=this.createElement("text").attr(I);return j&&(!this.forExport||this.allowHTML)||(U.xSetter=function(J,se,ae){let he=ae.getElementsByTagName("tspan"),me=ae.getAttribute(se);for(let ve=0,ke;ve<he.length;ve++)(ke=he[ve]).getAttribute(se)===me&&ke.setAttribute(se,J);ae.setAttribute(se,J)}),U}fontMetrics(N){let ee=ie(Q.prototype.getStyle.call(N,"font-size")||0),ce=ee<24?ee+3:Math.round(1.2*ee),j=Math.round(.8*ce);return{h:ce,b:j,f:ee}}rotCorr(N,ee,ce){let j=N;return ee&&ce&&(j=Math.max(j*Math.cos(ee*_),4)),{x:-N/3*Math.sin(ee*_),y:j}}pathToSegments(N){let ee=[],ce=[],j={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let I=0;I<N.length;I++)D(ce[0])&&B(N[I])&&ce.length===j[ce[0].toUpperCase()]&&N.splice(I,0,ce[0].replace("M","L").replace("m","l")),typeof N[I]=="string"&&(ce.length&&ee.push(ce.slice(0)),ce.length=0),ce.push(N[I]);return ee.push(ce.slice(0)),ee}label(N,ee,ce,j,I,U,J,se,ae){return new te(this,N,ee,ce,j,I,U,J,se,ae)}
267alignElements(){this.alignedObjects.forEach(N=>N.align())}}return v(ue.prototype,{Element:Q,SVG_NS:m,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:W,draw:C}),Y.registerRendererType("svg",ue,!0),ue}),c(n,"Core/Renderer/HTML/HTMLElement.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Globals.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],function(l,u,x,O){let{composed:Y}=u,{attr:Q,css:te,createElement:W,defined:G,extend:K,pInt:S,pushUnique:T}=O;function E(k,b,C){var q;let m=((q=this.div)==null?void 0:q.style)||C.style;x.prototype[`${b}Setter`].call(this,k,b,C),m&&(m[b]=k)}let _=(k,b)=>{var C;if(!k.div){let m=Q(k.element,"class"),q=k.css,V=W("div",m?{className:m}:void 0,{position:"absolute",left:`${k.translateX||0}px`,top:`${k.translateY||0}px`,...k.styles,display:k.display,opacity:k.opacity,visibility:k.visibility},((C=k.parentGroup)==null?void 0:C.div)||b);k.classSetter=(H,M,$)=>{$.setAttribute("class",H),V.className=H},k.translateXSetter=k.translateYSetter=(H,M)=>{k[M]=H,V.style[M==="translateX"?"left":"top"]=`${H}px`,k.doTransform=!0},k.opacitySetter=k.visibilitySetter=E,k.css=H=>(q.call(k,H),H.cursor&&(V.style.cursor=H.cursor),H.pointerEvents&&(V.style.pointerEvents=H.pointerEvents),k),k.on=function(){return x.prototype.on.apply({element:V,onEvents:k.onEvents},arguments),k},k.div=V}return k.div};class g extends x{static compose(b){T(Y,this.compose)&&(b.prototype.html=function(C,m,q){return new g(this,"span").attr({text:C,x:Math.round(m),y:Math.round(q)})})}constructor(b,C){super(b,C),this.css({position:"absolute",...b.styledMode?{}:{fontFamily:b.style.fontFamily,fontSize:b.style.fontSize}}),this.element.style.whiteSpace="nowrap"}getSpanCorrection(b,C,m){this.xCorr=-b*m,this.yCorr=-C}css(b){let C,{element:m}=this,q=m.tagName==="SPAN"&&b&&"width"in b,V=q&&b.width;return q&&(delete b.width,this.textWidth=S(V)||void 0,C=!0),(b==null?void 0:b.textOverflow)==="ellipsis"&&(b.whiteSpace="nowrap",b.overflow="hidden"),K(this.styles,b),te(m,b),C&&this.updateTransform(),this}htmlGetBBox(){let{element:b}=this;return{x:b.offsetLeft,y:b.offsetTop,width:b.offsetWidth,height:b.offsetHeight}}updateTransform(){var B;if(!this.added){this.alignOnAdd=!0;return}let{element:b,renderer:C,rotation:m,rotationOriginX:q,rotationOriginY:V,styles:H,textAlign:M="left",textWidth:$,translateX:P=0,translateY:h=0,x:f=0,y:L=0}=this,v={left:0,center:.5,right:1}[M],A=H.whiteSpace;if(te(b,{marginLeft:`${P}px`,marginTop:`${h}px`}),b.tagName==="SPAN"){let R=[m,M,b.innerHTML,$,this.textAlign].join(","),D=-(((B=this.parentGroup)==null?void 0:B.padding)*1)||0,Z,X=!1;if($!==this.oldTextWidth){let F=this.textPxLength?this.textPxLength:(te(b,{width:"",whiteSpace:A||"nowrap"}),b.offsetWidth),N=$||0;(N>this.oldTextWidth||F>N)&&(/[ \-]/.test(b.textContent||b.innerText)||b.style.textOverflow==="ellipsis")&&(te(b,{width:F>N||m?$+"px":"auto",display:"block",whiteSpace:A||"normal"}),this.oldTextWidth=$,X=!0)}this.hasBoxWidthChanged=X,R!==this.cTT&&(Z=C.fontMetrics(b).b,G(m)&&(m!==(this.oldRotation||0)||M!==this.oldAlign)&&this.setSpanRotation(m,D,D),this.get
267SpanCorrection(!G(m)&&this.textPxLength||b.offsetWidth,Z,v));let{xCorr:ie=0,yCorr:oe=0}=this,le=(q??f)-ie-f-D,ue=(V??L)-oe-L-D;te(b,{left:`${f+ie}px`,top:`${L+oe}px`,transformOrigin:`${le}px ${ue}px`}),this.cTT=R,this.oldRotation=m,this.oldAlign=M}}setSpanRotation(b,C,m){te(this.element,{transform:`rotate(${b}deg)`,transformOrigin:`${C}% ${m}px`})}add(b){let C,m=this.renderer.box.parentNode,q=[];if(this.parentGroup=b,b&&!(C=b.div)){let V=b;for(;V;)q.push(V),V=V.parentGroup;for(let H of q.reverse())C=_(H,m)}return(C||m).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(b){b!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,l.setElementHTML(this.element,b??""),this.textStr=b,this.doTransform=!0)}alignSetter(b){this.alignValue=this.textAlign=b,this.doTransform=!0}xSetter(b,C){this[C]=b,this.doTransform=!0}}let w=g.prototype;return w.visibilitySetter=w.opacitySetter=E,w.ySetter=w.rotationSetter=w.rotationOriginXSetter=w.rotationOriginYSetter=w.xSetter,g}),c(n,"Core/Axis/AxisDefaults.js",[],function(){var l,u;return(u=l||(l={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},u.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:x}=this.axis.chart;return x(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},l}),c(n,"Core/Foundation.js",[n["Core/Utilities.js"]],function(l){var u;let{addEvent:x,isFunction:O,objectEach:Y,removeEvent:Q}=l;return(u||(u={})).registerEventOptions=function(te,W){te.eventOptions=te.eventOptions||{},Y(W.events,function(G,K){te.eventOptions[K]!==G&&(te.eventOptions[K]&&(Q(te,K,te.eventOptions[K]),delete te.eventOptions[K]),O(G)&&(te.eventOptions[K]=G,x(te,K,G,{order:0})))})},u}),c(n,"Core/Axis/Tick.js",[n["Core/Templating.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(l,u,x){let{deg2rad:O}=u,{clamp:Y,correctFloat:Q,defined:te,destroyObjectProperties:W,extend:G,fireEvent:K,isNumber:S,merge:T,objectEach:E,pick:_}=x;return class{constructor(g,w,k,b,C){this.isNew=!0,this.isNewLabel=!0,this.axis=g,this.pos=w,this.type=k||"",this.parameters=C||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,K(this,"init"),k||b||this.addLabel()}addLabel(){let g=this,w=g.axis,k=w.options,b=w.chart,C=w.categories,m=w.logarithmic,q=w.names,V=g.pos,H=_(g.options&&g.options.labels,k.labels),M=w.tickPositions,$=V===M[0],P=V===M[M.length-1],h=(!H.step||H.step===1)&&w.tickInterval===1,f=M.info,L=g.label,v,A,B,R=this.parameters.category||(C?_(C[V],q[V],V):V);m&&S(R)&&(R=Q(m.lin2log(R))),w.dateTime&&(f?v=(A=b.time.resolveDTLFormat(k.dateTimeLabelFormats[!k.grid&&f.higherRanks[V]||f.unitName])).main:S(R)&&(v=w.dateTime.getXDateFormat(R,k.dateTimeLabelFormats||{}))),g.isFirst=$,g.isLast=P;let D={axis:w,chart:b,dateTimeLabelFormat:v,isFirst:$,isLast:P,pos:V,tick:g,tickPositionInfo:f,value:R};K(this,"labelFormat",D);let Z=oe=>H.formatter?H.formatter.call(oe,oe):H.format?(oe.text=w.defaultLabelFormatter.call(oe),l.format(H.format,oe,b)):w.defaultLabelFormatter.call(oe),X=Z.call(D,D),ie=A&&A.list;ie?g.shortenLabel=function(){for(B=0;B<ie.length;B++)if(G(D,{dateTimeLabelFormat:ie[B]}),L.attr({text:Z.call(D,D)}),L.getBBox().width<w.getSlotWidth(g)-2*(H.padding||0))return;L.attr({text:""})}:g.shortenLabel=void 0,h&&w._addedPlotLB&&g.moveLabel(X,H),te(L)||g.movedLabel?L&&L.textStr!==X&&!h&&(!L.textWidth||H.style.width||L.styles.width||L.css({width:null}),L.attr({text:X}),L.textPxLength=L.getBBox().width):(g.label=L=g.createLabel(X,H),g.rotation=0)}createLabel(g,w,k){let b=this.axis,C=b.chart,m=te(g)&&w.enabled?C.renderer.text(g,k==null?void 0:k.x,k==null?void 0:k.y,w.useHTML).add(b.labelGroup):void 0;return m&&(C.styledMode||m.css(T(w.style)),m.textPxLength=m.getBBox().width),m}destroy(){W(this,this.axis)}getPosition(g,w,k,b){let C=this.axis,m=C.chart,q=b&&m.oldChartHeight||m.chartHeight,V={x:g?Q(C.translate(w+k,void 0,void 0,b)+C.transB):C.left+C.offset+(C.opposite?(b&&m.oldChartWidth||m.chartWidth)-C.right-C.left:0),y:g?q-C.bottom+C.offset-(C.opposite?C.height:0):Q(q-C.translate(w+k,void 0,void 0,b)-C.transB)};return V.y=Y(V.y,-1e5,1e5),K(this,"afterGetPosition",{pos:V}),V}getLabelPosition(g,w,k,b,C,m,q,V){let H,M,$=this.axis,P=$.transA,h=$.isLinked&&$.linkedParent?$.linkedParent.reversed:$.reversed,f=$.staggerLines,L=$.tickRotCorr||{x:0,y:0},v=b||$.reserveSpaceDefault?0:-$.labelOffset*($.labelAlign==="center"?.5:1),A=C.distance,B={};return H=$.side===0?k.rotation?-A:-k.getBBox().height:$.side===2?L.y+A:Math.cos(k.rotation*O)*(L.y-k.getBBox(!1,0).height/2),te(C.y)&&(H=$.side===0&&$.horiz?C.y+H:C.y),g=g+_(C.x,[0,1,0,-1][$.side]*A)+v+L.x-(m&&b?m*P*(h?-1:1):0),w=w+H-(m&&!b?m*P*(h?1:-1):0),f&&(M=q/(V||1)%f,$.opposite&&(M=f-M-1),w+=M*($.labelOffset/f)),B.x=g,B.y=Math.round(w),K(this,"afterGetLabelPosition",{pos:B,tickmarkOffset:m,index:q}),B}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(g,w,k,b,C=!1,m){return m.crispLine([["M",g,w],["L",g+(C?0:-k),w+(C?k:0)]],b)}handleOverflow(g){let w=this.axis,k=w.options.labels,b=g.x,C=w.chart.chartWidth,m=w.chart.spacing,q=_(w.labelLeft,Math.min(w.pos,m[3])),V=_(w.labelRight,Math.max(w.isRadial?
2670:w.pos+w.len,C-m[1])),H=this.label,M=this.rotation,$={left:0,center:.5,right:1}[w.labelAlign||H.attr("align")],P=H.getBBox().width,h=w.getSlotWidth(this),f={},L=h,v=1,A,B,R;M||k.overflow!=="justify"?M<0&&b-$*P<q?R=Math.round(b/Math.cos(M*O)-q):M>0&&b+$*P>V&&(R=Math.round((C-b)/Math.cos(M*O))):(A=b-$*P,B=b+(1-$)*P,A<q?L=g.x+L*(1-$)-q:B>V&&(L=V-g.x+L*$,v=-1),(L=Math.min(h,L))<h&&w.labelAlign==="center"&&(g.x+=v*(h-L-$*(h-Math.min(P,L)))),(P>L||w.autoRotation&&(H.styles||{}).width)&&(R=L)),R&&(this.shortenLabel?this.shortenLabel():(f.width=Math.floor(R)+"px",(k.style||{}).textOverflow||(f.textOverflow="ellipsis"),H.css(f)))}moveLabel(g,w){let k=this,b=k.label,C=k.axis,m=!1,q;b&&b.textStr===g?(k.movedLabel=b,m=!0,delete k.label):E(C.ticks,function(V){m||V.isNew||V===k||!V.label||V.label.textStr!==g||(k.movedLabel=V.label,m=!0,V.labelPos=k.movedLabel.xy,delete V.label)}),!m&&(k.labelPos||b)&&(q=k.labelPos||b.xy,k.movedLabel=k.createLabel(g,w,q),k.movedLabel&&k.movedLabel.attr({opacity:0}))}render(g,w,k){let b=this.axis,C=b.horiz,m=this.pos,q=_(this.tickmarkOffset,b.tickmarkOffset),V=this.getPosition(C,m,q,w),H=V.x,M=V.y,$=b.pos,P=$+b.len,h=C?H:M;!b.chart.polar&&this.isNew&&(Q(h)<$||h>P)&&(k=0);let f=_(k,this.label&&this.label.newOpacity,1);k=_(k,1),this.isActive=!0,this.renderGridLine(w,k),this.renderMark(V,k),this.renderLabel(V,w,f,g),this.isNew=!1,K(this,"afterRender")}renderGridLine(g,w){let k=this.axis,b=k.options,C={},m=this.pos,q=this.type,V=_(this.tickmarkOffset,k.tickmarkOffset),H=k.chart.renderer,M=this.gridLine,$,P=b.gridLineWidth,h=b.gridLineColor,f=b.gridLineDashStyle;this.type==="minor"&&(P=b.minorGridLineWidth,h=b.minorGridLineColor,f=b.minorGridLineDashStyle),M||(k.chart.styledMode||(C.stroke=h,C["stroke-width"]=P||0,C.dashstyle=f),q||(C.zIndex=1),g&&(w=0),this.gridLine=M=H.path().attr(C).addClass("highcharts-"+(q?q+"-":"")+"grid-line").add(k.gridGroup)),M&&($=k.getPlotLinePath({value:m+V,lineWidth:M.strokeWidth(),force:"pass",old:g,acrossPanes:!1}))&&M[g||this.isNew?"attr":"animate"]({d:$,opacity:w})}renderMark(g,w){let k=this.axis,b=k.options,C=k.chart.renderer,m=this.type,q=k.tickSize(m?m+"Tick":"tick"),V=g.x,H=g.y,M=_(b[m!=="minor"?"tickWidth":"minorTickWidth"],!m&&k.isXAxis?1:0),$=b[m!=="minor"?"tickColor":"minorTickColor"],P=this.mark,h=!P;q&&(k.opposite&&(q[0]=-q[0]),P||(this.mark=P=C.path().addClass("highcharts-"+(m?m+"-":"")+"tick").add(k.axisGroup),k.chart.styledMode||P.attr({stroke:$,"stroke-width":M})),P[h?"attr":"animate"]({d:this.getMarkPath(V,H,q[0],P.strokeWidth(),k.horiz,C),opacity:w}))}renderLabel(g,w,k,b){let C=this.axis,m=C.horiz,q=C.options,V=this.label,H=q.labels,M=H.step,$=_(this.tickmarkOffset,C.tickmarkOffset),P=g.x,h=g.y,f=!0;V&&S(P)&&(V.xy=g=this.getLabelPosition(P,h,V,m,H,$,b,M),(!this.isFirst||this.isLast||q.showFirstLabel)&&(!this.isLast||this.isFirst||q.showLastLabel)?!m||H.step||H.rotation||w||k===0||this.handleOverflow(g):f=!1,M&&b%M&&(f=!1),f&&S(g.y)?(g.opacity=k,V[this.isNewLabel?"attr":"animate"](g).show(!0),this.isNewLabel=!1):(V.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let g=this.label,w=this.axis;g&&!this.isNew&&(g.animate({opacity:0}
vendor: 5,952 bytes, line 267
267,void 0,g.destroy),delete this.label),w.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}}),c(n,"Core/Axis/Axis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/AxisDefaults.js"],n["Core/Color/Color.js"],n["Core/Defaults.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Axis/Tick.js"],n["Core/Utilities.js"]],function(l,u,x,O,Y,Q,te,W){let{animObject:G}=l,{xAxis:K,yAxis:S}=u,{defaultOptions:T}=O,{registerEventOptions:E}=Y,{deg2rad:_}=Q,{arrayMax:g,arrayMin:w,clamp:k,correctFloat:b,defined:C,destroyObjectProperties:m,erase:q,error:V,extend:H,fireEvent:M,getClosestDistance:$,insertItem:P,isArray:h,isNumber:f,isString:L,merge:v,normalizeTickInterval:A,objectEach:B,pick:R,relativeLength:D,removeEvent:Z,splat:X,syncTimeout:ie}=W,oe=(ue,F)=>A(F,void 0,void 0,R(ue.options.allowDecimals,F<.5||ue.tickAmount!==void 0),!!ue.tickAmount);H(T,{xAxis:K,yAxis:v(K,S)});class le{constructor(F,N,ee){this.init(F,N,ee)}init(F,N,ee=this.coll){let ce=ee==="xAxis",j=this.isZAxis||(F.inverted?!ce:ce);this.chart=F,this.horiz=j,this.isXAxis=ce,this.coll=ee,M(this,"init",{userOptions:N}),this.opposite=R(N.opposite,this.opposite),this.side=R(N.side,this.side,j?this.opposite?0:2:this.opposite?1:3),this.setOptions(N);let I=this.options,U=I.labels,J=I.type;this.userOptions=N,this.minPixelPadding=0,this.reversed=R(I.reversed,this.reversed),this.visible=I.visible,this.zoomEnabled=I.zoomEnabled,this.hasNames=J==="category"||I.categories===!0,this.categories=h(I.categories)&&I.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=C(I.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=I.minRange||I.maxZoom,this.range=I.range,this.offset=I.offset||0,this.max=void 0,this.min=void 0;let se=R(I.crosshair,X(F.options.tooltip.crosshairs)[ce?0:1]);this.crosshair=se===!0?{}:se,F.axes.indexOf(this)===-1&&(ce?F.axes.splice(F.xAxis.length,0,this):F.axes.push(this),P(this,F[this.coll])),F.orderItems(this.coll),this.series=this.series||[],F.inverted&&!this.isZAxis&&ce&&!C(this.reversed)&&(this.reversed=!0),this.labelRotation=f(U.rotation)?U.rotation:void 0,E(this,I),M(this,"afterInit")}setOptions(F){let N=this.horiz?{labels:{autoRotation:[-45],padding:4},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=v(N,T[this.coll],F),M(this,"afterSetOptions",{userOptions:F})}defaultLabelFormatter(){let F=this.axis,{numberFormatter:N}=this.chart,ee=f(this.value)?this.value:NaN,ce=F.chart.time,j=F.categories,I=this.dateTimeLabelFormat,U=T.lang,J=U.numericSymbols,se=U.numericSymbolMagnitude||1e3,ae=F.logarithmic?Math.abs(ee):F.tickInterval,he=J&&J.length,me,ve;if(j)ve=`${this.value}`;else if(I)ve=ce.dateFormat(I,ee);else if(he&&J&&ae>=1e3)for(;he--&&ve===void 0;)ae>=(me=Math.pow(se,he+1))&&10*ee%me==0&&J[he]!==null&&ee!==0&&(ve=N(ee/me,-1)+J[he]);return ve===void 0&&(ve=Math.abs(ee)>=1e4?N(ee,-1):N(ee,-1,void 0,"")),ve}getSeriesExtremes(){let F,N=this;M(this,"getSeriesExtremes",null,function(){N.hasVisibleSeries=!1,N.dataMin=N.dataMax=N.threshold=void 0,N.softThreshold=!N.isXAxis,N.series.forEach(ee=>{if(ee.reserveSpace()){let ce=ee.options,j,I=ce.threshold,U,J;if(N.hasVisibleSeries=!0,N.positiveValuesOnly&&0>=(I||0)&&(I=void 0),N.isXAxis)(j=ee.xData)&&j.length&&(j=N.logarithmic?j.filter(se=>se>0):j,U=(F=ee.getXExtremes(j)).min,J=F.max,f(U)||U instanceof Date||(j=j.filter(f),U=(F=ee.getXExtremes(j)).min,J=F.max),j.length&&(N.dataMin=Math.min(R(N.dataMin,U),U),N.dataMax=Math.max(R(N.dataMax,J),J)));else{let se=ee.applyExtremes();f(se.dataMin)&&(U=se.dataMin,N.dataMin=Math.min(R(N.dataMin,U),U)),f(se.dataMax)&&(J=se.dataMax,N.dataMax=Math.max(R(N.dataMax,J),J)),C(I)&&(N.threshold=I),(!ce.softThreshold||N.positiveValuesOnly)&&(N.softThreshold=!1)}}})}),M(this,"afterGetSeriesExtremes")}translate(F,N,ee,ce,j,I){var Pe;let U=this.linkedParent||this,J=ce&&U.old?U.old.min:U.min;if(!f(J))return NaN;let se=U.minPixelPadding,ae=(U.isOrdinal||((Pe=U.brokenAxis)==null?void 0:Pe.hasBreaks)||U.logarithmic&&j)&&U.lin2val,he=1,me=0,ve=ce&&U.old?U.old.transA:U.transA,ke=0;return ve||(ve=U.transA),ee&&(he*=-1,me=U.len),U.reversed&&(he*=-1,me-=he*(U.sector||U.len)),N?(ke=(F=F*he+me-se)/ve+J,ae&&(ke=U.lin2val(ke))):(ae&&(F=U.val2lin(F)),ke=he*(F-J)*ve+me+he*se+(f(I)?ve*I:0),U.isRadial||(ke=b(ke))),ke}toPixels(F,N){return this.translate(F,!1,!this.horiz,void 0,!0)+(N?0:this.pos)}toValue(F,N){return this.translate(F-(N?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(F){let N=this,ee=N.chart,ce=N.left,j=N.top,I=F.old,U=F.value,J=F.lineWidth,se=I&&ee.oldChartHeight||ee.chartHeight,ae=I&&ee.oldChartWidth||ee.chartWidth,he=N.transB,me=F.translatedValue,ve=F.force,ke,Pe,ge,de,fe;function xe(Se,be,Te){return ve!=="pass"&&(Se<be||Se>Te)&&(ve?Se=k(Se,be,Te):fe=!0),Se}let Ee={value:U,lineWidth:J,old:I,force:ve,acrossPanes:F.acrossPanes,translatedValue:me};return M(this,"getPlotLinePath",Ee,function(Se){ke=ge=(me=k(me=R(me,N.translate(U,void 0,void 0,I)),-1e5,1e5))+he,Pe=de=se-me-he,f(me)?N.horiz?(Pe=j,de=se-N.bottom+(N.options.isInternal?0:ee.scrollablePixelsY||0),ke=ge=xe(ke,ce,ce+N.width)):(ke=ce,ge=ae-N.right+(ee.scrollablePixelsX||0),Pe=de=xe(Pe,j,j+N.height)):(fe=!0,ve=!1),Se.path=fe&&!ve?void 0:ee.renderer.crispLine([["M",ke,Pe],["L",ge,de]],J||1)}),Ee.path}getLinearTickPositions(F,N,ee){let ce,j,I,U=b(Math.floor(N/F)*F),J=b(Math.ceil(ee/F)*F),se=[];if(b(U+F)===U&&(I=20),this.single)return[N];for(ce=U;ce<=J&&(se.push(ce),(ce=b(ce+F,I))!==j);)j=ce;return se}getMinorTickInterval(){let{minorTicks:F,minorTickInterval:N}=this.options;return F===!0?R(N,"auto"):F!==!1?N:void 0}getMinorTickPositions(){let F=this.options,N=this.tickPositions,ee=this.minorTickInterval,ce=this.pointRangePadding||0,j=(this.min||0)-ce,I=(this.max||0)+ce,U=I-j,J=[],se;
267if(U&&U/ee<this.len/3){let ae=this.logarithmic;if(ae)this.paddedTicks.forEach(function(he,me,ve){me&&J.push.apply(J,ae.getLogTickPositions(ee,ve[me-1],ve[me],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")J=J.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(ee),j,I,F.startOfWeek));else for(se=j+(N[0]-j)%ee;se<=I&&se!==J[0];se+=ee)J.push(se)}return J.length!==0&&this.trimTicks(J),J}adjustForMinRange(){let F=this.options,N=this.logarithmic,{max:ee,min:ce,minRange:j}=this,I,U,J,se;this.isXAxis&&j===void 0&&!N&&(j=C(F.min)||C(F.max)||C(F.floor)||C(F.ceiling)?null:Math.min(5*($(this.series.map(ae=>{var he;return(ae.xIncrement?(he=ae.xData)==null?void 0:he.slice(0,2):ae.xData)||[]}))||0),this.dataMax-this.dataMin)),f(ee)&&f(ce)&&f(j)&&ee-ce<j&&(U=this.dataMax-this.dataMin>=j,I=(j-ee+ce)/2,J=[ce-I,R(F.min,ce-I)],U&&(J[2]=N?N.log2lin(this.dataMin):this.dataMin),se=[(ce=g(J))+j,R(F.max,ce+j)],U&&(se[2]=N?N.log2lin(this.dataMax):this.dataMax),(ee=w(se))-ce<j&&(J[0]=ee-j,J[1]=R(F.min,ee-j),ce=g(J))),this.minRange=j,this.min=ce,this.max=ee}getClosest(){let F,N;if(this.categories)N=1;else{let ee=[];this.series.forEach(function(ce){var I;let j=ce.closestPointRange;((I=ce.xData)==null?void 0:I.length)===1?ee.push(ce.xData[0]):!ce.noSharedTooltip&&C(j)&&ce.reserveSpace()&&(N=C(N)?Math.min(N,j):j)}),ee.length&&(ee.sort((ce,j)=>ce-j),F=$([ee]))}return F&&N?Math.min(F,N):F||N}nameToX(F){let N=h(this.options.categories),ee=N?this.categories:this.names,ce=F.options.x,j;return F.series.requireSorting=!1,C(ce)||(ce=this.options.uniqueNames&&ee?N?ee.indexOf(F.name):R(ee.keys[F.name],-1):F.series.autoIncrement()),ce===-1?!N&&ee&&(j=ee.length):j=ce,j!==void 0?(this.names[j]=F.name,this.names.keys[F.name]=j):F.x&&(j=F.x),j}updateNames(){let F=this,N=this.names;N.length>0&&(Object.keys(N.keys).forEach(function(ee){delete N.keys[ee]}),N.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(ee=>{ee.xIncrement=null,(!ee.points||ee.isDirtyData)&&(F.max=Math.max(F.max,ee.xData.length-1),ee.processData(),ee.generatePoints()),ee.data.forEach(function(ce,j){let I;ce!=null&&ce.options&&ce.name!==void 0&&(I=F.nameToX(ce))!==void 0&&I!==ce.x&&(ce.x=I,ee.xData[j]=I)})}))}setAxisTranslation(){let F=this,N=F.max-F.min,ee=F.linkedParent,ce=!!F.categories,j=F.isXAxis,I=F.axisPointRange||0,U,J=0,se=0,ae,he=F.transA;(j||ce||I)&&(U=F.getClosest(),ee?(J=ee.minPointOffset,se=ee.pointRangePadding):F.series.forEach(function(me){let ve=ce?1:j?R(me.options.pointRange,U,0):F.axisPointRange||0,ke=me.options.pointPlacement;if(I=Math.max(I,ve),!F.single||ce){let Pe=me.is("xrange")?!j:j;J=Math.max(J,Pe&&L(ke)?0:ve/2),se=Math.max(se,Pe&&ke==="on"?0:ve)}}),ae=F.ordinal&&F.ordinal.slope&&U?F.ordinal.slope/U:1,F.minPointOffset=J*=ae,F.pointRangePadding=se*=ae,F.pointRange=Math.min(I,F.single&&ce?1:N),j&&U&&(F.closestPointRange=U)),F.translationSlope=F.transA=he=F.staticScale||F.len/(N+se||1),F.transB=F.horiz?F.left:F.bottom,F.minPixelPadding=he*J,M(this,"afterSetAxisTranslation")}minFromRange(){let{max:F,min:N}=this;return f(F)&&f(N)&&F-N||void 0}setTickInterval(F){var Ge,Ve,ot,ct;let{categories:N,chart:ee,dataMax:ce,dataMin:j,dateTime:I,isXAxis:U,logarithmic:J,options:se,softThreshold:ae}=this,he=f(this.threshold)?this.threshold:void 0,me=this.minRange||0,{ceiling:ve,floor:ke,linkedTo:Pe,softMax:ge,softMin:de}=se,fe=f(Pe)&&((Ge=ee[this.coll])==null?void 0:Ge[Pe]),xe=se.tickPixelInterval,Ee=se.maxPadding,Se=se.minPadding,be=0,Te,Le=f(se.tickInterval)&&se.tickInterval>=0?se.tickInterval:void 0,Ne,_e,We,He;if(I||N||fe||this.getTickAmount(),We=R(this.userMin,se.min),He=R(this.userMax,se.max),fe?(this.linkedParent=fe,Te=fe.getExtremes(),this.min=R(Te.min,Te.dataMin),this.max=R(Te.max,Te.dataMax),se.type!==fe.options.type&&V(11,!0,ee)):(ae&&C(he)&&f(ce)&&f(j)&&(j>=he?(Ne=he,Se=0):ce<=he&&(_e=he,Ee=0)),this.min=R(We,Ne,j),this.max=R(He,_e,ce)),f(this.max)&&f(this.min)&&(J&&(this.positiveValuesOnly&&!F&&0>=Math.min(this.min,R(j,this.min))&&V(10,!0,ee),this.min=b(J.log2lin(this.min),16),this.max=b(J.log2lin(this.max),16)),this.range&&f(j)&&(this.userMin=this.min=We=Math.max(j,this.minFromRange()||0),this.userMax=He=this.max,this.range=void 0)),M(this,"foundExtremes"),this.adjustForMinRange(),f(this.min)&&f(this.max)){if(!f(this.userMin)&&f(de)&&de<this.min&&(this.min=We=de),!f(this.userMax)&&f(ge)&&ge>this.max&&(this.max=He=ge),N||this.axisPointRange||(Ve=this.stacking)!=null&&Ve.usePercentage||fe||!(be=this.max-this.min)||(!C(We)&&Se&&(this.min-=be*Se),C(He)||!Ee||(this.max+=be*Ee)),!f(this.userMin)&&f(ke)&&(this.min=Math.max(this.min,ke)),!f(this.userMax)&&f(ve)&&(this.max=Math.min(this.max,ve)),ae&&f(j)&&f(ce)){let ft=he||0;!C(We)&&this.min<ft&&j>=ft?this.min=se.minRange?Math.min(ft,this.max-me):ft:!C(He)&&this.max>ft&&ce<=ft&&(this.max=se.minRange?Math.max(ft,this.min+me):ft)}!ee.polar&&this.min>this.max&&(C(se.min)?this.max=this.min:C(se.max)&&(this.min=this.max)),be=this.max-this.min}if(this.min!==this.max&&f(this.min)&&f(this.max)?fe&&!Le&&xe===fe.options.tickPixelInterval?this.tickInterval=Le=fe.tickInterval:this.tickInterval=
vendor: 5,000 bytes, line 267
267R(Le,this.tickAmount?be/Math.max(this.tickAmount-1,1):void 0,N?1:be*xe/Math.max(this.len,xe)):this.tickInterval=1,U&&!F){let ft=this.min!==((ot=this.old)==null?void 0:ot.min)||this.max!==((ct=this.old)==null?void 0:ct.max);this.series.forEach(function(kt){var Mt;kt.forceCrop=(Mt=kt.forceCropping)==null?void 0:Mt.call(kt),kt.processData(ft)}),M(this,"postProcessData",{hasExtremesChanged:ft})}this.setAxisTranslation(),M(this,"initialAxisTranslation"),this.pointRange&&!Le&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let Ye=R(se.minTickInterval,I&&!this.series.some(ft=>ft.noSharedTooltip)?this.closestPointRange:0);!Le&&this.tickInterval<Ye&&(this.tickInterval=Ye),I||J||Le||(this.tickInterval=oe(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var ae,he;let F=this.options,N=F.tickPositions,ee=F.tickPositioner,ce=this.getMinorTickInterval(),j=!this.isPanning,I=j&&F.startOnTick,U=j&&F.endOnTick,J=[],se;if(this.tickmarkOffset=this.categories&&F.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=ce==="auto"&&this.tickInterval?this.tickInterval/F.minorTicksPerMajor:ce,this.single=this.min===this.max&&C(this.min)&&!this.tickAmount&&(this.min%1==0||F.allowDecimals!==!1),N)J=N.slice();else if(f(this.min)&&f(this.max)){if(!((ae=this.ordinal)!=null&&ae.positions)&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))J=[this.min,this.max],V(19,!1,this.chart);else if(this.dateTime)J=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,F.units),this.min,this.max,F.startOfWeek,(he=this.ordinal)==null?void 0:he.positions,this.closestPointRange,!0);else if(this.logarithmic)J=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let me=this.tickInterval,ve=me;for(;ve<=2*me&&(J=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&J.length>this.tickAmount);)this.tickInterval=oe(this,ve*=1.1)}J.length>this.len&&(J=[J[0],J[J.length-1]])[0]===J[1]&&(J.length=1),ee&&(this.tickPositions=J,(se=ee.apply(this,[this.min,this.max]))&&(J=se))}this.tickPositions=J,this.paddedTicks=J.slice(0),this.trimTicks(J,I,U),!this.isLinked&&f(this.min)&&f(this.max)&&(this.single&&J.length<2&&!this.categories&&!this.series.some(me=>me.is("heatmap")&&me.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),N||se||this.adjustTickAmount()),M(this,"afterSetTickPositions")}trimTicks(F,N,ee){let ce=F[0],j=F[F.length-1],I=!this.isOrdinal&&this.minPointOffset||0;if(M(this,"trimTicks"),!this.isLinked){if(N&&ce!==-1/0)this.min=ce;else for(;this.min-I>F[0];)F.shift();if(ee)this.max=j;else for(;this.max+I<F[F.length-1];)F.pop();F.length===0&&C(ce)&&!this.options.tickPositions&&F.push((j+ce)/2)}}alignToOthers(){let F,N=this,ee=N.chart,ce=[this],j=N.options,I=ee.options.chart,U=this.coll==="yAxis"&&I.alignThresholds,J=[];if(N.thresholdAlignment=void 0,(I.alignTicks!==!1&&j.alignTicks||U)&&j.startOnTick!==!1&&j.endOnTick!==!1&&!N.logarithmic){let se=he=>{let{horiz:me,options:ve}=he;return[me?ve.left:ve.top,ve.width,ve.height,ve.pane].join(",")},ae=se(this);ee[this.coll].forEach(function(he){let{series:me}=he;me.length&&me.some(ve=>ve.visible)&&he!==N&&se(he)===ae&&(F=!0,ce.push(he))})}if(F&&U){ce.forEach(ae=>{let he=ae.getThresholdAlignment(N);f(he)&&J.push(he)});let se=J.length>1?J.reduce((ae,he)=>ae+=he,0)/J.length:void 0;ce.forEach(ae=>{ae.thresholdAlignment=se})}return F}getThresholdAlignment(F){if((!f(this.dataMin)||this!==F&&this.series.some(N=>N.isDirty||N.isDirtyData))&&this.getSeriesExtremes(),f(this.threshold)){let N=k((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(N=1-N),N}}getTickAmount(){let F=this.options,N=F.tickPixelInterval,ee=F.tickAmount;C(F.tickInterval)||ee||!(this.len<N)||this.isRadial||this.logarithmic||!F.startOnTick||!F.endOnTick||(ee=2),!ee&&this.alignToOthers()&&(ee=Math.ceil(this.len/N)+1),ee<4&&(this.finalTickAmt=ee,ee=5),this.tickAmount=ee}adjustTickAmount(){let F=this,{finalTickAmt:N,max:ee,min:ce,options:j,tickPositions:I,tickAmount:U,thresholdAlignment:J}=F,se=I==null?void 0:I.length,ae=R(F.threshold,F.softThreshold?0:null),he,me,ve=F.tickInterval,ke,Pe=()=>I.push(b(I[I.length-1]+ve)),ge=()=>I.unshift(b(I[0]-ve));if(f(J)&&(ke=J<.5?Math.ceil(J*(U-1)):Math.floor(J*(U-1)),j.reversed&&(ke=U-1-ke)),F.hasData()&&f(ce)&&f(ee)){let de=()=>{F.transA*=(se-1)/(U-1),F.min=j.startOnTick?I[0]:Math.min(ce,I[0]),F.max=j.endOnTick?I[I.length-1]:Math.max(ee,I[I.length-1])};if(f(ke)&&f(F.threshold)){for(;I[ke]!==ae||I.length!==U||I[0]>ce||I[I.length-1]<ee;){for(I.length=0,I.push(F.threshold);I.length<U;)I[ke]===void 0||I[ke]>F.threshold?ge():Pe();if(ve>8*F.tickInterval)break;ve*=2}de()}else if(se<U){for(;I.length<U;)I.length%2||ce===ae?Pe():ge();de()}if(C(N)){for(me=he=I.length;me--;)(N===3&&me%2==1||N<=2&&me>0&&me<he-1)&&I.splice(me,1);F.finalTickAmt=void 0}}}setScale(){var I,U;
267let{coll:F,stacking:N}=this,ee=!1,ce=!1;this.series.forEach(J=>{ee=ee||J.isDirtyData||J.isDirty,ce=ce||J.xAxis&&J.xAxis.isDirty||!1}),this.setAxisSize();let j=this.len!==(this.old&&this.old.len);j||ee||ce||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(N&&F==="yAxis"&&N.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),N&&F==="xAxis"&&N.buildStacks(),this.isDirty||(this.isDirty=j||this.min!==((I=this.old)==null?void 0:I.min)||this.max!==((U=this.old)==null?void 0:U.max))):N&&N.cleanStacks(),ee&&delete this.allExtremes,M(this,"afterSetScale")}setExtremes(F,N,ee=!0,ce,j){this.series.forEach(I=>{delete I.kdTree}),M(this,"setExtremes",j=H(j,{min:F,max:N}),I=>{this.userMin=I.min,this.userMax=I.max,this.eventArgs=I,ee&&this.chart.redraw(ce)})}setAxisSize(){let F=this.chart,N=this.options,ee=N.offsets||[0,0,0,0],ce=this.horiz,j=this.width=Math.round(D(R(N.width,F.plotWidth-ee[3]+ee[1]),F.plotWidth)),I=this.height=Math.round(D(R(N.height,F.plotHeight-ee[0]+ee[2]),F.plotHeight)),U=this.top=Math.round(D(R(N.top,F.plotTop+ee[0]),F.plotHeight,F.plotTop)),J=this.left=Math.round(D(R(N.left,F.plotLeft+ee[3]),F.plotWidth,F.plotLeft));this.bottom=F.chartHeight-I-U,this.right=F.chartWidth-j-J,this.len=Math.max(ce?j:I,0),this.pos=ce?J:U}getExtremes(){let F=this.logarithmic;return{min:F?b(F.lin2log(this.min)):this.min,max:F?b(F.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(F){let N=this.logarithmic,ee=N?N.lin2log(this.min):this.min,ce=N?N.lin2log(this.max):this.max;return F===null||F===-1/0?F=ee:F===1/0?F=ce:ee>F?F=ee:ce<F&&(F=ce),this.translate(F,0,1,0,1)}autoLabelAlign(F){let N=(R(F,0)-90*this.side+720)%360,ee={align:"center"};return M(this,"autoLabelAlign",ee,function(ce){N>15&&N<165?ce.align="right":N>195&&N<345&&(ce.align="left")}),ee.align}tickSize(F){let N=this.options,ee=R(N[F==="tick"?"tickWidth":"minorTickWidth"],F==="tick"&&this.isXAxis&&!this.categories?1:0),ce=N[F==="tick"?"tickLength":"minorTickLength"],j;ee&&ce&&(N[F+"Position"]==="inside"&&(ce=-ce),j=[ce,ee]);let I={tickSize:j};return M(this,"afterTickSize",I),I.tickSize}labelMetrics(){let F=this.chart.renderer,N=this.ticks,ee=N[Object.keys(N)[0]]||{};return this.chart.renderer.fontMetrics(ee.label||ee.movedLabel||F.box)}unsquish(){let F=this.options.labels,N=F.padding||0,ee=this.horiz,ce=this.tickInterval,j=this.len/(((this.categories?1:0)+this.max-this.min)/ce),I=F.rotation,U=b(.8*this.labelMetrics().h),J=Math.max(this.max-this.min,0),se=function(ke){let Pe=(ke+2*N)/(j||1);return(Pe=Pe>1?Math.ceil(Pe):1)*ce>J&&ke!==1/0&&j!==1/0&&J&&(Pe=Math.ceil(J/ce)),b(Pe*ce)},ae=ce,he,me=Number.MAX_VALUE,ve;if(ee){if(!F.staggerLines&&(f(I)?ve=[I]:j<F.autoRotationLimit&&(ve=F.autoRotation)),ve){let ke,Pe;for(let ge of ve)(ge===I||ge&&ge>=-90&&ge<=90)&&(Pe=(ke=se(Math.abs(U/Math.sin(_*ge))))+Math.abs(ge/360))<me&&(me=Pe,he=ge,ae=ke)}}else ae=se(.75*U);return this.autoRotation=ve,this.labelRotation=R(he,f(I)?I:0),F.step?ce:ae}getSlotWidth(F){let N=this.chart,ee=this.horiz,ce=this.options.labels,j=Math.max(this.tickPositions.length-(this.categories?0:1),1),I=N.margin[3];if(F&&f(F.slotWidth))return F.slotWidth;if(ee&&ce.step<2)return ce.rotation?0:(this.staggerLines||1)*this.len/j;if(!ee){let U=ce.style.width;if(U!==void 0)return parseInt(String(U),10);if(I)return I-N.spacing[3]}return .33*N.chartWidth}renderUnsquish(){let F=this.chart,N=F.renderer,ee=this.tickPositions,ce=this.ticks,j=this.options.labels,I=j.style,U=this.horiz,J=this.getSlotWidth(),se=Math.max(1,Math.round(J-(U?2*(j.padding||0):j.distance||0))),ae={},he=this.labelMetrics(),me=I.textOverflow,ve,ke,Pe=0,ge,de;if(L(j.rotation)||(ae.rotation=j.rotation||0),ee.forEach(function(fe){let xe=ce[fe];xe.movedLabel&&xe.replaceMovedLabel(),xe&&xe.label&&xe.label.textPxLength>Pe&&(Pe=xe.label.textPxLength)}),this.maxLabelLength=Pe,this.autoRotation)Pe>se&&Pe>he.h?ae.rotation=this.labelRotation:this.labelRotation=0;else if(J&&(ve=se,!me))for(ke="clip",de=ee.length;!U&&de--;)(ge=ce[ee[de]].label)&&(ge.styles.textOverflow==="ellipsis"?ge.css({textOverflow:"clip"}):ge.textPxLength>J&&ge.css({width:J+"px"}),ge.getBBox().height>this.len/ee.length-(he.h-he.f)&&(ge.specificTextOverflow="ellipsis"));ae.rotation&&(ve=Pe>
vendor: 13,581 bytes, line 267
267.5*F.chartHeight?.33*F.chartHeight:Pe,me||(ke="ellipsis")),this.labelAlign=j.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(ae.align=this.labelAlign),ee.forEach(function(fe){let xe=ce[fe],Ee=xe&&xe.label,Se=I.width,be={};Ee&&(Ee.attr(ae),xe.shortenLabel?xe.shortenLabel():ve&&!Se&&I.whiteSpace!=="nowrap"&&(ve<Ee.textPxLength||Ee.element.tagName==="SPAN")?(be.width=ve+"px",me||(be.textOverflow=Ee.specificTextOverflow||ke),Ee.css(be)):!Ee.styles.width||be.width||Se||Ee.css({width:null}),delete Ee.specificTextOverflow,xe.rotation=ae.rotation)},this),this.tickRotCorr=N.rotCorr(he.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(F){return F.hasData()})||this.options.showEmpty&&C(this.min)&&C(this.max)}addTitle(F){let N,ee=this.chart.renderer,ce=this.horiz,j=this.opposite,I=this.options.title,U=this.chart.styledMode;this.axisTitle||((N=I.textAlign)||(N=(ce?{low:"left",middle:"center",high:"right"}:{low:j?"right":"left",middle:"center",high:j?"left":"right"})[I.align]),this.axisTitle=ee.text(I.text||"",0,0,I.useHTML).attr({zIndex:7,rotation:I.rotation||0,align:N}).addClass("highcharts-axis-title"),U||this.axisTitle.css(v(I.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),U||I.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[F?"show":"hide"](F)}generateTick(F){let N=this.ticks;N[F]?N[F].addLabel():N[F]=new te(this,F)}createGroups(){let{axisParent:F,chart:N,coll:ee,options:ce}=this,j=N.renderer,I=(U,J,se)=>j.g(U).attr({zIndex:se}).addClass(`highcharts-${ee.toLowerCase()}${J} `+(this.isRadial?`highcharts-radial-axis${J} `:"")+(ce.className||"")).add(F);this.axisGroup||(this.gridGroup=I("grid","-grid",ce.gridZIndex),this.axisGroup=I("axis","",ce.zIndex),this.labelGroup=I("axis-labels","-labels",ce.labels.zIndex))}getOffset(){let F=this,{chart:N,horiz:ee,options:ce,side:j,ticks:I,tickPositions:U,coll:J}=F,se=N.inverted&&!F.isZAxis?[1,0,3,2][j]:j,ae=F.hasData(),he=ce.title,me=ce.labels,ve=f(ce.crossing),ke=N.axisOffset,Pe=N.clipOffset,ge=[-1,1,1,-1][j],de,fe=0,xe,Ee=0,Se=0,be,Te;if(F.showAxis=de=ae||ce.showEmpty,F.staggerLines=F.horiz&&me.staggerLines||void 0,F.createGroups(),ae||F.isLinked?(U.forEach(function(Le){F.generateTick(Le)}),F.renderUnsquish(),F.reserveSpaceDefault=j===0||j===2||{1:"left",3:"right"}[j]===F.labelAlign,R(me.reserveSpace,!ve&&null,F.labelAlign==="center"||null,F.reserveSpaceDefault)&&U.forEach(function(Le){Se=Math.max(I[Le].getLabelSize(),Se)}),F.staggerLines&&(Se*=F.staggerLines),F.labelOffset=Se*(F.opposite?-1:1)):B(I,function(Le,Ne){Le.destroy(),delete I[Ne]}),he!=null&&he.text&&he.enabled!==!1&&(F.addTitle(de),de&&!ve&&he.reserveSpace!==!1&&(F.titleOffset=fe=F.axisTitle.getBBox()[ee?"height":"width"],Ee=C(xe=he.offset)?0:R(he.margin,ee?5:10))),F.renderLine(),F.offset=ge*R(ce.offset,ke[j]?ke[j]+(ce.margin||0):0),F.tickRotCorr=F.tickRotCorr||{x:0,y:0},Te=j===0?-F.labelMetrics().h:j===2?F.tickRotCorr.y:0,be=Math.abs(Se)+Ee,Se&&(be-=Te,be+=ge*(ee?R(me.y,F.tickRotCorr.y+ge*me.distance):R(me.x,ge*me.distance))),F.axisTitleMargin=R(xe,be),F.getMaxLabelDimensions&&(F.maxLabelDimensions=F.getMaxLabelDimensions(I,U)),J!=="colorAxis"&&Pe){let Le=this.tickSize("tick");ke[j]=Math.max(ke[j],(F.axisTitleMargin||0)+fe+ge*F.offset,be,U&&U.length&&Le?Le[0]+ge*F.offset:0);let Ne=!F.axisLine||ce.offset?0:F.axisLine.strokeWidth()/2;Pe[se]=Math.max(Pe[se],Ne)}M(this,"afterGetOffset")}getLinePath(F){let N=this.chart,ee=this.opposite,ce=this.offset,j=this.horiz,I=this.left+(ee?this.width:0)+ce,U=N.chartHeight-this.bottom-(ee?this.height:0)+ce;return ee&&(F*=-1),N.renderer.crispLine([["M",j?this.left:I,j?U:this.top],["L",j?N.chartWidth-this.right:I,j?U:N.chartHeight-this.bottom]],F)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(F){let N=this.horiz,ee=this.left,ce=this.top,j=this.len,I=this.options.title,U=N?ee:ce,J=this.opposite,se=this.offset,ae=I.x,he=I.y,me=this.chart.renderer.fontMetrics(F),ve=F?Math.max(F.getBBox(!1,0).height-me.h-1,0):0,ke={low:U+(N?0:j),middle:U+j/2,high:U+(N?j:0)}[I.align],Pe=(N?ce+this.height:ee)+(N?1:-1)*(J?-1:1)*(this.axisTitleMargin||0)+[-ve,ve,me.f,-ve][this.side],ge={x:N?ke+ae:Pe+(J?this.width:0)+se+ae,y:N?Pe+he-(J?this.height:0)+se:ke+he};return M(this,"afterGetTitlePosition",{titlePosition:ge}),ge}renderMinorTick(F,N){let ee=this.minorTicks;ee[F]||(ee[F]=new te(this,F,"minor")),N&&ee[F].isNew&&ee[F].render(null,!0),ee[F].render(null,!1,1)}renderTick(F,N,ee){let ce=this.isLinked,j=this.ticks;(!ce||F>=this.min&&F<=this.max||this.grid&&this.grid.isColumn)&&(j[F]||(j[F]=new te(this,F)),ee&&j[F].isNew&&j[F].render(N,!0,-1),j[F].render(N))}render(){let F,N,ee=this,ce=ee.chart,j=ee.logarithmic,I=ce.renderer,U=ee.options,J=ee.isLinked,se=ee.tickPositions,ae=ee.axisTitle,he=ee.ticks,me=ee.minorTicks,ve=ee.alternateBands,ke=U.stackLabels,Pe=U.alternateGridColor,ge=U.crossing,de=ee.tickmarkOffset,fe=ee.axisLine,xe=ee.showAxis,Ee=G(I.globalAnimation);if(ee.labelEdge.length=0,ee.overlap=!1,[he,me,ve].forEach(function(Se){B(Se,function(be){be.isActive=!1})}),f(ge)){let Se=this.isXAxis?ce.yAxis[0]:ce.xAxis[0],be=[1,-1,-1,1][this.side];if(Se){let Te=Se.toPixels(ge,!0);ee.horiz&&(Te=Se.len-Te),ee.offset=be*Te}}if(ee.hasData()||J){let Se=ee.chart.hasRendered&&ee.old&&f(ee.old.min);ee.minorTickInterval&&!ee.categories&&ee.getMinorTickPositions().forEach(function(be){ee.renderMinorTick(be,Se)}),se.length&&(se.forEach(function(be,Te){ee.renderTick(be,Te,Se)}),de&&(ee.min===0||ee.single)&&(he[-1]||(he[-1]=new te(ee,-1,null,!0)),he[-1].render(-1))),Pe&&se.forEach(function(be,Te){N=se[Te+1]!==void 0?se[Te+1]+de:ee.max-de,Te%2==0&&be<ee.max&&N<=ee.max+(ce.polar?-de:de)&&(ve[be]||(ve[be]=new Q.PlotLineOrBand(ee,{})),F=be+de,ve[be].options={from:j?j.lin2log(F):F,to:j?j.lin2log(N):N,color:Pe,className:"highcharts-alternate-grid"},ve[be].render(),ve[be].isActive=!0)}),ee._addedPlotLB||(ee._addedPlotLB=!0,(U.plotLines||[]).concat(U.plotBands||[]).forEach(function(be){ee.addPlotBandOrLine(be)}))}[he,me,ve].forEach(function(Se){let be=[],Te=Ee.duration;B(Se,function(Le,Ne){Le.isActive||(Le.render(Ne,!1,0),Le.isActive=!1,be.push(Ne))}),ie(function(){let Le=be.length;for(;Le--;)Se[be[Le]]&&!Se[be[Le]].isActive&&(Se[be[Le]].destroy(),delete Se[be[Le]])},Se!==ve&&ce.hasRendered&&Te?Te:0)}),fe&&(fe[fe.isPlaced?"animate":"attr"]({d:this.getLinePath(fe.strokeWidth())}),fe.isPlaced=!0,fe[xe?"show":"hide"](xe)),ae&&xe&&(ae[ae.isNew?"attr":"animate"](ee.getTitlePosition(ae)),ae.isNew=!1),ke&&ke.enabled&&ee.stacking&&ee.stacking.renderStackTotals(),ee.old={len:ee.len,max:ee.max,min:ee.min,transA:ee.transA,userMax:ee.userMax,userMin:ee.userMin},ee.isDirty=!1,M(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(F){F.render()})),this.series.forEach(function(F){F.isDirty=!0})}getKeepProps(){return this.keepProps||le.keepProps}destroy(F){let N=this,ee=N.plotLinesAndBands,ce=this.eventOptions;if(M(this,"destroy",{keepEvents:F}),F||Z(N),[N.ticks,N.minorTicks,N.alternateBands].forEach(function(j){m(j)}),ee){let j=ee.length;for(;j--;)ee[j].destroy()}for(let j in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(I){N[I]&&(N[I]=N[I].destroy())}),N.plotLinesAndBandsGroups)N.plotLinesAndBandsGroups[j]=N.plotLinesAndBandsGroups[j].destroy();B(N,function(j,I){N.getKeepProps().indexOf(I)===-1&&delete N[I]}),this.eventOptions=ce}drawCrosshair(F,N){let ee=this.crosshair,ce=R(ee&&ee.snap,!0),j=this.chart,I,U,J,se=this.cross,ae;if(M(this,"drawCrosshair",{e:F,point:N}),F||(F=this.cross&&this.cross.e),ee&&(C(N)||!ce)!==!1){if(ce?C(N)&&(U=R(this.coll!=="colorAxis"?N.crosshairPos:null,this.isXAxis?N.plotX:this.len-N.plotY)):U=F&&(this.horiz?F.chartX-this.pos:this.len-F.chartY+this.pos),C(U)&&(ae={value:N&&(this.isXAxis?N.x:R(N.stackY,N.y)),translatedValue:U},j.polar&&H(ae,{isCrosshair:!0,chartX:F&&F.chartX,chartY:F&&F.chartY,point:N}),I=this.getPlotLinePath(ae)||null),!C(I)){this.hideCrosshair();return}J=this.categories&&!this.isRadial,se||(this.cross=se=j.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(J?"category ":"thin ")+(ee.className||"")).attr({zIndex:R(ee.zIndex,2)}).add(),!j.styledMode&&(se.attr({stroke:ee.color||(J?x.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":R(ee.width,1)}).css({"pointer-events":"none"}),ee.dashStyle&&se.attr({dashstyle:ee.dashStyle}))),se.show().attr({d:I}),J&&!ee.width&&se.attr({"stroke-width":this.transA}),this.cross.e=F}else this.hideCrosshair();M(this,"afterDrawCrosshair",{e:F,point:N})}hideCrosshair(){this.cross&&this.cross.hide(),M(this,"afterHideCrosshair")}update(F,N){let ee=this.chart;F=v(this.userOptions,F),this.destroy(!0),this.init(ee,F),ee.isDirtyBox=!0,R(N,!0)&&ee.redraw()}remove(F){let N=this.chart,ee=this.coll,ce=this.series,j=ce.length;for(;j--;)ce[j]&&ce[j].remove(!1);q(N.axes,this),q(N[ee]||[],this),N.orderItems(ee),this.destroy(),N.isDirtyBox=!0,R(F,!0)&&N.redraw()}setTitle(F,N){this.update({title:F},N)}setCategories(F,N){this.update({categories:F},N)}}return le.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],le}),c(n,"Core/Axis/DateTimeAxis.js",[n["Core/Utilities.js"]],function(l){var u;let{addEvent:x,getMagnitude:O,normalizeTickInterval:Y,timeUnits:Q}=l;return function(te){function W(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function G(){if(this.options.type!=="datetime"){this.dateTime=void 0;return}this.dateTime||(this.dateTime=new K(this))}te.compose=function(S){return S.keepProps.includes("dateTime")||(S.keepProps.push("dateTime"),S.prototype.getTimeTicks=W,x(S,"afterSetOptions",G)),S};class K{constructor(T){this.axis=T}normalizeTimeTickInterval(T,E){let _=E||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],g=_[_.length-1],w=Q[g[0]],k=g[1],b;for(b=0;b<_.length&&(w=Q[(g=_[b])[0]],k=g[1],!_[b+1]||!(T<=(w*k[k.length-1]+Q[_[b+1][0]])/2));b++);w===Q.year&&T<5*w&&(k=[1,2,5]);let C=Y(T/w,k,g[0]==="year"?Math.max(O(T/w),1):1);return{unitRange:w,count:C,unitName:g[0]}}getXDateFormat(T,E){let{axis:_}=this,g=_.chart.time;return _.closestPointRange?g.getDateFormat(_.closestPointRange,T,_.options.startOfWeek,E)||g.resolveDTLFormat(E.year).main:g.resolveDTLFormat(E.day).main}}te.Additions=K}(u||(u={})),u}),c(n,"Core/Axis/LogarithmicAxis.js",[n["Core/Utilities.js"]],function(l){var u;let{addEvent:x,normalizeTickInterval:O,pick:Y}=l;return function(Q){function te(K){let S=K.userOptions,T=this.logarithmic;S.type!=="logarithmic"?this.logarithmic=void 0:T||(T=this.logarithmic=new G(this))}function W(){let K=this.logarithmic;K&&(this.lin2val=function(S){return K.lin2log(S)},this.val2lin=function(S){return K.log2lin(S)})}Q.compose=function(K){return K.keepProps.includes("logarithmic")||(K.keepProps.push("logarithmic"),x(K,"init",te),x(K,"afterInit",W)),K};class G{constructor(S){this.axis=S}getLogTickPositions(S,T,E,_){let g=this.axis,w=g.len,k=g.options,b=[];if(_||(this.minorAutoInterval=void 0),S>=.5)S=Math.round(S),b=g.getLinearTickPositions(S,T,E);else if(S>=.08){let C,m,q,V,H,M,$,P=Math.floor(T);for(C=S>.3?[1,2,4]:S>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],m=P;m<E+1&&!$;m++)for(q=0,V=C.length;q<V&&!$;q++)(H=this.log2lin(this.lin2log(m)*C[q]))>T&&(!_||M<=E)&&M!==void 0&&b.push(M),M>E&&($=!0),M=H}else{let C=this.lin2log(T),m=this.lin2log(E),q=_?g.getMinorTickInterval():k.tickInterval,V=k.tickPixelInterval/(_?5:1),H=_?w/g.tickPositions.length:w;S=O(S=Y(q==="auto"?null:q,this.minorAutoInterval,(m-C)*V/(H||1))),b=g.getLinearTickPositions(S,C,m).map(this.log2lin),_||(this.minorAutoInterval=S/5)}return _||(g.tickInterval=S),b}lin2log(S){return Math.pow(10,S)}log2lin(S){return Math.log(S)/Math.LN10}}Q.Additions=G}(u||(u={})),u}),c(n,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[n["Core/Utilities.js"]],function(l){var u;let{erase:x,extend:O,isNumber:Y}=l;return function(Q){let te;function W(g){return this.addPlotBandOrLine(g,"plotBands")}function G(g,w){let k=this.userOptions,b=new te(this,g);if(this.visible&&(b=b.render()),b){if(this._addedPlotLB||(this._addedPlotLB=!0,(k.plotLines||[]).concat(k.plotBands||[]).forEach(C=>{this.addPlotBandOrLine(C)})),w){let C=k[w]||[];C.push(g),k[w]=C}this.plotLinesAndBands.push(b)}return b}function K(g){return this.addPlotBandOrLine(g,"plotLines")}function S(g,w,k){k=k||this.options;let b=this.getPlotLinePath({value:w,force:!0,acrossPanes:k.acrossPanes}),C=[],m=this.horiz,q=!Y(this.min)||!Y(this.max)||g<this.min&&w<this.min||g>this.max&&w>this.max,V=this.getPlotLinePath({value:g,force:!0,acrossPanes:k.acrossPanes}),H,M=1,$;if(V&&b)for(q&&($=V.toString()===b.toString(),M=0),H=0;H<V.length;H+=2){let P=V[H],h=V[H+1],f=b[H],L=b[H+1];(P[0]==="M"||P[0]==="L")&&(h[0]==="M"||h[0]==="L")&&(f[0]==="M"||f[0]==="L")&&(L[0]==="M"||L[0]==="L")&&(m&&f[1]===P[1]?(f[1]+=M,L[1]+=M):m||f[2]!==P[2]||(f[2]+=M,L[2]+=M),C.push(["M",P[1],P[2]],["L",h[1],h[2]],["L",L[1],L[2]],["L",f[1],f[2]],["Z"])),C.isFlat=$}return C}function T(g){this.removePlotBandOrLine(g)}function E(g){let w=this.plotLinesAndBands,k=this.options,b=this.userOptions;if(w){let C=w.length;for(;C--;)w[C].id===g&&w[C].destroy();[k.plotLines||[],b.plotLines||[],k.plotBands||[],b.plotBands||[]].forEac
267h(function(m){for(C=m.length;C--;)(m[C]||{}).id===g&&x(m,m[C])})}}function _(g){this.removePlotBandOrLine(g)}Q.compose=function(g,w){let k=w.prototype;return k.addPlotBand||(te=g,O(k,{addPlotBand:W,addPlotLine:K,addPlotBandOrLine:G,getPlotBandPath:S,removePlotBand:T,removePlotLine:_,removePlotBandOrLine:E})),w}}(u||(u={})),u}),c(n,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[n["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],n["Core/Utilities.js"]],function(l,u){let{arrayMax:x,arrayMin:O,defined:Y,destroyObjectProperties:Q,erase:te,fireEvent:W,merge:G,objectEach:K,pick:S}=u;class T{static compose(_){return l.compose(T,_)}constructor(_,g){this.axis=_,this.options=g,this.id=g.id}render(){W(this,"render");let{axis:_,options:g}=this,{horiz:w,logarithmic:k}=_,{color:b,events:C,zIndex:m=0}=g,q={},V=_.chart.renderer,H=g.to,M=g.from,$=g.value,P=g.borderWidth,h=g.label,{label:f,svgElem:L}=this,v=[],A,B=Y(M)&&Y(H),R=Y($),D=!L,Z={class:"highcharts-plot-"+(B?"band ":"line ")+(g.className||"")},X=B?"bands":"lines";if(!_.chart.styledMode&&(R?(Z.stroke=b||"#999999",Z["stroke-width"]=S(g.width,1),g.dashStyle&&(Z.dashstyle=g.dashStyle)):B&&(Z.fill=b||"#e6e9ff",P&&(Z.stroke=g.borderColor,Z["stroke-width"]=P))),q.zIndex=m,X+="-"+m,(A=_.plotLinesAndBandsGroups[X])||(_.plotLinesAndBandsGroups[X]=A=V.g("plot-"+X).attr(q).add()),L||(this.svgElem=L=V.path().attr(Z).add(A)),Y($))v=_.getPlotLinePath({value:(k==null?void 0:k.log2lin($))??$,lineWidth:L.strokeWidth(),acrossPanes:g.acrossPanes});else{if(!(Y(M)&&Y(H)))return;v=_.getPlotBandPath((k==null?void 0:k.log2lin(M))??M,(k==null?void 0:k.log2lin(H))??H,g)}return!this.eventsAdded&&C&&(K(C,(ie,oe)=>{L==null||L.on(oe,le=>{C[oe].apply(this,[le])})}),this.eventsAdded=!0),(D||!L.d)&&(v!=null&&v.length)?L.attr({d:v}):L&&(v?(L.show(),L.animate({d:v})):L.d&&(L.hide(),f&&(this.label=f=f.destroy()))),h&&(Y(h.text)||Y(h.formatter))&&(v!=null&&v.length)&&_.width>0&&_.height>0&&!v.isFlat?(h=G({align:w&&B?"center":void 0,x:w?!B&&4:10,verticalAlign:!w&&B?"middle":void 0,y:w?B?16:10:B?6:-4,rotation:w&&!B?90:0},h),this.renderLabel(h,v,B,m)):f&&f.hide(),this}renderLabel(_,g,w,k){let b=this.axis,C=b.chart.renderer,m=this.label;m||(this.label=m=C.text(this.getLabelText(_),0,0,_.useHTML).attr({align:_.textAlign||_.align,rotation:_.rotation,class:"highcharts-plot-"+(w?"band":"line")+"-label "+(_.className||""),zIndex:k}),b.chart.styledMode||m.css(G({fontSize:"0.8em",textOverflow:"ellipsis"},_.style)),m.add());let q=g.xBounds||[g[0][1],g[1][1],w?g[2][1]:g[0][1]],V=g.yBounds||[g[0][2],g[1][2],w?g[2][2]:g[0][2]],H=O(q),M=O(V);if(m.align(_,!1,{x:H,y:M,width:x(q)-H,height:x(V)-M}),!m.alignValue||m.alignValue==="left"){let $=_.clip?b.width:b.chart.chartWidth;m.css({width:(m.rotation===90?b.height-(m.alignAttr.y-b.top):$-(m.alignAttr.x-b.left))+"px"})}m.show(!0)}getLabelText(_){return Y(_.formatter)?_.formatter.call(this):_.text}destroy(){te(this.axis.plotLinesAndBands,this),delete this.axis,Q(this)}}return T}),c(n,"Core/Tooltip.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Templating.js"],n["Core/Globals.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],function(l,u,x,O,Y,Q){var te;let{animObject:W}=l,{format:G}=u,{composed:K,doc:S,isSafari:T}=x,{distribute:E}=O,{addEvent:_,clamp:g,css:w,discardElement:k,extend:b,fireEvent:C,isArray:m,isNumber:q,isString:V,merge:H,pick:M,pushUnique:$,splat:P,syncTimeout:h}=Q;class f{constructor(v,A,B){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=v,this.init(v,A),this.pointer=B}bodyFormatter(v){return v.map(function(A){let B=A.series.tooltipOptions;return(B[(A.point.formatPrefix||"point")+"Formatter"]||A.point.tooltipFormatter).call(A.point,B[(A.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(v){this.chart.series.forEach(function(A){let B=A&&A.tt;B&&(!B.isActive||v?A.tt=B.destroy():B.isActive=!1)})}defaultFormatter(v){let A,B=this.points||P(this);return(A=(A=[v.tooltipFooterHeaderFormatter(B[0])]).concat(v.bodyFormatter(B))).push(v.tooltipFooterHeaderFormatter(B[0],!0)),A}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),k(this.container)),Q.clearTimeout(this.hideTimer)}getAnchor(v,A){let B,{chart:R,pointer:D}=this,Z=R.inverted,X=R.plotTop,ie=R.plotLeft;if((v=P(v))[0].series&&v[0].series.yAxis&&!v[0].series.yAxis.options.reversedStacks&&(v=v.slice().reverse()),this.followPointer&&A)A.chartX===void 0&&(A=D.normalize(A)),B=[A.chartX-ie,A.chartY-X];else if(v[0].tooltipPos)B=v[0].tooltipPos;else{let oe=0,le=0;v.forEach(function(ue){let F=ue.pos(!0);F&&(oe+=F[0],le+=F[1])}),oe/=v.length,le/=v.length,this.shared&&v.length>1&&A&&(Z?oe=A.chartX:le=A.chartY),B=[oe-ie,le-X]}return B.map(Math.round)}getClassName(v,A,B){let R=this.options,D=v.series,Z=D.options;return[R.className,"highcharts-label",B&&"highcharts-tooltip-header",A?"highcharts-tooltip-box":"highcharts-tooltip",!B&&"highcharts-color-"+M(v.colorIndex,D.colorIndex),Z&&Z.className].filter(V).join(" ")}getLabel(){let v=this,A=this.chart.styledMode,B=this.options,R=this.split&&this.allowShared,D=this.container,Z=this.chart.renderer;if(this.label){let X=!this.label.hasClass("highcharts-label");(!R&&X||R&&!X)&&this.destroy()}if(!this.label){if(this.outside){let X=this.chart.options.chart.style,ie=Y.getRendererType();this.container=D=x.doc.createElement("div"),D.className="highcharts-tooltip-container",w(D,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||
vendor: 2,411 bytes, line 267
2670,(X&&X.zIndex||0)+3)}),this.renderer=Z=new ie(D,0,0,X,void 0,void 0,Z.styledMode)}if(R?this.label=Z.g("tooltip"):(this.label=Z.label("",0,0,B.shape,void 0,void 0,B.useHTML,void 0,"tooltip").attr({padding:B.padding,r:B.borderRadius}),A||this.label.attr({fill:B.backgroundColor,"stroke-width":B.borderWidth||0}).css(B.style).css({pointerEvents:B.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),v.outside){let X=this.label;[X.xSetter,X.ySetter].forEach((ie,oe)=>{X[oe?"ySetter":"xSetter"]=le=>{ie.call(X,v.distance),X[oe?"y":"x"]=le,D&&(D.style[oe?"top":"left"]=`${le}px`)}})}this.label.attr({zIndex:8}).shadow(B.shadow).add()}return D&&!D.parentElement&&x.doc.body.appendChild(D),this.label}getPlayingField(){let{body:v,documentElement:A}=S,{chart:B,distance:R,outside:D}=this;return{width:D?Math.max(v.scrollWidth,A.scrollWidth,v.offsetWidth,A.offsetWidth,A.clientWidth)-2*R:B.chartWidth,height:D?Math.max(v.scrollHeight,A.scrollHeight,v.offsetHeight,A.offsetHeight,A.clientHeight):B.chartHeight}}getPosition(v,A,B){var Ee,Se;let{distance:R,chart:D,outside:Z,pointer:X}=this,{inverted:ie,plotLeft:oe,plotTop:le,polar:ue}=D,{plotX:F=0,plotY:N=0}=B,ee={},ce=ie&&B.h||0,{height:j,width:I}=this.getPlayingField(),U=X.getChartPosition(),J=be=>be*U.scaleX,se=be=>be*U.scaleY,ae=be=>{let Te=be==="x";return[be,Te?I:j,Te?v:A].concat(Z?[Te?J(v):se(A),Te?U.left-R+J(F+oe):U.top-R+se(N+le),0,Te?I:j]:[Te?v:A,Te?F+oe:N+le,Te?oe:le,Te?oe+D.plotWidth:le+D.plotHeight])},he=ae("y"),me=ae("x"),ve,ke=!!B.negative;!ue&&((Se=(Ee=D.hoverSeries)==null?void 0:Ee.yAxis)!=null&&Se.reversed)&&(ke=!ke);let Pe=!this.followPointer&&M(B.ttBelow,!ue&&!ie===ke),ge=function(be,Te,Le,Ne,_e,We,He){let Ye=Z?be==="y"?se(R):J(R):R,Ge=(Le-Ne)/2,Ve=Ne<_e-R,ot=_e+R+Ne<Te,ct=_e-Ye-Le+Ge,ft=_e+Ye-Ge;if(Pe&&ot)ee[be]=ft;else if(!Pe&&Ve)ee[be]=ct;else if(Ve)ee[be]=Math.min(He-Ne,ct-ce<0?ct:ct-ce);else{if(!ot)return!1;ee[be]=Math.max(We,ft+ce+Le>Te?ft:ft+ce)}},de=function(be,Te,Le,Ne,_e){if(_e<R||_e>Te-R)return!1;_e<Le/2?ee[be]=1:_e>Te-Ne/2?ee[be]=Te-Ne-2:ee[be]=_e-Le/2},fe=function(be){[he,me]=[me,he],ve=be},xe=()=>{ge.apply(0,he)!==!1?de.apply(0,me)!==!1||ve||(fe(!0),xe()):ve?ee.x=ee.y=0:(fe(!0),xe())};return(ie&&!ue||this.len>1)&&fe(),xe(),ee}hide(v){let A=this;Q.clearTimeout(this.hideTimer),v=M(v,this.options.hideDelay),this.isHidden||(this.hideTimer=h(function(){let B=A.getLabel();A.getLabel().animate({opacity:0}
267,{duration:v&&150,complete:()=>{B.hide(),A.container&&A.container.remove()}}),A.isHidden=!0},v))}init(v,A){this.chart=v,this.options=A,this.crosshairs=[],this.isHidden=!0,this.split=A.split&&!v.inverted&&!v.polar,this.shared=A.shared||this.split,this.outside=M(A.outside,!!(v.scrollablePixelsX||v.scrollablePixelsY))}shouldStickOnContact(v){return!!(!this.followPointer&&this.options.stickOnContact&&(!v||this.pointer.inClass(v.target,"highcharts-tooltip")))}move(v,A,B,R){let D=this,Z=W(!D.isHidden&&D.options.animation),X=D.followPointer||(D.len||0)>1,ie={x:v,y:A};X||(ie.anchorX=B,ie.anchorY=R),Z.step=()=>D.drawTracker(),D.getLabel().animate(ie,Z)}refresh(v,A){let{chart:B,options:R,pointer:D,shared:Z}=this,X=P(v),ie=X[0],oe=[],le=R.format,ue=R.formatter||this.defaultFormatter,F=B.styledMode,N={};if(!R.enabled||!ie.series)return;Q.clearTimeout(this.hideTimer),this.allowShared=!(!m(v)&&v.series&&v.series.noSharedTooltip),this.followPointer=!this.split&&ie.series.tooltipOptions.followPointer;let ee=this.getAnchor(v,A),ce=ee[0],j=ee[1];Z&&this.allowShared?(D.applyInactiveState(X),X.forEach(function(J){J.setState("hover"),oe.push(J.getLabelConfig())}),(N=ie.getLabelConfig()).points=oe):N=ie.getLabelConfig(),this.len=oe.length;let I=V(le)?G(le,N,B):ue.call(N,this),U=ie.series;if(this.distance=M(U.tooltipOptions.distance,16),I===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(I,X);else{let J=ce,se=j;if(A&&D.isDirectTouch&&(J=A.chartX-B.plotLeft,se=A.chartY-B.plotTop),B.polar||U.options.clip===!1||X.some(ae=>D.isDirectTouch||ae.series.shouldShowTooltip(J,se))){let ae=this.getLabel();(!R.style.width||F)&&ae.css({width:(this.outside?this.getPlayingField():B.spacingBox).width+"px"}),ae.attr({class:this.getClassName(ie),text:I&&I.join?I.join(""):I}),F||ae.attr({stroke:R.borderColor||ie.color||U.color||"#666666"}),this.updatePosition({plotX:ce,plotY:j,negative:ie.negative,ttBelow:ie.ttBelow,h:ee[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}C(this,"refresh")}renderSplit(v,A){var Te;let B=this,{chart:R,chart:{chartWidth:D,chartHeight:Z,plotHeight:X,plotLeft:ie,plotTop:oe,scrollablePixelsY:le=0,scrollablePixelsX:ue,styledMode:F},distance:N,options:ee,options:{positioner:ce},pointer:j}=B,{scrollLeft:I=0,scrollTop:U=0}=((Te=R.scrollablePlotArea)==null?void 0:Te.scrollingContainer)||{},J=B.outside&&typeof ue!="number"?S.documentElement.getBoundingClientRect():{left:I,right:I+D},se=B.getLabel(),ae=this.renderer||R.renderer,he=!!(R.xAxis[0]&&R.xAxis[0].opposite),{left:me,top:ve}=j.getChartPosition(),ke=oe+U,Pe=0,ge=X-le;function de(Le,Ne,_e,We,He=!0){let Ye,Ge;return _e?(Ye=he?0:ge,Ge=g(Le-We/2,J.left,J.right-We-(B.outside?me:0))):(Ye=Ne-ke,Ge=g(Ge=He?Le-We-N:Le+N,He?Ge:J.left,J.right)),{x:Ge,y:Ye}}V(v)&&(v=[!1,v]);let fe=v.slice(0,A.length+1).reduce(function(Le,Ne,_e){if(Ne!==!1&&Ne!==""){let We=A[_e-1]||{isHeader:!0,plotX:A[0].plotX,plotY:X,series:{}},He=We.isHeader,Ye=He?B:We.series,Ge=Ye.tt=function(kt,Mt,fr){let Jt=kt,{isHeader:Er,series:Qr}=Mt;if(!Jt){let Br={padding:ee.padding,r:ee.borderRadius};F||(Br.fill=ee.backgroundColor,Br["stroke-width"]=ee.borderWidth??1),Jt=ae.label("",0,0,ee[Er?"headerShape":"shape"],void 0,void 0,ee.useHTML).addClass(B.getClassName(Mt,!0,Er)).attr(Br).add(se)}return Jt.isActive=!0,Jt.attr({text:fr}),F||Jt.css(ee.style).attr({stroke:ee.borderColor||Mt.color||Qr.color||"#333333"}),Jt}(Ye.tt,We,Ne.toString()),Ve=Ge.getBBox(),ot=Ve.width+Ge.strokeWidth();He&&(Pe=Ve.height,ge+=Pe,he&&(ke-=Pe));let{anchorX:ct,anchorY:ft}=function(kt){let Mt,fr,{isHeader:Jt,plotX:Er=0,plotY:Qr=0,series:Br}=kt;if(Jt)Mt=Math.max(ie+Er,ie),fr=oe+X/2;else{let{xAxis:Wn,yAxis:lr}=Br;Mt=Wn.pos+g(Er,-N,Wn.len+N),Br.shouldShowTooltip(0,lr.pos-oe+Qr,{ignoreX:!0})&&(fr=lr.pos+Qr)}return{anchorX:Mt=g(Mt,J.left-N,J.right+N),anchorY:fr}}(We);if(typeof ft=="number"){let kt=Ve.height+1,Mt=ce?ce.call(B,ot,kt,We):de(ct,ft,He,ot);Le.push({align:ce?0:void 0,anchorX:ct,anchorY:ft,boxWidth:ot,point:We,rank:M(Mt.rank,He?1:0),size:kt,target:Mt.y,tt:Ge,x:Mt.x})}else Ge.isActive=!1}return Le},[]);!ce&&fe.some(Le=>{let{outside:Ne}=B,_e=(Ne?me:0)+Le.anchorX;return _e<J.left&&_e+Le.boxWidth<J.right||_e<me-J.left+Le.boxWidth&&J.right-_e>_e})&&(fe=fe.map(Le=>{let{x:Ne,y:_e}=de(Le.anchorX,Le.anchorY,Le.point.isHeader,Le.boxWidth,!1);return b(Le,{target:_e,x:Ne})})),B.cleanSplit(),E(fe,ge);let xe={left:me,right:me};fe.forEach(function(Le){let{x:Ne,boxWidth:_e,isHeader:We}=Le;!We&&(B.outside&&me+Ne<xe.left&&(xe.left=me+Ne),!We&&B.outside&&xe.left+_e>xe.right&&(xe.right=me+Ne))}),fe.forEach(function(Le){let{x:Ne,anchorX:_e,anchorY:We,pos:He,point:{isHeader:Ye}}=Le,Ge={visibility:He===void 0?"hidden":"inherit",x:Ne,y:(He||0)+ke,anchorX:_e,anchorY:We};if(B.outside&&Ne<_e){let Ve=me-xe.left;Ve>0&&(Ye||(Ge.x=Ne+Ve,Ge.anchorX=_e+Ve),Ye&&(Ge.x=(xe.right-xe.left)/2,Ge.anchorX=_e+Ve))}Le.tt.attr(Ge)});let{container:Ee,outside:Se,renderer:be}=B;if(Se&&Ee&&be){let{width:Le,height:Ne,x:_e,y:We}=se.getBBox();be.setSize(Le+_e,Ne+We,!1),Ee.style.left=xe.left+"px",Ee.style.top=ve+"px"}T&&se.attr({opacity:se.opacity===1?.999:1})}drawTracker(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}let v=this.chart,A=this.label,B=this.shared?v.hoverPoints:v.hoverPoint;if(!A||!B)return;let R={x:0,y:0,width:0,height:0},D=this.getAnchor(B),Z=A.getBBox();D[0]+=v.plotLeft-(A.translateX||0),D[1]+=v.plotTop-(A.translateY||0),R.x=Math.min(0,D[0]),R.y=Math.min(0,D[1]),R.width=D[0]<0?Math.max(Math.abs(D[0]),Z.width-D[0]):Math.max(Math.abs(D[0]),Z.width),R.height=D[1]<0?Math.max(Math.abs(D[1]),Z.height-Math.abs(D[1])):Math.max(Math.abs(D[1]),Z.height),this.tracker?this.tracker.attr(R):(this.tracker=A.renderer.rect(
267R).addClass("highcharts-tracker").add(A),v.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(v){return v.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(v,A){let B=v.series,R=B.tooltipOptions,D=B.xAxis,Z=D&&D.dateTime,X={isFooter:A,labelConfig:v},ie=R.xDateFormat,oe=R[A?"footerFormat":"headerFormat"];return C(this,"headerFormatter",X,function(le){Z&&!ie&&q(v.key)&&(ie=Z.getXDateFormat(v.key,R.dateTimeLabelFormats)),Z&&ie&&(v.point&&v.point.tooltipDateKeys||["key"]).forEach(function(ue){oe=oe.replace("{point."+ue+"}","{point."+ue+":"+ie+"}")}),B.chart.styledMode&&(oe=this.styledModeFormat(oe)),le.text=G(oe,{point:v,series:B},this.chart)}),X.text}update(v){this.destroy(),this.init(this.chart,H(!0,this.options,v))}updatePosition(v){let{chart:A,container:B,distance:R,options:D,pointer:Z,renderer:X}=this,{height:ie=0,width:oe=0}=this.getLabel(),{left:le,top:ue,scaleX:F,scaleY:N}=Z.getChartPosition(),ee=(D.positioner||this.getPosition).call(this,oe,ie,v),ce=(v.plotX||0)+A.plotLeft,j=(v.plotY||0)+A.plotTop,I;X&&B&&(D.positioner&&(ee.x+=le-R,ee.y+=ue-R),I=(D.borderWidth||0)+2*R+2,X.setSize(oe+I,ie+I,!1),(F!==1||N!==1)&&(w(B,{transform:`scale(${F}, ${N})`}),ce*=F,j*=N),ce+=le-ee.x,j+=ue-ee.y),this.move(Math.round(ee.x),Math.round(ee.y||0),ce,j)}}return(te=f||(f={})).compose=function(L){$(K,"Core.Tooltip")&&_(L,"afterInit",function(){let v=this.chart;v.options.tooltip&&(v.tooltip=new te(v,v.options.tooltip,this))})},f}),c(n,"Core/Series/Point.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/Defaults.js"],n["Core/Templating.js"],n["Core/Utilities.js"]],function(l,u,x,O,Y){let{animObject:Q}=u,{defaultOptions:te}=x,{format:W}=O,{addEvent:G,crisp:K,erase:S,extend:T,fireEvent:E,getNestedProperty:_,isArray:g,isFunction:w,isNumber:k,isObject:b,merge:C,pick:m,syncTimeout:q,removeEvent:V,uniqueKey:H}=Y;class M{animateBeforeDestroy(){let P=this,h={x:P.startXPos,opacity:0},f=P.getGraphicalProps();f.singular.forEach(function(L){P[L]=P[L].animate(L==="dataLabel"?{x:P[L].startXPos,y:P[L].startYPos,opacity:0}:h)}),f.plural.forEach(function(L){P[L].forEach(function(v){v.element&&v.animate(T({x:P.startXPos},v.startYPos?{x:v.startXPos,y:v.startYPos}:{}))})})}applyOptions(P,h){let f=this.series,L=f.options.pointValKey||f.pointValKey;return T(this,P=M.prototype.optionsToObject.call(this,P)),this.options=this.options?T(this.options,P):P,P.group&&delete this.group,P.dataLabels&&delete this.dataLabels,L&&(this.y=M.prototype.getNestedProperty.call(this,L)),this.selected&&(this.state="select"),"name"in this&&h===void 0&&f.xAxis&&f.xAxis.hasNames&&(this.x=f.xAxis.nameToX(this)),this.x===void 0&&f?this.x=h??f.autoIncrement():k(P.x)&&f.options.relativeXValue&&(this.x=f.autoIncrement(P.x)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let P=this,h=P.series,f=h.chart,L=h.options.dataSorting,v=f.hoverPoints,A=Q(P.series.chart.renderer.globalAnimation),B=()=>{for(let R in(P.graphic||P.graphics||P.dataLabel||P.dataLabels)&&(V(P),P.destroyElements()),P)delete P[R]};P.legendItem&&f.legend.destroyItem(P),v&&(P.setState(),S(v,P),v.length||(f.hoverPoints=null)),P===f.hoverPoint&&P.onMouseOut(),L&&L.enabled?(this.animateBeforeDestroy(),q(B,A.duration)):B(),f.pointCount--}this.destroyed=!0}destroyElements(P){let h=this,f=h.getGraphicalProps(P);f.singular.forEach(function(L){h[L]=h[L].destroy()}),f.plural.forEach(function(L){h[L].forEach(function(v){v&&v.element&&v.destroy()}),delete h[L]})}firePointEvent(P,h,f){let L=this,v=this.series.options;L.manageEvent(P),P==="click"&&v.allowPointSelect&&(f=function(A){!L.destroyed&&L.select&&L.select(null,A.ctrlKey||A.metaKey||A.shiftKey)}),E(L,P,h,f)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(P){let h,f,L=this,v=[],A={singular:[],plural:[]};for((P=P||{graphic:1,dataLabel:1}).graphic&&v.push("graphic","connector"),P.dataLabel&&v.push("dataLabel","dataLabelPath","dataLabelUpper"),f=v.length;f--;)L[h=v[f]]&&A.singular.push(h);return["graphic","dataLabel"].forEach(function(B){let R=B+"s";P[B]&&L[R]&&A.plural.push(R)}),A}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(P){return P?P.indexOf("custom.")===0?_(P,this.options):this[P]:void 0}getZone(){let P=this.series,h=P.zones,f=P.zoneAxis||"y",L,v=0;for(L=h[0];this[f]>=L.value;)L=h[++v];return this.nonZonedColor||(this.nonZonedColor=this.color),L&&L.color&&!this.options.color?this.color=L.color:this.color=this.nonZonedColor,L}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(P,h,f){this.formatPrefix="point",this.visible=!0,this.series=P,this.applyOptions(h,f),this.id??(this.id=H()),this.resolveColor(),P.chart.pointCount++,E(this,"afterInit")}isValid(){return(k(this.x)||this.x instanceof Date)&&k(this.y)}optionsToObject(P){let h=this.series,f=h.options.keys,L=f||h.pointArrayMap||["y"],v=L.length,A={},B,R=0,D=0;if(k(P)||P===null)A[L[0]]=P;else if(g(P))for(!f&&P.length>v&&((B=typeof P[0])=="string"?A.name=P[0]:B==="number"&&(A.x=P[0]),R++);D<v;)f&&P[R]===void 0||(L[D].indexOf(".")>0?M.prototype.setNestedProperty(A,P[R],L[D]):A[L[D]]=P[R]),R++,D++;else typeof P=="object"&&(A=P,P.dataLabels&&(h.hasDataLabels=()=>!0),P.marker&&(h._hasPointMarkers=!0));return A}
vendor: 2,216 bytes, line 267
267pos(P,h=this.plotY){if(!this.destroyed){let{plotX:f,series:L}=this,{chart:v,xAxis:A,yAxis:B}=L,R=0,D=0;if(k(f)&&k(h))return P&&(R=A?A.pos:v.plotLeft,D=B?B.pos:v.plotTop),v.inverted&&A&&B?[B.len-h+D,A.len-f+R]:[f+R,h+D]}}resolveColor(){let P=this.series,h=P.chart.options.chart,f=P.chart.styledMode,L,v,A=h.colorCount,B;delete this.nonZonedColor,P.options.colorByPoint?(f||(L=(v=P.options.colors||P.chart.options.colors)[P.colorCounter],A=v.length),B=P.colorCounter,P.colorCounter++,P.colorCounter===A&&(P.colorCounter=0)):(f||(L=P.color),B=P.colorIndex),this.colorIndex=m(this.options.colorIndex,B),this.color=m(this.options.color,L)}setNestedProperty(P,h,f){return f.split(".").reduce(function(L,v,A,B){let R=B.length-1===A;return L[v]=R?h:b(L[v],!0)?L[v]:{},L[v]},P),P}shouldDraw(){return!this.isNull}tooltipFormatter(P){let h=this.series,f=h.tooltipOptions,L=m(f.valueDecimals,""),v=f.valuePrefix||"",A=f.valueSuffix||"";return h.chart.styledMode&&(P=h.chart.tooltip.styledModeFormat(P)),(h.pointArrayMap||["y"]).forEach(function(B){B="{point."+B,(v||A)&&(P=P.replace(RegExp(B+"}","g"),v+B+"}"+A)),P=P.replace(RegExp(B+"}","g"),B+":,."+L+"f}")}),W(P,{point:this,series:this.series},h.chart)}update(P,h,f,L){let v,A=this,B=A.series,R=A.graphic,D=B.chart,Z=B.options;function X(){A.applyOptions(P);let ie=R&&A.hasMockGraphic,oe=A.y===null?!ie:ie;R&&oe&&(A.graphic=R.destroy(),delete A.hasMockGraphic),b(P,!0)&&(R&&R.element&&P&&P.marker&&P.marker.symbol!==void 0&&(A.graphic=R.destroy()),P!=null&&P.dataLabels&&A.dataLabel&&(A.dataLabel=A.dataLabel.destroy())),v=A.index,B.updateParallelArrays(A,v),Z.data[v]=b(Z.data[v],!0)||b(P,!0)?A.options:m(P,Z.data[v]),B.isDirty=B.isDirtyData=!0,!B.fixedBox&&B.hasCartesianSeries&&(D.isDirtyBox=!0),Z.legendType==="point"&&(D.isDirtyLegend=!0),h&&D.redraw(f)}h=m(h,!0),L===!1?X():A.firePointEvent("update",{options:P},X)}remove(P,h){this.series.removePoint(this.series.data.indexOf(this),P,h)}select(P,h){let f=this,L=f.series,v=L.chart;P=m(P,!f.selected),this.selectedStaging=P,f.firePointEvent(P?"select":"unselect",{accumulate:h},function(){f.selected=f.options.selected=P,L.options.data[L.data.indexOf(f)]=f.options,f.setState(P&&"select"),h||v.getSelectedPoints().forEac
267h(function(A){let B=A.series;A.selected&&A!==f&&(A.selected=A.options.selected=!1,B.options.data[B.data.indexOf(A)]=A.options,A.setState(v.hoverPoints&&B.options.inactiveOtherPoints?"inactive":""),A.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(P){let{inverted:h,pointer:f}=this.series.chart;f&&(P=P?f.normalize(P):f.getChartCoordinatesFromPoint(this,h),f.runPointActions(P,this))}onMouseOut(){let P=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(P.hoverPoints||[]).forEach(function(h){h.setState()}),P.hoverPoints=P.hoverPoint=null}manageEvent(P){var L,v,A,B,R,D;let h=C(this.series.options.point,this.options),f=(L=h.events)==null?void 0:L[P];w(f)&&(!((v=this.hcEvents)!=null&&v[P])||((B=(A=this.hcEvents)==null?void 0:A[P])==null?void 0:B.map(Z=>Z.fn).indexOf(f))===-1)?((R=this.importedUserEvent)==null||R.call(this),this.importedUserEvent=G(this,P,f)):this.importedUserEvent&&!f&&((D=this.hcEvents)!=null&&D[P])&&(V(this,P),delete this.hcEvents[P],Object.keys(this.hcEvents)||delete this.importedUserEvent)}setState(P,h){var U;let f=this.series,L=this.state,v=f.options.states[P||"normal"]||{},A=te.plotOptions[f.type].marker&&f.options.marker,B=A&&A.enabled===!1,R=A&&A.states&&A.states[P||"normal"]||{},D=R.enabled===!1,Z=this.marker||{},X=f.chart,ie=A&&f.markerAttribs,oe=f.halo,le,ue,F,N=f.stateMarkerGraphic,ee;if((P=P||"")===this.state&&!h||this.selected&&P!=="select"||v.enabled===!1||P&&(D||B&&R.enabled===!1)||P&&Z.states&&Z.states[P]&&Z.states[P].enabled===!1)return;if(this.state=P,ie&&(le=f.markerAttribs(this,P)),this.graphic&&!this.hasMockGraphic){if(L&&this.graphic.removeClass("highcharts-point-"+L),P&&this.graphic.addClass("highcharts-point-"+P),!X.styledMode){ue=f.pointAttribs(this,P),F=m(X.options.chart.animation,v.animation);let J=ue.opacity;f.options.inactiveOtherPoints&&k(J)&&(this.dataLabels||[]).forEach(function(se){se&&!se.hasClass("highcharts-data-label-hidden")&&(se.animate({opacity:J},F),se.connector&&se.connector.animate({opacity:J},F))}),this.graphic.animate(ue,F)}le&&this.graphic.animate(le,m(X.options.chart.animation,R.animation,A.animation)),N&&N.hide()}else P&&R&&(ee=Z.symbol||f.symbol,N&&N.currentSymbol!==ee&&(N=N.destroy()),le&&(N?N[h?"animate":"attr"]({x:le.x,y:le.y}):ee&&(f.stateMarkerGraphic=N=X.renderer.symbol(ee,le.x,le.y,le.width,le.height).add(f.markerGroup),N.currentSymbol=ee)),!X.styledMode&&N&&this.state!=="inactive"&&N.attr(f.pointAttribs(this,P))),N&&(N[P&&this.isInside?"show":"hide"](),N.element.point=this,N.addClass(this.getClassName(),!0));let ce=v.halo,j=this.graphic||N,I=j&&j.visibility||"inherit";ce&&ce.size&&j&&I!=="hidden"&&!this.isCluster?(oe||(f.halo=oe=X.renderer.path().add(j.parentGroup)),oe.show()[h?"animate":"attr"]({d:this.haloPath(ce.size)}),oe.attr({class:"highcharts-halo highcharts-color-"+m(this.colorIndex,f.colorIndex)+(this.className?" "+this.className:""),visibility:I,zIndex:-1}),oe.point=this,X.styledMode||oe.attr(T({fill:this.color||f.color,"fill-opacity":ce.opacity},l.filterUserAttributes(ce.attributes||{})))):(U=oe==null?void 0:oe.point)!=null&&U.haloPath&&!oe.point.destroyed&&oe.animate({d:oe.point.haloPath(0)},null,oe.hide),E(this,"afterSetState",{state:P})}haloPath(P){let h=this.pos();return h?this.series.chart.renderer.symbols.circle(K(h[0],1)-P,h[1]-P,2*P,2*P):[]}}return M}),c(n,"Core/Pointer.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(l,u,x){var O;let{parse:Y}=l,{charts:Q,composed:te,isTouchDevice:W}=u,{addEvent:G,attr:K,css:S,extend:T,find:E,fireEvent:_,isNumber:g,isObject:w,objectEach:k,offset:b,pick:C,pushUnique:m,splat:q}=x;class V{applyInactiveState(M){let $=[],P;(M||[]).forEach(function(h){P=h.series,$.push(P),P.linkedParent&&$.push(P.linkedParent),P.linkedSeries&&($=$.concat(P.linkedSeries)),P.navigatorSeries&&$.push(P.navigatorSeries)}),this.chart.series.forEach(function(h){$.indexOf(h)===-1?h.setState("inactive",!0):h.options.inactiveOtherPoints&&h.setAllPointsToState("inactive")})}destroy(){let M=this;this.eventsToUnbind.forEach($=>$()),this.eventsToUnbind=[],!u.chartCount&&(V.unbindDocumentMouseUp&&(V.unbindDocumentMouseUp=V.unbindDocumentMouseUp()),V.unbindDocumentTouchEnd&&(V.unbindDocumentTouchEnd=V.unbindDocumentTouchEnd())),clearInterval(M.tooltipTimeout),k(M,function($,P){M[P]=void 0})}getSelectionMarkerAttrs(M,$){let P={args:{chartX:M,chartY:$},attrs:{},shapeType:"rect"};return _(this,"getSelectionMarkerAttrs",P,h=>{let f,{chart:L,zoomHor:v,zoomVert:A}=this,{mouseDownX:B=0,mouseDownY:R=0}=L,D=h.attrs;D.x=L.plotLeft,D.y=L.plotTop,D.width=v?1:L.plotWidth,D.height=A?1:L.plotHeight,v&&(f=M-B,D.width=Math.max(1,Math.abs(f)),D.x=(f>0?0:f)+B),A&&(f=$-R,D.height=Math.max(1,Math.abs(f)),D.y=(f>0?0:f)+R)}),P}drag(M){let{chart:$}=this,{mouseDownX:P=0,mouseDownY:h=0}=$,{panning:f,panKey:L,selectionMarkerFill:v}=$.options.chart,A=$.plotLeft,B=$.plotTop,R=$.plotWidth,D=$.plotHeight,Z=w(f)?f.enabled:f,X=L&&M[`${L}Key`],ie=M.chartX,oe=M.chartY,le,ue=this.selectionMarker;if((!ue||!ue.touch)&&(ie<A?ie=A:ie>A+R&&(ie=A+R),oe<B?oe=B:oe>B+D&&(oe=B+D),this.hasDragged=Math.sqrt(Math.pow(P-ie,2)+Math.pow(h-oe,2)),this.hasDragged>10)){le=$.isInsidePlot(P-A,h-B,{visiblePlotOnly:!0});let{shapeType:F,attrs:N}=this.getSelectionMarkerAttrs(ie,oe);($.hasCartesianSeries||$.mapView)&&this.hasZoom&&le&&!X&&!ue&&(this.selectionMarker=ue=$.renderer[F](),ue.attr({class:"highcharts-selection-marker",zIndex:7}).add(),$.styledMode||ue.attr({fill:v||Y("#334eff").setOpacity(.25).get()})),ue&&ue.attr(N),le&&!ue&&Z&&$.pan(M,f)}}dragStart(M){let $=this.chart;$.mouseIsDown=M.type,$.cancelClick=!1,$.mouseDownX=M.chartX,$.mouseDownY=M.chartY}getSelectionBox(M){let $={args:{marker:M},result:M.getBBox()};return _(this,"getSelectionBox",$),$.result}drop(M){let $,{chart:P,selectionMarker:h}=this;for(let f of P.axes)f.isPanning&&(f.isPanning=!1,(f.options.startOnTick||f.options.endOnTick||f.series.some(L=>L.boosted))&&(f.forceRedraw=!0,f.setExtremes(f.userMin,f.userMax,!1),$=!0));if($&&P.redraw(),h&&M){if(this.hasDragged){let f=this.getSelectionBox(h);P.transform({axes:P.axes.filter(L=>L.zoomEnabled&&(L.coll==="xAxis"&&this.zoomX||L.coll==="yAxis"&&this.zoomY)),selection:{originalEvent:M,xAxis:[],yAxis:[],...f},from:f})}g(P.index)&&(this.selectionMarker=h.destroy())}P&&g(P.index)&&(S(P.container,{cursor:P._cursor}),P.cancelClick=this.hasDragged>10,P.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(M,$,P){let h;return M.forEach(function(f){let L=!(f.noSharedTooltip&&$)&&0>f.options.findNearestPointBy.indexOf("y"),v=f.searchPoint(P,L);w(v,!0)&&v.series&&(!w(h,!0)||function(A,B){var X,ie;let R=A.distX-B.distX,D=A.dist-B.dist,Z=((X=B.series.group)==null?void 0:X.zIndex)-((ie=A.series.group)==null?void 0:ie.zIndex);return R!==0&&$?R:D!==0?D:Z!==0?Z:A.series.index>B.series.index?-1:1}(h,v)>0)&&(h=v)}),h}getChartCoordinatesFromPoint(M,$){let{xAxis:P,yAxis:h}=M.series,f=M.shapeArgs;if(P&&h){let L=M.clientX??M.plotX??0,v=M.plotY||0;return M.isNode&&f&&g(f.x)&&g(f.y)&&(L=f.x,v=f.y),$?{chartX:h.len+h.pos-v,chartY:P.len+P.pos-L}:{chartX:L+P.pos,chartY:v+h.pos}}if(f&&f.x&&f.y)return{chartX:f.x,chartY:f.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:M}=this.chart,$=b(M);this.chartPosition={left:$.left,top:$.top,scaleX:1,scaleY:1};let{offsetHeight:P,offsetWidth:h}=M;return h>2&&P>2&&(this.chartPosition.scaleX=$.width/h,this.chartPosition.scaleY=$.height/P),this.chartPosition}getCoordinates(M){let $={xAxis:[],yAxis:[]};for(let P of this.chart.axes)$[P.isXAxis?"xAxis":"yAxis"].push({axis:P,value:P.toValue(M[P.horiz?"chartX":"
267chartY"])});return $}getHoverData(M,$,P,h,f,L){let v=[],A=function(X){return X.visible&&!(!f&&X.directTouch)&&C(X.options.enableMouseTracking,!0)},B=$,R,D={chartX:L?L.chartX:void 0,chartY:L?L.chartY:void 0,shared:f};_(this,"beforeGetHoverData",D),R=B&&!B.stickyTracking?[B]:P.filter(X=>X.stickyTracking&&(D.filter||A)(X));let Z=h&&M||!L?M:this.findNearestKDPoint(R,f,L);return B=Z&&Z.series,Z&&(f&&!B.noSharedTooltip?(R=P.filter(function(X){return D.filter?D.filter(X):A(X)&&!X.noSharedTooltip})).forEach(function(X){let ie=E(X.points,function(oe){return oe.x===Z.x&&!oe.isNull});w(ie)&&(X.boosted&&X.boost&&(ie=X.boost.getPoint(ie)),v.push(ie))}):v.push(Z)),_(this,"afterGetHoverData",D={hoverPoint:Z}),{hoverPoint:D.hoverPoint,hoverSeries:B,hoverPoints:v}}getPointFromEvent(M){let $=M.target,P;for(;$&&!P;)P=$.point,$=$.parentNode;return P}onTrackerMouseOut(M){let $=this.chart,P=M.relatedTarget,h=$.hoverSeries;this.isDirectTouch=!1,!h||!P||h.stickyTracking||this.inClass(P,"highcharts-tooltip")||this.inClass(P,"highcharts-series-"+h.index)&&this.inClass(P,"highcharts-tracker")||h.onMouseOut()}inClass(M,$){let P=M,h;for(;P;){if(h=K(P,"class")){if(h.indexOf($)!==-1)return!0;if(h.indexOf("highcharts-container")!==-1)return!1}P=P.parentElement}}constructor(M,$){var P;this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=$,this.chart=M,this.runChartClick=!!((P=$.chart.events)!=null&&P.click),this.pinchDown=[],this.setDOMEvents(),_(this,"afterInit")}normalize(M,$){let P=M.touches,h=P?P.length?P.item(0):C(P.changedTouches,M.changedTouches)[0]:M;$||($=this.getChartPosition());let f=h.pageX-$.left,L=h.pageY-$.top;return T(M,{chartX:Math.round(f/=$.scaleX),chartY:Math.round(L/=$.scaleY)})}onContainerClick(M){let $=this.chart,P=$.hoverPoint,h=this.normalize(M),f=$.plotLeft,L=$.plotTop;!$.cancelClick&&(P&&this.inClass(h.target,"highcharts-tracker")?(_(P.series,"click",T(h,{point:P})),$.hoverPoint&&P.firePointEvent("click",h)):(T(h,this.getCoordinates(h)),$.isInsidePlot(h.chartX-f,h.chartY-L,{visiblePlotOnly:!0})&&_($,"click",h)))}onContainerMouseDown(M){var P;let $=(1&(M.buttons||M.button))==1;M=this.normalize(M),u.isFirefox&&M.button!==0&&this.onContainerMouseMove(M),(M.button===void 0||$)&&(this.zoomOption(M),$&&((P=M.preventDefault)==null||P.call(M)),this.dragStart(M))}onContainerMouseLeave(M){let{pointer:$}=Q[C(V.hoverChartIndex,-1)]||{};M=this.normalize(M),this.onContainerMouseMove(M),$&&!this.inClass(M.relatedTarget,"highcharts-tooltip")&&($.reset(),$.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(M){let $=this.chart,P=$.tooltip,h=this.normalize(M);this.setHoverChartIndex(M),($.mouseIsDown==="mousedown"||this.touchSelect(h))&&this.drag(h),!$.openMenu&&(this.inClass(h.target,"highcharts-tracker")||$.isInsidePlot(h.chartX-$.plotLeft,h.chartY-$.plotTop,{visiblePlotOnly:!0}))&&!(P&&P.shouldStickOnContact(h))&&(this.inClass(h.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(h))}onDocumentTouchEnd(M){this.onDocumentMouseUp(M)}onContainerTouchMove(M){this.touchSelect(M)?this.onContainerMouseMove(M):this.touch(M)}onContainerTouchStart(M){this.touchSelect(M)?this.onContainerMouseDown(M):(this.zoomOption(M),this.touch(M,!0))}onDocumentMouseMove(M){let $=this.chart,P=$.tooltip,h=this.chartPosition,f=this.normalize(M,h);!h||$.isInsidePlot(f.chartX-$.plotLeft,f.chartY-$.plotTop,{visiblePlotOnly:!0})||P&&P.shouldStickOnContact(f)||f.target!==$.container.ownerDocument&&this.inClass(f.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(M){var $,P;(P=($=Q[C(V.hoverChartIndex,-1)])==null?void 0:$.pointer)==null||P.drop(M)}pinch(M){let $=this,{chart:P,hasZoom:h,lastTouches:f}=$,L=[].map.call(M.touches||[],D=>$.normalize(D)),v=L.length,A=v===1&&($.inClass(M.target,"highcharts-tracker")&&P.runTrackerClick||$.runChartClick),B=P.tooltip,R=v===1&&C(B==null?void 0:B.options.followTouchMove,!0);v>1?$.initiated=!0:R&&($.initiated=!1),h&&$.initiated&&!A&&M.cancelable!==!1&&M.preventDefault(),M.type==="touchstart"?($.pinchDown=L,$.res=!0,P.mouseDownX=M.chartX):R?this.runPointActions($.normalize(M)):f&&(_(P,"touchpan",{originalEvent:M,touches:L},()=>{let D=Z=>{let X=Z[0],ie=Z[1]||X;return{x:X.chartX,y:X.chartY,width:ie.chartX-X.chartX,height:ie.chartY-X.chartY}};P.transform({axes:P.axes.filter(Z=>Z.zoomEnabled&&(this.zoomHor&&Z.horiz||this.zoomVert&&!Z.horiz)),to:D(L),from:D(f),trigger:M.type})}),$.res&&($.res=!1,this.reset(!1,0))),$.lastTouches=L}reset(M,$){let P=this.chart,h=P.hoverSeries,f=P.hoverPoint,L=P.hoverPoints,v=P.tooltip,A=v&&v.shared?L:f;M&&A&&q(A).forEach(function(B){B.series.isCartesian&&B.plotX===void 0&&(M=!1)}
267),M?v&&A&&q(A).length&&(v.refresh(A),v.shared&&L?L.forEach(function(B){B.setState(B.state,!0),B.series.isCartesian&&(B.series.xAxis.crosshair&&B.series.xAxis.drawCrosshair(null,B),B.series.yAxis.crosshair&&B.series.yAxis.drawCrosshair(null,B))}):f&&(f.setState(f.state,!0),P.axes.forEach(function(B){B.crosshair&&f.series[B.coll]===B&&B.drawCrosshair(null,f)}))):(f&&f.onMouseOut(),L&&L.forEach(function(B){B.setState()}),h&&h.onMouseOut(),v&&v.hide($),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),P.axes.forEach(function(B){B.hideCrosshair()}),P.hoverPoints=P.hoverPoint=void 0)}runPointActions(M,$,P){let h=this.chart,f=h.series,L=h.tooltip&&h.tooltip.options.enabled?h.tooltip:void 0,v=!!L&&L.shared,A=$||h.hoverPoint,B=A&&A.series||h.hoverSeries,R=(!M||M.type!=="touchmove")&&(!!$||B&&B.directTouch&&this.isDirectTouch),D=this.getHoverData(A,B,f,R,v,M);A=D.hoverPoint,B=D.hoverSeries;let Z=D.hoverPoints,X=B&&B.tooltipOptions.followPointer&&!B.tooltipOptions.split,ie=v&&B&&!B.noSharedTooltip;if(A&&(P||A!==h.hoverPoint||L&&L.isHidden)){if((h.hoverPoints||[]).forEach(function(oe){Z.indexOf(oe)===-1&&oe.setState()}),h.hoverSeries!==B&&B.onMouseOver(),this.applyInactiveState(Z),(Z||[]).forEach(function(oe){oe.setState("hover")}),h.hoverPoint&&h.hoverPoint.firePointEvent("mouseOut"),!A.series)return;h.hoverPoints=Z,h.hoverPoint=A,A.firePointEvent("mouseOver",void 0,()=>{L&&A&&L.refresh(ie?Z:A,M)})}else if(X&&L&&!L.isHidden){let oe=L.getAnchor([{}],M);h.isInsidePlot(oe[0],oe[1],{visiblePlotOnly:!0})&&L.updatePosition({plotX:oe[0],plotY:oe[1]})}this.unDocMouseMove||(this.unDocMouseMove=G(h.container.ownerDocument,"mousemove",oe=>{var le,ue;return(ue=(le=Q[V.hoverChartIndex??-1])==null?void 0:le.pointer)==null?void 0:ue.onDocumentMouseMove(oe)}),this.eventsToUnbind.push(this.unDocMouseMove)),h.axes.forEach(function(oe){let le,ue=C((oe.crosshair||{}).snap,!0);!ue||(le=h.hoverPoint)&&le.series[oe.coll]===oe||(le=E(Z,F=>F.series&&F.series[oe.coll]===oe)),le||!ue?oe.drawCrosshair(M,le):oe.hideCrosshair()})}setDOMEvents(){let M=this.chart.container,$=M.ownerDocument;M.onmousedown=this.onContainerMouseDown.bind(this),M.onmousemove=this.onContainerMouseMove.bind(this),M.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(G(M,"mouseenter",this.onContainerMouseEnter.bind(this)),G(M,"mouseleave",this.onContainerMouseLeave.bind(this))),V.unbindDocumentMouseUp||(V.unbindDocumentMouseUp=G($,"mouseup",this.onDocumentMouseUp.bind(this)));let P=this.chart.renderTo.parentElement;for(;P&&P.tagName!=="BODY";)this.eventsToUnbind.push(G(P,"scroll",()=>{delete this.chartPosition})),P=P.parentElement;this.eventsToUnbind.push(G(M,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),G(M,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),V.unbindDocumentTouchEnd||(V.unbindDocumentTouchEnd=G($,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),G(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){var f,L;if(!W)return;let M=this.pointerCaptureEventsToUnbind,$=this.chart,P=$.container,h=C((f=$.options.tooltip)==null?void 0:f.followTouchMove,!0)&&$.series.some(v=>v.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&h?(M.push(G(P,"pointerdown",v=>{var A,B;(A=v.target)!=null&&A.hasPointerCapture(v.pointerId)&&((B=v.target)==null||B.releasePointerCapture(v.pointerId))}),G(P,"pointermove",v=>{var A,B;(B=(A=$.pointer)==null?void 0:A.getPointFromEvent(v))==null||B.onMouseOver(v)})),$.styledMode||S(P,{"touch-action":"none"}),P.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!h&&(M.forEach(v=>v()),M.length=0,$.styledMode||S(P,{"touch-action":C((L=$.options.chart.style)==null?void 0:L["touch-action"],"manipulation")}),P.className=P.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(M){var h;let $=this.chart,P=u.charts[C(V.hoverChartIndex,-1)];if(P&&P!==$){let f={relatedTarget:$.container};M&&!(M!=null&&M.relatedTarget)&&(M={...f,...M}),(h=P.pointer)==null||h.onContainerMouseLeave(M||f)}P&&P.mouseIsDown||(V.hoverChartIndex=$.index)}touch(M,$){let P,{chart:h,pinchDown:f=[]}=this;this.setHoverChartIndex(),(M=this.normalize(M)).touches.length===1?h.isInsidePlot(M.chartX-h.plotLeft,M.chartY-h.plotTop,{visiblePlotOnly:!0})&&!h.openMenu?($&&this.runPointActions(M),M.type==="touchmove"&&(P=!!f[0]&&Math.pow(f[0].chartX-M.chartX,2)+Math.pow(f[0].chartY-M.chartY,2)>=16),C(P,!0)&&this.pinch(M)):$&&this.reset():M.touches.length===2&&this.pinch(M)}touchSelect(M){return!!(this.chart.zooming.singleTouch&&M.touches&&M.touches.length===1)}zoomOption(M){let $=this.chart,P=$.inverted,h=$.zooming.type||"",f,L;/touch/.test(M.type)&&(h=C($.zooming.pinchType,h)),this.zoomX=f=/x/.test(h),this.zoomY=L=/y/.test(h),this.zoomHor=f&&!P||L&&P,this.zoomVert=L&&!P||f&&P,this.hasZoom=f||L}}return(O=V||(V={})).compose=function(H){m(te,"Core.Pointer")&&G(H,"beforeRender",function(){this.pointer=new O(this,this.options)})},V}),c(n,"Core/Legend/LegendSymbol.js",[n["Core/Utilities.js"]],function(l){var u;let{extend:x,merge:O,pick:Y}=l;return function(Q){function te(W,G,K){var P;let S=this.legendItem=this.legendItem||{},{chart:T,options:E}
267=this,{baseline:_=0,symbolWidth:g,symbolHeight:w}=W,k=this.symbol||"circle",b=w/2,C=T.renderer,m=S.group,q=_-Math.round(w*(K?.4:.3)),V={},H,M=E.marker,$=0;if(T.styledMode||(V["stroke-width"]=Math.min(E.lineWidth||0,24),E.dashStyle?V.dashstyle=E.dashStyle:E.linecap==="square"||(V["stroke-linecap"]="round")),S.line=C.path().addClass("highcharts-graph").attr(V).add(m),K&&(S.area=C.path().addClass("highcharts-area").add(m)),V["stroke-linecap"]&&($=Math.min(S.line.strokeWidth(),g)/2),g){let h=[["M",$,q],["L",g-$,q]];S.line.attr({d:h}),(P=S.area)==null||P.attr({d:[...h,["L",g-$,_],["L",$,_]]})}if(M&&M.enabled!==!1&&g){let h=Math.min(Y(M.radius,b),b);k.indexOf("url")===0&&(M=O(M,{width:w,height:w}),h=0),S.symbol=H=C.symbol(k,g/2-h,q-h,2*h,2*h,x({context:"legend"},M)).addClass("highcharts-point").add(m),H.isMarker=!0}}Q.areaMarker=function(W,G){te.call(this,W,G,!0)},Q.lineMarker=te,Q.rectangle=function(W,G){let K=G.legendItem||{},S=W.options,T=W.symbolHeight,E=S.squareSymbol,_=E?T:W.symbolWidth;K.symbol=this.chart.renderer.rect(E?(W.symbolWidth-T)/2:0,W.baseline-T+1,_,T,Y(W.options.symbolRadius,T/2)).addClass("highcharts-point").attr({zIndex:3}).add(K.group)}}(u||(u={})),u}),c(n,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:l}=this.series.chart;return typeof this.y!="number"?"":l(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),c(n,"Core/Series/SeriesRegistry.js",[n["Core/Globals.js"],n["Core/Defaults.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],function(l,u,x,O){var Y;let{defaultOptions:Q}=u,{extend:te,extendClass:W,merge:G}=O;return function(K){function S(T,E){let _=Q.plotOptions||{},g=E.defaultOptions,w=E.prototype;return w.type=T,w.pointClass||(w.pointClass=x),!K.seriesTypes[T]&&(g&&(_[T]=g),K.seriesTypes[T]=E,!0)}K.seriesTypes=l.seriesTypes,K.registerSeriesType=S,K.seriesType=function(T,E,_,g,w){let k=Q.plotOptions||{};if(E=E||"",k[T]=G(k[E],_),delete K.seriesTypes[T],S(T,W(K.seriesTypes[E]||function(){},g)),K.seriesTypes[T].prototype.type=T,w){class b extends x{}te(b.prototype,w),K.seriesTypes[T].prototype.pointClass=b}return K.seriesTypes[T]}}(Y||(Y={})),Y}),c(n,"Core/Series/Series.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Defaults.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/Point.js"],n["Core/Series/SeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],function(l,u,x,O,Y,Q,te,W,G,K){let{animObject:S,setAnimation:T}=l,{defaultOptions:E}=u,{registerEventOptions:_}=x,{svg:g,win:w}=O,{seriesTypes:k}=W,{arrayMax:b,arrayMin:C,clamp:m,correctFloat:q,crisp:V,defined:H,destroyObjectProperties:M,diffObjects:$,erase:P,error:h,extend:f,find:L,fireEvent:v,getClosestDistance:A,getNestedProperty:B,insertItem:R,isArray:D,isNumber:Z,isString:X,merge:ie,objectEach:oe,pick:le,removeEvent:ue,splat:F,syncTimeout:N}=K;class ee{constructor(){this.zoneAxis="y"}init(j,I){let U;v(this,"init",{options:I});let J=this,se=j.series;this.eventsToUnbind=[],J.chart=j,J.options=J.setOptions(I);let ae=J.options,he=ae.visible!==!1;J.linkedSeries=[],J.bindAxes(),f(J,{name:ae.name,state:"",visible:he,selected:ae.selected===!0}),_(this,ae);let me=ae.events;(me&&me.click||ae.point&&ae.point.events&&ae.point.events.click||ae.allowPointSelect)&&(j.runTrackerClick=!0),J.getColor(),J.getSymbol(),J.parallelArrays.forEach(function(ve){J[ve+"Data"]||(J[ve+"Data"]=[])}),J.isCartesian&&(j.hasCartesianSeries=!0),se.length&&(U=se[se.length-1]),J._i=le(U&&U._i,-1)+1,J.opacity=J.options.opacity,j.orderItems("series",R(this,se)),ae.dataSorting&&ae.dataSorting.enabled?J.setDataSortingOptions():J.points||J.data||J.setData(ae.data,!1),v(this,"afterInit")}is(j){return k[j]&&this instanceof k[j]}bindAxes(){let j,I=this,U=I.options,J=I.chart;
267v(this,"bindAxes",null,function(){(I.axisTypes||[]).forEach(function(se){(J[se]||[]).forEach(function(ae){j=ae.options,(le(U[se],0)===ae.index||U[se]!==void 0&&U[se]===j.id)&&(R(I,ae.series),I[se]=ae,ae.isDirty=!0)}),I[se]||I.optionalAxis===se||h(18,!0,J)})}),v(this,"afterBindAxes")}updateParallelArrays(j,I,U){let J=j.series,se=Z(I)?function(ae){let he=ae==="y"&&J.toYData?J.toYData(j):j[ae];J[ae+"Data"][I]=he}:function(ae){Array.prototype[I].apply(J[ae+"Data"],U)};J.parallelArrays.forEach(se)}hasData(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&this.yData.length>0}hasMarkerChanged(j,I){let U=j.marker,J=I.marker||{};return U&&(J.enabled&&!U.enabled||J.symbol!==U.symbol||J.height!==U.height||J.width!==U.width)}autoIncrement(j){let I=this.options,U=I.pointIntervalUnit,J=I.relativeXValue,se=this.chart.time,ae=this.xIncrement,he,me;return ae=le(ae,I.pointStart,0),this.pointInterval=me=le(this.pointInterval,I.pointInterval,1),J&&Z(j)&&(me*=j),U&&(he=new se.Date(ae),U==="day"?se.set("Date",he,se.get("Date",he)+me):U==="month"?se.set("Month",he,se.get("Month",he)+me):U==="year"&&se.set("FullYear",he,se.get("FullYear",he)+me),me=he.getTime()-ae),J&&Z(j)?ae+me:(this.xIncrement=ae+me,ae)}setDataSortingOptions(){let j=this.options;f(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),H(j.pointRange)||(j.pointRange=1)}setOptions(j){var Ee,Se;let I,U=this.chart,J=U.options.plotOptions,se=U.userOptions||{},ae=ie(j),he=U.styledMode,me={plotOptions:J,userOptions:ae};v(this,"setOptions",me);let ve=me.plotOptions[this.type],ke=se.plotOptions||{},Pe=ke.series||{},ge=E.plotOptions[this.type]||{},de=ke[this.type]||{};this.userOptions=me.userOptions;let fe=ie(ve,J.series,de,ae);this.tooltipOptions=ie(E.tooltip,(Ee=E.plotOptions.series)==null?void 0:Ee.tooltip,ge==null?void 0:ge.tooltip,U.userOptions.tooltip,(Se=ke.series)==null?void 0:Se.tooltip,de.tooltip,ae.tooltip),this.stickyTracking=le(ae.stickyTracking,de.stickyTracking,Pe.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||fe.stickyTracking),ve.marker===null&&delete fe.marker,this.zoneAxis=fe.zoneAxis||"y";let xe=this.zones=(fe.zones||[]).map(be=>({...be}));return(fe.negativeColor||fe.negativeFillColor)&&!fe.zones&&(I={value:fe[this.zoneAxis+"Threshold"]||fe.threshold||0,className:"highcharts-negative"},he||(I.color=fe.negativeColor,I.fillColor=fe.negativeFillColor),xe.push(I)),xe.length&&H(xe[xe.length-1].value)&&xe.push(he?{}:{color:this.color,fillColor:this.fillColor}),v(this,"afterSetOptions",{options:fe}),fe}getName(){return le(this.options.name,"Series "+(this.index+1))}getCyclic(j,I,U){let J,se,ae=this.chart,he=`${j}Index`,me=`${j}Counter`,ve=(U==null?void 0:U.length)||ae.options.chart.colorCount;!I&&(H(se=le(j==="color"?this.options.colorIndex:void 0,this[he]))?J=se:(ae.series.length||(ae[me]=0),J=ae[me]%ve,ae[me]+=1),U&&(I=U[J])),J!==void 0&&(this[he]=J),this[j]=I}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||E.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let j=this.options.marker;this.getCyclic("symbol",j.symbol,this.chart.options.symbols)}findPointIndex(j,I){let U,J,se,ae=j.id,he=j.x,me=this.points,ve=this.options.dataSorting;if(ae){let ke=this.chart.get(ae);ke instanceof Q&&(U=ke)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let ke=Pe=>!Pe.touched&&Pe.index===j.index;if(ve&&ve.matchByName?ke=Pe=>!Pe.touched&&Pe.name===j.name:this.options.relativeXValue&&(ke=Pe=>!Pe.touched&&Pe.options.x===j.x),!(U=L(me,ke)))return}return U&&(se=U&&U.index)!==void 0&&(J=!0),se===void 0&&Z(he)&&(se=this.xData.indexOf(he,I)),se!==-1&&se!==void 0&&this.cropped&&(se=se>=this.cropStart?se-this.cropStart:se),!J&&Z(se)&&me[se]&&me[se].touched&&(se=void 0),se}updateData(j,I){let U=this.options,J=U.dataSorting,se=this.points,ae=[],he=this.requireSorting,me=j.length===se.length,ve,ke,Pe,ge,de=!0;
267if(this.xIncrement=null,j.forEach(function(fe,xe){let Ee,Se=H(fe)&&this.pointClass.prototype.optionsToObject.call({series:this},fe)||{},be=Se.x;Se.id||Z(be)?((Ee=this.findPointIndex(Se,ge))===-1||Ee===void 0?ae.push(fe):se[Ee]&&fe!==U.data[Ee]?(se[Ee].update(fe,!1,null,!1),se[Ee].touched=!0,he&&(ge=Ee+1)):se[Ee]&&(se[Ee].touched=!0),(!me||xe!==Ee||J&&J.enabled||this.hasDerivedData)&&(ve=!0)):ae.push(fe)},this),ve)for(ke=se.length;ke--;)(Pe=se[ke])&&!Pe.touched&&Pe.remove&&Pe.remove(!1,I);else!me||J&&J.enabled?de=!1:(j.forEach(function(fe,xe){fe===se[xe].y||se[xe].destroyed||se[xe].update(fe,!1,null,!1)}),ae.length=0);return se.forEach(function(fe){fe&&(fe.touched=!1)}),!!de&&(ae.forEach(function(fe){this.addPoint(fe,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=b(this.xData),this.autoIncrement()),!0)}setData(j,I=!0,U,J){var Ye;let se=this,ae=se.points,he=ae&&ae.length||0,me=se.options,ve=se.chart,ke=me.dataSorting,Pe=se.xAxis,ge=me.turboThreshold,de=this.xData,fe=this.yData,xe=se.pointArrayMap,Ee=xe&&xe.length,Se=me.keys,be,Te,Le,Ne=0,_e=1,We;ve.options.chart.allowMutatingData||(me.data&&delete se.options.data,se.userOptions.data&&delete se.userOptions.data,We=ie(!0,j));let He=(j=We||j||[]).length;if(ke&&ke.enabled&&(j=this.sortData(j)),ve.options.chart.allowMutatingData&&J!==!1&&He&&he&&!se.cropped&&!se.hasGroupedData&&se.visible&&!se.boosted&&(Le=this.updateData(j,U)),!Le){se.xIncrement=null,se.colorCounter=0,this.parallelArrays.forEach(function(Ve){se[Ve+"Data"].length=0});let Ge=ge&&He>ge;if(Ge){let Ve=se.getFirstValidPoint(j),ot=se.getFirstValidPoint(j,He-1,-1),ct=ft=>!!(D(ft)&&(Se||Z(ft[0])));if(Z(Ve)&&Z(ot))for(be=0;be<He;be++)de[be]=this.autoIncrement(),fe[be]=j[be];else if(ct(Ve)&&ct(ot))if(Ee)if(Ve.length===Ee)for(be=0;be<He;be++)de[be]=this.autoIncrement(),fe[be]=j[be];else for(be=0;be<He;be++)Te=j[be],de[be]=Te[0],fe[be]=Te.slice(1,Ee+1);else if(Se&&(Ne=Se.indexOf("x"),_e=Se.indexOf("y"),Ne=Ne>=0?Ne:0,_e=_e>=0?_e:1),Ve.length===1&&(_e=0),Ne===_e)for(be=0;be<He;be++)de[be]=this.autoIncrement(),fe[be]=j[be][_e];else for(be=0;be<He;be++)Te=j[be],de[be]=Te[Ne],fe[be]=Te[_e];else Ge=!1}if(!Ge)for(be=0;be<He;be++)Te={series:se},se.pointClass.prototype.applyOptions.apply(Te,[j[be]]),se.updateParallelArrays(Te,be);for(fe&&X(fe[0])&&h(14,!0,ve),se.data=[],se.options.data=se.userOptions.data=j,be=he;be--;)(Ye=ae[be])==null||Ye.destroy();Pe&&(Pe.minRange=Pe.userMinRange),se.isDirty=ve.isDirtyBox=!0,se.isDirtyData=!!ae,U=!1}me.legendType==="point"&&(this.processData(),this.generatePoints()),I&&ve.redraw(U)}sortData(j){let I=this,U=I.options.dataSorting.sortKey||"y",J=function(se,ae){return H(ae)&&se.pointClass.prototype.optionsToObject.call({series:se},ae)||{}};return j.forEach(function(se,ae){j[ae]=J(I,se),j[ae].index=ae},this),j.concat().sort((se,ae)=>{let he=B(U,se),me=B(U,ae);return me<he?-1:me>he?1:0}).forEach(function(se,ae){se.x=ae},this),I.linkedSeries&&I.linkedSeries.forEach(function(se){let ae=se.options,he=ae.data;ae.dataSorting&&ae.dataSorting.enabled||!he||(he.forEach(function(me,ve){he[ve]=J(se,me),j[ve]&&(he[ve].x=j[ve].x,he[ve].index=ve)}),se.setData(he,!1))}),j}getProcessedData(j){let I=this,U=I.xAxis,J=I.options.cropThreshold,se=U==null?void 0:U.logarithmic,ae=I.isCartesian,he,me,ve=0,ke,Pe,ge,de=I.xData,fe=I.yData,xe=!1,Ee=de.length;U&&(Pe=(ke=U.getExtremes()).min,ge=ke.max,xe=!!(U.categories&&!U.names.length)),ae&&I.sorted&&!j&&(!J||Ee>J||I.forceCrop)&&(de[Ee-1]<Pe||de[0]>ge?(de=[],fe=[]):I.yData&&(de[0]<Pe||de[Ee-1]>ge)&&(de=(he=this.cropData(I.xData,I.yData,Pe,ge)).xData,fe=he.yData,ve=he.start,me=!0));let Se=A([se?de.map(se.log2lin):de],()=>I.requireSorting&&!xe&&h(15,!1,I.chart));return{xData:de,yData:fe,cropped:me,cropStart:ve,closestPointRange:Se}}processData(j){let I=this.xAxis;if(this.isCartesian&&!this.isDirty&&!I.isDirty&&!this.yAxis.isDirty&&!j)return!1;let U=this.getProcessedData();this.cropped=U.cropped,this.cropStart=U.cropStart,this.processedXData=U.xData,this.processedYData=U.yData,this.closestPointRange=this.basePointRange=U.closestPointRange,v(this,"afterProcessData")}
267cropData(j,I,U,J){let se=j.length,ae,he,me=0,ve=se;for(ae=0;ae<se;ae++)if(j[ae]>=U){me=Math.max(0,ae-1);break}for(he=ae;he<se;he++)if(j[he]>J){ve=he+1;break}return{xData:j.slice(me,ve),yData:I.slice(me,ve),start:me,end:ve}}generatePoints(){let j=this.options,I=this.processedData||j.data,U=this.processedXData,J=this.processedYData,se=this.pointClass,ae=U.length,he=this.cropStart||0,me=this.hasGroupedData,ve=j.keys,ke=[],Pe=j.dataGrouping&&j.dataGrouping.groupAll?he:0,ge,de,fe,xe,Ee=this.data;if(!Ee&&!me){let Se=[];Se.length=I.length,Ee=this.data=Se}for(ve&&me&&(this.options.keys=!1),xe=0;xe<ae;xe++)de=he+xe,me?((fe=new se(this,[U[xe]].concat(F(J[xe])))).dataGroup=this.groupMap[Pe+xe],fe.dataGroup.options&&(fe.options=fe.dataGroup.options,f(fe,fe.dataGroup.options),delete fe.dataLabels)):(fe=Ee[de])||I[de]===void 0||(Ee[de]=fe=new se(this,I[de],U[xe])),fe&&(fe.index=me?Pe+xe:de,ke[xe]=fe);if(this.options.keys=ve,Ee&&(ae!==(ge=Ee.length)||me))for(xe=0;xe<ge;xe++)xe!==he||me||(xe+=ae),Ee[xe]&&(Ee[xe].destroyElements(),Ee[xe].plotX=void 0);this.data=Ee,this.points=ke,v(this,"afterGeneratePoints")}getXExtremes(j){return{min:C(j),max:b(j)}}getExtremes(j,I){let U=this.xAxis,J=this.yAxis,se=[],ae=this.requireSorting&&!this.is("column")?1:0,he=!!J&&J.positiveValuesOnly,me=I||this.getExtremesFromAll||this.options.getExtremesFromAll,{processedXData:ve,processedYData:ke}=this,Pe,ge,de,fe,xe,Ee,Se,be=0,Te=0,Le=0;if(this.cropped&&me){let He=this.getProcessedData(!0);ve=He.xData,ke=He.yData}let Ne=(j=j||this.stackedYData||ke||[]).length,_e=ve||this.xData;for(U&&(be=(Pe=U.getExtremes()).min,Te=Pe.max),Ee=0;Ee<Ne;Ee++)if(fe=_e[Ee],ge=(Z(xe=j[Ee])||D(xe))&&((Z(xe)?xe>0:xe.length)||!he),de=I||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!U||(_e[Ee+ae]||fe)>=be&&(_e[Ee-ae]||fe)<=Te,ge&&de)if(Se=xe.length)for(;Se--;)Z(xe[Se])&&(se[Le++]=xe[Se]);else se[Le++]=xe;let We={activeYData:se,dataMin:C(se),dataMax:b(se)};return v(this,"afterGetExtremes",{dataExtremes:We}),We}applyExtremes(){let j=this.getExtremes();return this.dataMin=j.dataMin,this.dataMax=j.dataMax,j}getFirstValidPoint(j,I=0,U=1){let J=j.length,se=I;for(;se>=0&&se<J;){if(H(j[se]))return j[se];se+=U}}translate(){var Te;this.processedXData||this.processData(),this.generatePoints();let j=this.options,I=j.stacking,U=this.xAxis,J=U.categories,se=this.enabledDataSorting,ae=this.yAxis,he=this.points,me=he.length,ve=this.pointPlacementToXValue(),ke=!!ve,Pe=j.threshold,ge=j.startFromThreshold?Pe:0,de,fe,xe,Ee,Se=Number.MAX_VALUE;function be(Le){return m(Le,-1e5,1e5)}for(de=0;de<me;de++){let Le,Ne=he[de],_e=Ne.x,We,He,Ye=Ne.y,Ge=Ne.low,Ve=I&&((Te=ae.stacking)==null?void 0:Te.stacks[(this.negStacks&&Ye<(ge?0:Pe)?"-":"")+this.stackKey]);fe=U.translate(_e,!1,!1,!1,!0,ve),Ne.plotX=Z(fe)?q(be(fe)):void 0,I&&this.visible&&Ve&&Ve[_e]&&(Ee=this.getStackIndicator(Ee,_e,this.index),!Ne.isNull&&Ee.key&&(He=(We=Ve[_e]).points[Ee.key]),We&&D(He)&&(Ge=He[0],Ye=He[1],Ge===ge&&Ee.key===Ve[_e].base&&(Ge=le(Z(Pe)?Pe:ae.min)),ae.positiveValuesOnly&&H(Ge)&&Ge<=0&&(Ge=void 0),Ne.total=Ne.stackTotal=le(We.total),Ne.percentage=H(Ne.y)&&We.total?Ne.y/We.total*100:void 0,Ne.stackY=Ye,this.irregularWidths||We.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),Ne.yBottom=H(Ge)?be(ae.translate(Ge,!1,!0,!1,!0)):void 0,this.dataModify&&(Ye=this.dataModify.modifyValue(Ye,de)),Z(Ye)&&Ne.plotX!==void 0&&(Le=Z(Le=ae.translate(Ye,!1,!0,!1,!0))?be(Le):void 0),Ne.plotY=Le,Ne.isInside=this.isPointInside(Ne),Ne.clientX=ke?q(U.translate(_e,!1,!1,!1,!0,ve)):fe,Ne.negative=(Ne.
267y||0)<(Pe||0),Ne.category=le(J&&J[Ne.x],Ne.x),Ne.isNull||Ne.visible===!1||(xe!==void 0&&(Se=Math.min(Se,Math.abs(fe-xe))),xe=fe),Ne.zone=this.zones.length?Ne.getZone():void 0,!Ne.graphic&&this.group&&se&&(Ne.isNew=!0)}this.closestPointRangePx=Se,v(this,"afterTranslate")}getValidPoints(j,I,U){let J=this.chart;return(j||this.points||[]).filter(function(se){let{plotX:ae,plotY:he}=se;return!!((U||!se.isNull&&Z(he))&&(!I||J.isInsidePlot(ae,he,{inverted:J.inverted})))&&se.visible!==!1})}getClipBox(){let{chart:j,xAxis:I,yAxis:U}=this,{x:J,y:se,width:ae,height:he}=ie(j.clipBox);return I&&I.len!==j.plotSizeX&&(ae=I.len),U&&U.len!==j.plotSizeY&&(he=U.len),j.inverted&&!this.invertible&&([ae,he]=[he,ae]),{x:J,y:se,width:ae,height:he}}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:j,group:I,markerGroup:U}=this,J=j.sharedClips,se=j.renderer,ae=this.getClipBox(),he=this.getSharedClipKey(),me=J[he];me?me.animate(ae):J[he]=me=se.clipRect(ae),I&&I.clip(this.options.clip===!1?void 0:me),U&&U.clip()}animate(j){let{chart:I,group:U,markerGroup:J}=this,se=I.inverted,ae=S(this.options.animation),he=[this.getSharedClipKey(),ae.duration,ae.easing,ae.defer].join(","),me=I.sharedClips[he],ve=I.sharedClips[he+"m"];if(j&&U){let ke=this.getClipBox();if(me)me.attr("height",ke.height);else{ke.width=0,se&&(ke.x=I.plotHeight),me=I.renderer.clipRect(ke),I.sharedClips[he]=me;let Pe={x:-99,y:-99,width:se?I.plotWidth+199:99,height:se?99:I.plotHeight+199};ve=I.renderer.clipRect(Pe),I.sharedClips[he+"m"]=ve}U.clip(me),J==null||J.clip(ve)}else if(me&&!me.hasClass("highcharts-animating")){let ke=this.getClipBox(),Pe=ae.step;(J!=null&&J.element.childNodes.length||I.series.length>1)&&(ae.step=function(ge,de){Pe&&Pe.apply(de,arguments),de.prop==="width"&&(ve!=null&&ve.element)&&ve.attr(se?"height":"width",ge+99)}),me.addClass("highcharts-animating").animate(ke,ae)}}afterAnimate(){this.setClip(),oe(this.chart.sharedClips,(j,I,U)=>{j&&!this.chart.container.querySelector(`[clip-path="url(#${j.id})"]`)&&(j.destroy(),delete U[I])}),this.finishedAnimating=!0,v(this,"afterAnimate")}drawPoints(j=this.points){let I,U,J,se,ae,he,me,ve=this.chart,ke=ve.styledMode,{colorAxis:Pe,options:ge}=this,de=ge.marker,fe=this[this.specialGroup||"markerGroup"],xe=this.xAxis,Ee=le(de.enabled,!xe||!!xe.isRadial||null,this.closestPointRangePx>=de.enabledThreshold*de.radius);if(de.enabled!==!1||this._hasPointMarkers)for(I=0;I<j.length;I++)if(se=(J=(U=j[I]).graphic)?"animate":"attr",ae=U.marker||{},he=!!U.marker,(Ee&&ae.enabled===void 0||ae.enabled)&&!U.isNull&&U.visible!==!1){let Se=le(ae.symbol,this.symbol,"rect");me=this.markerAttribs(U,U.selected&&"select"),this.enabledDataSorting&&(U.startXPos=xe.reversed?-(me.width||0):xe.width);let be=U.isInside!==!1;if(!J&&be&&((me.width||0)>0||U.hasImage)&&(U.graphic=J=ve.renderer.symbol(Se,me.x,me.y,me.width,me.height,he?ae:de).add(fe),this.enabledDataSorting&&ve.hasRendered&&(J.attr({x:U.startXPos}),se="animate")),J&&se==="animate"&&J[be?"show":"hide"](be).animate(me),J){let Te=this.pointAttribs(U,ke||!U.selected?void 0:"select");ke?Pe&&J.css({fill:Te.fill}):J[se](Te)}J&&J.addClass(U.getClassName(),!0)}else J&&(U.graphic=J.destroy())}markerAttribs(j,I){let U=this.options,J=U.marker,se=j.marker||{},ae=se.symbol||J.symbol,he={},me,ve,ke=le(se.radius,J&&J.radius);I&&(me=J.states[I],ke=le((ve=se.states&&se.states[I])&&ve.radius,me&&me.radius,ke&&ke+(me&&me.radiusPlus||0))),j.hasImage=ae&&ae.indexOf("url")===0,j.hasImage&&(ke=0);let Pe=j.pos();return Z(ke)&&Pe&&(U.crisp&&(Pe[0]=V(Pe[0],j.hasImage?0:ae==="rect"?(J==null?void 0:J.lineWidth)||0:1)),he.x=Pe[0]-ke,he.y=Pe[1]-ke),ke&&(he.width=he.height=2*ke),he}pointAttribs(j,I){let U=this.options.marker,J=j&&j.options,se=J&&J.marker||{},ae=J&&J.color,he=j&&j.color,me=j&&j.zone&&j.zone.color,ve,ke,Pe=this.color,ge,de,fe=le(se.lineWidth,U.lineWidth),xe=1;return Pe=ae||me||he||Pe,ge=se.fillColor||U.fillColor||Pe,de=se.lineColor||U.lineColor||Pe,I=I||"normal",ve=U.states[I]||{},fe=le((ke=se.states&&se.states[I]||{}).lineWidth,ve.lineWidth,fe+le(ke.lineWidthPlus,ve.lineWidthPlus,0)),ge=ke.fillColor||ve.fillColor||ge,{stroke:de=ke.lineColor||ve.lineColor||de,"stroke-width":fe,fill:ge,opacity:xe=le(ke.opacity,ve.opacity,xe)}}
267destroy(j){let I,U,J,se=this,ae=se.chart,he=/AppleWebKit\/533/.test(w.navigator.userAgent),me=se.data||[];for(v(se,"destroy",{keepEventsForUpdate:j}),this.removeEvents(j),(se.axisTypes||[]).forEach(function(ve){(J=se[ve])&&J.series&&(P(J.series,se),J.isDirty=J.forceRedraw=!0)}),se.legendItem&&se.chart.legend.destroyItem(se),I=me.length;I--;)(U=me[I])&&U.destroy&&U.destroy();for(let ve of se.zones)M(ve,void 0,!0);K.clearTimeout(se.animationTimeout),oe(se,function(ve,ke){ve instanceof G&&!ve.survive&&ve[he&&ke==="group"?"hide":"destroy"]()}),ae.hoverSeries===se&&(ae.hoverSeries=void 0),P(ae.series,se),ae.orderItems("series"),oe(se,function(ve,ke){j&&ke==="hcEvents"||delete se[ke]})}applyZones(){let{area:j,chart:I,graph:U,zones:J,points:se,xAxis:ae,yAxis:he,zoneAxis:me}=this,{inverted:ve,renderer:ke}=I,Pe=this[`${me}Axis`],{isXAxis:ge,len:de=0}=Pe||{},fe=((U==null?void 0:U.strokeWidth())||0)/2+1,xe=(Ee,Se=0,be=0)=>{ve&&(be=de-be);let{translated:Te=0,lineClip:Le}=Ee,Ne=be-Te;Le==null||Le.push(["L",Se,Math.abs(Ne)<fe?be-fe*(Ne<=0?-1:1):Te])};if(J.length&&(U||j)&&Pe&&Z(Pe.min)){let Ee=Pe.getExtremes().max,Se=Le=>{Le.forEach((Ne,_e)=>{(Ne[0]==="M"||Ne[0]==="L")&&(Le[_e]=[Ne[0],ge?de-Ne[1]:Ne[1],ge?Ne[2]:de-Ne[2]])})};if(J.forEach(Le=>{Le.lineClip=[],Le.translated=m(Pe.toPixels(le(Le.value,Ee),!0)||0,0,de)}),U&&!this.showLine&&U.hide(),j&&j.hide(),me==="y"&&se.length<ae.len)for(let Le of se){let{plotX:Ne,plotY:_e,zone:We}=Le,He=We&&J[J.indexOf(We)-1];We&&xe(We,Ne,_e),He&&xe(He,Ne,_e)}let be=[],Te=Pe.toPixels(Pe.getExtremes().min,!0);J.forEach(Le=>{var kt,Mt;let Ne=Le.lineClip||[],_e=Math.round(Le.translated||0);ae.reversed&&Ne.reverse();let{clip:We,simpleClip:He}=Le,Ye=0,Ge=0,Ve=ae.len,ot=he.len;ge?(Ye=_e,Ve=Te):(Ge=_e,ot=Te);let ct=[["M",Ye,Ge],["L",Ve,Ge],["L",Ve,ot],["L",Ye,ot],["Z"]],ft=[ct[0],...Ne,ct[1],ct[2],...be,ct[3],ct[4]];be=Ne.reverse(),Te=_e,ve&&(Se(ft),j&&Se(ct)),We?(We.animate({d:ft}),He==null||He.animate({d:ct})):(We=Le.clip=ke.path(ft),j&&(He=Le.simpleClip=ke.path(ct))),U&&((kt=Le.graph)==null||kt.clip(We)),j&&((Mt=Le.area)==null||Mt.clip(He))})}else this.visible&&(U&&U.show(),j&&j.show())}plotGroup(j,I,U,J,se){let ae=this[j],he=!ae,me={visibility:U,zIndex:J||.1};return H(this.opacity)&&!this.chart.styledMode&&this.state!=="inactive"&&(me.opacity=this.opacity),ae||(this[j]=ae=this.chart.renderer.g().add(se)),ae.addClass("highcharts-"+I+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(H(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(ae.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),ae.attr(me)[he?"attr":"animate"](this.getPlotBox(I)),ae}getPlotBox(j){let I=this.xAxis,U=this.yAxis,J=this.chart,se=J.inverted&&!J.polar&&I&&this.invertible&&j==="series";return J.inverted&&(I=U,U=this.xAxis),{translateX:I?I.left:J.plotLeft,translateY:U?U.top:J.plotTop,rotation:se?90:0,rotationOriginX:se?(I.len-U.len)/2:0,rotationOriginY:se?(I.len+U.len)/2:0,scaleX:se?-1:1,scaleY:1}}removeEvents(j){let{eventsToUnbind:I}=this;j||ue(this),I.length&&(I.forEach(U=>{U()}),I.length=0)}render(){var ke,Pe,ge,de,fe;let j=this,{chart:I,options:U,hasRendered:J}=j,se=S(U.animation),ae=j.visible?"inherit":"hidden",he=U.zIndex,me=I.seriesGroup,ve=j.finishedAnimating?0:se.duration;v(this,"render"),j.plotGroup("group","series",ae,he,me),j.markerGroup=j.plotGroup("markerGroup","markers",ae,he,me),U.clip!==!1&&j.setClip(),ve&&((ke=j.animate)==null||ke.call(j,!0)),j.drawGraph&&(j.drawGraph(),j.applyZones()),j.visible&&j.drawPoints(),(Pe=j.drawDataLabels)==null||Pe.call(j),(ge=j.redrawPoints)==null||ge.call(j),U.enableMouseTracking&&((de=j.drawTracker)==null||de.call(j)),ve&&((fe=j.animate)==null||fe.call(j)),J||(ve&&se.defer&&(ve+=se.defer),j.animationTimeout=N(()=>{j.afterAnimate()}
267,ve||0)),j.isDirty=!1,j.hasRendered=!0,v(j,"afterRender")}redraw(){let j=this.isDirty||this.isDirtyData;this.translate(),this.render(),j&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(j,I){let{xAxis:U,yAxis:J}=this,se=this.chart.inverted;return this.searchKDTree({clientX:se?U.len-j.chartY+U.pos:j.chartX-U.pos,plotY:se?J.len-j.chartX+J.pos:j.chartY-J.pos},I,j)}buildKDTree(j){this.buildingKdTree=!0;let I=this,U=I.options.findNearestPointBy.indexOf("y")>-1?2:1;delete I.kdTree,N(function(){I.kdTree=function J(se,ae,he){let me,ve,ke=se==null?void 0:se.length;if(ke)return me=I.kdAxisArray[ae%he],se.sort((Pe,ge)=>(Pe[me]||0)-(ge[me]||0)),{point:se[ve=Math.floor(ke/2)],left:J(se.slice(0,ve),ae+1,he),right:J(se.slice(ve+1),ae+1,he)}}(I.getValidPoints(void 0,!I.directTouch),U,U),I.buildingKdTree=!1},I.options.kdNow||(j==null?void 0:j.type)==="touchstart"?0:1)}searchKDTree(j,I,U){let J=this,[se,ae]=this.kdAxisArray,he=I?"distX":"dist",me=(J.options.findNearestPointBy||"").indexOf("y")>-1?2:1,ve=!!J.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(U),this.kdTree)return function ke(Pe,ge,de,fe){var We;let xe=ge.point,Ee=J.kdAxisArray[de%fe],Se,be,Te=xe;(function(He,Ye){var fr;let Ge=He[se],Ve=Ye[se],ot=H(Ge)&&H(Ve)?Ge-Ve:null,ct=He[ae],ft=Ye[ae],kt=H(ct)&&H(ft)?ct-ft:0,Mt=ve&&((fr=Ye.marker)==null?void 0:fr.radius)||0;Ye.dist=Math.sqrt((ot&&ot*ot||0)+kt*kt)-Mt,Ye.distX=H(ot)?Math.abs(ot)-Mt:Number.MAX_VALUE})(Pe,xe);let Le=(Pe[Ee]||0)-(xe[Ee]||0)+(ve&&((We=xe.marker)==null?void 0:We.radius)||0),Ne=Le<0?"left":"right",_e=Le<0?"right":"left";return ge[Ne]&&(Te=(Se=ke(Pe,ge[Ne],de+1,fe))[he]<Te[he]?Se:xe),ge[_e]&&Math.sqrt(Le*Le)<Te[he]&&(Te=(be=ke(Pe,ge[_e],de+1,fe))[he]<Te[he]?be:Te),Te}(j,this.kdTree,me,me)}pointPlacementToXValue(){let{options:j,xAxis:I}=this,U=j.pointPlacement;return U==="between"&&(U=I.reversed?-.5:.5),Z(U)?U*(j.pointRange||I.pointRange):0}isPointInside(j){let{chart:I,xAxis:U,yAxis:J}=this,{plotX:se=-1,plotY:ae=-1}=j;return ae>=0&&ae<=(J?J.len:I.plotHeight)&&se>=0&&se<=(U?U.len:I.plotWidth)}drawTracker(){var ge;let j=this,I=j.options,U=I.trackByArea,J=[].concat((U?j.areaPath:j.graphPath)||[]),se=j.chart,ae=se.pointer,he=se.renderer,me=((ge=se.options.tooltip)==null?void 0:ge.snap)||0,ve=()=>{I.enableMouseTracking&&se.hoverSeries!==j&&j.onMouseOver()},ke="rgba(192,192,192,"+(g?1e-4:.002)+")",Pe=j.tracker;Pe?Pe.attr({d:J}):j.graph&&(j.tracker=Pe=he.path(J).attr({visibility:j.visible?"inherit":"hidden",zIndex:2}).addClass(U?"highcharts-tracker-area":"highcharts-tracker-line").add(j.group),se.styledMode||Pe.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:ke,fill:U?ke:"none","stroke-width":j.graph.strokeWidth()+(U?0:2*me)}),[j.tracker,j.markerGroup,j.dataLabelsGroup].forEach(de=>{de&&(de.addClass("highcharts-tracker").on("mouseover",ve).on("mouseout",fe=>{ae==null||ae.onTrackerMouseOut(fe)}),I.cursor&&!se.styledMode&&de.css({cursor:I.cursor}),de.on("touchstart",ve))})),v(this,"afterDrawTracker")}addPoint(j,I,U,J,se){let ae,he,me=this.options,ve=this.data,ke=this.chart,Pe=this.xAxis,ge=Pe&&Pe.hasNames&&Pe.names,de=me.data,fe=this.xData;I=le(I,!0);let xe={series:this};this.pointClass.prototype.applyOptions.apply(xe,[j]);let Ee=xe.x;if(he=fe.length,this.requireSorting&&Ee<fe[he-1])for(ae=!0;he&&fe[he-1]>Ee;)he--;this.updateParallelArrays(xe,"splice",[he,0,0]),this.updateParallelArrays(xe,he),ge&&xe.name&&(ge[Ee]=xe.name),de.splice(he,0,j),(ae||this.processedData)&&(this.data.splice(he,0,null),this.processData()),me.legendType==="point"&&this.generatePoints(),U&&(ve[0]&&ve[0].remove?ve[0].remove(!1):(ve.shift(),this.updateParallelArrays(xe,"shift"),de.shift())),se!==!1&&v(this,"addPoint",{point:xe}),this.isDirty=!0,this.isDirtyData=!0,I&&ke.redraw(J)}removePoint(j,I,U){let J=this,se=J.data,ae=se[j],he=J.points,me=J.chart,ve=function(){he&&he.length===se.length&&he.splice(j,1),se.splice(j,1),J.options.data.splice(j,1),J.updateParallelArrays(ae||{series:J},"splice",[j,1]),ae&&ae.destroy(),J.isDirty=!0,J.isDirtyData=!0,I&&me.redraw()};
267T(U,me),I=le(I,!0),ae?ae.firePointEvent("remove",null,ve):ve()}remove(j,I,U,J){let se=this,ae=se.chart;function he(){se.destroy(J),ae.isDirtyLegend=ae.isDirtyBox=!0,ae.linkSeries(J),le(j,!0)&&ae.redraw(I)}U!==!1?v(se,"remove",null,he):he()}update(j,I){var Se,be,Te;v(this,"update",{options:j=$(j,this.userOptions)});let U=this,J=U.chart,se=U.userOptions,ae=U.initialType||U.type,he=J.options.plotOptions,me=k[ae].prototype,ve=U.finishedAnimating&&{animation:!1},ke={},Pe,ge,de=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],fe=j.type||se.type||J.options.chart.type,xe=!(this.hasDerivedData||fe&&fe!==this.type||j.pointStart!==void 0||j.pointInterval!==void 0||j.relativeXValue!==void 0||j.joinBy||j.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(Le=>U.hasOptionChanged(Le)));fe=fe||ae,xe&&(de.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),j.visible!==!1&&de.push("area","graph"),U.parallelArrays.forEach(function(Le){de.push(Le+"Data")}),j.data&&(j.dataSorting&&f(U.options.dataSorting,j.dataSorting),this.setData(j.data,!1))),j=ie(se,{index:se.index===void 0?U.index:se.index,pointStart:((Se=he==null?void 0:he.series)==null?void 0:Se.pointStart)??se.pointStart??((be=U.xData)==null?void 0:be[0])},!xe&&{data:U.options.data},j,ve),xe&&j.data&&(j.data=U.options.data),(de=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(de)).forEac
267h(function(Le){de[Le]=U[Le],delete U[Le]});let Ee=!1;if(k[fe]){if(Ee=fe!==U.type,U.remove(!1,!1,!1,!0),Ee)if(J.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(U,k[fe].prototype);else{let Le=Object.hasOwnProperty.call(U,"hcEvents")&&U.hcEvents;for(ge in me)U[ge]=void 0;f(U,k[fe].prototype),Le?U.hcEvents=Le:delete U.hcEvents}}else h(17,!0,J,{missingModuleFor:fe});if(de.forEach(function(Le){U[Le]=de[Le]}),U.init(J,j),xe&&this.points)for(let Le of((Pe=U.options).visible===!1?(ke.graphic=1,ke.dataLabel=1):(this.hasMarkerChanged(Pe,se)&&(ke.graphic=1),(Te=U.hasDataLabels)!=null&&Te.call(U)||(ke.dataLabel=1)),this.points))Le&&Le.series&&(Le.resolveColor(),Object.keys(ke).length&&Le.destroyElements(ke),Pe.showInLegend===!1&&Le.legendItem&&J.legend.destroyItem(Le));U.initialType=ae,J.linkSeries(),J.setSortedData(),Ee&&U.linkedSeries.length&&(U.isDirtyData=!0),v(this,"afterUpdate"),le(I,!0)&&J.redraw(!!xe&&void 0)}setName(j){this.name=this.options.name=this.userOptions.name=j,this.chart.isDirtyLegend=!0}hasOptionChanged(j){var he,me;let I=this.chart,U=this.options[j],J=I.options.plotOptions,se=this.userOptions[j],ae=le((he=J==null?void 0:J[this.type])==null?void 0:he[j],(me=J==null?void 0:J.series)==null?void 0:me[j]);return se&&!H(ae)?U!==se:U!==le(ae,U)}onMouseOver(){let j=this.chart,I=j.hoverSeries,U=j.pointer;U==null||U.setHoverChartIndex(),I&&I!==this&&I.onMouseOut(),this.options.events.mouseOver&&v(this,"mouseOver"),this.setState("hover"),j.hoverSeries=this}onMouseOut(){let j=this.options,I=this.chart,U=I.tooltip,J=I.hoverPoint;I.hoverSeries=null,J&&J.onMouseOut(),this&&j.events.mouseOut&&v(this,"mouseOut"),U&&!this.stickyTracking&&(!U.shared||this.noSharedTooltip)&&U.hide(),I.series.forEach(function(se){se.setState("",!0)})}setState(j,I){let U=this,J=U.options,se=U.graph,ae=J.inactiveOtherPoints,he=J.states,me=le(he[j||"normal"]&&he[j||"normal"].animation,U.chart.options.chart.animation),ve=J.lineWidth,ke=J.opacity;if(j=j||"",U.state!==j&&([U.group,U.markerGroup,U.dataLabelsGroup].forEach(function(Pe){Pe&&(U.state&&Pe.removeClass("highcharts-series-"+U.state),j&&Pe.addClass("highcharts-series-"+j))}),U.state=j,!U.chart.styledMode)){if(he[j]&&he[j].enabled===!1)return;if(j&&(ve=he[j].lineWidth||ve+(he[j].lineWidthPlus||0),ke=le(he[j].opacity,ke)),se&&!se.dashstyle&&Z(ve))for(let Pe of[se,...this.zones.map(ge=>ge.graph)])Pe==null||Pe.animate({"stroke-width":ve},me);ae||[U.group,U.markerGroup,U.dataLabelsGroup,U.labelBySeries].forEach(function(Pe){Pe&&Pe.animate({opacity:ke},me)})}I&&ae&&U.points&&U.setAllPointsToState(j||void 0)}setAllPointsToState(j){this.points.forEach(function(I){I.setState&&I.setState(j)})}setVisible(j,I){var me;let U=this,J=U.chart,se=J.options.chart.ignoreHiddenSeries,ae=U.visible;U.visible=j=U.options.visible=U.userOptions.visible=j===void 0?!ae:j;let he=j?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(ve=>{var ke;(ke=U[ve])==null||ke[he]()}),(J.hoverSeries===U||((me=J.hoverPoint)==null?void 0:me.series)===U)&&U.onMouseOut(),U.legendItem&&J.legend.colorizeItem(U,j),U.isDirty=!0,U.options.stacking&&J.series.forEach(ve=>{ve.options.stacking&&ve.visible&&(ve.isDirty=!0)}),U.linkedSeries.forEach(ve=>{ve.setVisible(j,!1)}),se&&(J.isDirtyBox=!0),v(U,he),I!==!1&&J.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(j){this.selected=j=this.options.selected=j===void 0?!this.selected:j,this.checkbox&&(this.checkbox.checked=j),v(this,j?"select":"unselect")}shouldShowTooltip(j,I,U={}){return U.series=this,U.visiblePlotOnly=!0,this.chart.isInsidePlot(j,I,U)}drawLegendSymbol(j,I){var U;(U=Y[this.options.legendSymbol||"rectangle"])==null||U.call(this,j,I)}}return ee.defaultOptions=te,ee.types=W.seriesTypes,ee.registerType=W.registerSeriesType,f(ee.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Q,requireSorting:!0,sorted:!0}),W.series=ee,ee}),c(n,"Core/Legend/Legend.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Series/Point.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Templating.js"],n["Core/Utilities.js"]],function(l,u,x,O,Y,Q,te,W){var G;let{animObject:K,setAnimation:S}=l,{registerEventOptions:T}=u,{composed:E,marginNames:_}=x,{distribute:g}=Q,{format:w}=te,{addEvent:k,createElement:b,css:C,defined:m,discardElement:q,find:V,fireEvent:H,isNumber:M,merge:$,pick:P,pushUnique:h,relativeLength:f,stableSort:L,syncTimeout:v}=W;class A{constructor(R,D){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWi
vendor: 16,574 bytes, line 267
267dth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=R,this.setOptions(D),D.enabled&&(this.render(),T(this,D),k(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),k(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(R){let D=P(R.padding,8);this.options=R,this.chart.styledMode||(this.itemStyle=R.itemStyle,this.itemHiddenStyle=$(this.itemStyle,R.itemHiddenStyle)),this.itemMarginTop=R.itemMarginTop,this.itemMarginBottom=R.itemMarginBottom,this.padding=D,this.initialItemY=D-5,this.symbolWidth=P(R.symbolWidth,16),this.pages=[],this.proximate=R.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(R,D){let Z=this.chart;this.setOptions($(!0,this.options,R)),"events"in this.options&&T(this,this.options),this.destroy(),Z.isDirtyLegend=Z.isDirtyBox=!0,P(D,!0)&&Z.redraw(),H(this,"afterUpdate",{redraw:D})}colorizeItem(R,D){let{area:Z,group:X,label:ie,line:oe,symbol:le}=R.legendItem||{};if(X==null||X[D?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:ue={}}=this,F=ue.color,{fillColor:N,fillOpacity:ee,lineColor:ce,marker:j}=R.options,I=U=>(!D&&(U.fill&&(U.fill=F),U.stroke&&(U.stroke=F)),U);ie==null||ie.css($(D?this.itemStyle:ue)),oe==null||oe.attr(I({stroke:ce||R.color})),le&&le.attr(I(j&&le.isMarker?R.pointAttribs():{fill:R.color})),Z==null||Z.attr(I({fill:N||R.color,"fill-opacity":N?1:ee??.75}))}H(this,"afterColorizeItem",{item:R,visible:D})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(R){let{group:D,x:Z=0,y:X=0}=R.legendItem||{},ie=this.options,oe=ie.symbolPadding,le=!ie.rtl,ue=R.checkbox;if(D&&D.element){let F={translateX:le?Z:this.legendWidth-Z-2*oe-4,translateY:X};D[m(D.translateY)?"animate":"attr"](F,void 0,()=>{H(this,"afterPositionItem",{item:R})})}ue&&(ue.x=Z,ue.y=X)}destroyItem(R){let D=R.checkbox,Z=R.legendItem||{};for(let X of["group","label","line","symbol"])Z[X]&&(Z[X]=Z[X].destroy());D&&q(D),R.legendItem=void 0}destroy(){for(let R of this.getAllItems())this.destroyItem(R);for(let R of["clipRect","up","down","pager","nav","box","title","group"])this[R]&&(this[R]=this[R].destroy());this.display=null}positionCheckboxes(){let R,D=this.group&&this.group.alignAttr,Z=this.clipHeight||this.legendHeight,X=this.titleHeight;D&&(R=D.translateY,this.allItems.forEach(function(ie){let oe,le=ie.checkbox;le&&(oe=R+X+le.y+(this.scrollOffset||0)+3,C(le,{left:D.translateX+ie.checkboxOffset+le.x-20+"px",top:oe+"px",display:this.proximate||oe>R-6&&oe<R+Z-6?"":"none"}))},this))}renderTitle(){let R=this.options,D=this.padding,Z=R.title,X,ie=0;Z.text&&(this.title||(this.title=this.chart.renderer.label(Z.text,D-3,D-4,void 0,void 0,void 0,R.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(Z.style),this.title.add(this.group)),Z.width||this.title.css({width:this.maxLegendWidth+"px"}),ie=(X=this.title.getBBox()).height,this.offsetWidth=X.width,this.contentGroup.attr({translateY:ie})),this.titleHeight=ie}setText(R){let D=this.options;R.legendItem.label.attr({text:D.labelFormat?w(D.labelFormat,R,this.chart):D.labelFormatter.call(R)})}renderItem(R){let D=R.legendItem=R.legendItem||{},Z=this.chart,X=Z.renderer,ie=this.options,oe=ie.layout==="horizontal",le=this.symbolWidth,ue=ie.symbolPadding||0,F=this.itemStyle,N=this.itemHiddenStyle,ee=oe?P(ie.itemDistance,20):0,ce=!ie.rtl,j=!R.series,I=!j&&R.series.drawLegendSymbol?R.series:R,U=I.options,J=!!this.createCheckboxForItem&&U&&U.showCheckbox,se=ie.useHTML,ae=R.options.className,he=D.label,me=le+ue+ee+(J?20:0);!he&&(D.group=X.g("legend-item").addClass("highcharts-"+I.type+"-series highcharts-color-"+R.colorIndex+(ae?" "+ae:"")+(j?" highcharts-series-"+R.index:"")).attr({zIndex:1}).add(this.scrollGroup),D.label=he=X.text("",ce?le+ue:-ue,this.baseline||0,se),Z.styledMode||he.css($(R.visible?F:N)),he.attr({align:ce?"left":"right",zIndex:2}).add(D.group),!this.baseline&&(this.fontMetrics=X.fontMetrics(he),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,he.attr("y",this.baseline),this.symbolHeight=P(ie.symbolHeight,this.fontMetrics.f),ie.squareSymbol&&(this.symbolWidth=P(ie.symbolWidth,Math.max(this.symbolHeight,16)),me=this.symbolWidth+ue+ee+(J?20:0),ce&&he.attr("x",this.symbolWidth+ue))),I.drawLegendSymbol(this,R),this.setItemEvents&&this.setItemEvents(R,he,se)),J&&!R.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(R),this.colorizeItem(R,R.visible),(Z.styledMode||!F.width)&&he.css({width:(ie.itemWidth||this.widthOption||Z.spacingBox.width)-me+"px"}),this.setText(R);let ve=he.getBBox(),ke=this.fontMetrics&&this.fontMetrics.h||0;R.itemWidth=R.checkboxOffset=ie.itemWidth||D.labelWidth||ve.width+me,this.maxItemWidth=Math.max(this.maxItemWidth,R.itemWidth),this.totalItemWidth+=R.itemWidth,this.itemHeight=R.itemHeight=Math.round(D.labelHeight||(ve.height>1.5*ke?ve.height:ke))}layoutItem(R){let D=this.options,Z=this.padding,X=D.layout==="horizontal",ie=R.itemHeight,oe=this.itemMarginBottom,le=this.itemMarginTop,ue=X?P(D.itemDistance,20):0,F=this.maxLegendWidth,N=D.alignColumns&&this.totalItemWidth>F?this.maxItemWidth:R.itemWidth,ee=R.legendItem||{};X&&this.itemX-Z+N>F&&(this.itemX=Z,this.lastLineHeight&&(this.itemY+=le+this.lastLineHeight+oe),this.lastLineHeight=0),this.lastItemY=le+this.itemY+oe,this.lastLineHeight=Math.max(ie,this.lastLineHeight),ee.x=this.itemX,ee.y=this.itemY,X?this.itemX+=N:(this.itemY+=le+ie+oe,this.lastLineHeight=ie),this.offsetWidth=this.widthOption||Math.max((X?this.itemX-Z-(R.checkbox?0:ue):N)+Z,this.offsetWidth)}getAllItems(){let R=[];return this.chart.series.forEach(function(D){let Z=D&&D.options;D&&P(Z.showInLegend,!m(Z.linkedTo)&&void 0,!0)&&(R=R.concat((D.legendItem||{}).labels||(Z.legendType==="point"?D.data:D)))}),H(this,"afterGetAllItems",{allItems:R}),R}getAlignment(){let R=this.options;return this.proximate?R.align.charAt(0)+"tv":R.floating?"":R.align.charAt(0)+R.verticalAlign.charAt(0)+R.layout.charAt(0)}adjustMargins(R,D){let Z=this.chart,X=this.options,ie=this.getAlignment();ie&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(oe,le){oe.test(ie)&&!m(R[le])&&(Z[_[le]]=Math.max(Z[_[le]],Z.legend[(le+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][le]*X[le%2?"x":"y"]+P(X.margin,12)+D[le]+(Z.titleOffset[le]||0)))})}proximatePositions(){let R,D=this.chart,Z=[],X=this.options.align==="left";for(let ie of(this.allItems.forEach(function(oe){let le,ue,F=X,N,ee;oe.yAxis&&(oe.xAxis.options.reversed&&(F=!F),oe.points&&(le=V(F?oe.points:oe.points.slice(0).reverse(),function(ce){return M(ce.plotY)})),ue=this.itemMarginTop+oe.legendItem.label.getBBox().height+this.itemMarginBottom,ee=oe.yAxis.top-D.plotTop,N=oe.visible?(le?le.plotY:oe.yAxis.height)+(ee-.3*ue):ee+oe.yAxis.height,Z.push({target:N,size:ue,item:oe}))},this),g(Z,D.plotHeight)))R=ie.item.legendItem||{},M(ie.pos)&&(R.y=D.plotTop-D.spacing[0]+ie.pos)}render(){let R=this.chart,D=R.renderer,Z=this.options,X=this.padding,ie=this.getAllItems(),oe,le,ue,F=this.group,N,ee=this.box;this.itemX=X,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=f(Z.width,R.spacingBox.width-X),N=R.spacingBox.width-2*X-Z.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(N/=2),this.maxLegendWidth=this.widthOption||N,F||(this.group=F=D.g("legend").addClass(Z.className||"").attr({zIndex:7}).add(),this.contentGroup=D.g().attr({zIndex:1}).add(F),this.scrollGroup=D.g().add(this.contentGroup)),this.renderTitle(),L(ie,(ce,j)=>(ce.options&&ce.options.legendIndex||0)-(j.options&&j.options.legendIndex||0)),Z.reversed&&ie.reverse(),this.allItems=ie,this.display=oe=!!ie.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,ie.forEach(this.renderItem,this),ie.forEach(this.layoutItem,this),le=(this.widthOption||this.offsetWidth)+X,ue=this.lastItemY+this.lastLineHeight+this.titleHeight,ue=this.handleOverflow(ue)+X,ee||(this.box=ee=D.rect().addClass("highcharts-legend-box").attr({r:Z.borderRadius}).add(F)),R.styledMode||ee.attr({stroke:Z.borderColor,"stroke-width":Z.borderWidth||0,fill:Z.backgroundColor||"none"}).shadow(Z.shadow),le>0&&ue>0&&ee[ee.placed?"animate":"attr"](ee.crisp.call({},{x:0,y:0,width:le,height:ue},ee.strokeWidth())),F[oe?"show":"hide"](),R.styledMode&&F.getStyle("display")==="none"&&(le=ue=0),this.legendWidth=le,this.legendHeight=ue,oe&&this.align(),this.proximate||this.positionItems(),H(this,"afterRender")}align(R=this.chart.spacingBox){let D=this.chart,Z=this.options,X=R.y;/(lth|ct|rth)/.test(this.getAlignment())&&D.titleOffset[0]>0?X+=D.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&D.titleOffset[2]>0&&(X-=D.titleOffset[2]),X!==R.y&&(R=$(R,{y:X})),D.hasRendered||(this.group.placed=!1),this.group.align($(Z,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":Z.verticalAlign}),!0,R)}handleOverflow(R){let D=this,Z=this.chart,X=Z.renderer,ie=this.options,oe=ie.y,le=ie.verticalAlign==="top",ue=this.padding,F=ie.maxHeight,N=ie.navigation,ee=P(N.animation,!0),ce=N.arrowSize||12,j=this.pages,I=this.allItems,U=function(Pe){typeof Pe=="number"?ke.attr({height:Pe}):ke&&(D.clipRect=ke.destroy(),D.contentGroup.clip()),D.contentGroup.div&&(D.contentGroup.div.style.clip=Pe?"rect("+ue+"px,9999px,"+(ue+Pe)+"px,0)":"auto")},J=function(Pe){return D[Pe]=X.circle(0,0,1.3*ce).translate(ce/2,ce/2).add(ve),Z.styledMode||D[Pe].attr("fill","rgba(0,0,0,0.0001)"),D[Pe]},se,ae,he,me=Z.spacingBox.height+(le?-oe:oe)-ue,ve=this.nav,ke=this.clipRect;return ie.layout!=="horizontal"||ie.verticalAlign==="middle"||ie.floating||(me/=2),F&&(me=Math.min(me,F)),j.length=0,R&&me>0&&R>me&&N.enabled!==!1?(this.clipHeight=se=Math.max(me-20-this.titleHeight-ue,0),this.currentPage=P(this.currentPage,1),this.fullHeight=R,I.forEach((Pe,ge)=>{let de=(he=Pe.legendItem||{}).y||0,fe=Math.round(he.label.getBBox().height),xe=j.length;(!xe||de-j[xe-1]>se&&(ae||de)!==j[xe-1])&&(j.push(ae||de),xe++),he.pageIx=xe-1,ae&&((I[ge-1].legendItem||{}).pageIx=xe-1),ge===I.length-1&&de+fe-j[xe-1]>se&&de>j[xe-1]&&(j.push(de),he.pageIx=xe),de!==ae&&(ae=de)}),ke||(ke=D.clipRect=X.clipRect(0,ue-2,9999,0),D.contentGroup.clip(ke)),U(se),ve||(this.nav=ve=X.g().attr({zIndex:1}).add(this.group),this.up=X.symbol("triangle",0,0,ce,ce).add(ve),J("upTracker").on("click",function(){D.scroll(-1,ee)}),this.pager=X.text("",15,10).addClass("highcharts-legend-navigation"),!Z.styledMode&&N.style&&this.pager.css(N.style),this.pager.add(ve),this.down=X.symbol("triangle-down",0,0,ce,ce).add(ve),J("downTracker").on("click",function(){D.scroll(1,ee)})),D.scroll(0),R=me):ve&&(U(),this.nav=ve.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),R}scroll(R,D){let Z=this.chart,X=this.pages,ie=X.length,oe=this.clipHeight,le=this.options.navigation,ue=this.pager,F=this.padding,N=this.currentPage+R;N>ie&&(N=ie),N>0&&(D!==void 0&&S(D,Z),this.nav.attr({translateX:F,translateY:oe+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(ee){ee.attr({class:N===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),ue.attr({text:N+"/"+ie}),[this.down,this.downTracker].forEach(function(ee){ee.attr({x:18+this.pager.getBBox().width,class:N===ie?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),Z.styledMode||(this.up.attr({fill:N===1?le.inactiveColor:le.activeColor}),this.upTracker.css({cursor:N===1?"default":"pointer"}),this.down.attr({fill:N===ie?le.inactiveColor:le.activeColor}),this.downTracker.css({cursor:N===ie?"default":"pointer"})),this.scrollOffset=-X[N-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=N,this.positionCheckboxes(),v(()=>{H(this,"afterScroll",{currentPage:N})},K(P(D,Z.renderer.globalAnimation,!0)).duration))}setItemEvents(R,D,Z){let X=this,ie=R.legendItem||{},oe=X.chart.renderer.boxWrapper,le=R instanceof Y,ue=R instanceof O,F="highcharts-legend-"+(le?"point":"series")+"-active",N=X.chart.styledMode,ee=Z?[D,ie.symbol]:[ie.group],ce=j=>{X.allItems.forEach(I=>{R!==I&&[I].concat(I.linkedSeries||[]).forEach(U=>{U.setState(j,!le)})})};for(let j of ee)j&&j.on("mouseover",function(){R.visible&&ce("inactive"),R.setState("hover"),R.visible&&oe.addClass(F),N||D.css(X.options.itemHoverStyle)}).on("mouseout",function(){X.chart.styledMode||D.css($(R.visible?X.itemStyle:X.itemHiddenStyle)),ce(""),oe.removeClass(F),R.setState()}).on("click",function(I){let U=function(){R.setVisible&&R.setVisible(),ce(R.visible?"inactive":"")};oe.removeClass(F),H(X,"itemClick",{browserEvent:I,legendItem:R},U),le?R.firePointEvent("legendItemClick",{browserEvent:I}):ue&&H(R,"legendItemClick",{browserEvent:I})})}createCheckboxForItem(R){R.checkbox=b("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:R.selected,defaultChecked:R.selected},this.options.itemCheckboxStyle,this.chart.container),k(R.checkbox,"click",function(D){let Z=D.target;H(R.series||R,"checkboxClick",{checked:Z.checked,item:R},function(){R.select()})})}}return(G=A||(A={})).compose=function(B){h(E,"Core.Legend")&&k(B,"beforeMargins",function(){this.legend=new G(this,this.options.legend)})},A}),c(n,"Core/Chart/Chart.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Defaults.js"],n["Core/Templating.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Time.js"],n["Core/Utilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/Axis/Tick.js"]],function(l,u,x,O,Y,Q,te,W,G,K,S,T,E,_){let{animate:g,animObject:w,setAnimation:k}=l,{defaultOptions:b,defaultTime:C}=x,{numberFormat:m}=O,{registerEventOptions:q}=Y,{charts:V,doc:H,marginNames:M,svg:$,win:P}=Q,{seriesTypes:h}=G,{addEvent:f,attr:L,createElement:v,css:A,defined:B,diffObjects:R,discardElement:D,erase:Z,error:X,extend:ie,find:oe,fireEvent:le,getStyle:ue,isArray:F,isNumber:N,isObject:ee,isString:ce,merge:j,objectEach:I,pick:U,pInt:J,relativeLength:se,removeEvent:ae,splat:he,syncTimeout:me,uniqueKey:ve}=T;class ke{static chart(ge,de,fe){return new ke(ge,de,fe)}constructor(ge,de,fe){this.sharedClips={};let xe=[...arguments];(ce(ge)||ge.nodeName)&&(this.renderTo=xe.shift()),this.init(xe[0],xe[1])}setZoomOptions(){let ge=this.options.chart,de=ge.zooming;this.zooming={...de,type:U(ge.zoomType,de.type),key:U(ge.zoomKey,de.key),pinchType:U(ge.pinchType,de.pinchType),singleTouch:U(ge.zoomBySingleTouch,de.singleTouch,!1),resetButton:j(de.resetButton,ge.resetZoomButton)}}init(ge,de){le(this,"init",{args:arguments},function(){let fe=j(b,ge),xe=fe.chart;this.userOptions=ie({},ge),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=de,this.isResizing=0,this.options=fe,this.axes=[],this.series=[],this.time=ge.time&&Object.keys(ge.time).length?new S(ge.time):Q.time,this.numberFormatter=xe.numberFormatter||m,this.styledMode=xe.styledMode,this.hasCartesianSeries=xe.showAxes,this.index=V.length,V.push(this),Q.chartCount++,q(this,xe),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),le(this,"afterInit"),this.firstRender()})}initSeries(ge){let de=this.options.chart,fe=ge.type||de.type,xe=h[fe];xe||X(17,!0,this,{missingModuleFor:fe});let Ee=new xe;return typeof Ee.init=="function"&&Ee.init(this,ge),Ee}setSortedData(){this.getSeriesOrderByLinks().forEach(function(ge){ge.points||ge.data||!ge.enabledDataSorting||ge.setData(ge.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(ge,de){return ge.linkedSeries.length||de.linkedSeries.length?de.linkedSeries.length-ge.linkedSeries.length:0})}orderItems(ge,de=0){let fe=this[ge],xe=this.options[ge]=he(this.options[ge]).slice(),Ee=this.userOptions[ge]=this.userOptions[ge]?he(this.userOptions[ge]).slice():[];if(this.hasRendered&&(xe.splice(de),Ee.splice(de)),fe)for(let Se=de,be=fe.length;Se<be;++Se){let Te=fe[Se];Te&&(Te.index=Se,Te instanceof W&&(Te.name=Te.getName()),Te.options.isInternal||(xe[Se]=Te.options,Ee[Se]=Te.userOptions))}}isInsidePlot(ge,de,fe={}){var Ve;let{inverted:xe,plotBox:Ee,plotLeft:Se,plotTop:be,scrollablePlotBox:Te}=this,{scrollLeft:Le=0,scrollTop:Ne=0}=fe.visiblePlotOnly&&((Ve=this.scrollablePlotArea)==null?void 0:Ve.scrollingContainer)||{},_e=fe.series,We=fe.visiblePlotOnly&&Te||Ee,He=fe.inverted?de:ge,Ye=fe.inverted?ge:de,Ge={x:He,y:Ye,isInsidePlot:!0,options:fe};
267if(!fe.ignoreX){let ot=_e&&(xe&&!this.polar?_e.yAxis:_e.xAxis)||{pos:Se,len:1/0},ct=fe.paneCoordinates?ot.pos+He:Se+He;ct>=Math.max(Le+Se,ot.pos)&&ct<=Math.min(Le+Se+We.width,ot.pos+ot.len)||(Ge.isInsidePlot=!1)}if(!fe.ignoreY&&Ge.isInsidePlot){let ot=!xe&&fe.axis&&!fe.axis.isXAxis&&fe.axis||_e&&(xe?_e.xAxis:_e.yAxis)||{pos:be,len:1/0},ct=fe.paneCoordinates?ot.pos+Ye:be+Ye;ct>=Math.max(Ne+be,ot.pos)&&ct<=Math.min(Ne+be+We.height,ot.pos+ot.len)||(Ge.isInsidePlot=!1)}return le(this,"afterIsInsidePlot",Ge),Ge.isInsidePlot}redraw(ge){le(this,"beforeRedraw");let de=this.hasCartesianSeries?this.axes:this.colorAxis||[],fe=this.series,xe=this.pointer,Ee=this.legend,Se=this.userOptions.legend,be=this.renderer,Te=be.isHidden(),Le=[],Ne,_e,We,He=this.isDirtyBox,Ye=this.isDirtyLegend,Ge;for(be.rootFontSize=be.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),k(!!this.hasRendered&&ge,this),Te&&this.temporaryDisplay(),this.layOutTitles(!1),We=fe.length;We--;)if(((Ge=fe[We]).options.stacking||Ge.options.centerInCategory)&&(_e=!0,Ge.isDirty)){Ne=!0;break}if(Ne)for(We=fe.length;We--;)(Ge=fe[We]).options.stacking&&(Ge.isDirty=!0);fe.forEach(function(Ve){Ve.isDirty&&(Ve.options.legendType==="point"?(typeof Ve.updateTotals=="function"&&Ve.updateTotals(),Ye=!0):Se&&(Se.labelFormatter||Se.labelFormat)&&(Ye=!0)),Ve.isDirtyData&&le(Ve,"updatedData")}),Ye&&Ee&&Ee.options.enabled&&(Ee.render(),this.isDirtyLegend=!1),_e&&this.getStacks(),de.forEach(function(Ve){Ve.updateNames(),Ve.setScale()}),this.getMargins(),de.forEach(function(Ve){Ve.isDirty&&(He=!0)}),de.forEach(function(Ve){let ot=Ve.min+","+Ve.max;Ve.extKey!==ot&&(Ve.extKey=ot,Le.push(function(){le(Ve,"afterSetExtremes",ie(Ve.eventArgs,Ve.getExtremes())),delete Ve.eventArgs})),(He||_e)&&Ve.redraw()}),He&&this.drawChartBox(),le(this,"predraw"),fe.forEach(function(Ve){(He||Ve.isDirty)&&Ve.visible&&Ve.redraw(),Ve.isDirtyData=!1}),xe&&xe.reset(!0),be.draw(),le(this,"redraw"),le(this,"render"),Te&&this.temporaryDisplay(!0),Le.forEach(function(Ve){Ve.call()})}get(ge){let de=this.series;function fe(Ee){return Ee.id===ge||Ee.options&&Ee.options.id===ge}let xe=oe(this.axes,fe)||oe(this.series,fe);for(let Ee=0;!xe&&Ee<de.length;Ee++)xe=oe(de[Ee].points||[],fe);return xe}getAxes(){let ge=this.userOptions;for(let de of(le(this,"getAxes"),["xAxis","yAxis"]))for(let fe of ge[de]=he(ge[de]||{}))new u(this,fe,de);le(this,"afterGetAxes")}getSelectedPoints(){return this.series.reduce((ge,de)=>(de.getPointsCollection().forEach(fe=>{U(fe.selectedStaging,fe.selected)&&ge.push(fe)}),ge),[])}getSelectedSeries(){return this.series.filter(function(ge){return ge.selected})}setTitle(ge,de,fe){this.applyDescription("title",ge),this.applyDescription("subtitle",de),this.applyDescription("caption",void 0),this.layOutTitles(fe)}applyDescription(ge,de){let fe=this,xe=this.options[ge]=j(this.options[ge],de),Ee=this[ge];Ee&&de&&(this[ge]=Ee=Ee.destroy()),xe&&!Ee&&((Ee=this.renderer.text(xe.text,0,0,xe.useHTML).attr({align:xe.align,class:"highcharts-"+ge,zIndex:xe.zIndex||4}).add()).update=function(Se,be){fe.applyDescription(ge,Se),fe.layOutTitles(be)},this.styledMode||Ee.css(ie(ge==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},xe.style)),this[ge]=Ee)}layOutTitles(ge=!0){let de=[0,0,0],fe=this.renderer,xe=this.spacingBox;["title","subtitle","caption"].forEach(function(Se){let be=this[Se],Te=this.options[Se],Le=Te.verticalAlign||"top",Ne=Se==="title"?Le==="top"?-3:0:Le==="top"?de[0]+2:0;if(be){be.css({width:(Te.width||xe.width+(Te.widthAdjust||0))+"px"});let _e=fe.fontMetrics(be).b,We=Math.round(be.getBBox(Te.useHTML).height);be.align(ie({y:Le==="bottom"?_e:Ne+_e,height:We},Te),!1,"spacingBox"),Te.floating||(Le==="top"?de[0]=Math.ceil(de[0]+We):Le==="bottom"&&(de[2]=Math.ceil(de[2]+We)))}},this),de[0]&&(this.options.title.verticalAlign||"top")==="top"&&(de[0]+=this.options.title.margin),de[2]&&this.options.caption.verticalAlign==="bottom"&&(de[2]+=this.options.caption.margin);let Ee=!this.titleOffset||this.titleOffset.join(",")!==de.join(",");this.titleOffset=de,le(this,"afterLayOutTitles"),!this.isDirtyBox&&Ee&&(this.isDirtyBox=this.isDirtyLegend=Ee,this.hasRendered&&ge&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:ue(this.renderTo,"width",!0)||0,height:ue(this.renderTo,"height",!0)||0}}getChartSize(){let ge=this.options.chart,de=ge.width,fe=ge.height,xe=this.getContainerBox();
267this.chartWidth=Math.max(0,de||xe.width||600),this.chartHeight=Math.max(0,se(fe,this.chartWidth)||(xe.height>1?xe.height:400)),this.containerBox=xe}temporaryDisplay(ge){let de=this.renderTo,fe;if(ge)for(;de&&de.style;)de.hcOrigStyle&&(A(de,de.hcOrigStyle),delete de.hcOrigStyle),de.hcOrigDetached&&(H.body.removeChild(de),de.hcOrigDetached=!1),de=de.parentNode;else for(;de&&de.style&&(H.body.contains(de)||de.parentNode||(de.hcOrigDetached=!0,H.body.appendChild(de)),(ue(de,"display",!1)==="none"||de.hcOricDetached)&&(de.hcOrigStyle={display:de.style.display,height:de.style.height,overflow:de.style.overflow},fe={display:"block",overflow:"hidden"},de!==this.renderTo&&(fe.height=0),A(de,fe),de.offsetWidth||de.style.setProperty("display","block","important")),(de=de.parentNode)!==H.body););}setClassName(ge){this.container.className="highcharts-container "+(ge||"")}getContainer(){var We;let ge=this.options,de=ge.chart,fe="data-highcharts-chart",xe=ve(),Ee,Se=this.renderTo;Se||(this.renderTo=Se=de.renderTo),ce(Se)&&(this.renderTo=Se=H.getElementById(Se)),Se||X(13,!0,this);let be=J(L(Se,fe));N(be)&&V[be]&&V[be].hasRendered&&V[be].destroy(),L(Se,fe,this.index),Se.innerHTML=E.emptyHTML,de.skipClone||Se.offsetWidth||this.temporaryDisplay(),this.getChartSize();let Te=this.chartHeight,Le=this.chartWidth;A(Se,{overflow:"hidden",pointerEvents:Q.isChrome?"fill":"auto"}),this.styledMode||(Ee=ie({position:"relative",overflow:"hidden",width:Le+"px",height:Te+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},de.style||{}));let Ne=v("div",{id:xe},Ee,Se);this.container=Ne,this.getChartSize(),Le===this.chartWidth||(Le=this.chartWidth,this.styledMode||A(Ne,{width:U((We=de.style)==null?void 0:We.width,Le+"px")})),this.containerBox=this.getContainerBox(),this._cursor=Ne.style.cursor;let _e=de.renderer||!$?te.getRendererType(de.renderer):K;if(this.renderer=new _e(Ne,Le,Te,void 0,de.forExport,ge.exporting&&ge.exporting.allowHTML,this.styledMode),k(void 0,this),this.setClassName(de.className),this.styledMode)for(let He in ge.defs)this.renderer.definition(ge.defs[He]);else this.renderer.setStyle(de.style);this.renderer.chartIndex=this.index,le(this,"afterGetContainer")}getMargins(ge){let{spacing:de,margin:fe,titleOffset:xe}=this;this.resetMargins(),xe[0]&&!B(fe[0])&&(this.plotTop=Math.max(this.plotTop,xe[0]+de[0])),xe[2]&&!B(fe[2])&&(this.marginBottom=Math.max(this.marginBottom,xe[2]+de[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(fe,de),le(this,"getMargins"),ge||this.getAxisMargins()}getAxisMargins(){let ge=this,de=ge.axisOffset=[0,0,0,0],fe=ge.colorAxis,xe=ge.margin,Ee=function(Se){Se.forEach(function(be){be.visible&&be.getOffset()})};ge.hasCartesianSeries?Ee(ge.axes):fe&&fe.length&&Ee(fe),M.forEach(function(Se,be){B(xe[be])||(ge[Se]+=de[be])}),ge.setChartSize()}getOptions(){return R(this.userOptions,b)}reflow(ge){var Ee;let de=this,fe=de.containerBox,xe=de.getContainerBox();(Ee=de.pointer)==null||delete Ee.chartPosition,!de.isPrinting&&!de.isResizing&&fe&&xe.width&&((xe.width!==fe.width||xe.height!==fe.height)&&(T.clearTimeout(de.reflowTimeout),de.reflowTimeout=me(function(){de.container&&de.setSize(void 0,void 0,!1)},ge?100:0)),de.containerBox=xe)}setReflow(){let ge=this,de=fe=>{var xe;(xe=ge.options)!=null&&xe.chart.reflow&&ge.hasLoaded&&ge.reflow(fe)};if(typeof ResizeObserver=="function")new ResizeObserver(de).observe(ge.renderTo);else{let fe=f(P,"resize",de);f(this,"destroy",fe)}}setSize(ge,de,fe){let xe=this,Ee=xe.renderer;xe.isResizing+=1,k(fe,xe);let Se=Ee.globalAnimation;xe.oldChartHeight=xe.chartHeight,xe.oldChartWidth=xe.chartWidth,ge!==void 0&&(xe.options.chart.width=ge),de!==void 0&&(xe.options.chart.height=de),xe.getChartSize();let{chartWidth:be,chartHeight:Te,scrollablePixelsX:Le=0,scrollablePixelsY:Ne=0}=xe;(xe.isDirtyBox||be!==xe.oldChartWidth||Te!==xe.oldChartHeight)&&(xe.styledMode||(Se?g:A)(xe.container,{width:`${be+Le}px`,height:`${Te+Ne}px`}
267,Se),xe.setChartSize(!0),Ee.setSize(be,Te,Se),xe.axes.forEach(function(_e){_e.isDirty=!0,_e.setScale()}),xe.isDirtyLegend=!0,xe.isDirtyBox=!0,xe.layOutTitles(),xe.getMargins(),xe.redraw(Se),xe.oldChartHeight=void 0,le(xe,"resize"),setTimeout(()=>{xe&&le(xe,"endResize")},w(Se).duration)),xe.isResizing-=1}setChartSize(ge){let de,fe,xe,Ee,{chartHeight:Se,chartWidth:be,inverted:Te,spacing:Le,renderer:Ne}=this,_e=this.clipOffset,We=Math[Te?"floor":"round"];this.plotLeft=de=Math.round(this.plotLeft),this.plotTop=fe=Math.round(this.plotTop),this.plotWidth=xe=Math.max(0,Math.round(be-de-this.marginRight)),this.plotHeight=Ee=Math.max(0,Math.round(Se-fe-this.marginBottom)),this.plotSizeX=Te?Ee:xe,this.plotSizeY=Te?xe:Ee,this.spacingBox=Ne.spacingBox={x:Le[3],y:Le[0],width:be-Le[3]-Le[1],height:Se-Le[0]-Le[2]},this.plotBox=Ne.plotBox={x:de,y:fe,width:xe,height:Ee},_e&&(this.clipBox={x:We(_e[3]),y:We(_e[0]),width:We(this.plotSizeX-_e[1]-_e[3]),height:We(this.plotSizeY-_e[0]-_e[2])}),ge||(this.axes.forEach(function(He){He.setAxisSize(),He.setAxisTranslation()}),Ne.alignElements()),le(this,"afterSetChartSize",{skipAxes:ge})}resetMargins(){le(this,"resetMargins");let ge=this,de=ge.options.chart,fe=de.plotBorderWidth||0,xe=fe/2;["margin","spacing"].forEach(function(Ee){let Se=de[Ee],be=ee(Se)?Se:[Se,Se,Se,Se];["Top","Right","Bottom","Left"].forEach(function(Te,Le){ge[Ee][Le]=U(de[Ee+Te],be[Le])})}),M.forEach(function(Ee,Se){ge[Ee]=U(ge.margin[Se],ge.spacing[Se])}),ge.axisOffset=[0,0,0,0],ge.clipOffset=[xe,xe,xe,xe],ge.plotBorderWidth=fe}drawChartBox(){let ge=this.options.chart,de=this.renderer,fe=this.chartWidth,xe=this.chartHeight,Ee=this.styledMode,Se=this.plotBGImage,be=ge.backgroundColor,Te=ge.plotBackgroun
vendor: 10,170 bytes, line 267
267dColor,Le=ge.plotBackgroundImage,Ne=this.plotLeft,_e=this.plotTop,We=this.plotWidth,He=this.plotHeight,Ye=this.plotBox,Ge=this.clipRect,Ve=this.clipBox,ot=this.chartBackground,ct=this.plotBackground,ft=this.plotBorder,kt,Mt,fr,Jt="animate";ot||(this.chartBackground=ot=de.rect().addClass("highcharts-background").add(),Jt="attr"),Ee?kt=Mt=ot.strokeWidth():(Mt=(kt=ge.borderWidth||0)+(ge.shadow?8:0),fr={fill:be||"none"},(kt||ot["stroke-width"])&&(fr.stroke=ge.borderColor,fr["stroke-width"]=kt),ot.attr(fr).shadow(ge.shadow)),ot[Jt]({x:Mt/2,y:Mt/2,width:fe-Mt-kt%2,height:xe-Mt-kt%2,r:ge.borderRadius}),Jt="animate",ct||(Jt="attr",this.plotBackground=ct=de.rect().addClass("highcharts-plot-background").add()),ct[Jt](Ye),!Ee&&(ct.attr({fill:Te||"none"}).shadow(ge.plotShadow),Le&&(Se?(Le!==Se.attr("href")&&Se.attr("href",Le),Se.animate(Ye)):this.plotBGImage=de.image(Le,Ne,_e,We,He).add())),Ge?Ge.animate({width:Ve.width,height:Ve.height}):this.clipRect=de.clipRect(Ve),Jt="animate",ft||(Jt="attr",this.plotBorder=ft=de.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),Ee||ft.attr({stroke:ge.plotBorderColor,"stroke-width":ge.plotBorderWidth||0,fill:"none"}),ft[Jt](ft.crisp({x:Ne,y:_e,width:We,height:He},-ft.strokeWidth())),this.isDirtyBox=!1,le(this,"afterDrawChartBox")}propFromSeries(){let ge,de,fe,xe=this,Ee=xe.options.chart,Se=xe.options.series;["inverted","angular","polar"].forEach(function(be){for(de=h[Ee.type],fe=Ee[be]||de&&de.prototype[be],ge=Se&&Se.length;!fe&&ge--;)(de=h[Se[ge].type])&&de.prototype[be]&&(fe=!0);xe[be]=fe})}linkSeries(ge){let de=this,fe=de.series;fe.forEach(function(xe){xe.linkedSeries.length=0}),fe.forEach(function(xe){let{linkedTo:Ee}=xe.options;if(ce(Ee)){let Se;(Se=Ee===":previous"?de.series[xe.index-1]:de.get(Ee))&&Se.linkedParent!==xe&&(Se.linkedSeries.push(xe),xe.linkedParent=Se,Se.enabledDataSorting&&xe.setDataSortingOptions(),xe.visible=U(xe.options.visible,Se.options.visible,xe.visible))}}),le(this,"afterLinkSeries",{isUpdating:ge})}renderSeries(){this.series.forEach(function(ge){ge.translate(),ge.render()})}render(){var Ne;let ge=this.axes,de=this.colorAxis,fe=this.renderer,xe=this.options.chart.axisLayoutRuns||2,Ee=_e=>{_e.forEach(We=>{We.visible&&We.render()})},Se=0,be=!0,Te,Le=0;for(let _e of(this.setTitle(),le(this,"beforeMargins"),(Ne=this.getStacks)==null||Ne.call(this),this.getMargins(!0),this.setChartSize(),ge)){let{options:We}=_e,{labels:He}=We;if(this.hasCartesianSeries&&_e.horiz&&_e.visible&&He.enabled&&_e.series.length&&_e.coll!=="colorAxis"&&!this.polar){Se=We.tickLength,_e.createGroups();let Ye=new _(_e,0,"",!0),Ge=Ye.createLabel("x",He);if(Ye.destroy(),Ge&&U(He.reserveSpace,!N(We.crossing))&&(Se=Ge.getBBox().height+He.distance+Math.max(We.offset||0,0)),Se){Ge==null||Ge.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-Se,0);(be||Te||xe>1)&&Le<xe;){let _e=this.plotWidth,We=this.plotHeight;for(let He of ge)Le===0?He.setScale():(He.horiz&&be||!He.horiz&&Te)&&He.setTickInterval(!0);Le===0?this.getAxisMargins():this.getMargins(),be=_e/this.plotWidth>(Le?1:1.1),Te=We/this.plotHeight>(Le?1:1.05),Le++}this.drawChartBox(),this.hasCartesianSeries?Ee(ge):de&&de.length&&Ee(de),this.seriesGroup||(this.seriesGroup=fe.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(ge){let de=this,fe=j(!0,this.options.credits,ge);fe.enabled&&!this.credits&&(this.credits=this.renderer.text(fe.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){fe.href&&(P.location.href=fe.href)}).attr({align:fe.position.align,zIndex:8}),de.styledMode||this.credits.css(fe.style),this.credits.add().align(fe.position),this.credits.update=function(xe){de.credits=de.credits.destroy(),de.addCredits(xe)})}destroy(){let ge,de=this,fe=de.axes,xe=de.series,Ee=de.container,Se=Ee&&Ee.parentNode;for(le(de,"destroy"),de.renderer.forExport?Z(V,de):V[de.index]=void 0,Q.chartCount--,de.renderTo.removeAttribute("data-highcharts-chart"),ae(de),ge=fe.length;ge--;)fe[ge]=fe[ge].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),ge=xe.length;ge--;)xe[ge]=xe[ge].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(be){let Te=de[be];Te&&Te.destroy&&(de[be]=Te.destroy())}),Ee&&(Ee.innerHTML=E.emptyHTML,ae(Ee),Se&&D(Ee)),I(de,function(be,Te){delete de[Te]})}firstRender(){var xe;let ge=this,de=ge.options;ge.getContainer(),ge.resetMargins(),ge.setChartSize(),ge.propFromSeries(),ge.getAxes();let fe=F(de.series)?de.series:[];de.series=[],fe.forEach(function(Ee){ge.initSeries(Ee)}),ge.linkSeries(),ge.setSortedData(),le(ge,"beforeRender"),ge.render(),(xe=ge.pointer)==null||xe.getChartPosition(),ge.renderer.imgCount||ge.hasLoaded||ge.onload(),ge.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(ge){ge&&this.index!==void 0&&ge.apply(this,[this])},this),le(this,"load"),le(this,"render"),B(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:ge,title:de}=this;!ge||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(de&&de.element.textContent||"").replace(/</g,"&lt;")}),ge.accessibility&&ge.accessibility.enabled===!1||X('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))}addSeries(ge,de,fe){let xe,Ee=this;return ge&&(de=U(de,!0),le(Ee,"addSeries",{options:ge},function(){xe=Ee.initSeries(ge),Ee.isDirtyLegend=!0,Ee.linkSeries(),xe.enabledDataSorting&&xe.setData(ge.data,!1),le(Ee,"afterAddSeries",{series:xe}),de&&Ee.redraw(fe)})),xe}addAxis(ge,de,fe,xe){return this.createAxis(de?"xAxis":"yAxis",{axis:ge,redraw:fe,animation:xe})}addColorAxis(ge,de,fe){return this.createAxis("colorAxis",{axis:ge,redraw:de,animation:fe})}createAxis(ge,de){let fe=new u(this,de.axis,ge);return U(de.redraw,!0)&&this.redraw(de.animation),fe}showLoading(ge){let de=this,fe=de.options,xe=fe.loading,Ee=function(){Se&&A(Se,{left:de.plotLeft+"px",top:de.plotTop+"px",width:de.plotWidth+"px",height:de.plotHeight+"px"})},Se=de.loadingDiv,be=de.loadingSpan;Se||(de.loadingDiv=Se=v("div",{className:"highcharts-loading highcharts-loading-hidden"},null,de.container)),be||(de.loadingSpan=be=v("span",{className:"highcharts-loading-inner"},null,Se),f(de,"redraw",Ee)),Se.className="highcharts-loading",E.setElementHTML(be,U(ge,fe.lang.loading,"")),de.styledMode||(A(Se,ie(xe.style,{zIndex:10})),A(be,xe.labelStyle),de.loadingShown||(A(Se,{opacity:0,display:""}),g(Se,{opacity:xe.style.opacity||.5},{duration:xe.showDuration||0}))),de.loadingShown=!0,Ee()}hideLoading(){let ge=this.options,de=this.loadingDiv;de&&(de.className="highcharts-loading highcharts-loading-hidden",this.styledMode||g(de,{opacity:0},{duration:ge.loading.hideDuration||100,complete:function(){A(de,{display:"none"})}})),this.loadingShown=!1}update(ge,de,fe,xe){let Ee,Se,be,Te=this,Le={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},Ne=ge.isResponsiveOptions,_e=[];le(Te,"update",{options:ge}),Ne||Te.setResponsive(!1,!0),ge=R(ge,Te.options),Te.userOptions=j(Te.userOptions,ge);let We=ge.chart;We&&(j(!0,Te.options.chart,We),this.setZoomOptions(),"className"in We&&Te.setClassName(We.className),("inverted"in We||"polar"in We||"type"in We)&&(Te.propFromSeries(),Ee=!0),"alignTicks"in We&&(Ee=!0),"events"in We&&q(this,We),I(We,function(Ge,Ve){Te.propsRequireUpdateSeries.indexOf("chart."+Ve)!==-1&&(Se=!0),Te.propsRequireDirtyBox.indexOf(Ve)!==-1&&(Te.isDirtyBox=!0),Te.propsRequireReflow.indexOf(Ve)===-1||(Te.isDirtyBox=!0,Ne||(be=!0))}),!Te.styledMode&&We.style&&Te.renderer.setStyle(Te.options.chart.style||{})),!Te.styledMode&&ge.colors&&(this.options.colors=ge.colors),ge.time&&(this.time===C&&(this.time=new S(ge.time)),j(!0,Te.options.time,ge.time)),I(ge,function(Ge,Ve){Te[Ve]&&typeof Te[Ve].update=="function"?Te[Ve].update(Ge,!1):typeof Te[Le[Ve]]=="function"?Te[Le[Ve]](Ge):Ve!=="colors"&&Te.collectionsWithUpdate.indexOf(Ve)===-1&&j(!0,Te.options[Ve],ge[Ve]),Ve!=="chart"&&Te.propsRequireUpdateSeries.indexOf(Ve)!==-1&&(Se=!0)}),this.collectionsWithUpdate.forEach(function(Ge){ge[Ge]&&(he(ge[Ge]).forEach(function(Ve,ot){let ct,ft=B(Ve.id);ft&&(ct=Te.get(Ve.id)),!ct&&Te[Ge]&&(ct=Te[Ge][U(Ve.index,ot)])&&(ft&&B(ct.options.id)||ct.options.isInternal)&&(ct=void 0),ct&&ct.coll===Ge&&(ct.update(Ve,!1),fe&&(ct.touched=!0)),!ct&&fe&&Te.collectionsWithInit[Ge]&&(Te.collectionsWithInit[Ge][0].apply(Te,[Ve].concat(Te.collectionsWithInit[Ge][1]||[]).concat([!1])).touched=!0)}),fe&&Te[Ge].forEach(function(Ve){Ve.touched||Ve.options.isInternal?delete Ve.touched:_e.push(Ve)}))}),_e.forEach(function(Ge){Ge.chart&&Ge.remove&&Ge.remove(!1)}),Ee&&Te.axes.forEach(function(Ge){Ge.update({},!1)}),Se&&Te.getSeriesOrderByLinks().forEach(function(Ge){Ge.chart&&Ge.update({},!1)},this);let He=We&&We.width,Ye=We&&(ce(We.height)?se(We.height,He||Te.chartWidth):We.height);be||N(He)&&He!==Te.chartWidth||N(Ye)&&Ye!==Te.chartHeight?Te.setSize(He,Ye,xe):U(de,!0)&&Te.redraw(xe),le(Te,"afterUpdate",{options:ge,redraw:de,animation:xe})}setSubtitle(ge,de){this.applyDescription("subtitle",ge),this.layOutTitles(de)}setCaption(ge,de){this.applyDescription("caption",ge),this.layOutTitles(de)}showResetZoom(){let ge=this,de=b.lang,fe=ge.zooming.resetButton,xe=fe.theme,Ee=fe.relativeTo==="chart"||fe.relativeTo==="spacingBox"?null:"plotBox";function Se(){ge.zoomOut()}le(this,"beforeShowResetZoom",null,function(){ge.resetZoomButton=ge.renderer.button(de.resetZoom,null,null,Se,xe).attr({align:fe.position.align,title:de.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(fe.position,!1,Ee)}),le(this,"afterShowResetZoom")}zoomOut(){le(this,"selection",{resetSelection:!0}
267,()=>this.transform({reset:!0,trigger:"zoom"}))}pan(ge,de){let fe=this,xe=typeof de=="object"?de:{enabled:de,type:"x"},Ee=xe.type,Se=Ee&&fe[{x:"xAxis",xy:"axes",y:"yAxis"}[Ee]].filter(Te=>Te.options.panningEnabled&&!Te.options.isInternal),be=fe.options.chart;be!=null&&be.panning&&(be.panning=xe),le(this,"pan",{originalEvent:ge},()=>{fe.transform({axes:Se,event:ge,to:{x:ge.chartX-(fe.mouseDownX||0),y:ge.chartY-(fe.mouseDownY||0)},trigger:"pan"}),A(fe.container,{cursor:"move"})})}transform(ge){var He;let{axes:de=this.axes,event:fe,from:xe={},reset:Ee,selection:Se,to:be={},trigger:Te}=ge,{inverted:Le}=this,Ne=!1,_e,We;for(let Ye of((He=this.hoverPoints)==null||He.forEach(Ge=>Ge.setState()),de)){let{horiz:Ge,len:Ve,minPointOffset:ot=0,options:ct,reversed:ft}=Ye,kt=Ge?"width":"height",Mt=Ge?"x":"y",fr=U(be[kt],Ye.len),Jt=U(xe[kt],Ye.len),Er=10>Math.abs(fr)?1:fr/Jt,Qr=(xe[Mt]||0)+Jt/2-Ye.pos,Br=Qr-((be[Mt]??Ye.pos)+fr/2-Ye.pos)/Er,Wn=ft&&!Le||!ft&&Le?-1:1;if(!Ee&&(Qr<0||Qr>Ye.len))continue;let lr=Ye.toValue(Br,!0)+(Se?0:ot*Wn),Sr=Ye.toValue(Br+Ve/Er,!0)-(Se?0:ot*Wn||0),Yr=Ye.allExtremes;if(lr>Sr&&([lr,Sr]=[Sr,lr]),Er===1&&!Ee&&Ye.coll==="yAxis"&&!Yr){for(let ja of Ye.series){let oo=ja.getExtremes(ja.getProcessedData(!0).yData,!0);Yr??(Yr={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),N(oo.dataMin)&&N(oo.dataMax)&&(Yr.dataMin=Math.min(oo.dataMin,Yr.dataMin),Yr.dataMax=Math.max(oo.dataMax,Yr.dataMax))}Ye.allExtremes=Yr}let{dataMin:so,dataMax:Ji,min:es,max:ui}=ie(Ye.getExtremes(),Yr||{}),Ps=so??ct.min,Es=Ji??ct.max,ts=Sr-lr,Ho=Ye.categories?0:Math.min(ts,Es-Ps),Dt=Ps-Ho*(B(ct.min)?0:ct.minPadding),rr=Es+Ho*(B(ct.max)?0:ct.maxPadding),rs=Ye.allowZoomOutside||Er===1||Te!=="zoom"&&Er>1,hi=Math.min(ct.min??Dt,Dt,rs?es:Dt),Xr=Math.max(ct.max??rr,rr,rs?ui:rr);(!Ye.isOrdinal||Er!==1||Ee)&&(lr<hi&&(lr=hi,Er>=1&&(Sr=lr+ts)),Sr>Xr&&(Sr=Xr,Er>=1&&(lr=Sr-ts)),(Ee||Ye.series.length&&(lr!==es||Sr!==ui)&&lr>=hi&&Sr<=Xr)&&(Se?Se[Ye.coll].push({axis:Ye,min:lr,max:Sr}):(Ye.isPanning=Te!=="zoom",Ye.isPanning&&(We=!0),Ye.setExtremes(Ee?void 0:lr,Ee?void 0:Sr,!1,!1,{move:Br,trigger:Te,scale:Er}),!Ee&&(lr>hi||Sr<Xr)&&Te!=="mousewheel"&&(_e=!0)),Ne=!0),fe&&(this[Ge?"mouseDownX":"mouseDownY"]=fe[Ge?"chartX":"chartY"]))}return Ne&&(Se?le(this,"selection",Se,()=>{delete ge.selection,ge.trigger="zoom",this.transform(ge)}):(!_e||We||this.resetZoomButton?!_e&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw(Te==="zoom"&&(this.options.chart.animation??this.pointCount<100)))),Ne}}return ie(ke.prototype,{callbacks:[],collectionsWithInit:{xAxis:[ke.prototype.addAxis,[!0]],yAxis:[ke.prototype.addAxis,[!1]],series:[ke.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroun
267dColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),ke}),c(n,"Extensions/ScrollablePlotArea.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Globals.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],function(l,u,x,O){let{stop:Y}=l,{composed:Q}=u,{addEvent:te,createElement:W,css:G,defined:K,merge:S,pushUnique:T}=O;function E(){let w=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!w&&(this.scrollablePlotArea=w=new g(this)),w==null||w.applyFixed()}function _(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class g{static compose(k,b,C){T(Q,this.compose)&&(te(k,"afterInit",_),te(b,"afterSetChartSize",m=>this.afterSetSize(m.target,m)),te(b,"render",E),te(C,"show",_))}static afterSetSize(k,b){let C,m,q,{minWidth:V,minHeight:H}=k.options.chart.scrollablePlotArea||{},{clipBox:M,plotBox:$,inverted:P,renderer:h}=k;if(!h.forExport&&(V?(k.scrollablePixelsX=C=Math.max(0,V-k.chartWidth),C&&(k.scrollablePlotBox=S(k.plotBox),$.width=k.plotWidth+=C,M[P?"height":"width"]+=C,q=!0)):H&&(k.scrollablePixelsY=m=Math.max(0,H-k.chartHeight),K(m)&&(k.scrollablePlotBox=S(k.plotBox),$.height=k.plotHeight+=m,M[P?"width":"height"]+=m,q=!1)),K(q)&&!b.skipAxes))for(let f of k.axes)f.horiz===q&&(f.setAxisSize(),f.setAxisTranslation())}constructor(k){var L;let b,C=k.options.chart,m=x.getRendererType(),q=C.scrollablePlotArea||{},V=this.moveFixedElements.bind(this),H={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};k.scrollablePixelsX&&(H.overflowX="auto"),k.scrollablePixelsY&&(H.overflowY="auto"),this.chart=k;let M=this.parentDiv=W("div",{className:"highcharts-scrolling-parent"},{position:"relative"},k.renderTo),$=this.scrollingContainer=W("div",{className:"highcharts-scrolling"},H,M),P=this.innerContainer=W("div",{className:"highcharts-inner-container"},void 0,$),h=this.fixedDiv=W("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(((L=C.style)==null?void 0:L.zIndex)||0)+2,top:0},void 0,!0),f=this.fixedRenderer=new m(h,k.chartWidth,k.chartHeight,C.style);this.mask=f.path().attr({fill:C.backgroundColor||"#fff","fill-opacity":q.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),$.parentNode.insertBefore(h,$),G(k.renderTo,{overflow:"visible"}),te(k,"afterShowResetZoom",V),te(k,"afterApplyDrilldown",V),te(k,"afterLayOutTitles",V),te($,"scroll",()=>{let{pointer:v,hoverPoint:A}=k;v&&(delete v.chartPosition,A&&(b=A),v.runPointActions(void 0,b,!0))}),P.appendChild(k.container)}applyFixed(){var N;let{chart:k,fixedRenderer:b,isDirty:C,scrollingContainer:m}=this,{axisOffset:q,chartWidth:V,chartHeight:H,container:M,plotHeight:$,plotLeft:P,plotTop:h,plotWidth:f,scrollablePixelsX:L=0,scrollablePixelsY:v=0}=k,{scrollPositionX:A=0,scrollPositionY:B=0}=k.options.chart.scrollablePlotArea||{},R=V+L,D=H+v;b.setSize(V,H),(C??!0)&&(this.isDirty=!1,this.moveFixedElements()),Y(k.container),G(M,{width:`${R}px`,height:`${D}px`}),k.renderer.boxWrapper.attr({width:R,height:D,viewBox:[0,0,R,D].join(" ")}),(N=k.chartBackground)==null||N.attr({width:R,height:D}),G(m,{width:`${V}px`,height:`${H}px`}),K(C)||(m.scrollLeft=L*A,m.scrollTop=v*B);
267let Z=h-q[0]-1,X=P-q[3]-1,ie=h+$+q[2]+1,oe=P+f+q[1]+1,le=P+f-L,ue=h+$-v,F=[["M",0,0]];L?F=[["M",0,Z],["L",P-1,Z],["L",P-1,ie],["L",0,ie],["Z"],["M",le,Z],["L",V,Z],["L",V,ie],["L",le,ie],["Z"]]:v&&(F=[["M",X,0],["L",X,h-1],["L",oe,h-1],["L",oe,0],["Z"],["M",X,ue],["L",X,H],["L",oe,H],["L",oe,ue],["Z"]]),k.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:F})}moveFixedElements(){let k,{container:b,inverted:C,scrollablePixelsX:m,scrollablePixelsY:q}=this.chart,V=this.fixedRenderer,H=g.fixedSelectors;for(let M of(m&&!C?k=".highcharts-yaxis":m&&C||q&&!C?k=".highcharts-xaxis":q&&C&&(k=".highcharts-yaxis"),k&&H.push(`${k}:not(.highcharts-radial-axis)`,`${k}-labels:not(.highcharts-radial-axis-labels)`),H))[].forEach.call(b.querySelectorAll(M),$=>{($.namespaceURI===V.SVG_NS?V.box:V.box.parentNode).appendChild($),$.style.pointerEvents="auto"})}}return g.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"],g}),c(n,"Core/Axis/Stacking/StackItem.js",[n["Core/Templating.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u,x){let{format:O}=l,{series:Y}=u,{destroyObjectProperties:Q,fireEvent:te,isNumber:W,pick:G}=x;return class{constructor(K,S,T,E,_){let g=K.chart.inverted,w=K.reversed;this.axis=K;let k=this.isNegative=!!T!=!!w;this.options=S=S||{},this.x=E,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=_,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:S.align||(g?k?"left":"right":"center"),verticalAlign:S.verticalAlign||(g?"middle":k?"bottom":"top"),y:S.y,x:S.x},this.textAlign=S.textAlign||(g?k?"right":"left":"center")}destroy(){Q(this,this.axis)}render(K){let S=this.axis.chart,T=this.options,E=T.format,_=E?O(E,this,S):T.formatter.call(this);if(this.label)this.label.attr({text:_,visibility:"hidden"});else{this.label=S.renderer.label(_,null,void 0,T.shape,void 0,void 0,T.useHTML,!1,"stack-labels");let g={r:T.borderRadius||0,text:_,padding:G(T.padding,5),visibility:"hidden"};S.styledMode||(g.fill=T.backgroundColor,g.stroke=T.borderColor,g["stroke-width"]=T.borderWidth,this.label.css(T.style||{})),this.label.attr(g),this.label.added||this.label.add(K)}this.label.labelrank=S.plotSizeY,te(this,"afterRender")}setOffset(K,S,T,E,_,g){let{alignOptions:w,axis:k,label:b,options:C,textAlign:m}=this,q=k.chart,V=this.getStackBox({xOffset:K,width:S,boxBottom:T,boxTop:E,defaultX:_,xAxis:g}),{verticalAlign:H}=w;if(b&&V){let M=b.getBBox(void 0,0),$=b.padding,P=G(C.overflow,"justify")==="justify",h;w.x=C.x||0,w.y=C.y||0;let{x:f,y:L}=this.adjustStackPosition({labelBox:M,verticalAlign:H,textAlign:m});V.x-=f,V.y-=L,b.align(w,!1,V),(h=q.isInsidePlot(b.alignAttr.x+w.x+f,b.alignAttr.y+w.y+L))||(P=!1),P&&Y.prototype.justifyDataLabel.call(k,b,w,b.alignAttr,M,V),b.attr({x:b.alignAttr.x,y:b.alignAttr.y,rotation:C.rotation,rotationOriginX:M.width*{left:0,center:.5,right:1}[C.textAlign||"center"],rotationOriginY:M.height/2}),G(!P&&C.crop,!0)&&(h=W(b.x)&&W(b.y)&&q.isInsidePlot(b.x-$+(b.width||0),b.y)&&q.isInsidePlot(b.x+$,b.y)),b[h?"show":"hide"]()}te(this,"afterSetOffset",{xOffset:K,width:S})}adjustStackPosition({labelBox:K,verticalAlign:S,textAlign:T}){let E={bottom:0,middle:1,top:2,right:1,center:0,left:-1},_=E[S],g=E[T];return{x:K.width/2+K.width/2*g,y:K.height/2*_}}getStackBox(K){let S=this.axis,T=S.chart,{boxTop:E,defaultX:_,xOffset:g,width:w,boxBottom:k}=K,b=S.stacking.usePercentage?100:G(E,this.total,0),C=S.toPixels(b),m=K.xAxis||T.xAxis[0],q=G(_,m.translate(this.x))+g,V=Math.abs(C-S.toPixels(k||W(S.min)&&S.logarithmic&&S.logarithmic.lin2log(S.min)||0)),H=T.inverted,M=this.isNegative;return H?{x:(M?C:C-V)-T.plotLeft,y:m.height-q-w+m.top-T.plotTop,width:V,height:w}:{x:q+m.transB-T.plotLeft,y:(M?C-V:C)-T.plotTop,width:w,height:V}}}}),c(n,"Core/Axis/Stacking/StackingAxis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Axis/Stacking/StackItem.js"],n["Core/Utilities.js"]],function(l,u,x,O,Y){var Q;let{getDeferredAnimation:te}=l,{series:{prototype:W}}=x,{addEvent:G,correctFloat:K,defined:S,destroyObjectProperties:T,fireEvent:E,isArray:_,isNumber:g,objectEach:w,pick:k}=Y;function b(){let h=this.inverted;
267this.axes.forEach(f=>{f.stacking&&f.stacking.stacks&&f.hasVisibleSeries&&(f.stacking.oldStacks=f.stacking.stacks)}),this.series.forEach(f=>{let L=f.xAxis&&f.xAxis.options||{};f.options.stacking&&f.reserveSpace()&&(f.stackKey=[f.type,k(f.options.stack,""),h?L.top:L.left,h?L.height:L.width].join(","))})}function C(){var f;let h=this.stacking;if(h){let L=h.stacks;w(L,(v,A)=>{T(v),delete L[A]}),(f=h.stackTotalGroup)==null||f.destroy()}}function m(){this.stacking||(this.stacking=new P(this))}function q(h,f,L,v){return!S(h)||h.x!==f||v&&h.stackKey!==v?h={x:f,index:0,key:v,stackKey:v}:h.index++,h.key=[L,f,h.index].join(","),h}function V(){let h,f=this,L=f.yAxis,v=f.stackKey||"",A=L.stacking.stacks,B=f.processedXData,R=f.options.stacking,D=f[R+"Stacker"];D&&[v,"-"+v].forEach(Z=>{var ue;let X=B.length,ie,oe,le;for(;X--;)ie=B[X],h=f.getStackIndicator(h,ie,f.index,Z),oe=(ue=A[Z])==null?void 0:ue[ie],(le=oe==null?void 0:oe.points[h.key||""])&&D.call(f,le,oe,X)})}function H(h,f,L){let v=f.total?100/f.total:0;h[0]=K(h[0]*v),h[1]=K(h[1]*v),this.stackedYData[L]=h[1]}function M(h){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&!this.options.stacking&&this.chart.series.length>1?W.setStackedPoints.call(this,h,"group"):h.stacking.resetStacks())}function $(h,f){var ve,ke;let L,v,A,B,R,D,Z,X,ie,oe=f||this.options.stacking;if(!oe||!this.reserveSpace()||({group:"xAxis"}[oe]||"yAxis")!==h.coll)return;let le=this.processedXData,ue=this.processedYData,F=[],N=ue.length,ee=this.options,ce=ee.threshold||0,j=ee.startFromThreshold?ce:0,I=ee.stack,U=f?`${this.type},${oe}`:this.stackKey||"",J="-"+U,se=this.negStacks,ae=h.stacking,he=ae.stacks,me=ae.oldStacks;for(ae.stacksTouched+=1,Z=0;Z<N;Z++){X=le[Z],ie=ue[Z],D=(L=this.getStackIndicator(L,X,this.index)).key||"",he[R=(v=se&&ie<(j?0:ce))?J:U]||(he[R]={}),he[R][X]||((ve=me[R])!=null&&ve[X]?(he[R][X]=me[R][X],he[R][X].total=null):he[R][X]=new O(h,h.options.stackLabels,!!v,X,I)),A=he[R][X],ie!==null?(A.points[D]=A.points[this.index]=[k(A.cumulative,j)],S(A.cumulative)||(A.base=D),A.touched=ae.stacksTouched,L.index>0&&this.singleStacks===!1&&(A.points[D][0]=A.points[this.index+","+X+",0"][0])):(delete A.points[D],delete A.points[this.index]);let Pe=A.total||0;oe==="percent"?(B=v?U:J,Pe=se&&((ke=he[B])!=null&&ke[X])?(B=he[B][X]).total=Math.max(B.total||0,Pe)+Math.abs(ie)||0:K(Pe+(Math.abs(ie)||0))):oe==="group"?(_(ie)&&(ie=ie[0]),ie!==null&&Pe++):Pe=K(Pe+(ie||0)),oe==="group"?A.cumulative=(Pe||1)-1:A.cumulative=K(k(A.cumulative,j)+(ie||0)),A.total=Pe,ie!==null&&(A.points[D].push(A.cumulative),F[Z]=A.cumulative,A.hasValidPoints=!0)}oe==="percent"&&(ae.usePercentage=!0),oe!=="group"&&(this.stackedYData=F),ae.oldStacks={}}class P{constructor(f){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=f}buildStacks(){let f,L,v=this.axis,A=v.series,B=v.coll==="xAxis",R=v.options.reversedStacks,D=A.length;for(this.resetStacks(),this.usePercentage=!1,L=D;L--;)f=A[R?L:D-L-1],B&&f.setGroupedPoints(v),f.setStackedPoints(v);if(!B)for(L=0;L<D;L++)A[L].modifyStacks();E(v,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,w(this.stacks,f=>{w(f,L=>{L.cumulative=L.total})}))}resetStacks(){w(this.stacks,f=>{w(f,(L,v)=>{g(L.touched)&&L.touched<this.stacksTouched?(L.destroy(),delete f[v]):(L.total=null,L.cumulative=null)})})}renderStackTotals(){var D;let f=this.axis,L=f.chart,v=L.renderer,A=this.stacks,B=te(L,((D=f.options.stackLabels)==null?void 0:D.animation)||!1),R=this.stackTotalGroup=this.stackTotalGroup||v.g("stack-labels").attr({zIndex:6,opacity:0}).add();R.translate(L.plotLeft,L.plotTop),w(A,Z=>{w(Z,X=>{X.render(R)})}),R.animate({opacity:1},B)}}return(Q||(Q={})).compose=function(h,f,L){let v=f.prototype,A=L.prototype;v.getStacks||(G(h,"init",m),G(h,"destroy",C),v.getStacks=b,A.getStackIndicator=q,A.modifyStacks=V,A.percentStacker=H,A.setGroupedPoints=M,A.setStackedPoints=$)},Q}),c(n,"Series/Line/LineSeries.js",[n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u,x){let{defined:O,merge:Y,isObject:Q}=x;class te extends l{drawGraph(){let G=this.options,K=(this.gappedPath||this.getGraphPath).call(this),S=this.chart.styledMode;
vendor: 4,132 bytes, line 267
267[this,...this.zones].forEach((T,E)=>{let _,g=T.graph,w=g?"animate":"attr",k=T.dashStyle||G.dashStyle;g?(g.endX=this.preventGraphAnimation?null:K.xMap,g.animate({d:K})):K.length&&(T.graph=g=this.chart.renderer.path(K).addClass("highcharts-graph"+(E?` highcharts-zone-graph-${E-1} `:" ")+(E&&T.className||"")).attr({zIndex:1}).add(this.group)),g&&!S&&(_={stroke:!E&&G.lineColor||T.color||this.color||"#cccccc","stroke-width":G.lineWidth||0,fill:this.fillGraph&&this.color||"none"},k?_.dashstyle=k:G.linecap!=="square"&&(_["stroke-linecap"]=_["stroke-linejoin"]="round"),g[w](_).shadow(E<2&&G.shadow&&Y({filterUnits:"userSpaceOnUse"},Q(G.shadow)?G.shadow:{}))),g&&(g.startX=K.xMap,g.isArea=K.isArea)})}getGraphPath(G,K,S){let T=this,E=T.options,_=[],g=[],w,k=E.step,b=(G=G||T.points).reversed;return b&&G.reverse(),(k={right:1,center:2}[k]||k&&3)&&b&&(k=4-k),(G=this.getValidPoints(G,!1,!(E.connectNulls&&!K&&!S))).forEach(function(C,m){let q,V=C.plotX,H=C.plotY,M=G[m-1],$=C.isNull||typeof H!="number";(C.leftCliff||M&&M.rightCliff)&&!S&&(w=!0),$&&!O(K)&&m>0?w=!E.connectNulls:$&&!K?w=!0:(m===0||w?q=[["M",C.plotX,C.plotY]]:T.getPointSpline?q=[T.getPointSpline(G,C,m)]:k?(q=k===1?[["L",M.plotX,H]]:k===2?[["L",(M.plotX+V)/2,M.plotY],["L",(M.plotX+V)/2,H]]:[["L",V,M.plotY]]).push(["L",V,H]):q=[["L",V,H]],g.push(C.x),k&&(g.push(C.x),k===2&&g.push(C.x)),_.push.apply(_,q),w=!1)}),_.xMap=g,T.graphPath=_,_}}return te.defaultOptions=Y(l.defaultOptions,{legendSymbol:"lineMarker"}),u.registerSeriesType("line",te),te}),c(n,"Series/Area/AreaSeriesDefaults.js",[],function(){return{threshold:0,legendSymbol:"areaMarker"}}),c(n,"Series/Area/AreaSeries.js",[n["Series/Area/AreaSeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u,x){let{seriesTypes:{line:O}}=u,{extend:Y,merge:Q,objectEach:te,pick:W}=x;class G extends O{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:S,options:T}=this;[this,...this.zones].forEach((E,_)=>{let g={},w=E.fillColor||T.fillColor,k=E.area,b=k?"animate":"attr";k?(k.endX=this.preventGraphAnimation?null:S.xMap,k.animate({d:S})):(g.zIndex=0,(k=E.area=this.chart.renderer.path(S).addClass("highcharts-area"+(_?` highcharts-zone-area-${_-1} `:" ")+(_&&E.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(g.fill=w||E.color||this.color,g["fill-opacity"]=w?1:T.fillOpacity??.75,k.css({pointerEvents:this.stickyTracking?"none":"auto"})),k[b](g),k.startX=S.xMap,k.shiftUnit=T.step?2:1})}getGraphPath(S){let T,E,_,g=O.prototype.getGraphPath,w=this.options,k=w.stacking,b=this.yAxis,C=[],m=[],q=this.index,V=b.stacking.stacks[this.stackKey],H=w.threshold,M=Math.round(b.getThreshold(w.threshold)),$=W(w.connectNulls,k==="percent"),P=function(B,R,D){let Z=S[B],X=k&&V[Z.x].points[q],ie=Z[D+"Null"]||0,oe=Z[D+"Cliff"]||0,le,ue,F=!0;oe||ie?(le=(ie?X[0]:X[1])+oe,ue=X[0]+oe,F=!!ie):!k&&S[R]&&S[R].isNull&&(le=ue=H),le!==void 0&&(m.push({plotX:T,plotY:le===null?M:b.getThreshold(le),isNull:F,isCliff:!0}),C.push({plotX:T,plotY:ue===null?M:b.getThreshold(ue),doCurve:!1}))};S=S||this.points,k&&(S=this.getStackPoints(S));for(let B=0,R=S.length;B<R;++B)k||(S[B].leftCliff=S[B].rightCliff=S[B].leftNull=S[B].rightNull=void 0),E=S[B].isNull,T=W(S[B].rectPlotX,S[B].plotX),_=k?W(S[B].yBottom,M):M,E&&!$||($||P(B,B-1,"left"),E&&!k&&$||(m.push(S[B]),C.push({x:B,plotX:T,plotY:_})),$||P(B,B+1,"right"));let h=g.call(this,m,!0,!0);C.reversed=!0;let f=g.call(this,C,!0,!0),L=f[0];L&&L[0]==="M"&&(f[0]=["L",L[1],L[2]]);let v=h.concat(f);v.length&&v.push(["Z"]);let A=g.call(this,m,!1,$);return this.chart.series.length>1&&k&&m.some(B=>B.isCliff)&&(v.hasStackedCliffs=A.hasStackedCliffs=!0),v.xMap=h.xMap,this.areaPath=v,A}getStackPoints(S){let T=this,E=[],_=[],g=this.xAxis,w=this.yAxis,k=w.stacking.stacks[this.stackKey],b={},C=w.series,m=C.length,q=w.options.reversedStacks?1:-1,V=C.indexOf(T);if(S=S||this.points,this.options.stacking){for(let M=0;M<S.length;M++)S[M].leftNull=S[M].rightNull=void 0,b[S[M].x]=S[M];te(k,function(M,$){M.total!==null&&_.push($)}),_.sort(function(M,$){return M-$});let H=C.map(M=>M.visible);_.forEach(function(M,$){let P=0,h,f;
267if(b[M]&&!b[M].isNull)E.push(b[M]),[-1,1].forEach(function(L){let v=L===1?"rightNull":"leftNull",A=k[_[$+L]],B=0;if(A){let R=V;for(;R>=0&&R<m;){let D=C[R].index;!(h=A.points[D])&&(D===T.index?b[M][v]=!0:H[R]&&(f=k[M].points[D])&&(B-=f[1]-f[0])),R+=q}}b[M][L===1?"rightCliff":"leftCliff"]=B});else{let L=V;for(;L>=0&&L<m;){let v=C[L].index;if(h=k[M].points[v]){P=h[1];break}L+=q}P=W(P,0),P=w.translate(P,0,1,0,1),E.push({isNull:!0,plotX:g.translate(M,0,0,0,1),x:M,plotY:P,yBottom:P})}})}return E}}return G.defaultOptions=Q(O.defaultOptions,l),Y(G.prototype,{singleStacks:!1}),u.registerSeriesType("area",G),G}),c(n,"Series/Spline/SplineSeries.js",[n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u){let{line:x}=l.seriesTypes,{merge:O,pick:Y}=u;class Q extends x{getPointSpline(W,G,K){let S,T,E,_,g=G.plotX||0,w=G.plotY||0,k=W[K-1],b=W[K+1];function C(q){return q&&!q.isNull&&q.doCurve!==!1&&!G.isCliff}if(C(k)&&C(b)){let q=k.plotX||0,V=k.plotY||0,H=b.plotX||0,M=b.plotY||0,$=0;S=(1.5*g+q)/2.5,T=(1.5*w+V)/2.5,E=(1.5*g+H)/2.5,_=(1.5*w+M)/2.5,E!==S&&($=(_-T)*(E-g)/(E-S)+w-_),T+=$,_+=$,T>V&&T>w?(T=Math.max(V,w),_=2*w-T):T<V&&T<w&&(T=Math.min(V,w),_=2*w-T),_>M&&_>w?(_=Math.max(M,w),T=2*w-_):_<M&&_<w&&(_=Math.min(M,w),T=2*w-_),G.rightContX=E,G.rightContY=_,G.controlPoints={low:[S,T],high:[E,_]}}let m=["C",Y(k.rightContX,k.plotX,0),Y(k.rightContY,k.plotY,0),Y(S,g,0),Y(T,w,0),g,w];return k.rightContX=k.rightContY=void 0,m}}return Q.defaultOptions=O(x.defaultOptions),l.registerSeriesType("spline",Q),Q}),c(n,"Series/AreaSpline/AreaSplineSeries.js",[n["Series/Spline/SplineSeries.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u,x){let{area:O,area:{prototype:Y}}=u.seriesTypes,{extend:Q,merge:te}=x;class W extends l{}return W.defaultOptions=te(l.defaultOptions,O.defaultOptions),Q(W.prototype,{getGraphPath:Y.getGraphPath,getStackPoints:Y.getStackPoints,drawGraph:Y.drawGraph}),u.registerSeriesType("areaspline",W),W}),c(n,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),c(n,"Series/Column/ColumnSeries.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Color/Color.js"],n["Series/Column/ColumnSeriesDefaults.js"],n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u,x,O,Y,Q,te){let{animObject:W}=l,{parse:G}=u,{noop:K}=O,{clamp:S,crisp:T,defined:E,extend:_,fireEvent:g,isArray:w,isNumber:k,merge:b,pick:C,objectEach:m}=te;class q extends Y{animate(H){let M,$,P=this,h=this.yAxis,f=h.pos,L=h.reversed,v=P.options,{clipOffset:A,inverted:B}=this.chart,R={},D=B?"translateX":"translateY";H&&A?(R.scaleY=.001,$=S(h.toPixels(v.threshold),f,f+h.len),B?($+=L?-Math.floor(A[0]):Math.ceil(A[2]),R.translateX=$-h.len):($+=L?Math.ceil(A[0]):-Math.floor(A[2]),R.translateY=$),P.clipBox&&P.setClip(),P.group.attr(R)):(M=Number(P.group.attr(D)),P.group.animate({scaleY:1},_(W(P.options.animation),{step:function(Z,X){P.group&&(R[D]=M+X.pos*(f-M),P.group.attr(R))}})))}init(H,M){super.init.apply(this,arguments);let $=this;(H=$.chart).hasRendered&&H.series.forEach(function(P){P.type===$.type&&(P.isDirty=!0)})}getColumnMetrics(){var ie,oe;let H=this,M=H.options,$=H.xAxis,P=H.yAxis,h=$.options.reversedStacks,f=$.reversed&&!h||!$.reversed&&h,L={},v,A=0;M.grouping===!1?A=1:H.chart.series.forEach(function(le){let ue,F=le.yAxis,N=le.options;le.type===H.type&&le.reserveSpace()&&P.len===F.len&&P.pos===F.pos&&(N.stacking&&N.stacking!=="group"?(L[v=le.stackKey]===void 0&&(L[v]=A++),ue=L[v]):N.grouping!==!1&&(ue=A++),le.columnIndex=ue)});let B=Math.min(Math.abs($.transA)*(!((ie=$.brokenAxis)!=null&&ie.hasBreaks)&&((oe=$.ordinal)==null?void 0:oe.slope)||M.pointRange||$.closestPointRange||$.tickInterval||1),$.len),R=B*M.groupPadding,D=(B-2*R)/(A||1
vendor: 4,541 bytes, line 267
267),Z=Math.min(M.maxPointWidth||$.len,C(M.pointWidth,D*(1-2*M.pointPadding))),X=(H.columnIndex||0)+(f?1:0);return H.columnMetrics={width:Z,offset:(D-Z)/2+(R+X*D-B/2)*(f?-1:1),paddedWidth:D,columnCount:A},H.columnMetrics}crispCol(H,M,$,P){let h=this.borderWidth,f=this.chart.inverted;return P=T(M+P,h,f)-(M=T(M,h,f)),this.options.crisp&&($=T(H+$,h)-(H=T(H,h))),{x:H,y:M,width:$,height:P}}adjustForMissingColumns(H,M,$,P){var h;if(!$.isNull&&P.columnCount>1){let f=this.xAxis.series.filter(B=>B.visible).map(B=>B.index),L=0,v=0;m((h=this.xAxis.stacking)==null?void 0:h.stacks,B=>{if(typeof $.x=="number"){let R=B[$.x.toString()];if(R&&w(R.points[this.index])){let D=Object.keys(R.points).filter(Z=>!Z.match(",")&&R.points[Z]&&R.points[Z].length>1).map(parseFloat).filter(Z=>f.indexOf(Z)!==-1).sort((Z,X)=>X-Z);L=D.indexOf(this.index),v=D.length}}}),L=this.xAxis.reversed?v-1-L:L;let A=(v-1)*P.paddedWidth+M;H=($.plotX||0)+A/2-M-L*P.paddedWidth}return H}translate(){let H=this,M=H.chart,$=H.options,P=H.dense=H.closestPointRange*H.xAxis.transA<2,h=H.borderWidth=C($.borderWidth,P?0:1),f=H.xAxis,L=H.yAxis,v=$.threshold,A=C($.minPointLength,5),B=H.getColumnMetrics(),R=B.width,D=H.pointXOffset=B.offset,Z=H.dataMin,X=H.dataMax,ie=H.translatedThreshold=L.getThreshold(v),oe=H.barW=Math.max(R,1+2*h);$.pointPadding&&(oe=Math.ceil(oe)),Y.prototype.translate.apply(H),H.points.forEach(function(le){let ue=C(le.yBottom,ie),F=999+Math.abs(ue),N=le.plotX||0,ee=S(le.plotY,-F,L.len+F),ce,j=Math.min(ee,ue),I=Math.max(ee,ue)-j,U=R,J=N+D,se=oe;A&&Math.abs(I)<A&&(I=A,ce=!L.reversed&&!le.negative||L.reversed&&le.negative,k(v)&&k(X)&&le.y===v&&X<=v&&(L.min||0)<v&&(Z!==X||(L.max||0)<=v)&&(ce=!ce,le.negative=!le.negative),j=Math.abs(j-ie)>A?ue-A:ie-(ce?A:0)),E(le.options.pointWidth)&&(J-=Math.round(((U=se=Math.ceil(le.options.pointWidth))-R)/2)),$.centerInCategory&&!$.stacking&&(J=H.adjustForMissingColumns(J,U,le,B)),le.barX=J,le.pointWidth=U,le.tooltipPos=M.inverted?[S(L.len+L.pos-M.plotLeft-ee,L.pos-M.plotLeft,L.len+L.pos-M.plotLeft),f.len+f.pos-M.plotTop-J-se/2,I]:[f.left-M.plotLeft+J+se/2,S(ee+L.pos-M.plotTop,L.pos-M.plotTop,L.len+L.pos-M.plotTop),I],le.shapeType=H.pointClass.prototype.shapeType||"roundedRect",le.shapeArgs=H.crispCol(J,le.isNull?ie:j,se,le.isNull?0:I)}),g(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(H,M){let $=this.options,P=this.pointAttrToOptions||{},h=P.stroke||"borderColor",f=P["stroke-width"]||"borderWidth",L,v,A,B=H&&H.color||this.color,R=H&&H[h]||$[h]||B,D=H&&H.options.dashStyle||$.dashStyle,Z=H&&H[f]||$[f]||this[f]||0,X=C(H&&H.opacity,$.opacity,1);H&&this.zones.length&&(v=H.getZone(),B=H.options.color||v&&(v.color||H.nonZonedColor)||this.color,v&&(R=v.borderColor||R,D=v.dashStyle||D,Z=v.borderWidth||Z)),M&&H&&(A=(L=b($.states[M],H.options.states&&H.options.states[M]||{})).brightness,B=L.color||A!==void 0&&G(B).brighten(L.brightness).get()||B,R=L[h]||R,Z=L[f]||Z,D=L.dashStyle||D,X=C(L.opacity,X));let ie={fill:B,stroke:R,"stroke-width":Z,opacity:X};return D&&(ie.dashstyle=D),ie}drawPoints(H=this.points){let M,$=this,P=this.chart,h=$.options,f=P.renderer,L=h.animationLimit||250;H.forEach(function(v){let A=v.plotY,B=v.graphic,R=!!B,D=B&&P.pointCount<L?"animate":"attr";k(A)&&v.y!==null?(M=v.shapeArgs,B&&v.hasNewShapeType()&&(B=B.destroy()),$.enabledDataSorting&&(v.startXPos=$.xAxis.reversed?-(M&&M.width||0):$.xAxis.width),!B&&(v.graphic=B=f[v.shapeType](M).add(v.group||$.group),B&&$.enabledDataSorting&&P.hasRendered&&P.pointCount<L&&(B.attr({x:v.startXPos}),R=!0,D="animate")),B&&R&&B[D](b(M)),P.styledMode||B[D]($.pointAttribs(v,v.selected&&"select")).shadow(v.allowShadow!==!1&&h.shadow),B&&(B.addClass(v.getClassName(),!0),B.attr({visibility:v.visible?"inherit":"hidden"}))):B&&(v.graphic=B.destroy())})}drawTracker(H=this.points){let M,$=this,P=$.chart,h=P.pointer,f=function(L){let v=h==null?void 0:h.getPointFromEvent(L);h&&v&&$.options.enableMouseTracking&&(h.isDirectTouch=!0,v.onMouseOver(L))};H.forEach(function(L){M=w(L.dataLabels)?L.dataLabels:L.dataLabel?[L.dataLabel]:[],L.graphic&&(L.graphic.element.point=L),M.forEach(function(v){(v.div||v.element).point=L})}),$._hasTracking||($.trackerGroups.forEach(function(L){$[L]&&($[L].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(v){h==null||h.onTrackerMouseOut(v)}).on("touchstart",f),!P.styledMode&&$.options.cursor&&$[L].css({cursor:$.options.cursor}))}),$._hasTracking=!0),g(this,"afterDrawTracker")}remove(){let H=this,M=H.chart;
267M.hasRendered&&M.series.forEach(function($){$.type===H.type&&($.isDirty=!0)}),Y.prototype.remove.apply(H,arguments)}}return q.defaultOptions=b(Y.defaultOptions,x),_(q.prototype,{directTouch:!0,getSymbol:K,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),Q.registerSeriesType("column",q),q}),c(n,"Core/Series/DataLabel.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Templating.js"],n["Core/Utilities.js"]],function(l,u,x){var O;let{getDeferredAnimation:Y}=l,{format:Q}=u,{defined:te,extend:W,fireEvent:G,isArray:K,isString:S,merge:T,objectEach:E,pick:_,pInt:g,splat:w}=x;return function(k){function b(){return $(this).some(h=>h==null?void 0:h.enabled)}function C(h,f,L,v,A){var ee;let{chart:B,enabledDataSorting:R}=this,D=this.isCartesian&&B.inverted,Z=h.plotX,X=h.plotY,ie=L.rotation||0,oe=te(Z)&&te(X)&&B.isInsidePlot(Z,Math.round(X),{inverted:D,paneCoordinates:!0,series:this}),le=ie===0&&_(L.overflow,R?"none":"justify")==="justify",ue=this.visible&&h.visible!==!1&&te(Z)&&(h.series.forceDL||R&&!le||oe||_(L.inside,!!this.options.stacking)&&v&&B.isInsidePlot(Z,D?v.x+1:v.y+v.height-1,{inverted:D,paneCoordinates:!0,series:this})),F=h.pos();if(ue&&F){var N;let ce=f.getBBox(),j=f.getBBox(void 0,0),I={right:1,center:.5}[L.align||0]||0,U={bottom:1,middle:.5}[L.verticalAlign||0]||0;if(v=W({x:F[0],y:Math.round(F[1]),width:0,height:0},v||{}),L.alignTo==="plotEdges"&&this.isCartesian&&(v[D?"x":"y"]=0,v[D?"width":"height"]=((ee=this.yAxis)==null?void 0:ee.len)||0),W(L,{width:ce.width,height:ce.height}),N=v,R&&this.xAxis&&!le&&this.setDataLabelStartPos(h,f,A,oe,N),f.align(T(L,{width:j.width,height:j.height}),!1,v,!1),f.alignAttr.x+=I*(j.width-ce.width),f.alignAttr.y+=U*(j.height-ce.height),f[f.placed?"animate":"attr"]({x:f.alignAttr.x+(ce.width-j.width)/2,y:f.alignAttr.y+(ce.height-j.height)/2,rotationOriginX:(f.width||0)/2,rotationOriginY:(f.height||0)/2}),le&&v.height>=0)this.justifyDataLabel(f,L,f.alignAttr,ce,v,A);else if(_(L.crop,!0)){let{x:J,y:se}=f.alignAttr;ue=B.isInsidePlot(J,se,{paneCoordinates:!0,series:this})&&B.isInsidePlot(J+ce.width-1,se+ce.height-1,{paneCoordinates:!0,series:this})}L.shape&&!ie&&f[A?"attr":"animate"]({anchorX:F[0],anchorY:F[1]})}A&&R&&(f.placed=!1),ue||R&&!le?(f.show(),f.placed=!0):(f.hide(),f.placed=!1)}function m(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function q(h){let f=this.hasRendered||0,L=this.initDataLabelsGroup().attr({opacity:+f});return!f&&L&&(this.visible&&L.show(),this.options.animation?L.animate({opacity:1},h):L.attr({opacity:1})),L}function V(h){var ue;let f;h=h||this.points;let L=this,v=L.chart,A=L.options,B=v.renderer,{backgroundColor:R,plotBackgroun
267dColor:D}=v.options.chart,Z=B.getContrast(S(D)&&D||S(R)&&R||"#000000"),X=$(L),{animation:ie,defer:oe}=X[0],le=oe?Y(v,ie,L):{defer:0,duration:0};G(this,"drawDataLabels"),(ue=L.hasDataLabels)!=null&&ue.call(L)&&(f=this.initDataLabels(le),h.forEach(F=>{var ce,j;let N=F.dataLabels||[];w(M(X,F.dlOptions||((ce=F.options)==null?void 0:ce.dataLabels))).forEach((I,U)=>{let J=I.enabled&&(F.visible||F.dataLabelOnHidden)&&(!F.isNull||F.dataLabelOnNull)&&function(Se,be){let Te=be.filter;if(Te){let Le=Te.operator,Ne=Se[Te.property],_e=Te.value;return Le===">"&&Ne>_e||Le==="<"&&Ne<_e||Le===">="&&Ne>=_e||Le==="<="&&Ne<=_e||Le==="=="&&Ne==_e||Le==="==="&&Ne===_e||Le==="!="&&Ne!=_e||Le==="!=="&&Ne!==_e}return!0}(F,I),{backgroundColor:se,borderColor:ae,distance:he,style:me={}}=I,ve,ke,Pe,ge,de={},fe=N[U],xe=!fe,Ee;J&&(ke=_(I[F.formatPrefix+"Format"],I.format),ve=F.getLabelConfig(),Pe=te(ke)?Q(ke,ve,v):(I[F.formatPrefix+"Formatter"]||I.formatter).call(ve,I),ge=I.rotation,!v.styledMode&&(me.color=_(I.color,me.color,S(L.color)?L.color:void 0,"#000000"),me.color==="contrast"?(se!=="none"&&(Ee=se),F.contrastColor=B.getContrast(Ee!=="auto"&&Ee||F.color||L.color),me.color=Ee||!te(he)&&I.inside||0>g(he||0)||A.stacking?F.contrastColor:Z):delete F.contrastColor,A.cursor&&(me.cursor=A.cursor)),de={r:I.borderRadius||0,rotation:ge,padding:I.padding,zIndex:1},v.styledMode||(de.fill=se==="auto"?F.color:se,de.stroke=ae==="auto"?F.color:ae,de["stroke-width"]=I.borderWidth),E(de,(Se,be)=>{Se===void 0&&delete de[be]})),!fe||J&&te(Pe)&&!!fe.div==!!I.useHTML&&(fe.rotation&&I.rotation||fe.rotation===I.rotation)||(fe=void 0,xe=!0),J&&te(Pe)&&(fe?de.text=Pe:(fe=B.label(Pe,0,0,I.shape,void 0,void 0,I.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+F.colorIndex+" "+(I.className||"")+(I.useHTML?" highcharts-tracker":"")),fe&&(fe.options=I,fe.attr(de),v.styledMode||fe.css(me).shadow(I.shadow),G(fe,"beforeAddingDataLabel",{labelOptions:I,point:F}),fe.added||fe.add(f),L.alignDataLabel(F,fe,I,void 0,xe),fe.isActive=!0,N[U]&&N[U]!==fe&&N[U].destroy(),N[U]=fe))});let ee=N.length;for(;ee--;)N[ee]&&N[ee].isActive?N[ee].isActive=!1:((j=N[ee])==null||j.destroy(),N.splice(ee,1));F.dataLabel=N[0],F.dataLabels=N})),G(this,"afterDrawDataLabels")}function H(h,f,L,v,A,B){let R=this.chart,D=f.align,Z=f.verticalAlign,X=h.box?0:h.padding||0,ie=R.inverted?this.yAxis:this.xAxis,oe=ie?ie.left-R.plotLeft:0,le=R.inverted?this.xAxis:this.yAxis,ue=le?le.top-R.plotTop:0,{x:F=0,y:N=0}=f,ee,ce;return(ee=(L.x||0)+X+oe)<0&&(D==="right"&&F>=0?(f.align="left",f.inside=!0):F-=ee,ce=!0),(ee=(L.x||0)+v.width-X+oe)>R.plotWidth&&(D==="left"&&F<=0?(f.align="right",f.inside=!0):F+=R.plotWidth-ee,ce=!0),(ee=L.y+X+ue)<0&&(Z==="bottom"&&N>=0?(f.verticalAlign="top",f.inside=!0):N-=ee,ce=!0),(ee=(L.y||0)+v.height-X+ue)>R.plotHeight&&(Z==="top"&&N<=0?(f.verticalAlign="bottom",f.inside=!0):N+=R.plotHeight-ee,ce=!0),ce&&(f.x=F,f.y=N,h.placed=!B,h.align(f,void 0,A)),ce}function M(h,f){let L=[],v;if(K(h)&&!K(f))L=h.map(function(A){return T(A,f)});else if(K(f)&&!K(h))L=f.map(function(A){return T(h,A)});else if(K(h)||K(f)){if(K(h)&&K(f))for(v=Math.max(h.length,f.length);v--;)L[v]=T(h[v],f[v])}else L=T(h,f);return L}function $(h){var L,v;let f=h.chart.options.plotOptions;return w(M(M((L=f==null?void 0:f.series)==null?void 0:L.dataLabels,(v=f==null?void 0:f[h.type])==null?void 0:v.dataLabels),h.options.dataLabels))}function P(h,f,L,v,A){let B=this.chart,R=B.inverted,D=this.xAxis,Z=D.reversed,X=((R?f.height:f.width)||0)/2,ie=h.pointWidth,oe=ie?ie/2:0;f.startXPos=R?A.x:Z?-X-oe:D.width-X+oe,f.startYPos=R?Z?this.yAxis.height-X+oe:-X-oe:A.y,v?f.visibility==="hidden"&&(f.show(),f.attr({opacity:0}).animate({opacity:1})):f.attr({opacity:1}).animate({opacity:0}
267,void 0,f.hide),B.hasRendered&&(L&&f.attr({x:f.startXPos,y:f.startYPos}),f.placed=!0)}k.compose=function(h){let f=h.prototype;f.initDataLabels||(f.initDataLabels=q,f.initDataLabelsGroup=m,f.alignDataLabel=C,f.drawDataLabels=V,f.justifyDataLabel=H,f.setDataLabelStartPos=P,f.hasDataLabels=b)}}(O||(O={})),O}),c(n,"Series/Column/ColumnDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Globals.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u,x,O){var Y;let{composed:Q}=u,{series:te}=x,{merge:W,pick:G,pushUnique:K}=O;return function(S){function T(E,_,g,w,k){let b=this.chart.inverted,C=E.series,m=(C.xAxis?C.xAxis.len:this.chart.plotSizeX)||0,q=(C.yAxis?C.yAxis.len:this.chart.plotSizeY)||0,V=E.dlBox||E.shapeArgs,H=G(E.below,E.plotY>G(this.translatedThreshold,q)),M=G(g.inside,!!this.options.stacking);if(V){if(w=W(V),!(g.overflow==="allow"&&g.crop===!1)){w.y<0&&(w.height+=w.y,w.y=0);let $=w.y+w.height-q;$>0&&$<w.height-1&&(w.height-=$)}b&&(w={x:q-w.y-w.height,y:m-w.x-w.width,width:w.height,height:w.width}),M||(b?(w.x+=H?0:w.width,w.width=0):(w.y+=H?w.height:0,w.height=0))}g.align=G(g.align,!b||M?"center":H?"right":"left"),g.verticalAlign=G(g.verticalAlign,b||M?"middle":H?"top":"bottom"),te.prototype.alignDataLabel.call(this,E,_,g,w,k),g.inside&&E.contrastColor&&_.css({color:E.contrastColor})}S.compose=function(E){l.compose(te),K(Q,"ColumnDataLabel")&&(E.prototype.alignDataLabel=T)}}(Y||(Y={})),Y}),c(n,"Series/Bar/BarSeries.js",[n["Series/Column/ColumnSeries.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u,x){let{extend:O,merge:Y}=x;class Q extends l{}return Q.defaultOptions=Y(l.defaultOptions,{}),O(Q.prototype,{inverted:!0}),u.registerSeriesType("bar",Q),Q}),c(n,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),c(n,"Series/Scatter/ScatterSeries.js",[n["Series/Scatter/ScatterSeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u,x){let{column:O,line:Y}=u.seriesTypes,{addEvent:Q,extend:te,merge:W}=x;class G extends Y{applyJitter(){let S=this,T=this.options.jitter,E=this.points.length;T&&this.points.forEach(function(_,g){["x","y"].forEach(function(w,k){if(T[w]&&!_.isNull){let b=`plot${w.toUpperCase()}`,C=S[`${w}Axis`],m=T[w]*C.transA;if(C&&!C.logarithmic){let q=Math.max(0,(_[b]||0)-m),V=Math.min(C.len,(_[b]||0)+m);_[b]=q+(V-q)*function(H){let M=1e4*Math.sin(H);return M-Math.floor(M)}(g+k*E),w==="x"&&(_.clientX=_.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return G.defaultOptions=W(Y.defaultOptions,l),te(G.prototype,{drawTracker:O.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),Q(G,"afterTranslate",function(){this.applyJitter()}),u.registerSeriesType("scatter",G),G}),c(n,"Series/CenteredUtilities.js",[n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Utilities.js"]],function(l,u,x){var O,Y;let{deg2rad:Q}=l,{fireEvent:te,isNumber:W,pick:G,relativeLength:K}=x;return(Y=O||(O={})).getCenter=function(){let S=this.options,T=this.chart,E=2*(S.slicedOffset||0),_=T.plotWidth-2*E,g=T.plotHeight-2*E,w=S.center,k=Math.min(_,g),b=S.thickness,C,m=S.size,q=S.innerSize||0,V,H;typeof m=="string"&&(m=parseFloat(m)),typeof q=="string"&&(q=parseFloat(q));let M=[G(w[0],"50%"),G(w[1],"50%"),G(m&&m<0?void 0:S.size,"100%"),G(q&&q<0?void 0:S.innerSize||0,"0%")];for(!T.angular||this instanceof u||(M[3]=0),V=0;V<4;++V)H=M[V],C=V<2||V===2&&/%$/.test(H),M[V]=K(H,[_,g,k,M[2]][V])+(C?E:0);return M[3]>M[2]&&(M[3]=M[2]),W(b)&&2*b<M[2]&&b>0&&(M[3]=M[2]-2*b),te(this,"afterGetCenter",{positions:M}),M},Y.getStartAndEndRadians=function(S,T){let E=W(S)?S:0,_=W(T)&&T>E&&T-E<360?T:E+360;return{start:Q*(E+-90),end:Q*(_+-90)}},O}),c(n,"Series/Pie/PiePoint.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],function(l,u,x){let{setAnimation:O}=l,{addEvent:Y,defined:Q,extend:te,isNumber:W,pick:G,relativeLength:K}=x;class S extends u{getConnectorPath(E){let _=E.dataLabelPosition,g=E.options||{},w=g.connectorShape,k=this.connectorShapes[w]||w;return _&&k.call(this,{..._.computed,alignment:_.alignment},_.connectorPosition,g)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(E){let _=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(_.x,_.y,_.r+E,_.r+E,{innerR:_.r-1,start:_.start,end:_.end,borderRadius:_.borderRadius})}constructor(E,_,g){super(E,_,g),this.half=0,this.name??(this.name="Slice");let w=k=>{this.slice(k.type==="select")};Y(this,"select",w),Y(this,"unselect",w)}isValid(){return W(this.y)&&this.y>=0}setVisible(E,_=!0){E!==this.visible&&this.update({visible:E??!this.visible},_,void 0,!1)}slice(E,_,g){let w=this.series;O(g,w.chart),_=G(_,!0),this.sliced=this.options.sliced=E=Q(E)?E:!this.sliced,w.options.data[w.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return te(S.prototype,{connectorShapes:{fixedOffset:function(T,E,_){let g=E.breakAt,w=E.touchingSliceAt,k=_.softConnector?["C",T.x+(T.alignment==="left"?-5:5),T.y,2*g.x-w.x,2*g.y-w.y,g.x,g.y]:["L",g.x,g.y];return[["M",T.x,T.y],k,["L",w.x,w.y]]},straight:function(T,E){let _=E.touchingSliceAt;return[["M",T.x,T.y],["L",_.x,_.y]]},crookedLine:function(T,E,_){let{breakAt:g,touchingSliceAt:w}=E,{series:k}=this,[b,C,m]=k.center,q=m/2,{plotLeft:V,plotWidth:H}=k.chart,M=T.alignment==="left",{x:$,y:P}=T,h=g.x;
267if(_.crookDistance){let L=K(_.crookDistance,1);h=M?b+q+(H+V-b-q)*(1-L):V+(b-q)*L}else h=b+(C-P)*Math.tan((this.angle||0)-Math.PI/2);let f=[["M",$,P]];return(M?h<=$&&h>=g.x:h>=$&&h<=g.x)&&f.push(["L",h,P]),f.push(["L",g.x,g.y],["L",w.x,w.y]),f}}}),S}),c(n,"Series/Pie/PieSeriesDefaults.js",[],function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),c(n,"Series/Pie/PieSeries.js",[n["Series/CenteredUtilities.js"],n["Series/Column/ColumnSeries.js"],n["Core/Globals.js"],n["Series/Pie/PiePoint.js"],n["Series/Pie/PieSeriesDefaults.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Utilities.js"]],function(l,u,x,O,Y,Q,te,W,G){let{getStartAndEndRadians:K}=l,{noop:S}=x,{clamp:T,extend:E,fireEvent:_,merge:g,pick:w}=G;class k extends Q{animate(C){let m=this,q=m.points,V=m.startAngleRad;C||q.forEach(function(H){let M=H.graphic,$=H.shapeArgs;M&&$&&(M.attr({r:w(H.startR,m.center&&m.center[3]/2),start:V,end:V}),M.animate({r:$.r,start:$.start,end:$.end},m.options.animation))})}drawEmpty(){let C,m,q=this.startAngleRad,V=this.endAngleRad,H=this.options;this.total===0&&this.center?(C=this.center[0],m=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(C,m,this.center[1]/2,0,q,V).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:W.arc(C,m,this.center[2]/2,0,{start:q,end:V,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":H.borderWidth,fill:H.fillColor||"none",stroke:H.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let C=this.chart.renderer;this.points.forEach(function(m){m.graphic&&m.hasNewShapeType()&&(m.graphic=m.graphic.destroy()),m.graphic||(m.graphic=C[m.shapeType](m.shapeArgs).add(m.series.group),m.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(C,m,q,V){let H=this.center,M=this.radii?this.radii[q.index]||0:H[2]/2,$=V.dataLabelPosition,P=($==null?void 0:$.distance)||0,h=Math.asin(T((C-H[1])/(M+P),-1,1));return H[0]+Math.cos(h)*(M+P)*(m?-1:1)+(P>0?(m?-1:1)*(V.padding||0):0)}hasData(){return!!this.processedXData.length}redrawPoints(){let C,m,q,V,H=this,M=H.chart;this.drawEmpty(),H.group&&!M.styledMode&&H.group.shadow(H.options.shadow),H.points.forEach(function($){let P={};m=$.graphic,!$.isNull&&m?(V=$.shapeArgs,C=$.getTranslate(),M.styledMode||(q=H.pointAttribs($,$.selected&&"select")),$.delayedRendering?(m.setRadialReference(H.center).attr(V).attr(C),M.styledMode||m.attr(q).attr({"stroke-linejoin":"round"}),$.delayedRendering=!1):(m.setRadialReference(H.center),M.styledMode||g(!0,P,q),g(!0,P,V,C),m.animate(P)),m.attr({visibility:$.visible?"inherit":"hidden"}),m.addClass($.getClassName(),!0)):m&&($.graphic=m.destroy())})}sortByAngle(C,m){C.sort(function(q,V){return q.angle!==void 0&&(V.angle-q.angle)*m})}translate(C){_(this,"translate"),this.generatePoints();let m=this.options,q=m.slicedOffset,V=K(m.startAngle,m.endAngle),H=this.startAngleRad=V.start,M=(this.endAngleRad=V.end)-H,$=this.points,P=m.ignoreHiddenPoint,h=$.length,f,L,v,A,B,R,D,Z=0;for(C||(this.center=C=this.getCenter()),R=0;R<h;R++){D=$[R],f=H+Z*M,D.isValid()&&(!P||D.visible)&&(Z+=D.percentage/100),L=H+Z*M;let X={x:C[0],y:C[1],r:C[2]/2,innerR:C[3]/2,start:Math.round(1e3*f)/1e3,end:Math.round(1e3*L)/1e3};D.shapeType="arc",D.shapeArgs=X,(v=(L+f)/2)>1.5*Math.PI?v-=2*Math.PI:v<-Math.PI/2&&(v+=2*Math.PI),D.slicedTranslation={translateX:Math.round(Math.cos(v)*q),translateY:Math.round(Math.sin(v)*q)},A=Math.cos(v)*C[2]/2,B=Math.sin(v)*C[2]/2,D.tooltipPos=[C[0]+.7*A,C[1]+.7*B],D.half=v<-Math.PI/2||v>Math.PI/2?1:0,D.angle=v}_(this,"afterTranslate")}updateTotals(){let C=this.points,m=C.length,q=this.options.ignoreHiddenPoint,V,H,M=0;for(V=0;V<m;V++)(H=C[V]).isValid()&&(!q||H.visible)&&(M+=H.y);for(V=0,this.total=M;V<m;V++)(H=C[V]).percentage=M>0&&(H.visible||!q)?H.y/M*100:0,H.total=M}}return k.defaultOptions=g(Q.defaultOptions,Y),E(k.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:u.prototype.drawTracker,getCenter:l.getCenter,getSymbol:S,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:u.prototype.pointAttribs,pointClass:O,requireSorting:!1,searchPoint:S,trackerGroups:["group","dataLabelsGroup"]}),te.registerSeriesType("pie",k),k}),c(n,"Series/Pie/PieDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Globals.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u,x,O,Y){var Q;let{composed:te,noop:W}=u,{distribute:G}=x,{series:K}=O,{arrayMax:S,clamp:T,defined:E,pick:_,pushUnique:g,relativeLength:w}=Y;return function(k){let b={radialDistributionY:function(H,M){var $;return((($=M.dataLabelPosition)==null?void 0:$.top)||0)+H.distributeBox.pos},radialDistributionX:function(H,M,$,P,h){let f=h.dataLabelPosition;return H.getX($<((f==null?void 0:f.top)||0)+2||$>((f==null?void 0:f.bottom)||0)-2?P:$,M.half,M,h)},justify:function(H,M,$,P){var h;return P[0]+(H.half?-1:1)*($+(((h=M.dataLabelPosition)==null?void 0:h.distance)||0))},alignToPlotEdges:function(H,M,$,P){let h=H.getBBox().width;return M?h+P:$-h-P},alignToConnectors:function(H,M,$,P){let h=0,f;return H.forEach(function(L){(f=L.dataLabel.getBBox().width)>h&&(h=f)}),M?h+P:$-h-P}};function C(H,M){let{center:$,options:P}=this,h=$[2]/2,f=H.angle||0,L=Math.cos(f),v=Math.sin(f),A=$[0]+L*h,B=$[1]+v*h,R=Math.min((P.slicedOffset||0)+(P.borderWidth||0),M/5);
vendor: 4,688 bytes, line 267
267return{natural:{x:A+L*M,y:B+v*M},computed:{},alignment:M<0?"center":H.half?"right":"left",connectorPosition:{breakAt:{x:A+L*R,y:B+v*R},touchingSliceAt:{x:A,y:B}},distance:M}}function m(){var ue;let H=this,M=H.points,$=H.chart,P=$.plotWidth,h=$.plotHeight,f=$.plotLeft,L=Math.round($.chartWidth/3),v=H.center,A=v[2]/2,B=v[1],R=[[],[]],D=[0,0,0,0],Z=H.dataLabelPositioners,X,ie,oe,le=0;H.visible&&((ue=H.hasDataLabels)!=null&&ue.call(H))&&(M.forEach(F=>{(F.dataLabels||[]).forEach(N=>{N.shortened&&(N.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),N.shortened=!1)})}),K.prototype.drawDataLabels.apply(H),M.forEach(F=>{(F.dataLabels||[]).forEach((N,ee)=>{var U;let ce=v[2]/2,j=N.options,I=w((j==null?void 0:j.distance)||0,ce);ee===0&&R[F.half].push(F),!E((U=j==null?void 0:j.style)==null?void 0:U.width)&&N.getBBox().width>L&&(N.css({width:Math.round(.7*L)+"px"}),N.shortened=!0),N.dataLabelPosition=this.getDataLabelPosition(F,I),le=Math.max(le,I)})}),R.forEach((F,N)=>{let ee=F.length,ce=[],j,I,U=0,J;ee&&(H.sortByAngle(F,N-.5),le>0&&(j=Math.max(0,B-A-le),I=Math.min(B+A+le,$.plotHeight),F.forEach(se=>{(se.dataLabels||[]).forEach(ae=>{var me;let he=ae.dataLabelPosition;he&&he.distance>0&&(he.top=Math.max(0,B-A-he.distance),he.bottom=Math.min(B+A+he.distance,$.plotHeight),U=ae.getBBox().height||21,ae.lineHeight=$.renderer.fontMetrics(ae.text||ae).h+2*ae.padding,se.distributeBox={target:(((me=ae.dataLabelPosition)==null?void 0:me.natural.y)||0)-he.top+ae.lineHeight/2,size:U,rank:se.y},ce.push(se.distributeBox))})}),G(ce,J=I+U-j,J/5)),F.forEach(se=>{(se.dataLabels||[]).forEach(ae=>{let he=ae.options||{},me=se.distributeBox,ve=ae.dataLabelPosition,ke=(ve==null?void 0:ve.natural.y)||0,Pe=he.connectorPadding||0,ge=ae.lineHeight||21,de=(ge-ae.getBBox().height)/2,fe=0,xe=ke,Ee="inherit";if(ve){if(ce&&E(me)&&ve.distance>0&&(me.pos===void 0?Ee="hidden":(oe=me.size,xe=Z.radialDistributionY(se,ae))),he.justify)fe=Z.justify(se,ae,A,v);else switch(he.alignTo){case"connectors":fe=Z.alignToConnectors(F,N,P,f);break;case"plotEdges":fe=Z.alignToPlotEdges(ae,N,P,f);break;default:fe=Z.radialDistributionX(H,se,xe-de,ke,ae)}if(ve.attribs={visibility:Ee,align:ve.alignment},ve.posAttribs={x:fe+(he.x||0)+({left:Pe,right:-Pe}[ve.alignment]||0),y:xe+(he.y||0)-ge/2},ve.computed.x=fe,ve.computed.y=xe-de,_(he.crop,!0)){let Se;fe-(ie=ae.getBBox().width)<Pe&&N===1?(Se=Math.round(ie-fe+Pe),D[3]=Math.max(Se,D[3])):fe+ie>P-Pe&&N===0&&(Se=Math.round(fe+ie-P+Pe),D[1]=Math.max(Se,D[1])),xe-oe/2<0?D[0]=Math.max(Math.round(-xe+oe/2),D[0]):xe+oe/2>h&&(D[2]=Math.max(Math.round(xe+oe/2-h),D[2])),ve.sideOverflow=Se}}})}))}),(S(D)===0||this.verifyDataLabelOverflow(D))&&(this.placeDataLabels(),this.points.forEach(F=>{(F.dataLabels||[]).forEach(N=>{var I;let{connectorColor:ee,connectorWidth:ce=1}=N.options||{},j=N.dataLabelPosition;if(ce){let U;X=N.connector,j&&j.distance>0?(U=!X,X||(N.connector=X=$.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+F.colorIndex+(F.className?" "+F.className:"")).add(H.dataLabelsGroup)),$.styledMode||X.attr({"stroke-width":ce,stroke:ee||F.color||"#666666"}),X[U?"attr":"animate"]({d:F.getConnectorPath(N)}),X.attr({visibility:(I=j.attribs)==null?void 0:I.visibility})):X&&(N.connector=X.destroy())}})})))}function q(){this.points.forEach(H=>{(H.dataLabels||[]).forEach(M=>{var P;let $=M.dataLabelPosition;$?($.sideOverflow&&(M.css({width:Math.max(M.getBBox().width-$.sideOverflow,0)+"px",textOverflow:(((P=M.options)==null?void 0:P.style)||{}).textOverflow||"ellipsis"}),M.shortened=!0),M.attr($.attribs),M[M.moved?"animate":"attr"]($.posAttribs),M.moved=!0):M&&M.attr({y:-9999})}),delete H.distributeBox},this)}function V(H){let M=this.center,$=this.options,P=$.center,h=$.minSize||80,f=h,L=$.size!==null;return!L&&(P[0]!==null?f=Math.max(M[2]-Math.max(H[1],H[3]),h):(f=Math.max(M[2]-H[1]-H[3],h),M[0]+=(H[3]-H[1])/2),P[1]!==null?f=T(f,h,M[2]-Math.max(H[0],H[2])):(f=T(f,h,M[2]-H[0]-H[2]),M[1]+=(H[0]-H[2])/2),f<M[2]?(M[2]=f,M[3]=Math.min($.thickness?Math.max(0,f-2*$.thickness):Math.max(0,w($.innerSize||0,f)),f),this.translate(M),this.drawDataLabels&&this.drawDataLabels()):L=!0),L}k.compose=function(H){if(l.compose(K),g(te,"PieDataLabel")){let M=H.prototype;M.dataLabelPositioners=b,M.alignDataLabel=W,M.drawDataLabels=m,M.getDataLabelPosition=C,M.placeDataLabels=q,M.verifyDataLabelOverflow=V}}}(Q||(Q={})),Q}),c(n,"Core/Geometry/GeometryUtilities.js",[],function(){var l,u;return(u=l||(l={})).getCenterOfPoints=function(x){let O=x.reduce((Y,Q)=>(Y.x+=Q.x,Y.y+=Q.y,Y),{x:0,y:0});return{x:O.x/x.length,y:O.y/x.length}},u.getDistanceBetweenPoints=function(x,O){return Math.sqrt(Math.pow(O.x-x.x,2)+Math.pow(O.y-x.y,2))}
267,u.getAngleBetweenPoints=function(x,O){return Math.atan2(O.x-x.x,O.y-x.y)},u.pointInPolygon=function({x,y:O},Y){let Q=Y.length,te,W,G=!1;for(te=0,W=Q-1;te<Q;W=te++){let[K,S]=Y[te],[T,E]=Y[W];S>O!=E>O&&x<(T-K)*(O-S)/(E-S)+K&&(G=!G)}return G},l}),c(n,"Extensions/OverlappingDataLabels.js",[n["Core/Geometry/GeometryUtilities.js"],n["Core/Utilities.js"]],function(l,u){let{pointInPolygon:x}=l,{addEvent:O,fireEvent:Y,objectEach:Q,pick:te}=u;function W(S){let T=S.length,E=(q,V)=>!(V.x>=q.x+q.width||V.x+V.width<=q.x||V.y>=q.y+q.height||V.y+V.height<=q.y),_=(q,V)=>{for(let H of q)if(x({x:H[0],y:H[1]},V))return!0;return!1},g,w,k,b,C,m=!1;for(let q=0;q<T;q++)(g=S[q])&&(g.oldOpacity=g.opacity,g.newOpacity=1,g.absoluteBox=function(V){var H,M;if(V&&(!V.alignAttr||V.placed)){let $=V.box?0:V.padding||0,P=V.alignAttr||{x:V.attr("x"),y:V.attr("y")},h=V.getBBox();return V.width=h.width,V.height=h.height,{x:P.x+(((H=V.parentGroup)==null?void 0:H.translateX)||0)+$,y:P.y+(((M=V.parentGroup)==null?void 0:M.translateY)||0)+$,width:(V.width||0)-2*$,height:(V.height||0)-2*$,polygon:h==null?void 0:h.polygon}}}(g));S.sort((q,V)=>(V.labelrank||0)-(q.labelrank||0));for(let q=0;q<T;++q){b=(w=S[q])&&w.absoluteBox;let V=b==null?void 0:b.polygon;for(let H=q+1;H<T;++H){C=(k=S[H])&&k.absoluteBox;let M=!1;if(b&&C&&w!==k&&w.newOpacity!==0&&k.newOpacity!==0&&w.visibility!=="hidden"&&k.visibility!=="hidden"){let $=C.polygon;if(V&&$&&V!==$?_(V,$)&&(M=!0):E(b,C)&&(M=!0),M){let P=w.labelrank<k.labelrank?w:k,h=P.text;P.newOpacity=0,h!=null&&h.element.querySelector("textPath")&&h.hide()}}}}for(let q of S)G(q,this)&&(m=!0);m&&Y(this,"afterHideAllOverlappingLabels")}function G(S,T){let E,_,g=!1;return S&&(_=S.newOpacity,S.oldOpacity!==_&&(S.hasClass("highcharts-data-label")?(S[_?"removeClass":"addClass"]("highcharts-data-label-hidden"),E=function(){T.styledMode||S.css({pointerEvents:_?"auto":"none"})},g=!0,S[S.isOld?"animate":"attr"]({opacity:_},void 0,E),Y(T,"afterHideOverlappingLabel")):S.attr({opacity:_})),S.isOld=!0),g}function K(){var E;let S=this,T=[];for(let _ of S.labelCollectors||[])T=T.concat(_());for(let _ of S.yAxis||[])_.stacking&&_.options.stackLabels&&!_.options.stackLabels.allowOverlap&&Q(_.stacking.stacks,g=>{Q(g,w=>{w.label&&T.push(w.label)})});for(let _ of S.series||[])if(_.visible&&((E=_.hasDataLabels)!=null&&E.call(_))){let g=w=>{for(let k of w)k.visible&&(k.dataLabels||[]).forEach(b=>{var m;let C=b.options||{};b.labelrank=te(C.labelrank,k.labelrank,(m=k.shapeArgs)==null?void 0:m.height),C.allowOverlap??Number(C.distance)>0?(b.oldOpacity=b.opacity,b.newOpacity=1,G(b,S)):T.push(b)})};g(_.nodes||[]),g(_.points)}this.hideOverlappingLabels(T)}return{compose:function(S){let T=S.prototype;T.hideOverlappingLabels||(T.hideOverlappingLabels=W,O(S,"render",K))}}}
vendor: 3,998 bytes, line 267
267),c(n,"Extensions/BorderRadius.js",[n["Core/Defaults.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(l,u,x){let{defaultOptions:O}=l,{noop:Y}=u,{addEvent:Q,extend:te,isObject:W,merge:G,relativeLength:K}=x,S={radius:0,scope:"stack",where:void 0},T=Y,E=Y;function _(C,m,q,V,H={}){let M=T(C,m,q,V,H),{innerR:$=0,r:P=q,start:h=0,end:f=0}=H;if(H.open||!H.borderRadius)return M;let L=f-h,v=Math.sin(L/2),A=Math.max(Math.min(K(H.borderRadius||0,P-$),(P-$)/2,P*v/(1+v)),0),B=Math.min(A,L/Math.PI*2*$),R=M.length-1;for(;R--;)(function(D,Z,X){let ie,oe,le,ue=D[Z],F=D[Z+1];if(F[0]==="Z"&&(F=D[0]),(ue[0]==="M"||ue[0]==="L")&&F[0]==="A"?(ie=ue,oe=F,le=!0):ue[0]==="A"&&(F[0]==="M"||F[0]==="L")&&(ie=F,oe=ue),ie&&oe&&oe.params){let N=oe[1],ee=oe[5],ce=oe.params,{start:j,end:I,cx:U,cy:J}=ce,se=ee?N-X:N+X,ae=se?Math.asin(X/se):0,he=ee?ae:-ae,me=Math.cos(ae)*se;le?(ce.start=j+he,ie[1]=U+me*Math.cos(j),ie[2]=J+me*Math.sin(j),D.splice(Z+1,0,["A",X,X,0,0,1,U+N*Math.cos(ce.start),J+N*Math.sin(ce.start)])):(ce.end=I-he,oe[6]=U+N*Math.cos(ce.end),oe[7]=J+N*Math.sin(ce.end),D.splice(Z+1,0,["A",X,X,0,0,1,U+me*Math.cos(I),J+me*Math.sin(I)])),oe[4]=Math.abs(ce.end-ce.start)<Math.PI?0:1}})(M,R,R>1?B:A);return M}function g(){var C,m;if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:q,yAxis:V}=this,H=q.stacking==="percent",M=(m=(C=O.plotOptions)==null?void 0:C[this.type])==null?void 0:m.borderRadius,$=w(q.borderRadius,W(M)?M:{}),P=V.options.reversed;for(let h of this.points){let{shapeArgs:f}=h;if(h.shapeType==="roundedRect"&&f){let{width:L=0,height:v=0,y:A=0}=f,B=A,R=v;if($.scope==="stack"&&h.stackTotal){let ie=V.translate(H?100:h.stackTotal,!1,!0,!1,!0),oe=V.translate(q.threshold||0,!1,!0,!1,!0),le=this.crispCol(0,Math.min(ie,oe),0,Math.abs(ie-oe));B=le.y,R=le.height}let D=(h.negative?-1:1)*(P?-1:1)==-1,Z=$.where;!Z&&this.is("waterfall")&&Math.abs((h.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(Z="all"),Z||(Z="end");let X=Math.min(K($.radius,L),L/2,Z==="all"?v/2:1/0)||0;Z==="end"&&(D&&(B-=X),R+=X),te(f,{brBoxHeight:R,brBoxY:B,r:X})}}}}function w(C,m){return W(C)||(C={radius:C||0}),G(S,m,C)}function k(){let C=w(this.options.borderRadius);for(let m of this.points){let q=m.shapeArgs;q&&(q.borderRadius=K(C.radius,(q.r||0)-(q.innerR||0)))}}function b(C,m,q,V,H={}){let M=E(C,m,q,V,H),{r:$=0,brBoxHeight:P=V,brBoxY:h=m}=H,f=m-h,L=h+P-(m+V),v=f-$>-.1?0:$,A=L-$>-.1?0:$,B=Math.max(v&&f,0),R=Math.max(A&&L,0),D=[C+v,m],Z=[C+q-v,m],X=[C+q,m+v],ie=[C+q,m+V-A],oe=[C+q-A,m+V],le=[C+A,m+V],ue=[C,m+V-A],F=[C,m+v],N=(ee,ce)=>Math.sqrt(Math.pow(ee,2)-Math.pow(ce,2));if(B){let ee=N(v,v-B);D[0]-=ee,Z[0]+=ee,X[1]=F[1]=m+v-B}if(V<v-B){let ee=N(v,v-B-V);X[0]=ie[0]=C+q-v+ee,oe[0]=Math.min(X[0],oe[0]),le[0]=Math.max(ie[0],le[0]),ue[0]=F[0]=C+v-ee,X[1]=F[1]=m+V}if(R){let ee=N(A,A-R);oe[0]+=ee,le[0]-=ee,ie[1]=ue[1]=m+V-A+R}if(V<A-R){let ee=N(A,A-R-V);X[0]=ie[0]=C+q-A+ee,Z[0]=Math.min(X[0],Z[0]),D[0]=Math.max(ie[0],D[0]),ue[0]=F[0]=C+A-ee,ie[1]=ue[1]=m}return M.length=0,M.push(["M",...D],["L",...Z],["A",v,v,0,0,1,...X],["L",...ie],["A",A,A,0,0,1,...oe],["L",...le],["A",A,A,0,0,1,...ue],["L",...F],["A",v,v,0,0,1,...D],["Z"]),M}return{compose:function(C,m,q){let V=C.types.pie;if(!m.symbolCustomAttribs.includes("borderRadius")){let H=q.prototype.symbols;Q(C,"afterColumnTranslate",g,{order:9}),Q(V,"afterTranslate",k),m.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY"),T=H.arc,E=H.roundedRect,H.arc=_,H.roundedRect=b}},optionsToObject:w}}),c(n,"Core/Responsive.js",[n["Core/Utilities.js"]],function(l){var u;let{diffObjects:x,extend:O,find:Y,merge:Q,pick:te,uniqueKey:W}=l;return function(G){function K(T,E){let _=T.condition;(_.callback||function(){return this.chartWidth<=te(_.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=te(_.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=te(_.minWidth,0)&&this.chartHeight>=te(_.minHeight,0)}).call(this)&&E.push(T._id)}function S(T,E){let _=this.options.responsive,g=this.currentResponsive,w=[],k;
267!E&&_&&_.rules&&_.rules.forEach(m=>{m._id===void 0&&(m._id=W()),this.matchResponsiveRule(m,w)},this);let b=Q(...w.map(m=>Y((_||{}).rules||[],q=>q._id===m)).map(m=>m&&m.chartOptions));b.isResponsiveOptions=!0,w=w.toString()||void 0;let C=g&&g.ruleIds;w===C||(g&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(g.undoOptions,T,!0),this.updatingResponsive=!1),w?((k=x(b,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:w,mergedOptions:b,undoOptions:k},this.updatingResponsive||this.update(b,T,!0)):this.currentResponsive=void 0)}G.compose=function(T){let E=T.prototype;return E.matchResponsiveRule||O(E,{matchResponsiveRule:K,setResponsive:S}),T}}(u||(u={})),u}),c(n,"masters/highcharts.src.js",[n["Core/Globals.js"],n["Core/Utilities.js"],n["Core/Defaults.js"],n["Core/Animation/Fx.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/Templating.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Renderer/HTML/HTMLElement.js"],n["Core/Axis/Axis.js"],n["Core/Axis/DateTimeAxis.js"],n["Core/Axis/LogarithmicAxis.js"],n["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],n["Core/Axis/Tick.js"],n["Core/Tooltip.js"],n["Core/Series/Point.js"],n["Core/Pointer.js"],n["Core/Legend/Legend.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Chart/Chart.js"],n["Extensions/ScrollablePlotArea.js"],n["Core/Axis/Stacking/StackingAxis.js"],n["Core/Axis/Stacking/StackItem.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Series/Column/ColumnDataLabel.js"],n["Series/Pie/PieDataLabel.js"],n["Core/Series/DataLabel.js"],n["Extensions/OverlappingDataLabels.js"],n["Extensions/
267BorderRadius.js"],n["Core/Responsive.js"],n["Core/Color/Color.js"],n["Core/Time.js"]],function(l,u,x,O,Y,Q,te,W,G,K,S,T,E,_,g,w,k,b,C,m,q,V,H,M,$,P,h,f,L,v,A,B,R,D,Z,X){return l.AST=Q,l.Axis=E,l.Chart=H,l.Color=Z,l.DataLabel=A,l.Fx=O,l.HTMLElement=T,l.Legend=q,l.LegendSymbol=V,l.OverlappingDataLabels=l.OverlappingDataLabels||B,l.PlotLineOrBand=w,l.Point=C,l.Pointer=m,l.RendererRegistry=W,l.Series=h,l.SeriesRegistry=f,l.StackItem=P,l.SVGElement=K,l.SVGRenderer=S,l.Templating=te,l.Tick=k,l.Time=X,l.Tooltip=b,l.animate=Y.animate,l.animObject=Y.animObject,l.chart=H.chart,l.color=Z.parse,l.dateFormat=te.dateFormat,l.defaultOptions=x.defaultOptions,l.distribute=G.distribute,l.format=te.format,l.getDeferredAnimation=Y.getDeferredAnimation,l.getOptions=x.getOptions,l.numberFormat=te.numberFormat,l.seriesType=f.seriesType,l.setAnimation=Y.setAnimation,l.setOptions=x.setOptions,l.stop=Y.stop,l.time=x.defaultTime,l.timers=O.timers,R.compose(l.Series,l.SVGElement,l.SVGRenderer),L.compose(l.Series.types.column),A.compose(l.Series),_.compose(l.Axis),T.compose(l.SVGRenderer),q.compose(l.Chart),g.compose(l.Axis),B.compose(l.Chart),v.compose(l.Series.types.pie),w.compose(l.Axis),m.compose(l.Chart),D.compose(l.Chart),M.compose(l.Axis,l.Chart,l.Series),$.compose(l.Axis,l.Chart,l.Series),b.compose(l.Pointer),u.extend(l,u),l}),n["masters/highcharts.src.js"]._modules=n,n["masters/highcharts.src.js"]})}(Cp)),Cp.exports}var x3=y3();const bt=li(x3);var kp={exports:{}},v3=kp.exports,Xx;function b3(){return Xx||(Xx=1,function(r,s){(function(n,c){r.exports=c(Bp())})(typeof self<"u"?self:v3,function(n){return function(c){function l(x){if(u[x])return u[x].exports;var O=u[x]={i:x,l:!1,exports:{}};return c[x].call(O.exports,O,O.exports,l),O.l=!0,O.exports}var u={};return l.m=c,l.c=u,l.d=function(x,O,Y){l.o(x,O)||Object.defineProperty(x,O,{configurable:!1,enumerable:!0,get:Y})},l.n=function(x){var O=x&&x.__esModule?function(){return x.default}:function(){return x};return l.d(O,"a",O),O},l.o=function(x,O){return Object.prototype.hasOwnProperty.call(x,O)},l.p="",l(l.s=0)}([function(c,l,u){function x(){return x=Object.assign?Object.assign.bind():function(g){for(var w=1;w<arguments.length;w++){var k=arguments[w];for(var b in k)Object.prototype.hasOwnProperty.call(k,b)&&(g[b]=k[b])}return g},x.apply(this,arguments)}function O(g){return W(g)||te(g)||Q(g)||Y()}function Y(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
268In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(g,w){if(g){if(typeof g=="string")return G(g,w);var k=Object.prototype.toString.call(g).slice(8,-1);return k==="Object"&&g.constructor&&(k=g.constructor.name),k==="Map"||k==="Set"?Array.from(g):k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k)?G(g,w):void 0}}function te(g){if(typeof Symbol<"u"&&g[Symbol.iterator]!=null||g["@@iterator"]!=null)return Array.from(g)}function W(g){if(Array.isArray(g))return G(g)}function G(g,w){(w==null||w>g.length)&&(w=g.length);for(var k=0,b=new Array(w);k<w;k++)b[k]=g[k];return b}function K(g){"@babel/helpers - typeof";return(K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(g)}Object.defineProperty(l,"__esModule",{value:!0}),u.d(l,"HighchartsReact",function(){return _});var S=u(1),T=u.n(S),E=typeof window<"u"?S.useLayoutEffect:S.useEffect,_=Object(S.memo)(Object(S.forwardRef)(function(g,w){var k=Object(S.useRef)(),b=Object(S.useRef)(),C=Object(S.useRef)(g.constructorType),m=Object(S.useRef)(g.highcharts);return E(function(){function q(){var H=g.highcharts||(typeof window>"u"?"undefined":K(window))==="object"&&window.Highcharts,M=g.constructorType||"chart";H?H[M]?g.options?b.current=H[M](k.current,g.options,g.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(b.current){if(g.allowChartUpdate!==!1)if(g.constructorType!==C.current||g.highcharts!==m.current)C.current=g.constructorType,m.current=g.highcharts,q();else if(!g.immutable&&b.current){var V;(V=b.current).update.apply(V,[g.options].concat(O(g.updateArgs||[!0,!0])))}else q()}else q()},[g.options,g.allowChartUpdate,g.updateArgs,g.containerProps,g.highcharts,g.constructorType]),E(function(){return function(){b.current&&(b.current.destroy(),b.current=null)}},[]),Object(S.useImperativeHandle)(w,function(){return{get chart(){return b.current},container:k}},[]),T.a.createElement("div",x({},g.containerProps,{ref:k}))}));l.default=_},function(c,l){c.exports=n}])})}(kp)),kp.exports}var S3=b3();const Ai=li(S3),w3={categories:{name:"Years",data:[2023,2024,2025,2026,2027,2028,2029,2030]},series:[{data:[0,0,0,0,0,0,0,0],name:"LFP"},{data:[0,0,0,0,0,0,0,0],name:"NCA"},{data:[0,0,0,0,0,0,0,0],name:"NMC"}]},C3={categories:{data:[2023,2024,2025,2026,2027,2028,2029,2030],name:"Years"},series:[{data:[43.6,45.52,64.45,107.88,160.97,220.55,273.26,344.46],name:"LFP"},{data:[43.33,56.84,80.46,86.73,107.2,106.72,119.1,100.21],name:"NCA"},{data:[72.4,94.19,158.41,228.4,281.93,357.88,426.81,499.81],name:"NMC"}]},Gx={categories:{data:["Cobalt","Mangenese","Nickel","Lithium","Graphite Concentrate","Cobalt sulfate","Mangenese sulfate","Nickel sulfate","Lithium salt","Battery grade graphite","Cathode Active Material","Cathode","Anode","
268Electrolyte solid LiPF6","Electrolyte solvent (EC)","Cells"]},series:[{data:[84.78,27.74,0,0,89.67,0,0,94.18,19.08,83.35,32.73,33.86,84.19,85,64.51,0],name:"Supply Gap"},{data:[15.22,72.26,100,100,10.33,100,100,5.82,80.92,16.65,67.27,66.14,15.81,15,35.49,100],name:"Existing and Announced Manufacturing Capacity"}]},$g={categories:{data:[2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040],name:"Years"},series:[{data:[.4,.9,2.7,3,3.6,5.9,7.5,16.6,16.9,18.5,35.28,71.28,157.41,196,309.25,433.68,560.82,700.09],name:"US EOL Battery Recycling Volume (GWh)"}]},Vx={categories:{data:["2023","2024","2025","2026","2027","2028","2029","2030","2031","2032","2033","2034","2035","2036","2037","2038","2039","2040"]},series:[{data:[.28,.5,.98,.75,.68,.87,.92,1.75,1.63,1.65,2.95,5.61,11.69,13.9,20.95,28.15,35.28,42.56],name:"Lithium Carbonate Equivalent (%)"},{data:[.44,.7,1.31,1.06,1,1.33,1.44,2.88,2.73,2.84,4.08,7.51,13.9,18.05,27.76,35.55,42.74,49.69],name:"Nickel (%)"},{data:[.57,.92,1.77,1.49,1.42,1.93,2.11,4.33,4.18,4.33,6.38,11.94,20.27,24.34,36.07,42.46,49.52,53.24],name:"Cobalt (%)"}]},Wg={categories:{data:[2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040],name:"Years"},series:[{data:[505156569e-2,1136602279e-2,3409806838e-2,3788674265e-2,4546409118e-2,7451059387e-2,9471685662e-2,20963997599e-2,21342865025e-2,233634913,404404344,802026504,16638043815e-1,2133879734,338273195545e-2,459909267641e-2,580541679936e-2,708930845781e-2],name:"Recycling process emissions (Mt CO2) "},{data:[1643612847e-2,3698128906e-2,11094386719e-2,12327096354e-2,14792515625e-2,24243289497e-2,30817740886e-2,68209933161e-2,69442642796e-2,76017094185e-2,130845779495e-2,262970429762e-2,553783244064e-2,699772714567e-2,1100216608358e-2,1504642386687e-2,1921756161259e-2,2358019252876e-2],name:"Avoided emissions (Mt CO2) "},{data:[1138456279e-2,2561526627e-2,7684579881e-2,853842209e-1,10246106507e-2,1679223011e-1,21346055224e-2,47245935562e-2,48099777771e-2,52653602886e-2,90405345095e-2,182767779362e-2,387402805914e-2,486384741167e-2,761943412812e-2,1044733119046e-2,1341214481322e-2,1649088407094e-2],name:"Net avoided emissions (Mt CO2) "}]},qx={categories:{data:[2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040]},series:[{data:[883853665e-2,1988670747e-2,596601224e-1,6628902489e-2,7954682987e-2,13036841563e-2,16572256224e-2,36679927108e-2,37342817357e-2,40878232018e-2,79382662319e-2,161525093611e-2,356503618135e-2,436645492387e-2,684520391708e-2,957423720235e-2,1241998487727e-2,1547189117792e-2],name:"Lithium Carbonate "},{data:[552155661e-2,1242350237e-2,372705071e-1,4141167456e-2,4969400947e-2,8144295996e-2,10352918639e-2,22914459921e-2,23328576667e-2,2553719931e-1,38853027421e-2,76036311424e-2,149411314898e-2,200058671974e-2,318415439143e-2,422471134557e-2,523661932845e-2,628162234495e-2],name:"Nickel"},{data:[343411571e-2,772676035e-2,2318028106e-2,2575586785e-2,3090704142e-2,5065320676e-2,6438966961e-2,14251580208e-2,14509138887e-2,15882785172e-2,24567868831e-2,48932766047e-2,88113668579e-2,109155571916e-2,167330761987e-2,204069894246e-2,24527993763e-1,272097371413e-2],name:"Cobalt"},{data:[74971.41,168685.68,506057.05,562285.61,674742.73,110582837e-2,140571403e-2,311131372e-2,316754228e-2,346742794e-2,1068621642e-2,2054588742e-2,3892757648e-2,4362752743e-2,6913474687e-2,8595129464e-2,9900086551e-2,10989965783e-2],name:"Manganese"},{data:[90601.26,203852.84,611558.52,679509.46,815411.35,133636861e-2,169877366e-2,375995236e-2,38279033e-1,419030835e-2,779856635e-2,156704275e-1,3405844281e-2,4274218635e-2,6755038302e-2,9399751242e-2,12078513687e-2,14997990496e-2],name:"Graphite"},{data:[343188.8,772174.79,231652437e-2,257391597e-2,308869916e-2,506203474e-2,643478992e-2,1424233503e-2,1449972662e-2,1587248181e-2,2774442592e-2,593347764e-1,13664165678e-2,16224871685e-2,24705010704e-2,35226259145e-2,47546832947e-2,60084113402e-2],name:"Aluminum"},{data:[987980.21,222295547e-2,66688664e-1,740985156e-2,889182187e-2,1457270806e-2,1852462889e-2,4100117861e-2,4174216376e-2,4569408459e-2,9055867122e-2,18403564805e-2,41481304156e-2,51183837982e-2,80669633159e-2,114265194468e-2,148822957039e-2,187020712364e-2],name:"Copper"},{data:[10749.95,24187.39,72562.17,80624.63,96749.55,158561.77,201561.57,446122.95,454185.41,497185.21,150142558e-2,282023718e-2,646571422e-2,837195765e-2,1397723836e-2,2009345862e-2,2506226106e-2,3172995137e-2],name:"Steel"}]},pp={categories:{data:["Circularity index","Loss due to collection inefficiency ","Loss due to inadequate recycling capacity","Loss due to process inefficiency"]},series:[{data:[.75,.01,.05,.19],name:"Circularity index for Lithium"},{data:[.89,.01,.05,.05],name:"Circularity index for Nickel"},{data:[.89,.01,.05,.05],name:"Circularity index for Cobalt"}]};function ci(r){const{content:s,className:n}=r;return y.jsx("p",{className:Xt(`text-center text-sm italic text-gray-400 ${n}`),children:s})}function k3(r){const{title:s,data:n,caption:c=void 0,clear:l=!0,showData:u=!1,clearChart:x=!1}=r;let O;x?O=w3:n===void 0?O=C3:O=n;let Y={chart:{type:"column"},title:{text:s},colors:["#81EEEF","#3D8E33","#14496D"],xAxis:{title:{text:"Years"},tickInterval:1,categories:O.categories.data},yAxis:{title:{text:"Battery Demand (GWh)"},minRange:1e3,min:0},tooltip:{headerFormat:"<b>{point.x}</b><br/>",pointFormat:"{series.name}: {point.y:.2f}"},plotOptions:{column:{stacking:"normal",dataLabels:{enabled:!1}}},series:O.series};return y.jsxs(y.Fragment,{children:[y.jsx(Ai,{highcharts:bt,options:Y}),c&&y.jsx(ci,{className:"pb-8",content:c}),u&&y.jsx(Sn,{title:"Data for Exhibit One",response:n,clear:l})]})}function P3(r){const{title:s,data:n,clear:c=!0,caption:l=void 0,showData:u=!1}=r;function x(Y){let Q=[];return Y.forEach((te,W)=>{let G={name:te.name,data:te.data,legendIndex:W};W===0&&(G.legendIndex=2),W===2&&(G.legendIndex=0),Q[W]=G}),Q}const O={chart:{type:"column",spacing:[10,10,15,10],height:600},title:{text:s},colors:["#81EEEF","#3D8E33","#14496D"],xAxis:{tickInterval:1,categories:n!==void 0?n.categories.data:Gx.categories.data,labels:{rotation:270},plotBands:[{color:"#fff",from:0,to:4.5,label:{x:0,textAlign:"center",y:-10,rotation:0,text:"Upstream"}},{color:"#fff",from:4.5,to:21.5,label:{x:0,textAlign:"center",y:-10,rotation:0,text:"Midstream"}},{color:"#fff",from:21.5,to:22.5,label:{x:0,textAlign:"right",y:-10,rotation:0,text:"Downstream"}}],plotLines:[{color:"#14496D",width:4,value:4.5,zIndex:1},{color:"#14496D",width:4,value:21.5,zIndex:1}]},yAxis:{title:{text:"Battery Demand (%)"},gridLineColor:"#fff",minRange:100,min:0},tooltip:{headerFormat:"<b>{point.x}</b><br/>",pointFormat:"{series.name}: {point.y:.1f} %"},plotOptions:{column:{stacking:"percent",dataLabels:{enabled:!1}}},legend:{align:"center",x:0,verticalAlign:"top",y:0,margin:30,backgroundColor:bt.defaultOptions.legend.backgroundColor||"white",shadow:!1,style:{marginBottom:"10px"}},series:x(n===void 0?Gx.series:n.series)};return y.jsxs(y.Fragment,{children:[y.jsx(Ai,{highcharts:bt,options:O}),l&&y.jsx(ci,{className:"pb-8",content:l}),u&&y.jsx(Sn,{title:"Data for Exhibit Two",response:n,clear:c}
268)]})}function E3(r){const{title:s,data:n,clear:c=!0,caption:l=void 0,showData:u=!1}=r,x={chart:{type:"column",spacing:[10,10,15,10],height:600},title:{text:s},colors:["#003A62"],xAxis:{title:n?n.categories.name:$g.categories.name,tickInterval:1,categories:n?n.categories.data:$g.categories.data,labels:{}},yAxis:{title:{text:"GWh"},minRange:600,min:0},tooltip:{headerFormat:"<b>{point.x}</b><br/>",pointFormat:"{point.y:.1f} GWh"},plotOptions:{column:{maxPointWidth:10,dataLabels:{enabled:!1}}},legend:{align:"center",x:0,verticalAlign:"top",y:0,margin:30,backgroundColor:bt.defaultOptions.legend.backgroundColor||"white",shadow:!1,style:{marginBottom:"10px"}},series:n!==void 0?n.series:$g.series};return y.jsxs(y.Fragment,{children:[y.jsx(Ai,{highcharts:bt,options:x}),l&&y.jsx(ci,{className:"pb-8",content:l}),u&&y.jsx(Sn,{title:"Data for Exhibit Three",response:n,clear:c})]})}function M3(r){return r.toLowerCase().split(" ").map(function(s){return s.charAt(0).toUpperCase()+s.slice(1)}).join(" ")}function T3(r){const{title:s,data:n,clear:c=!0,caption:l=void 0,showData:u=!1}=r,x={chart:{type:"column"},title:{text:M3(s)},colors:["#52CECB","#14486C","#14CB70"],xAxis:{categories:n?n.categories.data:Vx.categories.data},yAxis:{title:{text:""},labels:{format:"{value}%"},minRange:.2,min:0},tooltip:{headerFormat:"<b>{point.x}</b><br/>",pointFormatter:function(){let O=this.y.toFixed(2);return this.series.name.split(" ")[0]+": "+O+"%"}},legend:{align:"center",x:0,verticalAlign:"top",y:0,margin:30,backgroundColor:bt.defaultOptions.legend.backgroundColor||"white",shadow:!1,style:{marginBottom:"10px"}},series:n===void 0?Vx.series:n.series};return y.jsxs(y.Fragment,{children:[y.jsx(Ai,{highcharts:bt,options:x}),l&&y.jsx(ci,{className:"pb-8",content:l}),u&&y.jsx(Sn,{title:"Data for Exhibit Four",response:n,clear:c})]})}function A3(r){const{title:s,data:n,clear:c=!0,caption:l=void 0,showData:u=!1}=r;function x(Y){let Q=[];return Y.forEach((te,W)=>{let G={name:te.name,data:[]};te.data.forEach(function(K,S){te.name==="Avoided emissions (Mt CO2) "?(G.data[S]=K*-1e-9,G.type="column"):te.name==="Net avoided emissions (Mt CO2) "?(G.data[S]=K*-1e-9,G.type="area"):(G.data[S]=K*1e-9,G.type="column")}),Q[W]=G}),Q}const O={chart:{type:"column"},title:{text:s},colors:["#52CECB","#14486C","#14CB70"],xAxis:{title:{text:n?n.categories.name:Wg.categories.name},categories:n!==void 0?n.categories.data:Wg.categories.data},yAxis:{title:{text:"Mt CO<sub>2</sub>eq",useHTML:!0},labels:{format:"{value}"},minRange:2},plotOptions:{area:{fillColor:"rgba(150,200,25,0.5)",fillOpacity:"0.3"},series:{},column:{stacking:!0,dataLabels:{enabled:!0,format:"{point.y:.1f}"},maxPointWidth:"100"}},tooltip:{headerFormat:"<b>{point.x}</b><br/>",pointFormatter:function(){let Y=this.y.toFixed(2);return this.series.name.split("(")[0]+": "+Y+" Mt CO<sub>2</sub>eq"},useHTML:!0},legend:{align:"center",x:0,verticalAlign:"top",y:0,margin:30,backgroundColor:bt.defaultOptions.legend.backgroundColor||"white",shadow:!1,style:{marginBottom:"10px"},useHTML:!0,labelFormatter:function(){return this.name.split("(")[0]+" (Mt CO<sub>2</sub>eq)"}},series:x(n===void 0?Wg.series:n.series)};return y.jsxs(y.Fragment,{children:[y.jsx(Ai,{highcharts:bt,options:O}),l&&y.jsx(ci,{className:"pb-8",content:l}),u&&y.jsx(Sn,{title:"Data for Exhibit Five",response:n,clear:c})]})}bt.setOptions({lang:{thousandsSep:","}});function L3(r){const{title:s,data:n,clear:c=!0,caption:l=void 0,showData:u=!1}=r,x={chart:{type:"area"},title:{text:s},colors:["#00233B","#228482","#FF3B20","#F7E545","#828AA3","#00CC66","#003A62","#45CFCC"],xAxis:{categories:n!==void 0?n.categories.data:qx.categories.data},yAxis:{title:{text:"Value in $B"},labels:{formatter:function(){return bt.numberFormat(this.value/1e9,0)}},minRange:100,min:0},plotOptions:{area:{stacking:!0,fillOpacity:"1",marker:{enabled:!1}}},tooltip:{headerFormat:"<b>{point.x}</b><br/>",pointFormatter:function(){let O=this.y.toFixed(2);return this.series.name.split("(")[0]+": $"+bt.numberFormat(O/1e9,2)+" Billion "}},legend:{align:"center",x:0,verticalAlign:"top",y:0,margin:30,backgroundColor:bt.defaultOptions.legend.backgroundColor||"white",shadow:!1,style:{marginBottom:"10px"}},series:n===void 0?qx.series:n.series};return y.jsxs(y.Fragment,{children:[y.jsx(Ai,{highcharts:bt,options:x}),l&&y.jsx(ci,{className:"pb-8",content:l}),u&&y.jsx(Sn,{title:"Data for Exhibit Six",response:n,clear:c}
268)]})}bt.setOptions({lang:{thousandsSep:","}});function Ug(r){const{title:s,data:n,colors:c,seriesIndex:l=0,clear:u=!0,showData:x=!1,showLegend:O=!1,hideLabels:Y=!1,className:Q=""}=r;function te(G){let K=[];return K.push(G.name.split(" ").pop()),K.push("Gap"),K}const W={chart:{type:"pie",height:"100%"},title:{text:s||(n===void 0?pp.series[l].name:n.series[l].name)},tooltip:{headerFormat:"<b>{point.x}</b><br/>"},legend:{enabled:!0,align:"center",x:0,verticalAlign:"top",y:0,margin:30,backgroundColor:bt.defaultOptions.legend.backgroundColor||"white",shadow:!1,style:{marginBottom:"10px"},squareSymbol:!0,labelFormatter:function(){return"<b>"+te(n===void 0?pp.series[l]:n.series[l])[this.index]+"</b>"}},plotOptions:{pie:{borderWidth:3,colorByPoint:!0,type:"pie",dataLabels:{style:{fontWeight:"bold",fontSize:"14px",textOverflow:"clip"}}}},series:[{type:"pie",center:["50%","50%"],colors:c||["#45CECE","#D9D9D9","#D9D9D9","#D9D9D9"],data:n===void 0?pp.series[l].data:n.series[l].data,name:n===void 0?pp.categories.data:n.categories.data,size:"100%",innerSize:"70%",dataLabels:{enabled:!0,distance:"-10%",formatter:function(){let G=this.series.name[this.point.index],K=bt.numberFormat(this.point.y*100,0);return Y?K+"%":"<b>"+G+"</b></br>"+K+"%"}},tooltip:{pointFormatter:function(){this.x;let G=bt.numberFormat(this.y*100,2);return this.series.name[this.x]+": "+G+"%"}},showInLegend:O}]};return y.jsxs("div",{className:Q,children:[y.jsx(Ai,{highcharts:bt,options:W}),x&&y.jsx(Sn,{title:"Data for Exhibit Four",response:n,clear:u})]})}du.propTypes={color:Nt.string.isRequired,label:Nt.string.isRequired,className:Nt.string};function du(r){const{color:s,label:n,className:c}=r;return y.jsxs("div",{className:`label mr-3 flex items-center ${c}`,children:[y.jsx("div",{className:"icon mr-1 h-3 w-3 rounded-full",style:{backgroundColor:s}}),y.jsx("span",{children:n})]})}bt.setOptions({lang:{thousandsSep:","}});function R3(r){const{title:s,data:n,colors:c,seriesIndex:l=0,clear:u=!0,showData:x=!1,showLegend:O=!1,hideLabels:Y=!1,caption:Q=void 0}=r;return y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"text-center",children:y.jsx("p",{className:"text-xl font-bold",children:s})}),y.jsxs("div",{className:"flex flex-col justify-items-center",children:[y.jsxs("div",{className:"legend mb-4 flex items-center justify-center _py-2 text-sm",children:[y.jsx(du,{color:"#52CECB",label:"Lithium"}),y.jsx(du,{color:"#14486C",label:"Nickel"}),y.jsx(du,{color:"#14CB70",label:"Cobalt"}),y.jsx(du,{color:"#D9D9D9",label:"Gap"}),y.jsx(du,{color:"#D9D9D9",label:"Gap",className:"hidden"})]}),y.jsxs("div",{className:"grid grid-cols-12",children:[y.jsx(Ug,{title:" ",className:"col-span-4",data:n,clear:u,seriesIndex:0,hideLabels:Y,colors:["#52CECB","#D9D9D9","#D9D9D9","#D9D9D9"]}),y.jsx(Ug,{title:" ",className:"col-span-4",data:n,clear:u,seriesIndex:1,hideLabels:Y,colors:["#14486C","#D9D9D9","#D9D9D9","#D9D9D9"]}),y.jsx(Ug,{title:" ",className:"col-span-4",data:n,clear:u,seriesIndex:2,hideLabels:Y,colors:["#14CB70","#D9D9D9","#D9D9D9","#D9D9D9"]})]})]}),Q&&y.jsx(ci,{className:"pb-8",content:Q}),x&&y.jsx(Sn,{title:"Data for Exhibit Seven",response:n,clear:u})]})}bt.setOptions({lang:{thousandsSep:","}});function bn({title:r="",data:s,classNameLabel:n=""}){return y.jsx(vu,{className:"py-2 bg-gray-100 text-black mb-2",children:y.jsxs(yu,{children:[y.jsx(xu,{className:`px-4 font-bold ${n}`,children:r}),y.jsxs(La,{className:"px-4 py-2",children:[y.jsxs("div",{className:"pl-4 font-bold",children:["Categories ",s.series&&y.jsxs("span",{className:"font-normal",children:[" - (",s.series.length,")"]})]}),s.categories&&y.jsx(vu,{className:"whitespace-pre-wrap text-wrap text-black pl-12",children:y.jsxs(yu,{children:[y.jsxs(xu,{children:[s.categories.name," - (",s.categories.data.length,")"]}),y.jsx(La,{children:JSON.stringify(s.categories.data,null,2)})]})}),!s.series&&y.jsx("p",{className:"pl-12",children:"No Data"})]}),y.jsxs(La,{className:"min-h-[100px] px-4",children:[y.jsxs("div",{className:"pl-4 font-bold",children:["Series ",s.series&&y.jsxs("span",{className:"font-normal",children:[" - (",s.series.length,")"]})]}),s.series&&y.jsx("div",{className:"whitespace-pre-wrap text-wrap text-black",children:s.series.map((c,l)=>y.jsx(vu,{className:"whitespace-pre-wrap text-wrap text-black pl-12",children:y.jsxs(yu,{children:[y.jsxs(xu,{children:[c.name," - (",c.data.length,")"]}),y.jsx(La,{children:JSON.stringify(c.data,null,2)})]})},l))}),!s.series&&y.jsx("p",{className:"pl-12",children:"No Data"})]}),y.jsxs(La,{className:"min-h-[100px] px-4",children:[y.jsx("div",{className:"pl-4 font-bold",children:"Stats"}),s.stats&&y.jsx("div",{className:" pl-12 font-normal",children:y.jsx("ul",{children:Object.entries(s.stats.data).map(([c,l])=>y.jsxs("li",{className:"grid grid-cols-12",children:[y.jsxs("span",{className:"col-span-8",children:[c,":"]})," ",y.jsx("span",{className:"col-span-4 text-right pr-16",children:l})]},c))})}),!s.stats&&y.jsx("p",{className:"pl-12",children:"No Data"})]})]})})}const Kx="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20viewBox='0%200%20457.2%20457.2'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20%23fff;%20stroke-width:%200px;%20}%20%3c/style%3e%3c/defs%3e%3cpath%20class='cls-1'%20d='M212.6,349.4c4.4,4.4,10.4,6.8,16.1,6.8s11.7-2.2,16.1-6.8l145.7-145.7c9-9,9-23.4,0-32.4s-23.4-9-32.4,0l-106.5,106.6V22.9c0-12.7-10.2-22.9-22.9-22.9s-22.9,10.2-22.9,22.9v255l-106.6-106.6c-9-9-23.4-9-32.4,0s-9,23.4,0,32.4l145.8,145.7h0Z'/%3e%3cpath%20class='cls-1'%20d='M373.7,457.2H83.5c-13.3,0-24-10.7-24-24s10.7-24,24-24h290.2c13.3,0,24,10.7,24,24s-10.7,24-24,24Z'/%3e%3c/svg%3e";function jb({title:r="Download User Guide",link:s="/battery-recycling-economy-user-guide.pdf",fileName:n="battery-recycling-economy-user-guide.pdf",useLocalFile:c=!1}){return c?y.jsxs(ws,{className:"text-lowercase",variant:"contained",sx:{textTransform:"none",backgroundColor:"#003B63","&:hover":{backgroundColor:"#002A4A"}},onClick:()=>{const l=document.createElement("a");l.href=l,l.download=n,document.body.appendChild(l),l.click(),document.body.removeChild(l)},children:[y.jsx("span",{className:"font-bold",children:r}),y.jsx("img",{className:"text-white ml-2 w-3",src:Kx,alt:""})]}):y.jsxs(ws,{className:"text-lowercase",variant:"contained",sx:{textTransform:"none",backgroundColor:"#003B63","&:hover":{backgroundColor:"#002A4A"}},onClick:()=>{window.open(s,"_blank")},children:[y.jsx("span",{className:"font-bold",children:r}),y.jsx("img",{className:"text-white ml-2 w-3",src:Kx,alt:""})]})}const Zx="https://rmi.org/wp-content/uploads/2023/11/material-flows-diagram.png",j3="https://rmi.org/wp-content/uploads/2023/11/material-flows-diagram-mobile.png";function N3({isDev:r=!1}){const[s,n]=Me.useState(!1),[c,l]=Me.useState(!1),[u,x]=Me.useState(!1),[O,Y]=Me.useState(!1),[Q,te]=Me.useState("idle");return bt.setOptions({credits:{enabled:!1}}),y.jsx("div",{className:"relative  bg-white",children:y.jsx("div",{className:"container m-auto",children:y.jsxs("div",{children:[y.jsxs("section",{className:"p-4 pt-16",children:[y.jsx("h1",{className:"pb-4 text-3xl font-bold",children:"The Battery Supply Chain - United States"}),y.jsxs("div",{className:"w-full",children:[y.jsx("p",{children:"Electric vehicle adoption in the United States continues to accelerate, thanks to legislation like the Inflation Reduction Act (IRA), decreased range anxiety among consumers, a growing number of vehicle options, corporate EV commitments, and other factors."}),y.jsx("p",{children:"While this news is encouraging, many are worried about whether the EV battery (EVB) supply chain can meet increasing demand. The current supply chain, which is geographically concentrated, is vulnerable to disruption due to changing trade alliances, the current and future availability of the minerals that go into EVBs."}),y.jsxs("p",{children:["A ",y.jsx("strong",{children:"circular battery economy"})," — one in which end-of-life (EOL) batteries are collected to be reused or repurposed in second-life applications before eventually being recycled — can help address these concerns by reducing reliance on mining raw materials and supporting energy independence. Building circular battery supply chains in different parts of the world also helps build a resilient supply chain that is less vulnerable to disruptions. It also has the additional benefit of reducing the carbon footprint of EVBs."]}),y.jsx("p",{children:y.jsx("strong",{children:"How this dashboard can help stakeholders advance a circular battery economy in the United States."})}),y.jsx("p",{children:"Whether you are a policymaker, investor, industry player, or researcher, you need data to inform your decisions."}),y.jsx("p",{children:"This dashboard quantifies the projected gaps in meeting EVB demand in 2030 in key segments of the US supply chain, the potential for recycling to meet battery mineral demand, and the associated economic and emissions benefits of recycling. The dashboard's default settings are based on RMI's pre-defined scenarios. However, users can use their own assumptions and inputs to test other scenarios and recycling parameters."}),y.jsxs("p",{className:"pb-4",children:["The methodology for this dashboard is detailed in the"," ",
268y.jsx("a",{href:"https://rmi.org/download/36717/?tmstv=1744751376",target:"_blank",children:"User Guide"}),". For any additional queries or outreach, contact Sudeshna Mohanty ([email protected])."]}),y.jsx("p",{children:y.jsx(jb,{link:"https://rmi.org/download/36717/?tmstv=1744751376",fileName:"battery-recycling-economy-user-guide.pdf"})})]}),y.jsxs("div",{className:"m-auto w-full max-w-full md:max-w-full",children:[y.jsxs("picture",{children:[y.jsx("source",{media:"(max-width: 768px)",srcSet:j3}),y.jsx("source",{media:"(min-width: 769px)",srcSet:Zx}),y.jsx("img",{src:Zx,alt:"Image of Key material flows in the battery supply chain. These material flows can look different with newer chemistries and recycling processes."})]}),y.jsx(ci,{content:"Key material flows in the battery supply chain. These material flows may look different for newer chemistries and recycling processes."})]})]}),y.jsx("div",{className:"space-y-12",children:y.jsx("div",{className:"pb-12",children:y.jsxs("div",{className:"relative grid grid-cols-12 items-start gap-x-6 gap-y-8 overflow-clip",children:[y.jsx("div",{className:"top-0 col-span-12 max-h-full p-4 md:sticky md:col-span-5 md:max-h-screen md:overflow-y-auto xl:col-span-4",children:y.jsx(m3,{className:"bcei-form",title:"EVB Form",subheading:`Enter Demand (500 - 1500) and Year (2023 - 2032) to receive chart
269                data.`,showData:s,setShowData:n,responseData:W=>{x(W)},clear:O,setClear:Y,setStatus:te,status:Q})}),y.jsxs("div",{className:"col-span-12 flex flex-col gap-8 md:col-span-7 xl:col-span-8",children:[y.jsxs("div",{id:"section-chart-1",children:[y.jsx(k3,{title:"Annual Battery Demand",data:u.chart_one,clear:O,showData:s,caption:"Exhibit 1"}),y.jsx("p",{className:"pb-4",children:"RMI estimates that by 2030, EVs will represent somewhere between 46 and 66 percent of new sales of private passenger vehicles in the United States. The National Renewable Energy Lab (NREL) estimates that EVs will represent 26 to 38 percent of MHDV sales in 2030."}),y.jsxs("p",{children:["This growing demand will require materials such as lithium, cobalt, and many others that have not historically been produced in such large quantities. RMI's EVB demand projection (",y.jsx("b",{children:"Exhibit 1"}),") is broken down by chemistry using BloombergNEF’s chemistry projections and forms the basis of nearly all other outputs in this tool."]})]}),y.jsxs("div",{id:"section-chart-2",children:[y.jsx(P3,{title:"Projected EV Battery Supply Chain Gaps in 2030",data:u.chart_two,showData:s,clear:O,caption:"Exhibit 2"}),y.jsxs("p",{children:["This supply gap estimate compares North American domestic manufacturing capacity to the raw material and component demand corresponding to the US EVB demand shown in ",y.jsx("b",{children:"Exhibit 1"}),". While this capacity will be used to meet EVB demand from Canada and Mexico as well, the US vehicle population is significantly higher. Corresponding EVB demand is expected to be largely driven by the United States, and the analysis was simplified by comparing the North American supply to the US EV demand."]}),y.jsxs("p",{children:[y.jsx("b",{children:"Exhibit 2"}),' shows the gap between supply and demand for each component, or the “supply gap." The exhibit should be read from left to right while keeping relationships between components in mind to get a complete picture. For example, with the default inputs, nickel sulfate is produced at lower levels than ore production relative to demand. This difference can be attributed to several reasons, such as raw ore leaving the continent for further processing. In contrast, cobalt sulfate in midstream appears to be in greater supply than raw cobalt, hinting at increased raw material flow into the United States as imports. There are several other nuances to keep in mind while deriving insights for decision-making, which are elaborated in the linked references in the'," ",y.jsx("a",{href:"https://rmi.org/download/36717/?tmstv=1744751376",target:"_blank",children:"User Guide"}),"."]})]}),y.jsxs("div",{id:"section-chart-3",children:[y.jsx(E3,{title:"EOL EVB Recycling Waste",data:u.chart_three,showData:s,clear:O,caption:"Exhibit 3"}),y.jsxs("p",{children:["The EV batteries currently in use and future EV batteries (from"," ",
269y.jsx("b",{children:"Exhibit 1"}),") will need EVB recycling at their end-of-life."," ",y.jsx("strong",{children:"Exhibit 3"})," depicts the volume of batteries that will be retired from vehicles and require recycling, thus describing the scale of recycling capacity needed for a circular supply chain."]})]}),y.jsxs("div",{id:"section-chart-4",children:[y.jsx(T3,{title:"Percentage of demand that can be met by recycled content",data:u.chart_four,showData:s,clear:O,caption:"Exhibit 4"}),y.jsxs("p",{children:["The supply gap identified in ",y.jsx("strong",{children:"Exhibit 2"})," can be partially met by EVB recycling. ",y.jsx("strong",{children:"Exhibit 4"})," represents the theoretically maximum recoverable content from EOL EVBs in an ideal scenario (i.e., assuming all material used in EVBs is recovered after the specified years of battery life). This recycled content can help bridge the supply gap, reducing the need to extract, import, and process raw materials."]})]}),y.jsxs("div",{id:"section-chart-5",children:[y.jsx(A3,{title:"Emission Benefit from Recycling",data:u.chart_five,showData:s,clear:O,caption:"Exhibit 5"}),y.jsxs("p",{children:["Recycling batteries doesn't just fill the supply gap — it also has emissions and economic benefits. ",y.jsx("strong",{children:"Exhibit 5"})," shows the net emissions benefit of recycling by comparing process emissions from recycling to emissions foregone by avoiding the production from virgin materials."]})]}),y.jsxs("div",{id:"section-chart-6",children:[y.jsx(L3,{title:"Value of Materials Recovered From Recycling",data:u.chart_six,showData:s,clear:O,caption:"Exhibit 6"}),y.jsxs("p",{children:[y.jsx("strong",{children:"Exhibit 6"})," shows the value that recyclers would obtain for recycling output under current market conditions."]})]}),y.jsxs("div",{id:"section-chart-7",children:[y.jsx(R3,{title:"Circularity Index",data:u.chart_seven,showData:s,clear:O,showLegend:!0,hideLabels:!0,caption:"Exhibit 7"}),y.jsxs("p",{className:"pb-4",children:["Obtaining these emissions and economic benefits requires a strong, circular battery economy. It can be challenging to understand where to direct resources, especially with limited information available from this nascent industry. In the absence of real data, the circularity index (",y.jsx("strong",{children:"Exhibit 7"}),") serves as a simulator wherein users can insert their own inputs around recycling infrastructure to understand the cumulative effect of collection, recycling capacity, and the recovery rates of individual minerals on improving the overall circularity of the system. Users can reference similar products such as lead-acid automotive batteries or consumer electronics batteries, and/or regions with available data on recycling, such as the EU, to inform their inputs."]}),y.jsx("p",{children:"Policymakers can visualize the scope and/or influence of policy actions such as recovery rate mandates, domestic content mandates, or extended producer responsibility (EPR) using this dashboard. EPRs can drive collection efficiency to be close to 100%, particularly in the event of unfavorable recycling market conditions. Recovery rate mandates, similar to one from the EU battery regulation, can be applied to industry actors in the early part of the EOL management, i.e., those who collect and pre-treat EOL EVBs before the actual metallurgical recovery of battery minerals occurs. They can drive the demand for technological efficiency gains at the material recovery facilities."}),y.jsx("p",{children:"Beyond assessing the circularity of EVB battery materials for a given region, the circularity index can be combined with other dashboard outputs. Multiplying the circularity index with emissions and economic benefits can indicate the potential benefits that can be realized. Pairing circularity index results with the percentage material demand that can be met by recycled content could inform realistic recycled content targets."})]}),y.jsxs("div",{children:[y.jsx("h5",{className:"uppercase pt-6 pb-3",children:"Acknowledgements"}),y.jsx("p",{className:"text-sm font-bold",children:"The US Supply Chain Dashboard was developed with generous philanthropic support by Sall Family Foundation and Argosy Foundation. RMI would also like to acknowledge the support from Argonne National Lab, National Renewable Energy Laboratory, NAATBatt, Charged, Bloomberg , and Bain in providing valuable inputs and insights into the dashboard development. The specific views expressed in this dashboard are those of its authors, and do not necessarily reflect the views of these external organizations."}),y.jsxs($0,{title:"Exhibit Data",className:"mb-4",classNameLabel:"py-2",children:[y.jsx(bn,{title:"Exhibit One",data:u&&u.chart_one}),y.jsx(bn,{title:"Exhibit Two",data:u&&u.chart_two}),y.jsx(bn,{title:"Exhibit Three",data:u&&u.chart_three}),y.jsx(bn,{title:"Exhibit Four",data:u&&u.chart_four}),y.jsx(bn,{title:"Exhibit Five",data:u&&u.chart_five}),y.jsx(bn,{title:"Exhibit Six",data:u&&u.chart_six}),y.jsx(bn,{title:"Exhibit Seven",data:u&&u.chart_seven})]})]})]})]})})})]})})})}const O3=Zp({components:{MuiChip:{styleOverrides:{root:{}}}}}),Wt={baseline:"Baseline",accelerated:"Accelerated",user:"User Defined"};function _3(r){const{isOpen:s,handleDismiss:n,status:c,setStatus:l,title:u,subheading:x,showData:O=!1,setShowData:Y,setResponseData:Q,clear:te,setClear:W,className:G}=r,K={demandBatteryScrapRate:10,recyclingCollectionPassenger:60,recyclingCollectionTwoThreeWheelers:40,recyclingCollectionMedHeavyDuty:80,recyclingCollectionStationary:80,recyclingRecoveryLithium:80,recyclingRecoveryNickelCobalt:95},S={demandBatteryScrapRate:5,recyclingCollectionPassenger:80,recyclingCollectionTwoThreeWheelers:70,recyclingCollectionMedHeavyDuty:90,recyclingCollectionStationary:90,recyclingRecoveryLithium:95,recyclingRecoveryNickelCobalt:99}
269,T={efficiencyMobility:0,efficiencyFreight:0,efficiencyVehicles:0,efficiencyBatteries:4},E={efficiencyMobility:21,efficiencyFreight:16,efficiencyVehicles:28,efficiencyBatteries:5},_={demandStorageUpdate:Wt.accelerated,demandBatteryScrapRate:S.demandBatteryScrapRate,demandBatteryChemistryChange:Wt.accelerated,demandBatteryLifetime:Wt.accelerated,efficiencyScenario:Wt.accelerated,efficiencyMobility:E.efficiencyMobility,efficiencyFreight:E.efficiencyFreight,efficiencyVehicles:E.efficiencyVehicles,efficiencyBatteries:E.efficiencyBatteries,recyclingScenario:Wt.accelerated,recyclingCollectionPassenger:S.recyclingCollectionPassenger,recyclingCollectionTwoThreeWheelers:S.recyclingCollectionTwoThreeWheelers,recyclingCollectionMedHeavyDuty:S.recyclingCollectionMedHeavyDuty,recyclingCollectionStationary:S.recyclingCollectionStationary,recyclingRecoveryLithium:S.recyclingRecoveryLithium,recyclingRecoveryNickelCobalt:S.recyclingRecoveryNickelCobalt},g={demandStorageUpdate:Wt.baseline,demandBatteryScrapRate:K.demandBatteryScrapRate,demandBatteryChemistryChange:Wt.baseline,demandBatteryLifetime:Wt.baseline,efficiencyScenario:Wt.baseline,efficiencyMobility:T.efficiencyMobility,efficiencyFreight:T.efficiencyFreight,efficiencyVehicles:T.efficiencyVehicles,efficiencyBatteries:T.efficiencyBatteries,recyclingScenario:Wt.baseline,recyclingCollectionPassenger:K.recyclingCollectionPassenger,recyclingCollectionTwoThreeWheelers:K.recyclingCollectionTwoThreeWheelers,recyclingCollectionMedHeavyDuty:K.recyclingCollectionMedHeavyDuty,recyclingCollectionStationary:K.recyclingCollectionStationary,recyclingRecoveryLithium:K.recyclingRecoveryLithium,recyclingRecoveryNickelCobalt:K.recyclingRecoveryNickelCobalt},[w,k]=Me.useState(0),[b,C]=Me.useState({}),[m,q]=Me.useState(_),[V,H]=Me.useState(S),[M,$]=Me.useState(E),[P,h]=Me.useState([0,1]),[f,L]=Me.useState([0,1]),[v,A]=Me.useState([0,1]),[B,R]=Me.useState([0,1]),[D,Z]=Me.useState([0,1,0]),[X,ie]=Me.useState([0,1]),[oe,le]=Me.useState([0,1,0]),[ue,F]=Me.useState([1,0,0]);function N(){h([0,1]),L([0,1]),A([0,1]),R([0,1]),Z([0,1,0]),ie([0,1,0]),H(S),$(E),q(_),W(!0)}function ee(ae=!1){ae?(L([1,0]),A([1,0]),R([1,0]),Z([1,0,0]),ie([1,0,0]),H(K),$(T),q(g)):(L([0,1]),A([0,1]),R([0,1]),Z([0,1,0]),ie([0,1,0]),H(S),$(E),q(_))}function ce(ae,he){const me={...m};me[ae]=he,q(me),h([0,0])}function j(ae){const he={...m};ae.forEach((me,ve)=>{he[me[0]]=me[1]}),q(he),h([0,0])}function I(ae,he){const me={...m};me[he]=Wt.user;for(const ve in ae)me[ve]=ae[ve];q(me)}function U(ae,he){const me={...V};me[ae]=he,H(me)}function J(ae,he){const me={...M};me[ae]=he,$(me)}async function se(ae){ae.preventDefault(),l("loading");const me="https://ev-dashboard-flask.onrender.com/api"+"/minerals-loop",ve=await fetch(me,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(m)}).catch(Pe=>{console.log(`Error Message: ${Pe}`)}),ke=await ve.json();ve.ok?(W(!1),Q(ke),l("success")):l("error")}return y.jsx("form",{onSubmit:ae=>se(ae),className:Xt(`border border-slate-400 bg-white p-2 ${G}`),children:y.jsx(lm,{isVisible:c==="loading",loader:c==="loading",children:y.jsxs(N0,{theme:O3,children:[y.jsxs(Rn,{title:"User Inputs",children:[y.jsx(si,{label:"Preset Scenarios",name:"prsetScenarios",info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Preset Scenarios"}),y.jsx("p",{children:"Use these buttons to load scenarios for baseline or accelerated for battery demand, innovation, efficiency and recycling. Users can also generate their own scenarios by individually selecting levers below."})]})}),y.jsxs("div",{className:"flex flex-wrap gap-4",children:[y.jsx(Lt,{rounded:!0,onClick:ae=>{ae.preventDefault(),h([1,0]),ee(!0)},selected:P[0],children:"Baseline"}),y.jsx(Lt,{rounded:!0,onClick:ae=>{ae.preventDefault(),h([0,1]),ee(!1)},selected:P[1],children:"Accelerated"})]}),y.jsxs("p",{className:"mt-1 pt-4 text-sm leading-6 text-gray-600",children:[y.jsx("strong",{children:"Hit SUBMIT at the bottom of this form "}),"to run the simulation."]})]}),y.jsx(Rn,{title:"Battery Demand",accordion:!0,children:y.jsxs("div",{className:"input-demand-storage-update pb-4",children:[y.jsx(si,{label:"EV and 
269Stationary Storage Uptake",name:"demandStorageUpdateSection",info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"EV and Stationary Storage Uptake"}),y.jsxs("p",{children:["Based on global outlooks described in RMI’s ",y.jsx("a",{href:"https://rmi.org/insight/x-change-batteries",target:"_blank",children:"X-Change: Batteries report"}),". ",y.jsx("br",{}),y.jsx("br",{}),y.jsx("b",{children:"Baseline"})," = “Fast” scenario (5.5 GWh total by 2030);",y.jsx("br",{}),y.jsx("br",{})," ",y.jsx("b",{children:"Accelerated"})," = “Faster” scenario (8 GWh total by 2030) for battery demand."]})]})}),y.jsxs("div",{className:"flex flex-wrap gap-4",children:[y.jsx(Lt,{rounded:!0,onClick:ae=>{ae.preventDefault(),L([1,0]),ce("demandStorageUpdate",Wt.baseline)},selected:f[0],children:"Baseline"}),y.jsx(Lt,{rounded:!0,onClick:ae=>{ae.preventDefault(),L([0,1]),ce("demandStorageUpdate",Wt.accelerated)},selected:f[1],children:"Accelerated"})]})]})}),y.jsxs(Rn,{title:"Battery Innovation",accordion:!0,children:[y.jsxs("div",{className:"input-demand-battery-chemistry-change pb-4",children:[y.jsx(si,{label:"Battery Chemistry Change",name:"demandBatteryChemistryChange",info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Battery Chemisty Change"}),y.jsxs("p",{children:["Distribution of sectoral battery demand by chemistry. ",y.jsx("br",{}),y.jsx("br",{}),y.jsx("b",{children:"Baseline"})," is the BNEF Energy Transition Scenario (2024); ",y.jsx("br",{}),y.jsx("br",{}),y.jsx("b",{children:"Accelerated"})," is the BNEF Aggressive Sodium Case."]})]})}),y.jsxs("div",{className:"flex flex-wrap gap-4",children:[y.jsx(Lt,{rounded:!0,onClick:ae=>{ae.preventDefault(),A([1,0]),ce("demandBatteryChemistryChange",Wt.baseline)},selected:v[0],children:"Baseline"}),y.jsx(Lt,{rounded:!0,onClick:ae=>{ae.preventDefault(),A([0,1]),ce("demandBatteryChemistryChange",Wt.accelerated)},selected:v[1],children:"Accelerated"})]})]}),y.jsxs("div",{className:"input-demand-battery-lifetime pb-4",children:[y.jsx(si,{label:"Battery Lifetime",name:"demandBatteryLifetime",info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Battery Lifetime"}),y.jsxs("p",{children:["Years of primary battery life by sector and chemistry. ",y.jsx("br",{}),y.jsx("br",{}),y.jsx("b",{children:"Baseline"})," is from BNEF LIBRA medium case (2024); ",y.jsx("br",{}),y.jsx("br",{}),y.jsx("b",{children:"Accelerated"})," is based on the BNEF LIBRA high lifetime case as well as additional second-life use from Gaines et al. (2023)."]})]})}),y.jsxs("div",{className:"flex flex-wrap gap-4",children:[y.jsx(Lt,{rounded:!0,onClick:ae=>{ae.preventDefault(),R([1,0]),ce("demandBatteryLifetime",Wt.baseline)},selected:B[0],children:"Baseline"}),y.jsx(Lt,{rounded:!0,onClick:ae=>{ae.preventDefault(),R([0,1]),ce("demandBatteryLifetime",Wt.accelerated)},selected:B[1],children:"Accelerated"})]})]})]}),y.jsx(Rn,{title:"Efficiency Parameters",accordion:!0,children:y.jsxs("div",{className:"input-efficiency-scenario pb-4",children:[y.jsxs("div",{id:"efficiency-scenarios",children:[y.jsx(si,{label:"Scenarios",name:"efficiencyScenario",info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Scenarios"}),y.jsxs("p",{children:[y.jsx("b",{children:"Baseline"})," represents the “continued trends” case, while ",y.jsx("b",{children:"Accelerated"})," represents further (but reasonable) progress across all solutions. The ",y.jsx("b",{children:"User-Defined"})," option allows for custom scenarios based on adjusting the input sliders for efficiency and recycling."]})]})}),y.jsxs("div",{className:"flex flex-wrap gap-4 pb-5",children:[y.jsx(Lt,{rounded:!0,onClick:ae=>{ae.preventDefault(),Z([1,0,0]),j([["efficiencyScenario",Wt.baseline],["efficiencyMobility",T.efficiencyMobility],["efficiencyFreight",T.efficiencyFreight],["efficiencyVehicles",T.efficiencyVehicles],["efficiencyBatteries",T.efficiencyBatteries]])},selected:D[0],children:"Baseline"}),y.jsx(Lt,{rounded:!0,onClick:ae=>{ae.preventDefault(),Z([0,1,0]),j([["efficiencyScenario",Wt.accelerated],["efficie
269ncyMobility",E.efficiencyMobility],["efficiencyFreight",E.efficiencyFreight],["efficiencyVehicles",E.efficiencyVehicles],["efficiencyBatteries",E.efficiencyBatteries]])},selected:D[1],children:"Accelerated"}),y.jsx(Lt,{rounded:!0,onClick:ae=>{ae.preventDefault(),Z([0,0,1]),h([0,0]),I(M,"efficiencyScenario")},selected:D[2],children:"User Defined"})]})]}),y.jsxs("div",{children:[y.jsx(yr,{id:"efficiency-mobility",label:"Efficient Mobility",labelUnits:"% by 2050",name:"efficiency-mobility",onChange:ae=>{ce("efficiencyMobility",ae.target.value),J("efficiencyMobility",ae.target.value)},value:Number(m.efficiencyMobility),min:0,max:50,required:!0,disabled:m.efficiencyScenario!==Wt.user,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Efficiency Mobility"}),y.jsxs("p",{children:["Percent reduction in passenger car sales relative to ",y.jsx("b",{children:"baseline"}),", and therefore battery demand, from efficient mobility. ",y.jsx("b",{children:"Accelerated"})," case based on ICCT (2023) and KPMG (2020)."]})]})}),y.jsx(yr,{id:"efficiency-freight",label:"Efficient Freight",labelUnits:"% by 2050",name:"efficiency-freight",onChange:ae=>{ce("efficiencyFreight",ae.target.value),J("efficiencyFreight",ae.target.value)},value:Number(m.efficiencyFreight),min:0,max:50,required:!0,disabled:m.efficiencyScenario!==Wt.user,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Efficiency Freight"}),y.jsxs("p",{children:["Percent reduction in commercial vehicle sales relative to ",y.jsx("b",{children:"baseline"}),", and therefore battery demand, from efficient freight. ",y.jsx("b",{children:"Accelerated"})," case based on ICCT (2023)."]})]})}),y.jsx(yr,{id:"efficiency-vehicles",label:"Efficient Cars",labelUnits:"% by 2030",name:"efficiency-vehicles",onChange:ae=>{ce("efficiencyVehicles",ae.target.value),J("efficiencyVehicles",ae.target.value)},value:Number(m.efficiencyVehicles),min:0,max:80,required:!0,disabled:m.efficiencyScenario!==Wt.user,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Efficiency Cars"}),y.jsxs("p",{children:["Percent reduction in battery demand per car achieved through efficient vehicle design. ",y.jsx("b",{children:"Accelerated"})," case from the IEA “Downsized Case” (2024), ",y.jsx("b",{children:"baseline"})," considers no efficiency gains."]})]})}),y.jsx(yr,{id:"efficiency-batteries",label:"Efficient Batteries",labelUnits:`% per doubling
270                    of production`,name:"efficiency-batteries",onChange:ae=>{ce("efficiencyBatteries",ae.target.value),J("efficiencyBatteries",ae.target.value)},value:Number(m.efficiencyBatteries),min:0,max:10,required:!0,disabled:m.efficiencyScenario!==Wt.user,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Efficiency Batteries"}),y.jsxs("p",{children:["Percent improvement in battery energy density per doubling of cumulative battery demand, adjusted by the effect of chemistry change. ",y.jsx("br",{}),y.jsx("br",{}),y.jsx("b",{children:"Baseline"})," from recent data for average density; ",y.jsx("b",{children:"accelerated"})," case from recent data for top-tier energy density (BNEF 2024)."]})]})})]})]})}),y.jsx(Rn,{title:"Recycling Parameters",accordion:!0,children:y.jsxs("div",{className:"input-recycling-scenario pb-4",children:[y.jsxs("div",{id:"recycling-scenarios",children:[y.jsx(si,{label:"Scenarios",name:"recyclingScenario",info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Scenarios"}),y.jsxs("p",{children:[y.jsx("b",{children:"Baseline"})," represents the “continued trends” case, while ",y.jsx("b",{children:"Accelerated"})," represents further (but reasonable) progress across all six solutions. ",y.jsx("b",{children:"User-Defined"})," allows users to design custom scenarios by adjusting the input sliders for efficiency and recycling."]})]})}),y.jsxs("div",{className:"flex flex-wrap gap-4 pb-5",children:[y.jsx(Lt,{rounded:!0,onClick:ae=>{ae.preventDefault(),ie([1,0,0]),j([["recyclingScenario",Wt.baseline],["demandBatteryScrapRate",K.demandBatteryScrapRate],["recyclingCollectionPassenger",K.recyclingCollectionPassenger],["recyclingCollectionTwoThreeWheelers",K.recyclingCollectionTwoThreeWheelers],["recyclingCollectionMedHeavyDuty",K.recyclingCollectionMedHeavyDuty],["recyclingCollectionStationary",K.recyclingCollectionStationary],["recyclingRecoveryLithium",K.recyclingRecoveryLithium],["recyclingRecoveryNickelCobalt",K.recyclingRecoveryNickelCobalt]])},selected:X[0],children:"Baseline"}),y.jsx(Lt,{rounded:!0,onClick:ae=>{ae.preventDefault(),ie([0,1,0]),j([["recyclingScenario",Wt.accelerated],["demand
270BatteryScrapRate",S.demandBatteryScrapRate],["recyclingCollectionPassenger",S.recyclingCollectionPassenger],["recyclingCollectionTwoThreeWheelers",S.recyclingCollectionTwoThreeWheelers],["recyclingCollectionMedHeavyDuty",S.recyclingCollectionMedHeavyDuty],["recyclingCollectionStationary",S.recyclingCollectionStationary],["recyclingRecoveryLithium",S.recyclingRecoveryLithium],["recyclingRecoveryNickelCobalt",S.recyclingRecoveryNickelCobalt]])},selected:X[1],children:"Accelerated"}),y.jsx(Lt,{rounded:!0,onClick:ae=>{ae.preventDefault(),ie([0,0,1]),h([0,0]),I(V,"recyclingScenario")},selected:X[2],children:"User Defined"})]})]}),y.jsxs("div",{className:"recycling-collection-params",children:[y.jsx("div",{className:"text-gray-600 border-b border-b-gray-600 border-b-2 border-b-black uppercase text-md font-bold mb-3 pt-4",children:"Production Scrap"}),y.jsx("div",{children:y.jsx(yr,{id:"recycling-production-scrap",label:`Battery Manufacturing
271                      Scrap Rate`,labelUnits:"% by 2030",name:"recylcing-production-scrap-rate",onChange:ae=>{ce("demandBatteryScrapRate",ae.target.value),U("demandBatteryScrapRate",ae.target.value)},value:Number(m.demandBatteryScrapRate),min:0,max:30,required:!0,disabled:m.recyclingScenario!==Wt.user,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Battery Manufacturing Scrap Rate "}),y.jsxs("p",{children:["The percentage of batteries that is scrapped during the manufacturing process. Affects total battery demand as well as re
271cycling quantities. ",y.jsx("br",{}),y.jsx("br",{}),y.jsx("b",{children:"Baseline"})," value of 10% from Bloomberg New Energy Finance Lithium-Ion Battery Recycling Availability model (BNEF LIBRA 2024); ",y.jsx("b",{children:"Accelerated"})," case decreases from 10% to 5% by 2030."]})]})})}),y.jsx("div",{className:"text-gray-600 border-b border-b-gray-600 border-b-2 border-b-black uppercase text-md font-bold mb-3 pt-4",children:"Collection Rate by Category"}),y.jsx(yr,{id:"recycling-collection-passenger",label:"Passenger Vehicles",labelUnits:"%",name:"recycling-collection-passenger",onChange:ae=>{ce("recyclingCollectionPassenger",ae.target.value),U("recyclingCollectionPassenger",ae.target.value)},value:Number(m.recyclingCollectionPassenger),min:0,max:100,required:!0,disabled:m.recyclingScenario!==Wt.user,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Passenger Vehicles"}),y.jsxs("p",{children:["The percentage of end-of-life batteries that are collected for recycling. ",y.jsx("br",{}),y.jsx("br",{}),y.jsx("b",{children:"Baseline"})," uses current rates from BNEF LIBRA (2024); the ",y.jsx("b",{children:"accelerated"})," case ramps from current rates to the stated rate by 2030 and to 95% by 2040."]})]})}),y.jsx(yr,{id:"recycling-collection-two-three-wheelers",label:"Two-/Three-wheelers",labelUnits:"%",name:"recycling-two-three-wheelers",onChange:ae=>{ce("recyclingCollectionTwoThreeWheelers",ae.target.value),U("recyclingCollectionTwoThreeWheelers",ae.target.value)},value:Number(m.recyclingCollectionTwoThreeWheelers),min:0,max:100,required:!0,disabled:m.recyclingScenario!==Wt.user,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Two-/Three-wheelers"}),y.jsxs("p",{children:["The percentage of end-of-life batteries that are collected for recycling.  ",y.jsx("br",{}),y.jsx("br",{}),y.jsx("b",{children:"Baseline"})," uses current rates from BNEF LIBRA (2024); the ",y.jsx("b",{children:"accelerated"})," case ramps from current rates to the stated rate by 2030 and to 95% by 2040."]})]})}),y.jsx(yr,{id:"recycling-collection-med-heavy-duty",label:"Medium- and Heavy-Duty Vehicles",labelUnits:"%",name:"recycling-collection-med-heavy-duty",onChange:ae=>{ce("recyclingCollectionMedHeavyDuty",ae.target.value),U("recyclingCollectionMedHeavyDuty",ae.target.value)},value:Number(m.recyclingCollectionMedHeavyDuty),min:0,max:100,required:!0,disabled:m.recyclingScenario!==Wt.user,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Medium- and Heavy-Duty Vehicles"}),y.jsxs("p",{children:["The percentage of end-of-life batteries that are collected for recycling. ",y.jsx("br",{}),y.jsx("br",{}),y.jsx("b",{children:"Baseline"})," uses current rates from BNEF LIBRA (2024); the ",y.jsx("b",{children:"accelerated"})," case ramps from current rates to the stated rate by 2030 and to 95% by 2040."]})]})}),y.jsx(yr,{id:"recycling-collection-stationary",label:"Stationary Storage",labelUnits:"%",name:"recycling-collection-stationary",onChange:ae=>{ce("recyclingCollectionStationary",ae.target.value),U("recyclingCollectionStationary",ae.target.value)},value:Number(m.recyclingCollectionStationary),min:0,max:100,required:!0,disabled:m.recyclingScenario!==Wt.user,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Stationary Storage"}),y.jsxs("p",{children:["The percentage of end-of-life batteries that are collected for recycling. ",y.jsx("br",{}),y.jsx("br",{}),y.jsx("b",{children:"Baseline"})," uses current rates from BNEF LIBRA (2024); the ",y.jsx("b",{children:"accelerated"})," case ramps from current rates to the stated rate by 2030 and to 95% by 2040."]})]})})]}),y.jsxs("div",{className:"recycling-recovery-params",children:[y.jsx("div",{className:"text-gray-600 border-b border-b-gray-600 border-b-2 border-b-black uppercase text-md font-bold mb-3 pt-4",children:"Recovery rate by metal"}),y.jsx(yr,{id:"recycling-recovery-lithium",label:"Lithium",labelUnits:"%",name:"recycling-recovery-lithium",onChange:ae=>{ce("recyclingRecoveryLithium",ae.target.value),U("recyclingRecoveryLithium",ae.target.value)},value:Number(m.recyclingRecoveryLithium),min:80,max:100,required:!0,disabled:m.recyclingScenario!==Wt.user,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Lithum"}),y.jsxs("p",{children:["The percentage of recycled metal that is recovered for use in new batteries. ",y.jsx("br",{}),y.jsx("br",{}),y.jsx("b",{children:"Baseline"})," uses current rates from BNEF LIBRA (2024); ",y.jsx("b",{children:"Accelerated"})," ramps to current best-in-class technologies by 2030."]})]})}),y.jsx(yr,{id:"recycling-recovery-nickel-cobalt",label:"Nickel and Cobalt",labelUnits:"%",name:"recycling-recovery-nickel-cobalt",onChange:ae=>{ce("recyclingRecoveryNickelCobalt",ae.target.value),U("recyclingRecoveryNickelCobalt",ae.target.value)},value:Number(m.recyclingRecoveryNickelCobalt),min:95,max:100,required:!0,disabled:m.recyclingScenario!==Wt.user,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Nickel and Cobalt"}),y.jsxs("p",{children:["The percentage of recycled metal that is recovered for use in new batteries. Both minerals usually have similar recovery rates. ",y.jsx("br",{}),y.jsx("br",{}),y.jsx("b",{children:"Baseline"})," uses current rates from BNEF LIBRA (2024); ",y.jsx("b",{children:"Accelerated"})," ramps to current best-in-class technologies by 2030."]})]})})]})]})}),y.jsx(Rn,{id:"form-submit-buttons",className:"mb-0",children:y.jsxs("div",{className:"flex flex-wrap justify-end gap-4",children:[y.jsx(ws,{variant:"outlined",onClick:ae=>{ae.preventDefault(),W&&W(!0),N()},children:"Reset"}),y.jsx(ws,{id:"form-submit-button",type:"submit",variant:"contained",sx:{backgroundColor:"#1976D2"},children:"Submit"})]})}),y.jsx("div",{className:"",children:O&&y.jsx(Sn,{title:"Payload",response:m})})]})})})}
271function D3(r,s){const{options:n,data:c,title:l,subtitle:u,caption:x,showData:O=!1,clear:Y=!0}=r,Q=Me.useRef(null);return n.title.text=l,n.subtitle.text=u,n.series.forEach(te=>{te.name.includes("continued")&&(te.dashStyle="Dash")}),Me.useEffect(()=>{if(Q.current&&Q.current.chart&&c){const te=Q.current.chart;c!==void 0?c.series.forEach((W,G)=>{if(te.series[G]){const K=te.series[G];K.setData(W.data,!0,{duration:500}),K.name.includes("continued")&&(K.dashStyle="Dash")}else te.addSeries({...W},!0)}):te.series.forEach(W=>{W.remove(!0)})}},[c]),Me.useEffect(()=>{s&&(s.current=Q.current)},[s]),y.jsxs(y.Fragment,{children:[y.jsx(Ai,{highcharts:bt,options:n,ref:Q}),x&&y.jsx(ci,{className:"pb-8",content:x}),O&&y.jsx(Sn,{title:`Data${x?" for "+x:": "}`,response:c,clear:Y})]})}const Nb=Gt.forwardRef(D3);bt.setOptions({lang:{thousandsSep:","}});const Ld={credits:{enabled:!1},chart:{backgroundColor:"transparent",animation:!0},title:{useHTML:!0},subtitle:{useHTML:!0},xAxis:{labels:{style:{fontWeight:"bold"}}},legend:{align:"center",x:0,y:0,verticalAlign:"bottom",margin:30,backgroundColor:bt.defaultOptions.legend.backgroundColor||"transparent",shadow:!1,symbolRadius:10}},I3={credits:{enabled:!1},chart:{type:"column"},colors:["#81EEEF","#3D8E33","#14496D","#FFD700","#FFA500","#FF6347","#FF0000","#0000FF","#00FF00","#FFFF00","#FF00FF","#00FFFF"],yAxis:{title:{text:"Battery Demand (GWh)"},min:0,tickInterval:2e3,labels:{formatter:function(){return bt.numberFormat(this.value,0)}},useHTML:!0},xAxis:{tickInterval:1},tooltip:{headerFormat:'<span style="font-size: 0.875rem;"><b>{point.x}</b></span><br/>',pointFormatter:function(){let r=this.y.toFixed(2),s=this.series.name.split("(")[0];return'<span style="color:'+this.color+'">●</span> '+s+"</span>: <p>"+bt.numberFormat(r,0)+" GWh </p>"}},plotOptions:{column:{stacking:"normal",dataLabels:{enabled:!1}},bar:{stacking:"normal",dataLabels:{enabled:!1}}}};bt.setOptions({lang:{thousandsSep:","}});const W0={chart:{type:"spline",animate:!0,events:{load:function(){const r=this;r.series.length>=3&&r.series[2].update({lineWidth:4})}}},colors:["#81EEEF","#3D8E33","#14496D","#969696","#0000FF","#00FF00","#FFFF00","#FF00FF","#00FFFF"],yAxis:{title:{text:"kt",useHTML:!0},labels:{format:"{value}"},minRange:2},plotOptions:{spline:{marker:{enabled:!1}}},xAxis:{labels:{rotation:-45,align:"right",overflow:"justify"}},legend:{useHTML:!0,align:"center",verticalAlign:"top",x:0,y:0,margin:30,backgroundColor:bt.defaultOptions.legend.backgroundColor||"white",shadow:!1,style:{marginBottom:"10px"}}},B3={chart:{type:"column",height:400},colors:["#45CFCC","#31ACFF","#0077C9","#1C6E6C","#FFA500","#FF6347"],xAxis:{tickInterval:1},yAxis:{max:14e3,tickInterval:2e3},tooltip:{headerFormat:'<span style="font-size: 0.875rem;"><b>{point.x}</b></span><br/>',pointFormatter:function(){let r=this.y.toFixed(2),s=this.series.name.split("(")[0];return'<span style="color:'+this.color+'">●</span> '+s+"</span>: <p>"+bt.numberFormat(r,0)+" GWh </p>"}},plotOptions:{column:{stacking:"normal",dataLabels:{enabled:!1}}}};function F3(r){const{data:s,chartDefault:n}=r,[c,l]=Me.useState(Uo.merge({},Ld,B3,{xAxis:{categories:n.categories.data,title:{text:n.categories.name}},yAxis:{title:{text:"GWh"}},series:n.series}));return y.jsx(Nb,{options:c,data:s,...r})}const z3={series:[{name:"Passenger vehicles",data:[1042,1473,1973,2357,2744,2993,3370,3550,3579,3656,3759,3638,3417,3350,3313,3318,3314,2878,3345,3329,3259,3182,3344,3490,3568,3606,3578]},{name:"Commercial vehicles",data:[122,224,376,584,879,1276,1740,2179,2579,2857,3147,3328,3182,3312,3335,3035,2933,2907,3018,3199,3460,3778,3940,4018,4135,4224,4284]},{name:"Buses",data:[17,23,30,34,36,35,36,35,34,35,41,43,41,46,47,45,47,47,49,51,51,53,53,54,54,55,55]},{name:"Two-/Three- wheelers",data:[74,96,111,136,169,194,239,271,294,339,364,344,362,359,340,335,335,342,338,336,339,350,357,357,354,352,349]},{name:"Stationary storage",data:[109,162,244,330,421,524,635,693,613,663,688,462,106,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{name:"Consumer electronics",data:[112,116,121,125,129,133,137,141,153,159,165,171,178,184,191,198,205,205,205,205,205,205,205,205,205,205,205]}],categories:{name:"Years",data:["2024","2025","2026","2027","2028","2029","2030","2031","2032","2033","2034","2035","2036","2037","2038","2039","2040","2041","2042","2043","2044","2045","2046","2047","2048","2049","2050"]}},od={series:[{name:"Nickel or cobalt rich lithium ion batteries",data:[40,53,61,73,91,114,124,140,197,195,220,317,353,595,1082,1296,1547,1783,2029,1982,1716,1562,1438,1240,1244,1239,1222]},{name:"Other lithium ion batteries",data:[2,3,4,4,4,4,14,28,43,54,60,89,151,237,384,798,1210,2081,2549,3077,4296,4779,4894,5116,5316,5197,5049]},{name:"Non-lithium chemistries",data:[0,0,0,0,0,0,1,3,6,9,15,20,28,41,63,88,145,298,519,780,1058,1297,1579,1782,1615,1507,1497]},{name:"Production scrap",data:[128,170,213,243,269,282,293,326,344,366,388,379,346,344,343,329,325,303,330,338,347,360,375,386,395,401,402]}],categories:{name:"Years",data:["2024","2025","2026","2027","2028","2029","2030","2031","2032","2033","2034","2035","2036","2037","2038","2039","2040","2041","2042","2043","2044","2045","2046","2047","2048","2049","2050"]}},hd={series:[{name:"Lithium demand (kt) - selected scenario ",data:[145,194,249,296,341,378,427,452,454,463,472,439,399,403,400,386,383,352,395,405,413,430,449,451,462,468,469]},{name:"Lithium recycled (kt) - selected scenario ",data:[-12,-16,-20,-23,-26,-29,-32,-35,-42,-43,-46,-56,-63,-90,-141,-187,-233,-302,-356,-382,-436,-450,-443,-438,-447,-437,-423]},{name:"Lithium net demand (kt) - selected scenario ",data:[133,178,229,273,315,349,395,417,412,420,426,383,336,313,259,199,150,50,39,23,-23,-20,6,13,15,31,46]},{name:"Lithium net demand (kt) - continued trends",data:[132,176,220,262,308,352,416,450,469,502,537,539,536,551,553,542,524,492,509,507,475,465,456,450,444,442,440]}],categories:{name:"Years",data:["2024","2025","2026","2027","2028","2029","2030","2031","2032","2033","2034","2035","2036","2037","2038","2039","2040","2041","2042","2043","2044","2045","2046","2047","2048","2049","2050"]},info:{name:"Net lithium demand"},stats:{name:"Lithium",data:{demand:5367,reduction:"55.0",year:"2034"}}},dd={series:[{name:"Nickel demand (kt) - selected scenario ",data:[420,597,726,773,913,953,1050,1086,1071,1120,1177,1093,978,965,1011,965,1031,980,1058,1068,1049,1057,1137,1088,1088,1089,1086]},{name:"Nickel recycled (kt) - selected scenario",data:[-32,-44,-51,-53,-63,-68,-69,-80,-115,-119,-140,-199,-221,-377,-691,-831,-999,-1141,-1348,-1370,-1272,-1233,-1219,-1141,-1105,-1078,-1064]},{name:"Nickel net demand (kt) - selected scenario",data:[388,553,675,720,850,885,981,1006,956,1001,1037,894,757,588,320,134,32,-161,-290,-302,-223,-176,-82,-53,-17,11,22]},{name:"Nickel net demand (kt) - continued trends",data:[376,484,591,691,809,894,1033,1049,1033,1080,1120,1103,971,979,942,834,804,742,752,734,728,725,722,713,709,711,716]}],categories:{name:"Years",data:["2024","2025","2026","2027","2028","2029","2030","2031","2032","2033","2034","2035","2036","2037","2038","2039","2040","2041","2042","2043","2044","2045","2046","2047","2048","2049","2050"]},info:{name:"Net nickel demand"},stats:{name:"Nickel",data:{demand:10506,reduction:"52.0",year:"2034"}}},Qx={series:[{name:"Cobalt demand (kt) - selected scenario ",data:[173,181,179,175,173,170,168,161,156,152,149,143,133,132,126,125,119,108,109,101,92,88,91,87,88,88,88]},{name:"Cobalt recycled (kt) - selected scenario ",data:[-46,-55,-60,-66,-75,-84,-90,-92,-100,-97,-98,-108,-108,
271-125,-152,-161,-164,-173,-185,-175,-153,-137,-121,-106,-99,-91,-84]},{name:"Cobalt net demand (kt) - selected scenario ",data:[127,126,119,109,98,86,78,69,56,55,51,35,25,7,-26,-36,-45,-65,-76,-74,-61,-49,-30,-19,-11,-3,4]},{name:"Cobalt net demand (kt) - continued trends",data:[148,160,163,162,163,159,161,149,139,141,141,129,111,107,101,87,84,75,76,71,69,66,70,73,76,81,85]}],categories:{name:"Years",data:["2024","2025","2026","2027","2028","2029","2030","2031","2032","2033","2034","2035","2036","2037","2038","2039","2040","2041","2042","2043","2044","2045","2046","2047","2048","2049","2050"]},info:{name:"Net cobalt demand"},stats:{name:"Cobalt",data:{demand:550,reduction:"82.0",year:"2024"}}};function $3(r,s){let n={...r};return s&&(n.series=n.series.filter(c=>!c.name.includes("scrap"))),n}const W3={chart:{type:"column",height:500},colors:["#81EEEF","#3D8E33","#14496D"],xAxis:{tickInterval:1},yAxis:{minRange:11e3,title:{text:"Collected recycling feedstock [GWh]"}},legend:{floating:!1,verticalAlign:"bottom",layout:"horizontal",maxHeight:200}};function U3(r){const{title:s,subtitle:n=void 0,caption:c=void 0,description:l=void 0,data:u,clear:x=!0,showData:O=!1,clearChart:Y=!1,animate:Q=!0,allVolumes:te=!1,eolVolumesOnly:W=!1,isMobile:G=!1,isTablet:K=!1,isDesktop:S=!1}=r,T=Uo.merge({},Ld,I3,W3,od),[E,_]=Me.useState(T),[g,w]=Me.useState(u);return Me.useEffect(()=>{w(u),_(k=>({...k,chart:{...k.chart,marginBottom:G||K||S?200:125,animate:Q},title:{text:s},subtitle:{text:n},xAxis:{...k.xAxis,categories:u?u.categories.data:od.categories.data,title:{text:u?u.categories.name:od.categories.name}},series:$3(u||od,W).series,legend:{...k.legend,y:te&&!W?void 0:G||K||S?-19:0}}))},[u,x,Y,te,W,G,K,S]),y.jsxs(y.Fragment,{children:[y.jsx(Ai,{highcharts:bt,options:E}),c&&y.jsx(ci,{className:"pb-8",content:c}),O&&y.jsx(Sn,{title:"Data for Exhibit Two",response:u,clear:x})]})}const H3={xAxis:{categories:hd.categories.data,title:{text:hd.categories.name}},series:hd.series};Uo.merge({},Ld,W0,H3);const Y3={xAxis:{categories:dd.categories.data,title:{text:dd.categories.name}},series:dd.series};Uo.merge({},Ld,W0,Y3);function Hg(r){const{data:s,chartDefault:n}=r,[c,l]=Me.useState(Uo.merge({},Ld,W0,{xAxis:{categories:n.categories.data,title:{text:n.categories.name}},series:n.series}));return y.jsx(Nb,{options:c,data:s,...r})}function fd(r){const{children:s,title:n,className:c,accordion:l=void 0,isOpen:u=!1}=r;return l?y.jsx("div",{className:Xt(`w-full p-4 mb-2 ${c}`),children:y.jsx(vu,{isOpen:u,children:y.jsxs(yu,{children:[y.jsx(xu,{backgroundColor:"#002C4A",color:"white",className:"px-4 py-2",children:n&&y.jsx("span",{className:"text-sm font-semibold uppercase",children:n})}),y.jsx(La,{className:"pt-4",children:s})]})})}):y.jsxs("div",{className:Xt(`w-full bg-gray-100 p-4 mb-2 ${c}`),children:[n&&y.jsx("div",{className:"pb-4 text-xl font-semibold uppercase",children:n}),s]})}function Jx(r){const{className:s="",title:n,onClick:c,size:l="small",children:u,isSelected:x=!1,backgroundColor:O=void 0}=r;return y.jsxs(ws,{variant:"outlined",className:`w-fit z-10 ${s}`,size:l,onClick:c,sx:{textTransform:"none",backgroundColor:x?"#005A96":O!==void 0?O:"transparent",color:x?"#fff":"","&:hover":{backgroundColor:x?"#005A96":O!==void 0?O:"transparent",color:x?"#fff":""}},children:[n,u]})}function Yg(r){const{id:s,className:n="",children:c,gap:l=4,spans:u=[6,6],orderFlip:x=!1,breakpoint:O="lg"}=r,Y=ks({query:"(max-width: 767px)"});ks({query:"(min-width: 768px) and (max-width: 1023px)"});const Q=Gt.Children.map(c,(te,W)=>{const G=te.props.className||"",K=Gt.Children.count(c);let S="col-span-12";return K===2?S=`${O}:col-span-6`:K===3?S=`${O}:col-span-6 lg:col-span-4`:K===4?S=`${O}:col-span-6 lg:col-span-3`:K===6?S=`${O}:col-span-6 lg:col-span-2`:K===12&&(S=`${O}:col-span-6 lg:col-span-1`),u?u.length===2&&K===2?y.jsx("div",{className:`col-span-12 ${O}:col-span-${u[W]} py-0`,children:Gt.cloneElement(te,{className:G})},W):u.length===3&&K===3||u.length===4||K===4||u.length===6&&K===6||u.length===12&&K===12?y.jsx("div",{className:`col-span-12 ${O}:col-span-6 lg:col-span-${u[W]}
271 py-4`,children:Gt.cloneElement(te,{className:G})},W):y.jsx("div",{className:`col-span-12 ${S} py-4`,children:te},W):y.jsx("div",{className:`col-span-12 ${S} py-0`,children:Gt.cloneElement(te,{className:G})},W)});return y.jsx("div",{className:Xt(`grid grid-cols-12 text-justify sm:text-left gap-${l} ${n}`),children:x&&Y?Q.reverse():Q})}function X3(r){return new Intl.NumberFormat("en-US").format(r)}function Xg({title:r,value:s,units:n,valueMessage:c,info:l}){return y.jsxs("div",{className:"chart-stats-item",children:[y.jsxs("div",{className:"font-bold w-full text-sm border-b border-black h-16 flex items-end pb-1",children:[r,l&&y.jsx(tb,{className:"inline-block pl-2 pb-0.5",content:l})]}),y.jsxs("div",{className:"font-bold text-3xl pt-1",children:[s,n]}),c&&y.jsx("div",{className:"text-sm",children:c})]})}function Gg({data:r,defaultData:s,className:n=""}){const[c,l]=Me.useState(s);Me.useEffect(()=>{r&&l(r)},[r]);function u(x){return x<0?"(Increased demand over baseline)":x<Number.EPSILON?"":"(Reduced demand over baseline)"}return y.jsx("div",{className:`chart-stats flex flex-col ${n}`,children:s&&y.jsxs(y.Fragment,{children:[y.jsx(Xg,{title:"Cumulative demand",value:X3(c.stats.data.demand),units:" kt",info:"This is the sum of mineral demand in the selected scenario from 2024 through 2050."}),y.jsx(Xg,{title:"Reduction in cumulative demand",value:Number(c.stats.data.reduction).toFixed(),valueMessage:u(parseFloat(c.stats.data.reduction)),units:"%",info:"This measures the percentage reduction in cumulative mineral demand through efficiency improvements and circularity returns in the user-selected scenario from the baseline (continued trends) scenario. A positive value for cumulative net demand indicates reduction from the baseline scenario, a negative value indicates an increase over baseline."}),y.jsx(Xg,{title:"Peak demand year",value:c.stats.data.year,units:"",info:"Year in which peak annual mineral demand will occur."})]})})}const G3=!0;bt.setOptions({credits:{enabled:!1}});function V3({isDev:r=!1}){const[s,n]=Me.useState(!1),[c,l]=Me.useState(!1),[u,x]=Me.useState(!1),[O,Y]=Me.useState(!1),[Q,te]=Me.useState("idle"),[W,G]=Me.useState(!1),[K,S]=Me.useState(!1),[T,E]=Me.useState(!0),_=ks({query:"(max-width: 767px)"}),g=ks({query:"(min-width: 768px) and (max-width: 1023px)"}),w=ks({query:"(min-width: 1024px) and (max-width: 1279px)"});return y.jsx("div",{className:"relative bg-white",children:y.jsx("div",{className:"container m-auto",children:y.jsxs("div",{children:[y.jsxs("section",{id:"section-intro",className:"p-4 pt-16",children:[y.jsx("h1",{className:"pb-4 text-3xl font-bold",children:"The Battery Mineral Loop - Global"}),y.jsxs("p",{children:["This dashboard allows users to explore the six solutions presented in  ",y.jsx("a",{href:"https://rmi.org/insight/the-battery-mineral-loop",target:"_blank",children:"The Battery Mineral Loop"})," report. As the report shows, the combined forces of efficiency, innovation, and circularity have the potential to peak demand for battery mineral mining and bring the system toward net zero. These advancements help us transition from extraction to a circular loop, with compounding benefits for our climate, security, health, and wealth."]}),y.jsxs("p",{children:["The dashboard enables decision makers and interested stakeholders to explore our global scenarios or design their own. By adjusting the inputs for battery uptake and solutions, users can visualize the anticipated battery demand and recycling demand as well as the resulting demand for cobalt, nickel, and lithium — and how much the system-level mineral demand can be reduced through combined efficiency and circularity levers. Settings are initially set to the “Accelerated” case described in ",y.jsx("a",{href:"https://rmi.org/insight/the-battery-mineral-loop",target:"_blank",children:"The Battery Mineral Loop"})," report and can be changed through the user input panel."]}),y.jsxs("p",{children:["Throughout this page, “batteries” refer to lithium-ion batteries and their close relatives (such as sodium-ion batteries). The methodology for this dashboard is detailed in the Appendix of ",y.jsx("a",{href:"https://rmi.org/insight/the-battery-mineral-loop",target:"_blank",children:"The Battery Mineral Loop"})," report. For any additional queries or outreach, contact Sudeshna Mohanty ([email protected])"]})]}),y.jsx("section",{id:"section-form-charts",className:"space-y-12",children:y.jsx("div",{className:"pb-12",children:y.jsxs("div",{className:"relative grid grid-cols-12 items-start _gap-x-6 gap-y-8 overflow-clip",children:[y.jsx("div",{id:"minerals-loop-form",className:"top-0 col-span-12 max-h-full p-4 md:sticky md:col-span-5 md:max-h-screen md:overflow-y-auto xl:col-span-4",children:y.jsx(_3,{className:"bcei-form",title:"Minerals Loop Form",subheading:"Enter Demand (500 - 1500) and Year (2023 - 2032) to receive chart data.",showData:s,setShowData:n,setResponseData:k=>{x(k)},clear:O,setClear:Y,setStatus:te,status:Q})}),y.jsxs("div",{id:"minerals-loop-charts",className:"col-span-12 md:col-span-7 xl:col-span-8 flex flex-col ",children:[y.jsxs(fd,{title:"Battery demand and recycling demand trajectory",accordion:!0,isOpen:!0,children:[y.jsxs("div",{id:"section-chart-1",className:"pb-16",children:[y.jsx(F3,{title:"Battery Demand",data:u.chart_one,clear:O,showData:s,caption:"Exhibit 1",chartDefault:z3}),y.jsxs("p",{children:[y.jsx("b",{children:"Exhibit 1"})," shows global annual battery demand across all sectors, including electrified transportation as well as stationary storage and consumer electronics."]}
271),y.jsxs("p",{children:["In the ",y.jsx("i",{children:"accelerated battery"})," lifetime scenario, battery demand for a given year is reduced because existing, longer-lasting batteries fill that demand. This results in some years having lower demand than the previous year, and appears as small dips in the overall battery demand trajectory."]})]}),y.jsxs("div",{id:"section-chart-2",className:"relative pb-16",children:[y.jsxs("div",{className:"absolute top-16 left-32 w-1/4 flex-grow flex flex-col gap-4 items-start flex-wrap",children:[y.jsx(Jx,{className:"w-full",backgroundColor:"#fff",isSelected:W,onClick:()=>{G(!0),E(!1)},children:"Without production scrap"}),y.jsx(Jx,{className:"w-full",backgroundColor:"#fff",isSelected:T,onClick:()=>{E(!0),G(!1)},children:"With production scrap"})]}),y.jsx(U3,{title:"Collected Recycling Feedstock",data:u.chart_two,showData:s,clear:O,caption:"Exhibit 2",eolVolumesOnly:W,allVolumes:T,isMobile:_,isTablet:g,isDesktop:w,chartDefault:od}),y.jsxs("p",{children:["In ",y.jsx("b",{children:"Exhibit 2"}),", collected recycling feedstock is calculated from end-of-life (EOL) volumes and collection efficiency. This can be used to inform recycling infrastructure investments. To view the total EOL and production scrap volumes, set collection efficiency (within recycling parameters) to 100%. Users can include or exclude production scrap in the calculation by toggling the option."]}),y.jsx("p",{children:"Chemistry mix for battery demand, and correspondingly end-of-life (EOL) batteries, will shift through time, and we need to plan for scenarios in which recycling feedstocks largely constitute lithium-ion batteries without any nickel or cobalt (e.g., LFP), or non-lithium chemistries. Production scrap will be the dominant recycling feedstock until the mid 2030s."})]})]}),y.jsxs(fd,{title:"Net Demand for Key Mined Minerals",accordion:!0,isOpen:!0,children:[y.jsxs("div",{className:"pb-8",children:[y.jsxs("p",{children:[y.jsx("b",{children:"Exhibits 3-5"})," show global demand, recycling, and net demand for mined cobalt, nickel, and lithium. Net demand is the total demand minus the quantity recycled, which is shown as negative since it reduces net demand. All units are kilotons."]}),y.jsx("p",{children:"Each exhibit also shows the cumulative net demand (2024–2050) and how much it has changed compared to the baseline scenario, as well as the  year in which net demand peaks. A positive value for reduction in cumulative demand indicates a reduction from the baseline scenario, while a negative value indicates an increase from baseline."}),y.jsx("p",{children:"Production scrap is factored into the mineral demand and recycling calculations. To view results without production scrap, set battery manufacturing scrap rate (within recycling parameters) to zero."})]}),y.jsxs(Yg,{spans:[8,4],gap:2,className:"_items-center pb-16",children:[y.jsx("div",{id:"section-chart-3",children:y.jsx(Hg,{title:"Lithium Net Demand",data:u.chart_three,showData:s,clear:O,caption:"Exhibit 3",chartDefault:hd})}),y.jsx(Gg,{className:"w-1/2 lg:w-full mx-auto",data:u.chart_three,clear:O,defaultData:hd})]}),y.jsxs(Yg,{spans:[8,4],gap:2,className:"_items-center pb-16",children:[y.jsx("div",{id:"section-chart-4",children:y.jsx(Hg,{title:"Nickel Net Demand",data:u.chart_four,showData:s,clear:O,caption:"Exhibit 4",chartDefault:dd})}),y.jsx(Gg,{className:"w-1/2 lg:w-full mx-auto",data:u.chart_four,clear:O,defaultData:dd})]}),y.jsxs(Yg,{spans:[8,4],gap:2,className:"items-start pb-16",children:[y.jsx("div",{id:"section-chart-5",children:y.jsx(Hg,{title:"Cobalt Net Demand",data:u.chart_five,showData:s,clear:O,caption:"Exhibit 5",chartDefault:Qx})}),y.jsx(Gg,{className:"w-1/2 lg:w-full mx-auto",data:u.chart_five,clear:O,defaultData:Qx})]})]}),y.jsxs("div",{className:"px-4",children:[y.jsx("h5",{className:"uppercase pt-6 pb-3",children:"Acknowledgements"}),y.jsx("p",{className:"text-sm font-bold",children:"The Battery Mineral Loop Dashboard was developed with generous philanthropic support by Sall Family Foundation. RMI would like to acknowledge the support from Bloomberg and the Energy Demand changes Induced by Technological and Social innovations (EDITS) project, which is coordinated by the Research Institute of Innovative Technology for the Earth and International Institute for Applied Systems Analysis (and funded by Japan's Ministry of Economy, Trade, and Industry), in providing inputs and valuable insights into the dashboard development."}),y.jsx("p",{className:"text-sm font-bold",children:"The specific views expressed in this dashboard are those of its authors, and do not necessarily reflect the views of these external organizations."}),y.jsxs("p",{className:"text-sm font-bold",children:[y.jsx("a",{href:"https://rmi.org/battery-circular-economy-initiative/",target:"_blank",children:"Return to the Battery Circular Economy Initiative (BCEI) home page "}),"to view all BCEI-related insights and resources."]}),r&&G3&&y.jsxs($0,{title:"Exhibit Data",className:"mb-4",classNameLabel:"py-2",children:[y.jsx(bn,{title:"Exhibit One",data:u&&u.chart_one}),y.jsx(bn,{title:"Exhibit Two",data:u&&u.chart_two}),y.jsx(bn,{title:"Exhibit Three",data:u&&u.chart_three}),y.jsx(bn,{title:"Exhibit Four",data:u&&u.chart_four}),y.jsx(bn,{title:"Exhibit Five",data:u&&u.chart_five})]})]})]})]})})})]})})})}const q3=Zp({components:{MuiChip:{styleOverrides:{root:{}}}}});function K3(r){const{isOpen:s,handleDismiss:n,status:c,setStatus:l,title:u,subheading:x,showData:O=!1,setShowData:Y,responseData:Q,clear:te,setClear:W,className:G}=r;let K={recyclingCollectionPassenger:60,recyclingCollectionTwoThreeWheelers:40,recyclingCollectionMedHeavyDuty:80,recyclingCollectionStationary:80,recyclingRecoveryLithium:80,recyclingRecoveryNickelCobalt:95};
271const S={efficiencyMobility:21,efficiencyFreight:16,efficiencyVehicles:28,efficiencyBatteries:6},T={low:{type:"low",cu:8,al:3,mn2:4,co2:33,ni2:21,lithiumCarbonate:15},high:{type:"high",cu:8,al:4,mn2:5,co2:64,ni2:26,lithiumCarbonate:66}},E={low:"low",high:"high"},_={recyclingFeedstockCost:45,recyclingCapacityUtilization:50,recyclingIncentives:0},g={lfp:"lfp",nmc811:"nmc811",nmc532:"nmc532",nca:"nca"},w={batteryAmount:993};let k={recyclingChemistry:g.lfp,recyclingFeedstockCost:_.recyclingFeedstockCost,recyclingCapacityUtilization:_.recyclingCapacityUtilization,recyclingMetalPrices:E.high,recyclingMetalPricesValues:T.high,recyclingIncentives:_.recyclingIncentives,batteryAmount:w.batteryAmount,batteryMixType:"default",batteryChemistry:g.lfp};const[b,C]=Me.useState(0),[m,q]=Me.useState({}),[V,H]=Me.useState(k),[M,$]=Me.useState(K),[P,h]=Me.useState(S),[f,L]=Me.useState(""),[v,A]=Me.useState([1,0]),[B,R]=Me.useState([1,0]),[D,Z]=Me.useState([1,0]),[X,ie]=Me.useState([1,0,0]),[oe,le]=Me.useState([1,0]),[ue,F]=Me.useState([1,0,0]),[N,ee]=Me.useState([1,0,0]),[ce,j]=Me.useState([1,0,0,0]),[I,U]=Me.useState([1,0]),[J,se]=Me.useState([0,1]),[ae,he]=Me.useState([1,0,0,0]),[me,ve]=Me.useState([1,0]);function ke(){j([1,0,0,0]),U([1,0]),se([0,1]),ve([1,0]),he([1,0,0,0]),H(k),W(!0)}function Pe(fe,xe){const Ee={...V};Ee[fe]=xe,H(Ee)}function ge(fe){const xe={...V};fe.forEach((Ee,Se)=>{xe[Ee[0]]=Ee[1]}),H(xe)}async function de(fe){fe.preventDefault(),W(!0),Q(f),l("loading");const Ee="https://ev-dashboard-flask.onrender.com/api"+"/triple-bottomline",Se=await fetch(Ee,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(V)}).catch(Te=>{console.log(`Error Message: ${Te}`)}),be=await Se.json();console.log(be),Se.ok?(L(be),W(!1),Q(be),l("success")):l("error")}return y.jsx("form",{onSubmit:fe=>de(fe),className:Xt(`border border-slate-400 bg-white p-2 ${G}`),children:y.jsx(lm,{isVisible:c==="loading",loader:c==="loading",children:y.jsxs(N0,{theme:q3,children:[y.jsx(Rn,{title:"User Inputs",children:y.jsxs("p",{className:"mt-1 pb-4 text-sm leading-6 text-gray-600",children:[y.jsx("strong",{children:"Hit SUBMIT at the bottom of this form "}),"to run the simulation."]})}),y.jsxs(Rn,{title:"Profitability of Recycling",accordion:!0,isOpen:!0,children:[y.jsxs("div",{className:"input-recycling-chemistry pb-4",children:[y.jsx(si,{label:"Chemistry",name:"recycling-chemistry",info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Chemistry"}),y.jsx("p",{children:"Select among dominant EV battery chemistries, which are used to calculate residual value of battery minerals and feedstock acquisition cost as a function of residual value. (See User Guide for full names of battery chemistries.)"})]})}),y.jsxs("div",{className:"flex flex-wrap gap-4",children:[y.jsx(Lt,{rounded:!0,onClick:fe=>{fe.preventDefault(),j([1,0,0,0]),Pe("recyclingChemistry",g.lfp)},selected:ce[0],children:"LFP"}),y.jsx(Lt,{rounded:!0,onClick:fe=>{fe.preventDefault(),j([0,1,0,0]),Pe("recyclingChemistry",g.nmc811)},selected:ce[1],children:"NMC811"}),y.jsx(Lt,{rounded:!0,onClick:fe=>{fe.preventDefault(),j([0,0,1,0]),Pe("recyclingChemistry",g.nmc532)},selected:ce[2],children:"NMC532"}),y.jsx(Lt,{rounded:!0,onClick:fe=>{fe.preventDefault(),j([0,0,0,1]),Pe("recyclingChemistry",g.nca)},selected:ce[3],children:"NCA"})]})]}),y.jsx("div",{className:"input-recycling-feedstock-cost pb-4",children:y.jsx("div",{className:"",children:y.jsx(yr,{label:"Feedstock Acquisition Cost",labelUnits:"% of residual value",name:"recycling-feedstock-cost",onChange:fe=>{Pe("recyclingFeedstockCost",fe.target.value)},value:Number(V.recyclingFeedstockCost),min:0,max:75,required:!0,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Feedstock acquisition cost"}),y.jsx("p",{children:"Price paid by recyclers for EOL batteries as a portion of recoverable materials in spent batteries."})]})})})}),y.jsx("div",{className:"input-recycling-capacity-utilization pb-4",children:y.jsx("div",{className:"",children:y.jsx(yr,{label:"Plant capacity utilization",labelUnits:"%",name:"recycling-capacity-utilization",onChange:fe=>{Pe("recyclingCapacityUtilization",fe.target.value)},value:Number(V.recyclingCapacityUtilization),min:50,max:85,required:!0,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Plant Capacity Utilization"}),y.jsx("p",{children:"The percentage of a recycling factory’s nameplate capacity that is being used at a given time."})]})})})}),y.jsxs("div",{className:"input-recycling-metal-prices pb-4",children:[y.jsx(si,{label:"Metal prices",name:"recycling-metal-prices",info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Metal Prices"}),y.jsx("p",{children:"The market value of the metals recovered through recycling. “High” represents average prices observed in Q4 2022 and “low” represents the average prices observed in Q1 2024. (See User Guide for details.)"})]})}),y.jsxs("div",{className:"flex flex-wrap gap-4",children:[y.jsx(Lt,{rounded:!0,onClick:fe=>{fe.preventDefault(),se([1,0]),ge([["recyclingMetalPrices",E.low],["recyclingMetalPricesValues",T.low]])},selected:J[0],children:"Low"}),y.jsx(Lt,{rounded:!0,onClick:fe=>{fe.preventDefault(),se([0,1]),ge([["recyclingMetalPrices",E.high],["recyclingMetalPricesValues",T.high]])},selected:J[1],children:"High"})]}),y.jsxs("div",{className:"grid grid-cols-12 _metal-prices-table text-sm px-4 py-4 border-0 gap-y-2 font-bold",children:[y.jsx("div",{className:"col-span-6 text-left  border-b-2 font-bold ",children:"Metal"}),y.jsxs("div",{className:"col-span-6 text-right border-b-2 font-bold ",children:["Cost"," ",y.jsxs("span",{className:"text-sm text-gray-600 font-normal",children:[" ","($/kg)"]})]}),y.jsx("div",{className:"col-span-6 text-left",children:"Cobalt"}),y.jsx("div",{className:"col-span-6 text-right",children:V.recyclingMetalPricesValues.co2}),y.jsx("div",{className:"col-span-6 text-left",children:"Nickel"}),y.jsx("div",{className:"col-span-6 text-right",children:V.recyclingMetalPricesValues.ni2}),y.jsx("div",{className:"col-span-6 text-left",children:"Lithium Carbonate"}),y.jsx("div",{className:"col-span-6 text-right",children:V.recyclingMetalPricesValues.lithiumCarbonate})]})]}),y.jsx("div",{className:"input-recycling-incentive pb-4",children:y.jsx("div",{className:"",children:y.jsx(yr,{label:"Incentives",labelUnits:"$ per tonne of battery recycled",name:"recycling-incentive",onChange:fe=>{Pe("recyclingIncentives",parseInt(fe.target.value))},value:V.recyclingIncentives,min:0,max:3750,disabled:J[1]===1,required:!0,step:5,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Incentives"}),y.jsx("p",{children:"Any available policy-driven financial incentives, in dollars per ton of recycled battery feedstock."})]})})})})]}),y.jsxs(Rn,{title:"EOL Battery Volume Projections",accordion:!0,children:[y.jsx("div",{className:"input-battery-amount pb-4",children:y.jsx("div",{className:"",children:y.jsx(yr,{label:"Amount of EOL Batteries in 2040",labelUnits:"GWh",name:"battery-amount",onChange:fe=>{Pe("batteryAmount",fe.target.value)},value:Number(V.batteryAmount),min:400,max:1500,required:!0,info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Amount of EOL Batteries in 2040"}),y.jsx("p",{children:"The feedstock from spent EV batteries in 2040 in GWh."})]})})})}),y.jsxs("div",{className:"input-recycling-chemistry pb-4",children:[y.jsx(si,{label:"Chemistry Mix for EOL Battery Feedstock",name:"recycling-chemistry",info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Chemistry Mix for EOL Battery Feedstock"}),y.jsx("p",{children:"Choose “default chemistry mix” to distribute feedstock among the four included battery chemistries, according to RMI analysis (see User Guide), or select “individual chemistry” to evaluate one chemistry at a time."})]})}),y.jsxs("div",{className:"flex flex-wrap gap-4",children:[y.jsx(Lt,{rounded:!0,onClick:fe=>{fe.preventDefault(),ve([1,0]),Pe("batteryMixType","default")},selected:me[0],children:"Default Chemistry Mix"}),y.jsx(Lt,{rounded:!0,onClick:fe=>{fe.preventDefault(),ve([0,1]),Pe("batteryMixType","individual")},selected:me[1],children:"Individual Chemistry"})]})]}),y.jsxs("div",{className:"input-recycling-chemistry pb-4",children:[y.jsx(si,{label:"Chemistry",name:"battery-chemistry",info:y.jsxs(y.Fragment,{children:[y.jsx("p",{className:"font-bold",children:"Chemistry"}),y.jsx("p",{children:"If “individual chemistry” is selected above, choose the chemistry of interest."})]})}),y.jsxs("div",{className:"flex flex-wrap gap-4",children:[y.jsx(Lt,{rounded:!0,onClick:fe=>{fe.preventDefault(),he([1,0,0,0]),Pe("batteryChemistry",g.lfp)},selected:ae[0],disabled:me[0]===1,children:"LFP"}),y.jsx(Lt,{rounded:!0,onClick:fe=>{fe.preventDefault(),he([0,1,0,0]),Pe("batteryChemistry",g.nmc811)},selected:ae[1],disabled:me[0]===1,children:"NMC811"}),y.jsx(Lt,{rounded:!0,onClick:fe=>{fe.preventDefault(),he([0,0,1,0]),Pe("batteryChemistry",g.nmc532)},selected:ae[2],disabled:me[0]===1,children:"NMC532"}),y.jsx(Lt,{rounded:!0,onClick:fe=>{fe.preventDefault(),he([0,0,0,1]),Pe("batteryChemistry",g.nca)},selected:ae[3],disabled:me[0]===1,children:"NCA"})]})]})]}),y.jsx(Rn,{className:"mb-0",children:y.jsxs("div",{className:"flex flex-wrap justify-end gap-4",children:[y.jsx(ws,{variant:"outlined",onClick:fe=>{fe.preventDefault(),W&&W(!0),ke()},children:"Reset"}),y.jsx(ws,{id:"form-submit-button",type:"submit",variant:"contained",sx:{backgroundColor:"#1976D2"},children:"Submit"}),y.jsx(ws,{className:"h-10",variant:"outlined",onClick:fe=>{fe.preventDefault(),Y(!O)},children:"Show Data"})]})}),y.jsx("div",{className:"",children:O&&y.jsx(Sn,{title:"Payload",response:V})})]})})})}
271function Z3(r,s){const{options:n,data:c,title:l,subtitle:u,animate:x=!0,caption:O,showData:Y=!1,clear:Q=!0,updateMethod:te}=r,W=Me.useRef(null);return n.title.text=l,n.subtitle.text=u,Me.useEffect(()=>{if(W.current&&W.current.chart&&c){const G=W.current.chart;c!==void 0?c.series.forEach((K,S)=>{G.series[S]?G.series[S].setData(K.data,!0,{duration:500}):G.addSeries({...K},!0)}):G.series.forEach(K=>{K.remove(!0)})}},[c]),Me.useEffect(()=>{s&&(s.current=W.current)},[s]),y.jsxs(y.Fragment,{children:[y.jsx(Ai,{highcharts:bt,options:n,ref:W}),O&&y.jsx(ci,{className:"pb-8",content:O}),Y&&y.jsx(Sn,{title:`Data${O?" for "+O:": "}`,response:c,clear:Q})]})}const Ob=Gt.forwardRef(Z3);var Vg={exports:{}},ev;function Q3(){return ev||(ev=1,function(r){(function(s){r.exports?(s.default=s,r.exports=s):s(typeof Highcharts<"u"?Highcharts:void 0)})(function(s){var n=s?s._modules:{};function c(l,u,x,O){l.hasOwnProperty(u)||(l[u]=O.apply(null,x),typeof CustomEvent=="function"&&s.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:u,module:l[u]}})))}c(n,"Extensions/Pane/PaneComposition.js",[n["Core/Utilities.js"]],function(l){let{addEvent:u,correctFloat:x,defined:O,pick:Y}=l;function Q(S){let T,E=this;return S&&E.pane.forEach(_=>{te(S.chartX-E.plotLeft,S.chartY-E.plotTop,_.center)&&(T=_)}),T}function te(S,T,E,_,g){let w=!0,k=E[0],b=E[1],C=Math.sqrt(Math.pow(S-k,2)+Math.pow(T-b,2));if(O(_)&&O(g)){let m=Math.atan2(x(T-b,8),x(S-k,8));g!==_&&(w=_>g?m>=_&&m<=Math.PI||m<=g&&m>=-Math.PI:m>=_&&m<=x(g,8))}return C<=Math.ceil(E[2]/2)&&w}function W(S){this.polar&&(S.options.inverted&&([S.x,S.y]=[S.y,S.x]),S.isInsidePlot=this.pane.some(T=>te(S.x,S.y,T.center,T.axis&&T.axis.normalizedStartAngleRad,T.axis&&T.axis.normalizedEndAngleRad)))}function G(S){let T=this.chart;S.hoverPoint&&S.hoverPoint.plotX&&S.hoverPoint.plotY&&T.hoverPane&&!te(S.hoverPoint.plotX,S.hoverPoint.plotY,T.hoverPane.center)&&(S.hoverPoint=void 0)}function K(S){let T=this.chart;T.polar?(T.hoverPane=T.getHoverPane(S),S.filter=function(E){return E.visible&&!(!S.shared&&E.directTouch)&&Y(E.options.enableMouseTracking,!0)&&(!T.hoverPane||E.xAxis.pane===T.hoverPane)}):T.hoverPane=void 0}return{compose:function(S,T){let E=S.prototype;E.getHoverPane||(E.collectionsWithUpdate.push("pane"),E.getHoverPane=Q,u(S,"afterIsInsidePlot",W),u(T,"afterGetHoverData",G),u(T,"beforeGetHoverData",K))}}}),c(n,"Extensions/Pane/PaneDefaults.js",[],function(){return{pane:{center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0},background:{shape:"circle",borderRadius:0,borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"}}}),c(n,"Extensions/Pane/Pane.js",[n["Series/CenteredUtilities.js"],n["Extensions/Pane/PaneComposition.js"],n["Extensions/Pane/PaneDefaults.js"],n["Core/Utilities.js"]],function(l,u,x,O){let{extend:Y,merge:Q,splat:te}=O;class W{constructor(K,S){this.coll="pane",this.init(K,S)}init(K,S){this.chart=S,this.background=[],S.pane.push(this),this.setOptions(K)}setOptions(K){this.options=K=Q(x.pane,this.chart.angular?{background:{}}:void 0,K)}render(){let K=this.options,S=this.chart.renderer;this.group||(this.group=S.g("pane-group").attr({zIndex:K.zIndex||0}).add()),this.updateCenter();let T=this.options.background;if(T){let E=Math.max((T=te(T)).length,this.background.length||0);for(let _=0;_<E;_++)T[_]&&this.axis?this.renderBackground(Q(x.background,T[_]),_):this.background[_]&&(this.background[_]=this.background[_].destroy(),this.background.splice(_,1))}}renderBackground(K,S){let T={class:"highcharts-pane "+(K.className||"")},E="animate";this.chart.styledMode||Y(T,{fill:K.backgroundColor,stroke:K.borderColor,"stroke-width":K.borderWidth}),this.background[S]||(this.background[S]=this.chart.renderer.path().add(this.group),E="attr"),this.background[S][E]({d:this.axis.getPlotBandPath(K.from,K.to,K)}).attr(T)}updateCenter(K){this.center=(K||this.axis||{}).center=l.getCenter.call(this)}update(K,S){Q(!0,this.options,K),this.setOptions(this.options),this.render(),this.chart.axes.forEac
271h(function(T){T.pane===this&&(T.pane=null,T.update({},S))},this)}}return W.compose=u.compose,W}),c(n,"Series/AreaRange/AreaRangePoint.js",[n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u){let{area:{prototype:{pointClass:x,pointClass:{prototype:O}}}}=l.seriesTypes,{defined:Y,isNumber:Q}=u;return class extends x{setState(){let te=this.state,W=this.series,G=W.chart.polar;Y(this.plotHigh)||(this.plotHigh=W.yAxis.toPixels(this.high,!0)),Y(this.plotLow)||(this.plotLow=this.plotY=W.yAxis.toPixels(this.low,!0)),W.lowerStateMarkerGraphic=W.stateMarkerGraphic,W.stateMarkerGraphic=W.upperStateMarkerGraphic,this.graphic=this.graphics&&this.graphics[1],this.plotY=this.plotHigh,G&&Q(this.plotHighX)&&(this.plotX=this.plotHighX),O.setState.apply(this,arguments),this.state=te,this.plotY=this.plotLow,this.graphic=this.graphics&&this.graphics[0],G&&Q(this.plotLowX)&&(this.plotX=this.plotLowX),W.upperStateMarkerGraphic=W.stateMarkerGraphic,W.stateMarkerGraphic=W.lowerStateMarkerGraphic,W.lowerStateMarkerGraphic=void 0;let K=W.modifyMarkerSettings();O.setState.apply(this,arguments),W.restoreMarkerSettings(K)}haloPath(){let te=this.series.chart.polar,W=[];return this.plotY=this.plotLow,te&&Q(this.plotLowX)&&(this.plotX=this.plotLowX),this.isInside&&(W=O.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,te&&Q(this.plotHighX)&&(this.plotX=this.plotHighX),this.isTopInside&&(W=W.concat(O.haloPath.apply(this,arguments))),W}isValid(){return Q(this.low)&&Q(this.high)}}}),c(n,"Series/AreaRange/AreaRangeSeries.js",[n["Series/AreaRange/AreaRangePoint.js"],n["Core/Globals.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u,x,O){let{noop:Y}=u,{area:Q,area:{prototype:te},column:{prototype:W}}=x.seriesTypes,{addEvent:G,defined:K,extend:S,isArray:T,isNumber:E,pick:_,merge:g}=O;class w extends Q{toYData(b){return[b.low,b.high]}highToXY(b){let C=this.chart,m=this.xAxis.postTranslate(b.rectPlotX||0,this.yAxis.len-(b.plotHigh||0));b.plotHighX=m.x-C.plotLeft,b.plotHigh=m.y-C.plotTop,b.plotLowX=b.plotX}getGraphPath(b){let C=[],m=[],q=te.getGraphPath,V=this.options,H=this.chart.polar,M=H&&V.connectEnds!==!1,$=V.connectNulls,P,h,f,L=V.step;for(P=(b=b||this.points).length;P--;){h=b[P];let D=H?{plotX:h.rectPlotX,plotY:h.yBottom,doCurve:!1}:{plotX:h.plotX,plotY:h.plotY,doCurve:!1};h.isNull||M||$||b[P+1]&&!b[P+1].isNull||m.push(D),f={polarPlotY:h.polarPlotY,rectPlotX:h.rectPlotX,yBottom:h.yBottom,plotX:_(h.plotHighX,h.plotX),plotY:h.plotHigh,isNull:h.isNull},m.push(f),C.push(f),h.isNull||M||$||b[P-1]&&!b[P-1].isNull||m.push(D)}let v=q.call(this,b);L&&(L===!0&&(L="left"),V.step={left:"right",center:"center",right:"left"}[L]);let A=q.call(this,C),B=q.call(this,m);V.step=L;let R=[].concat(v,A);return!this.chart.polar&&B[0]&&B[0][0]==="M"&&(B[0]=["L",B[0][1],B[0][2]]),this.graphPath=R,this.areaPath=v.concat(B),R.isArea=!0,R.xMap=v.xMap,this.areaPath.xMap=v.xMap,R}drawDataLabels(){var f,L;let b,C,m,q,V,H=this.points,M=H.length,$=[],P=this.options.dataLabels,h=this.chart.inverted;if(P){if(T(P)?(q=P[0]||{enabled:!1},V=P[1]||{enabled:!1}):((q=S({},P)).x=P.xHigh,q.y=P.yHigh,(V=S({},P)).x=P.xLow,V.y=P.yLow),q.enabled||((f=this.hasDataLabels)==null?void 0:f.call(this))){for(b=M;b--;)if(C=H[b]){let{plotHigh:v=0,plotLow:A=0}=C;m=q.inside?v<A:v>A,C.y=C.high,C._plotY=C.plotY,C.plotY=v,$[b]=C.dataLabel,C.dataLabel=C.dataLabelUpper,C.below=m,h?q.align||(q.align=m?"right":"left"):q.verticalAlign||(q.verticalAlign=m?"top":"bottom")}for(this.options.dataLabels=q,te.drawDataLabels&&te.drawDataLabels.apply(this,arguments),b=M;b--;)(C=H[b])&&(C.dataLabelUpper=C.dataLabel,C.dataLabel=$[b],delete C.dataLabels,C.y=C.low,C.plotY=C._plotY)}if(V.enabled||(L=this.hasDataLabels)!=null&&L.call(this)){for(b=M;b--;)if(C=H[b]){let{plotHigh:v=0,plotLow:A=0}=C;m=V.inside?v<A:v>A,C.below=!m,h?V.align||(V.align=m?"left":"right"):V.verticalAlign||(V.verticalAlign=m?"bottom":"top")}this.options.dataLabels=V,te.drawDataLabels&&te.drawDataLabels.apply(this,arguments)}if(q.enabled)for(b=M;b--;)(C=H[b])&&(C.dataLabels=[C.dataLabelUpper,C.dataLabel].filter(function(v){return!!v}));this.options.dataLabels=P}}alignDataLabel(){W.alignDataLabel.apply(this,arguments)}
271modifyMarkerSettings(){let b={marker:this.options.marker,symbol:this.symbol};if(this.options.lowMarker){let{options:{marker:C,lowMarker:m}}=this;this.options.marker=g(C,m),m.symbol&&(this.symbol=m.symbol)}return b}restoreMarkerSettings(b){this.options.marker=b.marker,this.symbol=b.symbol}drawPoints(){let b,C,m=this.points.length,q=this.modifyMarkerSettings();for(te.drawPoints.apply(this,arguments),this.restoreMarkerSettings(q),b=0;b<m;)(C=this.points[b]).graphics=C.graphics||[],C.origProps={plotY:C.plotY,plotX:C.plotX,isInside:C.isInside,negative:C.negative,zone:C.zone,y:C.y},(C.graphic||C.graphics[0])&&(C.graphics[0]=C.graphic),C.graphic=C.graphics[1],C.plotY=C.plotHigh,K(C.plotHighX)&&(C.plotX=C.plotHighX),C.y=_(C.high,C.origProps.y),C.negative=C.y<(this.options.threshold||0),this.zones.length&&(C.zone=C.getZone()),this.chart.polar||(C.isInside=C.isTopInside=C.plotY!==void 0&&C.plotY>=0&&C.plotY<=this.yAxis.len&&C.plotX>=0&&C.plotX<=this.xAxis.len),b++;for(te.drawPoints.apply(this,arguments),b=0;b<m;)(C=this.points[b]).graphics=C.graphics||[],(C.graphic||C.graphics[1])&&(C.graphics[1]=C.graphic),C.graphic=C.graphics[0],C.origProps&&(S(C,C.origProps),delete C.origProps),b++}hasMarkerChanged(b,C){let m=b.lowMarker,q=C.lowMarker||{};return m&&(m.enabled===!1||q.symbol!==m.symbol||q.height!==m.height||q.width!==m.width)||super.hasMarkerChanged(b,C)}}return w.defaultOptions=g(Q.defaultOptions,{lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}}),G(w,"afterTranslate",function(){this.pointArrayMap.join(",")==="low,high"&&this.points.forEach(k=>{let b=k.high,C=k.plotY;k.isNull?k.plotY=void 0:(k.plotLow=C,k.plotHigh=E(b)?this.yAxis.translate(this.dataModify?this.dataModify.modifyValue(b):b,!1,!0,void 0,!0):void 0,this.dataModify&&(k.yBottom=k.plotHigh))})},{order:0}),G(w,"afterTranslate",function(){this.points.forEach(k=>{if(this.chart.polar)this.highToXY(k),k.plotLow=k.plotY,k.tooltipPos=[((k.plotHighX||0)+(k.plotLowX||0))/2,((k.plotHigh||0)+(k.plotLow||0))/2];else{let b=k.pos(!1,k.plotLow),C=k.pos(!1,k.plotHigh);b&&C&&(b[0]=(b[0]+C[0])/2,b[1]=(b[1]+C[1])/2),k.tooltipPos=b}})},{order:3}),S(w.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:l,pointValKey:"low",setStackedPoints:Y}),x.registerSeriesType("arearange",w),w}),c(n,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[n["Series/AreaRange/AreaRangeSeries.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u,x){let{spline:{prototype:O}}=u.seriesTypes,{merge:Y,extend:Q}=x;class te extends l{}return te.defaultOptions=Y(l.defaultOptions),Q(te.prototype,{getPointSpline:O.getPointSpline}),u.registerSeriesType("areasplinerange",te),te}),c(n,"Series/BoxPlot/BoxPlotSeriesDefaults.js",[],function(){return{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b>{series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2}}),c(n,"Series/BoxPlot/BoxPlotSeries.js",[n["Series/BoxPlot/BoxPlotSeriesDefaults.js"],n["Series/Column/ColumnSeries.js"],n["Core/Globals.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u,x,O,Y){let{noop:Q}=x,{crisp:te,extend:W,merge:G,pick:K}=Y;class S extends u{pointAttribs(){return{}}translate(){let E=this.yAxis,_=this.pointArrayMap;super.translate.apply(this),this.points.forEach(function(g){_.forEach(function(w){g[w]!==null&&(g[w+"Plot"]=E.translate(g[w],0,1,0,1))}),g.plotHigh=g.highPlot})}drawPoints(){let E,_,g,w,k,b,C,m,q,V,H,M,$,P=this.points,h=this.options,f=this.chart,L=f.renderer,v=this.doQuartiles!==!1,A=this.options.whiskerLength;for(let B of P){let R=(m=B.graphic)?"animate":"attr",D=B.shapeArgs,Z={},X={},ie={},oe={},le=B.color||this.color;if(B.plotY!==void 0){let ue;q=D.width,H=(V=D.x)+q,M=q/2,E=v?B.q1Plot:B.lowPlot,_=v?B.q3Plot:B.lowPlot,g=B.highPlot,w=B.lowPlot,m||(B.graphic=m=L.g("point").add(this.group),B.stem=L.path().addClass("highcharts-boxplot-stem").add(m),A&&(B.whiskers=L.path().addClass("highcharts-boxplot-whisker").add(m)),v&&(B.box=L.path(C).addClass("highcharts-boxplot-box").add(m)),B.medianShape=L.path(b).addClass("highcharts-boxplot-median").add(m)),f.styledMode||(X.stroke=B.stemColor||h.stemColor||le,X["stroke-width"]=K(B.stemWidth,h.stemWidth,h.lineWidth),X.dashstyle=B.stemDashStyle||h.stemDashStyle||h.dashStyle,B.stem.attr(X),A&&(ie.stroke=B.whiskerColor||h.whiskerColor||le,ie["stroke-width"]=K(B.whiskerWidth,h.whiskerWidth,h.lineWidth),ie.dashstyle=B.whiskerDashStyle||h.whiskerDashStyle||h.dashStyle,B.whiskers.attr(ie)),v&&(Z.fill=B.fillColor||h.fillColor||le,Z.stroke=h.lineColor||le,Z["stroke-width"]=h.lineWidth||0,Z.dashstyle=B.boxDashStyle||h.boxDashStyle||h.dashStyle,B.box.attr(Z)),oe.stroke=B.medianColor||h.medianColor||le,oe["stroke-width"]=K(B.medianWidth,h.medianWidth,h.lineWidth),oe.dashstyle=B.medianDashStyle||h.medianDashStyle||h.dashStyle,B.medianShape.attr(oe));let F=te((B.plotX||0)+(this.pointXOffset||0)+(this.barW||0)/2,B.stem.strokeWidth());if(ue=[["M",F,_],["L",F,g],["M",F,E],["L",F,w]],B.stem[R]({d:ue}),v){let N=B.box.strokeWidth();E=te(E,N),_=te(_,N),ue=[["M",V=te(V,N),_],["L",V,E],["L",H=te(H,N),E],["L",H,_],["L",V,_],["Z"]],B.box[R]({d:ue})}if(A){let N=B.whiskers.strokeWidth();g=te(B.highPlot,N),w=te(B.lowPlot,N),ue=[["M",te(F-($=typeof A=="string"&&/%$/.test(A)?M*parseFloat(A)/100:Number(A)/2)),g],["L",te(F+$),g],["M",te(F-$),w],["L",te(F+$),w]],B.whiskers[R]({d:ue})}ue=[["M",V,k=te(B.medianPlot,B.medianShape.strokeWidth())],["L",H,k]],B.medianShape[R]({d:ue})}}}toYData(E){return[E.low,E.q1,E.median,E.q3,E.high]}}return S.defaultOptions=G(u.defaultOptions,l),W(S.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointV
271alKey:"high",drawDataLabels:Q,setStackedPoints:Q}),O.registerSeriesType("boxplot",S),S}),c(n,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"0.9em",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),c(n,"Series/Bubble/BubbleLegendItem.js",[n["Core/Color/Color.js"],n["Core/Templating.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(l,u,x,O){let{parse:Y}=l,{noop:Q}=x,{arrayMax:te,arrayMin:W,isNumber:G,merge:K,pick:S,stableSort:T}=O;return class{constructor(E,_){this.setState=Q,this.init(E,_)}init(E,_){this.options=E,this.visible=!0,this.chart=_.chart,this.legend=_}addToLegend(E){E.splice(this.options.legendIndex,0,this)}drawLegendSymbol(E){let _,g=S(E.options.itemDistance,20),w=this.legendItem||{},k=this.options,b=k.ranges,C=k.connectorDistance;if(!b||!b.length||!G(b[0].value)){E.options.bubbleLegend.autoRanges=!0;return}T(b,function(H,M){return M.value-H.value}),this.ranges=b,this.setOptions(),this.render();let m=this.getMaxLabelSize(),q=this.ranges[0].radius,V=2*q;_=(_=C-q+m.width)>0?_:0,this.maxLabel=m,this.movementX=k.labels.align==="left"?_:0,w.labelWidth=V+_+g,w.labelHeight=V+m.height/2}setOptions(){let E=this.ranges,_=this.options,g=this.chart.series[_.seriesIndex],w=this.legend.baseline,k={zIndex:_.zIndex,"stroke-width":_.borderWidth},b={zIndex:_.zIndex,"stroke-width":_.connectorWidth},C={align:this.legend.options.rtl||_.labels.align==="left"?"right":"left",zIndex:_.zIndex},m=g.options.marker.fillOpacity,q=this.chart.styledMode;E.forEach(function(V,H){q||(k.stroke=S(V.borderColor,_.borderColor,g.color),k.fill=S(V.color,_.color,m!==1?Y(g.color).setOpacity(m).get("rgba"):g.color),b.stroke=S(V.connectorColor,_.connectorColor,g.color)),E[H].radius=this.getRangeRadius(V.value),E[H]=K(E[H],{center:E[0].radius-E[H].radius+w}),q||K(!0,E[H],{bubbleAttribs:K(k),connectorAttribs:K(b),labelAttribs:C})},this)}getRangeRadius(E){let _=this.options,g=this.options.seriesIndex,w=this.chart.series[g],k=_.ranges[0].value,b=_.ranges[_.ranges.length-1].value,C=_.minSize,m=_.maxSize;return w.getRadius.call(this,b,k,C,m,E)}render(){let E=this.legendItem||{},_=this.chart.renderer,g=this.options.zThreshold;for(let w of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),E.symbol=_.g("bubble-legend"),E.label=_.g("bubble-legend-item").css(this.legend.itemStyle||{}),E.symbol.translateX=0,E.symbol.translateY=0,E.symbol.add(E.label),E.label.add(E.group),this.ranges))w.value>=g&&this.renderRange(w);this.hideOverlappingLabels()}renderRange(E){let _=this.ranges[0],g=this.legend,w=this.options,k=w.labels,b=this.chart,C=b.series[w.seriesIndex],m=b.renderer,q=this.symbols,V=q.labels,H=E.center,M=Math.abs(E.radius),$=w.connectorDistance||0,P=k.align,h=g.options.rtl,f=w.borderWidth,L=w.connectorWidth,v=_.radius||0,A=H-M-f/2+L/2,B=(A%1?1:.5)-(L%2?0:.5),R=m.styledMode,D=h||P==="left"?-$:$;P==="center"&&(D=0,w.connectorDistance=0,E.labelAttribs.align="center"),q.bubbleItems.push(m.circle(v,H+B,M).attr(R?{}:E.bubbleAttribs).addClass((R?"highcharts-color-"+C.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(w.className||"")).add(this.legendItem.symbol)),q.connectors.push(m.path(m.crispLine([["M",v,A],["L",v+D,A]],w.connectorWidth)).attr(R?{}:E.connectorAttribs).addClass((R?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(w.connectorClassName||"")).add(this.legendItem.symbol));let Z=m.text(this.formatLabel(E)).attr(R?{}:E.labelAttribs).css(R?{}:k.style).addClass("highcharts-bubble-legend-labels "+(w.labels.className||"")).add(this.legendItem.symbol),X={x:v+D+w.labels.x,y:A+w.labels.y+.4*Z.getBBox().height};Z.attr(X),V.push(Z),Z.placed=!0,Z.alignAttr=X}getMaxLabelSize(){let E,_;
271return this.symbols.labels.forEach(function(g){_=g.getBBox(!0),E=E?_.width>E.width?_:E:_}),E||{}}formatLabel(E){let _=this.options,g=_.labels.formatter,w=_.labels.format,{numberFormatter:k}=this.chart;return w?u.format(w,E):g?g.call(E):k(E.value,1)}hideOverlappingLabels(){let E=this.chart,_=this.options.labels.allowOverlap,g=this.symbols;!_&&g&&(E.hideOverlappingLabels(g.labels),g.labels.forEach(function(w,k){w.newOpacity?w.newOpacity!==w.oldOpacity&&g.connectors[k].show():g.connectors[k].hide()}))}getRanges(){let E=this.legend.bubbleLegend,_=E.chart.series,g=E.options.ranges,w,k,b=Number.MAX_VALUE,C=-Number.MAX_VALUE;return _.forEach(function(m){m.isBubble&&!m.ignoreSeries&&(k=m.zData.filter(G)).length&&(b=S(m.options.zMin,Math.min(b,Math.max(W(k),m.options.displayNegative===!1?m.options.zThreshold:-Number.MAX_VALUE))),C=S(m.options.zMax,Math.max(C,te(k))))}),w=b===C?[{value:C}]:[{value:b},{value:(b+C)/2},{value:C,autoRanges:!0}],g.length&&g[0].radius&&w.reverse(),w.forEach(function(m,q){g&&g[q]&&(w[q]=K(g[q],m))}),w}predictBubbleSizes(){let E=this.chart,_=E.legend.options,g=_.floating,w=_.layout==="horizontal",k=w?E.legend.lastLineHeight:0,b=E.plotSizeX,C=E.plotSizeY,m=E.series[this.options.seriesIndex],q=m.getPxExtremes(),V=Math.ceil(q.minPxSize),H=Math.ceil(q.maxPxSize),M=Math.min(C,b),$,P=m.options.maxSize;return g||!/%$/.test(P)?$=H:($=(M+k)*(P=parseFloat(P))/100/(P/100+1),(w&&C-$>=b||!w&&b-$>=C)&&($=H)),[V,Math.ceil($)]}updateRanges(E,_){let g=this.legend.options.bubbleLegend;g.minSize=E,g.maxSize=_,g.ranges=this.getRanges()}correctSizes(){let E=this.legend,_=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(_.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,_.maxPxSize),E.render())}}}),c(n,"Series/Bubble/BubbleLegendComposition.js",[n["Series/Bubble/BubbleLegendDefaults.js"],n["Series/Bubble/BubbleLegendItem.js"],n["Core/Defaults.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(l,u,x,O,Y){let{setOptions:Q}=x,{composed:te}=O,{addEvent:W,objectEach:G,pushUnique:K,wrap:S}=Y;function T(b,C,m){let q,V,H,M=this.legend,$=E(this)>=0;M&&M.options.enabled&&M.bubbleLegend&&M.options.bubbleLegend.autoRanges&&$?(q=M.bubbleLegend.options,V=M.bubbleLegend.predictBubbleSizes(),M.bubbleLegend.updateRanges(V[0],V[1]),q.placed||(M.group.placed=!1,M.allItems.forEach(P=>{(H=P.legendItem||{}).group&&(H.group.translateY=void 0)})),M.render(),q.placed||(this.getMargins(),this.axes.forEach(function(P){P.visible&&P.render(),q.placed||(P.setScale(),P.updateNames(),G(P.ticks,function(h){h.isNew=!0,h.isNewLabel=!0}))}),this.getMargins()),q.placed=!0,b.call(this,C,m),M.bubbleLegend.correctSizes(),k(M,_(M))):(b.call(this,C,m),M&&M.options.enabled&&M.bubbleLegend&&(M.render(),k(M,_(M))))}function E(b){let C=b.series,m=0;for(;m<C.length;){if(C[m]&&C[m].isBubble&&C[m].visible&&C[m].zData.length)return m;m++}return-1}function _(b){let C=b.allItems,m=[],q=C.length,V,H,M,$=0,P=0;for($=0;$<q;$++)if(H=C[$].legendItem||{},M=(C[$+1]||{}).legendItem||{},H.labelHeight&&(C[$].itemHeight=H.labelHeight),C[$]===C[q-1]||H.y!==M.y){for(m.push({height:0}),V=m[m.length-1];P<=$;P++)C[P].itemHeight>V.height&&(V.height=C[P].itemHeight);V.step=$}return m}function g(b){let C=this.bubbleLegend,m=this.options,q=m.bubbleLegend,V=E(this.chart);C&&C.ranges&&C.ranges.length&&(q.ranges.length&&(q.autoRanges=!!q.ranges[0].autoRanges),this.destroyItem(C)),V>=0&&m.enabled&&q.enabled&&(q.seriesIndex=V,this.bubbleLegend=new u(q,this),this.bubbleLegend.addToLegend(b.allItems))}function w(b){let C;if(b.defaultPrevented)return!1;let m=b.legendItem,q=this.chart,V=m.visible;this&&this.bubbleLegend&&(m.visible=!V,m.ignoreSeries=V,C=E(q)>=0,this.bubbleLegend.visible!==C&&(this.update({bubbleLegend:{enabled:C}}),this.bubbleLegend.visible=C),m.visible=V)}function k(b,C){let m=b.allItems,q=b.options.rtl,V,H,M,$,P=0;m.forEach((h,f)=>{($=h.legendItem||{}).group&&(V=$.group.translateX||0,H=$.y||0,((M=h.movementX)||q&&h.ranges)&&(M=q?V-h.options.maxSize/2:V+M,$.group.attr({translateX:M})),f>C[P].step&&P++,$.group.attr({translateY:Math.round(H+C[P].height/2)}),$.y=H+C[P].height/2)})}return{compose:function(b,C){K(te,"Series.BubbleLegend")&&(Q({legend:{bubbleLegend:l}}),S(b.prototype,"drawChartBox",T),W(C,"afterGetAllItems",g),W(C,"itemClick",w))}}}),c(n,"Series/Bubble/BubblePoint.js",[n["Core/Series/Point.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u,x){let{seriesTypes:{scatter:{prototype:{pointClass:O}}}}=u,{extend:Y}=x;class Q extends O{haloPath(W){return l.prototype.haloPath.call(this,W===0?0:(this.marker&&this.marker.radiu
271s||0)+W)}}return Y(Q.prototype,{ttBelow:!1}),Q}),c(n,"Series/Bubble/BubbleSeries.js",[n["Series/Bubble/BubbleLegendComposition.js"],n["Series/Bubble/BubblePoint.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u,x,O,Y,Q){let{parse:te}=x,{composed:W,noop:G}=O,{series:K,seriesTypes:{column:{prototype:S},scatter:T}}=Y,{addEvent:E,arrayMax:_,arrayMin:g,clamp:w,extend:k,isNumber:b,merge:C,pick:m,pushUnique:q}=Q;function V(){let M=this.len,{coll:$,isXAxis:P,min:h}=this,f=P?"xData":"yData",L=(this.max||0)-(h||0),v=0,A=M,B=M/L,R;($==="xAxis"||$==="yAxis")&&(this.series.forEach(D=>{if(D.bubblePadding&&D.reserveSpace()){this.allowZoomOutside=!0,R=!0;let Z=D[f];if(P&&((D.onPoint||D).getRadii(0,0,D),D.onPoint&&(D.radii=D.onPoint.radii)),L>0){let X=Z.length;for(;X--;)if(b(Z[X])&&this.dataMin<=Z[X]&&Z[X]<=this.max){let ie=D.radii&&D.radii[X]||0;v=Math.min((Z[X]-h)*B-ie,v),A=Math.max((Z[X]-h)*B+ie,A)}}}}),R&&L>0&&!this.logarithmic&&(A-=M,B*=(M+Math.max(0,v)-Math.min(A,M))/M,[["min","userMin",v],["max","userMax",A]].forEach(D=>{m(this.options[D[0]],this[D[1]])===void 0&&(this[D[0]]+=D[2]/B)})))}class H extends T{static compose($,P,h){l.compose(P,h),q(W,"Series.Bubble")&&E($,"foundExtremes",V)}animate($){!$&&this.points.length<this.options.animationLimit&&this.points.forEach(function(P){let{graphic:h,plotX:f=0,plotY:L=0}=P;h&&h.width&&(this.hasRendered||h.attr({x:f,y:L,width:1,height:1}),h.animate(this.markerAttribs(P),this.options.animation))},this)}getRadii(){let $=this.zData,P=this.yData,h=[],f,L,v,A=this.chart.bubbleZExtremes,{minPxSize:B,maxPxSize:R}=this.getPxExtremes();if(!A){let D,Z=Number.MAX_VALUE,X=-Number.MAX_VALUE;this.chart.series.forEach(ie=>{if(ie.bubblePadding&&ie.reserveSpace()){let oe=(ie.onPoint||ie).getZExtremes();oe&&(Z=Math.min(m(Z,oe.zMin),oe.zMin),X=Math.max(m(X,oe.zMax),oe.zMax),D=!0)}}),D?(A={zMin:Z,zMax:X},this.chart.bubbleZExtremes=A):A={zMin:0,zMax:0}}for(L=0,f=$.length;L<f;L++)v=$[L],h.push(this.getRadius(A.zMin,A.zMax,B,R,v,P&&P[L]));this.radii=h}getRadius($,P,h,f,L,v){let A=this.options,B=A.sizeBy!=="width",R=A.zThreshold,D=P-$,Z=.5;if(v===null||L===null)return null;if(b(L)){if(A.sizeByAbsoluteValue&&(L=Math.abs(L-R),P=D=Math.max(P-R,Math.abs($-R)),$=0),L<$)return h/2-1;D>0&&(Z=(L-$)/D)}return B&&Z>=0&&(Z=Math.sqrt(Z)),Math.ceil(h+Z*(f-h))/2}hasData(){return!!this.processedXData.length}markerAttribs($,P){let h=super.markerAttribs($,P),{height:f=0,width:L=0}=h;return this.chart.inverted?k(h,{x:($.plotX||0)-L/2,y:($.plotY||0)-f/2}):h}pointAttribs($,P){let h=this.options.marker.fillOpacity,f=K.prototype.pointAttribs.call(this,$,P);return h!==1&&(f.fill=te(f.fill).setOpacity(h).get("rgba")),f}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:$,options:P,radii:h}=this,{minPxSize:f}=this.getPxExtremes(),L=$.length;for(;L--;){let v=$[L],A=h?h[L]:0;this.zoneAxis==="z"&&(v.negative=(v.z||0)<(P.zThreshold||0)),b(A)&&A>=f/2?(v.marker=k(v.marker,{radius:A,width:2*A,height:2*A}),v.dlBox={x:v.plotX-A,y:v.plotY-A,width:2*A,height:2*A}):(v.shapeArgs=v.plotY=v.dlBox=void 0,v.isInside=!1)}}getPxExtremes(){let $=Math.min(this.chart.plotWidth,this.chart.plotHeight),P=L=>{let v;return typeof L=="string"&&(v=/%$/.test(L),L=parseInt(L,10)),v?$*L/100:L},h=P(m(this.options.minSize,8)),f=Math.max(P(m(this.options.maxSize,"20%")),h);return{minPxSize:h,maxPxSize:f}}getZExtremes(){let $=this.options,P=(this.zData||[]).filter(b);if(P.length){let h=m($.zMin,w(g(P),$.displayNegative===!1?$.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),f=m($.zMax,_(P));if(b(h)&&b(f))return{zMin:h,zMax:f}}}}return H.defaultOptions=C(T.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:M}=this.series.chart,{z:$}=this.point;return b($)?M($,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),k(H.prototype,{alignDataLabel:S.alignDataLabel,applyZones:G,bubblePadding:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:u,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),E(H,"updatedData",M=>{delete M.target.chart.bubbleZExtremes}),E(H,"remove",M=>{delete M.target.chart.bubbleZExtremes}),Y.registerSeriesType("bubble",H),H}),c(n,"Series/ColumnRange/ColumnRangePoint.js",[n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u){let{seriesTypes:{column:{prototype:{pointClass:{prototype:x}}},arearange:{prototype:{pointClass:O}}}}=l,{extend:Y,isNumber:Q}=u;class te extends O{isValid(){return Q(this.low)}}return Y(te.prototype,{setState:x.setState}),te}),c(n,"Series/ColumnRange/ColumnRangeSeries.js",[n["Series/ColumnRange/ColumnRangePoint.js"],n["Core/Globals.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u,x,O){let{noop:Y}=u,{seriesTypes:{arearange:Q,column:te,column:{prototype:W}}}=x,{addEvent:G,clamp:K,extend:S,isNumber:T,merge:E,pick:_}=O;class g extends Q{setOptions(){return E(!0,arguments[0],{stacking:void 0}),Q.prototype.setOptions.apply(this,arguments)}translate(){return W.translate.apply(this)}pointAttribs(){return W.pointAttribs.apply(this,arguments)}translate3dPoints(){return W.translate3dPoints.apply(this,arguments)}translate3dShapes(){return W.translate3dShapes.apply(this,arguments)}afterColumnTranslate(){let k,b,C,m,q=this.yAxis,V=this.xAxis,H=V.startAngleRad,M=this.chart,$=this.xAxis.isRadial,P=M
271ath.max(M.chartWidth,M.chartHeight)+999;this.points.forEach(h=>{let f=h.shapeArgs||{},L=this.options.minPointLength,v=h.plotY,A=q.translate(h.high,0,1,0,1);if(T(A)&&T(v))if(h.plotHigh=K(A,-P,P),h.plotLow=K(v,-P,P),m=h.plotHigh,Math.abs(k=_(h.rectPlotY,h.plotY)-h.plotHigh)<L?(b=L-k,k+=b,m-=b/2):k<0&&(k*=-1,m-=k),$&&this.polar)C=h.barX+H,h.shapeType="arc",h.shapeArgs=this.polar.arc(m+k,m,C,C+h.pointWidth);else{f.height=k,f.y=m;let{x:B=0,width:R=0}=f;h.shapeArgs=E(h.shapeArgs,this.crispCol(B,m,R,k)),h.tooltipPos=M.inverted?[q.len+q.pos-M.plotLeft-m-k/2,V.len+V.pos-M.plotTop-B-R/2,k]:[V.left-M.plotLeft+B+R/2,q.pos-M.plotTop+m+k/2,k]}})}}return g.defaultOptions=E(te.defaultOptions,Q.defaultOptions,{borderRadius:{where:"all"},pointRange:null,legendSymbol:"rectangle",marker:null,states:{hover:{halo:!1}}}),G(g,"afterColumnTranslate",function(){g.prototype.afterColumnTranslate.apply(this)},{order:5}),S(g.prototype,{directTouch:!0,pointClass:l,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:W.adjustForMissingColumns,animate:W.animate,crispCol:W.crispCol,drawGraph:Y,drawPoints:W.drawPoints,getSymbol:Y,drawTracker:W.drawTracker,getColumnMetrics:W.getColumnMetrics}),x.registerSeriesType("columnrange",g),g}),c(n,"Series/ColumnPyramid/ColumnPyramidSeriesDefaults.js",[],function(){return{}}),c(n,"Series/ColumnPyramid/ColumnPyramidSeries.js",[n["Series/ColumnPyramid/ColumnPyramidSeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u,x){let{column:O}=u.seriesTypes,{clamp:Y,merge:Q,pick:te}=x;class W extends O{translate(){let K=this.chart,S=this.options,T=this.dense=this.closestPointRange*this.xAxis.transA<2,E=this.borderWidth=te(S.borderWidth,T?0:1),_=this.yAxis,g=S.threshold,w=te(S.minPointLength,5),k=this.getColumnMetrics(),b=k.width,C=this.pointXOffset=k.offset,m=this.translatedThreshold=_.getThreshold(g),q=this.barW=Math.max(b,1+2*E);for(let V of(K.inverted&&(m-=.5),S.pointPadding&&(q=Math.ceil(q)),super.translate(),this.points)){let H=te(V.yBottom,m),M=999+Math.abs(H),$=Y(V.plotY,-M,_.len+M),P=q/2,h=Math.min($,H),f=Math.max($,H)-h,L=V.plotX+C,v,A,B,R,D,Z,X,ie,oe,le,ue;S.centerInCategory&&(L=this.adjustForMissingColumns(L,b,V,k)),V.barX=L,V.pointWidth=b,V.tooltipPos=K.inverted?[_.len+_.pos-K.plotLeft-$,this.xAxis.len-L-P,f]:[L+P,$+_.pos-K.plotTop,f],v=g+(V.total||V.y),S.stacking==="percent"&&(v=g+(V.y<0)?-100:100);let F=_.toPixels(v,!0);B=(A=K.plotHeight-F-(K.plotHeight-m))?P*(h-F)/A:0,R=A?P*(h+f-F)/A:0,Z=L-B+P,X=L+B+P,ie=L+R+P,oe=L-R+P,le=h-w,ue=h+f,V.y<0&&(le=h,ue=h+f+w),K.inverted&&(D=_.width-h,A=F-(_.width-m),B=P*(F-D)/A,R=P*(F-(D-f))/A,X=(Z=L+P+B)-2*B,ie=L-R+P,oe=L+R+P,le=h,ue=h+f-w,V.y<0&&(ue=h+f+w)),V.shapeType="path",V.shapeArgs={x:Z,y:le,width:X-Z,height:f,d:[["M",Z,le],["L",X,le],["L",ie,ue],["L",oe,ue],["Z"]]}}}}return W.defaultOptions=Q(O.defaultOptions,l),u.registerSeriesType("columnpyramid",W),W}),c(n,"Series/ErrorBar/ErrorBarSeriesDefaults.js",[],function(){return{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null}}),c(n,"Series/ErrorBar/ErrorBarSeries.js",[n["Series/BoxPlot/BoxPlotSeries.js"],n["Series/Column/ColumnSeries.js"],n["Series/ErrorBar/ErrorBarSeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u,x,O,Y){let{arearange:Q}=O.seriesTypes,{addEvent:te,merge:W,extend:G}=Y;class K extends l{getColumnMetrics(){return this.linkedParent&&this.linkedParent.columnMetrics||u.prototype.getColumnMetrics.call(this)}drawDataLabels(){let T=this.pointValKey;if(Q)for(let E of(Q.prototype.drawDataLabels.call(this),this.points))E.y=E[T]}toYData(T){return[T.low,T.high]}}return K.defaultOptions=W(l.defaultOptions,x),te(K,"afterTranslate",function(){for(let S of this.points)S.plotLow=S.plotY},{order:0}),G(K.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),O.registerSeriesType("errorbar",K),K}),c(n,"Series/Gauge/GaugePoint.js",[n["Core/Series/SeriesRegistry.js"]],function(l){let{series:{prototype:{pointClass:u}}}=l;return class extends u{setState(x){this.state=x}}}),c(n,"Series/Gauge/GaugeSeries.js",[n["Series/Gauge/GaugePoint.js"],n["Core/Globals.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u,x,O){let{noop:Y}=u,{series:Q,seriesTypes:{column:te}}=x,{clamp:W,isNumber:G,extend:K,merge:S,pick:T,pInt:E,defined:_}=O;class g extends Q{translate(){let k=this.yAxis,b=this.options,C=k.center;
271this.generatePoints(),this.points.forEach(m=>{let q=S(b.dial,m.dial),V=E(q.radius)*C[2]/200,H=E(q.baseLength)*V/100,M=E(q.rearLength)*V/100,$=q.baseWidth,P=q.topWidth,h=b.overshoot,f=k.startAngleRad+k.translate(m.y,void 0,void 0,void 0,!0);(G(h)||b.wrap===!1)&&(h=G(h)?h/180*Math.PI:0,f=W(f,k.startAngleRad-h,k.endAngleRad+h)),f=180*f/Math.PI,m.shapeType="path";let L=q.path||[["M",-M,-$/2],["L",H,-$/2],["L",V,-P/2],["L",V,P/2],["L",H,$/2],["L",-M,$/2],["Z"]];m.shapeArgs={d:L,translateX:C[0],translateY:C[1],rotation:f},m.plotX=C[0],m.plotY=C[1],_(m.y)&&k.max-k.min&&(m.percentage=(m.y-k.min)/(k.max-k.min)*100)})}drawPoints(){let k=this,b=k.chart,C=k.yAxis.center,m=k.pivot,q=k.options,V=q.pivot,H=b.renderer;k.points.forEach(M=>{let $=M.graphic,P=M.shapeArgs,h=P.d,f=S(q.dial,M.dial);$?($.animate(P),P.d=h):M.graphic=H[M.shapeType](P).addClass("highcharts-dial").add(k.group),b.styledMode||M.graphic[$?"animate":"attr"]({stroke:f.borderColor,"stroke-width":f.borderWidth,fill:f.backgroundColor})}),m?m.animate({translateX:C[0],translateY:C[1]}):V&&(k.pivot=H.circle(0,0,V.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(C[0],C[1]).add(k.group),b.styledMode||k.pivot.attr({fill:V.backgroundColor,stroke:V.borderColor,"stroke-width":V.borderWidth}))}animate(k){let b=this;k||b.points.forEach(C=>{let m=C.graphic;m&&(m.attr({rotation:180*b.yAxis.startAngleRad/Math.PI}),m.animate({rotation:C.shapeArgs.rotation},b.options.animation))})}render(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),Q.prototype.render.call(this),this.group.clip(this.chart.clipRect)}setData(k,b){Q.prototype.setData.call(this,k,!1),this.processData(),this.generatePoints(),T(b,!0)&&this.chart.redraw()}hasData(){return!!this.points.length}}return g.defaultOptions=S(Q.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1}),K(g.prototype,{angular:!0,directTouch:!0,drawGraph:Y,drawTracker:te.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:l,trackerGroups:["group","dataLabelsGroup"]}),x.registerSeriesType("gauge",g),g}),c(n,"Series/DragNodesComposition.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(l,u){let{composed:x}=l,{addEvent:O,pushUnique:Y}=u;function Q(){let te,W,G,K=this;K.container&&(te=O(K.container,"mousedown",S=>{let T=K.hoverPoint;T&&T.series&&T.series.hasDraggableNodes&&T.series.options.draggable&&(T.series.onMouseDown(T,S),W=O(K.container,"mousemove",E=>T&&T.series&&T.series.onMouseMove(T,E)),G=O(K.container.ownerDocument,"mouseup",E=>(W(),G(),T&&T.series&&T.series.onMouseUp(T,E))))})),O(K,"destroy",function(){te()})}return{compose:function(te){Y(x,"DragNodes")&&O(te,"load",Q)},onMouseDown:function(te,W){var K;let G=((K=this.chart.pointer)==null?void 0:K.normalize(W))||W;te.fixedPosition={chartX:G.chartX,chartY:G.chartY,plotX:te.plotX,plotY:te.plotY},te.inDragMode=!0},onMouseMove:function(te,W){var G;if(te.fixedPosition&&te.inDragMode){let K,S,T=this.chart,E=((G=T.pointer)==null?void 0:G.normalize(W))||W,_=te.fixedPosition.chartX-E.chartX,g=te.fixedPosition.chartY-E.chartY,w=T.graphLayoutsLookup;(Math.abs(_)>5||Math.abs(g)>5)&&(K=te.fixedPosition.plotX-_,S=te.fixedPosition.plotY-g,T.isInsidePlot(K,S)&&(te.plotX=K,te.plotY=S,te.hasDragged=!0,this.redrawHalo(te),w.forEach(k=>{k.restartSimulation()})))}},onMouseUp:function(te){te.fixedPosition&&(te.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),te.inDragMode=te.hasDragged=!1,this.options.fixedDraggable||delete te.fixedPosition)},redrawHalo:function(te){te&&this.halo&&this.halo.attr({d:te.haloPath(this.options.states.hover.halo.size)})}}}),c(n,"Series/GraphLayoutComposition.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(l,u,x){let{setAnimation:O}=l,{composed:Y}=u,{addEvent:Q,pushUnique:te}=x;function W(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(T=>{T.updateSimulation()}),this.redraw())}function G(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(T=>{T.updateSimulation(!1)}),this.redraw())}function K(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(T=>{T.stop()})}function S(){let T,E=!1,_=g=>{g.maxIterations--&&isFinite(g.temperature)&&!g.isStable()&&!g.enableSimulation&&(g.beforeStep&&g.beforeStep(),g.step(),T=!1,E=!0)};if(this.graphLayoutsLookup){for(O(!1,this),this.graphLayoutsLookup.forEach(g=>g.start());!T;)T=!0,this.graphLayoutsLookup.forEach(_);
271E&&this.series.forEach(g=>{g&&g.layout&&g.render()})}}return{compose:function(T){te(Y,"GraphLayout")&&(Q(T,"afterPrint",W),Q(T,"beforePrint",G),Q(T,"predraw",K),Q(T,"render",S))},integrations:{},layouts:{}}}),c(n,"Series/PackedBubble/PackedBubblePoint.js",[n["Core/Chart/Chart.js"],n["Core/Series/Point.js"],n["Core/Series/SeriesRegistry.js"]],function(l,u,x){let{seriesTypes:{bubble:{prototype:{pointClass:O}}}}=x;return class extends O{destroy(){var Y;return(Y=this.series)!=null&&Y.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),u.prototype.destroy.apply(this,arguments)}firePointEvent(){let Y=this.series.options;if(this.isParentNode&&Y.parentNode){let Q=Y.allowPointSelect;Y.allowPointSelect=Y.parentNode.allowPointSelect,u.prototype.firePointEvent.apply(this,arguments),Y.allowPointSelect=Q}else u.prototype.firePointEvent.apply(this,arguments)}select(){let Y=this.series.chart;this.isParentNode?(Y.getSelectedPoints=Y.getSelectedParentNodes,u.prototype.select.apply(this,arguments),Y.getSelectedPoints=l.prototype.getSelectedPoints):u.prototype.select.apply(this,arguments)}}}),c(n,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[n["Core/Utilities.js"]],function(l){let{isNumber:u}=l;return{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:!1,tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,parentNode:{allowPointSelect:!1},dataLabels:{formatter:function(){let{numberFormatter:x}=this.series.chart,{value:O}=this.point;return u(O)?x(O,-1):""},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:!0},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}}}),c(n,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(l,u,x){let O=l.getMass(),Y=-x.x*u*this.diffTemperature,Q=-x.y*u*this.diffTemperature;l.fromNode.fixedPosition||(l.fromNode.plotX-=Y*O.fromNode/l.fromNode.degree,l.fromNode.plotY-=Q*O.fromNode/l.fromNode.degree),l.toNode.fixedPosition||(l.toNode.plotX+=Y*O.toNode/l.toNode.degree,l.toNode.plotY+=Q*O.toNode/l.toNode.degree)},attractiveForceFunction:function(l,u){return(u-l)/l},barycenter:function(){let l=this.options.gravitationalConstant||0,u=(this.barycenter.xFactor-(this.box.left+this.box.width)/2)*l,x=(this.barycenter.yFactor-(this.box.top+this.box.height)/2)*l;this.nodes.forEach(function(O){O.fixedPosition||(O.plotX-=u/O.mass/O.degree,O.plotY-=x/O.mass/O.degree)})},getK:function(l){return Math.pow(l.box.width*l.box.height/l.nodes.length,.5)},integrate:function(l,u){let x=-l.options.friction,O=l.options.maxSpeed,Y=u.prevX,Q=u.prevY,te=(u.plotX+u.dispX-Y)*x,W=(u.plotY+u.dispY-Q)*x,G=Math.abs,K=G(te)/(te||1),S=G(W)/(W||1),T=K*Math.min(O,Math.abs(te)),E=S*Math.min(O,Math.abs(W));u.prevX=u.plotX+u.dispX,u.prevY=u.plotY+u.dispY,u.plotX+=T,u.plotY+=E,u.temperature=l.vectorLength({x:T,y:E})},repulsive:function(l,u,x){let O=u*this.diffTemperature/l.mass/l.degree;l.fixedPosition||(l.plotX+=x.x*O,l.plotY+=x.y*O)},repulsiveForceFunction:function(l,u){return(u-l)/l*(u>l?1:0)}}}),c(n,"Series/PackedBubble/PackedBubbleIntegration.js",[n["Core/Globals.js"],n["Series/Networkgraph/VerletIntegration.js"]],function(l,u){let{noop:x}=l;return{barycenter:function(){let O,Y,Q=this.options.gravitationalConstant,te=this.box,W=this.nodes;for(let G of W)this.options.splitSeries&&!G.isParentNode?(O=G.series.parentNode.plotX,Y=G.series.parentNode.plotY):(O=te.width/2,Y=te.height/2),G.fixedPosition||(G.plotX-=(G.plotX-O)*Q/(G.mass*Math.sqrt(W.length)),G.plotY-=(G.plotY-Y)*Q/(G.mass*Math.sqrt(W.length)))},getK:x,integrate:u.integrate,repulsive:function(O,Y,Q,te){let W=Y*this.diffTemperature/O.mass/O.degree,G=Q.x*W,K=Q.y*W;O.fixedPosition||(O.plotX+=G,O.plotY+=K),te.fixedPosition||(te.plotX-=G,te.plotY-=K)},repulsiveForceFunction:function(O,Y,Q,te){return Math.min(O,(Q.marker.radiu
271s+te.marker.radius)/2)}}}),c(n,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(l,u,x,O){let Y=l.getMass(),Q=x.x/O*u,te=x.y/O*u;l.fromNode.fixedPosition||(l.fromNode.dispX-=Q*Y.fromNode/l.fromNode.degree,l.fromNode.dispY-=te*Y.fromNode/l.fromNode.degree),l.toNode.fixedPosition||(l.toNode.dispX+=Q*Y.toNode/l.toNode.degree,l.toNode.dispY+=te*Y.toNode/l.toNode.degree)},attractiveForceFunction:function(l,u){return l*l/u},barycenter:function(){let l=this.options.gravitationalConstant,u=this.barycenter.xFactor,x=this.barycenter.yFactor;this.nodes.forEach(function(O){if(!O.fixedPosition){let Y=O.getDegree(),Q=Y*(1+Y/2);O.dispX+=(u-O.plotX)*l*Q/O.degree,O.dispY+=(x-O.plotY)*l*Q/O.degree}})},getK:function(l){return Math.pow(l.box.width*l.box.height/l.nodes.length,.3)},integrate:function(l,u){u.dispX+=u.dispX*l.options.friction,u.dispY+=u.dispY*l.options.friction;let x=u.temperature=l.vectorLength({x:u.dispX,y:u.dispY});x!==0&&(u.plotX+=u.dispX/x*Math.min(Math.abs(u.dispX),l.temperature),u.plotY+=u.dispY/x*Math.min(Math.abs(u.dispY),l.temperature))},repulsive:function(l,u,x,O){l.dispX+=x.x/O*u/l.degree,l.dispY+=x.y/O*u/l.degree},repulsiveForceFunction:function(l,u){return u*u/l}}}),c(n,"Series/Networkgraph/QuadTreeNode.js",[],function(){class l{constructor(x){this.body=!1,this.isEmpty=!1,this.isInternal=!1,this.nodes=[],this.box=x,this.boxSize=Math.min(x.width,x.height)}divideBox(){let x=this.box.width/2,O=this.box.height/2;this.nodes[0]=new l({left:this.box.left,top:this.box.top,width:x,height:O}),this.nodes[1]=new l({left:this.box.left+x,top:this.box.top,width:x,height:O}),this.nodes[2]=new l({left:this.box.left+x,top:this.box.top+O,width:x,height:O}),this.nodes[3]=new l({left:this.box.left,top:this.box.top+O,width:x,height:O})}getBoxPosition(x){let O=x.plotX<this.box.left+this.box.width/2,Y=x.plotY<this.box.top+this.box.height/2;return O?Y?0:3:Y?1:2}insert(x,O){let Y;this.isInternal?this.nodes[this.getBoxPosition(x)].insert(x,O-1):(this.isEmpty=!1,this.body?O?(this.isInternal=!0,this.divideBox(),this.body!==!0&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,O-1),this.body=!0),this.nodes[this.getBoxPosition(x)].insert(x,O-1)):((Y=new l({top:x.plotX||NaN,left:x.plotY||NaN,width:.1,height:.1})).body=x,Y.isInternal=!1,this.nodes.push(Y)):(this.isInternal=!1,this.body=x))}updateMassAndCenter(){let x=0,O=0,Y=0;if(this.isInternal){for(let Q of this.nodes)Q.isEmpty||(x+=Q.mass,O+=Q.plotX*Q.mass,Y+=Q.plotY*Q.mass);O/=x,Y/=x}else this.body&&(x=this.body.mass,O=this.body.plotX,Y=this.body.plotY);this.mass=x,this.plotX=O,this.plotY=Y}}return l}),c(n,"Series/Networkgraph/QuadTree.js",[n["Series/Networkgraph/QuadTreeNode.js"]],function(l){return class{constructor(u,x,O,Y){this.box={left:u,top:x,width:O,height:Y},this.maxDepth=25,this.root=new l(this.box),this.root.isInternal=!0,this.root.isRoot=!0,this.root.divideBox()}calculateMassAndCenter(){this.visitNodeRecursive(null,null,function(u){u.updateMassAndCenter()})}insertNodes(u){for(let x of u)this.root.insert(x,this.maxDepth)}visitNodeRecursive(u,x,O){let Y;if(u||(u=this.root),u===this.root&&x&&(Y=x(u)),Y!==!1){for(let Q of u.nodes){if(Q.isInternal){if(x&&(Y=x(Q)),Y===!1)continue;this.visitNodeRecursive(Q,x,O)}else Q.body&&x&&x(Q.body);O&&O(Q)}u===this.root&&O&&O(u)}}}}),c(n,"Series/Networkgraph/ReingoldFruchtermanLayout.js",[n["Series/Networkgraph/EulerIntegration.js"],n["Core/Globals.js"],n["Series/GraphLayoutComposition.js"],n["Series/Networkgraph/QuadTree.js"],n["Core/Utilities.js"],n["Series/Networkgraph/VerletIntegration.js"]],function(l,u,x,O,Y,Q){let{win:te}=u,{clamp:W,defined:G,isFunction:K,fireEvent:S,pick:T}=Y;class E{constructor(){this.box={},this.currentStep=0,this.initialRendering=!0,this.links=[],this.nodes=[],this.series=[],this.simulation=!1}static compose(g){x.compose(g),x.integrations.euler=l,x.integrations.verlet=Q,x.layouts["reingold-fruchterman"]=E}init(g){this.options=g,this.nodes=[],this.links=[],this.series=[],this.box={x:0,y:0,width:0,height:0},this.setInitialRendering(!0),this.integration=x.integrations[g.integration],this.enableSimulation=g.enableSimulation,this.attractiveForce=T(g.attractiveForce,this.integration.attractiveForceFunction),this.repulsiveForce=T(g.repulsiveForce,this.integration.repulsiveForceFunction),this.approximation=g.approximation}updateSimulation(g){this.enableSimulation=T(g,this.options.enableSimulation)}start(){let g=this.series,w=this.options;this.currentStep=0,this.forces=g[0]&&g[0].forces||[],this.chart=g[0]&&g[0].chart,this.initialRendering&&(this.initPositions(),g.forEach(function(k){k.finishedAnimating=!0,k.render()})),this.setK(),this.resetSimulation(w),this.enableSimulation&&this.step()}step(){let g=this.series;for(let w of(this.currentStep++,this.approximation==="barnes-hut"&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter()),this.forces||[]))this[w+"Forces"](this.temperature);if(this.applyLimits(),this.temperature=this.coolDown(this.startTemperature,this.diffTemperature,this.currentStep),this.prevSystemTemperature=this.systemTemperature,this.systemTemperature=this.getSystemTemperature(),this.enableSimulation){for(let w of g)w.chart&&w.render();this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&te.cancelAnimationFrame(this.simulation),this.simulation=te.requestAnimationFrame(()=>
271this.step())):(this.simulation=!1,this.series.forEach(w=>{S(w,"afterSimulation")}))}}stop(){this.simulation&&te.cancelAnimationFrame(this.simulation)}setArea(g,w,k,b){this.box={left:g,top:w,width:k,height:b}}setK(){this.k=this.options.linkLength||this.integration.getK(this)}addElementsToCollection(g,w){for(let k of g)w.indexOf(k)===-1&&w.push(k)}removeElementFromCollection(g,w){let k=w.indexOf(g);k!==-1&&w.splice(k,1)}clear(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()}resetSimulation(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()}restartSimulation(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))}setMaxIterations(g){this.maxIterations=T(g,this.options.maxIterations)}setTemperature(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)}setDiffTemperature(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)}setInitialRendering(g){this.initialRendering=g}createQuadTree(){this.quadTree=new O(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)}initPositions(){let g=this.options.initialPositions;if(K(g))for(let w of(g.call(this),this.nodes))G(w.prevX)||(w.prevX=w.plotX),G(w.prevY)||(w.prevY=w.plotY),w.dispX=0,w.dispY=0;else g==="circle"?this.setCircularPositions():this.setRandomPositions()}setCircularPositions(){let g,w=this.box,k=this.nodes,b=2*Math.PI/(k.length+1),C=k.filter(function(M){return M.linksTo.length===0}),m={},q=this.options.initialPositionRadius,V=M=>{for(let $ of M.linksFrom||[])m[$.toNode.id]||(m[$.toNode.id]=!0,H.push($.toNode),V($.toNode))},H=[];for(let M of C)H.push(M),V(M);if(H.length)for(let M of k)H.indexOf(M)===-1&&H.push(M);else H=k;for(let M=0,$=H.length;M<$;++M)(g=H[M]).plotX=g.prevX=T(g.plotX,w.width/2+q*Math.cos(M*b)),g.plotY=g.prevY=T(g.plotY,w.height/2+q*Math.sin(M*b)),g.dispX=0,g.dispY=0}setRandomPositions(){let g,w=this.box,k=this.nodes,b=k.length+1,C=m=>{let q=m*m/Math.PI;return q-Math.floor(q)};for(let m=0,q=k.length;m<q;++m)(g=k[m]).plotX=g.prevX=T(g.plotX,w.width*C(m)),g.plotY=g.prevY=T(g.plotY,w.height*C(b+m)),g.dispX=0,g.dispY=0}force(g,...w){this.integration[g].apply(this,w)}barycenterForces(){this.getBarycenter(),this.force("barycenter")}getBarycenter(){let g=0,w=0,k=0;for(let b of this.nodes)w+=b.plotX*b.mass,k+=b.plotY*b.mass,g+=b.mass;return this.barycenter={x:w,y:k,xFactor:w/g,yFactor:k/g},this.barycenter}barnesHutApproximation(g,w){let k,b,C=this.getDistXY(g,w),m=this.vectorLength(C);return g!==w&&m!==0&&(w.isInternal?w.boxSize/m<this.options.theta&&m!==0?(b=this.repulsiveForce(m,this.k),this.force("repulsive",g,b*w.mass,C,m),k=!1):k=!0:(b=this.repulsiveForce(m,this.k),this.force("repulsive",g,b*w.mass,C,m))),k}repulsiveForces(){if(this.approximation==="barnes-hut")for(let g of this.nodes)this.quadTree.visitNodeRecursive(null,w=>this.barnesHutApproximation(g,w));else{let g,w,k;for(let b of this.nodes)for(let C of this.nodes)b===C||b.fixedPosition||(k=this.getDistXY(b,C),(w=this.vectorLength(k))!==0&&(g=this.repulsiveForce(w,this.k),this.force("repulsive",b,g*C.mass,k,w)))}}attractiveForces(){let g,w,k;for(let b of this.links)b.fromNode&&b.toNode&&(g=this.getDistXY(b.fromNode,b.toNode),(w=this.vectorLength(g))!==0&&(k=this.attractiveForce(w,this.k),this.force("attractive",b,k,g,w)))}applyLimits(){for(let g of this.nodes)g.fixedPosition||(this.integration.integrate(this,g),this.applyLimitBox(g,this.box),g.dispX=0,g.dispY=0)}applyLimitBox(g,w){let k=g.radius;g.plotX=W(g.plotX,w.left+k,w.width-k),g.plotY=W(g.plotY,w.top+k,w.height-k)}coolDown(g,w,k){return g-w*k}isStable(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||this.temperature<=0}getSystemTemperature(){let g=0;for(let w of this.nodes)g+=w.temperature;return g}vectorLength(g){return Math.sqrt(g.x*g.x+g.y*g.y)}getDistR(g,w){let k=this.getDistXY(g,w);return this.vectorLength(k)}getDistXY(g,w){let k=g.plotX-w.plotX,b=g.plotY-w.plotY;return{x:k,y:b,absX:Math.abs(k),absY:Math.abs(b)}}}return E}),c(n,"Series/PackedBubble/PackedBubbleLayout.js",[n["Series/GraphLayoutComposition.js"],n["Series/PackedBubble/PackedBubbleIntegration.js"],n["Series/Networkgraph/ReingoldFruchtermanLayout.js"],n["Core/Utilities.js"]],function(l,u,x,O){let{addEvent:Y,pick:Q}=O;function te(){let K=this.series,S=[];
271return K.forEach(T=>{T.parentNode&&T.parentNode.selected&&S.push(T.parentNode)}),S}function W(){this.allDataPoints&&delete this.allDataPoints}class G extends x{constructor(){super(...arguments),this.index=NaN,this.nodes=[],this.series=[]}static compose(S){x.compose(S),l.integrations.packedbubble=u,l.layouts.packedbubble=G;let T=S.prototype;T.getSelectedParentNodes||(Y(S,"beforeRedraw",W),T.getSelectedParentNodes=te)}beforeStep(){this.options.marker&&this.series.forEach(S=>{S&&S.calculateParentRadius()})}isStable(){let S=Math.abs(this.prevSystemTemperature-this.systemTemperature);return 1>Math.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&S<1e-5||this.temperature<=0}setCircularPositions(){let S=this.box,T=this.nodes,E=2*Math.PI/(T.length+1),_=this.options.initialPositionRadius,g,w,k=0;for(let b of T)this.options.splitSeries&&!b.isParentNode?(g=b.series.parentNode.plotX,w=b.series.parentNode.plotY):(g=S.width/2,w=S.height/2),b.plotX=b.prevX=Q(b.plotX,g+_*Math.cos(b.index||k*E)),b.plotY=b.prevY=Q(b.plotY,w+_*Math.sin(b.index||k*E)),b.dispX=0,b.dispY=0,k++}repulsiveForces(){let S,T,E,_=this,g=_.options.bubblePadding,w=_.nodes;w.forEach(k=>{k.degree=k.mass,k.neighbours=0,w.forEach(b=>{S=0,k!==b&&!k.fixedPosition&&(_.options.seriesInteraction||k.series===b.series)&&(E=_.getDistXY(k,b),(T=_.vectorLength(E)-(k.marker.radius+b.marker.radius+g))<0&&(k.degree+=.01,k.neighbours++,S=_.repulsiveForce(-T/Math.sqrt(k.neighbours),_.k,k,b)),_.force("repulsive",k,S*b.mass,E,b,T))})})}applyLimitBox(S,T){let E,_;this.options.splitSeries&&!S.isParentNode&&this.options.parentNodeLimit&&(E=this.getDistXY(S,S.series.parentNode),(_=S.series.parentNodeRadius-S.marker.radius-this.vectorLength(E))<0&&_>-2*S.marker.radius&&(S.plotX-=.01*E.x,S.plotY-=.01*E.y)),super.applyLimitBox(S,T)}}return l.layouts.packedbubble=G,G}),c(n,"Series/SimulationSeriesUtilities.js",[n["Core/Utilities.js"],n["Core/Animation/AnimationUtilities.js"]],function(l,u){let{merge:x,syncTimeout:O}=l,{animObject:Y}=u;return{initDataLabels:function(){let Q=this.options.dataLabels;if(!this.dataLabelsGroup){let te=this.initDataLabelsGroup();return!this.chart.styledMode&&(Q!=null&&Q.style)&&te.css(Q.style),te.attr({opacity:0}),this.visible&&te.show(),te}return this.dataLabelsGroup.attr(x({opacity:1},this.getPlotBox("data-labels"))),this.dataLabelsGroup},initDataLabelsDefer:function(){var te;let Q=this.options.dataLabels;Q!=null&&Q.defer&&((te=this.options.layoutAlgorithm)!=null&&te.enableSimulation)?O(()=>{this.deferDataLabels=!1},Q?Y(Q.animation).defer:0):this.deferDataLabels=!1}}}),c(n,"Extensions/TextPath.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(l,u){let{deg2rad:x}=l,{addEvent:O,merge:Y,uniqueKey:Q,defined:te,extend:W}=u;function G(T,E){E=Y(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},E);let _=this.renderer.url,g=this.text||this,w=g.textPath,{attributes:k,enabled:b}=E;if(T=T||w&&w.path,w&&w.undo(),T&&b){let C=O(g,"afterModifyTree",m=>{if(T&&b){let q=T.attr("id");q||T.attr("id",q=Q());let V={x:0,y:0};te(k.dx)&&(V.dx=k.dx,delete k.dx),te(k.dy)&&(V.dy=k.dy,delete k.dy),g.attr(V),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let H=m.nodes.slice(0);m.nodes.length=0,m.nodes[0]={tagName:"textPath",attributes:W(k,{"text-anchor":k.textAnchor,href:`${_}#${q}`}),children:H}}});g.textPath={path:T,undo:C}}else g.attr({dx:0,dy:0}),delete g.textPath;return this.added&&(g.textCache="",this.renderer.buildText(g)),this}function K(T){var g;let E=T.bBox,_=(g=this.element)==null?void 0:g.querySelector("textPath");if(_){let w=[],{b:k,h:b}=this.renderer.fontMetrics(this.element),C=b-k,m=RegExp('(<tspan>|<tspan(?!\\sclass="highcharts-br")[^>]*>|<\\/tspan>)',"g"),q=_.innerHTML.replace(m,"").split(/<tspan class="highcharts-br"[^>]*>/),V=q.length,H=(M,$)=>{let{x:P,y:h}=$,f=(_.getRotationOfChar(M)-90)*x,L=Math.cos(f),v=Math.sin(f);return[[P-C*L,h-C*v],[P+k*L,h+k*v]]};for(let M=0,$=0;$<V;$++){let P=q[$].length;for(let h=0;h<P;h+=5)try{let f=M+h+$,[L,v]=H(f,_.getStartPositionOfChar(f));h===0?(w.push(v),w.push(L)):($===0&&w.unshift(v),$===V-1&&w.push(L))}catch{break}M+=P-1;try{let h=M+$,f=_.getEndPositionOfChar(h),[L,v]=H(h,f);w.unshift(v),w.unshift(L)}catch{break}}w.length&&w.push(w[0].slice()),E.polygon=w}return E}function S(T){var w;let E=T.labelOptions,_=T.point,g=E[_.formatPrefix+"TextPath"]||E.textPath;g&&!E.useHTML&&(this.setTextPath(((w=_.getDataLabelPath)==null?void 0:w.call(_,this))||_.graphic,g),_.dataLabelPath&&!g.enabled&&(_.dataLabelPath=_.dataLabelPath.destroy()))}return{compose:function(T){O(T,"afterGetBBox",K),O(T,"beforeAddingDataLabel",S);let E=T.prototype;E.setTextPath||(E.setTextPath=G)}}}),c(n,"Series/PackedBubble/PackedBubbleSeries.js",[n["Core/Color/Color.js"],n["Series/DragNodesComposition.js"],n["Series/GraphLayoutComposition.js"],n["Core/Globals.js"],n["Series/PackedBubble/PackedBubblePoint.js"],n["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],n["Series/PackedBubble/PackedBubbleLayout.js"],n["Core/Series/SeriesRegistry.js"],n["Series/SimulationSeriesUtilities.js"],n["Core/Utilities.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Extensions/TextPath.js"]],function(l,u,x,O,Y,Q,te,W,G,K,S,T){let{parse:E}=l,{noop:_}=O,{series:{prototype:g},seriesTypes:{bubble:w}}=W,{initDataLabels:k,initDataLabelsDefer:b}=G,{addEvent:C,clamp:m,defined:q,extend:V,fireEvent:H,isArray:M,isNumber:$,merge:P,pick:h}=K;T.compose(S);class f extends w{constructor(){super(...arguments),this.parentNodeMass=0,this.deferDataLabels=!0}
271static compose(v,A,B){w.compose(v,A,B),u.compose(A),te.compose(A)}accumulateAllPoints(){let v,A=this.chart,B=[];for(let R of A.series)if(R.is("packedbubble")&&R.reserveSpace()){v=R.yData||[];for(let D=0;D<v.length;D++)B.push([null,null,v[D],R.index,D,{id:D,marker:{radius:0}}])}return B}addLayout(){let v=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},A=v.type||"packedbubble",B=this.chart.options.chart,R=this.chart.graphLayoutsStorage,D=this.chart.graphLayoutsLookup,Z;R||(this.chart.graphLayoutsStorage=R={},this.chart.graphLayoutsLookup=D=[]),(Z=R[A])||(v.enableSimulation=q(B.forExport)?!B.forExport:v.enableSimulation,R[A]=Z=new x.layouts[A],Z.init(v),D.splice(Z.index,0,Z)),this.layout=Z,this.points.forEach(X=>{X.mass=2,X.degree=1,X.collisionNmb=1}),Z.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),Z.addElementsToCollection([this],Z.series),Z.addElementsToCollection(this.points,Z.nodes)}addSeriesLayout(){let v=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},A=v.type||"packedbubble",B=this.chart.graphLayoutsStorage,R=this.chart.graphLayoutsLookup,D=P(v,v.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),Z=B[A+"-series"];Z||(B[A+"-series"]=Z=new x.layouts[A],Z.init(D),R.splice(Z.index,0,Z)),this.parentNodeLayout=Z,this.createParentNodes()}calculateParentRadius(){let v=this.seriesBox();this.parentNodeRadius=m(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,v?Math.max(Math.sqrt(Math.pow(v.width,2)+Math.pow(v.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)}calculateZExtremes(){let v=this.chart.series,A=this.options.zMin,B=this.options.zMax,R=1/0,D=-1/0;return A&&B?[A,B]:(v.forEach(Z=>{Z.yData.forEach(X=>{q(X)&&(X>D&&(D=X),X<R&&(R=X))})}),[A=h(A,R),B=h(B,D)])}checkOverlap(v,A){let B=v[0]-A[0],R=v[1]-A[1];return Math.sqrt(B*B+R*R)-Math.abs(v[2]+A[2])<-.001}createParentNodes(){let v=this.pointClass,A=this.chart,B=this.parentNodeLayout,R=this.layout.options,D,Z=this.parentNode,X={radius:this.parentNodeRadius,lineColor:this.color,fillColor:E(this.color).brighten(.4).get()};R.parentNodeOptions&&(X=P(R.parentNodeOptions.marker||{},X)),this.parentNodeMass=0,this.points.forEach(ie=>{this.parentNodeMass+=Math.PI*Math.pow(ie.marker.radius,2)}),this.calculateParentRadius(),B.nodes.forEach(ie=>{ie.seriesIndex===this.index&&(D=!0)}),B.setArea(0,0,A.plotWidth,A.plotHeight),D||(Z||(Z=new v(this,{mass:this.parentNodeRadius/2,marker:X,dataLabels:{inside:!1},states:{normal:{marker:X},hover:{marker:X}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(Z.plotX=this.parentNode.plotX,Z.plotY=this.parentNode.plotY),this.parentNode=Z,B.addElementsToCollection([this],B.series),B.addElementsToCollection([Z],B.nodes))}deferLayout(){let v=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),v.splitSeries&&this.addSeriesLayout())}destroy(){this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(v=>{v.removeElementFromCollection(this,v.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),g.destroy.apply(this,arguments)}drawDataLabels(){!this.deferDataLabels&&(g.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",g.drawDataLabels.call(this,[this.parentNode])))}drawGraph(){var D;if(!this.layout||!this.layout.options.splitSeries)return;let v=this.chart,A=this.layout.options.parentNodeOptions.marker,B={fill:A.fillColor||E(this.color).brighten(.4).get(),opacity:A.fillOpacity,stroke:A.lineColor||this.color,"stroke-width":h(A.lineWidth,this.options.lineWidth)},R={};this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,v.seriesGroup),(D=this.group)==null||D.attr({zIndex:2}),this.calculateParentRadius(),this.parentNode&&q(this.parentNode.plotX)&&q(this.parentNode.plotY)&&q(this.parentNodeRadius)&&(R=P({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},B),this.parentNode.graphic||(this.graph=this.parentNode.graphic=v.renderer.symbol(B.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(R))}drawTracker(){let v,A=this.parentNode;super.drawTracker(),A&&(v=M(A.dataLabels)?A.dataLabels:A.dataLabel?[A.dataLabel]:[],A.graphic&&(A.graphic.element.point=A),v.forEach(B=>{(B.div||B.element).point=A}))}getPointRadius(){let v,A,B,R,D=this.chart,Z=D.plotWidth,X=D.plotHeight,ie=this.options,oe=ie.useSimulation,le=Math.min(Z,X),ue={},F=[],N=D.allDataPoints||[],ee=N.length;["minSize","maxSize"].forEach(j=>{let I=parseInt(ie[j],10),U=/%$/.test(ie[j]);ue[j]=U?le*I/100:I*Math.sqrt(ee)}),D.minRadius=v=ue.minSize/Math.sqrt(ee),D.maxRadius=A=ue.maxSize/Math.sqrt(ee);let ce=oe?this.calculateZExtremes():[v,A];
vendor: 2,111 bytes, line 271
271N.forEach((j,I)=>{B=oe?m(j[2],ce[0],ce[1]):j[2],(R=this.getRadius(ce[0],ce[1],v,A,B))===0&&(R=null),N[I][2]=R,F.push(R)}),this.radii=F}init(){return g.init.apply(this,arguments),b.call(this),this.eventsToUnbind.push(C(this,"updatedData",function(){this.chart.series.forEach(v=>{v.type===this.type&&(v.isDirty=!0)},this)})),this}onMouseUp(v){if(v.fixedPosition&&!v.removed){let A,B=this.layout,R=this.parentNodeLayout;R&&B.options.dragBetweenSeries&&R.nodes.forEach(D=>{v&&v.marker&&D!==v.series.parentNode&&(A=B.getDistXY(v,D),B.vectorLength(A)-D.marker.radius-v.marker.radius<0&&(D.series.addPoint(P(v.options,{plotX:v.plotX,plotY:v.plotY}),!1),B.removeElementFromCollection(v,B.nodes),v.remove()))}),u.onMouseUp.apply(this,arguments)}}placeBubbles(v){let A=this.checkOverlap,B=this.positionBubble,R=[],D=1,Z=0,X=0,ie,oe=[],le,ue=v.sort((F,N)=>N[2]-F[2]);if(ue.length){if(R.push([[0,0,ue[0][2],ue[0][3],ue[0][4]]]),ue.length>1)for(R.push([[0,0-ue[1][2]-ue[0][2],ue[1][2],ue[1][3],ue[1][4]]]),le=2;le<ue.length;le++)ue[le][2]=ue[le][2]||1,A(ie=B(R[D][Z],R[D-1][X],ue[le]),R[D][0])?(R.push([]),X=0,R[D+1].push(B(R[D][Z],R[D][0],ue[le])),D++,Z=0):D>1&&R[D-1][X+1]&&A(ie,R[D-1][X+1])?(X++,R[D].push(B(R[D][Z],R[D-1][X],ue[le])),Z++):(Z++,R[D].push(ie));this.chart.stages=R,this.chart.rawPositions=[].concat.apply([],R),this.resizeRadius(),oe=this.chart.rawPositions}return oe}pointAttribs(v,A){let B=this.options,R=v&&v.isParentNode,D=B.marker;R&&B.layoutAlgorithm&&B.layoutAlgorithm.parentNodeOptions&&(D=B.layoutAlgorithm.parentNodeOptions.marker);let Z=D.fillOpacity,X=g.pointAttribs.call(this,v,A);return Z!==1&&(X["fill-opacity"]=Z),X}positionBubble(v,A,B){let R=Math.asin,D=Math.acos,Z=Math.pow,X=Math.abs,ie=(0,Math.sqrt)(Z(v[0]-A[0],2)+Z(v[1]-A[1],2)),oe=D((Z(ie,2)+Z(B[2]+A[2],2)-Z(B[2]+v[2],2))/(2*(B[2]+A[2])*ie)),le=R(X(v[0]-A[0])/ie),ue=(v[1]-A[1]<0?0:Math.PI)+oe+le*((v[0]-A[0])*(v[1]-A[1])<0?1:-1),F=Math.cos(ue),N=Math.sin(ue);return[A[0]+(A[2]+B[2])*N,A[1]-(A[2]+B[2])*F,B[2],B[3],B[4]]}render(){let v=[];g.render.apply(this,arguments),!this.options.dataLabels.allowOverlap&&(this.data.forEach(A=>
271{M(A.dataLabels)&&A.dataLabels.forEach(B=>{v.push(B)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(v))}resizeRadius(){let v,A,B,R,D,Z=this.chart,X=Z.rawPositions,ie=Math.min,oe=Math.max,le=Z.plotLeft,ue=Z.plotTop,F=Z.plotHeight,N=Z.plotWidth;for(let I of(v=B=Number.POSITIVE_INFINITY,A=R=Number.NEGATIVE_INFINITY,X))D=I[2],v=ie(v,I[0]-D),A=oe(A,I[0]+D),B=ie(B,I[1]-D),R=oe(R,I[1]+D);let ee=[A-v,R-B],ce=[(N-le)/ee[0],(F-ue)/ee[1]],j=ie.apply([],ce);if(Math.abs(j-1)>1e-10){for(let I of X)I[2]*=j;this.placeBubbles(X)}else Z.diffY=F/2+ue-B-(R-B)/2,Z.diffX=N/2+le-v-(A-v)/2}seriesBox(){let v,A=this.chart,B=this.data,R=Math.max,D=Math.min,Z=[A.plotLeft,A.plotLeft+A.plotWidth,A.plotTop,A.plotTop+A.plotHeight];return B.forEach(X=>{q(X.plotX)&&q(X.plotY)&&X.marker.radius&&(v=X.marker.radius,Z[0]=D(Z[0],X.plotX-v),Z[1]=R(Z[1],X.plotX+v),Z[2]=D(Z[2],X.plotY-v),Z[3]=R(Z[3],X.plotY+v))}),$(Z.width/Z.height)?Z:null}setVisible(){let v=this;g.setVisible.apply(v,arguments),v.parentNodeLayout&&v.graph?v.visible?(v.graph.show(),v.parentNode.dataLabel&&v.parentNode.dataLabel.show()):(v.graph.hide(),v.parentNodeLayout.removeElementFromCollection(v.parentNode,v.parentNodeLayout.nodes),v.parentNode.dataLabel&&v.parentNode.dataLabel.hide()):v.layout&&(v.visible?v.layout.addElementsToCollection(v.points,v.layout.nodes):v.points.forEach(A=>{v.layout.removeElementFromCollection(A,v.layout.nodes)}))}translate(){let v,A,B,R=this.chart,D=this.data,Z=this.index,X=this.options.useSimulation;for(let ie of(this.processedXData=this.xData,this.generatePoints(),q(R.allDataPoints)||(R.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),X?B=R.allDataPoints:(B=this.placeBubbles(R.allDataPoints),this.options.draggable=!1),B))ie[3]===Z&&(v=D[ie[4]],A=h(ie[2],void 0),X||(v.plotX=ie[0]-R.plotLeft+R.diffX,v.plotY=ie[1]-R.plotTop+R.diffY),$(A)&&(v.marker=V(v.marker,{radius:A,width:2*A,height:2*A}),v.radius=A));X&&this.deferLayout(),H(this,"afterTranslate")}}return f.defaultOptions=P(w.defaultOptions,Q),V(f.prototype,{pointClass:Y,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],initDataLabels:k,alignDataLabel:g.alignDataLabel,indexateNodes:_,onMouseDown:u.onMouseDown,onMouseMove:u.onMouseMove,redrawHalo:u.redrawHalo,searchPoint:_}),W.registerSeriesType("packedbubble",f),f}),c(n,"Series/Polygon/PolygonSeriesDefaults.js",[],function(){return{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0,legendSymbol:"rectangle"}}),c(n,"Series/Polygon/PolygonSeries.js",[n["Core/Globals.js"],n["Series/Polygon/PolygonSeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(l,u,x,O){let{noop:Y}=l,{area:Q,line:te,scatter:W}=x.seriesTypes,{extend:G,merge:K}=O;class S extends W{getGraphPath(){let E=te.prototype.getGraphPath.call(this),_=E.length+1;for(;_--;)(_===E.length||E[_][0]==="M")&&_>0&&E.splice(_,0,["Z"]);return this.areaPath=E,E}drawGraph(){this.options.fillColor=this.color,Q.prototype.drawGraph.call(this)}}return S.defaultOptions=K(W.defaultOptions,u),G(S.prototype,{type:"polygon",drawTracker:te.prototype.drawTracker,setStackedPoints:Y}),x.registerSeriesType("polygon",S),S}),c(n,"Core/Axis/RadialAxisDefaults.js",[],function(){return{circular:{gridLineWidth:1,labels:{align:void 0,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},radial:{gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",padding:5,x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},radialGauge:{endOnTick:!1,gridLineWidth:0,labels:{align:"center",distance:-25,x:0,y:void 0},lineWidth:1,minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickPosition:"inside",tickWidth:2,title:{rotation:0,text:""},zIndex:2}}}),c(n,"Core/Axis/RadialAxis.js",[n["Core/Axis/RadialAxisDefaults.js"],n["Core/Defaults.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(l,u,x,O){var Y;let{defaultOptions:Q}=u,{composed:te,noop:W}=x,{addEvent:G,correctFloat:K,defined:S,extend:T,fireEvent:E,isObject:_,merge:g,pick:w,pushUnique:k,relativeLength:b,wrap:C}=O;return function(m){function q(){this.autoConnect=this.isCircular&&w(this.userMax,this.options.max)===void 0&&K(this.endAngleRad-this.startAngleRad)===K(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)}function V(){return()=>{if(this.isRadial&&this.tickPositions&&this.options.labels&&this.options.labels.allowOverlap!==!0)return this.tickPositions.map(I=>this.ticks[I]&&this.ticks[I].label).filter(I=>!!I)}}function H(){return W}function M(I,U,J){let se=this.pane.center,ae=I.value,he,me,ve;return this.isCircular?(S(ae)?I.point&&(I.point.shapeArgs||{}).start&&(ae=this.chart.inverted?this.translate(I.point.rectPlotY,!0):I.point.x):(me=I.chartX||0,ve=I.chartY||0,ae=this.translate(Math.atan2(ve-J,me-U)-this.startAngleRad,!0)),me=(he=this.getPosition(ae)).x,ve=he.y):(S(ae)||(me=I.chartX,ve=I.chartY),S(me)&&S(ve)&&(J=se[1]+this.chart.plotTop,ae=this.translate(Math.min(Math.sqrt(Math.pow(me-U,2)+Math.pow(ve-J,2)),se[2]/2)-se[3]/2,!0))),[ae,me||0,ve||0]}function $(I,U,J){let se=this.pane.center,ae=this.chart,he=this.left||0,me=this.top||0,ve,ke=w(U,se[2]/2-this.offset),Pe;return J===void 0&&(J=this.horiz?0:this.center&&-this.center[3]/2),J&&(ke+=J),this.isCircular||U!==void 0?((Pe=this.chart.renderer.symbols.arc(he+se[0],me+se[1],ke,ke,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[he+se[0]],Pe.yBounds=[me+se[1]-ke]):(ve=this.postTranslate(this.angleRad,ke),Pe=[["M",this.center[0]+ae.plotLeft,this.center[1]+ae.plotTop],["L",ve.x,ve.y]]),Pe}function P(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function h(I,U,J){let se=this.chart,ae=He=>{if(typeof He=="string"){let Ye=parseInt(He,10);return de.test(He)&&(Ye=Ye*ve/100),Ye}return He},he=this.center,me=this.startAngleRad,ve=he[2]/2,ke=Math.min(this.offset,0),Pe=this.left||0,ge=this.top||0,de=/%$/,fe=this.isCircular,xe,Ee,Se,be,Te,Le,Ne=w(ae(J.outerRadius),ve),_e=ae(J.innerRadius),We=w(ae(J.thickness),10);
271if(this.options.gridLineInterpolation==="polygon")Le=this.getPlotLinePath({value:I}).concat(this.getPlotLinePath({value:U,reverse:!0}));else{I=Math.max(I,this.min),U=Math.min(U,this.max);let He=this.translate(I),Ye=this.translate(U);fe||(Ne=He||0,_e=Ye||0),J.shape!=="circle"&&fe?(xe=me+(He||0),Ee=me+(Ye||0)):(xe=-Math.PI/2,Ee=1.5*Math.PI,Te=!0),Ne-=ke,We-=ke,Le=se.renderer.symbols.arc(Pe+he[0],ge+he[1],Ne,Ne,{start:Math.min(xe,Ee),end:Math.max(xe,Ee),innerR:w(_e,Ne-We),open:Te,borderRadius:J.borderRadius}),fe&&(Se=(Ee+xe)/2,be=Pe+he[0]+he[2]/2*Math.cos(Se),Le.xBounds=Se>-Math.PI/2&&Se<Math.PI/2?[be,se.plotWidth]:[0,be],Le.yBounds=[ge+he[1]+he[2]/2*Math.sin(Se)],Le.yBounds[0]+=Se>-Math.PI&&Se<0||Se>Math.PI?-10:10)}return Le}function f(I){let U=this.pane.center,J=this.chart,se=J.inverted,ae=I.reverse,he=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},me=he.innerRadius||"0%",ve=he.outerRadius||"100%",ke=U[0]+J.plotLeft,Pe=U[1]+J.plotTop,ge=this.height,de=I.isCrosshair,fe=U[3]/2,xe=I.value,Ee,Se,be,Te,Le,Ne,_e,We,He,Ye=this.getPosition(xe),Ge=Ye.x,Ve=Ye.y;if(de&&(xe=(We=this.getCrosshairPosition(I,ke,Pe))[0],Ge=We[1],Ve=We[2]),this.isCircular)Se=Math.sqrt(Math.pow(Ge-ke,2)+Math.pow(Ve-Pe,2)),be=typeof me=="string"?b(me,1):me/Se,Te=typeof ve=="string"?b(ve,1):ve/Se,U&&fe&&(be<(Ee=fe/Se)&&(be=Ee),Te<Ee&&(Te=Ee)),He=[["M",ke+be*(Ge-ke),Pe-be*(Pe-Ve)],["L",Ge-(1-Te)*(Ge-ke),Ve+(1-Te)*(Pe-Ve)]];else if((xe=this.translate(xe))&&(xe<0||xe>ge)&&(xe=0),this.options.gridLineInterpolation==="circle")He=this.getLinePath(0,xe,fe);else if(He=[],J[se?"yAxis":"xAxis"].forEach(ot=>{ot.pane===this.pane&&(Le=ot)}),Le){_e=Le.tickPositions,Le.autoConnect&&(_e=_e.concat([_e[0]])),ae&&(_e=_e.slice().reverse()),xe&&(xe+=fe);for(let ot=0;ot<_e.length;ot++)Ne=Le.getPosition(_e[ot],xe),He.push(ot?["L",Ne.x,Ne.y]:["M",Ne.x,Ne.y])}return He}function L(I,U){let J=this.translate(I);return this.postTranslate(this.isCircular?J:this.angleRad,w(this.isCircular?U:J<0?0:J,this.center[2]/2)-this.offset)}function v(){let I=this.center,U=this.chart,J=this.options.title;return{x:U.plotLeft+I[0]+(J.x||0),y:U.plotTop+I[1]-{high:.5,middle:.25,low:0}[J.align]*I[2]+(J.y||0)}}function A(I){I.beforeSetTickPositions=q,I.createLabelCollector=V,I.getCrosshairPosition=M,I.getLinePath=$,I.getOffset=P,I.getPlotBandPath=h,I.getPlotLinePath=f,I.getPosition=L,I.getTitlePosition=v,I.postTranslate=ue,I.setAxisSize=N,I.setAxisTranslation=ee,I.setOptions=ce}function B(){let I=this.chart,U=this.options,J=I.angular&&this.isXAxis,se=this.pane,ae=se&&se.options;if(!J&&se&&(I.angular||I.polar)){let he=2*Math.PI,me=(w(ae.startAngle,0)-90)*Math.PI/180,ve=(w(ae.endAngle,w(ae.startAngle,0)+360)-90)*Math.PI/180;this.angleRad=(U.angle||0)*Math.PI/180,this.startAngleRad=me,this.endAngleRad=ve,this.offset=U.offset||0;let ke=(me%he+he)%he,Pe=(ve%he+he)%he;ke>Math.PI&&(ke-=he),Pe>Math.PI&&(Pe-=he),this.normalizedStartAngleRad=ke,this.normalizedEndAngleRad=Pe}}function R(I){this.isRadial&&(I.align=void 0,I.preventDefault())}function D(){if(this.chart&&this.chart.labelCollectors){let I=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;I>=0&&this.chart.labelCollectors.splice(I,1)}}function Z(I){let U,J=this.chart,se=J.angular,ae=J.polar,he=this.isXAxis,me=this.coll,ve=I.userOptions.pane||0,ke=this.pane=J.pane&&J.pane[ve];if(me==="colorAxis"){this.isRadial=!1;return}se?(se&&he?(this.isHidden=!0,this.createLabelCollector=H,this.getOffset=W,this.redraw=F,this.render=F,this.setScale=W,this.setCategories=W,this.setTitle=W):A(this),U=!he):ae&&(A(this),U=this.horiz),se||ae?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&J.labelCollectors.push(this.labelCollector)):this.isRadial=!1,ke&&U&&(ke.axis=this),this.isCircular=U}function X(){this.isRadial&&this.beforeSetTickPositions()}function ie(I){let U=this.label;if(!U)return;let J=this.axis,se=U.getBBox(),ae=J.options.labels,he=(J.translate(this.pos)+J.startAngleRad+Math.PI/2)/Math.PI*180%360,me=Math.round(he),ve=S(ae.y)?0:-(.3*se.height),ke=ae.y,Pe,ge=20,de=ae.align,fe="end",xe=me<0?me+360:me,Ee=xe,Se=0,be=0;J.isRadial&&(Pe=J.getPosition(this.pos,J.center[2]/2+b(w(ae.distance,-25),J.center[2]/2,-J.center[2]/2)),ae.rotation==="auto"?U.attr({rotation:he}):S(ke)||(ke=J.chart.renderer.fontMetrics(U).b-se.height/2),S(de)||(J.isCircular?(se.width>J.len*J.tickInterval/(J.max-J.min)&&(ge=0),de=he>ge&&he<180-ge?"left":he>180+ge&&he<360-ge?"right":"center"):de="center",U.attr({align:de})),de==="auto"&&J.tickPositions.length===2&&J.isCircular&&(xe>90&&xe<180?xe=180-xe:xe>270&&xe<=360&&(xe=540-xe),Ee>180&&Ee<=360&&(Ee=360-Ee),(J.pane.options.startAngle===me||J.pane.options.startAngle===me+360||J.pane.options.startAngle===me-360)&&(fe="start"),de=me>=-90&&me<=90||me>=-360&&me<=-270||me>
271=270&&me<=360?fe==="start"?"right":"left":fe==="start"?"left":"right",Ee>70&&Ee<110&&(de="center"),xe<15||xe>=180&&xe<195?Se=.3*se.height:xe>=15&&xe<=35?Se=fe==="start"?0:.75*se.height:xe>=195&&xe<=215?Se=fe==="start"?.75*se.height:0:xe>35&&xe<=90?Se=fe==="start"?-(.25*se.height):se.height:xe>215&&xe<=270&&(Se=fe==="start"?se.height:-(.25*se.height)),Ee<15?be=fe==="start"?-(.15*se.height):.15*se.height:Ee>165&&Ee<=180&&(be=fe==="start"?.15*se.height:-(.15*se.height)),U.attr({align:de}),U.translate(be,Se+ve)),I.pos.x=Pe.x+(ae.x||0),I.pos.y=Pe.y+(ke||0))}function oe(I){this.axis.getPosition&&T(I.pos,this.axis.getPosition(this.pos))}function le({options:I}){I.xAxis&&g(!0,m.radialDefaultOptions.circular,I.xAxis),I.yAxis&&g(!0,m.radialDefaultOptions.radialGauge,I.yAxis)}function ue(I,U){let J=this.chart,se=this.center;return I=this.startAngleRad+I,{x:J.plotLeft+se[0]+Math.cos(I)*U,y:J.plotTop+se[1]+Math.sin(I)*U}}function F(){this.isDirty=!1}function N(){let I,U;this.constructor.prototype.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),I=this.center=this.pane.center.slice(),this.isCircular?this.sector=this.endAngleRad-this.startAngleRad:(U=this.postTranslate(this.angleRad,I[3]/2),I[0]=U.x-this.chart.plotLeft,I[1]=U.y-this.chart.plotTop),this.len=this.width=this.height=(I[2]-I[3])*w(this.sector,1)/2)}function ee(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.isCircular?this.transA=(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.transA=(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.isXAxis?this.minPixelPadding=this.transA*this.minPointOffset:this.minPixelPadding=0)}function ce(I){let{coll:U}=this,{angular:J,inverted:se,polar:ae}=this.chart,he={};J?this.isXAxis||(he=g(Q.yAxis,m.radialDefaultOptions.radialGauge)):ae&&(he=this.horiz?g(Q.xAxis,m.radialDefaultOptions.circular):g(U==="xAxis"?Q.xAxis:Q.yAxis,m.radialDefaultOptions.radial)),se&&U==="yAxis"&&(he.stackLabels=_(Q.yAxis,!0)?Q.yAxis.stackLabels:{},he.reversedStacks=!0);let me=this.options=g(he,I);me.plotBands||(me.plotBands=[]),E(this,"afterSetOptions")}function j(I,U,J,se,ae,he,me){let ve,ke=this.axis;return ke.isRadial?["M",U,J,"L",(ve=ke.getPosition(this.pos,ke.center[2]/2+se)).x,ve.y]:I.call(this,U,J,se,ae,he,me)}m.radialDefaultOptions=g(l),m.compose=function(I,U){return k(te,"Axis.Radial")&&(G(I,"afterInit",B),G(I,"autoLabelAlign",R),G(I,"destroy",D),G(I,"init",Z),G(I,"initialAxisTranslation",X),G(U,"afterGetLabelPosition",ie),G(U,"afterGetPosition",oe),G(x,"setOptions",le),C(U.prototype,"getMarkPath",j)),I}}(Y||(Y={})),Y}),c(n,"Series/PolarComposition.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Globals.js"],n["Core/Series/Series.js"],n["Extensions/Pane/Pane.js"],n["Core/Axis/RadialAxis.js"],n["Core/Utilities.js"]],function(l,u,x,O,Y,Q){let{animObject:te}=l,{composed:W}=u,{addEvent:G,defined:K,find:S,isNumber:T,merge:E,pick:_,pushUnique:g,relativeLength:w,splat:k,uniqueKey:b,wrap:C}=Q;function m(){(this.pane||[]).forEach(le=>{le.render()})}function q(le){let ue=le.args[0].xAxis,F=le.args[0].yAxis,N=le.args[0].chart;ue&&F&&(F.gridLineInterpolation==="polygon"?(ue.startOnTick=!0,ue.endOnTick=!0):ue.gridLineInterpolation==="polygon"&&N.inverted&&(F.startOnTick=!0,F.endOnTick=!0))}function V(){this.pane||(this.pane=[]),this.options.pane=k(this.options.pane),this.options.pane.forEach(le=>{new O(le,this)},this)}function H(le){let ue=le.args.marker,F=this.chart.xAxis[0],N=this.chart.yAxis[0],ee=this.chart.inverted,ce=ee?N:F,j=ee?F:N;if(this.chart.polar){le.preventDefault();let I=(ue.attr?ue.attr("start"):ue.start)-ce.startAngleRad,U=ue.attr?ue.attr("r"):ue.r,J=(ue.attr?ue.attr("end"):ue.end)-ce.startAngleRad,se=ue.attr?ue.attr("innerR"):ue.innerR;le.result.x=I+ce.pos,le.result.width=J-I,le.result.y=j.len+j.pos-U,le.result.height=U-se}}function M(le){let ue=this.chart;if(ue.polar&&ue.hoverPane&&ue.hoverPane.axis){le.preventDefault();let F=ue.hoverPane.center,N=ue.mouseDownX||0,ee=ue.mouseDownY||0,ce=le.args.chartY,j=le.args.chartX,I=2*Math.PI,U=ue.hoverPane.axis.startAngleRad,J=ue.hoverPane.axis.endAngleRad,se=ue.inverted?ue.xAxis[0]:ue.yAxis[0],ae={},he="arc";if(ae.x=F[0]+ue.plotLeft,ae.y=F[1]+ue.plotTop,this.zoomHor){let me=U>0?J-U:Math.abs(U)+Math.abs(J),ve=Math.atan2(ee-ue.plotTop-F[1],N-ue.plotLeft-F[0])-U,ke=Math.atan2(ce-ue.plotTop-F[1],j-ue.plotLeft-F[0])-U;ae.r=F[2]/2,ae.innerR=F[3]/2,ve<=0&&(ve+=I),ke<=0&&(ke+=I),ke<ve&&(ke=[ve,ve=ke][0]),me<I&&U+ke>J+(I-me)/2&&(ke=ve,ve=U<=0?U:0);let Pe=ae.start=Math.max(ve+U,U),ge=ae.end=Math.min(ke+U,J);
271if(se.options.gridLineInterpolation==="polygon"){let de=ue.hoverPane.axis,fe=Pe-de.startAngleRad+de.pos,xe=se.getPlotLinePath({value:se.max}),Ee=de.toValue(fe),Se=de.toValue(fe+(ge-Pe));if(Ee<de.getExtremes().min){let{min:be,max:Te}=de.getExtremes();Ee=Te-(be-Ee)}if(Se<de.getExtremes().min){let{min:be,max:Te}=de.getExtremes();Se=Te-(be-Se)}Se<Ee&&(Se=[Ee,Ee=Se][0]),(xe=f(xe,Ee,Se,de)).push(["L",F[0]+ue.plotLeft,ue.plotTop+F[1]]),ae.d=xe,he="path"}}if(this.zoomVert){let me=ue.inverted?ue.xAxis[0]:ue.yAxis[0],ve=Math.sqrt(Math.pow(N-ue.plotLeft-F[0],2)+Math.pow(ee-ue.plotTop-F[1],2)),ke=Math.sqrt(Math.pow(j-ue.plotLeft-F[0],2)+Math.pow(ce-ue.plotTop-F[1],2));if(ke<ve&&(ve=[ke,ke=ve][0]),ke>F[2]/2&&(ke=F[2]/2),ve<F[3]/2&&(ve=F[3]/2),this.zoomHor||(ae.start=U,ae.end=J),ae.r=ke,ae.innerR=ve,me.options.gridLineInterpolation==="polygon"){let Pe=me.toValue(me.len+me.pos-ve),ge=me.toValue(me.len+me.pos-ke),de=me.getPlotLinePath({value:ge}).concat(me.getPlotLinePath({value:Pe,reverse:!0}));ae.d=de,he="path"}}if(this.zoomHor&&this.zoomVert&&se.options.gridLineInterpolation==="polygon"){let me=ue.hoverPane.axis,ve=ae.start||0,ke=ae.end||0,Pe=ve-me.startAngleRad+me.pos,ge=me.toValue(Pe),de=me.toValue(Pe+(ke-ve));if(ae.d instanceof Array){let fe=ae.d.slice(0,ae.d.length/2),xe=ae.d.slice(ae.d.length/2,ae.d.length);xe=[...xe].reverse();let Ee=ue.hoverPane.axis;fe=f(fe,ge,de,Ee),(xe=f(xe,ge,de,Ee))&&(xe[0][0]="L"),xe=[...xe].reverse(),ae.d=fe.concat(xe),he="path"}}le.attrs=ae,le.shapeType=he}}function $(){let le=this.chart;le.polar&&(this.polar=new oe(this),le.inverted&&(this.isRadialSeries=!0,this.is("column")&&(this.isRadialBar=!0)))}function P(){if(this.chart.polar&&this.xAxis){let{xAxis:le,yAxis:ue}=this,F=this.chart;this.kdByAngle=F.tooltip&&F.tooltip.shared,this.kdByAngle||F.inverted?this.searchPoint=h:this.options.findNearestPointBy="xy";let N=this.points,ee=N.length;for(;ee--;)this.is("column")||this.is("columnrange")||this.polar.toXY(N[ee]),F.hasParallelCoordinates||this.yAxis.reversed||(_(N[ee].y,Number.MIN_VALUE)<ue.min||N[ee].x<le.min||N[ee].x>le.max?(N[ee].isNull=!0,N[ee].plotY=NaN):N[ee].isNull=N[ee].isValid&&!N[ee].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(G(this,"afterRender",function(){let ce;F.polar&&this.options.clip!==!1&&(ce=this.yAxis.pane.center,this.clipCircle?this.clipCircle.animate({x:ce[0],y:ce[1],r:ce[2]/2,innerR:ce[3]/2}):this.clipCircle=function(j,I,U,J,se){let ae=b(),he=j.createElement("clipPath").attr({id:ae}).add(j.defs),me=se?j.arc(I,U,J,se,0,2*Math.PI).add(he):j.circle(I,U,J).add(he);return me.id=ae,me.clipPath=he,me}(F.renderer,ce[0],ce[1],ce[2]/2,ce[3]/2),this.group.clip(this.clipCircle),this.setClip=u.noop)})))}}function h(le){let ue=this.chart,F=this.xAxis,N=this.yAxis,ee=F.pane&&F.pane.center,ce=le.chartX-(ee&&ee[0]||0)-ue.plotLeft,j=le.chartY-(ee&&ee[1]||0)-ue.plotTop,I=ue.inverted?{clientX:le.chartX-N.pos,plotY:le.chartY-F.pos}:{clientX:180+-180/Math.PI*Math.atan2(ce,j)};return this.searchKDTree(I)}function f(le,ue,F,N){let ee=N.tickInterval,ce=N.tickPositions,j=S(ce,U=>U>=F),I=S([...ce].reverse(),U=>U<=ue);return K(j)||(j=ce[ce.length-1]),K(I)||(I=ce[0],j+=ee,le[0][0]="L",le.unshift(le[le.length-3])),(le=le.slice(ce.indexOf(I),ce.indexOf(j)+1))[0][0]="M",le}function L(le,ue){return S(this.pane||[],F=>F.options.id===ue)||le.call(this,ue)}function v(le,ue,F,N,ee,ce){let j,I,U,J=this.chart,se=_(N.inside,!!this.options.stacking);if(J.polar){if(j=ue.rectPlotX/Math.PI*180,J.inverted)this.forceDL=J.isInsidePlot(ue.plotX,ue.plotY),se&&ue.shapeArgs?(I=ue.shapeArgs,ee=E(ee,{x:(U=this.yAxis.postTranslate(((I.start||0)+(I.end||0))/2-this.xAxis.startAngleRad,ue.barX+ue.pointWidth/2)).x-J.plotLeft,y:U.y-J.plotTop})):ue.tooltipPos&&(ee=E(ee,{x:ue.tooltipPos[0],y:ue.tooltipPos[1]})),N.align=_(N.align,"center"),N.verticalAlign=_(N.verticalAlign,"middle");else{var ae;let he,me;(ae=N).align===null&&(he=j>20&&j<160?"left":j>200&&j<340?"right":"center",ae.align=he),ae.verticalAlign===null&&(me=j<45||j>315?"bottom":j>135&&j<225?"top":"middle",ae.verticalAlign=me),N=ae}x.prototype.alignDataLabel.call(this,ue,F,N,ee,ce),this.isRadialBar&&ue.shapeArgs&&ue.shapeArgs.start===ue.shapeArgs.end?F.hide():F.show()}else le.call(this,ue,F,N,ee,ce)}function A(){let le=this.options,ue=le.stacking,F=this.chart,N=this.xAxis,ee=this.yAxis,ce=ee.reversed,j=ee.center,I=N.startAngleRad,U=N.endAngleRad-I,J=le.threshold,se=0,ae,he,me,ve,ke,Pe=0,ge=0,de,fe,xe,Ee,Se,be,Te,Le;if(N.isRadial)for(me=(ae=this.points).length,ve=ee.translate(ee.min),ke=ee.translate(ee.max),J=le.threshold||0,F.inverted&&T(J)&&K(se=ee.translate(J))&&(se<0?se=0:se>U&&(se=U),this.translatedThreshold=se+I);me--;){if(be=(he=ae[me]).barX,fe=he.x,xe=he.y,he.shapeType="arc",F.inverted){he.plotY=ee.translate(xe),ue&&ee.stacking?(Se=ee.stacking.stacks[(xe<0?"-":"")+this.stackKey],this.visible&&Se&&Se[fe]&&!he.isNull&&(Ee=Se[fe].points[this.get
271StackIndicator(void 0,fe,this.index).key],Pe=ee.translate(Ee[0]),ge=ee.translate(Ee[1]),K(Pe)&&(Pe=Q.clamp(Pe,0,U)))):(Pe=se,ge=he.plotY),Pe>ge&&(ge=[Pe,Pe=ge][0]),ce?ge>ve?ge=ve:Pe<ke?Pe=ke:(Pe>ve||ge<ke)&&(Pe=ge=U):Pe<ve?Pe=ve:ge>ke?ge=ke:(ge<ve||Pe>ke)&&(Pe=ge=0),ee.min>ee.max&&(Pe=ge=ce?U:0),Pe+=I,ge+=I,j&&(he.barX=be+=j[3]/2),Te=Math.max(be,0),Le=Math.max(be+he.pointWidth,0);let Ne=le.borderRadius,_e=w((typeof Ne=="object"?Ne.radius:Ne)||0,Le-Te);he.shapeArgs={x:j[0],y:j[1],r:Le,innerR:Te,start:Pe,end:ge,borderRadius:_e},he.opacity=Pe===ge?0:void 0,he.plotY=(K(this.translatedThreshold)&&(Pe<this.translatedThreshold?Pe:ge))-I}else Pe=be+I,he.shapeArgs=this.polar.arc(he.yBottom,he.plotY,Pe,Pe+he.pointWidth),he.shapeArgs.borderRadius=0;this.polar.toXY(he),F.inverted?(de=ee.postTranslate(he.rectPlotY,be+he.pointWidth/2),he.tooltipPos=[de.x-F.plotLeft,de.y-F.plotTop]):he.tooltipPos=[he.plotX,he.plotY],j&&(he.ttBelow=he.plotY>j[1])}}function B(le,ue){let F,N,ee=this;if(this.chart.polar){ue=ue||this.points;for(let j=0;j<ue.length;j++)if(!ue[j].isNull){F=j;break}this.options.connectEnds!==!1&&F!==void 0&&(this.connectEnds=!0,ue.splice(ue.length,0,ue[F]),N=!0),ue.forEach(j=>{j.polarPlotY===void 0&&ee.polar.toXY(j)})}let ce=le.apply(this,[].slice.call(arguments,1));return N&&ue.pop(),ce}function R(le,ue){let F=this.chart,N={xAxis:[],yAxis:[]};return F.polar?F.axes.forEach(ee=>{if(ee.coll==="colorAxis")return;let ce=ee.isXAxis,j=ee.center,I=ue.chartX-j[0]-F.plotLeft,U=ue.chartY-j[1]-F.plotTop;N[ce?"xAxis":"yAxis"].push({axis:ee,value:ee.translate(ce?Math.PI-Math.atan2(I,U):Math.sqrt(Math.pow(I,2)+Math.pow(U,2)),!0)})}):N=le.call(this,ue),N}function D(le,ue){this.chart.polar||le.call(this,ue)}function Z(le,ue){let F=this,N=this.chart,ee=this.group,ce=this.markerGroup,j=this.xAxis&&this.xAxis.center,I=N.plotLeft,U=N.plotTop,J=this.options.animation,se,ae,he,me,ve,ke;N.polar?F.isRadialBar?ue||(F.startAngleRad=_(F.translatedThreshold,F.xAxis.startAngleRad),u.seriesTypes.pie.prototype.animate.call(F,ue)):(J=te(J),F.is("column")?ue||(ae=j[3]/2,F.points.forEach(Pe=>{he=Pe.graphic,ve=(me=Pe.shapeArgs)&&me.r,ke=me&&me.innerR,he&&me&&(he.attr({r:ae,innerR:ae}),he.animate({r:ve,innerR:ke},F.options.animation))})):ue?(se={translateX:j[0]+I,translateY:j[1]+U,scaleX:.001,scaleY:.001},ee.attr(se),ce&&ce.attr(se)):(se={translateX:I,translateY:U,scaleX:1,scaleY:1},ee.animate(se,J),ce&&ce.animate(se,J))):le.call(this,ue)}function X(le,ue,F,N){let ee,ce;if(this.chart.polar)if(N){let j=(ce=function U(J,se,ae,he){let me,ve,ke,Pe,ge,de,fe=he?1:0,xe=(me=se>=0&&se<=J.length-1?se:se<0?J.length-1+se:0)-1<0?J.length-(1+fe):me-1,Ee=me+1>J.length-1?fe:me+1,Se=J[xe],be=J[Ee],Te=Se.plotX,Le=Se.plotY,Ne=be.plotX,_e=be.plotY,We=J[me].plotX,He=J[me].plotY;ve=(1.5*We+Te)/2.5,ke=(1.5*He+Le)/2.5,Pe=(1.5*We+Ne)/2.5,ge=(1.5*He+_e)/2.5;let Ye=Math.sqrt(Math.pow(ve-We,2)+Math.pow(ke-He,2)),Ge=Math.sqrt(Math.pow(Pe-We,2)+Math.pow(ge-He,2)),Ve=Math.atan2(ke-He,ve-We);de=Math.PI/2+(Ve+Math.atan2(ge-He,Pe-We))/2,Math.abs(Ve-de)>Math.PI/2&&(de-=Math.PI),ve=We+Math.cos(de)*Ye,ke=He+Math.sin(de)*Ye;let ot={rightContX:Pe=We+Math.cos(Math.PI+de)*Ge,rightContY:ge=He+Math.sin(Math.PI+de)*Ge,leftContX:ve,leftContY:ke,plotX:We,plotY:He};return ae&&(ot.prevPointCont=U(J,xe,!1,he)),ot}(ue,N,!0,this.connectEnds)).prevPointCont&&ce.prevPointCont.rightContX,I=ce.prevPointCont&&ce.prevPointCont.rightContY;ee=["C",T(j)?j:ce.plotX,T(I)?I:ce.plotY,T(ce.leftContX)?ce.leftContX:ce.plotX,T(ce.leftContY)?ce.leftContY:ce.plotY,ce.plotX,ce.plotY]}else ee=["M",F.plotX,F.plotY];else ee=le.call(this,ue,F,N);return ee}function ie(le,ue,F=this.plotY){if(!this.destroyed){let{plotX:N,series:ee}=this,{chart:ce}=ee;return ce.polar&&T(N)&&T(F)?[N+(ue?ce.plotLeft:0),F+(ue?ce.plotTop:0)]:le.call(this,ue,F)}}class oe{static compose(ue,F,N,ee,ce,j,I,U,J,se){if(O.compose(F,N),Y.compose(ue,ce),g(W,"Polar")){let ae=F.prototype,he=j.prototype,me=N.prototype,ve=ee.prototype;if(G(F,"afterDrawChartBox",m),G(F,"getAxes",V),G(F,"init",q),C(ae,"get",L),C(me,"getCoordinates",R),C(me,"pinch",D),G(N,"getSelectionMarkerAttrs",M),G(N,"getSelectionBox",H),G(ee,"afterInit",$),G(ee,"afterTranslate",P,{order:2}),G(ee,"afterColumnTranslate",A,{order:4}),C(ve,"animate",Z),C(he,"pos",ie),U){let ke=U.prototype;C(ke,"alignDataLabel",v),C(ke,"animate",Z)}if(J&&C(J.prototype,"getGraphPath",B),se){let ke=se.prototype;C(ke,"getPointSpline",X),I&&(I.prototype.getPointSpline=ke.getPointSpline)}}}constructor(ue){this.series=ue}arc(ue,F,N,ee){let ce=this.series,j=ce.xAxis.center,I=ce.yAxis.len,U=j[3]/2,J=I-F+U,se=I-_(ue,I)+U;return ce.yAxis.reversed&&(J<0&&(J=U),se<0&&(se=U)),{x:j[0],y:j[1],r:J,innerR:se,start:N,end:ee}}toXY(ue){let F=this.series,N=F.chart,ee=F.xAxis,ce=F.yAxis,j=ue.plotX,I=N.inverted,U=ue.y,J=ue.plotY,se=I?j:ce.len-J,ae;if(I&&F&&!F.isRadialBar&&(ue.plotY=J=T(U)?ce.translate(U):0),ue.rectPlotX=j,ue.rectPlotY=J,ce.center&&(se+=ce.center[3]/2),T(J)){let he=I?ce.postTranslate(J,se):ee.postTranslate(j,se);ue.plotX=ue.polarPlotX=he.x-N.plotLeft,ue.plotY=ue.polarPlotY=he.y-N.plotTop}F.kdByAngle?((ae=(j/Math.PI*180+ee.pane.options.startAngle)%360)<0&&(ae+=360),ue.clientX=ae):ue.clientX=ue.plotX}}return oe}),c(n,"Core/Axis/WaterfallAxis.js",[n["Core/Globals.js"],n["Core/Axis/Stacking/StackItem.js"],n["Core/Utilities.js"]],function(l,u,x){var O;let{composed:Y}=l,{addEvent:Q,objectEach:te,pushUnique:W}=x;return function(G){function K(){let g=this.waterfall.stacks;g&&(g.changed=!1,delete g.alreadyChanged)}function S(){let g=this.options.stackLabels;
271g&&g.enabled&&this.waterfall.stacks&&this.waterfall.renderStackTotals()}function T(){this.waterfall||(this.waterfall=new _(this))}function E(){let g=this.axes;for(let w of this.series)if(w.options.stacking){for(let k of g)k.isXAxis||(k.waterfall.stacks.changed=!0);break}}G.compose=function(g,w){W(Y,"Axis.Waterfall")&&(Q(g,"init",T),Q(g,"afterBuildStacks",K),Q(g,"afterRender",S),Q(w,"beforeRedraw",E))};class _{constructor(w){this.axis=w,this.stacks={changed:!1}}renderStackTotals(){let w=this.axis,k=w.waterfall.stacks,b=w.stacking&&w.stacking.stackTotalGroup,C=new u(w,w.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=C,b&&te(k,m=>{te(m,(q,V)=>{C.total=q.stackTotal,C.x=+V,q.label&&(C.label=q.label),u.prototype.render.call(C,b),q.label=C.label,delete C.label})}),C.total=null}}G.Composition=_}(O||(O={})),O}),c(n,"Series/Waterfall/WaterfallPoint.js",[n["Series/Column/ColumnSeries.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],function(l,u,x){let{isNumber:O}=x;class Y extends l.prototype.pointClass{getClassName(){let te=u.prototype.getClassName.call(this);return this.isSum?te+=" highcharts-sum":this.isIntermediateSum&&(te+=" highcharts-intermediate-sum"),te}isValid(){return O(this.y)||this.isSum||!!this.isIntermediateSum}}return Y}),c(n,"Series/Waterfall/WaterfallSeriesDefaults.js",[],function(){return{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}}),c(n,"Series/Waterfall/WaterfallSeries.js",[n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"],n["Core/Axis/WaterfallAxis.js"],n["Series/Waterfall/WaterfallPoint.js"],n["Series/Waterfall/WaterfallSeriesDefaults.js"]],function(l,u,x,O,Y){let{column:Q,line:te}=l.seriesTypes,{addEvent:W,arrayMax:G,arrayMin:K,correctFloat:S,crisp:T,extend:E,isNumber:_,merge:g,objectEach:w,pick:k}=u;function b(m,q){return Object.hasOwnProperty.call(m,q)}class C extends Q{generatePoints(){Q.prototype.generatePoints.apply(this);for(let q=0,V=this.points.length;q<V;q++){let H=this.points[q],M=this.processedYData[q];_(M)&&(H.isIntermediateSum||H.isSum)&&(H.y=S(M))}}processData(q){let V,H,M,$,P,h,f=this.options,L=this.yData,v=f.data,A=L.length,B=f.threshold||0;M=H=$=P=0;for(let R=0;R<A;R++)h=L[R],V=v&&v[R]?v[R]:{},h==="sum"||V.isSum?L[R]=S(M):h==="intermediateSum"||V.isIntermediateSum?(L[R]=S(H),H=0):(M+=h,H+=h),$=Math.min(M,$),P=Math.max(M,P);super.processData.call(this,q),f.stacking||(this.dataMin=$+B,this.dataMax=P)}toYData(q){return q.isSum?"sum":q.isIntermediateSum?"intermediateSum":q.y}updateParallelArrays(q,V){super.updateParallelArrays.call(this,q,V),(this.yData[0]==="sum"||this.yData[0]==="intermediateSum")&&(this.yData[0]=null)}pointAttribs(q,V){let H=this.options.upColor;H&&!q.options.color&&_(q.y)&&(q.color=q.y>0?H:void 0);let M=Q.prototype.pointAttribs.call(this,q,V);return delete M.dashstyle,M}getGraphPath(){return[["M",0,0]]}getCrispPath(){var L;let q=this.data.filter(v=>_(v.y)),V=this.yAxis,H=q.length,M=((L=this.graph)==null?void 0:L.strokeWidth())||0,$=this.xAxis.reversed,P=this.yAxis.reversed,h=this.options.stacking,f=[];for(let v=1;v<H;v++){if(!(this.options.connectNulls||_(this.data[q[v].index-1].y)))continue;let A=q[v].box,B=q[v-1],R=B.y||0,D=q[v-1].box;if(!A||!D)continue;let Z=V.waterfall.stacks[this.stackKey],X=R>0?-D.height:0;if(Z&&D&&A){let ie,oe=Z[v-1];if(h){let le=oe.connectorThreshold;ie=T(V.translate(le,!1,!0,!1,!0)+(P?X:0),M)}else ie=T(D.y+(B.minPointLengthOffset||0),M);f.push(["M",(D.x||0)+($?0:D.width||0),ie],["L",(A.x||0)+($&&A.width||0),ie])}if(D&&f.length&&(!h&&R<0&&!P||R>0&&P)){let ie=f[f.length-2];ie&&typeof ie[2]=="number"&&(ie[2]+=D.height||0);let oe=f[f.length-1];oe&&typeof oe[2]=="number"&&(oe[2]+=D.height||0)}}return f}drawGraph(){te.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})}setStackedPoints(q){var ee;let V=this.options,H=(ee=q.waterfall)==null?void 0:ee.stacks,M=V.threshold||0,$=this.stackKey,P=this.xData,h=P.length,f=M,L=f,v,A=0,B=0,R=0,D,Z,X,ie,oe,le,ue,F,N=(ce,j,I,U)=>{if(v){if(D)for(;I<D;I++)v.stackState[I]+=U;else v.stackState[0]=ce,D=v.stackState.length;v.stackState.push(v.stackState[D-1]+j)}};if(q.stacking&&H&&this.reserveSpace()){F=H.changed,(ue=H.alreadyChanged)&&0>ue.indexOf($)&&(F=!0),H[$]||(H[$]={});let ce=H[$];if(ce)for(let j=0;j<h;j++)(!ce[le=P[j]]||F)&&(ce[le]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:F&&ce[le]?ce[le].label:void 0}),v=ce[le],(oe=this.yData[j])>=0?v.posTotal+=oe:v.negTotal+=oe,ie=V.data[j],Z=v.absolutePos=v.posTotal,X=v.absoluteNeg=v.negTotal,v.stackTotal=Z+X,D=v.stackState.length,ie&&ie.isIntermediateSum?(N(R,B,0,R),R=B,B=M,f^=L,L^=f,f^=L):ie&&ie.isSum?(N(M,A,D,0),f=M):(N(f,oe,0,A),ie&&(A+=oe,B+=oe)),v.stateIndex++,v.threshold=f,f+=v.stackTotal;H.changed=!1,H.alreadyChanged||(H.alreadyChanged=[]),H.alreadyChanged.push($)}}getExtremes(){let q,V,H,M=this.options.stacking;
271return M?(q=this.yAxis.waterfall.stacks,V=this.stackedYNeg=[],H=this.stackedYPos=[],M==="overlap"?w(q[this.stackKey],function($){V.push(K($.stackState)),H.push(G($.stackState))}):w(q[this.stackKey],function($){V.push($.negTotal+$.threshold),H.push($.posTotal+$.threshold)}),{dataMin:K(V),dataMax:G(H)}):{dataMin:this.dataMin,dataMax:this.dataMax}}}return C.defaultOptions=g(Q.defaultOptions,Y),C.compose=x.compose,E(C.prototype,{pointValKey:"y",showLine:!0,pointClass:O}),W(C,"afterColumnTranslate",function(){let{options:m,points:q,yAxis:V}=this,H=k(m.minPointLength,5),M=H/2,$=m.threshold||0,P=m.stacking,h=V.waterfall.stacks[this.stackKey],f=$,L=$,v,A,B,R;for(let D=0;D<q.length;D++){let Z=q[D],X=this.processedYData[D],ie=E({x:0,y:0,width:0,height:0},Z.shapeArgs||{});Z.box=ie;let oe=[0,X],le=Z.y||0;if(P){if(h){let N=h[D];P==="overlap"?(A=N.stackState[N.stateIndex--],v=le>=0?A:A-le,b(N,"absolutePos")&&delete N.absolutePos,b(N,"absoluteNeg")&&delete N.absoluteNeg):(le>=0?(A=N.threshold+N.posTotal,N.posTotal-=le,v=A):(A=N.threshold+N.negTotal,N.negTotal-=le,v=A-le),!N.posTotal&&_(N.absolutePos)&&b(N,"absolutePos")&&(N.posTotal=N.absolutePos,delete N.absolutePos),!N.negTotal&&_(N.absoluteNeg)&&b(N,"absoluteNeg")&&(N.negTotal=N.absoluteNeg,delete N.absoluteNeg)),Z.isSum||(N.connectorThreshold=N.threshold+N.stackTotal),V.reversed?(B=le>=0?v-le:v+le,R=v):(B=v,R=v-le),Z.below=B<=$,ie.y=V.translate(B,!1,!0,!1,!0),ie.height=Math.abs(ie.y-V.translate(R,!1,!0,!1,!0));let ee=V.waterfall.dummyStackItem;ee&&(ee.x=D,ee.label=h[D].label,ee.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[D],this.stackedYPos[D],void 0,this.xAxis))}}else v=Math.max(L,L+le)+oe[0],ie.y=V.translate(v,!1,!0,!1,!0),Z.isSum?(ie.y=V.translate(oe[1],!1,!0,!1,!0),ie.height=Math.min(V.translate(oe[0],!1,!0,!1,!0),V.len)-ie.y,Z.below=oe[1]<=$):Z.isIntermediateSum?(le>=0?(B=oe[1]+f,R=f):(B=f,R=oe[1]+f),V.reversed&&(B^=R,R^=B,B^=R),ie.y=V.translate(B,!1,!0,!1,!0),ie.height=Math.abs(ie.y-Math.min(V.translate(R,!1,!0,!1,!0),V.len)),f+=oe[1],Z.below=B<=$):(ie.height=X>0?V.translate(L,!1,!0,!1,!0)-ie.y:V.translate(L,!1,!0,!1,!0)-V.translate(L-X,!1,!0,!1,!0),L+=X,Z.below=L<$),ie.height<0&&(ie.y+=ie.height,ie.height*=-1);Z.plotY=ie.y,Z.yBottom=ie.y+ie.height,ie.height<=H&&!Z.isNull?(ie.height=H,ie.y-=M,Z.yBottom=ie.y+ie.height,Z.plotY=ie.y,le<0?Z.minPointLengthOffset=-M:Z.minPointLengthOffset=M):(Z.isNull&&(ie.width=0),Z.minPointLengthOffset=0);let ue=Z.plotY+(Z.negative?ie.height:0);Z.below&&(Z.plotY+=ie.height),Z.tooltipPos&&(this.chart.inverted?Z.tooltipPos[0]=V.len-ue:Z.tooltipPos[1]=ue),Z.isInside=this.isPointInside(Z);let F=T(Z.yBottom,this.borderWidth);ie.y=T(ie.y,this.borderWidth),ie.height=F-ie.y,g(!0,Z.shapeArgs,ie)}},{order:2}),l.registerSeriesType("waterfall",C),C}),c(n,"masters/highcharts-more.src.js",[n["Core/Globals.js"],n["Core/Series/SeriesRegistry.js"],n["Extensions/Pane/Pane.js"],n["Series/Bubble/BubbleSeries.js"],n["Series/PackedBubble/PackedBubbleSeries.js"],n["Series/PolarComposition.js"],n["Core/Axis/RadialAxis.js"],n["Series/Waterfall/WaterfallSeries.js"]],function(l,u,x,O,Y,Q,te,W){return l.RadialAxis=te,O.compose(l.Axis,l.Chart,l.Legend),Y.compose(l.Axis,l.Chart,l.Legend),x.compose(l.Chart,l.Pointer),Q.compose(l.Axis,l.Chart,l.Pointer,l.Series,l.Tick,l.Point,u.seriesTypes.areasplinerange,u.seriesTypes.column,u.seriesTypes.line,u.seriesTypes.spline),W.compose(l.Axis,l.Chart),l})})}(Vg)),Vg.exports}var J3=Q3();const _b=li(J3);bt.setOptions({lang:{thousandsSep:","}});const cm={credits:{enabled:!1},chart:{backgroundColor:"transparent",animation:!0},title:{useHTML:!0},subtitle:{useHTML:!0},xAxis:{labels:{style:{fontWeight:"bold"}}},legend:{align:"center",x:0,y:0,verticalAlign:"bottom",margin:30,backgroundColor:bt.defaultOptions.legend.backgroundColor||"transparent",shadow:!1,symbolRadius:10}};bt.setOptions({lang:{thousandsSep:","}});bt.defaultOptions.legend.backgroundColor;_b(bt);const eA={chart:{type:"waterfall",height:600},xAxis:{tickInterval:1,title:{text:""},labels:{enabled:!0}},yAxis:{tickInterval:1e3,labels:{enabled:!0,format:"${value:,.0f}"},title:{text:"$/tonne"},plotLines:[{value:0,color:"#777",width:2,zIndex:0}]},tooltip:{headerFormat:'<span style="font-size: 0.875rem;"><b>{point.x}</b></span><br/>',pointFormatter:function(){let r=this.y.toFixed(2);return"<p>$"+bt.numberFormat(r,0)+"/tonne </p>"}},plotOptions:{waterfall:{stacking:"normal",dataLabels:{enabled:!1},pointWidth:30,borderRadius:0,borderWidth:0}},legend:{enabled:!1}};function tv(r){return r.map(s=>({...s,data:s.data.map((n,c)=>{const l=typeof n=="object"?n.y:n;return{...n,y:l,color:c===4||c===6?"#999999":l>0?"#45CFCC":"#003A62",isIntermediateSum:c===4,isSum:c===6}})}))}
271function tA(r){const{data:s,chartDefault:n,title:c="",subtitle:l="",caption:u,showData:x=!1,clear:O=!0}=r,[Y,Q]=Me.useState(Uo.merge({},cm,eA,{title:{text:c,useHTML:!0},subtitle:{text:l,useHTML:!0},xAxis:{categories:n.categories.data},series:tv(n.series)})),te=Me.useRef(null);return Me.useEffect(()=>{if(te.current&&te.current.chart&&s){const W=te.current.chart,G=tv(s.series);if(G&&G.length>0){for(;W.series.length>G.length;)W.series[W.series.length-1].remove(!1);G.forEach((K,S)=>{W.series[S]?W.series[S].update({data:K.data},!1,!0):W.addSeries(K,!1)})}else for(;W.series.length>0;)W.series[W.series.length-1].remove(!1);W.redraw()}},[s]),y.jsxs(y.Fragment,{children:[y.jsx(Ai,{highcharts:bt,options:Y,ref:te}),u&&y.jsx(ci,{className:"pb-8",content:u}),x&&y.jsx(Sn,{title:`Data${u?" for "+u:": "}`,response:s,clear:O})]})}const rA={series:[{name:"Dollars per tonne",data:[8851,-3983,-564,-2882,1421,0,1421]}],categories:{name:"blank",data:["Revenue","Cost: Feedstock Acquisition","Cost: Capex","Cost: Opex","Profits","Incentive","Profit after Incentive"]}},nA={series:[{name:"NMC811",data:[.7,.9,1.1,1.4,1.8,2.3,2.7,3.4,7.2,17.43333333333333,71.93333333333332,83.38,144.4,215.95666666666668,294.98,386.28333333333336,427.52,516.36]},{name:"NMC532",data:[1.05,1.35,1.65,2.1,2.7,3.45,4.05,5.1,10.8,26.149999999999995,58.099999999999994,79.59,72.2,64.20333333333333,68.6,47.3,35.626666666666665,9.93]},{name:"NCA",data:[5.25,6.75,8.25,10.5,13.5,17.25,20.25,25.5,54,130.74999999999997,99.59999999999998,144.02,129.96,169.26333333333335,185.22,165.55,178.13333333333333,158.88]},{name:"LFP",data:[0,0,0,0,0,0,0,0,0,0,41.49999999999999,68.22,129.96,134.24333333333337,144.06,189.2,249.38666666666666,307.83]}],categories:{name:"Years",data:[2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040]}},iA={series:[{name:"Cobalt",data:[1028667,1322572,1616477,2057334,2645144,3379906,3967716,4996383,10580576,25618709,32317941,44088807,45657693,55638652,65456880,65884379,68732542,68105020]},{name:"Nickel",data:[4946814,6360189,7773565,9893628,12720379,16253817,19080568,24027382,50881515,123199223,152809043,204841129,231455620,304859153,372122004,407714060,438838061,470832853]},{name:"Lithium Carbonate Equivalent",data:[3826835,4920217,6013599,7653671,9840434,12573888,14760651,18587487,39361736,95306426,150871695,210251373,266801059,321486511,378279849,428124334,485623765,540016540]}],categories:{name:"Years",data:[2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040]}},sA={series:[{data:[26.0249953630389,1.4120104254115164,.049095703448851266,2.5626809150923973,5.067655364493878,5.518676691933832,40.63511446341938]}],categories:{name:"blank",data:["Profits","Land Use Reduction","Water Use Reduction","Carbon Abatement","Jobs","Economic Activity","Total"]}},Pp={series:[{name:"Mining Margins",data:[23.1,42.325,53.86,61.55,67.04285714285714,71.1625,74.36666666666666,76.93,79.02727272727273,80.775]},{name:"DLE Margins",data:[47.84,60.88,68.704,73.92,77.64571428571429,80.44,82.61333333333333,84.352,85.77454545454546,86.96]},{name:"LFP Recycling Margin",data:[-116.34597066598984,-73.50947799949236,-47.8075823995939,-30.672985332994926,-18.433987428281373,-9.25473899974619,-2.115323555329938,3.5962088002030503,8.269280727457314,12.163507333502533]}],categories:{name:"$/ton LCE",data:[15,20,25,30,35,40,45,50,55,60]}},oA={chart:{type:"column",height:600},colors:["#F7E445","#02CB66","#00395F","#45CFCC"],xAxis:{tickInterval:1},yAxis:{tickInterval:100},tooltip:{headerFormat:'<span style="font-size: 0.875rem;"><b>{point.x}</b></span><br/>',pointFormatter:function(){let r=this.y.toFixed(2),s=this.series.name.split("(")[0];return'<span style="color:'+this.color+'">●</span> '+s+"</span>: <p>"+bt.numberFormat(r,0)+" GWh </p>"}},plotOptions:{column:{stacking:"normal",dataLabels:{enabled:!1}}}};function aA(r){const{data:s,chartDefault:n}=r,[c,l]=Me.useState(Uo.merge({},cm,oA,{xAxis:{categories:n.categories.data,title:{text:n.categories.name}},yAxis:{title:{text:"GWh"}},series:n.series}));return y.jsx(Ob,{options:c,data:s,...r})}const lA={chart:{type:"column",height:600},colors:["#02CB66","#00395F","#45CFCC"],xAxis:{tickInterval:1},yAxis:{tickInterval:2e8},tooltip:{headerFormat:'<span style="font-size: 0.875rem;"><b>{point.x}</b></span><br/>',pointFormatter:function(){let r=this.y.toFixed(2),s=this.series.name.split("(")[0];return'<span style="color:'+this.color+'">●</span> '+s+"</span>: <p>"+bt.numberFormat(r,0)+" kg </p>"}},plotOptions:{column:{stacking:"normal",dataLabels:{enabled:!1}}}};function cA(r){const{data:s,chartDefault:n}=r,[c,l]=Me.useState(Uo.merge({},cm,lA,{xAxis:{categories:n.categories.data,title:{text:n.categories.name}},yAxis:{title:{text:"kg"}},series:n.series}));return y.jsx(Ob,{options:c,data:s,...r})}_b(bt);const uA={chart:{type:"waterfall",height:600},xAxis:{tickInterval:1,title:{text:""},labels:{enabled:!0}},yAxis:{tickInterval:20,labels:{enabled:!0,format:"${value:,.0f}"},title:{text:"Monetized benefits, $ B"},plotLines:[{value:0,color:"#777",width:2,zIndex:0}]},tooltip:{headerFormat:'<span style="font-size: 0.875rem;"><b>{point.x}</b></span><br/>',pointFormatter:function(){let r=this.y.toFixed(2);return this.series.name.split("(")[0],"<p>$"+bt.numberFormat(r,0)+" B </p>"}},plotOptions:{waterfall:{stacking:"normal",dataLabels:{enabled:!1},pointWidth:30,borderRadius:0,borderWidth:0}},legend:{enabled:!1}};function rv(r){return r.map(s=>({...s,data:s.data.map((n,c)=>{const l=typeof n=="object"?n.y:n;return{...n,y:l,color:c===6?"#999999":"#227C7A",isSum:c===6}})}))}
271function hA(r){const{data:s,chartDefault:n,title:c="",subtitle:l="",caption:u,showData:x=!1,clear:O=!0}=r,[Y,Q]=Me.useState(Uo.merge({},cm,uA,{title:{text:c,useHTML:!0},subtitle:{text:l,useHTML:!0},xAxis:{categories:n.categories.data},series:rv(n.series)})),te=Me.useRef(null);return Me.useEffect(()=>{if(te.current&&te.current.chart&&s){const W=te.current.chart,G=rv(s.series);if(G&&G.length>0){for(;W.series.length>G.length;)W.series[W.series.length-1].remove(!1);G.forEach((K,S)=>{W.series[S]?W.series[S].update({data:K.data},!1,!0):W.addSeries(K,!1)})}else for(;W.series.length>0;)W.series[W.series.length-1].remove(!1);W.redraw()}},[s]),y.jsxs(y.Fragment,{children:[y.jsx(Ai,{highcharts:bt,options:Y,ref:te}),u&&y.jsx(ci,{className:"pb-8",content:u}),x&&y.jsx(Sn,{title:`Data${u?" for "+u:": "}`,response:s,clear:O})]})}function dA(r){const{title:s,subtitle:n,data:c,clear:l=!0,caption:u=void 0,showData:x=!1}=r,O={chart:{type:"spline"},title:{text:s,useHTML:!0},subtitle:{text:n,useHTML:!0},colors:["#79CACF","#237B7A","#999999"],xAxis:{title:{text:c?c.categories.name:Pp.categories.name},labels:{format:"{value}",formatter:function(){return bt.numberFormat(this.value*1e3,0,".",",")}},categories:c!==void 0?c.categories.data:Pp.categories.data},yAxis:{title:{text:"Profit margin",useHTML:!0},labels:{format:"{value}%"},minRange:2,tickInterval:20,plotLines:[{value:0,color:"#777",width:1,zIndex:5}]},plotOptions:{spline:{marker:{enabled:!1}}},tooltip:{headerFormat:"",pointFormatter:function(){let Y=this.y.toFixed(0);return this.series.name.split("(")[0]+": "+Y+"%"},useHTML:!0},legend:{align:"center",x:0,verticalAlign:"bottom",y:0,margin:30,backgroundColor:bt.defaultOptions.legend.backgroundColor||"white",shadow:!1,style:{marginBottom:"10px"},useHTML:!0,labelFormatter:function(){return this.name.split("(")[0]+" (%)"}},series:c===void 0?Pp.series:c.series};return y.jsxs(y.Fragment,{children:[y.jsx(Ai,{highcharts:bt,options:O}),u&&y.jsx(ci,{className:"pb-8",content:u}),x&&y.jsx(Sn,{title:"Data for Exhibit Five",response:c,clear:l})]})}function fA(){const[r,s]=Me.useState(!1),[n,c]=Me.useState(!1),[l,u]=Me.useState(!1),[x,O]=Me.useState(!1),[Y,Q]=Me.useState("idle"),[te,W]=Me.useState(!1),[G,K]=Me.useState(!0);return ks({query:"(max-width: 767px)"}),ks({query:"(min-width: 768px) and (max-width: 1023px)"}),ks({query:"(min-width: 1024px) and (max-width: 1279px)"}),bt.setOptions({credits:{enabled:!1}}),y.jsx("div",{className:"relative bg-white",children:y.jsx("div",{className:"container m-auto",children:y.jsxs("div",{children:[y.jsxs("section",{id:"section-intro",className:"p-4 pt-16",children:[y.jsx("h1",{className:"pb-4 text-3xl font-bold",children:"Battery Recycling Economics - United States"}),y.jsx("p",{children:"Today, when policymakers and investors analyze EV battery (EVB) recycling’s return on investment (ROI), they usually focus only on financial returns. These narrow analyses often give the impression that investing in battery recycling is risky, which hinders development of the infrastructure needed to make battery circularity a reality."}),y.jsx("p",{children:"However, adopting a triple-bottom-line (TBL) approach — one that accounts for the social, environmental, and financial returns — would show that the benefits of recycling are worth the investment."}),y.jsx("p",{children:"To do this, policymakers and investors can use RMI’s Battery Recycling Economics Dashboard, which, among other things, assigns a monetary value to social and environmental returns."}),y.jsxs("p",{children:["The dashboard allows users to evaluate the profitability of lithium-ion battery recycling under various market and policy scenarios, in addition to the billions of dollars of value that can be created from the social and environmental benefits of battery recycling. Our article,"," ",y.jsx("a",{href:"https://rmi.org/battery-recycling-how-accounting-for-social-and-environmental-benefits-boosts-returns/",target:"_blank",rel:"noopener noreferrer",children:"Battery Recycling: How Accounting for Social and Environmental Benefits of Recycling Boosts Returns"}),", describes the importance of a TBL accounting approach to accurately assess the value of EVB recycling."]}),y.jsx("p",{children:"Using this approach, our analysis finds that traditional financial analyses overlook billions of dollars in social and environmental value in the United States alone. The global TBL ROI is much higher."}),y.jsx("p",{children:"EVB stakeholders can see the TBL ROI of recycling market scenarios based on our defaults or their own inputs."}),y.jsx("p",{children:"By adjusting the inputs for battery metal prices, factory capacity utilization, and recycling feedstock acquisition costs, users can see the profits generated by a standard hydrometallurgical recycling facility. By further selecting inputs for projected end-of-life (EOL) battery volumes and the chemistry mix for EOL feedstock, users can also visualize the broader benefits of battery recycling, broken down by profits, land use reduction, water use reduction, carbon abatement, jobs, and economic activity."}),y.jsxs("p",{children:["The methodology for this dashboard is detailed in the ",
271y.jsx("a",{href:"",children:"User Guide"}),". For any additional queries or outreach, contact Sudeshna Mohanty ([email protected])."]}),y.jsx("p",{children:y.jsx(jb,{link:"https://rmi.org/download/44564/?tmstv=1744751667",fileName:"bcei-recycling-economics-user-guide.pdf"})})]}),y.jsx("div",{className:"space-y-12",children:y.jsx("div",{className:"pb-12",children:y.jsxs("div",{className:"relative grid grid-cols-12 items-start gap-x-6 gap-y-8 overflow-clip",children:[y.jsx("div",{id:"minerals-loop-form",className:"top-0 col-span-12 max-h-full p-4 md:sticky md:col-span-5 md:max-h-screen md:overflow-y-auto xl:col-span-4",children:y.jsx(K3,{className:"bcei-form",title:"Triple Bottomline Form",showData:r,setShowData:s,responseData:S=>{u(S)},clear:x,setClear:O,setStatus:Q,status:Y})}),y.jsxs("div",{id:"minerals-loop-charts",className:"col-span-12 md:col-span-7 xl:col-span-8 flex flex-col ",children:[y.jsx(fd,{title:"Recycling Profitability with Hydrometallurgical processing",accordion:!0,isOpen:!0,children:y.jsxs("div",{id:"section-chart-1",children:[y.jsx(tA,{title:"Recycling Profit or Loss",data:l.chart_one,clear:x,showData:r,caption:"Exhibit 1",chartDefault:rA}),y.jsxs("p",{children:[y.jsx("b",{children:"Exhibit 1"})," shows profit or loss per tonne from recycling the selected chemistry in the United States. Users can explore the breakdown by revenue and cost segments and can see profits with or without incentives. At low metal prices and low-capacity utilization, which mirrors the recycling market in 2024, some incentives may be required for the average recycler to break even."]})]})}),y.jsxs(fd,{title:"Triple-Bottom-line accounting – Recycling Returns",accordion:!0,isOpen:!0,children:[y.jsxs("div",{id:"section-chart-2",children:[y.jsx(aA,{title:"Year-over-year EOL Batteries by Chemistry",data:l.chart_two,showData:r,clear:x,caption:"Exhibit 2",chartDefault:nA}),y.jsxs("p",{children:[y.jsx("b",{children:"Exhibit 2"})," shows the annual volume of retired batteries available for recycling from passenger cars in the United States, broken down by chemistry. Chemistry mix for battery demand, and correspondingly EOL batteries, will shift over time. We must plan for scenarios in which recycling feedstocks largely contain lithium-ion batteries without any nickel or cobalt (e.g., LFP) and non-lithium chemistries. Additionally, EOL volumes in the United States are uncertain and will largely depend on the current speed of the transition to EVs."]})]}),y.jsxs("div",{id:"section-chart-3",children:[y.jsx(cA,{title:"Year-over-year Recoverable Metal Mass",data:l.chart_three,showData:r,clear:x,caption:"Exhibit 3",chartDefault:iA}),y.jsxs("p",{children:[y.jsx("b",{children:"Exhibit 3"})," shows the total mass of the three critical minerals that can be recovered annually if all available EOL feedstock in the United States is recycled. A significant amount of EOL feedstock is expected from 2031, leading to a significant increase in recovered metals."]})]}),y.jsxs("div",{id:"section-chart-4",children:[y.jsx(hA,{title:"System-level Benefits of Recycling Through 2040",data:l.chart_four,showData:r,clear:x,caption:"Exhibit 4",chartDefault:sA}),y.jsxs("p",{children:[y.jsx("b",{children:"Exhibit 4"})," illustrates the total benefits of battery recycling using a TBL accounting approach. There is a wide range in potential profit or loss due to a variety of factors including metal prices and capacity utilization (which depends on the speed of the broader EV transition and capacity buildout). As a result, profit pools might be positive or negative. However, the holistic benefits are always positive when you include the environmental and social benefits examined in our analysis."]})]})]}),y.jsxs(fd,{title:"Case study: Profitability of Lithium Carbonate extraction and recovery",accordion:!0,isOpen:!0,children:[y.jsxs("div",{id:"section-chart-5",children:[y.jsx(dA,{title:"Profit Margins at Different Lithium Carbonate Equivalent Prices",data:l.chart_five,showData:r,clear:x,caption:"Exhibit 5",chartDefault:Pp}),y.jsxs("p",{children:[y.jsx("b",{children:"Exhibit 5"})," Mining and recycling profitability shape investment decisions and the competitiveness of recycled products. This analysis compares LFP battery recycling to lithium extraction via traditional mining or direct lithium extraction to illustrate the profit margin sensitivity to volatile metal prices. While lithium extraction revenue depends on metal prices, recycling revenue and costs are both tied to the price of lithium, making profitability more volatile. Across all price scenarios, LFP recycling remains significantly less profitable than traditional lithium extraction, underscoring the need for policy, te
271chnology, and financing innovation to close this gap."]})]}),y.jsx("div",{className:"pt-8",children:y.jsxs("p",{className:"text-sm",children:["*"," ",y.jsxs("i",{children:["Settings in the dashboard are initially set to the default values used to obtain the Exhibits in the article"," ",y.jsx("b",{children:"Battery Recycling: How Accounting for Social and Environmental benefits of Recycling Boosts Returns"})," ","and can be changed through the user input panel. Some inputs have since been updated, and therefore the resulting graphs may not exactly match those in the article."]})]})}),y.jsx("h5",{className:"uppercase pt-6 pb-3",children:"Acknowledgements"}),y.jsx("p",{className:"text-sm font-bold",children:"The Recycling Economics Dashboard was developed with generous philanthropic support from the Sall Family Foundation. RMI extends its appreciation to Argonne National Laboratory (ANL), Bloomberg New Energy Finance, the International Foundation for Valuing Impacts (IFVI), and various industry experts for providing valuable input and insights to the development of this dashboard. The perspectives presented within the dashboard are solely those of its authors and do not necessarily represent the views of the aforementioned organizations or individuals."}),y.jsx("div",{className:"px-4",children:y.jsxs($0,{title:"Exhibit Data",className:"mb-4",classNameLabel:"py-2",children:[y.jsx(bn,{title:"Exhibit One",data:l&&l.chart_one}),y.jsx(bn,{title:"Exhibit Two",data:l&&l.chart_two}),y.jsx(bn,{title:"Exhibit Three",data:l&&l.chart_three}),y.jsx(bn,{title:"Exhibit Four",data:l&&l.chart_four}),y.jsx(bn,{title:"Exhibit Five",data:l&&l.chart_five})]})})]})]})]})})})]})})})}function pA(r){const{state:s}=r,n=!0;return y.jsxs("div",{id:"bcei-root",className:"home relative bg-white relative",children:[y.jsxs("div",{className:"pt-8 container text-start m-auto px-4",children:[y.jsxs("div",{className:"py-8",children:[y.jsx("h1",{className:"pb-4 text-3xl font-bold",children:"Battery Circular Economy Initiative Dashboards"}),y.jsx("div",{className:"w-full",children:y.jsx("p",{children:y.jsx("strong",{children:y.jsx("em",{children:"RMI's Battery Circular Economy Initiative (BCEI) Dashboards provide electric vehicle battery (EVB) stakeholders with data-driven insights into today’s and tomorrow's battery supply chain and opportunities for addressing battery mineral challenges. With this information, they can advance a circular battery economy and make informed decisions to ensure the supply chain can meet increasing demand for electric vehicles (EVs) in the most efficient and responsible manner."})})})})]}),y.jsxs(F2,{className:"pb-10 drop-shadow-md",tabPaneClassName:"min-w-full",queryName:"dashboard",children:[y.jsx(gg,{label:"Battery supply chain",sublabel:"United States",className:"uppercase",children:y.jsx(N3,{state:s,isDev:n,other:"other"})}),y.jsx(gg,{label:"Battery Mineral Loop",sublabel:"Global",className:"uppercase",children:y.jsx(V3,{state:s,isDev:n,other:"other"})}),y.jsx(gg,{label:"Battery Recycling Economics",sublabel:"United States",className:"uppercase",children:y.jsx(fA,{state:s,other:"other"})})]})]}),y.jsx(YP,{})]})}const mA=document.getElementById("root"),gA=f2.createRoot(mA);gA.render(y.jsx(Gt.StrictMode,{children:y.jsx(I2,{children:y.jsx(pA,{})})}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.