vendor: 13,348 bytes, lines 1-25
1var Gx=Object.defineProperty;var Px=(e,t,n)=>t in e?Gx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var H=(e,t,n)=>Px(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();function ao(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tp={exports:{}},so={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and 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 $x=Symbol.for("react.transitional.element"),Qx=Symbol.for("react.fragment");function Ep(e,t,n){var i=null;if(n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:$x,type:e,key:i,ref:t!==void 0?t:null,props:n}}so.Fragment=Qx;so.jsx=Ep;so.jsxs=Ep;Tp.exports=so;var c=Tp.exports,Cp={exports:{}},Y={};/** 10 * @license React 11 * react.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and 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 Wu=Symbol.for("react.transitional.element"),Zx=Symbol.for("react.portal"),Kx=Symbol.for("react.fragment"),Wx=Symbol.for("react.strict_mode"),Jx=Symbol.for("react.profiler"),Ix=Symbol.for("react.consumer"),ev=Symbol.for("react.context"),tv=Symbol.for("react.forward_ref"),nv=Symbol.for("react.suspense"),iv=Symbol.for("react.memo"),wp=Symbol.for("react.lazy"),av=Symbol.for("react.activity"),_f=Symbol.iterator;function sv(e){return e===null||typeof e!="object"?null:(e=_f&&e[_f]||e["@@iterator"],typeof e=="function"?e:null)}var Ap={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Np=Object.assign,Mp={};function Ma(e,t,n){this.props=e,this.context=t,this.refs=Mp,this.updater=n||Ap}Ma.prototype.isReactComponent={};Ma.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ma.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Dp(){}Dp.prototype=Ma.prototype;function Ju(e,t,n){this.props=e,this.context=t,this.refs=Mp,this.updater=n||Ap}var Iu=Ju.prototype=new Dp;Iu.constructor=Ju;Np(Iu,Ma.prototype);Iu.isPureReactComponent=!0;var Sf=Array.isArray;function Lc(){}var de={H:null,A:null,T:null,S:null},Op=Object.prototype.hasOwnProperty;function ed(e,t,n){var i=n.ref;return{$$typeof:Wu,type:e,key:t,ref:i!==void 0?i:null,props:n}}function lv(e,t){return ed(e.type,t,e.props)}function td(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wu}function rv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var jf=/\/+/g;function Bo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?rv(""+e.key):t.toString(36)}function ov(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Lc,Lc):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Fi(e,t,n,i,a){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(s){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Wu:case Zx:l=!0;break;case wp:return l=e._init,Fi(l(e._payload),t,n,i,a)}}if(l)return a=a(e),l=i===""?"."+Bo(e,0):i,Sf(a)?(n="",l!=null&&(n=l.replace(jf,"$&/")+"/"),Fi(a,t,n,"",function(u){return u})):a!=null&&(td(a)&&(a=lv(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(jf,"$&/")+"/")+l)),t.push(a)),1;l=0;var r=i===""?".":i+":";if(Sf(e))for(var o=0;o<e.length;o++)i=e[o],s=r+Bo(i,o),l+=Fi(i,t,n,s,a);else if(o=sv(e),typeof o=="function")for(e=o.call(e),o=0;!(i=e.next()).done;)i=i.value,s=r+Bo(i,o++),l+=Fi(i,t,n,s,a);else if(s==="object"){if(typeof e.then=="function")return Fi(ov(e),t,n,i,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return l}function pl(e,t,n){if(e==null)return e;var i=[],a=0;return Fi(e,i,"","",function(s){return t.call(n,s,a++)}),i}function cv(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Tf=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},uv={map:pl,forEach:function(e,t,n){pl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return pl(e,function(){t++}),t},toArray:function(e){return pl(e,function(t){return t})||[]},only:function(e){if(!td(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Activity=av;Y.Children=uv;Y.Component=Ma;Y.Fragment=Kx;Y.Profiler=Jx;Y.PureComponent=Ju;Y.StrictMode=Wx;Y.Suspense=nv;Y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=de;Y.__COMPILER_RUNTIME={__proto__:null,c:function(e){return de.H.useMemoCache(e)}};Y.cache=function(e){return function(){return e.apply(null,arguments)}};Y.cacheSignal=function(){return null};Y.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=Np({},e.props),a=e.key;if(t!=null)for(s in t.key!==void 0&&(a=""+t.key),t)!Op.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(i[s]=t[s]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),r=0;r<s;r++)l[r]=arguments[r+2];i.children=l}return ed(e.type,a,i)};Y.createContext=function(e){return e={$$typeof:ev,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Ix,_context:e},e};Y.createElement=function(e,t,n){var i,a={},s=null;if(t!=null)for(i in t.key!==void 0&&(s=""+t.key),t)Op.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(a[i]=t[i]);var l=arguments.length-2;if(l===1)a.children=n;else if(1<l){for(var r=Array(l),o=0;o<l;o++)r[o]=arguments[o+2];a.children=r}if(e&&e.defaultProps)for(i in l=e.defaultProps,l)a[i]===void 0&&(a[i]=l[i]);return ed(e,s,a)};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:tv,render:e}};Y.isValidElement=td;Y.lazy=function(e){return{$$typeof:wp,_payload:{_status:-1,_result:e},_init:cv}};Y.memo=function(e,t){return{$$typeof:iv,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=de.T,n={};de.T=n;try{var i=e(),a=de.S;a!==null&&a(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(Lc,Tf)}catch(s){Tf(s)}finally{t!==null&&n.types!==null&&(t.types=n.types),de.T=t}};Y.unstable_useCacheRefresh=function(){return de.H.useCacheRefresh()};Y.use=function(e){return de.H.use(e)};Y.useActionState=function(e,t,n){return de.H.useActionState(e,t,n)};Y.useCallback=function(e,t){return de.H.useCallback(e,t)};Y.useContext=function(e){return de.H.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e,t){return de.H.useDeferredValue(e,t)};Y.useEffect=function(e,t){return de.H.useEffect(e,t)};Y.useEffectEvent=function(e){return de.H.useEffectEvent(e)};Y.useId=function(){return de.H.useId()};Y.useImperativeHandle=function(e,t,n){return de.H.useImperativeHandle(e,t,n)};Y.useInsertionEffect=function(e,t){return de.H.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return de.H.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return de.H.useMemo(e,t)};Y.useOptimistic=function(e,t){return de.H.useOptimistic(e,t)};Y.useReducer=function(e,t,n){return de.H.useReducer(e,t,n)};Y.useRef=function(e){return de.H.useRef(e)};Y.useState=function(e){return de.H.useState(e)};Y.useSyncExternalStore=function(e,t,n){return de.H.useSyncExternalStore(e,t,n)};Y.useTransition=function(){return de.H.useTransition()};Y.version="19.2.0";Cp.exports=Y;var _=Cp.exports;const On=ao(_);var zp={exports:{}},lo={},kp={exports:{}},Rp={};/** 18 * @license React 19 * scheduler.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and 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 */(function(e){function t(A,M){var R=A.length;A.push(M);e:for(;0<R;){var F=R-1>>>1,P=A[F];if(0<a(P,M))A[F]=M,A[R]=P,R=F;else break e}}function n(A){return A.length===0?null:A[0]}function i(A){if(A.length===0)return null;var M=A[0],R=A.pop();if(R!==M){A[0]=R;e:for(var F=0,P=A.length,Zt=P>>>1;F<Zt;){var At=2*(F+1)-1,Kt=A[At],Ye=At+1,Ht=A[Ye];if(0>a(Kt,R))Ye<P&&0>a(Ht,Kt)?(A[F]=Ht,A[Ye]=R,F=Ye):(A[F]=Kt,A[At]=R,F=At);else if(Ye<P&&0>a(Ht,R))A[F]=Ht,A[Ye]=R,F=Ye;else break e}}return M}function a(A,M){var R=A.sortIndex-M.sortIndex;return R!==0?R:A.id-M.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,r=l.now();e.unstable_now=function(){return l.now()-r}}var o=[],u=[],d=1,f=null,h=3,m=!1,y=!1,b=!1,v=!1,p=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function T(A){for(var M=n(u);M!==null;){if(M.callback===null)i(u);else if(M.startTime<=A)i(u),M.sortIndex=M.expirationTime,t(o,M);else break;M=n(u)}}function S(A){if(b=!1,T(A),!y)if(n(o)!==null)y=!0,C||(C=!0,V());else{var M=n(u);M!==null&&z(S,M.startTime-A)}}var C=!1,j=-1,E=5,N=-1;function D(){return v?!0:!(e.unstable_now()-N<E)}function B(){if(v=!1,C){var A=e.unstable_now();N=A;var M=!0;try{e:{y=!1,b&&(b=!1,g(j),j=-1),m=!0;var R=h;try{t:{for(T(A),f=n(o);f!==null&&!(f.expirationTime>A&&D());){var F=f.callback;if(typeof F=="function"){f.callback=null,h=f.priorityLevel;var P=F(f.expirationTime<=A);if(A=e.unstable_now(),typeof P=="function"){f.callback=P,T(A),M=!0;break t}f===n(o)&&i(o),T(A)}else i(o);f=n(o)}if(f!==null)M=!0;else{var Zt=n(u);Zt!==null&&z(S,Zt.startTime-A),M=!1}}break e}finally{f=null,h=R,m=!1}M=void 0}}finally{M?V():C=!1}}}var V;if(typeof x=="function")V=function(){x(B)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,k=O.port2;O.port1.onmessage=B,V=function(){k.postMessage(null)}}else V=function(){p(B,0)};function z(A,M){j=p(function(){A(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.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"):E=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(A){switch(h){case 1:case 2:case 3:var M=3;break;default:M=h}var R=h;h=M;try{return A()}finally{h=R}},e.unstable_requestPaint=function(){v=!0},e.unstable_runWithPriority=function(A,M){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var R=h;h=A;try{return M()}finally{h=R}},e.unstable_scheduleCallback=function(A,M,R){var F=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?F+R:F):R=F,A){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=R+P,A={id:d++,callback:M,priorityLevel:A,startTime:R,expirationTime:P,sortIndex:-1},R>F?(A.sortIndex=R,t(u,A),n(o)===null&&A===n(u)&&(b?(g(j),j=-1):b=!0,z(S,R-F))):(A.sortIndex=P,t(o,A),y||m||(y=!0,C||(C=!0,V()))),A},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(A){var M=h;return function(){var R=h;h=M;try{return A.apply(this,arguments)}finally{h=R}}}})(Rp);kp.exports=Rp;var dv=kp.exports,Bp={exports:{}},Ge={};
vendor: 19,828 bytes, lines 25-48
25/** 26 * @license React 27 * react-dom.production.js 28 * 29 * Copyright (c) Meta Platforms, Inc. and 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 fv=_;function Lp(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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."}function Tn(){}var Xe={d:{f:Tn,r:function(){throw Error(Lp(522))},D:Tn,C:Tn,L:Tn,m:Tn,X:Tn,S:Tn,M:Tn},p:0,findDOMNode:null},hv=Symbol.for("react.portal");function mv(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:hv,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}var ds=fv.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function ro(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Ge.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Xe;Ge.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(Lp(299));return mv(e,t,null,n)};Ge.flushSync=function(e){var t=ds.T,n=Xe.p;try{if(ds.T=null,Xe.p=2,e)return e()}finally{ds.T=t,Xe.p=n,Xe.d.f()}};Ge.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Xe.d.C(e,t))};Ge.prefetchDNS=function(e){typeof e=="string"&&Xe.d.D(e)};Ge.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=ro(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,s=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Xe.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:a,fetchPriority:s}):n==="script"&&Xe.d.X(e,{crossOrigin:i,integrity:a,fetchPriority:s,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Ge.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=ro(t.as,t.crossOrigin);Xe.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Xe.d.M(e)};Ge.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=ro(n,t.crossOrigin);Xe.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Ge.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=ro(t.as,t.crossOrigin);Xe.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Xe.d.m(e)};Ge.requestFormReset=function(e){Xe.d.r(e)};Ge.unstable_batchedUpdates=function(e,t){return e(t)};Ge.useFormState=function(e,t,n){return ds.H.useFormState(e,t,n)};Ge.useFormStatus=function(){return ds.H.useHostTransitionStatus()};Ge.version="19.2.0";function Hp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hp)}catch(e){console.error(e)}}Hp(),Bp.exports=Ge;var pv=Bp.exports;/** 34 * @license React 35 * react-dom-client.production.js 36 * 37 * Copyright (c) Meta Platforms, Inc. and affiliates. 38 * 39 * This source code is licensed under the MIT license found in the 40 * LICENSE file in the root directory of this source tree. 41 */var Ae=dv,Up=_,gv=pv;function w(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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."}function Vp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function el(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Yp(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 qp(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ef(e){if(el(e)!==e)throw Error(w(188))}function yv(e){var t=e.alternate;if(!t){if(t=el(e),t===null)throw Error(w(188));return t!==e?null:e}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return Ef(a),e;if(s===i)return Ef(a),t;s=s.sibling}throw Error(w(188))}if(n.return!==i.return)n=a,i=s;else{for(var l=!1,r=a.child;r;){if(r===n){l=!0,n=a,i=s;break}if(r===i){l=!0,i=a,n=s;break}r=r.sibling}if(!l){for(r=s.child;r;){if(r===n){l=!0,n=s,i=a;break}if(r===i){l=!0,i=s,n=a;break}r=r.sibling}if(!l)throw Error(w(189))}}if(n.alternate!==i)throw Error(w(190))}if(n.tag!==3)throw Error(w(188));return n.stateNode.current===n?e:t}function Fp(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Fp(e),t!==null)return t;e=e.sibling}return null}var fe=Object.assign,bv=Symbol.for("react.element"),gl=Symbol.for("react.transitional.element"),is=Symbol.for("react.portal"),Pi=Symbol.for("react.fragment"),Xp=Symbol.for("react.strict_mode"),Hc=Symbol.for("react.profiler"),Gp=Symbol.for("react.consumer"),cn=Symbol.for("react.context"),nd=Symbol.for("react.forward_ref"),Uc=Symbol.for("react.suspense"),Vc=Symbol.for("react.suspense_list"),id=Symbol.for("react.memo"),Cn=Symbol.for("react.lazy"),Yc=Symbol.for("react.activity"),xv=Symbol.for("react.memo_cache_sentinel"),Cf=Symbol.iterator;function qa(e){return e===null||typeof e!="object"?null:(e=Cf&&e[Cf]||e["@@iterator"],typeof e=="function"?e:null)}var vv=Symbol.for("react.client.reference");function qc(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===vv?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Pi:return"Fragment";case Hc:return"Profiler";case Xp:return"StrictMode";case Uc:return"Suspense";case Vc:return"SuspenseList";case Yc:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case is:return"Portal";case cn:return e.displayName||"Context";case Gp:return(e._context.displayName||"Context")+".Consumer";case nd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case id:return t=e.displayName||null,t!==null?t:qc(e.type)||"Memo";case Cn:t=e._payload,e=e._init;try{return qc(e(t))}catch{}}return null}var as=Array.isArray,U=Up.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=gv.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,bi={pending:!1,data:null,method:null,action:null},Fc=[],$i=-1;function $t(e){return{current:e}}function De(e){0>$i||(e.current=Fc[$i],Fc[$i]=null,$i--)}function re(e,t){$i++,Fc[$i]=e.current,e.current=t}var Pt=$t(null),zs=$t(null),Yn=$t(null),vr=$t(null);function _r(e,t){switch(re(Yn,t),re(zs,e),re(Pt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Oh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Oh(t),e=db(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}De(Pt),re(Pt,e)}function ga(){De(Pt),De(zs),De(Yn)}function Xc(e){e.memoizedState!==null&&re(vr,e);var t=Pt.current,n=db(t,e.type);t!==n&&(re(zs,e),re(Pt,n))}function Sr(e){zs.current===e&&(De(Pt),De(zs)),vr.current===e&&(De(vr),Xs._currentValue=bi)}var Lo,wf;function ci(e){if(Lo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Lo=t&&t[1]||"",wf=-1<n.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+Lo+e+wf}var Ho=!1;function Uo(e,t){if(!e||Ho)return"";Ho=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(m){var h=m}Reflect.construct(e,[],f)}else{try{f.call()}catch(m){h=m}e.call(f.prototype)}}else{try{throw Error()}catch(m){h=m}(f=e())&&typeof f.catch=="function"&&f.catch(function(){})}}catch(m){if(m&&h&&typeof m.stack=="string")return[m.stack,h.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=i.DetermineComponentFrameRoot(),l=s[0],r=s[1];if(l&&r){var o=l.split(` 44`),u=r.split(` 45`);for(a=i=0;i<o.length&&!o[i].includes("DetermineComponentFrameRoot");)i++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(i===o.length||a===u.length)for(i=o.length-1,a=u.length-1;1<=i&&0<=a&&o[i]!==u[a];)a--;for(;1<=i&&0<=a;i--,a--)if(o[i]!==u[a]){if(i!==1||a!==1)do if(i--,a--,0>a||o[i]!==u[a]){var d=` 46`+o[i].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=i&&0<=a);break}}}finally{Ho=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ci(n):""}function _v(e,t){switch(e.tag){case 26:case 27:case 5:return ci(e.type);case 16:return ci("Lazy");case 13:return e.child!==t&&t!==null?ci("Suspense Fallback"):ci("Suspense");case 19:return ci("SuspenseList");case 0:case 15:return Uo(e.type,!1);case 11:return Uo(e.type.render,!1);case 1:return Uo(e.type,!0);case 31:return ci("Activity");default:return""}}function Af(e){try{var t="",n=null;do t+=_v(e,n),n=e,e=e.return;while(e);return t}catch(i){return` 47Error generating stack: `+i.message+` 48`+i.stack}}var Gc=Object.prototype.hasOwnProperty,ad=Ae.unstable_scheduleCallback,Vo=Ae.unstable_cancelCallback,Sv=Ae.unstable_shouldYield,jv=Ae.unstable_requestPaint,st=Ae.unstable_now,Tv=Ae.unstable_getCurrentPriorityLevel,Pp=Ae.unstable_ImmediatePriority,$p=Ae.unstable_UserBlockingPriority,jr=Ae.unstable_NormalPriority,Ev=Ae.unstable_LowPriority,Qp=Ae.unstable_IdlePriority,Cv=Ae.log,wv=Ae.unstable_setDisableYieldValue,tl=null,lt=null;function zn(e){if(typeof Cv=="function"&&wv(e),lt&&typeof lt.setStrictMode=="function")try{lt.setStrictMode(tl,e)}catch{}}var rt=Math.clz32?Math.clz32:Mv,Av=Math.log,Nv=Math.LN2;function Mv(e){return e>>>=0,e===0?32:31-(Av(e)/Nv|0)|0}var yl=256,bl=262144,xl=4194304;function ui(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function oo(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var a=0,s=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var r=i&134217727;return r!==0?(i=r&~s,i!==0?a=ui(i):(l&=r,l!==0?a=ui(l):n||(n=r&~e,n!==0&&(a=ui(n))))):(r=i&~s,r!==0?a=ui(r):l!==0?a=ui(l):n||(n=i&~e,n!==0&&(a=ui(n)))),a===0?0:t!==0&&t!==a&&!(t&s)&&(s=a&-a,n=t&-t,s>=n||s===32&&(n&4194048)!==0)?t:a}function nl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Dv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Zp(){var e=xl;return xl<<=1,!(xl&62914560)&&(xl=4194304),e}function Yo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function il(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ov(e,t,n,i,a,s){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var r=e.entanglements,o=e.expirationTimes,u=e.hiddenUpdates;for(n=l&~n;0<n;){var d=31-rt(n),f=1<<d;r[d]=0,o[d]=-1;var h=u[d];if(h!==null)for(u[d]=null,d=0;d<h.length;d++){var m=h[d];m!==null&&(m.lane&=-536870913)}n&=~f}i!==0&&Kp(e,i,0),s!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=s&~(l&~t))}function Kp(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-rt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function Wp(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-rt(n),a=1<<i;a&t|e[i]&t&&(e[i]|=t),n&=~a}}function Jp(e,t){var n=t&-t;return n=n&42?1:sd(n),n&(e.suspendedLanes|t)?0:n}function sd(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ld(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Ip(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:Sb(e.type))}function Nf(e,t){var n=J.p;try{return J.p=e,t()}finally{J.p=n}}var ni=Math.random().toString(36).slice(2),ke="__reactFiber$"+ni,Ie="__reactProps$"+ni,Da="__reactContainer$"+ni,Pc="__reactEvents$"+ni,zv="__reactListeners$"+ni,kv="__reactHandles$"+ni,Mf="__reactResources$"+ni,al="__reactMarker$"+ni;function rd(e){delete e[ke],delete e[Ie],delete e[Pc],delete e[zv],delete e[kv]}function Qi(e){var t=e[ke];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Da]||n[ke]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Lh(e);e!==null;){if(n=e[ke])return n;e=Lh(e)}return t}e=n,n=e.parentNode}return null}function Oa(e){if(e=e[ke]||e[Da]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ss(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(w(33))}function sa(e){var t=e[Mf];return t||(t=e[Mf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Me(e){e[al]=!0}var eg=new Set,tg={};function Di(e,t){ya(e,t),ya(e+"Capture",t)}function ya(e,t){for(tg[e]=t,e=0;e<t.length;e++)eg.add(t[e])}var Rv=RegExp("^[: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]*$"),Df={},Of={};function Bv(e){return Gc.call(Of,e)?!0:Gc.call(Df,e)?!1:Rv.test(e)?Of[e]=!0:(Df[e]=!0,!1)}function Wl(e,t,n){if(Bv(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function vl(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Wt(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function mt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ng(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lv(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var a=i.get,s=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(l){n=""+l,s.call(this,l)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $c(e){if(!e._valueTracker){var t=ng(e)?"checked":"value";e._valueTracker=Lv(e,t,""+e[t])}}function ig(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=ng(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Tr(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}}var Hv=/[\n"\\]/g;function yt(e){return e.replace(Hv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Qc(e,t,n,i,a,s,l,r){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+mt(t)):e.value!==""+mt(t)&&(e.value=""+mt(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?Zc(e,l,mt(t)):n!=null?Zc(e,l,mt(n)):i!=null&&e.removeAttribute("value"),a==null&&s!=null&&(e.defaultChecked=!!s),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+mt(r):e.removeAttribute("name")}function ag(e,t,n,i,a,s,l,r){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){$c(e);return}n=n!=null?""+mt(n):"",t=t!=null?""+mt(t):n,r||t===e.value||(e.value=t),e.defaultValue=t}i=i??a,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=r?e.checked:!!i,e.defaultChecked=!!i,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),$c(e)}function Zc(e,t,n){t==="number"&&Tr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function la(e,t,n,i){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&i&&(e[n].defaultSelected=!0)}else{for(n=""+mt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,i&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function sg(e,t,n){if(t!=null&&(t=""+mt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+mt(n):""}function lg(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(w(92));if(as(i)){if(1<i.length)throw Error(w(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=mt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),$c(e)}function ba(e,t){if(t){var n=e.firstChild;
vendor: 4,140 bytes, line 48
48if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Uv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function zf(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||Uv.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function rg(e,t,n){if(t!=null&&typeof t!="object")throw Error(w(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var a in t)i=t[a],t.hasOwnProperty(a)&&n[a]!==i&&zf(e,a,i)}else for(var s in t)t.hasOwnProperty(s)&&zf(e,s,t[s])}function od(e){if(e.indexOf("-")===-1)return!1;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 Vv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
48-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Yv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Jl(e){return Yv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function un(){}var Kc=null;function cd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zi=null,ra=null;function kf(e){var t=Oa(e);if(t&&(e=t.stateNode)){var n=e[Ie]||null;e:switch(e=t.stateNode,t.type){case"input":if(Qc(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+yt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=i[Ie]||null;if(!a)throw Error(w(90));Qc(i,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&ig(i)}break e;case"textarea":sg(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&la(e,!!n.multiple,t,!1)}}}var qo=!1;function og(e,t,n){if(qo)return e(t,n);qo=!0;try{var i=e(t);return i}finally{if(qo=!1,(Zi!==null||ra!==null)&&(_o(),Zi&&(t=Zi,e=ra,ra=Zi=null,kf(t),e)))for(t=0;t<e.length;t++)kf(e[t])}}function ks(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Ie]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(w(231,t,typeof n));return n}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wc=!1;if(gn)try{var Fa={};Object.defineProperty(Fa,"passive",{get:function(){Wc=!0}}),window.addEventListener("test",Fa,Fa),window.removeEventListener("test",Fa,Fa)}catch{Wc=!1}var kn=null,ud=null,Il=null;function cg(){if(Il)return Il;var e,t=ud,n=t.length,i,a="value"in kn?kn.value:kn.textContent,s=a.length;for(e=0;e<n&&t[e]===a[e];e++);var l=n-e;for(i=1;i<=l&&t[n-i]===a[s-i];i++);return Il=a.slice(e,1<i?1-i:void 0)}function er(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 _l(){return!0}function Rf(){return!1}function et(e){function t(n,i,a,s,l){this._reactName=n,this._targetInst=a,this.type=i,this.nativeEvent=s,this.target=l,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(n=e[r],this[r]=n?n(s):s[r]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?_l:Rf,this.isPropagationStopped=Rf,this}return fe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=_l)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=_l)},persist:function(){},isPersistent:_l}),t}var Oi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},co=et(Oi),sl=fe({},Oi,{view:0,detail:0}),qv=et(sl),Fo,Xo,Xa,uo=fe({},sl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dd,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!==Xa&&(Xa&&e.type==="mousemove"?(Fo=e.screenX-Xa.screenX,Xo=e.screenY-Xa.screenY):Xo=Fo=0,Xa=e),Fo)},movementY:function(e){return"movementY"in e?e.movementY:Xo}}),Bf=et(uo),Fv=fe({},uo,{dataTransfer:0}),Xv=et(Fv),Gv=fe({},sl,{relatedTarget:0}),Go=et(Gv),Pv=fe({},Oi,{animationName:0,elapsedTime:0,pseudoElement:0}
vendor: 4,172 bytes, line 48
48),$v=et(Pv),Qv=fe({},Oi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Zv=et(Qv),Kv=fe({},Oi,{data:0}),Lf=et(Kv),Wv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jv={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"},Iv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function e0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Iv[e])?!!t[e]:!1}function dd(){return e0}var t0=fe({},sl,{key:function(e){if(e.key){var t=Wv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=er(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Jv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dd,charCode:function(e){return e.type==="keypress"?er(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?er(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),n0=et(t0),i0=fe({},uo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hf=et(i0),a0=fe({},sl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dd}),s0=et(a0),l0=fe({},Oi,{propertyName:0,elapsedTime:0,pseudoElement:0}),r0=et(l0),o0=fe({},uo,{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}),c0=et(o0),u0=fe({},Oi,{newState:0,oldState:0}),d0=et(u0),f0=[9,13,27,32],fd=gn&&"CompositionEvent"in window,fs=null;gn&&"documentMode"in document&&(fs=document.documentMode);var h0=gn&&"TextEvent"in window&&!fs,ug=gn&&(!fd||fs&&8<fs&&11>=fs),Uf=" ",Vf=!1;function dg(e,t){switch(e){case"keyup":return f0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ki=!1;function m0(e,t){switch(e){case"compositionend":return fg(t);case"keypress":return t.which!==32?null:(Vf=!0,Uf);case"textInput":return e=t.data,e===Uf&&Vf?null:e;default:return null}}function p0(e,t){if(Ki)return e==="compositionend"||!fd&&dg(e,t)?(e=cg(),Il=ud=kn=null,Ki=!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 ug&&t.locale!=="ko"?null:t.data;default:return null}}var g0={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 Yf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!g0[e.type]:t==="textarea"}function hg(e,t,n,i){Zi?ra?ra.push(i):ra=[i]:Zi=i,t=qr(t,"onChange"),0<t.length&&(n=new co("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var hs=null,Rs=null;function y0(e){ob(e,0)}function fo(e){var t=ss(e);if(ig(t))return e}function qf(e,t){if(e==="change")return t}var mg=!1;if(gn){var Po;if(gn){var $o="oninput"in document;if(!$o){var Ff=document.createElement("div");Ff.setAttribute("oninput","return;"),$o=typeof Ff.oninput=="function"}Po=$o}else Po=!1;mg=Po&&(!document.documentMode||9<document.documentMode)}function Xf(){hs&&(hs.detachEvent("onpropertychange",pg),Rs=hs=null)}function pg(e){if(e.propertyName==="value"&&fo(Rs)){var t=[];hg(t,Rs,e,cd(e)),og(y0,t)}}
vendor: 24,025 bytes, line 48
48function b0(e,t,n){e==="focusin"?(Xf(),hs=t,Rs=n,hs.attachEvent("onpropertychange",pg)):e==="focusout"&&Xf()}function x0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fo(Rs)}function v0(e,t){if(e==="click")return fo(t)}function _0(e,t){if(e==="input"||e==="change")return fo(t)}function S0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ct=typeof Object.is=="function"?Object.is:S0;function Bs(e,t){if(ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var a=n[i];if(!Gc.call(t,a)||!ct(e[a],t[a]))return!1}return!0}function Gf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pf(e,t){var n=Gf(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gf(n)}}function gg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Tr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Tr(e.document)}return t}function hd(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")}var j0=gn&&"documentMode"in document&&11>=document.documentMode,Wi=null,Jc=null,ms=null,Ic=!1;function $f(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ic||Wi==null||Wi!==Tr(i)||(i=Wi,"selectionStart"in i&&hd(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ms&&Bs(ms,i)||(ms=i,i=qr(Jc,"onSelect"),0<i.length&&(t=new co("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=Wi)))}function si(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ji={animationend:si("Animation","AnimationEnd"),animationiteration:si("Animation","AnimationIteration"),animationstart:si("Animation","AnimationStart"),transitionrun:si("Transition","TransitionRun"),transitionstart:si("Transition","TransitionStart"),transitioncancel:si("Transition","TransitionCancel"),transitionend:si("Transition","TransitionEnd")},Qo={},bg={};gn&&(bg=document.createElement("div").style,"AnimationEvent"in window||(delete Ji.animationend.animation,delete Ji.animationiteration.animation,delete Ji.animationstart.animation),"TransitionEvent"in window||delete Ji.transitionend.transition);function zi(e){if(Qo[e])return Qo[e];if(!Ji[e])return e;var t=Ji[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in bg)return Qo[e]=t[n];return e}var xg=zi("animationend"),vg=zi("animationiteration"),_g=zi("animationstart"),T0=zi("transitionrun"),E0=zi("transitionstart"),C0=zi("transitioncancel"),Sg=zi("transitionend"),jg=new Map,eu="abort auxClick beforeToggle 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(" ");eu.push("scrollEnd");function Rt(e,t){jg.set(e,t),Di(t,[e])}var Er=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ht=[],Ii=0,md=0;function ho(){for(var e=Ii,t=md=Ii=0;t<e;){var n=ht[t];ht[t++]=null;var i=ht[t];ht[t++]=null;var a=ht[t];ht[t++]=null;var s=ht[t];if(ht[t++]=null,i!==null&&a!==null){var l=i.pending;l===null?a.next=a:(a.next=l.next,l.next=a),i.pending=a}s!==0&&Tg(n,a,s)}}function mo(e,t,n,i){ht[Ii++]=e,ht[Ii++]=t,ht[Ii++]=n,ht[Ii++]=i,md|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function pd(e,t,n,i){return mo(e,t,n,i),Cr(e)}function ki(e,t){return mo(e,null,null,t),Cr(e)}function Tg(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var a=!1,s=e.return;s!==null;)s.childLanes|=n,i=s.alternate,i!==null&&(i.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(a=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,a&&t!==null&&(a=31-rt(n),e=s.hiddenUpdates,i=e[a],i===null?e[a]=[t]:i.push(t),t.lane=n|536870912),s):null}function Cr(e){if(50<js)throw js=0,_u=null,Error(w(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ea={};function w0(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function it(e,t,n,i){return new w0(e,t,n,i)}function gd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fn(e,t){var n=e.alternate;return n===null?(n=it(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Eg(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function tr(e,t,n,i,a,s){var l=0;if(i=e,typeof e=="function")gd(e)&&(l=1);else if(typeof e=="string")l=O_(e,n,Pt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Yc:return e=it(31,n,t,a),e.elementType=Yc,e.lanes=s,e;case Pi:return xi(n.children,a,s,t);case Xp:l=8,a|=24;break;case Hc:return e=it(12,n,t,a|2),e.elementType=Hc,e.lanes=s,e;case Uc:return e=it(13,n,t,a),e.elementType=Uc,e.lanes=s,e;case Vc:return e=it(19,n,t,a),e.elementType=Vc,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cn:l=10;break e;case Gp:l=9;break e;case nd:l=11;break e;case id:l=14;break e;case Cn:l=16,i=null;break e}l=29,n=Error(w(130,e===null?"null":typeof e,"")),i=null}return t=it(l,n,t,a),t.elementType=e,t.type=i,t.lanes=s,t}function xi(e,t,n,i){return e=it(7,e,i,t),e.lanes=n,e}function Zo(e,t,n){return e=it(6,e,null,t),e.lanes=n,e}function Cg(e){var t=it(18,null,null,0);return t.stateNode=e,t}function Ko(e,t,n){return t=it(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Qf=new WeakMap;function bt(e,t){if(typeof e=="object"&&e!==null){var n=Qf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Af(t)},Qf.set(e,t),t)}return{value:e,source:t,stack:Af(t)}}var ta=[],na=0,wr=null,Ls=0,pt=[],gt=0,Wn=null,Ft=1,Xt="";function ln(e,t){ta[na++]=Ls,ta[na++]=wr,wr=e,Ls=t}function wg(e,t,n){pt[gt++]=Ft,pt[gt++]=Xt,pt[gt++]=Wn,Wn=e;var i=Ft;e=Xt;var a=32-rt(i)-1;i&=~(1<<a),n+=1;var s=32-rt(t)+a;if(30<s){var l=a-a%5;s=(i&(1<<l)-1).toString(32),i>>=l,a-=l,Ft=1<<32-rt(t)+a|n<<a|i,Xt=s+e}else Ft=1<<s|n<<a|i,Xt=e}function yd(e){e.return!==null&&(ln(e,1),wg(e,1,0))}function bd(e){for(;e===wr;)wr=ta[--na],ta[na]=null,Ls=ta[--na],ta[na]=null;for(;e===Wn;)Wn=pt[--gt],pt[gt]=null,Xt=pt[--gt],pt[gt]=null,Ft=pt[--gt],pt[gt]=null}function Ag(e,t){pt[gt++]=Ft,pt[gt++]=Xt,pt[gt++]=Wn,Ft=t.id,Xt=t.overflow,Wn=e}var Re=null,ue=null,Z=!1,qn=null,xt=!1,tu=Error(w(519));function Jn(e){var t=Error(w(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Hs(bt(t,e)),tu}function Zf(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[ke]=e,t[Ie]=i,n){case"dialog":X("cancel",t),X("close",t);break;case"iframe":case"object":case"embed":X("load",t);break;case"video":case"audio":for(n=0;n<qs.length;n++)X(qs[n],t);break;case"source":X("error",t);break;case"img":case"image":case"link":X("error",t),X("load",t);break;case"details":X("toggle",t);break;case"input":X("invalid",t),ag(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":X("invalid",t);break;case"textarea":X("invalid",t),lg(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||ub(t.textContent,n)?(i.popover!=null&&(X("beforetoggle",t),X("toggle",t)),i.onScroll!=null&&X("scroll",t),i.onScrollEnd!=null&&X("scrollend",t),i.onClick!=null&&(t.onclick=un),t=!0):t=!1,t||Jn(e,!0)}function Kf(e){for(Re=e.return;Re;)switch(Re.tag){case 5:case 31:case 13:xt=!1;return;case 27:case 3:xt=!0;return;default:Re=Re.return}}function Ui(e){if(e!==Re)return!1;if(!Z)return Kf(e),Z=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Cu(e.type,e.memoizedProps)),n=!n),n&&ue&&Jn(e),Kf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(w(317));ue=Bh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(w(317));ue=Bh(e)}else t===27?(t=ue,ii(e.type)?(e=Mu,Mu=null,ue=e):ue=t):ue=Re?jt(e.stateNode.nextSibling):null;return!0}function Ti(){ue=Re=null,Z=!1}function Wo(){var e=qn;return e!==null&&(Ke===null?Ke=e:Ke.push.apply(Ke,e),qn=null),e}function Hs(e){qn===null?qn=[e]:qn.push(e)}var nu=$t(null),Ri=null,dn=null;function An(e,t,n){re(nu,t._currentValue),t._currentValue=n}function hn(e){e._currentValue=nu.current,De(nu)}function iu(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function au(e,t,n,i){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var s=a.dependencies;if(s!==null){var l=a.child;s=s.firstContext;e:for(;s!==null;){var r=s;s=a;for(var o=0;o<t.length;o++)if(r.context===t[o]){s.lanes|=n,r=s.alternate,r!==null&&(r.lanes|=n),iu(s.return,n,e),i||(l=null);break e}s=r.next}}else if(a.tag===18){if(l=a.return,l===null)throw Error(w(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),iu(l,n,e),l=null}else l=a.child;if(l!==null)l.return=a;else for(l=a;l!==null;){if(l===e){l=null;break}if(a=l.sibling,a!==null){a.return=l.return,l=a;break}l=l.return}a=l}}function za(e,t,n,i){e=null;for(var a=t,s=!1;a!==null;){if(!s){if(a.flags&524288)s=!0;else if(a.flags&262144)break}if(a.tag===10){var l=a.alternate;if(l===null)throw Error(w(387));if(l=l.memoizedProps,l!==null){var r=a.type;ct(a.pendingProps.value,l.value)||(e!==null?e.push(r):e=[r])}}else if(a===vr.current){if(l=a.alternate,l===null)throw Error(w(387));l.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Xs):e=[Xs])}a=a.return}e!==null&&au(t,e,n,i),t.flags|=262144}function Ar(e){for(e=e.firstContext;e!==null;){if(!ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ei(e){Ri=e,dn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Be(e){return Ng(Ri,e)}function Sl(e,t){return Ri===null&&Ei(e),Ng(e,t)}function Ng(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},dn===null){if(e===null)throw Error(w(308));dn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else dn=dn.next=t;return n}var A0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},N0=Ae.unstable_scheduleCallback,M0=Ae.unstable_NormalPriority,je={$$typeof:cn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xd(){return{controller:new A0,data:new Map,refCount:0}}function ll(e){e.refCount--,e.refCount===0&&N0(M0,function(){e.controller.abort()})}var ps=null,su=0,xa=0,oa=null;function D0(e,t){if(ps===null){var n=ps=[];su=0,xa=Xd(),oa={status:"pending",value:void 0,then:function(i){n.push(i)}}}return su++,t.then(Wf,Wf),t}function Wf(){if(--su===0&&ps!==null){oa!==null&&(oa.status="fulfilled");var e=ps;ps=null,xa=0,oa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function O0(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(i.status="rejected",i.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),i}var Jf=U.S;U.S=function(e,t){Fy=st(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&D0(e,t),Jf!==null&&Jf(e,t)};var vi=$t(null);function vd(){var e=vi.current;return e!==null?e:se.pooledCache}function nr(e,t){t===null?re(vi,vi.current):re(vi,t.pool)}function Mg(){var e=vd();return e===null?null:{parent:je._currentValue,pool:e}}var ka=Error(w(460)),_d=Error(w(474)),po=Error(w(542)),Nr={then:function(){}};function If(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Dg(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(un,un),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,th(e),e;default:if(typeof t.status=="string")t.then(un,un);else{if(e=se,e!==null&&100<e.shellSuspendCounter)throw Error(w(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=i}},function(i){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,th(e),e}throw _i=t,ka}}function di(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(_i=n,ka):n}}var _i=null;function eh(){if(_i===null)throw Error(w(459));var e=_i;return _i=null,e}function th(e){if(e===ka||e===po)throw Error(w(483))}var ca=null,Us=0;function jl(e){var t=Us;return Us+=1,ca===null&&(ca=[]),Dg(ca,e,t)}function Ga(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Tl(e,t){throw t.$$typeof===bv?Error(w(525)):(e=Object.prototype.toString.call(t),Error(w(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Og(e){function t(p,g){if(e){var x=p.deletions;x===null?(p.deletions=[g],p.flags|=16):x.push(g)}}function n(p,g){if(!e)return null;for(;g!==null;)t(p,g),g=g.sibling;return null}function i(p){for(var g=new Map;p!==null;)p.key!==null?g.set(p.key,p):g.set(p.index,p),p=p.sibling;return g}function a(p,g){return p=fn(p,g),p.index=0,p.sibling=null,p}function s(p,g,x){return p.index=x,e?(x=p.alternate,x!==null?(x=x.index,x<g?(p.flags|=67108866,g):x):(p.flags|=67108866,g)):(p.flags|=1048576,g)}function l(p){return e&&p.alternate===null&&(p.flags|=67108866),p}function r(p,g,x,T){return g===null||g.tag!==6?(g=Zo(x,p.mode,T),g.return=p,g):(g=a(g,x),g.return=p,g)}function o(p,g,x,T){var S=x.type;return S===Pi?d(p,g,x.props.children,T,x.key):g!==null&&(g.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Cn&&di(S)===g.type)?(g=a(g,x.props),Ga(g,x),g.return=p,g):(g=tr(x.type,x.key,x.props,null,p.mode,T),Ga(g,x),g.return=p,g)}function u(p,g,x,T){return g===null||g.tag!==4||g.stateNode.containerInfo!==x.containerInfo||g.stateNode.implementation!==x.implementation?(g=Ko(x,p.mode,T),g.return=p,g):(g=a(g,x.children||[]),g.return=p,g)}function d(p,g,x,T,S){return g===null||g.tag!==7?(g=xi(x,p.mode,T,S),g.return=p,g):(g=a(g,x),g.return=p,g)}function f(p,g,x){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Zo(""+g,p.mode,x),g.return=p,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case gl:return x=tr(g.type,g.key,g.props,null,p.mode,x),Ga(x,g),x.return=p,x;case is:return g=Ko(g,p.mode,x),g.return=p,g;case Cn:return g=di(g),f(p,g,x)}if(as(g)||qa(g))return g=xi(g,p.mode,x,null),g.return=p,g;if(typeof g.then=="function")return f(p,jl(g),x);if(g.$$typeof===cn)return f(p,Sl(p,g),x);Tl(p,g)}return null}function h(p,g,x,T){var S=g!==null?g.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return S!==null?null:r(p,g,""+x,T);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case gl:return x.key===S?o(p,g,x,T):null;case is:return x.key===S?u(p,g,x,T):null;case Cn:return x=di(x),h(p,g,x,T)}if(as(x)||qa(x))return S!==null?null:d(p,g,x,T,null);if(typeof x.then=="function")return h(p,g,jl(x),T);if(x.$$typeof===cn)return h(p,g,Sl(p,x),T);Tl(p,x)}return null}function m(p,g,x,T,S){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return p=p.get(x)||null,r(g,p,""+T,S);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case gl:return p=p.get(T.key===null?x:T.key)||null,o(g,p,T,S);case is:return p=p.get(T.key===null?x:T.key)||null,u(g,p,T,S);case Cn:return T=di(T),m(p,g,x,T,S)}if(as(T)||qa(T))return p=p.get(x)||null,d(g,p,T,S,null);if(typeof T.then=="function")return m(p,g,x,jl(T),S);if(T.$$typeof===cn)return m(p,g,x,Sl(g,T),S);Tl(g,T)}return null}function y(p,g,x,T){for(var S=null,C=null,j=g,E=g=0,N=null;j!==null&&E<x.length;E++){j.index>E?(N=j,j=null):N=j.sibling;var D=h(p,j,x[E],T);if(D===null){j===null&&(j=N);break}e&&j&&D.alternate===null&&t(p,j),g=s(D,g,E),C===null?S=D:C.sibling=D,C=D,j=N}if(E===x.length)return n(p,j),Z&&ln(p,E),S;if(j===null){for(;E<x.length;E++)j=f(p,x[E],T),j!==null&&(g=s(j,g,E),C===null?S=j:C.sibling=j,C=j);return Z&&ln(p,E),S}for(j=i(j);E<x.length;E++)N=m(j,p,E,x[E],T),N!==null&&(e&&N.alternate!==null&&j.delete(N.key===null?E:N.key),g=s(N,g,E),C===null?S=N:C.sibling=N,C=N);return e&&j.forEach(function(B){return t(p,B)}),Z&&ln(p,E),S}function b(p,g,x,T){if(x==null)throw Error(w(151));for(var S=null,C=null,j=g,E=g=0,N=null,D=x.next();j!==null&&!D.done;E++,D=x.next()){j.index>E?(N=j,j=null):N=j.sibling;var B=h(p,j,D.value,T);if(B===null){j===null&&(j=N);break}e&&j&&B.alternate===null&&t(p,j),g=s(B,g,E),C===null?S=B:C.sibling=B,C=B,j=N}if(D.done)return n(p,j),Z&&ln(p,E),S;if(j===null){for(;!D.done;E++,D=x.next())D=f(p,D.value,T),D!==null&&(g=s(D,g,E),C===null?S=D:C.sibling=D,C=D);return Z&&ln(p,E),S}for(j=i(j);!D.done;E++,D=x.next())D=m(j,p,E,D.value,T),D!==null&&(e&&D.alternate!==null&&j.delete(D.key===null?E:D.key),g=s(D,g,E),C===null?S=D:C.sibling=D,C=D);return e&&j.forEach(function(V){return t(p,V)}),Z&&ln(p,E),S}function v(p,g,x,T){if(typeof x=="object"&&x!==null&&x.type===Pi&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case gl:e:{for(var S=x.key;g!==null;){if(g.key===S){if(S=x.type,S===Pi){if(g.tag===7){n(p,g.sibling),T=a(g,x.props.children),T.return=p,p=T;break e}}else if(g.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Cn&&di(S)===g.type){n(p,g.sibling),T=a(g,x.props),Ga(T,x),T.return=p,p=T;break e}n(p,g);break}else t(p,g);g=g.sibling}x.type===Pi?(T=xi(x.props.children,p.mode,T,x.key),T.return=p,p=T):(T=tr(x.type,x.key,x.props,null,p.mode,T),Ga(T,x),T.return=p,p=T)}return l(p);case is:e:{for(S=x.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(p,g.sibling),T=a(g,x.children||[]),T.return=p,p=T;break e}else{n(p,g);break}else t(p,g);g=g.sibling}T=Ko(x,p.mode,T),T.return=p,p=T}return l(p);case Cn:return x=di(x),v(p,g,x,T)}if(as(x))return y(p,g,x,T);if(qa(x)){if(S=qa(x),typeof S!="function")throw Error(w(150));return x=S.call(x),b(p,g,x,T)}if(typeof x.then=="function")return v(p,g,jl(x),T);if(x.$$typeof===cn)return v(p,g,Sl(p,x),T);Tl(p,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,g!==null&&g.tag===6?(n(p,g.sibling),T=a(g,x),T.return=p,p=T):(n(p,g),T=Zo(x,p.mode,T),T.return=p,p=T),l(p)):n(p,g)}return function(p,g,x,T){try{Us=0;var S=v(p,g,x,T);return ca=null,S}catch(j){if(j===ka||j===po)throw j;var C=it(29,j,null,p.mode);return C.lanes=T,C.return=p,C}finally{}}}var Ci=Og(!0),zg=Og(!1),wn=!1;function Sd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Fn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xn(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,W&2){var a=i.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),i.pending=t,t=Cr(e),Tg(e,null,n),t}return mo(e,i,t,n),Cr(e)}function gs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Wp(e,n)}}function Jo(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var a=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?a=s=l:s=s.next=l,n=n.next}while(n!==null);s===null?a=s=t:s=s.next=t}else a=s=t;n={baseState:i.baseState,firstBaseUpdate:a,lastBaseUpdate:s,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ru=!1;function ys(){if(ru){var e=oa;if(e!==null)throw e}}function bs(e,t,n,i){ru=!1;var a=e.updateQueue;wn=!1;var s=a.firstBaseUpdate,l=a.lastBaseUpdate,r=a.shared.pending;if(r!==null){a.shared.pending=null;var o=r,u=o.next;o.next=null,l===null?s=u:l.next=u,l=o;var d=e.alternate;d!==null&&(d=d.updateQueue,r=d.lastBaseUpdate,r!==l&&(r===null?d.firstBaseUpdate=u:r.next=u,d.lastBaseUpdate=o))}if(s!==null){var f=a.baseState;l=0,d=u=o=null,r=s;do{var h=r.lane&-536870913,m=h!==r.lane;if(m?($&h)===h:(i&h)===h){h!==0&&h===xa&&(ru=!0),d!==null&&(d=d.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var y=e,b=r;h=t;var v=n;switch(b.tag){case 1:if(y=b.payload,typeof y=="function"){f=y.call(v,f,h);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=b.payload,h=typeof y=="function"?y.call(v,f,h):y,h==null)break e;f=fe({},f,h);break e;case 2:wn=!0}}h=r.callback,h!==null&&(e.flags|=64,m&&(e.flags|=8192),m=a.callbacks,m===null?a.callbacks=[h]:m.push(h))}else m={lane:h,tag:r.tag,payload:r.payload,callback:r.callback,next:null},d===null?(u=d=m,o=f):d=d.next=m,l|=h;if(r=r.next,r===null){if(r=a.shared.pending,r===null)break;m=r,r=m.next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}while(!0);d===null&&(o=f),a.baseState=o,a.firstBaseUpdate=u,a.lastBaseUpdate=d,s===null&&(a.shared.lanes=0),ei|=l,e.lanes=l,e.memoizedState=f}}function kg(e,t){if(typeof e!="function")throw Error(w(191,e));e.call(t)}function Rg(e,t){var n=e.callbacks;
vendor: 4,086 bytes, line 48
48if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)kg(n[e],t)}var va=$t(null),Mr=$t(0);function nh(e,t){e=vn,re(Mr,e),re(va,t),vn=e|t.baseLanes}function ou(){re(Mr,vn),re(va,va.current)}function jd(){vn=Mr.current,De(va),De(Mr)}var ut=$t(null),St=null;function Nn(e){var t=e.alternate;re(be,be.current&1),re(ut,e),St===null&&(t===null||va.current!==null||t.memoizedState!==null)&&(St=e)}function cu(e){re(be,be.current),re(ut,e),St===null&&(St=e)}function Bg(e){e.tag===22?(re(be,be.current),re(ut,e),St===null&&(St=e)):Mn()}function Mn(){re(be,be.current),re(ut,ut.current)}function nt(e){De(ut),St===e&&(St=null),De(be)}var be=$t(0);function Dr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Au(n)||Nu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)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 yn=0,q=null,ie=null,_e=null,Or=!1,ua=!1,wi=!1,zr=0,Vs=0,da=null,z0=0;function pe(){throw Error(w(321))}function Td(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ct(e[n],t[n]))return!1;return!0}function Ed(e,t,n,i,a,s){return yn=s,q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?hy:Bd,wi=!1,s=n(i,a),wi=!1,ua&&(s=Hg(t,n,i,a)),Lg(e),s}function Lg(e){U.H=Ys;var t=ie!==null&&ie.next!==null;if(yn=0,_e=ie=q=null,Or=!1,Vs=0,da=null,t)throw Error(w(300));e===null||Te||(e=e.dependencies,e!==null&&Ar(e)&&(Te=!0))}function Hg(e,t,n,i){q=e;var a=0;do{if(ua&&(da=null),Vs=0,ua=!1,25<=a)throw Error(w(301));if(a+=1,_e=ie=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}U.H=my,s=t(n,i)}while(ua);return s}function k0(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?rl(t):t,e=e.useState()[0],(ie!==null?ie.memoizedState:null)!==e&&(q.flags|=1024),t}function Cd(){var e=zr!==0;return zr=0,e}function wd(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ad(e){if(Or){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Or=!1}yn=0,_e=ie=q=null,ua=!1,Vs=zr=0,da=null}function qe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _e===null?q.memoizedState=_e=e:_e=_e.next=e,_e}function ve(){if(ie===null){var e=q.alternate;e=e!==null?e.memoizedState:null}else e=ie.next;var t=_e===null?q.memoizedState:_e.next;if(t!==null)_e=t,ie=e;else{if(e===null)throw q.alternate===null?Error(w(467)):Error(w(310));ie=e,e={memoizedState:ie.memoizedState,baseState:ie.baseState,baseQueue:ie.baseQueue,queue:ie.queue,next:null},_e===null?q.memoizedState=_e=e:_e=_e.next=e}return _e}function go(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rl(e){var t=Vs;return Vs+=1,da===null&&(da=[]),e=Dg(da,e,t),t=q,(_e===null?t.memoizedState:_e.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?hy:Bd),e}function yo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return rl(e);if(e.$$typeof===cn)return Be(e)}throw Error(w(438,String(e)))}function Nd(e){var t=null,n=q.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=q.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=go(),q.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=xv;return t.index++,n}function bn(e,t){return typeof t=="function"?t(e):t}function ir(e){var t=ve();return Md(t,ie,e)}function Md(e,t,n){var i=e.queue;if(i===null)throw Error(w(311));i.lastRenderedReducer=n;var a=e.baseQueue,s=i.pending;if(s!==null){if(a!==null){var l=a.next;
vendor: 18,182 bytes, line 48
48a.next=s.next,s.next=l}t.baseQueue=a=s,i.pending=null}if(s=e.baseState,a===null)e.memoizedState=s;else{t=a.next;var r=l=null,o=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f!==u.lane?($&f)===f:(yn&f)===f){var h=u.revertLane;if(h===0)o!==null&&(o=o.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===xa&&(d=!0);else if((yn&h)===h){u=u.next,h===xa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},o===null?(r=o=f,l=s):o=o.next=f,q.lanes|=h,ei|=h;f=u.action,wi&&n(s,f),s=u.hasEagerState?u.eagerState:n(s,f)}else h={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},o===null?(r=o=h,l=s):o=o.next=h,q.lanes|=f,ei|=f;u=u.next}while(u!==null&&u!==t);if(o===null?l=s:o.next=r,!ct(s,e.memoizedState)&&(Te=!0,d&&(n=oa,n!==null)))throw n;e.memoizedState=s,e.baseState=l,e.baseQueue=o,i.lastRenderedState=s}return a===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Io(e){var t=ve(),n=t.queue;if(n===null)throw Error(w(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,s=t.memoizedState;if(a!==null){n.pending=null;var l=a=a.next;do s=e(s,l.action),l=l.next;while(l!==a);ct(s,t.memoizedState)||(Te=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,i]}function Ug(e,t,n){var i=q,a=ve(),s=Z;if(s){if(n===void 0)throw Error(w(407));n=n()}else n=t();var l=!ct((ie||a).memoizedState,n);if(l&&(a.memoizedState=n,Te=!0),a=a.queue,Dd(qg.bind(null,i,a,e),[e]),a.getSnapshot!==t||l||_e!==null&&_e.memoizedState.tag&1){if(i.flags|=2048,_a(9,{destroy:void 0},Yg.bind(null,i,a,n,t),null),se===null)throw Error(w(349));s||yn&127||Vg(i,t,n)}return n}function Vg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=q.updateQueue,t===null?(t=go(),q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Yg(e,t,n,i){t.value=n,t.getSnapshot=i,Fg(t)&&Xg(e)}function qg(e,t,n){return n(function(){Fg(t)&&Xg(e)})}function Fg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ct(e,n)}catch{return!0}}function Xg(e){var t=ki(e,2);t!==null&&Je(t,e,2)}function uu(e){var t=qe();if(typeof e=="function"){var n=e;if(e=n(),wi){zn(!0);try{n()}finally{zn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:e},t}function Gg(e,t,n,i){return e.baseState=n,Md(e,ie,typeof i=="function"?i:bn)}function R0(e,t,n,i,a){if(xo(e))throw Error(w(485));if(e=t.action,e!==null){var s={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(l){s.listeners.push(l)}};U.T!==null?n(!0):s.isTransition=!1,i(s),n=t.pending,n===null?(s.next=t.pending=s,Pg(t,s)):(s.next=n.next,t.pending=n.next=s)}}function Pg(e,t){var n=t.action,i=t.payload,a=e.state;if(t.isTransition){var s=U.T,l={};U.T=l;try{var r=n(a,i),o=U.S;o!==null&&o(l,r),ih(e,t,r)}catch(u){du(e,t,u)}finally{s!==null&&l.types!==null&&(s.types=l.types),U.T=s}}else try{s=n(a,i),ih(e,t,s)}catch(u){du(e,t,u)}}function ih(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){ah(e,t,i)},function(i){return du(e,t,i)}):ah(e,t,n)}function ah(e,t,n){t.status="fulfilled",t.value=n,$g(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Pg(e,n)))}function du(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,$g(t),t=t.next;while(t!==i)}e.action=null}function $g(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Qg(e,t){return t}function sh(e,t){if(Z){var n=se.formState;if(n!==null){e:{var i=q;if(Z){if(ue){t:{for(var a=ue,s=xt;a.nodeType!==8;){if(!s){a=null;break t}if(a=jt(a.nextSibling),a===null){a=null;break t}}s=a.data,a=s==="F!"||s==="F"?a:null}if(a){ue=jt(a.nextSibling),i=a.data==="F!";break e}}Jn(i)}i=!1}i&&(t=n[0])}}return n=qe(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qg,lastRenderedState:t},n.queue=i,n=uy.bind(null,q,i),i.dispatch=n,i=uu(!1),s=Rd.bind(null,q,!1,i.queue),i=qe(),a={state:t,dispatch:null,action:e,pending:null},i.queue=a,n=R0.bind(null,q,a,s,n),a.dispatch=n,i.memoizedState=e,[t,n,!1]}function lh(e){var t=ve();return Zg(t,ie,e)}function Zg(e,t,n){if(t=Md(e,t,Qg)[0],e=ir(bn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=rl(t)}catch(l){throw l===ka?po:l}else i=t;t=ve();var a=t.queue,s=a.dispatch;return n!==t.memoizedState&&(q.flags|=2048,_a(9,{destroy:void 0},B0.bind(null,a,n),null)),[i,s,e]}function B0(e,t){e.action=t}function rh(e){var t=ve(),n=ie;if(n!==null)return Zg(t,n,e);ve(),t=t.memoizedState,n=ve();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function _a(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=q.updateQueue,t===null&&(t=go(),q.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Kg(){return ve().memoizedState}function ar(e,t,n,i){var a=qe();q.flags|=e,a.memoizedState=_a(1|t,{destroy:void 0},n,i===void 0?null:i)}function bo(e,t,n,i){var a=ve();i=i===void 0?null:i;var s=a.memoizedState.inst;ie!==null&&i!==null&&Td(i,ie.memoizedState.deps)?a.memoizedState=_a(t,s,n,i):(q.flags|=e,a.memoizedState=_a(1|t,s,n,i))}function oh(e,t){ar(8390656,8,e,t)}function Dd(e,t){bo(2048,8,e,t)}function L0(e){q.flags|=4;var t=q.updateQueue;if(t===null)t=go(),q.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Wg(e){var t=ve().memoizedState;return L0({ref:t,nextImpl:e}),function(){if(W&2)throw Error(w(440));return t.impl.apply(void 0,arguments)}}function Jg(e,t){return bo(4,2,e,t)}function Ig(e,t){return bo(4,4,e,t)}function ey(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ty(e,t,n){n=n!=null?n.concat([e]):null,bo(4,4,ey.bind(null,t,e),n)}function Od(){}function ny(e,t){var n=ve();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&Td(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function iy(e,t){var n=ve();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Td(t,i[1]))return i[0];if(i=e(),wi){zn(!0);try{e()}finally{zn(!1)}}return n.memoizedState=[i,t],i}function zd(e,t,n){return n===void 0||yn&1073741824&&!($&261930)?e.memoizedState=t:(e.memoizedState=n,e=Gy(),q.lanes|=e,ei|=e,n)}function ay(e,t,n,i){return ct(n,t)?n:va.current!==null?(e=zd(e,n,i),ct(e,t)||(Te=!0),e):!(yn&42)||yn&1073741824&&!($&261930)?(Te=!0,e.memoizedState=n):(e=Gy(),q.lanes|=e,ei|=e,t)}function sy(e,t,n,i,a){var s=J.p;J.p=s!==0&&8>s?s:8;var l=U.T,r={};U.T=r,Rd(e,!1,t,n);try{var o=a(),u=U.S;if(u!==null&&u(r,o),o!==null&&typeof o=="object"&&typeof o.then=="function"){var d=O0(o,i);xs(e,t,d,ot(e))}else xs(e,t,i,ot(e))}catch(f){xs(e,t,{then:function(){},status:"rejected",reason:f},ot())}finally{J.p=s,l!==null&&r.types!==null&&(l.types=r.types),U.T=l}}function H0(){}function fu(e,t,n,i){if(e.tag!==5)throw Error(w(476));var a=ly(e).queue;sy(e,a,t,bi,n===null?H0:function(){return ry(e),n(i)})}function ly(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:bi,baseState:bi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:bi},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ry(e){var t=ly(e);t.next===null&&(t=e.alternate.memoizedState),xs(e,t.next.queue,{},ot())}function kd(){return Be(Xs)}function oy(){return ve().memoizedState}function cy(){return ve().memoizedState}function U0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=ot();e=Fn(n);var i=Xn(t,e,n);i!==null&&(Je(i,t,n),gs(i,t,n)),t={cache:xd()},e.payload=t;return}t=t.return}}function V0(e,t,n){var i=ot();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},xo(e)?dy(t,n):(n=pd(e,t,n,i),n!==null&&(Je(n,e,i),fy(n,t,i)))}function uy(e,t,n){var i=ot();xs(e,t,n,i)}function xs(e,t,n,i){var a={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(xo(e))dy(t,a);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,r=s(l,n);if(a.hasEagerState=!0,a.eagerState=r,ct(r,l))return mo(e,t,a,0),se===null&&ho(),!1}catch{}finally{}if(n=pd(e,t,a,i),n!==null)return Je(n,e,i),fy(n,t,i),!0}return!1}function Rd(e,t,n,i){if(i={lane:2,revertLane:Xd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},xo(e)){if(t)throw Error(w(479))}else t=pd(e,n,i,2),t!==null&&Je(t,e,2)}function xo(e){var t=e.alternate;return e===q||t!==null&&t===q}function dy(e,t){ua=Or=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fy(e,t,n){if(n&4194048){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Wp(e,n)}}var Ys={readContext:Be,use:yo,useCallback:pe,useContext:pe,useEffect:pe,useImperativeHandle:pe,useLayoutEffect:pe,useInsertionEffect:pe,useMemo:pe,useReducer:pe,useRef:pe,useState:pe,useDebugValue:pe,useDeferredValue:pe,useTransition:pe,useSyncExternalStore:pe,useId:pe,useHostTransitionStatus:pe,useFormState:pe,useActionState:pe,useOptimistic:pe,useMemoCache:pe,useCacheRefresh:pe};Ys.useEffectEvent=pe;var hy={readContext:Be,use:yo,useCallback:function(e,t){return qe().memoizedState=[e,t===void 0?null:t],e},useContext:Be,useEffect:oh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ar(4194308,4,ey.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ar(4194308,4,e,t)},useInsertionEffect:function(e,t){ar(4,2,e,t)},useMemo:function(e,t){var n=qe();t=t===void 0?null:t;var i=e();if(wi){zn(!0);try{e()}finally{zn(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=qe();if(n!==void 0){var a=n(t);if(wi){zn(!0);try{n(t)}finally{zn(!1)}}}else a=t;return i.memoizedState=i.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},i.queue=e,e=e.dispatch=V0.bind(null,q,e),[i.memoizedState,e]},useRef:function(e){var t=qe();return e={current:e},t.memoizedState=e},useState:function(e){e=uu(e);var t=e.queue,n=uy.bind(null,q,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Od,useDeferredValue:function(e,t){var n=qe();return zd(n,e,t)},useTransition:function(){var e=uu(!1);return e=sy.bind(null,q,e.queue,!0,!1),qe().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=q,a=qe();if(Z){if(n===void 0)throw Error(w(407));n=n()}else{if(n=t(),se===null)throw Error(w(349));$&127||Vg(i,t,n)}a.memoizedState=n;var s={value:n,getSnapshot:t};return a.queue=s,oh(qg.bind(null,i,s,e),[e]),i.flags|=2048,_a(9,{destroy:void 0},Yg.bind(null,i,s,n,t),null),n},useId:function(){var e=qe(),t=se.identifierPrefix;if(Z){var n=Xt,i=Ft;n=(i&~(1<<32-rt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=zr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=z0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:kd,useFormState:sh,useActionState:sh,useOptimistic:function(e){var t=qe();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Rd.bind(null,q,!0,n),n.dispatch=t,[e,t]},useMemoCache:Nd,useCacheRefresh:function(){return qe().memoizedState=U0.bind(null,q)},useEffectEvent:function(e){var t=qe(),n={impl:e};return t.memoizedState=n,function(){if(W&2)throw Error(w(440));return n.impl.apply(void 0,arguments)}}},Bd={readContext:Be,use:yo,useCallback:ny,useContext:Be,useEffect:Dd,useImperativeHandle:ty,useInsertionEffect:Jg,useLayoutEffect:Ig,useMemo:iy,useReducer:ir,useRef:Kg,useState:function(){return ir(bn)},useDebugValue:Od,useDeferredValue:function(e,t){var n=ve();return ay(n,ie.memoizedState,e,t)},useTransition:function(){var e=ir(bn)[0],t=ve().memoizedState;return[typeof e=="boolean"?e:rl(e),t]},useSyncExternalStore:Ug,useId:oy,useHostTransitionStatus:kd,useFormState:lh,useActionState:lh,useOptimistic:function(e,t){var n=ve();return Gg(n,ie,e,t)},useMemoCache:Nd,useCacheRefresh:cy};Bd.useEffectEvent=Wg;var my={readContext:Be,use:yo,useCallback:ny,useContext:Be,useEffect:Dd,useImperativeHandle:ty,useInsertionEffect:Jg,useLayoutEffect:Ig,useMemo:iy,useReducer:Io,useRef:Kg,useState:function(){return Io(bn)},useDebugValue:Od,useDeferredValue:function(e,t){var n=ve();return ie===null?zd(n,e,t):ay(n,ie.memoizedState,e,t)},useTransition:function(){var e=Io(bn)[0],t=ve().memoizedState;return[typeof e=="boolean"?e:rl(e),t]},useSyncExternalStore:Ug,useId:oy,useHostTransitionStatus:kd,useFormState:rh,useActionState:rh,useOptimistic:function(e,t){var n=ve();return ie!==null?Gg(n,ie,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Nd,useCacheRefresh:cy};my.useEffectEvent=Wg;function ec(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:fe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var hu={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=ot(),a=Fn(i);a.payload=t,n!=null&&(a.callback=n),t=Xn(e,a,i),t!==null&&(Je(t,e,i),gs(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=ot(),a=Fn(i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Xn(e,a,i),t!==null&&(Je(t,e,i),gs(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ot(),i=Fn(n);i.tag=2,t!=null&&(i.callback=t),t=Xn(e,i,n),t!==null&&(Je(t,e,n),gs(t,e,n))}};function ch(e,t,n,i,a,s,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,s,l):t.prototype&&t.prototype.isPureReactComponent?!Bs(n,i)||!Bs(a,s):!0}function uh(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&hu.enqueueReplaceState(t,t.state,null)}function Ai(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=fe({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function py(e){Er(e)}function gy(e){console.error(e)}function yy(e){Er(e)}function kr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function dh(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function mu(e,t,n){return n=Fn(n),n.tag=3,n.payload={element:null},n.callback=function(){kr(e,t)},n}function by(e){return e=Fn(e),e.tag=3,e}function xy(e,t,n,i){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var s=i.value;e.payload=function(){return a(s)},e.callback=function(){dh(t,n,i)}}var l=n.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){dh(t,n,i),typeof a!="function"&&(Gn===null?Gn=new Set([this]):Gn.add(this));var r=i.stack;this.componentDidCatch(i.value,{componentStack:r!==null?r:""})})}function Y0(e,t,n,i,a){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&za(t,n,a,!0),n=ut.current,n!==null){switch(n.tag){case 31:case 13:return St===null?Ur():n.alternate===null&&ye===0&&(ye=3),n.flags&=-257,n.flags|=65536,n.lanes=a,i===Nr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),dc(e,i,a)),!1;case 22:return n.flags|=65536,i===Nr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),dc(e,i,a)),!1}throw Error(w(435,n.tag))}return dc(e,i,a),Ur(),!1}if(Z)return t=ut.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,i!==tu&&(e=Error(w(422),{cause:i}),Hs(bt(e,n)))):(i!==tu&&(t=Error(w(423),{cause:i}),Hs(bt(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,i=bt(i,n),a=mu(e.stateNode,i,a),Jo(e,a),ye!==4&&(ye=2)),!1;var s=Error(w(520),{cause:i});if(s=bt(s,n),Ss===null?Ss=[s]:Ss.push(s),ye!==4&&(ye=2),t===null)return!0;i=bt(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=mu(n.stateNode,i,e),Jo(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Gn===null||!Gn.has(s))))return n.flags|=65536,a&=-a,n.lanes|=a,a=by(a),xy(a,e,n,i),Jo(n,a),!1}n=n.return}while(n!==null);return!1}var Ld=Error(w(461)),Te=!1;function ze(e,t,n,i){t.child=e===null?zg(t,null,n,i):Ci(t,e.child,n,i)}function fh(e,t,n,i,a){n=n.render;var s=t.ref;if("ref"in i){var l={};for(var r in i)r!=="ref"&&(l[r]=i[r])}else l=i;return Ei(t),i=Ed(e,t,n,l,s,a),r=Cd(),e!==null&&!Te?(wd(e,t,a),xn(e,t,a)):(Z&&r&&yd(t),t.flags|=1,ze(e,t,i,a),t.child)}function hh(e,t,n,i,a){if(e===null){var s=n.type;return typeof s=="function"&&!gd(s)&&s.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=s,vy(e,t,s,i,a)):(e=tr(n.type,null,i,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Hd(e,a)){var l=s.memoizedProps;if(n=n.compare,n=n!==null?n:Bs,n(l,i)&&e.ref===t.ref)return xn(e,t,a)}return t.flags|=1,e=fn(s,i),e.ref=t.ref,e.return=t,t.child=e}function vy(e,t,n,i,a){if(e!==null){var s=e.memoizedProps;if(Bs(s,i)&&e.ref===t.ref)if(Te=!1,t.pendingProps=i=s,Hd(e,a))e.flags&131072&&(Te=!0);else return t.lanes=e.lanes,xn(e,t,a)}return pu(e,t,n,i,a)}function _y(e,t,n,i){var a=i.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if(t.flags&128){if(s=s!==null?s.baseLanes|n:n,e!==null){for(i=t.child=e.child,a=0;i!==null;)a=a|i.lanes|i.childLanes,i=i.sibling;i=a&~s}else i=0,t.child=null;return mh(e,t,s,n,i)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&nr(t,s!==null?s.cachePool:null),s!==null?nh(t,s):ou(),Bg(t);else return i=t.lanes=536870912,mh(e,t,s!==null?s.baseLanes|n:n,n,i)}
vendor: 10,783 bytes, line 48
48else s!==null?(nr(t,s.cachePool),nh(t,s),Mn(),t.memoizedState=null):(e!==null&&nr(t,null),ou(),Mn());return ze(e,t,a,n),t.child}function ls(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function mh(e,t,n,i,a){var s=vd();return s=s===null?null:{parent:je._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&nr(t,null),ou(),Bg(t),e!==null&&za(e,t,i,!0),t.childLanes=a,null}function sr(e,t){return t=Rr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ph(e,t,n){return Ci(t,e.child,null,n),e=sr(t,t.pendingProps),e.flags|=2,nt(t),t.memoizedState=null,e}function q0(e,t,n){var i=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Z){if(i.mode==="hidden")return e=sr(t,i),t.lanes=536870912,ls(null,e);if(cu(t),(e=ue)?(e=hb(e,xt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Wn!==null?{id:Ft,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},n=Cg(e),n.return=t,t.child=n,Re=t,ue=null)):e=null,e===null)throw Jn(t);return t.lanes=536870912,null}return sr(t,i)}var s=e.memoizedState;if(s!==null){var l=s.dehydrated;if(cu(t),a)if(t.flags&256)t.flags&=-257,t=ph(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(w(558));else if(Te||za(e,t,n,!1),a=(n&e.childLanes)!==0,Te||a){if(i=se,i!==null&&(l=Jp(i,n),l!==0&&l!==s.retryLane))throw s.retryLane=l,ki(e,l),Je(i,e,l),Ld;Ur(),t=ph(e,t,n)}else e=s.treeContext,ue=jt(l.nextSibling),Re=t,Z=!0,qn=null,xt=!1,e!==null&&Ag(t,e),t=sr(t,i),t.flags|=4096;return t}return e=fn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function lr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(w(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function pu(e,t,n,i,a){return Ei(t),n=Ed(e,t,n,i,void 0,a),i=Cd(),e!==null&&!Te?(wd(e,t,a),xn(e,t,a)):(Z&&i&&yd(t),t.flags|=1,ze(e,t,n,a),t.child)}function gh(e,t,n,i,a,s){return Ei(t),t.updateQueue=null,n=Hg(t,i,n,a),Lg(e),i=Cd(),e!==null&&!Te?(wd(e,t,s),xn(e,t,s)):(Z&&i&&yd(t),t.flags|=1,ze(e,t,n,s),t.child)}function yh(e,t,n,i,a){if(Ei(t),t.stateNode===null){var s=ea,l=n.contextType;typeof l=="object"&&l!==null&&(s=Be(l)),s=new n(i,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=hu,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=i,s.state=t.memoizedState,s.refs={},Sd(t),l=n.contextType,s.context=typeof l=="object"&&l!==null?Be(l):ea,s.state=t.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(ec(t,n,l,i),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(l=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),l!==s.state&&hu.enqueueReplaceState(s,s.state,null),bs(t,i,s,a),ys(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){s=t.stateNode;var r=t.memoizedProps,o=Ai(n,r);s.props=o;var u=s.context,d=n.contextType;l=ea,typeof d=="object"&&d!==null&&(l=Be(d));var f=n.getDerivedStateFromProps;d=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(r||u!==l)&&uh(t,s,i,l),wn=!1;var h=t.memoizedState;s.state=h,bs(t,i,s,a),ys(),u=t.memoizedState,r||h!==u||wn?(typeof f=="function"&&(ec(t,n,f,i),u=t.memoizedState),(o=wn||ch(t,n,o,i,h,u,l))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=u),s.props=i,s.state=u,s.context=l,i=o):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{s=t.stateNode,lu(e,t),l=t.memoizedProps,d=Ai(n,l),s.props=d,f=t.pendingProps,h=s.context,u=n.contextType,o=ea,typeof u=="object"&&u!==null&&(o=Be(u)),r=n.getDerivedStateFromProps,(u=typeof r=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==f||h!==o)&&uh(t,s,i,o),wn=!1,h=t.memoizedState,s.state=h,bs(t,i,s,a),ys();var m=t.memoizedState;l!==f||h!==m||wn||e!==null&&e.dependencies!==null&&Ar(e.dependencies)?(typeof r=="function"&&(ec(t,n,r,i),m=t.memoizedState),(d=wn||ch(t,n,d,i,h,m,o)||e!==null&&e.dependencies!==null&&Ar(e.dependencies))?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(i,m,o),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(i,m,o)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=m),s.props=i,s.state=m,s.context=o,i=d):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),i=!1)}return s=i,lr(e,t),i=(t.flags&128)!==0,s||i?(s=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&i?(t.child=Ci(t,e.child,null,a),t.child=Ci(t,null,n,a)):ze(e,t,n,a),t.memoizedState=s.state,e=t.child):e=xn(e,t,a),e}function bh(e,t,n,i){return Ti(),t.flags|=256,ze(e,t,n,i),t.child}var tc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function nc(e){return{baseLanes:e,cachePool:Mg()}}function ic(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=at),e}function Sy(e,t,n){var i=t.pendingProps,a=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(be.current&2)!==0),l&&(a=!0,t.flags&=-129),l=(t.flags&32)!==0,t.flags&=-33,e===null){if(Z){if(a?Nn(t):Mn(),(e=ue)?(e=hb(e,xt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Wn!==null?{id:Ft,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},n=Cg(e),n.return=t,t.child=n,Re=t,ue=null)):e=null,e===null)throw Jn(t);return Nu(e)?t.lanes=32:t.lanes=536870912,null}var r=i.children;return i=i.fallback,a?(Mn(),a=t.mode,r=Rr({mode:"hidden",children:r},a),i=xi(i,a,n,null),r.return=t,i.return=t,r.sibling=i,t.child=r,i=t.child,i.memoizedState=nc(n),i.childLanes=ic(e,l,n),t.memoizedState=tc,ls(null,i)):(Nn(t),gu(t,r))}var o=e.memoizedState;if(o!==null&&(r=o.dehydrated,r!==null)){if(s)t.flags&256?(Nn(t),t.flags&=-257,t=ac(e,t,n)):t.memoizedState!==null?(Mn(),t.child=e.child,t.flags|=128,t=null):(Mn(),r=i.fallback,a=t.mode,i=Rr({mode:"visible",children:i.children},a),r=xi(r,a,n,null),r.flags|=2,i.return=t,r.return=t,i.sibling=r,t.child=i,Ci(t,e.child,null,n),i=t.child,i.memoizedState=nc(n),i.childLanes=ic(e,l,n),t.memoizedState=tc,t=ls(null,i));else if(Nn(t),Nu(r)){if(l=r.nextSibling&&r.nextSibling.dataset,l)var u=l.dgst;l=u,i=Error(w(419)),i.stack="",i.digest=l,Hs({value:i,source:null,stack:null}),t=ac(e,t,n)}else if(Te||za(e,t,n,!1),l=(n&e.childLanes)!==0,Te||l){if(l=se,l!==null&&(i=Jp(l,n),i!==0&&i!==o.retryLane))throw o.retryLane=i,ki(e,i),Je(l,e,i),Ld;Au(r)||Ur(),t=ac(e,t,n)}else Au(r)?(t.flags|=192,t.child=e.child,t=null):(e=o.treeContext,ue=jt(r.nextSibling),Re=t,Z=!0,qn=null,xt=!1,e!==null&&Ag(t,e),t=gu(t,i.children),t.flags|=4096);return t}return a?(Mn(),r=i.fallback,a=t.mode,o=e.child,u=o.sibling,i=fn(o,{mode:"hidden",children:i.children}),i.subtreeFlags=o.subtreeFlags&65011712,u!==null?r=fn(u,r):(r=xi(r,a,n,null),r.flags|=2),r.return=t,i.return=t,i.sibling=r,t.child=i,ls(null,i),i=t.child,r=e.child.memoizedState,r===null?r=nc(n):(a=r.cachePool,a!==null?(o=je._currentValue,a=a.parent!==o?{parent:o,pool:o}:a):a=Mg(),r={baseLanes:r.baseLanes|n,cachePool:a}),i.memoizedState=r,i.childLanes=ic(e,l,n),t.memoizedState=tc,ls(e.child,i)):(Nn(t),n=e.child,e=n.sibling,n=fn(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(l=t.deletions,l===null?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=n,t.memoizedState=null,n)}function gu(e,t){return t=Rr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Rr(e,t){return e=it(22,e,null,t),e.lanes=0,e}function ac(e,t,n){return Ci(t,e.child,null,n),e=gu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xh(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),iu(e.return,t,n)}function sc(e,t,n,i,a,s){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:a,treeForkCount:s}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=i,l.tail=n,l.tailMode=a,l.treeForkCount=s)}function jy(e,t,n){var i=t.pendingProps,a=i.revealOrder,s=i.tail;i=i.children;var l=be.current,r=(l&2)!==0;if(r?(l=l&1|2,t.flags|=128):l&=1,re(be,l),ze(e,t,i,n),i=Z?Ls:0,!r&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xh(e,n,t);else if(e.tag===19)xh(e,n,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}switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Dr(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),sc(t,!1,a,n,s,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Dr(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}sc(t,!0,n,null,s,i);break;case"together":sc(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function xn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ei|=t.lanes,!(n&t.childLanes))if(e!==null){if(za(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(w(153));if(t.child!==null){for(e=t.child,n=fn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=fn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}
vendor: 4,244 bytes, line 48
48function Hd(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Ar(e)))}function F0(e,t,n){switch(t.tag){case 3:_r(t,t.stateNode.containerInfo),An(t,je,e.memoizedState.cache),Ti();break;case 27:case 5:Xc(t);break;case 4:_r(t,t.stateNode.containerInfo);break;case 10:An(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,cu(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Nn(t),t.flags|=128,null):n&t.child.childLanes?Sy(e,t,n):(Nn(t),e=xn(e,t,n),e!==null?e.sibling:null);Nn(t);break;case 19:var a=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(za(e,t,n,!1),i=(n&t.childLanes)!==0),a){if(i)return jy(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),re(be,be.current),i)break;return null;case 22:return t.lanes=0,_y(e,t,n,t.pendingProps);case 24:An(t,je,e.memoizedState.cache)}return xn(e,t,n)}function Ty(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Te=!0;else{if(!Hd(e,n)&&!(t.flags&128))return Te=!1,F0(e,t,n);Te=!!(e.flags&131072)}else Te=!1,Z&&t.flags&1048576&&wg(t,Ls,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=di(t.elementType),t.type=e,typeof e=="function")gd(e)?(i=Ai(e,i),t.tag=1,t=yh(null,t,e,i,n)):(t.tag=0,t=pu(null,t,e,i,n));else{if(e!=null){var a=e.$$typeof;if(a===nd){t.tag=11,t=fh(null,t,e,i,n);break e}else if(a===id){t.tag=14,t=hh(null,t,e,i,n);break e}}throw t=qc(e)||e,Error(w(306,t,""))}}return t;case 0:return pu(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,a=Ai(i,t.pendingProps),yh(e,t,i,a,n);case 3:e:{if(_r(t,t.stateNode.containerInfo),e===null)throw Error(w(387));i=t.pendingProps;var s=t.memoizedState;a=s.element,lu(e,t),bs(t,i,null,n);var l=t.memoizedState;if(i=l.cache,An(t,je,i),i!==s.cache&&au(t,[je],n,!0),ys(),i=l.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=bh(e,t,i,n);break e}else if(i!==a){a=bt(Error(w(424)),t),Hs(a),t=bh(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ue=jt(e.firstChild),Re=t,Z=!0,qn=null,xt=!0,n=zg(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ti(),i===a){t=xn(e,t,n);break e}ze(e,t,i,n)}t=t.child}return t;case 26:return lr(e,t),e===null?(n=Uh(t.type,null,t.pendingProps,null))?t.memoizedState=n:Z||(n=t.type,e=t.pendingProps,i=Fr(Yn.current).createElement(n),i[ke]=t,i[Ie]=e,Le(i,n,e),Me(i),t.stateNode=i):t.memoizedState=Uh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Xc(t),e===null&&Z&&(i=t.stateNode=mb(t.type,t.pendingProps,Yn.current),Re=t,xt=!0,a=ue,ii(t.type)?(Mu=a,ue=jt(i.firstChild)):ue=a),ze(e,t,t.pendingProps.children,n),lr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Z&&((a=i=ue)&&(i=x_(i,t.type,t.pendingProps,xt),i!==null?(t.stateNode=i,Re=t,ue=jt(i.firstChild),xt=!1,a=!0):a=!1),a||Jn(t)),Xc(t),a=t.type,s=t.pendingProps,l=e!==null?e.memoizedProps:null,i=s.children,Cu(a,s)?i=null:l!==null&&Cu(a,l)&&(t.flags|=32),t.memoizedState!==null&&(a=Ed(e,t,k0,null,null,n),Xs._currentValue=a),lr(e,t),ze(e,t,i,n),t.child;case 6:return e===null&&Z&&((e=n=ue)&&(n=v_(n,t.pendingProps,xt),n!==null?(t.stateNode=n,Re=t,ue=null,e=!0):e=!1),e||Jn(t)),null;case 13:return Sy(e,t,n);case 4:return _r(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ci(t,null,i,n):ze(e,t,i,n),t.child;case 11:return fh(e,t,t.type,t.pendingProps,n);case 7:return ze(e,t,t.pendingProps,n),t.child;case 8:return ze(e,t,t.pendingProps.children,n),t.child;case 12:return ze(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,An(t,t.type,i.value),ze(e,t,i.children,n),t.child;case 9:return a=t.type._context,i=t.pendingProps.children,Ei(t),a=Be(a),i=i(a),t.flags|=1,ze(e,t,i,n),t.child;case 14:return hh(e,t,t.type,t.pendingProps,n);case 15:return vy(e,t,t.type,t.pendingProps,n);case 19:return jy(e,t,n);case 31:return q0(e,t,n);case 22:return _y(e,t,n,t.pendingProps);case 24:return Ei(t),i=Be(je),e===null?(a=vd(),a===null&&(a=se,s=xd(),a.pooledCache=s,s.refCount++,s!==null&&(a.pooledCacheLanes|=n),a=s),t.memoizedState={parent:i,
vendor: 4,555 bytes, line 48
48cache:a},Sd(t),An(t,je,a)):(e.lanes&n&&(lu(e,t),bs(t,null,null,n),ys()),a=e.memoizedState,s=t.memoizedState,a.parent!==i?(a={parent:i,cache:i},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),An(t,je,i)):(i=s.cache,An(t,je,i),i!==a.cache&&au(t,[je],n,!0))),ze(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(w(156,t.tag))}function Jt(e){e.flags|=4}function lc(e,t,n,i,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(Qy())e.flags|=8192;else throw _i=Nr,_d}else e.flags&=-16777217}function vh(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!yb(t))if(Qy())e.flags|=8192;else throw _i=Nr,_d}function El(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Zp():536870912,e.lanes|=t,Sa|=t)}function Pa(e,t){if(!Z)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags&65011712,i|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags,i|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function X0(e,t,n){var i=t.pendingProps;switch(bd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return oe(t),null;case 1:return oe(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),hn(je),ga(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ui(t)?Jt(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Wo())),oe(t),null;case 26:var a=t.type,s=t.memoizedState;return e===null?(Jt(t),s!==null?(oe(t),vh(t,s)):(oe(t),lc(t,a,null,i,n))):s?s!==e.memoizedState?(Jt(t),oe(t),vh(t,s)):(oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Jt(t),oe(t),lc(t,a,e,i,n)),null;case 27:if(Sr(t),n=Yn.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Jt(t);else{if(!i){if(t.stateNode===null)throw Error(w(166));return oe(t),null}e=Pt.current,Ui(t)?Zf(t):(e=mb(a,i,n),t.stateNode=e,Jt(t))}return oe(t),null;case 5:if(Sr(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Jt(t);else{if(!i){if(t.stateNode===null)throw Error(w(166));return oe(t),null}if(s=Pt.current,Ui(t))Zf(t);else{var l=Fr(Yn.current);switch(s){case 1:s=l.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:s=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":s=l.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":s=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":s=l.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof i.is=="string"?l.createElement("select",{is:i.is}):l.createElement("select"),i.multiple?s.multiple=!0:i.size&&(s.size=i.size);break;default:s=typeof i.is=="string"?l.createElement(a,{is:i.is}):l.createElement(a)}}s[ke]=t,s[Ie]=i;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)s.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=s;e:switch(Le(s,a,i),a){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Jt(t)}}return oe(t),lc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Jt(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(w(166));if(e=Yn.current,Ui(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,a=Re,a!==null)switch(a.tag){case 27:case 5:i=a.memoizedProps}e[ke]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||ub(e.nodeValue,n)),e||Jn(t,!0)}else e=Fr(e).createTextNode(i),e[ke]=t,t.stateNode=e}return oe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Ui(t),n!==null){if(e===null){if(!i)throw Error(w(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(w(557)
vendor: 27,968 bytes, line 48
48);e[ke]=t}else Ti(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;oe(t),e=!1}else n=Wo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(nt(t),t):(nt(t),null);if(t.flags&128)throw Error(w(558))}return oe(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ui(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(w(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(w(317));a[ke]=t}else Ti(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;oe(t),a=!1}else a=Wo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(nt(t),t):(nt(t),null)}return nt(t),t.flags&128?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,a=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(a=i.alternate.memoizedState.cachePool.pool),s=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(s=i.memoizedState.cachePool.pool),s!==a&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),El(t,t.updateQueue),oe(t),null);case 4:return ga(),e===null&&Gd(t.stateNode.containerInfo),oe(t),null;case 10:return hn(t.type),oe(t),null;case 19:if(De(be),i=t.memoizedState,i===null)return oe(t),null;if(a=(t.flags&128)!==0,s=i.rendering,s===null)if(a)Pa(i,!1);else{if(ye!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Dr(e),s!==null){for(t.flags|=128,Pa(i,!1),e=s.updateQueue,t.updateQueue=e,El(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Eg(n,e),n=n.sibling;return re(be,be.current&1|2),Z&&ln(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&st()>Lr&&(t.flags|=128,a=!0,Pa(i,!1),t.lanes=4194304)}else{if(!a)if(e=Dr(s),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,El(t,e),Pa(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Z)return oe(t),null}else 2*st()-i.renderingStartTime>Lr&&n!==536870912&&(t.flags|=128,a=!0,Pa(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(e=i.last,e!==null?e.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=st(),e.sibling=null,n=be.current,re(be,a?n&1|2:n&1),Z&&ln(t,i.treeForkCount),e):(oe(t),null);case 22:case 23:return nt(t),jd(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?n&536870912&&!(t.flags&128)&&(oe(t),t.subtreeFlags&6&&(t.flags|=8192)):oe(t),n=t.updateQueue,n!==null&&El(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&De(vi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),hn(je),oe(t),null;case 25:return null;case 30:return null}throw Error(w(156,t.tag))}function G0(e,t){switch(bd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hn(je),ga(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Sr(t),null;case 31:if(t.memoizedState!==null){if(nt(t),t.alternate===null)throw Error(w(340));Ti()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(nt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(w(340));Ti()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return De(be),null;case 4:return ga(),null;case 10:return hn(t.type),null;case 22:case 23:return nt(t),jd(),e!==null&&De(vi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return hn(je),null;case 25:return null;default:return null}}function Ey(e,t){switch(bd(t),t.tag){case 3:hn(je),ga();break;case 26:case 27:case 5:Sr(t);break;case 4:ga();break;case 31:t.memoizedState!==null&&nt(t);break;case 13:nt(t);break;case 19:De(be);break;case 10:hn(t.type);break;case 22:case 23:nt(t),jd(),e!==null&&De(vi);break;case 24:hn(je)}}function ol(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var a=i.next;n=a;do{if((n.tag&e)===e){i=void 0;var s=n.create,l=n.inst;i=s(),l.destroy=i}n=n.next}while(n!==a)}}catch(r){te(t,t.return,r)}}function In(e,t,n){try{var i=t.updateQueue,a=i!==null?i.lastEffect:null;if(a!==null){var s=a.next;i=s;do{if((i.tag&e)===e){var l=i.inst,r=l.destroy;if(r!==void 0){l.destroy=void 0,a=t;var o=n,u=r;try{u()}catch(d){te(a,o,d)}}}i=i.next}while(i!==s)}}catch(d){te(t,t.return,d)}}function Cy(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Rg(t,n)}catch(i){te(e,e.return,i)}}}function wy(e,t,n){n.props=Ai(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){te(e,t,i)}}function vs(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(a){te(e,t,a)}}function Gt(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(a){te(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){te(e,t,a)}else n.current=null}function Ay(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(a){te(e,e.return,a)}}function rc(e,t,n){try{var i=e.stateNode;h_(i,e.type,n,t),i[Ie]=t}catch(a){te(e,e.return,a)}}function Ny(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ii(e.type)||e.tag===4}function oc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ny(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.tag===27&&ii(e.type)||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 yu(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=un));else if(i!==4&&(i===27&&ii(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(yu(e,t,n),e=e.sibling;e!==null;)yu(e,t,n),e=e.sibling}function Br(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&ii(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Br(e,t,n),e=e.sibling;e!==null;)Br(e,t,n),e=e.sibling}function My(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Le(t,i,n),t[ke]=e,t[Ie]=n}catch(s){te(e,e.return,s)}}var on=!1,Se=!1,cc=!1,_h=typeof WeakSet=="function"?WeakSet:Set,Ne=null;function P0(e,t){if(e=e.containerInfo,Tu=$r,e=yg(e),hd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var l=0,r=-1,o=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(r=l+a),f!==s||i!==0&&f.nodeType!==3||(o=l+i),f.nodeType===3&&(l+=f.nodeValue.length),(m=f.firstChild)!==null;)h=f,f=m;for(;;){if(f===e)break t;if(h===n&&++u===a&&(r=l),h===s&&++d===i&&(o=l),(m=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=m}n=r===-1||o===-1?null:{start:r,end:o}}else n=null}n=n||{start:0,end:0}}else n=null;for(Eu={focusedElem:e,selectionRange:n},$r=!1,Ne=t;Ne!==null;)if(t=Ne,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ne=e;else for(;Ne!==null;){switch(t=Ne,s=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&s!==null){e=void 0,n=t,a=s.memoizedProps,s=s.memoizedState,i=n.stateNode;try{var y=Ai(n.type,a);e=i.getSnapshotBeforeUpdate(y,s),i.__reactInternalSnapshotBeforeUpdate=e}catch(b){te(n,n.return,b)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)wu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":wu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(w(163))}if(e=t.sibling,e!==null){e.return=t.return,Ne=e;break}Ne=t.return}}function Dy(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:en(e,n),i&4&&ol(5,n);break;case 1:if(en(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(l){te(n,n.return,l)}else{var a=Ai(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){te(n,n.return,l)}}i&64&&Cy(n),i&512&&vs(n,n.return);break;case 3:if(en(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Rg(e,t)}catch(l){te(n,n.return,l)}}break;case 27:t===null&&i&4&&My(n);case 26:case 5:en(e,n),t===null&&i&4&&Ay(n),i&512&&vs(n,n.return);break;case 12:en(e,n);break;case 31:en(e,n),i&4&&ky(e,n);break;case 13:en(e,n),i&4&&Ry(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=t_.bind(null,n),__(e,n))));break;case 22:if(i=n.memoizedState!==null||on,!i){t=t!==null&&t.memoizedState!==null||Se,a=on;var s=Se;on=i,(Se=t)&&!s?nn(e,n,(n.subtreeFlags&8772)!==0):en(e,n),on=a,Se=s}break;case 30:break;default:en(e,n)}}function Oy(e){var t=e.alternate;t!==null&&(e.alternate=null,Oy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&rd(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var he=null,Ze=!1;function It(e,t,n){for(n=n.child;n!==null;)zy(e,t,n),n=n.sibling}function zy(e,t,n){if(lt&&typeof lt.onCommitFiberUnmount=="function")try{lt.onCommitFiberUnmount(tl,n)}catch{}switch(n.tag){case 26:Se||Gt(n,t),It(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Se||Gt(n,t);var i=he,a=Ze;ii(n.type)&&(he=n.stateNode,Ze=!1),It(e,t,n),Ts(n.stateNode),he=i,Ze=a;break;case 5:Se||Gt(n,t);case 6:if(i=he,a=Ze,he=null,It(e,t,n),he=i,Ze=a,he!==null)if(Ze)try{(he.nodeType===9?he.body:he.nodeName==="HTML"?he.ownerDocument.body:he).removeChild(n.stateNode)}catch(s){te(n,t,s)}else try{he.removeChild(n.stateNode)}catch(s){te(n,t,s)}break;case 18:he!==null&&(Ze?(e=he,kh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ca(e)):kh(he,n.stateNode));break;case 4:i=he,a=Ze,he=n.stateNode.containerInfo,Ze=!0,It(e,t,n),he=i,Ze=a;break;case 0:case 11:case 14:case 15:In(2,n,t),Se||In(4,n,t),It(e,t,n);break;case 1:Se||(Gt(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&wy(n,t,i)),It(e,t,n);break;case 21:It(e,t,n);break;case 22:Se=(i=Se)||n.memoizedState!==null,It(e,t,n),Se=i;break;default:It(e,t,n)}}function ky(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ca(e)}catch(n){te(t,t.return,n)}}}function Ry(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ca(e)}catch(n){te(t,t.return,n)}}function $0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new _h),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new _h),t;default:throw Error(w(435,e.tag))}}function Cl(e,t){var n=$0(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var a=n_.bind(null,e,i);i.then(a,a)}})}function Pe(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i],s=e,l=t,r=l;e:for(;r!==null;){switch(r.tag){case 27:if(ii(r.type)){he=r.stateNode,Ze=!1;break e}break;case 5:he=r.stateNode,Ze=!1;break e;case 3:case 4:he=r.stateNode.containerInfo,Ze=!0;break e}r=r.return}if(he===null)throw Error(w(160));zy(s,l,a),he=null,Ze=!1,s=a.alternate,s!==null&&(s.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)By(t,e),t=t.sibling}var Mt=null;function By(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Pe(t,e),$e(e),i&4&&(In(3,e,e.return),ol(3,e),In(5,e,e.return));break;case 1:Pe(t,e),$e(e),i&512&&(Se||n===null||Gt(n,n.return)),i&64&&on&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var a=Mt;if(Pe(t,e),$e(e),i&512&&(Se||n===null||Gt(n,n.return)),i&4){var s=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(i){case"title":s=a.getElementsByTagName("title")[0],(!s||s[al]||s[ke]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=a.createElement(i),a.head.insertBefore(s,a.querySelector("head > title"))),Le(s,i,n),s[ke]=e,Me(s),i=s;break e;case"link":var l=Yh("link","href",a).get(i+(n.href||""));if(l){for(var r=0;r<l.length;r++)if(s=l[r],s.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&s.getAttribute("rel")===(n.rel==null?null:n.rel)&&s.getAttribute("title")===(n.title==null?null:n.title)&&s.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){l.splice(r,1);break t}}s=a.createElement(i),Le(s,i,n),a.head.appendChild(s);break;case"meta":if(l=Yh("meta","content",a).get(i+(n.content||""))){for(r=0;r<l.length;r++)if(s=l[r],s.getAttribute("content")===(n.content==null?null:""+n.content)&&s.getAttribute("name")===(n.name==null?null:n.name)&&s.getAttribute("property")===(n.property==null?null:n.property)&&s.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&s.getAttribute("charset")===(n.charSet==null?null:n.charSet)){l.splice(r,1);break t}}s=a.createElement(i),Le(s,i,n),a.head.appendChild(s);break;default:throw Error(w(468,i))}s[ke]=e,Me(s),i=s}e.stateNode=i}else qh(a,e.type,e.stateNode);else e.stateNode=Vh(a,i,e.memoizedProps);else s!==i?(s===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):s.count--,i===null?qh(a,e.type,e.stateNode):Vh(a,i,e.memoizedProps)):i===null&&e.stateNode!==null&&rc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Pe(t,e),$e(e),i&512&&(Se||n===null||Gt(n,n.return)),n!==null&&i&4&&rc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Pe(t,e),$e(e),i&512&&(Se||n===null||Gt(n,n.return)),e.flags&32){a=e.stateNode;try{ba(a,"")}catch(y){te(e,e.return,y)}}i&4&&e.stateNode!=null&&(a=e.memoizedProps,rc(e,a,n!==null?n.memoizedProps:a)),i&1024&&(cc=!0);break;case 6:if(Pe(t,e),$e(e),i&4){if(e.stateNode===null)throw Error(w(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(y){te(e,e.return,y)}}break;case 3:if(cr=null,a=Mt,Mt=Xr(t.containerInfo),Pe(t,e),Mt=a,$e(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ca(t.containerInfo)}catch(y){te(e,e.return,y)}cc&&(cc=!1,Ly(e));break;case 4:i=Mt,Mt=Xr(e.stateNode.containerInfo),Pe(t,e),$e(e),Mt=i;break;case 12:Pe(t,e),$e(e);break;case 31:Pe(t,e),$e(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Cl(e,i)));break;case 13:Pe(t,e),$e(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(vo=st()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Cl(e,i)));break;case 22:a=e.memoizedState!==null;var o=n!==null&&n.memoizedState!==null,u=on,d=Se;if(on=u||a,Se=d||o,Pe(t,e),Se=d,on=u,$e(e),i&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||o||on||Se||fi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){o=n=t;try{if(s=o.stateNode,a)l=s.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none";else{r=o.stateNode;var f=o.memoizedProps.style,h=f!=null&&f.hasOwnProperty("display")?f.display:null;r.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(y){te(o,o.return,y)}}}else if(t.tag===6){if(n===null){o=t;try{o.stateNode.nodeValue=a?"":o.memoizedProps}catch(y){te(o,o.return,y)}}}else if(t.tag===18){if(n===null){o=t;try{var m=o.stateNode;a?Rh(m,!0):Rh(o.stateNode,!1)}catch(y){te(o,o.return,y)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,Cl(e,n))));break;case 19:Pe(t,e),$e(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Cl(e,i)));break;case 30:break;case 21:break;default:Pe(t,e),$e(e)}}function $e(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Ny(i)){n=i;break}i=i.return}if(n==null)throw Error(w(160));switch(n.tag){case 27:var a=n.stateNode,s=oc(e);Br(e,s,a);break;case 5:var l=n.stateNode;n.flags&32&&(ba(l,""),n.flags&=-33);var r=oc(e);Br(e,r,l);break;case 3:case 4:var o=n.stateNode.containerInfo,u=oc(e);yu(e,u,o);break;default:throw Error(w(161))}}catch(d){te(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ly(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ly(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function en(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Dy(e,t.alternate,t),t=t.sibling}function fi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:In(4,t,t.return),fi(t);break;case 1:Gt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&wy(t,t.return,n),fi(t);break;case 27:Ts(t.stateNode);case 26:case 5:Gt(t,t.return),fi(t);break;case 22:t.memoizedState===null&&fi(t);break;case 30:fi(t);break;default:fi(t)}e=e.sibling}}function nn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,a=e,s=t,l=s.flags;switch(s.tag){case 0:case 11:case 15:nn(a,s,n),ol(4,s);break;case 1:if(nn(a,s,n),i=s,a=i.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){te(i,i.return,u)}if(i=s,a=i.updateQueue,a!==null){var r=i.stateNode;try{var o=a.shared.hiddenCallbacks;if(o!==null)for(a.shared.hiddenCallbacks=null,a=0;a<o.length;a++)kg(o[a],r)}catch(u){te(i,i.return,u)}}n&&l&64&&Cy(s),vs(s,s.return);break;case 27:My(s);case 26:case 5:nn(a,s,n),n&&i===null&&l&4&&Ay(s),vs(s,s.return);break;case 12:nn(a,s,n);break;case 31:nn(a,s,n),n&&l&4&&ky(a,s);break;case 13:nn(a,s,n),n&&l&4&&Ry(a,s);break;case 22:s.memoizedState===null&&nn(a,s,n),vs(s,s.return);break;case 30:break;default:nn(a,s,n)}t=t.sibling}}function Ud(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ll(n))}function Vd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ll(e))}function Nt(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Hy(e,t,n,i),t=t.sibling}function Hy(e,t,n,i){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Nt(e,t,n,i),a&2048&&ol(9,t);break;case 1:Nt(e,t,n,i);break;case 3:Nt(e,t,n,i),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ll(e)));break;case 12:if(a&2048){Nt(e,t,n,i),e=t.stateNode;try{var s=t.memoizedProps,l=s.id,r=s.onPostCommit;typeof r=="function"&&r(l,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(o){te(t,t.return,o)}}else Nt(e,t,n,i);break;case 31:Nt(e,t,n,i);break;case 13:Nt(e,t,n,i);break;case 23:break;case 22:s=t.stateNode,l=t.alternate,t.memoizedState!==null?s._visibility&2?Nt(e,t,n,i):_s(e,t):s._visibility&2?Nt(e,t,n,i):(s._visibility|=2,Xi(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),a&2048&&Ud(l,t);break;case 24:Nt(e,t,n,i),a&2048&&Vd(t.alternate,t);break;default:Nt(e,t,n,i)}}function Xi(e,t,n,i,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,l=t,r=n,o=i,u=l.flags;switch(l.tag){case 0:case 11:case 15:Xi(s,l,r,o,a),ol(8,l);break;case 23:break;case 22:var d=l.stateNode;l.memoizedState!==null?d._visibility&2?Xi(s,l,r,o,a):_s(s,l):(d._visibility|=2,Xi(s,l,r,o,a)),a&&u&2048&&Ud(l.alternate,l);break;case 24:Xi(s,l,r,o,a),a&&u&2048&&Vd(l.alternate,l);break;default:Xi(s,l,r,o,a)}t=t.sibling}}function _s(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,a=i.flags;switch(i.tag){case 22:_s(n,i),a&2048&&Ud(i.alternate,i);break;case 24:_s(n,i),a&2048&&Vd(i.alternate,i);break;default:_s(n,i)}t=t.sibling}}var rs=8192;function Vi(e,t,n){if(e.subtreeFlags&rs)for(e=e.child;e!==null;)Uy(e,t,n),e=e.sibling}function Uy(e,t,n){switch(e.tag){case 26:Vi(e,t,n),e.flags&rs&&e.memoizedState!==null&&z_(n,Mt,e.memoizedState,e.memoizedProps);break;case 5:Vi(e,t,n);break;case 3:case 4:var i=Mt;Mt=Xr(e.stateNode.containerInfo),Vi(e,t,n),Mt=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=rs,rs=16777216,Vi(e,t,n),rs=i):Vi(e,t,n));break;default:Vi(e,t,n)}}function Vy(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function $a(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Ne=i,qy(i,e)}Vy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yy(e),e=e.sibling}function Yy(e){switch(e.tag){case 0:case 11:case 15:$a(e),e.flags&2048&&In(9,e,e.return);break;case 3:$a(e);break;case 12:$a(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,rr(e)):$a(e);break;default:$a(e)}}function rr(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Ne=i,qy(i,e)}Vy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:In(8,t,t.return),rr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,rr(t));break;default:rr(t)}e=e.sibling}}function qy(e,t){for(;Ne!==null;){var n=Ne;switch(n.tag){case 0:case 11:case 15:In(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:ll(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,Ne=i;else e:for(n=e;Ne!==null;){i=Ne;var a=i.sibling,s=i.return;if(Oy(i),i===n){Ne=null;break e}if(a!==null){a.return=s,Ne=a;break e}Ne=s}}}var Q0={getCacheForType:function(e){var t=Be(je),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Be(je).controller.signal}},Z0=typeof WeakMap=="function"?WeakMap:Map,W=0,se=null,G=null,$=0,I=0,tt=null,Rn=!1,Ra=!1,Yd=!1,vn=0,ye=0,ei=0,Si=0,qd=0,at=0,Sa=0,Ss=null,Ke=null,bu=!1,vo=0,Fy=0,Lr=1/0,Hr=null,Gn=null,Ce=0,Pn=null,ja=null,mn=0,xu=0,vu=null,Xy=null,js=0,_u=null;function ot(){return W&2&&$!==0?$&-$:U.T!==null?Xd():Ip()}function Gy(){if(at===0)if(!($&536870912)||Z){var e=bl;bl<<=1,!(bl&3932160)&&(bl=262144),at=e}else at=536870912;return e=ut.current,e!==null&&(e.flags|=32),at}function Je(e,t,n){(e===se&&(I===2||I===9)||e.cancelPendingCommit!==null)&&(Ta(e,0),Bn(e,$,at,!1)),il(e,n),(!(W&2)||e!==se)&&(e===se&&(!(W&2)&&(Si|=n),ye===4&&Bn(e,$,at,!1)),Qt(e))}function Py(e,t,n){if(W&6)throw Error(w(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||nl(e,t),a=i?J0(e,t):uc(e,t,!0),s=i;do{if(a===0){Ra&&!i&&Bn(e,t,0,!1);break}else{if(n=e.current.alternate,s&&!K0(n)){a=uc(e,t,!1),s=!1;continue}if(a===2){if(s=t,e.errorRecoveryDisabledLanes&s)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){t=l;e:{var r=e;a=Ss;var o=r.current.memoizedState.isDehydrated;if(o&&(Ta(r,l).flags|=256),l=uc(r,l,!1),l!==2){if(Yd&&!o){r.errorRecoveryDisabledLanes|=s,Si|=s,a=4;break e}s=Ke,Ke=a,s!==null&&(Ke===null?Ke=s:Ke.push.apply(Ke,s))}a=l}if(s=!1,a!==2)continue}}if(a===1){Ta(e,0),Bn(e,t,0,!0);break}e:{switch(i=e,s=a,s){case 0:case 1:throw Error(w(345));case 4:if((t&4194048)!==t)break;case 6:Bn(i,t,at,!Rn);break e;case 2:Ke=null;break;case 3:case 5:break;default:throw Error(w(329))}if((t&62914560)===t&&(a=vo+300-st(),10<a)){if(Bn(i,t,at,!Rn),oo(i,0,!0)!==0)break e;mn=t,i.timeoutHandle=fb(Sh.bind(null,i,n,Ke,Hr,bu,t,at,Si,Sa,Rn,s,"Throttled",-0,0),a);break e}Sh(i,n,Ke,Hr,bu,t,at,Si,Sa,Rn,s,null,-0,0)}}break}while(!0);Qt(e)}function Sh(e,t,n,i,a,s,l,r,o,u,d,f,h,m){if(e.timeoutHandle=-1,f=t.subtreeFlags,f&8192||(f&16785408)===16785408){f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:un},Uy(t,s,f);var y=(s&62914560)===s?vo-st():(s&4194048)===s?Fy-st():0;if(y=k_(f,y),y!==null){mn=s,e.cancelPendingCommit=y(Th.bind(null,e,t,s,n,i,a,l,r,o,d,f,null,h,m)),Bn(e,s,l,!u);return}}Th(e,t,s,n,i,a,l,r,o)}function K0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var a=n[i],s=a.getSnapshot;a=a.value;try{if(!ct(s(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Bn(e,t,n,i){t&=~qd,t&=~Si,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var a=t;0<a;){var s=31-rt(a),l=1<<s;i[s]=-1,a&=~l}n!==0&&Kp(e,n,t)}function _o(){return W&6?!0:(cl(0),!1)}function Fd(){if(G!==null){if(I===0)var e=G.return;else e=G,dn=Ri=null,Ad(e),ca=null,Us=0,e=G;for(;e!==null;)Ey(e.alternate,e),e=e.return;G=null}}function Ta(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,g_(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),mn=0,Fd(),se=e,G=n=fn(e.current,null),$=t,I=0,tt=null,Rn=!1,Ra=nl(e,t),Yd=!1,Sa=at=qd=Si=ei=ye=0,Ke=Ss=null,bu=!1,t&8&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var a=31-rt(i),s=1<<a;t|=e[a],i&=~s}return vn=t,ho(),n}function $y(e,t){q=null,U.H=Ys,t===ka||t===po?(t=eh(),I=3):t===_d?(t=eh(),I=4):I=t===Ld?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,tt=t,G===null&&(ye=1,kr(e,bt(t,e.current)))}function Qy(){var e=ut.current;return e===null?!0:($&4194048)===$?St===null:($&62914560)===$||$&536870912?e===St:!1}function Zy(){var e=U.H;return U.H=Ys,e===null?Ys:e}function Ky(){var e=U.A;return U.A=Q0,e}function Ur(){ye=4,Rn||($&4194048)!==$&&ut.current!==null||(Ra=!0),!(ei&134217727)&&!(Si&134217727)||se===null||Bn(se,$,at,!1)}function uc(e,t,n){var i=W;W|=2;var a=Zy(),s=Ky();(se!==e||$!==t)&&(Hr=null,Ta(e,t)),t=!1;var l=ye;e:do try{if(I!==0&&G!==null){var r=G,o=tt;switch(I){case 8:Fd(),l=6;break e;case 3:case 2:case 9:case 6:ut.current===null&&(t=!0);var u=I;if(I=0,tt=null,ia(e,r,o,u),n&&Ra){l=0;break e}break;default:u=I,I=0,tt=null,ia(e,r,o,u)}}W0(),l=ye;break}catch(d){$y(e,d)}while(!0);return t&&e.shellSuspendCounter++,dn=Ri=null,W=i,U.H=a,U.A=s,G===null&&(se=null,$=0,ho()),l}function W0(){for(;G!==null;)Wy(G)}function J0(e,t){var n=W;W|=2;var i=Zy(),a=Ky();se!==e||$!==t?(Hr=null,Lr=st()+500,Ta(e,t)):Ra=nl(e,t);e:do try{if(I!==0&&G!==null){t=G;var s=tt;t:switch(I){case 1:I=0,tt=null,ia(e,t,s,1);break;case 2:case 9:if(If(s)){I=0,tt=null,jh(t);break}t=function(){I!==2&&I!==9||se!==e||(I=7),Qt(e)},s.then(t,t);break e;case 3:I=7;break e;case 4:I=5;break e;case 7:If(s)?(I=0,tt=null,jh(t)):(I=0,tt=null,ia(e,t,s,7));break;case 5:var l=null;switch(G.tag){case 26:l=G.memoizedState;case 5:case 27:var r=G;if(l?yb(l):r.stateNode.complete){I=0,tt=null;var o=r.sibling;if(o!==null)G=o;else{var u=r.return;u!==null?(G=u,So(u)):G=null}break t}}I=0,tt=null,ia(e,t,s,5);break;
vendor: 4,483 bytes, line 48
48case 6:I=0,tt=null,ia(e,t,s,6);break;case 8:Fd(),ye=6;break e;default:throw Error(w(462))}}I0();break}catch(d){$y(e,d)}while(!0);return dn=Ri=null,U.H=i,U.A=a,W=n,G!==null?0:(se=null,$=0,ho(),ye)}function I0(){for(;G!==null&&!Sv();)Wy(G)}function Wy(e){var t=Ty(e.alternate,e,vn);e.memoizedProps=e.pendingProps,t===null?So(e):G=t}function jh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=gh(n,t,t.pendingProps,t.type,void 0,$);break;case 11:t=gh(n,t,t.pendingProps,t.type.render,t.ref,$);break;case 5:Ad(t);default:Ey(n,t),t=G=Eg(t,vn),t=Ty(n,t,vn)}e.memoizedProps=e.pendingProps,t===null?So(e):G=t}function ia(e,t,n,i){dn=Ri=null,Ad(t),ca=null,Us=0;var a=t.return;try{if(Y0(e,a,t,n,$)){ye=1,kr(e,bt(n,e.current)),G=null;return}}catch(s){if(a!==null)throw G=a,s;ye=1,kr(e,bt(n,e.current)),G=null;return}t.flags&32768?(Z||i===1?e=!0:Ra||$&536870912?e=!1:(Rn=e=!0,(i===2||i===9||i===3||i===6)&&(i=ut.current,i!==null&&i.tag===13&&(i.flags|=16384))),Jy(t,e)):So(t)}function So(e){var t=e;do{if(t.flags&32768){Jy(t,Rn);return}e=t.return;var n=X0(t.alternate,t,vn);if(n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);ye===0&&(ye=5)}function Jy(e,t){do{var n=G0(e.alternate,e);if(n!==null){n.flags&=32767,G=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){G=e;return}G=e=n}while(e!==null);ye=6,G=null}function Th(e,t,n,i,a,s,l,r,o){e.cancelPendingCommit=null;do jo();while(Ce!==0);if(W&6)throw Error(w(327));if(t!==null){if(t===e.current)throw Error(w(177));if(s=t.lanes|t.childLanes,s|=md,Ov(e,n,s,l,r,o),e===se&&(G=se=null,$=0),ja=t,Pn=e,mn=n,xu=s,vu=a,Xy=i,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,i_(jr,function(){return ib(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,t.subtreeFlags&13878||i){i=U.T,U.T=null,a=J.p,J.p=2,l=W,W|=4;try{P0(e,t,n)}finally{W=l,J.p=a,U.T=i}}Ce=1,Iy(),eb(),tb()}}function Iy(){if(Ce===1){Ce=0;var e=Pn,t=ja,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=U.T,U.T=null;var i=J.p;J.p=2;var a=W;W|=4;try{By(t,e);var s=Eu,l=yg(e.containerInfo),r=s.focusedElem,o=s.selectionRange;if(l!==r&&r&&r.ownerDocument&&gg(r.ownerDocument.documentElement,r)){if(o!==null&&hd(r)){var u=o.start,d=o.end;if(d===void 0&&(d=u),"selectionStart"in r)r.selectionStart=u,r.selectionEnd=Math.min(d,r.value.length);else{var f=r.ownerDocument||document,h=f&&f.defaultView||window;if(h.getSelection){var m=h.getSelection(),y=r.textContent.length,b=Math.min(o.start,y),v=o.end===void 0?b:Math.min(o.end,y);!m.extend&&b>v&&(l=v,v=b,b=l);var p=Pf(r,b),g=Pf(r,v);if(p&&g&&(m.rangeCount!==1||m.anchorNode!==p.node||m.anchorOffset!==p.offset||m.focusNode!==g.node||m.focusOffset!==g.offset)){var x=f.createRange();x.setStart(p.node,p.offset),m.removeAllRanges(),b>v?(m.addRange(x),m.extend(g.node,g.offset)):(x.setEnd(g.node,g.offset),m.addRange(x))}}}}for(f=[],m=r;m=m.parentNode;)m.nodeType===1&&f.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<f.length;r++){var T=f[r];T.element.scrollLeft=T.left,T.element.scrollTop=T.top}}$r=!!Tu,Eu=Tu=null}finally{W=a,J.p=i,U.T=n}}e.current=t,Ce=2}}function eb(){if(Ce===2){Ce=0;var e=Pn,t=ja,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=U.T,U.T=null;var i=J.p;J.p=2;var a=W;W|=4;try{Dy(e,t.alternate,t)}finally{W=a,J.p=i,U.T=n}}Ce=3}}function tb(){if(Ce===4||Ce===3){Ce=0,jv();var e=Pn,t=ja,n=mn,i=Xy;t.subtreeFlags&10256||t.flags&10256?Ce=5:(Ce=0,ja=Pn=null,nb(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Gn=null),ld(n),t=t.stateNode,lt&&typeof lt.onCommitFiberRoot=="function")try{lt.onCommitFiberRoot(tl,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=U.T,a=J.p,J.p=2,U.T=null;try{for(var s=e.onRecoverableError,l=0;l<i.length;l++){var r=i[l];s(r.value,{componentStack:r.stack})}}finally{U.T=t,J.p=a}}mn&3&&jo(),Qt(e),a=e.pendingLanes,n&261930&&a&42?e===_u?js++:(js=0,_u=e):js=0,cl(0)}}function nb(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ll(t)))}function jo(){return Iy(),eb(),tb(),ib()}function ib(){if(Ce!==5)return!1;var e=Pn,t=xu;xu=0;var n=ld(mn),i=U.T,a=J.p;try{J.p=32>n?32:n,U.T=null,n=vu,vu=null;var s=Pn,l=mn;if(Ce=0,ja=Pn=null,mn=0,W&6)throw Error(w(331));var r=W;if(W|=4,Yy(s.current),Hy(s,s.current,l,n),W=r,cl(0,!1),lt&&typeof lt.onPostCommitFiberRoot=="function")try{lt.onPostCommitFiberRoot(tl,s)}catch{}return!0}finally{J.p=a,U.T=i,nb(e,t)}}
vendor: 4,913 bytes, line 48
48function Eh(e,t,n){t=bt(n,t),t=mu(e.stateNode,t,2),e=Xn(e,t,2),e!==null&&(il(e,2),Qt(e))}function te(e,t,n){if(e.tag===3)Eh(e,e,n);else for(;t!==null;){if(t.tag===3){Eh(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Gn===null||!Gn.has(i))){e=bt(n,e),n=by(2),i=Xn(t,n,2),i!==null&&(xy(n,i,t,e),il(i,2),Qt(i));break}}t=t.return}}function dc(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Z0;var a=new Set;i.set(t,a)}else a=i.get(t),a===void 0&&(a=new Set,i.set(t,a));a.has(n)||(Yd=!0,a.add(n),e=e_.bind(null,e,t,n),t.then(e,e))}function e_(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,se===e&&($&n)===n&&(ye===4||ye===3&&($&62914560)===$&&300>st()-vo?!(W&2)&&Ta(e,0):qd|=n,Sa===$&&(Sa=0)),Qt(e)}function ab(e,t){t===0&&(t=Zp()),e=ki(e,t),e!==null&&(il(e,t),Qt(e))}function t_(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ab(e,n)}function n_(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(w(314))}i!==null&&i.delete(t),ab(e,n)}function i_(e,t){return ad(e,t)}var Vr=null,Gi=null,Su=!1,Yr=!1,fc=!1,Ln=0;function Qt(e){e!==Gi&&e.next===null&&(Gi===null?Vr=Gi=e:Gi=Gi.next=e),Yr=!0,Su||(Su=!0,s_())}function cl(e,t){if(!fc&&Yr){fc=!0;do for(var n=!1,i=Vr;i!==null;){if(e!==0){var a=i.pendingLanes;if(a===0)var s=0;else{var l=i.suspendedLanes,r=i.pingedLanes;s=(1<<31-rt(42|e)+1)-1,s&=a&~(l&~r),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,Ch(i,s))}else s=$,s=oo(i,i===se?s:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),!(s&3)||nl(i,s)||(n=!0,Ch(i,s));i=i.next}while(n);fc=!1}}function a_(){sb()}function sb(){Yr=Su=!1;var e=0;Ln!==0&&p_()&&(e=Ln);for(var t=st(),n=null,i=Vr;i!==null;){var a=i.next,s=lb(i,t);s===0?(i.next=null,n===null?Vr=a:n.next=a,a===null&&(Gi=n)):(n=i,(e!==0||s&3)&&(Yr=!0)),i=a}Ce!==0&&Ce!==5||cl(e),Ln!==0&&(Ln=0)}function lb(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var l=31-rt(s),r=1<<l,o=a[l];o===-1?(!(r&n)||r&i)&&(a[l]=Dv(r,t)):o<=t&&(e.expiredLanes|=r),s&=~r}if(t=se,n=$,n=oo(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(I===2||I===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Vo(i),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||nl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Vo(i),ld(n)){case 2:case 8:n=$p;break;case 32:n=jr;break;case 268435456:n=Qp;break;default:n=jr}return i=rb.bind(null,e),n=ad(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Vo(i),e.callbackPriority=2,e.callbackNode=null,2}function rb(e,t){if(Ce!==0&&Ce!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(jo()&&e.callbackNode!==n)return null;var i=$;return i=oo(e,e===se?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Py(e,i,t),lb(e,st()),e.callbackNode!=null&&e.callbackNode===n?rb.bind(null,e):null)}function Ch(e,t){if(jo())return null;Py(e,t,!0)}function s_(){y_(function(){W&6?ad(Pp,a_):sb()})}function Xd(){if(Ln===0){var e=xa;e===0&&(e=yl,yl<<=1,!(yl&261888)&&(yl=256)),Ln=e}return Ln}function wh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Jl(""+e)}function Ah(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function l_(e,t,n,i,a){if(t==="submit"&&n&&n.stateNode===a){var s=wh((a[Ie]||null).action),l=i.submitter;l&&(t=(t=l[Ie]||null)?wh(t.formAction):l.getAttribute("formAction"),t!==null&&(s=t,l=null));var r=new co("action","action",null,i,a);e.push({event:r,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Ln!==0){var o=l?Ah(a,l):new FormData(a);fu(n,{pending:!0,data:o,method:a.method,action:s},null,o)}}else typeof s=="function"&&(r.preventDefault(),o=l?Ah(a,l):new FormData(a),fu(n,{pending:!0,data:o,method:a.method,action:s},s,o))},currentTarget:a}]})}}for(var hc=0;hc<eu.length;hc++){var mc=eu[hc],r_=mc.toLowerCase(),o_=mc[0].toUpperCase()+mc.slice(1);Rt(r_,"on"+o_)}Rt(xg,"onAnimationEnd");Rt(vg,"onAnimationIteration");Rt(_g,"onAnimationStart");Rt("dblclick","onDoubleClick");Rt("focusin","onFocus");Rt("focusout","onBlur");Rt(T0,"onTransitionRun");Rt(E0,"onTransitionStart");Rt(C0,"onTransitionCancel");Rt(Sg,"onTransitionEnd");ya("onMouseEnter",["mouseout","mouseover"]);ya("onMouseLeave",["mouseout","mouseover"]);ya("onPointerEnter",["pointerout","pointerover"]);ya("onPointerLeave",["pointerout","pointerover"]);Di("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,819 bytes, line 48
48Di("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Di("onBeforeInput",["compositionend","keypress","textInput","paste"]);Di("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Di("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Di("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qs="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(" "),c_=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qs));function ob(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],a=i.event;i=i.listeners;e:{var s=void 0;if(t)for(var l=i.length-1;0<=l;l--){var r=i[l],o=r.instance,u=r.currentTarget;if(r=r.listener,o!==s&&a.isPropagationStopped())break e;s=r,a.currentTarget=u;try{s(a)}catch(d){Er(d)}a.currentTarget=null,s=o}else for(l=0;l<i.length;l++){if(r=i[l],o=r.instance,u=r.currentTarget,r=r.listener,o!==s&&a.isPropagationStopped())break e;s=r,a.currentTarget=u;try{s(a)}catch(d){Er(d)}a.currentTarget=null,s=o}}}}function X(e,t){var n=t[Pc];n===void 0&&(n=t[Pc]=new Set);var i=e+"__bubble";n.has(i)||(cb(t,e,2,!1),n.add(i))}function pc(e,t,n){var i=0;t&&(i|=4),cb(n,e,i,t)}var wl="_reactListening"+Math.random().toString(36).slice(2);function Gd(e){if(!e[wl]){e[wl]=!0,eg.forEach(function(n){n!=="selectionchange"&&(c_.has(n)||pc(n,!1,e),pc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wl]||(t[wl]=!0,pc("selectionchange",!1,t))}}function cb(e,t,n,i){switch(Sb(t)){case 2:var a=L_;break;case 8:a=H_;break;default:a=Zd}n=a.bind(null,t,n,e),a=void 0,!Wc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),i?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function gc(e,t,n,i,a){var s=i;if(!(t&1)&&!(t&2)&&i!==null)e:for(;;){if(i===null)return;var l=i.tag;if(l===3||l===4){var r=i.stateNode.containerInfo;if(r===a)break;if(l===4)for(l=i.return;l!==null;){var o=l.tag;if((o===3||o===4)&&l.stateNode.containerInfo===a)return;l=l.return}for(;r!==null;){if(l=Qi(r),l===null)return;if(o=l.tag,o===5||o===6||o===26||o===27){i=s=l;continue e}r=r.parentNode}}i=i.return}og(function(){var u=s,d=cd(n),f=[];e:{var h=jg.get(e);if(h!==void 0){var m=co,y=e;switch(e){case"keypress":if(er(n)===0)break e;case"keydown":case"keyup":m=n0;break;case"focusin":y="focus",m=Go;break;case"focusout":y="blur",m=Go;break;case"beforeblur":case"afterblur":m=Go;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Bf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Xv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=s0;break;case xg:case vg:case _g:m=$v;break;case Sg:m=r0;break;case"scroll":case"scrollend":m=qv;break;case"wheel":m=c0;break;case"copy":case"cut":case"paste":m=Zv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Hf;break;case"toggle":case"beforetoggle":m=d0}var b=(t&4)!==0,v=!b&&(e==="scroll"||e==="scrollend"),p=b?h!==null?h+"Capture":null:h;b=[];for(var g=u,x;g!==null;){var T=g;if(x=T.stateNode,T=T.tag,T!==5&&T!==26&&T!==27||x===null||p===null||(T=ks(g,p),T!=null&&b.push(Fs(g,T,x))),v)break;g=g.return}0<b.length&&(h=new m(h,y,null,n,d),f.push({event:h,listeners:b}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",h&&n!==Kc&&(y=n.relatedTarget||n.fromElement)&&(Qi(y)||y[Da]))break e;if((m||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,m?(y=n.relatedTarget||n.toElement,m=u,y=y?Qi(y):null,y!==null&&(v=el(y),b=y.tag,y!==v||b!==5&&b!==27&&b!==6)&&(y=null)):(m=null,y=u),m!==y)){if(b=Bf,T="onMouseLeave",p="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(b=Hf,T="onPointerLeave",p="onPointerEnter",g="pointer"),v=m==null?h:ss(m),x=y==null?h:ss(y),h=new b(T,g+"leave",m,n,d),h.target=v,h.relatedTarget=x,T=null,Qi(d)===u&&(b=new b(p,g+"enter",y,n,d),b.target=x,b.relatedTarget=v,T=b),v=T,m&&y)t:{for(b=u_,p=m,g=y,x=0,T=p;T;T=b(T))x++;T=0;for(var S=g;S;S=b(S))T++;for(;0<x-T;)p=b(p),x--;for(;0<T-x;)g=b(g),T--;for(;x--;){if(p===g||g!==null&&p===g.alternate){b=p;break t}p=b(p),g=b(g)}b=null}else b=null;m!==null&&Nh(f,h,m,b,!1),y!==null&&v!==null&&Nh(f,v,y,b,!0)}}
vendor: 5,138 bytes, lines 48-49
48e:{if(h=u?ss(u):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var C=qf;else if(Yf(h))if(mg)C=_0;else{C=x0;var j=b0}else m=h.nodeName,!m||m.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?u&&od(u.elementType)&&(C=qf):C=v0;if(C&&(C=C(e,u))){hg(f,C,n,d);break e}j&&j(e,h,u),e==="focusout"&&u&&h.type==="number"&&u.memoizedProps.value!=null&&Zc(h,"number",h.value)}switch(j=u?ss(u):window,e){case"focusin":(Yf(j)||j.contentEditable==="true")&&(Wi=j,Jc=u,ms=null);break;case"focusout":ms=Jc=Wi=null;break;case"mousedown":Ic=!0;break;case"contextmenu":case"mouseup":case"dragend":Ic=!1,$f(f,n,d);break;case"selectionchange":if(j0)break;case"keydown":case"keyup":$f(f,n,d)}var E;if(fd)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else Ki?dg(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(ug&&n.locale!=="ko"&&(Ki||N!=="onCompositionStart"?N==="onCompositionEnd"&&Ki&&(E=cg()):(kn=d,ud="value"in kn?kn.value:kn.textContent,Ki=!0)),j=qr(u,N),0<j.length&&(N=new Lf(N,e,null,n,d),f.push({event:N,listeners:j}),E?N.data=E:(E=fg(n),E!==null&&(N.data=E)))),(E=h0?m0(e,n):p0(e,n))&&(N=qr(u,"onBeforeInput"),0<N.length&&(j=new Lf("onBeforeInput","beforeinput",null,n,d),f.push({event:j,listeners:N}),j.data=E)),l_(f,e,u,n,d)}ob(f,t)})}function Fs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",i=[];e!==null;){var a=e,s=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||s===null||(a=ks(e,n),a!=null&&i.unshift(Fs(e,a,s)),a=ks(e,t),a!=null&&i.push(Fs(e,a,s))),e.tag===3)return i;e=e.return}return[]}function u_(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Nh(e,t,n,i,a){for(var s=t._reactName,l=[];n!==null&&n!==i;){var r=n,o=r.alternate,u=r.stateNode;if(r=r.tag,o!==null&&o===i)break;r!==5&&r!==26&&r!==27||u===null||(o=u,a?(u=ks(n,s),u!=null&&l.unshift(Fs(n,u,o))):a||(u=ks(n,s),u!=null&&l.push(Fs(n,u,o)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var d_=/\r\n?/g,f_=/\u0000|\uFFFD/g;function Mh(e){return(typeof e=="string"?e:""+e).replace(d_,` 49`).replace(f_,"")}function ub(e,t){return t=Mh(t),Mh(e)===t}function ne(e,t,n,i,a,s){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||ba(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&ba(e,""+i);break;case"className":vl(e,"class",i);break;case"tabIndex":vl(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":vl(e,n,i);break;case"style":rg(e,i,s);break;case"data":if(t!=="object"){vl(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Jl(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(n==="formAction"?(t!=="input"&&ne(e,t,"name",a.name,a,null),ne(e,t,"formEncType",a.formEncType,a,null),ne(e,t,"formMethod",a.formMethod,a,null),ne(e,t,"formTarget",a.formTarget,a,null)):(ne(e,t,"encType",a.encType,a,null),ne(e,t,"method",a.method,a,null),ne(e,t,"target",a.target,a,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Jl(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=un);break;case"onScroll":i!=null&&X("scroll",e);break;case"onScrollEnd":i!=null&&X("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(w(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(w(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=Jl(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":X("beforetoggle",e),X("toggle",e),Wl(e,"popover",i);break;case"xlinkActuate":Wt(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Wt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Wt(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Wt(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Wt(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Wt(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Wl(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Vv.get(n)||n,Wl(e,n,i))}}function ju(e,t,n,i,a,s){switch(n){case"style":rg(e,i,s);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(w(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(w(60));e.innerHTML=n}}break;case"children":typeof i=="string"?ba(e,i):(typeof i=="number"||typeof i=="bigint")&&ba(e,""+i);break;case"onScroll":i!=null&&X("scroll",e);break;case"onScrollEnd":i!=null&&X("scrollend",e);break;case"onClick":i!=null&&(e.onclick=un);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!tg.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),s=e[Ie]||null,s=s!=null?s[n]:null,typeof s=="function"&&e.removeEventListener(t,s,a),typeof i=="function")){typeof s!="function"&&s!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,a);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Wl(e,n,i)}}}function Le(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":X("error",e),X("load",e);var i=!1,a=!1,s;for(s in n)if(n.hasOwnProperty(s)){var l=n[s];if(l!=null)switch(s){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(w(137,t));default:ne(e,t,s,l,n,null)}}a&&ne(e,t,"srcSet",n.srcSet,n,null),i&&ne(e,t,"src",n.src,n,null);return;case"input":X("invalid",e);var r=s=l=a=null,o=null,u=null;for(i in n)if(n.hasOwnProperty(i)){var d=n[i];if(d!=null)switch(i){case"name":a=d;break;case"type":l=d;break;case"checked":o=d;break;case"defaultChecked":u=d;break;case"value":s=d;break;case"defaultValue":r=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(w(137,t));break;default:ne(e,t,i,d,n,null)}}ag(e,s,r,o,u,l,a,!1);return;case"select":X("invalid",e),i=l=s=null;for(a in n)if(n.hasOwnProperty(a)&&(r=n[a],r!=null))switch(a){case"value":s=r;break;case"defaultValue":l=r;break;case"multiple":i=r;default:ne(e,t,a,r,n,null)}t=s,n=l,e.multiple=!!i,t!=null?la(e,!!i,t,!1):n!=null&&la(e,!!i,n,!0);return;case"textarea":X("invalid",e),s=a=i=null;for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"value":i=r;break;case"defaultValue":a=r;break;case"children":s=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(w(91));break;default:ne(e,t,l,r,n,null)}lg(e,i,a,s);return;case"option":for(o in n)if(n.hasOwnProperty(o)&&(i=n[o],i!=null))switch(o){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:ne(e,t,o,i,n,null)}return;case"dialog":X("beforetoggle",e),X("toggle",e),X("cancel",e),X("close",e);break;case"iframe":case"object":X("load",e);break;case"video":case"audio":for(i=0;i<qs.length;i++)X(qs[i],e);break;case"image":X("error",e),X("load",e);break;case"details":X("toggle",e);break;case"embed":case"source":case"link":X("error",e),X("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(w(137,t));default:ne(e,t,u,i,n,null)}return;default:if(od(t)){for(d in n)n.hasOwnProperty(d)&&(i=n[d],i!==void 0&&ju(e,t,d,i,n,void 0));return}}for(r in n)n.hasOwnProperty(r)&&(i=n[r],i!=null&&ne(e,t,r,i,n,null))}function h_(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,s=null,l=null,r=null,o=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":o=f;default:i.hasOwnProperty(m)||ne(e,t,m,null,i,f)}}for(var h in i){var m=i[h];if(f=n[h],i.hasOwnProperty(h)&&(m!=null||f!=null))switch(h){case"type":s=m;break;case"name":a=m;break;case"checked":u=m;break;case"defaultChecked":d=m;break;case"value":l=m;break;case"defaultValue":r=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(w(137,t));break;default:m!==f&&ne(e,t,h,m,i,f)}}Qc(e,l,r,o,u,d,s,a);return;case"select":m=l=r=h=null;for(s in n)if(o=n[s],n.hasOwnProperty(s)&&o!=null)switch(s){case"value":break;case"multiple":m=o;default:i.hasOwnProperty(s)||ne(e,t,s,null,i,o)}for(a in i)if(s=i[a],o=n[a],i.hasOwnProperty(a)&&(s!=null||o!=null))switch(a){case"value":h=s;break;case"defaultValue":r=s;break;case"multiple":l=s;default:s!==o&&ne(e,t,a,s,i,o)}t=r,n=l,i=m,h!=null?la(e,!!n,h,!1):!!i!=!!n&&(t!=null?la(e,!!n,t,!0):la(e,!!n,n?[]:"",!1));return;case"textarea":m=h=null;for(r in n)if(a=n[r],n.hasOwnProperty(r)&&a!=null&&!i.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:ne(e,t,r,null,i,a)}for(l in i)if(a=i[l],s=n[l],i.hasOwnProperty(l)&&(a!=null||s!=null))switch(l){case"value":h=a;break;case"defaultValue":m=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(w(91));break;default:a!==s&&ne(e,t,l,a,i,s)}sg(e,h,m);return;case"option":for(var y in n)if(h=n[y],n.hasOwnProperty(y)&&h!=null&&!i.hasOwnProperty(y))switch(y){case"selected":e.selected=!1;break;default:ne(e,t,y,null,i,h)}for(o in i)if(h=i[o],m=n[o],i.hasOwnProperty(o)&&h!==m&&(h!=null||m!=null))switch(o){case"selected":e.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:ne(e,t,o,h,i,m)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)h=n[b],n.hasOwnProperty(b)&&h!=null&&!i.hasOwnProperty(b)&&ne(e,t,b,null,i,h);for(u in i)if(h=i[u],m=n[u],i.hasOwnProperty(u)&&h!==m&&(h!=null||m!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(w(137,t));break;default:ne(e,t,u,h,i,m)}return;default:if(od(t)){for(var v in n)h=n[v],n.hasOwnProperty(v)&&h!==void 0&&!i.hasOwnProperty(v)&&ju(e,t,v,void 0,i,h);for(d in i)h=i[d],m=n[d],!i.hasOwnProperty(d)||h===m||h===void 0&&m===void 0||ju(e,t,d,h,i,m);return}}for(var p in n)h=n[p],n.hasOwnProperty(p)&&h!=null&&!i.hasOwnProperty(p)&&ne(e,t,p,null,i,h);for(f in i)h=i[f],m=n[f],!i.hasOwnProperty(f)||h===m||h==null&&m==null||ne(e,t,f,h,i,m)}function Dh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function m_(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var a=n[i],s=a.transferSize,l=a.initiatorType,r=a.duration;if(s&&r&&Dh(l)){for(l=0,r=a.responseEnd,i+=1;i<n.length;i++){var o=n[i],u=o.startTime;if(u>r)break;var d=o.transferSize,f=o.initiatorType;d&&Dh(f)&&(o=o.responseEnd,l+=d*(o<r?1:(r-u)/(o-u)))}if(--i,t+=8*(s+l)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Tu=null,Eu=null;
vendor: 13,210 bytes, line 49
49function Fr(e){return e.nodeType===9?e:e.ownerDocument}function Oh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function db(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Cu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var yc=null;function p_(){var e=window.event;return e&&e.type==="popstate"?e===yc?!1:(yc=e,!0):(yc=null,!1)}var fb=typeof setTimeout=="function"?setTimeout:void 0,g_=typeof clearTimeout=="function"?clearTimeout:void 0,zh=typeof Promise=="function"?Promise:void 0,y_=typeof queueMicrotask=="function"?queueMicrotask:typeof zh<"u"?function(e){return zh.resolve(null).then(e).catch(b_)}:fb;function b_(e){setTimeout(function(){throw e})}function ii(e){return e==="head"}function kh(e,t){var n=t,i=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(a),Ca(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Ts(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ts(n);for(var s=n.firstChild;s;){var l=s.nextSibling,r=s.nodeName;s[al]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=l}}else n==="body"&&Ts(e.ownerDocument.body);n=a}while(n);Ca(t)}function Rh(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function wu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":wu(n),rd(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function x_(e,t,n,i){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[al])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=jt(e.nextSibling),e===null)break}return null}function v_(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=jt(e.nextSibling),e===null))return null;return e}function hb(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=jt(e.nextSibling),e===null))return null;return e}function Au(e){return e.data==="$?"||e.data==="$~"}function Nu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function __(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function jt(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Mu=null;function Bh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return jt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Lh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function mb(e,t,n){switch(t=Fr(n),e){case"html":if(e=t.documentElement,!e)throw Error(w(452));return e;case"head":if(e=t.head,!e)throw Error(w(453));return e;case"body":if(e=t.body,!e)throw Error(w(454));return e;default:throw Error(w(451))}}function Ts(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);rd(e)}var Tt=new Map,Hh=new Set;function Xr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sn=J.d;J.d={f:S_,r:j_,D:T_,C:E_,L:C_,m:w_,X:N_,S:A_,M:M_};function S_(){var e=Sn.f(),t=_o();return e||t}function j_(e){var t=Oa(e);t!==null&&t.tag===5&&t.type==="form"?ry(t):Sn.r(e)}var Ba=typeof document>"u"?null:document;function pb(e,t,n){var i=Ba;if(i&&typeof t=="string"&&t){var a=yt(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Hh.has(a)||(Hh.add(a),e={rel:e,crossOrigin:n,href:t},i.querySelector(a)===null&&(t=i.createElement("link"),Le(t,"link",e),Me(t),i.head.appendChild(t)))}}function T_(e){Sn.D(e),pb("dns-prefetch",e,null)}function E_(e,t){Sn.C(e,t),pb("preconnect",e,t)}function C_(e,t,n){Sn.L(e,t,n);var i=Ba;if(i&&e&&t){var a='link[rel="preload"][as="'+yt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+yt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+yt(n.imageSizes)+'"]')):a+='[href="'+yt(e)+'"]';var s=a;switch(t){case"style":s=Ea(e);break;case"script":s=La(e)}Tt.has(s)||(e=fe({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Tt.set(s,e),i.querySelector(a)!==null||t==="style"&&i.querySelector(ul(s))||t==="script"&&i.querySelector(dl(s))||(t=i.createElement("link"),Le(t,"link",e),Me(t),i.head.appendChild(t)))}}function w_(e,t){Sn.m(e,t);var n=Ba;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+yt(i)+'"][href="'+yt(e)+'"]',s=a;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=La(e)}if(!Tt.has(s)&&(e=fe({rel:"modulepreload",href:e},t),Tt.set(s,e),n.querySelector(a)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(dl(s)))return}i=n.createElement("link"),Le(i,"link",e),Me(i),n.head.appendChild(i)}}}function A_(e,t,n){Sn.S(e,t,n);var i=Ba;if(i&&e){var a=sa(i).hoistableStyles,s=Ea(e);t=t||"default";var l=a.get(s);if(!l){var r={loading:0,preload:null};if(l=i.querySelector(ul(s)))r.loading=5;else{e=fe({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Tt.get(s))&&Pd(e,n);var o=l=i.createElement("link");Me(o),Le(o,"link",e),o._p=new Promise(function(u,d){o.onload=u,o.onerror=d}),o.addEventListener("load",function(){r.loading|=1}),o.addEventListener("error",function(){r.loading|=2}),r.loading|=4,or(l,t,i)}l={type:"stylesheet",instance:l,count:1,state:r},a.set(s,l)}}}function N_(e,t){Sn.X(e,t);var n=Ba;if(n&&e){var i=sa(n).hoistableScripts,a=La(e),s=i.get(a);s||(s=n.querySelector(dl(a)),s||(e=fe({src:e,async:!0},t),(t=Tt.get(a))&&$d(e,t),s=n.createElement("script"),Me(s),Le(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},i.set(a,s))}}function M_(e,t){Sn.M(e,t);var n=Ba;if(n&&e){var i=sa(n).hoistableScripts,a=La(e),s=i.get(a);s||(s=n.querySelector(dl(a)),s||(e=fe({src:e,async:!0,type:"module"},t),(t=Tt.get(a))&&$d(e,t),s=n.createElement("script"),Me(s),Le(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},i.set(a,s))}}function Uh(e,t,n,i){var a=(a=Yn.current)?Xr(a):null;if(!a)throw Error(w(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ea(n.href),n=sa(a).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ea(n.href);var s=sa(a).hoistableStyles,l=s.get(e);if(l||(a=a.ownerDocument||a,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,l),(s=a.querySelector(ul(e)))&&!s._p&&(l.instance=s,l.state.loading=5),Tt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Tt.set(e,n),s||D_(a,e,n,l.state))),t&&i===null)throw Error(w(528,""));return l}if(t&&i!==null)throw Error(w(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=La(n),n=sa(a).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(w(444,e))}}function Ea(e){return'href="'+yt(e)+'"'}function ul(e){return'link[rel="stylesheet"]['+e+"]"}function gb(e){return fe({},e,{"data-precedence":e.precedence,precedence:null})}function D_(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Le(t,"link",n),Me(t),e.head.appendChild(t))}function La(e){return'[src="'+yt(e)+'"]'}function dl(e){return"script[async]"+e}function Vh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+yt(n.href)+'"]');if(i)return t.instance=i,Me(i),i;var a=fe({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Me(i),Le(i,"style",a),or(i,n.precedence,e),t.instance=i;case"stylesheet":a=Ea(n.href);var s=e.querySelector(ul(a));if(s)return t.state.loading|=4,t.instance=s,Me(s),s;i=gb(n),(a=Tt.get(a))&&Pd(i,a),s=(e.ownerDocument||e).createElement("link"),Me(s);var l=s;return l._p=new Promise(function(r,o){l.onload=r,l.onerror=o}),Le(s,"link",i),t.state.loading|=4,or(s,n.precedence,e),t.instance=s;case"script":return s=La(n.src),(a=e.querySelector(dl(s)))?(t.instance=a,Me(a),a):(i=n,(a=Tt.get(s))&&(i=fe({},n),$d(i,a)),e=e.ownerDocument||e,a=e.createElement("script"),Me(a),Le(a,"link",i),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(w(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(i=t.instance,t.state.loading|=4,or(i,n.precedence,e));return t.instance}function or(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=i.length?i[i.length-1]:null,s=a,l=0;l<i.length;l++){var r=i[l];if(r.dataset.precedence===t)s=r;else if(s!==a)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Pd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $d(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var cr=null;function Yh(e,t,n){if(cr===null){var i=new Map,a=cr=new Map;a.set(n,i)}else a=cr,i=a.get(n),i||(i=new Map,a.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var s=n[a];if(!(s[al]||s[ke]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var l=s.getAttribute(t)||"";l=e+l;var r=i.get(l);r?r.push(s):i.set(l,[s])}}return i}function qh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function O_(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function yb(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function z_(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&
vendor: 4,696 bytes, line 49
49!(n.state.loading&4)){if(n.instance===null){var a=Ea(i.href),s=t.querySelector(ul(a));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Gr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,Me(s);return}s=t.ownerDocument||t,i=gb(i),(a=Tt.get(a))&&Pd(i,a),s=s.createElement("link"),Me(s);var l=s;l._p=new Promise(function(r,o){l.onload=r,l.onerror=o}),Le(s,"link",i),n.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Gr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var bc=0;function k_(e,t){return e.stylesheets&&e.count===0&&ur(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&ur(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&bc===0&&(bc=62500*m_());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ur(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>bc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(a)}}:null}function Gr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ur(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Pr=null;function ur(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Pr=new Map,t.forEach(R_,e),Pr=null,Gr.call(e))}function R_(e,t){if(!(t.state.loading&4)){var n=Pr.get(e);if(n)var i=n.get(null);else{n=new Map,Pr.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<a.length;s++){var l=a[s];(l.nodeName==="LINK"||l.getAttribute("media")!=="not all")&&(n.set(l.dataset.precedence,l),i=l)}i&&n.set(null,i)}a=t.instance,l=a.getAttribute("data-precedence"),s=n.get(l)||i,s===i&&n.set(null,a),n.set(l,a),this.count++,i=Gr.bind(this),a.addEventListener("load",i),a.addEventListener("error",i),s?s.parentNode.insertBefore(a,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Xs={$$typeof:cn,Provider:null,Consumer:null,_currentValue:bi,_currentValue2:bi,_threadCount:0};function B_(e,t,n,i,a,s,l,r,o){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Yo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yo(0),this.hiddenUpdates=Yo(null),this.identifierPrefix=i,this.onUncaughtError=a,this.onCaughtError=s,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function bb(e,t,n,i,a,s,l,r,o,u,d,f){return e=new B_(e,t,n,l,o,u,d,f,r),t=1,s===!0&&(t|=24),s=it(3,null,null,t),e.current=s,s.stateNode=e,t=xd(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:i,isDehydrated:n,cache:t},Sd(s),e}function xb(e){return e?(e=ea,e):ea}function vb(e,t,n,i,a,s){a=xb(a),i.context===null?i.context=a:i.pendingContext=a,i=Fn(t),i.payload={element:n},s=s===void 0?null:s,s!==null&&(i.callback=s),n=Xn(e,i,t),n!==null&&(Je(n,e,t),gs(n,e,t))}function Fh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Qd(e,t){Fh(e,t),(e=e.alternate)&&Fh(e,t)}function _b(e){if(e.tag===13||e.tag===31){var t=ki(e,67108864);t!==null&&Je(t,e,67108864),Qd(e,67108864)}}function Xh(e){if(e.tag===13||e.tag===31){var t=ot();t=sd(t);var n=ki(e,t);n!==null&&Je(n,e,t),Qd(e,t)}}var $r=!0;function L_(e,t,n,i){var a=U.T;U.T=null;var s=J.p;try{J.p=2,Zd(e,t,n,i)}finally{J.p=s,U.T=a}}function H_(e,t,n,i){var a=U.T;U.T=null;var s=J.p;try{J.p=8,Zd(e,t,n,i)}finally{J.p=s,U.T=a}}function Zd(e,t,n,i){if($r){var a=Du(i);if(a===null)gc(e,t,i,Qr,n),Gh(e,i);else if(V_(a,e,t,n,i))i.stopPropagation();else if(Gh(e,i),t&4&&-1<U_.indexOf(e)){for(;a!==null;){var s=Oa(a);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var l=ui(s.pendingLanes);if(l!==0){var r=s;for(r.pendingLanes|=2,r.entangledLanes|=2;l;){var o=1<<31-rt(l);r.entanglements[1]|=o,l&=~o}Qt(s),!(W&6)&&(Lr=st()+500,cl(0))}}break;case 31:case 13:r=ki(s,2),r!==null&&Je(r,s,2),_o(),Qd(s,2)}if(s=Du(i),s===null&&gc(e,t,i,Qr,n),s===a)break;a=s}a!==null&&i.stopPropagation()}else gc(e,t,i,null,n)}}function Du(e){return e=cd(e),Kd(e)}var Qr=null;function Kd(e){if(Qr=null,e=Qi(e),e!==null){var t=el(e);
vendor: 4,270 bytes, line 49
49if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Yp(t),e!==null)return e;e=null}else if(n===31){if(e=qp(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Qr=e,null}function Sb(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Tv()){case Pp:return 2;case $p:return 8;case jr:case Ev:return 32;case Qp:return 268435456;default:return 32}default:return 32}}var Ou=!1,$n=null,Qn=null,Zn=null,Gs=new Map,Ps=new Map,Dn=[],U_="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".split(" ");function Gh(e,t){switch(e){case"focusin":case"focusout":$n=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Zn=null;break;case"pointerover":case"pointerout":Gs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ps.delete(t.pointerId)}}function Qa(e,t,n,i,a,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:s,targetContainers:[a]},t!==null&&(t=Oa(t),t!==null&&_b(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function V_(e,t,n,i,a){switch(t){case"focusin":return $n=Qa($n,e,t,n,i,a),!0;case"dragenter":return Qn=Qa(Qn,e,t,n,i,a),!0;case"mouseover":return Zn=Qa(Zn,e,t,n,i,a),!0;case"pointerover":var s=a.pointerId;return Gs.set(s,Qa(Gs.get(s)||null,e,t,n,i,a)),!0;case"gotpointercapture":return s=a.pointerId,Ps.set(s,Qa(Ps.get(s)||null,e,t,n,i,a)),!0}return!1}function jb(e){var t=Qi(e.target);if(t!==null){var n=el(t);if(n!==null){if(t=n.tag,t===13){if(t=Yp(n),t!==null){e.blockedOn=t,Nf(e.priority,function(){Xh(n)});return}}else if(t===31){if(t=qp(n),t!==null){e.blockedOn=t,Nf(e.priority,function(){Xh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function dr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Du(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Kc=i,n.target.dispatchEvent(i),Kc=null}else return t=Oa(n),t!==null&&_b(t),e.blockedOn=n,!1;t.shift()}return!0}function Ph(e,t,n){dr(e)&&n.delete(t)}function Y_(){Ou=!1,$n!==null&&dr($n)&&($n=null),Qn!==null&&dr(Qn)&&(Qn=null),Zn!==null&&dr(Zn)&&(Zn=null),Gs.forEach(Ph),Ps.forEach(Ph)}function Al(e,t){e.blockedOn===t&&(e.blockedOn=null,Ou||(Ou=!0,Ae.unstable_scheduleCallback(Ae.unstable_NormalPriority,Y_)))}var Nl=null;function $h(e){Nl!==e&&(Nl=e,Ae.unstable_scheduleCallback(Ae.unstable_NormalPriority,function(){Nl===e&&(Nl=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],a=e[t+2];if(typeof i!="function"){if(Kd(i||n)===null)continue;break}var s=Oa(n);s!==null&&(e.splice(t,3),t-=3,fu(s,{pending:!0,data:a,method:n.method,action:i},i,a))}}))}function Ca(e){function t(o){return Al(o,e)}$n!==null&&Al($n,e),Qn!==null&&Al(Qn,e),Zn!==null&&Al(Zn,e),Gs.forEac
vendor: 3,739 bytes, line 49
49h(t),Ps.forEach(t);for(var n=0;n<Dn.length;n++){var i=Dn[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Dn.length&&(n=Dn[0],n.blockedOn===null);)jb(n),n.blockedOn===null&&Dn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var a=n[i],s=n[i+1],l=a[Ie]||null;if(typeof s=="function")l||$h(n);else if(l){var r=null;if(s&&s.hasAttribute("formAction")){if(a=s,l=s[Ie]||null)r=l.formAction;else if(Kd(a)!==null)continue}else r=l.action;typeof r=="function"?n[i+1]=r:(n.splice(i,3),i-=3),$h(n)}}}function Tb(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(l){return a=l})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function Wd(e){this._internalRoot=e}To.prototype.render=Wd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(w(409));var n=t.current,i=ot();vb(n,i,e,t,null,null)};To.prototype.unmount=Wd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vb(e.current,2,null,e,null,null),_o(),t[Da]=null}};function To(e){this._internalRoot=e}To.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ip();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dn.length&&t!==0&&t<Dn[n].priority;n++);Dn.splice(n,0,e),n===0&&jb(e)}};var Qh=Up.version;if(Qh!=="19.2.0")throw Error(w(527,Qh,"19.2.0"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(w(188)):(e=Object.keys(e).join(","),Error(w(268,e)));return e=yv(t),e=e!==null?Fp(e):null,e=e===null?null:e.stateNode,e};var q_={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ml=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ml.isDisabled&&Ml.supportsFiber)try{tl=Ml.inject(q_),lt=Ml}catch{}}lo.createRoot=function(e,t){if(!Vp(e))throw Error(w(299));var n=!1,i="",a=py,s=gy,l=yy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=bb(e,1,!1,null,null,n,i,null,a,s,l,Tb),e[Da]=t.current,Gd(e),new Wd(t)};lo.hydrateRoot=function(e,t,n){if(!Vp(e))throw Error(w(299));var i=!1,a="",s=py,l=gy,r=yy,o=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(l=n.onCaughtError),n.onRecoverableError!==void 0&&(r=n.onRecoverableError),n.formState!==void 0&&(o=n.formState)),t=bb(e,1,!0,t,n??null,i,a,o,s,l,r,Tb),t.context=xb(null),n=t.current,i=ot(),i=sd(i),a=Fn(i),a.callback=null,Xn(n,a,i),n=i,t.current.lanes=n,il(t,n),Qt(t),e[Da]=t.current,Gd(e),new To(t)};lo.version="19.2.0";function Eb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Eb)}catch(e){console.error(e)}}
49Eb(),zp.exports=lo;var F_=zp.exports;/** 50 * react-router v7.9.5 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 */var Zh="popstate";function X_(e={}){function t(i,a){let{pathname:s,search:l,hash:r}=i.location;return zu("",{pathname:s,search:l,hash:r},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(i,a){return typeof a=="string"?a:$s(a)}return P_(t,n,null,e)}function me(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function kt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function G_(){return Math.random().toString(36).substring(2,10)}function Kh(e,t){return{usr:e.state,key:e.key,idx:t}}function zu(e,t,n=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ha(t):t,state:n,key:t&&t.key||i||G_()}}function $s({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Ha(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function P_(e,t,n,i={}){let{window:a=document.defaultView,v5Compat:s=!1}=i,l=a.history,r="POP",o=null,u=d();u==null&&(u=0,l.replaceState({...l.state,idx:u},""));function d(){return(l.state||{idx:null}).idx}function f(){r="POP";let v=d(),p=v==null?null:v-u;u=v,o&&o({action:r,location:b.location,delta:p})}function h(v,p){r="PUSH";let g=zu(b.location,v,p);u=d()+1;let x=Kh(g,u),T=b.createHref(g);try{l.pushState(x,"",T)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(T)}s&&o&&o({action:r,location:b.location,delta:1})}function m(v,p){r="REPLACE";let g=zu(b.location,v,p);u=d();let x=Kh(g,u),T=b.createHref(g);l.replaceState(x,"",T),s&&o&&o({action:r,location:b.location,delta:0})}function y(v){return $_(v)}let b={get action(){return r},get location(){return e(a,l)},listen(v){if(o)throw new Error("A history only accepts one active listener");return a.addEventListener(Zh,f),o=v,()=>{a.removeEventListener(Zh,f),o=null}},createHref(v){return t(a,v)},createURL:y,encodeLocation(v){let p=y(v);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:h,replace:m,go(v){return l.go(v)}};return b}function $_(e,t=!1){let n="http://localhost";
58typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),me(n,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:$s(e);return i=i.replace(/ $/,"%20"),!t&&i.startsWith("//")&&(i=n+i),new URL(i,n)}function Cb(e,t,n="/"){return Q_(e,t,n,!1)}function Q_(e,t,n,i){let a=typeof t=="string"?Ha(t):t,s=_n(a.pathname||"/",n);if(s==null)return null;let l=wb(e);Z_(l);let r=null;for(let o=0;r==null&&o<l.length;++o){let u=l1(s);r=a1(l[o],u,i)}return r}function wb(e,t=[],n=[],i="",a=!1){let s=(l,r,o=a,u)=>{let d={relativePath:u===void 0?l.path||"":u,caseSensitive:l.caseSensitive===!0,childrenIndex:r,route:l};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(i)&&o)return;me(d.relativePath.startsWith(i),`Absolute route path "${d.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(i.length)}let f=pn([i,d.relativePath]),h=n.concat(d);l.children&&l.children.length>0&&(me(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),wb(l.children,t,h,f,o)),!(l.path==null&&!l.index)&&t.push({path:f,score:n1(f,l.index),routesMeta:h})};return e.forEach((l,r)=>{var o;if(l.path===""||!((o=l.path)!=null&&o.includes("?")))s(l,r);else for(let u of Ab(l.path))s(l,r,!0,u)}),t}function Ab(e){let t=e.split("/");if(t.length===0)return[];let[n,...i]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(i.length===0)return a?[s,""]:[s];let l=Ab(i.join("/")),r=[];return r.push(...l.map(o=>o===""?s:[s,o].join("/"))),a&&r.push(...l),r.map(o=>e.startsWith("/")&&o===""?"/":o)}function Z_(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:i1(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}var K_=/^:[\w-]+$/,W_=3,J_=2,I_=1,e1=10,t1=-2,Wh=e=>e==="*";function n1(e,t){let n=e.split("/"),i=n.length;return n.some(Wh)&&(i+=t1),t&&(i+=J_),n.filter(a=>!Wh(a)).reduce((a,s)=>a+(K_.test(s)?W_:s===""?I_:e1),i)}function i1(e,t){return e.length===t.length&&e.slice(0,-1).every((i,a)=>i===t[a])?e[e.length-1]-t[t.length-1]:0}function a1(e,t,n=!1){let{routesMeta:i}=e,a={},s="/",l=[];for(let r=0;r<i.length;++r){let o=i[r],u=r===i.length-1,d=s==="/"?t:t.slice(s.length)||"/",f=Zr({path:o.relativePath,caseSensitive:o.caseSensitive,end:u},d),h=o.route;if(!f&&u&&n&&!i[i.length-1].route.index&&(f=Zr({path:o.relativePath,caseSensitive:o.caseSensitive,end:!1},d)),!f)return null;
58Object.assign(a,f.params),l.push({params:a,pathname:pn([s,f.pathname]),pathnameBase:u1(pn([s,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(s=pn([s,f.pathnameBase]))}return l}function Zr(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=s1(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],l=s.replace(/(.)\/+$/,"$1"),r=a.slice(1);return{params:i.reduce((u,{paramName:d,isOptional:f},h)=>{if(d==="*"){let y=r[h]||"";l=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const m=r[h];return f&&!m?u[d]=void 0:u[d]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:l,pattern:e}}function s1(e,t=!1,n=!0){kt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,r,o)=>(i.push({paramName:r,isOptional:o!=null}),o?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),i]}function l1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return kt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function _n(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}function r1(e,t="/"){let{pathname:n,search:i="",hash:a=""}=typeof e=="string"?Ha(e):e;return{pathname:n?n.startsWith("/")?n:o1(n,t):t,search:d1(i),hash:f1(a)}}function o1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function xc(e,t,n,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}]. 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 c1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Jd(e){let t=c1(e);return t.map((n,i)=>i===t.length-1?n.pathname:n.pathnameBase)}function Id(e,t,n,i=!1){let a;typeof e=="string"?a=Ha(e):(a={...e},me(!a.pathname||!a.pathname.includes("?"),xc("?","pathname","search",a)),me(!a.pathname||!a.pathname.includes("#"),xc("#","pathname","hash",a)),me(!a.search||!a.search.includes("#"),xc("#","search","hash",a)));let s=e===""||a.pathname==="",l=s?"/":a.pathname,r;if(l==null)r=n;else{let f=t.length-1;if(!i&&l.startsWith("..")){let h=l.split("/");for(;h[0]==="..";)h.shift(),f-=1;a.pathname=h.join("/")}r=f>=0?t[f]:"/"}let o=r1(a,r),u=l&&l!=="/"&&l.endsWith("/"),d=(s||l===".")&&n.endsWith("/");return!o.pathname.endsWith("/")&&(u||d)&&(o.pathname+="/"),o}var pn=e=>e.join("/").replace(/\/\/+/g,"/"),u1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),d1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,f1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function h1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Nb=["POST","PUT","PATCH","DELETE"];new Set(Nb);var m1=["GET",...Nb];new Set(m1);var Ua=_.createContext(null);Ua.displayName="DataRouter";var Eo=_.createContext(null);Eo.displayName="DataRouterState";_.createContext(!1);var Mb=_.createContext({isTransitioning:!1});Mb.displayName="ViewTransition";var p1=_.createContext(new Map);p1.displayName="Fetchers";var g1=_.createContext(null);g1.displayName="Await";var Bt=_.createContext(null);Bt.displayName="Navigation";var fl=_.createContext(null);fl.displayName="Location";var wt=_.createContext({outlet:null,matches:[],isDataRoute:!1});wt.displayName="Route";var ef=_.createContext(null);ef.displayName="RouteError";function y1(e,{relative:t}={}){me(Va(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:i}=_.useContext(Bt),{hash:a,pathname:s,search:l}=hl(e,{relative:t}),r=s;return n!=="/"&&(r=s==="/"?n:pn([n,s])),i.createHref({pathname:r,search:l,hash:a})}function Va(){return _.useContext(fl)!=null}function Ee(){return me(Va(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(fl).location}var Db="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ob(e){_.useContext(Bt).static||_.useLayoutEffect(e)}function Bi(){let{isDataRoute:e}=_.useContext(wt);return e?O1():b1()}function b1(){me(Va(),"useNavigate() may be used only in the context of a <Router> component.");let e=_.useContext(Ua),{basename:t,navigator:n}=_.useContext(Bt),{matches:i}=_.useContext(wt),{pathname:a}=Ee(),s=JSON.stringify(Jd(i)),l=_.useRef(!1);return Ob(()=>{l.current=!0}),_.useCallback((o,u={})=>
58{if(kt(l.current,Db),!l.current)return;if(typeof o=="number"){n.go(o);return}let d=Id(o,JSON.parse(s),a,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:pn([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,s,a,e])}var x1=_.createContext(null);function v1(e){let t=_.useContext(wt).outlet;return _.useMemo(()=>t&&_.createElement(x1.Provider,{value:e},t),[t,e])}function tf(){let{matches:e}=_.useContext(wt),t=e[e.length-1];return t?t.params:{}}function hl(e,{relative:t}={}){let{matches:n}=_.useContext(wt),{pathname:i}=Ee(),a=JSON.stringify(Jd(n));return _.useMemo(()=>Id(e,JSON.parse(a),i,t==="path"),[e,a,i,t])}function _1(e,t){return zb(e,t)}function zb(e,t,n,i,a){var g;me(Va(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=_.useContext(Bt),{matches:l}=_.useContext(wt),r=l[l.length-1],o=r?r.params:{},u=r?r.pathname:"/",d=r?r.pathnameBase:"/",f=r&&r.route;{let x=f&&f.path||"";kb(u,!f||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 59 60Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let h=Ee(),m;if(t){let x=typeof t=="string"?Ha(t):t;me(d==="/"||((g=x.pathname)==null?void 0:g.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${x.pathname}" was given in the \`location\` prop.`),m=x}else m=h;let y=m.pathname||"/",b=y;if(d!=="/"){let x=d.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=Cb(e,{pathname:b});kt(f||v!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),kt(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let p=C1(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},o,x.params),pathname:pn([d,s.encodeLocation?s.encodeLocation(x.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?d:pn([d,s.encodeLocation?s.encodeLocation(x.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathnameBase])})),l,n,i,a);return t&&p?_.createElement(fl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},p):p}function S1(){let e=D1(),t=h1(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:i},s={padding:"2px 4px",backgroundColor:i},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=_.createElement(_.Fragment,null,_.createElement("p",null,"ð¿ Hey developer ð"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:s},"ErrorBoundary")," or"," ",_.createElement("code",{style:s},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:a},n):null,l)}var j1=_.createElement(S1,null),T1=class extends _.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?_.createElement(wt.Provider,{value:this.props.routeContext},_.createElement(ef.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function E1({routeContext:e,match:t,children:n}){let i=_.useContext(Ua);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(wt.Provider,{value:e},n)}function C1(e,t=[],n=null,i=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=n==null?void 0:n.errors;if(l!=null){let u=s.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id])!==void 0);me(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),s=s.slice(0,Math.min(s.length,u+1))}let r=!1,o=-1;if(n)for(let u=0;u<s.length;u++){let d=s[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(o=u),d.route.id){let{loaderData:f,errors:h}
60=n,m=d.route.loader&&!f.hasOwnProperty(d.route.id)&&(!h||h[d.route.id]===void 0);if(d.route.lazy||m){r=!0,o>=0?s=s.slice(0,o+1):s=[s[0]];break}}}return s.reduceRight((u,d,f)=>{let h,m=!1,y=null,b=null;n&&(h=l&&d.route.id?l[d.route.id]:void 0,y=d.route.errorElement||j1,r&&(o<0&&f===0?(kb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,b=null):o===f&&(m=!0,b=d.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,f+1)),p=()=>{let g;return h?g=y:m?g=b:d.route.Component?g=_.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=u,_.createElement(E1,{match:d,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:g})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?_.createElement(T1,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:p(),routeContext:{outlet:null,matches:v,isDataRoute:!0},unstable_onError:i}):p()},null)}function nf(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function w1(e){let t=_.useContext(Ua);return me(t,nf(e)),t}function A1(e){let t=_.useContext(Eo);return me(t,nf(e)),t}function N1(e){let t=_.useContext(wt);return me(t,nf(e)),t}function af(e){let t=N1(e),n=t.matches[t.matches.length-1];return me(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function M1(){return af("useRouteId")}function D1(){var i;let e=_.useContext(ef),t=A1("useRouteError"),n=af("useRouteError");return e!==void 0?e:(i=t.errors)==null?void 0:i[n]}function O1(){let{router:e}=w1("useNavigate"),t=af("useNavigate"),n=_.useRef(!1);return Ob(()=>{n.current=!0}),_.useCallback(async(a,s={})=>{kt(n.current,Db),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var Jh={};function kb(e,t,n){!t&&!Jh[e]&&(Jh[e]=!0,kt(!1,n))}_.memo(z1);function z1({routes:e,future:t,state:n,unstable_onError:i}){return zb(e,void 0,n,i,t)}function Ih({to:e,replace:t,state:n,relative:i}){me(Va(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=_.useContext(Bt);kt(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=_.useContext(wt),{pathname:l}=Ee(),r=Bi(),o=Id(e,Jd(s),l,i==="path"),u=JSON.stringify(o);return _.useEffect(()=>{r(JSON.parse(u),{replace:t,state:n,relative:i})},[r,u,i,t,n]),null}function Rb(e){return v1(e.context)}function ge(e){me(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function k1({basename:e="/",children:t=null,location:n,navigationType:i="POP",navigator:a,static:s=!1}){me(!Va(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),r=_.useMemo(()=>({basename:l,navigator:a,static:s,future:{}}),[l,a,s]);typeof n=="string"&&(n=Ha(n));let{pathname:o="/",search:u="",hash:d="",state:f=null,key:h="default"}=n,m=_.useMemo(()=>{let y=_n(o,l);return y==null?null:{location:{pathname:y,search:u,hash:d,state:f,key:h},navigationType:i}},[l,o,u,d,f,h,i]);return kt(m!=null,`<Router basename="${l}"> is not able to match the URL "${o}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),m==null?null:_.createElement(Bt.Provider,{value:r},_.createElement(fl.Provider,{children:t,value:m}))}function R1({children:e,location:t}){return _1(ku(e),t)}function ku(e,t=[]){let n=[];return _.Children.forEach(e,(i,a)=>{if(!_.isValidElement(i))return;let s=[...t,a];if(i.type===_.Fragment){n.push.apply(n,ku(i.props.children,s));return}me(i.type===ge,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),me(!i.props.index||!i.props.children,"An index route cannot have child routes.");let l={id:i.props.id||s.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,
60shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(l.children=ku(i.props.children,s)),n.push(l)}),n}var fr="get",hr="application/x-www-form-urlencoded";function Co(e){return e!=null&&typeof e.tagName=="string"}function B1(e){return Co(e)&&e.tagName.toLowerCase()==="button"}function L1(e){return Co(e)&&e.tagName.toLowerCase()==="form"}function H1(e){return Co(e)&&e.tagName.toLowerCase()==="input"}function U1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function V1(e,t){return e.button===0&&(!t||t==="_self")&&!U1(e)}var Dl=null;function Y1(){if(Dl===null)try{new FormData(document.createElement("form"),0),Dl=!1}catch{Dl=!0}return Dl}var q1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function vc(e){return e!=null&&!q1.has(e)?(kt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${hr}"`),null):e}function F1(e,t){let n,i,a,s,l;if(L1(e)){let r=e.getAttribute("action");i=r?_n(r,t):null,n=e.getAttribute("method")||fr,a=vc(e.getAttribute("enctype"))||hr,s=new FormData(e)}else if(B1(e)||H1(e)&&(e.type==="submit"||e.type==="image")){let r=e.form;if(r==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let o=e.getAttribute("formaction")||r.getAttribute("action");if(i=o?_n(o,t):null,n=e.getAttribute("formmethod")||r.getAttribute("method")||fr,a=vc(e.getAttribute("formenctype"))||vc(r.getAttribute("enctype"))||hr,s=new FormData(r,e),!Y1()){let{name:u,type:d,value:f}=e;if(d==="image"){let h=u?`${u}.`:"";s.append(`${h}x`,"0"),s.append(`${h}y`,"0")}else u&&s.append(u,f)}}else{if(Co(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=fr,i=null,a=hr,l=e}return s&&a==="text/plain"&&(l=s,s=void 0),{action:i,method:n.toLowerCase(),encType:a,formData:s,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function sf(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function X1(e,t,n){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i.pathname==="/"?i.pathname=`_root.${n}`:t&&_n(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${n}`,i}async function G1(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function P1(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function $1(e,t,n){let i=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let l=await G1(s,n);return l.links?l.links():[]}return[]}));return W1(i.flat(1).filter(P1).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function em(e,t,n,i,a,s){let l=(o,u)=>n[u]?o.route.id!==n[u].route.id:!0,r=(o,u)=>{var d;return n[u].pathname!==o.pathname||((d=n[u].route.path)==null?void 0:d.endsWith("*"))&&n[u].params["*"]!==o.params["*"]};return s==="assets"?t.filter((o,u)=>l(o,u)||r(o,u)):s==="data"?t.filter((o,u)=>{var f;let d=i.routes[o.route.id];if(!d||!d.hasLoader)return!1;if(l(o,u)||r(o,u))return!0;if(o.route.shouldRevalidate){let h=o.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:o.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function Q1(e,t,{includeHydrateFallback:n}={}){return Z1(e.map(i=>{let a=t.routes[i.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function Z1(e){return[...new Set(e)]}function K1(e){let t={},n=Object.keys(e).sort();for(let i of n)t[i]=e[i];return t}function W1(e,t){let n=new Set;return new Set(t),e.reduce((i,a)=>{let s=JSON.stringify(K1(a));return n.has(s)||(n.add(s),i.push({key:s,link:a})),i},[])}function Bb(){let e=_.useContext(Ua);return sf(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function J1(){let e=_.useContext(Eo);return sf(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var lf=_.createContext(void 0);
60lf.displayName="FrameworkContext";function Lb(){let e=_.useContext(lf);return sf(e,"You must render this element inside a <HydratedRouter> element"),e}function I1(e,t){let n=_.useContext(lf),[i,a]=_.useState(!1),[s,l]=_.useState(!1),{onFocus:r,onBlur:o,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,h=_.useRef(null);_.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let b=p=>{p.forEach(g=>{l(g.isIntersecting)})},v=new IntersectionObserver(b,{threshold:.5});return h.current&&v.observe(h.current),()=>{v.disconnect()}}},[e]),_.useEffect(()=>{if(i){let b=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(b)}}},[i]);let m=()=>{a(!0)},y=()=>{a(!1),l(!1)};return n?e!=="intent"?[s,h,{}]:[s,h,{onFocus:Za(r,m),onBlur:Za(o,y),onMouseEnter:Za(u,m),onMouseLeave:Za(d,y),onTouchStart:Za(f,m)}]:[!1,h,{}]}function Za(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function eS({page:e,...t}){let{router:n}=Bb(),i=_.useMemo(()=>Cb(n.routes,e,n.basename),[n.routes,e,n.basename]);return i?_.createElement(nS,{page:e,matches:i,...t}):null}function tS(e){let{manifest:t,routeModules:n}=Lb(),[i,a]=_.useState([]);return _.useEffect(()=>{let s=!1;return $1(e,t,n).then(l=>{s||a(l)}),()=>{s=!0}},[e,t,n]),i}function nS({page:e,matches:t,...n}){let i=Ee(),{manifest:a,routeModules:s}=Lb(),{basename:l}=Bb(),{loaderData:r,matches:o}=J1(),u=_.useMemo(()=>em(e,t,o,a,i,"data"),[e,t,o,a,i]),d=_.useMemo(()=>em(e,t,o,a,i,"assets"),[e,t,o,a,i]),f=_.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let y=new Set,b=!1;if(t.forEach(p=>{var x;let g=a.routes[p.route.id];!g||!g.hasLoader||(!u.some(T=>T.route.id===p.route.id)&&p.route.id in r&&((x=s[p.route.id])!=null&&x.shouldRevalidate)||g.hasClientLoader?b=!0:y.add(p.route.id))}),y.size===0)return[];let v=X1(e,l,"data");return b&&y.size>0&&v.searchParams.set("_routes",t.filter(p=>y.has(p.route.id)).map(p=>p.route.id).join(",")),[v.pathname+v.search]},[l,r,i,a,u,t,e,s]),h=_.useMemo(()=>Q1(d,a),[d,a]),m=tS(d);return _.createElement(_.Fragment,null,f.map(y=>_.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),h.map(y=>_.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),m.map(({key:y,link:b})=>_.createElement("link",{key:y,nonce:n.nonce,...b})))}function iS(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Hb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Hb&&(window.__reactRouterVersion="7.9.5")}catch{}function aS({basename:e,children:t,window:n}){let i=_.useRef();i.current==null&&(i.current=X_({window:n,v5Compat:!0}));let a=i.current,[s,l]=_.useState({action:a.action,location:a.location}),r=_.useCallback(o=>{_.startTransition(()=>l(o))},[l]);return _.useLayoutEffect(()=>a.listen(r),[a,r]),_.createElement(k1,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a})}var Ub=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,L=_.forwardRef(function({onClick:t,discover:n="render",prefetch:i="none",relative:a,reloadDocument:s,replace:l,state:r,target:o,to:u,preventScrollReset:d,viewTransition:f,...h},m){let{basename:y}=_.useContext(Bt),b=typeof u=="string"&&Ub.test(u),v,p=!1;if(typeof u=="string"&&b&&(v=u,Hb))try{let N=new URL(window.location.href),D=u.startsWith("//")?new URL(N.protocol+u):new URL(u),B=_n(D.pathname,y);D.origin===N.origin&&B!=null?u=B+D.search+D.hash:p=!0}catch{kt(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let g=y1(u,{relative:a}),[x,T,S]=I1(i,h),C=oS(u,{replace:l,state:r,target:o,preventScrollReset:d,relative:a,viewTransition:f});function j(N){t&&t(N),N.defaultPrevented||C(N)}let E=_.createElement("a",{...h,...S,href:v||g,onClick:p||s?t:j,ref:iS(m,T),target:o,"data-discover":!b&&n==="render"?"true":void 0});return x&&!b?_.createElement(_.Fragment,null,E,_.createElement(eS,{page:g})):E});L.displayName="Link";var sS=_.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:i="",end:a=!1,style:s,to:l,viewTransition:r,children:o,...u},d){let f=hl(l,{relative:u.relative}),h=Ee(),m=_.useContext(Eo),{navigator:y,basename:b}=_.useContext(Bt),v=m!=null&&hS(f)&&r===!0,p=y.encodeLocation?y.encodeLocation(f).pathname:f.pathname,g=h.pathname,x=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;n||(g=g.toLowerCase(),x=x?x.toLowerCase():null,p=p.toLowerCase()),x&&b&&(x=_n(x,b)||x);const T=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let S=g===p||!a&&g.startsWith(p)&&g.charAt(T)==="/",C=x!=null&&(x===p||!a&&x.startsWith(p)&&x.charAt(p.length)==="/"),j={isActive:S,isPending:C,isTransitioning:v},E=S?t:void 0,N;typeof i=="function"?N=i(j):N=[i,S?"active":null,C?"pending":null,v?"transitioning":null].filter(
60Boolean).join(" ");let D=typeof s=="function"?s(j):s;return _.createElement(L,{...u,"aria-current":E,className:N,ref:d,style:D,to:l,viewTransition:r},typeof o=="function"?o(j):o)});sS.displayName="NavLink";var lS=_.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:i,replace:a,state:s,method:l=fr,action:r,onSubmit:o,relative:u,preventScrollReset:d,viewTransition:f,...h},m)=>{let y=dS(),b=fS(r,{relative:u}),v=l.toLowerCase()==="get"?"get":"post",p=typeof r=="string"&&Ub.test(r),g=x=>{if(o&&o(x),x.defaultPrevented)return;x.preventDefault();let T=x.nativeEvent.submitter,S=(T==null?void 0:T.getAttribute("formmethod"))||l;y(T||x.currentTarget,{fetcherKey:t,method:S,navigate:n,replace:a,state:s,relative:u,preventScrollReset:d,viewTransition:f})};return _.createElement("form",{ref:m,method:v,action:b,onSubmit:i?o:g,...h,"data-discover":!p&&e==="render"?"true":void 0})});lS.displayName="Form";function rS(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Vb(e){let t=_.useContext(Ua);return me(t,rS(e)),t}function oS(e,{target:t,replace:n,state:i,preventScrollReset:a,relative:s,viewTransition:l}={}){let r=Bi(),o=Ee(),u=hl(e,{relative:s});return _.useCallback(d=>{if(V1(d,t)){d.preventDefault();let f=n!==void 0?n:$s(o)===$s(u);r(e,{replace:f,state:i,preventScrollReset:a,relative:s,viewTransition:l})}},[o,r,u,n,i,t,e,a,s,l])}var cS=0,uS=()=>`__${String(++cS)}__`;function dS(){let{router:e}=Vb("useSubmit"),{basename:t}=_.useContext(Bt),n=M1();return _.useCallback(async(i,a={})=>{let{action:s,method:l,encType:r,formData:o,body:u}=F1(i,t);if(a.navigate===!1){let d=a.fetcherKey||uS();await e.fetch(d,n,a.action||s,{preventScrollReset:a.preventScrollReset,formData:o,body:u,formMethod:a.method||l,formEncType:a.encType||r,flushSync:a.flushSync})}else await e.navigate(a.action||s,{preventScrollReset:a.preventScrollReset,formData:o,body:u,formMethod:a.method||l,formEncType:a.encType||r,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function fS(e,{relative:t}={}){let{basename:n}=_.useContext(Bt),i=_.useContext(wt);me(i,"useFormAction must be used inside a RouteContext");let[a]=i.matches.slice(-1),s={...hl(e||".",{relative:t})},l=Ee();if(e==null){s.search=l.search;let r=new URLSearchParams(s.search),o=r.getAll("index");if(o.some(d=>d==="")){r.delete("index"),o.filter(f=>f).forEach(f=>r.append("index",f));let d=r.toString();s.search=d?`?${d}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:pn([n,s.pathname])),$s(s)}function hS(e,{relative:t}={}){let n=_.useContext(Mb);me(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Vb("useViewTransitionState"),a=hl(e,{relative:t});if(!n.isTransitioning)return!1;let s=_n(n.currentLocation.pathname,i)||n.currentLocation.pathname,l=_n(n.nextLocation.pathname,i)||n.nextLocation.pathname;return Zr(a.pathname,l)!=null||Zr(a.pathname,s)!=null}const mS="https://elitebrokes.onrender.com/api/v1",pS="http://127.0.0.1:8000/api/v1",ae=typeof window<"u"&&["localhost","127.0.0.1"].includes(window.location.hostname)?pS:mS;Fe(12),Fe(5),Fe(20),Fe(2),Fe(30),Fe(8),Fe(25),Fe(3);Fe(4),Fe(6);Fe(1),Fe(1),Fe(1),Es(10),Fe(2),Fe(2),Es(20);Es(6),Es(8),Es(12);Ol(15),Ol(12),Ol(5),Ol(30);function Fe(e){return new Date(Date.now()-e*864e5).toISOString()}function Es(e){return new Date(Date.now()-e*36e5).toISOString()}function Ol(e){return new Date(Date.now()-e*6e4).toISOString()}function Cs({event_type:e,entity_type:t,entity_id:n=null,metadata:i={},path:a}){try{const s=`${ae}/analytics/event`,l={event_type:e,entity_type:t,entity_id:n,metadata:{...i||{},path:a||(typeof window<"u"?window.location.pathname:void 0)},path:a||(typeof window<"u"?window.location.pathname:void 0)},r=JSON.stringify(l);if(typeof navigator<"u"&&navigator.sendBeacon){const o=new Blob([r],{type:"application/json"});return navigator.sendBeacon(s,o),Promise.resolve()}return fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:r,keepalive:!0})}catch(s){return console.warn("analytics event failed",s),Promise.resolve()}}const gS=()=>{const[e,t]=_.useState(null),[n,i]=_.useState(!1),[a,s]=_.useState(!1),[l,r]=_.useState(!0),o=Bi(),u=_.useCallback(()=>localStorage.getItem("access_token"),[]),d=b=>{localStorage.setItem("access_token",b),h()},f=_.useCallback(()=>{localStorage.removeItem("access_token"),t(null),i(!1),s(!1),o("/login")},[o]),h=_.useCallback(async()=>{const b=u();if(b)try{const v=await fetch(`${ae}/auth/me`,{headers:{Authorization:`Bearer ${b}`}});if(v.ok){const p=await v.json();t(p),i(!0),s(p.is_admin)}else f()}catch(v){console.error("Error al obtener usuario actual:",v),f()}finally{r(!1)}else r(!1)},[u,f]);return _.useEffect(()=>{h()}
60,[h]),{user:e,isAuthenticated:n,isAdmin:a,loading:l,login:async(b,v)=>{r(!0);try{const p=new URLSearchParams;p.append("username",b),p.append("password",v);const g=await fetch(`${ae}/auth/login`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:p.toString()});if(!g.ok){const T=await g.json();throw new Error(T.detail||"Error de autenticación")}const x=await g.json();return d(x.access_token),x}catch(p){throw console.error("Login error:",p),p}finally{r(!1)}},logout:f,register:async(b,v,p)=>{r(!0);try{const g=await fetch(`${ae}/auth/register`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:b,password:v,display_name:p})});if(!g.ok){const T=await g.json();if(Array.isArray(T.detail)){const S=T.detail.map(C=>`${C.loc[1]}: ${C.msg}`).join(` 61`);throw new Error(S)}throw new Error(T.detail||"Error de registro")}const x=await g.json();return console.log("Registro exitoso:",x),x}catch(g){throw console.error("Register error:",g),g}finally{r(!1)}},getToken:u,fetchCurrentUser:h}},Yb=_.createContext(null),yS=({children:e})=>{const t=gS();return c.jsx(Yb.Provider,{value:t,children:e})},jn=()=>{const e=_.useContext(Yb);if(e===void 0)throw new Error("useAuthContext must be used within an AuthProvider");return e},qb=_.createContext(null),bS=({children:e})=>{const[t,n]=_.useState(()=>localStorage.getItem("theme")||"dark");_.useEffect(()=>{document.body.className=`theme-${t}`,localStorage.setItem("theme",t)},[t]);const i=()=>{n(a=>a==="dark"?"light":"dark")};return c.jsx(qb.Provider,{value:{theme:t,toggleTheme:i},children:e})},xS=()=>{const e=_.useContext(qb);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},vS=()=>{const{theme:e,toggleTheme:t}=xS();return c.jsxs("button",{className:"btn btn--ghost",onClick:t,style:{marginLeft:"10px"},children:[e==="dark"?"âï¸":"ð"," "]})};function _S(){const{isAuthenticated:e,isAdmin:t,logout:n}=jn(),i=Ee(),[a,s]=_.useState(!1),l=()=>{n(),s(!1)};return c.jsx("header",{children:c.jsx("div",{className:"container",children:c.jsxs("nav",{className:"nav",children:[c.jsxs(L,{to:"/",className:"brand",onClick:()=>s(!1),children:[c.jsx("img",{src:"/logoPag.png",alt:"EliteBrokers Logo",style:{height:"50px",width:"50px"}}),c.jsx("span",{className:"brand__name",children:"EliteBrokers"})]}),c.jsx("button",{className:"menu-toggle",onClick:()=>s(!a),"aria-expanded":a,children:c.jsx("span",{className:"hamburger"})}),c.jsxs("div",{className:`nav__links ${a?"is-open":""}`,children:[c.jsx(L,{to:"/","aria-current":i.pathname==="/"?"page":void 0,onClick:()=>s(!1),children:"Inicio"}),c.jsx(L,{to:"/brokers","aria-current":i.pathname.startsWith("/brokers")?"page":void 0,onClick:()=>s(!1),children:"Brokers"}),c.jsx(L,{to:"/news","aria-current":i.pathname.startsWith("/news")?"page":void 0,onClick:()=>s(!1),children:"Noticias"}),c.jsx(L,{to:"/courses","aria-current":i.pathname.startsWith("/courses")?"page":void 0,onClick:()=>s(!1),children:"Cursos"}),c.jsx(L,{to:"/community","aria-current":i.pathname.startsWith("/community")?"page":void 0,onClick:()=>s(!1),children:"Comunidad"}),c.jsx(L,{to:"/comparison","aria-current":i.pathname.startsWith("/comparison")?"page":void 0,onClick:()=>s(!1),children:"Comparar"}),c.jsx(L,{to:"/tools","aria-current":i.pathname.startsWith("/tools")?"page":void 0,onClick:()=>s(!1),children:"Herramientas"}),e?c.jsxs(c.Fragment,{children:[t&&c.jsxs(c.Fragment,{children:[c.jsx(L,{to:"/admin/operators","aria-current":i.pathname.startsWith("/admin/operators")?"page":void 0,className:"btn",onClick:()=>s(!1),children:"Admin Brokers"}),c.jsx(L,{to:"/admin/analytics","aria-current":i.pathname.startsWith("/admin/analytics")?"page":void 0,className:"btn btn--ghost",onClick:()=>s(!1),children:"Métricas"})]}),c.jsx("button",{onClick:l,className:"btn btn--ghost",children:"Logout"})]}):c.jsxs(c.Fragment,{children:[c.jsx(L,{to:"/login","aria-current":i.pathname==="/login"?"page":void 0,className:"btn btn--ghost",onClick:()=>s(!1),children:"Login"}),c.jsx(L,{to:"/register","aria-current":i.pathname==="/register"?"page":void 0,className:"btn",onClick:()=>s(!1),children:"Registro"})]}),c.jsx(vS,{})]})]})})})}function SS(){return c.jsxs("footer",{children:[c.jsxs("div",{className:"container footer__grid",children:[c.jsxs("div",{children:[c.jsx("p",{className:"brand__name",children:"EliteBrokers"}
61)," ",c.jsx("p",{className:"section__sub",children:"Plataforma independiente de educación y análisis financiero."})]}),c.jsxs("div",{children:[c.jsx("h5",{children:"Navegación"}),c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx(L,{to:"/",children:"Inicio"})})," ",c.jsx("li",{children:c.jsx(L,{to:"/brokers",children:"Brokers"})})," ",c.jsx("li",{children:c.jsx(L,{to:"/news",children:"Noticias"})})," ",c.jsx("li",{children:c.jsx(L,{to:"/courses",children:"Cursos"})})," "]})]}),c.jsxs("div",{children:[c.jsx("h5",{children:"Legal"}),c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx(L,{to:"/terms",children:"Términos y Condiciones"})})," ",c.jsx("li",{children:c.jsx(L,{to:"/privacy",children:"PolÃtica de Privacidad"})})," ",c.jsx("li",{children:c.jsx(L,{to:"/disclaimer",children:"Descargo de Responsabilidad"})})," "]})]})]}),c.jsxs("div",{className:"container subfoot",children:[c.jsx("p",{children:"© 2025 EliteBrokers â No somos asesores financieros. Operar con derivados o apuestas conlleva riesgos."})," "]})]})}const jS=()=>c.jsxs(c.Fragment,{children:[c.jsx(_S,{}),c.jsx("main",{children:c.jsx(Rb,{})}),c.jsx(SS,{})]});var TS=typeof Element<"u",ES=typeof Map=="function",CS=typeof Set=="function",wS=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function mr(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,i,a;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!mr(e[i],t[i]))return!1;return!0}var s;if(ES&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;for(s=e.entries();!(i=s.next()).done;)if(!mr(i.value[1],t.get(i.value[0])))return!1;return!0}if(CS&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if(wS&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[i]))return!1;if(TS&&e instanceof Element)return!1;for(i=n;i--!==0;)if(!((a[i]==="_owner"||a[i]==="__v"||a[i]==="__o")&&e.$$typeof)&&!mr(e[a[i]],t[a[i]]))return!1;return!0}return e!==e&&t!==t}var AS=function(t,n){try{return mr(t,n)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}};const NS=ao(AS);var MS=function(e,t,n,i,a,s,l,r){if(!e){var o;if(t===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,a,s,l,r],d=0;o=new Error(t.replace(/%s/g,function(){return u[d++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}},DS=MS;const tm=ao(DS);var OS=function(t,n,i,a){var s=i?i.call(a,t,n):void 0;if(s!==void 0)return!!s;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var l=Object.keys(t),r=Object.keys(n);if(l.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(n),u=0;u<l.length;u++){var d=l[u];if(!o(d))return!1;var f=t[d],h=n[d];if(s=i?i.call(a,f,h,d):void 0,s===!1||s===void 0&&f!==h)return!1}return!0};const zS=ao(OS);var Fb=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Fb||{}),_c={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}}
61,nm=Object.values(Fb),rf={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},kS=Object.entries(rf).reduce((e,[t,n])=>(e[n]=t,e),{}),Dt="data-rh",fa={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},ha=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const i=e[n];if(Object.prototype.hasOwnProperty.call(i,t))return i[t]}return null},RS=e=>{let t=ha(e,"title");const n=ha(e,fa.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const i=ha(e,fa.DEFAULT_TITLE);return t||i||void 0},BS=e=>ha(e,fa.ON_CHANGE_CLIENT_STATE)||(()=>{}),Sc=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,i)=>({...n,...i}),{}),LS=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,i)=>{if(!n.length){const a=Object.keys(i);for(let s=0;s<a.length;s+=1){const r=a[s].toLowerCase();if(e.indexOf(r)!==-1&&i[r])return n.concat(i)}}return n},[]),HS=e=>console&&typeof console.warn=="function"&&console.warn(e),Ka=(e,t,n)=>{const i={};return n.filter(a=>Array.isArray(a[e])?!0:(typeof a[e]<"u"&&HS(`Helmet: ${e} should be of type "Array". Instead found type "${typeof a[e]}"`),!1)).map(a=>a[e]).reverse().reduce((a,s)=>{const l={};s.filter(o=>{let u;const d=Object.keys(o);for(let h=0;h<d.length;h+=1){const m=d[h],y=m.toLowerCase();t.indexOf(y)!==-1&&!(u==="rel"&&o[u].toLowerCase()==="canonical")&&!(y==="rel"&&o[y].toLowerCase()==="stylesheet")&&(u=y),t.indexOf(m)!==-1&&(m==="innerHTML"||m==="cssText"||m==="itemprop")&&(u=m)}if(!u||!o[u])return!1;const f=o[u].toLowerCase();return i[u]||(i[u]={}),l[u]||(l[u]={}),i[u][f]?!1:(l[u][f]=!0,!0)}).reverse().forEach(o=>a.push(o));const r=Object.keys(l);for(let o=0;o<r.length;o+=1){const u=r[o],d={...i[u],...l[u]};i[u]=d}return a},[]).reverse()},US=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},VS=e=>({baseTag:LS(["href"],e),bodyAttributes:Sc("bodyAttributes",e),defer:ha(e,fa.DEFER),encode:ha(e,fa.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Sc("htmlAttributes",e),linkTags:Ka("link",["rel","href"],e),metaTags:Ka("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Ka("noscript",["innerHTML"],e),onChangeClientState:BS(e),scriptTags:Ka("script",["src","innerHTML"],e),styleTags:Ka("style",["cssText"],e),title:RS(e),titleAttributes:Sc("titleAttributes",e),prioritizeSeoTags:US(e,fa.PRIORITIZE_SEO_TAGS)}),Xb=e=>Array.isArray(e)?e.join(""):e,YS=(e,t)=>{const n=Object.keys(e);for(let i=0;i<n.length;i+=1)if(t[n[i]]&&t[n[i]].includes(e[n[i]]))return!0;return!1},jc=(e,t)=>Array.isArray(e)?e.reduce((n,i)=>(YS(i,t)?n.priority.push(i):n.default.push(i),n),{priority:[],default:[]}):{default:e,priority:[]},im=(e,t)=>({...e,[t]:void 0}),qS=["noscript","script","style"],Ru=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Gb=e=>Object.keys(e).reduce((t,n)=>{const i=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${i}`:i},""),FS=(e,t,n,i)=>{const a=Gb(n),s=Xb(t);return a?`<${e} ${Dt}="true" ${a}>${Ru(s,i)}</${e}>`:`<${e} ${Dt}="true">${Ru(s,i)}</${e}>`},XS=(e,t,n=!0)=>t.reduce((i,a)=>{const s=a,l=Object.keys(s).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const f=typeof s[d]>"u"?d:`${d}="${Ru(s[d],n)}"`;return u?`${u} ${f}`:f},""),r=s.innerHTML||s.cssText||"",o=qS.indexOf(e)===-1;return`${i}<${e} ${Dt}="true" ${l}${o?"/>":`>${r}</${e}>`}`},""),Pb=(e,t={})=>Object.keys(e).reduce((n,i)=>{const a=rf[i];return n[a||i]=e[i],n},t),GS=(e,t,n)=>{const i={key:t,[Dt]:!0},a=Pb(n,i);return[On.createElement("title",a,t)]},pr=(e,t)=>t.map((n,i)=>{const a={key:i,[Dt]:!0};return Object.keys(n).forEach(s=>{const r=rf[s]||s;if(r==="innerHTML"||r==="cssText"){const o=n.innerHTML||n.cssText;a.dangerouslySetInnerHTML={__html:o}}else a[r]=n[s]}),On.createElement(e,a)}),ft=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>GS(e,t.title,t.titleAttributes),toString:()=>FS(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Pb(t),toString:()=>Gb(t)};default:return{toComponent:()=>pr(e,t),toString:()=>XS(e,t,n)}}},PS=({metaTags:e,linkTags:t,scriptTags:n,encode:i})=>{const a=jc(e,_c.meta),s=jc(t,_c.link),l=jc(n,_c.script);return{priorityMethods:{toComponent:()=>[...pr("meta",a.priority),...pr("link",s.priority),...pr("script",l.priority)],toString:()=>`${ft("meta",a.priority,i)} ${ft("link",s.priority,i)} ${ft("script",l.priority,i)}`},metaTags:a.default,linkTags:s.default,scriptTags:l.default}},$S=e=>{const{baseTag:t,bodyAttributes:n,encode:i=!0,htmlAttributes:a,noscriptTags:s,styleTags:l,title:r="",titleAttributes:o,prioritizeSeoTags:u}=e;let{linkTags:d,metaTags:f,scriptTags:h}=e,m={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:m,linkTags:d,metaTags:f,scriptTags:h}=PS(e)),{priority:m,base:ft("base",t,i),bodyAttributes:ft("bodyAttributes",n,i),htmlAttributes:ft("htmlAttributes",a,i),link:ft("link",d,i),meta:ft("meta",f,i),noscript:ft("noscript",s,i),script:ft("script",h,i),style:ft("style",l,i),title:ft("title",{title:r,titleAttributes:o},i)}},Bu=$S,zl=[],$b=!!(typeof window<"u"&&window.document&&window.document.createElement),Lu=class{constructor(e,t){H(this,"instances",[]);H(this,"canUseDOM",$b);H(this,"context");H(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?zl:this.instances,add:e=>{(this.canUseDOM?zl:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?zl:this.instances).indexOf(e);(this.canUseDOM?zl:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Bu({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},QS={},Qb=On.createContext(QS),yi,Zb=(yi=class extends _.Component{constructor(n){super(n);H(this,"helmetData");this.helmetData=new Lu(this.props.context||{},yi.canUseDOM)}render(){return On.createElement(Qb.Provider,{value:this.helmetData.value},this.props.children)}},H(yi,"canUseDOM",$b),yi),Yi=(e,t)=>{const n=document.head||document.querySelector("head"),i=n.querySelectorAll(`${e}[${Dt}]`),a=[].slice.call(i),s=[];let l;return t&&t.length&&t.forEach(r=>{const o=document.createElement(e);for(const u in r)if(Object.prototype.hasOwnProperty.call(r,u))if(u==="innerHTML")o.innerHTML=r.innerHTML;else if(u==="cssText")o.styleSheet?o.styleSheet.cssText=r.cssText:o.appendChild(document.createTextNode(r.cssText));else{const d=u,f=typeof r[d]>"u"?"":r[d];o.setAttribute(u,f)}o.setAttribute(Dt,"true"),a.some((u,d)=>(l=d,o.isEqualNode(u)))?a.splice(l,1):s.push(o)}),a.forEach(r=>{var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}
61),s.forEach(r=>n.appendChild(r)),{oldTags:a,newTags:s}},Hu=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const i=n.getAttribute(Dt),a=i?i.split(","):[],s=[...a],l=Object.keys(t);for(const r of l){const o=t[r]||"";n.getAttribute(r)!==o&&n.setAttribute(r,o),a.indexOf(r)===-1&&a.push(r);const u=s.indexOf(r);u!==-1&&s.splice(u,1)}for(let r=s.length-1;r>=0;r-=1)n.removeAttribute(s[r]);a.length===s.length?n.removeAttribute(Dt):n.getAttribute(Dt)!==l.join(",")&&n.setAttribute(Dt,l.join(","))},ZS=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Xb(e)),Hu("title",t)},am=(e,t)=>{const{baseTag:n,bodyAttributes:i,htmlAttributes:a,linkTags:s,metaTags:l,noscriptTags:r,onChangeClientState:o,scriptTags:u,styleTags:d,title:f,titleAttributes:h}=e;Hu("body",i),Hu("html",a),ZS(f,h);const m={baseTag:Yi("base",n),linkTags:Yi("link",s),metaTags:Yi("meta",l),noscriptTags:Yi("noscript",r),scriptTags:Yi("script",u),styleTags:Yi("style",d)},y={},b={};Object.keys(m).forEach(v=>{const{newTags:p,oldTags:g}=m[v];p.length&&(y[v]=p),g.length&&(b[v]=m[v].oldTags)}),t&&t(),o(e,y,b)},Wa=null,KS=e=>{Wa&&cancelAnimationFrame(Wa),e.defer?Wa=requestAnimationFrame(()=>{am(e,()=>{Wa=null})}):(am(e),Wa=null)},WS=KS,sm=class extends _.Component{constructor(){super(...arguments);H(this,"rendered",!1)}shouldComponentUpdate(t){return!zS(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let i=null;const a=VS(t.get().map(s=>{const l={...s.props};return delete l.context,l}));Zb.canUseDOM?WS(a):Bu&&(i=Bu(a)),n(i)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Bc,Lt=(Bc=class extends _.Component{shouldComponentUpdate(e){return!NS(im(this.props,"helmetData"),im(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,i){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,i)}]}}mapObjectTypeChildren(e,t,n,i){switch(e.type){case"title":return{...t,[e.type]:i,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(i=>{n={...n,[i]:e[i]}}),n}warnOnInvalidChildren(e,t){return tm(nm.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${nm.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),tm(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return On.Children.forEach(e,i=>{if(!i||!i.props)return;const{children:a,...s}=i.props,l=Object.keys(s).reduce((o,u)=>(o[kS[u]||u]=s[u],o),{});let{type:r}=i;
61switch(typeof r=="symbol"?r=r.toString():this.warnOnInvalidChildren(i,a),r){case"Symbol(react.fragment)":t=this.mapChildrenToProps(a,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(i,n,l,a);break;default:t=this.mapObjectTypeChildren(i,t,l,a);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:i}=t;if(e&&(n=this.mapChildrenToProps(e,n)),i&&!(i instanceof Lu)){const a=i;i=new Lu(a.context,!0),delete n.helmetData}return i?On.createElement(sm,{...n,context:i.value}):On.createElement(Qb.Consumer,null,a=>On.createElement(sm,{...n,context:a}))}},H(Bc,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Bc);const Ni=({score:e=0})=>{const n=Math.max(0,Math.min(5,Number(e)||0)),i=Math.round(n*2)/2,a=Math.floor(i),s=i-a===.5,l=r=>r<a?c.jsx("span",{className:"star star--full",children:"â
"},r):r===a&&s?c.jsxs("span",{className:"star star--half",children:[c.jsx("span",{className:"star__base",children:"â
"}),c.jsx("span",{className:"star__half",children:"â
"})]},"half"):c.jsx("span",{className:"star star--empty",children:"â
"},r);return c.jsx("span",{className:"star-rating",children:Array.from({length:5},(r,o)=>l(o))})},ma="https://elitebrokers.netlify.app",kl={title:"EliteBrokers 2025 | Comparador de brokers regulados",description:"Elige brokers seguros para Forex, CFDs e Ãndices sintéticos con reseñas verificadas, licencias claras y comparaciones rápidas."};function Et(e){return typeof e=="string"?`${ma.replace(/\/$/,"")}${e.startsWith("/")?e:`/${e}`}`:typeof window<"u"?`${ma.replace(/\/$/,"")}${window.location.pathname}`:ma}const Kb=_.createContext(null),JS=({children:e})=>{const[t,n]=_.useState([]),i=Bi(),a=(r,o)=>{n(u=>{if(!u.some(f=>f.id===r&&f.type===o)){const f=[...u,{id:r,type:o}];return f.length>0&&setTimeout(()=>i("/comparison"),0),f}return u})},s=(r,o)=>{n(u=>u.filter(d=>!(d.id===r&&d.type===o)))},l=()=>{n([])};return c.jsx(Kb.Provider,{value:{compareItems:t,addCompareItem:a,removeCompareItem:s,clearCompareItems:l},children:e})},wo=()=>{const e=_.useContext(Kb);if(e===void 0)throw new Error("useComparisonContext must be used within a ComparisonProvider");return e},Ao=({widgetSrc:e,config:t,className:n="",height:i=480,creditText:a})=>{const s=_.useRef(null);return _.useEffect(()=>{const l=s.current;if(!l)return;l.innerHTML="";const r=document.createElement("div");r.className="tradingview-widget-container__widget",r.style.height="100%",l.appendChild(r);const o=document.createElement("script");return o.type="text/javascript",o.src=e,o.async=!0,o.innerHTML=JSON.stringify(t),l.a
61ppendChild(o),()=>{l.innerHTML=""}},[e,t]),c.jsxs("div",{className:`tradingview-widget-wrapper ${n}`,style:{minHeight:i},children:[c.jsx("div",{ref:s,className:"tradingview-widget-container",style:{minHeight:i}}),c.jsx("div",{className:"tradingview-widget-copyright",children:c.jsx("a",{href:"https://es.tradingview.com/",rel:"noopener noreferrer",target:"_blank",children:a||"Seguimiento en TradingView"})})]})},Wb=()=>{const e=_.useMemo(()=>({symbols:[{proName:"FX:EURUSD",title:"EUR/USD"},{proName:"FX:GBPUSD",title:"GBP/USD"},{proName:"FX:USDJPY",title:"USD/JPY"},{proName:"BINANCE:BTCUSDT",title:"BTC/USDT"},{proName:"BINANCE:ETHUSDT",title:"ETH/USDT"},{proName:"TVC:GOLD",title:"Oro"},{proName:"NYMEX:CL1!",title:"WTI"}],showSymbolLogo:!0,colorTheme:"dark",isTransparent:!1,displayMode:"adaptive",locale:"es"}),[]);return c.jsx(Ao,{widgetSrc:"https://s3.tradingview.com/external-embedding/embed-widget-ticker-tape.js",config:e,height:90,creditText:"Cotizaciones por TradingView",className:"tradingview-widget-container--tape"})};let Rl=null;const IS=()=>typeof window>"u"?Promise.resolve():Rl||(Rl=new Promise((e,t)=>{if(window.TradingView){e();return}const n=document.createElement("script");n.id="tradingview-widget-loading-script",n.src="https://s3.tradingview.com/tv.js",n.type="text/javascript",n.onload=()=>e(),n.onerror=t,document.body.appendChild(n)}),Rl),Jb=({symbol:e="FX:EURUSD",interval:t="60",theme:n="dark",style:i="1",locale:a="es",hideTopToolbar:s=!1,allowSymbolChange:l=!0,studies:r=[],autosize:o=!1,height:u=640})=>{const d=_.useRef(null),f=_.useRef(null);return _.useEffect(()=>{let h=!0;return IS().then(()=>{if(!h||!window.TradingView||!d.current)return;const m=`tradingview_advanced_chart_${Math.random().toString(36).slice(2)}`;d.current.id=m;const y=o&&!u;f.current=new window.TradingView.widget({autosize:y,symbol:e,interval:t,timezone:"Etc/UTC",theme:n,style:i,locale:a,container_id:m,hide_top_toolbar:s,allow_symbol_change:l,studies:r,height:y?void 0:u,backgroundColor:n==="dark"?"rgba(12,17,23,1)":"#ffffff"})}).catch(m=>{console.error("Error loading TradingView chart:",m)}),()=>{h=!1,f.current&&typeof f.current.remove=="function"&&f.current.remove()}},[e,t,n,i,a,s,l,r,o,u]),c.jsxs("div",{className:"tradingview-widget-wrapper tradingview-widget-wrapper--chart",children:[c.jsx("div",{ref:d,className:"tradingview-widget-container",style:{minHeight:u}}),c.jsx("div",{className:"tradingview-widget-copyright",children:c.jsx("a",{href:"https://es.tradingview.com/",rel:"noopener noreferrer",target:"_blank",children:"Gráfico proporcionado por TradingView"})})]})},Ib=()=>{const e=_.useMemo(()=>({colorTheme:"dark",dateRange:"12M",showChart:!0,locale:"es",width:"100%",height:"100%",largeChartUrl:"",isTransparent:!1,plotLineColorGrowing:"rgba(25, 199, 167, 1)",plotLineColorFalling:"rgba(245, 166, 35, 1)",gridLineColor:"rgba(42, 46, 57, 1)",scaleFontColor:"rgba(134, 137, 147, 1)",belowLineFillColorGrowing:"rgba(25, 199, 167, 0.12)",belowLineFillColorFalling:"rgba(245, 166, 35, 0.12)",symbolActiveColor:"rgba(25, 199, 167, 0.45)",tabs:[{title:"Ãndices",symbols:[{s:"FOREXCOM:SPXUSD",d:"S&P 500"},{s:"FOREXCOM:NSXUSD",d:"Nasdaq 100"},{s:"BME:IBEX",d:"IBEX 35"},{s:"INDEX:NI225",d:"Nikkei 225"}]},{title:"Forex",symbols:[{s:"FX:EURUSD"},{s:"FX:GBPUSD"},{s:"FX:USDJPY"},{s:"FX:USDCAD"},{s:"FX:AUDUSD"}]},{title:"Criptomonedas",symbols:[{s:"BINANCE:BTCUSDT"},{s:"BINANCE:ETHUSDT"},{s:"BINANCE:SOLUSDT"},{s:"BINANCE:XRPUSDT"}]},{title:"Materias primas",symbols:[{s:"TVC:GOLD",d:"Oro"},{s:"TVC:SILVER",d:"Plata"},{s:"NYMEX:CL1!",d:"Petróleo WTI"},{s:"NYMEX:NG1!",d:"Gas Natural"}]}]}),[]);return c.jsx(Ao,{widgetSrc:"https://s3.tradingview.com/external-embedding/embed-widget-market-overview.js",config:e,height:520,creditText:"Resumen de mercado por TradingView"})},lm=[{question:"¿Cuál es el mejor broker regulado para operar en Latinoamérica?",answer:"El mejor broker depende de tu perfil. Prioriza entidades con licencias FCA, CySEC, CNBV o CMF, spreads competitivos, soporte en español y retiros veloces. Revisa el ranking 2025 de EliteBrokers para comparar opciones filtrando por tu paÃs."},{question:"¿Cómo saber si un broker está regulado?",answer:"Verifica el número de licencia en la web oficial del broker y contrasta con los registros públicos del regulador (FCA, CySEC, ASIC, CNMV, FSCA). En EliteBrokers destacamos estas licencias y enlazamos a las bases de datos oficiales para confirmar la información."},{question:"¿Qué licencias garantizan un broker seguro?",answer:"Las licencias de organismos como FCA (Reino Unido), CySEC (Chipre), ASIC (Australia), CFTC/NFA (Estados Unidos) o FSCA
61(Sudáfrica) aseguran supervisión estricta, fondos segregados y mecanismos de reclamación. Presta atención a la entidad con la que se registra cada marca."},{question:"¿Cómo evitar estafas al invertir en brokers online?",answer:"Investiga la empresa, revisa reseñas reales, confirma que la web esté protegida con HTTPS y evita transferir dinero a cuentas personales. DesconfÃa de promesas de rentabilidad garantizada y utiliza nuestro comparador para validar licencias y reputación antes de depositar."},{question:"¿Cuál es la diferencia entre brokers ECN y Market Maker?",answer:"Un broker ECN conecta tus órdenes con proveedores de liquidez y suele ofrecer spreads variables con comisión. Un Market Maker ejecuta internamente las operaciones y puede ofrecer spreads fijos. Ningún modelo es malo per se: lo clave es la transparencia, la regulación y la calidad de ejecución."}],ej=()=>{const[e,t]=_.useState([]),[n,i]=_.useState([]),[a,s]=_.useState(!0),[l,r]=_.useState(null),[o,u]=_.useState(!0),[d,f]=_.useState(null),[h,m]=_.useState([]),[y,b]=_.useState(!0),[v,p]=_.useState(null),[g,x]=_.useState([]),[T,S]=_.useState(!0),[C,j]=_.useState(null),{addCompareItem:E,compareItems:N}=wo(),D=Ee(),B=_.useMemo(()=>new Set(N.filter(O=>O.type==="broker").map(O=>O.id)),[N]),V=_.useMemo(()=>({"@context":"https://schema.org","@type":"FAQPage",mainEntity:lm.map(O=>({"@type":"Question",name:O.question,acceptedAnswer:{"@type":"Answer",text:O.answer}}
61))}),[]);return _.useEffect(()=>{const O=async()=>{try{const M=await fetch(`${ae}/operators?limit=3`);if(!M.ok)throw new Error(`HTTP error! status: ${M.status}`);const R=await M.json();t(R)}catch(M){r(M.message)}finally{s(!1)}},k=async()=>{try{const M=await fetch(`${ae}/market/news?limit=3`);if(!M.ok)throw new Error(`HTTP error! status: ${M.status}`);const R=await M.json();i(R)}catch(M){f(M.message)}finally{u(!1)}},z=async()=>{try{const M=await fetch(`${ae}/courses?limit=3`);if(!M.ok)throw new Error(`HTTP error! status: ${M.status}`);const R=await M.json();m(R)}catch(M){p(M.message)}finally{b(!1)}},A=async()=>{try{const M=await fetch(`${ae}/posts?limit=3`);if(!M.ok)throw new Error(`HTTP error! status: ${M.status}`);const R=await M.json();x(R)}catch(M){j(M.message)}finally{S(!1)}};O(),k(),z(),A()},[]),c.jsxs(c.Fragment,{children:[c.jsxs(Lt,{children:[c.jsx("title",{children:kl.title}),c.jsx("meta",{name:"description",content:kl.description}),c.jsx("meta",{name:"keywords",content:"mejor broker 2025, brokers regulados, comparador de brokers, trading seguro, reseñas de brokers, análisis de brokers"}),c.jsx("meta",{name:"robots",content:"index, follow"}),c.jsx("meta",{name:"author",content:"EliteBrokers"}),c.jsx("meta",{name:"publisher",content:"EliteBrokers"}),c.jsx("link",{rel:"canonical",href:Et(D.pathname)}),c.jsx("meta",{property:"og:title",content:kl.title}),c.jsx("meta",{property:"og:description",content:kl.description}),c.jsx("meta",{property:"og:type",content:"website"}),c.jsx("meta",{property:"og:url",content:Et(D.pathname)}),c.jsx("script",{type:"application/ld+json",children:JSON.stringify(V)})]}),c.jsx("section",{className:"hero text-center",children:c.jsx("div",{className:"container hero__wrap",children:c.jsxs("div",{children:[c.jsx("h1",{children:"Compara y elige el mejor broker de trading regulado para ti"}),c.jsxs("p",{className:"subtitle",children:["Evita estafas y opera con confianza: analizamos los ",c.jsx("strong",{children:"brokers regulados más seguros"})," para ",c.jsx("strong",{children:"Forex, CFDs e Ãndices sintéticos"}),". Accede a ",c.jsx("strong",{children:"reseñas reales, licencias verificadas"})," y guÃas para un ",c.jsx("strong",{children:"trading seguro e inteligente"}),"."]}),c.jsxs("div",{className:"button-group",children:[c.jsx(L,{to:"/brokers",className:"btn btn-primary btn-lg",children:"Ver brokers regulados"}),c.jsx(L,{to:"/comparison",className:"btn btn-outline btn-lg",children:"Comparar brokers seguros"})]})]})})}),c.jsx("section",{className:"section bg-light",children:c.jsxs("div",{className:"container",children:[c.jsxs("div",{className:"section__head text-center",children:[c.jsx("h2",{children:"Mejores brokers regulados y seguros para 2025"}),c.jsxs("p",{className:"section__sub",children:["Comparativa independiente de ",c.jsx("strong",{children:"brokers con regulación verificada"})," (FCA, CySEC, FSCA y más). Detecta ",c.jsx("strong",{children:"estafas de brokers"}),", revisa licencias, depósitos mÃnimos y plataformas como ",c.jsx("strong",{children:"MetaTrader, cTrader o Ãndices sintéticos"}),"."]})]}),a?c.jsx("div",{className:"text-center",children:"Cargando brokers destacados..."}):l?c.jsxs("div",{className:"text-center",children:["Error al cargar brokers: ",l]}):e.length===0?c.jsx("div",{className:"text-center",children:"No hay brokers destacados disponibles."}):c.jsx("div",{className:"grid grid-3-col",style:{marginTop:"40px"},children:e.map(O=>{const k=B.has(O.id);return c.jsxs("div",{className:"card card--hover text-center",children:[O.logo_url&&c.jsx("img",{src:O.logo_url,alt:O.name,style:{width:"100%",height:"150px",objectFit:"cover",marginBottom:"15px",borderRadius:"8px 8px 0 0"}}),c.jsxs("div",{style:{padding:"0 15px 15px"},children:[" ",c.jsx("h3",{children:O.name}),c.jsxs("p",{children:["Regulación verificada: ",O.licenses]}),c.jsxs("div",{className:"score-display",children:["Puntuación: ",c.jsx(Ni,{score:O.overall_score})]}),c.jsxs("div",{style:{marginTop:"20px",display:"flex",flexDirection:"column",gap:"10px"},children:[c.jsx(L,{to:`/brokers/${O.id}`,className:"btn btn-outline",children:"Ver Detalles"}),c.jsx("button",{onClick:()=>E(O.id,"broker"),className:"btn btn-outline",style:{color:k?"#fff":"var(--brand-3)",borderColor:"var(--brand-3)",background:k?"var(--brand-3)":"transparent"},disabled:k,children:k?"Ya en Comparación":"Comparar"}),O.affiliate_url&&c.jsxs("a",{href:O.affiliate_url,target:"_blank",rel:"noopener noreferrer",className:"btn btn-lg",style:{background:"var(--brand-2)",borderColor:"var(--brand-2)",color:"#fff"},children:["RegÃstrate en ",O.name]})]})]})]},O.id)})}),c.jsx("div",{className:"text-center",style:{marginTop:"50px"},children:c.jsx(L,{to:"/brokers",className:"btn btn-primary btn-lg",children:"Descubre tu broker ideal con análisis 2025"})})]})}),c.jsx("section",{className:"section",children:c.jsxs("div",{className:"container grid grid-2-col",children:[c.jsxs("div",{className:"card",children:[c.jsx("h3",{children:"Comunidad global de traders con transparencia"}),c.jsxs("p",{children:["Comparte ",c.jsx("strong",{children:"análisis de brokers"}),", alertas de ",c.jsx("strong",{children:"estafas"})," y estrategias de ",c.jsx("strong",{children:"Forex, Ãndices sintéticos y criptomonedas"}),". Conecta con traders de Latinoamérica y España que verifican licencias y plataformas en tiempo real."]}),c.jsx(L,{to:"/community",className:"btn btn-outline",children:"Explorar comunidad de traders"})]}),c.jsxs("div",{className:"card",style:{display:"grid",gap:"12px"},children:[c.jsx("h4",{children:"Actividad Reciente"}),T?c.jsx("p",{children:"Cargando posts recientes..."}):C?c.jsxs("p",{children:["Error al cargar posts: ",C]}):g.length===0?c.jsx("p",{children:"No hay posts recientes disponibles."}):c.jsx("div",{className:"recent-posts-list",children:g.map(O=>c.jsxs("div",{className:"recent-post-item",children:[c.jsx(L,{to:`/posts/${O.id}`,children:c.jsx("h5",{children:O.title})}),c.jsxs("p",{className:"post-author",children:["por ",O.author.display_name||O.author.email]}),c.jsxs("p",{className:"post-meta",children:[new Date(O.created_at).toLocaleDateString()," | ",O.comments.length," comentarios"]})]},O.id))})]})]})}),c.jsx("section",{className:"section bg-light",children:c.jsxs("div",{className:"container",children:[c.jsx("h2",{className:"text-center",children:"Cotizaciones y gráfico interactivo en tiempo real"}),c.jsxs("p",{className:"section__sub text-center",children:["Visualiza pares de ",c.jsx("strong",{children:"Forex"}),", ",c.jsx("strong",{children:"criptomonedas"}),", Ãndices y materias primas con los widgets oficiales de TradingView. Mantén tu operativa alineada con el pulso del mercado y camb
61ia de sÃmbolo sin salir de EliteBrokers."]}),c.jsx("div",{className:"tools-grid",style:{marginTop:"32px",marginBottom:"32px"},children:c.jsx(Wb,{})}),c.jsx("div",{className:"tools-grid",style:{marginBottom:"32px"},children:c.jsx(Jb,{symbol:"FX:EURUSD",interval:"60",height:680})}),c.jsx("div",{className:"tools-grid",style:{marginBottom:"32px"},children:c.jsx(Ib,{})}),c.jsxs("div",{className:"card",style:{textAlign:"center",display:"grid",gap:"12px"},children:[c.jsx("h3",{children:"Explora más herramientas de trading gratuitas"}),c.jsx("p",{children:"Accede a nuestro hub con calendario económico, screener multi-activo y calculadora de lotaje para planificar cada operación con datos reales."}),c.jsx(L,{to:"/tools",className:"btn btn-primary",style:{justifySelf:"center"},children:"Ir al hub de herramientas"})]})]})}),c.jsx("section",{className:"section",children:c.jsxs("div",{className:"container",children:[c.jsxs("div",{className:"section__head text-center",children:[c.jsx("h2",{children:"Cursos de trading recomendados y auditados 2025"}),c.jsxs("p",{className:"section__sub",children:["Catálogo curado de ",c.jsx("strong",{children:"cursos de trading"})," para análisis técnico, gestión de riesgo y estrategias profesionales. Filtra por nivel, plataforma y especialidad para aprender con ",c.jsx("strong",{children:"educadores verificados"}),"."]})]}),y?c.jsx("div",{className:"text-center",children:"Cargando cursos destacados..."}):v?c.jsxs("div",{className:"text-center",children:["Error al cargar cursos: ",v]}):h.length===0?c.jsx("div",{className:"text-center",children:"No hay cursos destacados disponibles."}):c.jsx("div",{className:"grid grid-3-col",style:{marginTop:"40px"},children:h.map(O=>c.jsxs("div",{className:"card card--hover text-center",children:[O.cover_image_url&&c.jsx("img",{src:O.cover_image_url,alt:O.title,style:{width:"100%",height:"150px",objectFit:"cover",marginBottom:"15px",borderRadius:"8px 8px 0 0"}}),c.jsxs("div",{style:{padding:"0 15px 15px"},children:[c.jsx("h3",{children:O.title}),c.jsxs("p",{children:[O.description.substring(0,100),"..."]}),O.overall_score&&c.jsxs("div",{className:"score-display",children:["Puntuación: ",c.jsx(Ni,{score:O.overall_score})]}),c.jsxs("div",{style:{marginTop:"20px",display:"flex",flexDirection:"column",gap:"10px"},children:[c.jsx(L,{to:`/cursos/${O.id}`,className:"btn btn-outline",children:"Ver Detalles"}),O.video_url&&c.jsx("a",{href:O.video_url,target:"_blank",rel:"noopener noreferrer",className:"btn btn-lg",style:{background:"var(--brand-2)",borderColor:"var(--brand-2)",color:"#fff"},children:"Ir al Curso"})]})]})]},O.id))}),c.jsx("div",{className:"text-center",style:{marginTop:"50px"},children:c.jsx(L,{to:"/courses",className:"btn btn-secondary btn-lg",children:"Ver cursos verificados"})})]})}),c.jsx("section",{className:"section bg-light",children:c.jsxs("div",{className:"container",children:[c.jsx("h2",{className:"text-center",children:"Noticias y alertas de reguladores financieros"}),c.jsxs("p",{className:"section__sub text-center",children:["Actualizaciones sobre ",c.jsx("strong",{children:"regulación financiera"}),", cambios en licencias y alertas oficiales para detectar ",c.jsx("strong",{children:"brokers fraudulentos"}),". Mantente informado para operar con respaldo legal y ",c.jsx("strong",{children:"evitar estafas"}),"."]}),o?c.jsx("div",{className:"text-center",children:"Cargando noticias..."}):d?c.jsxs("div",{className:"text-center",children:["Error al cargar noticias: ",d]}):n.length===0?c.jsx("div",{className:"text-center",children:"No hay noticias disponibles."}):c.jsx("div",{className:"grid grid-3-col",style:{marginTop:"40px"},children:n.map(O=>c.jsxs("div",{className:"card",children:[O.image&&c.jsx("img",{src:O.image,alt:O.title,style:{maxWidth:"100%",height:"auto",marginBottom:"15px",borderRadius:"8px"}}),c.jsx("h3",{children:O.title}),c.jsx("p",{children:O.summary}),c.jsx("a",{href:O.url,target:"_blank",rel:"noopener noreferrer",className:"btn btn-outline",children:"Leer más"})]},O.id))}),c.jsx("div",{className:"text-center",style:{marginTop:"30px"},children:c.jsx(L,{to:"/news",className:"btn btn-outline",children:"Leer más Noticias"})})]})}),c.jsx("section",{className:"section",children:c.jsxs("div",{className:"container text-center",children:[c.jsx("h2",{children:"Reseñas de brokers regulados y ranking 2025"}),c.jsxs("p",{children:["Analizamos ",c.jsx("strong",{children:"brokers seguros"})," con métricas de confiabilidad, velocidad de retiro, spreads y opiniones verificadas. Califica tu experiencia y ayuda a otros traders a ",c.jsx("strong",{children:"evitar estafas"})," con información objetiva y transparente."]}),c.jsx(L,{to:"/brokers",className:"btn btn-primary",children:"Ver ranking de brokers 2025"})]})}),c.jsx("section",{className:"section bg-light",children:c.jsxs("div",{className:"container",children:[c.jsx("h2",{className:"text-center",children:"Preguntas frecuentes sobre brokers regulados"}),c.jsx("p",{className:"section__sub text-center",children:"Resuelve dudas clave antes de invertir: regulación, licencias, diferencias entre modelos de ejecución y cómo evitar estafas en trading online."}),c.jsx("div",{style:{marginTop:"32px",display:"grid",gap:"20px"},children:lm.map(O=>c.jsxs("div",{className:"card",style:{display:"grid",gap:"8px"},children:[c.jsx("h3",{style:{margin:0,fontSize:"1.1rem"},children:O.question}),c.jsx("p",{style:{margin:0,color:"var(--muted)"},children:O.answer})]},O.question))})]})}),c.jsx("section",{className:"section bg-dark",children:c.jsxs("div",{className:"container grid grid-2-col",style:{gap:"40px",alignItems:"center"},children:[c.jsxs("div",{children:[c.jsx("h2",{style:{color:"#fff",marginBottom:"16
61px"},children:"EliteBrokers: inteligencia, análisis y transparencia"}),c.jsxs("p",{style:{color:"#e2e8f0",marginBottom:"20px",lineHeight:1.7},children:["Nuestra misión es ayudarte a ",c.jsx("strong",{children:"invertir con seguridad y conocimiento real"}),". Ãnete para aportar reseñas, publicar análisis o crear cursos que fortalezcan el ",c.jsx("strong",{children:"trading seguro"})," en toda la región."]}),c.jsx(L,{to:"/register",className:"btn btn-primary btn-lg",children:"Unirme a la comunidad"})]}),c.jsx("div",{className:"section-illustration",style:{textAlign:"center"},children:c.jsx("img",{src:"/elitebrokerfoto.jpeg",alt:"Ilustración sobre el ecosistema EliteBrokers",className:"section-image",style:{borderRadius:"18px",maxHeight:"320px",objectFit:"cover"}})})]})})]})},tj=()=>{const[e,t]=_.useState([]),[n,i]=_.useState(!0),[a,s]=_.useState(null),{addCompareItem:l}=wo(),r=Ee();return _.useEffect(()=>{(async()=>{try{const u=await fetch(`${ae}/operators`);if(!u.ok)throw new Error(`HTTP error! status: ${u.status}`);const d=await u.json();t(d)}catch(u){s(u.message)}finally{i(!1)}})()},[]),n?c.jsx("div",{className:"container section",children:"Cargando brokers..."}):a?c.jsxs("div",{className:"container section",children:["Error: ",a]}):c.jsxs("div",{className:"container section",children:[c.jsxs(Lt,{children:[c.jsx("title",{children:"Brokers regulados y comparativas | EliteBrokers LATAM"}),c.jsx("meta",{name:"description",content:"Explora brokers regulados, verifica licencias y compara condiciones de trading antes de abrir tu cuenta real."}),c.jsx("link",{rel:"canonical",href:Et(r.pathname)})]}),c.jsx("h1",{children:"Lista de Brokers"}),e.length===0?c.jsx("p",{children:"No hay brokers disponibles."}):c.jsx("div",{className:"grid grid-3-col",style:{marginTop:"40px"},children:e.map(o=>c.jsxs("div",{className:"card card--hover text-center",children:[o.logo_url&&c.jsx("img",{src:o.logo_url,alt:o.name,style:{width:"100%",height:"150px",objectFit:"cover",marginBottom:"15px",borderRadius:"8px 8px 0 0"}}),c.jsxs("div",{style:{padding:"0 15px 15px"},children:[" ",c.jsx("h3",{children:o.name}),c.jsxs("p",{children:["Regulación: ",o.licenses]}),c.jsxs("div",{className:"score-display",children:["Puntuación: ",c.jsx(Ni,{score:o.overall_score})]}),c.jsxs("div",{style:{marginTop:"20px",display:"flex",flexDirection:"column",gap:"10px"},children:[c.jsx(L,{to:`/brokers/${o.id}`,className:"btn btn-outline",children:"Ver Detalles"}),c.jsx("button",{onClick:()=>l(o.id,"broker"),className:"btn btn-outline",style:{color:"var(--brand-3)",borderColor:"var(--brand-3)"},children:"Comparar"}),o.affiliate_url&&c.jsxs("a",{href:o.affiliate_url,target:"_blank",rel:"noopener noreferrer",className:"btn btn-lg",style:{background:"var(--brand-2)",borderColor:"var(--brand-2)",color:"#fff"},children:["RegÃstrate en ",o.name]})]})," "]})]},o.id))})]})},nj=()=>{var T,S,C;const{id:e}=tf(),t=Ee(),[n,i]=_.useState(null),[a,s]=_.useState(!0),[l,r]=_.useState(null);_.useEffect(()=>{(async()=>{try{const E=await fetch(`${ae}/operators/${e}`);if(!E.ok)throw new Error(`HTTP error! status: ${E.status}`);const N=await E.json();i(N)}catch(E){r(E.message)}finally{s(!1)}})()},[e]),_.useEffect(()=>{e&&Cs({event_type:"page_view",entity_type:"broker",entity_id:Number(e)})},[e]);const o=_.useMemo(()=>n!=null&&n.created_at?new Date(n.created_at).getFullYear():null,[n]),u=_.useMemo(()=>((n==null?void 0:n.regulations)||"").split(/[,;/]+/).map(j=>j.trim()).filter(Boolean),[n]),d=_.useMemo(()=>((n==null?void 0:n.trading_platforms)||"").split(/[,;/]+/).map(j=>j.trim()).filter(Boolean),[n]),f=_.useMemo(()=>((n==null?void 0:n.assets_offered)||"").split(/[,;/]+/).map(j=>j.trim()).filter(Boolean),[n]),h=_.useMemo(()=>{if(!(n!=null&&n.notes))return null;const j=n.notes.split(` 62 63`),E={pros:[],cons:[],opinion:""};return j.forEach(N=>{N.startsWith("Ventajas:")?E.pros=N.split(` 64`).slice(1).map(D=>D.replace(/^- /,"")).filter(Boolean):N.startsWith("Desventajas:")?E.cons=N.split(` 65`).slice(1).map(D=>D.replace(/^- /,"")).filter(Boolean):N.startsWith("Opinión de EliteBrokers:")&&(E.opinion=N.replace(`Opinión de EliteBrokers: 66`,"").trim())}),E},[n]),m=(n==null?void 0:n.years_operating)??(o?new Date().getFullYear()-o:null),y=_.useMemo(()=>typeof(n==null?void 0:n.years_operating)=="number"?new Date().getFullYear()-n.years_operating:o,[n==null?void 0:n.years_operating,o]),b=_.useMemo(()=>[{label:"Depósito mÃnimo",value:n!=null&&n.min_deposit?`USD ${Number(n.min_deposit).toLocaleStr
66ing()}`:"No informado",description:"Capital inicial recomendado para comenzar a operar."},{label:"PaÃs / sede",value:(n==null?void 0:n.country)||"No informado",description:"Jurisdicción base del broker."},{label:"Tipo de broker",value:n!=null&&n.vertical?n.vertical.toUpperCase():"No informado",description:"Especialización principal del broker."},{label:"Años en operación",value:m!==null?`${m} años`:"No informado",description:y?`Fundado en ${y}`:"El broker aún no informó año de inicio."}],[n,m,y]),v=(n==null?void 0:n.affiliate_url)||(n==null?void 0:n.website)||null,p=(j="cta")=>{v&&Cs({event_type:"cta_click",entity_type:"broker",entity_id:Number(e),metadata:{destination:v,context:j}})},g=_.useMemo(()=>Et(`/brokers/${e}`),[e,t.pathname]),x=_.useMemo(()=>{if(!n)return null;const j={"@context":"https://schema.org","@type":"FinancialService",name:n.name,url:g,description:n.description||void 0,image:n.logo_url?`${ma.replace(/\/$/,"")}${n.logo_url}`:void 0,areaServed:n.country||"Global",sameAs:n.website||void 0,aggregateRating:n.overall_score?{"@type":"AggregateRating",ratingValue:Number(n.overall_score).toFixed(2),reviewCount:n.reputation_reviews_count||0}:void 0};return JSON.stringify(j,null,2)},[n,g]);return a?c.jsx("div",{className:"container section",children:"Cargando detalles del broker..."}):l?c.jsxs("div",{className:"container section",children:["Error: ",l]}):n?c.jsxs("div",{className:"broker-detail",children:[c.jsxs(Lt,{children:[c.jsx("title",{children:`${n.name} | Opiniones, regulación y enlaces seguros`}),c.jsx("meta",{name:"description",content:((T=n.description)==null?void 0:T.slice(0,155))||`Revisión completa del broker ${n.name}, regulación y enlaces de apertura.`}),c.jsx("link",{rel:"canonical",href:g}),c.jsx("meta",{property:"og:title",content:`${n.name} | EliteBrokers LATAM`}),c.jsx("meta",{property:"og:description",content:((S=n.description)==null?void 0:S.slice(0,155))||""}),c.jsx("meta",{property:"og:url",content:g}),x&&c.jsx("script",{type:"application/ld+json",children:x})]}),c.jsxs("section",{className:"broker-hero",children:[c.jsxs("div",{className:"broker-hero__media",children:[c.jsx("div",{className:"broker-hero__logo",children:n.logo_url?c.jsx("img",{src:n.logo_url,alt:n.name}):c.jsx("span",{children:n.name[0]})}),n.detail_image_url&&c.jsx("img",{className:"broker-hero__cover",src:n.detail_image_url,alt:`${n.name} cover`})]}),c.jsxs("div",{className:"broker-hero__info",children:[c.jsx("div",{className:"broker-hero__badge",children:((C=n.vertical)==null?void 0:C.toUpperCase())||"Broker"}),c.jsx("h1",{children:n.name}),c.jsx("p",{className:"broker-hero__summary",children:n.description||"Sin descripción disponible."}),c.jsxs("div",{className:"broker-hero__rating",children:[c.jsxs("div",{children:[c.jsx("span",{className:"label",children:"Puntuación EliteBrokers"}),c.jsxs("div",{className:"broker-hero__stars",children:[c.jsx(Ni,{score:n.overall_score||0}),c.jsxs("strong",{children:[Number(n.overall_score||0).toFixed(2),"/5"]})]})]}),v&&c.jsxs("a",{href:v,target:"_blank",rel:"noopener noreferrer",onClick:()=>p("hero"),className:"btn btn-lg broker-hero__cta",children:["Abrir cuenta en ",n.name]})]}),!!u.length&&c.jsxs("div",{className:"broker-hero__tags",children:[c.jsx("span",{className:"label",children:"Regulación y licencias"}),c.jsx("div",{className:"pill-group",children:u.map(j=>c.jsx("span",{className:"pill",children:j},j))})]})]})]}),c.jsx("section",{className:"section",children:c.jsx("div",{className:"container",children:c.jsx("div",{className:"metrics-grid",children:b.map(j=>c.jsxs("article",{className:"metric-card",children:[c.jsx("span",{className:"metric-label",children:j.label}),c.jsx("span",{className:"metric-value",children:j.value}),c.jsx("p",{children:j.description})]},j.label))})})}),c.jsx("section",{className:"section",children:c.jsx("div",{className:"container",children:c.jsxs("div",{className:"info-panels",children:[c.jsxs("article",{className:"info-card",children:[c.jsx("h2",{children:"Plataformas disponibles"}),d.length?c.jsx("div",{className:"pill-group",children:d.map(j=>c.jsx("span",{className:"pill pill--glass",children:j},j))}):c.jsx("p",{children:"No hay información sobre plataformas."})]}),c.jsxs("article",{className:"info-card",children:[c.jsx("h2",{children:"Activos que puedes operar"}),f.length?c.jsx("div",{className:"pill-group",children:f.map(j=>c.jsx("span",{className:"pill pill--glass",children:j},j))}):c.jsx("p",{children:"No se listaron los activos disponibles."})]}),v&&c.jsxs("article",{className:"info-card",children:[c.jsx("h2",{children:"Sitio oficial"}),c.jsx("p",{children:"Consulta condiciones, promociones y soporte directo en la web oficial."}),c.jsxs("a",{href:v,target:"_blank",rel:"noopener noreferrer",onClick:()=>p("official_site"),className:"btn btn-outline",children:["Visitar ",n.website?n.website.replace(/^https?:\/\//,""):n.name]})]})]})})}),h?c.jsx("section",{className:"section",children:c.jsx("div",{className:"container",children:c.jsxs("div",{className:"detail-insights",children:[c.jsxs("article",{className:"insight-card",children:[c.jsx("h2",{children:"Ventajas clave"}),h.pros.length?c.jsx("ul",{children:h.pros.map(j=>c.jsx("li",{children:j},j))}):c.jsx("p",{children:"Sin ventajas destacadas en la ficha actual."})]}),c.jsxs("article",{className:"insight-card insight-card--warning",children:[c.jsx("h2",{children:"Alertas y desventajas"}),h.cons.length?c.jsx("ul",{children:h.cons.map(j=>c.jsx("li",{children:j},j))}):c.jsx("p",{children:"No se listaron desventajas especÃficas."})]}),h.opinion&&c.jsxs("article",{className:"insight-card insight-card--opinion",children:[c.jsx("h2",{children:"Opinión de EliteBrokers"}),c.jsx("p",{children:h.opinion})]})]})})}):c.jsx("section",{className:"section",children:c.jsx("div",{className:"container",children:c.jsxs("article",{className:"info-card",children:[c.jsx("h2",{children:"Evaluación"}),c.jsx("p",{children:"No hay un análisis detallado cargado para este broker aún."})]})})})]}):c.jsx("div",{className:"container section",children:"Broker no encontrado."})},ij=()=>{const[e,t]=_.useState([]),[n,i]=_.useState(!0),[a,s]=_.useState(null);return _.useEffect(()=>{(async()=>{try{const r=await fetch(`${ae}/market/news`);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);const o=await r.json();t(o)}catch(r){s(r.message)}finally{i(!1)}})()},[]),n?c.jsx("div",{className:"container section",children:"Cargando noticias..."}):a?c.jsxs("div",{className:"container section",children:["Error: ",a]}):c.jsxs("div",{className:"container section",children:[c.jsx("h1",{children:"Ãltimas Noticias del Mercado"}),e.length===0?c.jsx("p",{children:"No hay noticias disponibles."}):c.jsx("div",{className:"grid grid-3-col",style:{marginTop:"40px"},children:e.map(l=>c.jsxs("div",{className:"market-news__card",children:[l.image&&c.jsx("img",{src:l.image,alt:l.title,style:{maxWidth:"100%",height:"auto",marginBottom:"15px",borderRadius:"8px"}}),c.jsx("h3",{children:l.title}),c.jsx("p",{children:l.summary}),c.jsxs("p",{children:[c.jsx("strong",{children:"Fuente:"})," ",l.source]}),c.jsxs("p",{children:[c.jsx("strong",{children:"Publicado:"})," ",new Date(l.published_at).toLocaleDateString()]}),c.jsx("a",{href:l.url,target:"_blank",rel:"noopener noreferrer",className:"btn btn-outline",style:{marginTop:"15p
66x"},children:"Leer más"})]},l.id))})]})},aj=()=>{const[e,t]=_.useState([]),[n,i]=_.useState(!0),[a,s]=_.useState(null),{addCompareItem:l}=wo(),r=Ee();_.useEffect(()=>{(async()=>{try{const d=await fetch(`${ae}/courses`);if(!d.ok)throw new Error(`HTTP error! status: ${d.status}`);const f=await d.json();t(f)}catch(d){s(d.message)}finally{i(!1)}})()},[]);let o=null;return n?o=c.jsx("div",{className:"container section",children:"Cargando cursos..."}):a?o=c.jsxs("div",{className:"container section",children:["Error: ",a]}):o=c.jsxs("div",{className:"container section",children:[c.jsx("h2",{children:"Cursos de trading evaluados por traders y expertos"}),c.jsxs("p",{className:"section__sub",children:["Analizamos cada programa para validar ",c.jsx("strong",{children:"nivel sugerido"}),", estructura, acceso y reputación del instructor. Elige con confianza la formación que mejor se ajuste a tu estilo de trading."]}),e.length===0?c.jsx("p",{children:"No hay cursos disponibles."}):c.jsx("div",{className:"grid grid-3-col",style:{marginTop:"40px"},children:e.map(u=>c.jsxs("div",{className:"card card--hover text-center",children:[(u.cover_image_url||u.title.includes("SieteFX"))&&c.jsx("img",{src:u.cover_image_url||"/Logo SieteFX 3 .png",alt:u.title,style:{width:"100%",height:"160px",objectFit:"cover",borderRadius:"12px 12px 0 0",marginBottom:"16px"}}),c.jsx("h3",{children:u.title}),c.jsx("p",{children:u.description}),c.jsxs("div",{style:{marginTop:"20px",display:"flex",flexDirection:"column",gap:"10px"},children:[c.jsx(L,{to:`/cursos/${u.id}`,className:"btn btn-outline",children:"Ver Detalles"}),c.jsx("button",{onClick:()=>l(u.id,"course"),className:"btn btn-outline",style:{color:"var(--brand-3)",borderColor:"var(--brand-3)"},children:"Añadir al comparador"}),u.video_url&&c.jsx("a",{href:u.video_url,target:"_blank",rel:"noopener noreferrer",className:"btn btn-lg",style:{background:"var(--brand-2)",borderColor:"var(--brand-2)",color:"#fff"},children:"Ir al Curso"})]})]},u.id))})]}),c.jsxs(c.Fragment,{children:[c.jsxs(Lt,{children:[c.jsx("title",{children:"Cursos de trading verificados 2025 | EliteBrokers"}),c.jsx("meta",{name:"description",content:"Lista curada de cursos de trading verificados 2025. Compara programas con reseñas reales, niveles sugeridos y acceso a estrategias de Forex, Ãndices sintéticos y criptomonedas."}),c.jsx("link",{rel:"canonical",href:Et(r.pathname)}),c.jsx("meta",{property:"og:title",content:"Cursos de trading verificados 2025 | EliteBrokers"}),c.jsx("meta",{property:"og:description",content:"Explora cursos auditados por la comunidad: análisis técnico, gestión de riesgo y estrategias para Forex, CFDs e Ãndices sintéticos."})]}),c.jsx("section",{className:"page-hero",style:{"--hero-image":"url(/cursosfoto.jpeg)"},children:c.jsx("div",{className:"container page-hero__inner",children:c.jsxs("div",{className:"page-hero__content",children:[c.jsx("span",{className:"page-hero__tag",children:"Cursos verificados 2025"}),c.jsx("h1",{children:"Cursos de trading auditados por la comunidad 2025"}),c.jsx("p",{children:"Reseñas reales sobre academias de Forex, CFDs, Ãndices sintéticos y order flow. Validamos acceso, soporte y actualización para que inviertas en formación con resultados medibles."}),c.jsx("div",{className:"page-hero__actions",children:c.jsx(L,{to:"/comparison",className:"btn btn-outline",children:"Comparar cursos con otros recursos"})})]})})}),o]})},sj=()=>{var x,T,S,C;const{id:e}=tf(),t=Ee(),[n,i]=_.useState(null),[a,s]=_.useState(!0),[l,r]=_.useState(null),[o,u]=_.useState(0);_.useEffect(()=>{(async()=>{try{const E=await fetch(`${ae}/courses/${e}`);if(!E.ok)throw new Error(`HTTP error! status: ${E.status}`);const N=await E.json();i(N)}catch(E){r(E.message)}finally{s(!1)}})()},[e]),_.useEffect(()=>{if(typeof window>"u"||!e)return;const j=`course_views_${e}`,E=Number(window.localStorage.getItem(j)||0)+1;window.localStorage.setItem(j,E),u(E)},[e]),_.useEffect(()=>{e&&Cs({event_type:"page_view",entity_type:"course",entity_id:Number(e)})},[e]);const d=_.useMemo(()=>((n==null?void 0:n.tags)||"").split(/[,;/]+/).map(j=>
66j.trim()).filter(Boolean),[n]),f=_.useMemo(()=>n!=null&&n.description?n.description.split(/\n+/).map(j=>j.trim()).filter(Boolean):[],[n]),h=(n==null?void 0:n.overall_score)??4.5,m=((x=n==null?void 0:n.video_url)==null?void 0:x.includes("youtube.com"))||((T=n==null?void 0:n.video_url)==null?void 0:T.includes("youtu.be")),y=_.useMemo(()=>n?[{label:"Plataforma",value:n.platform||"No especificada",description:"Dónde se imparte o aloja el contenido principal.",icon:"ð»"},{label:"Nivel sugerido",value:n.level||"General",description:"Experiencia recomendada para aprovechar el material.",icon:"ð¯"},{label:"Acceso",value:n.free?"Curso gratuito":"Acceso de pago",description:"Confirma modalidad, precios y promociones vigentes.",icon:n.free?"ð":"ð³"},{label:"Formato",value:m?"Video · YouTube":"Recurso externo",description:"Contenido multimedia principal del programa.",icon:m?"ð¬":"ð¦"},{label:"Visitas (este dispositivo)",value:o,description:"Visualizaciones locales registradas en este navegador.",icon:"ðï¸"}]:[],[n,m,o]),b=_.useMemo(()=>Et(`/cursos/${e}`),[e,t.pathname]),v=_.useMemo(()=>{if(!n)return null;const j={"@context":"https://schema.org","@type":"Course",name:n.title,description:n.description||void 0,provider:{"@type":"Organization",name:"EliteBrokers LATAM",sameAs:ma},url:b,image:n.cover_image_url?`${ma.replace(/\/$/,"")}${n.cover_image_url}`:void 0,aggregateRating:h?{"@type":"AggregateRating",ratingValue:h.toFixed(1),reviewCount:1}:void 0};return JSON.stringify(j,null,2)},[n,h,b]);if(a)return c.jsx("div",{className:"container section",children:"Cargando detalles del curso..."});if(l)return c.jsxs("div",{className:"container section",children:["Error: ",l]});if(!n)return c.jsx("div",{className:"container section",children:"Curso no encontrado."});const p=f[0],g=f.slice(1);return c.jsxs("div",{className:"course-detail",children:[c.jsxs(Lt,{children:[c.jsx("title",{children:`${n.title} | Curso de trading en español`}),c.jsx("meta",{name:"description",content:((S=n.description)==null?void 0:S.slice(0,155))||`Resumen del curso ${n.title}.`}),c.jsx("link",{rel:"canonical",href:b}),c.jsx("meta",{property:"og:title",content:`${n.title} | EliteBrokers LATAM`}),c.jsx("meta",{property:"og:description",content:((C=n.description)==null?void 0:C.slice(0,155))||""}),c.jsx("meta",{property:"og:url",content:b}),v&&c.jsx("script",{type:"application/ld+json",children:v})]}),c.jsxs("section",{className:"course-header",style:n.cover_image_url?{backgroundImage:`url(${n.cover_image_url})`}:void 0,children:[c.jsx("div",{className:"course-header__scrim"}),c.jsxs("div",{className:"course-header__content container",children:[c.jsxs("div",{className:"course-header__badge",children:[n.level?n.level.toUpperCase():"CURSO"," · ",n.free?"GRATIS":"PAGO"]}),c.jsx("h1",{children:n.title}),p&&c.jsx("p",{className:"course-header__summary",children:p}),c.jsxs("div",{className:"course-header__meta",children:[c.jsxs("div",{className:"course-header__rating",children:[c.jsx("span",{className:"label",children:"Valoración EliteBrokers"}),c.jsxs("div",{className:"course-header__rating-value",children:[c.jsx(Ni,{score:h}),c.jsxs("strong",{children:[Number(h).toFixed(1),"/5"]})]})]}),n.video_url&&c.jsx("a",{href:n.video_url,target:"_blank",rel:"noopener noreferrer",onClick:()=>{Cs({event_type:"cta_click",entity_type:"course",entity_id:Number(e),metadata:{destination:n.video_url}})},className:"btn btn-lg course-header__cta",children:"Ver curso"})]}),!!d.length&&c.jsx("div",{className:"pill-group",children:d.map(j=>c.jsx("span",{className:"pill pill--glass",children:j},j))})]})]}),c.jsx("section",{className:"section",children:c.jsx("div",{className:"container",children:c.jsx("div",{className:"metrics-grid",children:y.map(j=>c.jsxs("article",{className:"metric-card metric-card--course",children:[j.icon&&c.jsx("span",{className:"metric-card__icon","aria-hidden":"true",children:j.icon}),c.jsxs("div",{className:"metric-card__content",children:[c.jsx("span",{className:"metric-label",children:j.label}),c.jsx("span",{className:"metric-value",children:j.value}),c.jsx("p",{children:j.description})]})]},j.label))})})}),c.jsx("section",{className:"section",children:c.jsxs("div",{className:"container course-info-grid",children:[c.jsxs("article",{className:"info-card",children:[c.jsx("h2",{children:"Qué aprenderás"}),g.length?c.jsx("div",{className:"course-body",children:g.map((j,E)=>c.jsx("p",{children:j},E))}):c.jsx("p",{children:"El autor del curso aún no añadió una descripción detallada."})]}),n.video_url&&c.jsxs("article",{className:"info-card course-preview",children:[c.jsx("h2",{children:"Vista previa"}),c.jsx("p",{children:"Explora el material antes de inscribirte."}),m?c.jsx("div",{className:"course-preview__embed",children:c.jsx("iframe",{src:n.video_url.replace("watch?v=","embed/"),title:n.title,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):c.jsx("a",{href:n.video_url,target:"_blank",rel:"noopener noreferrer",onClick:()=>{Cs({event_type:"cta_click",entity_type:"course",entity_id:Number(e),metadata:{destination:n.video_url,context:"external_preview"}})},className:"btn btn-outline",children:"Abrir recurso"})]})]})})]})},lj=()=>{const[e,t]=_.useState(""),[n,i]=_.useState(""),[a,s]=_.useState(null),{login:l,loading:r}=jn(),o=Bi(),u=async d=>{d.preventDefault(),s(null);try{await l(e,n),o("/")}catch(f){s(f.message)}};return c.jsxs("div",{className:"container section",style:{maxWidth:"400px",margin:"50px auto"},children:[c.jsx("h2",{className:"text-center",children:"Iniciar Sesión"}),c.jsxs("form",{onSubmit:u,className:"card",style:{padding:"30px"},children:[c.jsxs("div",{style:{marginBottom:"15px"},children:[c.jsx("label",{htmlFor:"email",style:{display:"block",marginBottom:"5px"},children:"Email:"}
66),c.jsx("input",{type:"email",id:"email",value:e,onChange:d=>t(d.target.value),required:!0,style:{width:"100%",padding:"10px",borderRadius:"5px",border:"1px solid var(--stroke)",background:"var(--panel)",color:"var(--text)"}})]}),c.jsxs("div",{style:{marginBottom:"20px"},children:[c.jsx("label",{htmlFor:"password",style:{display:"block",marginBottom:"5px"},children:"Contraseña:"}),c.jsx("input",{type:"password",id:"password",value:n,onChange:d=>i(d.target.value),required:!0,style:{width:"100%",padding:"10px",borderRadius:"5px",border:"1px solid var(--stroke)",background:"var(--panel)",color:"var(--text)"}})]}),a&&c.jsx("p",{style:{color:"red",marginBottom:"15px"},children:a}),c.jsx("button",{type:"submit",className:"btn btn-primary",disabled:r,style:{width:"100%"},children:r?"Cargando...":"Entrar"}),c.jsxs("p",{className:"text-center",style:{marginTop:"20px"},children:["¿No tienes cuenta? ",c.jsx(L,{to:"/register",style:{color:"var(--brand)"},children:"RegÃstrate aquÃ"})]})]})]})},rj=()=>{const[e,t]=_.useState(""),[n,i]=_.useState(""),[a,s]=_.useState(""),[l,r]=_.useState(null),{register:o,loading:u}=jn(),d=Bi(),f=async h=>{h.preventDefault(),r(null);try{await o(e,n,a),alert("Registro exitoso. Por favor, inicia sesión."),d("/login")}catch(m){r(m.message)}};return c.jsxs("div",{className:"container section",style:{maxWidth:"400px",margin:"50px auto"},children:[c.jsx("h2",{className:"text-center",children:"Registrarse"}),c.jsxs("form",{onSubmit:f,className:"card",style:{padding:"30px"},children:[c.jsxs("div",{style:{marginBottom:"15px"},children:[c.jsx("label",{htmlFor:"email",style:{display:"block",marginBottom:"5px"},children:"Email:"}),c.jsx("input",{type:"email",id:"email",value:e,onChange:h=>t(h.target.value),required:!0,style:{width:"100%",padding:"10px",borderRadius:"5px",border:"1px solid var(--stroke)",background:"var(--panel)",color:"var(--text)"}})]}),c.jsxs("div",{style:{marginBottom:"15px"},children:[c.jsx("label",{htmlFor:"password",style:{display:"block",marginBottom:"5px"},children:"Contraseña:"}),c.jsx("input",{type:"password",id:"password",value:n,onChange:h=>i(h.target.value),required:!0,style:{width:"100%",padding:"10px",borderRadius:"5px",border:"1px solid var(--stroke)",background:"var(--panel)",color:"var(--text)"}})]}),c.jsxs("div",{style:{marginBottom:"20px"},children:[c.jsx("label",{htmlFor:"displayName",style:{display:"block",marginBottom:"5px"},children:"Nombre a mostrar (opcional):"}),c.jsx("input",{type:"text",id:"displayName",value:a,onChange:h=>s(h.target.value),style:{width:"100%",padding:"10px",borderRadius:"5px",border:"1px solid var(--stroke)",background:"var(--panel)",color:"var(--text)"}})]}),l&&c.jsx("p",{style:{color:"red",marginBottom:"15px"},children:l}),c.jsx("button",{type:"submit",className:"btn btn-primary",disabled:u,style:{width:"100%"},children:u?"Cargando...":"Registrarse"}),c.jsxs("p",{className:"text-center",style:{marginTop:"20px"},children:["¿Ya tienes cuenta? ",c.jsx(L,{to:"/login",style:{color:"var(--brand)"},children:"Inicia sesión aquÃ"})]})]})]})};/*! 67 * @kurkle/color v0.3.4 68 * https://github.com/kurkle/color#readme 69 * (c) 2024 Jukka Kurkela 70 * Released under the MIT License 71 */function ml(e){return e+.5|0}const Hn=(e,t,n)=>Math.max(Math.min(e,n),t);function os(e){return Hn(ml(e*2.55),0,255)}function Kn(e){return Hn(ml(e*255),0,255)}function rn(e){return Hn(ml(e/2.55)/100,0,1)}function rm(e){return Hn(ml(e*100),0,100)}const dt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Uu=[..."0123456789ABCDEF"],oj=e=>Uu[e&15],cj=e=>Uu[(e&240)>>4]+Uu[e&15],Bl=e=>(e&240)>>4===(e&15),uj=e=>Bl(e.r)&&Bl(e.g)&&Bl(e.b)&&Bl(e.a);function dj(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&dt[e[1]]*17,g:255&dt[e[2]]*17,b:255&dt[e[3]]*17,a:t===5?dt[e[4]]*17:255}:(t===7||t===9)&&(n={r:dt[e[1]]<<4|dt[e[2]],g:dt[e[3]]<<4|dt[e[4]],b:dt[e[5]]<<4|dt[e[6]],a:t===9?dt[e[7]]<<4|dt[e[8]]:255})),n}const fj=(e,t)=>e<255?t(e):"";function hj(e){var t=uj(e)?oj:cj;return e?"#"+t(e.r)+t(e.g)+t(e.b)+fj(e.a,t):void 0}const mj=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ex(e,t,n){const i=t*Math.min(n,1-n),a=(s,l=(s+e/30)%12)=>n-i*Math.max(Math.min(l-3,9-l,1),-1);return[a(0),a(8),a(4)]}function pj(e,t,n){const i=(a,s=(a+e/60)%6)=>n-n*t*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function gj(e,t,n){const i=ex(e,1,.5);let a;for(t+n>1&&(a=1/(t+n),t*=a,n*=a),a=0;a<3;a++)i[a]*=1-t-n,i[a]+=t;return i}function yj(e,t,n,i,a){return e===a?(t-n)/i+(t<n?6:0):t===a?(n-e)/i+2:(e-t)/i+4}function of(e){const n=e.r/255,i=e.g/255,a=e.b/255,s=Math.max(n,i,a),l=Math.min(n,i,a),r=(s+l)/2;let o,u,d;return s!==l&&(d=s-l,u=r>.5?d/(2-s-l):d/(s+l),o=yj(n,i,a,d,s),o=o*60+.5),[o|0,u||0,r]}function cf(e,t,n,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,i)).map(Kn)}function uf(e,t,n){return cf(ex,e,t,n)}function bj(e,t,n){return cf(gj,e,t,n)}function xj(e,t,n){return cf(pj,e,t,n)}function tx(e){return(e%360+360)%360}function vj(e){const t=mj.exec(e);let n=255,i;if(!t)return;t[5]!==i&&(n=t[6]?os(+t[5]):Kn(+t[5]));const a=tx(+t[2]),s=+t[3]/100,l=+t[4]/100;return t[1]==="hwb"?i=bj(a,s,l):t[1]==="hsv"?i=xj(a,s,l):i=uf(a,s,l),{r:i[0],g:i[1],b:i[2],a:n}}function _j(e,t){var n=of(e);n[0]=tx(n[0]+t),n=uf(n),e.r=n[0],e.g=n[1],e.b=n[2]}function Sj(e){if(!e)return;const t=of(e),n=t[0],i=rm(t[1]),a=rm(t[2]);return e.a<255?`hsla(${n}, ${i}%, ${a}%, ${rn(e.a)})`:`hsl(${n}, ${i}%, ${a}%)`}const om={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},cm={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",K
vendor: 5,185 bytes, lines 71-76
71ocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function jj(){const e={},t=Object.keys(cm),n=Object.keys(om);let i,a,s,l,r;for(i=0;i<t.length;i++){for(l=r=t[i],a=0;a<n.length;a++)s=n[a],r=r.replace(s,om[s]);s=parseInt(cm[l],16),e[r]=[s>>16&255,s>>8&255,s&255]}return e}let Ll;function Tj(e){Ll||(Ll=jj(),Ll.transparent=[0,0,0,0]);const t=Ll[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const Ej=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Cj(e){const t=Ej.exec(e);let n=255,i,a,s;if(t){if(t[7]!==i){const l=+t[7];n=t[8]?os(l):Hn(l*255,0,255)}return i=+t[1],a=+t[3],s=+t[5],i=255&(t[2]?os(i):Hn(i,0,255)),a=255&(t[4]?os(a):Hn(a,0,255)),s=255&(t[6]?os(s):Hn(s,0,255)),{r:i,g:a,b:s,a:n}}}function wj(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${rn(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Tc=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,qi=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Aj(e,t,n){const i=qi(rn(e.r)),a=qi(rn(e.g)),s=qi(rn(e.b));return{r:Kn(Tc(i+n*(qi(rn(t.r))-i))),g:Kn(Tc(a+n*(qi(rn(t.g))-a))),b:Kn(Tc(s+n*(qi(rn(t.b))-s))),a:e.a+n*(t.a-e.a)}}function Hl(e,t,n){if(e){let i=of(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*n,t===0?360:1)),i=uf(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function nx(e,t){return e&&Object.assign(t||{},e)}function um(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Kn(e[3]))):(t=nx(e,{r:0,g:0,b:0,a:1}),t.a=Kn(t.a)),t}function Nj(e){return e.charAt(0)==="r"?Cj(e):vj(e)}class Qs{constructor(t){if(t instanceof Qs)return t;const n=typeof t;let i;n==="object"?i=um(t):n==="string"&&(i=dj(t)||Tj(t)||Nj(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=nx(this._rgb);return t&&(t.a=rn(t.a)),t}set rgb(t){this._rgb=um(t)}rgbString(){return this._valid?wj(this._rgb):void 0}hexString(){return this._valid?hj(this._rgb):void 0}hslString(){return this._valid?Sj(this._rgb):void 0}mix(t,n){if(t){const i=this.rgb,a=t.rgb;let s;const l=n===s?.5:n,r=2*l-1,o=i.a-a.a,u=((r*o===-1?r:(r+o)/(1+r*o))+1)/2;s=1-u,i.r=255&u*i.r+s*a.r+.5,i.g=255&u*i.g+s*a.g+.5,i.b=255&u*i.b+s*a.b+.5,i.a=l*i.a+(1-l)*a.a,this.rgb=i}return this}interpolate(t,n){return t&&(this._rgb=Aj(this._rgb,t._rgb,n)),this}clone(){return new Qs(this.rgb)}alpha(t){return this._rgb.a=Kn(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=ml(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Hl(this._rgb,2,t),this}darken(t){return Hl(this._rgb,2,-t),this}saturate(t){return Hl(this._rgb,1,t),this}desaturate(t){return Hl(this._rgb,1,-t),this}rotate(t){return _j(this._rgb,t),this}}/*! 72 * Chart.js v4.5.1 73 * https://www.chartjs.org 74 * (c) 2025 Chart.js Contributors 75 * Released under the MIT License 76 */function tn(){}const Mj=(()=>{let e=0;return()=>e++})();function le(e){return e==null}function we(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);
vendor: 4,268 bytes, line 76
76return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function K(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Ve(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Ut(e,t){return Ve(e)?e:t}function Q(e,t){return typeof e>"u"?t:e}const Dj=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function ce(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function ee(e,t,n,i){let a,s,l;if(we(e))for(s=e.length,a=0;a<s;a++)t.call(n,e[a],a);else if(K(e))for(l=Object.keys(e),s=l.length,a=0;a<s;a++)t.call(n,e[l[a]],l[a])}function Kr(e,t){let n,i,a,s;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(a=e[n],s=t[n],a.datasetIndex!==s.datasetIndex||a.index!==s.index)return!1;return!0}function Wr(e){if(we(e))return e.map(Wr);if(K(e)){const t=Object.create(null),n=Object.keys(e),i=n.length;let a=0;for(;a<i;++a)t[n[a]]=Wr(e[n[a]]);return t}return e}function ix(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function Oj(e,t,n,i){if(!ix(e))return;const a=t[e],s=n[e];K(a)&&K(s)?Zs(a,s,i):t[e]=Wr(s)}function Zs(e,t,n){const i=we(t)?t:[t],a=i.length;if(!K(e))return e;n=n||{};const s=n.merger||Oj;let l;for(let r=0;r<a;++r){if(l=i[r],!K(l))continue;const o=Object.keys(l);for(let u=0,d=o.length;u<d;++u)s(o[u],e,l,n)}return e}function ws(e,t){return Zs(e,t,{merger:zj})}function zj(e,t,n){if(!ix(e))return;const i=t[e],a=n[e];K(i)&&K(a)?ws(i,a):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Wr(a))}const dm={"":e=>e,x:e=>e.x,y:e=>e.y};function kj(e){const t=e.split("."),n=[];let i="";for(const a of t)i+=a,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function Rj(e){const t=kj(e);return n=>{for(const i of t){if(i==="")break;n=n&&n[i]}return n}}function Jr(e,t){return(dm[t]||(dm[t]=Rj(t)))(e)}function df(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Ir=e=>typeof e<"u",ti=e=>typeof e=="function",fm=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function Bj(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Oe=Math.PI,zt=2*Oe,Lj=zt+Oe,eo=Number.POSITIVE_INFINITY,Hj=Oe/180,Ot=Oe/2,li=Oe/4,hm=Oe*2/3,ax=Math.log10,wa=Math.sign;function As(e,t,n){return Math.abs(e-t)<n}function mm(e){const t=Math.round(e);e=As(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(ax(e))),i=e/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function Uj(e){const t=[],n=Math.sqrt(e);let i;for(i=1;i<n;i++)e%i===0&&(t.push(i),t.push(e/i));return n===(n|0)&&t.push(n),t.sort((a,s)=>a-s).pop(),t}function Vj(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function Ks(e){return!Vj(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function Yj(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function qj(e,t,n){let i,a,s;for(i=0,a=e.length;i<a;i++)s=e[i][n],isNaN(s)||(t.min=Math.min(t.min,s),t.max=Math.max(t.max,s))}function pi(e){return e*(Oe/180)}function Fj(e){return e*(180/Oe)}function pm(e){if(!Ve(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Xj(e,t){const n=t.x-e.x,i=t.y-e.y,a=Math.sqrt(n*n+i*i);let s=Math.atan2(i,n);return s<-.5*Oe&&(s+=zt),{angle:s,distance:a}}function Vu(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Gj(e,t){return(e-t+Lj)%zt-Oe}function qt(e){return(e%zt+zt)%zt}function sx(e,t,n,i){const a=qt(e),s=qt(t),l=qt(n),r=qt(s-a),o=qt(l-a),u=qt(a-s),d=qt(a-l);return a===s||a===l||i&&s===l||r>o&&u<d}function vt(e,t,n){return Math.max(t,Math.min(n,e))}function Pj(e){return vt(e,-32768,32767)}function aa(e,t,n,i=1e-6){return e>=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function ff(e,t,n){n=n||(l=>e[l]<t);let i=e.length-1,a=0,s;for(;i-a>1;)s=a+i>>1,n(s)?a=s:i=s;return{lo:a,hi:i}}const gi=(e,t,n,i)=>ff(e,n,i?a=>{const s=e[a][t];return s<n||s===n&&e[a+1][t]===n}:a=>e[a][t]<n),$j=(e,t,n)=>ff(e,n,i=>e[i][t]>=n);function Qj(e,t,n){let i=0,a=e.length;for(;i<a&&e[i]<t;)i++;for(;a>i&&e[a-1]>n;)a--;return i>0||a<e.length?e.slice(i,a):e}const lx=["push","pop","shift","splice","unshift"];function Zj(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),lx.forEach(n=>
vendor: 4,666 bytes, line 76
76{const i="_onData"+df(n),a=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...s){const l=a.apply(this,s);return e._chartjs.listeners.forEach(r=>{typeof r[i]=="function"&&r[i](...s)}),l}})})}function gm(e,t){const n=e._chartjs;if(!n)return;const i=n.listeners,a=i.indexOf(t);a!==-1&&i.splice(a,1),!(i.length>0)&&(lx.forEach(s=>{delete e[s]}),delete e._chartjs)}function Kj(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const rx=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function ox(e,t){let n=[],i=!1;return function(...a){n=a,i||(i=!0,rx.call(window,()=>{i=!1,e.apply(t,n)}))}}function Wj(e,t){let n;return function(...i){return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}const hf=e=>e==="start"?"left":e==="end"?"right":"center",He=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,Jj=(e,t,n,i)=>e===(i?"left":"right")?n:e==="center"?(t+n)/2:t;function Ij(e,t,n){const i=t.length;let a=0,s=i;if(e._sorted){const{iScale:l,vScale:r,_parsed:o}=e,u=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,d=l.axis,{min:f,max:h,minDefined:m,maxDefined:y}=l.getUserBounds();if(m){if(a=Math.min(gi(o,d,f).lo,n?i:gi(t,d,l.getPixelForValue(f)).lo),u){const b=o.slice(0,a+1).reverse().findIndex(v=>!le(v[r.axis]));a-=Math.max(0,b)}a=vt(a,0,i-1)}if(y){let b=Math.max(gi(o,l.axis,h,!0).hi+1,n?0:gi(t,d,l.getPixelForValue(h),!0).hi+1);if(u){const v=o.slice(b-1).findIndex(p=>!le(p[r.axis]));b+=Math.max(0,v)}s=vt(b,a,i)-a}else s=i-a}return{start:a,count:s}}function e2(e){const{xScale:t,yScale:n,_scaleRanges:i}=e,a={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!i)return e._scaleRanges=a,!0;const s=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,a),s}const Ul=e=>e===0||e===1,ym=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*zt/n)),bm=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*zt/n)+1,Ns={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Ot)+1,easeOutSine:e=>Math.sin(e*Ot),easeInOutSine:e=>-.5*(Math.cos(Oe*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Ul(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Ul(e)?e:ym(e,.075,.3),easeOutElastic:e=>Ul(e)?e:bm(e,.075,.3),easeInOutElastic(e){return Ul(e)?e:e<.5?.5*ym(e*2,.1125,.45):.5+.5*bm(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Ns.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Ns.easeInBounce(e*2)*.5:Ns.easeOutBounce(e*2-1)*.5+.5};function mf(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function xm(e){return mf(e)?e:new Qs(e)}function Ec(e){return mf(e)?e:new Qs(e).saturate(.5).darken(.1).hexString()}const t2=["x","y","borderWidth","radius","tension"],n2=["color","borderColor","backgroundColor"];function i2(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:n2},numbers:{type:"number",properties:t2}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function a2(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const vm=new Map;function s2(e,t){t=t||{};const n=e+JSON.stringify(t);let i=vm.get(n);
vendor: 41,530 bytes, lines 76-81
76return i||(i=new Intl.NumberFormat(e,t),vm.set(n,i)),i}function cx(e,t,n){return s2(t,n).format(e)}const l2={values(e){return we(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const i=this.chart.options.locale;let a,s=e;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(a="scientific"),s=r2(e,n)}const l=ax(Math.abs(s)),r=isNaN(l)?1:Math.max(Math.min(-1*Math.floor(l),20),0),o={notation:a,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(o,this.options.ticks.format),cx(e,i,o)}};function r2(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var ux={formatters:l2};function o2(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ux.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Mi=Object.create(null),Yu=Object.create(null);function Ms(e,t){if(!t)return e;const n=t.split(".");for(let i=0,a=n.length;i<a;++i){const s=n[i];e=e[s]||(e[s]=Object.create(null))}return e}function Cc(e,t,n){return typeof t=="string"?Zs(Ms(e,t),n):Zs(Ms(e,""),t)}class c2{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,a)=>Ec(a.backgroundColor),this.hoverBorderColor=(i,a)=>Ec(a.borderColor),this.hoverColor=(i,a)=>Ec(a.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Cc(this,t,n)}get(t){return Ms(this,t)}describe(t,n){return Cc(Yu,t,n)}override(t,n){return Cc(Mi,t,n)}route(t,n,i,a){const s=Ms(this,t),l=Ms(this,i),r="_"+n;Object.defineProperties(s,{[r]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const o=this[r],u=l[a];return K(o)?Object.assign({},u,o):Q(o,u)},set(o){this[r]=o}}})}apply(t){t.forEach(n=>n(this))}}var xe=new c2({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[i2,a2,o2]);function u2(e){return!e||le(e.size)||le(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function _m(e,t,n,i,a){let s=t[a];return s||(s=t[a]=e.measureText(a).width,n.push(a)),s>i&&(i=s),i}function ri(e,t,n){const i=e.currentDevicePixelRatio,a=n!==0?Math.max(n/2,.5):0;return Math.round((t-a)*i)/i+a}function Sm(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function qu(e,t,n,i){dx(e,t,n,i,null)}function dx(e,t,n,i,a){let s,l,r,o,u,d,f,h;const m=t.pointStyle,y=t.rotation,b=t.radius;let v=(y||0)*Hj;if(m&&typeof m=="object"&&(s=m.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){e.save(),e.translate(n,i),e.rotate(v),e.drawImage(m,-m.width/2,-m.height/2,m.width,m.height),e.restore();return}if(!(isNaN(b)||b<=0)){switch(e.beginPath(),m){default:a?e.ellipse(n,i,a/2,b,0,0,zt):e.arc(n,i,b,0,zt),e.closePath();break;case"triangle":d=a?a/2:b,e.moveTo(n+Math.sin(v)*d,i-Math.cos(v)*b),v+=hm,e.lineTo(n+Math.sin(v)*d,i-Math.cos(v)*b),v+=hm,e.lineTo(n+Math.sin(v)*d,i-Math.cos(v)*b),e.closePath();break;case"rectRounded":u=b*.516,o=b-u,l=Math.cos(v+li)*o,f=Math.cos(v+li)*(a?a/2-u:o),r=Math.sin(v+li)*o,h=Math.sin(v+li)*(a?a/2-u:o),e.arc(n-f,i-r,u,v-Oe,v-Ot),e.arc(n+h,i-l,u,v-Ot,v),e.arc(n+f,i+r,u,v,v+Ot),e.arc(n-h,i+l,u,v+Ot,v+Oe),e.closePath();break;case"rect":if(!y){o=Math.SQRT1_2*b,d=a?a/2:o,e.rect(n-d,i-o,2*d,2*o);break}v+=li;case"rectRot":f=Math.cos(v)*(a?a/2:b),l=Math.cos(v)*b,r=Math.sin(v)*b,h=Math.sin(v)*(a?a/2:b),e.moveTo(n-f,i-r),e.lineTo(n+h,i-l),e.lineTo(n+f,i+r),e.lineTo(n-h,i+l),e.closePath();break;case"crossRot":v+=li;case"cross":f=Math.cos(v)*(a?a/2:b),l=Math.cos(v)*b,r=Math.sin(v)*b,h=Math.sin(v)*(a?a/2:b),e.moveTo(n-f,i-r),e.lineTo(n+f,i+r),e.moveTo(n+h,i-l),e.lineTo(n-h,i+l);break;case"star":f=Math.cos(v)*(a?a/2:b),l=Math.cos(v)*b,r=Math.sin(v)*b,h=Math.sin(v)*(a?a/2:b),e.moveTo(n-f,i-r),e.lineTo(n+f,i+r),e.moveTo(n+h,i-l),e.lineTo(n-h,i+l),v+=li,f=Math.cos(v)*(a?a/2:b),l=Math.cos(v)*b,r=Math.sin(v)*b,h=Math.sin(v)*(a?a/2:b),e.moveTo(n-f,i-r),e.lineTo(n+f,i+r),e.moveTo(n+h,i-l),e.lineTo(n-h,i+l);break;case"line":l=a?a/2:Math.cos(v)*b,r=Math.sin(v)*b,e.moveTo(n-l,i-r),e.lineTo(n+l,i+r);break;case"dash":e.moveTo(n,i),e.lineTo(n+Math.cos(v)*(a?a/2:b),i+Math.sin(v)*b);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Ws(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function No(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Mo(e){e.restore()}function d2(e,t,n,i,a){if(!t)return e.lineTo(n.x,n.y);if(a==="middle"){const s=(t.x+n.x)/2;e.lineTo(s,t.y),e.lineTo(s,n.y)}else a==="after"!=!!i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function f2(e,t,n,i){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function h2(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),le(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function m2(e,t,n,i,a){if(a.strikethrough||a.underline){const s=e.measureText(i),l=t-s.actualBoundingBoxLeft,r=t+s.actualBoundingBoxRight,o=n-s.actualBoundingBoxAscent,u=n+s.actualBoundingBoxDescent,d=a.strikethrough?(o+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=a.decorationWidth||2,e.moveTo(l,d),e.lineTo(r,d),e.stroke()}}function p2(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Js(e,t,n,i,a,s={}){const l=we(t)?t:[t],r=s.strokeWidth>0&&s.strokeColor!=="";let o,u;for(e.save(),e.font=a.string,h2(e,s),o=0;o<l.length;++o)u=l[o],s.backdrop&&p2(e,s.backdrop),r&&(s.strokeColor&&(e.strokeStyle=s.strokeColor),le(s.strokeWidth)||(e.lineWidth=s.strokeWidth),e.strokeText(u,n,i,s.maxWidth)),e.fillText(u,n,i,s.maxWidth),m2(e,n,i,u,s),i+=Number(a.lineHeight);e.restore()}function Fu(e,t){const{x:n,y:i,w:a,h:s,radius:l}=t;e.arc(n+l.topLeft,i+l.topLeft,l.topLeft,1.5*Oe,Oe,!0),e.lineTo(n,i+s-l.bottomLeft),e.arc(n+l.bottomLeft,i+s-l.bottomLeft,l.bottomLeft,Oe,Ot,!0),e.lineTo(n+a-l.bottomRight,i+s),e.arc(n+a-l.bottomRight,i+s-l.bottomRight,l.bottomRight,Ot,0,!0),e.lineTo(n+a,i+l.topRight),e.arc(n+a-l.topRight,i+l.topRight,l.topRight,0,-Ot,!0),e.lineTo(n+l.topLeft,i)}const g2=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,y2=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function b2(e,t){const n=(""+e).match(g2);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const x2=e=>+e||0;function fx(e,t){const n={},i=K(t),a=i?Object.keys(t):t,s=K(e)?i?l=>Q(e[l],e[t[l]]):l=>e[l]:()=>e;for(const l of a)n[l]=x2(s(l));return n}function v2(e){return fx(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Ds(e){return fx(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Ct(e){const t=v2(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Ue(e,t){e=e||{},t=t||xe.font;let n=Q(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let i=Q(e.style,t.style);i&&!(""+i).match(y2)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const a={family:Q(e.family,t.family),lineHeight:b2(Q(e.lineHeight,t.lineHeight),n),size:n,style:i,weight:Q(e.weight,t.weight),string:""};return a.string=u2(a),a}function Vl(e,t,n,i){let a,s,l;for(a=0,s=e.length;a<s;++a)if(l=e[a],l!==void 0&&l!==void 0)return l}function _2(e,t,n){const{min:i,max:a}=e,s=Dj(t,(a-i)/2),l=(r,o)=>n&&r===0?0:r+o;return{min:l(i,-Math.abs(s)),max:l(a,s)}}function Li(e,t){return Object.assign(Object.create(e),t)}function pf(e,t=[""],n,i,a=()=>e[0]){const s=n||e;typeof i>"u"&&(i=gx("_fallback",e));const l={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:s,_fallback:i,_getTarget:a,override:r=>pf([r,...e],t,s,i)};return new Proxy(l,{deleteProperty(r,o){return delete r[o],delete r._keys,delete e[0][o],!0},get(r,o){return mx(r,o,()=>N2(o,t,e,r))},getOwnPropertyDescriptor(r,o){return Reflect.getOwnPropertyDescriptor(r._scopes[0],o)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(r,o){return Tm(r).includes(o)},ownKeys(r){return Tm(r)},set(r,o,u){const d=r._storage||(r._storage=a());return r[o]=d[o]=u,delete r._keys,!0}})}function Aa(e,t,n,i){const a={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:hx(e,i),setContext:s=>Aa(e,s,n,i),override:s=>Aa(e.override(s),t,n,i)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete e[l],!0},get(s,l,r){return mx(s,l,()=>j2(s,l,r))},getOwnPropertyDescriptor(s,l){return s._descriptors.allKeys?Reflect.has(e,l)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,l)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(s,l){return Reflect.has(e,l)},ownKeys(){return Reflect.ownKeys(e)},set(s,l,r){return e[l]=r,delete s[l],!0}})}function hx(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:i=t.indexable,_allKeys:a=t.allKeys}=e;return{allKeys:a,scriptable:n,indexable:i,isScriptable:ti(n)?n:()=>n,isIndexable:ti(i)?i:()=>i}}const S2=(e,t)=>e?e+df(t):t,gf=(e,t)=>K(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function mx(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const i=n();return e[t]=i,i}function j2(e,t,n){const{_proxy:i,_context:a,_subProxy:s,_descriptors:l}=e;let r=i[t];return ti(r)&&l.isScriptable(t)&&(r=T2(t,r,e,n)),we(r)&&r.length&&(r=E2(t,r,e,l.isIndexable)),gf(t,r)&&(r=Aa(r,a,s&&s[t],l)),r}function T2(e,t,n,i){const{_proxy:a,_context:s,_subProxy:l,_stack:r}=n;if(r.has(e))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+e);r.add(e);let o=t(s,l||i);return r.delete(e),gf(e,o)&&(o=yf(a._scopes,a,e,o)),o}function E2(e,t,n,i){const{_proxy:a,_context:s,_subProxy:l,_descriptors:r}=n;if(typeof s.index<"u"&&i(e))return t[s.index%t.length];if(K(t[0])){const o=t,u=a._scopes.filter(d=>d!==o);t=[];for(const d of o){const f=yf(u,a,e,d);t.push(Aa(f,s,l&&l[e],r))}}return t}function px(e,t,n){return ti(e)?e(t,n):e}const C2=(e,t)=>e===!0?t:typeof e=="string"?Jr(t,e):void 0;function w2(e,t,n,i,a){for(const s of t){const l=C2(n,s);if(l){e.add(l);const r=px(l._fallback,n,a);if(typeof r<"u"&&r!==n&&r!==i)return r}else if(l===!1&&typeof i<"u"&&n!==i)return null}return!1}function yf(e,t,n,i){const a=t._rootScopes,s=px(t._fallback,n,i),l=[...e,...a],r=new Set;r.add(i);let o=jm(r,l,n,s||n,i);return o===null||typeof s<"u"&&s!==n&&(o=jm(r,l,s,o,i),o===null)?!1:pf(Array.from(r),[""],a,s,()=>A2(t,n,i))}function jm(e,t,n,i,a){for(;n;)n=w2(e,t,n,i,a);return n}function A2(e,t,n){const i=e._getTarget();t in i||(i[t]={});const a=i[t];return we(a)&&K(n)?n:a||{}}function N2(e,t,n,i){let a;for(const s of t)if(a=gx(S2(s,e),n),typeof a<"u")return gf(e,a)?yf(n,i,e,a):a}function gx(e,t){for(const n of t){if(!n)continue;const i=n[e];if(typeof i<"u")return i}}function Tm(e){let t=e._keys;return t||(t=e._keys=M2(e._scopes)),t}function M2(e){const t=new Set;for(const n of e)for(const i of Object.keys(n).filter(a=>!a.startsWith("_")))t.add(i);return Array.from(t)}const D2=Number.EPSILON||1e-14,Na=(e,t)=>t<e.length&&!e[t].skip&&e[t],yx=e=>e==="x"?"y":"x";function O2(e,t,n,i){const a=e.skip?t:e,s=t,l=n.skip?t:n,r=Vu(s,a),o=Vu(l,s);let u=r/(r+o),d=o/(r+o);u=isNaN(u)?0:u,d=isNaN(d)?0:d;const f=i*u,h=i*d;return{previous:{x:s.x-f*(l.x-a.x),y:s.y-f*(l.y-a.y)},next:{x:s.x+h*(l.x-a.x),y:s.y+h*(l.y-a.y)}}}function z2(e,t,n){const i=e.length;let a,s,l,r,o,u=Na(e,0);for(let d=0;d<i-1;++d)if(o=u,u=Na(e,d+1),!(!o||!u)){if(As(t[d],0,D2)){n[d]=n[d+1]=0;continue}a=n[d]/t[d],s=n[d+1]/t[d],r=Math.pow(a,2)+Math.pow(s,2),!(r<=9)&&(l=3/Math.sqrt(r),n[d]=a*l*t[d],n[d+1]=s*l*t[d])}}function k2(e,t,n="x"){const i=yx(n),a=e.length;let s,l,r,o=Na(e,0);for(let u=0;u<a;++u){if(l=r,r=o,o=Na(e,u+1),!r)continue;const d=r[n],f=r[i];l&&(s=(d-l[n])/3,r[`cp1${n}`]=d-s,r[`cp1${i}`]=f-s*t[u]),o&&(s=(o[n]-d)/3,r[`cp2${n}`]=d+s,r[`cp2${i}`]=f+s*t[u])}}function R2(e,t="x"){const n=yx(t),i=e.length,a=Array(i).fill(0),s=Array(i);let l,r,o,u=Na(e,0);for(l=0;l<i;++l)if(r=o,o=u,u=Na(e,l+1),!!o){if(u){const d=u[t]-o[t];a[l]=d!==0?(u[n]-o[n])/d:0}s[l]=r?u?wa(a[l-1])!==wa(a[l])?0:(a[l-1]+a[l])/2:a[l-1]:a[l]}z2(e,a,s),k2(e,s,t)}function Yl(e,t,n){return Math.max(Math.min(e,n),t)}function B2(e,t){let n,i,a,s,l,r=Ws(e[0],t);for(n=0,i=e.length;n<i;++n)l=s,s=r,r=n<i-1&&Ws(e[n+1],t),s&&(a=e[n],l&&(a.cp1x=Yl(a.cp1x,t.left,t.right),a.cp1y=Yl(a.cp1y,t.top,t.bottom)),r&&(a.cp2x=Yl(a.cp2x,t.left,t.right),a.cp2y=Yl(a.cp2y,t.top,t.bottom)))}function L2(e,t,n,i,a){let s,l,r,o;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")R2(e,a);else{let u=i?e[e.length-1]:e[0];for(s=0,l=e.length;s<l;++s)r=e[s],o=O2(u,r,e[Math.min(s+1,l-(i?0:1))%l],t.tension),r.cp1x=o.previous.x,r.cp1y=o.previous.y,r.cp2x=o.next.x,r.cp2y=o.next.y,u=r}t.capBezierPoints&&B2(e,n)}function bf(){return typeof window<"u"&&typeof document<"u"}function xf(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function to(e,t,n){let i;return typeof e=="string"?(i=parseInt(e,10),e.indexOf("%")!==-1&&(i=i/100*t.parentNode[n])):i=e,i}const Do=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function H2(e,t){return Do(e).getPropertyValue(t)}const U2=["top","right","bottom","left"];function ji(e,t,n){const i={};n=n?"-"+n:"";for(let a=0;a<4;a++){const s=U2[a];i[s]=parseFloat(e[t+"-"+s+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const V2=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Y2(e,t){const n=e.touches,i=n&&n.length?n[0]:e,{offsetX:a,offsetY:s}=i;let l=!1,r,o;if(V2(a,s,e.target))r=a,o=s;else{const u=t.getBoundingClientRect();r=i.clientX-u.left,o=i.clientY-u.top,l=!0}return{x:r,y:o,box:l}}function hi(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:i}=t,a=Do(n),s=a.boxSizing==="border-box",l=ji(a,"padding"),r=ji(a,"border","width"),{x:o,y:u,box:d}=Y2(e,n),f=l.left+(d&&r.left),h=l.top+(d&&r.top);let{width:m,height:y}=t;return s&&(m-=l.width+r.width,y-=l.height+r.height),{x:Math.round((o-f)/m*n.width/i),y:Math.round((u-h)/y*n.height/i)}}function q2(e,t,n){let i,a;if(t===void 0||n===void 0){const s=e&&xf(e);if(!s)t=e.clientWidth,n=e.clientHeight;else{const l=s.getBoundingClientRect(),r=Do(s),o=ji(r,"border","width"),u=ji(r,"padding");t=l.width-u.width-o.width,n=l.height-u.height-o.height,i=to(r.maxWidth,s,"clientWidth"),a=to(r.maxHeight,s,"clientHeight")}}return{width:t,height:n,maxWidth:i||eo,maxHeight:a||eo}}const Un=e=>Math.round(e*10)/10;function F2(e,t,n,i){const a=Do(e),s=ji(a,"margin"),l=to(a.maxWidth,e,"clientWidth")||eo,r=to(a.maxHeight,e,"clientHeight")||eo,o=q2(e,t,n);let{width:u,height:d}=o;if(a.boxSizing==="content-box"){const h=ji(a,"border","width"),m=ji(a,"padding");u-=m.width+h.width,d-=m.height+h.height}return u=Math.max(0,u-s.width),d=Math.max(0,i?u/i:d-s.height),u=Un(Math.min(u,l,o.maxWidth)),d=Un(Math.min(d,r,o.maxHeight)),u&&!d&&(d=Un(u/2)),(t!==void 0||n!==void 0)&&i&&o.height&&d>o.height&&(d=o.height,u=Un(Math.floor(d*i))),{width:u,height:d}}function Em(e,t,n){const i=t||1,a=Un(e.height*i),s=Un(e.width*i);e.height=Un(e.height),e.width=Un(e.width);const l=e.canvas;return l.style&&(n||!l.style.height&&!l.style.width)&&(l.style.height=`${e.height}px`,l.style.width=`${e.width}px`),e.currentDevicePixelRatio!==i||l.height!==a||l.width!==s?(e.currentDevicePixelRatio=i,l.height=a,l.width=s,e.ctx.setTransform(i,0,0,i,0,0),!0):!1}const X2=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};bf()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Cm(e,t){const n=H2(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function mi(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function G2(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:i==="middle"?n<.5?e.y:t.y:i==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function P2(e,t,n,i){const a={x:e.cp2x,y:e.cp2y},s={x:t.cp1x,y:t.cp1y},l=mi(e,a,n),r=mi(a,s,n),o=mi(s,t,n),u=mi(l,r,n),d=mi(r,o,n);return mi(u,d,n)}const $2=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},Q2=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function pa(e,t,n){return e?$2(t,n):Q2()}function bx(e,t){let n,i;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)}function xx(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function vx(e){return e==="angle"?{between:sx,compare:Gj,normalize:qt}:{between:aa,compare:(t,n)=>t-n,normalize:t=>t}}function wm({start:e,end:t,count:n,loop:i,style:a}){return{start:e%n,end:t%n,loop:i&&(t-e+1)%n===0,style:a}}function Z2(e,t,n){const{property:i,start:a,end:s}=n,{between:l,normalize:r}=vx(i),o=t.length;let{start:u,end:d,loop:f}=e,h,m;if(f){for(u+=o,d+=o,h=0,m=o;h<m&&l(r(t[u%o][i]),a,s);++h)u--,d--;u%=o,d%=o}return d<u&&(d+=o),{start:u,end:d,loop:f,style:e.style}}function _x(e,t,n){if(!n)return[e];const{property:i,start:a,end:s}=n,l=t.length,{compare:r,between:o,normalize:u}=vx(i),{start:d,end:f,loop:h,style:m}=Z2(e,t,n),y=[];let b=!1,v=null,p,g,x;const T=()=>o(a,x,p)&&r(a,x)!==0,S=()=>r(s,p)===0||o(s,x,p),C=()=>b||T(),j=()=>!b||S();for(let E=d,N=d;E<=f;++E)g=t[E%l],!g.skip&&(p=u(g[i]),p!==x&&(b=o(p,a,s),v===null&&C()&&(v=r(p,a)===0?E:N),v!==null&&j()&&(y.push(wm({start:v,end:E,loop:h,count:l,style:m})),v=null),N=E,x=p));return v!==null&&y.push(wm({start:v,end:f,loop:h,count:l,style:m})),y}function Sx(e,t){const n=[],i=e.segments;for(let a=0;a<i.length;a++){const s=_x(i[a],e.points,t);s.length&&n.push(...s)}return n}function K2(e,t,n,i){let a=0,s=t-1;if(n&&!i)for(;a<t&&!e[a].skip;)a++;for(;a<t&&e[a].skip;)a++;for(a%=t,n&&(s+=a);s>a&&e[s%t].skip;)s--;return s%=t,{start:a,end:s}}function W2(e,t,n,i){const a=e.length,s=[];let l=t,r=e[t],o;for(o=t+1;o<=n;++o){const u=e[o%a];u.skip||u.stop?r.skip||(i=!1,s.push({start:t%a,end:(o-1)%a,loop:i}),t=l=u.stop?o:null):(l=o,r.skip&&(t=o)),r=u}return l!==null&&s.push({start:t%a,end:l%a,loop:i}),s}function J2(e,t){const n=e.points,i=e.options.spanGaps,a=n.length;if(!a)return[];const s=!!e._loop,{start:l,end:r}=K2(n,a,s,i);if(i===!0)return Am(e,[{start:l,end:r,loop:s}],n,t);const o=r<l?r+a:r,u=!!e._fullLoop&&l===0&&r===a-1;return Am(e,W2(n,l,o,u),n,t)}function Am(e,t,n,i){return!i||!i.setContext||!n?t:I2(e,t,n,i)}function I2(e,t,n,i){const a=e._chart.getContext(),s=Nm(e.options),{_datasetIndex:l,options:{spanGaps:r}}=e,o=n.length,u=[];let d=s,f=t[0].start,h=f;function m(y,b,v,p){const g=r?-1:1;if(y!==b){for(y+=o;n[y%o].skip;)y-=g;for(;n[b%o].skip;)b+=g;y%o!==b%o&&(u.push({start:y%o,end:b%o,loop:v,style:p}),d=p,f=b%o)}}for(const y of t){f=r?f:y.start;let b=n[f%o],v;for(h=f+1;h<=y.end;h++){const p=n[h%o];v=Nm(i.setContext(Li(a,{type:"segment",p0:b,p1:p,p0DataIndex:(h-1)%o,p1DataIndex:h%o,datasetIndex:l}))),eT(v,d)&&m(f,h-1,y.loop,d),b=p,d=v}f<h-1&&m(f,h-1,y.loop,d)}return u}function Nm(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function eT(e,t){if(!t)return!1;const n=[],i=function(a,s){return mf(s)?(n.includes(s)||n.push(s),n.indexOf(s)):s};return JSON.stringify(e,i)!==JSON.stringify(t,i)}function ql(e,t,n){return e.options.clip?e[n]:t[n]}function tT(e,t){const{xScale:n,yScale:i}=e;return n&&i?{left:ql(n,t,"left"),right:ql(n,t,"right"),top:ql(i,t,"top"),bottom:ql(i,t,"bottom")}:t}function jx(e,t){const n=t._clip;if(n.disabled)return!1;const i=tT(t,e.chartArea);return{left:n.left===!1?0:i.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:i.right+(n.right===!0?0:n.right),top:n.top===!1?0:i.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:i.bottom+(n.bottom===!0?0:n.bottom)}}/*! 77 * Chart.js v4.5.1 78 * https://www.chartjs.org 79 * (c) 2025 Chart.js Contributors 80 * Released under the MIT License 81 */class nT{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,i,a){const s=n.listeners[a],l=n.duration;s.forEach(r=>r({chart:t,initial:n.initial,numSteps:l,currentStep:Math.min(i-n.start,l)}))}_refresh(){this._request||(this._running=!0,this._request=rx.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((i,a)=>{if(!i.running||!i.items.length)return;const s=i.items;let l=s.length-1,r=!1,o;for(;l>=0;--l)o=s[l],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),r=!0):(s[l]=s[s.length-1],s.pop());r&&(a.draw(),this._notify(a,i,t,"progress")),s.length||(i.running=!1,this._notify(a,i,t,"complete"),i.initial=!1),n+=s.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let i=n.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,i)),i}listen(t,n,i){this._getAnims(t).listeners[n].push(i)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,a)=>Math.max(i,a._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const i=n.items;let a=i.length-1;for(;a>=0;--a)i[a].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var an=new nT;const Mm="transparent",iT={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const i=xm(e||Mm),a=i.valid&&xm(t||Mm);return a&&a.valid?a.mix(i,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class aT{constructor(t,n,i,a){const s=n[i];a=Vl([t.to,a,s,t.from]);const l=Vl([t.from,s,a]);this._active=!0,this._fn=t.fn||iT[t.type||typeof l],this._easing=Ns[t.easing]||Ns.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=i,this._from=l,this._to=a,this._promises=void 0}active(){return this._active}update(t,n,i){if(this._active){this._notify(!1);const a=this._target[this._prop],s=i-this._start,l=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(l,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=Vl([t.to,n,a,t.from]),this._from=Vl([t.from,a,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,i=this._duration,a=this._prop,s=this._from,l=this._loop,r=this._to;let o;if(this._active=s!==r&&(l||n<i),!this._active){this._target[a]=r,this._notify(!0);return}if(n<0){this._target[a]=s;return}o=n/i%2,o=l&&o>1?2-o:o,o=this._easing(Math.min(1,Math.max(0,o))),this._target[a]=this._fn(s,r,o)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,i)=>{t.push({res:n,rej:i})})}_notify(t){const n=t?"res":"rej",i=this._promises||[];for(let a=0;a<i.length;a++)i[a][n]()}}class Tx{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!K(t))return;const n=Object.keys(xe.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(a=>{const s=t[a];if(!K(s))return;const l={};for(const r of n)l[r]=s[r];(we(s.properties)&&s.properties||[a]).forEach(r=>{(r===a||!i.has(r))&&i.set(r,l)})})}_animateOptions(t,n){const i=n.options,a=lT(t,i);if(!a)return[];const s=this._createAnimations(a,i);return i.$shared&&sT(t.options.$animations,i).then(()=>{t.options=i},()=>{}),s}_createAnimations(t,n){const i=this._properties,a=[],s=t.$animations||(t.$animations={}),l=Object.keys(n),r=Date.now();let o;for(o=l.length-1;o>=0;--o){const u=l[o];if(u.charAt(0)==="$")continue;if(u==="options"){a.push(...this._animateOptions(t,n));continue}const d=n[u];let f=s[u];const h=i.get(u);if(f)if(h&&f.active()){f.update(h,d,r);continue}else f.cancel();if(!h||!h.duration){t[u]=d;continue}s[u]=f=new aT(h,t,u,d),a.push(f)}return a}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const i=this._createAnimations(t,n);if(i.length)return an.add(this._chart,i),!0}}function sT(e,t){const n=[],i=Object.keys(t);for(let a=0;a<i.length;a++){const s=e[i[a]];s&&s.active()&&n.push(s.wait())}return Promise.all(n)}function lT(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Dm(e,t){const n=e&&e.options||{},i=n.reverse,a=n.min===void 0?t:0,s=n.max===void 0?t:0;return{start:i?s:a,end:i?a:s}}function rT(e,t,n){if(n===!1)return!1;const i=Dm(e,n),a=Dm(t,n);return{top:a.end,right:i.end,bottom:a.start,left:i.start}}function oT(e){let t,n,i,a;return K(e)?(t=e.top,n=e.right,i=e.bottom,a=e.left):t=n=i=a=e,{top:t,right:n,bottom:i,left:a,disabled:e===!1}}function Ex(e,t){const n=[],i=e._getSortedDatasetMetas(t);let a,s;for(a=0,s=i.length;a<s;++a)n.push(i[a].index);return n}function Om(e,t,n,i={}){const a=e.keys,s=i.mode==="single";let l,r,o,u;if(t===null)return;let d=!1;for(l=0,r=a.length;l<r;++l){if(o=+a[l],o===n){if(d=!0,i.all)continue;break}u=e.values[o],Ve(u)&&(s||t===0||wa(t)===wa(u))&&(t+=u)}return!d&&!i.all?0:t}function cT(e,t){const{iScale:n,vScale:i}=t,a=n.axis==="x"?"x":"y",s=i.axis==="x"?"x":"y",l=Object.keys(e),r=new Array(l.length);let o,u,d;for(o=0,u=l.length;o<u;++o)d=l[o],r[o]={[a]:d,[s]:e[d]};return r}function wc(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function uT(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function dT(e){const{min:t,max:n,minDefined:i,maxDefined:a}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:a?n:Number.POSITIVE_INFINITY}}function fT(e,t,n){const i=e[t]||(e[t]={});return i[n]||(i[n]={})}function zm(e,t,n,i){for(const a of t.getMatchingVisibleMetas(i).reverse()){const s=e[a.index];if(n&&s>0||!n&&s<0)return a.index}return null}function km(e,t){const{chart:n,_cachedMeta:i}=e,a=n._stacks||(n._stacks={}),{iScale:s,vScale:l,index:r}=i,o=s.axis,u=l.axis,d=uT(s,l,i),f=t.length;let h;for(let m=0;m<f;++m){const y=t[m],{[o]:b,[u]:v}=y,p=y._stacks||(y._stacks={});h=p[u]=fT(a,d,b),h[r]=v,h._top=zm(h,l,!0,i.type),h._bottom=zm(h,l,!1,i.type);const g=h._visualValues||(h._visualValues={});g[r]=v}}function Ac(e,t){const n=e.scales;return Object.keys(n).filter(i=>n[i].axis===t).shift()}function hT(e,t){return Li(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function mT(e,t,n){return Li(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Ja(e,t){const n=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const a of t){const s=a._stacks;if(!s||s[i]===void 0||s[i][n]===void 0)return;delete s[i][n],s[i]._visualValues!==void 0&&s[i]._visualValues[n]!==void 0&&delete s[i]._visualValues[n]}}}const Nc=e=>e==="reset"||e==="none",Rm=(e,t)=>t?e:Object.assign({},e),pT=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Ex(n,!0),values:null};class Os{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=wc(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Ja(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,i=this.getDataset(),a=(f,h,m,y)=>f==="x"?h:f==="r"?y:m,s=n.xAxisID=Q(i.xAxisID,Ac(t,"x")),l=n.yAxisID=Q(i.yAxisID,Ac(t,"y")),r=n.rAxisID=Q(i.rAxisID,Ac(t,"r")),o=n.indexAxis,u=n.iAxisID=a(o,s,l,r),d=n.vAxisID=a(o,l,s,r);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(l),n.rScale=this.getScaleForId(r),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&gm(this._data,this),t._stacked&&Ja(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),i=this._data;if(K(n)){const a=this._cachedMeta;this._data=cT(n,a)}else if(i!==n){if(i){gm(i,this);const a=this._cachedMeta;Ja(a),a._parsed=[]}n&&Object.isExtensible(n)&&Zj(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,i=this.getDataset();let a=!1;this._dataCheck();const s=n._stacked;n._stacked=wc(n.vScale,n),n.stack!==i.stack&&(a=!0,Ja(n),n.stack=i.stack),this._resyncElements(t),(a||s!==n._stacked)&&(km(this,n._parsed),n._stacked=wc(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:i,_data:a}=this,{iScale:s,_stacked:l}=i,r=s.axis;let o=t===0&&n===a.length?!0:i._sorted,u=t>0&&i._parsed[t-1],d,f,h;if(this._parsing===!1)i._parsed=a,i._sorted=!0,h=a;else{we(a[t])?h=this.parseArrayData(i,a,t,n):K(a[t])?h=this.parseObjectData(i,a,t,n):h=this.parsePrimitiveData(i,a,t,n);const m=()=>f[r]===null||u&&f[r]<u[r];for(d=0;d<n;++d)i._parsed[d+t]=f=h[d],o&&(m()&&(o=!1),u=f);i._sorted=o}l&&km(this,h)}parsePrimitiveData(t,n,i,a){const{iScale:s,vScale:l}=t,r=s.axis,o=l.axis,u=s.getLabels(),d=s===l,f=new Array(a);let h,m,y;for(h=0,m=a;h<m;++h)y=h+i,f[h]={[r]:d||s.parse(u[y],y),[o]:l.parse(n[y],y)};return f}parseArrayData(t,n,i,a){const{xScale:s,yScale:l}=t,r=new Array(a);let o,u,d,f;for(o=0,u=a;o<u;++o)d=o+i,f=n[d],r[o]={x:s.parse(f[0],d),y:l.parse(f[1],d)};return r}parseObjectData(t,n,i,a){const{xScale:s,yScale:l}=t,{xAxisKey:r="x",yAxisKey:o="y"}=this._parsing,u=new Array(a);let d,f,h,m;for(d=0,f=a;d<f;++d)h=d+i,m=n[h],u[d]={x:s.parse(Jr(m,r),h),y:l.parse(Jr(m,o),h)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,i){const a=this.chart,s=this._cachedMeta,l=n[t.axis],r={keys:Ex(a,!0),values:n._stacks[t.axis]._visualValues};return Om(r,l,s.index,{mode:i})}updateRangeFromParsed(t,n,i,a){const s=i[n.axis];let l=s===null?NaN:s;const r=a&&i._stacks[n.axis];a&&r&&(a.values=r,l=Om(a,s,this._cachedMeta.index)),t.min=Math.min(t.min,l),t.max=Math.max(t.max,l)}getMinMax(t,n){const i=this._cachedMeta,a=i._parsed,s=i._sorted&&t===i.iScale,l=a.length,r=this._getOtherScale(t),o=pT(n,i,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:f}=dT(r);let h,m;function y(){m=a[h];const b=m[r.axis];return!Ve(m[t.axis])||d>b||f<b}for(h=0;h<l&&!(!y()&&(this.updateRangeFromParsed(u,t,m,o),s));++h);if(s){for(h=l-1;h>=0;--h)if(!y()){this.updateRangeFromParsed(u,t,m,o);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,i=[];let a,s,l;for(a=0,s=n.length;a<s;++a)l=n[a][t.axis],Ve(l)&&i.push(l);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,i=n.iScale,a=n.vScale,s=this.getParsed(t);return{label:i?""+i.getLabelForValue(s[i.axis]):"",value:a?""+a.getLabelForValue(s[a.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=oT(Q(this.options.clip,rT(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,i=this._cachedMeta,a=i.data||[],s=n.chartArea,l=[],r=this._drawStart||0,o=this._drawCount||a.length-r,u=this.options.drawActiveElementsOnTop;let d;for(i.dataset&&i.dataset.draw(t,s,r,o),d=r;d<r+o;++d){const f=a[d];f.hidden||(f.active&&u?l.push(f):f.draw(t,s))}for(d=0;d<l.length;++d)l[d].draw(t,s)}getStyle(t,n){const i=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,n,i){const a=this.getDataset();let s;if(t>=0&&t<this._cachedMeta.data.length){const l=this._cachedMeta.data[t];s=l.$context||(l.$context=mT(this.getContext(),t,l)),s.parsed=this.getParsed(t),s.raw=a.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=hT(this.chart.getContext(),this.index)),s.dataset=a,s.index=s.datasetIndex=this.index;return s.active=!!n,s.mode=i,s}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",i){const a=n==="active",s=this._cachedDataOpts,l=t+"-"+n,r=s[l],o=this.enableOptionSharing&&Ir(i);if(r)return Rm(r,o);const u=this.chart.config,d=u.datasetElementScopeKeys(this._type,t),f=a?[`${t}Hover`,"hover",t,""]:[t,""],h=u.getOptionScopes(this.getDataset(),d),m=Object.keys(xe.elements[t]),y=()=>this.getContext(i,a,n),b=u.resolveNamedOptions(h,m,y,f);return b.$shared&&(b.$shared=o,s[l]=Object.freeze(Rm(b,o))),b}_resolveAnimations(t,n,i){const a=this.chart,s=this._cachedDataOpts,l=`animation-${n}`,r=s[l];if(r)return r;let o;if(a.options.animation!==!1){const d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,n),h=d.getOptionScopes(this.getDataset(),f);o=d.createResolver(h,this.getContext(t,i,n))}const u=new Tx(a,o&&o.animations);return o&&o._cacheable&&(s[l]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Nc(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const i=this.resolveDataElementOptions(t,n),a=this._sharedOptions,s=this.getSharedOptions(i),l=this.includeOptions(n,s)||s!==a;return this.updateSharedOptions(s,n,i),{sharedOptions:s,includeOptions:l}}updateElement(t,n,i,a){Nc(a)?Object.assign(t,i):this._resolveAnimations(n,a).update(t,i)}updateSharedOptions(t,n,i){t&&!Nc(n)&&this._resolveAnimations(void 0,n).update(t,i)}_setStyle(t,n,i,a){t.active=a;const s=this.getStyle(n,a);this._resolveAnimations(n,i,a).update(t,{options:!a&&this.getSharedOptions(s)||s})}removeHoverStyle(t,n,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,n,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,i=this._cachedMeta.data;for(const[r,o,u]of this._syncList)this[r](o,u);this._syncList=[];const a=i.length,s=n.length,l=Math.min(s,a);l&&this.parse(0,l),s>a?this._insertElements(a,s-a,t):s<a&&this._removeElements(s,a-s)}_insertElements(t,n,i=!0){const a=this._cachedMeta,s=a.data,l=t+n;let r;const o=u=>{for(u.length+=n,r=u.length-1;r>=l;r--)u[r]=u[r-n]};for(o(s),r=t;r<l;++r)s[r]=new this.dataElementType;this._parsing&&o(a._parsed),this.parse(t,n),i&&this.updateElements(s,t,n,"reset")}updateElements(t,n,i,a){}_removeElements(t,n){const i=this._cachedMeta;if(this._parsing){const a=i._parsed.splice(t,n);i._stacked&&Ja(i,a)}i.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,i,a]=t;this[n](i,a)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}H(Os,"defaults",{}),H(Os,"datasetElementType",null),H(Os,"dataElementType",null);class gr extends Os{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:i,data:a=[],_dataset:s}=n,l=this.chart._animationsDisabled;let{start:r,count:o}=Ij(n,a,l);this._drawStart=r,this._drawCount=o,e2(n)&&(r=0,o=a.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=a;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(i,void 0,{animated:!l,options:u},t),this.updateElements(a,r,o,t)}updateElements(t,n,i,a){const s=a==="reset",{iScale:l,vScale:r,_stacked:o,_dataset:u}=this._cachedMeta,{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,a),h=l.axis,m=r.axis,{spanGaps:y,segment:b}=this.options,v=Ks(y)?y:Number.POSITIVE_INFINITY,p=this.chart._animationsDisabled||s||a==="none",g=n+i,x=t.length;let T=n>0&&this.getParsed(n-1);for(let S=0;S<x;++S){const C=t[S],j=p?C:{};if(S<n||S>=g){j.skip=!0;continue}const E=this.getParsed(S),N=le(E[m]),D=j[h]=l.getPixelForValue(E[h],S),B=j[m]=s||N?r.getBasePixel():r.getPixelForValue(o?this.applyStack(r,E,o):E[m],S);j.skip=isNaN(D)||isNaN(B)||N,j.stop=S>0&&Math.abs(E[h]-T[h])>v,b&&(j.parsed=E,j.raw=u.data[S]),f&&(j.options=d||this.resolveDataElementOptions(S,C.active?"active":a)),p||this.updateElement(C,S,j,a),T=E}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,i=n.options&&n.options.borderWidth||0,a=t.data||[];if(!a.length)return i;const s=a[0].size(this.resolveDataElementOptions(0)),l=a[a.length-1].size(this.resolveDataElementOptions(a.length-1));return Math.max(i,s,l)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}H(gr,"id","line"),H(gr,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),H(gr,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function oi(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class vf{constructor(t){H(this,"options");this.options=t||{}}static override(t){Object.assign(vf.prototype,t)}init(){}formats(){return oi()}parse(){return oi()}format(){return oi()}add(){return oi()}diff(){return oi()}startOf(){return oi()}endOf(){return oi()}}var gT={_date:vf};function yT(e,t,n,i){const{controller:a,data:s,_sorted:l}=e,r=a._cachedMeta.iScale,o=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(r&&t===r.axis&&t!=="r"&&l&&s.length){const u=r._reversePixels?$j:gi;if(i){if(a._sharedOptions){const d=s[0],f=typeof d.getRange=="function"&&d.getRange(t);if(f){const h=u(s,t,n-f),m=u(s,t,n+f);return{lo:h.lo,hi:m.hi}}}}else{const d=u(s,t,n);if(o){const{vScale:f}=a._cachedMeta,{_parsed:h}=e,m=h.slice(0,d.lo+1).reverse().findIndex(b=>!le(b[f.axis]));d.lo-=Math.max(0,m);const y=h.slice(d.hi).findIndex(b=>!le(b[f.axis]));d.hi+=Math.max(0,y)}return d}}return{lo:0,hi:s.length-1}}function Oo(e,t,n,i,a){const s=e.getSortedVisibleDatasetMetas(),l=n[t];for(let r=0,o=s.length;r<o;++r){const{index:u,data:d}=s[r],{lo:f,hi:h}=yT(s[r],t,l,a);for(let m=f;m<=h;++m){const y=d[m];y.skip||i(y,u,m)}
vendor: 5,393 bytes, line 81
81}}function bT(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(i,a){const s=t?Math.abs(i.x-a.x):0,l=n?Math.abs(i.y-a.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(l,2))}}function Mc(e,t,n,i,a){const s=[];return!a&&!e.isPointInArea(t)||Oo(e,n,t,function(r,o,u){!a&&!Ws(r,e.chartArea,0)||r.inRange(t.x,t.y,i)&&s.push({element:r,datasetIndex:o,index:u})},!0),s}function xT(e,t,n,i){let a=[];function s(l,r,o){const{startAngle:u,endAngle:d}=l.getProps(["startAngle","endAngle"],i),{angle:f}=Xj(l,{x:t.x,y:t.y});sx(f,u,d)&&a.push({element:l,datasetIndex:r,index:o})}return Oo(e,n,t,s),a}function vT(e,t,n,i,a,s){let l=[];const r=bT(n);let o=Number.POSITIVE_INFINITY;function u(d,f,h){const m=d.inRange(t.x,t.y,a);if(i&&!m)return;const y=d.getCenterPoint(a);if(!(!!s||e.isPointInArea(y))&&!m)return;const v=r(t,y);v<o?(l=[{element:d,datasetIndex:f,index:h}],o=v):v===o&&l.push({element:d,datasetIndex:f,index:h})}return Oo(e,n,t,u),l}function Dc(e,t,n,i,a,s){return!s&&!e.isPointInArea(t)?[]:n==="r"&&!i?xT(e,t,n,a):vT(e,t,n,i,a,s)}function Bm(e,t,n,i,a){const s=[],l=n==="x"?"inXRange":"inYRange";let r=!1;return Oo(e,n,t,(o,u,d)=>{o[l]&&o[l](t[n],a)&&(s.push({element:o,datasetIndex:u,index:d}),r=r||o.inRange(t.x,t.y,a))}),i&&!r?[]:s}var _T={modes:{index(e,t,n,i){const a=hi(t,e),s=n.axis||"x",l=n.includeInvisible||!1,r=n.intersect?Mc(e,a,s,i,l):Dc(e,a,s,!1,i,l),o=[];return r.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const d=r[0].index,f=u.data[d];f&&!f.skip&&o.push({element:f,datasetIndex:u.index,index:d})}),o):[]},dataset(e,t,n,i){const a=hi(t,e),s=n.axis||"xy",l=n.includeInvisible||!1;let r=n.intersect?Mc(e,a,s,i,l):Dc(e,a,s,!1,i,l);if(r.length>0){const o=r[0].datasetIndex,u=e.getDatasetMeta(o).data;r=[];for(let d=0;d<u.length;++d)r.push({element:u[d],datasetIndex:o,index:d})}return r},point(e,t,n,i){const a=hi(t,e),s=n.axis||"xy",l=n.includeInvisible||!1;return Mc(e,a,s,i,l)},nearest(e,t,n,i){const a=hi(t,e),s=n.axis||"xy",l=n.includeInvisible||!1;return Dc(e,a,s,n.intersect,i,l)},x(e,t,n,i){const a=hi(t,e);return Bm(e,a,"x",n.intersect,i)},y(e,t,n,i){const a=hi(t,e);return Bm(e,a,"y",n.intersect,i)}}};const Cx=["left","top","right","bottom"];function Ia(e,t){return e.filter(n=>n.pos===t)}function Lm(e,t){return e.filter(n=>Cx.indexOf(n.pos)===-1&&n.box.axis===t)}function es(e,t){return e.sort((n,i)=>{const a=t?i:n,s=t?n:i;return a.weight===s.weight?a.index-s.index:a.weight-s.weight})}function ST(e){const t=[];let n,i,a,s,l,r;for(n=0,i=(e||[]).length;n<i;++n)a=e[n],{position:s,options:{stack:l,stackWeight:r=1}}=a,t.push({index:n,box:a,pos:s,horizontal:a.isHorizontal(),weight:a.weight,stack:l&&s+l,stackWeight:r});return t}function jT(e){const t={};for(const n of e){const{stack:i,pos:a,stackWeight:s}=n;if(!i||!Cx.includes(a))continue;const l=t[i]||(t[i]={count:0,placed:0,weight:0,size:0});l.count++,l.weight+=s}return t}function TT(e,t){const n=jT(e),{vBoxMaxWidth:i,hBoxMaxHeight:a}=t;let s,l,r;for(s=0,l=e.length;s<l;++s){r=e[s];const{fullSize:o}=r.box,u=n[r.stack],d=u&&r.stackWeight/u.weight;r.horizontal?(r.width=d?d*i:o&&t.availableWidth,r.height=a):(r.width=i,r.height=d?d*a:o&&t.availableHeight)}return n}function ET(e){const t=ST(e),n=es(t.filter(u=>u.box.fullSize),!0),i=es(Ia(t,"left"),!0),a=es(Ia(t,"right")),s=es(Ia(t,"top"),!0),l=es(Ia(t,"bottom")),r=Lm(t,"x"),o=Lm(t,"y");return{fullSize:n,leftAndTop:i.concat(s),rightAndBottom:a.concat(o).concat(l).concat(r),chartArea:Ia(t,"chartArea"),vertical:i.concat(a).concat(o),horizontal:s.concat(l).concat(r)}}function Hm(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function wx(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function CT(e,t,n,i){const{pos:a,box:s}=n,l=e.maxPadding;if(!K(a)){n.size&&(e[a]-=n.size);const f=i[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?s.height:s.width),n.size=f.size/f.count,e[a]+=n.size}s.getPadding&&wx(l,s.getPadding());const r=Math.max(0,t.outerWidth-Hm(l,e,"left","right")),o=Math.max(0,t.outerHeight-Hm(l,e,"top","bottom")),u=r!==e.w,d=o!==e.h;return e.w=r,e.h=o,n.horizontal?{same:u,other:d}:{same:d,other:u}}function wT(e){const t=e.maxPadding;function n(i){const a=Math.max(t[i]-e[i],0);return e[i]+=a,a}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function AT(e,t){const n=t.maxPadding;function i(a){const s={left:0,top:0,right:0,bottom:0};return a.forEach(l=>{s[l]=Math.max(t[l],n[l])}),s}return i(e?["left","right"]:["top","bottom"])}function cs(e,t,n,i){const a=[];let s,l,r,o,u,d;for(s=0,l=e.length,u=0;s<l;++s){r=e[s],o=r.box,o.update(r.width||t.w,r.height||t.h,AT(r.horizontal,t));const{same:f,other:h}=CT(t,n,r,i);u|=f&&a.length,d=d||h,o.fullSize||a.push(r)}return u&&cs(a,t,n,i)||d}function Fl(e,t,n,i,a){e.top=n,e.left=t,e.right=t+i,e.bottom=n+a,e.width=i,e.height=a}function Um(e,t,n,i){const a=n.padding;let{x:s,y:l}=t;for(const r of e){const o=r.box,u=i[r.stack]||{placed:0,weight:1},d=r.stackWeight/u.weight||1;if(r.horizontal){const f=t.w*d,h=u.size||o.height;Ir(u.start)&&(l=u.start),o.fullSize?Fl(o,a.left,l,n.outerWidth-a.right-a.left,h):Fl(o,t.left+u.placed,l,f,h),u.start=l,u.placed+=f,l=o.bottom}else{const f=t.h*d,h=u.size||o.width;Ir(u.start)&&(s=u.start),o.fullSize?Fl(o,s,a.top,h,n.outerHeight-a.bottom-a.top):Fl(o,s,t.top+u.placed,h,f),u.start=s,u.placed+=f,s=o.right}}t.x=s,t.y=l}
vendor: 4,138 bytes, line 81
81var _t={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,i){if(!e)return;const a=Ct(e.options.layout.padding),s=Math.max(t-a.width,0),l=Math.max(n-a.height,0),r=ET(e.boxes),o=r.vertical,u=r.horizontal;ee(e.boxes,b=>{typeof b.beforeLayout=="function"&&b.beforeLayout()});const d=o.reduce((b,v)=>v.box.options&&v.box.options.display===!1?b:b+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:a,availableWidth:s,availableHeight:l,vBoxMaxWidth:s/2/d,hBoxMaxHeight:l/2}),h=Object.assign({},a);wx(h,Ct(i));const m=Object.assign({maxPadding:h,w:s,h:l,x:a.left,y:a.top},a),y=TT(o.concat(u),f);cs(r.fullSize,m,f,y),cs(o,m,f,y),cs(u,m,f,y)&&cs(o,m,f,y),wT(m),Um(r.leftAndTop,m,f,y),m.x+=m.w,m.y+=m.h,Um(r.rightAndBottom,m,f,y),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},ee(r.chartArea,b=>{const v=b.box;Object.assign(v,e.chartArea),v.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class Ax{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,i){}removeEventListener(t,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,i,a){return n=Math.max(0,n||t.width),i=i||t.height,{width:n,height:Math.max(0,a?Math.floor(n/a):i)}}isAttached(t){return!0}updateConfig(t){}}class NT extends Ax{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const yr="$chartjs",MT={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Vm=e=>e===null||e==="";function DT(e,t){const n=e.style,i=e.getAttribute("height"),a=e.getAttribute("width");if(e[yr]={initial:{height:i,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Vm(a)){const s=Cm(e,"width");s!==void 0&&(e.width=s)}if(Vm(i))if(e.style.height==="")e.height=e.width/(t||2);else{const s=Cm(e,"height");s!==void 0&&(e.height=s)}return e}const Nx=X2?{passive:!0}:!1;function OT(e,t,n){e&&e.addEventListener(t,n,Nx)}function zT(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,Nx)}function kT(e,t){const n=MT[e.type]||e.type,{x:i,y:a}=hi(e,t);return{type:n,chart:t,native:e,x:i!==void 0?i:null,y:a!==void 0?a:null}}function no(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function RT(e,t,n){const i=e.canvas,a=new MutationObserver(s=>{let l=!1;for(const r of s)l=l||no(r.addedNodes,i),l=l&&!no(r.removedNodes,i);l&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}function BT(e,t,n){const i=e.canvas,a=new MutationObserver(s=>{let l=!1;for(const r of s)l=l||no(r.removedNodes,i),l=l&&!no(r.addedNodes,i);l&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}const Is=new Map;let Ym=0;function Mx(){const e=window.devicePixelRatio;e!==Ym&&(Ym=e,Is.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function LT(e,t){Is.size||window.addEventListener("resize",Mx),Is.set(e,t)}function HT(e){Is.delete(e),Is.size||window.removeEventListener("resize",Mx)}function UT(e,t,n){const i=e.canvas,a=i&&xf(i);if(!a)return;const s=ox((r,o)=>{const u=a.clientWidth;n(r,o),u<a.clientWidth&&n()},window),l=new ResizeObserver(r=>{const o=r[0],u=o.contentRect.width,d=o.contentRect.height;u===0&&d===0||s(u,d)});return l.observe(a),LT(e,s),l}function Oc(e,t,n){n&&n.disconnect(),t==="resize"&&HT(e)}function VT(e,t,n){const i=e.canvas,a=ox(s=>{e.ctx!==null&&n(kT(s,e))},e);return OT(i,t,a),a}class YT extends Ax{acquireContext(t,n){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(DT(t,n),i):null}releaseContext(t){const n=t.canvas;if(!n[yr])return!1;const i=n[yr].initial;["height","width"].forEach(s=>{const l=i[s];le(l)?n.removeAttribute(s):n.setAttribute(s,l)});const a=i.style||{};
vendor: 1,184 bytes, line 81
81return Object.keys(a).forEach(s=>{n.style[s]=a[s]}),n.width=n.width,delete n[yr],!0}addEventListener(t,n,i){this.removeEventListener(t,n);const a=t.$proxies||(t.$proxies={}),l={attach:RT,detach:BT,resize:UT}[n]||VT;a[n]=l(t,n,i)}removeEventListener(t,n){const i=t.$proxies||(t.$proxies={}),a=i[n];if(!a)return;({attach:Oc,detach:Oc,resize:Oc}[n]||zT)(t,n,a),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,i,a){return F2(t,n,i,a)}isAttached(t){const n=t&&xf(t);return!!(n&&n.isConnected)}}function qT(e){return!bf()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?NT:YT}var Kl;let Hi=(Kl=class{constructor(){H(this,"x");H(this,"y");H(this,"active",!1);H(this,"options");H(this,"$animations")}tooltipPosition(t){const{x:n,y:i}=this.getProps(["x","y"],t);return{x:n,y:i}}hasValue(){return Ks(this.x)&&Ks(this.y)}getProps(t,n){const i=this.$animations;if(!n||!i)return this;const a={};return t.forEach(s=>{a[s]=i[s]&&i[s].active()?i[s]._to:this[s]}),a}},H(Kl,"defaults",{}),H(Kl,"defaultRoutes"),Kl);function FT(e,t){const n=e.options.ticks,i=XT(e),a=Math.min(n.maxTicksLimit||i,i),s=n.major.enabled?PT(t):[],l=s.length,r=s[0],o=s[l-1],u=[];
vendor: 52,039 bytes, line 81
81if(l>a)return $T(t,u,s,l/a),u;const d=GT(s,t,a);if(l>0){let f,h;const m=l>1?Math.round((o-r)/(l-1)):null;for(Xl(t,u,d,le(m)?0:r-m,r),f=0,h=l-1;f<h;f++)Xl(t,u,d,s[f],s[f+1]);return Xl(t,u,d,o,le(m)?t.length:o+m),u}return Xl(t,u,d),u}function XT(e){const t=e.options.offset,n=e._tickSize(),i=e._length/n+(t?0:1),a=e._maxLength/n;return Math.floor(Math.min(i,a))}function GT(e,t,n){const i=QT(e),a=t.length/n;if(!i)return Math.max(a,1);const s=Uj(i);for(let l=0,r=s.length-1;l<r;l++){const o=s[l];if(o>a)return o}return Math.max(a,1)}function PT(e){const t=[];let n,i;for(n=0,i=e.length;n<i;n++)e[n].major&&t.push(n);return t}function $T(e,t,n,i){let a=0,s=n[0],l;for(i=Math.ceil(i),l=0;l<e.length;l++)l===s&&(t.push(e[l]),a++,s=n[a*i])}function Xl(e,t,n,i,a){const s=Q(i,0),l=Math.min(Q(a,e.length),e.length);let r=0,o,u,d;for(n=Math.ceil(n),a&&(o=a-i,n=o/Math.floor(o/n)),d=s;d<0;)r++,d=Math.round(s+r*n);for(u=Math.max(s,0);u<l;u++)u===d&&(t.push(e[u]),r++,d=Math.round(s+r*n))}function QT(e){const t=e.length;let n,i;if(t<2)return!1;for(i=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==i)return!1;return i}const ZT=e=>e==="left"?"right":e==="right"?"left":e,qm=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,Fm=(e,t)=>Math.min(t||e,e);function Xm(e,t){const n=[],i=e.length/t,a=e.length;let s=0;for(;s<a;s+=i)n.push(e[Math.floor(s)]);return n}function KT(e,t,n){const i=e.ticks.length,a=Math.min(t,i-1),s=e._startPixel,l=e._endPixel,r=1e-6;let o=e.getPixelForTick(a),u;if(!(n&&(i===1?u=Math.max(o-s,l-o):t===0?u=(e.getPixelForTick(1)-o)/2:u=(o-e.getPixelForTick(a-1))/2,o+=a<t?u:-u,o<s-r||o>l+r)))return o}function WT(e,t){ee(e,n=>{const i=n.gc,a=i.length/2;let s;if(a>t){for(s=0;s<a;++s)delete n.data[i[s]];i.splice(0,a)}})}function ts(e){return e.drawTicks?e.tickLength:0}function Gm(e,t){if(!e.display)return 0;const n=Ue(e.font,t),i=Ct(e.padding);return(we(e.text)?e.text.length:1)*n.lineHeight+i.height}function JT(e,t){return Li(e,{scale:t,type:"scale"})}function IT(e,t,n){return Li(e,{tick:n,index:t,type:"tick"})}function eE(e,t,n){let i=hf(e);return(n&&t!=="right"||!n&&t==="right")&&(i=ZT(i)),i}function tE(e,t,n,i){const{top:a,left:s,bottom:l,right:r,chart:o}=e,{chartArea:u,scales:d}=o;let f=0,h,m,y;const b=l-a,v=r-s;if(e.isHorizontal()){if(m=He(i,s,r),K(n)){const p=Object.keys(n)[0],g=n[p];y=d[p].getPixelForValue(g)+b-t}else n==="center"?y=(u.bottom+u.top)/2+b-t:y=qm(e,n,t);h=r-s}else{if(K(n)){const p=Object.keys(n)[0],g=n[p];m=d[p].getPixelForValue(g)-v+t}else n==="center"?m=(u.left+u.right)/2-v+t:m=qm(e,n,t);y=He(i,l,a),f=n==="left"?-Ot:Ot}return{titleX:m,titleY:y,maxWidth:h,rotation:f}}class Ya extends Hi{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:i,_suggestedMax:a}=this;return t=Ut(t,Number.POSITIVE_INFINITY),n=Ut(n,Number.NEGATIVE_INFINITY),i=Ut(i,Number.POSITIVE_INFINITY),a=Ut(a,Number.NEGATIVE_INFINITY),{min:Ut(t,i),max:Ut(n,a),minDefined:Ve(t),maxDefined:Ve(n)}}getMinMax(t){let{min:n,max:i,minDefined:a,maxDefined:s}=this.getUserBounds(),l;if(a&&s)return{min:n,max:i};const r=this.getMatchingVisibleMetas();for(let o=0,u=r.length;o<u;++o)l=r[o].controller.getMinMax(this,t),a||(n=Math.min(n,l.min)),s||(i=Math.max(i,l.max));return n=s&&n>i?i:n,i=a&&n>i?n:i,{min:Ut(n,Ut(i,n)),max:Ut(i,Ut(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ce(this.options.beforeUpdate,[this])}update(t,n,i){const{beginAtZero:a,grace:s,ticks:l}=this.options,r=l.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=_2(this,s,a),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const o=r<this.ticks.length;this._convertTicksToLabels(o?Xm(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),l.display&&(l.autoSkip||l.source==="auto")&&(this.ticks=FT(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),o&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,i;this.isHorizontal()?(n=this.left,i=this.right):(n=this.top,i=this.bottom,t=!t),this._startPixel=n,this._endPixel=i,this._reversePixels=t,this._length=i-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){ce(this.options.afterUpdate,[this])}beforeSetDimensions(){ce(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){ce(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),ce(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ce(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let i,a,s;for(i=0,a=t.length;i<a;i++)s=t[i],s.label=ce(n.callback,[s.value,i,t],this)}afterTickToLabelConversion(){ce(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ce(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,i=Fm(this.ticks.length,t.ticks.maxTicksLimit),a=n.minRotation||0,s=n.maxRotation;let l=a,r,o,u;if(!this._isVisible()||!n.display||a>=s||i<=1||!this.isHorizontal()){this.labelRotation=a;return}const d=this._getLabelSizes(),f=d.widest.width,h=d.highest.height,m=vt(this.chart.width-f,0,this.maxWidth);r=t.offset?this.maxWidth/i:m/(i-1),f+6>r&&(r=m/(i-(t.offset?.5:1)),o=this.maxHeight-ts(t.grid)-n.padding-Gm(t.title,this.chart.options.font),u=Math.sqrt(f*f+h*h),l=Fj(Math.min(Math.asin(vt((d.highest.height+6)/r,-1,1)),Math.asin(vt(o/u,-1,1))-Math.asin(vt(h/u,-1,1)))),l=Math.max(a,Math.min(s,l))),this.labelRotation=l}afterCalculateLabelRotation(){ce(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ce(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:i,title:a,grid:s}}=this,l=this._isVisible(),r=this.isHorizontal();if(l){const o=Gm(a,n.options.font);if(r?(t.width=this.maxWidth,t.height=ts(s)+o):(t.height=this.maxHeight,t.width=ts(s)+o),i.display&&this.ticks.length){const{first:u,last:d,widest:f,highest:h}=this._getLabelSizes(),m=i.padding*2,y=pi(this.labelRotation),b=Math.cos(y),v=Math.sin(y);if(r){const p=i.mirror?0:v*f.width+b*h.height;t.height=Math.min(this.maxHeight,t.height+p+m)}else{const p=i.mirror?0:b*f.width+v*h.height;t.width=Math.min(this.maxWidth,t.width+p+m)}this._calculatePadding(u,d,v,b)}}this._handleMargins(),r?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,i,a){const{ticks:{align:s,padding:l},position:r}=this.options,o=this.labelRotation!==0,u=r!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,m=0;o?u?(h=a*t.width,m=i*n.height):(h=i*t.height,m=a*n.width):s==="start"?m=n.width:s==="end"?h=t.width:s!=="inner"&&(h=t.width/2,m=n.width/2),this.paddingLeft=Math.max((h-d+l)*this.width/(this.width-d),0),this.paddingRight=Math.max((m-f+l)*this.width/(this.width-f),0)}else{let d=n.height/2,f=t.height/2;s==="start"?(d=0,f=t.height):s==="end"&&(d=n.height,f=0),this.paddingTop=d+l,this.paddingBottom=f+l}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ce(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,i;for(n=0,i=t.length;n<i;n++)le(t[n].label)&&(t.splice(n,1),i--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let i=this.ticks;n<i.length&&(i=Xm(i,n)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,i){const{ctx:a,_longestTextCache:s}=this,l=[],r=[],o=Math.floor(n/Fm(n,i));let u=0,d=0,f,h,m,y,b,v,p,g,x,T,S;for(f=0;f<n;f+=o){if(y=t[f].label,b=this._resolveTickFontOptions(f),a.font=v=b.string,p=s[v]=s[v]||{data:{},gc:[]},g=b.lineHeight,x=T=0,!le(y)&&!we(y))x=_m(a,p.data,p.gc,x,y),T=g;else if(we(y))for(h=0,m=y.length;h<m;++h)S=y[h],!le(S)&&!we(S)&&(x=_m(a,p.data,p.gc,x,S),T+=g);l.push(x),r.push(T),u=Math.max(x,u),d=Math.max(T,d)}WT(s,n);const C=l.indexOf(u),j=r.indexOf(d),E=N=>({width:l[N]||0,height:r[N]||0});return{first:E(0),last:E(n-1),widest:E(C),highest:E(j),widths:l,heights:r}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return Pj(this._alignToPixels?ri(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const i=n[t];return i.$context||(i.$context=IT(this.getContext(),t,i))}return this.$context||(this.$context=JT(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=pi(this.labelRotation),i=Math.abs(Math.cos(n)),a=Math.abs(Math.sin(n)),s=this._getLabelSizes(),l=t.autoSkipPadding||0,r=s?s.widest.width+l:0,o=s?s.highest.height+l:0;return this.isHorizontal()?o*i>r*a?r/i:o/a:o*a<r*i?o/i:r/a}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,i=this.chart,a=this.options,{grid:s,position:l,border:r}=a,o=s.offset,u=this.isHorizontal(),f=this.ticks.length+(o?1:0),h=ts(s),m=[],y=r.setContext(this.getContext()),b=y.display?y.width:0,v=b/2,p=function(A){return ri(i,A,b)};let g,x,T,S,C,j,E,N,D,B,V,O;if(l==="top")g=p(this.bottom),j=this.bottom-h,N=g-v,B=p(t.top)+v,O=t.bottom;else if(l==="bottom")g=p(this.top),B=t.top,O=p(t.bottom)-v,j=g+v,N=this.top+h;else if(l==="left")g=p(this.right),C=this.right-h,E=g-v,D=p(t.left)+v,V=t.right;else if(l==="right")g=p(this.left),D=t.left,V=p(t.right)-v,C=g+v,E=this.left+h;else if(n==="x"){if(l==="center")g=p((t.top+t.bottom)/2+.5);else if(K(l)){const A=Object.keys(l)[0],M=l[A];g=p(this.chart.scales[A].getPixelForValue(M))}B=t.top,O=t.bottom,j=g+v,N=j+h}else if(n==="y"){if(l==="center")g=p((t.left+t.right)/2);else if(K(l)){const A=Object.keys(l)[0],M=l[A];g=p(this.chart.scales[A].getPixelForValue(M))}C=g-v,E=C-h,D=t.left,V=t.right}const k=Q(a.ticks.maxTicksLimit,f),z=Math.max(1,Math.ceil(f/k));for(x=0;x<f;x+=z){const A=this.getContext(x),M=s.setContext(A),R=r.setContext(A),F=M.lineWidth,P=M.color,Zt=R.dash||[],At=R.dashOffset,Kt=M.tickWidth,Ye=M.tickColor,Ht=M.tickBorderDash||[],ai=M.tickBorderDashOffset;T=KT(this,x,o),T!==void 0&&(S=ri(i,T,F),u?C=E=D=V=S:j=N=B=O=S,m.push({tx1:C,ty1:j,tx2:E,ty2:N,x1:D,y1:B,x2:V,y2:O,width:F,color:P,borderDash:Zt,borderDashOffset:At,tickWidth:Kt,tickColor:Ye,tickBorderDash:Ht,tickBorderDashOffset:ai}))}return this._ticksLength=f,this._borderValue=g,m}_computeLabelItems(t){const n=this.axis,i=this.options,{position:a,ticks:s}=i,l=this.isHorizontal(),r=this.ticks,{align:o,crossAlign:u,padding:d,mirror:f}=s,h=ts(i.grid),m=h+d,y=f?-d:m,b=-pi(this.labelRotation),v=[];let p,g,x,T,S,C,j,E,N,D,B,V,O="middle";if(a==="top")C=this.bottom-y,j=this._getXAxisLabelAlignment();else if(a==="bottom")C=this.top+y,j=this._getXAxisLabelAlignment();else if(a==="left"){const z=this._getYAxisLabelAlignment(h);j=z.textAlign,S=z.x}else if(a==="right"){const z=this._getYAxisLabelAlignment(h);j=z.textAlign,S=z.x}else if(n==="x"){if(a==="center")C=(t.top+t.bottom)/2+m;else if(K(a)){const z=Object.keys(a)[0],A=a[z];C=this.chart.scales[z].getPixelForValue(A)+m}j=this._getXAxisLabelAlignment()}else if(n==="y"){if(a==="center")S=(t.left+t.right)/2-m;else if(K(a)){const z=Object.keys(a)[0],A=a[z];S=this.chart.scales[z].getPixelForValue(A)}j=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(o==="start"?O="top":o==="end"&&(O="bottom"));const k=this._getLabelSizes();for(p=0,g=r.length;p<g;++p){x=r[p],T=x.label;const z=s.setContext(this.getContext(p));E=this.getPixelForTick(p)+s.labelOffset,N=this._resolveTickFontOptions(p),D=N.lineHeight,B=we(T)?T.length:1;const A=B/2,M=z.color,R=z.textStrokeColor,F=z.textStrokeWidth;let P=j;l?(S=E,j==="inner"&&(p===g-1?P=this.options.reverse?"left":"right":p===0?P=this.options.reverse?"right":"left":P="center"),a==="top"?u==="near"||b!==0?V=-B*D+D/2:u==="center"?V=-k.highest.height/2-A*D+D:V=-k.highest.height+D/2:u==="near"||b!==0?V=D/2:u==="center"?V=k.highest.height/2-A*D:V=k.highest.height-B*D,f&&(V*=-1),b!==0&&!z.showLabelBackdrop&&(S+=D/2*Math.sin(b))):(C=E,V=(1-B)*D/2);let Zt;if(z.showLabelBackdrop){const At=Ct(z.backdropPadding),Kt=k.heights[p],Ye=k.widths[p];let Ht=V-At.top,ai=0-At.left;switch(O){case"middle":Ht-=Kt/2;break;case"bottom":Ht-=Kt;break}switch(j){case"center":ai-=Ye/2;break;case"right":ai-=Ye;break;case"inner":p===g-1?ai-=Ye:p>0&&(ai-=Ye/2);break}Zt={left:ai,top:Ht,width:Ye+At.width,height:Kt+At.height,color:z.backdropColor}}v.push({label:T,font:N,textOffset:V,options:{rotation:b,color:M,strokeColor:R,strokeWidth:F,textAlign:P,textBaseline:O,translation:[S,C],backdrop:Zt}})}return v}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-pi(this.labelRotation))return t==="top"?"left":"right";let a="center";return n.align==="start"?a="left":n.align==="end"?a="right":n.align==="inner"&&(a="inner"),a}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:i,mirror:a,padding:s}}=this.options,l=this._getLabelSizes(),r=t+s,o=l.widest.width;let u,d;return n==="left"?a?(d=this.right+s,i==="near"?u="left":i==="center"?(u="center",d+=o/2):(u="right",d+=o)):(d=this.right-r,i==="near"?u="right":i==="center"?(u="center",d-=o/2):(u="left",d=this.left)):n==="right"?a?(d=this.left+s,i==="near"?u="right":i==="center"?(u="center",d-=o/2):(u="left",d-=o)):(d=this.left+r,i==="near"?u="left":i==="center"?(u="center",d+=o/2):(u="right",d=this.right)):u="right",{textAlign:u,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:i,top:a,width:s,height:l}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(i,a,s,l),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const a=this.ticks.findIndex(s=>s.value===t);return a>=0?n.setContext(this.getContext(a)).lineWidth:0}drawGrid(t){const n=this.options.grid,i=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,l;const r=(o,u,d)=>{!d.width||!d.color||(i.save(),i.lineWidth=d.width,i.strokeStyle=d.color,i.setLineDash(d.borderDash||[]),i.lineDashOffset=d.borderDashOffset,i.beginPath(),i.moveTo(o.x,o.y),i.lineTo(u.x,u.y),i.stroke(),i.restore())};if(n.display)for(s=0,l=a.length;s<l;++s){const o=a[s];n.drawOnChartArea&&r({x:o.x1,y:o.y1},{x:o.x2,y:o.y2},o),n.drawTicks&&r({x:o.tx1,y:o.ty1},{x:o.tx2,y:o.ty2},{color:o.tickColor,width:o.tickWidth,borderDash:o.tickBorderDash,borderDashOffset:o.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:i,grid:a}}=this,s=i.setContext(this.getContext()),l=i.display?s.width:0;if(!l)return;const r=a.setContext(this.getContext(0)).lineWidth,o=this._borderValue;let u,d,f,h;this.isHorizontal()?(u=ri(t,this.left,l)-l/2,d=ri(t,this.right,r)+r/2,f=h=o):(f=ri(t,this.top,l)-l/2,h=ri(t,this.bottom,r)+r/2,u=d=o),n.save(),n.lineWidth=s.width,n.strokeStyle=s.color,n.beginPath(),n.moveTo(u,f),n.lineTo(d,h),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const i=this.ctx,a=this._computeLabelArea();a&&No(i,a);const s=this.getLabelItems(t);for(const l of s){const r=l.options,o=l.font,u=l.label,d=l.textOffset;Js(i,u,0,d,o,r)}a&&Mo(i)}drawTitle(){const{ctx:t,options:{position:n,title:i,reverse:a}}=this;if(!i.display)return;const s=Ue(i.font),l=Ct(i.padding),r=i.align;let o=s.lineHeight/2;n==="bottom"||n==="center"||K(n)?(o+=l.bottom,we(i.text)&&(o+=s.lineHeight*(i.text.length-1))):o+=l.top;const{titleX:u,titleY:d,maxWidth:f,rotation:h}=tE(this,o,n,r);Js(t,i.text,0,0,s,{color:i.color,maxWidth:f,rotation:h,textAlign:eE(r,n,a),textBaseline:"middle",translation:[u,d]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,i=Q(t.grid&&t.grid.z,-1),a=Q(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Ya.prototype.draw?[{z:n,draw:s=>{this.draw(s)}}]:[{z:i,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:a,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",a=[];let s,l;for(s=0,l=n.length;s<l;++s){const r=n[s];r[i]===this.id&&(!t||r.type===t)&&a.push(r)}return a}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return Ue(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Gl{constructor(t,n,i){this.type=t,this.scope=n,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let i;aE(n)&&(i=this.register(n));const a=this.items,s=t.id,l=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+t);return s in a||(a[s]=t,nE(t,l,i),this.override&&xe.override(t.id,t.overrides)),l}get(t){return this.items[t]}unregister(t){const n=this.items,i=t.id,a=this.scope;i in n&&delete n[i],a&&i in xe[a]&&(delete xe[a][i],this.override&&delete Mi[i])}}function nE(e,t,n){const i=Zs(Object.create(null),[n?xe.get(n):{},xe.get(t),e.defaults]);xe.set(t,i),e.defaultRoutes&&iE(t,e.defaultRoutes),e.descriptors&&xe.describe(t,e.descriptors)}function iE(e,t){Object.keys(t).forEach(n=>{const i=n.split("."),a=i.pop(),s=[e].concat(i).join("."),l=t[n].split("."),r=l.pop(),o=l.join(".");xe.route(s,a,o,r)})}function aE(e){return"id"in e&&"defaults"in e}class sE{constructor(){this.controllers=new Gl(Os,"datasets",!0),this.elements=new Gl(Hi,"elements"),this.plugins=new Gl(Object,"plugins"),this.scales=new Gl(Ya,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,i){[...n].forEach(a=>{const s=i||this._getRegistryForType(a);i||s.isForType(a)||s===this.plugins&&a.id?this._exec(t,s,a):ee(a,l=>{const r=i||this._getRegistryForType(l);this._exec(t,r,l)})})}_exec(t,n,i){const a=df(t);ce(i["before"+a],[],i),n[t](i),ce(i["after"+a],[],i)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const i=this._typedRegistries[n];if(i.isForType(t))return i}return this.plugins}_get(t,n,i){const a=n.get(t);if(a===void 0)throw new Error('"'+t+'" is not a registered '+i+".");return a}}var Yt=new sE;class lE{constructor(){this._init=void 0}notify(t,n,i,a){if(n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),this._init===void 0)return;const s=a?this._descriptors(t).filter(a):this._descriptors(t),l=this._notify(s,t,n,i);return n==="afterDestroy"&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),l}_notify(t,n,i,a){a=a||{};for(const s of t){const l=s.plugin,r=l[i],o=[n,a,s.options];if(ce(r,o,l)===!1&&a.cancelable)return!1}return!0}invalidate(){le(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const i=t&&t.config,a=Q(i.options&&i.options.plugins,{}),s=rE(i);return a===!1&&!n?[]:cE(t,s,a,n)}_notifyStateChanges(t){const n=this._oldCache||[],i=this._cache,a=(s,l)=>s.filter(r=>!l.some(o=>r.plugin.id===o.plugin.id));this._notify(a(n,i),t,"stop"),this._notify(a(i,n),t,"start")}}function rE(e){const t={},n=[],i=Object.keys(Yt.plugins.items);for(let s=0;s<i.length;s++)n.push(Yt.getPlugin(i[s]));const a=e.plugins||[];for(let s=0;s<a.length;s++){const l=a[s];n.indexOf(l)===-1&&(n.push(l),t[l.id]=!0)}return{plugins:n,localIds:t}}function oE(e,t){return!t&&e===!1?null:e===!0?{}:e}function cE(e,{plugins:t,localIds:n},i,a){const s=[],l=e.getContext();for(const r of t){const o=r.id,u=oE(i[o],a);u!==null&&s.push({plugin:r,options:uE(e.config,{plugin:r,local:n[o]},u,l)})}return s}function uE(e,{plugin:t,local:n},i,a){const s=e.pluginScopeKeys(t),l=e.getOptionScopes(i,s);return n&&t.defaults&&l.push(t.defaults),e.createResolver(l,a,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Xu(e,t){const n=xe.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function dE(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function fE(e,t){return e===t?"_index_":"_value_"}function Pm(e){if(e==="x"||e==="y"||e==="r")return e}function hE(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Gu(e,...t){if(Pm(e))return e;for(const n of t){const i=n.axis||hE(n.position)||e.length>1&&Pm(e[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function $m(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function mE(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(i=>i.xAxisID===e||i.yAxisID===e);if(n.length)return $m(e,"x",n[0])||$m(e,"y",n[0])}return{}}function pE(e,t){const n=Mi[e.type]||{scales:{}},i=t.scales||{},a=Xu(e.type,t),s=Object.create(null);return Object.keys(i).forEach(l=>{const r=i[l];if(!K(r))return console.error(`Invalid scale configuration for scale: ${l}`);if(r._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${l}`);const o=Gu(l,r,mE(l,e),xe.scales[r.type]),u=fE(o,a),d=n.scales||{};s[l]=ws(Object.create(null),[{axis:o},r,d[o],d[u]])}),e.data.datasets.forEach(l=>{const r=l.type||e.type,o=l.indexAxis||Xu(r,t),d=(Mi[r]||{}).scales||{};Object.keys(d).forEach(f=>{const h=dE(f,o),m=l[h+"AxisID"]||h;s[m]=s[m]||Object.create(null),ws(s[m],[{axis:h},i[m],d[f]])})}),Object.keys(s).forEach(l=>{const r=s[l];ws(r,[xe.scales[r.type],xe.scale])}),s}function Dx(e){const t=e.options||(e.options={});t.plugins=Q(t.plugins,{}),t.scales=pE(e,t)}function Ox(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function gE(e){return e=e||{},e.data=Ox(e.data),Dx(e),e}const Qm=new Map,zx=new Set;function Pl(e,t){let n=Qm.get(e);return n||(n=t(),Qm.set(e,n),zx.add(n)),n}const ns=(e,t,n)=>{const i=Jr(t,n);i!==void 0&&e.add(i)};class yE{constructor(t){this._config=gE(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Ox(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Dx(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Pl(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Pl(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Pl(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,i=this.type;return Pl(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const i=this._scopeCache;let a=i.get(t);return(!a||n)&&(a=new Map,i.set(t,a)),a}getOptionScopes(t,n,i){const{options:a,type:s}=this,l=this._cachedScopes(t,i),r=l.get(n);if(r)return r;const o=new Set;n.forEach(d=>{t&&(o.add(t),d.forEach(f=>ns(o,t,f))),d.forEach(f=>ns(o,a,f)),d.forEach(f=>ns(o,Mi[s]||{},f)),d.forEach(f=>ns(o,xe,f)),d.forEach(f=>ns(o,Yu,f))});const u=Array.from(o);return u.length===0&&u.push(Object.create(null)),zx.has(n)&&l.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,Mi[n]||{},xe.datasets[n]||{},{type:n},xe,Yu]}resolveNamedOptions(t,n,i,a=[""]){const s={$shared:!0},{resolver:l,subPrefixes:r}=Zm(this._resolverCache,t,a);let o=l;if(xE(l,n)){s.$shared=!1,i=ti(i)?i():i;const u=this.createResolver(t,i,r);o=Aa(l,i,u)}for(const u of n)s[u]=o[u];return s}createResolver(t,n,i=[""],a){const{resolver:s}=Zm(this._resolverCache,t,i);return K(n)?Aa(s,n,void 0,a):s}}function Zm(e,t,n){let i=e.get(t);i||(i=new Map,e.set(t,i));const a=n.join();let s=i.get(a);return s||(s={resolver:pf(t,n),subPrefixes:n.filter(r=>!r.toLowerCase().includes("hover"))},i.set(a,s)),s}const bE=e=>K(e)&&Object.getOwnPropertyNames(e).some(t=>ti(e[t]));function xE(e,t){const{isScriptable:n,isIndexable:i}=hx(e);for(const a of t){const s=n(a),l=i(a),r=(l||s)&&e[a];if(s&&(ti(r)||bE(r))||l&&we(r))return!0}return!1}var vE="4.5.1";const _E=["top","bottom","left","right","chartArea"];function Km(e,t){return e==="top"||e==="bottom"||_E.indexOf(e)===-1&&t==="x"}function Wm(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function Jm(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),ce(n&&n.onComplete,[e],t)}function SE(e){const t=e.chart,n=t.options.animation;ce(n&&n.onProgress,[e],t)}function kx(e){return bf()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const br={},Im=e=>{const t=kx(e);return Object.values(br).filter(n=>n.canvas===t).pop()};function jE(e,t,n){const i=Object.keys(e);for(const a of i){const s=+a;if(s>=t){const l=e[a];delete e[a],(n>0||s>t)&&(e[s+n]=l)}}}function TE(e,t,n,i){return!n||e.type==="mouseout"?null:i?t:e}var En;let zo=(En=class{static register(...t){Yt.add(...t),ep()}static unregister(...t){Yt.remove(...t),ep()}constructor(t,n){const i=this.config=new yE(n),a=kx(t),s=Im(a);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const l=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||qT(a)),this.platform.updateConfig(i);const r=this.platform.acquireContext(a,l.aspectRatio),o=r&&r.canvas,u=o&&o.height,d=o&&o.width;if(this.id=Mj(),this.ctx=r,this.canvas=o,this.width=d,this.height=u,this._options=l,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new lE,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Wj(f=>this.update(f),l.resizeDelay||0),this._dataChanges=[],br[this.id]=this,!r||!o){console.error("Failed to create chart: can't acquire context from the given item");return}an.listen(this,"complete",Jm),an.listen(this,"progress",SE),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:i,height:a,_aspectRatio:s}=this;return le(t)?n&&s?s:a?i/a:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Yt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Em(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Sm(this.canvas,this.ctx),this}stop(){return an.stop(this),this}resize(t,n){an.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const i=this.options,a=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,l=this.platform.getMaximumSize(a,t,n,s),r=i.devicePixelRatio||this.platform.getDevicePixelRatio(),o=this.width?"resize":"attach";this.width=l.width,this.height=l.height,this._aspectRatio=this.aspectRatio,Em(this,r,!0)&&(this.notifyPlugins("resize",{size:l}),ce(i.onResize,[this,l],this),this.attached&&this._doResize(o)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};ee(n,(i,a)=>{i.id=a})}buildOrUpdateScales(){const t=this.options,n=t.scales,i=this.scales,a=Object.keys(i).reduce((l,r)=>(l[r]=!1,l),{});let s=[];n&&(s=s.concat(Object.keys(n).map(l=>{const r=n[l],o=Gu(l,r),u=o==="r",d=o==="x";return{options:r,dposition:u?"chartArea":d?"bottom":"left",dtype:u?"radialLinear":d?"category":"linear"}}))),ee(s,l=>{const r=l.options,o=r.id,u=Gu(o,r),d=Q(r.type,l.dtype);(r.position===void 0||Km(r.position,u)!==Km(l.dposition))&&(r.position=l.dposition),a[o]=!0;let f=null;if(o in i&&i[o].type===d)f=i[o];else{const h=Yt.getScale(d);f=new h({id:o,type:d,ctx:this.ctx,chart:this}),i[f.id]=f}f.init(r,t)}),ee(a,(l,r)=>{l||delete i[r]}),ee(i,l=>{_t.configure(this,l,l.options),_t.addBox(this,l)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,i=t.length;if(t.sort((a,s)=>a.index-s.index),i>n){for(let a=n;a<i;++a)this._destroyDatasetMeta(a);t.splice(n,i-n)}this._sortedMetasets=t.slice(0).sort(Wm("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((i,a)=>{n.filter(s=>s===i._dataset).length===0&&this._destroyDatasetMeta(a)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let i,a;for(this._removeUnreferencedMetasets(),i=0,a=n.length;i<a;i++){const s=n[i];let l=this.getDatasetMeta(i);const r=s.type||this.config.type;if(l.type&&l.type!==r&&(this._destroyDatasetMeta(i),l=this.getDatasetMeta(i)),l.type=r,l.indexAxis=s.indexAxis||Xu(r,this.options),l.order=s.order||0,l.index=i,l.label=""+s.label,l.visible=this.isDatasetVisible(i),l.controller)l.controller.updateIndex(i),l.controller.linkScales();else{const o=Yt.getController(r),{datasetElementType:u,dataElementType:d}=xe.datasets[r];Object.assign(o,{dataElementType:Yt.getElement(d),datasetElementType:u&&Yt.getElement(u)}),l.controller=new o(this,i),t.push(l.controller)}}return this._updateMetasets(),t}_resetElements(){ee(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),a=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let l=0;for(let u=0,d=this.data.datasets.length;u<d;u++){const{controller:f}=this.getDatasetMeta(u),h=!a&&s.indexOf(f)===-1;f.buildOrUpdateElements(h),l=Math.max(+f.getMaxOverflow(),l)}l=this._minPadding=i.layout.autoPadding?l:0,this._updateLayout(l),a||ee(s,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Wm("z","_idx"));const{_active:r,_lastEvent:o}=this;o?this._eventHandler(o,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){ee(this.scales,t=>{_t.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!fm(n,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:a,count:s}of n){const l=i==="_removeElements"?-s:s;jE(t,a,l)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=s=>new Set(t.filter(l=>l[0]===s).map((l,r)=>r+","+l.splice(1).join(","))),a=i(0);for(let s=1;s<n;s++)if(!fm(a,i(s)))return;return Array.from(a).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;_t.update(this,this.width,this.height,t);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],ee(this.boxes,a=>{i&&a.position==="chartArea"||(a.configure&&a.configure(),this._layers.push(...a._layers()))},this),this._layers.forEach((a,s)=>{a._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n<i;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,i=this.data.datasets.length;n<i;++n)this._updateDataset(n,ti(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const i=this.getDatasetMeta(t),a={meta:i,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",a)!==!1&&(i.controller._update(n),a.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",a))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(an.has(this)?this.attached&&!an.running(this)&&an.start(this):(this.draw(),Jm({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:i,height:a}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(i,a)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,i=[];let a,s;for(a=0,s=n.length;a<s;++a){const l=n[a];(!t||l.visible)&&i.push(l)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,i={meta:t,index:t.index,cancelable:!0},a=jx(this,t);this.notifyPlugins("beforeDatasetDraw",i)!==!1&&(a&&No(n,a),t.controller.draw(),a&&Mo(n),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return Ws(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,i,a){const s=_T.modes[n];return typeof s=="function"?s(this,t,i,a):[]}getDatasetMeta(t){const n=this.data.datasets[t],i=this._metasets;let a=i.filter(s=>s&&s._dataset===n).pop();return a||(a={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},i.push(a)),a}getContext(){return this.$context||(this.$context=Li(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(t,n){const i=this.getDatasetMeta(t);i.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,i){const a=i?"show":"hide",s=this.getDatasetMeta(t),l=s.controller._resolveAnimations(void 0,a);Ir(n)?(s.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),l.update(s,{visible:i}),this.update(r=>r.datasetIndex===t?a:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),an.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Sm(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete br[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,i=(s,l)=>{n.addEventListener(this,s,l),t[s]=l},a=(s,l,r)=>{s.offsetX=l,s.offsetY=r,this._eventHandler(s)};ee(this.options.events,s=>i(s,a))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,i=(o,u)=>{n.addEventListener(this,o,u),t[o]=u},a=(o,u)=>{t[o]&&(n.removeEventListener(this,o,u),delete t[o])},s=(o,u)=>{this.canvas&&this.resize(o,u)};let l;const r=()=>{a("attach",r),this.attached=!0,this.resize(),i("resize",s),i("detach",l)};l=()=>{this.attached=!1,a("resize",s),this._stop(),this._resize(0,0),i("attach",r)},n.isAttached(this.canvas)?r():l()}unbindEvents(){ee(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},ee(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,i){const a=i?"set":"remove";let s,l,r,o;for(n==="dataset"&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+a+"DatasetHoverStyle"]()),r=0,o=t.length;r<o;++r){l=t[r];const u=l&&this.getDatasetMeta(l.datasetIndex).controller;u&&u[a+"HoverStyle"](l.element,l.datasetIndex,l.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],i=t.map(({datasetIndex:s,index:l})=>{const r=this.getDatasetMeta(s);if(!r)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:r.data[l],index:l}});!Kr(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(t,n,i){return this._plugins.notify(this,t,n,i)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,i){const a=this.options.hover,s=(o,u)=>o.filter(d=>!u.some(f=>d.datasetIndex===f.datasetIndex&&d.index===f.index)),l=s(n,t),r=i?t:s(t,n);l.length&&this.updateHoverStyle(l,a.mode,!1),r.length&&a.mode&&this.updateHoverStyle(r,a.mode,!0)}_eventHandler(t,n){const i={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},a=l=>(l.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,a)===!1)return;const s=this._handleEvent(t,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,a),(s||i.changed)&&this.render(),this}_handleEvent(t,n,i){const{_active:a=[],options:s}=this,l=n,r=this._getActiveElements(t,a,i,l),o=Bj(t),u=TE(t,this._lastEvent,i,o);i&&(this._lastEvent=null,ce(s.onHover,[t,r,this],this),o&&ce(s.onClick,[t,r,this],this));const d=!Kr(r,a);return(d||n)&&(this._active=r,this._updateHoverStyles(r,a,n)),this._lastEvent=u,d}_getActiveElements(t,n,i,a){if(t.type==="mouseout")return[];if(!i)return n;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,a)}},H(En,"defaults",xe),H(En,"instances",br),H(En,"overrides",Mi),H(En,"registry",Yt),H(En,"version",vE),H(En,"getChart",Im),En);function ep(){return ee(zo.instances,e=>e._plugins.invalidate())}function Rx(e,t,n=t){e.lineCap=Q(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Q(n.borderDash,t.borderDash)),e.lineDashOffset=Q(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Q(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Q(n.borderWidth,t.borderWidth),e.strokeStyle=Q(n.borderColor,t.borderColor)}function EE(e,t,n){e.lineTo(n.x,n.y)}function CE(e){return e.stepped?d2:e.tension||e.cubicInterpolationMode==="monotone"?f2:EE}function Bx(e,t,n={}){const i=e.length,{start:a=0,end:s=i-1}=n,{start:l,end:r}=t,o=Math.max(a,l),u=Math.min(s,r),d=a<l&&s<l||a>r&&s>r;return{count:i,start:o,loop:t.loop,ilen:u<o&&!d?i+u-o:u-o}}function wE(e,t,n,i){const{points:a,options:s}=t,{count:l,start:r,loop:o,ilen:u}=Bx(a,n,i),d=CE(s);let{move:f=!0,reverse:h}=i||{},m,y,b;for(m=0;m<=u;++m)y=a[(r+(h?u-m:m))%l],!y.skip&&(f?(e.moveTo(y.x,y.y),f=!1):d(e,b,y,h,s.stepped),b=y);return o&&(y=a[(r+(h?u:0))%l],d(e,b,y,h,s.stepped)),!!o}function AE(e,t,n,i){const a=t.points,{count:s,start:l,ilen:r}=Bx(a,n,i),{move:o=!0,reverse:u}=i||{};let d=0,f=0,h,m,y,b,v,p;const g=T=>(l+(u?r-T:T))%s,x=()=>{b!==v&&(e.lineTo(d,v),e.lineTo(d,b),e.lineTo(d,p))};for(o&&(m=a[g(0)],e.moveTo(m.x,m.y)),h=0;h<=r;++h){if(m=a[g(h)],m.skip)continue;const T=m.x,S=m.y,C=T|0;C===y?(S<b?b=S:S>v&&(v=S),d=(f*d+T)/++f):(x(),e.lineTo(T,S),y=C,f=0,b=v=S),p=S}x()}function Pu(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?AE:wE}function NE(e){return e.stepped?G2:e.tension||e.cubicInterpolationMode==="monotone"?P2:mi}function ME(e,t,n,i){let a=t._path;a||(a=t._path=new Path2D,t.path(a,n,i)&&a.closePath()),Rx(e,t.options),e.stroke(a)}function DE(e,t,n,i){const{segments:a,options:s}=t,l=Pu(t);for(const r of a)Rx(e,s,r.style),e.beginPath(),l(e,t,r,{start:n,end:n+i-1})&&e.closePath(),e.stroke()}const OE=typeof Path2D=="function";function zE(e,t,n,i){OE&&!t.options.segment?ME(e,t,n,i):DE(e,t,n,i)}class Vn extends Hi{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const a=i.spanGaps?this._loop:this._fullLoop;L2(this._points,i,t,a,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=J2(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,i=t.length;return i&&n[t[i-1].end]}interpolate(t,n){const i=this.options,a=t[n],s=this.points,l=Sx(this,{property:n,start:a,end:a});if(!l.length)return;const r=[],o=NE(i);let u,d;for(u=0,d=l.length;u<d;++u){const{start:f,end:h}=l[u],m=s[f],y=s[h];if(m===y){r.push(m);continue}const b=Math.abs((a-m[n])/(y[n]-m[n])),v=o(m,y,b,i.stepped);v[n]=t[n],r.push(v)}return r.length===1?r[0]:r}pathSegment(t,n,i){return Pu(this)(t,this,n,i)}path(t,n,i){const a=this.segments,s=Pu(this);let l=this._loop;n=n||0,i=i||this.points.length-n;for(const r of a)l&=s(t,this,r,{start:n,end:n+i-1});return!!l}draw(t,n,i,a){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),zE(t,this,i,a),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}H(Vn,"id","line"),H(Vn,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),H(Vn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),H(Vn,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function tp(e,t,n,i){const a=e.options,{[n]:s}=e.getProps([n],i);return Math.abs(t-s)<a.radius+a.hitRadius}class xr extends Hi{constructor(n){super();H(this,"parsed");H(this,"skip");H(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,i,a){const s=this.options,{x:l,y:r}=this.getProps(["x","y"],a);return Math.pow(n-l,2)+Math.pow(i-r,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(n,i){return tp(this,n,"x",i)}inYRange(n,i){return tp(this,n,"y",i)}getCenterPoint(n){const{x:i,y:a}=this.getProps(["x","y"],n);return{x:i,y:a}}size(n){n=n||this.options||{};let i=n.radius||0;i=Math.max(i,i&&n.hoverRadius||0);const a=i&&n.borderWidth||0;return(i+a)*2}draw(n,i){const a=this.options;this.skip||a.radius<.1||!Ws(this,i,this.size(a)/2)||(n.strokeStyle=a.borderColor,n.lineWidth=a.borderWidth,n.fillStyle=a.backgroundColor,qu(n,a,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}H(xr,"id","point"),H(xr,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),H(xr,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function kE(e,t,n){const i=e.segments,a=e.points,s=t.points,l=[];for(const r of i){let{start:o,end:u}=r;u=ko(o,u,a);const d=$u(n,a[o],a[u],r.loop);if(!t.segments){l.push({source:r,target:d,start:a[o],end:a[u]});continue}const f=Sx(t,d);for(const h of f){const m=$u(n,s[h.start],s[h.end],h.loop),y=_x(r,a,m);for(const b of y)l.push({source:b,target:h,start:{[n]:np(d,m,"start",Math.max)},end:{[n]:np(d,m,"end",Math.min)}})}}return l}function $u(e,t,n,i){if(i)return;let a=t[e],s=n[e];return e==="angle"&&(a=qt(a),s=qt(s)),{property:e,start:a,end:s}}function RE(e,t){const{x:n=null,y:i=null}=e||{},a=t.points,s=[];return t.segments.forEach(({start:l,end:r})=>{r=ko(l,r,a);const o=a[l],u=a[r];i!==null?(s.push({x:o.x,y:i}),s.push({x:u.x,y:i})):n!==null&&(s.push({x:n,y:o.y}),s.push({x:n,y:u.y}))}),s}function ko(e,t,n){for(;t>e;t--){const i=n[t];if(!isNaN(i.x)&&!isNaN(i.y))break}return t}function np(e,t,n,i){return e&&t?i(e[n],t[n]):e?e[n]:t?t[n]:0}function Lx(e,t){let n=[],i=!1;return we(e)?(i=!0,n=e):n=RE(e,t),n.length?new Vn({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function ip(e){return e&&e.fill!==!1}function BE(e,t,n){let a=e[t].fill;const s=[t];let l;if(!n)return a;for(;a!==!1&&s.indexOf(a)===-1;){if(!Ve(a))return a;if(l=e[a],!l)return!1;if(l.visible)return a;s.push(a),a=l.fill}return!1}function LE(e,t,n){const i=YE(e);if(K(i))return isNaN(i.value)?!1:i;let a=parseFloat(i);return Ve(a)&&Math.floor(a)===a?HE(i[0],t,a,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function HE(e,t,n,i){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=i?!1:n}function UE(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:K(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function VE(e,t,n){let i;return e==="start"?i=n:e==="end"?i=t.options.reverse?t.min:t.max:K(e)?i=e.value:i=t.getBaseValue(),i}function YE(e){const t=e.options,n=t.fill;let i=Q(n&&n.target,n);return i===void 0&&(i=!!t.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function qE(e){const{scale:t,index:n,line:i}=e,a=[],s=i.segments,l=i.points,r=FE(t,n);r.push(Lx({x:null,y:t.bottom},i));for(let o=0;o<s.length;o++){const u=s[o];for(let d=u.start;d<=u.end;d++)XE(a,l[d],r)}return new Vn({points:a,options:{}})}function FE(e,t){const n=[],i=e.getMatchingVisibleMetas("line");for(let a=0;a<i.length;a++){const s=i[a];if(s.index===t)break;s.hidden||n.unshift(s.dataset)}return n}function XE(e,t,n){const i=[];for(let a=0;a<n.length;a++){const s=n[a],{first:l,last:r,point:o}=GE(s,t,"x");if(!(!o||l&&r)){if(l)i.unshift(o);else if(e.push(o),!r)break}}e.push(...i)}function GE(e,t,n){const i=e.interpolate(t,n);if(!i)return{};const a=i[n],s=e.segments,l=e.points;let r=!1,o=!1;for(let u=0;u<s.length;u++){const d=s[u],f=l[d.start][n],h=l[d.end][n];if(aa(a,f,h)){r=a===f,o=a===h;break}}return{first:r,last:o,point:i}}class Hx{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,i){const{x:a,y:s,radius:l}=this;return n=n||{start:0,end:zt},t.arc(a,s,l,n.end,n.start,!0),!i.bounds}interpolate(t){const{x:n,y:i,radius:a}=this,s=t.angle;return{x:n+Math.cos(s)*a,y:i+Math.sin(s)*a,angle:s}}}function PE(e){const{chart:t,fill:n,line:i}=e;if(Ve(n))return $E(t,n);if(n==="stack")return qE(e);if(n==="shape")return!0;const a=QE(e);return a instanceof Hx?a:Lx(a,i)}function $E(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function QE(e){return(e.scale||{}).getPointPositionForValue?KE(e):ZE(e)}function ZE(e){const{scale:t={},fill:n}=e,i=UE(n,t);if(Ve(i)){const a=t.isHorizontal();return{x:a?i:null,y:a?null:i}}return null}function KE(e){const{scale:t,fill:n}=e,i=t.options,a=t.getLabels().length,s=i.reverse?t.max:t.min,l=VE(n,t,s),r=[];if(i.grid.circular){const o=t.getPointPositionForValue(0,s);return new Hx({x:o.x,y:o.y,radius:t.getDistanceFromCenterForValue(l)}
vendor: 1,111 bytes, line 81
81)}for(let o=0;o<a;++o)r.push(t.getPointPositionForValue(o,l));return r}function zc(e,t,n){const i=PE(t),{chart:a,index:s,line:l,scale:r,axis:o}=t,u=l.options,d=u.fill,f=u.backgroundColor,{above:h=f,below:m=f}=d||{},y=a.getDatasetMeta(s),b=jx(a,y);i&&l.points.length&&(No(e,n),WE(e,{line:l,target:i,above:h,below:m,area:n,scale:r,axis:o,clip:b}),Mo(e))}function WE(e,t){const{line:n,target:i,above:a,below:s,area:l,scale:r,clip:o}=t,u=n._loop?"angle":t.axis;e.save();let d=s;s!==a&&(u==="x"?(ap(e,i,l.top),kc(e,{line:n,target:i,color:a,scale:r,property:u,clip:o}),e.restore(),e.save(),ap(e,i,l.bottom)):u==="y"&&(sp(e,i,l.left),kc(e,{line:n,target:i,color:s,scale:r,property:u,clip:o}),e.restore(),e.save(),sp(e,i,l.right),d=a)),kc(e,{line:n,target:i,color:d,scale:r,property:u,clip:o}),e.restore()}function ap(e,t,n){const{segments:i,points:a}=t;let s=!0,l=!1;e.beginPath();for(const r of i){const{start:o,end:u}=r,d=a[o],f=a[ko(o,u,a)];s?(e.moveTo(d.x,d.y),s=!1):(e.lineTo(d.x,n),e.lineTo(d.x,d.y)),l=!!t.pathSegment(e,r,{move:l}),l?e.closePath():e.lineTo(f.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}
vendor: 19,628 bytes, lines 81-83
81function sp(e,t,n){const{segments:i,points:a}=t;let s=!0,l=!1;e.beginPath();for(const r of i){const{start:o,end:u}=r,d=a[o],f=a[ko(o,u,a)];s?(e.moveTo(d.x,d.y),s=!1):(e.lineTo(n,d.y),e.lineTo(d.x,d.y)),l=!!t.pathSegment(e,r,{move:l}),l?e.closePath():e.lineTo(n,f.y)}e.lineTo(n,t.first().y),e.closePath(),e.clip()}function kc(e,t){const{line:n,target:i,property:a,color:s,scale:l,clip:r}=t,o=kE(n,i,a);for(const{source:u,target:d,start:f,end:h}of o){const{style:{backgroundColor:m=s}={}}=u,y=i!==!0;e.save(),e.fillStyle=m,JE(e,l,r,y&&$u(a,f,h)),e.beginPath();const b=!!n.pathSegment(e,u);let v;if(y){b?e.closePath():lp(e,i,h,a);const p=!!i.pathSegment(e,d,{move:b,reverse:!0});v=b&&p,v||lp(e,i,f,a)}e.closePath(),e.fill(v?"evenodd":"nonzero"),e.restore()}}function JE(e,t,n,i){const a=t.chart.chartArea,{property:s,start:l,end:r}=i||{};if(s==="x"||s==="y"){let o,u,d,f;s==="x"?(o=l,u=a.top,d=r,f=a.bottom):(o=a.left,u=l,d=a.right,f=r),e.beginPath(),n&&(o=Math.max(o,n.left),d=Math.min(d,n.right),u=Math.max(u,n.top),f=Math.min(f,n.bottom)),e.rect(o,u,d-o,f-u),e.clip()}}function lp(e,t,n,i){const a=t.interpolate(n,i);a&&e.lineTo(a.x,a.y)}var IE={id:"filler",afterDatasetsUpdate(e,t,n){const i=(e.data.datasets||[]).length,a=[];let s,l,r,o;for(l=0;l<i;++l)s=e.getDatasetMeta(l),r=s.dataset,o=null,r&&r.options&&r instanceof Vn&&(o={visible:e.isDatasetVisible(l),index:l,fill:LE(r,l,i),chart:e,axis:s.controller.options.indexAxis,scale:s.vScale,line:r}),s.$filler=o,a.push(o);for(l=0;l<i;++l)o=a[l],!(!o||o.fill===!1)&&(o.fill=BE(a,l,n.propagate))},beforeDraw(e,t,n){const i=n.drawTime==="beforeDraw",a=e.getSortedVisibleDatasetMetas(),s=e.chartArea;for(let l=a.length-1;l>=0;--l){const r=a[l].$filler;r&&(r.line.updateControlPoints(s,r.axis),i&&r.fill&&zc(e.ctx,r,s))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const i=e.getSortedVisibleDatasetMetas();for(let a=i.length-1;a>=0;--a){const s=i[a].$filler;ip(s)&&zc(e.ctx,s,e.chartArea)}},beforeDatasetDraw(e,t,n){const i=t.meta.$filler;!ip(i)||n.drawTime!=="beforeDatasetDraw"||zc(e.ctx,i,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const rp=(e,t)=>{let{boxHeight:n=t,boxWidth:i=t}=e;return e.usePointStyle&&(n=Math.min(n,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(t,n)}},eC=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class op extends Hi{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,i){this.maxWidth=t,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=ce(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(i=>t.filter(i,this.chart.data))),t.sort&&(n=n.sort((i,a)=>t.sort(i,a,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const i=t.labels,a=Ue(i.font),s=a.size,l=this._computeTitleHeight(),{boxWidth:r,itemHeight:o}=rp(i,s);let u,d;n.font=a.string,this.isHorizontal()?(u=this.maxWidth,d=this._fitRows(l,s,r,o)+10):(d=this.maxHeight,u=this._fitCols(l,a,r,o)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,i,a){const{ctx:s,maxWidth:l,options:{labels:{padding:r}}}=this,o=this.legendHitBoxes=[],u=this.lineWidths=[0],d=a+r;let f=t;s.textAlign="left",s.textBaseline="middle";let h=-1,m=-d;return this.legendItems.forEach((y,b)=>{const v=i+n/2+s.measureText(y.text).width;(b===0||u[u.length-1]+v+2*r>l)&&(f+=d,u[u.length-(b>0?0:1)]=0,m+=d,h++),o[b]={left:0,top:m,row:h,width:v,height:a},u[u.length-1]+=v+r}),f}_fitCols(t,n,i,a){const{ctx:s,maxHeight:l,options:{labels:{padding:r}}}=this,o=this.legendHitBoxes=[],u=this.columnSizes=[],d=l-t;let f=r,h=0,m=0,y=0,b=0;return this.legendItems.forEach((v,p)=>{const{itemWidth:g,itemHeight:x}=tC(i,n,s,v,a);p>0&&m+x+2*r>d&&(f+=h+r,u.push({width:h,height:m}),y+=h+r,b++,h=m=0),o[p]={left:y,top:m,col:b,width:g,height:x},h=Math.max(h,g),m+=x+r}),f+=h,u.push({width:h,height:m}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:a},rtl:s}}=this,l=pa(s,this.left,this.width);if(this.isHorizontal()){let r=0,o=He(i,this.left+a,this.right-this.lineWidths[r]);for(const u of n)r!==u.row&&(r=u.row,o=He(i,this.left+a,this.right-this.lineWidths[r])),u.top+=this.top+t+a,u.left=l.leftForLtr(l.x(o),u.width),o+=u.width+a}else{let r=0,o=He(i,this.top+t+a,this.bottom-this.columnSizes[r].height);for(const u of n)u.col!==r&&(r=u.col,o=He(i,this.top+t+a,this.bottom-this.columnSizes[r].height)),u.top=o,u.left+=this.left+a,u.left=l.leftForLtr(l.x(u.left),u.width),o+=u.height+a}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;No(t,this),this._draw(),Mo(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:i,ctx:a}=this,{align:s,labels:l}=t,r=xe.color,o=pa(t.rtl,this.left,this.width),u=Ue(l.font),{padding:d}=l,f=u.size,h=f/2;let m;this.drawTitle(),a.textAlign=o.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=u.string;const{boxWidth:y,boxHeight:b,itemHeight:v}=rp(l,f),p=function(C,j,E){if(isNaN(y)||y<=0||isNaN(b)||b<0)return;a.save();const N=Q(E.lineWidth,1);if(a.fillStyle=Q(E.fillStyle,r),a.lineCap=Q(E.lineCap,"butt"),a.lineDashOffset=Q(E.lineDashOffset,0),a.lineJoin=Q(E.lineJoin,"miter"),a.lineWidth=N,a.strokeStyle=Q(E.strokeStyle,r),a.setLineDash(Q(E.lineDash,[])),l.usePointStyle){const D={radius:b*Math.SQRT2/2,pointStyle:E.pointStyle,rotation:E.rotation,borderWidth:N},B=o.xPlus(C,y/2),V=j+h;dx(a,D,B,V,l.pointStyleWidth&&y)}else{const D=j+Math.max((f-b)/2,0),B=o.leftForLtr(C,y),V=Ds(E.borderRadius);a.beginPath(),Object.values(V).some(O=>O!==0)?Fu(a,{x:B,y:D,w:y,h:b,radius:V}):a.rect(B,D,y,b),a.fill(),N!==0&&a.stroke()}a.restore()},g=function(C,j,E){Js(a,E.text,C,j+v/2,u,{strikethrough:E.hidden,textAlign:o.textAlign(E.textAlign)})},x=this.isHorizontal(),T=this._computeTitleHeight();x?m={x:He(s,this.left+d,this.right-i[0]),y:this.top+d+T,line:0}:m={x:this.left+d,y:He(s,this.top+T+d,this.bottom-n[0].height),line:0},bx(this.ctx,t.textDirection);const S=v+d;this.legendItems.forEach((C,j)=>{a.strokeStyle=C.fontColor,a.fillStyle=C.fontColor;const E=a.measureText(C.text).width,N=o.textAlign(C.textAlign||(C.textAlign=l.textAlign)),D=y+h+E;let B=m.x,V=m.y;o.setWidth(this.width),x?j>0&&B+D+d>this.right&&(V=m.y+=S,m.line++,B=m.x=He(s,this.left+d,this.right-i[m.line])):j>0&&V+S>this.bottom&&(B=m.x=B+n[m.line].width+d,m.line++,V=m.y=He(s,this.top+T+d,this.bottom-n[m.line].height));const O=o.x(B);if(p(O,V,C),B=Jj(N,B+y+h,x?B+D:this.right,t.rtl),g(o.x(B),V,C),x)m.x+=D+d;else if(typeof C.text!="string"){const k=u.lineHeight;m.y+=Ux(C,k)+d}else m.y+=S}),xx(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,i=Ue(n.font),a=Ct(n.padding);if(!n.display)return;const s=pa(t.rtl,this.left,this.width),l=this.ctx,r=n.position,o=i.size/2,u=a.top+o;let d,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),d=this.top+u,f=He(t.align,f,this.right-h);else{const y=this.columnSizes.reduce((b,v)=>Math.max(b,v.height),0);d=u+He(t.align,this.top,this.bottom-y-t.labels.padding-this._computeTitleHeight())}const m=He(r,f,f+h);l.textAlign=s.textAlign(hf(r)),l.textBaseline="middle",l.strokeStyle=n.color,l.fillStyle=n.color,l.font=i.string,Js(l,n.text,m,d,i)}_computeTitleHeight(){const t=this.options.title,n=Ue(t.font),i=Ct(t.padding);return t.display?n.lineHeight+i.height:0}_getLegendItemAt(t,n){let i,a,s;if(aa(t,this.left,this.right)&&aa(n,this.top,this.bottom)){for(s=this.legendHitBoxes,i=0;i<s.length;++i)if(a=s[i],aa(t,a.left,a.left+a.width)&&aa(n,a.top,a.top+a.height))return this.legendItems[i]}return null}handleEvent(t){const n=this.options;if(!aC(t.type,n))return;const i=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const a=this._hoveredItem,s=eC(a,i);a&&!s&&ce(n.onLeave,[t,a,this],this),this._hoveredItem=i,i&&!s&&ce(n.onHover,[t,i,this],this)}else i&&ce(n.onClick,[t,i,this],this)}}function tC(e,t,n,i,a){const s=nC(i,e,t,n),l=iC(a,i,t.lineHeight);return{itemWidth:s,itemHeight:l}}function nC(e,t,n,i){let a=e.text;return a&&typeof a!="string"&&(a=a.reduce((s,l)=>s.length>l.length?s:l)),t+n.size/2+i.measureText(a).width}function iC(e,t,n){let i=e;return typeof t.text!="string"&&(i=Ux(t,n)),i}function Ux(e,t){const n=e.text?e.text.length:0;return t*n}function aC(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var sC={id:"legend",_element:op,start(e,t,n){const i=e.legend=new op({ctx:e.ctx,options:n,chart:e});_t.configure(e,i,n),_t.addBox(e,i)},stop(e){_t.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const i=e.legend;_t.configure(e,i,n),i.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const i=t.datasetIndex,a=n.chart;a.isDatasetVisible(i)?(a.hide(i),t.hidden=!0):(a.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:a,color:s,useBorderRadius:l,borderRadius:r}}=e.legend.options;return e._getSortedDatasetMetas().map(o=>{const u=o.controller.getStyle(n?0:void 0),d=Ct(u.borderWidth);return{text:t[o.index].label,fillStyle:u.backgroundColor,fontColor:s,hidden:!o.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:u.borderColor,pointStyle:i||u.pointStyle,rotation:u.rotation,textAlign:a||u.textAlign,borderRadius:l&&(r||u.borderRadius),datasetIndex:o.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Vx extends Hi{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const a=we(i.text)?i.text.length:1;this._padding=Ct(i.padding);const s=a*Ue(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:i,bottom:a,right:s,options:l}=this,r=l.align;let o=0,u,d,f;return this.isHorizontal()?(d=He(r,i,s),f=n+t,u=s-i):(l.position==="left"?(d=i+t,f=He(r,a,n),o=Oe*-.5):(d=s-t,f=He(r,n,a),o=Oe*.5),u=a-n),{titleX:d,titleY:f,maxWidth:u,rotation:o}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const i=Ue(n.font),s=i.lineHeight/2+this._padding.top,{titleX:l,titleY:r,maxWidth:o,rotation:u}=this._drawArgs(s);Js(t,n.text,0,0,i,{color:n.color,maxWidth:o,rotation:u,textAlign:hf(n.align),textBaseline:"middle",translation:[l,r]})}}function lC(e,t){const n=new Vx({ctx:e.ctx,options:t,chart:e});_t.configure(e,n,t),_t.addBox(e,n),e.titleBlock=n}var rC={id:"title",_element:Vx,start(e,t,n){lC(e,n)},stop(e){const t=e.titleBlock;_t.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const i=e.titleBlock;_t.configure(e,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const us={average(e){if(!e.length)return!1;let t,n,i=new Set,a=0,s=0;for(t=0,n=e.length;t<n;++t){const r=e[t].element;if(r&&r.hasValue()){const o=r.tooltipPosition();i.add(o.x),a+=o.y,++s}}return s===0||i.size===0?!1:{x:[...i].reduce((r,o)=>r+o)/i.size,y:a/s}},nearest(e,t){if(!e.length)return!1;let n=t.x,i=t.y,a=Number.POSITIVE_INFINITY,s,l,r;for(s=0,l=e.length;s<l;++s){const o=e[s].element;if(o&&o.hasValue()){const u=o.getCenterPoint(),d=Vu(t,u);d<a&&(a=d,r=o)}}if(r){const o=r.tooltipPosition();n=o.x,i=o.y}return{x:n,y:i}}};function Vt(e,t){return t&&(we(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function sn(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(` 82`)>-1?e.split(` 83`):e}function oC(e,t){const{element:n,datasetIndex:i,index:a}=t,s=e.getDatasetMeta(i).controller,{label:l,value:r}=s.getLabelAndValue(a);return{chart:e,label:l,parsed:s.getParsed(a),raw:e.data.datasets[i].data[a],formattedValue:r,dataset:s.getDataset(),dataIndex:a,datasetIndex:i,element:n}}function cp(e,t){const n=e.chart.ctx,{body:i,footer:a,title:s}=e,{boxWidth:l,boxHeight:r}=t,o=Ue(t.bodyFont),u=Ue(t.titleFont),d=Ue(t.footerFont),f=s.length,h=a.length,m=i.length,y=Ct(t.padding);let b=y.height,v=0,p=i.reduce((T,S)=>T+S.before.length+S.lines.length+S.after.length,0);if(p+=e.beforeBody.length+e.afterBody.length,f&&(b+=f*u.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),p){const T=t.displayColors?Math.max(r,o.lineHeight):o.lineHeight;b+=m*T+(p-m)*o.lineHeight+(p-1)*t.bodySpacing}h&&(b+=t.footerMarginTop+h*d.lineHeight+(h-1)*t.footerSpacing);let g=0;const x=function(T){v=Math.max(v,n.measureText(T).width+g)};return n.save(),n.font=u.string,ee(e.title,x),n.font=o.string,ee(e.beforeBody.concat(e.afterBody),x),g=t.displayColors?l+2+t.boxPadding:0,ee(i,T=>{ee(T.before,x),ee(T.lines,x),ee(T.after,x)}),g=0,n.font=d.string,ee(e.footer,x),n.restore(),v+=y.width,{width:v,height:b}}function cC(e,t){const{y:n,height:i}=t;return n<i/2?"top":n>e.height-i/2?"bottom":"center"}function uC(e,t,n,i){const{x:a,width:s}=i,l=n.caretSize+n.caretPadding;if(e==="left"&&a+s+l>t.width||e==="right"&&a-s-l<0)return!0}function dC(e,t,n,i){const{x:a,width:s}=n,{width:l,chartArea:{left:r,right:o}}=e;let u="center";return i==="center"?u=a<=(r+o)/2?"left":"right":a<=s/2?u="left":a>=l-s/2&&(u="right"),uC(u,e,t,n)&&(u="center"),u}function up(e,t,n){const i=n.yAlign||t.yAlign||cC(e,n);return{xAlign:n.xAlign||t.xAlign||dC(e,t,n,i),yAlign:i}}function fC(e,t){let{x:n,width:i}=e;return t==="right"?n-=i:t==="center"&&(n-=i/2),n}function hC(e,t,n){let{y:i,height:a}=e;return t==="top"?i+=n:t==="bottom"?i-=a+n:i-=a/2,i}function dp(e,t,n,i){const{caretSize:a,caretPadding:s,cornerRadius:l}=e,{xAlign:r,yAlign:o}=n,u=a+s,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:m}=Ds(l);let y=fC(t,r);const b=hC(t,o,u);return o==="center"?r==="left"?y+=u:r==="right"&&(y-=u):r==="left"?y-=Math.max(d,h)+a:r==="right"&&(y+=Math.max(f,m)+a),{x:vt(y,0,i.width-t.width),y:vt(b,0,i.height-t.height)}}function $l(e,t,n){const i=Ct(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-i.right:e.x+i.left}function fp(e){return Vt([],sn(e))}function mC(e,t,n){return Li(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function hp(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Yx={beforeTitle:tn,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return n[t.dataIndex]}return""},afterTitle:tn,beforeBody:tn,beforeLabel:tn,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return le(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:tn,afterBody:tn,beforeFooter:tn,footer:tn,afterFooter:tn};function Qe(e,t,n,i){const a=e[t].call(n,i);return typeof a>"u"?Yx[t].call(n,i):a}class Qu extends Hi{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,i=this.options.setContext(this.getContext()),a=i.enabled&&n.options.animation&&i.animations,s=new Tx(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=mC(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:i}=n,a=Qe(i,"beforeTitle",this,t),s=Qe(i,"title",this,t),l=Qe(i,"afterTitle",this,t);let r=[];return r=Vt(r,sn(a)),r=Vt(r,sn(s)),r=Vt(r,sn(l)),r}getBeforeBody(t,n){return fp(Qe(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:i}=n,a=[];return ee(t,s=>{const l={before:[],lines:[],after:[]},r=hp(i,s);Vt(l.before,sn(Qe(r,"beforeLabel",this,s))),Vt(l.lines,Qe(r,"label",this,s)),Vt(l.after,sn(Qe(r,"afterLabel",this,s))),a.push(l)}),a}getAfterBody(t,n){return fp(Qe(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:i}=n,a=Qe(i,"beforeFooter",this,t),s=Qe(i,"footer",this,t),l=Qe(i,"afterFooter",this,t);let r=[];return r=Vt(r,sn(a)),r=Vt(r,sn(s)),r=Vt(r,sn(l)),r}_createItems(t){const n=this._active,i=this.chart.data,a=[],s=[],l=[];let r=[],o,u;for(o=0,u=n.length;o<u;++o)r.push(oC(this.chart,n[o]));return t.filter&&(r=r.filter((d,f,h)=>t.filter(d,f,h,i))),t.itemSort&&(r=r.sort((d,f)=>t.itemSort(d,f,i))),ee(r,d=>{const f=hp(t.callbacks,d);a.push(Qe(f,"labelColor",this,d)),s.push(Qe(f,"labelPointStyle",this,d)),l.push(Qe(f,"labelTextColor",this,d))}),this.labelColors=a,this.labelPointStyles=s,this.labelTextColors=l,this.dataPoints=r,r}update(t,n){const i=this.options.setContext(this.getContext()),a=this._active;let s,l=[];if(!a.length)this.opacity!==0&&(s={opacity:0});else{const r=us[i.position].call(this,a,this._eventPosition);l=this._createItems(i),this.title=this.getTitle(l,i),this.beforeBody=this.getBeforeBody(l,i),this.body=this.getBody(l,i),this.afterBody=this.getAfterBody(l,i),this.footer=this.getFooter(l,i
vendor: 5,128 bytes, line 83
83);const o=this._size=cp(this,i),u=Object.assign({},r,o),d=up(this.chart,i,u),f=dp(i,u,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,s={opacity:1,x:f.x,y:f.y,width:o.width,height:o.height,caretX:r.x,caretY:r.y}}this._tooltipItems=l,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,i,a){const s=this.getCaretPosition(t,i,a);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(t,n,i){const{xAlign:a,yAlign:s}=this,{caretSize:l,cornerRadius:r}=i,{topLeft:o,topRight:u,bottomLeft:d,bottomRight:f}=Ds(r),{x:h,y:m}=t,{width:y,height:b}=n;let v,p,g,x,T,S;return s==="center"?(T=m+b/2,a==="left"?(v=h,p=v-l,x=T+l,S=T-l):(v=h+y,p=v+l,x=T-l,S=T+l),g=v):(a==="left"?p=h+Math.max(o,d)+l:a==="right"?p=h+y-Math.max(u,f)-l:p=this.caretX,s==="top"?(x=m,T=x-l,v=p-l,g=p+l):(x=m+b,T=x+l,v=p+l,g=p-l),S=x),{x1:v,x2:p,x3:g,y1:x,y2:T,y3:S}}drawTitle(t,n,i){const a=this.title,s=a.length;let l,r,o;if(s){const u=pa(i.rtl,this.x,this.width);for(t.x=$l(this,i.titleAlign,i),n.textAlign=u.textAlign(i.titleAlign),n.textBaseline="middle",l=Ue(i.titleFont),r=i.titleSpacing,n.fillStyle=i.titleColor,n.font=l.string,o=0;o<s;++o)n.fillText(a[o],u.x(t.x),t.y+l.lineHeight/2),t.y+=l.lineHeight+r,o+1===s&&(t.y+=i.titleMarginBottom-r)}}_drawColorBox(t,n,i,a,s){const l=this.labelColors[i],r=this.labelPointStyles[i],{boxHeight:o,boxWidth:u}=s,d=Ue(s.bodyFont),f=$l(this,"left",s),h=a.x(f),m=o<d.lineHeight?(d.lineHeight-o)/2:0,y=n.y+m;if(s.usePointStyle){const b={radius:Math.min(u,o)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},v=a.leftForLtr(h,u)+u/2,p=y+o/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,qu(t,b,v,p),t.strokeStyle=l.borderColor,t.fillStyle=l.backgroundColor,qu(t,b,v,p)}else{t.lineWidth=K(l.borderWidth)?Math.max(...Object.values(l.borderWidth)):l.borderWidth||1,t.strokeStyle=l.borderColor,t.setLineDash(l.borderDash||[]),t.lineDashOffset=l.borderDashOffset||0;const b=a.leftForLtr(h,u),v=a.leftForLtr(a.xPlus(h,1),u-2),p=Ds(l.borderRadius);Object.values(p).some(g=>g!==0)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,Fu(t,{x:b,y,w:u,h:o,radius:p}),t.fill(),t.stroke(),t.fillStyle=l.backgroundColor,t.beginPath(),Fu(t,{x:v,y:y+1,w:u-2,h:o-2,radius:p}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(b,y,u,o),t.strokeRect(b,y,u,o),t.fillStyle=l.backgroundColor,t.fillRect(v,y+1,u-2,o-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,n,i){const{body:a}=this,{bodySpacing:s,bodyAlign:l,displayColors:r,boxHeight:o,boxWidth:u,boxPadding:d}=i,f=Ue(i.bodyFont);let h=f.lineHeight,m=0;const y=pa(i.rtl,this.x,this.width),b=function(E){n.fillText(E,y.x(t.x+m),t.y+h/2),t.y+=h+s},v=y.textAlign(l);let p,g,x,T,S,C,j;for(n.textAlign=l,n.textBaseline="middle",n.font=f.string,t.x=$l(this,v,i),n.fillStyle=i.bodyColor,ee(this.beforeBody,b),m=r&&v!=="right"?l==="center"?u/2+d:u+2+d:0,T=0,C=a.length;T<C;++T){for(p=a[T],g=this.labelTextColors[T],n.fillStyle=g,ee(p.before,b),x=p.lines,r&&x.length&&(this._drawColorBox(n,t,T,y,i),h=Math.max(f.lineHeight,o)),S=0,j=x.length;S<j;++S)b(x[S]),h=f.lineHeight;ee(p.after,b)}m=0,h=f.lineHeight,ee(this.afterBody,b),t.y-=s}drawFooter(t,n,i){const a=this.footer,s=a.length;let l,r;if(s){const o=pa(i.rtl,this.x,this.width);for(t.x=$l(this,i.footerAlign,i),t.y+=i.footerMarginTop,n.textAlign=o.textAlign(i.footerAlign),n.textBaseline="middle",l=Ue(i.footerFont),n.fillStyle=i.footerColor,n.font=l.string,r=0;r<s;++r)n.fillText(a[r],o.x(t.x),t.y+l.lineHeight/2),t.y+=l.lineHeight+i.footerSpacing}}drawBackground(t,n,i,a){const{xAlign:s,yAlign:l}=this,{x:r,y:o}=t,{width:u,height:d}=i,{topLeft:f,topRight:h,bottomLeft:m,bottomRight:y}=Ds(a.cornerRadius);n.fillStyle=a.backgroundColor,n.strokeStyle=a.borderColor,n.lineWidth=a.borderWidth,n.beginPath(),n.moveTo(r+f,o),l==="top"&&this.drawCaret(t,n,i,a),n.lineTo(r+u-h,o),n.quadraticCurveTo(r+u,o,r+u,o+h),l==="center"&&s==="right"&&this.drawCaret(t,n,i,a),n.lineTo(r+u,o+d-y),n.quadraticCurveTo(r+u,o+d,r+u-y,o+d),l==="bottom"&&this.drawCaret(t,n,i,a),n.lineTo(r+m,o+d),n.quadraticCurveTo(r,o+d,r,o+d-m),l==="center"&&s==="left"&&this.drawCaret(t,n,i,a),n.lineTo(r,o+f),n.quadraticCurveTo(r,o,r+f,o),n.closePath(),n.fill(),a.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,i=this.$animations,a=i&&i.x,s=i&&i.y;if(a||s){const l=us[t.position].call(this,this._active,this._eventPosition);if(!l)return;const r=this._size=cp(this,t),o=Object.assign({},l,this._size),u=up(n,t,o),d=dp(t,o,u,n);(a._to!==d.x||s._to!==d.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=r.width,this.height=r.height,this.caretX=l.x,this.caretY=l.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const a={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const l=Ct(n.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;
vendor: 15,072 bytes, line 83
83n.enabled&&r&&(t.save(),t.globalAlpha=i,this.drawBackground(s,t,a,n),bx(t,n.textDirection),s.y+=l.top,this.drawTitle(s,t,n),this.drawBody(s,t,n),this.drawFooter(s,t,n),xx(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const i=this._active,a=t.map(({datasetIndex:r,index:o})=>{const u=this.chart.getDatasetMeta(r);if(!u)throw new Error("Cannot find a dataset at index "+r);return{datasetIndex:r,element:u.data[o],index:o}}),s=!Kr(i,a),l=this._positionChanged(a,n);(s||l)&&(this._active=a,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,s=this._active||[],l=this._getActiveElements(t,s,n,i),r=this._positionChanged(l,t),o=n||!Kr(l,s)||r;return o&&(this._active=l,(a.enabled||a.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),o}_getActiveElements(t,n,i,a){const s=this.options;if(t.type==="mouseout")return[];if(!a)return n.filter(r=>this.chart.data.datasets[r.datasetIndex]&&this.chart.getDatasetMeta(r.datasetIndex).controller.getParsed(r.index)!==void 0);const l=this.chart.getElementsAtEventForMode(t,s.mode,s,i);return s.reverse&&l.reverse(),l}_positionChanged(t,n){const{caretX:i,caretY:a,options:s}=this,l=us[s.position].call(this,t,n);return l!==!1&&(i!==l.x||a!==l.y)}}H(Qu,"positioners",us);var pC={id:"tooltip",_element:Qu,positioners:us,afterInit(e,t,n){n&&(e.tooltip=new Qu({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Yx},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const gC=(e,t,n,i)=>(typeof t=="string"?(n=e.push(t)-1,i.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function yC(e,t,n,i){const a=e.indexOf(t);if(a===-1)return gC(e,t,n,i);const s=e.lastIndexOf(t);return a!==s?n:a}const bC=(e,t)=>e===null?null:vt(Math.round(e),0,t);function mp(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Zu extends Ya{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const i=this.getLabels();for(const{index:a,label:s}of n)i[a]===s&&i.splice(a,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(le(t))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===t?n:yC(i,t,Q(n,t),this._addedLabels),bC(n,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:i,max:a}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),n||(a=this.getLabels().length-1)),this.min=i,this.max=a}buildTicks(){const t=this.min,n=this.max,i=this.options.offset,a=[];let s=this.getLabels();s=t===0&&n===s.length-1?s:s.slice(t,n+1),this._valueRange=Math.max(s.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let l=t;l<=n;l++)a.push({value:l});return a}getLabelForValue(t){return mp.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}H(Zu,"id","category"),H(Zu,"defaults",{ticks:{callback:mp}});function xC(e,t){const n=[],{bounds:a,step:s,min:l,max:r,precision:o,count:u,maxTicks:d,maxDigits:f,includeBounds:h}=e,m=s||1,y=d-1,{min:b,max:v}=t,p=!le(l),g=!le(r),x=!le(u),T=(v-b)/(f+1);let S=mm((v-b)/y/m)*m,C,j,E,N;if(S<1e-14&&!p&&!g)return[{value:b},{value:v}];N=Math.ceil(v/S)-Math.floor(b/S),N>y&&(S=mm(N*S/y/m)*m),le(o)||(C=Math.pow(10,o),S=Math.ceil(S*C)/C),a==="ticks"?(j=Math.floor(b/S)*S,E=Math.ceil(v/S)*S):(j=b,E=v),p&&g&&s&&Yj((r-l)/s,S/1e3)?(N=Math.round(Math.min((r-l)/S,d)),S=(r-l)/N,j=l,E=r):x?(j=p?l:j,E=g?r:E,N=u-1,S=(E-j)/N):(N=(E-j)/S,As(N,Math.round(N),S/1e3)?N=Math.round(N):N=Math.ceil(N));const D=Math.max(pm(S),pm(j));C=Math.pow(10,le(o)?D:o),j=Math.round(j*C)/C,E=Math.round(E*C)/C;let B=0;for(p&&(h&&j!==l?(n.push({value:l}),j<l&&B++,As(Math.round((j+B*S)*C)/C,l,pp(l,T,e))&&B++):j<l&&B++);B<N;++B){const V=Math.round((j+B*S)*C)/C;if(g&&V>r)break;n.push({value:V})}return g&&h&&E!==r?n.length&&As(n[n.length-1].value,r,pp(r,T,e))?n[n.length-1].value=r:n.push({value:r}):(!g||E===r)&&n.push({value:E}),n}function pp(e,t,{horizontal:n,minRotation:i}){const a=pi(i),s=(n?Math.sin(a):Math.cos(a))||.001,l=.75*t*(""+e).length;return Math.min(t/s,l)}class vC extends Ya{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return le(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:a,max:s}=this;const l=o=>a=n?a:o,r=o=>s=i?s:o;if(t){const o=wa(a),u=wa(s);o<0&&u<0?r(0):o>0&&u>0&&l(0)}if(a===s){let o=s===0?1:Math.abs(s*.05);r(s+o),t||l(a-o)}this.min=a,this.max=s}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=t,a;return i?(a=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,a>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${a} ticks. Limiting to 1000.`),a=1e3)):(a=this.computeTickLimit(),n=n||11),n&&(a=Math.min(n,a)),a}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const a={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},s=this._range||this,l=xC(a,s);return t.bounds==="ticks"&&qj(l,this,"value"),t.reverse?(l.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),l}configure(){const t=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const a=(i-n)/Math.max(t.length-1,1)/2;n-=a,i+=a}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(t){return cx(t,this.chart.options.locale,this.options.ticks.format)}}class Ku extends vC{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Ve(t)?t:0,this.max=Ve(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,i=pi(this.options.ticks.minRotation),a=(t?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/a))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}H(Ku,"id","linear"),H(Ku,"defaults",{ticks:{callback:ux.formatters.numeric}});const Ro={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},We=Object.keys(Ro);function gp(e,t){return e-t}function yp(e,t){if(le(t))return null;const n=e._adapter,{parser:i,round:a,isoWeekday:s}=e._parseOpts;let l=t;return typeof i=="function"&&(l=i(l)),Ve(l)||(l=typeof i=="string"?n.parse(l,i):n.parse(l)),l===null?null:(a&&(l=a==="week"&&(Ks(s)||s===!0)?n.startOf(l,"isoWeek",s):n.startOf(l,a)),+l)}function bp(e,t,n,i){const a=We.length;for(let s=We.indexOf(e);s<a-1;++s){const l=Ro[We[s]],r=l.steps?l.steps:Number.MAX_SAFE_INTEGER;if(l.common&&Math.ceil((n-t)/(r*l.size))<=i)return We[s]}return We[a-1]}function _C(e,t,n,i,a){for(let s=We.length-1;s>=We.indexOf(n);s--){const l=We[s];if(Ro[l].common&&e._adapter.diff(a,i,l)>=t-1)return l}return We[n?We.indexOf(n):0]}function SC(e){for(let t=We.indexOf(e)+1,n=We.length;t<n;++t)if(Ro[We[t]].common)return We[t]}function xp(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:i,hi:a}=ff(n,t),s=n[i]>=t?n[i]:n[a];e[s]=!0}}function jC(e,t,n,i){const a=e._adapter,s=+a.startOf(t[0].value,i),l=t[t.length-1].value;let r,o;for(r=s;r<=l;r=+a.add(r,1,i))o=n[r],o>=0&&(t[o].major=!0);return t}function vp(e,t,n){const i=[],a={},s=t.length;let l,r;for(l=0;l<s;++l)r=t[l],a[r]=l,i.push({value:r,major:!1});return s===0||!n?i:jC(e,i,a,n)}class io extends Ya{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const i=t.time||(t.time={}),a=this._adapter=new gT._date(t.adapters.date);a.init(n),ws(i.displayFormats,a.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:yp(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,i=t.time.unit||"day";let{min:a,max:s,minDefined:l,maxDefined:r}=this.getUserBounds();function o(u){!l&&!isNaN(u.min)&&(a=Math.min(a,u.min)),!r&&!isNaN(u.max)&&(s=Math.max(s,u.max))}(!l||!r)&&(o(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&o(this.getMinMax(!1))),a=Ve(a)&&!isNaN(a)?a:+n.startOf(Date.now(),i),s=Ve(s)&&!isNaN(s)?s:+n.endOf(Date.now(),i)+1,this.min=Math.min(a,s-1),this.max=Math.max(a+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],i=t[t.length-1]),{min:n,max:i}}buildTicks(){const t=this.options,n=t.time,i=t.ticks,a=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);const s=this.min,l=this.max,r=Qj(a,s,l);return this._unit=n.unit||(i.autoSkip?bp(n.minUnit,this.min,this.max,this._getLabelCapacity(s)):_C(this,r.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:SC(this._unit),this.initOffsets(a),t.reverse&&r.reverse(),vp(this,r,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,i=0,a,s;this.options.offset&&t.length&&(a=this.getDecimalForValue(t[0]),t.length===1?n=1-a:n=(this.getDecimalForValue(t[1])-a)/2,s=this.getDecimalForValue(t[t.length-1]),t.length===1?i=s:i=(s-this.getDecimalForValue(t[t.length-2]))/2);const l=t.length<3?.5:.25;n=vt(n,0,l),i=vt(i,0,l),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const t=this._adapter,n=this.min,i=this.max,a=this.options,s=a.time,l=s.unit||bp(s.minUnit,n,i,this._getLabelCapacity(n)),r=Q(a.ticks.stepSize,1),o=l==="week"?s.isoWeekday:!1,u=Ks(o)||o===!0,d={};let f=n,h,m;if(u&&(f=+t.startOf(f,"isoWeek",o)),f=+t.startOf(f,u?"day":l),t.diff(i,n,l)>1e5*r)throw new Error(n+" and "+i+" are too far apart with stepSize of "+r+" "+l);const y=a.ticks.source==="data"&&this.getDataTimestamps();for(h=f,m=0;h<i;h=+t.add(h,r,l),m++)xp(d,h,y);return(h===i||a.bounds==="ticks"||m===1)&&xp(d,h,y),Object.keys(d).sort(gp).map(b=>+b)}getLabelForValue(t){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(t,i.tooltipFormat):n.format(t,i.displayFormats.datetime)}format(t,n){const a=this.options.time.displayFormats,s=this._unit,l=n||a[s];return this._adapter.format(t,l)}_tickFormatFunction(t,n,i,a){const s=this.options,l=s.ticks.callback;if(l)return ce(l,[t,n,i],this);const r=s.time.displayFormats,o=this._unit,u=this._majorUnit,d=o&&r[o],f=u&&r[u],h=i[n],m=u&&f&&h&&h.major;return this._adapter.format(t,a||(m?f:d))}generateTickLabels(t){let n,i,a;for(n=0,i=t.length;n<i;++n)a=t[n],a.label=this._tickFormatFunction(a.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+i)*n.factor)}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,i=this.ctx.measureText(t).width,a=pi(this.isHorizontal()?n.maxRotation:n.minRotation),s=Math.cos(a),l=Math.sin(a),r=this._resolveTickFontOptions(0).size;return{w:i*s+r*l,h:i*l+r*s}}_getLabelCapacity(t){const n=this.options.time,i=n.displayFormats,a=i[n.unit]||i.millisecond,s=this._tickFormatFunction(t,0,vp(this,[t],this._majorUnit),a),l=this._getLabelSize(s),r=Math.floor(this.isHorizontal()?this.width/l.w:this.height/l.h)-1;return r>0?r:1}getDataTimestamps(){let t=this._cache.data||[],n,i;if(t.length)return t;const a=this.getMatchingVisibleMetas();if(this._normalized&&a.length)return this._cache.data=a[0].controller.getAllParsedValues(this);for(n=0,i=a.length;n<i;++n)t=t.concat(a[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,i;if(t.length)return t;const a=this.getLabels();for(n=0,i=a.length;n<i;++n)t.push(yp(this,a[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Kj(t.sort(gp))}}H(io,"id","time"),H(io,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Ql(e,t,n){let i=0,a=e.length-1,s,l,r,o;n?(t>=e[i].pos&&t<=e[a].pos&&({lo:i,hi:a}=gi(e,"pos",t)),{pos:s,time:r}=e[i],{pos:l,time:o}=e[a]):(t>=e[i].time&&t<=e[a].time&&({lo:i,hi:a}=gi(e,"time",t)),{time:s,pos:r}
83=e[i],{time:l,pos:o}=e[a]);const u=l-s;return u?r+(o-r)*(t-s)/u:r}class _p extends io{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Ql(n,this.min),this._tableRange=Ql(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:i}=this,a=[],s=[];let l,r,o,u,d;for(l=0,r=t.length;l<r;++l)u=t[l],u>=n&&u<=i&&a.push(u);if(a.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(l=0,r=a.length;l<r;++l)d=a[l+1],o=a[l-1],u=a[l],Math.round((d+o)/2)!==u&&s.push({time:u,pos:l/(r-1)});return s}_generate(){const t=this.min,n=this.max;let i=super.getDataTimestamps();return(!i.includes(t)||!i.length)&&i.splice(0,0,t),(!i.includes(n)||i.length===1)&&i.push(n),i.sort((a,s)=>a-s)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?t=this.normalize(n.concat(i)):t=n.length?n:i,t=this._cache.all=t,t}getDecimalForValue(t){return(Ql(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return Ql(this._table,i*this._tableRange+this._minPos,!0)}}H(_p,"id","timeseries"),H(_p,"defaults",io.defaults);const qx="label";function Sp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function TC(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function Fx(e,t){e.labels=t}function Xx(e,t,n=qx){const i=[];e.datasets=t.map(a=>{const s=e.datasets.find(l=>l[n]===a[n]);return!s||!a.data||i.includes(s)?{...a}:(i.push(s),Object.assign(s,a),s)})}function EC(e,t=qx){const n={labels:[],datasets:[]};return Fx(n,e.labels),Xx(n,e.datasets,t),n}function CC(e,t){const{height:n=150,width:i=300,redraw:a=!1,datasetIdKey:s,type:l,data:r,options:o,plugins:u=[],fallbackContent:d,updateMode:f,...h}=e,m=_.useRef(null),y=_.useRef(null),b=()=>{m.current&&(y.current=new zo(m.current,{type:l,data:EC(r,s),options:o&&{...o},plugins:u}),Sp(t,y.current))},v=()=>{Sp(t,null),y.current&&(y.current.destroy(),y.current=null)};return _.useEffect(()=>{!a&&y.current&&o&&TC(y.current,o)},[a,o]),_.useEffect(()=>{!a&&y.current&&Fx(y.current.config.data,r.labels)},[a,r.labels]),_.useEffect(()=>{!a&&y.current&&r.datasets&&Xx(y.current.config.data,r.datasets,s)},[a,r.datasets]),_.useEffect(()=>{y.current&&(a?(v(),setTimeout(b)):y.current.update(f))},[a,o,r.labels,r.datasets,f]),_.useEffect(()=>{y.current&&(v(),setTimeout(b))},[l]),_.useEffect(()=>(b(),()=>v()),[]),c.jsx("canvas",{ref:m,role:"img",height:n,width:i,...h,children:d})}const wC=_.forwardRef(CC);function AC(e,t){return zo.register(t),_.forwardRef((n,i)=>c.jsx(wC,{...n,ref:i,type:e}))}const NC=AC("line",gr);zo.register(Zu,Ku,xr,Vn,rC,pC,sC,IE);const Zl=e=>e>.2?{text:"Muy Alcista",color:"#19c7a7",arrow:"â"}:e>.05?{text:"Alcista",color:"#19c7a7",arrow:"â"}:e<-.2?{text:"Muy Bajista",color:"#f5a623",arrow:"â"}:e<-.05?{text:"Bajista",color:"#f5a623",arrow:"â"}:{text:"Neutral",color:"#8ea1b8",arrow:"â"},MC=()=>{const[e,t]=_.useState([]),[n,i]=_.useState(!0),[a,s]=_.useState(null);if(_.useEffect(()=>{(async()=>{try{const f=await fetch(`${ae}/market/sentiment`);if(!f.ok)throw new Error(`HTTP error! status: ${f.status}`);const h=await f.json();t(h)}catch(f){s(f.message)}finally{i(!1)}})()},[]),n)return c.jsx("div",{className:"container section",children:"Cargando sentimiento del mercado..."});if(a)return c.jsxs("div",{className:"container section",children:["Error: ",a]});if(e.length===0)return c.jsx("div",{className:"container section",children:"No hay datos de sentimiento disponibles."});const l=e.map(d=>d.name),r=e.map(d=>d.score),o={labels:l,datasets:[{label:"Puntuación de Sentimiento",data:r,borderColor:d=>{const f=d.chart,{ctx:h,chartArea:m}=f;if(!m)return;const y=h.createLinearGradient(0,m.bottom,0,m.top);return y.addColorStop(0,"rgba(245, 166, 35, 0.5)"),y.addColorStop(.5,"rgba(142, 161, 184, 0.5)"),y.addColorStop(1,"rgba(25, 199, 167, 0.5)"),y},backgroundColor:d=>{const f=d.chart,{ctx:h,chartArea:m}=f;if(!m)return;
83const y=h.createLinearGradient(0,m.bottom,0,m.top);return y.addColorStop(0,"rgba(245, 166, 35, 0.2)"),y.addColorStop(.5,"rgba(142, 161, 184, 0.2)"),y.addColorStop(1,"rgba(25, 199, 167, 0.2)"),y},tension:.4,fill:!0,pointBackgroundColor:e.map(d=>Zl(d.score).color),pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:e.map(d=>Zl(d.score).color)}]},u={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},title:{display:!0,text:"Análisis de Sentimiento del Mercado (Basado en Noticias)",color:"var(--text)",font:{size:18,weight:"bold"}},tooltip:{callbacks:{label:function(d){let f=d.dataset.label||"";return f&&(f+=": "),d.parsed.y!==null&&(f+=`Puntuación: ${d.parsed.y.toFixed(3)} (${Zl(d.parsed.y).text})`),f}}}},scales:{y:{min:-.35,max:.35,grid:{color:"rgba(255,255,255,0.1)"},ticks:{color:"var(--muted)"},title:{display:!0,text:"Puntuación de Sentimiento",color:"var(--muted)"}},x:{grid:{color:"rgba(255,255,255,0.1)"},ticks:{color:"var(--muted)"},title:{display:!0,text:"Activo",color:"var(--muted)"}}}};return c.jsxs("div",{className:"container section",children:[c.jsx("h1",{className:"text-center",children:"Análisis de Sentimiento del Mercado"}),c.jsx("p",{className:"section__sub text-center",children:"Explora el sentimiento actual del mercado basado en noticias para los principales activos. Las puntuaciones varÃan de -0.35 (muy bajista) a 0.35 (muy alcista)."}),c.jsx("div",{className:"sentiment-summary-grid",children:e.map(d=>{const f=Zl(d.score);return c.jsxs("div",{className:"sentiment-card card",children:[c.jsxs("div",{className:"sentiment-card-header",children:[c.jsx("h3",{className:"sentiment-symbol",children:d.symbol}),c.jsx("span",{className:"sentiment-arrow",style:{color:f.color},children:f.arrow})]}),c.jsx("p",{className:"sentiment-name",children:d.name.replace(" Sentiment","")}),c.jsx("p",{className:"sentiment-score",style:{color:f.color},children:d.score.toFixed(3)}),c.jsx("p",{className:"sentiment-text",style:{color:f.color},children:f.text}),c.jsxs("p",{className:"sentiment-updated",children:["Actualizado: ",new Date(d.updated_at).toLocaleTimeString()]})]},d.symbol)})}),c.jsx("div",{className:"chart-container card",style:{height:"400px",marginTop:"40px",padding:"20px"},children:c.jsx(NC,{data:o,options:u})}),c.jsx("div",{className:"text-center",style:{marginTop:"50px"},children:c.jsx("p",{className:"section__sub",children:"El sentimiento se calcula a partir de noticias financieras globales. Recuerda que el rendimiento pasado no garantiza resultados futuros."})})]})},DC=()=>{const[e,t]=_.useState([]),[n,i]=_.useState(!0),[a,s]=_.useState(null),[l,r]=_.useState(null),{isAdmin:o,getToken:u}=jn(),d=Ee();_.useEffect(()=>{(async()=>{try{const m=await fetch(`${ae}/posts`);if(!m.ok)throw new Error(`HTTP error! status: ${m.status}`);const y=await m.json();t(y)}catch(m){s(m.message)}finally{i(!1)}})()},[]);let f=null;if(n)f=c.jsx("div",{className:"container section",children:"Cargando comunidad..."});else if(a)f=c.jsxs("div",{className:"container section",children:["Error: ",a]});else{const h=async m=>{if(!o||!window.confirm("¿Seguro que deseas eliminar este post?"))return;const b=u();if(!b){alert("Debes iniciar sesión como administrador.");return}try{if(r(m),!(await fetch(`${ae}/posts/${m}`,{method:"DELETE",headers:{Authorization:`Bearer ${b}`}})).ok)throw new Error("No se pudo eliminar el post.");t(p=>p.filter(g=>g.id!==m))}catch(v){console.error(v),alert(v.message||"Error eliminando el post")}finally{r(null)}};f=c.jsxs("div",{className:"container section",children:[c.jsx("div",{className:"text-right",style:{marginBottom:"20px"},children:c.jsx(L,{to:"/create-post",className:"btn btn-primary",children:"Crear Nuevo Post"})}),e.length===0?c.jsx("p",{children:"No hay posts disponibles en la comunidad."}):c.jsx("div",{className:"grid grid-2-col",style:{marginTop:"40px"},children:e.map(m=>c.jsxs("div",{className:"card card--hover",children:[c.jsx(L,{to:`/posts/${m.id}`,children:c.jsx("h3",{children:m.title})}),c.jsxs("p",{children:[m.content.substring(0,150),"..."]}),c.jsxs("p",{className:"post-meta",children:["por ",m.author.display_name||m.author.email," | ",new Date(m.created_at).toLocaleDateString()," | ",m.comments.length," comentarios | ",m.upvotes-m.downvotes," votos"]}),o&&c.jsx("button",{className:"btn btn-outline",style:{borderColor:"#f87171",color:"#f87171"},onClick:()=>h(m.id),disabled:l===m.id,children:l===m.id?"Eliminando...":"Eliminar"})]},m.id))})]})}return c.jsxs(c.Fragment,{children:[c.jsxs(Lt,{children:[c.jsx("title",{children:"Comunidad de traders contra estafas de brokers | EliteBrokers"}),c.jsx("meta",{name:"description",content:"Comparte análisis de brokers regulados, denuncia estafas y descubre estrategias de trading con traders reales de Latinoamérica y España."}),c.jsx("link",{rel:"canonical",href:Et(d.pathname)}),c.jsx("meta",{property:"og:title",content:"Comunidad de traders contra estafas de brokers | EliteBrokers"}),c.jsx("meta",{property:"og:description",content:"Ãnete a la comunidad que verifica licencias, comparte reseñas reales y construye un trading seguro en español."})]}),c.jsx("section",{className:"page-hero",style:{"--hero-image":"url(/comunidadfoto.jpeg)"},children:c.jsx("div",{className:"container page-hero__inner",children:c.jsxs("div",{className:"page-hero__content",children:[c.jsx("span",{className:"page-hero__tag",children:"Comunidad en vivo"}),c.jsx("h1",{children:"Comunidad de traders que verifica brokers en tiempo real"}
83),c.jsxs("p",{children:["Comparte estrategias ganadoras, reporta ",c.jsx("strong",{children:"brokers no regulados"})," y consulta experiencias reales sobre retiros, spreads y soporte. Fortalece el ",c.jsx("strong",{children:"trading seguro"})," junto a traders de toda la región."]}),c.jsx("div",{className:"page-hero__actions",children:c.jsx(L,{to:"/create-post",className:"btn btn-outline",children:"Publicar análisis o alerta"})})]})})}),f]})},OC=()=>{const{id:e}=tf(),{user:t,isAuthenticated:n,getToken:i}=jn(),[a,s]=_.useState(null),[l,r]=_.useState(!0),[o,u]=_.useState(null),[d,f]=_.useState(""),h=async()=>{try{const b=await fetch(`${ae}/posts/${e}`);if(!b.ok)throw new Error(`HTTP error! status: ${b.status}`);const v=await b.json();s(v)}catch(b){u(b.message)}finally{r(!1)}};_.useEffect(()=>{h()},[e]);const m=async b=>{if(!n){alert("Debes iniciar sesión para votar.");return}const v=i();if(!v){alert("No estás autenticado. Por favor, inicia sesión.");return}try{const p=await fetch(`${ae}/posts/${e}/vote`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${v}`},body:JSON.stringify({value:b})});if(!p.ok)throw new Error(`HTTP error! status: ${p.status}`);h()}catch(p){console.error("Error voting:",p),alert("Error al votar.")}},y=async b=>{if(b.preventDefault(),!n){alert("Debes iniciar sesión para comentar.");return}if(!d.trim()){alert("El comentario no puede estar vacÃo.");return}const v=i();if(!v){alert("No estás autenticado. Por favor, inicia sesión.");return}try{const p=await fetch(`${ae}/posts/${e}/comments`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${v}`},body:JSON.stringify({content:d})});if(!p.ok)throw new Error(`HTTP error! status: ${p.status}`);f(""),h()}catch(p){console.error("Error submitting comment:",p),alert("Error al enviar comentario.")}};return l?c.jsx("div",{className:"container section",children:"Cargando post..."}):o?c.jsxs("div",{className:"container section",children:["Error: ",o]}):a?c.jsxs("div",{className:"container section",children:[c.jsxs("div",{className:"card post-detail-card",children:[c.jsx("h1",{children:a.title}),c.jsxs("p",{className:"post-meta",children:["por ",a.author.display_name||a.author.email," | ",new Date(a.created_at).toLocaleDateString()]}),c.jsxs("div",{className:"post-content",children:[a.images&&a.images.map(b=>c.jsx("img",{src:b.image_url,alt:"Post image",style:{maxWidth:"100%",height:"auto",marginBottom:"15px",borderRadius:"8px"}},b.id)),c.jsx("p",{children:a.content})]}),c.jsxs("div",{className:"post-actions",children:[c.jsxs("button",{onClick:()=>m(1),className:"btn btn-outline",children:["ð ",a.upvotes]}),c.jsxs("button",{onClick:()=>m(-1),className:"btn btn-outline",children:["ð ",a.downvotes]}),c.jsxs("span",{children:["Total: ",a.upvotes-a.downvotes]})]})]}),c.jsxs("div",{className:"card comments-section",children:[c.jsx("h2",{children:"Comentarios"}),a.comments.length===0?c.jsx("p",{children:"Sé el primero en comentar."}):c.jsx("div",{className:"comments-list",children:a.comments.map(b=>c.jsxs("div",{className:"comment-item",children:[c.jsxs("p",{children:[c.jsx("strong",{children:b.author.display_name||b.author.email})," (",new Date(b.created_at).toLocaleDateString(),"):"]}),c.jsx("p",{children:b.content})]},b.id))}),n?c.jsxs("form",{onSubmit:y,className:"comment-form",children:[c.jsx("textarea",{value:d,onChange:b=>f(b.target.value),placeholder:"Escribe tu comentario...",rows:"4",required:!0}),c.jsx("button",{type:"submit",className:"btn btn-primary",children:"Enviar Comentario"})]}):c.jsxs("p",{children:["Por favor, ",c.jsx(L,{to:"/login",children:"inicia sesión"})," para comentar."]})]})]}):c.jsx("div",{className:"container section",children:"Post no encontrado."})},zC=()=>{const[e,t]=_.useState(""),[n,i]=_.useState(""),[a,s]=_.useState(null),[l,r]=_.useState(!1),{getToken:o}=jn(),u=Bi(),d=async f=>{f.preventDefault(),r(!0),s(null);try{const h=o();if(!h)throw new Error("No estás autenticado. Por favor, inicia sesión.");const m=await fetch(`${ae}/posts`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${h}`},body:JSON.stringify({title:e,content:n})});if(!m.ok){const b=await m.json();throw new Error(b.detail||`HTTP error! status: ${m.status}`)}const y=await m.json();alert("Post creado exitosamente!"),u(`/posts/${y.id}`)}catch(h){s(h.message)}finally{r(!1)}};return c.jsxs("div",{className:"container section",children:[c.jsx("h1",{children:"Crear Nuevo Post"}
83),c.jsxs("form",{onSubmit:d,className:"create-post-form card",children:[c.jsxs("div",{className:"form-group",children:[c.jsx("label",{htmlFor:"title",children:"TÃtulo:"}),c.jsx("input",{type:"text",id:"title",value:e,onChange:f=>t(f.target.value),required:!0,disabled:l})]}),c.jsxs("div",{className:"form-group",children:[c.jsx("label",{htmlFor:"content",children:"Contenido:"}),c.jsx("textarea",{id:"content",value:n,onChange:f=>i(f.target.value),rows:"10",required:!0,disabled:l})]}),a&&c.jsxs("p",{className:"error-message",children:["Error: ",a]}),c.jsx("button",{type:"submit",className:"btn btn-primary",disabled:l,children:l?"Creando...":"Publicar Post"})]})]})},kC=()=>{const{compareItems:e,removeCompareItem:t,clearCompareItems:n}=wo(),[i,a]=_.useState([]),[s,l]=_.useState(!0),[r,o]=_.useState(null),[u,d]=_.useState(!1),f=Ee();_.useEffect(()=>{const S=async()=>{l(!0),o(null);const C=[];for(const j of e)try{const E=j.type==="broker"?`${ae}/operators/${j.id}`:`${ae}/courses/${j.id}`,N=await fetch(E);if(!N.ok)throw new Error(`HTTP error! status: ${N.status}`);const D=await N.json();C.push({...D,type:j.type})}catch(E){console.error(`Error fetching details for item ${j.id} (${j.type}):`,E),o(`Error al cargar detalles para el elemento ${j.id} (${j.type}): ${E.message}`)}a(C),l(!1)};e.length>0?S():(a([]),l(!1))},[e]);const h=e.length>0&&e[0].type==="broker",m=_.useMemo(()=>i.length===0?null:Math.max(...i.map(S=>Number(S.overall_score??0))),[i]),y=_.useMemo(()=>{if(!h||i.length===0)return null;const S=i.map(C=>typeof C.min_deposit=="number"?C.min_deposit:Number(C.min_deposit??Number.POSITIVE_INFINITY)).filter(C=>!Number.isNaN(C));return S.length>0?Math.min(...S):null},[h,i]),b=h?[{key:"name",label:"Nombre"},{key:"description",label:"Descripción"},{key:"country",label:"PaÃs"},{key:"licenses",label:"Licencias"},{key:"overall_score",label:"Puntuación General"},{key:"min_deposit",label:"Depósito MÃnimo"},{key:"trading_platforms",label:"Plataformas de Trading"},{key:"assets_offered",label:"Activos Ofrecidos"}]:[{key:"title",label:"TÃtulo"},{key:"description",label:"Descripción"},{key:"level",label:"Nivel"},{key:"tags",label:"Etiquetas"},{key:"overall_score",label:"Puntuación General"}],v=(S,C)=>{if(S==null||S==="")return"N/D";if(Array.isArray(S))return S.join(", ");if(typeof S=="boolean")return S?"SÃ":"No";if(C==="overall_score"){const j=Number(S);return Number.isNaN(j)?"N/D":c.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"6px"},children:[c.jsx(Ni,{score:j}),c.jsxs("span",{style:{fontWeight:600},children:[j.toFixed(1),"/5"]})]})}if(C==="min_deposit"){const j=Number(S);return Number.isNaN(j)?S:`USD ${j.toLocaleString()}`}return typeof S=="number"?S.toLocaleString():S},p=(S,C)=>{const j=S[C];return j==null?"":typeof j=="number"?j:typeof j=="boolean"?j?"true":"false":Array.isArray(j)?j.join("|"):String(j).trim()},g=_.useMemo(()=>u?b.filter(S=>{const C=p(i[0],S.key);return i.some(j=>p(j,S.key)!==C)}):b,[b,i,u]),x=_.useMemo(()=>i.map(S=>({id:S.id,type:S.type,title:S.name||S.title,score:typeof S.overall_score=="number"?S.overall_score:Number(S.overall_score??0),minDeposit:typeof S.min_deposit=="number"?S.min_deposit:Number(S.min_deposit??NaN),licenses:S.licenses,logo:S.logo_url||S.cover_image_url})),[i]);let T=null;if(s)T=c.jsx("div",{className:"container section",children:"Cargando elementos para comparar..."});else if(r)T=c.jsxs("div",{className:"container section",children:["Error: ",r]});else if(e.length===0)T=c.jsxs("div",{className:"container section",children:[c.jsx("h2",{children:"Comparador de brokers seguros y cursos certificados"}),c.jsxs("p",{children:["Agrega brokers o cursos para revisar licencias, costos y reputación antes de invertir. Es la forma más rápida de ",c.jsx("strong",{children:"evitar estafas"})," y elegir con datos."]}),c.jsxs("div",{style:{marginTop:"24px",display:"flex",gap:"12px",flexWrap:"wrap"},children:[c.jsx(L,{to:"/brokers",className:"btn btn-primary",children:"Explorar brokers regulados"}),c.jsx(L,{to:"/courses",className:"btn btn-outline",children:"Explorar cursos de trading"})]})]});else if(e.length===1){const S=e[0].type,C=S==="broker"?"/brokers":"/courses",j=i[0];T=c.jsx("div",{className:"container section text-center",children:c.jsxs("div",{className:"card",style:{maxWidth:"520px",margin:"0 auto",padding:"30px",display:"flex",flexDirection:"column",alignItems:"center",gap:"20px"},children:[j&&(j.logo_url||j.cover_image_url)&&c.jsx("img",{src:j.logo_url||j.cover_image_url,alt:j.name||j.title,style:{maxWidth:"150px",height:"auto",borderRadius:"8px"}}),c.jsxs("h2",{children:["Has seleccionado: ",c.jsx("strong",{children:(j==null?void 0:j.name)||(j==null?void 0:j.title)})]}),c.jsx("p",{children:"Para contrastar licencias, spreads y reputación necesitas al menos dos elementos."}),c.jsxs(L,{to:C,className:"btn btn-primary btn-lg",children:["Añadir otro ",S==="broker"?"broker regulado":"curso verificado"]}
83)]})})}else T=c.jsxs("div",{className:"container section",children:[c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px",marginBottom:"32px"},children:[c.jsxs("div",{children:[c.jsxs("h1",{style:{marginBottom:"8px"},children:["Comparación de ",h?"Brokers":"Cursos"]}),c.jsxs("p",{style:{margin:0},children:["Estás comparando ",i.length," ",h?"brokers":"cursos",". Revisa la ficha rápida y profundiza en la tabla para detectar ventajas."]})]}),c.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(240px, 1fr))",gap:"20px"},children:x.map(S=>{var E;const C=Number.isFinite(S.score)&&S.score===m,j=Number.isFinite(S.minDeposit)&&S.minDeposit===y;return c.jsxs("div",{style:{position:"relative",border:"1px solid var(--stroke)",borderRadius:"18px",padding:"20px",background:"var(--panel)",boxShadow:"0 8px 24px rgba(15, 23, 42, 0.08)",display:"flex",flexDirection:"column",gap:"12px"},children:[C&&c.jsx("span",{style:{position:"absolute",top:"16px",right:"16px",background:"var(--brand-2)",color:"#fff",padding:"4px 10px",borderRadius:"999px",fontSize:"0.75rem",fontWeight:600},children:"Mejor puntuación"}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[S.logo?c.jsx("img",{src:S.logo,alt:S.title,style:{width:"44px",height:"44px",objectFit:"cover",borderRadius:"12px"}}):c.jsx("div",{style:{width:"44px",height:"44px",borderRadius:"12px",background:"var(--panel-light)",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:600,color:"var(--brand-3)"},children:((E=S.title)==null?void 0:E[0])??"?"}),c.jsxs("div",{style:{flex:1},children:[c.jsx("h3",{style:{margin:0,fontSize:"1rem"},children:S.title}),S.licenses&&c.jsx("p",{style:{margin:0,fontSize:"0.8rem",color:"var(--muted)"},children:S.licenses})]})]}),c.jsxs("div",{style:{display:"flex",gap:"12px",alignItems:"center"},children:[c.jsx(Ni,{score:Number.isFinite(S.score)?S.score:0}),c.jsxs("span",{style:{fontWeight:600},children:[Number.isFinite(S.score)?S.score.toFixed(1):"N/D"," / 5"]})]}),h&&c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",fontSize:"0.85rem",color:"var(--muted)"},children:[c.jsxs("span",{children:["Depósito mÃnimo:"," ",c.jsx("strong",{style:{color:j?"var(--brand-3)":"inherit"},children:Number.isFinite(S.minDeposit)?`USD ${S.minDeposit.toLocaleString()}`:"N/D"})]}),S.licenses&&c.jsxs("span",{children:["Licencias: ",S.licenses]})]}),c.jsxs("div",{style:{marginTop:"4px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"12px"},children:[c.jsx(L,{to:`/${S.type==="broker"?"brokers":"courses"}/${S.id}`,className:"btn btn-sm btn-outline",children:"Ver ficha"}),c.jsx("button",{onClick:()=>t(S.id,S.type),className:"btn btn-sm btn-outline",style:{borderColor:"var(--danger)",color:"var(--danger)"},children:"Quitar"})]})]},S.id)})})]}),c.jsxs("div",{style:{marginBottom:"24px",display:"flex",flexWrap:"wrap",gap:"12px",alignItems:"center",justifyContent:"space-between"},children:[c.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px",alignItems:"center"},children:[c.jsx("button",{onClick:n,className:"btn btn-danger",children:"Limpiar comparación"}),c.jsx("button",{onClick:()=>d(S=>!S),className:"btn btn-outline",children:u?"Mostrar todo":"Ver solo diferencias"}),i.length<4&&c.jsxs(L,{to:h?"/brokers":"/courses",className:"btn btn-outline",children:["Añadir otro ",h?"broker":"curso"]})]}),c.jsx("span",{style:{fontSize:"0.85rem",color:"var(--muted)"},children:"Consejo: centra la vista en las filas destacadas para identificar rápidamente las fortalezas de cada opción."})]}),c.jsx("div",{className:"comparison-table-container",style:{overflowX:"auto"},children:c.jsxs("table",{className:"comparison-table",style:{width:"100%",borderCollapse:"collapse"},children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{style:{border:"1px solid var(--stroke)",padding:"10px",textAlign:"left",backgroundColor:"var(--panel-light)"},children:"CaracterÃstica"}),i.map(S=>c.jsx("th",{style:{border:"1px solid var(--stroke)",padding:"10px",textAlign:"center",backgroundColor:"var(--panel-light)"},children:c.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"5px"},children:[c.jsx("strong",{children:S.name||S.title}),c.jsx("button",{onClick:()=>t(S.id,S.type),className:"btn btn-sm btn-outline",style:{fontSize:"0.7em"},children:"Eliminar"})]})},S.id))]})}),c.jsx("tbody",{children:g.map((S,C)=>c.jsxs("tr",{style:{backgroundColor:C%2===0?"var(--panel)":"var(--panel-light)"},children:[c.jsx("td",{style:{border:"1px solid var(--stroke)",padding:"10px",fontWeight:"bold"},children:S.label}),i.map(j=>c.jsx("td",{style:{border:"1px solid var(--stroke)",padding:"12px",textAlign:"center",fontSize:"0.95rem",fontWeight:S.key==="overall_score"?600:"normal",backgroundColor:S.key==="overall_score"&&Number(j.overall_score??0)===m?"rgba(245, 158, 11, 0.12)":S.key==="min_deposit"&&h&&Number(j.min_deposit??1/0)===y?"rgba(34, 197, 94, 0.12)":void 0},children:v(j[S.key],S.key)},`${j.id}-${S.key}`))]},S.key))})]})})]});return c.jsxs(c.Fragment,{children:[c.jsxs(Lt,{children:[c.jsx("title",{children:"Comparador de brokers regulados y cursos 2025 | EliteBrokers"}),c.jsx("meta",{name:"description",content:"Comparador independiente de brokers regulados y cursos de trading 2025. Analiza licencias, depósitos mÃnimos, spreads y reputación para evitar estafas."}),c.jsx("link",{rel:"canonical",href:Et(f.pathname)})]}),c.jsx("section",{className:"page-hero",style:{"--hero-image":"url(/comparacionfoto.jpeg)"},children:c.jsx("div",{className:"container page-hero__inner",children:c.jsxs("div",{className:"page-hero__content",children:[c.jsx("span",{className:"page-hero__tag",children:"Comparador de brokers regulados"}),c.jsx("h1",{children:"Comparador de brokers y cursos con regulación verificada 2025"}),c.jsxs("p",{children:["Contrasta hasta cuatro opciones y verifica licencias como FCA, CySEC, ASIC o FSCA. Detecta ",c.jsx("strong",{children:"brokers seguros"}),", compara ",c.jsx("strong",{children:"spreads, retiros y plataformas de trading"})," y elige el recurso ideal para tu estrategia."]}),c.jsxs("div",{className:"page-hero__actions",children:[c.jsx(L,{to:"/brokers",className:"btn btn-primary",children:"Seleccionar brokers regulados"}),c.jsx(L,{to:"/courses",className:"btn btn-outline",children:"Seleccionar cursos auditados"})]})]})})}),T]})},RC=()=>{const e=Ee(),t=["FCA (Financial Conduct Authority â Reino Unido)","CySEC (Cyprus Securities and Exchange Commission)","ASIC (Australian Securities and Investments Commission)","FSCA
83(Financial Sector Conduct Authority â Sudáfrica)","CIMA, FSA, IFSC y otros supervisores internacionales"],n=["mejor broker 2025","brokers regulados","comparador de brokers","brokers seguros","reseñas de brokers","análisis de brokers","plataformas de trading","trading en CFDs","forex y derivados","Ãndices sintéticos","regulación financiera","licencias FCA CySEC ASIC","trading responsable","cómo elegir un broker","broker confiable","trading seguro","educación financiera","brokers para Latinoamérica","EliteBrokers reseñas independientes","análisis de mercado"].join(", ");return c.jsxs(c.Fragment,{children:[c.jsxs(Lt,{children:[c.jsx("title",{children:"Descargo de responsabilidad | EliteBrokers"}),c.jsx("meta",{name:"description",content:"Descargo de responsabilidad legal de EliteBrokers: plataforma educativa independiente que analiza brokers regulados, riesgos del trading y relaciones de afiliación."}),c.jsx("meta",{name:"keywords",content:n}),c.jsx("meta",{name:"robots",content:"index, follow"}),c.jsx("meta",{name:"author",content:"EliteBrokers"}),c.jsx("meta",{name:"publisher",content:"EliteBrokers"}),c.jsx("link",{rel:"canonical",href:Et(e.pathname)})]}),c.jsx("section",{className:"page-hero",style:{"--hero-image":"url(/elite-brokers-hero.jpg)"},children:c.jsx("div",{className:"container page-hero__inner",children:c.jsxs("div",{className:"page-hero__content",children:[c.jsx("span",{className:"page-hero__tag",children:"Transparencia total"}),c.jsx("h1",{children:"Descargo de responsabilidad EliteBrokers"}),c.jsx("p",{children:"EliteBrokers es una plataforma independiente dedicada al análisis educativo de brokers regulados, condiciones de mercado y riesgos financieros. No ofrecemos asesoramiento ni intermediación."})]})})}),c.jsx("section",{className:"section",children:c.jsxs("div",{className:"container legal-content",style:{display:"grid",gap:"28px"},children:[c.jsxs("article",{className:"card",style:{display:"grid",gap:"18px"},children:[c.jsx("h2",{children:"Sin asesoramiento financiero ni recomendaciones personalizadas"}),c.jsx("p",{children:"Toda la información publicada en EliteBrokers tiene fines estrictamente educativos e informativos. No constituye una recomendación de inversión, asesoramiento financiero, oferta o solicitud de compra/venta de instrumentos como acciones, divisas, derivados, CFDs o criptomonedas."}),c.jsx("p",{children:"Las reseñas, comparativas y guÃas se basan en datos públicos, licencias verificadas y opiniones profesionales. Sin embargo, no garantizan resultados ni rentabilidades futuras. Cada trader es responsable de evaluar sus objetivos, nivel de experiencia y tolerancia al riesgo antes de operar."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"18px"},children:[c.jsx("h2",{children:"Advertencia de riesgo sobre derivados y apalancamiento"}),c.jsx("p",{children:"El trading con apalancamiento âespecialmente en CFDs, Ãndices sintéticos, forex y otros derivadosâ conlleva un alto nivel de riesgo y puede no ser adecuado para todos los inversores. Existe la posibilidad de perder la totalidad del capital invertido."}),c.jsx("p",{children:"Antes de operar, asegúrate de comprender los riesgos, revisar la regulación del broker y buscar asesoramiento independiente si fuese necesario. Recuerda que los resultados pasados no garantizan rendimientos futuros."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"18px"},children:[c.jsx("h2",{children:"Relación con los brokers analizados"}),c.jsx("p",{children:"EliteBrokers no es un broker ni una entidad financiera. No custodiamos fondos, no ejecutamos órdenes y no realizamos gestión de capital. Algunos enlaces pueden ser de afiliación, lo que significa que podemos recibir una comisión sin costo adicional para el usuario si este abre una cuenta o opera a través de dichos enlaces."}),c.jsx("p",{children:"Esta compensación no altera la imparcialidad de nuestros análisis ni el ranking de brokers. Cada plataforma se evalúa con criterios transparentes: regulación, licencias, costos, seguridad, soporte, plataformas y reputación verificada."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"18px"},children:[c.jsx("h2",{children:"Cumplimiento normativo y transparencia"}),c.jsx("p",{children:"Promovemos el cumplimiento estricto de las regulaciones financieras internacionales. Recomendamos operar únicamente con brokers supervisados por autoridades reconocidas:"}),c.jsx("ul",{children:t.map(i=>c.jsx("li",{children:i},i))}),c.jsx("p",{children:"Verifica siempre la licencia y jurisdicción del broker antes de invertir. EliteBrokers no se responsabiliza por decisiones de inversión basadas en la información presentada en el sitio."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"18px"},children:[c.jsx("h2",{children:"Privacidad y seguridad de datos"}),c.jsx("p",{children:"Respetamos la privacidad de nuestros usuarios. No solicitamos credenciales, contraseñas ni datos bancarios. Los formularios de contacto, suscripción o registro
83se usan únicamente con fines informativos y cumplen con la normativa de protección de datos (GDPR). Consulta nuestra PolÃtica de Privacidad para más detalles."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"18px"},children:[c.jsx("h2",{children:"Responsabilidad limitada"}),c.jsx("p",{children:"EliteBrokers, sus autores y colaboradores no se responsabilizan por pérdidas o daños derivados del uso de la información publicada o del acceso a plataformas externas. El uso del sitio implica la aceptación total de este descargo de responsabilidad y de los Términos y Condiciones."})]})]})})]})},BC=()=>{const e=Ee(),t=["Términos y Condiciones EliteBrokers","comparador de brokers","brokers regulados","trading responsable","educación financiera","reseñas independientes","mejores brokers 2025","plataformas MT4 MT5","CFDs y forex","regulación financiera","trading seguro"].join(", "),n=["Utilizar la información de forma ética, responsable y legal.","No copiar, reproducir o distribuir contenido sin autorización.","No emplear el sitio para actividades fraudulentas o difamatorias.","Respetar las polÃticas de privacidad, cookies y protección de datos."],i=["Regulación y licencias financieras verificadas.","Costos operativos: spreads, comisiones y swaps.","Velocidad de ejecución y estabilidad de la plataforma.","Facilidad y seguridad en el retiro de fondos.","Calidad del soporte al cliente y asistencia en español.","Reputación internacional y opiniones de usuarios reales."],a=["FCA (Reino Unido)","CySEC (Chipre)","ASIC (Australia)","FSCA (Sudáfrica)","IFSC, CIMA, FSA, CNMV, CNBV, entre otros."];return c.jsxs(c.Fragment,{children:[c.jsxs(Lt,{children:[c.jsx("title",{children:"Términos y Condiciones | EliteBrokers"}),c.jsx("meta",{name:"description",content:"Consulta los Términos y Condiciones de EliteBrokers: uso del sitio, relaciones con brokers, advertencias de riesgo y polÃticas de protección de datos."}),c.jsx("meta",{name:"keywords",content:t}),c.jsx("meta",{name:"robots",content:"index, follow"}),c.jsx("meta",{name:"author",content:"EliteBrokers"}),c.jsx("meta",{name:"publisher",content:"EliteBrokers"}),c.jsx("link",{rel:"canonical",href:Et(e.pathname)})]}),c.jsx("section",{className:"page-hero",style:{"--hero-image":"url(/comparacionfoto.jpeg)"},children:c.jsx("div",{className:"container page-hero__inner",children:c.jsxs("div",{className:"page-hero__content",children:[c.jsx("span",{className:"page-hero__tag",children:"Marco legal"}),c.jsx("h1",{children:"Términos y Condiciones de uso"}),c.jsx("p",{children:"Ãltima actualización: noviembre 2025. El acceso a EliteBrokers implica la aceptación Ãntegra de estos términos, diseñados para promover un trading seguro, responsable y transparente."})]})})}),c.jsx("section",{className:"section",children:c.jsxs("div",{className:"container legal-content",style:{display:"grid",gap:"32px"},children:[c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"1. Definición y objeto del sitio web"}),c.jsx("p",{children:"EliteBrokers es un portal informativo y educativo que provee comparativas de brokers regulados, análisis de plataformas (MT4, MT5, cTrader, TradingView), guÃas educativas, noticias de mercado y programas de afiliación con brokers verificados."}),c.jsx("p",{children:"No somos un broker ni ofrecemos servicios financieros. No gestionamos fondos ni ejecutamos operaciones en nombre de terceros. Nuestra finalidad es informar y ayudar al trader a tomar decisiones más seguras mediante datos contrastados."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"2. Uso del sitio web"}),c.jsx("p",{children:"Al navegar en EliteBrokers, te comprometes a:"}),c.jsx("ul",{children:n.map(s=>c.jsx("li",{children:s},s))}),c.jsx("p",{children:"EliteBrokers no garantiza resultados financieros ni asume responsabilidad por decisiones tomadas con base en nuestros contenidos."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"3. Contenido educativo e informativo"}),c.jsx("p",{children:"El material publicado es educativo y se sustenta en fuentes fiables. No constituye asesoramiento financiero, de inversión ni fiscal. Cada usuario debe evaluar su situación económica, objetivos de inversión y tolerancia al r
83iesgo de manera independiente."}),c.jsx("p",{children:"Palabras clave asociadas: educación financiera, análisis de brokers, comparador de brokers, trading seguro, regulación financiera."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"4. Relaciones con los brokers y enlaces de afiliación"}),c.jsx("p",{children:"Participamos en programas de afiliados con brokers regulados. Podemos recibir compensación cuando un usuario abre una cuenta o realiza operaciones a través de nuestros enlaces, sin costo adicional. Este modelo financia el mantenimiento del sitio."}),c.jsx("p",{children:"Las reseñas se elaboran con criterios objetivos y transparentes:"}),c.jsx("ul",{children:i.map(s=>c.jsx("li",{children:s},s))}),c.jsx("p",{children:"Jamás alteramos el ranking por motivos comerciales."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"5. Advertencia sobre riesgos del trading"}),c.jsx("p",{children:"Operar con apalancamiento (CFDs, forex, criptomonedas, Ãndices sintéticos) implica alto riesgo. Puedes perder total o parcialmente tu capital. Opera únicamente con brokers supervisados por entidades como:"}),c.jsx("ul",{children:a.map(s=>c.jsx("li",{children:s},s))}),c.jsx("p",{children:"Palabras clave asociadas: brokers regulados, riesgo financiero, apalancamiento, regulación internacional, trading seguro."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"6. Jurisdicción y aplicación legal"}),c.jsx("p",{children:"Estos Términos se rigen por las leyes internacionales aplicables al comercio electrónico y la propiedad intelectual, asà como por las normativas locales vigentes. Cualquier controversia se resolverá de buena fe, mediante arbitraje o tribunales competentes."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"7. Protección de datos personales"}),c.jsx("p",{children:"Cumplimos con el Reglamento General de Protección de Datos (GDPR) y demás leyes de privacidad. Los datos recopilados se emplean para: comunicación educativa, boletines, estadÃsticas internas y personalización de contenido."}),c.jsxs("p",{children:["Los usuarios pueden ejercer sus derechos contactándonos en ",c.jsx("strong",{children:"[email protected]"}),"."]})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"8. Enlaces externos y responsabilidad limitada"}),c.jsx("p",{children:"EliteBrokers contiene enlaces a sitios de terceros. No somos responsables por sus polÃticas, seguridad o contenido. El acceso se realiza bajo responsabilidad del usuario. No respondemos por pérdidas o perjuicios derivados del uso del sitio o de enlaces externos."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"9. Propiedad intelectual y derechos de autor"}),c.jsx("p",{children:"Textos, logotipos, diseños, imágenes, bases de datos y código fuente están protegidos por leyes de propiedad intelectual. Su reproducción total o parcial sin autorización está prohibida. Los derechos pertenecen a EliteBrokers y sus autores."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"10. Optimización SEO y metadatos"}),c.jsx("p",{children:"Integramos palabras clave en metadatos y estructura web para garantizar transparencia semántica y facilitar que los usuarios encuentren información relevante sobre trading seguro. Ejemplo de meta description: âEliteBrokers - Términos y condiciones de uso del comparador de brokers regulados. Transparencia, educación financiera y trading responsable.â"})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"11. Aceptación de los términos"}),c.jsx("p",{children:"El uso continuo del sitio implica que el usuario ha leÃdo, comprendido y aceptado estos Términos y Condiciones, además de las polÃticas de cookies, privacidad y el descargo de responsabilidad."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"12. Contacto"}),c.jsxs("p",{children:["Para consultas, reclamos o solicitudes relacionadas con estos términos, escrÃbenos a"," ",c.jsx("strong",{children:"[email protected]"})," o utiliza el formulario de contacto del sitio."]})]})]})})]})},LC=()=>{const e=Ee(),t=["polÃtica de privacidad trading","protección de datos financieros","comparador de brokers","brokers regulados","forex y CFDs","Ãndices sintéticos","educación financiera","transparencia financiera","cookies trading","GDPR CCPA compliance","marketing financiero responsable","seguridad digital en trading"].join(", "),n=["Nombre completo","Correo electrónico","PaÃs de residencia","Preferencias de contenido o tipo de broker","Comentarios enviados mediante formularios"],i=["Dirección IP y ubicación aproximada","Tipo de dispositivo, sistema operativo y navegador","Cookies y métricas de comportamiento en el sitio","Páginas visitadas, tiempos de permanencia y eventos clave"],a=["Enviar información educativa, comparativas y guÃas sobre trading.","Personalizar la experiencia de navegación y recomendar contenido relevante.","Mejorar la seguridad y el rendimiento del sitio mediante analÃtica agregada.","Generar métricas internas para comprender el comportamiento del usuario.","Cumplir con obligaciones legales y normativas de protección de datos.","Comunicar promociones o reseñas solo con autorización explÃcita del usuario."],s=["Cifrado SSL/TLS en todas las comunicaciones.","Firewalls, monitoreo y auditorÃas de seguridad periódicas.","Acceso restringido únicamente a personal autorizado.","Cumplimiento con estándares de seguridad de la información (ISO/IEC 27001)."],l=["Google Analytics / GA4","Meta Ads (Facebook/Instagram Ads)","TikTok Ads","YouTube Ads y herramientas de vÃdeo marketing"],r=["Acceder a los datos personales almacenados por EliteBrokers.","Solicitar la rectificación o eliminación de información inexacta.","Limitar u oponerse al tratamiento de datos en cualquier momento.","Retirar el consentimiento otorgado sin afectar la legalidad del tratamiento previo.","Solicitar la portabilidad de los datos en un formato estructurado y legible."];return c.jsxs(c.Fragment,{children:[c.jsxs(Lt,{children:[c.jsx("title",{children:"PolÃtica de Privacidad | EliteBrokers"}),c.jsx("meta",{name:"description",content:"PolÃtica de privacidad de EliteBrokers: recopilación de datos, cookies, derechos de los usuarios y medidas de seguridad para proteger tu información."}),c.jsx("meta",{name:"keywords",content:t}),c.jsx("meta",{name:"robots",content:"index, follow"}),c.jsx("meta",{name:"author",content:"EliteBrokers"}),c.jsx("meta",{name:"publisher",content:"EliteBrokers"}),c.jsx("link",{rel:"canonical",href:Et(e.pathname)})]}),c.jsx("section",{className:"page-hero",style:{"--hero-image":"url(/comunidadfoto.jpeg)"},children:c.jsx("div",{className:"container page-hero__inner",children:c.jsxs("div",{className:"page-hero__content",children:[c.jsx("span",{className:"page-hero__tag",children:"Protección de datos"}),c.jsx("h1",{children:"PolÃtica de Privacidad EliteBrokers"}),c.jsx("p",{children:"Ãltima actualización: noviembre 2025. Descubre cómo recopilamos, utilizamos y protegemos la información que compartes al utilizar nuestra plataforma educativa y comparador de brokers."})]})})}),c.jsx("section",{className:"section",children:c.jsxs("div",{className:"container legal-content",style:{display:"grid",gap:"32px"},children:[c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"1. Quiénes somos"}
83),c.jsx("p",{children:"EliteBrokers es una plataforma independiente de educación y análisis financiero. Publicamos comparativas de brokers regulados, reseñas de plataformas de trading, contenido educativo sobre CFDs, forex, criptomonedas e Ãndices sintéticos, además de herramientas de ranking y métricas para operar con mayor seguridad."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"2. Información que recopilamos"}),c.jsx("p",{children:"Recopilamos datos personales y técnicos de manera limitada y siempre con consentimiento explÃcito."}),c.jsx("h3",{style:{marginBottom:0},children:"a) Información proporcionada por el usuario"}),c.jsx("ul",{children:n.map(o=>c.jsx("li",{children:o},o))}),c.jsx("h3",{style:{marginBottom:0},children:"b) Información recopilada automáticamente"}),c.jsx("ul",{children:i.map(o=>c.jsx("li",{children:o},o))})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"3. Finalidad del tratamiento de datos"}),c.jsx("ul",{children:a.map(o=>c.jsx("li",{children:o},o))}),c.jsx("p",{children:"En ningún caso venderemos, alquilaremos ni comercializaremos tus datos personales."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"4. Base legal para el tratamiento"}),c.jsx("p",{children:"Procesamos la información con base en el consentimiento del usuario, la ejecución de servicios educativos informados, el cumplimiento de obligaciones legales (GDPR, CCPA, LOPD) y el interés legÃtimo por mejorar la experiencia de navegación y seguridad del sitio."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"5. Uso de cookies y tecnologÃas similares"}),c.jsx("p",{children:"Empleamos cookies propias y de terceros para medir tráfico, mostrar anuncios educativos, analizar comportamientos y personalizar la experiencia. Los principales proveedores incluyen:"}),c.jsx("ul",{children:l.map(o=>c.jsx("li",{children:o},o))}),c.jsx("p",{children:"Puedes administrar tus preferencias desde el banner de cookies o la configuración de tu navegador."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"6. Divulgación de datos a terceros"}),c.jsx("p",{children:"Compartimos únicamente datos anonimizados con proveedores de confianza para análisis estadÃsticos, integraciones educativas o programas de afiliados con brokers regulados. Nunca compartimos información confidencial sin tu consentimiento."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"7. Transferencias internacionales de datos"}),c.jsx("p",{children:"Tus datos pueden almacenarse o procesarse en servidores ubicados fuera de tu paÃs, incluyendo Estados Unidos y la Unión Europea. Usamos cláusulas contractuales estándar y medidas de seguridad para garantizar protección equivalente."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"8. Seguridad de la información"}),c.jsx("p",{children:"Implementamos medidas técnicas y organizativas como:"}),c.jsx("ul",{children:s.map(o=>c.jsx("li",{children:o},o))})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"9. Derechos de los usuarios"}),c.jsx("p",{children:"Conforme al GDPR, tienes derecho a:"}),c.jsx("ul",{children:r.map(o=>c.jsx("li",{children:o},o))}),c.jsxs("p",{children:["Para ejercerlos, escribe a ",c.jsx("strong",{children:"[email protected]"}),". Responderemos en un máximo de 30 dÃas."]})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"10. Afiliación y transparencia comercial"}),c.jsx("p",{children:"Participamos en programas de afiliación con brokers regulados como Deriv, Weltrade, Exness o IC Markets. Esta compensación no afecta la objetividad de nuestras reseñas ni el orden de las comparativas."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"11. Conservación de los datos"}),c.jsx("p",{children:"Mantendremos tus datos solo el tiempo necesario para cumplir la finalidad original o mientras dispongamos de tu consentimiento. Después serán eliminados o anonimizados de forma segura."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"12. Enlaces externos"}),c.jsx("p",{children:"Nuestro sitio puede incluir enlaces a terceros (brokers, academias, plataformas). No somos responsables de su polÃtica de privacidad. Recomendamos revisar los términos de cada sitio antes de compartir información personal."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"}
83,children:[c.jsx("h2",{children:"13. Cambios en la polÃtica"}),c.jsx("p",{children:"EliteBrokers se reserva el derecho de actualizar esta polÃtica para reflejar cambios legales, tecnológicos o de negocio. Notificaremos cualquier modificación relevante indicando la nueva fecha de revisión."})]}),c.jsxs("article",{className:"card",style:{display:"grid",gap:"16px"},children:[c.jsx("h2",{children:"14. Contacto"}),c.jsxs("p",{children:["Si tienes preguntas sobre privacidad o quieres ejercer tus derechos, contáctanos en"," ",c.jsx("strong",{children:"[email protected]"})," o visita ",c.jsx("strong",{children:"www.elitebrokers.com"}),"."]})]})]})})]})},HC=()=>{const e=_.useMemo(()=>({colorTheme:"dark",isTransparent:!1,width:"100%",height:"100%",locale:"es",importanceFilter:"-1,0,1",currencyFilter:"USD,EUR,GBP,AUD,CAD,CHF,JPY,NZD,MXN"}),[]);return c.jsx(Ao,{widgetSrc:"https://s3.tradingview.com/external-embedding/embed-widget-events.js",config:e,height:460,creditText:"Calendario económico por TradingView"})},UC=({defaultScreener:e="forex",defaultColumn:t="overview"})=>{const n=_.useMemo(()=>({width:"100%",height:"100%",defaultColumn:t,defaultScreen:"general",market:e,showToolbar:!0,locale:"es",colorTheme:"dark",isTransparent:!1}),[e,t]);return c.jsx(Ao,{widgetSrc:"https://s3.tradingview.com/external-embedding/embed-widget-screener.js",config:n,height:520,creditText:"Screener interactivo por TradingView"})},Rc=(e,t=2)=>Number.isNaN(e)||!Number.isFinite(e)?"0.00":e.toLocaleString("es-ES",{minimumFractionDigits:t,maximumFractionDigits:t}),VC=()=>{const[e,t]=_.useState(1e3),[n,i]=_.useState(1),[a,s]=_.useState(20),[l,r]=_.useState(1.1),[o,u]=_.useState(1e5),[d,f]=_.useState(1e-4),h=_.useMemo(()=>{const m=Number(e),y=Number(n),b=Number(a),v=Number(l),p=Number(o),g=Number(d);if([m,y,b,v,p,g].some(C=>Number.isNaN(C)||C<=0))return{riskAmount:0,lotSize:0,pipValue:0};const x=m*(y/100),T=g/v*p,S=x/(b*T);return{riskAmount:x,lotSize:S,pipValue:T}},[e,n,a,l,o,d]);return c.jsxs("div",{className:"card card--hover position-calculator",children:[c.jsx("h3",{children:"Calculadora de lotaje y tamaño de posición"}),c.jsx("p",{className:"section__sub",children:"Estima rápidamente cuántos lotes abrir según tu riesgo máximo, stop loss y par seleccionado. Los cálculos usan el tamaño de contrato estándar (100.000 para Forex) y ajustan el valor del pip con el precio actual."}),c.jsxs("div",{className:"calculator-grid",children:[c.jsxs("div",{children:[c.jsx("label",{children:"Balance de la cuenta (USD)"}),c.jsx("input",{type:"number",min:"0",value:e,onChange:m=>t(m.target.value)})]}),c.jsxs("div",{children:[c.jsx("label",{children:"Riesgo por operación (%)"}),c.jsx("input",{type:"number",min:"0",step:"0.1",value:n,onChange:m=>i(m.target.value)})]}),c.jsxs("div",{children:[c.jsx("label",{children:"Stop loss (pips)"}),c.jsx("input",{type:"number",min:"0",step:"0.1",value:a,onChange:m=>s(m.target.value)})]}),c.jsxs("div",{children:[c.jsx("label",{children:"Precio del par"}),c.jsx("input",{type:"number",min:"0",step:"0.0001",value:l,onChange:m=>r(m.target.value)})]}),c.jsxs("div",{children:[c.jsx("label",{children:"Tamaño del contrato"}),c.jsx("input",{type:"number",min:"1",step:"1000",value:o,onChange:m=>u(m.target.value)}),c.jsx("small",{children:"Ej. 100.000 para Forex, 1 para lotes de oro (XAUUSD)."})]}),c.jsxs("div",{children:[c.jsx("label",{children:"Tamaño del pip"}),c.jsx("input",{type:"number",min:"0",step:"0.00001",value:d,onChange:m=>f(m.target.value)}),c.jsx("small",{children:"0.0001 para la mayorÃa de pares; 0.01 para JPY."})]})]}),c.jsxs("div",{className:"calculator-results",children:[c.jsxs("div",{children:[c.jsx("span",{children:"Riesgo en USD"}),c.jsxs("strong",{children:["$",Rc(h.riskAmount)]})]}),c.jsxs("div",{children:[c.jsx("span",{children:"Tamaño recomendado (lotes)"}),c.jsx("strong",{children:Rc(h.lotSize,3)})]}),c.jsxs("div",{children:[c.jsx("span",{children:"Valor del pip por lote"}),c.jsxs("strong",{children:["$",Rc(h.pipValue,2)]})]})]})]})},YC=()=>{const e=Ee();return c.jsxs("div",{className:"section container",children:[c.jsxs(Lt,{children:[c.jsx("title",{children:"Herramientas de trading en vivo | EliteBrokers"}),c.jsx("meta",{name:"description",content:"Accede a gráficos interactivos, calendario económico, screener y calculadora de lotaje para planificar tus operaciones con datos reales."}),c.jsx("meta",{name:"keywords",content:"herramientas de trading, calendario económico, screener forex, tradingview en español, calculadora de lotes"}),c.jsx("meta",{name:"robots",content:"index, follow"}),c.jsx("meta",{name:"author",content:"EliteBrokers"}),c.jsx("meta",{name:"publisher",content:"EliteBrokers"}),c.jsx("link",{rel:"canonical",href:Et(e.pathname)})]}),c.jsx("h1",{style:{marginBottom:"12px"},children:"Hub de herramientas en tiempo real"}),c.jsx("p",{className:"section__sub",style:{marginBottom:"32px"},children:"Visualiza el mercado con los widgets oficiales de TradingView y calcula el tamaño ideal de tus posiciones. Datos en streaming, calendario económico filtrado y screener multi-activo listos para complementar tu análisis."}),c.jsx("div",{className:"tools-grid",style:{marginBottom:"40px"},children:c.jsx(Wb,{})}),c.jsx("div",{className:"tools-grid",style:{marginBottom:"40px"},children:c.jsx(Jb,{symbol:"FX:EURUSD",height:720})}),c.jsxs("div",{className:"tools-grid two-columns",style:{marginBottom:"40px"},children:[c.jsx(HC,{}),c.jsx(Ib,{})]}),c.jsx("div",{className:"tools-grid",style:{marginBottom:"40px"},children:c.jsx(UC,{})}),c.jsx("div",{className:"tools-grid",style:{marginBottom:"40px"},children:c.jsx(VC,{})}),c.jsxs("div",{className:"card",style:{display:"grid",gap:"12px"},children:[c.jsx("h3",{children:"¿Buscas más análisis y reseñas?"}),c.jsx("p",{children:"Complementa las herramientas con nuestras guÃas de brokers regulados y comparaciones directas. Actualizamos el ranking 2025 con datos derivados de la comunidad y métricas verificadas."}),c.jsxs("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap"},children:[c.jsx(L,{to:"/brokers",className:"btn btn-outline",children:"Ver ranking de brokers"}),c.jsx(L,{to:"/comparison",className:"btn btn-outline",children:"Ir al comparador"})]})]})]})},jp={name:"",vertical:"forex",description:"",country:"",licenses:"",regulations:"",website:"",logo_url:"",detail_image_url:"",affiliate_url:"",regulatory_body:"",license_number:"",license_status:"",min_deposit:0,trading_platforms:"",assets_offered:"",payment_methods:"",customer_support_options:"",is_sponsored:!1,overall_score:0,regulatory_tier:"",client_protection_fund_segregation:!1,client_protection_negative_balance_protection:!1,client_protection_investor_comp_scheme:"",years_operating:null,audits:"",asset_classes:"",num_instruments_per_class:"",availability_24_7:!1,account_types:"",max_leverage:"",execution_model:"",min_lot_size:"",max_positions:null,hedging_netting:"",platforms_features:"",spreads_avg:"",commissions:"",swaps:"",slippage_recotizaciones:"",total_cost_per_operation:"",deposit_methods:"",withdrawal_methods:"",account_currencies:"",withdrawal_fees:"",withdrawal_sla_hours:null,kyc_verification:"",execution_latency_ms:null,fill_rate:"",liquidity_providers:"",platform_stability_uptime:"",support_languages:"",support_hours:"",support_channels:"",educational_materials:"",reputation_rating_bayesian:null,reputation_reviews_count:null,reputation_top_complaints:"",reputation_alerts:"",value_extras_tools:"",value_extras_copy_trading:!1,value_extras_promotions:"",geo_restrictions:"",notes:""},qC=[{label:"Forex",value:"forex"},{label:"Cripto",value:"crypto"},{label:"Apuestas financieras",value:"apuestas"}],FC=new Set(["is_sponsored","client_protection_fund_segregation","client_protection_negative_balance_protection","availability_24_7","value_extras_copy_trading"]),XC=new Set(["min_deposit","years_operating","max_positions","withdrawal_sla_hours","execution_latency_ms","reputation_rating_bayesian","reputation_reviews_count","overall_score"]),GC=[{title:"Información general",fields:[{name:"name",label:"Nombre",type:"text",required:!0},{name:"vertical",label:"Vertical",type:"select",options:qC},{name:"description",label:"Descripción",type:"textarea"},{name:"country",label:"PaÃs / región principal",type:"text"},{name:"licenses",label:"Licencias vigentes",type:"textarea"},{name:"regulations",label:"Regulaciones adicionales",type:"textarea"},{name:"website",label:"Sitio web oficial",type:"text"},{name:"affiliate_url",label:"URL de afiliado",type:"text"},{name:"logo_url",label:"URL del logo",type:"text"},{name:"detail_image_url",label:"URL imagen detalle",type:"text"}]},{title:"Seguridad y regulación",fields:[{name:"regulatory_body",label:"Organismo regulador principal",type:"text"},{name:"license_number",label:"Número de licencia",type:"text"},{name:"license_status",label:"Estado de la licencia",type:"text"},{name:"regulatory_tier",label:"Tier regulatorio",type:"text"},{name:"client_protection_fund_segregation",label:"Fondos segregados",type:"checkbox"},{name:"client_protection_negative_balance_protection",label:"Protección balance negativo",type:"checkbox"},{name:"client_protection_investor_comp_scheme",label:"Fondo de compensación a inversores",type:"text"},{name:"years_operating",label:"Años operando",type:"number",min:0},{name:"audits",label:"AuditorÃas / certificaciones",type:"textarea"}]},{title:"Oferta de productos y cuentas",fields:[{name:"asset_classes",label:"Clases de activos",type:"textarea"},{name:"num_instruments_per_class",label:"Instrumentos por clase",type:"textarea"},{name:"availability_24_7",label:"Disponibilidad 24/7",type:"checkbox"},{name:"account_types",label:"Tipos de cuenta",type:"textarea"},{name:"min_deposit",label:"Depósito mÃnimo (USD)",type:"number",min:0,step:"0.01",required:!0},{name:"max_leverage",label:"Apalancamiento máximo",type:"text"},{name:"execution_model",label:"Modelo de ejecución",type:"text"},{name:"min_lot_size",label:"Tamaño mÃnimo de lote",type:"text"},{name:"max_positions",label:"Máximo de posiciones abiertas",type:"number",min:0},{name:"hedging_netting",label:"Cobertura / netting",type:"text"},{name:"trading_platforms",label:"Plataformas de trading",type:"textarea"},{name:"assets_offered",label:"Activos ofrecidos",type:"textarea"},{name:"platforms_features",label:"Funciones destacadas de plataforma",type:"textarea"}]},{title:"Costes reales de trading",fields:[{name:"spreads_avg",label:"Spreads promedio",type:"textarea"},{name:"commissions",label:"Comisiones",type:"textarea"},{name:"swaps",label:"Swaps",type:"textarea"},{name:"slippage_recotizaciones",label:"Slippage / recotizaciones",type:"textarea"},{name:"total_cost_per_operation",label:"Coste total por operación",type:"text"}]},{title:"Pagos, depósitos y retiros",fields:[{name:"deposit_methods",label:"Métodos de depósito",type:"textarea"},{name:"payment_methods",label:"Métodos de pago",type:"textarea"},{name:"withdrawal_methods",label:"Métodos de retiro",type:"textarea"},{name:"account_currencies",label:"Monedas de cuenta",type:"textarea"},{name:"withdrawal_fees",label:"Comisiones por retiro",type:"text"},{name:"withdrawal_sla_hours",label:"SLA de retiros (horas)",type:"number",min:0},{name:"kyc_verification",label:"Proceso KYC",type:"textarea"}]},{title:"Calidad operativa",fields:[{name:"execution_latency_ms",label:"Latencia de ejecución (ms)",type:"number",min:0},{name:"fill_rate",label:"Fill rate / tasa de llenado",type:"text"},{name:"liquidity_providers",label:"Proveedores de liquidez",type:"textarea"},{name:"platform_stability_uptime",label:"Uptime de la plataforma",type:"text"}]},{title:"Soporte y educación",fields:[{name:"customer_support_options",label:"Opciones de soporte al cliente",type:"textarea"},{name:"support_channels",label:"Canales de soporte",type:"textarea"},{name:"support_hours",label:"Horario de soporte",type:"text"},{name:"support_languages",label:"Idiomas disponibles",type:"textarea"},{name:"educational_materials",label:"Material educativo",type:"textarea"},{name:"value_extras_tools",label:"Herramientas extra",type:"textarea"},{name:"value_extras_copy_trading",label:"Copy trading disponible",type:"checkbox"},{name:"value_extras_promotions",label:"Promociones / bonos",type:"textarea"}]},{title:"Reputación y alertas",fields:[{name:"reputation_rating_bayesian",label:"Rating reputacional (0-100)",type:"number",min:0,max:100,step:"0.1"},{name:"reputation_reviews_count",label:"Cantidad de reseñas",type:"number",min:0},{name:"reputation_top_complaints",label:"Principales quejas",type:"textarea"},{name:"reputation_alerts",label:"Alertas / advertencias",type:"textarea"}]},{title:"Notas y restricciones",fields:[{name:"geo_restrictions",label:"Restricciones geográficas",type:"textarea"},{name:"notes",label:"Notas detalladas",type:"textarea"},{name:"is_sponsored",label:"Contenido patrocinado",type:"checkbox"}]},{title:"Puntuación agregada",fields:[{name:"overall_score",label:"Puntuación general (auto)",type:"number",disabled:!0,step:"0.01",note:"Se recalcula automáticamente con cada guardado usando la información anterior."}]}],PC=()=>{const{isAuthenticated:e,isAdmin:t,getToken:n}=jn(),[i,a]=_.useState([]),[s,l]=_.useState(!0),[r,o]=_.useState(null),[u,d]=_.useState(!1),[f,h]=_.useState({...jp}),[m,y]=_.useState(null),[b,v]=_.useState(null),[p,g]=_.useState(null),x=async()=>
83{if(!e||!t){l(!1);return}try{l(!0);const k=n(),z=await fetch(`${ae}/operators`,{headers:{Authorization:`Bearer ${k}`}});if(!z.ok)throw new Error(`HTTP error! status: ${z.status}`);const A=await z.json();a(A)}catch(k){o(k.message)}finally{l(!1)}};_.useEffect(()=>{x()},[e,t]),_.useEffect(()=>{if(!p)return;const k=setTimeout(()=>g(null),4e3);return()=>clearTimeout(k)},[p]);const T=k=>{const{name:z,value:A,type:M,checked:R}=k.target;let F;M==="checkbox"||FC.has(z)?F=R:M==="number"||XC.has(z)?F=A===""?null:Number(A):F=A,m?v(P=>({...P,[z]:F})):h(P=>({...P,[z]:F}))},S=async k=>{k.preventDefault(),o(null);try{l(!0);const z=n(),A=await fetch(`${ae}/operators`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${z}`},body:JSON.stringify(f)});if(!A.ok){const M=await A.json();throw new Error(M.detail||`HTTP error! status: ${A.status}`)}g("Operador creado correctamente."),h({...jp}),d(!1),await x()}catch(z){o(z.message)}finally{l(!1)}},C=k=>{v({...k}),y(k.id),d(!1),g(null)},j=()=>{y(null),v(null)},E=async k=>{if(k.preventDefault(),!!m){o(null);try{l(!0);const z=n(),A=await fetch(`${ae}/operators/${m}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${z}`},body:JSON.stringify(b)});if(!A.ok){const M=await A.json();throw new Error(M.detail||`HTTP error! status: ${A.status}`)}g("Cambios guardados exitosamente."),y(null),v(null),await x()}catch(z){o(z.message)}finally{l(!1)}}},N=async k=>{if(window.confirm("¿Eliminar este operador? Esta acción no se puede deshacer.")){o(null);try{l(!0);const z=n(),A=await fetch(`${ae}/operators/${k}`,{method:"DELETE",headers:{Authorization:`Bearer ${z}`}});if(!A.ok){const M=await A.json();throw new Error(M.detail||`HTTP error! status: ${A.status}`)}g("Operador eliminado."),await x()}catch(z){o(z.message)}finally{l(!1)}}},D=(k,z)=>{const A=k==null?void 0:k[z.name],M={name:z.name,onChange:T,disabled:z.disabled,required:z.required};if(z.type==="select")return c.jsx("select",{...M,value:A??"",children:z.options.map(F=>c.jsx("option",{value:F.value,children:F.label},F.value))});if(z.type==="textarea")return c.jsx("textarea",{...M,value:A??"",rows:z.rows||3});if(z.type==="checkbox")return c.jsx("input",{...M,type:"checkbox",checked:!!A});const R=z.type==="number"?"number":"text";return c.jsx("input",{...M,type:R,value:A??"",min:z.min,max:z.max,step:z.step})},B=({title:k,formData:z,onSubmit:A,submitLabel:M,onCancel:R})=>c.jsxs("div",{className:"card",style:{marginBottom:"30px"},children:[c.jsx("h2",{style:{marginBottom:"10px"},children:k}),c.jsxs("form",{onSubmit:A,children:[GC.map(F=>c.jsxs("fieldset",{style:{marginBottom:"24px",border:"1px solid var(--stroke)",borderRadius:"12px",padding:"18px"},children:[c.jsx("legend",{style:{padding:"0 8px",fontWeight:600},children:F.title}),c.jsx("div",{className:"form-grid",children:F.fields.map(P=>c.jsxs("div",{className:`form-group${P.type==="checkbox"?" checkbox-group":""}`,children:[c.jsx("label",{style:{fontWeight:600},children:P.label}),D(z,P),P.note&&c.jsx("small",{style:{display:"block",marginTop:"4px",color:"var(--muted)"},children:P.note})]},P.name))})]},F.title)),c.jsxs("div",{style:{display:"flex",gap:"12px",justifyContent:"flex-start"},children:[c.jsx("button",{type:"submit",className:"btn",disabled:s,children:s?"Guardando...":M}),R&&c.jsx("button",{type:"button",className:"btn btn-outline",onClick:R,children:"Cancelar"})]})]})]}),V=k=>{if(k==null)return"â";const z=Number(k);return Number.isNaN(z)?"â":`USD ${z.toLocaleString("en-US",{minimumFractionDigits:0})}`},O=k=>{if(k==null)return"â";const z=Number(k);return Number.isNaN(z)?"â":z.toFixed(2)};return!e||!t?c.jsx("div",{className:"container section",children:"Acceso denegado. Solo administradores."}):c.jsxs("div",{className:"container section",children:[c.jsx("h1",{children:"Panel de Administración de Operadores"}),c.jsx("p",{style:{color:"var(--muted)",marginBottom:"20px"},children:"Gestiona los brokers publicados, edita su ficha y controla qué información se utiliza para el ranking automático."}),r&&c.jsx("div",{className:"alert alert-danger",style:{marginBottom:"20px"},children:r}),p&&c.jsx("div",{className:"alert alert-success",style:{marginBottom:"20px"},children:p}),c.jsx("button",{className:"btn",onClick:()=>{d(k=>!k),g(null)},style:{marginBottom:"24px"}
83,children:u?"Cerrar formulario":"Añadir nuevo operador"}),u&&B({title:"Nuevo operador",formData:f,onSubmit:S,submitLabel:"Crear operador"}),m&&B({title:`Editando operador #${m}`,formData:b,onSubmit:E,submitLabel:"Guardar cambios",onCancel:j}),s?c.jsx("div",{className:"card",children:"Cargando operadores..."}):i.length===0?c.jsx("p",{children:"No hay operadores registrados todavÃa."}):c.jsx("div",{className:"card",style:{overflowX:"auto"},children:c.jsxs("table",{className:"table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"ID"}),c.jsx("th",{children:"Nombre"}),c.jsx("th",{children:"Vertical"}),c.jsx("th",{children:"PaÃs"}),c.jsx("th",{children:"Licencias"}),c.jsx("th",{children:"Depósito mÃnimo"}),c.jsx("th",{children:"Puntuación"}),c.jsx("th",{children:"Actualizado"}),c.jsx("th",{children:"Acciones"})]})}),c.jsx("tbody",{children:i.map(k=>c.jsxs("tr",{children:[c.jsx("td",{children:k.id}),c.jsx("td",{children:k.name}),c.jsx("td",{children:k.vertical}),c.jsx("td",{children:k.country||"â"}),c.jsx("td",{style:{maxWidth:"220px"},children:k.licenses}),c.jsx("td",{children:V(k.min_deposit)}),c.jsx("td",{children:O(k.overall_score)}),c.jsx("td",{children:k.updated_at?new Date(k.updated_at).toLocaleDateString():"â"}),c.jsxs("td",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:[c.jsx("button",{className:"btn btn--small",onClick:()=>C(k),children:"Editar"}),c.jsx("button",{className:"btn btn--small btn--danger",onClick:()=>N(k.id),children:"Eliminar"})]})]},k.id))})]})})]})},$C=()=>{const{isAuthenticated:e,isAdmin:t,getToken:n}=jn(),[i,a]=_.useState(null),[s,l]=_.useState(!0),[r,o]=_.useState(null);if(_.useEffect(()=>{if(!e||!t){l(!1);return}(async()=>{try{l(!0);const f=n(),h=await fetch(`${ae}/analytics/summary`,{headers:{Authorization:`Bearer ${f}`}});if(!h.ok)throw new Error(`HTTP error ${h.status}`);const m=await h.json();a(m)}catch(f){o(f.message)}finally{l(!1)}})()},[e,t,n]),!e||!t)return c.jsx("div",{className:"container section",children:"Acceso denegado. Solo administradores."});if(s)return c.jsx("div",{className:"container section",children:"Cargando métricas..."});if(r)return c.jsxs("div",{className:"container section",children:["Error: ",r]});if(!i)return c.jsx("div",{className:"container section",children:"No hay métricas disponibles todavÃa."});const u=(d,f)=>d!=null&&d.length?c.jsx("div",{className:"card",style:{overflowX:"auto"},children:c.jsxs("table",{className:"table",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"ID"}),c.jsx("th",{children:"Nombre"}),c.jsx("th",{children:"Visitas"}),c.jsx("th",{children:"Clicks"})]})}),c.jsx("tbody",{children:d.map(h=>c.jsxs("tr",{children:[c.jsx("td",{children:h.id??"â"}),c.jsx("td",{children:h.name}),c.jsx("td",{children:h.page_views}),c.jsx("td",{children:h.cta_clicks})]},h.id??h.name))})]})}):c.jsx("p",{children:f});return c.jsxs("div",{className:"container section",children:[c.jsx("h1",{children:"Panel de Métricas"}),c.jsxs("p",{className:"section__sub",children:["Total de eventos registrados: ",c.jsx("strong",{children:i.total_events})," · Actualizado:"," ",i.generated_at?new Date(i.generated_at).toLocaleString():"â"]}),c.jsx("h2",{style:{marginTop:"32px"},children:"Brokers más visitados"}),u(i.brokers,"Aún no se registran visitas para los brokers."),c.jsx("h2",{style:{marginTop:"32px"},children:"Cursos más visitados"}),u(i.courses,"Aún no se registran visitas para los cursos.")]})},QC=()=>{const{isAuthenticated:e,isAdmin:t,loading:n}=jn();return n?c.jsx("div",{className:"container section",children:"Cargando autenticación..."}):e?t?c.jsx(Rb,{}):c.jsx(Ih,{to:"/",replace:!0}):c.jsx(Ih,{to:"/login",replace:!0})},ZC=()=>{_.useEffect(()=>{},[]);const e=void 0;return e?c.jsx("noscript",{children:c.jsx("img",{height:"1",width:"1",style:{display:"none"},src:`https://www.facebook.com/tr?id=${e}&ev=PageView&noscript=1`,alt:"facebook pixel"})}):null};function KC(){return c.jsx(aS,{children:c.jsx(JS,{children:c.jsxs(yS,{children:[c.jsx(ZC,{}),c.jsx(R1,{children:c.jsxs(ge,{path:"/",element:c.jsx(jS,{}),children:[c.jsx(ge,{index:!0,element:c.jsx(ej,{})}),c.jsx(ge,{path:"brokers",element:c.jsx(tj,{})}),c.jsx(ge,{path:"brokers/:id",element:c.jsx(nj,{})}),c.jsx(ge,{path:"news",element:c.jsx(ij,{})}),c.jsx(ge,{path:"courses",element:c.jsx(aj,{})}),c.jsx(ge,{path:"cursos/:id",element:c.jsx(sj,{})}),c.jsx(ge,{path:"login",element:c.jsx(lj,{})}),c.jsx(ge,{path:"register",element:c.jsx(rj,{})}),c.jsx(ge,{path:"sentiment",element:c.jsx(MC,{})}),c.jsx(ge,{path:"community",element:c.jsx(DC,{})})," ",c.jsx(ge,{path:"posts/:id",element:c.jsx(OC,{})})," ",c.jsx(ge,{path:"create-post",element:c.jsx(zC,{})})," ",c.jsx(ge,{path:"comparison",element:c.jsx(kC,{})})," ",c.jsx(ge,{path:"tools",element:c.jsx(YC,{})}),c.jsx(ge,{path:"disclaimer",element:c.jsx(RC,{})}),c.jsx(ge,{path:"terms",element:c.jsx(BC,{})}),c.jsx(ge,{path:"privacy",element:c.jsx(LC,{})}),c.jsxs(ge,{path:"/admin",element:c.jsx(QC,{}),children:[c.jsx(ge,{path:"operators",element:c.jsx(PC,{})}),c.jsx(ge,{path:"analytics",element:c.jsx($C,{})})]})]})})]})})})}F_.createRoot(document.getElementById("root")).render(c.jsx(_.StrictMode,{children:c.jsx(Zb,{children:c.jsx(bS,{children:c.jsx(KC,{})})})}));
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.