PageSourceSearch

https://cnn-radar-ia-mapy3.ondigitalocean.app/assets/index-Dcjcy-Rp.js

js cnn-radar-ia-mapy3.ondigitalocean.app collected 2026-10-03 14:53:43 UTC 1,117,059 bytes, 50 lines download raw bytes

vendor: 20,731 bytes, lines 1-3
1var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var f=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.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`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(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 N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function ee(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function te(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var P=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&&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)},F={map:ee,forEach:function(e,t,n){ee(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ee(e,function(){t++}),t},toArray:function(e){return ee(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=F,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:te}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,P)}catch(e){P(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.7`})),p=s(((e,t)=>{t.exports=f()})),m=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),h=s(((e,t)=>{t.exports=m()})),g=s((e=>{var t=p();function n(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 r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.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??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,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})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.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 i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.7`})),_=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=s((e=>{var t=h(),n=p(),r=_();function i(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 a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(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 s(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 c(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 l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,m=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function ee(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?ee(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return ee(e(t))}catch{}}return null}var te=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},re=[],ie=-1;function ae(e){return{current:e}}function I(e){0>ie||(e.current=re[ie],re[ie]=null,ie--)}function L(e,t){ie++,re[ie]=e.current,e.current=t}var oe=ae(null),R=ae(null),se=ae(null),ce=ae(null);function le(e,t){switch(L(se,t),L(R,e),L(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?qd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=qd(t),e=Jd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}I(oe),L(oe,e)}function ue(){I(oe),I(R),I(se)}function de(e){e.memoizedState!==null&&L(ce,e);var t=oe.current,n=Jd(t,e.type);t!==n&&(L(R,e),L(oe,n))}function fe(e){R.current===e&&(I(oe),I(R)),ce.current===e&&(I(ce),rp._currentValue=ne)}var pe,me;function he(e){if(pe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);pe=t&&t[1]||``,me=-1<e.stack.indexOf(`
2    at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
3`+pe+e+me}var ge=!1;function _e(e,t){if(!e||ge)return``;ge=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}
vendor: 20,330 bytes, lines 3-8
3else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
4`),l=s.split(`
5`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
6`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ge=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?he(n):``}function ve(e,t){switch(e.tag){case 26:case 27:case 5:return he(e.type);case 16:return he(`Lazy`);case 13:return e.child!==t&&t!==null?he(`Suspense Fallback`):he(`Suspense`);case 19:return he(`SuspenseList`);case 0:case 15:return _e(e.type,!1);case 11:return _e(e.type.render,!1);case 1:return _e(e.type,!0);case 31:return he(`Activity`);default:return``}}function ye(e){try{var t=``,n=null;do t+=ve(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
7Error generating stack: `+e.message+`
8`+e.stack}}var be=Object.prototype.hasOwnProperty,xe=t.unstable_scheduleCallback,Se=t.unstable_cancelCallback,Ce=t.unstable_shouldYield,we=t.unstable_requestPaint,Te=t.unstable_now,Ee=t.unstable_getCurrentPriorityLevel,De=t.unstable_ImmediatePriority,Oe=t.unstable_UserBlockingPriority,ke=t.unstable_NormalPriority,Ae=t.unstable_LowPriority,je=t.unstable_IdlePriority,Me=t.log,Ne=t.unstable_setDisableYieldValue,Pe=null,Fe=null;function Ie(e){if(typeof Me==`function`&&Ne(e),Fe&&typeof Fe.setStrictMode==`function`)try{Fe.setStrictMode(Pe,e)}catch{}}var Le=Math.clz32?Math.clz32:Be,Re=Math.log,ze=Math.LN2;function Be(e){return e>>>=0,e===0?32:31-(Re(e)/ze|0)|0}var Ve=256,He=262144,Ue=4194304;function We(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 Ge(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=We(n))):i=We(o):i=We(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=We(n))):i=We(o)):i=We(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ke(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qe(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 Je(){var e=Ue;return Ue<<=1,!(Ue&62914560)&&(Ue=4194304),e}function Ye(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ze(e,t,n,r,i,a){var o=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 s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Le(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Qe(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Qe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Le(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function $e(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Le(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function et(e,t){var n=t&-t;return n=n&42?1:tt(n),(n&(e.suspendedLanes|t))===0?n:0}function tt(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 nt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function rt(){var e=F.p;return e===0?(e=window.event,e===void 0?32:yp(e.type)):e}function it(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var at=Math.random().toString(36).slice(2),ot=`__reactFiber$`+at,st=`__reactProps$`+at,ct=`__reactContainer$`+at,lt=`__reactEvents$`+at,ut=`__reactListeners$`+at,dt=`__reactHandles$`+at,ft=`__reactResources$`+at,pt=`__reactMarker$`+at;function mt(e){delete e[ot],delete e[st],delete e[lt],delete e[ut],delete e[dt]}function ht(e){var t=e[ot];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ct]||n[ot]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_f(e);e!==null;){if(n=e[ot])return n;e=_f(e)}return t}e=n,n=e.parentNode}return null}function gt(e){if(e=e[ot]||e[ct]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function _t(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function vt(e){var t=e[ft];return t||=e[ft]={hoistableStyles:new Map,hoistableScripts:new Map},t}function yt(e){e[pt]=!0}var bt=new Set,xt={};function St(e,t){Ct(e,t),Ct(e+`Capture`,t)}function Ct(e,t){for(xt[e]=t,e=0;e<t.length;e++)bt.add(t[e])}var wt=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]*$`),Tt={},Et={};function Dt(e){return be.call(Et,e)?!0:be.call(Tt,e)?!1:wt.test(e)?Et[e]=!0:(Tt[e]=!0,!1)}function Ot(e,t,n){if(Dt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function kt(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 At(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function jt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Mt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Nt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pt(e){if(!e._valueTracker){var t=Mt(e)?`checked`:`value`;e._valueTracker=Nt(e,t,``+e[t])}}function Ft(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Mt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function It(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Lt=/[\n"\\]/g;function Rt(e){return e.replace(Lt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function zt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+jt(t)):e.value!==``+jt(t)&&(e.value=``+jt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Vt(e,o,jt(n)):Vt(e,o,jt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+jt(s):e.removeAttribute(`name`)}function Bt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Pt(e);return}n=n==null?``:``+jt(n),t=t==null?n:``+jt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Pt(e)}function Vt(e,t,n){t===`number`&&It(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ht(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+jt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ut(e,t,n){if(t!=null&&(t=``+jt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+jt(n)}function Wt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(te(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=jt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Pt(e)}function Gt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Kt=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 qt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Kt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Jt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&qt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&qt(e,o,t[o])}function Yt(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 Xt=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-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`]]),Zt=/^[\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 Qt(e){return Zt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function $t(){}var en=null;function tn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nn=null,rn=null;function an(e){var t=gt(e);if(t&&(e=t.stateNode)){var n=e[st]||null;a:switch(e=t.stateNode,t.type){case`input`:if(zt(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="`+Rt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[st]||null;if(!a)throw Error(i(90));zt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Ft(r)}break a;case`textarea`:Ut(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ht(e,!!n.multiple,t,!1)}}}var on=!1;function sn(e,t,n){if(on)return e(t,n);on=!0;try{return e(t)}finally{if(on=!1,(nn!==null||rn!==null)&&(Cu(),nn&&(t=nn,e=rn,rn=nn=null,an(t),e)))for(t=0;t<e.length;t++)an(e[t])}}function cn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[st]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var ln=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),un=!1;if(ln)try{var dn={};Object.defineProperty(dn,"passive",{get:function(){un=!0}}),window.addEventListener(`test`,dn,dn),window.removeEventListener(`test`,dn,dn)}catch{un=!1}var fn=null,pn=null,mn=null;function hn(){if(mn)return mn;var e,t=pn,n=t.length,r,i=`value`in fn?fn.value:fn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return mn=i.slice(e,1<r?1-r:void 0)}function gn(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 _n(){return!0}function vn(){return!1}function yn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?_n:vn,this.isPropagationStopped=vn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=_n)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=_n)},persist:function(){},isPersistent:_n}),t}var bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xn=yn(bn),Sn=f({},bn,{view:0,detail:0}),Cn=yn(Sn),wn,Tn,En,Dn=f({},Sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rn,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!==En&&(En&&e.type===`mousemove`?(wn=e.screenX-En.screenX,Tn=e.screenY-En.screenY):Tn=wn=0,En=e),wn)},movementY:function(e){return`movementY`in e?e.movementY:Tn}}),On=yn(Dn),kn=yn(f({},Dn,{dataTransfer:0})),An=yn(f({},Sn,{relatedTarget:0})),jn=yn(f({},bn,{animationName:0,elapsedTime:0,pseudoElement:0})),Mn=yn(f({},bn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Nn=yn(f({},bn,{data:0})),Pn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Fn={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:`F
85`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},In={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Ln(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=In[e])?!!t[e]:!1}function Rn(){return Ln}var zn=yn(f({},Sn,{key:function(e){if(e.key){var t=Pn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=gn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Fn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rn,charCode:function(e){return e.type===`keypress`?gn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?gn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Bn=yn(f({},Dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Vn=yn(f({},Sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rn})),Hn=yn(f({},bn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Un=yn(f({},Dn,{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})),Wn=yn(f({},bn,{newState:0,oldState:0})),Gn=[9,13,27,32],Kn=ln&&`CompositionEvent`in window,qn=null;ln&&`documentMode`in document&&(qn=document.documentMode);var Jn=ln&&`TextEvent`in window&&!qn,Yn=ln&&(!Kn||qn&&8<qn&&11>=qn),Xn=` `,Zn=!1;function Qn(e,t){switch(e){case`keyup`:return Gn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function z(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var $n=!1;function er(e,t){switch(e){case`compositionend`:return z(t);case`keypress`:return t.which===32?(Zn=!0,Xn):null;case`textInput`:return e=t.data,e===Xn&&Zn?null:e;default:return null}}function tr(e,t){if($n)return e===`compositionend`||!Kn&&Qn(e,t)?(e=hn(),mn=pn=fn=null,$n=!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 Yn&&t.locale!==`ko`?null:t.data;default:return null}}var nr={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 rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!nr[e.type]:t===`textarea`}function ir(e,t,n,r){nn?rn?rn.push(r):rn=[r]:nn=r,t=jd(t,`onChange`),0<t.length&&(n=new xn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var ar=null,or=null;function sr(e){Cd(e,0)}function cr(e){if(Ft(_t(e)))return e}function lr(e,t){if(e===`change`)return t}var ur=!1;if(ln){var dr;if(ln){var fr=`oninput`in document;if(!fr){var pr=document.createElement(`div`);pr.setAttribute(`oninput`,`return;`),fr=typeof pr.oninput==`function`}dr=fr}else dr=!1;ur=dr&&(!document.documentMode||9<document.documentMode)}function mr(){ar&&(ar.detachEvent(`onpropertychange`,hr),or=ar=null)}function hr(e){if(e.propertyName===`value`&&cr(or)){var t=[];ir(t,or,e,tn(e)),sn(sr,t)}}function gr(e,t,n){e===`focusin`?(mr(),ar=t,or=n,ar.attachEvent(`onpropertychange`,hr)):e===`focusout`&&mr()}function _r(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return cr(or)}function vr(e,t){if(e===`click`)return cr(t)}function yr(e,t){if(e===`input`||e===`change`)return cr(t)}function br(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var xr=typeof Object.is==`function`?Object.is:br;function Sr(e,t){if(xr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!be.call(t,i)||!xr(e[i],t[i]))return!1}return!0}function Cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wr(e,t){var n=Cr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Cr(n)}}function Tr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Er(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=It(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=It(e.document)}return t}function Dr(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 Or=ln&&`documentMode`in document&&11>=document.documentMode,kr=null,Ar=null,jr=null,Mr=!1;function Nr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mr||kr==null||kr!==It(r)||(r=kr,`selectionStart`in r&&Dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 72,383 bytes, line 8
8sNode:r.focusNode,focusOffset:r.focusOffset}),jr&&Sr(jr,r)||(jr=r,r=jd(Ar,`onSelect`),0<r.length&&(t=new xn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=kr)))}function Pr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Fr={animationend:Pr(`Animation`,`AnimationEnd`),animationiteration:Pr(`Animation`,`AnimationIteration`),animationstart:Pr(`Animation`,`AnimationStart`),transitionrun:Pr(`Transition`,`TransitionRun`),transitionstart:Pr(`Transition`,`TransitionStart`),transitioncancel:Pr(`Transition`,`TransitionCancel`),transitionend:Pr(`Transition`,`TransitionEnd`)},Ir={},Lr={};ln&&(Lr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Fr.animationend.animation,delete Fr.animationiteration.animation,delete Fr.animationstart.animation),`TransitionEvent`in window||delete Fr.transitionend.transition);function Rr(e){if(Ir[e])return Ir[e];if(!Fr[e])return e;var t=Fr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Lr)return Ir[e]=t[n];return e}var zr=Rr(`animationend`),Br=Rr(`animationiteration`),Vr=Rr(`animationstart`),Hr=Rr(`transitionrun`),Ur=Rr(`transitionstart`),Wr=Rr(`transitioncancel`),Gr=Rr(`transitionend`),Kr=new Map,qr=`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(` `);qr.push(`scrollEnd`);function Jr(e,t){Kr.set(e,t),St(t,[e])}var Yr=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&&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)},Xr=[],Zr=0,Qr=0;function $r(){for(var e=Zr,t=Qr=Zr=0;t<e;){var n=Xr[t];Xr[t++]=null;var r=Xr[t];Xr[t++]=null;var i=Xr[t];Xr[t++]=null;var a=Xr[t];if(Xr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ri(n,i,a)}}function ei(e,t,n,r){Xr[Zr++]=e,Xr[Zr++]=t,Xr[Zr++]=n,Xr[Zr++]=r,Qr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ti(e,t,n,r){return ei(e,t,n,r),ii(e)}function ni(e,t){return ei(e,null,null,t),ii(e)}function ri(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Le(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ii(e){if(50<mu)throw mu=0,hu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var B={};function ai(e,t,n,r){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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function oi(e,t,n,r){return new ai(e,t,n,r)}function si(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ci(e,t){var n=e.alternate;return n===null?(n=oi(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 li(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 ui(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)si(e)&&(s=1);else if(typeof e==`string`)s=Jf(e,n,oe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=oi(31,n,t,a),e.elementType=k,e.lanes=o,e;case y:return di(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=oi(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=oi(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=oi(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=oi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function di(e,t,n,r){return e=oi(7,e,r,t),e.lanes=n,e}function V(e,t,n){return e=oi(6,e,null,t),e.lanes=n,e}function fi(e){var t=oi(18,null,null,0);return t.stateNode=e,t}function pi(e,t,n){return t=oi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var mi=new WeakMap;function hi(e,t){if(typeof e==`object`&&e){var n=mi.get(e);return n===void 0?(t={value:e,source:t,stack:ye(t)},mi.set(e,t),t):n}return{value:e,source:t,stack:ye(t)}}var gi=[],_i=0,vi=null,yi=0,bi=[],xi=0,Si=null,Ci=1,wi=``;function Ti(e,t){gi[_i++]=yi,gi[_i++]=vi,vi=e,yi=t}function Ei(e,t,n){bi[xi++]=Ci,bi[xi++]=wi,bi[xi++]=Si,Si=e;var r=Ci;e=wi;var i=32-Le(r)-1;r&=~(1<<i),n+=1;var a=32-Le(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ci=1<<32-Le(t)+i|n<<i|r,wi=a+e}else Ci=1<<a|n<<i|r,wi=e}function Di(e){e.return!==null&&(Ti(e,1),Ei(e,1,0))}function Oi(e){for(;e===vi;)vi=gi[--_i],gi[_i]=null,yi=gi[--_i],gi[_i]=null;for(;e===Si;)Si=bi[--xi],bi[xi]=null,wi=bi[--xi],bi[xi]=null,Ci=bi[--xi],bi[xi]=null}function ki(e,t){bi[xi++]=Ci,bi[xi++]=wi,bi[xi++]=Si,Ci=t.id,wi=t.overflow,Si=e}var Ai=null,ji=null,Mi=!1,Ni=null,Pi=!1,H=Error(i(519));function Fi(e){throw Vi(hi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),H}function Ii(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ot]=e,t[st]=r,n){case`dialog`:wd(`cancel`,t),wd(`close`,t);break;case`iframe`:case`object`:case`embed`:wd(`load`,t);break;case`video`:case`audio`:for(n=0;n<xd.length;n++)wd(xd[n],t);break;case`source`:wd(`error`,t);break;case`img`:case`image`:case`link`:wd(`error`,t),wd(`load`,t);break;case`details`:wd(`toggle`,t);break;case`input`:wd(`invalid`,t),Bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:wd(`invalid`,t);break;case`textarea`:wd(`invalid`,t),Wt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Ld(t.textContent,n)?(r.popover!=null&&(wd(`beforetoggle`,t),wd(`toggle`,t)),r.onScroll!=null&&wd(`scroll`,t),r.onScrollEnd!=null&&wd(`scrollend`,t),r.onClick!=null&&(t.onclick=$t),t=!0):t=!1,t||Fi(e,!0)}function Li(e){for(Ai=e.return;Ai;)switch(Ai.tag){case 5:case 31:case 13:Pi=!1;return;case 27:case 3:Pi=!0;return;default:Ai=Ai.return}}function Ri(e){if(e!==Ai)return!1;if(!Mi)return Li(e),Mi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Yd(e.type,e.memoizedProps)),n=!n),n&&ji&&Fi(e),Li(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ji=gf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ji=gf(e)}else t===27?(t=ji,rf(e.type)?(e=hf,hf=null,ji=e):ji=t):ji=Ai?mf(e.stateNode.nextSibling):null;return!0}function zi(){ji=Ai=null,Mi=!1}function Bi(){var e=Ni;return e!==null&&(eu===null?eu=e:eu.push.apply(eu,e),Ni=null),e}function Vi(e){Ni===null?Ni=[e]:Ni.push(e)}var Hi=ae(null),Ui=null,Wi=null;function Gi(e,t,n){L(Hi,t._currentValue),t._currentValue=n}function Ki(e){e._currentValue=Hi.current,I(Hi)}function qi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Ji(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),qi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),qi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Yi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;xr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ce.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[rp]:e.push(rp))}a=a.return}e!==null&&Ji(t,e,n,r),t.flags|=262144}function Xi(e){for(e=e.firstContext;e!==null;){if(!xr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Zi(e){Ui=e,Wi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qi(e){return ea(Ui,e)}function $i(e,t){return Ui===null&&Zi(e),ea(e,t)}function ea(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Wi===null){if(e===null)throw Error(i(308));Wi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wi=Wi.next=t;return n}var ta=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},na=t.unstable_scheduleCallback,U=t.unstable_NormalPriority,ra={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ia(){return{controller:new ta,data:new Map,refCount:0}}function aa(e){e.refCount--,e.refCount===0&&na(U,function(){e.controller.abort()})}var oa=null,sa=0,ca=0,la=null;function ua(e,t){if(oa===null){var n=oa=[];sa=0,ca=hd(),la={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return sa++,t.then(da,da),t}function da(){if(--sa===0&&oa!==null){la!==null&&(la.status=`fulfilled`);var e=oa;oa=null,ca=0,la=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function fa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var pa=P.S;P.S=function(e,t){ru=Te(),typeof t==`object`&&t&&typeof t.then==`function`&&ua(e,t),pa!==null&&pa(e,t)};var ma=ae(null);function ha(){var e=ma.current;return e===null?Rl.pooledCache:e}function ga(e,t){t===null?L(ma,ma.current):L(ma,t.pool)}function _a(){var e=ha();return e===null?null:{parent:ra._currentValue,pool:e}}var va=Error(i(460)),ya=Error(i(474)),ba=Error(i(542)),xa={then:function(){}};function Sa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ca(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then($t,$t),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Da(e),e;default:if(typeof t.status==`string`)t.then($t,$t);else{if(e=Rl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Da(e),e}throw Ta=t,va}}function wa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ta=e,va):e}}var Ta=null;function Ea(){if(Ta===null)throw Error(i(459));var e=Ta;return Ta=null,e}function Da(e){if(e===va||e===ba)throw Error(i(483))}var Oa=null,ka=0;function Aa(e){var t=ka;return ka+=1,Oa===null&&(Oa=[]),Ca(Oa,e,t)}function ja(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ma(e,t){throw t.$$typeof===m?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Na(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ci(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=V(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&wa(i)===t.type)?(t=a(t,n.props),ja(t,n),t.return=e,t):(t=ui(n.type,n.key,n.props,null,e.mode,r),ja(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=pi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=di(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=V(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=ui(t.type,t.key,t.props,null,e.mode,n),ja(n,t),n.return=e,n;case v:return t=pi(t,e.mode,n),t.return=e,t;case O:return t=wa(t),f(e,t,n)}if(te(t)||M(t))return t=di(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Aa(t),n);if(t.$$typeof===C)return f(e,$i(e,t),n);Ma(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case g:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=wa(n),p(e,t,n,r)}if(te(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Aa(n),r);if(n.$$typeof===C)return p(e,t,$i(e,n),r);Ma(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case g:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=wa(r),m(e,t,n,r,i)}if(te(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Aa(r),i);if(r.$$typeof===C)return m(e,t,n,$i(t,r),i);Ma(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Mi&&Ti(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Mi&&Ti(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Mi&&Ti(i,h),l}function _(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Mi&&Ti(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Mi&&Ti(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Mi&&Ti(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case g:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&wa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ja(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=di(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ui(o.type,o.key,o.props,null,e.mode,c),ja(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=pi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=wa(o),b(e,r,o,c)}if(te(o))return h(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),_(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Aa(o),c);if(o.$$typeof===C)return b(e,r,$i(e,o),c);Ma(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=V(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{ka=0;var i=b(e,t,n,r);return Oa=null,i}catch(t){if(t===va||t===ba)throw t;var a=oi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Pa=Na(!0),Fa=Na(!1),Ia=!1;function La(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ra(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 za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ba(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ll&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ii(e),ri(e,null,n),t}return ei(e,r,t,n),ii(e)}function Va(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}function Ha(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ua=!1;function Wa(){if(Ua){var e=la;if(e!==null)throw e}}function Ga(e,t,n,r){Ua=!1;var i=e.updateQueue;Ia=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Bl&p)===p:(r&p)===p){p!==0&&p===ca&&(Ua=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Ia=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Jl|=o,e.lanes=o,e.memoizedState=d}}function Ka(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function qa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ka(n[e],t)}var Ja=ae(null),Ya=ae(0);function Xa(e,t){e=Kl,L(Ya,e),L(Ja,t),Kl=e|t.baseLanes}function Za(){L(Ya,Kl),L(Ja,Ja.current)}function Qa(){Kl=Ya.current,I(Ja),I(Ya)}var $a=ae(null),eo=null;function to(e){var t=e.alternate;L(oo,oo.current&1),L($a,e),eo===null&&(t===null||Ja.current!==null||t.memoizedState!==null)&&(eo=e)}function no(e){L(oo,oo.current),L($a,e),eo===null&&(eo=e)}function ro(e){e.tag===22?(L(oo,oo.current),L($a,e),eo===null&&(eo=e)):io(e)}function io(){L(oo,oo.current),L($a,$a.current)}function ao(e){I($a),eo===e&&(eo=null),I(oo)}var oo=ae(0);function so(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||df(n)||ff(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 co=0,W=null,lo=null,uo=null,fo=!1,po=!1,mo=!1,ho=0,go=0,_o=null,vo=0;function yo(){throw Error(i(321))}function bo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!xr(e[n],t[n]))return!1;return!0}function xo(e,t,n,r,i,a){return co=a,W=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?Rs:zs,mo=!1,a=n(r,i),mo=!1,po&&(a=Co(t,n,r,i)),So(e),a}function So(e){P.H=Ls;var t=lo!==null&&lo.next!==null;if(co=0,uo=lo=W=null,fo=!1,go=0,_o=null,t)throw Error(i(300));e===null||nc||(e=e.dependencies,e!==null&&Xi(e)&&(nc=!0))}function Co(e,t,n,r){W=e;var a=0;do{if(po&&(_o=null),go=0,po=!1,25<=a)throw Error(i(301));if(a+=1,uo=lo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}P.H=Bs,o=t(n,r)}while(po);return o}function wo(){var e=P.H,t=e.useState()[0];return t=typeof t.then==`function`?jo(t):t,e=e.useState()[0],(lo===null?null:lo.memoizedState)!==e&&(W.flags|=1024),t}function To(){var e=ho!==0;return ho=0,e}function Eo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Do(e){if(fo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fo=!1}co=0,uo=lo=W=null,po=!1,go=ho=0,_o=null}function Oo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return uo===null?W.memoizedState=uo=e:uo=uo.next=e,uo}function ko(){if(lo===null){var e=W.alternate;e=e===null?null:e.memoizedState}else e=lo.next;var t=uo===null?W.memoizedState:uo.next;if(t!==null)uo=t,lo=e;else{if(e===null)throw W.alternate===null?Error(i(467)):Error(i(310));lo=e,e={memoizedState:lo.memoizedState,baseState:lo.baseState,baseQueue:lo.baseQueue,queue:lo.queue,next:null},uo===null?W.memoizedState=uo=e:uo=uo.next=e}return uo}function Ao(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function jo(e){var t=go;return go+=1,_o===null&&(_o=[]),e=Ca(_o,e,t),t=W,(uo===null?t.memoizedState:uo.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?Rs:zs),e}function Mo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return jo(e);if(e.$$typeof===C)return Qi(e)}throw Error(i(438,String(e)))}function No(e){var t=null,n=W.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=W.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Ao(),W.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function Po(e,t){return typeof t==`function`?t(e):t}function Fo(e){return Io(ko(),lo,e)}function Io(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(co&f)===f:(Bl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ca&&(d=!0);else if((co&p)===p){u=u.next,p===ca&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,W.lanes|=p,Jl|=p;f=u.action,mo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,W.lanes|=f,Jl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!xr(o,e.memoizedState)&&(nc=!0,d&&(n=la,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Lo(e){var t=ko(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);xr(o,t.memoizedState)||(nc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ro(e,t,n){var r=W,a=ko(),o=Mi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!xr((lo||a).memoizedState,n);if(s&&(a.memoizedState=n,nc=!0),a=a.queue,ls(Vo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||uo!==null&&uo.memoizedState.tag&1){if(r.flags|=2048,is(9,{destroy:void 0},Bo.bind(null,r,a,n,t),null),Rl===null)throw Error(i(349));o||co&127||zo(r,t,n)}return n}function zo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=W.updateQueue,t===null?(t=Ao(),W.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Bo(e,t,n,r){t.value=n,t.getSnapshot=r,Ho(t)&&Uo(e)}function Vo(e,t,n){return n(function(){Ho(t)&&Uo(e)})}function Ho(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xr(e,n)}catch{return!0}}function Uo(e){var t=ni(e,2);t!==null&&vu(t,e,2)}function Wo(e){var t=Oo();if(typeof e==`function`){var n=e;if(e=n(),mo){Ie(!0);try{n()}finally{Ie(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:e},t}function Go(e,t,n,r){return e.baseState=n,Io(e,lo,typeof r==`function`?r:Po)}function Ko(e,t,n,r,a){if(Ps(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};P.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,qo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function qo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=P.T,o={};P.T=o;try{var s=n(i,r),c=P.S;c!==null&&c(o,s),Jo(e,t,s)}catch(n){Xo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),P.T=a}}else try{a=n(i,r),Jo(e,t,a)}catch(n){Xo(e,t,n)}}function Jo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Yo(e,t,n)},function(n){return Xo(e,t,n)}):Yo(e,t,n)}function Yo(e,t,n){t.status=`fulfilled`,t.value=n,Zo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,qo(e,n)))}function Xo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Zo(t),t=t.next;while(t!==r)}e.action=null}function Zo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Qo(e,t){return t}function $o(e,t){if(Mi){var n=Rl.formState;if(n!==null){a:{var r=W;if(Mi){if(ji){b:{for(var i=ji,a=Pi;i.nodeType!==8;){if(!a){i=null;break b}if(i=mf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ji=mf(i.nextSibling),r=i.data===`F!`;break a}}Fi(r)}r=!1}r&&(t=n[0])}}return n=Oo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qo,lastRenderedState:t},n.queue=r,n=js.bind(null,W,r),r.dispatch=n,r=Wo(!1),a=Ns.bind(null,W,!1,r.queue),r=Oo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ko.bind(null,W,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function es(e){return ts(ko(),lo,e)}function ts(e,t,n){if(t=Io(e,t,Qo)[0],e=Fo(Po)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=jo(t)}catch(e){throw e===va?ba:e}else r=t;t=ko();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(W.flags|=2048,is(9,{destroy:void 0},ns.bind(null,i,n),null)),[r,a,e]}function ns(e,t){e.action=t}function rs(e){var t=ko(),n=lo;if(n!==null)return ts(t,n,e);ko(),t=t.memoizedState,n=ko();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function is(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=W.updateQueue,t===null&&(t=Ao(),W.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function as(){return ko().memoizedState}function os(e,t,n,r){var i=Oo();W.flags|=e,i.memoizedState=is(1|t,{destroy:void 0},n,r===void 0?null:r)}function ss(e,t,n,r){var i=ko();r=r===void 0?null:r;var a=i.memoizedState.inst;lo!==null&&r!==null&&bo(r,lo.memoizedState.deps)?i.memoizedState=is(t,a,n,r):(W.flags|=e,i.memoizedState=is(1|t,a,n,r))}function cs(e,t){os(8390656,8,e,t)}function ls(e,t){ss(2048,8,e,t)}function us(e){W.flags|=4;var t=W.updateQueue;if(t===null)t=Ao(),W.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ds(e){var t=ko().memoizedState;return us({ref:t,nextImpl:e}),function(){if(Ll&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function fs(e,t){return ss(4,2,e,t)}function ps(e,t){return ss(4,4,e,t)}function ms(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 hs(e,t,n){n=n==null?null:n.concat([e]),ss(4,4,ms.bind(null,t,e),n)}function gs(){}function _s(e,t){var n=ko();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&bo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function vs(e,t){var n=ko();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&bo(t,r[1]))return r[0];if(r=e(),mo){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r}function ys(e,t,n){return n===void 0||co&1073741824&&!(Bl&261930)?e.memoizedState=t:(e.memoizedState=n,e=_u(),W.lanes|=e,Jl|=e,n)}function bs(e,t,n,r){return xr(n,t)?n:Ja.current===null?!(co&42)||co&1073741824&&!(Bl&261930)?(nc=!0,e.memoizedState=n):(e=_u(),W.lanes|=e,Jl|=e,t):(e=ys(e,n,r),xr(e,t)||(nc=!0),e)}function xs(e,t,n,r,i){var a=F.p;F.p=a!==0&&8>a?a:8;var o=P.T,s={};P.T=s,Ns(e,!1,t,n);try{var c=i(),l=P.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ms(e,t,fa(c,r),gu(e)):Ms(e,t,r,gu(e))}catch(n){Ms(e,t,{then:function(){},status:`rejected`,reason:n},gu())}finally{F.p=a,o!==null&&s.types!==null&&(o.types=s.types),P.T=o}}function Ss(){}function Cs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ws(e).queue;xs(e,a,t,ne,n===null?Ss:function(){return Ts(e),n(r)})}function ws(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:ne},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ts(e){var t=ws(e);t.next===null&&(t=e.alternate.memoizedState),Ms(e,t.next.queue,{},gu())}function Es(){return Qi(rp)}function Ds(){return ko().memoizedState}function Os(){return ko().memoizedState}function ks(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=gu();e=za(n);var r=Ba(t,e,n);r!==null&&(vu(r,t,n),Va(r,t,n)),t={cache:ia()},e.payload=t;return}t=t.return}}function As(e,t,n){var r=gu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ps(e)?Fs(t,n):(n=ti(e,t,n,r),n!==null&&(vu(n,e,r),Is(n,t,r)))}function js(e,t,n){Ms(e,t,n,gu())}function Ms(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ps(e))Fs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,xr(s,o))return ei(e,t,i,0),Rl===null&&$r(),!1}catch{}if(n=ti(e,t,i,r),n!==null)return vu(n,e,r),Is(n,t,r),!0}return!1}function Ns(e,t,n,r){if(r={lane:2,revertLane:hd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ps(e)){if(t)throw Error(i(479))}else t=ti(e,n,r,2),t!==null&&vu(t,e,2)}function Ps(e){var t=e.alternate;return e===W||t!==null&&t===W}function Fs(e,t){po=fo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Is(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}var Ls={readContext:Qi,use:Mo,useCallback:yo,useContext:yo,useEffect:yo,useImperativeHandle:yo,useLayoutEffect:yo,useInsertionEffect:yo,useMemo:yo,useReducer:yo,useRef:yo,useState:yo,useDebugValue:yo,useDeferredValue:yo,useTransition:yo,useSyncExternalStore:yo,useId:yo,useHostTransitionStatus:yo,useFormState:yo,useActionState:yo,useOptimistic:yo,useMemoCache:yo,useCacheRefresh:yo};Ls.useEffectEvent=yo;var Rs={readContext:Qi,use:Mo,useCallback:function(e,t){return Oo().memoizedState=[e,t===void 0?null:t],e},useContext:Qi,useEffect:cs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),os(4194308,4,ms.bind(null,t,e),n)},useLayoutEffect:function(e,t){return os(4194308,4,e,t)},useInsertionEffect:function(e,t){os(4,2,e,t)},useMemo:function(e,t){var n=Oo();t=t===void 0?null:t;var r=e();if(mo){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Oo();if(n!==void 0){var i=n(t);if(mo){Ie(!0);try{n(t)}finally{Ie(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=As.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=Oo();return e={current:e},t.memoizedState=e},useState:function(e){e=Wo(e);var t=e.queue,n=js.bind(null,W,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:gs,useDeferredValue:function(e,t){return ys(Oo(),e,t)},useTransition:function(){var e=Wo(!1);return e=xs.bind(null,W,e.queue,!0,!1),Oo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=W,a=Oo();if(Mi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Rl===null)throw Error(i(349));Bl&127||zo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,cs(Vo.bind(null,r,o,e),[e]),r.flags|=2048,is(9,{destroy:void 0},Bo.bind(null,r,o,n,t),null),n},useId:function(){var e=Oo(),t=Rl.identifierPrefix;if(Mi){var n=wi,r=Ci;n=(r&~(1<<32-Le(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=ho++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=vo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Es,useFormState:$o,useActionState:$o,useOptimistic:function(e){var t=Oo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ns.bind(null,W,!0,n),n.dispatch=t,[e,t]},useMemoCache:No,useCacheRefresh:function(){return Oo().memoizedState=ks.bind(null,W)},useEffectEvent:function(e){var t=Oo(),n={impl:e};return t.memoizedState=n,function(){if(Ll&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},zs={readContext:Qi,use:Mo,useCallback:_s,useContext:Qi,useEffect:ls,useImperativeHandle:hs,useInsertionEffect:fs,useLayoutEffect:ps,useMemo:vs,useReducer:Fo,useRef:as,useState:function(){return Fo(Po)},useDebugValue:gs,useDeferredValue:function(e,t){return bs(ko(),lo.memoizedState,e,t)},useTransition:function(){var e=Fo(Po)[0],t=ko().memoizedState;return[typeof e==`boolean`?e:jo(e),t]},useSyncExternalStore:Ro,useId:Ds,useHostTransitionStatus:Es,useFormState:es,useActionState:es,useOptimistic:function(e,t){return Go(ko(),lo,e,t)},useMemoCache:No,useCacheRefresh:Os};zs.useEffectEvent=ds;var Bs={readContext:Qi,use:Mo,useCallback:_s,useContext:Qi,useEffect:ls,useImperativeHandle:hs,useInsertionEffect:fs,useLayoutEffect:ps,useMemo:vs,useReducer:Lo,useRef:as,useState:function(){return Lo(Po)},useDebugValue:gs,useDeferredValue:function(e,t){var n=ko();return lo===null?ys(n,e,t):bs(n,lo.memoizedState,e,t)},useTransition:function(){var e=Lo(Po)[0],t=ko().memoizedState;return[typeof e==`boolean`?e:jo(e),t]},useSyncExternalStore:Ro,useId:Ds,useHostTransitionStatus:Es,useFormState:rs,useActionState:rs,useOptimistic:function(e,t){var n=ko();return lo===null?(n.baseState=e,[e,n.queue.dispatch]):Go(n,lo,e,t)},useMemoCache:No,useCacheRefresh:Os};Bs.useEffectEvent=ds;function Vs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Hs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=gu(),i=za(r);i.payload=t,n!=null&&(i.callback=n),t=Ba(e,i,r),t!==null&&(vu(t,e,r),Va(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=gu(),i=za(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ba(e,i,r),t!==null&&(vu(t,e,r),Va(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=gu(),r=za(n);r.tag=2,t!=null&&(r.callback=t),t=Ba(e,r,n),t!==null&&(vu(t,e,n),Va(t,e,n))}};function Us(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Sr(n,r)||!Sr(i,a):!0}function Ws(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Hs.enqueueReplaceState(t,t.state,null)}function Gs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ks(e){Yr(e)}function qs(e){console.error(e)}function Js(e){Yr(e)}function Ys(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Xs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Zs(e,t,n){return n=za(n),n.tag=3,n.payload={element:null},n.callback=function(){Ys(e,t)},n}function Qs(e){return e=za(e),e.tag=3,e}function $s(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Xs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Xs(t,n,r),typeof i!=`function`&&(ou===null?ou=new Set([this]):ou.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function ec(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Yi(t,n,a,!0),n=$a.current,n!==null){switch(n.tag){case 31:case 13:return eo===null?Au():n.alternate===null&&ql===0&&(ql=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===xa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Yu(e,r,a)),!1;case 22:return n.flags|=65536,r===xa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Yu(e,r,a)),!1}throw Error(i(435,n.tag))}return Yu(e,r,a),Au(),!1}if(Mi)return t=$a.current,t===null?(r!==H&&(t=Error(i(423),{cause:r}),Vi(hi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=hi(r,n),a=Zs(e.stateNode,r,a),Ha(e,a),ql!==4&&(ql=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==H&&(e=Error(i(422),{cause:r}),Vi(hi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=hi(o,n),$l===null?$l=[o]:$l.push(o),ql!==4&&(ql=2),t===null)return!0;r=hi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Zs(n.stateNode,r,e),Ha(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(ou===null||!ou.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Qs(a),$s(a,e,n,r),Ha(n,a),!1}n=n.return}while(n!==null);return!1}var tc=Error(i(461)),nc=!1;function rc(e,t,n,r){t.child=e===null?Fa(t,null,n,r):Pa(t,e.child,n,r)}function ic(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Zi(t),r=xo(e,t,n,o,a,i),s=To(),e!==null&&!nc?(Eo(e,t,i),Dc(e,t,i)):(Mi&&s&&Di(t),t.flags|=1,rc(e,t,r,i),t.child)}function ac(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!si(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,oc(e,t,a,r,i)):(e=ui(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Oc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Sr:n,n(o,r)&&e.ref===t.ref)return Dc(e,t,i)}return t.flags|=1,e=ci(a,r),e.ref=t.ref,e.return=t,t.child=e}function oc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Sr(a,r)&&e.ref===t.ref)if(nc=!1,t.pendingProps=r=a,Oc(e,i))e.flags&131072&&(nc=!0);else return t.lanes=e.lanes,Dc(e,t,i)}return mc(e,t,n,r,i)}function sc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return lc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ga(t,a===null?null:a.cachePool),a===null?Za():Xa(t,a),ro(t);else return r=t.lanes=536870912,lc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ga(t,null),Za(),io(t)):(ga(t,a.cachePool),Xa(t,a),io(t),t.memoizedState=null);return rc(e,t,i,n),t.child}function cc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function lc(e,t,n,r,i){var a=ha();return a=a===null?null:{parent:ra._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ga(t,null),Za(),ro(t),e!==null&&Yi(e,t,r,!0),t.childLanes=i,null}function uc(e,t){return t=Sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function dc(e,t,n){return Pa(t,e.child,null,n),e=uc(t,t.pendingProps),e.flags|=2,ao(t),t.memoizedState=null,e}function fc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Mi){if(r.mode===`hidden`)return e=uc(t,r),t.lanes=536870912,cc(null,e);if(no(t),(e=ji)?(e=uf(e,Pi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=fi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Fi(t);return t.lanes=536870912,null}return uc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(no(t),a)if(t.flags&256)t.flags&=-257,t=dc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(nc||Yi(e,t,n,!1),a=(n&e.childLanes)!==0,nc||a){if(r=Rl,r!==null&&(s=et(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ni(e,s),vu(r,e,s),tc;Au(),t=dc(e,t,n)}else e=o.treeContext,ji=mf(s.nextSibling),Ai=t,Mi=!0,Ni=null,Pi=!1,e!==null&&ki(t,e),t=uc(t,r),t.flags|=4096;return t}return e=ci(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function pc(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(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function mc(e,t,n,r,i){return Zi(t),n=xo(e,t,n,r,void 0,i),r=To(),e!==null&&!nc?(Eo(e,t,i),Dc(e,t,i)):(Mi&&r&&Di(t),t.flags|=1,rc(e,t,n,i),t.child)}function hc(e,t,n,r,i,a){return Zi(t),t.updateQueue=null,n=Co(t,r,n,i),So(e),r=To(),e!==null&&!nc?(Eo(e,t,a),Dc(e,t,a)):(Mi&&r&&Di(t),t.flags|=1,rc(e,t,n,a),t.child)}function gc(e,t,n,r,i){if(Zi(t),t.stateNode===null){var a=B,o=n.contextType;typeof o==`object`&&o&&(a=Qi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Hs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},La(t),o=n.contextType,a.context=typeof o==`object`&&o?Qi(o):B,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Vs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Hs.enqueueReplaceState(a,a.state,null),Ga(t,r,a,i),Wa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Gs(n,s);a.props=c;var l=a.context,u=n.contextType;o=B,typeof u==`object`&&u&&(o=Qi(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Ws(t,a,r,o),Ia=!1;var f=t.memoizedState;a.state=f,Ga(t,r,a,i),Wa(),l=t.memoizedState,s||f!==l||Ia?(typeof d==`function`&&(Vs(t,n,d,r),l=t.memoizedState),(c=Ia||Us(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ra(e,t),o=t.memoizedProps,u=Gs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=B,typeof l==`object`&&l&&(c=Qi(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Ws(t,a,r,c),Ia=!1,f=t.memoizedState,a.state=f,Ga(t,r,a,i),Wa();var p=t.memoizedState;o!==d||f!==p||Ia||e!==null&&e.dependencies!==null&&Xi(e.dependencies)?(typeof s==`function`&&(Vs(t,n,s,r),p=t.memoizedState),(u=Ia||Us(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Xi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,pc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Pa(t,e.child,null,i),t.child=Pa(t,null,n,i)):rc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Dc(e,t,i),e}function _c(e,t,n,r){return zi(),t.flags|=256,rc(e,t,n,r),t.child}var vc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function G(e){return{baseLanes:e,cachePool:_a()}}function yc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Zl),e}function bc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(oo.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Mi){if(a?to(t):io(t),(e=ji)?(e=uf(e,Pi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=fi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Fi(t);return ff(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(io(t),a=t.mode,c=Sc({mode:`hidden`,children:c},a),r=di(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=G(n),r.childLanes=yc(e,s,n),t.memoizedState=vc,cc(null,r)):(to(t),xc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(to(t),t.flags&=-257,t=Cc(e,t,n)):t.memoizedState===null?(io(t),c=r.fallback,a=t.mode,r=Sc({mode:`visible`,children:r.children},a),c=di(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Pa(t,e.child,null,n),r=t.child,r.memoizedState=G(n),r.childLanes=yc(e,s,n),t.memoizedState=vc,t=cc(null,r)):(io(t),t.child=e.child,t.flags|=128,t=null);else if(to(t),ff(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Vi({value:r,source:null,stack:null}),t=Cc(e,t,n)}else if(nc||Yi(e,t,n,!1),s=(n&e.childLanes)!==0,nc||s){if(s=Rl,s!==null&&(r=et(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ni(e,r),vu(s,e,r),tc;df(c)||Au(),t=Cc(e,t,n)}else df(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ji=mf(c.nextSibling),Ai=t,Mi=!0,Ni=null,Pi=!1,e!==null&&ki(t,e),t=xc(t,r.children),t.flags|=4096);return t}return a?(io(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ci(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=di(c,a,n,null),c.flags|=2):c=ci(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,cc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=G(n):(a=c.cachePool,a===null?a=_a():(l=ra._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=yc(e,s,n),t.memoizedState=vc,cc(e.child,r)):(to(t),n=e.child,e=n.sibling,n=ci(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function xc(e,t){return t=Sc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Sc(e,t){return e=oi(22,e,null,t),e.lanes=0,e}function Cc(e,t,n){return Pa(t,e.child,null,n),e=xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),qi(e.return,t,n)}function Tc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Ec(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=oo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,L(oo,o),rc(e,t,r,n),r=Mi?yi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wc(e,n,t);else if(e.tag===19)wc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&so(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Tc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&so(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Tc(t,!0,n,null,a,r);break;case`together`:Tc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Dc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Yi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ci(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ci(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Oc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Xi(e))):!0}function kc(e,t,n){switch(t.tag){case 3:le(t,t.stateNode.containerInfo),Gi(t,ra,e.memoizedState.cache),zi();break;case 27:case 5:de(t);break;case 4:le(t,t.stateNode.containerInfo);break;case 10:Gi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,no(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(to(t),e=Dc(e,t,n),e===null?null:e.sibling):bc(e,t,n):(to(t),t.flags|=128,null);to(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Yi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ec(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),L(oo,oo.current),r)break;return null;case 22:return t.lanes=0,sc(e,t,n,t.pendingProps);case 24:Gi(t,ra,e.memoizedState.cache)}return Dc(e,t,n)}function Ac(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)nc=!0;else{if(!Oc(e,n)&&!(t.flags&128))return nc=!1,kc(e,t,n);nc=!!(e.flags&131072)}else nc=!1,Mi&&t.flags&1048576&&Ei(t,yi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=wa(t.elementType),t.type=e,typeof e==`function`)si(e)?(r=Gs(e,r),t.tag=1,t=gc(null,t,e,r,n)):(t.tag=0,t=mc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=ic(null,t,e,r,n);break a}else if(a===D){t.tag=14,t=ac(null,t,e,r,n);break a}}throw t=ee(e)||e,Error(i(306,t,``))}}return t;case 0:return mc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Gs(r,t.pendingProps),gc(e,t,r,a,n);case 3:a:{if(le(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ra(e,t),Ga(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Gi(t,ra,r),r!==o.cache&&Ji(t,[ra],n,!0),Wa(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=_c(e,t,r,n);break a}else if(r!==a){a=hi(Error(i(424)),t),Vi(a),t=_c(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ji=mf(e.firstChild),Ai=t,Mi=!0,Ni=null,Pi=!0,n=Fa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(zi(),r===a){t=Dc(e,t,n);break a}rc(e,t,r,n)}t=t.child}return t;case 26:return pc(e,t),e===null?(n=Ff(t.type,null,t.pendingProps,null))?t.memoizedState=n:Mi||(n=t.type,e=t.pendingProps,r=Kd(se.current).createElement(n),r[ot]=t,r[st]=e,Bd(r,n,e),yt(r),t.stateNode=r):t.memoizedState=Ff(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return de(t),e===null&&Mi&&(r=t.stateNode=vf(t.type,t.pendingProps,se.current),Ai=t,Pi=!0,a=ji,rf(t.type)?(hf=a,ji=mf(r.firstChild)):ji=a),rc(e,t,t.pendingProps.children,n),pc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Mi&&((a=r=ji)&&(r=cf(r,t.type,t.pendingProps,Pi),r===null?a=!1:(t.stateNode=r,Ai=t,ji=mf(r.firstChild),Pi=!1,a=!0)),a||Fi(t)),de(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Yd(a,o)?r=null:s!==null&&Yd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=xo(e,t,wo,null,null,n),rp._currentValue=a),pc(e,t),rc(e,t,r,n),t.child;case 6:return e===null&&Mi&&((e=n=ji)&&(n=lf(n,t.pendingProps,Pi),n===null?e=!1:(t.stateNode=n,Ai=t,ji=null,e=!0)),e||Fi(t)),null;case 13:return bc(e,t,n);case 4:return le(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pa(t,null,r,n):rc(e,t,r,n),t.child;case 11:return ic(e,t,t.type,t.pendingProps,n);case 7:return rc(e,t,t.pendingProps,n),t.child;case 8:return rc(e,t,t.pendingProps.children,n),t.child;case 12:return rc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Gi(t,t.type,r.value),rc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Zi(t),a=Qi(a),r=r(a),t.flags|=1,rc(e,t,r,n),t.child;case 14:return ac(e,t,t.type,t.pendingProps,n);case 15:return oc(e,t,t.type,t.pendingProps,n);case 19:return Ec(e,t,n);case 31:return fc(e,t,n);case 22:return sc(e,t,n,t.pendingProps);case 24:return Zi(t),r=Qi(ra),e===null?(a=ha(),a===null&&(a=Rl,o=ia(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},La(t),Gi(t,ra,a)):((e.lanes&n)!==0&&(Ra(e,t),Ga(t,null,null,n),Wa()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Gi(t,ra,r),r!==a.cache&&Ji(t,[ra],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Gi(t,ra,r))),rc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function jc(e){e.flags|=4}function Mc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Du())e.flags|=8192;else throw Ta=xa,ya}else e.flags&=-16777217}function Nc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Yf(t))if(Du())e.flags|=8192;else throw Ta=xa,ya}function Pc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Je(),e.lanes|=t,Ql|=t)}function Fc(e,t){if(!Mi)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 r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ic(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Lc(e,t,n){var r=t.pendingProps;switch(Oi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ic(t),null;case 1:return Ic(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ki(ra),ue(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ri(t)?jc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bi())),Ic(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(jc(t),o===null?(Ic(t),Mc(t,a,null,r,n)):(Ic(t),Nc(t,o))):o?o===e.memoizedState?(Ic(t),t.flags&=-16777217):(jc(t),Ic(t),Nc(t,o)):(e=e.memoizedProps,e!==r&&jc(t),Ic(t),Mc(t,a,e,r,n)),null;case 27:if(fe(t),n=se.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ic(t),null}e=oe.current,Ri(t)?Ii(t,e):(e=vf(a,r,n),t.stateNode=e,jc(t))}return Ic(t),null;case 5:if(fe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ic(t),null}if(o=oe.current,Ri(t))Ii(t,o);else{var s=Kd(se.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ot]=t,o[st]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Bd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&jc(t)}}return Ic(t),Mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=se.current,Ri(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ai,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ot]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Ld(e.nodeValue,n)),e||Fi(t,!0)}else e=Kd(e).createTextNode(r),e[ot]=t,t.stateNode=e}return Ic(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ri(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ot]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),e=!1}else n=Bi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ao(t),t):(ao(t),null);if(t.flags&128)throw Error(i(558))}return Ic(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ri(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ot]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),a=!1}else a=Bi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(ao(t),t):(ao(t),null)}return ao(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Pc(t,t.updateQueue),Ic(t),null);case 4:return ue(),e===null&&Dd(t.stateNode.containerInfo),Ic(t),null;case 10:return Ki(t.type),Ic(t),null;case 19:if(I(oo),r=t.memoizedState,r===null)return Ic(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Fc(r,!1);else{if(ql!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=so(e),o!==null){for(t.flags|=128,Fc(r,!1),e=o.updateQueue,t.updateQueue=e,Pc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)li(n,e),n=n.sibling;return L(oo,oo.current&1|2),Mi&&Ti(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Te()>iu&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304)}else{if(!a)if(e=so(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Pc(t,e),Fc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Mi)return Ic(t),null}else 2*Te()-r.renderingStartTime>iu&&n!==536870912&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Ic(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Te(),e.sibling=null,n=oo.current,L(oo,a?n&1|2:n&1),Mi&&Ti(t,r.treeForkCount),e);case 22:case 23:return ao(t),Qa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ic(t),t.subtreeFlags&6&&(t.flags|=8192)):Ic(t),n=t.updateQueue,n!==null&&Pc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&I(ma),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ki(ra),Ic(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Rc(e,t){switch(Oi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ki(ra),ue(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 31:if(t.memoizedState!==null){if(ao(t),t.alternate===null)throw Error(i(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ao(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return I(oo),null;case 4:return ue(),null;case 10:return Ki(t.type),null;case 22:case 23:return ao(t),Qa(),e!==null&&I(ma),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ki(ra),null;case 25:return null;default:return null}}function zc(e,t){switch(Oi(t),t.tag){case 3:Ki(ra),ue();break;case 26:case 27:case 5:fe(t);break;case 4:ue();break;case 31:t.memoizedState!==null&&ao(t);break;case 13:ao(t);break;case 19:I(oo);break;case 10:Ki(t.type);break;case 22:case 23:ao(t),Qa(),e!==null&&I(ma);break;case 24:Ki(ra)}}function Bc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Ju(t,t.return,e)}}function Vc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Ju(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Ju(t,t.return,e)}}function Hc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{qa(t,n)}catch(t){Ju(e,e.return,t)}}}function Uc(e,t,n){n.props=Gs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Ju(e,t,n)}}function Wc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Ju(e,t,n)}}function Gc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Ju(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Ju(e,t,n)}else n.current=null}function Kc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Ju(e,e.return,t)}}function qc(e,t,n){try{var r=e.stateNode;Vd(r,e.type,n,t),r[st]=t}catch(t){Ju(e,e.return,t)}}function Jc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&rf(e.type)||e.tag===4}function Yc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Jc(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&&rf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xc(e,t,n){var r=e.tag;if(r===5||r===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=$t));else if(r!==4&&(r===27&&rf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&rf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Bd(t,r,n),t[ot]=e,t[st]=n}catch(t){Ju(e,e.return,t)}}var $c=!1,el=!1,tl=!1,nl=typeof WeakSet==`function`?WeakSet:Set,rl=null;function il(e,t){if(e=e.containerInfo,Wd=fp,e=Er(e),Dr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Gd={focusedElem:e,selectionRange:n},fp=!1,rl=t;rl!==null;)if(t=rl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,rl=e;else for(;rl!==null;){switch(t=rl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,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&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Gs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Ju(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)sf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:sf(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(i(163))}if(e=t.sibling,e!==null){e.return=t.return,rl=e;break}rl=t.return}}function al(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:yl(e,n),r&4&&Bc(5,n);break;case 1:if(yl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Ju(n,n.return,e)}else{var i=Gs(n.type,t.memoizedProps);t=t.memoizedState;
vendor: 5,410 bytes, line 8
8try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Ju(n,n.return,e)}}r&64&&Hc(n),r&512&&Wc(n,n.return);break;case 3:if(yl(e,n),r&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{qa(e,t)}catch(e){Ju(n,n.return,e)}}break;case 27:t===null&&r&4&&Qc(n);case 26:case 5:yl(e,n),t===null&&r&4&&Kc(n),r&512&&Wc(n,n.return);break;case 12:yl(e,n);break;case 31:yl(e,n),r&4&&dl(e,n);break;case 13:yl(e,n),r&4&&fl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Qu.bind(null,n),pf(e,n))));break;case 22:if(r=n.memoizedState!==null||$c,!r){t=t!==null&&t.memoizedState!==null||el,i=$c;var a=el;$c=r,(el=t)&&!a?xl(e,n,(n.subtreeFlags&8772)!=0):yl(e,n),$c=i,el=a}break;case 30:break;default:yl(e,n)}}function ol(e){var t=e.alternate;t!==null&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&mt(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 sl=null,cl=!1;function ll(e,t,n){for(n=n.child;n!==null;)ul(e,t,n),n=n.sibling}function ul(e,t,n){if(Fe&&typeof Fe.onCommitFiberUnmount==`function`)try{Fe.onCommitFiberUnmount(Pe,n)}catch{}switch(n.tag){case 26:el||Gc(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:el||Gc(n,t);var r=sl,i=cl;rf(n.type)&&(sl=n.stateNode,cl=!1),ll(e,t,n),yf(n.stateNode),sl=r,cl=i;break;case 5:el||Gc(n,t);case 6:if(r=sl,i=cl,sl=null,ll(e,t,n),sl=r,cl=i,sl!==null)if(cl)try{(sl.nodeType===9?sl.body:sl.nodeName===`HTML`?sl.ownerDocument.body:sl).removeChild(n.stateNode)}catch(e){Ju(n,t,e)}else try{sl.removeChild(n.stateNode)}catch(e){Ju(n,t,e)}break;case 18:sl!==null&&(cl?(e=sl,af(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Rp(e)):af(sl,n.stateNode));break;case 4:r=sl,i=cl,sl=n.stateNode.containerInfo,cl=!0,ll(e,t,n),sl=r,cl=i;break;case 0:case 11:case 14:case 15:Vc(2,n,t),el||Vc(4,n,t),ll(e,t,n);break;case 1:el||(Gc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Uc(n,t,r)),ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:el=(r=el)||n.memoizedState!==null,ll(e,t,n),el=r;break;default:ll(e,t,n)}}function dl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Rp(e)}catch(e){Ju(t,t.return,e)}}}function fl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Rp(e)}catch(e){Ju(t,t.return,e)}}function pl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new nl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new nl),t;default:throw Error(i(435,e.tag))}}function ml(e,t){var n=pl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=$u.bind(null,e,t);t.then(r,r)}})}function hl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(rf(c.type)){sl=c.stateNode,cl=!1;break a}break;case 5:sl=c.stateNode,cl=!1;break a;case 3:case 4:sl=c.stateNode.containerInfo,cl=!0;break a}c=c.return}if(sl===null)throw Error(i(160));ul(o,s,a),sl=null,cl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)K(t,e),t=t.sibling}var gl=null;function K(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:hl(t,e),_l(e),r&4&&(Vc(3,e,e.return),Bc(3,e),Vc(5,e,e.return));break;case 1:hl(t,e),_l(e),r&512&&(el||n===null||Gc(n,n.return)),r&64&&$c&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=gl;if(hl(t,e),_l(e),r&512&&(el||n===null||Gc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[pt]||o[ot]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Bd(o,r,n),o[ot]=e,yt(o),r=o;break a;case`link`:var s=Kf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Bd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Kf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Bd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ot]=e,yt(o),r=o}e.stateNode=r}else qf(a,e.type,e.stateNode);else e.stateNode=Hf(a,r,e.memoizedProps);
vendor: 40,679 bytes, lines 8-9
8else o===r?r===null&&e.stateNode!==null&&qc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?qf(a,e.type,e.stateNode):Hf(a,r,e.memoizedProps))}break;case 27:hl(t,e),_l(e),r&512&&(el||n===null||Gc(n,n.return)),n!==null&&r&4&&qc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(hl(t,e),_l(e),r&512&&(el||n===null||Gc(n,n.return)),e.flags&32){a=e.stateNode;try{Gt(a,``)}catch(t){Ju(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,qc(e,a,n===null?a:n.memoizedProps)),r&1024&&(tl=!0);break;case 6:if(hl(t,e),_l(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Ju(e,e.return,t)}}break;case 3:if(Gf=null,a=gl,gl=Sf(t.containerInfo),hl(t,e),gl=a,_l(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Rp(t.containerInfo)}catch(t){Ju(e,e.return,t)}tl&&(tl=!1,vl(e));break;case 4:r=gl,gl=Sf(e.stateNode.containerInfo),hl(t,e),_l(e),gl=r;break;case 12:hl(t,e),_l(e);break;case 31:hl(t,e),_l(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 13:hl(t,e),_l(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(nu=Te()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=$c,d=el;if($c=u||a,el=d||l,hl(t,e),el=d,$c=u,_l(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||$c||el||bl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Ju(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Ju(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?of(m,!0):of(l.stateNode,!1)}catch(e){Ju(l,l.return,e)}}}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 a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ml(e,n))));break;case 19:hl(t,e),_l(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 30:break;case 21:break;default:hl(t,e),_l(e)}}function _l(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Jc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Zc(e,Yc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Gt(o,``),n.flags&=-33),Zc(e,Yc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Xc(e,Yc(e),s);break;default:throw Error(i(161))}}catch(t){Ju(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function yl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)al(e,t.alternate,t),t=t.sibling}function bl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Vc(4,t,t.return),bl(t);break;case 1:Gc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Uc(t,t.return,n),bl(t);break;case 27:yf(t.stateNode);case 26:case 5:Gc(t,t.return),bl(t);break;case 22:t.memoizedState===null&&bl(t);break;case 30:bl(t);break;default:bl(t)}e=e.sibling}}function xl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:xl(i,a,n),Bc(4,a);break;case 1:if(xl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Ju(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ka(c[i],s)}catch(e){Ju(r,r.return,e)}}n&&o&64&&Hc(a),Wc(a,a.return);break;case 27:Qc(a);case 26:case 5:xl(i,a,n),n&&r===null&&o&4&&Kc(a),Wc(a,a.return);break;case 12:xl(i,a,n);break;case 31:xl(i,a,n),n&&o&4&&dl(i,a);break;case 13:xl(i,a,n),n&&o&4&&fl(i,a);break;case 22:a.memoizedState===null&&xl(i,a,n),Wc(a,a.return);break;case 30:break;default:xl(i,a,n)}t=t.sibling}}function Sl(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&&aa(n))}function Cl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&aa(e))}function wl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Tl(e,t,n,r),t=t.sibling}function Tl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:wl(e,t,n,r),i&2048&&Bc(9,t);break;case 1:wl(e,t,n,r);break;case 3:wl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&aa(e)));break;case 12:if(i&2048){wl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Ju(t,t.return,e)}}else wl(e,t,n,r);break;case 31:wl(e,t,n,r);break;case 13:wl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?wl(e,t,n,r):(a._visibility|=2,El(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?wl(e,t,n,r):Dl(e,t),i&2048&&Sl(o,t);break;case 24:wl(e,t,n,r),i&2048&&Cl(t.alternate,t);break;default:wl(e,t,n,r)}}function El(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:El(a,o,s,c,i),Bc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,El(a,o,s,c,i)):u._visibility&2?El(a,o,s,c,i):Dl(a,o),i&&l&2048&&Sl(o.alternate,o);break;case 24:El(a,o,s,c,i),i&&l&2048&&Cl(o.alternate,o);break;default:El(a,o,s,c,i)}t=t.sibling}}function Dl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Dl(n,r),i&2048&&Sl(r.alternate,r);break;case 24:Dl(n,r),i&2048&&Cl(r.alternate,r);break;default:Dl(n,r)}t=t.sibling}}var Ol=8192;function kl(e,t,n){if(e.subtreeFlags&Ol)for(e=e.child;e!==null;)q(e,t,n),e=e.sibling}function q(e,t,n){switch(e.tag){case 26:kl(e,t,n),e.flags&Ol&&e.memoizedState!==null&&Xf(n,gl,e.memoizedState,e.memoizedProps);break;case 5:kl(e,t,n);break;case 3:case 4:var r=gl;gl=Sf(e.stateNode.containerInfo),kl(e,t,n),gl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ol,Ol=16777216,kl(e,t,n),Ol=r):kl(e,t,n));break;default:kl(e,t,n)}}function Al(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 jl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Pl(r,e)}Al(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ml(e),e=e.sibling}function Ml(e){switch(e.tag){case 0:case 11:case 15:jl(e),e.flags&2048&&Vc(9,e,e.return);break;case 3:jl(e);break;case 12:jl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Nl(e)):jl(e);break;default:jl(e)}}function Nl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Pl(r,e)}Al(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Vc(8,t,t.return),Nl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Nl(t));break;default:Nl(t)}e=e.sibling}}function Pl(e,t){for(;rl!==null;){var n=rl;switch(n.tag){case 0:case 11:case 15:Vc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:aa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,rl=r;else a:for(n=e;rl!==null;){r=rl;var i=r.sibling,a=r.return;if(ol(r),r===n){rl=null;break a}if(i!==null){i.return=a,rl=i;break a}rl=a}}}var Fl={getCacheForType:function(e){var t=Qi(ra),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Qi(ra).controller.signal}},Il=typeof WeakMap==`function`?WeakMap:Map,Ll=0,Rl=null,zl=null,Bl=0,Vl=0,Hl=null,Ul=!1,Wl=!1,Gl=!1,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=null,eu=null,tu=!1,nu=0,ru=0,iu=1/0,au=null,ou=null,su=0,cu=null,lu=null,uu=0,du=0,fu=null,pu=null,mu=0,hu=null;function gu(){return Ll&2&&Bl!==0?Bl&-Bl:P.T===null?rt():hd()}function _u(){if(Zl===0)if(!(Bl&536870912)||Mi){var e=He;He<<=1,!(He&3932160)&&(He=262144),Zl=e}else Zl=536870912;return e=$a.current,e!==null&&(e.flags|=32),Zl}function vu(e,t,n){(e===Rl&&(Vl===2||Vl===9)||e.cancelPendingCommit!==null)&&(Tu(e,0),Su(e,Bl,Zl,!1)),Xe(e,n),(!(Ll&2)||e!==Rl)&&(e===Rl&&(!(Ll&2)&&(Yl|=n),ql===4&&Su(e,Bl,Zl,!1)),sd(e))}function yu(e,t,n){if(Ll&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ke(e,t),a=r?Nu(e,t):ju(e,t,!0),o=r;do{if(a===0){Wl&&!r&&Su(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!xu(n)){a=ju(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=$l;var l=c.current.memoizedState.isDehydrated;if(l&&(Tu(c,s).flags|=256),s=ju(c,s,!1),s!==2){if(Gl&&!l){c.errorRecoveryDisabledLanes|=o,Yl|=o,a=4;break a}o=eu,eu=a,o!==null&&(eu===null?eu=o:eu.push.apply(eu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Tu(e,0),Su(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Su(r,t,Zl,!Ul);break a;case 2:eu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=nu+300-Te(),10<a)){if(Su(r,t,Zl,!Ul),Ge(r,0,!0)!==0)break a;uu=t,r.timeoutHandle=Qd(bu.bind(null,r,n,eu,au,tu,t,Zl,Yl,Ql,Ul,o,`Throttled`,-0,0),a);break a}bu(r,n,eu,au,tu,t,Zl,Yl,Ql,Ul,o,null,-0,0)}}break}while(1);sd(e)}function bu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$t},q(t,a,d);var m=(a&62914560)===a?nu-Te():(a&4194048)===a?ru-Te():0;if(m=Qf(d,m),m!==null){uu=a,e.cancelPendingCommit=m(Bu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Su(e,a,o,!l);return}}Bu(e,t,a,n,r,i,o,s,c)}function xu(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 r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!xr(a(),i))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 Su(e,t,n,r){t&=~Xl,t&=~Yl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Le(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Qe(e,n,t)}function Cu(){return Ll&6?!0:(cd(0,!1),!1)}function wu(){if(zl!==null){if(Vl===0)var e=zl.return;else e=zl,Wi=Ui=null,Do(e),Oa=null,ka=0,e=zl;for(;e!==null;)zc(e.alternate,e),e=e.return;zl=null}}function Tu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,$d(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),uu=0,wu(),Rl=e,zl=n=ci(e.current,null),Bl=t,Vl=0,Hl=null,Ul=!1,Wl=Ke(e,t),Gl=!1,Ql=Zl=Xl=Yl=Jl=ql=0,eu=$l=null,tu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Le(r),a=1<<i;t|=e[i],r&=~a}return Kl=t,$r(),n}function Eu(e,t){W=null,P.H=Ls,t===va||t===ba?(t=Ea(),Vl=3):t===ya?(t=Ea(),Vl=4):Vl=t===tc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Hl=t,zl===null&&(ql=1,Ys(e,hi(t,e.current)))}function Du(){var e=$a.current;return e===null?!0:(Bl&4194048)===Bl?eo===null:(Bl&62914560)===Bl||Bl&536870912?e===eo:!1}function Ou(){var e=P.H;return P.H=Ls,e===null?Ls:e}function ku(){var e=P.A;return P.A=Fl,e}function Au(){ql=4,Ul||(Bl&4194048)!==Bl&&$a.current!==null||(Wl=!0),!(Jl&134217727)&&!(Yl&134217727)||Rl===null||Su(Rl,Bl,Zl,!1)}function ju(e,t,n){var r=Ll;Ll|=2;var i=Ou(),a=ku();(Rl!==e||Bl!==t)&&(au=null,Tu(e,t)),t=!1;var o=ql;a:do try{if(Vl!==0&&zl!==null){var s=zl,c=Hl;switch(Vl){case 8:wu(),o=6;break a;case 3:case 2:case 9:case 6:$a.current===null&&(t=!0);var l=Vl;if(Vl=0,Hl=null,Lu(e,s,c,l),n&&Wl){o=0;break a}break;default:l=Vl,Vl=0,Hl=null,Lu(e,s,c,l)}}Mu(),o=ql;break}catch(t){Eu(e,t)}while(1);return t&&e.shellSuspendCounter++,Wi=Ui=null,Ll=r,P.H=i,P.A=a,zl===null&&(Rl=null,Bl=0,$r()),o}function Mu(){for(;zl!==null;)Fu(zl)}function Nu(e,t){var n=Ll;Ll|=2;var r=Ou(),a=ku();Rl!==e||Bl!==t?(au=null,iu=Te()+500,Tu(e,t)):Wl=Ke(e,t);a:do try{if(Vl!==0&&zl!==null){t=zl;var o=Hl;b:switch(Vl){case 1:Vl=0,Hl=null,Lu(e,t,o,1);break;case 2:case 9:if(Sa(o)){Vl=0,Hl=null,Iu(t);break}t=function(){Vl!==2&&Vl!==9||Rl!==e||(Vl=7),sd(e)},o.then(t,t);break a;case 3:Vl=7;break a;case 4:Vl=5;break a;case 7:Sa(o)?(Vl=0,Hl=null,Iu(t)):(Vl=0,Hl=null,Lu(e,t,o,7));break;case 5:var s=null;switch(zl.tag){case 26:s=zl.memoizedState;case 5:case 27:var c=zl;if(s?Yf(s):c.stateNode.complete){Vl=0,Hl=null;var l=c.sibling;if(l!==null)zl=l;else{var u=c.return;u===null?zl=null:(zl=u,Ru(u))}break b}}Vl=0,Hl=null,Lu(e,t,o,5);break;case 6:Vl=0,Hl=null,Lu(e,t,o,6);break;case 8:wu(),ql=6;break a;default:throw Error(i(462))}}Pu();break}catch(t){Eu(e,t)}while(1);return Wi=Ui=null,P.H=r,P.A=a,Ll=n,zl===null?(Rl=null,Bl=0,$r(),ql):0}function Pu(){for(;zl!==null&&!Ce();)Fu(zl)}function Fu(e){var t=Ac(e.alternate,e,Kl);e.memoizedProps=e.pendingProps,t===null?Ru(e):zl=t}function Iu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=hc(n,t,t.pendingProps,t.type,void 0,Bl);break;case 11:t=hc(n,t,t.pendingProps,t.type.render,t.ref,Bl);break;case 5:Do(t);default:zc(n,t),t=zl=li(t,Kl),t=Ac(n,t,Kl)}e.memoizedProps=e.pendingProps,t===null?Ru(e):zl=t}function Lu(e,t,n,r){Wi=Ui=null,Do(t),Oa=null,ka=0;var i=t.return;try{if(ec(e,i,t,n,Bl)){ql=1,Ys(e,hi(n,e.current)),zl=null;return}}catch(t){if(i!==null)throw zl=i,t;ql=1,Ys(e,hi(n,e.current)),zl=null;return}t.flags&32768?(Mi||r===1?e=!0:Wl||Bl&536870912?e=!1:(Ul=e=!0,(r===2||r===9||r===3||r===6)&&(r=$a.current,r!==null&&r.tag===13&&(r.flags|=16384))),zu(t,e)):Ru(t)}function Ru(e){var t=e;do{if(t.flags&32768){zu(t,Ul);return}e=t.return;var n=Lc(t.alternate,t,Kl);if(n!==null){zl=n;return}if(t=t.sibling,t!==null){zl=t;return}zl=t=e}while(t!==null);ql===0&&(ql=5)}function zu(e,t){do{var n=Rc(e.alternate,e);if(n!==null){n.flags&=32767,zl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){zl=e;return}zl=e=n}while(e!==null);ql=6,zl=null}function Bu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Gu();while(su!==0);if(Ll&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Qr,Ze(e,n,o,s,c,l),e===Rl&&(zl=Rl=null,Bl=0),lu=t,cu=e,uu=n,du=o,fu=a,pu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,ed(ke,function(){return Ku(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=P.T,P.T=null,a=F.p,F.p=2,s=Ll,Ll|=4;try{il(e,t,n)}finally{Ll=s,F.p=a,P.T=r}}su=1,Vu(),Hu(),Uu()}}function Vu(){if(su===1){su=0;var e=cu,t=lu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=Ll;Ll|=4;try{K(t,e);var a=Gd,o=Er(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Tr(s.ownerDocument.documentElement,s)){if(c!==null&&Dr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=wr(s,h),v=wr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}fp=!!Wd,Gd=Wd=null}finally{Ll=i,F.p=r,P.T=n}}e.current=t,su=2}}function Hu(){if(su===2){su=0;var e=cu,t=lu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=Ll;Ll|=4;try{al(e,t.alternate,t)}finally{Ll=i,F.p=r,P.T=n}}su=3}}function Uu(){if(su===4||su===3){su=0,we();var e=cu,t=lu,n=uu,r=pu;t.subtreeFlags&10256||t.flags&10256?su=5:(su=0,lu=cu=null,Wu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ou=null),nt(n),t=t.stateNode,Fe&&typeof Fe.onCommitFiberRoot==`function`)try{Fe.onCommitFiberRoot(Pe,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=P.T,i=F.p,F.p=2,P.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{P.T=t,F.p=i}}uu&3&&Gu(),sd(e),i=e.pendingLanes,n&261930&&i&42?e===hu?mu++:(mu=0,hu=e):mu=0,cd(0,!1)}}function Wu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,aa(t)))}function Gu(){return Vu(),Hu(),Uu(),Ku()}function Ku(){if(su!==5)return!1;var e=cu,t=du;du=0;var n=nt(uu),r=P.T,a=F.p;try{F.p=32>n?32:n,P.T=null,n=fu,fu=null;var o=cu,s=uu;if(su=0,lu=cu=null,uu=0,Ll&6)throw Error(i(331));var c=Ll;if(Ll|=4,Ml(o.current),Tl(o,o.current,s,n),Ll=c,cd(0,!1),Fe&&typeof Fe.onPostCommitFiberRoot==`function`)try{Fe.onPostCommitFiberRoot(Pe,o)}catch{}return!0}finally{F.p=a,P.T=r,Wu(e,t)}}function qu(e,t,n){t=hi(n,t),t=Zs(e.stateNode,t,2),e=Ba(e,t,2),e!==null&&(Xe(e,2),sd(e))}function Ju(e,t,n){if(e.tag===3)qu(e,e,n);else for(;t!==null;){if(t.tag===3){qu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ou===null||!ou.has(r))){e=hi(n,e),n=Qs(2),r=Ba(t,n,2),r!==null&&($s(n,r,t,e),Xe(r,2),sd(r));break}}t=t.return}}function Yu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Il;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Gl=!0,i.add(n),e=Xu.bind(null,e,t,n),t.then(e,e))}function Xu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Rl===e&&(Bl&n)===n&&(ql===4||ql===3&&(Bl&62914560)===Bl&&300>Te()-nu?!(Ll&2)&&Tu(e,0):Xl|=n,Ql===Bl&&(Ql=0)),sd(e)}function Zu(e,t){t===0&&(t=Je()),e=ni(e,t),e!==null&&(Xe(e,t),sd(e))}function Qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zu(e,n)}function $u(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Zu(e,n)}function ed(e,t){return xe(e,t)}var td=null,nd=null,rd=!1,id=!1,ad=!1,od=0;function sd(e){e!==nd&&e.next===null&&(nd===null?td=nd=e:nd=nd.next=e),id=!0,rd||(rd=!0,md())}function cd(e,t){if(!ad&&id){ad=!0;do for(var n=!1,r=td;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Le(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,pd(r,a))}else a=Bl,a=Ge(r,r===Rl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ke(r,a)||(n=!0,pd(r,a));r=r.next}while(n);ad=!1}}function ld(){ud()}function ud(){id=rd=!1;var e=0;od!==0&&Zd()&&(e=od);for(var t=Te(),n=null,r=td;r!==null;){var i=r.next,a=dd(r,t);a===0?(r.next=null,n===null?td=i:n.next=i,i===null&&(nd=n)):(n=r,(e!==0||a&3)&&(id=!0)),r=i}su!==0&&su!==5||cd(e,!1),od!==0&&(od=0)}function dd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Le(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=qe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Rl,n=Bl,n=Ge(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Vl===2||Vl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Se(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ke(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Se(r),nt(n)){case 2:case 8:n=Oe;break;case 32:n=ke;break;case 268435456:n=je;break;default:n=ke}return r=fd.bind(null,e),n=xe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Se(r),e.callbackPriority=2,e.callbackNode=null,2}function fd(e,t){if(su!==0&&su!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Gu()&&e.callbackNode!==n)return null;var r=Bl;return r=Ge(e,e===Rl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(yu(e,r,t),dd(e,Te()),e.callbackNode!=null&&e.callbackNode===n?fd.bind(null,e):null)}function pd(e,t){if(Gu())return null;yu(e,t,!0)}function md(){tf(function(){Ll&6?xe(De,ld):ud()})}function hd(){if(od===0){var e=ca;e===0&&(e=Ve,Ve<<=1,!(Ve&261888)&&(Ve=256)),od=e}return od}function gd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Qt(``+e)}function _d(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 vd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=gd((i[st]||null).action),o=r.submitter;o&&(t=(t=o[st]||null)?gd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new xn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(od!==0){var e=o?_d(i,o):new FormData(i);Cs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?_d(i,o):new FormData(i),Cs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var yd=0;yd<qr.length;yd++){var bd=qr[yd];Jr(bd.toLowerCase(),`on`+(bd[0].toUpperCase()+bd.slice(1)))}Jr(zr,`onAnimationEnd`),Jr(Br,`onAnimationIteration`),Jr(Vr,`onAnimationStart`),Jr(`dblclick`,`onDoubleClick`),Jr(`focusin`,`onFocus`),Jr(`focusout`,`onBlur`),Jr(Hr,`onTransitionRun`),Jr(Ur,`onTransitionStart`),Jr(Wr,`onTransitionCancel`),Jr(Gr,`onTransitionEnd`),Ct(`onMouseEnter`,[`mouseout`,`mouseover`]),Ct(`onMouseLeave`,[`mouseout`,`mouseover`]),Ct(`onPointerEnter`,[`pointerout`,`pointerover`]),Ct(`onPointerLeave`,[`pointerout`,`pointerover`]),St(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),St(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),St(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),St(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),St(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),St(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var xd=`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(` `),Sd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(xd));function Cd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Yr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Yr(e)}i.currentTarget=null,a=c}}}}function wd(e,t){var n=t[lt];n===void 0&&(n=t[lt]=new Set);var r=e+`__bubble`;n.has(r)||(Od(t,e,2,!1),n.add(r))}function Td(e,t,n){var r=0;t&&(r|=4),Od(n,e,r,t)}var Ed=`_reactListening`+Math.random().toString(36).slice(2);function Dd(e){if(!e[Ed]){e[Ed]=!0,bt.forEach(function(t){t!==`selectionchange`&&(Sd.has(t)||Td(t,!1,e),Td(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ed]||(t[Ed]=!0,Td(`selectionchange`,!1,t))}}function Od(e,t,n,r){switch(yp(t)){case 2:var i=pp;break;case 8:i=mp;break;default:i=hp}n=i.bind(null,t,n,e),i=void 0,!un||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function kd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=ht(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}sn(function(){var r=a,i=tn(n),s=[];a:{var c=Kr.get(e);if(c!==void 0){var l=xn,u=e;switch(e){case`keypress`:if(gn(n)===0)break a;case`keydown`:case`keyup`:l=zn;break;case`focusin`:u=`focus`,l=An;break;case`focusout`:u=`blur`,l=An;break;case`beforeblur`:case`afterblur`:l=An;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=On;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=kn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Vn;break;case zr:case Br:case Vr:l=jn;break;case Gr:l=Hn;break;case`scroll`:case`scrollend`:l=Cn;break;case`wheel`:l=Un;break;case`copy`:case`cut`:case`paste`:l=Mn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Bn;break;case`toggle`:case`beforetoggle`:l=Wn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=cn(m,p),g!=null&&d.push(Ad(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==en&&(u=n.relatedTarget||n.fromElement)&&(ht(u)||u[ct]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?ht(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=On,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Bn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:_t(l),h=u==null?c:_t(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,ht(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Md,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Nd(s,c,l,d,!1),u!==null&&f!==null&&Nd(s,f,u,d,!0)}}a:{if(c=r?_t(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=lr;else if(rr(c))if(ur)v=yr;else{v=_r;var y=gr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Yt(r.elementType)&&(v=lr):v=vr;if(v&&=v(e,r)){ir(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Vt(c,`number`,c.value)}switch(y=r?_t(r):window,e){case`focusin`:(rr(y)||y.contentEditable===`true`)&&(kr=y,Ar=r,jr=null);break;case`focusout`:jr=Ar=kr=null;break;case`mousedown`:Mr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Mr=!1,Nr(s,n,i);break;case`selectionchange`:if(Or)break;case`keydown`:case`keyup`:Nr(s,n,i)}var b;if(Kn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else $n?Qn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Yn&&n.locale!==`ko`&&($n||x!==`onCompositionStart`?x===`onCompositionEnd`&&$n&&(b=hn()):(fn=i,pn=`value`in fn?fn.value:fn.textContent,$n=!0)),y=jd(r,x),0<y.length&&(x=new Nn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=z(n),b!==null&&(x.data=b)))),(b=Jn?er(e,n):tr(e,n))&&(x=jd(r,`onBeforeInput`),0<x.length&&(y=new Nn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),vd(s,e,r,n,i)}Cd(s,t)})}function Ad(e,t,n){return{instance:e,listener:t,currentTarget:n}}function jd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=cn(e,n),i!=null&&r.unshift(Ad(e,i,a)),i=cn(e,t),i!=null&&r.push(Ad(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Md(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Nd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=cn(n,a),l!=null&&o.unshift(Ad(n,l,c))):i||(l=cn(n,a),l!=null&&o.push(Ad(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Pd=/\r\n?/g,Fd=/\u0000|\uFFFD/g;function Id(e){return(typeof e==`string`?e:``+e).replace(Pd,`
9`).replace(Fd,``)}function Ld(e,t){return t=Id(t),Id(e)===t}function Rd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Gt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Gt(e,``+r);break;case`className`:kt(e,`class`,r);break;case`tabIndex`:kt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:kt(e,n,r);break;case`style`:Jt(e,r,o);break;case`data`:if(t!==`object`){kt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Qt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`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 o==`function`&&(n===`formAction`?(t!==`input`&&Rd(e,t,`name`,a.name,a,null),Rd(e,t,`formEncType`,a.formEncType,a,null),Rd(e,t,`formMethod`,a.formMethod,a,null),Rd(e,t,`formTarget`,a.formTarget,a,null)):(Rd(e,t,`encType`,a.encType,a,null),Rd(e,t,`method`,a.method,a,null),Rd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Qt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=$t);break;case`onScroll`:r!=null&&wd(`scroll`,e);break;case`onScrollEnd`:r!=null&&wd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Qt(``+r),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`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):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`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:wd(`beforetoggle`,e),wd(`toggle`,e),Ot(e,`popover`,r);break;case`xlinkActuate`:At(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:At(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:At(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:At(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:At(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:At(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Ot(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Xt.get(n)||n,Ot(e,n,r))}}function zd(e,t,n,r,a,o){switch(n){case`style`:Jt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Gt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Gt(e,``+r);break;case`onScroll`:r!=null&&wd(`scroll`,e);break;case`onScrollEnd`:r!=null&&wd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=$t);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!xt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[st]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Ot(e,n,r)}}}function Bd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:wd(`error`,e),wd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Rd(e,t,o,s,n,null)}}a&&Rd(e,t,`srcSet`,n.srcSet,n,null),r&&Rd(e,t,`src`,n.src,n,null);return;case`input`:wd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Rd(e,t,r,d,n,null)}}Bt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in wd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Rd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ht(e,!!r,n,!0):Ht(e,!!r,t,!1);return;case`textarea`:for(s in wd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Rd(e,t,s,c,n,null)}Wt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Rd(e,t,l,r,n,null)}return;case`dialog`:wd(`beforetoggle`,e),wd(`toggle`,e),wd(`cancel`,e),wd(`close`,e);break;case`iframe`:case`object`:wd(`load`,e);break;case`video`:case`audio`:for(r=0;r<xd.length;r++)wd(xd[r],e);break;case`image`:wd(`error`,e),wd(`load`,e);break;case`details`:wd(`toggle`,e);break;case`embed`:case`source`:case`link`:wd(`error`,e),wd(`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)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Rd(e,t,u,r,n,null)}return;default:if(Yt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&zd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Rd(e,t,c,r,n,null))}function Vd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=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`:l=f;default:r.hasOwnProperty(m)||Rd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Rd(e,t,p,m,r,f)}}zt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Rd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Rd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ht(e,!!n,n?[]:``,!1):Ht(e,!!n,t,!0)):Ht(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Rd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Rd(e,t,s,a,r,o)}Ut(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Rd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Rd(e,t,l,p,r,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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Rd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Rd(e,t,u,p,r,m)}return;default:if(Yt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&zd(e,t,_,void 0,r,p);
vendor: 4,463 bytes, line 9
9for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||zd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Rd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Rd(e,t,f,p,r,m)}function Hd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ud(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Hd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Hd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.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 Wd=null,Gd=null;function Kd(e){return e.nodeType===9?e:e.ownerDocument}function qd(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 Jd(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 Yd(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 Xd=null;function Zd(){var e=window.event;return e&&e.type===`popstate`?e===Xd?!1:(Xd=e,!0):(Xd=null,!1)}var Qd=typeof setTimeout==`function`?setTimeout:void 0,$d=typeof clearTimeout==`function`?clearTimeout:void 0,ef=typeof Promise==`function`?Promise:void 0,tf=typeof queueMicrotask==`function`?queueMicrotask:ef===void 0?Qd:function(e){return ef.resolve(null).then(e).catch(nf)};function nf(e){setTimeout(function(){throw e})}function rf(e){return e===`head`}function af(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Rp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)yf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,yf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[pt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&yf(e.ownerDocument.body);n=i}while(n);Rp(t)}function of(e,t){var n=e;e=0;do{var r=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||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function sf(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`:sf(n),mt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function cf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[pt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=mf(e.nextSibling),e===null)break}return null}function lf(e,t,n){if(t===``)return null;for(;
vendor: 20,899 bytes, line 9
9e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=mf(e.nextSibling),e===null))return null;return e}function uf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=mf(e.nextSibling),e===null))return null;return e}function df(e){return e.data===`$?`||e.data===`$~`}function ff(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function pf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function mf(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 hf=null;function gf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return mf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function _f(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 vf(e,t,n){switch(t=Kd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function yf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);mt(e)}var bf=new Map,xf=new Set;function Sf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Cf=F.d;F.d={f:wf,r:Tf,D:Of,C:kf,L:Af,m:jf,X:Nf,S:Mf,M:Pf};function wf(){var e=Cf.f(),t=Cu();return e||t}function Tf(e){var t=gt(e);t!==null&&t.tag===5&&t.type===`form`?Ts(t):Cf.r(e)}var Ef=typeof document>`u`?null:document;function Df(e,t,n){var r=Ef;if(r&&typeof t==`string`&&t){var i=Rt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),xf.has(i)||(xf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Bd(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Of(e){Cf.D(e),Df(`dns-prefetch`,e,null)}function kf(e,t){Cf.C(e,t),Df(`preconnect`,e,t)}function Af(e,t,n){Cf.L(e,t,n);var r=Ef;if(r&&e&&t){var i=`link[rel="preload"][as="`+Rt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Rt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Rt(n.imageSizes)+`"]`)):i+=`[href="`+Rt(e)+`"]`;var a=i;switch(t){case`style`:a=If(e);break;case`script`:a=Bf(e)}bf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),bf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Lf(a))||t===`script`&&r.querySelector(Vf(a))||(t=r.createElement(`link`),Bd(t,`link`,e),yt(t),r.head.appendChild(t)))}}function jf(e,t){Cf.m(e,t);var n=Ef;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Rt(r)+`"][href="`+Rt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Bf(e)}if(!bf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),bf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Vf(a)))return}r=n.createElement(`link`),Bd(r,`link`,e),yt(r),n.head.appendChild(r)}}}function Mf(e,t,n){Cf.S(e,t,n);var r=Ef;if(r&&e){var i=vt(r).hoistableStyles,a=If(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Lf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=bf.get(a))&&Uf(e,n);var c=o=r.createElement(`link`);yt(c),Bd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,J(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Nf(e,t){Cf.X(e,t);var n=Ef;if(n&&e){var r=vt(n).hoistableScripts,i=Bf(e),a=r.get(i);a||(a=n.querySelector(Vf(i)),a||(e=f({src:e,async:!0},t),(t=bf.get(i))&&Wf(e,t),a=n.createElement(`script`),yt(a),Bd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Pf(e,t){Cf.M(e,t);var n=Ef;if(n&&e){var r=vt(n).hoistableScripts,i=Bf(e),a=r.get(i);a||(a=n.querySelector(Vf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=bf.get(i))&&Wf(e,t),a=n.createElement(`script`),yt(a),Bd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Ff(e,t,n,r){var a=(a=se.current)?Sf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=If(n.href),n=vt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=If(n.href);var o=vt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Lf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),bf.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},bf.set(e,n),o||zf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Bf(n),n=vt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function If(e){return`href="`+Rt(e)+`"`}function Lf(e){return`link[rel="stylesheet"][`+e+`]`}function Rf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function zf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Bd(t,`link`,n),yt(t),e.head.appendChild(t))}function Bf(e){return`[src="`+Rt(e)+`"]`}function Vf(e){return`script[async]`+e}function Hf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Rt(n.href)+`"]`);if(r)return t.instance=r,yt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),yt(r),Bd(r,`style`,a),J(r,n.precedence,e),t.instance=r;case`stylesheet`:a=If(n.href);var o=e.querySelector(Lf(a));if(o)return t.state.loading|=4,t.instance=o,yt(o),o;r=Rf(n),(a=bf.get(a))&&Uf(r,a),o=(e.ownerDocument||e).createElement(`link`),yt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Bd(o,`link`,r),t.state.loading|=4,J(o,n.precedence,e),t.instance=o;case`script`:return o=Bf(n.src),(a=e.querySelector(Vf(o)))?(t.instance=a,yt(a),a):(r=n,(a=bf.get(o))&&(r=f({},n),Wf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),yt(a),Bd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,J(r,n.precedence,e));return t.instance}function J(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Uf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Wf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Gf=null;function Kf(e,t,n){if(Gf===null){var r=new Map,i=Gf=new Map;i.set(n,r)}else i=Gf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[pt]||a[ot]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function qf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Jf(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 Yf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=If(r.href),a=t.querySelector(Lf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=$f.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,yt(a);return}a=t.ownerDocument||t,r=Rf(r),(i=bf.get(i))&&Uf(r,i),a=a.createElement(`link`),yt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Bd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=$f.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Zf=0;function Qf(e,t){return e.stylesheets&&e.count===0&&tp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&tp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Zf===0&&(Zf=62500*Ud());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&tp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Zf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function $f(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)tp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ep=null;function tp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ep=new Map,t.forEach(np,e),ep=null,$f.call(e))}function np(e,t){if(!(t.state.loading&4)){var n=ep.get(e);if(n)var r=n.get(null);else{n=new Map,ep.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=$f.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var rp={$$typeof:C,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function ip(e,t,n,r,i,a,o,s,c){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=Ye(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ye(0),this.hiddenUpdates=Ye(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ap(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ip(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=oi(3,null,null,t),e.current=a,a.stateNode=e,t=ia(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},La(a),e}function op(e){return e?(e=B,e):B}function sp(e,t,n,r,i,a){i=op(i),r.context===null?r.context=i:r.pendingContext=i,r=za(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ba(e,r,t),n!==null&&(vu(n,e,t),Va(n,e,t))}function cp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lp(e,t){cp(e,t),(e=e.alternate)&&cp(e,t)}function up(e){if(e.tag===13||e.tag===31){var t=ni(e,67108864);t!==null&&vu(t,e,67108864),lp(e,67108864)}}function dp(e){if(e.tag===13||e.tag===31){var t=gu();t=tt(t);var n=ni(e,t);n!==null&&vu(n,e,t),lp(e,t)}}var fp=!0;function pp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=2,hp(e,t,n,r)}finally{F.p=a,P.T=i}}function mp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=8,hp(e,t,n,r)}finally{F.p=a,P.T=i}}function hp(e,t,n,r){if(fp){var i=gp(r);if(i===null)kd(e,t,r,_p,n),Op(e,r);else if(Ap(i,e,t,n,r))r.stopPropagation();else if(Op(e,r),t&4&&-1<Dp.indexOf(e)){for(;i!==null;){var a=gt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=We(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Le(o);s.entanglements[1]|=c,o&=~c}sd(a),!(Ll&6)&&(iu=Te()+500,cd(0,!1))}}break;case 31:case 13:s=ni(a,2),s!==null&&vu(s,a,2),Cu(),lp(a,2)}if(a=gp(r),a===null&&kd(e,t,r,_p,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else kd(e,t,r,null,n)}}function gp(e){return e=tn(e),vp(e)}var _p=null;function vp(e){if(_p=null,e=ht(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(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 _p=e,null}function yp(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(Ee()){case De:return 2;case Oe:return 8;case ke:case Ae:return 32;case je:return 268435456;default:return 32}default:return 32}}var bp=!1,xp=null,Sp=null,Cp=null,wp=new Map,Tp=new Map,Ep=[],Dp=`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 Op(e,t){switch(e){case`focusin`:case`focusout`:xp=null;break;case`dragenter`:case`dragleave`:Sp=null;break;case`mouseover`:case`mouseout`:Cp=null;break;case`pointerover`:case`pointerout`:wp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Tp.delete(t.pointerId)}}function kp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=gt(t),t!==null&&up(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ap(e,t,n,r,i){switch(t){case`focusin`:return xp=kp(xp,e,t,n,r,i),!0;case`dragenter`:return Sp=kp(Sp,e,t,n,r,i),!0;case`mouseover`:return Cp=kp(Cp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return wp.set(a,kp(wp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Tp.set(a,kp(Tp.get(a)||null,e,t,n,r,i)),!0}return!1}function jp(e){var t=ht(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,it(e.priority,function(){dp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,it(e.priority,function(){dp(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 Mp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=gp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);en=r,n.target.dispatchEvent(r),en=null}else return t=gt(n),t!==null&&up(t),e.blockedOn=n,!1;t.shift()}return!0}function Np(e,t,n){Mp(e)&&n.delete(t)}function Pp(){bp=!1,xp!==null&&Mp(xp)&&(xp=null),Sp!==null&&Mp(Sp)&&(Sp=null),Cp!==null&&Mp(Cp)&&(Cp=null),wp.forEach(Np),Tp.forEach(Np)}function Fp(e,n){e.blockedOn===n&&(e.blockedOn=null,bp||(bp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Pp)))}var Ip=null;function Lp(e){Ip!==e&&(Ip=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Ip===e&&(Ip=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(vp(r||n)===null)continue;break}var a=gt(n);a!==null&&(e.splice(t,3),t-=3,Cs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Rp(e){function t(t){return Fp(t,e)}xp!==null&&Fp(xp,e),Sp!==null&&Fp(Sp,e),Cp!==null&&Fp(Cp,e),wp.forEach(t),Tp.forEach(t);for(var n=0;n<Ep.length;n++){var r=Ep[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ep.length&&(n=Ep[0],n.blockedOn===null);)jp(n),n.blockedOn===null&&Ep.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[st]||null;if(typeof a==`function`)o||Lp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[st]||null)s=o.formAction;else if(vp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Lp(n)}}}function zp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Bp(e){this._internalRoot=e}Vp.prototype.render=Bp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;sp(n,gu(),e,t,null,null)},Vp.prototype.unmount=Bp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sp(e.current,2,null,e,null,null),Cu(),t[ct]=null}};function Vp(e){this._internalRoot=e}Vp.prototype.unstable_scheduleHydration=function(e){if(e){var t=rt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ep.length&&t!==0&&t<Ep[n].priority;n++);Ep.splice(n,0,e),n===0&&jp(e)}};var Hp=n.version;if(Hp!==`19.2.7`)throw Error(i(527,Hp,`19.2.7`));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Up={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:P,reconcilerVersion:`19.2.7`};
9if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Wp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wp.isDisabled&&Wp.supportsFiber)try{Pe=Wp.inject(Up),Fe=Wp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Ks,s=qs,c=Js;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ap(e,1,!1,null,null,n,r,null,o,s,c,zp),e[ct]=t.current,Dd(e),new Bp(t)}})),y=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=v()})),b=`modulepreload`,x=function(e){return`/`+e},S={},C=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,new URL(`../../../src/node/plugins/importAnalysisBuild.ts`,import.meta.url)).href}r=o(t.map(t=>{if(t=x(t,n),t=s(t),t in S)return;S[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:b,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},w=u(p(),1),T=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,E=/^[\\/]{2}/;function D(e,t){return t+e.replace(/\\/g,`/`)}var O=`popstate`;function k(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function A(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return te(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:P(t)}return ne(t,n,null,e)}function j(e,t){if(e===!1||e==null)throw Error(t)}function M(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function N(){return Math.random().toString(36).substring(2,10)}function ee(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function te(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?F(t):t,state:n,key:t&&t.key||r||N(),mask:i}}function P({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 F(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function ne(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=k(e)?e:te(h.location,e,t);n&&n(r,e),l=u()+1;let d=ee(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=k(e)?e:te(h.location,e,t);n&&n(r,e),l=u();let i=ee(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return re(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(O,d),c=e,()=>{i.removeEventListener(O,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function re(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),j(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:P(t);return i=i.replace(/ $/,`%20`),!n&&E.test(i)&&(i=r+i),new URL(i,r)}function ie(e,t,n=`/`){return ae(e,t,n,!1)}function ae(e,t,n,r,i){let a=Se((typeof t==`string`?F(t):t).pathname||`/`,n);if(a==null)return null;let o=i??L(e),s=null,c=xe(a);for(let e=0;s==null&&e<o.length;++e)s=_e(o[e],c,r);return s}function I(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function L(e){let t=oe(e);return se(t),t}function oe(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;j(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}
9" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Ae([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(j(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),oe(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:he(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=be(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of R(e.path))a(e,t,!0,n)}),t}function R(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=R(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function se(e){e.sort((e,t)=>e.score===t.score?ge(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var ce=/^:[\w-]+$/,le=3,ue=2,de=1,fe=10,pe=-2,me=e=>e===`*`;function he(e,t){let n=e.split(`/`),r=n.length;return n.some(me)&&(r+=pe),t&&(r+=ue),n.filter(e=>!me(e)).reduce((e,t)=>e+(ce.test(t)?le:t===``?de:fe),r)}function ge(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function _e(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?ye(u,l,s.matcher,s.compiledParams):ve(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=ve({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;
9Object.assign(i,d.params),o.push({params:i,pathname:Ae([a,d.pathname]),pathnameBase:Me(Ae([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Ae([a,d.pathnameBase]))}return o}function ve(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=be(e.path,e.caseSensitive,e.end);return ye(e,t,n,r)}function ye(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function be(e,t=!1,n=!0){M(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 r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function xe(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return M(!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 Se(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function Ce(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?F(e):e,a;return n?(n=ke(n),a=n.startsWith(`/`)?we(n.substring(1),`/`):we(n,t)):a=t,{pathname:a,search:Ne(r),hash:Pe(i)}}function we(e,t){let n=je(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Te(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  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 Ee(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function De(e){let t=Ee(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Oe(e,t,n,r=!1){let i;typeof e==`string`?i=F(e):(i={...e},j(!i.pathname||!i.pathname.includes(`?`),Te(`?`,`pathname`,`search`,i)),j(!i.pathname||!i.pathname.includes(`#`),Te(`#`,`pathname`,`hash`,i)),j(!i.search||!i.search.includes(`#`),Te(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Ce(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var ke=e=>e.replace(/[\\/]{2,}/g,`/`),Ae=e=>ke(e.join(`/`)),je=e=>e.replace(/\/+$/,``),Me=e=>je(e).replace(/^\/*/,`/`),Ne=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Pe=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Fe=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ie(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Le(e){return Ae(e.map(e=>e.route.path).filter(Boolean))||`/`}var Re=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function ze(e,t){let n=e;if(typeof n!=`string`||!T.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Re)try{let e=new URL(window.location.href),r=E.test(n)?new URL(D(n,e.protocol)):new URL(n),a=Se(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{M(!1,`<Link to="${n}">
9 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Be=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Be);var Ve=[`GET`,...Be];new Set(Ve);var He=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Ue(e){try{return He.includes(new URL(e).protocol)}catch{return!1}}var We=w.createContext(null);We.displayName=`DataRouter`;var Ge=w.createContext(null);Ge.displayName=`DataRouterState`;var Ke=w.createContext(!1);function qe(){return w.useContext(Ke)}var Je=w.createContext({isTransitioning:!1});Je.displayName=`ViewTransition`;var Ye=w.createContext(new Map);Ye.displayName=`Fetchers`;var Xe=w.createContext(null);Xe.displayName=`Await`;var Ze=w.createContext(null);Ze.displayName=`Navigation`;var Qe=w.createContext(null);Qe.displayName=`Location`;var $e=w.createContext({outlet:null,matches:[],isDataRoute:!1});$e.displayName=`Route`;var et=w.createContext(null);et.displayName=`RouteError`;var tt=`REACT_ROUTER_ERROR`,nt=`REDIRECT`,rt=`ROUTE_ERROR_RESPONSE`;function it(e){if(e.startsWith(`${tt}:${nt}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function at(e){if(e.startsWith(`${tt}:${rt}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Fe(t.status,t.statusText,t.data)}catch{}}function ot(e,{relative:t}={}){j(st(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=w.useContext(Ze),{hash:i,pathname:a,search:o}=ht(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Ae([n,a])),r.createHref({pathname:s,search:o,hash:i})}function st(){return w.useContext(Qe)!=null}function ct(){return j(st(),`useLocation() may be used only in the context of a <Router> component.`),w.useContext(Qe).location}var lt=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function ut(e){w.useContext(Ze).static||w.useLayoutEffect(e)}function dt(){let{isDataRoute:e}=w.useContext($e);return e?Pt():ft()}function ft(){j(st(),`useNavigate() may be used only in the context of a <Router> component.`);let e=w.useContext(We),{basename:t,navigator:n}=w.useContext(Ze),{matches:r}=w.useContext($e),{pathname:i}=ct(),a=JSON.stringify(De(r)),o=w.useRef(!1);return ut(()=>{o.current=!0}),w.useCallback((r,s={})=>{if(M(o.current,lt),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Oe(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Ae([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var pt=w.createContext(null);function mt(e){let t=w.useContext($e).outlet;return w.useMemo(()=>t&&w.createElement(pt.Provider,{value:e},t),[t,e])}function ht(e,{relative:t}={}){let{matches:n}=w.useContext($e),{pathname:r}=ct(),i=JSON.stringify(De(n));return w.useMemo(()=>Oe(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function gt(e,t){return _t(e,t)}function _t(e,t,n){j(st(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=w.useContext(Ze),{matches:i}=w.useContext($e),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;It(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) 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.
10
11Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=ct(),d;if(t){let e=typeof t==`string`?F(t):t;j(c===`/`||e.pathname?.startsWith(c),`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 "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):ie(e,{pathname:p});M(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),M(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.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 h=wt(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Ae([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Ae([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?w.createElement(Qe.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function vt(){let e=Nt(),t=Ie(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=w.createElement(w.Fragment,null,w.createElement(`p`,null,`💿 Hey developer 👋`),w.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,w.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,w.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),w.createElement(w.Fragment,null,w.createElement(`h2`,null,`Unexpected Application 
11Error!`),w.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?w.createElement(`pre`,{style:i},n):null,o)}var yt=w.createElement(vt,null),bt=class extends w.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?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=at(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:w.createElement($e.Provider,{value:this.props.routeContext},w.createElement(et.Provider,{value:e,children:this.props.component}));return this.context?w.createElement(St,{error:e},t):t}};bt.contextType=Ke;var xt=new WeakMap;function St({children:e,error:t}){let{basename:n}=w.useContext(Ze);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=it(t.digest);if(e){let r=xt.get(t);if(r)throw r;let i=ze(e.location,n),a=i.absoluteURL||i.to;if(Ue(a))throw Error(`Invalid redirect location`);if(Re&&!xt.get(t))if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw xt.set(t,n),n}return w.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function Ct({routeContext:e,match:t,children:n}){let r=w.useContext(We);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement($e.Provider,{value:e},n)}function wt(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);j(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Le(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||yt,o&&(s<0&&c===0?(It(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?w.createElement(n.route.Component,null):n.route.element?n.route.element:e,w.createElement(Ct,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?w.createElement(bt,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Tt(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Et(e){let t=w.useContext(We);return j(t,Tt(e)),t}function Dt(e){let t=w.useContext(Ge);return j(t,Tt(e)),t}function Ot(e){let t=w.useContext($e);return j(t,Tt(e)),t}function kt(e){let t=Ot(e),n=t.matches[t.matches.length-1];return j(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function At(){return kt(`useRouteId`)}function jt(){let e=Dt(`useNavigation`);return w.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function Mt(){let{matches:e,loaderData:t}=Dt(`useMatches`);return w.useMemo(()=>e.map(e=>I(e,t)),[e,t])}function Nt(){let e=w.useContext(et),t=Dt(`useRouteError`),n=kt(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Pt(){let{router:e}=Et(`useNavigate`),t=kt(`useNavigate`),n=w.useRef(!1);return ut(()=>{n.current=!0}),w.useCallback(async(r,i={})=>{M(n.current,lt),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Ft={};function It(e,t,n){!t&&!Ft[e]&&(Ft[e]=!0,M(!1,n))}w.memo(Lt);function Lt({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return _t(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Rt({to:e,replace:t,state:n,relative:r}){j(st(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=w.useContext(Ze);M(!i,`<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:a}=w.useContext($e),{pathname:o}=ct(),s=dt(),c=Oe(e,De(a),o,r===`path`),l=JSON.stringify(c);return w.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function zt(e){return mt(e.context)}function Bt(e){j(!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 Vt({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){j(!st(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=w.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=F(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=w.useMemo(()=>{let e=Se(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);
11return M(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:w.createElement(Ze.Provider,{value:c},w.createElement(Qe.Provider,{children:t,value:h}))}function Ht({children:e,location:t}){return gt(Ut(e),t)}w.Component;function Ut(e,t=[]){let n=[];return w.Children.forEach(e,(e,r)=>{if(!w.isValidElement(e))return;let i=[...t,r];if(e.type===w.Fragment){n.push.apply(n,Ut(e.props.children,i));return}j(e.type===Bt,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),j(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Ut(e.props.children,i)),n.push(a)}),n}var Wt=`get`,Gt=`application/x-www-form-urlencoded`;function Kt(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function qt(e){return Kt(e)&&e.tagName.toLowerCase()===`button`}function Jt(e){return Kt(e)&&e.tagName.toLowerCase()===`form`}function Yt(e){return Kt(e)&&e.tagName.toLowerCase()===`input`}function Xt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Zt(e,t){return e.button===0&&(!t||t===`_self`)&&!Xt(e)}var Qt=null;function $t(){if(Qt===null)try{new FormData(document.createElement(`form`),0),Qt=!1}catch{Qt=!0}return Qt}var en=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function tn(e){return e!=null&&!en.has(e)?(M(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Gt}"`),null):e}function nn(e,t){let n,r,i,a,o;if(Jt(e)){let o=e.getAttribute(`action`);r=o?Se(o,t):null,n=e.getAttribute(`method`)||Wt,i=tn(e.getAttribute(`enctype`))||Gt,a=new FormData(e)}else if(qt(e)||Yt(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Se(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Wt,i=tn(e.getAttribute(`formenctype`))||tn(o.getAttribute(`enctype`))||Gt,a=new FormData(o,e),!$t()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Kt(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Wt,r=null,i=Gt,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var rn={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},an=/[&><\u2028\u2029]/g;function on(e){return e.replace(an,e=>rn[e])}function sn(e,t){if(e===!1||e==null)throw Error(t)}function cn(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&Se(i.pathname,t)===`/`?i.pathname=`${je(t)}/_root.${r}`:i.pathname=`${je(i.pathname)}.${r}`,i}async function ln(e,t){if(e.id in t)return t[e.id];try{let n=await C(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.
11isSpaMode,window.location.reload(),new Promise(()=>{})}}function un(e){return e!=null&&typeof e.page==`string`}function dn(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 fn(e,t,n){return _n((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await ln(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(dn).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function pn(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function mn(e,t,{includeHydrateFallback:n}={}){return hn(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function hn(e){return[...new Set(e)]}function gn(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function _n(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!un(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(gn(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function vn(){let e=w.useContext(We);return sn(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function yn(){let e=w.useContext(Ge);return sn(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var bn=w.createContext(void 0);bn.displayName=`FrameworkContext`;function xn(){let e=w.useContext(bn);return sn(e,`You must render this element inside a <HydratedRouter> element`),e}function Sn(e,t){let n=w.useContext(bn),[r,i]=w.useState(!1),[a,o]=w.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=w.useRef(null);w.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),w.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Cn(s,p),onBlur:Cn(c,m),onMouseEnter:Cn(l,p),onMouseLeave:Cn(u,m),onTouchStart:Cn(d,p)}]:[a,f,{}]:[!1,f,{}]}function Cn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function wn({page:e,...t}){let n=qe(),{nonce:r}=xn(),{router:i}=vn(),a=w.useMemo(()=>ie(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?w.createElement(En,{page:e,matches:a,...t}):w.createElement(Dn,{page:e,matches:a,...t})):null}function Tn(e){let{manifest:t,routeModules:n}=xn(),[r,i]=w.useState([]);return w.useEffect(()=>{let r=!1;return fn(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function En({page:e,matches:t,...n}){let r=ct(),{future:i}=xn(),{basename:a}=vn(),o=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=cn(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return w.createElement(w.Fragment,null,o.map(e=>w.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Dn({page:e,matches:t,...n}){let r=ct(),{future:i,manifest:a,routeModules:o}=xn(),{basename:s}=vn(),{loaderData:c,matches:l}=yn(),u=w.useMemo(()=>pn(e,t,l,a,r,`data`),[e,t,l,a,r]),d=w.useMemo(()=>pn(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=w.useMemo(()=>
11{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=cn(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=w.useMemo(()=>mn(d,a),[d,a]),m=Tn(d);return w.createElement(w.Fragment,null,f.map(e=>w.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>w.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>w.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function On(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}w.Component;var kn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{kn&&(window.__reactRouterVersion=`7.18.1`)}catch{}function An({basename:e,children:t,useTransitions:n,window:r}){let i=w.useRef();i.current??=A({window:r,v5Compat:!0});let a=i.current,[o,s]=w.useState({action:a.action,location:a.location}),c=w.useCallback(e=>{n===!1?s(e):w.startTransition(()=>s(e))},[n]);return w.useLayoutEffect(()=>a.listen(c),[a,c]),w.createElement(Vt,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function jn({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=w.useState({action:n.action,location:n.location}),o=w.useCallback(e=>{r===!1?a(e):w.startTransition(()=>a(e))},[r]);return w.useLayoutEffect(()=>n.listen(o),[n,o]),w.createElement(Vt,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}jn.displayName=`unstable_HistoryRouter`;var Mn=w.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=w.useContext(Ze),v=typeof l==`string`&&T.test(l),y=ze(l,h);l=y.to;let b=ot(l,{relative:r}),x=ct(),S=null;if(o){let e=Oe(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Ae([h,e.pathname])),S=g.createHref(e)}let[C,E,D]=Sn(n,p),O=zn(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function k(t){e&&e(t),t.defaultPrevented||O(t)}let A=!(y.isExternal||i),j=w.createElement(`a`,{...p,...D,href:(A?S:void 0)||y.absoluteURL||b,onClick:A?k:e,ref:On(m,E),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?w.createElement(w.Fragment,null,j,w.createElement(wn,{page:b})):j});Mn.displayName=`Link`;var Nn=w.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=ht(a,{relative:c.relative}),d=ct(),f=w.useContext(Ge),{navigator:p,basename:m}=w.useContext(Ze),h=f!=null&&Yn(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Se(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,T;T=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(S):i;return w.createElement(Mn,{...c,"aria-current":C,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(S):s)});Nn.displayName=`NavLink`;var Pn=w.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Wt,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=w.useContext(Ze),g=Hn(),_=Un(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&T.test(s);return w.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?w.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Pn.displayName=`Form`;function Fn({getKey:e,storageKey:t,...n}){let r=w.useContext(bn),{basename:i}=w.useContext(Ze),a=ct(),o=Mt();qn({getKey:e,storageKey:t});let s=w.useMemo(()=>
11{if(!r||!e)return null;let t=Kn(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),w.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${on(JSON.stringify(t||Wn))}, ${on(JSON.stringify(s))})`}})}Fn.displayName=`ScrollRestoration`;function In(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ln(e){let t=w.useContext(We);return j(t,In(e)),t}function Rn(e){let t=w.useContext(Ge);return j(t,In(e)),t}function zn(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=dt(),d=ct(),f=ht(e,{relative:o});return w.useCallback(p=>{if(Zt(p,t)){p.preventDefault();let t=n===void 0?P(d)===P(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?w.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}var Bn=0,Vn=()=>`__${String(++Bn)}__`;function Hn(){let{router:e}=Ln(`useSubmit`),{basename:t}=w.useContext(Ze),n=At(),r=e.fetch,i=e.navigate;return w.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=nn(e,t);if(a.navigate===!1){let e=a.fetcherKey||Vn();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Un(e,{relative:t}={}){let{basename:n}=w.useContext(Ze),r=w.useContext($e);j(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...ht(e||`.`,{relative:t})},o=ct();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Ae([n,a.pathname])),P(a)}var Wn=`react-router-scroll-positions`,Gn={};function Kn(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:Se(e.pathname,n)||e.pathname},t)),i??=e.key,i}function qn({getKey:e,storageKey:t}={}){let{router:n}=Ln(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=Rn(`useScrollRestoration`),{basename:a}=w.useContext(Ze),o=ct(),s=Mt(),c=jt();w.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Jn(w.useCallback(()=>{if(c.state===`idle`){let t=Kn(o,s,a,e);Gn[t]=window.scrollY}try{sessionStorage.setItem(t||Wn,JSON.stringify(Gn))}catch(e){M(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(w.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||Wn);e&&(Gn=JSON.parse(e))}catch{}},[t]),w.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(Gn,()=>window.scrollY,e?(t,n)=>Kn(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),w.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{M(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Jn(e,t){let{capture:n}=t||{};w.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Yn(e,{relative:t}={}){let n=w.useContext(Je);j(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ln(`useViewTransitionState`),i=ht(e,{relative:t});if(!n.isTransitioning)return!1;let a=Se(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Se(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ve(i.pathname,o)!=null||ve(i.pathname,a)!=null}var Xn=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Zn=s(((e,t)=>{t.exports=Xn()})),Qn=y(),z=Zn();function $n(){return(0,z.jsx)(`div`,{className:`flex flex-col`,children:(0,z.jsx)(`main`,{className:`flex flex-col gap-3 p-3`,children:(0,z.jsx)(zt,{})})})}function er({children:e,className:t}){return(0,z.jsx)(`div`,{className:`flex flex-col w-full p-5 rounded-md border bg-[(image:--card-gradient)] gap-3 ${t??``}`,children:e})}function tr({children:e}){return(0,z.jsx)(`section`,{className:`flex flex-col w-full gap-10 py-13.75 mobile:px-7 tablet:px-12.5 bg-white rounded-md`,children:e})}function nr(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=nr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function rr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=nr(e))&&(r&&(r+=` `),r+=t);return r}var ir=(e,t)=>
vendor: 14,741 bytes, line 11
11{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},ar=(e,t)=>({classGroupId:e,validator:t}),or=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),sr=`-`,cr=[],lr=`arbitrary..`,ur=e=>{let t=pr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return fr(e);let n=e.split(sr);return dr(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?ir(i,t):t:i||cr}return n[e]||cr}}},dr=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=dr(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(sr):e.slice(t).join(sr),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},fr=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?lr+r:void 0})(),pr=e=>{let{theme:t,classGroups:n}=e;return mr(n,t)},mr=(e,t)=>{let n=or();for(let r in e){let i=e[r];hr(i,n,r,t)}return n},hr=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];gr(i,t,n,r)}},gr=(e,t,n,r)=>{if(typeof e==`string`){_r(e,t,n);return}if(typeof e==`function`){vr(e,t,n,r);return}yr(e,t,n,r)},_r=(e,t,n)=>{let r=e===``?t:br(t,e);r.classGroupId=n},vr=(e,t,n,r)=>{if(xr(e)){hr(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(ar(n,e))},yr=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];hr(o,br(t,a),n,r)}},br=(e,t)=>{let n=e,r=t.split(sr),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=or(),n.nextPart.set(t,i)),n=i}return n},xr=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Sr=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Cr=`!`,wr=`:`,Tr=[],Er=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Dr=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===wr){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Cr)?(c=s.slice(0,-1),l=!0):s.startsWith(Cr)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Er(t,l,c,u)};if(t){let e=t+wr,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Er(Tr,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Or=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},kr=e=>({cache:Sr(e.cacheSize),parseClassName:Dr(e),sortModifiers:Or(e),postfixLookupClassGroupIds:Ar(e),...ur(e)}),Ar=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},jr=/\s+/,Mr=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(jr),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Cr:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Nr=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Pr(n))&&(i&&(i+=` `),i+=r);return i},Pr=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Pr(e[r]))&&(n&&(n+=` `),n+=t);return n},Fr=(e,...t)=>{let n,r,i,a,o=o=>(n=kr(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Mr(e,n);return i(e,a),a};return a=o,(...e)=>a(Nr(...e))},Ir=[],Lr=e=>{let t=t=>t[e]||Ir;return t.isThemeGetter=!0,t},Rr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,zr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Br=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Vr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ur=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Wr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Gr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Kr=e=>Br.test(e),qr=e=>!!e&&!Number.isNaN(Number(e)),Jr=e=>!!e&&Number.isInteger(Number(e)),Yr=e=>e.endsWith(`%`)&&qr(e.slice(0,-1)),Xr=e=>Vr.test(e),Zr=()=>!0,Qr=e=>Hr.test(e)&&!Ur.test(e),$r=()=>!1,ei=e=>Wr.test(e),ti=e=>Gr.test(e),ni=e=>!B(e)&&!V(e),ri=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),ii=e=>yi(e,Ci,$r),B=e=>Rr.test(e),ai=e=>yi(e,wi,Qr),oi=e=>yi(e,Ti,qr),si=e=>yi(e,Di,Zr),ci=e=>yi(e,Ei,$r),li=e=>yi(e,xi,$r),ui=e=>yi(e,Si,ti),di=e=>yi(e,Oi,ei),V=e=>zr.test(e),fi=e=>bi(e,wi),pi=e=>bi(e,Ei),mi=e=>bi(e,xi),hi=e=>bi(e,Ci),gi=e=>bi(e,Si),_i=e=>bi(e,Oi,!0),vi=e=>bi(e,Di,!0),yi=(e,t,n)=>{let r=Rr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},bi=(e,t,n=!1)=>{let r=zr.exec(e);return r?r[1]?t(r[1]):n:!1},xi=e=>e===`position`||e===`percentage`,Si=e=>e===`image`||e===`url`,Ci=e=>e===`length`||e===`size`||e===`bg-size`,wi=e=>e===`length`,Ti=e=>e===`number`,Ei=e=>e===`family-name`,Di=e=>e===`number`||e===`weight`,Oi=e=>e===`shadow`,ki=Fr(()=>{let e=Lr(`color`),t=Lr(`font`),n=Lr(`text`),r=Lr(`font-weight`),i=Lr(`tracking`),a=Lr(`leading`),o=Lr(`breakpoint`),s=Lr(`container`),c=Lr(`spacing`),l=Lr(`radius`),u=Lr(`shadow`),d=Lr(`inset-shadow`),f=Lr(`text-shadow`),p=Lr(`drop-shadow`),m=Lr(`blur`),h=Lr(`perspective`),g=Lr(`aspect`),_=Lr(`ease`),v=Lr(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),V,B],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[V,B,c],T=()=>[Kr,`full`,`auto`,...w()],E=()=>[Jr,`none`,`subgrid`,V,B],D=()=>[`auto`,{span:[`full`,Jr,V,B]},Jr,V,B],O=()=>[Jr,`auto`,V,B],k=()=>[`auto`,`min`,`max`,`fr`,V,B],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[Kr,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ee=()=>[Kr,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],te=()=>[Kr,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[e,V,B],F=()=>[...b(),mi,li,{position:[V,B]}],ne=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],re=()=>[`auto`,`cover`,`contain`,hi,ii,{size:[V,B]}],ie=()=>[Yr,fi,ai],ae=()=>[``,`none`,`full`,l,V,B],I=()=>[``,qr,fi,ai],L=()=>[`solid`,`dashed`,`dotted`,`double`],oe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],R=()=>[qr,Yr,mi,li],se=()=>[``,`none`,m,V,B],ce=()=>[`none`,qr,V,B],le=()=>[`none`,qr,V,B],ue=()=>[qr,V,B],de=()=>[Kr,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Xr],breakpoint:[Xr],color:[Zr],container:[Xr],"drop-shadow":[Xr],ease:[`in`,`out`,`in-out`],font:[ni],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Xr],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Xr],shadow:[Xr],spacing:[`px`,qr],text:[Xr],"text-shadow":[Xr],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Kr,B,V,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,V,B]}],"container-named":[ri],columns:[{columns:[qr,B,V,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Jr,`auto`,V,B]}],basis:[{basis:[Kr,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[qr,Kr,`auto`,`initial`,`none`,B]}],grow:[{grow:[``,qr,V,B]}],shrink:[{shrink:[``,qr,V,B]}],order:[{order:[Jr,`first`,`last`,`none`,V,B]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...ee()]}],"min-inline-size":[{"min-inline":[`auto`,...ee()]}],"max-inline-size":[{"max-inline":[`none`,...ee()]}],"block-size":[{block:[`auto`,...te()]}],"min-block-size":[{"min-block":[`auto`,...te()]}],"max-block-size":[{"max-block":[`none`,...te()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,fi,ai]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,vi,si]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Yr,B]}],"font-family":[{font:[pi,ci,t]}],"font-features":[{"font-features":[B]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,V,B]}],"line-clamp":[{"line-clamp":[qr,`none`,V,oi]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,V,B]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,V,B]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...L(),`wavy`]}],"text-decoration-thickness":[{decoration:[qr,`from-font`,`auto`,V,ai]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[qr,`auto`,V,B]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[Jr,V,B]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,V,B]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,V,B]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:re()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Jr,V,B],radial:[``,V,B],conic:[Jr,V,B]},gi,ui]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:ie()}
11],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:I()}],"border-w-x":[{"border-x":I()}],"border-w-y":[{"border-y":I()}],"border-w-s":[{"border-s":I()}],"border-w-e":[{"border-e":I()}],"border-w-bs":[{"border-bs":I()}],"border-w-be":[{"border-be":I()}],"border-w-t":[{"border-t":I()}],"border-w-r":[{"border-r":I()}],"border-w-b":[{"border-b":I()}],"border-w-l":[{"border-l":I()}],"divide-x":[{"divide-x":I()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":I()}
vendor: 6,716 bytes, line 11
11],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...L(),`hidden`,`none`]}],"divide-style":[{divide:[...L(),`hidden`,`none`]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...L(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[qr,V,B]}],"outline-w":[{outline:[``,qr,fi,ai]}],"outline-color":[{outline:P()}],shadow:[{shadow:[``,`none`,u,_i,di]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":[`none`,d,_i,di]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:I()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[qr,ai]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":I()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":[`none`,f,_i,di]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[qr,V,B]}],"mix-blend":[{"mix-blend":[...oe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[qr]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[V,B]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[qr]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,V,B]}],filter:[{filter:[``,`none`,V,B]}],blur:[{blur:se()}],brightness:[{brightness:[qr,V,B]}],contrast:[{contrast:[qr,V,B]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,_i,di]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:[``,qr,V,B]}],"hue-rotate":[{"hue-rotate":[qr,V,B]}],invert:[{invert:[``,qr,V,B]}],saturate:[{saturate:[qr,V,B]}],sepia:[{sepia:[``,qr,V,B]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,V,B]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[qr,V,B]}],"backdrop-contrast":[{"backdrop-contrast":[qr,V,B]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,qr,V,B]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[qr,V,B]}],"backdrop-invert":[{"backdrop-invert":[``,qr,V,B]}],"backdrop-opacity":[{"backdrop-opacity":[qr,V,B]}],"backdrop-saturate":[{"backdrop-saturate":[qr,V,B]}],"backdrop-sepia":[{"backdrop-sepia":[``,qr,V,B]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,V,B]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[qr,`initial`,V,B]}],ease:[{ease:[`linear`,`initial`,_,V,B]}],delay:[{delay:[qr,V,B]}],animate:[{animate:[`none`,v,V,B]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,V,B]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":[`scale-3d`],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[V,B,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":[`translate-none`],zoom:[{zoom:[Jr,V,B]}],accent:[{accent:P()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom
11-in`,`zoom-out`,V,B]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}
11],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,V,B]}],fill:[{fill:[`none`,...P()]}],"stroke-w":[{stroke:[qr,fi,ai,oi]}],stroke:[{stroke:[`none`,...P()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Ai(...e){return ki(rr(e))}var ji={black:`text-[#0A0A0A] dark:text-[#FFFFFF]`,white:`text-[#FFFFFF]`,primary:`text-[#E11526]`,green:`text-[#1F2123] dark:text-[#ADE3AF]`,babyBlue:`text-[#1F2123] dark:text-[#B0DAF8]`,silver:`text-[#616161] dark:text-[#ABABAB]`,gray:`text-[#ABABAB]`,gradient:`bg-gradient-to-r from-[#DEFB82] via-[#ADE3AF] to-[#B0DAF8] bg-clip-text text-transparent`},Mi={1:`text-[0.75rem]  tablet:text-[0.8125rem] desktop:text-[0.875rem]`,2:`text-[0.8125rem] tablet:text-[0.875rem]  desktop:text-[0.9375rem]`,3:`text-[0.875rem]  tablet:text-[0.9375rem] desktop:text-[1rem]`,4:`text-[1.125rem]  tablet:text-[1.25rem]   desktop:text-[1.375rem]`,5:`text-[1.25rem]   tablet:text-[1.5rem]    desktop:text-[1.75rem]`,6:`text-[1.5rem]    tablet:text-[1.875rem]  desktop:text-[2.25rem]`,7:`text-[1.875rem]  tablet:text-[2.5rem]    desktop:text-[3rem]`},Ni={sans:`font-sans`,light:`font-light`,lightItalic:`font-light italic`,regular:`font-normal`,regularItalic:`font-normal italic`,medium:`font-medium`,mediumItalic:`font-medium italic`,bold:`font-bold`,boldItalic:`font-bold italic`,black:`font-black`,blackItalic:`font-black italic`};function Pi({as:e,children:t,size:n,weight:r,color:i,className:a}){return(0,z.jsx)(e,{className:Ai(n?Mi[n]:void 0,r?Ni[r]:void 0,i?ji[i]:void 0,a),children:t})}function H({as:e=`p`,size:t=1,weight:n=`light`,color:r=`black`,className:i,children:a}
11){return(0,z.jsx)(Pi,{as:e,size:t,weight:n,color:r,className:i,children:a})}function Fi({size:e=1,weight:t=`medium`,color:n=`black`,className:r,children:i}){return(0,z.jsx)(Pi,{as:`h1`,size:e,weight:t,color:n,className:r,children:i})}var Ii=`px-5 py-1.5 rounded-full transition-colors cursor-pointer`;function Li({active:e,brasilHref:t=`/radar-ia-brasil`,globalHref:n=`/radar-ia-mundo`,className:r=``}){return(0,z.jsxs)(`div`,{className:`flex items-center gap-1 p-1 w-fit rounded-full bg-[#141414]/90 backdrop-blur border border-white/10 shadow-lg ${r}`,children:[(0,z.jsx)(Mn,{to:t,className:`${Ii} ${e===`brasil`?`bg-primary`:`hover:bg-white/10`}`,children:(0,z.jsx)(H,{color:e===`brasil`?`white`:`gray`,weight:`bold`,children:`Brasil`})}),(0,z.jsx)(Mn,{to:n,className:`${Ii} ${e===`global`?`bg-primary`:`hover:bg-white/10`}`,children:(0,z.jsx)(H,{color:e===`global`?`white`:`gray`,weight:`bold`,children:`Global`})})]})}var Ri=[{value:`86%`,label:`dos brasileiros já a conhecem.`},{value:`1 em cada 2`,label:`fazem uso.`},{value:`86%`,label:`aprovam a IA.`},{value:`42%`,label:`das grandes indústrias adotam IA.`}];function zi(){return(0,z.jsxs)(tr,{children:[(0,z.jsxs)(`div`,{className:`flex flex-col tablet:flex-row items-center w-full gap-8 tablet:gap-0`,children:[(0,z.jsxs)(`div`,{className:`flex flex-col w-full gap-6`,children:[(0,z.jsx)(Li,{active:`brasil`}),(0,z.jsxs)(Fi,{size:7,weight:`bold`,className:`tablet:max-w-110 leading-tight tablet:leading-15`,children:[`Inteligência artificial no Brasil, `,(0,z.jsx)(`span`,{className:`text-primary`,children:`hoje`}),`.`]}),(0,z.jsx)(H,{weight:`light`,color:`silver`,className:`tablet:max-w-120`,children:`A adoção da IA cresce de maneira acelerada no Brasil, refletindo um entusiasmo imenso, a despeito das dúvidas sobre os seus impactos.`})]}),(0,z.jsx)(`div`,{className:`flex items-center justify-center tablet:justify-end w-full`,children:(0,z.jsx)(`div`,{className:`w-full tablet:max-w-120 aspect-video rounded-2xl overflow-hidden border border-white/10 bg-black/40 p-2`,children:(0,z.jsx)(`iframe`,{src:`https://www.youtube-nocookie.com/embed/7THc4qpEagU?rel=0`,title:`Radar CNN IA · Brasil`,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,referrerPolicy:`strict-origin-when-cross-origin`,allowFullScreen:!0,className:`w-full h-full rounded-xl border-0`})})})]}),(0,z.jsx)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-4 gap-2.5`,children:Ri.map(e=>(0,z.jsxs)(er,{children:[(0,z.jsx)(Fi,{size:5,weight:`bold`,children:e.value}),(0,z.jsx)(H,{color:`silver`,weight:`light`,children:e.label})]},e.label))})]})}function Bi({title:e}){return(0,z.jsx)(`div`,{className:`flex items-center justify-center w-fit min-w-34.75 px-3.75 py-2.5 bg-linear-to-r from-[#E11526] to-[#7B0B15] rounded-sm`,children:(0,z.jsx)(H,{color:`white`,size:1,weight:`light`,children:e})})}var Vi=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Hi=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Ui=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Wi=e=>{let t=Ui(e);return t.charAt(0).toUpperCase()+t.slice(1)},Gi={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},Ki=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},qi=(0,w.createContext)({}),Ji=()=>(0,w.useContext)(qi),Yi=(0,w.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=Ji()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,w.createElement)(`svg`,{ref:c,...Gi,width:t??l??Gi.width,height:t??l??Gi.height,stroke:e??f,strokeWidth:m,className:Vi(`lucide`,p,i),...!a&&!Ki(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,w.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),Xi=(e,t)=>{let n=(0,w.forwardRef)(({className:n,...r},i)=>(0,w.createElement)(Yi,{ref:i,iconNode:t,className:Vi(`lucide-${Hi(Wi(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Wi(e),n},Zi=Xi(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Qi=Xi(`move-right`,[[`path`,{d:`M18 8L22 12L18 16`,key:`1r0oui`}],[`path`,{d:`M2 12H22`,key:`1m8cig`}]]),$i=Xi(`move-up-right`,[[`path`,{d:`M13 5H19V11`,key:`1n1gyv`}],[`path`,{d:`M19 5L5 19`,key:`72u4yj`}]]),ea=Xi(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),ta=Xi(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function na({orientation:e=`horizontal`,className:t=``}
11){return(0,z.jsx)(`div`,{className:e===`vertical`?`self-stretch w-px bg-muted ${t}`:`w-full h-px bg-muted ${t}`})}var U=typeof document<`u`?w.useLayoutEffect:()=>{},ra={};function ia(e,t){let n=w.useRef(ra);return n.current===ra&&(n.current=e(t)),n}function aa(e){let t=ia(oa,e).current;return t.next=e,U(t.effect),t}function oa(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var sa={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},ca={...sa,position:`fixed`,top:0,left:0};({...sa});function la(e){return Array.isArray(e)?e.map(e=>la(e)).join(`,`):e==null?``:String(e)}var ua=new Map;function da(e,t){let n=JSON.stringify({locale:la(e),options:t}),r=ua.get(n);if(r)return r;let i=new Intl.NumberFormat(e,t);return ua.set(n,i),i}function fa(e,t,n){return e==null?``:da(t,n).format(e)}function pa(e,t,n){return e==null?``:n?fa(e,t,n):fa(e/100,t,{style:`percent`})}function ma(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var ha=ma(`https://base-ui.com/production-error`,`Base UI`);function ga(e,t,n,r){let i=ia(va).current;return ya(i,e,t,n,r)&&xa(i,[e,t,n,r]),i.callback}function _a(e){let t=ia(va).current;return ba(t,e)&&xa(t,e),t.callback}function va(){return{callback:null,cleanup:null,refs:[]}}function ya(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function ba(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function xa(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n;break;default:}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null;break;default:}}}}}}var Sa=19;function Ca(e){return Sa>=e}function wa(e){if(!w.isValidElement(e))return null;let t=e,n=t.props;return(Ca(19)?n?.ref:t.ref)??null}function Ta(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Ea(){}Object.freeze([]);var Da=Object.freeze({});function Oa(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function ka(e,t){return typeof e==`function`?e(t):e}function Aa(e,t){return typeof e==`function`?e(t):e}var ja={};function Ma(e,t,n,r,i){if(!n&&!r&&!i&&!e)return Pa(t);let a=Pa(e);
11return t&&(a=Fa(a,t)),n&&(a=Fa(a,n)),r&&(a=Fa(a,r)),i&&(a=Fa(a,i)),a}function Na(e){if(e.length===0)return ja;if(e.length===1)return Pa(e[0]);let t=Pa(e[0]);for(let n=1;n<e.length;n+=1)t=Fa(t,e[n]);return t}function Pa(e){return za(e)?{...Ba(e,ja)}:Ia(e)}function Fa(e,t){return za(t)?Ba(t,e):La(e,t)}function Ia(e){let t={...e};for(let e in t){let n=t[e];Ra(e,n)&&(t[e]=Ha(n))}return t}function La(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=Ta(e.style,r);break;case`className`:e[n]=Wa(e.className,r);break;default:Ra(n,r)?e[n]=Va(e[n],r):e[n]=r}}return e}function Ra(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function za(e){return typeof e==`function`}function Ba(e,t){return za(e)?e(t):e??ja}function Va(e,t){return t?e?(...n)=>{let r=n[0];if(Ga(r)){let i=r;Ua(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:Ha(t):e}function Ha(e){return e&&((...t)=>{let n=t[0];return Ga(n)&&Ua(n),e(...t)})}function Ua(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Wa(e,t){return t?e?t+` `+e:t:e}function Ga(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function Ka(e,t,n={}){let r=t.render,i=qa(t,n);return n.enabled===!1?null:Xa(e,r,i,n.state??Da)}function qa(e,t={}){let{className:n,style:r,render:i}=e,{state:a=Da,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?ka(n,a):void 0,d=l?Aa(r,a):void 0,f=l?Oa(a,c):Da,p=l&&s?Ja(s):void 0,m=l?Ta(f,p)??{}:Da;return typeof document<`u`&&(l?Array.isArray(o)?m.ref=_a([m.ref,wa(i),...o]):m.ref=ga(m.ref,wa(i),o):ga(null,null)),l?(u!==void 0&&(m.className=Wa(m.className,u)),d!==void 0&&(m.style=Ta(m.style,d)),m):Da}function Ja(e){return Array.isArray(e)?Na(e):Ma(void 0,e)}var Ya=Symbol.for(`react.lazy`);function Xa(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=Ma(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===Ya&&(i=w.Children.toArray(t)[0]),w.cloneElement(i,e)}if(e&&typeof e==`string`)return Za(e,n);throw Error(ha(8))}function Za(e,t){return e===`button`?(0,w.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,w.createElement)(`img`,{alt:``,...t,key:t.key}):w.createElement(e,t)}var Qa=w.createContext(void 0);function $a(){let e=w.useContext(Qa);if(e===void 0)throw Error(ha(51));return e}var eo=function(e){return e.complete=`data-complete`,e.indeterminate=`data-indeterminate`,e.progressing=`data-progressing`,e}({}),to={status(e){return e===`progressing`?{[eo.progressing]:``}:e===`complete`?{[eo.complete]:``}:e===`indeterminate`?{[eo.indeterminate]:``}:null}};function no(e,t){return t==null?`indeterminate progress`:e||`${t}%`}var ro=w.forwardRef(function(e,t){let{format:n,getAriaValueText:r=no,locale:i,max:a=100,min:o=0,value:s,render:c,className:l,children:u,style:d,...f}=e,[p,m]=w.useState(),h=aa(n),g=`indeterminate`;Number.isFinite(s)&&(g=s===a?`complete`:`progressing`);let _=pa(s,i,h.current),v=w.useMemo(()=>({status:g}),[g]),y={"aria-labelledby":p,"aria-valuemax":a,"aria-valuemin":o,"aria-valuenow":s??void 0,"aria-valuetext":r(_,s),role:`progressbar`,children:(0,z.jsxs)(w.Fragment,{children:[u,(0,z.jsx)(`span`,{role:`presentation`,style:ca,children:`x`})]})},b=w.useMemo(()=>({formattedValue:_,max:a,min:o,setLabelId:m,state:v,status:g,value:s}),[_,a,o,m,v,g,s]),x=Ka(`div`,e,{state:v,ref:t,props:[y,f],stateAttributesMapping:to});return(0,z.jsx)(Qa.Provider,{value:b,children:x})}),io=w.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=$a();return Ka(`div`,e,{state:o,ref:t,props:a,stateAttributesMapping:to})});function ao(e,t,n){return(e-t)*100/(n-t)}var oo=w.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{max:o,min:s,value:c,state:l}=$a(),u=Number.isFinite(c)&&c!==null?ao(c,s,o):null;return Ka(`div`,e,{state:l,ref:t,props:[{style:u==null?{}:{insetInlineStart:0,height:`inherit`,width:`${u}%`}},a],stateAttributesMapping:to})}),so={...w},co=0;function W(e,t=`mui`){let[n,r]=w.useState(e),i=e||n;return w.useEffect(()=>{n??(co+=1,r(`${t}-${co}`))},[n,t]),i}var lo=so.useId;function uo(e,t){if(lo!==void 0){let n=lo();return e??(t?`${t}-${n}`:n)}return W(e,t)}function fo(e){return uo(e,`base-ui`)}function po({className:e,children:t,value:n,...r}){return(0,z.jsxs)(ro,{value:n,"data-slot":`progress`,className:Ai(`flex flex-wrap gap-3`,e),...r,children:[t,(0,z.jsx)(mo,{children:(0,z.jsx)(ho,{})})]})}function mo({className:e,...t}){return(0,z.jsx)(io,{className:Ai(`relative flex h-1.5 w-full items-center overflow-x-hidden rounded-full bg-muted`,e),"data-slot":`progress-track`,...t})}function ho({className:e,...t}){return(0,z.jsx)(oo,{"data-slot":`progress-indicator`,className:Ai(`h-full bg-primary transition-all`,e),...t})}var go=`dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdate
11Capture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture`.split(`.`);function _o(e){return typeof e==`string`?go.includes(e):!1}var vo=new Set(`aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle`.split(`.`));function yo(e){return typeof e==`string`?vo.has(e):!1}function bo(e){return typeof e==`string`&&e.startsWith(`data-`)}function xo(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(yo(n)||bo(n))&&(t[n]=e[n]);return t}function So(e){if(e==null)return null;if((0,w.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return xo(t)}return typeof e==`object`&&!Array.isArray(e)?xo(e):null}function Co(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(yo(n)||bo(n)||_o(n))&&(t[n]=e[n]);return t}function wo(e){return e==null?null:(0,w.isValidElement)(e)?Co(e.props):typeof e==`object`&&!Array.isArray(e)?Co(e):null}var To=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function Eo(){return Eo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eo.apply(null,arguments)}function Do(e,t){if(e==null)return{};var n,r,i=Oo(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Oo(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ko=(0,w.forwardRef)((e,t)=>{var{children:n,width:r,height:i,viewBox:a,className:o,style:s,title:c,desc:l}=e,u=Do(e,To),d=a||{width:r,height:i,x:0,y:0},f=rr(`recharts-surface`,o);return w.createElement(`svg`,Eo({},Co(u),{className:f,width:r,height:i,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`,ref:t}),w.createElement(`title`,null,c),w.createElement(`desc`,null,l),n)}),Ao=[`children`,`className`];function jo(){return jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jo.apply(null,arguments)}function Mo(e,t){if(e==null)return{};var n,r,i=No(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function No(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Po=w.forwardRef((e,t)=>
11{var{children:n,className:r}=e,i=Mo(e,Ao),a=rr(`recharts-layer`,r);return w.createElement(`g`,jo({className:a},Co(i),{ref:t}),n)}),Fo=(0,w.createContext)(null);function Io(e){return function(){return e}}var Lo=Math.cos,Ro=Math.sin,zo=Math.sqrt,Bo=Math.PI;Bo/2;var Vo=2*Bo,Ho=Math.PI,Uo=2*Ho,Wo=1e-6,Go=Uo-Wo;function Ko(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function qo(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return Ko;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var Jo=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?Ko:qo(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Wo)if(!(Math.abs(u*s-c*l)>Wo)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((Ho-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Wo&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Wo||Math.abs(this._y1-l)>Wo)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%Uo+Uo),d>Go?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>Wo&&this._append`A${n},${n},0,${+(d>=Ho)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function Yo(){return new Jo}Yo.prototype=Jo.prototype;function Xo(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Jo(t)}Array.prototype.slice;function Zo(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Qo(e){this._context=e}Qo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function $o(e){return new Qo(e)}function es(e){return e[0]}function ts(e){return e[1]}function ns(e,t){var n=Io(!0),r=null,i=$o,a=null,o=Xo(s);e=typeof e==`function`?e:e===void 0?es:Io(e),t=typeof t==`function`?t:t===void 0?ts:Io(t);function s(s){var c,l=(s=Zo(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:Io(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:Io(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:Io(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function rs(e,t,n){var r=null,i=Io(!0),a=null,o=$o,s=null,c=Xo(l);e=typeof e==`function`?e:e===void 0?es:Io(+e),t=typeof t==`function`?t:Io(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?ts:Io(+n);function l(l){var u,d,f,p=(l=Zo(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h)if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return ns().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:Io(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:Io(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:Io(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:Io(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:Io(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:Io(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:Io(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var is=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function as(e){return new is(e,!0)}function os(e){return new is(e,!1)}var ss={draw(e,t){let n=zo(t/Bo);e.moveTo(n,0),e.arc(0,0,n,0,Vo)}},cs={draw(e,t){let n=zo(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},ls=zo(1/3),us=ls*2,ds={draw(e,t){let n=zo(t/us),r=n*ls;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},fs={draw(e,t){let n=zo(t),r=-n/2;e.rect(r,r,n,n)}},ps=.8908130915292852,ms=Ro(Bo/10)/Ro(7*Bo/10),hs=Ro(Vo/10)*ms,gs=-Lo(Vo/10)*ms,_s={draw(e,t){let n=zo(t*ps),r=hs*n,i=gs*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=Vo*t/5,o=Lo(a),s=Ro(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},vs=zo(3),ys={draw(e,t){let n=-zo(t/(vs*3));e.moveTo(0,n*2),e.lineTo(-vs*n,-n),e.lineTo(vs*n,-n),e.closePath()}},bs=-.5,xs=zo(3)/2,Ss=1/zo(12),Cs=(Ss/2+1)*3,ws={draw(e,t){let n=zo(t/Cs),r=n/2,i=n*Ss,a=r,o=n*Ss+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(bs*r-xs*i,xs*r+bs*i),e.lineTo(bs*a-xs*o,xs*a+bs*o),e.lineTo(bs*s-xs*c,xs*s+bs*c),e.lineTo(bs*r+xs*i,bs*i-xs*r),e.lineTo(bs*a+xs*o,bs*o-xs*a),e.lineTo(bs*s+xs*c,bs*c-xs*s),e.closePath()}};function Ts(e,t){let n=null,r=Xo(i);e=typeof e==`function`?e:Io(e||ss),t=typeof t==`function`?t:Io(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:Io(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:Io(+e),i):t}
11,i.context=function(e){return arguments.length?(n=e??null,i):n},i}function Es(){}function Ds(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Os(e){this._context=e}Os.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ds(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ds(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ks(e){return new Os(e)}function As(e){this._context=e}As.prototype={areaStart:Es,areaEnd:Es,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ds(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function js(e){return new As(e)}function Ms(e){this._context=e}Ms.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ds(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ns(e){return new Ms(e)}function Ps(e){this._context=e}Ps.prototype={areaStart:Es,areaEnd:Es,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Fs(e){return new Ps(e)}function Is(e){return e<0?-1:1}function Ls(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Is(a)+Is(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Rs(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function zs(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Bs(e){this._context=e}Bs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:zs(this,this._t0,Rs(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,zs(this,Rs(this,n=Ls(this,e,t)),n);break;default:zs(this,this._t0,n=Ls(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Vs(e){this._context=new Hs(e)}(Vs.prototype=Object.create(Bs.prototype)).point=function(e,t){Bs.prototype.point.call(this,t,e)};function Hs(e){this._context=e}Hs.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Us(e){return new Bs(e)}function Ws(e){return new Vs(e)}function Gs(e){this._context=e}Gs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Ks(e),i=Ks(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Ks(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function qs(e){return new Gs(e)}function Js(e,t){this._context=e,this._t=t}Js.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function Ys(e){return new Js(e,.5)}function Xs(e){return new Js(e,0)}function Zs(e){return new Js(e,1)}function Qs(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function $s(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function ec(e,t){return e[t]}function tc(e){let t=[];return t.key=e,t}function nc(){var e=Io([]),t=$s,n=Qs,r=ec;function i(i){var a=Array.from(e.apply(this,arguments),tc),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=Zo(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:Io(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:Io(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?$s:typeof e==`function`?e:Io(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Qs,i):n},i}function rc(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Qs(e,t)}}function ic(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}Qs(e,t)}}function ac(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,Qs(e,t)}}function oc(e){return e===`__proto__`}function sc(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}function cc(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`
11:String(e)}function lc(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(lc).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function uc(e){if(Array.isArray(e))return e.map(cc);if(typeof e==`symbol`)return[e];e=lc(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let s=e[r];if(a)s===`\\`&&r+1<n?(r++,i+=e[r]):s===a?a=``:i+=s;else if(o)s===`"`||s===`'`?a=s:s===`]`?(o=!1,t.push(i),i=``):i+=s;else if(s===`[`)o=!0,i&&=(t.push(i),``);else if(s===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=s;r++}return i&&t.push(i),t}function dc(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(oc(t))return n;let r=e[t];return r===void 0?sc(t)&&!Object.hasOwn(e,t)?dc(e,uc(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=cc(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return fc(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),oc(t))return n;let r=e[t];return r===void 0?n:r}}}function fc(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||oc(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var pc=4;function mc(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:pc),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function hc(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+mc(i)+n},``)}var gc=e=>e===0?0:e>0?1:-1,_c=e=>typeof e==`number`&&e!=+e,vc=e=>typeof e==`string`&&e.indexOf(`%`)===e.length-1,G=e=>(typeof e==`number`||e instanceof Number)&&!_c(e),yc=e=>G(e)||typeof e==`string`,bc=0,xc=e=>{var t=++bc;return`${e||``}${t}`},Sc=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!G(e)&&typeof e!=`string`)return n;var i;if(vc(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return _c(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},Cc=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function wc(e,t,n){return G(e)&&G(t)?mc(e+n*(t-e)):t}function Tc(e,t,n){if(!(!e||!e.length))return e.find(e=>e&&(typeof t==`function`?t(e):dc(e,t))===n)}var Ec=e=>e==null,Dc=e=>Ec(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function Oc(e){return e!=null}function kc(){}var Ac=[`type`,`size`,`sizeType`];function jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jc.apply(null,arguments)}function Mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Mc(Object(n),!0).forEach(function(t){Pc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pc(e,t,n){return(t=Fc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fc(e){var t=Ic(e,`string`);return typeof t==`symbol`?t:t+``}function Ic(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Lc(e,t){if(e==null)return{};var n,r,i=Rc(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Rc(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var zc={symbolCircle:ss,symbolCross:cs,symbolDiamond:ds,symbolSquare:fs,symbolStar:_s,symbolTriangle:ys,symbolWye:ws},Bc=Math.PI/180,Vc=e=>zc[`symbol${Dc(e)}`]||ss,Hc=(e,t,n)=>{if(t===`area`)return e;switch(n){case`cross`:return 5*e*e/9;case`diamond`:return .5*e*e/Math.sqrt(3);case`square`:return e*e;case`star`:var r=18*Bc;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2);
11case`triangle`:return Math.sqrt(3)*e*e/4;case`wye`:return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},Uc=(e,t)=>{zc[`symbol${Dc(e)}`]=t},Wc=e=>{var{type:t=`circle`,size:n=64,sizeType:r=`area`}=e,i=Nc(Nc({},Lc(e,Ac)),{},{type:t,size:n,sizeType:r}),a=`circle`;typeof t==`string`&&(a=t);var o=()=>{var e=Vc(a),t=Ts().type(e).size(Hc(n,r,a))();if(t!==null)return t},{className:s,cx:c,cy:l}=i,u=Co(i);return G(c)&&G(l)&&G(n)?w.createElement(`path`,jc({},u,{className:rr(`recharts-symbols`,s),transform:`translate(${c}, ${l})`,d:o()})):null};Wc.registerSymbol=Uc;var Gc=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,w.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{_o(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},Kc=(e,t,n)=>r=>(e(t,n,r),null),qc=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];_o(i)&&typeof a==`function`&&(r||={},r[i]=Kc(a,t,n))}),r};function Jc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Yc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Jc(Object(n),!0).forEach(function(t){Xc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xc(e,t,n){return(t=Zc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zc(e){var t=Qc(e,`string`);return typeof t==`symbol`?t:t+``}function Qc(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function $c(e,t){var n=Yc({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function el(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function tl(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}var nl=/^(?:0|[1-9]\d*)$/;function rl(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return nl.test(e)}}function il(e){return Number.isSafeInteger(e)&&e>=0}function al(e){return e!=null&&typeof e!=`function`&&il(e.length)}var ol=s((e=>{var t=p();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),sl=s(((e,t)=>{t.exports=ol()})),cl=s((e=>{var t=p(),n=sl();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),ll=s(((e,t)=>{t.exports=cl()})),ul=(0,w.createContext)(null),dl=ll(),fl=e=>e,pl=()=>{var e=(0,w.useContext)(ul);return e?e.store.dispatch:fl},ml=()=>{},hl=()=>ml,gl=(e,t)=>
11e===t;function K(e){var t=(0,w.useContext)(ul),n=(0,w.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:ml,[t,e]);return(0,dl.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:hl,t?t.store.getState:ml,t?t.store.getState:ml,n,gl)}function _l(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function vl(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!=`object`)throw TypeError(t)}function yl(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var bl=e=>Array.isArray(e)?e:[e];function xl(e){let t=Array.isArray(e[0])?e[0]:e;return yl(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function Sl(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Cl=class{constructor(e){this.value=e}deref(){return this.value}},wl=typeof WeakRef<`u`?WeakRef:Cl,Tl=0,El=1;function Dl(){return{s:Tl,v:void 0,o:null,p:null}}function Ol(e,t={}){let n=Dl(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=Dl(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=Dl(),e.set(n,t)):t=r}}let s=t,c;if(t.s===El)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=i?.deref?.()??i;e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new wl(c):c}return s.s=El,s.v=c,c}return o.clearCache=()=>{n=Dl(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function kl(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),_l(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Ol,argsMemoizeOptions:u=[],devModeChecks:d={}}={...n,...a},f=bl(c),p=bl(u),m=xl(e),h=s(function(){return t++,o.apply(null,arguments)},...f),g=l(function(){r++;let e=Sl(m,arguments);return i=h.apply(null,e),i},...p);return Object.assign(g,{resultFunc:o,memoizedResultFunc:h,dependencies:m,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var q=kl(Ol),Al=Object.assign((e,t=q)=>{vl(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>Al});function jl(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}function Ml(e,t,n){return tl(n)&&(typeof t==`number`&&al(n)&&rl(t)&&t<n.length||typeof t==`string`&&t in n)?el(n[t],e):!1}function Nl(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}var Pl=(e,t,n)=>{if(e!==t){let r=Nl(e),i=Nl(t);if(r===i&&r===0){if(e<t)return n===`desc`?1:-1;if(e>t)return n===`desc`?-1:1}return n===`desc`?i-r:r-i}return 0};function Fl(e){return typeof e==`symbol`||e instanceof Symbol}var Il=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ll=/^\w*$/;function Rl(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||Fl(e)?!0:typeof e==`string`&&(Ll.test(e)||!Il.test(e))||t!=null&&Object.hasOwn(t,e)}function zl(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(e=>String(e));let i=(e,t)=>{let n=e;for(let e=0;e<t.length&&n!=null;++e)n=n[t[e]];return n},a=(e,t)=>t==null||e==null?t:typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):typeof t==`object`?t[e]:t,o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||Rl(e)?e:{key:e,path:uc(e)}));return e.map(e=>({original:e,criteria:o.map(t=>a(t,e))})).slice().sort((e,t)=>
11{for(let r=0;r<o.length;r++){let i=Pl(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function Bl(e,...t){let n=t.length;return n>1&&Ml(e,t[0],t[1])?t=[]:n>2&&Ml(t[0],t[1],t[2])&&(t=[t[0]]),zl(e,jl(t),[`asc`])}var Vl=e=>e.legend.settings,Hl=e=>e.legend.size;q([e=>e.legend.payload,Vl],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?Bl(r,n):r});function Ul(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Wl=typeof Symbol==`function`&&Symbol.observable||`@@observable`,Gl=()=>Math.random().toString(36).substring(7).split(``).join(`.`),Kl={INIT:`@@redux/INIT${Gl()}`,REPLACE:`@@redux/REPLACE${Gl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Gl()}`};function ql(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Jl(e,t,n){if(typeof e!=`function`)throw Error(Ul(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(Ul(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(Ul(1));return n(Jl)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(Ul(3));return i}function d(e){if(typeof e!=`function`)throw Error(Ul(4));if(c)throw Error(Ul(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(Ul(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!ql(e))throw Error(Ul(7));if(e.type===void 0)throw Error(Ul(8));if(typeof e.type!=`string`)throw Error(Ul(17));if(c)throw Error(Ul(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(Ul(10));r=e,f({type:Kl.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(Ul(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[Wl](){return this}}}return f({type:Kl.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[Wl]:m}}function Yl(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:Kl.INIT})===void 0)throw Error(Ul(12));if(n(void 0,{type:Kl.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(Ul(13))})}function Xl(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let r=Object.keys(n),i;try{Yl(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1,o={};for(let i=0;i<r.length;i++){let s=r[i],c=n[s],l=e[s],u=c(l,t);if(u===void 0)throw t&&t.type,Error(Ul(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function Zl(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function Ql(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(Ul(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=Zl(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function $l(e){return ql(e)&&`type`in e&&typeof e.type==`string`}var eu=Symbol.for(`immer-nothing`),tu=Symbol.for(`immer-draftable`),nu=Symbol.for(`immer-state`);function ru(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var iu=Object,au=iu.getPrototypeOf,ou=`constructor`,su=`prototype`,cu=`configurable`,lu=`enumerable`,uu=`writable`,du=`value`,fu=e=>!!e&&!!e[nu];function pu(e){return e?gu(e)||Cu(e)||!!e[tu]||!!e[ou]?.[tu]||wu(e)||Tu(e):!1}var mu=iu[su][ou].toString(),hu=new WeakMap;function gu(e){if(!e||!Eu(e))return!1;let t=au(e);if(t===null||t===iu[su])return!0;let n=iu.hasOwnProperty.call(t,ou)&&t[ou];if(n===Object)return!0;if(!Du(n))return!1;let r=hu.get(n);return r===void 0&&(r=Function.toString.call(n),hu.set(n,r)),r===mu}function _u(e,t,n=!0){vu(e)===0?(n?Reflect.ownKeys(e):iu.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function vu(e){let t=e[nu];return t?t.type_:Cu(e)?1:wu(e)?2:Tu(e)?3:0}var yu=(e,t,n=vu(e))=>n===2?e.has(t):iu[su].hasOwnProperty.call(e,t),bu=(e,t,n=vu(e))=>n===2?e.get(t):e[t],xu=(e,t,n,r=vu(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Su(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Cu=Array.isArray,wu=e=>e instanceof Map,Tu=e=>e instanceof Set,Eu=e=>typeof e==`object`,Du=e=>typeof e==`function`,Ou=e=>typeof e==`boolean`;function ku(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Au=e=>e.copy_||e.base_,ju=e=>e.modified_?e.copy_:e.base_;function Mu(e,t){if(wu(e))return new Map(e);if(Tu(e))return new Set(e);if(Cu(e))return Array[su].slice.call(e);let n=gu(e);if(t===!0||t===`class_only`&&!n){let t=iu.getOwnPropertyDescriptors(e);delete t[nu];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[uu]===!1&&(a[uu]=!0,a[cu]=!0),(a.get||a.set)&&(t[i]={[cu]:!0,[uu]:!0,[lu]:a[lu],[du]:e[i]})}return iu.create(au(e),t)}else{let t=au(e);if(t!==null&&n)return{...e};let r=iu.create(t);return iu.assign(r,e)}}function Nu(e,t=!1){return Iu(e)||fu(e)||!pu(e)?e:(vu(e)>
vendor: 4,328 bytes, line 11
111&&iu.defineProperties(e,{set:Fu,add:Fu,clear:Fu,delete:Fu}),iu.freeze(e),t&&_u(e,(e,t)=>{Nu(t,!0)},!1),e)}function Pu(){ru(2)}var Fu={[du]:Pu};function Iu(e){return e===null||!Eu(e)?!0:iu.isFrozen(e)}var Lu=`MapSet`,Ru=`Patches`,zu=`ArrayMethods`,Bu={};function Vu(e){let t=Bu[e];return t||ru(0,e),t}var Hu=e=>!!Bu[e],Uu,Wu=()=>Uu,Gu=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Hu(Lu)?Vu(Lu):void 0,arrayMethodsPlugin_:Hu(zu)?Vu(zu):void 0});function Ku(e,t){t&&(e.patchPlugin_=Vu(Ru),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function qu(e){Ju(e),e.drafts_.forEach(Xu),e.drafts_=null}function Ju(e){e===Uu&&(Uu=e.parent_)}var Yu=e=>Uu=Gu(Uu,e);function Xu(e){let t=e[nu];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Zu(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[nu].modified_&&(qu(t),ru(4)),pu(e)&&(e=Qu(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[nu].base_,e,t)}else e=Qu(t,n);return $u(t,e,!0),qu(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===eu?void 0:e}function Qu(e,t){if(Iu(t))return t;let n=t[nu];if(!n)return sd(t,e.handledSet_,e);if(!td(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);ad(n,e)}return n.copy_}function $u(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Nu(t,n)}function ed(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var td=(e,t)=>e.scope_===t,nd=[];function rd(e,t,n,r){let i=Au(e),a=e.type_;if(r!==void 0&&bu(i,r,a)===t){xu(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;_u(i,(e,n)=>{if(fu(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??nd;for(let e of o)xu(i,e,n,a)}function id(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!td(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=ju(i);rd(e,i.draft_??i,a,n),ad(i,r)})}function ad(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}ed(e)}}function od(e,t,n){let{scope_:r}=e;if(fu(n)){let i=n[nu];td(i,r)&&i.callbacks_.push(function(){hd(e),rd(e,n,ju(i),t)})}else pu(n)&&e.callbacks_.push(function(){let i=Au(e);e.type_===3?i.has(n)&&sd(n,r.handledSet_,r):bu(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&sd(bu(e.copy_,t,e.type_),r.handledSet_,r)})}function sd(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||fu(e)||t.has(e)||!pu(e)||Iu(e)?e:(t.add(e),_u(e,(r,i)=>{if(fu(i)){let t=i[nu];td(t,n)&&(xu(e,r,ju(t),e.type_),ed(t))}else pu(i)&&sd(i,t,n)}),e)}function cd(e,t){let n=Cu(e),r={type_:+!!n,scope_:t?t.scope_:Wu(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=ld;n&&(i=[r],a=ud);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var ld={get(e,t){if(t===nu)return e;if(t===`constructor`||t===`__proto__`){let n=Au(e)[t];return new Proxy(n||{},{get:(e,t)=>t===`__proto__`||t===`prototype`?Object.freeze(Object.create(null)):Reflect.get(e,t),set:()=>!0,apply:(e,t,n)=>Reflect.apply(e,t,n)})}let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=Au(e);if(!yu(i,t,e.type_))return fd(e,i,t);let a=i[t];if(e.finalized_||!pu(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&ku(t))return a;if(a===dd(e.base_,t)){hd(e);let n=e.type_===1?+t:t,r=_d(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t===`constructor`||t===`__proto__`||t===`prototype`?!1:t in Au(e)},ownKeys(e){return Reflect.ownKeys(Au(e))},set(e,t,n){if(t===`constructor`||t===`__proto__`||t===`prototype`)return!0;let r=pd(Au(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=dd(Au(e),t),i=r?.[nu];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Su(n,r)&&(n!==void 0||yu(e.base_,t,e.type_)))return!0;hd(e),md(e)}return e.copy_[t]===n&&(n!==void 0||yu(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),od(e,t,n
vendor: 5,122 bytes, line 11
11),!0)},deleteProperty(e,t){return hd(e),dd(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),md(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=Au(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[uu]:!0,[cu]:e.type_!==1||t!==`length`,[lu]:r[lu],[du]:n[t]}},defineProperty(){ru(11)},getPrototypeOf(e){return au(e.base_)},setPrototypeOf(){ru(12)}},ud={};for(let e in ld){let t=ld[e];ud[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}ud.deleteProperty=function(e,t){return ud.set.call(this,e,t,void 0)},ud.set=function(e,t,n){return ld.set.call(this,e[0],t,n,e[0])};function dd(e,t){let n=e[nu];return(n?Au(n):e)[t]}function fd(e,t,n){let r=pd(t,n);return r?du in r?r[du]:r.get?.call(e.draft_):void 0}function pd(e,t){if(!(t in e))return;let n=au(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=au(n)}}function md(e){e.modified_||(e.modified_=!0,e.parent_&&md(e.parent_))}function hd(e){e.copy_||=(e.assigned_=new Map,Mu(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var gd=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Du(e)&&!Du(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Du(t)||ru(6),n!==void 0&&!Du(n)&&ru(7);let r;if(pu(e)){let i=Yu(this),a=_d(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?qu(i):Ju(i)}return Ku(i,n),Zu(r,i)}else if(!e||!Eu(e)){if(r=t(e),r===void 0&&(r=e),r===eu&&(r=void 0),this.autoFreeze_&&Nu(r,!0),n){let t=[],i=[];Vu(Ru).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else ru(1,e)},this.produceWithPatches=(e,t)=>{if(Du(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Ou(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ou(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ou(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){pu(e)||ru(8),fu(e)&&(e=vd(e));let t=Yu(this),n=_d(t,e,void 0);return n[nu].isManual_=!0,Ju(t),n}finishDraft(e,t){let n=e&&e[nu];(!n||!n.isManual_)&&ru(9);let{scope_:r}=n;return Ku(r,t),Zu(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=Vu(Ru).applyPatches_;return fu(e)?r(e,t):this.produce(e,e=>r(e,t))}};function _d(e,t,n,r){let[i,a]=wu(t)?Vu(Lu).proxyMap_(t,n):Tu(t)?Vu(Lu).proxySet_(t,n):cd(t,n);return(n?.scope_??Wu()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?id(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function vd(e){return fu(e)||ru(10,e),yd(e)}function yd(e){if(!pu(e)||Iu(e))return e;let t=e[nu],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Mu(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Mu(e,!0);return _u(n,(e,t)=>{xu(n,e,yd(t))},r),t&&(t.finalized_=!1),n}var bd=new gd().produce;function xd(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var Sd=xd(),Cd=xd,wd=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?Zl:Zl.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Td(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(Ff(0));return{type:e,payload:r.payload,...`meta`in r&&{meta:r.meta},...`error`in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>$l(t)&&t.type===e,n}var Ed=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Dd(e){return pu(e)?bd(e,()=>{}):e}function Od(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function kd(e){return typeof e==`boolean`}var Ad=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new Ed;return t&&(kd(t)?a.push(Sd):a.push(Cd(t.extraArgument))),a},jd=`RTK_autoBatch`,Md=()=>e=>({payload:e,meta:{[jd]:!0}}),Nd=e=>t=>{setTimeout(t,e)},Pd=(e,t)=>n=>{let r=!1,i=()=>{r||(r=!0,cancelAnimationFrame(a),clearTimeout(o),n())},a=e(i),o=setTimeout(i,t)},Fd=(e={type:`raf`})=>t=>(...n)=>{let r=t(...n),i=!0,a=!1,o=!1,s=new Set,c=e.type===`tick`?queueMicrotask:e.type===`raf`?typeof window<`u`&&window.requestAnimationFrame?Pd(window.requestAnimationFrame,100):Nd(10):e.type===`callback`?e.queueNotification:Nd(e.timeout),l=()=>
11{o=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){let t=r.subscribe(()=>i&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[jd],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},Id=e=>function(t){let{autoBatch:n=!0}=t??{},r=new Ed(e);return n&&r.push(Fd(typeof n==`object`?n:void 0)),r};function Ld(e){let t=Ad(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{},c;if(typeof n==`function`)c=n;else if(ql(n))c=Xl(n);else throw Error(Ff(1));let l;l=typeof r==`function`?r(t):t();let u=Zl;i&&(u=wd({trace:!1,...typeof i==`object`&&i}));let d=Id(Ql(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return Jl(c,o,p)}function Rd(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(Ff(28));if(r in t)throw Error(Ff(29));return t[r]=n,i},addAsyncThunk(e,r){return r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),i},addMatcher(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){return r=e,i}};return e(i),[t,n,r]}function zd(e){return typeof e==`function`}function Bd(e,t){let[n,r,i]=Rd(t),a;if(zd(e))a=()=>Dd(e());else{let t=Dd(e);a=()=>t}function o(e=a(),t){let o=[n[t.type],...r.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return o.filter(e=>!!e).length===0&&(o=[i]),o.reduce((e,n)=>{if(n)if(fu(e)){let r=n(e,t);return r===void 0?e:r}else if(pu(e))return bd(e,e=>n(e,t));else{let r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(`A case reducer on a non-draftable value must not return undefined`)}return r}return e},e)}return o.getInitialState=a,o}var Vd=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,Hd=(e=21)=>{let t=``,n=e;for(;n--;)t+=Vd[Math.random()*64|0];return t},Ud=Symbol.for(`rtk-slice-createasyncthunk`);function Wd(e,t){return`${e}/${t}`}function Gd({creators:e}={}){let t=e?.asyncThunk?.[Ud];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(Ff(11));let i=(typeof e.reducers==`function`?e.reducers(Jd()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let n=typeof e==`string`?e:e.type;if(!n)throw Error(Ff(12));if(n in o.sliceCaseReducersByType)throw Error(Ff(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return o.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return o.actionCreators[e]=t,s},exposeCaseReducer(e,t){return o.sliceCaseReducersByName[e]=t,s}};a.forEach(r=>{let a=i[r],o={reducerName:r,type:Wd(n,r),createNotation:typeof e.reducers==`function`};Xd(a)?Qd(o,a,s,t):Yd(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?Rd(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return Bd(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}let l=e=>e,u=new Map,d=new WeakMap,f;function p(e,t){return f||=c(),f(e,t)}function m(){return f||=c(),f.getInitialState()}function h(t,n=!1){function r(e){let i=e[t];return i===void 0&&n&&(i=Od(d,r,m)),i}function i(t=l){return Od(Od(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=Kd(a,t,()=>Od(d,t,m),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let g={name:n,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){let i=t??r;return e.inject({reducerPath:i,reducer:p},n),{...g,...h(i,!0)}}};return g}}function Kd(e,t,n,r){function i(i,...a){let o=t(i);
11return o===void 0&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}var qd=Gd();function Jd(){function e(e,t){return{_reducerDefinitionType:`asyncThunk`,payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:`reducer`})},preparedReducer(e,t){return{_reducerDefinitionType:`reducerWithPrepare`,prepare:e,reducer:t}},asyncThunk:e}}function Yd({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!Zd(r))throw Error(Ff(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Td(e,o):Td(e))}function Xd(e){return e._reducerDefinitionType===`asyncThunk`}function Zd(e){return e._reducerDefinitionType===`reducerWithPrepare`}function Qd({type:e,reducerName:t},n,r,i){if(!i)throw Error(Ff(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:c,settled:l,options:u}=n,d=i(e,a,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:o||$d,pending:s||$d,rejected:c||$d,settled:l||$d})}function $d(){}var ef=`task`,tf=`listener`,nf=`completed`,rf=`cancelled`,af=`task-${rf}`,of=`task-${nf}`,sf=`${tf}-${rf}`,cf=`${tf}-${nf}`,lf=class{constructor(e){this.code=e,this.message=`${ef} ${rf} (reason: ${e})`}code;name=`TaskAbortError`;message},uf=(e,t)=>{if(typeof e!=`function`)throw TypeError(Ff(32))},df=()=>{},ff=(e,t=df)=>(e.catch(t),e),pf=(e,t)=>
vendor: 4,291 bytes, line 11
11(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),mf=e=>{if(e.aborted)throw new lf(e.reason)};function hf(e,t){let n=df;return new Promise((r,i)=>{let a=()=>i(new lf(e.reason));if(e.aborted){a();return}n=pf(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=df})}var gf=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof lf?`cancelled`:`rejected`,error:e}}finally{t?.()}},_f=e=>t=>ff(hf(e,t).then(t=>(mf(e),t))),vf=e=>{let t=_f(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:yf}=Object,bf={},xf=`listenerMiddleware`,Sf=(e,t)=>{let n=t=>pf(e,()=>t.abort(e.reason));return(r,i)=>{uf(r,`taskExecutor`);let a=new AbortController;n(a);let o=gf(async()=>{mf(e),mf(a.signal);let t=await r({pause:_f(a.signal),delay:vf(a.signal),signal:a.signal});return mf(a.signal),t},()=>a.abort(of));return i?.autoJoin&&t.push(o.catch(df)),{result:_f(e)(o),cancel(){a.abort(af)}}}},Cf=(e,t)=>{let n=async(n,r)=>{mf(t);let i=()=>{},a=[new Promise((t,r)=>{let a=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});i=()=>{a(),r()}})];r!=null&&a.push(new Promise(e=>setTimeout(e,r,null)));try{let e=await hf(t,Promise.race(a));return mf(t),e}finally{i()}};return((e,t)=>ff(n(e,t)))},wf=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=Td(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error(Ff(21));return uf(a,`options.listener`),{predicate:i,type:t,effect:a}},Tf=yf(e=>{let{type:t,predicate:n,effect:r}=wf(e);return{id:Hd(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error(Ff(22))}}},{withTypes:()=>Tf}),Ef=(e,t)=>{let{type:n,effect:r,predicate:i}=wf(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},Df=e=>{e.pending.forEach(e=>{e.abort(sf)})},Of=(e,t)=>()=>{for(let e of t.keys())Df(e);e.clear()},kf=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},Af=yf(Td(`${xf}/add`),{withTypes:()=>Af}),jf=Td(`${xf}/removeAll`),Mf=yf(Td(`${xf}/remove`),{withTypes:()=>Mf}),Nf=(...e)=>{console.error(`${xf}/error`,...e)},Pf=(e={})=>{let t=new Map,n=new Map,r=e=>{let t=n.get(e)??0;n.set(e,t+1)},i=e=>{let t=n.get(e)??1;t===1?n.delete(e):n.set(e,t-1)},{extra:a,onError:o=Nf}=e;uf(o,`onError`);let s=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&Df(e)}),c=(e=>{let n=Ef(t,e)??Tf(e);return s(n)});yf(c,{withTypes:()=>c});let l=e=>{let n=Ef(t,e);return n&&(n.unsubscribe(),e.cancelActive&&Df(n)),!!n};yf(l,{withTypes:()=>l});let u=async(e,n,s,l)=>{let u=new AbortController,d=Cf(c,u.signal),f=[];try{e.pending.add(u),r(e),await Promise.resolve(e.effect(n,yf({},s,{getOriginalState:l,condition:(e,t)=>d(e,t).then(Boolean),take:d,delay:vf(u.signal),pause:_f(u.signal),extra:a,signal:u.signal,fork:Sf(u.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==u&&(e.abort(sf),n.delete(e))})},cancel:()=>{u.abort(sf),e.pending.delete(u)},throwIfCancelled:()=>{mf(u.signal)}})))}catch(e){e instanceof lf||kf(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),u.abort(cf),i(e),e.pending.delete(u)}},d=Of(t,n);return{middleware:e=>n=>r=>{if(!$l(r))return n(r);if(Af.match(r))return c(r.payload);if(jf.match(r)){d();return}if(Mf.match(r))return l(r.payload);let i=e.getState(),a=()=>{if(i===bf)throw Error(Ff(23));return i},s;try{if(s=n(r),t.size>0){let n=e.getState(),s=Array.from(t.values());for(let t of s){let s=!1;try{s=t.predicate(r,n,i)}catch(e){s=!1,kf(o,e,{raisedBy:`predicate`})}s&&u(t,r,e,a)}}}finally{i=bf}return s},startListening:c,stopListening:l,clearListeners:d}};function Ff(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var If=qd({name:`chartLayout`,initialState:{layoutType:`horizontal`,width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top??0,e.margin.right=t.payload.right??0,e.margin.bottom=t.payload.bottom??0,e.margin.left
11=t.payload.left??0},setScale(e,t){e.scale=t.payload}}}),{setMargin:Lf,setLayout:Rf,setChartSize:zf,setScale:Bf}=If.actions,Vf=If.reducer;function Hf(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function J(e){return Number.isFinite(e)}function Uf(e){return typeof e==`number`&&e>0&&Number.isFinite(e)}function Wf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Wf(Object(n),!0).forEach(function(t){Kf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kf(e,t,n){return(t=qf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qf(e){var t=Jf(e,`string`);return typeof t==`symbol`?t:t+``}function Jf(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Yf(e,t,n){return Ec(e)||Ec(t)?n:yc(t)?dc(e,t,n):typeof t==`function`?t(e):n}
11var Xf=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:a,verticalAlign:o,layout:s}=t;if((s===`vertical`||s===`horizontal`&&o===`middle`)&&a!==`center`&&G(e[a]))return Gf(Gf({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&G(e[o]))return Gf(Gf({},e),{},{[o]:e[o]+(i||0)})}return e},Zf=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,Qf=(e,t,n,r)=>{if(r)return e.map(e=>e.coordinate);var i,a,o=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===n&&(a=!0),e.coordinate));return i||o.push(t),a||o.push(n),o},$f=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:a,scale:o,realScaleType:s,isCategorical:c,categoricalDomain:l,tickCount:u,ticks:d,niceTicks:f,axisType:p}=e;if(!o)return null;var m=s===`scaleBand`&&o.bandwidth?o.bandwidth()/2:2,h=(t||n)&&i===`category`&&o.bandwidth?o.bandwidth()/m:0;return h=p===`angleAxis`&&a&&a.length>=2?gc(a[0]-a[1])*2*h:h,t&&(d||f)?(d||f||[]).map((e,t)=>{var n=r?r.indexOf(e):e,i=o.map(n);return J(i)?{coordinate:i+h,value:e,offset:h,index:t}:null}).filter(Oc):c&&l?l.map((e,t)=>{var n=o.map(e);return J(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(Oc):o.ticks&&!n&&u!=null?o.ticks(u).map((e,t)=>{var n=o.map(e);return J(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(Oc):o.domain().map((e,t)=>{var n=o.map(e);return J(n)?{coordinate:n+h,value:r?r[e]:e,index:t,offset:h}:null}).filter(Oc)},ep=(e,t)=>{if(!t||t.length!==2||!G(t[0])||!G(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!G(e[0])||e[0]<n)&&(i[0]=n),(!G(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},tp={sign:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var s=e[o]?.[r];if(s!=null){var c=s[1],l=s[0],u=_c(c)?l:c;u>=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},expand:rc,none:Qs,silhouette:ic,wiggle:ac,positive:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0;a<t;++a){var o=e[a]?.[r];if(o!=null){var s=_c(o[1])?o[0]:o[1];s>=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}}},np=(e,t,n)=>{var r=tp[n]??Qs,i=nc().keys(t).value((e,t)=>Number(Yf(e,t,0))).order($s).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=Yf(e[i],t[r],0);Array.isArray(a)&&a.length===2&&G(a[0])&&G(a[1])&&(n[0]=a[0],n[1]=a[1])})}),i};function rp(e){return e==null?void 0:String(e)}function ip(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:a,dataKey:o}=e;if(t.type===`category`){if(!t.allowDuplicatedCategory&&t.dataKey&&!Ec(i[t.dataKey])){var s=Tc(n,`value`,i[t.dataKey]);if(s)return s.coordinate+r/2}return n!=null&&n[a]?n[a].coordinate+r/2:null}var c=Yf(i,Ec(o)?t.dataKey:o),l=t.scale.map(c);return G(l)?l:null}var ap=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:a,index:o}=e;if(t.type===`category`)return n[o]?n[o].coordinate+r:null;var s=Yf(a,t.dataKey,t.scale.domain()[o]);if(Ec(s))return null;var c=t.scale.map(s);return G(c)?c-i/2+r:null},op=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type===`number`){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},sp=e=>{var t=e.flat(2).filter(G);return[Math.min(...t),Math.max(...t)]},cp=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],lp=(e,t,n)=>{if(e!=null)return cp(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var{stackedData:o}=a,s=o.reduce((e,r)=>{var i=sp(Hf(r,t,n));return!J(i[0])||!J(i[1])?e:[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]))},up=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,dp=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,fp=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=Bl(t,e=>e.coordinate),a=1/0,o=1,s=i.length;o<s;o++){var c=i[o],l=i[o-1];a=Math.min((c?.coordinate||0)-(l?.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0};function pp(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:a}=e;return Gf(Gf({},t),{},{dataKey:n,payload:r,value:i,name:a})}function mp(e,t){if(e)return String(e);if(typeof t==`string`)return t}var hp=(e,t)=>{if(t===`horizontal`)return e.relativeX;if(t===`vertical`)return e.relativeY},gp=(e,t)=>
11t===`centric`?e.angle:e.radius,_p=e=>e.layout.width,vp=e=>e.layout.height,yp=e=>e.layout.scale,bp=e=>e.layout.margin,xp=q(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Sp=q(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Cp=`data-recharts-item-index`;function wp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Tp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?wp(Object(n),!0).forEach(function(t){Ep(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ep(e,t,n){return(t=Dp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dp(e){var t=Op(e,`string`);return typeof t==`symbol`?t:t+``}function Op(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var kp=e=>e.brush.height;function Ap(e){return Sp(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function jp(e){return Sp(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Mp(e){return xp(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+t.height:e,0)}function Np(e){return xp(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+t.height:e,0)}var Pp=q([_p,vp,bp,kp,Ap,jp,Mp,Np,Vl,Hl],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=Tp(Tp({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=Xf(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return Tp(Tp({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),Fp=q(Pp,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Ip=q(_p,vp,(e,t)=>({x:0,y:0,width:e,height:t})),Lp=(0,w.createContext)(null),Rp=()=>(0,w.useContext)(Lp)!=null,zp=e=>e.brush,Bp=q([zp,Pp,bp],(e,t,n)=>({height:e.height,x:G(e.x)?e.x:t.left,y:G(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:G(e.width)?e.width:t.width}));function Vp(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function Hp(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=Vp(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?(s=e.apply(this,t),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function Up(e,t=0,n={}){let{leading:r=!0,trailing:i=!0}=n;return Hp(e,t,{leading:r,maxWait:t,trailing:i})}var Wp=function(e,t){var n=[...arguments].slice(2);if(typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e))if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var r=0;console.warn(t.replace(/%s/g,()=>n[r++]))}},Gp={width:`100%`,height:`100%`,debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},Kp=(e,t,n)=>{var{width:r=Gp.width,height:i=Gp.height,aspect:a,maxHeight:o}=n,s=vc(r)?e:Number(r),c=vc(i)?t:Number(i);return a&&a>0&&(s?c=s/a:c&&(s=c*a),o&&c!=null&&c>o&&(c=o)),{calculatedWidth:s,calculatedHeight:c}},eee={width:0,height:0,overflow:`visible`},tee={width:0,overflowX:`visible`},nee={height:0,overflowY:`visible`},ree={},iee=e=>{var{width:t,height:n}=e,r=vc(t),i=vc(n);return r&&i?eee:r?tee:i?nee:ree};function aee(e){var{width:t,height:n,aspect:r}=e,i=t,a=n;return i===void 0&&a===void 0?(i=Gp.width,a=Gp.height):i===void 0?i=r&&r>0?void 0:Gp.width:a===void 0&&(a=r&&r>0?void 0:Gp.height),{width:i,height:a}}function qp(){return qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qp.apply(null,arguments)}function Jp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Yp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
11t%2?Jp(Object(n),!0).forEach(function(t){oee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oee(e,t,n){return(t=see(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function see(e){var t=cee(e,`string`);return typeof t==`symbol`?t:t+``}function cee(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Xp=(0,w.createContext)(Gp.initialDimension);function lee(e){return Uf(e.width)&&Uf(e.height)}function Zp(e){var{children:t,width:n,height:r}=e,i=(0,w.useMemo)(()=>({width:n,height:r}),[n,r]);return lee(i)?w.createElement(Xp.Provider,{value:i},t):null}var Qp=()=>(0,w.useContext)(Xp),uee=(0,w.forwardRef)((e,t)=>{var{aspect:n,initialDimension:r=Gp.initialDimension,width:i,height:a,minWidth:o=Gp.minWidth,minHeight:s,maxHeight:c,children:l,debounce:u=Gp.debounce,id:d,className:f,onResize:p,style:m={}}=e,h=(0,w.useRef)(null),g=(0,w.useRef)();g.current=p,(0,w.useImperativeHandle)(t,()=>h.current);var[_,v]=(0,w.useState)({containerWidth:r.width,containerHeight:r.height}),y=(0,w.useCallback)((e,t)=>{v(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,w.useEffect)(()=>{if(h.current==null||typeof ResizeObserver>`u`)return kc;var e=e=>{var t,n=e[0];if(n!=null){var{width:r,height:i}=n.contentRect;y(r,i),(t=g.current)==null||t.call(g,r,i)}};u>0&&(e=Up(e,u,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),{width:n,height:r}=h.current.getBoundingClientRect();return y(n,r),t.observe(h.current),()=>{t.disconnect()}},[y,u]);var{containerWidth:b,containerHeight:x}=_;Wp(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var{calculatedWidth:S,calculatedHeight:C}=Kp(b,x,{width:i,height:a,aspect:n,maxHeight:c});return Wp(S!=null&&S>0||C!=null&&C>0,`The width(%s) and height(%s) of chart should be greater than 0,
12       please check the style of container, or the props width(%s) and height(%s),
13       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
14       height and width.`,S,C,i,a,o,s,n),w.createElement(`div`,{id:d?`${d}`:void 0,className:rr(`recharts-responsive-container`,f),style:Yp(Yp({},m),{},{width:i,height:a,minWidth:o,minHeight:s,maxHeight:c}),ref:h},w.createElement(`div`,{style:iee({width:i,height:a})},w.createElement(Zp,{width:S,height:C},l)))}),dee=(0,w.forwardRef)((e,t)=>{var n=Qp();if(Uf(n.width)&&Uf(n.height))return e.children;var{width:r,height:i}=aee({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:o}=Kp(void 0,void 0,{width:r,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return G(a)&&G(o)?w.createElement(Zp,{width:a,height:o},e.children):w.createElement(uee,qp({},e,{width:r,height:i,ref:t}))});function $p(e){if(e)return{x:e.x,y:e.y,upperWidth:`upperWidth`in e?e.upperWidth:e.width,lowerWidth:`lowerWidth`in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var em=()=>{var e=Rp(),t=K(Fp),n=K(Bp),r=K(zp)?.padding;return!e||!n||!r?t:{width:n.width-r.left-r.right,height:n.height-r.top-r.bottom,x:r.left,y:r.top}},fee={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},pee=()=>K(Pp)??fee,tm=()=>K(_p),nm=()=>K(vp),rm=e=>e.layout.layoutType,im=()=>K(rm),am=()=>{var e=im();if(e===`horizontal`||e===`vertical`)return e},om=e=>{var t=e.layout.layoutType;if(t===`centric`||t===`radial`)return t},mee=()=>im()!==void 0,sm=e=>{var t=pl(),n=Rp(),{width:r,height:i}=e,a=Qp(),o=r,s=i;return a&&(o=a.width>0?a.width:r,s=a.height>0?a.height:i),(0,w.useEffect)(()=>{!n&&Uf(o)&&Uf(s)&&t(zf({width:o,height:s}))},[t,n,o,s]),null},cm=Symbol.for(`immer-nothing`),lm=Symbol.for(`immer-draftable`),um=Symbol.for(`immer-state`);function dm(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var fm=Object.getPrototypeOf;function pm(e){return!!e&&!!e[um]}function mm(e){return e?_m(e)||Array.isArray(e)||!!e[lm]||!!e.constructor?.[lm]||Sm(e)||Cm(e):!1}
14var hm=Object.prototype.constructor.toString(),gm=new WeakMap;function _m(e){if(!e||typeof e!=`object`)return!1;let t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;let n=Object.hasOwnProperty.call(t,`constructor`)&&t.constructor;if(n===Object)return!0;if(typeof n!=`function`)return!1;let r=gm.get(n);return r===void 0&&(r=Function.toString.call(n),gm.set(n,r)),r===hm}function vm(e,t,n=!0){ym(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function ym(e){let t=e[um];return t?t.type_:Array.isArray(e)?1:Sm(e)?2:Cm(e)?3:0}function bm(e,t){return ym(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function xm(e,t,n){let r=ym(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function hee(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function Sm(e){return e instanceof Map}function Cm(e){return e instanceof Set}function wm(e){return e.copy_||e.base_}function Tm(e,t){if(Sm(e))return new Map(e);if(Cm(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let n=_m(e);if(t===!0||t===`class_only`&&!n){let t=Object.getOwnPropertyDescriptors(e);delete t[um];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(fm(e),t)}else{let t=fm(e);if(t!==null&&n)return{...e};let r=Object.create(t);return Object.assign(r,e)}}function Em(e,t=!1){return Om(e)||pm(e)||!mm(e)?e:(ym(e)>1&&Object.defineProperties(e,{set:Dm,add:Dm,clear:Dm,delete:Dm}),Object.freeze(e),t&&Object.values(e).forEach(e=>Em(e,!0)),e)}function gee(){dm(2)}var Dm={value:gee};function Om(e){return typeof e!=`object`||!e?!0:Object.isFrozen(e)}var _ee={};function km(e){let t=_ee[e];return t||dm(0,e),t}var Am;function jm(){return Am}function Mm(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Nm(e,t){t&&(km(`Patches`),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Pm(e){Fm(e),e.drafts_.forEach(vee),e.drafts_=null}function Fm(e){e===Am&&(Am=e.parent_)}function Im(e){return Am=Mm(Am,e)}function vee(e){let t=e[um];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Lm(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];return e!==void 0&&e!==n?(n[um].modified_&&(Pm(t),dm(4)),mm(e)&&(e=Rm(t,e),t.parent_||Bm(t,e)),t.patches_&&km(`Patches`).generateReplacementPatches_(n[um].base_,e,t.patches_,t.inversePatches_)):e=Rm(t,n,[]),Pm(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===cm?void 0:e}function Rm(e,t,n){if(Om(t))return t;let r=e.immer_.shouldUseStrictIteration(),i=t[um];if(!i)return vm(t,(r,a)=>zm(e,i,t,r,a,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return Bm(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;let t=i.copy_,a=t,o=!1;i.type_===3&&(a=new Set(t),t.clear(),o=!0),vm(a,(r,a)=>zm(e,i,t,r,a,n,o),r),Bm(e,t,!1),n&&e.patches_&&km(`Patches`).generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function zm(e,t,n,r,i,a,o){if(i==null||typeof i!=`object`&&!o)return;let s=Om(i);if(!(s&&!o)){if(pm(i)){let o=Rm(e,i,a&&t&&t.type_!==3&&!bm(t.assigned_,r)?a.concat(r):void 0);if(xm(n,r,o),pm(o))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(mm(i)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===i&&s)return;Rm(e,i),(!t||!t.scope_.parent_)&&typeof r!=`symbol`&&(Sm(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&Bm(e,i)}}}function Bm(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Em(t,n)}function yee(e,t){let n=Array.isArray(e),r={type_:+!!n,scope_:t?t.scope_:jm(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},i=r,a=Vm;n&&(i=[r],a=Hm);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}var Vm={get(e,t){if(t===um)return e;let n=wm(e);if(!bm(n,t))return bee(e,n,t);let r=n[t];return e.finalized_||!mm(r)?r:r===Um(e.base_,t)?(Km(e),e.copy_[t]=qm(r,e)):r},has(e,t){return t in wm(e)},ownKeys(e){return Reflect.ownKeys(wm(e))},set(e,t,n){let r=Wm(wm(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Um(wm(e),t),i=r?.[um];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(hee(n,r)&&(n!==void 0||bm(e.base_,t)))return!0;Km(e),Gm(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_[t]=!0,!0)},deleteProperty(e,t){return Um(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Km(e),Gm(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=wm(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty(){dm(11)},getPrototypeOf(e){return fm(e.base_)},setPrototypeOf(){dm(12)}},Hm={};vm(Vm,(e,t)=>{Hm[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Hm.deleteProperty=function(e,t){return Hm.set.call(this,e,t,void 0)},Hm.set=function(e,t,n){return Vm.set.call(this,e[0],t,n,e[0])};function Um(e,t){let n=e[um];return(n?wm(n):e)[t]}function bee(e,t,n){let r=Wm(t,n);return r?`value`in r?r.value:r.get?.call(e.draft_):void 0}function Wm(e,t){if(!(t in e))return;let n=fm(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=fm(n)}}function Gm(e){e.modified_||(e.modified_=!0,e.parent_&&Gm(e.parent_))}function Km(e){e.copy_||=Tm(e.base_,e.scope_.immer_.useStrictShallowCopy_)}var xee=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,n)=>{if(typeof e==`function`&&typeof t!=`function`){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}typeof t!=`function`&&dm(6),n!==void 0&&typeof n!=`function`&&dm(7);let r;if(mm(e)){let i=Im(this),a=qm(e,void 0),o=!0;try{r=t(a),o=!1}finally{o?Pm(i):Fm(i)}return Nm(i,n),Lm(r,i)}else if(!e||typeof e!=`object`){if(r=t(e),r===void 0&&(r=e),r===cm&&(r=void 0),this.autoFreeze_&&Em(r,!0),n){let t=[],i=[];km(`Patches`).generateReplacementPatches_(e,r,t,i),n(t,i)}return r}else dm(1,e)},this.produceWithPatches=(e,t)=>{if(typeof e==`function`)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},typeof e?.autoFreeze==`boolean`&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy==`boolean`&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration==`boolean`&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){mm(e)||dm(8),pm(e)&&(e=See(e));let t=Im(this),n=qm(e,void 0);return n[um].isManual_=!0,Fm(t),n}finishDraft(e,t){let n=e&&e[um];(!n||!n.isManual_)&&dm(9);let{scope_:r}=n;return Nm(r,t),Lm(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>
14-1&&(t=t.slice(n+1));let r=km(`Patches`).applyPatches_;return pm(e)?r(e,t):this.produce(e,e=>r(e,t))}};function qm(e,t){let n=Sm(e)?km(`MapSet`).proxyMap_(e,t):Cm(e)?km(`MapSet`).proxySet_(e,t):yee(e,t);return(t?t.scope_:jm()).drafts_.push(n),n}function See(e){return pm(e)||dm(10,e),Jm(e)}function Jm(e){if(!mm(e)||Om(e))return e;let t=e[um],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Tm(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Tm(e,!0);return vm(n,(e,t)=>{xm(n,e,Jm(t))},r),t&&(t.finalized_=!1),n}new xee().produce;function Ym(e){return e}var Xm=qd({name:`legend`,initialState:{settings:{layout:`horizontal`,align:`center`,verticalAlign:`middle`,itemSorter:`value`},size:{width:0,height:0},payload:[]},reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(Ym(t.payload))},prepare:Md()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,i=vd(e).payload.indexOf(Ym(n));i>-1&&(e.payload[i]=Ym(r))},prepare:Md()},removeLegendPayload:{reducer(e,t){var n=vd(e).payload.indexOf(Ym(t.payload));n>-1&&e.payload.splice(n,1)},prepare:Md()}}}),{setLegendSize:Cee,setLegendSettings:wee,addLegendPayload:Zm,replaceLegendPayload:Qm,removeLegendPayload:$m}=Xm.actions,eh=Xm.reducer,th=s((e=>{var t=p();t.useSyncExternalStore,t.useRef,t.useEffect,t.useMemo,t.useDebugValue}));s(((e,t)=>{t.exports=th()}))();function nh(e){e()}function rh(){let e=null,t=null;return{clear(){e=null,t=null},notify(){nh(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var ih={notify(){},get:()=>[]};function ah(e,t){let n,r=ih,i=0,a=!1;function o(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),d())}}function s(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function l(){return a}function u(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=rh())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=ih)}function f(){a||(a=!0,u())}function p(){a&&(a=!1,d())}let m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}var oh=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,sh=typeof navigator<`u`&&navigator.product===`ReactNative`,ch=oh||sh?w.useLayoutEffect:w.useEffect;function lh(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function uh(e,t){if(lh(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!lh(e[n[r]],t[n[r]]))return!1;return!0}var dh=Symbol.for(`react-redux-context`),Tee=typeof globalThis<`u`?globalThis:{};function Eee(){if(!w.createContext)return{};let e=Tee[dh]??=new Map,t=e.get(w.createContext);return t||(t=w.createContext(null),e.set(w.createContext,t)),t}var Dee=Eee();function Oee(e){let{children:t,context:n,serverState:r,store:i}=e,a=w.useMemo(()=>{let e=ah(i);return{store:i,subscription:e,getServerState:r?()=>r:void 0}},[i,r]),o=w.useMemo(()=>i.getState(),[i]);ch(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||Dee;return w.createElement(s.Provider,{value:a},t)}var kee=Oee,Aee=new Set([`axisLine`,`tickLine`,`activeBar`,`activeDot`,`activeLabel`,`activeShape`,`allowEscapeViewBox`,`background`,`cursor`,`dot`,`label`,`line`,`margin`,`padding`,`position`,`shape`,`style`,`tick`,`wrapperStyle`,`radius`,`throttledEvents`]);function jee(e,t){return e==null&&t==null?!0:typeof e==`number`&&typeof t==`number`?e===t||e!==e&&t!==t:e===t}function fh(e,t){for(var n of new Set([...Object.keys(e),...Object.keys(t)]))if(Aee.has(n)){if(e[n]==null&&t[n]==null)continue;if(!uh(e[n],t[n]))return!1}else if(!jee(e[n],t[n]))return!1;return!0}var ph={devToolsEnabled:!0,isSsr:!(typeof window<`u`&&window.document&&window.document.createElement&&window.setTimeout)};function Mee(){var[e,t]=(0,w.useState)(()=>ph.isSsr||!window.matchMedia?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches);return(0,w.useEffect)(()=>
14{if(window.matchMedia){var e=window.matchMedia(`(prefers-reduced-motion: reduce)`),n=()=>{t(e.matches)};return e.addEventListener(`change`,n),()=>{e.removeEventListener(`change`,n)}}},[]),e}var Nee=()=>K(e=>e.rootProps.accessibilityLayer)??!0;function mh(){return mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mh.apply(null,arguments)}function hh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?hh(Object(n),!0).forEach(function(t){Pee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pee(e,t,n){return(t=Fee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fee(e){var t=Iee(e,`string`);return typeof t==`symbol`?t:t+``}function Iee(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var _h={curveBasisClosed:js,curveBasisOpen:Ns,curveBasis:ks,curveBumpX:as,curveBumpY:os,curveLinearClosed:Fs,curveLinear:$o,curveMonotoneX:Us,curveMonotoneY:Ws,curveNatural:qs,curveStep:Ys,curveStepAfter:Zs,curveStepBefore:Xs},vh=e=>J(e.x)&&J(e.y),yh=e=>e.base!=null&&vh(e.base)&&vh(e),bh=e=>e.x,xh=e=>e.y,Lee=(e,t)=>{if(typeof e==`function`)return e;var n=`curve${Dc(e)}`;if((n===`curveMonotone`||n===`curveBump`)&&t){var r=_h[`${n}${t===`vertical`?`Y`:`X`}`];if(r)return r}return _h[n]||$o},Sh={connectNulls:!1,type:`linear`},Ree=e=>{var{type:t=Sh.type,points:n=[],baseLine:r,layout:i,connectNulls:a=Sh.connectNulls}=e,o=Lee(t,i),s=a?n.filter(vh):n;if(Array.isArray(r)){var c,l=n.map((e,t)=>gh(gh({},e),{},{base:r[t]}));return c=i===`vertical`?rs().y(xh).x1(bh).x0(e=>e.base.x):rs().x(bh).y1(xh).y0(e=>e.base.y),c.defined(yh).curve(o)(a?l.filter(yh):l)}return(i===`vertical`&&G(r)?rs().y(xh).x1(bh).x0(r):G(r)?rs().x(bh).y1(xh).y0(r):ns().x(bh).y(xh)).defined(vh).curve(o)(s)},Ch=e=>{var{className:t,points:n,path:r,pathRef:i}=e,a=im();if((!n||!n.length)&&!r)return null;var o={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},s=n&&n.length?Ree(o):r;return w.createElement(`path`,mh({},xo(e),Gc(e),{className:rr(`recharts-curve`,t),d:s===null?void 0:s,ref:i}))};function wh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Th(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?wh(Object(n),!0).forEach(function(t){zee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zee(e,t,n){return(t=Bee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bee(e){var t=Vee(e,`string`);return typeof t==`symbol`?t:t+``}function Vee(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Hee=e=>e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`),Eh=(e,t,n)=>e.map(e=>`${Hee(e)} ${t}ms ${n}`).join(`,`),Uee=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((e,t)=>e.filter(e=>t.includes(e))),Dh=(e,t)=>Object.keys(t).reduce((n,r)=>Th(Th({},n),{},{[r]:e(r,t[r])}),{});function Oh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
14t%2?Oh(Object(n),!0).forEach(function(t){Wee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wee(e,t,n){return(t=Gee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gee(e){var t=Kee(e,`string`);return typeof t==`symbol`?t:t+``}function Kee(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ah=(e,t,n)=>e+(t-e)*n,jh=e=>{var{from:t,to:n}=e;return t!==n},Mh=(e,t,n)=>{var r=Dh((t,n)=>{if(jh(n)){var[r,i]=e(n.from,n.to,n.velocity);return kh(kh({},n),{},{from:r,velocity:i})}return n},t);return n<1?Dh((e,t)=>jh(t)&&r[e]!=null?kh(kh({},t),{},{velocity:Ah(t.velocity,r[e].velocity,n),from:Ah(t.from,r[e].from,n)}):t,t):Mh(e,r,n-1)};function qee(e,t,n,r,i,a){var o,s=r.reduce((n,r)=>kh(kh({},n),{},{[r]:{from:e[r],velocity:0,to:t[r]}}),{}),c=()=>Dh((e,t)=>t.from,s),l=()=>!Object.values(s).filter(jh).length,u=null,d=r=>{o||=r;var f=(r-o)/n.dt;s=Mh(n,s,f),i(kh(kh(kh({},e),t),c())),o=r,l()||(u=a.setTimeout(d))};return()=>(u=a.setTimeout(d),()=>{var e;(e=u)==null||e()})}function Jee(e,t,n,r,i,a,o){var s=null,c=i.reduce((n,r)=>{var i=e[r],a=t[r];return i==null||a==null?n:kh(kh({},n),{},{[r]:[i,a]})},{}),l,u=i=>{l||=i;var d=(i-l)/r,f=Dh((e,t)=>Ah(...t,n(d)),c);if(a(kh(kh(kh({},e),t),f)),d<1)s=o.setTimeout(u);else{var p=Dh((e,t)=>Ah(...t,n(1)),c);a(kh(kh(kh({},e),t),p))}};return()=>(s=o.setTimeout(u),()=>{var e;(e=s)==null||e()})}var Yee=(e,t,n,r,i,a)=>{var o=Uee(e,t);return n==null?()=>(i(kh(kh({},e),t)),()=>{}):n.isStepper===!0?qee(e,t,n,o,i,a):Jee(e,t,n,r,o,i,a)},Nh=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],Ph=(e,t)=>e.map((e,n)=>e*t**n).reduce((e,t)=>e+t),Fh=(e,t)=>n=>Ph(Nh(e,t),n),Xee=(e,t)=>n=>Ph([...Nh(e,t).map((e,t)=>e*t).slice(1),0],n),Zee=e=>{var t,n=e.split(`(`);if(n.length!==2||n[0]!==`cubic-bezier`)return null;var r=(t=n[1])==null||(t=t.split(`)`)[0])==null?void 0:t.split(`,`);if(r==null||r.length!==4)return null;var i=r.map(e=>parseFloat(e));return[i[0],i[1],i[2],i[3]]},Qee=function(){var e=[...arguments];if(e.length===1)switch(e[0]){case`linear`:return[0,0,1,1];case`ease`:return[.25,.1,.25,1];case`ease-in`:return[.42,0,1,1];case`ease-out`:return[.42,0,.58,1];case`ease-in-out`:return[0,0,.58,1];default:var t=Zee(e[0]);if(t)return t}return e.length===4?e:[0,0,1,1]},$ee=(e,t,n,r)=>{var i=Fh(e,n),a=Fh(t,r),o=Xee(e,n),s=e=>e>1?1:e<0?0:e,c=e=>{for(var t=e>1?1:e,n=t,r=0;r<8;++r){var c=i(n)-t,l=o(n);if(Math.abs(c-t)<1e-4||l<1e-4)return a(n);n=s(n-c/l)}return a(n)};return c.isStepper=!1,c},Ih=function(){return $ee(...Qee(...arguments))},Lh=function(){var{stiff:e=100,damping:t=8,dt:n=17}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=(r,i,a)=>{var o=a+(-(r-i)*e-a*t)*n/1e3,s=a*n/1e3+r;return Math.abs(s-i)<1e-4&&Math.abs(o)<1e-4?[i,0]:[s,o]};return r.isStepper=!0,r.dt=n,r},Rh=e=>{if(typeof e==`string`)switch(e){case`ease`:case`ease-in-out`:case`ease-out`:case`ease-in`:case`linear`:return Ih(e);case`spring`:return Lh();default:if(e.split(`(`)[0]===`cubic-bezier`)return Ih(e)}return typeof e==`function`?e:null};function zh(e){var t,n=()=>null,r=!1,i=null,a=o=>{if(!r){if(Array.isArray(o)){if(!o.length)return;var[s,...c]=o;if(typeof s==`number`){i=e.setTimeout(a.bind(null,c),s);return}a(s),i=e.setTimeout(a.bind(null,c));return}typeof o==`string`&&(t=o,n(t)),typeof o==`object`&&(t=o,n(t)),typeof o==`function`&&o()}};return{stop:()=>{r=!0},start:e=>{r=!1,i&&=(i(),null),a(e)},subscribe:e=>(n=e,()=>{n=()=>null}),getTimeoutController:()=>e}}var Bh=class{setTimeout(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),r=null,i=a=>{a-n>=t?e(a):typeof requestAnimationFrame==`function`&&(r=requestAnimationFrame(i))};return r=requestAnimationFrame(i),()=>{r!=null&&cancelAnimationFrame(r)}}};function Vh(){return zh(new Bh)}var Hh=(0,w.createContext)(Vh);function Uh(e,t){var n=(0,w.useContext)(Hh);return(0,w.useMemo)(()=>t??n(e),[e,t,n])}var Wh={begin:0,duration:1e3,easing:`ease`,isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Gh={t:0},Kh={t:1};function qh(e){var t=$c(e,Wh),{isActive:n,canBegin:r,duration:i,easing:a,begin:o,onAnimationEnd:s,onAnimationStart:c,children:l}=t,u=Mee(),d=n===`auto`?!ph.isSsr&&!u:n,f=Uh(t.animationId,t.animationManager),[p,m]=(0,w.useState)(d?Gh:Kh),h=(0,w.useRef)(null);return(0,w.useEffect)(()=>{d||m(Kh)},[d]),(0,w.useEffect)(()=>
14{if(!d||!r)return kc;var e=Yee(Gh,Kh,Rh(a),i,m,f.getTimeoutController());return f.start([c,o,()=>{h.current=e()},i,s]),()=>{f.stop(),h.current&&h.current(),s()}},[d,r,i,a,o,c,s,f]),l(p.t)}function Jh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`animation-`,n=(0,w.useRef)(xc(t)),r=(0,w.useRef)(e);return r.current!==e&&(n.current=xc(t),r.current=e),n.current}var Yh=[`radius`],Xh=[`radius`],Zh,Qh,$h,eg,tg,ng,rg,ig,ag,og;function sg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?sg(Object(n),!0).forEach(function(t){lg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lg(e,t,n){return(t=ug(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ug(e){var t=dg(e,`string`);return typeof t==`symbol`?t:t+``}function dg(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function fg(){return fg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fg.apply(null,arguments)}function pg(e,t){if(e==null)return{};var n,r,i=mg(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function mg(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function hg(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var gg=(e,t,n,r,i)=>{var a=mc(n),o=mc(r),s=Math.min(Math.abs(a)/2,Math.abs(o)/2),c=o>=0?1:-1,l=a>=0?1:-1,u=+(o>=0&&a>=0||o<0&&a<0),d;if(s>0&&Array.isArray(i)){for(var f=[0,0,0,0],p=0,m=4;p<m;p++){var h=i[p]??0;f[p]=h>s?s:h}d=hc(Zh||=hg([`M`,`,`,``]),e,t+c*f[0]),f[0]>0&&(d+=hc(Qh||=hg([`A `,`,`,`,0,0,`,`,`,`,`,``]),f[0],f[0],u,e+l*f[0],t)),d+=hc($h||=hg([`L `,`,`,``]),e+n-l*f[1],t),f[1]>0&&(d+=hc(eg||=hg([`A `,`,`,`,0,0,`,`,
15        `,`,`,``]),f[1],f[1],u,e+n,t+c*f[1])),d+=hc(tg||=hg([`L `,`,`,``]),e+n,t+r-c*f[2]),f[2]>0&&(d+=hc(ng||=hg([`A `,`,`,`,0,0,`,`,
16        `,`,`,``]),f[2],f[2],u,e+n-l*f[2],t+r)),d+=hc(rg||=hg([`L `,`,`,``]),e+l*f[3],t+r),f[3]>0&&(d+=hc(ig||=hg([`A `,`,`,`,0,0,`,`,
17        `,`,`,``]),f[3],f[3],u,e,t+r-c*f[3])),d+=`Z`}else if(s>0&&i===+i&&i>0){var g=Math.min(s,i);d=hc(ag||=hg(`M .,.
18            A .,.,0,0,.,.,.
19            L .,.
20            A .,.,0,0,.,.,.
21            L .,.
22            A .,.,0,0,.,.,.
23            L .,.
24            A .,.,0,0,.,.,. Z`.split(`.`)),e,t+c*g,g,g,u,e+l*g,t,e+n-l*g,t,g,g,u,e+n,t+c*g,e+n,t+r-c*g,g,g,u,e+n-l*g,t+r,e+l*g,t+r,g,g,u,e,t+r-c*g)}else d=hc(og||=hg([`M `,`,`,` h `,` v `,` h `,` Z`]),e,t,n,r,-n);return d},_g={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},vg=e=>{var t=$c(e,_g),n=(0,w.useRef)(null),[r,i]=(0,w.useState)(-1);(0,w.useEffect)(()=>{if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&i(e)}catch{}},[]);var{x:a,y:o,width:s,height:c,radius:l,className:u}=t,{animationEasing:d,animationDuration:f,animationBegin:p,isAnimationActive:m,isUpdateAnimationActive:h}=t,g=(0,w.useRef)(s),_=(0,w.useRef)(c),v=(0,w.useRef)(a),y=(0,w.useRef)(o),b=Jh((0,w.useMemo)(()=>({x:a,y:o,width:s,height:c,radius:l}),[a,o,s,c,l]),`rectangle-`);if(a!==+a||o!==+o||s!==+s||c!==+c||s===0||c===0)return null;var x=rr(`recharts-rectangle`,u);if(!h){var S=Co(t),{radius:C}=S,T=pg(S,Yh);return w.createElement(`path`,fg({},T,{x:mc(a),y:mc(o),width:mc(s),height:mc(c),radius:typeof l==`number`?l:void 0,className:x,d:gg(a,o,s,c,l)}))}var E=g.current,D=_.current,O=v.current,k=y.current,A=`0px ${r===-1?1:r}px`,j=`${r}px ${r}px`,M=Eh([`strokeDasharray`],f,typeof d==`string`?d:_g.animationEasing);return w.createElement(qh,{animationId:b,key:b,canBegin:r>0,duration:f,easing:d,isActive:h,begin:p},e=>{var r=wc(E,s,e),i=wc(D,c,e),u=wc(O,a,e),d=wc(k,o,e);n.current&&(g.current=r,_.current=i,v.current=u,y.current=d);var f=m?e>0?{transition:M,strokeDasharray:j}:{strokeDasharray:A}:{strokeDasharray:j},p=Co(t),{radius:h}=p,b=pg(p,Xh);return w.createElement(`path`,fg({},b,{radius:typeof l==`number`?l:void 0,className:x,d:gg(u,d,r,i,l),ref:n,style:cg(cg({},f),t.style)}
24))})};function yg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yg(Object(n),!0).forEach(function(t){xg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xg(e,t,n){return(t=Sg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sg(e){var t=Cg(e,`string`);return typeof t==`symbol`?t:t+``}function Cg(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var wg=Math.PI/180,Tg=e=>e*180/Math.PI,Eg=(e,t,n,r)=>({x:e+Math.cos(-wg*r)*n,y:t+Math.sin(-wg*r)*n}),Dg=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},Og=(e,t)=>{var{x:n,y:r}=e,{x:i,y:a}=t;return Math.sqrt((n-i)**2+(r-a)**2)},kg=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:a}=t,o=Og({x:n,y:r},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var s=(n-i)/o,c=Math.acos(s);return r>a&&(c=2*Math.PI-c),{radius:o,angle:Tg(c),angleInRadian:c}},Ag=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),i=Math.floor(n/360),a=Math.min(r,i);return{startAngle:t-a*360,endAngle:n-a*360}},jg=(e,t)=>{var{startAngle:n,endAngle:r}=t,i=Math.floor(n/360),a=Math.floor(r/360);return e+Math.min(i,a)*360},Mg=(e,t)=>{var{relativeX:n,relativeY:r}=e,{radius:i,angle:a}=kg({x:n,y:r},t),{innerRadius:o,outerRadius:s}=t;if(i<o||i>s||i===0)return null;var{startAngle:c,endAngle:l}=Ag(t),u=a,d;if(c<=l){for(;u>l;)u-=360;for(;u<c;)u+=360;d=u>=c&&u<=l}else{for(;u>c;)u-=360;for(;u<l;)u+=360;d=u>=l&&u<=c}return d?bg(bg({},t),{},{radius:i,angle:jg(u,t)}):null},Ng,Pg,Fg,Ig,Lg,ete,tte;function Rg(){return Rg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rg.apply(null,arguments)}function zg(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var nte=(e,t)=>gc(t-e)*Math.min(Math.abs(t-e),359.999),Bg=e=>{var{cx:t,cy:n,radius:r,angle:i,sign:a,isExternal:o,cornerRadius:s,cornerIsExternal:c}=e,l=s*(o?1:-1)+r,u=Math.asin(s/l)/wg,d=c?i:i+a*u,f=Eg(t,n,l,d),p=Eg(t,n,r,d),m=c?i-a*u:i;return{center:f,circleTangency:p,lineTangency:Eg(t,n,l*Math.cos(u*wg),m),theta:u}},Vg=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:a,endAngle:o}=e,s=nte(a,o),c=a+s,l=Eg(t,n,i,a),u=Eg(t,n,i,c),d=hc(Ng||=zg([`M `,`,`,`
25    A `,`,`,`,0,
26    `,`,`,`,
27    `,`,`,`
28  `]),l.x,l.y,i,i,+(Math.abs(s)>180),+(a>c),u.x,u.y);if(r>0){var f=Eg(t,n,r,a),p=Eg(t,n,r,c);d+=hc(Pg||=zg([`L `,`,`,`
29            A `,`,`,`,0,
30            `,`,`,`,
31            `,`,`,` Z`]),p.x,p.y,r,r,+(Math.abs(s)>180),+(a<=c),f.x,f.y)}else d+=hc(Fg||=zg([`L `,`,`,` Z`]),t,n);return d},rte=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:a,forceCornerRadius:o,cornerIsExternal:s,startAngle:c,endAngle:l}=e,u=gc(l-c),{circleTangency:d,lineTangency:f,theta:p}=Bg({cx:t,cy:n,radius:i,angle:c,sign:u,cornerRadius:a,cornerIsExternal:s}),{circleTangency:m,lineTangency:h,theta:g}=Bg({cx:t,cy:n,radius:i,angle:l,sign:-u,cornerRadius:a,cornerIsExternal:s}),_=s?Math.abs(c-l):Math.abs(c-l)-p-g;if(_<0)return o?hc(Ig||=zg([`M `,`,`,`
32        a`,`,`,`,0,0,1,`,`,0
33        a`,`,`,`,0,0,1,`,`,0
34      `]),f.x,f.y,a,a,a*2,a,a,-a*2):Vg({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:l});var v=hc(Lg||=zg([`M `,`,`,`
35    A`,`,`,`,0,0,`,`,`,`,`,`
36    A`,`,`,`,0,`,`,`,`,`,`,`,`
37    A`,`,`,`,0,0,`,`,`,`,`,`
38  `]),f.x,f.y,a,a,+(u<0),d.x,d.y,i,i,+(_>180),+(u<0),m.x,m.y,a,a,+(u<0),h.x,h.y);if(r>0){var{circleTangency:y,lineTangency:b,theta:x}=Bg({cx:t,cy:n,radius:r,angle:c,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),{circleTangency:S,lineTangency:C,theta:w}=Bg({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),T=s?Math.abs(c-l):Math.abs(c-l)-x-w;if(T<0&&a===0)return`${v}L${t},${n}Z`;v+=hc(ete||=zg([`L`,`,`,`
39      A`,`,`,`,0,0,`,`,`,`,`,`
40      A`,`,`,`,0,`,`,`,`,`,`,`,`
41      A`,`,`,`,0,0,`,`,`,`,`,`Z`]),C.x,C.y,a,a,+(u<0),S.x,S.y,r,r,+(T>180),+(u>0),y.x,y.y,a,a,+(u<0),b.x,b.y)}else v+=hc(tte||=zg([`L`,`,`,`Z`]),t,n);return v},ite={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},ate=e=>{var t=$c(e,ite),{cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:o,forceCornerRadius:s,cornerIsExternal:c,startAngle:l,endAngle:u,className:d}=t;if(a<i||l===u)return null;var f=rr(`recharts-sector`,d),p=a-i,m=Sc(o,p,0,!0),h=m>0&&Math.abs(l-u)<360?rte({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,p/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:l,endAngle:u}):Vg({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:l,endAngle:u});return w.createElement(`path`,Rg({},Co(t),{className:f,d:h}))};function ote(e){return Fl(e)?NaN:Number(e)}function Hg(e){return e?(e=ote(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function Ug(e,t,n){n&&typeof n!=`number`&&Ml(e,t,n)&&(t=n=void 0),e=Hg(e),t===void 0?(t=e,e=0):t=Hg(t),n=n===void 0?e<t?1:-1:Hg(n);let r=Math.max(Math.ceil((t-e)/(n||1)),0),i=Array(r);for(let t=0;t<r;t++)i[t]=e,e+=n;return i}var Wg=e=>e.chartData,Gg=q([Wg],e=>{var t=e.chartData==null?0:e.chartData.length-1;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Kg=(e,t,n,r)=>r?Gg(e):Wg(e),qg=(e,t,n)=>n?Gg(e):Wg(e);function Jg(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(J(t)&&J(n))return!0}return!1}function Yg(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Xg(e,t){if(t&&typeof e!=`function`&&Array.isArray(e)&&e.length===2){var[n,r]=e,i,a;if(J(n))i=n;else if(typeof n==`function`)return;if(J(r))a=r;else if(typeof r==`function`)return;var o=[i,a];if(Jg(o))return o}}function ste(e,t,n){if(!(!n&&t==null)){if(typeof e==`function`&&t!=null)try{var r=e(t,n);if(Jg(r))return Yg(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,o,s;if(i===`auto`)t!=null&&(o=Math.min(...t));else if(G(i))o=i;else if(typeof i==`function`)try{t!=null&&(o=i(t?.[0]))}catch{}else if(typeof i==`string`&&up.test(i)){var c=up.exec(i);if(c==null||c[1]==null||t==null)o=void 0;else{var l=+c[1];o=t[0]-l}}else o=t?.[0];if(a===`auto`)t!=null&&(s=Math.max(...t));else if(G(a))s=a;else if(typeof a==`function`)try{t!=null&&(s=a(t?.[1]))}catch{}else if(typeof a==`string`&&dp.test(a)){var u=dp.exec(a);if(u==null||u[1]==null||t==null)s=void 0;else{var d=+u[1];s=t[1]+d}}else s=t?.[1];var f=[o,s];if(Jg(f))return t==null?f:Yg(f,t,n)}}}var Zg=u(s(((e,t)=>
41{(function(e){var n=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:`2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286`},i=!0,a=`[DecimalError] `,o=a+`Invalid argument: `,s=a+`Exponent out of range: `,c=Math.floor,l=Math.pow,u=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d,f=1e7,p=7,m=9007199254740991,h=c(m/p),g={};g.absoluteValue=g.abs=function(){var e=new this.constructor(this);return e.s&&=1,e},g.comparedTo=g.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*p;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},g.dividedBy=g.div=function(e){return b(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this,n=t.constructor;return D(b(t,new n(e),0,1),n.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return S(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return this.s===0},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,n=this,r=n.constructor,o=r.precision,s=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(d))throw Error(a+`NaN`);if(n.s<1)throw Error(a+(n.s?`NaN`:`-Infinity`));return n.eq(d)?new r(0):(i=!1,t=b(T(n,s),T(e,s),s),i=!0,D(t,o))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O(t,e):_(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(a+`NaN`);return n.s?(i=!1,t=b(n,e,0,1).times(e),i=!0,n.minus(t)):D(new r(n),o)},g.naturalExponential=g.exp=function(){return x(this)},g.naturalLogarithm=g.ln=function(){return T(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_(t,e):O(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(o+e);if(t=S(i)+1,r=i.d.length-1,n=r*p+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,s,l,u=this,d=u.constructor;if(u.s<1){if(!u.s)return new d(0);throw Error(a+`NaN`)}for(e=S(u),i=!1,o=Math.sqrt(+u),o==0||o==1/0?(t=y(u.d),(t.length+e)%2==0&&(t+=`0`),o=Math.sqrt(t),e=c((e+1)/2)-(e<0||e%2),o==1/0?t=`5e`+e:(t=o.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+e),r=new d(t)):r=new d(o.toString()),n=d.precision,o=l=n+3;;)if(s=r,r=s.plus(b(u,s,l+2)).times(.5),y(s.d).slice(0,l)===(t=y(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),o==l&&t==`4999`){if(D(s,n+1,0),s.times(s).eq(u)){r=s;break}}else if(t!=`9999`)break;l+=4}return i=!0,D(r,n)},g.times=g.mul=function(e){var t,n,r,a,o,s,c,l,u,d=this,p=d.constructor,m=d.d,h=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,n=d.e+e.e,l=m.length,u=h.length,l<u&&(o=m,m=h,h=o,s=l,l=u,u=s),o=[],s=l+u,r=s;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,a=l+r;a>r;)c=o[a]+h[r]*m[a-r-1]+t,o[a--]=c%f|0,t=c/f|0;o[a]=(o[a]+t)%f|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,i?D(e,p.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var r=this,i=r.constructor;return r=new i(r),e===void 0?r:(v(e,0,n),t===void 0?t=i.rounding:v(t,0,8),D(r,e+S(r)+1,t))},g.toExponential=function(e,t){var r,i=this,a=i.constructor;return e===void 0?r=k(i,!0):(v(e,0,n),t===void 0?t=a.rounding:v(t,0,8),i=D(new a(i),e+1,t),r=k(i,!0,e+1)),r},g.toFixed=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?k(a):(v(e,0,n),t===void 0?t=o.rounding:v(t,0,8),i=D(new o(a),e+S(a)+1,t),r=k(i.abs(),!1,e+S(i)+1),a.isneg()&&!a.isZero()?`-`+r:r)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return D(new t(e),S(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,o,s,l,u=this,f=u.constructor,h=12,g=+(e=new f(e));if(!e.s)return new f(d);if(u=new f(u),!u.s){if(e.s<1)throw Error(a+`Infinity`);return u}if(u.eq(d))return u;if(r=f.precision,e.eq(d))return D(u,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=u.s,!l){if(s<0)throw Error(a+`NaN`)}else if((n=g<0?-g:g)<=m){for(o=new f(d),t=Math.ceil(r/p+4),i=!1;n%2&&(o=o.times(u),A(o.d,t)),n=c(n/2),n!==0;)u=u.times(u),A(u.d,t);return i=!0,e.s<0?new f(d).div(o):D(o,r)}return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,i=!1,o=e.times(T(u,r+h)),i=!0,o=x(o),o.s=s,o},g.toPrecision=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?(r=S(a),i=k(a,r<=o.toExpNeg||r>=o.toExpPos)):(v(e,1,n),t===void 0?t=o.rounding:v(t,0,8),a=D(new o(a),e,t),r=S(a),i=k(a,e<=r||r<=o.toExpNeg,e)),i},g.toSignificantDigits=g.tosd=function(e,t){var r=this,i=r.constructor;return e===void 0?(e=i.precision,t=i.rounding):(v(e,1,n),t===void 0?t=i.rounding:v(t,0,8)),D(new i(r),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=S(e),n=e.constructor;return k(e,t<=n.toExpNeg||t>=n.toExpPos)};function _(e,t){var n,r,a,o,s,c,l,u,d=e.constructor,m=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),i?D(t,m):t;if(l=e.d,u=t.d,s=e.e,a=t.e,l=l.slice(),o=s-a,o){for(o<0?(r=l,o=-o,c=u.length):(r=u,a=s,c=l.length),s=Math.ceil(m/p),c=s>c?s+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=l.length,o=u.length,c-o<0&&(o=c,r=u,u=l,l=r),n=0;o;
vendor: 5,099 bytes, line 41
41)n=(l[--o]=l[o]+u[o]+n)/f|0,l[o]%=f;for(n&&(l.unshift(n),++a),c=l.length;l[--c]==0;)l.pop();return t.d=l,t.e=a,i?D(t,m):t}function v(e,t,n){if(e!==~~e||e<t||e>n)throw Error(o+e)}function y(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+``,n=p-r.length,n&&(a+=w(n)),a+=r;o=e[t],r=o+``,n=p-r.length,n&&(a+=w(n))}else if(o===0)return`0`;for(;o%10==0;)o/=10;return a+o}var b=(function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%f|0,r=n/f|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=+(e[n]<t[n]),e[n]=r*f+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,s){var c,l,u,d,m,h,g,_,v,y,b,x,C,w,T,E,O,k,A=r.constructor,j=r.s==i.s?1:-1,M=r.d,N=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(a+`Division by zero`);for(l=r.e-i.e,O=N.length,T=M.length,g=new A(j),_=g.d=[],u=0;N[u]==(M[u]||0);)++u;if(N[u]>(M[u]||0)&&--l,x=o==null?o=A.precision:s?o+(S(r)-S(i))+1:o,x<0)return new A(0);if(x=x/p+2|0,u=0,O==1)for(d=0,N=N[0],x++;(u<T||d)&&x--;u++)C=d*f+(M[u]||0),_[u]=C/N|0,d=C%N|0;else{for(d=f/(N[0]+1)|0,d>1&&(N=e(N,d),M=e(M,d),O=N.length,T=M.length),w=O,v=M.slice(0,O),y=v.length;y<O;)v[y++]=0;k=N.slice(),k.unshift(0),E=N[0],N[1]>=f/2&&++E;do d=0,c=t(N,v,O,y),c<0?(b=v[0],O!=y&&(b=b*f+(v[1]||0)),d=b/E|0,d>1?(d>=f&&(d=f-1),m=e(N,d),h=m.length,y=v.length,c=t(m,v,h,y),c==1&&(d--,n(m,O<h?k:N,h))):(d==0&&(c=d=1),m=N.slice()),h=m.length,h<y&&m.unshift(0),n(v,m,y),c==-1&&(y=v.length,c=t(N,v,O,y),c<1&&(d++,n(v,O<y?k:N,y))),y=v.length):c===0&&(d++,v=[0]),_[u++]=d,c&&v[0]?v[y++]=M[w]||0:(v=[M[w]],y=1);while((w++<T||v[0]!==void 0)&&x--)}return _[0]||_.shift(),g.e=l,D(g,s?o+S(g)+1:o)}})();function x(e,t){var n,r,a,o,c,u,f=0,p=0,m=e.constructor,h=m.precision;if(S(e)>16)throw Error(s+S(e));if(!e.s)return new m(d);for(t==null?(i=!1,u=h):u=t,c=new m(.03125);e.abs().gte(.1);)e=e.times(c),p+=5;for(r=Math.log(l(2,p))/Math.LN10*2+5|0,u+=r,n=a=o=new m(d),m.precision=u;;){if(a=D(a.times(e),u),n=n.times(++f),c=o.plus(b(a,n,u)),y(c.d).slice(0,u)===y(o.d).slice(0,u)){for(;p--;)o=D(o.times(o),u);return m.precision=h,t==null?(i=!0,D(o,h)):o}o=c}}function S(e){for(var t=e.e*p,n=e.d[0];n>=10;n/=10)t++;return t}function C(e,t,n){if(t>e.LN10.sd())throw i=!0,n&&(e.precision=n),Error(a+`LN10 precision limit exceeded`);return D(new e(e.LN10),t)}function w(e){for(var t=``;e--;)t+=`0`;return t}function T(e,t){var n,r,o,s,c,l,u,f,p,m=1,h=10,g=e,_=g.d,v=g.constructor,x=v.precision;if(g.s<1)throw Error(a+(g.s?`NaN`:`-Infinity`));if(g.eq(d))return new v(0);if(t==null?(i=!1,f=x):f=t,g.eq(10))return t??(i=!0),C(v,f);if(f+=h,v.precision=f,n=y(_),r=n.charAt(0),s=S(g),Math.abs(s)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=y(g.d),r=n.charAt(0),m++;s=S(g),r>1?(g=new v(`0.`+n),s++):g=new v(r+`.`+n.slice(1))}else return u=C(v,f+2,x).times(s+``),g=T(new v(r+`.`+n.slice(1)),f-h).plus(u),v.precision=x,t==null?(i=!0,D(g,x)):g;for(l=c=g=b(g.minus(d),g.plus(d),f),p=D(g.times(g),f),o=3;;){if(c=D(c.times(p),f),u=l.plus(b(c,new v(o),f)),y(u.d).slice(0,f)===y(l.d).slice(0,f))return l=l.times(2),s!==0&&(l=l.plus(C(v,f+2,x).times(s+``))),l=b(l,new v(m),f),v.precision=x,t==null?(i=!0,D(l,x)):l;l=u,o+=2}}function E(e,t){var n,r,a;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=c(n/p),e.d=[],r=(n+1)%p,n<0&&(r+=p),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=p;r<a;)e.d.push(+t.slice(r,r+=p));t=t.slice(r),r=p-t.length}else r-=a;for(;r--;)t+=`0`;if(e.d.push(+t),i&&(e.e>h||e.e<-h))throw Error(s+n)}else e.s=0,e.e=0,e.d=[0];return e}function D(e,t,n){var r,a,o,u,d,m,g,_,v=e.d;for(u=1,o=v[0];o>=10;o/=10)u++;if(r=t-u,r<0)r+=p,a=t,g=v[_=0];else{if(_=Math.ceil((r+1)/p),o=v.length,_>=o)return e;for(g=o=v[_],u=1;o>=10;o/=10)u++;r%=p,a=r-p+u}if(n!==void 0&&(o=l(10,u-a-1),d=g/o%10|0,m=t<0||v[_+1]!==void 0||g%o,m=n<4?(d||m)&&(n==0||n==(e.s<0?3:2)):d>5||d==5&&(n==4||m||n==6&&(r>0?a>0?g/l(10,u-a):0:v[_-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return m?(o=S(e),v.length=1,t=t-o-1,v[0]=l(10,(p-t%p)%p),e.e=c(-t/p)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(r==0?(v.length=_,o=1,_--):(v.length=_+1,o=l(10,p-r),v[_]=a>0?(g/l(10,u-a)%l(10,a)|0)*o:0),m)for(;;)if(_==0){(v[0]+=o)==f&&(v[0]=1,++e.e);break}else{if(v[_]+=o,v[_]!=f)break;v[_--]=0,o=1}for(r=v.length;v[--r]===0;)v.pop();if(i&&(e.e>h||e.e<-h))throw Error(s+S(e));return e}function O(e,t){var n,r,a,o,s,c,l,u,d,m,h=e.constructor,g=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),i?D(t,g):t;if(l=e.d,m=t.d,r=t.e,u=e.e,l=l.slice(),s=u-r,s){for(d=s<0,d?(n=l,s=-s,c=m.length):(n=m,r=u,c=l.length),a=Math.max(Math.ceil(g/p),c)+2,s>a&&(s=a,n.length=1),n.reverse(),a=s;a--;)n.push(0);n.reverse()}else{for(a=l.length,c=m.length,d=a<c,d&&(c=a),a=0;a<c;a++)if(l[a]!=m[a]){d=l[a]<m[a];break}s=0}for(d&&(n=l,l=m,m=n,t.s=-t.s),c=l.length,a=m.length-c;a>
410;--a)l[c++]=0;for(a=m.length;a>s;){if(l[--a]<m[a]){for(o=a;o&&l[--o]===0;)l[o]=f-1;--l[o],l[a]+=f}l[a]-=m[a]}for(;l[--c]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,i?D(t,g):t):new h(0)}function k(e,t,n){var r,i=S(e),a=y(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+`.`+a.slice(1)+w(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(i<0?`e`:`e+`)+i):i<0?(a=`0.`+w(-i-1)+a,n&&(r=n-o)>0&&(a+=w(r))):i>=o?(a+=w(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+w(r))):((r=i+1)<o&&(a=a.slice(0,r)+`.`+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+=`.`),a+=w(r))),e.s<0?`-`+a:a}function A(e,t){if(e.length>t)return e.length=t,!0}function j(e){var t,n,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i){t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;return}if(typeof e==`number`){if(e*0!=0)throw Error(o+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return E(t,e.toString())}else if(typeof e!=`string`)throw Error(o+e);if(e.charCodeAt(0)===45?(e=e.slice(1),t.s=-1):t.s=1,u.test(e))E(t,e);else throw Error(o+e)}if(i.prototype=g,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=j,i.config=i.set=M,e===void 0&&(e={}),e)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`LN10`],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function M(e){if(!e||typeof e!=`object`)throw Error(a+`Object expected`);var t,r,i,s=[`precision`,1,n,`rounding`,0,8,`toExpNeg`,-1/0,0,`toExpPos`,0,1/0];for(t=0;t<s.length;t+=3)if((i=e[r=s[t]])!==void 0)if(c(i)===i&&i>=s[t+1]&&i<=s[t+2])this[r]=i;else throw Error(o+r+`: `+i);if((i=e[r=`LN10`])!==void 0)if(i==Math.LN10)this[r]=new this(i);else throw Error(o+r+`: `+i);return this}r=j(r),r.default=r.Decimal=r,d=new r(1),typeof define==`function`&&define.amd?define(function(){return r}):t!==void 0&&t.exports?t.exports=r:(e||=typeof self<`u`&&self&&self.self==self?self:Function(`return this`)(),e.Decimal=r)})(e)}))());function Qg(e){return e===0?1:Math.floor(new Zg.default(e).abs().log(10).toNumber())+1}function $g(e,t,n){for(var r=new Zg.default(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var e_=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},t_=(e,t,n)=>{if(e.lte(0))return new Zg.default(0);var r=Qg(e.toNumber()),i=new Zg.default(10).pow(r),a=e.div(i),o=r===1?.1:.05,s=new Zg.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);return t?new Zg.default(s.toNumber()):new Zg.default(Math.ceil(s.toNumber()))},n_=(e,t,n)=>{if(e.lte(0))return new Zg.default(0);var r=[1,2,2.5,5],i=e.toNumber(),a=Math.floor(new Zg.default(i).abs().log(10).toNumber()),o=new Zg.default(10).pow(a),s=e.div(o).toNumber(),c=r.findIndex(e=>e>=s-1e-10);if(c===-1&&(o=o.mul(10),c=0),c+=n,c>=r.length){var l=Math.floor(c/r.length);c%=r.length,o=o.mul(new Zg.default(10).pow(l))}var u=new Zg.default(r[c]??1).mul(o);return t?u:new Zg.default(Math.ceil(u.toNumber()))},cte=(e,t,n)=>{var r=new Zg.default(1),i=new Zg.default(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new Zg.default(10).pow(Qg(e)-1),i=new Zg.default(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new Zg.default(Math.floor(e)))}else e===0?i=new Zg.default(Math.floor((t-1)/2)):n||(i=new Zg.default(Math.floor(e)));for(var o=Math.floor((t-1)/2),s=[],c=0;c<t;c++)s.push(i.add(new Zg.default(c-o).mul(r)).toNumber());return s},r_=function(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:t_;if(!Number.isFinite((t-e)/(n-1)))return{step:new Zg.default(0),tickMin:new Zg.default(0),tickMax:new Zg.default(0)};var o=a(new Zg.default(t).sub(e).div(n-1),r,i),s;e<=0&&t>=0?s=new Zg.default(0):(s=new Zg.default(e).add(t).div(2),s=s.sub(new Zg.default(s).mod(o)));var c=Math.ceil(s.sub(e).div(o).toNumber()),l=Math.ceil(new Zg.default(t).sub(s).div(o).toNumber()),u=c+l+1;return u>n?r_(e,t,n,r,i+1,a):(u<n&&(l=t>0?l+(n-u):l,c=t>0?c:c+(n-u)),{step:o,tickMin:s.sub(new Zg.default(c).mul(o)),tickMax:s.add(new Zg.default(l).mul(o))})},i_=function(e){var[t,n]=e,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`auto`,o=Math.max(r,2),[s,c]=e_([t,n]);if(s===-1/0||c===1/0){var l=c===1/0?[s,...Array(r-1).fill(1/0)]:[...Array(r-1).fill(-1/0),c];return t>n?l.reverse():l}if(s===c)return cte(s,r,i);var{step:u,tickMin:d,tickMax:f}=r_(s,c,o,i,0,a===`snap125`?n_:t_),p=$g(d,f.add(new Zg.default(.1).mul(u)),u);return t>n?p.reverse():p},a_=function(e,t){var[n,r]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`auto`,[o,s]=e_([n,r]);if(o===-1/0||s===1/0)return[n,r];if(o===s)return[o];var c=a===`snap125`?n_:t_,l=Math.max(t,2),u=c(new Zg.default(s).sub(o).div(l-1),i,0
41),d=[...$g(new Zg.default(o),new Zg.default(s),u),s];return i===!1&&(d=d.map(e=>Math.round(e))),n>r?d.reverse():d},o_=e=>e.rootProps.maxBarSize,lte=e=>e.rootProps.barGap,s_=e=>e.rootProps.barCategoryGap,ute=e=>e.rootProps.barSize,c_=e=>e.rootProps.stackOffset,l_=e=>e.rootProps.reverseStackOrder,u_=e=>e.options.chartName,d_=e=>e.rootProps.syncId,dte=e=>e.rootProps.syncMethod,f_=e=>e.options.eventEmitter,fte=e=>e.rootProps.baseValue,p_={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},m_={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:`polygon`,cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:`auto`,orientation:`outer`,reversed:!1,scale:`auto`,tick:!0,tickLine:!0,tickSize:8,type:`auto`,zIndex:p_.axis},h_={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:`auto`,label:!1,orientation:`right`,radiusAxisId:0,reversed:!1,scale:`auto`,stroke:`#ccc`,tick:!0,tickCount:5,tickLine:!0,type:`auto`,zIndex:p_.axis},g_=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function __(e,t,n){if(n!==`auto`)return n;if(e!=null)return Zf(e,t)?`category`:`number`}function v_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?v_(Object(n),!0).forEach(function(t){pte(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pte(e,t,n){return(t=mte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mte(e){var t=hte(e,`string`);return typeof t==`symbol`?t:t+``}function hte(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var b_={allowDataOverflow:m_.allowDataOverflow,allowDecimals:m_.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:m_.angleAxisId,includeHidden:!1,name:void 0,reversed:m_.reversed,scale:m_.scale,tick:m_.tick,tickCount:void 0,ticks:void 0,type:m_.type,unit:void 0,niceTicks:`auto`},x_={allowDataOverflow:h_.allowDataOverflow,allowDecimals:h_.allowDecimals,allowDuplicatedCategory:h_.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:h_.radiu
41sAxisId,includeHidden:h_.includeHidden,name:void 0,reversed:h_.reversed,scale:h_.scale,tick:h_.tick,tickCount:h_.tickCount,ticks:void 0,type:h_.type,unit:void 0,niceTicks:`auto`},S_=q([(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},om],(e,t)=>{if(e!=null)return e;var n=__(t,`angleAxis`,b_.type)??`category`;return y_(y_({},b_),{},{type:n})}),C_=q([(e,t)=>e.polarAxis.radiusAxis[t],om],(e,t)=>{if(e!=null)return e;var n=__(t,`radiusAxis`,x_.type)??`category`;return y_(y_({},x_),{},{type:n})}),w_=e=>e.polarOptions,T_=q([_p,vp,Pp],Dg),E_=q([w_,T_],(e,t)=>{if(e!=null)return Sc(e.innerRadius,t,0)}),D_=q([w_,T_],(e,t)=>{if(e!=null)return Sc(e.outerRadius,t,t*.8)}),O_=q([w_],e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]});q([S_,O_],g_);var k_=q([T_,E_,D_],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});q([C_,k_],g_);var A_=q([rm,w_,E_,D_,_p,vp],(e,t,n,r,i,a)=>{if(!(e!==`centric`&&e!==`radial`||t==null||n==null||r==null)){var{cx:o,cy:s,startAngle:c,endAngle:l}=t;return{cx:Sc(o,i,i/2),cy:Sc(s,a,a/2),innerRadius:n,outerRadius:r,startAngle:c,endAngle:l,clockWise:!1}}}),j_=(e,t)=>t,M_=(e,t,n)=>n;function N_(e){return e?.id}function P_(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=n,o=new Map;return e.forEach(e=>{var t=e.data??r;if(!(t==null||t.length===0)){var n=N_(e);t.forEach((t,r)=>{var s=a==null||i?r:String(Yf(t,a,null)),c=Yf(t,e.dataKey,0),l=o.has(s)?o.get(s):{};Object.assign(l,{[n]:c}),o.set(s,l)})}}),Array.from(o.values())}function F_(e){return`stackId`in e&&e.stackId!=null&&e.dataKey!=null}var I_=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function L_(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function gte(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var R_=e=>{var t=rm(e);return t===`horizontal`?`xAxis`:t===`vertical`?`yAxis`:t===`centric`?`angleAxis`:`radiusAxis`},z_=e=>e.tooltip.settings.axisId;function B_(e){if(e!=null){var t=e.ticks,n=e.bandwidth,r=e.range(),i=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(e){var t=i[0],n=i[1];return t<=n?e>=t&&e<=n:e>=n&&e<=t},bandwidth:n?()=>n.call(e):void 0,ticks:t?n=>t.call(e,n):void 0,map:(t,n)=>{var r=e(t);if(r!=null){if(e.bandwidth&&n!=null&&n.position){var i=e.bandwidth();switch(n.position){case`middle`:r+=i/2;break;case`end`:r+=i;break;default:break}}return r}}}}}var V_=(e,t)=>{if(t!=null)switch(e){case`linear`:if(!Jg(t)){for(var n,r,i=0;i<t.length;i++){var a=t[i];J(a)&&((n===void 0||a<n)&&(n=a),(r===void 0||a>r)&&(r=a))}return n!==void 0&&r!==void 0?[n,r]:void 0}return t;default:return t}};function H_(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function U_(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function W_(e){let t,n,r;e.length===2?(t=e===H_||e===U_?e:G_,n=e,r=e):(t=H_,n=(t,n)=>H_(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function G_(){return 0}function K_(e){return e===null?NaN:+e}function*q_(e,t){if(t===void 0)for(let t of e)t!=null&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}var J_=W_(H_),Y_=J_.right;J_.left,W_(K_).center;var X_=class extends Map{constructor(e,t=ev){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(Z_(this,e))}has(e){return super.has(Z_(this,e))}set(e,t){return super.set(Q_(this,e),t)}delete(e){return super.delete($_(this,e))}};function Z_({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function Q_({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function $_({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function ev(e){return typeof e==`object`&&e?e.valueOf():e}function tv(e=H_){if(e===H_)return nv;if(typeof e!=`function`)throw TypeError(`compare is not a function`);return(t,n)=>{let r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function nv(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:+(e>t))}var rv=Math.sqrt(50),iv=Math.sqrt(10),av=Math.sqrt(2);function ov(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=rv?10:a>=iv?5:a>=av?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?ov(e,t,n*2):[s,c,l]}function sv(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?ov(t,e,n):ov(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function cv(e,t,n){return t=+t,e=+e,n=+n,ov(e,t,n)[2]}function lv(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?cv(t,e,n):cv(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function uv(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function dv(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}
41function fv(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?nv:tv(i);r>n;){if(r-n>600){let a=r-n+1,o=t-n+1,s=Math.log(a),c=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*c*(a-c)/a)*(o-a/2<0?-1:1),u=Math.max(n,Math.floor(t-o*c/a+l)),d=Math.min(r,Math.floor(t+(a-o)*c/a+l));fv(e,t,u,d,i)}let a=e[t],o=n,s=r;for(pv(e,n,t),i(e[r],a)>0&&pv(e,n,r);o<s;){for(pv(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?pv(e,n,s):(++s,pv(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function pv(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function mv(e,t,n){if(e=Float64Array.from(q_(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return dv(e);if(t>=1)return uv(e);var r,i=(r-1)*t,a=Math.floor(i),o=uv(fv(e,a).subarray(0,a+1));return o+(dv(e.subarray(a+1))-o)*(i-a)}}function hv(e,t,n=K_){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}function gv(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function _v(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function vv(e,t){switch(arguments.length){case 0:break;case 1:typeof e==`function`?this.interpolator(e):this.range(e);break;default:this.domain(e),typeof t==`function`?this.interpolator(t):this.range(t);break}return this}var yv=Symbol(`implicit`);function bv(){var e=new X_,t=[],n=[],r=yv;function i(i){let a=e.get(i);if(a===void 0){if(r!==yv)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new X_;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return bv(t,n).unknown(r)},_v.apply(i,arguments),i}function xv(){var e=bv().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=gv(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()}
vendor: 6,781 bytes, line 41
41,e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return xv(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},_v.apply(d(),arguments)}function Sv(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Sv(t())},e}function Cv(){return Sv(xv.apply(null,arguments).paddingInner(1))}function wv(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Tv(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ev(){}var Dv=.7,Ov=1/Dv,kv=`\\s*([+-]?\\d+)\\s*`,Av=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,jv=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Mv=/^#([0-9a-f]{3,8})$/,Nv=RegExp(`^rgb\\(${kv},${kv},${kv}\\)$`),Pv=RegExp(`^rgb\\(${jv},${jv},${jv}\\)$`),Fv=RegExp(`^rgba\\(${kv},${kv},${kv},${Av}\\)$`),Iv=RegExp(`^rgba\\(${jv},${jv},${jv},${Av}\\)$`),Lv=RegExp(`^hsl\\(${Av},${jv},${jv}\\)$`),Rv=RegExp(`^hsla\\(${Av},${jv},${jv},${Av}\\)$`),zv={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};wv(Ev,Wv,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bv,formatHex:Bv,formatHex8:Vv,formatHsl:Hv,formatRgb:Uv,toString:Uv});function Bv(){return this.rgb().formatHex()}function Vv(){return this.rgb().formatHex8()}function Hv(){return ry(this).formatHsl()}function Uv(){return this.rgb().formatRgb()}function Wv(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Mv.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Gv(t):n===3?new Yv(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Kv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Kv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Nv.exec(e))?new Yv(t[1],t[2],t[3],1):(t=Pv.exec(e))?new Yv(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Fv.exec(e))?Kv(t[1],t[2],t[3],t[4]):(t=Iv.exec(e))?Kv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Lv.exec(e))?ny(t[1],t[2]/100,t[3]/100,1):(t=Rv.exec(e))?ny(t[1],t[2]/100,t[3]/100,t[4]):zv.hasOwnProperty(e)?Gv(zv[e]):e===`transparent`?new Yv(NaN,NaN,NaN,0):null}function Gv(e){return new Yv(e>>16&255,e>>8&255,e&255,1)}function Kv(e,t,n,r){return r<=0&&(e=t=n=NaN),new Yv(e,t,n,r)}function qv(e){return e instanceof Ev||(e=Wv(e)),e?(e=e.rgb(),new Yv(e.r,e.g,e.b,e.opacity)):new Yv}function Jv(e,t,n,r){return arguments.length===1?qv(e):new Yv(e,t,n,r??1)}function Yv(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}wv(Yv,Jv,Tv(Ev,{brighter(e){return e=e==null?Ov:Ov**+e,new Yv(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Dv:Dv**+e,new Yv(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yv(ey(this.r),ey(this.g),ey(this.b),$v(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Xv,formatHex:Xv,formatHex8:Zv,formatRgb:Qv,toString:Qv}));function Xv(){return`#${ty(this.r)}${ty(this.g)}${ty(this.b)}`}function Zv(){return`#${ty(this.r)}${ty(this.g)}${ty(this.b)}${ty((isNaN(this.opacity)?1:this.opacity)*255)}`}function Qv(){let e=$v(this.opacity);return`${e===1?`rgb(`:`rgba(`}${ey(this.r)}, ${ey(this.g)}, ${ey(this.b)}${e===1?`)`:`, ${e})`}`}function $v(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ey(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ty(e){return e=ey(e),(e<16?`0`:``)+e.toString(16)}function ny(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ay(e,t,n,r)}function ry(e){if(e instanceof ay)return new ay(e.h,e.s,e.l,e.opacity);if(e instanceof Ev||(e=Wv(e)),!e)return new ay;
41if(e instanceof ay)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new ay(o,s,c,e.opacity)}function iy(e,t,n,r){return arguments.length===1?ry(e):new ay(e,t,n,r??1)}function ay(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}wv(ay,iy,Tv(Ev,{brighter(e){return e=e==null?Ov:Ov**+e,new ay(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Dv:Dv**+e,new ay(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Yv(cy(e>=240?e-240:e+120,i,r),cy(e,i,r),cy(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ay(oy(this.h),sy(this.s),sy(this.l),$v(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=$v(this.opacity);return`${e===1?`hsl(`:`hsla(`}${oy(this.h)}, ${sy(this.s)*100}%, ${sy(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function oy(e){return e=(e||0)%360,e<0?e+360:e}function sy(e){return Math.max(0,Math.min(1,e||0))}function cy(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var ly=e=>()=>e;function uy(e,t){return function(n){return e+n*t}}function dy(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function fy(e){return(e=+e)==1?py:function(t,n){return n-t?dy(t,n,e):ly(isNaN(t)?n:t)}}function py(e,t){var n=t-e;return n?uy(e,n):ly(isNaN(e)?t:e)}var my=(function e(t){var n=fy(t);function r(e,t){var r=n((e=Jv(e)).r,(t=Jv(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=py(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function _te(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function vte(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function yte(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=vy(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function bte(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function hy(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function xte(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=vy(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var gy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_y=new RegExp(gy.source,`g`);function Ste(e){return function(){return e}}function Cte(e){return function(t){return e(t)+``}}function wte(e,t){var n=gy.lastIndex=_y.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=gy.exec(e))&&(i=_y.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:hy(r,i)})),n=_y.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Cte(c[0].x):Ste(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function vy(e,t){var n=typeof t,r;return t==null||n===`boolean`?ly(t):(n===`number`?hy:n===`string`?(r=Wv(t))?(t=r,my):wte:t instanceof Wv?my:t instanceof Date?bte:vte(t)?_te:Array.isArray(t)?yte:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?xte:hy)(e,t)}function yy(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Tte(e,t){t===void 0&&(t=e,e=vy);for(var n=0,r=t.length-1,i=t[0],a=Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return a[t](e-t)}}function Ete(e){return function(){return e}}function by(e){return+e}var xy=[0,1];function Sy(e){return e}function Cy(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Ete(isNaN(t)?NaN:.5)}function Dte(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function Ote(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Cy(i,r),a=n(o,a)):(r=Cy(r,i),a=n(a,o)),function(e){return a(r(e))}}function kte(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Cy(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=Y_(e,t,1,r)-1;return a[n](i[n](t))}}function wy(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ty(){var e=xy,t=xy,n=vy,r,i,a,o=Sy,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==Sy&&(o=Dte(e[0],e[n-1])),s=n>2?kte:Ote,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),hy))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,by),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=yy,u()},d.clamp=function(e){return arguments.length?(o=e?!0:Sy,u()):o!==Sy},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function Ey(){return Ty()(Sy,Sy)}
vendor: 7,944 bytes, line 41
41function Ate(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function Dy(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Oy(e){return e=Dy(Math.abs(e)),e?e[1]:NaN}function jte(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Mte(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var Nte=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ky(e){if(!(t=Nte.exec(e)))throw Error(`invalid format: `+e);var t;return new Ay({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ky.prototype=Ay.prototype;function Ay(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}Ay.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function Pte(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var jy;function Fte(e,t){var n=Dy(e,t);if(!n)return jy=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(jy=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+Dy(e,Math.max(0,t+a-1))[0]}function My(e,t){var n=Dy(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var Ny={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:Ate,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>My(e*100,t),r:My,s:Fte,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Py(e){return e}var Fy=Array.prototype.map,Iy=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function Ite(e){var t=e.grouping===void 0||e.thousands===void 0?Py:jte(Fy.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?Py:Mte(Fy.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=ky(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):Ny[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=Ny[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=Pte(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&jy!==void 0?Iy[8+jy/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r;break}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(Oy(t)/3)))*3,r=10**-n,i=l((e=ky(e),e.type=`f`,e),{suffix:Iy[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var Ly,Ry,zy;Lte({thousands:`,`,grouping:[3],currency:[`$`,``]});function Lte(e){return Ly=Ite(e),Ry=Ly.format,zy=Ly.formatPrefix,Ly}function Rte(e){return Math.max(0,-Oy(Math.abs(e)))}function zte(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Oy(t)/3)))*3-Oy(Math.abs(e)))}function Bte(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Oy(t)-Oy(e))+1}function By(e,t,n,r){var i=lv(e,t,n),a;switch(r=ky(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=zte(i,o))&&(r.precision=a),zy(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=Bte(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=Rte(i))&&(r.precision=a-(r.type===`%`)*2);break}return Ry(r)}function Vy(e){var t=e.domain;return e.ticks=function(e){var n=t();return sv(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return By(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=cv(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function Hy(){var e=Ey();return e.copy=function(){return wy(e,Hy())},_v.apply(e,arguments),Vy(e)}function Uy(e){var t;function n(e){return e==null||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,by),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return Uy(e).unknown(t)},e=arguments.length?Array.from(e,by):[0,1],Vy(n)}function Wy(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function Gy(e){return Math.log(e)}function Ky(e){return Math.exp(e)}function Vte(e){return-Math.log(-e)}function Hte(e){return-Math.exp(-e)}function Ute(e){return isFinite(e)?+(`1e`+e):e<0?0:e}function Wte(e){return e===10?Ute:e===Math.E?Math.exp:t=>e**+t}function Gte(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function qy(e){return(t,n)=>-e(-t,n)}function Jy(e){let t=e(Gy,Ky),n=t.domain,r=10,i,a;function o(){return i=Gte(r),a=Wte(r),n()[0]<0?(i=qy(i),a=qy(a),e(Vte,Hte)):e(Gy,Ky),t}return t.base=function(e){return arguments.length?(r=+e,o()):r},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{let t=n(),o=t[0],s=t[t.length-1],c=s<o;c&&([o,s]=[s,o]);let l=i(o),u=i(s),d,f,p=e==null?10:+e,m=[];if(!(r%1)&&u-l<p){if(l=Math.floor(l),u=Math.ceil(u),o>0){for(;l<=u;++l)for(d=1;d<r;++d)if(f=l<0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}}else for(;l<=u;++l)for(d=r-1;d>=1;--d)if(f=l>0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}m.length*2<p&&(m=sv(o,s,p))}else m=sv(l,u,Math.min(u-l,p)).map(a);return c?m.reverse():m},t.tickFormat=(e,n)=>{if(e??=10,n??=r===10?`s`:`,`,typeof n!=`function`&&(!(r%1)&&(n=ky(n)).precision==null&&(n.trim=!0),n=Ry(n)),e===1/0)return n;let o=Math.max(1,r*e/t.ticks().length);return e=>{let t=e/a(Math.round(i(e)));return t*r<r-.5&&(t*=r),t<=o?n(e):``}},t.nice=()=>n(Wy(n(),{floor:e=>a(Math.floor(i(e))),ceil:e=>a(Math.ceil(i(e)))})),t}function Yy(){let e=Jy(Ty()).domain([1,10]);return e.copy=()=>wy(e,Yy()).base(e.base()),_v.apply(e,arguments),e}
41function Xy(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Zy(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Qy(e){var t=1,n=e(Xy(t),Zy(t));return n.constant=function(n){return arguments.length?e(Xy(t=+n),Zy(t)):t},Vy(n)}function $y(){var e=Qy(Ty());return e.copy=function(){return wy(e,$y()).constant(e.constant())},_v.apply(e,arguments)}function eb(e){return function(t){return t<0?-((-t)**+e):t**+e}}function Kte(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function qte(e){return e<0?-e*e:e*e}function tb(e){var t=e(Sy,Sy),n=1;function r(){return n===1?e(Sy,Sy):n===.5?e(Kte,qte):e(eb(n),eb(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},Vy(t)}function nb(){var e=tb(Ty());return e.copy=function(){return wy(e,nb()).exponent(e.exponent())},_v.apply(e,arguments),e}function rb(){return nb.apply(null,arguments).exponent(.5)}function ib(e){return Math.sign(e)*e*e}function Jte(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ab(){var e=Ey(),t=[0,1],n=!1,r;function i(t){var i=Jte(e(t));return isNaN(i)?r:n?Math.round(i):i}return i.invert=function(t){return e.invert(ib(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(n){return arguments.length?(e.range((t=Array.from(n,by)).map(ib)),i):t.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(n=!!e,i):n},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return ab(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},_v.apply(i,arguments),Vy(i)}function ob(){var e=[],t=[],n=[],r;function i(){var r=0,i=Math.max(1,t.length);for(n=Array(i-1);++r<i;)n[r-1]=hv(e,r/i);return a}function a(e){return e==null||isNaN(e=+e)?r:t[Y_(n,e)]}return a.invertExtent=function(r){var i=t.indexOf(r);return i<0?[NaN,NaN]:[i>0?n[i-1]:e[0],i<n.length?n[i]:e[e.length-1]]},a.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(H_),i()},a.range=function(e){return arguments.length?(t=Array.from(e),i()):t.slice()},a.unknown=function(e){return arguments.length?(r=e,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return ob().domain(e).range(t).unknown(r)},_v.apply(a,arguments)}function sb(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(e){return e!=null&&e<=e?i[Y_(r,e,0,n)]:a}function s(){var i=-1;for(r=Array(n);++i<n;)r[i]=((i+1)*t-(i-n)*e)/(n+1);return o}return o.domain=function(n){return arguments.length?([e,t]=n,e=+e,t=+t,s()):[e,t]},o.range=function(e){return arguments.length?(n=(i=Array.from(e)).length-1,s()):i.slice()},o.invertExtent=function(a){var o=i.indexOf(a);return o<0?[NaN,NaN]:o<1?[e,r[0]]:o>=n?[r[n-1],t]:[r[o-1],r[o]]},o.unknown=function(e){return arguments.length&&(a=e),o},o.thresholds=function(){return r.slice()},o.copy=function(){return sb().domain([e,t]).range(i).unknown(a)},_v.apply(Vy(o),arguments)}function cb(){var e=[.5],t=[0,1],n,r=1;function i(i){return i!=null&&i<=i?t[Y_(e,i,0,r)]:n}return i.domain=function(n){return arguments.length?(e=Array.from(n),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(n){return arguments.length?(t=Array.from(n),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return cb().domain(e).range(t).unknown(n)},_v.apply(i,arguments)}var lb=new Date,ub=new Date;function db(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>db(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(lb.setTime(+t),ub.setTime(+r),e(lb),e(ub),Math.floor(n(lb,ub))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var fb=db(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);fb.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?db(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):fb),fb.range;var pb=1e3,mb=pb*60,hb=mb*60,gb=hb*24,_b=gb*7,vb=gb*30,yb=gb*365,bb=db(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*pb)},(e,t)=>(t-e)/pb,e=>e.getUTCSeconds());bb.range;var xb=db(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*pb)},(e,t)=>{e.setTime(+e+t*mb)},(e,t)=>(t-e)/mb,e=>e.getMinutes());xb.range;var Sb=db(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*mb)},(e,t)=>(t-e)/mb,e=>e.getUTCMinutes());Sb.range;var Cb=db(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*pb-e.getMinutes()*mb)},(e,t)=>{e.setTime(+e+t*hb)},(e,t)=>(t-e)/hb,e=>e.getHours());Cb.range;var wb=db(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*hb)},(e,t)=>(t-e)/hb,e=>e.getUTCHours());wb.range;
41var Tb=db(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*mb)/gb,e=>e.getDate()-1);Tb.range;var Eb=db(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/gb,e=>e.getUTCDate()-1);Eb.range;var Db=db(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/gb,e=>Math.floor(e/gb));Db.range;function Ob(e){return db(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*mb)/_b)}var kb=Ob(0),Ab=Ob(1),Yte=Ob(2),Xte=Ob(3),jb=Ob(4),Mb=Ob(5),Nb=Ob(6);kb.range,Ab.range,Yte.range,Xte.range,jb.range,Mb.range,Nb.range;function Pb(e){return db(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/_b)}var Fb=Pb(0),Ib=Pb(1),Lb=Pb(2),Rb=Pb(3),zb=Pb(4),Bb=Pb(5),Vb=Pb(6);Fb.range,Ib.range,Lb.range,Rb.range,zb.range,Bb.range,Vb.range;var Hb=db(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Hb.range;var Ub=db(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Ub.range;var Wb=db(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Wb.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:db(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),Wb.range;var Gb=db(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Gb.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:db(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),Gb.range;function Kb(e,t,n,r,i,a){let o=[[bb,1,pb],[bb,5,5*pb],[bb,15,15*pb],[bb,30,30*pb],[a,1,mb],[a,5,5*mb],[a,15,15*mb],[a,30,30*mb],[i,1,hb],[i,3,3*hb],[i,6,6*hb],[i,12,12*hb],[r,1,gb],[r,2,2*gb],[n,1,_b],[t,1,vb],[t,3,3*vb],[e,1,yb]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=W_(([,,e])=>e).right(o,i);if(a===o.length)return e.every(lv(t/yb,n/yb,r));if(a===0)return fb.every(Math.max(lv(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var[qb,Jb]=Kb(Gb,Ub,Fb,Db,wb,Sb),[Yb,Xb]=Kb(Wb,Hb,kb,Tb,Cb,xb);function Zb(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Qb(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function $b(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function ex(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=sx(i),u=cx(i),d=sx(a),f=cx(a),p=sx(o),m=cx(o),h=sx(s),g=cx(s),_=sx(c),v=cx(c),y={a:N,A:ee,b:te,B:P,c:null,d:kx,e:kx,f:Px,g:Gx,G:qx,H:Ax,I:jx,j:Mx,L:Nx,m:Fx,M:Ix,p:F,q:ne,Q:gS,s:_S,S:Lx,u:Rx,U:zx,V:Vx,w:Hx,W:Ux,x:null,X:null,y:Wx,Y:Kx,Z:Jx,"%":hS},b={a:re,A:ie,b:ae,B:I,c:null,d:Yx,e:Yx,f:eS,g:dS,G:pS,H:Xx,I:Zx,j:Qx,L:$x,m:tS,M:nS,p:L,q:oe,Q:gS,s:_S,S:rS,u:iS,U:aS,V:sS,w:cS,W:lS,x:null,X:null,y:uS,Y:fS,Z:mS,"%":hS},x={a:E,A:D,b:O,B:k,c:A,d:yx,e:yx,f:Tx,g:hx,G:mx,H:xx,I:xx,j:bx,L:wx,m:vx,M:Sx,p:T,q:_x,Q:Dx,s:Ox,S:Cx,u:ux,U:dx,V:fx,w:lx,W:px,x:j,X:M,y:hx,Y:mx,Z:gx,"%":Ex};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=tx[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=$b(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));
vendor: 4,368 bytes, line 41
41if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=Qb($b(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?Ib.ceil(a):Ib(a),a=Eb.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=Zb($b(r.y,0,1)),o=a.getDay(),a=o>4||o===0?Ab.ceil(a):Ab(a),a=Tb.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?Qb($b(r.y,0,1)).getUTCDay():Zb($b(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,Qb(r)):Zb(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in tx?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,n,r){return w(e,t,n,r)}function j(e,t,r){return w(e,n,t,r)}function M(e,t,n){return w(e,r,t,n)}function N(e){return o[e.getDay()]}function ee(e){return a[e.getDay()]}function te(e){return c[e.getMonth()]}function P(e){return s[e.getMonth()]}function F(e){return i[+(e.getHours()>=12)]}function ne(e){return 1+~~(e.getMonth()/3)}function re(e){return o[e.getUTCDay()]}function ie(e){return a[e.getUTCDay()]}function ae(e){return c[e.getUTCMonth()]}function I(e){return s[e.getUTCMonth()]}function L(e){return i[+(e.getUTCHours()>=12)]}function oe(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var tx={"-":``,_:` `,0:`0`},nx=/^\s*\d+/,rx=/^%/,ix=/[\\^$*+?|[\]().{}]/g;function ax(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function ox(e){return e.replace(ix,`\\$&`)}function sx(e){return RegExp(`^(?:`+e.map(ox).join(`|`)+`)`,`i`)}function cx(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function lx(e,t,n){var r=nx.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ux(e,t,n){var r=nx.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function dx(e,t,n){var r=nx.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function fx(e,t,n){var r=nx.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function px(e,t,n){var r=nx.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function mx(e,t,n){var r=nx.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function hx(e,t,n){var r=nx.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function gx(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function _x(e,t,n){var r=nx.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function vx(e,t,n){var r=nx.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function yx(e,t,n){var r=nx.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function bx(e,t,n){var r=nx.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function xx(e,t,n){var r=nx.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Sx(e,t,n){var r=nx.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Cx(e,t,n){var r=nx.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function wx(e,t,n){var r=nx.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Tx(e,t,n){var r=nx.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ex(e,t,n){var r=rx.exec(t.slice(n,n+1));return r?n+r[0].length:-1}
41function Dx(e,t,n){var r=nx.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ox(e,t,n){var r=nx.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function kx(e,t){return ax(e.getDate(),t,2)}function Ax(e,t){return ax(e.getHours(),t,2)}function jx(e,t){return ax(e.getHours()%12||12,t,2)}function Mx(e,t){return ax(1+Tb.count(Wb(e),e),t,3)}function Nx(e,t){return ax(e.getMilliseconds(),t,3)}function Px(e,t){return Nx(e,t)+`000`}function Fx(e,t){return ax(e.getMonth()+1,t,2)}function Ix(e,t){return ax(e.getMinutes(),t,2)}function Lx(e,t){return ax(e.getSeconds(),t,2)}function Rx(e){var t=e.getDay();return t===0?7:t}function zx(e,t){return ax(kb.count(Wb(e)-1,e),t,2)}function Bx(e){var t=e.getDay();return t>=4||t===0?jb(e):jb.ceil(e)}function Vx(e,t){return e=Bx(e),ax(jb.count(Wb(e),e)+(Wb(e).getDay()===4),t,2)}function Hx(e){return e.getDay()}function Ux(e,t){return ax(Ab.count(Wb(e)-1,e),t,2)}function Wx(e,t){return ax(e.getFullYear()%100,t,2)}function Gx(e,t){return e=Bx(e),ax(e.getFullYear()%100,t,2)}function Kx(e,t){return ax(e.getFullYear()%1e4,t,4)}function qx(e,t){var n=e.getDay();return e=n>=4||n===0?jb(e):jb.ceil(e),ax(e.getFullYear()%1e4,t,4)}function Jx(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+ax(t/60|0,`0`,2)+ax(t%60,`0`,2)}function Yx(e,t){return ax(e.getUTCDate(),t,2)}function Xx(e,t){return ax(e.getUTCHours(),t,2)}function Zx(e,t){return ax(e.getUTCHours()%12||12,t,2)}function Qx(e,t){return ax(1+Eb.count(Gb(e),e),t,3)}function $x(e,t){return ax(e.getUTCMilliseconds(),t,3)}function eS(e,t){return $x(e,t)+`000`}function tS(e,t){return ax(e.getUTCMonth()+1,t,2)}function nS(e,t){return ax(e.getUTCMinutes(),t,2)}function rS(e,t){return ax(e.getUTCSeconds(),t,2)}function iS(e){var t=e.getUTCDay();return t===0?7:t}function aS(e,t){return ax(Fb.count(Gb(e)-1,e),t,2)}function oS(e){var t=e.getUTCDay();return t>=4||t===0?zb(e):zb.ceil(e)}function sS(e,t){return e=oS(e),ax(zb.count(Gb(e),e)+(Gb(e).getUTCDay()===4),t,2)}function cS(e){return e.getUTCDay()}function lS(e,t){return ax(Ib.count(Gb(e)-1,e),t,2)}function uS(e,t){return ax(e.getUTCFullYear()%100,t,2)}function dS(e,t){return e=oS(e),ax(e.getUTCFullYear()%100,t,2)}function fS(e,t){return ax(e.getUTCFullYear()%1e4,t,4)}function pS(e,t){var n=e.getUTCDay();return e=n>=4||n===0?zb(e):zb.ceil(e),ax(e.getUTCFullYear()%1e4,t,4)}function mS(){return`+0000`}function hS(){return`%`}function gS(e){return+e}function _S(e){return Math.floor(e/1e3)}var vS,yS,bS;xS({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function xS(e){return vS=ex(e),yS=vS.format,vS.parse,bS=vS.utcFormat,vS.utcParse,vS}function SS(e){return new Date(e)}function CS(e){return e instanceof Date?+e:+new Date(+e)}function wS(e,t,n,r,i,a,o,s,c,l){var u=Ey(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,CS)):f().map(SS)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(Wy(n,e)):u},u.copy=function(){return wy(u,wS(e,t,n,r,i,a,o,s,c,l))},u}function TS(){return _v.apply(wS(Yb,Xb,Wb,Hb,kb,Tb,Cb,xb,bb,yS).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ES(){return _v.apply(wS(qb,Jb,Gb,Ub,Fb,Eb,wb,Sb,bb,bS).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function DS(){var e=0,t=1,n,r,i,a,o=Sy,s=!1,c;function l(e){return e==null||isNaN(e=+e)?c:o(i===0?.5:(e=(a(e)-n)*i,s?Math.max(0,Math.min(1,e)):e))}l.domain=function(o){return arguments.length?([e,t]=o,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),l):[e,t]},l.clamp=function(e){return arguments.length?(s=!!e,l):s},l.interpolator=function(e){return arguments.length?(o=e,l):o};function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,o=e(n,r),l):[o(0),o(1)]}}return l.range=u(vy),l.rangeRound=u(yy),l.unknown=function(e){return arguments.length?(c=e,l):c},function(o){return a=o,n=o(e),r=o(t),i=n===r?0:1/(r-n),l}}function OS(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function kS(){var e=Vy(DS()(Sy));return e.copy=function(){return OS(e,kS())},vv.apply(e,arguments)}function AS(){var e=Jy(DS()).domain([1,10]);return e.copy=function(){return OS(e,AS()).base(e.base())},vv.apply(e,arguments)}function jS(){var e=Qy(DS());return e.copy=function(){return OS(e,jS()).constant(e.constant())},vv.apply(e,arguments)}function MS(){var e=tb(DS());return e.copy=function(){return OS(e,MS()).exponent(e.exponent())},vv.apply(e,arguments)}function NS(){return MS.apply(null,arguments).exponent(.5)}function PS(){var e=[],t=Sy;
41function n(n){if(n!=null&&!isNaN(n=+n))return t((Y_(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(H_),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((n,r)=>t(r/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,r)=>mv(e,r/t))},n.copy=function(){return PS(t).domain(e)},vv.apply(n,arguments)}function FS(){var e=0,t=.5,n=1,r=1,i,a,o,s,c,l=Sy,u,d=!1,f;function p(e){return isNaN(e=+e)?f:(e=.5+((e=+u(e))-a)*(r*e<r*a?s:c),l(d?Math.max(0,Math.min(1,e)):e))}p.domain=function(l){return arguments.length?([e,t,n]=l,i=u(e=+e),a=u(t=+t),o=u(n=+n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p):[e,t,n]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(l=e,p):l};function m(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,l=Tte(e,[n,r,i]),p):[l(0),l(.5),l(1)]}}return p.range=m(vy),p.rangeRound=m(yy),p.unknown=function(e){return arguments.length?(f=e,p):f},function(l){return u=l,i=l(e),a=l(t),o=l(n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p}}function IS(){var e=Vy(FS()(Sy));return e.copy=function(){return OS(e,IS())},vv.apply(e,arguments)}function LS(){var e=Jy(FS()).domain([.1,1,10]);return e.copy=function(){return OS(e,LS()).base(e.base())},vv.apply(e,arguments)}function RS(){var e=Qy(FS());return e.copy=function(){return OS(e,RS()).constant(e.constant())},vv.apply(e,arguments)}function zS(){var e=tb(FS());return e.copy=function(){return OS(e,zS()).exponent(e.exponent())},vv.apply(e,arguments)}function BS(){return zS.apply(null,arguments).exponent(.5)}var VS=c({scaleBand:()=>xv,scaleDiverging:()=>IS,scaleDivergingLog:()=>LS,scaleDivergingPow:()=>zS,scaleDivergingSqrt:()=>BS,scaleDivergingSymlog:()=>RS,scaleIdentity:()=>Uy,scaleImplicit:()=>yv,scaleLinear:()=>Hy,scaleLog:()=>Yy,scaleOrdinal:()=>bv,scalePoint:()=>Cv,scalePow:()=>nb,scaleQuantile:()=>ob,scaleQuantize:()=>sb,scaleRadial:()=>ab,scaleSequential:()=>kS,scaleSequentialLog:()=>AS,scaleSequentialPow:()=>MS,scaleSequentialQuantile:()=>PS,scaleSequentialSqrt:()=>NS,scaleSequentialSymlog:()=>jS,scaleSqrt:()=>rb,scaleSymlog:()=>$y,scaleThreshold:()=>cb,scaleTime:()=>TS,scaleUtc:()=>ES,tickFormat:()=>By});function HS(e){if(e in VS)return VS[e]();var t=`scale${Dc(e)}`;if(t in VS)return VS[t]()}function US(e,t,n){if(typeof e==`function`)return e.copy().domain(t).range(n);if(e!=null){var r=HS(e);if(r!=null)return r.domain(t).range(n),r}}function WS(e,t,n,r){if(!(n==null||r==null))return typeof e.scale==`function`?US(e.scale,n,r):US(t,n,r)}function GS(e){return`scale${Dc(e)}`}function KS(e){return GS(e)in VS}var qS=(e,t,n)=>{if(e!=null){var{scale:r,type:i}=e;if(r===`auto`)return i===`category`&&n&&(n.indexOf(`LineChart`)>=0||n.indexOf(`AreaChart`)>=0||n.indexOf(`ComposedChart`)>=0&&!t)?`point`:i===`category`?`band`:`linear`;if(typeof r==`string`)return KS(r)?r:`point`}};function JS(e,t){for(var n=0,r=e.length,i=e[0]<e[e.length-1];n<r;){var a=Math.floor((n+r)/2);(i?e[a]<t:e[a]>t)?n=a+1:r=a}return n}function YS(e,t){if(e){var n=t??e.domain(),r=n.map(t=>e(t)??0),i=e.range();if(!(n.length===0||i.length<2))return e=>{var t=JS(r,e);if(t<=0)return n[0];if(t>=n.length)return n[n.length-1];var i=r[t-1]??0,a=r[t]??0;return Math.abs(e-i)<=Math.abs(e-a)?n[t-1]:n[t]}}}function XS(e){if(e!=null)return`invert`in e&&typeof e.invert==`function`?e.invert.bind(e):YS(e,void 0)}function ZS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function QS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ZS(Object(n),!0).forEach(function(t){$S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $S(e,t,n){return(t=eC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eC(e){var t=tC(e,`string`);return typeof t==`symbol`?t:t+``}function tC(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var nC=[0,`auto`],rC={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:`preserveEnd`,minTickGap:5,mirror:!1,name:void 0,orientation:`bottom`,padding:{left:0,right:0},reversed:!1,scale:`auto`,tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:`category`,unit:void 0,niceTicks:`auto`},iC=(e,t)=>e.cartesianAxis.xAxis[t],aC=(e,t)=>iC(e,t)??rC,oC={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:nC,hide:!0,id:0,includeHidden:!1,interval:`preserveEnd`,minTickGap:5,mirror:!1,name:void 0,orientation:`left`,padding:{top:0,bottom:0},reversed:!1,scale:`auto`,tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:`number`,unit:void 0,niceTicks:`auto`,width:60},sC=(e,t)=>e.cartesianAxis.yAxis[t],cC=(e,t)=>sC(e,t)??oC,lC={domain:[0,`auto`],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:``,range:[64,64],scale:`auto`,type:`number`,unit:``},uC=(e,t)=>e.cartesianAxis.zAxis[t]??lC,dC=(e,t,n)=>{switch(t){case`xAxis`:return aC(e,n);case`yAxis`:return cC(e,n);case`zAxis`:return uC(e,n);case`angleAxis`:return S_(e,n);case`radiusAxis`:return C_(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},fC=(e,t,n)=>{switch(t){case`xAxis`:return aC(e,n);case`yAxis`:return cC(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},pC=(e,t,n)=>{switch(t){case`xAxis`:return aC(e,n);case`yAxis`:return cC(e,n);case`angleAxis`:return S_(e,n);case`radiusAxis`:return C_(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},mC=e=>e.graphicalItems.cartesianItems.some(e=>e.type===`bar`)||e.graphicalItems.polarItems.some(e=>e.type===`radialBar`);function hC(e,t){return n=>{switch(e){case`xAxis`:return`xAxisId`in n&&n.xAxisId===t;case`yAxis`:return`yAxisId`in n&&n.yAxisId===t;case`zAxis`:return`zAxisId`in n&&n.zAxisId===t;case`angleAxis`:return`angleAxisId`in n&&n.angleAxisId===t;
41case`radiusAxis`:return`radiusAxisId`in n&&n.radiusAxisId===t;default:return!1}}}var gC=e=>e.graphicalItems.cartesianItems,_C=q([j_,M_],hC),vC=(e,t,n)=>e.filter(n).filter(e=>t?.includeHidden===!0?!0:!e.hide),yC=q([gC,dC,_C],vC,{memoizeOptions:{resultEqualityCheck:L_}}),bC=q([yC],e=>e.filter(e=>e.type===`area`||e.type===`bar`).filter(F_)),xC=e=>e.filter(e=>!(`stackId`in e)||e.stackId===void 0),SC=q([yC],xC),CC=e=>e.map(e=>e.data).filter(Boolean).flat(1),wC=q([yC],CC,{memoizeOptions:{resultEqualityCheck:L_}}),TC=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},EC=q([wC,Kg],TC),DC=(e,t,n)=>t?.dataKey==null?n.length>0?n.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:Yf(e,t)}))):e.map(e=>({value:e})):e.map(e=>({value:Yf(e,t.dataKey)})),OC=q([EC,dC,yC],DC);function kC(e){if(yc(e)||e instanceof Date){var t=Number(e);if(J(t))return t}}function AC(e){if(Array.isArray(e)){var t=[kC(e[0]),kC(e[1])];return Jg(t)?t:void 0}var n=kC(e);if(n!=null)return[n,n]}function jC(e){return e.map(kC).filter(Oc)}function MC(e,t){var n=kC(e),r=kC(t);return n==null&&r==null?0:n==null?-1:r==null?1:n-r}var NC=q([OC],e=>e?.map(e=>e.value).sort(MC));function PC(e,t){switch(e){case`xAxis`:return t.direction===`x`;case`yAxis`:return t.direction===`y`;default:return!1}}function FC(e,t,n){return!n||typeof t!=`number`||_c(t)||!n.length?[]:jC(n.flatMap(n=>{var r=Yf(e,n.dataKey),i,a;if(Array.isArray(r)?[i,a]=r:i=a=r,!(!J(i)||!J(a)))return[t-i,t+a]}))}var IC=e=>pC(e,R_(e),z_(e)),LC=q([IC],e=>e?.dataKey),RC=q([bC,Kg,IC],P_),zC=(e,t,n,r)=>{var i=t.reduce((e,t)=>{if(t.stackId==null)return e;var n=e[t.stackId];return n??=[],n.push(t),e[t.stackId]=n,e},{});return Object.fromEntries(Object.entries(i).map(t=>{var[i,a]=t,o=r?[...a].reverse():a;return[i,{stackedData:np(e,o.map(N_),n),graphicalItems:o}]}))},BC=q([RC,bC,c_,l_],zC),VC=(e,t,n,r)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(r==null&&n!==`zAxis`){var o=lp(e,i,a);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},HC=q([dC],e=>e.allowDataOverflow),UC=e=>{if(e==null||!(`domain`in e))return nC;if(e.domain!=null)return e.domain;if(`ticks`in e&&e.ticks!=null){if(e.type===`number`){var t=jC(e.ticks);return[Math.min(...t),Math.max(...t)]}if(e.type===`category`)return e.ticks.map(String)}return e?.domain??nC},WC=q([dC],UC),GC=q([WC,HC],Xg),Zte=q([BC,Wg,j_,GC],VC,{memoizeOptions:{resultEqualityCheck:I_}}),KC=e=>e.errorBars,Qte=(e,t,n)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>PC(n,e)),qC=function(){var e=[...arguments].filter(Boolean);if(e.length!==0){var t=e.flat();return[Math.min(...t),Math.max(...t)]}},JC=(e,t,n,r,i)=>{var a,o;if(n.length>0&&e.forEach(e=>{n.forEach(n=>{var s=r[n.id]?.filter(e=>PC(i,e)),c=Yf(e,t.dataKey??n.dataKey),l=FC(e,c,s);if(l.length>=2){var u=Math.min(...l),d=Math.max(...l);(a==null||u<a)&&(a=u),(o==null||d>o)&&(o=d)}var f=AC(c);f!=null&&(a=a==null?f[0]:Math.min(a,f[0]),o=o==null?f[1]:Math.max(o,f[1]))})}),t?.dataKey!=null&&e.forEach(e=>{var n=AC(Yf(e,t.dataKey));n!=null&&(a=a==null?n[0]:Math.min(a,n[0]),o=o==null?n[1]:Math.max(o,n[1]))}),J(a)&&J(o))return[a,o]},$te=q([EC,dC,SC,KC,j_],JC,{memoizeOptions:{resultEqualityCheck:I_}});function ene(e){var{value:t}=e;if(yc(t)||t instanceof Date)return t}var tne=(e,t,n)=>{var r=e.map(ene).filter(e=>e!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&Cc(r))?Ug(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},YC=e=>e.referenceElements.dots,XC=(e,t,n)=>e.filter(e=>e.ifOverflow===`extendDomain`).filter(e=>t===`xAxis`?e.xAxisId===n:e.yAxisId===n),nne=q([YC,j_,M_],XC),ZC=e=>e.referenceElements.areas,rne=q([ZC,j_,M_],XC),QC=e=>e.referenceElements.lines,ine=q([QC,j_,M_],XC),$C=(e,t)=>{if(e!=null){var n=jC(e.map(e=>t===`xAxis`?e.x:e.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},ane=q(nne,j_,$C),ew=(e,t)=>{if(e!=null){var n=jC(e.flatMap(e=>[t===`xAxis`?e.x1:e.y1,t===`xAxis`?e.x2:e.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},one=q([rne,j_],ew);function sne(e){if(e.x!=null)return jC([e.x]);var t=e.segment?.map(e=>e.x);return t==null||t.length===0?[]:jC(t)}function cne(e){if(e.y!=null)return jC([e.y]);var t=e.segment?.map(e=>e.y);return t==null||t.length===0?[]:jC(t)}var tw=(e,t)=>{if(e!=null){var n=e.flatMap(e=>t===`xAxis`?sne(e):cne(e));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},lne=q(ane,q([ine,j_],tw),one,(e,t,n)=>qC(e,n,t)),nw=(e,t,n,r,i,a,o,s)=>n??ste(t,o===`vertical`&&s===`xAxis`||o===`horizontal`&&s===`yAxis`?qC(r,a,i):qC(a,i),e.allowDataOverflow),une=q([dC,WC,GC,Zte,$te,lne,rm,j_],nw,{memoizeOptions:{resultEqualityCheck:I_}}),dne=[0,1],rw=(e,t,n,r,i,a,o)=>
41{if(!((e==null||n==null||n.length===0)&&o===void 0)){var{dataKey:s,type:c}=e,l=Zf(t,a);return l&&s==null?Ug(0,n?.length??0):c===`category`?tne(r,e,l):i===`expand`?dne:o}},iw=q([dC,rm,EC,OC,c_,j_,une],rw),aw=q([dC,mC,u_],qS),ow=(e,t,n)=>{var{niceTicks:r}=t;if(r!==`none`){var i=UC(t),a=Array.isArray(i)&&(i[0]===`auto`||i[1]===`auto`);if((r===`snap125`||r===`adaptive`)&&t!=null&&t.tickCount&&Jg(e)){if(a)return i_(e,t.tickCount,t.allowDecimals,r);if(t.type===`number`)return a_(e,t.tickCount,t.allowDecimals,r)}if(r===`auto`&&n===`linear`&&t!=null&&t.tickCount){if(a&&Jg(e))return i_(e,t.tickCount,t.allowDecimals,`adaptive`);if(t.type===`number`&&Jg(e))return a_(e,t.tickCount,t.allowDecimals,`adaptive`)}}},sw=q([iw,pC,aw],ow),cw=(e,t,n,r)=>{if(r!==`angleAxis`&&e?.type===`number`&&Jg(t)&&Array.isArray(n)&&n.length>0){var i=t[0],a=n[0]??0,o=t[1],s=n[n.length-1]??0;return[Math.min(i,a),Math.max(o,s)]}return t},fne=q([dC,iw,sw,j_],cw),lw=q(q(OC,dC,(e,t)=>{if(!(!t||t.type!==`number`)){var n=1/0,r=Array.from(jC(e.map(e=>e.value))).sort((e,t)=>e-t),i=r[0],a=r[r.length-1];if(i==null||a==null)return 1/0;var o=a-i;if(o===0)return 1/0;for(var s=0;s<r.length-1;s++){var c=r[s],l=r[s+1];if(!(c==null||l==null)){var u=l-c;n=Math.min(n,u)}}return n/o}}),rm,s_,Pp,(e,t,n,r,i)=>i,(e,t,n,r,i)=>{if(!J(e))return 0;var a=t===`vertical`?r.height:r.width;if(i===`gap`)return e*a/2;if(i===`no-gap`){var o=Sc(n,e*a),s=e*a/2;return s-o-(s-o)/a*o}return 0}),pne=(e,t,n)=>{var r=aC(e,t);return r==null||typeof r.padding!=`string`?0:lw(e,`xAxis`,t,n,r.padding)},mne=(e,t,n)=>{var r=cC(e,t);return r==null||typeof r.padding!=`string`?0:lw(e,`yAxis`,t,n,r.padding)},hne=q(aC,pne,(e,t)=>{if(e==null)return{left:0,right:0};var{padding:n}=e;return typeof n==`string`?{left:t,right:t}:{left:(n.left??0)+t,right:(n.right??0)+t}}),gne=q(cC,mne,(e,t)=>{if(e==null)return{top:0,bottom:0};var{padding:n}=e;return typeof n==`string`?{top:t,bottom:t}:{top:(n.top??0)+t,bottom:(n.bottom??0)+t}}),_ne=q([Pp,hne,Bp,zp,(e,t,n)=>n],(e,t,n,r,i)=>{var{padding:a}=r;return i?[a.left,n.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),vne=q([Pp,rm,gne,Bp,zp,(e,t,n)=>n],(e,t,n,r,i,a)=>{var{padding:o}=i;return a?[r.height-o.bottom,o.top]:t===`horizontal`?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),uw=(e,t,n,r)=>{switch(t){case`xAxis`:return _ne(e,n,r);case`yAxis`:return vne(e,n,r);case`zAxis`:return uC(e,n)?.range;case`angleAxis`:return O_(e);case`radiusAxis`:return k_(e,n);default:return}},dw=q([dC,uw],g_),fw=q([dC,aw,q([aw,fne],V_),dw],WS),pw=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:i,scale:a}=n;if(Zf(e,r)&&(i===`number`||a!==`auto`))return t.map(e=>e.value)}},mw=q([rm,OC,pC,j_],pw),hw=q([fw],B_);q([fw],XS),q([fw,NC],YS),q([yC,KC,j_],Qte);function gw(e,t){return e.id<t.id?-1:+(e.id>t.id)}var _w=(e,t)=>t,vw=(e,t,n)=>n,yne=q(xp,_w,vw,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(gw)),bne=q(Sp,_w,vw,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(gw)),yw=(e,t)=>({width:e.width,height:t.height}),xne=(e,t)=>({width:typeof t.width==`number`?t.width:60,height:e.height}),bw=q(Pp,aC,yw),Sne=(e,t,n)=>{switch(t){case`top`:return e.top;case`bottom`:return n-e.bottom;default:return 0}},Cne=(e,t,n)=>{switch(t){case`left`:return e.left;case`right`:return n-e.right;default:return 0}},wne=q(vp,Pp,yne,_w,vw,(e,t,n,r,i)=>{var a={},o;return n.forEach(n=>{var s=yw(t,n);o??=Sne(t,r,e);var c=r===`top`&&!i||r===`bottom`&&i;a[n.id]=o-Number(c)*s.height,o+=(c?-1:1)*s.height}),a}),Tne=q(_p,Pp,bne,_w,vw,(e,t,n,r,i)=>{var a={},o;return n.forEach(n=>{var s=xne(t,n);o??=Cne(t,r,e);var c=r===`left`&&!i||r===`right`&&i;a[n.id]=o-Number(c)*s.width,o+=(c?-1:1)*s.width}),a}),Ene=q([Pp,aC,(e,t)=>{var n=aC(e,t);if(n!=null)return wne(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),Dne=q([Pp,cC,(e,t)=>{var n=cC(e,t);if(n!=null)return Tne(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),xw=q(Pp,cC,(e,t)=>({width:typeof t.width==`number`?t.width:60,height:e.height})),Sw=(e,t,n)=>{switch(t){case`xAxis`:return bw(e,n).width;case`yAxis`:return xw(e,n).height;default:return}},Cw=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=n,s=Zf(e,r),c=t.map(e=>e.value);if(o&&s&&a===`category`&&i&&Cc(c))return c}},ww=q([rm,OC,dC,j_],Cw),Tw=q([rm,fC,aw,hw,ww,mw,uw,sw,j_],(e,t,n,r,i,a,o,s,c)=>{if(t!=null){var l=Zf(e,c);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:c,categoricalDomain:a,duplicateDomain:i,isCategorical:l,niceTicks:s,range:o,realScaleType:n,scale:r}}}),Ew=q([rm,pC,aw,hw,sw,uw,ww,mw,j_],(e,t,n,r,i,a,o,s,c)=>{if(!(t==null||r==null)){var l=Zf(e,c),{type:u,ticks:d,tickCount:f}=t,p=n===`scaleBand`&&typeof r.bandwidth==`function`?r.bandwidth()/2:2,m=u===`category`&&r.bandwidth?r.bandwidth()/p:0;m=c===`angleAxis`&&a!=null&&a.length>=2?gc(a[0]-a[1])*2*m:m;var h=d||i;return h?h.map((e,t)=>{var n=o?o.indexOf(e):e,i=r.map(n);return J(i)?{index:t,coordinate:i+m,value:e,offset:m}:null}
41).filter(Oc):l&&s?s.map((e,t)=>{var n=r.map(e);return J(n)?{coordinate:n+m,value:e,index:t,offset:m}:null}).filter(Oc):r.ticks?r.ticks(f).map((e,t)=>{var n=r.map(e);return J(n)?{coordinate:n+m,value:e,index:t,offset:m}:null}).filter(Oc):r.domain().map((e,t)=>{var n=r.map(e);return J(n)?{coordinate:n+m,value:o?o[e]:e,index:t,offset:m}:null}).filter(Oc)}}),Dw=q([rm,pC,hw,uw,ww,mw,j_],(e,t,n,r,i,a,o)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var s=Zf(e,o),{tickCount:c}=t,l=0;return l=o===`angleAxis`&&r?.length>=2?gc(r[0]-r[1])*2*l:l,s&&a?a.map((e,t)=>{var r=n.map(e);return J(r)?{coordinate:r+l,value:e,index:t,offset:l}:null}).filter(Oc):n.ticks?n.ticks(c).map((e,t)=>{var r=n.map(e);return J(r)?{coordinate:r+l,value:e,index:t,offset:l}:null}).filter(Oc):n.domain().map((e,t)=>{var r=n.map(e);return J(r)?{coordinate:r+l,value:i?i[e]:e,index:t,offset:l}:null}).filter(Oc)}}),Ow=q(dC,hw,(e,t)=>{if(!(e==null||t==null))return QS(QS({},e),{},{scale:t})});q((e,t,n)=>uC(e,n),q([q([dC,aw,iw,dw],WS)],B_),(e,t)=>{if(!(e==null||t==null))return QS(QS({},e),{},{scale:t})});var One=q([rm,xp,Sp],(e,t,n)=>{switch(e){case`horizontal`:return t.some(e=>e.reversed)?`right-to-left`:`left-to-right`;case`vertical`:return n.some(e=>e.reversed)?`bottom-to-top`:`top-to-bottom`;case`centric`:case`radial`:return`left-to-right`;default:return}});q([(e,t,n)=>e.renderedTicks[t]?.[n]],e=>{if(!(!e||e.length===0))return t=>{var n=1/0,r=e[0];for(var i of e){var a=Math.abs(i.coordinate-t);a<n&&(n=a,r=i)}return r?.value}});var kw=e=>e.options.defaultTooltipEventType,Aw=e=>e.options.validateTooltipEventTypes;function jw(e,t,n){if(e==null)return t;var r=e?`axis`:`item`;return n==null?t:n.includes(r)?r:t}function Mw(e,t){return jw(t,kw(e),Aw(e))}var Nw=(e,t)=>{var n,r=Number(t);if(!(_c(r)||t==null))return r>=0?e==null||(n=e[r])==null?void 0:n.value:void 0},kne=e=>e.tooltip.settings,Pw={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},Fw=qd({name:`tooltip`,initialState:{itemInteraction:{click:Pw,hover:Pw},axisInteraction:{click:Pw,hover:Pw},keyboardInteraction:Pw,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:`hover`,axisId:0,active:!1,defaultIndex:void 0}},reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(Ym(t.payload))},prepare:Md()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,i=vd(e).tooltipItemPayloads.indexOf(Ym(n));i>-1&&(e.tooltipItemPayloads[i]=Ym(r))},prepare:Md()},removeTooltipEntrySettings:{reducer(e,t){var n=vd(e).tooltipItemPayloads.indexOf(Ym(t.payload));n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:Md()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:Ane,replaceTooltipEntrySettings:jne,removeTooltipEntrySettings:Mne,setTooltipSettingsState:Nne,setActiveMouseOverItemIndex:Iw,mouseLeaveItem:Pne,mouseLeaveChart:Lw,setActiveClickItemIndex:Fne,setMouseOverAxisIndex:Rw,setMouseClickAxisIndex:Ine,setSyncInteraction:zw,setKeyboardInteraction:Bw}=Fw.actions,Lne=Fw.reducer;function Vw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
41t%2?Vw(Object(n),!0).forEach(function(t){Rne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rne(e,t,n){return(t=zne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zne(e){var t=Bne(e,`string`);return typeof t==`symbol`?t:t+``}function Bne(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Vne(e,t,n){return t===`axis`?n===`click`?e.axisInteraction.click:e.axisInteraction.hover:n===`click`?e.itemInteraction.click:e.itemInteraction.hover}function Hne(e){return e.index!=null}var Uw=(e,t,n,r)=>{if(t==null)return Pw;var i=Vne(e,t,n);if(i==null)return Pw;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(Hne(i)){if(a)return Hw(Hw({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return Hw(Hw({},Pw),{},{coordinate:i.coordinate})};function Une(e){if(typeof e==`number`)return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function Wne(e,t){var n=Une(e),r=t[0],i=t[1];return n===void 0?!1:n>=Math.min(r,i)&&n<=Math.max(r,i)}function Gne(e,t,n){if(n==null||t==null)return!0;var r=Yf(e,t);return r==null||!Jg(n)?!0:Wne(r,n)}var Ww=(e,t,n,r)=>{var i=e?.index;if(i==null)return null;var a=Number(i);if(!J(a))return i;var o=0,s=1/0;t.length>0&&(s=t.length-1);var c=Math.max(o,Math.min(a,s)),l=t[c];return l==null||Gne(l,n,r)?String(c):null},Gw=(e,t,n,r,i,a,o)=>{if(a!=null){var s=o[0]?.getPosition(a);if(s!=null)return s;var c=i?.[Number(a)];if(c)switch(n){case`horizontal`:return{x:c.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:c.coordinate}}}},Kw=(e,t,n,r)=>{if(t===`axis`)return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i=n===`hover`?e.itemInteraction.hover.graphicalItemId:e.itemInteraction.click.graphicalItemId;if(e.syncInteraction.active&&i==null)return e.tooltipItemPayloads;if(i==null&&r!=null){var a=e.tooltipItemPayloads[0];return a==null?[]:[a]}return e.tooltipItemPayloads.filter(e=>e.settings?.graphicalItemId===i)},qw=e=>e.options.tooltipPayloadSearcher,Jw=e=>e.tooltip;function Yw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Yw(Object(n),!0).forEach(function(t){Kne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kne(e,t,n){return(t=qne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qne(e){var t=Jne(e,`string`);return typeof t==`symbol`?t:t+``}function Jne(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Yne(e){if(typeof e==`string`||typeof e==`number`)return e}function Xne(e){if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`)return e}function Zne(e){if(typeof e==`string`||typeof e==`number`)return e;if(typeof e==`function`)return t=>e(t)}function Zw(e){if(typeof e==`string`)return e}function Qne(e){if(!(typeof e!=`object`||!e))return{name:`name`in e?Yne(e.n
41ame):void 0,unit:`unit`in e?Xne(e.unit):void 0,dataKey:`dataKey`in e?Zne(e.dataKey):void 0,payload:`payload`in e?e.payload:void 0,color:`color`in e?Zw(e.color):void 0,fill:`fill`in e?Zw(e.fill):void 0}}function $ne(e,t){return e??t}var Qw=(e,t,n,r,i,a,o)=>{if(!(t==null||a==null)){var{chartData:s,computedData:c,dataStartIndex:l,dataEndIndex:u}=n;return e.reduce((e,n)=>{var{dataDefinedOnItem:d,settings:f}=n,p=$ne(d,s),m=Array.isArray(p)?Hf(p,l,u):p,h=f?.dataKey??r,g=f?.nameKey,_=r&&Array.isArray(m)&&!Array.isArray(m[0])&&o===`axis`?Tc(m,r,i):a(m,t,c,g);return Array.isArray(_)?_.forEach(t=>{var n=Qne(t),r=n?.name,i=n?.dataKey,a=n?.payload,o=Xw(Xw({},f),{},{name:r,unit:n?.unit,color:n?.color??f?.color,fill:n?.fill??f?.fill});e.push(pp({tooltipEntrySettings:o,dataKey:i,payload:a,value:Yf(a,i),name:r==null?void 0:String(r)}))}):e.push(pp({tooltipEntrySettings:f,dataKey:h,payload:_,value:Yf(_,h),name:Yf(_,g)??f?.name})),e},[])}},$w=q([IC,mC,u_],qS),eT=q([q([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),IC,q([R_,z_],hC)],vC,{memoizeOptions:{resultEqualityCheck:L_}}),ere=q([eT],e=>e.filter(F_)),tT=q([q([eT],CC,{memoizeOptions:{resultEqualityCheck:L_}}),Wg],TC),tre=q([ere,Wg,IC],P_),nT=q([tT,IC,eT],DC),rT=q([IC],UC),iT=q([rT,q([IC],e=>e.allowDataOverflow)],Xg),nre=q([q([tre,q([eT],e=>e.filter(F_)),c_,l_],zC),Wg,R_,iT],VC),rre=q([tT,IC,q([eT],xC),KC,R_],JC,{memoizeOptions:{resultEqualityCheck:I_}}),ire=q([q([YC,R_,z_],XC),R_],$C),are=q([q([ZC,R_,z_],XC),R_],ew),aT=q([IC,rm,tT,nT,c_,R_,q([IC,rT,iT,nre,rre,q([ire,q([q([QC,R_,z_],XC),R_],tw),are],qC),rm,R_],nw)],rw),ore=q([IC,aT,q([aT,IC,$w],ow),R_],cw),oT=e=>uw(e,R_(e),z_(e),!1),sT=q([IC,oT],g_),cT=q([rm,IC,$w,q([q([IC,$w,ore,sT],WS)],B_),oT,q([rm,nT,IC,R_],Cw),q([rm,nT,IC,R_],pw),R_],(e,t,n,r,i,a,o,s)=>{if(t){var{type:c}=t,l=Zf(e,s);if(r){var u=n===`scaleBand`&&r.bandwidth?r.bandwidth()/2:2,d=c===`category`&&r.bandwidth?r.bandwidth()/u:0;return d=s===`angleAxis`&&i!=null&&i?.length>=2?gc(i[0]-i[1])*2*d:d,l&&o?o.map((e,t)=>{var n=r.map(e);return J(n)?{coordinate:n+d,value:e,index:t,offset:d}:null}).filter(Oc):r.domain().map((e,t)=>{var n=r.map(e);return J(n)?{coordinate:n+d,value:a?a[e]:e,index:t,offset:d}:null}).filter(Oc)}}}),lT=q([kw,Aw,kne],(e,t,n)=>jw(n.shared,e,t)),uT=e=>e.tooltip.settings.trigger,dT=e=>e.tooltip.settings.defaultIndex,fT=q([Jw,lT,uT,dT],Uw),pT=q([fT,tT,LC,aT],Ww),mT=q([cT,pT],Nw),hT=q([fT],e=>{if(e)return e.dataKey});q([fT],e=>{if(e)return e.graphicalItemId});var gT=q([Jw,lT,uT,dT],Kw),sre=q([fT,q([_p,vp,rm,Pp,cT,dT,gT],Gw)],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),cre=q([fT],e=>e?.active??!1),lre=q([q([gT,pT,Wg,LC,mT,qw,lT],Qw)],e=>{if(e!=null){var t=e.map(e=>e.payload).filter(e=>e!=null);return Array.from(new Set(t))}});function _T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_T(Object(n),!0).forEach(function(t){ure(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_T(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ure(e,t,n){return(t=dre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dre(e){var t=fre(e,`string`);return typeof t==`symbol`?t:t+``}function fre(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var pre=(e,t,n,r)=>{var i=t.find(e=>e&&e.index===n);if(i){if(e===`horizontal`)return{x:i.coordinate,y:r.relativeY};if(e===`vertical`)return{x:r.relativeX,y:i.coordinate}}return{x:0,y:0}},mre=(e,t,n,r)=>{var i=t.find(e=>e&&e.index===n);if(i){if(e===`centric`){var a=i.coordinate,{radius:o}=r;return vT(vT(vT({},r),Eg(r.cx,r.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,{angle:c}=r;return vT(vT(vT({},r),Eg(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function hre(e,t){var{relativeX:n,relativeY:r}=e;return n>=t.left&&n<=t.left+t.width&&r>
41=t.top&&r<=t.top+t.height}var yT=(e,t,n,r,i)=>{var a=t?.length??0;if(a<=1||e==null)return 0;if(r===`angleAxis`&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var o=0;o<a;o++){var s=o>0?n[o-1]?.coordinate:n[a-1]?.coordinate,c=n[o]?.coordinate,l=o>=a-1?n[0]?.coordinate:n[o+1]?.coordinate,u=void 0;if(!(s==null||c==null||l==null))if(gc(c-s)!==gc(l-c)){var d=[];if(gc(l-c)===gc(i[1]-i[0])){u=l;var f=c+i[1]-i[0];d[0]=Math.min(f,(f+s)/2),d[1]=Math.max(f,(f+s)/2)}else{u=s;var p=l+i[1]-i[0];d[0]=Math.min(c,(p+c)/2),d[1]=Math.max(c,(p+c)/2)}var m=[Math.min(c,(u+c)/2),Math.max(c,(u+c)/2)];if(e>m[0]&&e<=m[1]||e>=d[0]&&e<=d[1])return n[o]?.index}else{var h=Math.min(s,l),g=Math.max(s,l);if(e>(h+c)/2&&e<=(g+c)/2)return n[o]?.index}}else if(t)for(var _=0;_<a;_++){var v=t[_];if(v!=null){var y=t[_+1],b=t[_-1];if(_===0&&y!=null&&e<=(v.coordinate+y.coordinate)/2||_===a-1&&b!=null&&e>(v.coordinate+b.coordinate)/2||_>0&&_<a-1&&b!=null&&y!=null&&e>(v.coordinate+b.coordinate)/2&&e<=(v.coordinate+y.coordinate)/2)return v.index}}return-1},gre=()=>K(u_),bT=(e,t)=>t,xT=(e,t,n)=>n,ST=(e,t,n,r)=>r,_re=q(cT,e=>Bl(e,e=>e.coordinate)),CT=q([Jw,bT,xT,ST],Uw),wT=q([CT,tT,LC,aT],Ww),TT=q([Jw,bT,xT,ST],Kw),ET=q([_p,vp,rm,Pp,cT,ST,TT],Gw);q([CT,ET],(e,t)=>e.coordinate??t),q([TT,wT,Wg,LC,q([cT,wT],Nw),qw,bT],Qw),q([CT,wT],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t}));var vre=(e,t,n,r,i,a,o)=>{if(!(!e||!n||!r||!i)&&hre(e,o)){var s=yT(hp(e,t),a,i,n,r),c=pre(t,i,s,e);return{activeIndex:String(s),activeCoordinate:c}}},yre=(e,t,n,r,i,a,o)=>{if(!(!e||!r||!i||!a||!n)){var s=Mg(e,n);if(s){var c=yT(gp(s,t),o,a,r,i),l=mre(t,a,c,s);return{activeIndex:String(c),activeCoordinate:l}}}},bre=(e,t,n,r,i,a,o,s)=>{if(!(!e||!t||!r||!i||!a))return t===`horizontal`||t===`vertical`?vre(e,t,r,i,a,o,s):yre(e,t,n,r,i,a,o)},xre=q(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),Sre=q(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(p_));return Array.from(new Set(t)).sort((e,t)=>e-t)},{memoizeOptions:{resultEqualityCheck:gte}});function DT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function OT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?DT(Object(n),!0).forEach(function(t){Cre(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cre(e,t,n){return(t=wre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wre(e){var t=Tre(e,`string`);return typeof t==`symbol`?t:t+``}function Tre(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ere={zIndexMap:Object.values(p_).reduce((e,t)=>OT(OT({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},Dre=new Set(Object.values(p_));function Ore(e){return Dre.has(e)}var kT=qd({name:`zIndex`,initialState:Ere,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:Md()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(--e.zIndexMap[n].consumers,e.zIndexMap[n].consumers<=0&&!Ore(n)&&delete e.zIndexMap[n])},prepare:Md()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:r,isPanorama:i}=t.payload;e.zIndexMap[n]?i?e.zIndexMap[n].panoramaElement=Ym(r):e.zIndexMap[n].element=Ym(r):e.zIndexMap[n]={consumers:0,element:i?void 0:Ym(r),panoramaElement:i?Ym(r):void 0}},prepare:Md()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:Md()}}}),{registerZIndexPortal:kre,unregisterZIndexPortal:Are,registerZIndexPortalElement:jre,unregisterZIndexPortalElement:Mre}=kT.actions,Nre=kT.reducer,AT=u(_());function jT(e){var{zIndex:t,children:n}
41=e,r=mee()&&t!==void 0&&t!==0,i=Rp(),a=pl();(0,w.useLayoutEffect)(()=>r?(a(kre({zIndex:t})),()=>{a(Are({zIndex:t}))}):kc,[a,t,r]);var o=K(e=>xre(e,t,i));return r?o?(0,AT.createPortal)(n,o):null:n}var Pre=(0,w.createContext)(null),Fre=u(s(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)}))(),1).default,MT=new Fre,NT=`recharts.syncEvent.tooltip`,PT=`recharts.syncEvent.brush`,FT=(e,t)=>{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!_c(n))return e[n]}},IT=qd({name:`options`,initialState:{chartName:``,tooltipPayloadSearcher:()=>void 0,eventEmitter:void 0,defaultTooltipEventType:`axis`},reducers:{createEventEmitter:e=>{e.eventEmitter??=Symbol(`rechartsEventEmitter`)}}}),Ire=IT.reducer,{createEventEmitter:Lre}=IT.actions,LT=qd({name:`chartData`,initialState:{chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},reducers:{setChartData(e,t){if(e.chartData=Ym(t.payload),t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:RT,setDataStartEndIndexes:Rre,setComputedData:zre}=LT.actions,Bre=LT.reducer,Vre=[`x`,`y`];function zT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
41t%2?zT(Object(n),!0).forEach(function(t){Hre(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hre(e,t,n){return(t=Ure(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ure(e){var t=Wre(e,`string`);return typeof t==`symbol`?t:t+``}function Wre(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function VT(e,t){if(e==null)return{};var n,r,i=HT(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function HT(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function UT(){var e=K(d_),t=K(f_),n=pl(),r=K(dte),i=K(cT),a=im(),o=em();(0,w.useEffect)(()=>{if(e==null)return kc;var s=(s,c,l)=>{if(t!==l&&e===s){if(r===`index`){var u;if(o&&c!=null&&(u=c.payload)!=null&&u.coordinate&&c.payload.sourceViewBox){var d=c.payload.coordinate,{x:f,y:p}=d,m=VT(d,Vre),{x:h,y:g,width:_,height:v}=c.payload.sourceViewBox,y=BT(BT({},m),{},{x:o.x+(_?(f-h)/_:0)*o.width,y:o.y+(v?(p-g)/v:0)*o.height});n(BT(BT({},c),{},{payload:BT(BT({},c.payload),{},{coordinate:y})}))}else n(c);return}if(i!=null){var b;typeof r==`function`?b=i[r(i,{activeTooltipIndex:c.payload.index==null?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:c.payload.index==null?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate})]:r===`value`&&(b=i.find(e=>String(e.value)===c.payload.label));var{coordinate:x}=c.payload;if(b==null||c.payload.active===!1||x==null||o==null){n(zw({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:S,y:C}=x,w=Math.min(S,o.x+o.width),T=Math.min(C,o.y+o.height),E={x:a===`horizontal`?b.coordinate:w,y:a===`horizontal`?T:b.coordinate};n(zw({active:c.payload.active,coordinate:E,dataKey:c.payload.dataKey,index:String(b.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId}))}}};return MT.on(NT,s),()=>{MT.off(NT,s)}},[K(e=>e.rootProps.className),n,t,e,r,i,a,o])}function WT(){var e=K(d_),t=K(f_),n=pl();(0,w.useEffect)(()=>{if(e==null)return kc;var r=(r,i,a)=>{t!==a&&e===r&&n(Rre(i))};return MT.on(PT,r),()=>{MT.off(PT,r)}},[n,t,e])}function GT(){var e=pl();(0,w.useEffect)(()=>{e(Lre())},[e]),UT(),WT()}var KT=e=>null;KT.displayName=`Cell`;function qT(e,t,n){return(t=JT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JT(e){var t=YT(e,`string`);return typeof t==`symbol`?t:t+``}function YT(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var XT=class{constructor(e){qT(this,`cache`,new Map),this.maxSize=e}get(e){var t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}};function ZT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function QT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ZT(Object(n),!0).forEach(function(t){$T(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZT(Object(n)).forEac
41h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $T(e,t,n){return(t=eE(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eE(e){var t=tE(e,`string`);return typeof t==`symbol`?t:t+``}function tE(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var nE=QT({},{cacheSize:2e3,enableCache:!0}),rE=new XT(nE.cacheSize),iE={position:`absolute`,top:`-20000px`,left:0,padding:0,margin:0,border:`none`,whiteSpace:`pre`},aE=`recharts_measurement_span`;function oE(e,t){return`${e}|${t.fontSize||``}|${t.fontFamily||``}|${t.fontWeight||``}|${t.fontStyle||``}|${t.letterSpacing||``}|${t.textTransform||``}`}var sE=(e,t)=>{try{var n=document.getElementById(aE);n||(n=document.createElement(`span`),n.setAttribute(`id`,aE),n.setAttribute(`aria-hidden`,`true`),document.body.appendChild(n)),Object.assign(n.style,iE,t),n.textContent=`${e}`;var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},cE=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||ph.isSsr)return{width:0,height:0};if(!nE.enableCache)return sE(e,t);var n=oE(e,t),r=rE.get(n);if(r)return r;var i=sE(e,t);return rE.set(n,i),i},lE;function uE(e,t,n){return(t=dE(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dE(e){var t=fE(e,`string`);return typeof t==`symbol`?t:t+``}function fE(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var pE=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,mE=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,hE=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,gE=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,_E={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},vE=[`cm`,`mm`,`pt`,`pc`,`in`,`Q`,`px`];function yE(e){return vE.includes(e)}var bE=`NaN`;function xE(e,t){return e*_E[t]}var SE=class e{static parse(t){var[,n,r]=gE.exec(t)??[];return n==null?e.NaN:new e(parseFloat(n),r??``)}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,_c(e)&&(this.unit=``),t!==``&&!hE.test(t)&&(this.num=NaN,this.unit=``),yE(t)&&(this.num=xE(e,t),this.unit=`px`)}add(t){return this.unit===t.unit?new e(this.num+t.num,this.unit):new e(NaN,``)}subtract(t){return this.unit===t.unit?new e(this.num-t.num,this.unit):new e(NaN,``)}multiply(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num/t.num,this.unit||t.unit)}toString(){return`${this.num}${this.unit}`}isNaN(){return _c(this.num)}};lE=SE,uE(SE,`NaN`,new lE(NaN,``));function CE(e){if(e==null||e.includes(bE))return bE;for(var t=e;t.includes(`*`)||t.includes(`/`);){var[,n,r,i]=pE.exec(t)??[],a=SE.parse(n??``),o=SE.parse(i??``),s=r===`*`?a.multiply(o):a.divide(o);if(s.isNaN())return bE;t=t.replace(pE,s.toString())}for(;t.includes(`+`)||/.-\d+(?:\.\d+)?/.test(t);){var[,c,l,u]=mE.exec(t)??[],d=SE.parse(c??``),f=SE.parse(u??``),p=l===`+`?d.add(f):d.subtract(f);if(p.isNaN())return bE;t=t.replace(mE,p.toString())}return t}var wE=/\(([^()]*)\)/;function TE(e){for(var t=e,n;(n=wE.exec(t))!=null;){var[,r]=n;t=t.replace(wE,CE(r))}return t}function EE(e){var t=e.replace(/\s+/g,``);return t=TE(t),t=CE(t),t}function DE(e){try{return EE(e)}catch{return bE}}function OE(e){var t=DE(e.slice(5,-1));return t===bE?``:t}var kE=[`x`,`y`,`lineHeight`,`capHeight`,`fill`,`scaleToFit`,`textAnchor`,`verticalAnchor`],AE=[`dx`,`dy`,`angle`,`className`,`breakAll`];function jE(){return jE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jE.apply(null,arguments)}function ME(e,t){if(e==null)return{};var n,r,i=NE(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function NE(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var PE=/[ \f\n\r\t\v\u2028\u2029]+/,FE=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];return Ec(t)||(i=n?t.toString().split(``):t.toString().split(PE)),{wordsWithComputedWidth:i.map(e=>({word:e,width:cE(e,r).width})),spaceWidth:n?0:cE(`\xA0`,r).width}}catch{return null}};function IE(e){return e===`start`||e===`middle`||e===`end`||e===`inherit`}function LE(e){return Ec(e)||typeof e==`string`||typeof e==`number`||typeof e==`boolean`}var RE=(e,t,n,r)=>e.reduce((e,i)=>{var{word:a,width:o}=i,s=e[e.length-1];if(s&&o!=null&&(t==null||r||s.width+o+n<Number(t)))s.words.push(a),s.width+=o+n;else{var c={words:[a],width:o};e.push(c)}return e},[]),zE=e=>e.reduce((e,t)=>
41e.width>t.width?e:t),BE=`…`,VE=(e,t,n,r,i,a,o,s)=>{var c=FE({breakAll:n,style:r,children:e.slice(0,t)+BE});if(!c)return[!1,[]];var l=RE(c.wordsWithComputedWidth,a,o,s);return[l.length>i||zE(l).width>Number(a),l]},HE=(e,t,n,r,i)=>{var{maxLines:a,children:o,style:s,breakAll:c}=e,l=G(a),u=String(o),d=RE(t,r,n,i);if(!l||i||!(d.length>a||zE(d).width>Number(r)))return d;for(var f=0,p=u.length-1,m=0,h;f<=p&&m<=u.length-1;){var g=Math.floor((f+p)/2),[_,v]=VE(u,g-1,c,s,a,r,n,i),[y]=VE(u,g,c,s,a,r,n,i);if(!_&&!y&&(f=g+1),_&&y&&(p=g-1),!_&&y){h=v;break}m++}return h||d},UE=e=>[{words:Ec(e)?[]:e.toString().split(PE),width:void 0}],WE=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:a,maxLines:o}=e;if((t||n)&&!ph.isSsr){var s,c,l=FE({breakAll:a,children:r,style:i});if(l){var{wordsWithComputedWidth:u,spaceWidth:d}=l;s=u,c=d}else return UE(r);return HE({breakAll:a,children:r,maxLines:o,style:i},s,c,t,!!n)}return UE(r)},GE=`#808080`,KE={angle:0,breakAll:!1,capHeight:`0.71em`,fill:GE,lineHeight:`1em`,scaleToFit:!1,textAnchor:`start`,verticalAnchor:`end`,x:0,y:0},qE=(0,w.forwardRef)((e,t)=>{var n=$c(e,KE),{x:r,y:i,lineHeight:a,capHeight:o,fill:s,scaleToFit:c,textAnchor:l,verticalAnchor:u}=n,d=ME(n,kE),f=(0,w.useMemo)(()=>WE({breakAll:d.breakAll,children:d.children,maxLines:d.maxLines,scaleToFit:c,style:d.style,width:d.width}),[d.breakAll,d.children,d.maxLines,c,d.style,d.width]),{dx:p,dy:m,angle:h,className:g,breakAll:_}=d,v=ME(d,AE);if(!yc(r)||!yc(i)||f.length===0)return null;var y=Number(r)+(G(p)?p:0),b=Number(i)+(G(m)?m:0);if(!J(y)||!J(b))return null;var x;switch(u){case`start`:x=OE(`calc(${o})`);break;case`middle`:x=OE(`calc(${(f.length-1)/2} * -${a} + (${o} / 2))`);break;default:x=OE(`calc(${f.length-1} * -${a})`);break}var S=[],C=f[0];if(c&&C!=null){var T=C.width,{width:E}=d;S.push(`scale(${G(E)&&G(T)?E/T:1})`)}return h&&S.push(`rotate(${h}, ${y}, ${b})`),S.length&&(v.transform=S.join(` `)),w.createElement(`text`,jE({},Co(v),{ref:t,x:y,y:b,className:rr(`recharts-text`,g),textAnchor:l,fill:s.includes(`url`)?GE:s}),f.map((e,t)=>{var n=e.words.join(_?``:` `);return w.createElement(`tspan`,{x:y,dy:t===0?x:a,key:`${n}-${t}`},n)}))});qE.displayName=`Text`;function JE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?JE(Object(n),!0).forEach(function(t){XE(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function XE(e,t,n){return(t=ZE(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZE(e){var t=QE(e,`string`);return typeof t==`symbol`?t:t+``}function QE(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var $E=e=>{var{viewBox:t,position:n,offset:r=0,parentViewBox:i,clamp:a}=e,{x:o,y:s,height:c,upperWidth:l,lowerWidth:u}=$p(t),d=o,f=o+(l-u)/2,p=(d+f)/2,m=(l+u)/2,h=d+l/2,g=c>=0?1:-1,_=g*r,v=g>0?`end`:`start`,y=g>0?`start`:`end`,b=l>=0?1:-1,x=b*r,S=b>0?`end`:`start`,C=b>0?`start`:`end`,w=i;if(n===`top`){var T={x:d+l/2,y:s-_,horizontalAnchor:`middle`,verticalAnchor:v};return a&&w&&(T.height=Math.max(s-w.y,0),T.width=l),T}if(n===`bottom`){var E={x:f+u/2,y:s+c+_,horizontalAnchor:`middle`,verticalAnchor:y};return a&&w&&(E.height=Math.max(w.y+w.height-(s+c),0),E.width=u),E}if(n===`left`){var D={x:p-x,y:s+c/2,horizontalAnchor:S,verticalAnchor:`middle`};return a&&w&&(D.width=Math.max(D.x-w.x,0),D.height=c),D}if(n===`right`){var O={x:p+m+x,y:s+c/2,horizontalAnchor:C,verticalAnchor:`middle`};return a&&w&&(O.width=Math.max(w.x+w.width-O.x,0),O.height=c),O}var k=a&&w?{width:m,height:c}:{};return n===`insideLeft`?YE({x:p+x,y:s+c/2,horizontalAnchor:C,verticalAnchor:`middle`},k):n===`insideRight`?YE({x:p+m-x,y:s+c/2,horizontalAnchor:S,verticalAnchor:`middle`},k):n===`insideTop`?YE({x:d+l/2,y:s+_,horizontalAnchor:`middle`,verticalAnchor:y},k):n===`insideBottom`?YE({x:f+u/2,y:s+c-_,horizontalAnchor:`middle`,verticalAnchor:v},k):n===`insideTopLeft`?YE({x:d+x,y:s+_,horizontalAnchor:C,verticalAnchor:y},k):n===`insideTopRight`?YE({x:d+l-x,y:s+_,horizontalAnchor:S,verticalAnchor:y},k):n===`insideBottomLeft`?YE({x:f+x,y:s+c-_,horizontalAnchor:C,verticalAnchor:v},k):n===`insideBottomRight`?YE({x:f+u-x,y:s+c-_,horizontalAnchor:S,verticalAnchor:v}
41,k):n&&typeof n==`object`&&(G(n.x)||vc(n.x))&&(G(n.y)||vc(n.y))?YE({x:o+Sc(n.x,m),y:s+Sc(n.y,c),horizontalAnchor:`end`,verticalAnchor:`end`},k):YE({x:h,y:s+c/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},k)},eD=[`labelRef`],tD=[`content`];function nD(e,t){if(e==null)return{};var n,r,i=rD(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function rD(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function iD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?iD(Object(n),!0).forEach(function(t){oD(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oD(e,t,n){return(t=sD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sD(e){var t=cD(e,`string`);return typeof t==`symbol`?t:t+``}function cD(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function lD(){return lD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lD.apply(null,arguments)}var uD=(0,w.createContext)(null),dD=e=>{var{x:t,y:n,upperWidth:r,lowerWidth:i,width:a,height:o,children:s}=e,c=(0,w.useMemo)(()=>({x:t,y:n,upperWidth:r,lowerWidth:i,width:a,height:o}),[t,n,r,i,a,o]);return w.createElement(uD.Provider,{value:c},s)},fD=()=>{var e=(0,w.useContext)(uD),t=em();return e||(t?$p(t):void 0)},pD=(0,w.createContext)(null),mD=()=>{var e=(0,w.useContext)(pD),t=K(A_);return e||t},hD=e=>{var{value:t,formatter:n}=e,r=Ec(e.children)?t:e.children;return typeof n==`function`?n(r):r},gD=e=>e!=null&&typeof e==`function`,_D=(e,t)=>gc(t-e)*Math.min(Math.abs(t-e),360),vD=(e,t,n,r,i)=>{var{offset:a,className:o}=e,{cx:s,cy:c,innerRadius:l,outerRadius:u,startAngle:d,endAngle:f,clockWise:p}=i,m=(l+u)/2,h=_D(d,f),g=h>=0?1:-1,_,v;switch(t){case`insideStart`:_=d+g*a,v=p;break;case`insideEnd`:_=f-g*a,v=!p;break;case`end`:_=f+g*a,v=p;break;default:throw Error(`Unsupported position ${t}`)}v=h<=0?v:!v;var y=Eg(s,c,m,_),b=Eg(s,c,m,_+(v?1:-1)*359),x=`M${y.x},${y.y}
42    A${m},${m},0,1,${+!v},
43    ${b.x},${b.y}`,S=Ec(e.id)?xc(`recharts-radial-line-`):e.id;return w.createElement(`text`,lD({},r,{dominantBaseline:`central`,className:rr(`recharts-radial-bar-label`,o)}),w.createElement(`defs`,null,w.createElement(`path`,{id:S,d:x})),w.createElement(`textPath`,{xlinkHref:`#${S}`},n))},yD=(e,t,n)=>{var{cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:s,endAngle:c}=e,l=(s+c)/2;if(n===`outside`){var{x:u,y:d}=Eg(r,i,o+t,l);return{x:u,y:d,textAnchor:u>=r?`start`:`end`,verticalAnchor:`middle`}}if(n===`center`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`middle`};if(n===`centerTop`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`start`};if(n===`centerBottom`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`end`};var{x:f,y:p}=Eg(r,i,(a+o)/2,l);return{x:f,y:p,textAnchor:`middle`,verticalAnchor:`middle`}},bD=e=>e!=null&&`cx`in e&&G(e.cx),xD={angle:0,offset:5,zIndex:p_.label,position:`middle`,textBreakAll:!1};function SD(e){if(!bD(e))return e;var{cx:t,cy:n,outerRadius:r}=e,i=r*2;return{x:t-r,y:n-r,width:i,upperWidth:i,lowerWidth:i,height:i}}function CD(e){var t=$c(e,xD),{viewBox:n,parentViewBox:r,position:i,value:a,children:o,content:s,className:c=``,textBreakAll:l,labelRef:u}=t,d=mD(),f=fD(),p=n==null?i===`center`?f:d??f:bD(n)?n:$p(n),m,h,g=SD(p);if(!p||Ec(a)&&Ec(o)&&!(0,w.isValidElement)(s)&&typeof s!=`function`)return null;var _=aD(aD({},t),{},{viewBox:p});if((0,w.isValidElement)(s)){var{labelRef:v}=_;return(0,w.cloneElement)(s,nD(_,eD))}if(typeof s==`function`){var{content:y}=_;if(m=(0,w.createElement)(s,nD(_,tD)),(0,w.isValidElement)(m))return m}else m=hD(t);var b=Co(t);
43if(bD(p)){if(i===`insideStart`||i===`insideEnd`||i===`end`)return vD(t,i,m,b,p);h=yD(p,t.offset,t.position)}else{if(!g)return null;var x=$E({viewBox:g,position:i,offset:t.offset,parentViewBox:bD(r)?void 0:r,clamp:!0});h=aD(aD({x:x.x,y:x.y,textAnchor:x.horizontalAnchor,verticalAnchor:x.verticalAnchor},x.width===void 0?{}:{width:x.width}),x.height===void 0?{}:{height:x.height})}return w.createElement(jT,{zIndex:t.zIndex},w.createElement(qE,lD({ref:u,className:rr(`recharts-label`,c)},b,h,{textAnchor:IE(b.textAnchor)?b.textAnchor:h.textAnchor,breakAll:l}),m))}CD.displayName=`Label`;var wD=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?w.createElement(CD,lD({key:`label-implicit`},r)):yc(e)?w.createElement(CD,lD({key:`label-implicit`,value:e},r)):(0,w.isValidElement)(e)?e.type===CD?(0,w.cloneElement)(e,aD({key:`label-implicit`},r)):w.createElement(CD,lD({key:`label-implicit`,content:e},r)):gD(e)?w.createElement(CD,lD({key:`label-implicit`,content:e},r)):e&&typeof e==`object`?w.createElement(CD,lD({},e,{key:`label-implicit`},r)):null};function TD(e){var{label:t,labelRef:n}=e;return wD(t,fD(),n)||null}var ED=[`valueAccessor`],DD=[`dataKey`,`clockWise`,`id`,`textBreakAll`,`zIndex`];function OD(){return OD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OD.apply(null,arguments)}function kD(e,t){if(e==null)return{};var n,r,i=AD(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function AD(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var jD=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(LE(t))return t},MD=(0,w.createContext)(void 0),ND=MD.Provider,PD=(0,w.createContext)(void 0);PD.Provider;function FD(){return(0,w.useContext)(MD)}function ID(){return(0,w.useContext)(PD)}function LD(e){var{valueAccessor:t=jD}=e,n=kD(e,ED),{dataKey:r,clockWise:i,id:a,textBreakAll:o,zIndex:s}=n,c=kD(n,DD),l=FD(),u=ID(),d=l||u;return!d||!d.length?null:w.createElement(jT,{zIndex:s??p_.label},w.createElement(Po,{className:`recharts-label-list`},d.map((e,i)=>{var s=Ec(r)?t(e,i):Yf(e.payload,r),l=Ec(a)?{}:{id:`${a}-${i}`};return w.createElement(CD,OD({key:`label-${i}`},Co(e),c,l,{fill:n.fill??e.fill,parentViewBox:e.parentViewBox,value:s,textBreakAll:o,viewBox:e.viewBox,index:i,zIndex:0}))})))}LD.displayName=`LabelList`;function RD(e){var{label:t}=e;return t?t===!0?w.createElement(LD,{key:`labelList-implicit`}):w.isValidElement(t)||gD(t)?w.createElement(LD,{key:`labelList-implicit`,content:t}):typeof t==`object`?w.createElement(LD,OD({key:`labelList-implicit`},t,{type:String(t.type)})):null:null}function zD(){return zD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zD.apply(null,arguments)}var BD=e=>{var{cx:t,cy:n,r,className:i}=e,a=rr(`recharts-dot`,i);return G(t)&&G(n)&&G(r)?w.createElement(`circle`,zD({},xo(e),Gc(e),{className:a,cx:t,cy:n,r})):null},VD=qd({name:`polarAxis`,initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=Ym(t.payload)},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=Ym(t.payload)},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:Gre,removeRadiusAxis:Kre,addAngleAxis:qre,removeAngleAxis:Jre}=VD.actions,HD=VD.reducer;function UD(e){return e&&typeof e==`object`&&`className`in e&&typeof e.className==`string`?e.className:``}var WD=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.suspense_list`),d=Symbol.for(`react.memo`),f=Symbol.for(`react.lazy`),p=Symbol.for(`react.view_transition`);function m(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case l:case u:case p:return e;default:switch(e&&=e.$$typeof,e){case s:case c:case f:case d:return e;case o:return e;default:return m}}case n:return m}}}e.isFragment=function(e){return m(e)===r}})),GD=s(((e,t)=>{t.exports=WD()}))(),KD=e=>typeof e==`string`?e:e?e.displayName||e.name||`Component`:``,qD=null,JD=null,YD=e=>{if(e===qD&&Array.isArray(JD))return JD;var t=[];
43return w.Children.forEach(e,e=>{Ec(e)||((0,GD.isFragment)(e)?t=t.concat(YD(e.props.children)):t.push(e))}),JD=t,qD=e,t};function XD(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(e=>KD(e)):[KD(t)],YD(e).forEach(e=>{var t=dc(e,`type.displayName`)||dc(e,`type.name`);t&&r.indexOf(t)!==-1&&n.push(e)}),n}var ZD=e=>e&&typeof e==`object`&&`clipDot`in e?!!e.clipDot:!0;function QD(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var $D,eO,tO,nO,rO;function iO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?iO(Object(n),!0).forEach(function(t){oO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oO(e,t,n){return(t=sO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sO(e){var t=cO(e,`string`);return typeof t==`symbol`?t:t+``}function cO(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function lO(){return lO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lO.apply(null,arguments)}function uO(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var dO=(e,t,n,r,i)=>{var a=n-r,o=hc($D||=uO([`M `,`,`,``]),e,t);return o+=hc(eO||=uO([`L `,`,`,``]),e+n,t),o+=hc(tO||=uO([`L `,`,`,``]),e+n-a/2,t+i),o+=hc(nO||=uO([`L `,`,`,``]),e+n-a/2-r,t+i),o+=hc(rO||=uO([`L `,`,`,` Z`]),e,t),o},fO={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},pO=e=>{var t=$c(e,fO),{x:n,y:r,upperWidth:i,lowerWidth:a,height:o,className:s}=t,{animationEasing:c,animationDuration:l,animationBegin:u,isUpdateAnimationActive:d}=t,f=(0,w.useRef)(null),[p,m]=(0,w.useState)(-1),h=(0,w.useRef)(i),g=(0,w.useRef)(a),_=(0,w.useRef)(o),v=(0,w.useRef)(n),y=(0,w.useRef)(r),b=Jh(e,`trapezoid-`);if((0,w.useEffect)(()=>{if(f.current&&f.current.getTotalLength)try{var e=f.current.getTotalLength();e&&m(e)}catch{}},[]),n!==+n||r!==+r||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var x=rr(`recharts-trapezoid`,s);if(!d)return w.createElement(`g`,null,w.createElement(`path`,lO({},Co(t),{className:x,d:dO(n,r,i,a,o)})));var S=h.current,C=g.current,T=_.current,E=v.current,D=y.current,O=`0px ${p===-1?1:p}px`,k=`${p}px ${p}px`,A=Eh([`strokeDasharray`],l,c);return w.createElement(qh,{animationId:b,key:b,canBegin:p>0,duration:l,easing:c,isActive:d,begin:u},e=>{var s=wc(S,i,e),c=wc(C,a,e),l=wc(T,o,e),u=wc(E,n,e),d=wc(D,r,e);f.current&&(h.current=s,g.current=c,_.current=l,v.current=u,y.current=d);var p=e>0?{transition:A,strokeDasharray:k}:{strokeDasharray:O};return w.createElement(`path`,lO({},Co(t),{className:x,d:dO(u,d,s,c,l),ref:f,style:aO(aO({},p),t.style)}
43))})},mO=[`option`,`shapeType`,`activeClassName`,`inActiveClassName`];function hO(e,t){if(e==null)return{};var n,r,i=gO(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function gO(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function _O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_O(Object(n),!0).forEach(function(t){yO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yO(e,t,n){return(t=bO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bO(e){var t=xO(e,`string`);return typeof t==`symbol`?t:t+``}function xO(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function SO(e,t){return vO(vO({},t),e)}function CO(e,t){return e===`symbols`}function wO(e){var{shapeType:t,elementProps:n}=e;switch(t){case`rectangle`:return w.createElement(vg,n);case`trapezoid`:return w.createElement(pO,n);case`sector`:return w.createElement(ate,n);case`symbols`:if(CO(t,n))return w.createElement(Wc,n);break;case`curve`:return w.createElement(Ch,n);default:return null}}function TO(e){return(0,w.isValidElement)(e)?e.props:e}function EO(e){var{option:t,shapeType:n,activeClassName:r=`recharts-active-shape`,inActiveClassName:i=`recharts-shape`}=e,a=hO(e,mO),o;if((0,w.isValidElement)(t))o=(0,w.cloneElement)(t,vO(vO({},a),TO(t)));else if(typeof t==`function`)o=t(a,a.index);else if(QD(t)&&typeof t!=`boolean`){var s=SO(t,a);o=w.createElement(wO,{shapeType:n,elementProps:s})}else{var c=a;o=w.createElement(wO,{shapeType:n,elementProps:c})}return a.isActive?w.createElement(Po,{className:r},o):w.createElement(Po,{className:i},o)}var DO=(e,t,n)=>{var r=pl();return(i,a)=>o=>{e?.(i,a,o),r(Iw({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}},OO=e=>{var t=pl();return(n,r)=>i=>{e?.(n,r,i),t(Pne())}},kO=(e,t,n)=>{var r=pl();return(i,a)=>o=>{e?.(i,a,o),r(Fne({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}};function AO(e){var{tooltipEntrySettings:t}=e,n=pl(),r=Rp(),i=(0,w.useRef)(null);return(0,w.useLayoutEffect)(()=>{r||(i.current===null?n(Ane(t)):i.current!==t&&n(jne({prev:i.current,next:t})),i.current=t)},[t,n,r]),(0,w.useLayoutEffect)(()=>()=>{i.current&&=(n(Mne(i.current)),null)},[n]),null}function jO(e){var{legendPayload:t}=e,n=pl(),r=Rp(),i=(0,w.useRef)(null);return(0,w.useLayoutEffect)(()=>{r||(i.current===null?n(Zm(t)):i.current!==t&&n(Qm({prev:i.current,next:t})),i.current=t)},[n,r,t]),(0,w.useLayoutEffect)(()=>()=>{i.current&&=(n($m(i.current)),null)},[n]),null}var MO=w.useId??(()=>{var[e]=w.useState(()=>xc(`uid-`));return e});function NO(e,t){var n=MO();return t||(e?`${e}-${n}`:n)}var PO=(0,w.createContext)(void 0),FO=e=>{var{id:t,type:n,children:r}=e,i=NO(`recharts-${n}`,t);return w.createElement(PO.Provider,{value:i},r(i))},IO=qd({name:`graphicalItems`,initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(Ym(t.payload))},prepare:Md()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=vd(e).cartesianItems.indexOf(Ym(n));i>-1&&(e.cartesianItems[i]=Ym(r))},prepare:Md()},removeCartesianGraphicalItem:{reducer(e,t){var n=vd(e).cartesianItems.indexOf(Ym(t.payload));n>-1&&e.cartesianItems.splice(n,1)},prepare:Md()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(Ym(t.payload))},prepare:Md()},removePolarGraphicalItem:{reducer(e,t){var n=vd(e).polarItems.indexOf(Ym(t.payload));n>-1&&e.polarItems.splice(n,1)},prepare:Md()},replacePolarGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=vd(e).polarItems.indexOf(Ym(n));i>-1&&(e.polarItems[i]=Ym(r))},prepare:Md()}}}),{addCartesianGraphicalItem:LO,replaceCartesianGraphicalItem:RO,removeCartesianGraphicalItem:zO,addPolarGraphicalItem:Yre,removePolarGraphicalItem:Xre,replacePolarGraphicalItem:Zre}=IO.actions,BO=IO.reducer,VO=(0,w.memo)(e=>{var t=pl(),n=(0,w.useRef)(null);return(0,w.useLayoutEffect)(()=>{n.current===null?t(LO(e)):n.current!==e&&t(RO({prev:n.current,next:e})),n.current=e},[t,e]),(0,w.useLayoutEffect)(()=>()=>{n.current&&=(t(zO(n.current)),null)},[t]),null}),HO=[`points`];function UO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function WO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
43t%2?UO(Object(n),!0).forEach(function(t){GO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function GO(e,t,n){return(t=KO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KO(e){var t=qO(e,`string`);return typeof t==`symbol`?t:t+``}function qO(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function JO(){return JO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JO.apply(null,arguments)}function YO(e,t){if(e==null)return{};var n,r,i=XO(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function XO(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ZO(e){var{option:t,dotProps:n,className:r}=e;if((0,w.isValidElement)(t))return(0,w.cloneElement)(t,n);if(typeof t==`function`)return t(n);var i=rr(r,typeof t==`boolean`?``:t.className),a=n??{},{points:o}=a,s=YO(a,HO);return w.createElement(BD,JO({},s,{className:i}))}function QO(e,t){return e==null?!1:t?!0:e.length===1}function $O(e){var{points:t,dot:n,className:r,dotClassName:i,dataKey:a,baseProps:o,needClip:s,clipPathId:c,zIndex:l=p_.scatter}=e;if(!QO(t,n))return null;var u=ZD(n),d=wo(n),f=t.map((e,r)=>{var s=WO(WO(WO({r:3},o),d),{},{index:r,cx:e.x??void 0,cy:e.y??void 0,dataKey:a,value:e.value,payload:e.payload,points:t});return w.createElement(ZO,{key:`dot-${r}`,option:n,dotProps:s,className:i})}),p={};return s&&c!=null&&(p.clipPath=`url(#clipPath-${u?``:`dots-`}${c})`),w.createElement(jT,{zIndex:l},w.createElement(Po,JO({className:r},p),f))}function ek(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ek(Object(n),!0).forEach(function(t){nk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ek(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nk(e,t,n){return(t=rk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rk(e){var t=ik(e,`string`);return typeof t==`symbol`?t:t+``}function ik(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var ak=qd({name:`cartesianAxis`,initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=Ym(t.payload)},prepare:Md()},replaceXAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.xAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.xAxis[n.id],e.xAxis[r.id]=Ym(r))},prepare:Md()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Md()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=Ym(t.payload)},prepare:Md()},replaceYAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.yAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.yAxis[n.id],e.yAxis[r.id]=Ym(r))},prepare:Md()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Md()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=Ym(t.payload)},prepare:Md()},replaceZAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.zAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.zAxis[n.id],e.zAxis[r.id]=Ym(r))},prepare:Md()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Md()},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload,i=e.yAxis[n];if(i){var a=i.widthHistory||[];if(a.length===3&&a[0]===a[2]&&r===a[1]&&r!==i.width&&Math.abs(r-(a[0]??0))<=1)return;var o=[...a,r].slice(-3);e.yAxis[n]=tk(tk({},i),{}
43,{width:r,widthHistory:o})}}}}),{addXAxis:ok,replaceXAxis:sk,removeXAxis:ck,addYAxis:lk,replaceYAxis:uk,removeYAxis:dk,addZAxis:Qre,replaceZAxis:$re,removeZAxis:eie,updateYAxisWidth:fk}=ak.actions,pk=ak.reducer,mk=q([q([Pp],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),_p,vp],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),hk=()=>K(mk),gk=()=>K(lre);function _k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_k(Object(n),!0).forEach(function(t){yk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yk(e,t,n){return(t=bk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bk(e){var t=xk(e,`string`);return typeof t==`symbol`?t:t+``}function xk(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Sk=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:i,dataKey:a,clipPath:o}=e;if(i===!1||t.x==null||t.y==null)return null;var s=vk(vk(vk({},{index:n,dataKey:a,cx:t.x,cy:t.y,r:4,fill:r??`none`,strokeWidth:2,stroke:`#fff`,payload:t.payload,value:t.value}),So(i)),Gc(i)),c=(0,w.isValidElement)(i)?(0,w.cloneElement)(i,s):typeof i==`function`?i(s):w.createElement(BD,s);return w.createElement(Po,{className:`recharts-active-dot`,clipPath:o},c)};function Ck(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:i,clipPath:a,zIndex:o=p_.activeDot}=e,s=K(pT),c=gk();if(t==null||c==null)return null;var l=t.find(e=>c.includes(e.payload));return Ec(l)?null:w.createElement(jT,{zIndex:o},w.createElement(Sk,{point:l,childIndex:Number(s),mainColor:n,dataKey:i,activeDot:r,clipPath:a}))}var wk=(e,t,n)=>{var r=n??e;if(!Ec(r))return Sc(r,t,0)},Tk=(e,t,n)=>{var r={},i=e.filter(F_),a=e.filter(e=>e.stackId==null),o=i.reduce((e,t)=>{var n=e[t.stackId];return n??=[],n.push(t),e[t.stackId]=n,e},r),s=Object.entries(o).map(e=>{var[r,i]=e;return{stackId:r,dataKeys:i.map(e=>e.dataKey),barSize:wk(t,n,i[0]?.barSize)}}),c=a.map(e=>({stackId:void 0,dataKeys:[e.dataKey].filter(e=>e!=null),barSize:wk(t,n,e.barSize)}));return[...s,...c]};function Ek(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Dk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ek(Object(n),!0).forEach(function(t){Ok(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ek(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ok(e,t,n){return(t=kk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kk(e){var t=Ak(e,`string`);return typeof t==`symbol`?t:t+``}function Ak(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function jk(e,t,n,r,i){var a=r.length;if(!(a<1)){var o=Sc(e,n,0,!0),s,c=[];if(J(r[0]?.barSize)){var l=!1,u=n/a,d=r.reduce((e,t)=>e+(t.barSize||0),0);d+=(a-1)*o,d>=n&&(d-=(a-1)*o,o=0),d>=n&&u>0&&(l=!0,u*=.9,d=a*u);var f={offset:((n-d)/2>>0)-o,size:0};s=r.reduce((e,t)=>{var n={stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:f.offset+f.size+o,size:l?u:t.barSize??0}},r=[...e,n];return f=n.position,r},c)}else{var p=Sc(t,n,0,!0);n-2*p-(a-1)*o<=0&&(o=0);var m=(n-2*p-(a-1)*o)/a;m>1&&(m>>=0);var h=J(i)?Math.min(m,i):m;
43s=r.reduce((e,t,n)=>[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:p+(m+o)*n+(m-h)/2,size:h}}],c)}return s}}var Mk=(e,t,n,r,i,a,o)=>{var s=Ec(o)?t:o,c=jk(n,r,i===a?a:i,e,s);return i!==a&&c!=null&&(c=c.map(e=>Dk(Dk({},e),{},{position:Dk(Dk({},e.position),{},{offset:e.position.offset-i/2})}))),c},Nk=(e,t)=>{var n=N_(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var i=e[r];if(i){var{stackedData:a}=i;if(a)return a.find(e=>e.key===n)}}}},Pk=(e,t)=>{if(!(e==null||t==null)){var n=e.find(e=>e.stackId===t.stackId&&t.dataKey!=null&&e.dataKeys.includes(t.dataKey));if(n!=null)return n.position}};function Fk(e,t){return e&&typeof e==`object`&&`zIndex`in e&&typeof e.zIndex==`number`&&J(e.zIndex)?e.zIndex:t}var Ik=e=>{var{chartData:t}=e,n=pl(),r=Rp();return(0,w.useEffect)(()=>r?()=>{}:(n(RT(t)),()=>{n(RT(void 0))}),[t,n,r]),null},Lk={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},Rk=qd({name:`brush`,initialState:Lk,reducers:{setBrushSettings(e,t){return t.payload==null?Lk:t.payload}}}),{setBrushSettings:tie}=Rk.actions,zk=Rk.reducer,Bk=(e,t)=>{var{x:n,y:r}=e,{x:i,y:a}=t;return{x:Math.min(n,i),y:Math.min(r,a),width:Math.abs(i-n),height:Math.abs(a-r)}},Vk=e=>{var{x1:t,y1:n,x2:r,y2:i}=e;return Bk({x:t,y:n},{x:r,y:i})};function Hk(e){return(e%180+180)%180}var Uk=function(e){var{width:t,height:n}=e,r=Hk(arguments.length>1&&arguments[1]!==void 0?arguments[1]:0)*Math.PI/180,i=Math.atan(n/t),a=r>i&&r<Math.PI-i?n/Math.sin(r):t/Math.cos(r);return Math.abs(a)},Wk=qd({name:`referenceElements`,initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=vd(e).dots.findIndex(e=>e===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=vd(e).areas.findIndex(e=>e===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(Ym(t.payload))},removeLine:(e,t)=>{var n=vd(e).lines.findIndex(e=>e===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:nie,removeDot:rie,addArea:iie,removeArea:aie,addLine:Gk,removeLine:Kk}=Wk.actions,qk=Wk.reducer,Jk=(0,w.createContext)(void 0),Yk=e=>{var{children:t}=e,[n]=(0,w.useState)(`${xc(`recharts`)}-clip`),r=hk();if(r==null)return null;var{x:i,y:a,width:o,height:s}=r;return w.createElement(Jk.Provider,{value:n},w.createElement(`defs`,null,w.createElement(`clipPath`,{id:n},w.createElement(`rect`,{x:i,y:a,height:s,width:o}))),t)},Xk=()=>(0,w.useContext)(Jk),Zk=class{constructor(e){var{x:t,y:n}=e;this.xAxisScale=t,this.yAxisScale=n}map(e,t){var{position:n}=t;return{x:this.xAxisScale.map(e.x,{position:n})??0,y:this.yAxisScale.map(e.y,{position:n})??0}}mapWithFallback(e,t){var{position:n,fallback:r}=t,i=r===`rangeMin`?this.yAxisScale.rangeMin():r===`rangeMax`?this.yAxisScale.rangeMax():0,a=r===`rangeMin`?this.xAxisScale.rangeMin():r===`rangeMax`?this.xAxisScale.rangeMax():0;return{x:this.xAxisScale.map(e.x,{position:n})??a,y:this.yAxisScale.map(e.y,{position:n})??i}}isInRange(e){var{x:t,y:n}=e,r=t==null||this.xAxisScale.isInRange(t),i=n==null||this.yAxisScale.isInRange(n);return r&&i}};function Qk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $k(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Qk(Object(n),!0).forEach(function(t){eA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eA(e,t,n){return(t=tA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tA(e){var t=nA(e,`string`);return typeof t==`symbol`?t:t+``}function nA(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function rA(){return rA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rA.apply(null,arguments)}var iA=(e,t)=>{var n;if(w.isValidElement(e))n=w.cloneElement(e,t);else if(typeof e==`function`)n=e(t);else{if(!J(t.x1)||!J(t.y1)||!J(t.x2)||!J(t.y2))return null;n=w.createElement(`line`,rA({},t,{className:`recharts-reference-line-line`}))}return n},aA=(e,t,n,r,i,a)=>{var{x:o,width:s}=a,c=i.map(e,{position:n});if(!J(c)||t===`discard`&&!i.isInRange(c))return null;var l=[{x:o+s,y:c},{x:o,y:c}];return r===`left`?l.reverse():l},oA=(e,t,n,r,i,a)=>{var{y:o,height:s}=a,c=i.map(e,{position:n});if(!J(c)||t===`discard`&&!i.isInRange(c))return null;var l=[{x:c,y:o+s},{x:c,y:o}];return r===`top`?l.reverse():l},sA=(e,t,n,r)=>{var i=[r.mapWithFallback(e[0],{position:n,fallback:`rangeMin`}),r.mapWithFallback(e[1],{position:n,fallback:`rangeMax`})];return t===`discard`&&i.some(e=>!r.isInRange(e))?null:i},cA=(e,t,n,r,i,a,o)=>{var{x:s,y:c,segment:l,ifOverflow:u}=o,d=yc(s);return yc(c)?aA(c,u,r,a,t,n):d?oA(s,u,r,i,e,n):l!=null&&l.length===2?sA(l,u,r,new Zk({x:e,y:t})):null};function lA(e){var t=pl();return(0,w.useEffect)(()=>(t(Gk(e)),()=>{t(Kk(e))})),null}function uA(e){var{xAxisId:t,yAxisId:n,shape:r,className:i,ifOverflow:a}=e,o=Rp(),s=Xk(),c=K(e=>aC(e,t)),l=K(e=>cC(e,n)),u=K(e=>hw(e,`xAxis`,t,o)),d=K(e=>hw(e,`yAxis`,n,o)),f=em();if(!s||!f||c==null||l==null||u==null||d==null)return null;var p=cA(u,d,f,e.position,c.orientation,l.orientation,e);if(!p)return null;var m=p[0],h=p[1];if(m==null||h==null)return null;var{x:g,y:_}=m,{x:v,y}=h,b=$k($k({clipPath:a===`hidden`?`url(#${s})`:void 0},Co(e)),{},{x1:g,y1:_,x2:v,y2:y}),x=Vk({x1:g,y1:_,x2:v,y2:y});return w.createElement(jT,{zIndex:e.zIndex},w.createElement(Po,{className:rr(`recharts-reference-line`,i)},iA(r,b),w.createElement(dD,rA({},x,{lowerWidth:x.width,upperWidth:x.width}),w.createElement(TD,{label:e.label}),e.children)))}var dA={ifOverflow:`discard`,xAxisId:0,yAxisId:0,fill:`none`,label:!1,stroke:`#ccc`,fillOpacity:1,strokeWidth:1,position:`middle`,zIndex:p_.line};function fA(e){var t=$c(e,dA);return w.createElement(w.Fragment,null,w.createElement(lA,{yAxisId:t.yAxisId,xAxisId:t.xAxisId,ifOverflow:t.ifOverflow,x:t.x,y:t.y,segment:t.segment}),w.createElement(uA,t))}fA.displayName=`ReferenceLine`;function pA(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var i=e[r];i!==void 0&&n.push(i)}return n}function mA(e,t,n){return Uk({width:e.width+t.width,height:e.height+t.height},n)}function hA(e,t,n){var r=n===`width`,{x:i,y:a,width:o,height:s}=e;return t===1?{start:r?i:a,end:r?i+o:a+s}:{start:r?i+o:a+s,end:r?i:a}}function gA(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function _A(e,t){return pA(e,t+1)}function vA(e,t,n,r,i){for(var a=(r||[]).slice(),{start:o,end:s}=t,c=0,l=1,u=o,d=function(){var t=r?.[c];if(t===void 0)return{v:pA(r,l)};var a=c,d,f=()=>(d===void 0&&(d=n(t,a)),d),p=t.coordinate,m=c===0||gA(e,p,f,u,s);
43m||(c=0,u=o,l+=1),m&&(u=p+e*(f()/2+i),c+=l)},f;l<=a.length;)if(f=d(),f)return f.v;return[]}function yA(e,t,n,r,i){var a=(r||[]).slice().length;if(a===0)return[];for(var{start:o,end:s}=t,c=1;c<=a;c++){for(var l=(a-1)%c,u=o,d=!0,f=function(){var t=r[m];if(t==null)return 0;var a=m,o,c=()=>(o===void 0&&(o=n(t,a)),o),f=t.coordinate,p=m===l||gA(e,f,c,u,s);if(!p)return d=!1,1;p&&(u=f+e*(c()/2+i))},p,m=l;m<a&&(p=f(),!(p!==0&&p===1));m+=c);if(d){for(var h=[],g=l;g<a;g+=c){var _=r[g];_!=null&&h.push(_)}return h}}return[]}function bA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bA(Object(n),!0).forEach(function(t){SA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function SA(e,t,n){return(t=CA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CA(e){var t=wA(e,`string`);return typeof t==`symbol`?t:t+``}function wA(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function TA(e,t,n,r,i){for(var a=(r||[]).slice(),o=a.length,{start:s}=t,{end:c}=t,l=function(t){var r=a[t];if(r==null)return 1;var l=r,u,d=()=>(u===void 0&&(u=n(r,t)),u);if(t===o-1){var f=e*(l.coordinate+e*d()/2-c);a[t]=l=xA(xA({},l),{},{tickCoord:f>0?l.coordinate-f*e:l.coordinate})}else a[t]=l=xA(xA({},l),{},{tickCoord:l.coordinate});l.tickCoord!=null&&gA(e,l.tickCoord,d,s,c)&&(c=l.tickCoord-e*(d()/2+i),a[t]=xA(xA({},l),{},{isShow:!0}))},u=o-1;u>=0;u--)if(l(u))continue;return a}function EA(e,t,n,r,i,a){var o=(r||[]).slice(),s=o.length,{start:c,end:l}=t;if(a){var u=r[s-1];if(u!=null){var d=n(u,s-1),f=e*(u.coordinate+e*d/2-l);o[s-1]=u=xA(xA({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),u.tickCoord!=null&&gA(e,u.tickCoord,()=>d,c,l)&&(l=u.tickCoord-e*(d/2+i),o[s-1]=xA(xA({},u),{},{isShow:!0}))}}for(var p=a?s-1:s,m=function(t){var r=o[t];if(r==null)return 1;var a=r,s,u=()=>(s===void 0&&(s=n(r,t)),s);if(t===0){var d=e*(a.coordinate-e*u()/2-c);o[t]=a=xA(xA({},a),{},{tickCoord:d<0?a.coordinate-d*e:a.coordinate})}else o[t]=a=xA(xA({},a),{},{tickCoord:a.coordinate});a.tickCoord!=null&&gA(e,a.tickCoord,u,c,l)&&(c=a.tickCoord+e*(u()/2+i),o[t]=xA(xA({},a),{},{isShow:!0}))},h=0;h<p;h++)if(m(h))continue;return o}function DA(e,t,n){var{tick:r,ticks:i,viewBox:a,minTickGap:o,orientation:s,interval:c,tickFormatter:l,unit:u,angle:d}=e;if(!i||!i.length||!r)return[];if(G(c)||ph.isSsr)return _A(i,G(c)?c:0)??[];var f=[],p=s===`top`||s===`bottom`?`width`:`height`,m=u&&p===`width`?cE(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},h=(e,r)=>{var i=typeof l==`function`?l(e.value,r):e.value;return p===`width`?mA(cE(i,{fontSize:t,letterSpacing:n}),m,d):cE(i,{fontSize:t,letterSpacing:n})[p]},g=i[0],_=i[1],v=i.length>=2&&g!=null&&_!=null?gc(_.coordinate-g.coordinate):1,y=hA(a,v,p);return c===`equidistantPreserveStart`?vA(v,y,h,i,o):c===`equidistantPreserveEnd`?yA(v,y,h,i,o):(f=c===`preserveStart`||c===`preserveStartEnd`?EA(v,y,h,i,o,c===`preserveStartEnd`):TA(v,y,h,i,o),f.filter(e=>e.isShow))}var OA=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>
43o&&(o=t.width)}});var s=n?n.getBoundingClientRect().width:0,c=i+a,l=o+c+s+(n?r:0);return Math.round(l)}return 0},kA=qd({name:`renderedTicks`,initialState:{xAxis:{},yAxis:{}},reducers:{setRenderedTicks:(e,t)=>{var{axisType:n,axisId:r,ticks:i}=t.payload;e[n][r]=Ym(i)},removeRenderedTicks:(e,t)=>{var{axisType:n,axisId:r}=t.payload;delete e[n][r]}}}),{setRenderedTicks:AA,removeRenderedTicks:jA}=kA.actions,MA=kA.reducer,NA=[`axisLine`,`width`,`height`,`className`,`hide`,`ticks`,`axisType`,`axisId`];function PA(e,t){if(e==null)return{};var n,r,i=FA(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function FA(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function IA(){return IA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IA.apply(null,arguments)}function LA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function RA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?LA(Object(n),!0).forEach(function(t){zA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zA(e,t,n){return(t=BA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BA(e){var t=VA(e,`string`);return typeof t==`symbol`?t:t+``}function VA(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var HA={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:`bottom`,ticks:[],stroke:`#666`,tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:`preserveEnd`,zIndex:p_.axis};function UA(e){var{x:t,y:n,width:r,height:i,orientation:a,mirror:o,axisLine:s,otherSvgProps:c}=e;if(!s)return null;var l=RA(RA(RA({},c),xo(s)),{},{fill:`none`});if(a===`top`||a===`bottom`){var u=+(a===`top`&&!o||a===`bottom`&&o);l=RA(RA({},l),{},{x1:t,y1:n+u*i,x2:t+r,y2:n+u*i})}else{var d=+(a===`left`&&!o||a===`right`&&o);l=RA(RA({},l),{},{x1:t+d*r,y1:n,x2:t+d*r,y2:n+i})}return w.createElement(`line`,IA({},l,{className:rr(`recharts-cartesian-axis-line`,dc(s,`className`))}))}function WA(e,t,n,r,i,a,o,s,c){var l,u,d,f,p,m,h=s?-1:1,g=e.tickSize||o,_=G(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case`top`:l=u=e.coordinate,f=n+ +!s*i,d=f-h*g,m=d-h*c,p=_;break;case`left`:d=f=e.coordinate,u=t+ +!s*r,l=u-h*g,p=l-h*c,m=_;break;case`right`:d=f=e.coordinate,u=t+ +s*r,l=u+h*g,p=l+h*c,m=_;break;default:l=u=e.coordinate,f=n+ +s*i,d=f+h*g,m=d+h*c,p=_;break}return{line:{x1:l,y1:d,x2:u,y2:f},tick:{x:p,y:m}}}function GA(e,t){switch(e){case`left`:return t?`start`:`end`;case`right`:return t?`end`:`start`;default:return`middle`}}function KA(e,t){switch(e){case`left`:case`right`:return`middle`;case`top`:return t?`start`:`end`;default:return t?`end`:`start`}}function qA(e){var{option:t,tickProps:n,value:r}=e,i,a=rr(n.className,`recharts-cartesian-axis-tick-value`);if(w.isValidElement(t))i=w.cloneElement(t,RA(RA({},n),{},{className:a}));else if(typeof t==`function`)i=t(RA(RA({},n),{},{className:a}));else{var o=`recharts-cartesian-axis-tick-value`;typeof t!=`boolean`&&(o=rr(o,UD(t))),i=w.createElement(qE,IA({},n,{className:o}),r)}return i}function JA(e){var{ticks:t,axisType:n,axisId:r}=e,i=pl();return(0,w.useEffect)(()=>r==null||n==null?kc:(i(AA({ticks:t.map(e=>({value:e.value,coordinate:e.coordinate,offset:e.offset,index:e.index})),axisId:r,axisType:n})),()=>{i(jA({axisId:r,axisType:n}))}),[i,t,r,n]),null}var YA=(0,w.forwardRef)((e,t)=>
43{var{ticks:n=[],tick:r,tickLine:i,stroke:a,tickFormatter:o,unit:s,padding:c,tickTextProps:l,orientation:u,mirror:d,x:f,y:p,width:m,height:h,tickSize:g,tickMargin:_,fontSize:v,letterSpacing:y,getTicksConfig:b,events:x,axisType:S,axisId:C}=e,T=DA(RA(RA({},b),{},{ticks:n}),v,y),E=xo(b),D=So(r),O=IE(E.textAnchor)?E.textAnchor:GA(u,d),k=KA(u,d),A={};typeof i==`object`&&(A=i);var j=RA(RA({},E),{},{fill:`none`},A),M=T.map(e=>RA({entry:e},WA(e,f,p,m,h,u,g,d,_))),N=M.map(e=>{var{entry:t,line:n}=e;return w.createElement(Po,{className:`recharts-cartesian-axis-tick`,key:`tick-${t.value}-${t.coordinate}-${t.tickCoord}`},i&&w.createElement(`line`,IA({},j,n,{className:rr(`recharts-cartesian-axis-tick-line`,dc(i,`className`))})))}),ee=M.map((e,t)=>{var{entry:n,tick:i}=e,u=RA(RA({},RA(RA(RA(RA({verticalAnchor:k},E),{},{textAnchor:O,stroke:`none`,fill:a},i),{},{index:t,payload:n,visibleTicksCount:T.length,tickFormatter:o,padding:c},l),{},{angle:l?.angle??E.angle??0})),D);return w.createElement(Po,IA({className:`recharts-cartesian-axis-tick-label`,key:`tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`},qc(x,n,t)),r&&w.createElement(qA,{option:r,tickProps:u,value:`${typeof o==`function`?o(n.value,t):n.value}${s||``}`}))});return w.createElement(`g`,{className:`recharts-cartesian-axis-ticks recharts-${S}-ticks`},w.createElement(JA,{ticks:T,axisId:C,axisType:S}),ee.length>0&&w.createElement(jT,{zIndex:p_.label},w.createElement(`g`,{className:`recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,ref:t},ee)),N.length>0&&w.createElement(`g`,{className:`recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines`},N))}),XA=(0,w.forwardRef)((e,t)=>{var{axisLine:n,width:r,height:i,className:a,hide:o,ticks:s,axisType:c,axisId:l}=e,u=PA(e,NA),[d,f]=(0,w.useState)(``),[p,m]=(0,w.useState)(``),h=(0,w.useRef)(null);(0,w.useImperativeHandle)(t,()=>({getCalculatedWidth:()=>OA({ticks:h.current,label:e.labelRef?.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}));var g=(0,w.useCallback)(e=>{if(e){var t=e.getElementsByClassName(`recharts-cartesian-axis-tick-value`);h.current=t;var n=t[0];if(n){var r=window.getComputedStyle(n),i=r.fontSize,a=r.letterSpacing;(i!==d||a!==p)&&(f(i),m(a))}}},[d,p]);return o||r!=null&&r<=0||i!=null&&i<=0?null:w.createElement(jT,{zIndex:e.zIndex},w.createElement(Po,{className:rr(`recharts-cartesian-axis`,a)},w.createElement(UA,{x:e.x,y:e.y,width:r,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:xo(e)}),w.createElement(YA,{ref:g,axisType:c,events:u,fontSize:d,getTicksConfig:e,height:e.height,letterSpacing:p,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:s,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:l}),w.createElement(dD,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},w.createElement(TD,{label:e.label,labelRef:e.labelRef}),e.children)))}),ZA=w.forwardRef((e,t)=>{var n=$c(e,HA);return w.createElement(XA,IA({},n,{ref:t}))});ZA.displayName=`CartesianAxis`;var QA=[`x1`,`y1`,`x2`,`y2`,`key`],$A=[`offset`],ej=[`xAxisId`,`yAxisId`],tj=[`xAxisId`,`yAxisId`];function nj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?nj(Object(n),!0).forEach(function(t){ij(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ij(e,t,n){return(t=aj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aj(e){var t=oj(e,`string`);return typeof t==`symbol`?t:t+``}function oj(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function sj(){return sj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sj.apply(null,arguments)}function cj(e,t){if(e==null)return{};var n,r,i=lj(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function lj(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var uj=e=>{var{fill:t}=e;if(!t||t===`none`)return null;var{fillOpacity:n,x:r,y:i,width:a,height:o,ry:s}=e;return w.createElement(`rect`,{x:r,y:i,ry:s,width:a,height:o,stroke:`none`,fill:t,fillOpacity:n,className:`recharts-cartesian-grid-bg`})};function dj(e){var{option:t,lineItemProps:n}=e,r;if(w.isValidElement(t))r=w.cloneElement(t,n);else if(typeof t==`function`)r=t(n);else{var{x1:i,y1:a,x2:o,y2:s,key:c}=n,l=xo(cj(n,QA))??{},{offset:u}=l,d=cj(l,$A);r=w.createElement(`line`,sj({},d,{x1:i,y1:a,x2:o,y2:s,fill:`none`,key:c}))}return r}function fj(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=cj(e,ej),c=i.map((e,i)=>{var a=rj(rj({},s),{},{x1:t,y1:e,x2:t+n,y2:e,key:`line-${i}`,index:i});return w.createElement(dj,{key:`line-${i}`,option:r,lineItemProps:a})});return w.createElement(`g`,{className:`recharts-cartesian-grid-horizontal`},c)}function pj(e){var{y:t,height:n,vertical:r=!0,verticalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=cj(e,tj),c=i.map((e,i)=>{var a=rj(rj({},s),{},{x1:e,y1:t,x2:e,y2:t+n,key:`line-${i}`,index:i});return w.createElement(dj,{option:r,lineItemProps:a,key:`line-${i}`})});return w.createElement(`g`,{className:`recharts-cartesian-grid-vertical`},c)}function mj(e){var{horizontalFill:t,fillOpacity:n,x:r,y:i,width:a,height:o,horizontalPoints:s,horizontal:c=!0}=e;if(!c||!t||!t.length||s==null)return null;var l=s.map(e=>Math.round(e+i-i)).sort((e,t)=>
43e-t);i!==l[0]&&l.unshift(0);var u=l.map((e,s)=>{var c=l[s+1],u=c==null?i+o-e:c-e;if(u<=0)return null;var d=s%t.length;return w.createElement(`rect`,{key:`react-${s}`,y:e,x:r,height:u,width:a,stroke:`none`,fill:t[d],fillOpacity:n,className:`recharts-cartesian-grid-bg`})});return w.createElement(`g`,{className:`recharts-cartesian-gridstripes-horizontal`},u)}function hj(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:i,y:a,width:o,height:s,verticalPoints:c}=e;if(!t||!n||!n.length)return null;var l=c.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==l[0]&&l.unshift(0);var u=l.map((e,t)=>{var c=l[t+1],u=c==null?i+o-e:c-e;if(u<=0)return null;var d=t%n.length;return w.createElement(`rect`,{key:`react-${t}`,x:e,y:a,width:u,height:s,stroke:`none`,fill:n[d],fillOpacity:r,className:`recharts-cartesian-grid-bg`})});return w.createElement(`g`,{className:`recharts-cartesian-gridstripes-vertical`},u)}var gj=(e,t)=>{var{xAxis:n,width:r,height:i,offset:a}=e;return Qf(DA(rj(rj(rj({},HA),n),{},{ticks:$f(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.left,a.left+a.width,t)},_j=(e,t)=>{var{yAxis:n,width:r,height:i,offset:a}=e;return Qf(DA(rj(rj(rj({},HA),n),{},{ticks:$f(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.top,a.top+a.height,t)},vj={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:`#ccc`,fill:`none`,verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:p_.grid};function yj(e){var t=tm(),n=nm(),r=pee(),i=rj(rj({},$c(e,vj)),{},{x:G(e.x)?e.x:r.left,y:G(e.y)?e.y:r.top,width:G(e.width)?e.width:r.width,height:G(e.height)?e.height:r.height}),{xAxisId:a,yAxisId:o,x:s,y:c,width:l,height:u,syncWithTicks:d,horizontalValues:f,verticalValues:p}=i,m=Rp(),h=K(e=>Tw(e,`xAxis`,a,m)),g=K(e=>Tw(e,`yAxis`,o,m));if(!Uf(l)||!Uf(u)||!G(s)||!G(c))return null;var _=i.verticalCoordinatesGenerator||gj,v=i.horizontalCoordinatesGenerator||_j,{horizontalPoints:y,verticalPoints:b}=i;if((!y||!y.length)&&typeof v==`function`){var x=f&&f.length,S=v({yAxis:g?rj(rj({},g),{},{ticks:x?f:g.ticks}):void 0,width:t??l,height:n??u,offset:r},x?!0:d);Wp(Array.isArray(S),`horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`),Array.isArray(S)&&(y=S)}if((!b||!b.length)&&typeof _==`function`){var C=p&&p.length,T=_({xAxis:h?rj(rj({},h),{},{ticks:C?p:h.ticks}):void 0,width:t??l,height:n??u,offset:r},C?!0:d);Wp(Array.isArray(T),`verticalCoordinatesGenerator should return Array but instead it returned [${typeof T}]`),Array.isArray(T)&&(b=T)}return w.createElement(jT,{zIndex:i.zIndex},w.createElement(`g`,{className:`recharts-cartesian-grid`},w.createElement(uj,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),w.createElement(mj,sj({},i,{horizontalPoints:y})),w.createElement(hj,sj({},i,{verticalPoints:b})),w.createElement(fj,sj({},i,{offset:r,horizontalPoints:y,xAxis:h,yAxis:g})),w.createElement(pj,sj({},i,{offset:r,verticalPoints:b,xAxis:h,yAxis:g}))))}yj.displayName=`CartesianGrid`;var bj=qd({name:`errorBars`,initialState:{},reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:i}=t.payload;e[n]&&(e[n]=e[n].map(e=>e.dataKey===r.dataKey&&e.direction===r.direction?i:e))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(e=>e.dataKey!==r.dataKey||e.direction!==r.direction))}}}),{addErrorBar:oie,replaceErrorBar:sie,removeErrorBar:cie}=bj.actions,xj=bj.reducer,Sj=[`children`];function Cj(e,t){if(e==null)return{};var n,r,i=wj(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wj(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Tj=(0,w.createContext)({data:[],xAxisId:`xAxis-0`,yAxisId:`yAxis-0`,dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0});function Ej(e){var{children:t}=e,n=Cj(e,Sj);return w.createElement(Tj.Provider,{value:n},t)}function Dj(e,t){var n=K(t=>aC(t,e)),r=K(e=>cC(e,t)),i=n?.allowDataOverflow??rC.allowDataOverflow,a=r?.allowDataOverflow??oC.allowDataOverflow;return{needClip:i||a,needClipX:i,needClipY:a}}function Oj(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=hk(),{needClipX:a,needClipY:o,needClip:s}=Dj(t,n);if(!s||!i)return null;var{x:c,y:l,width:u,height:d}=i;return w.createElement(`clipPath`,{id:`clipPath-${r}`},w.createElement(`rect`,{x:a?c:c-u/2,y:o?l:l-d/2,width:a?u:u*2,height:o?d:d*2}))}var kj=(e,t,n,r)=>Ow(e,`xAxis`,t,r),Aj=(e,t,n,r)=>Dw(e,`xAxis`,t,r),jj=(e,t,n,r)=>Ow(e,`yAxis`,n,r),Mj=(e,t,n,r)=>Dw(e,`yAxis`,n,r),Nj=q([rm,kj,jj,Aj,Mj],(e,t,n,r,i)=>Zf(e,`xAxis`)?fp(t,r,!1):fp(n,i,!1)),Pj=(e,t,n,r,i)=>i;function Fj(e){return e.type===`line`}var Ij=q([rm,kj,jj,Aj,Mj,q([gC,Pj],(e,t)=>e.filter(Fj).find(e=>e.id===t)),Nj,Kg],(e,t,n,r,i,a,o,s)=>{var{chartData:c,dataStartIndex:l,dataEndIndex:u}=s;if(!(a==null||t==null||n==null||r==null||i==null||r.length===0||i.length===0||o==null||e!==`horizontal`&&e!==`vertical`)){var{dataKey:d,data:f}=a,p=f!=null&&f.length>0?f:c?.slice(l,u+1);if(p!=null)return uM({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:d,bandSize:o,displayedData:p})}});function Lj(e){var t=So(e),n=3,r=2;if(t!=null){var{r:i,strokeWidth:a}=t,o=Number(i),s=Number(a);return(Number.isNaN(o)||o<0)&&(o=n),(Number.isNaN(s)||s<0)&&(s=r),{r:o,strokeWidth:s}}return{r:n,strokeWidth:r}}var Rj=[`id`],zj=[`type`,`layout`,`connectNulls`,`needClip`,`shape`],Bj=[`activeDot`,`animateNewValues`,`animationBegin`,`animationDuration`,`animationEasing`,`connectNulls`,`dot`,`hide`,`isAnimationActive`,`label`,`legendT
43ype`,`xAxisId`,`yAxisId`,`id`];function Vj(){return Vj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vj.apply(null,arguments)}function Hj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Uj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Hj(Object(n),!0).forEach(function(t){Wj(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wj(e,t,n){return(t=Gj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gj(e){var t=Kj(e,`string`);return typeof t==`symbol`?t:t+``}function Kj(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function qj(e,t){if(e==null)return{};var n,r,i=Jj(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Jj(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Yj=e=>{var{dataKey:t,name:n,stroke:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:mp(n,t),payload:e}]},Xj=w.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,unit:c,tooltipType:l,id:u}=e,d={dataDefinedOnItem:n,getPosition:kc,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:mp(o,t),hide:s,type:l,color:r,unit:c,graphicalItemId:u}};return w.createElement(AO,{tooltipEntrySettings:d})}),Zj=(e,t)=>`${t}px ${e}px`;function Qj(e,t){for(var n=e.length%2==0?e:[...e,0],r=[],i=0;i<t;++i)r.push(...n);return r}var $j=(e,t,n)=>{var r=n.reduce((e,t)=>e+t,0);if(!r)return Zj(t,e);for(var i=Math.floor(e/r),a=e%r,o=[],s=0,c=0;s<n.length;c+=(l=n[s])??0,++s){var l,u=n[s];if(u!=null&&c+u>a){o=[...n.slice(0,s),a-c];break}}var d=o.length%2==0?[0,t]:[t];return[...Qj(n,i),...o,...d].map(e=>`${e}px`).join(`, `)};function eM(e){var{clipPathId:t,points:n,props:r}=e,{dot:i,dataKey:a,needClip:o}=r,{id:s}=r,c=xo(qj(r,Rj));return w.createElement($O,{points:n,dot:i,className:`recharts-line-dots`,dotClassName:`recharts-line-dot`,dataKey:a,baseProps:c,needClip:o,clipPathId:t})}function tM(e){var{showLabels:t,children:n,points:r}=e,i=(0,w.useMemo)(()=>r?.map(e=>{var t={x:e.x??0,y:e.y??0,width:0,lowerWidth:0,upperWidth:0,height:0};return Uj(Uj({},t),{},{value:e.value,payload:e.payload,viewBox:t,parentViewBox:void 0,fill:void 0})}),[r]);return w.createElement(ND,{value:t?i:void 0},n)}function nM(e){var{clipPathId:t,pathRef:n,points:r,strokeDasharray:i,props:a}=e,{type:o,layout:s,connectNulls:c,needClip:l,shape:u}=a,d=Uj(Uj({},Co(qj(a,zj))),{},{fill:`none`,className:`recharts-line-curve`,clipPath:l?`url(#clipPath-${t})`:void 0,points:r,type:o,layout:s,connectNulls:c,strokeDasharray:i??a.strokeDasharray});return w.createElement(w.Fragment,null,r?.length>1&&w.createElement(EO,Vj({shapeType:`curve`,option:u},d,{pathRef:n})),w.createElement(eM,{points:r,clipPathId:t,props:a}))}function rM(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function iM(e){var{clipPathId:t,props:n,pathRef:r,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:o,strokeDasharray:s,isAnimationActive:c,animationBegin:l,animationDuration:u,animationEasing:d,animateNewValues:f,width:p,height:m,onAnimationEnd:h,onAnimationStart:g}=n,_=i.current,v=Jh(o,`recharts-line-`),y=(0,w.useRef)(v),[b,x]=(0,w.useState)(!1),S=!b,C=(0,w.useCallback)(()=>{typeof h==`function`&&h(),x(!1)}
43,[h]),T=(0,w.useCallback)(()=>{typeof g==`function`&&g(),x(!0)},[g]),E=rM(r.current),D=(0,w.useRef)(0);y.current!==v&&(D.current=a.current,y.current=v);var O=D.current;return w.createElement(tM,{points:o,showLabels:S},n.children,w.createElement(qh,{animationId:v,begin:l,duration:u,isActive:c,easing:d,onAnimationEnd:C,onAnimationStart:T,key:v},e=>{var l=wc(O,E+O,e),u=Math.min(l,E),d=c?s?$j(u,E,`${s}`.split(/[,\s]+/gim).map(e=>parseFloat(e))):Zj(E,u):s==null?void 0:String(s);if(e>0&&E>0&&(i.current=o,a.current=Math.max(a.current,u)),_){var h=_.length/o.length,g=e===1?o:o.map((t,n)=>{var r=Math.floor(n*h);if(_[r]){var i=_[r];return Uj(Uj({},t),{},{x:wc(i.x,t.x,e),y:wc(i.y,t.y,e)})}return f?Uj(Uj({},t),{},{x:wc(p*2,t.x,e),y:wc(m/2,t.y,e)}):Uj(Uj({},t),{},{x:t.x,y:t.y})});return i.current=g,w.createElement(nM,{props:n,points:g,clipPathId:t,pathRef:r,strokeDasharray:d})}return w.createElement(nM,{props:n,points:o,clipPathId:t,pathRef:r,strokeDasharray:d})}),w.createElement(RD,{label:n.label}))}function aM(e){var{clipPathId:t,props:n}=e,r=(0,w.useRef)(null),i=(0,w.useRef)(0),a=(0,w.useRef)(null);return w.createElement(iM,{props:n,clipPathId:t,previousPointsRef:r,longestAnimatedLengthRef:i,pathRef:a})}var oM=(e,t)=>({x:e.x??void 0,y:e.y??void 0,value:e.value,errorVal:Yf(e.payload,t)}),sM=class extends w.Component{render(){var{hide:e,dot:t,points:n,className:r,xAxisId:i,yAxisId:a,top:o,left:s,width:c,height:l,id:u,needClip:d,zIndex:f}=this.props;if(e)return null;var p=rr(`recharts-line`,r),m=u,{r:h,strokeWidth:g}=Lj(t),_=ZD(t),v=h*2+g,y=d?`url(#clipPath-${_?``:`dots-`}${m})`:void 0;return w.createElement(jT,{zIndex:f},w.createElement(Po,{className:p},d&&w.createElement(`defs`,null,w.createElement(Oj,{clipPathId:m,xAxisId:i,yAxisId:a}),!_&&w.createElement(`clipPath`,{id:`clipPath-dots-${m}`},w.createElement(`rect`,{x:s-v/2,y:o-v/2,width:c+v,height:l+v}))),w.createElement(Ej,{xAxisId:i,yAxisId:a,data:n,dataPointFormatter:oM,errorBarOffset:0},w.createElement(aM,{props:this.props,clipPathId:m}))),w.createElement(Ck,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:y}))}},cM={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:`ease`,connectNulls:!1,dot:!0,fill:`#fff`,hide:!1,isAnimationActive:`auto`,label:!1,legendType:`line`,stroke:`#3182bd`,strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:p_.line,type:`linear`};function lM(e){var t=$c(e,cM),{activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:s,dot:c,hide:l,isAnimationActive:u,label:d,legendType:f,xAxisId:p,yAxisId:m,id:h}=t,g=qj(t,Bj),{needClip:_}=Dj(p,m),v=hk(),y=im(),b=Rp(),x=K(e=>Ij(e,p,m,b,h));if(y!==`horizontal`&&y!==`vertical`||x==null||v==null)return null;var{height:S,width:C,x:T,y:E}=v;return w.createElement(sM,Vj({},g,{id:h,connectNulls:s,dot:c,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:u,hide:l,label:d,legendType:f,xAxisId:p,yAxisId:m,points:x,layout:y,height:S,width:C,left:T,top:E,needClip:_}))}function uM(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,dataKey:o,bandSize:s,displayedData:c}=e;return c.map((e,c)=>{var l=Yf(e,o);if(t===`horizontal`)return{x:ip({axis:n,ticks:i,bandSize:s,entry:e,index:c}),y:(Ec(l)?null:r.scale.map(l))??null,value:l,payload:e};var u=Ec(l)?null:n.scale.map(l),d=ip({axis:r,ticks:a,bandSize:s,entry:e,index:c});return u==null||d==null?null:{x:u,y:d,value:l,payload:e}}).filter(Boolean)}function dM(e){var t=$c(e,cM),n=Rp();return w.createElement(FO,{id:t.id,type:`line`},e=>w.createElement(w.Fragment,null,w.createElement(jO,{legendPayload:Yj(t)}),w.createElement(Xj,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),w.createElement(VO,{type:`line`,id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),w.createElement(lM,Vj({},t,{id:e}))))}var fM=w.memo(dM,fh);fM.displayName=`Line`;function pM(e,t){return e.graphicalItems.cartesianItems.find(e=>e.id===t)?.xAxisId??0}function mM(e,t){return e.graphicalItems.cartesianItems.find(e=>e.id===t)?.yAxisId??0}var hM=(e,t,n)=>Ow(e,`xAxis`,pM(e,t),n),gM=(e,t,n)=>Dw(e,`xAxis`,pM(e,t),n),_M=(e,t,n)=>Ow(e,`yAxis`,mM(e,t),n),vM=(e,t,n)=>Dw(e,`yAxis`,mM(e,t),n),yM=q([rm,hM,_M,gM,vM],(e,t,n,r,i)=>Zf(e,`xAxis`)?fp(t,r,!1):fp(n,i,!1)),bM=q([gC,(e,t)=>t],(e,t)=>e.filter(e=>e.type===`area`).find(e=>e.id===t)),xM=e=>Zf(rm(e),`xAxis`)?`yAxis`:`xAxis`,SM=(e,t)=>xM(e)===`yAxis`?mM(e,t):pM(e,t),CM=q([rm,hM,_M,gM,vM,q([bM,(e,t,n)=>BC(e,xM(e),SM(e,t),n)],(e,t)=>{if(!(e==null||t==null)){var{stackId:n}=e,r=N_(e);if(!(n==null||r==null)){var i=(t[n]?.stackedData)?.find(e=>e.key===r);if(i!=null)return i.map(e=>[e[0],e[1]])}}}),qg,yM,bM,fte],(e,t,n,r,i,a,o,s,c,l)=>{var{chartData:u,dataStartIndex:d,dataEndIndex:f}=o;if(!(c==null||e!==`horizontal`&&e!==`vertical`||t==null||n==null||r==null||i==null||r.length===0||i.length===0||s==null)){var{data:p}=c,m=p&&p.length>
430?p:u?.slice(d,f+1);if(m!=null)return YM({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataStartIndex:d,areaSettings:c,stackedData:a,displayedData:m,chartBaseValue:l,bandSize:s})}}),wM=[`id`],TM=[`activeDot`,`animationBegin`,`animationDuration`,`animationEasing`,`connectNulls`,`dot`,`fill`,`fillOpacity`,`hide`,`isAnimationActive`,`legendType`,`stroke`,`xAxisId`,`yAxisId`];function EM(){return EM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EM.apply(null,arguments)}function DM(e,t){if(e==null)return{};var n,r,i=OM(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function OM(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function kM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function AM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?kM(Object(n),!0).forEach(function(t){jM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jM(e,t,n){return(t=MM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MM(e){var t=NM(e,`string`);return typeof t==`symbol`?t:t+``}function NM(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function PM(e,t){return e&&e!==`none`?e:t}var FM=e=>{var{dataKey:t,name:n,stroke:r,fill:i,legendType:a,hide:o}=e;return[{inactive:o,dataKey:t,type:a,color:PM(r,i),value:mp(n,t),payload:e}]},IM=w.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,unit:c,tooltipType:l,id:u}=e,d={dataDefinedOnItem:n,getPosition:kc,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:mp(o,t),hide:s,type:l,color:PM(r,a),unit:c,graphicalItemId:u}};return w.createElement(AO,{tooltipEntrySettings:d})});function LM(e){var{clipPathId:t,points:n,props:r}=e,{needClip:i,dot:a,dataKey:o}=r,s=xo(r);return w.createElement($O,{points:n,dot:a,className:`recharts-area-dots`,dotClassName:`recharts-area-dot`,dataKey:o,baseProps:s,needClip:i,clipPathId:t})}function RM(e){var{showLabels:t,children:n,points:r}=e,i=r.map(e=>{var t={x:e.x??0,y:e.y??0,width:0,lowerWidth:0,upperWidth:0,height:0};return AM(AM({},t),{},{value:e.value,payload:e.payload,parentViewBox:void 0,viewBox:t,fill:void 0})});return w.createElement(ND,{value:t?i:void 0},n)}function zM(e){var{points:t,baseLine:n,needClip:r,clipPathId:i,props:a}=e,{layout:o,type:s,stroke:c,connectNulls:l,isRange:u}=a,{id:d}=a,f=DM(a,wM),p=xo(f),m=Co(f);return w.createElement(w.Fragment,null,t?.length>1&&w.createElement(Po,{clipPath:r?`url(#clipPath-${i})`:void 0},w.createElement(Ch,EM({},m,{id:d,points:t,connectNulls:l,type:s,baseLine:n,layout:o,stroke:`none`,className:`recharts-area-area`})),c!==`none`&&w.createElement(Ch,EM({},p,{className:`recharts-area-curve`,layout:o,type:s,connectNulls:l,fill:`none`,points:t})),c!==`none`&&u&&Array.isArray(n)&&w.createElement(Ch,EM({},p,{className:`recharts-area-curve`,layout:o,type:s,connectNulls:l,fill:`none`,points:n}))),w.createElement(LM,{points:t,props:f,clipPathId:i}))}function BM(e){var{alpha:t,baseLine:n,points:r,strokeWidth:i}=e,a=r[0]?.y,o=r[r.length-1]?.y;if(!J(a)||!J(o))return null;var s=t*Math.abs(a-o),c=Math.max(...r.map(e=>e.x||0));return G(n)?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(...n.map(e=>e.x||0),c)),G(c)?w.createElement(`rect`,{x:0,y:a<o?a:a-s,width:c+(i?parseInt(`${i}`,10):1),height:Math.floor(s)}):null}
43function VM(e){var{alpha:t,baseLine:n,points:r,strokeWidth:i}=e,a=r[0]?.x,o=r[r.length-1]?.x;if(!J(a)||!J(o))return null;var s=t*Math.abs(a-o),c=Math.max(...r.map(e=>e.y||0));return G(n)?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(...n.map(e=>e.y||0),c)),G(c)?w.createElement(`rect`,{x:a<o?a:a-s,y:0,width:s,height:Math.floor(c+(i?parseInt(`${i}`,10):1))}):null}function HM(e){var{alpha:t,layout:n,points:r,baseLine:i,strokeWidth:a}=e;return n===`vertical`?w.createElement(BM,{alpha:t,points:r,baseLine:i,strokeWidth:a}):w.createElement(VM,{alpha:t,points:r,baseLine:i,strokeWidth:a})}function UM(e){var{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a}=e,{points:o,baseLine:s,isAnimationActive:c,animationBegin:l,animationDuration:u,animationEasing:d,onAnimationStart:f,onAnimationEnd:p}=r,m=Jh((0,w.useMemo)(()=>({points:o,baseLine:s}),[o,s]),`recharts-area-`),h=am(),[g,_]=(0,w.useState)(!1),v=!g,y=(0,w.useCallback)(()=>{typeof p==`function`&&p(),_(!1)},[p]),b=(0,w.useCallback)(()=>{typeof f==`function`&&f(),_(!0)},[f]);if(h==null)return null;var x=i.current,S=a.current;return w.createElement(RM,{showLabels:v,points:o},r.children,w.createElement(qh,{animationId:m,begin:l,duration:u,isActive:c,easing:d,onAnimationEnd:y,onAnimationStart:b,key:m},e=>{if(x){var l=x.length/o.length,u=e===1?o:o.map((t,n)=>{var r=Math.floor(n*l);if(x[r]){var i=x[r];return AM(AM({},t),{},{x:wc(i.x,t.x,e),y:wc(i.y,t.y,e)})}return t}),d=G(s)?wc(S,s,e):Ec(s)||_c(s)?wc(S,0,e):s.map((t,n)=>{var r=Math.floor(n*l);if(Array.isArray(S)&&S[r]){var i=S[r];return AM(AM({},t),{},{x:wc(i.x,t.x,e),y:wc(i.y,t.y,e)})}return t});return e>0&&(i.current=u,a.current=d),w.createElement(zM,{points:u,baseLine:d,needClip:t,clipPathId:n,props:r})}return e>0&&(i.current=o,a.current=s),w.createElement(Po,null,c&&w.createElement(`defs`,null,w.createElement(`clipPath`,{id:`animationClipPath-${n}`},w.createElement(HM,{alpha:e,points:o,baseLine:s,layout:h,strokeWidth:r.strokeWidth}))),w.createElement(Po,{clipPath:`url(#animationClipPath-${n})`},w.createElement(zM,{points:o,baseLine:s,needClip:t,clipPathId:n,props:r})))}),w.createElement(RD,{label:r.label}))}function WM(e){var{needClip:t,clipPathId:n,props:r}=e,i=(0,w.useRef)(null),a=(0,w.useRef)();return w.createElement(UM,{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a})}var GM=class extends w.PureComponent{render(){var{hide:e,dot:t,points:n,className:r,top:i,left:a,needClip:o,xAxisId:s,yAxisId:c,width:l,height:u,id:d,baseLine:f,zIndex:p}=this.props;if(e)return null;var m=rr(`recharts-area`,r),h=d,{r:g,strokeWidth:_}=Lj(t),v=ZD(t),y=g*2+_,b=o?`url(#clipPath-${v?``:`dots-`}${h})`:void 0;return w.createElement(jT,{zIndex:p},w.createElement(Po,{className:m},o&&w.createElement(`defs`,null,w.createElement(Oj,{clipPathId:h,xAxisId:s,yAxisId:c}),!v&&w.createElement(`clipPath`,{id:`clipPath-dots-${h}`},w.createElement(`rect`,{x:a-y/2,y:i-y/2,width:l+y,height:u+y}))),w.createElement(WM,{needClip:o,clipPathId:h,props:this.props})),w.createElement(Ck,{points:n,mainColor:PM(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:b}),this.props.isRange&&Array.isArray(f)&&w.createElement(Ck,{points:f,mainColor:PM(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:b}))}},KM={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:`ease`,connectNulls:!1,dot:!1,fill:`#3182bd`,fillOpacity:.6,hide:!1,isAnimationActive:`auto`,legendType:`line`,stroke:`#3182bd`,strokeWidth:1,type:`linear`,label:!1,xAxisId:0,yAxisId:0,zIndex:p_.area};function qM(e){var{activeDot:t,animationBegin:n,animationDuration:r,animationEasing:i,connectNulls:a,dot:o,fill:s,fillOpacity:c,hide:l,isAnimationActive:u,legendType:d,stroke:f,xAxisId:p,yAxisId:m}=e,h=DM(e,TM),g=im(),_=gre(),{needClip:v}=Dj(p,m),y=Rp(),{points:b,isRange:x,baseLine:S}=K(t=>CM(t,e.id,y))??{},C=hk();if(g!==`horizontal`&&g!==`vertical`||C==null||_!==`AreaChart`&&_!==`ComposedChart`)return null;var{height:T,width:E,x:D,y:O}=C;return!b||!b.length?null:w.createElement(GM,EM({},h,{activeDot:t,animationBegin:n,animationDuration:r,animationEasing:i,baseLine:S,connectNulls:a,dot:o,fill:s,fillOpacity:c,height:T,hide:l,layout:g,isAnimationActive:u,isRange:x,legendT
43ype:d,needClip:v,points:b,stroke:f,width:E,left:D,top:O,xAxisId:p,yAxisId:m}))}var JM=(e,t,n,r,i)=>{var a=n??t;if(G(a))return a;var o=e===`horizontal`?i:r,s=o.scale.domain();if(o.type===`number`){var c=Math.max(s[0],s[1]),l=Math.min(s[0],s[1]);return a===`dataMin`?l:a===`dataMax`||c<0?c:Math.max(Math.min(s[0],s[1]),0)}return a===`dataMin`?s[0]:a===`dataMax`?s[1]:s[0]};function YM(e){var{areaSettings:{connectNulls:t,baseValue:n,dataKey:r},stackedData:i,layout:a,chartBaseValue:o,xAxis:s,yAxis:c,displayedData:l,dataStartIndex:u,xAxisTicks:d,yAxisTicks:f,bandSize:p}=e,m=i&&i.length,h=JM(a,o,n,s,c),g=a===`horizontal`,_=!1,v=l.map((e,n)=>{var a;if(m)a=i[u+n];else{var o=Yf(e,r);Array.isArray(o)?(a=o,_=!0):a=[h,o]}var l=a?.[1]??null,v=l==null||m&&!t&&Yf(e,r)==null;return g?{x:ip({axis:s,ticks:d,bandSize:p,entry:e,index:n}),y:v?null:c.scale.map(l)??null,value:a,payload:e}:{x:v?null:s.scale.map(l)??null,y:ip({axis:c,ticks:f,bandSize:p,entry:e,index:n}),value:a,payload:e}});return{points:v,baseLine:(m||_?v.map(e=>{var t=Array.isArray(e.value)?e.value[0]:null;return g?{x:e.x,y:t!=null&&e.y!=null?c.scale.map(t)??null:null,payload:e.payload}:{x:t==null?null:s.scale.map(t)??null,y:e.y,payload:e.payload}}):g?c.scale.map(h):s.scale.map(h))??0,isRange:_}}function XM(e){var t=$c(e,KM),n=Rp();return w.createElement(FO,{id:t.id,type:`area`},e=>w.createElement(w.Fragment,null,w.createElement(jO,{legendPayload:FM(t)}),w.createElement(IM,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),w.createElement(VO,{type:`area`,id:e,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:rp(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),w.createElement(qM,EM({},t,{id:e}))))}var ZM=w.memo(XM,fh);ZM.displayName=`Area`;var QM=`Invariant failed`;function $M(e,t){if(!e)throw Error(QM)}function eN(){return eN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eN.apply(null,arguments)}function tN(e){return w.createElement(EO,eN({shapeType:`rectangle`,activeClassName:`recharts-active-bar`,inActiveClassName:`recharts-inactive-bar`},e))}var nN=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,r)=>{if(G(e))return e;var i=G(n)||Ec(n);return i?e(n,r):(!i&&$M(!1,`minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`),t)}},rN=(e,t,n)=>n,iN=q([gC,(e,t)=>t],(e,t)=>e.filter(e=>e.type===`bar`).find(e=>e.id===t)),aN=q([iN],e=>e?.maxBarSize),oN=(e,t,n,r)=>r,sN=q([rm,gC,pM,mM,rN],(e,t,n,r,i)=>t.filter(t=>e===`horizontal`?t.xAxisId===n:t.yAxisId===r).filter(e=>e.isPanorama===i).filter(e=>e.hide===!1).filter(e=>e.type===`bar`)),cN=(e,t,n)=>{var r=rm(e),i=pM(e,t),a=mM(e,t);if(!(i==null||a==null))return r===`horizontal`?BC(e,`yAxis`,a,n):BC(e,`xAxis`,i,n)},lN=q([sN,ute,(e,t)=>{var n=rm(e),r=pM(e,t),i=mM(e,t);if(!(r==null||i==null))return n===`horizontal`?Sw(e,`xAxis`,r):Sw(e,`yAxis`,i)}],Tk),uN=(e,t,n)=>{var r=iN(e,t);if(r==null)return 0;var i=pM(e,t),a=mM(e,t);if(i==null||a==null)return 0;var o=rm(e),s=o_(e),{maxBarSize:c}=r,l=Ec(c)?s:c,u,d;return o===`horizontal`?(u=Ow(e,`xAxis`,i,n),d=Dw(e,`xAxis`,i,n)):(u=Ow(e,`yAxis`,a,n),d=Dw(e,`yAxis`,a,n)),fp(u,d,!0)??l??0},dN=(e,t,n)=>{var r=rm(e),i=pM(e,t),a=mM(e,t);if(!(i==null||a==null)){var o,s;return r===`horizontal`?(o=Ow(e,`xAxis`,i,n),s=Dw(e,`xAxis`,i,n)):(o=Ow(e,`yAxis`,a,n),s=Dw(e,`yAxis`,a,n)),fp(o,s)}},fN=q([Pp,Ip,(e,t,n)=>{var r=pM(e,t);if(r!=null)return Ow(e,`xAxis`,r,n)},(e,t,n)=>{var r=mM(e,t);if(r!=null)return Ow(e,`yAxis`,r,n)},(e,t,n)=>{var r=pM(e,t);if(r!=null)return Dw(e,`xAxis`,r,n)},(e,t,n)=>{var r=mM(e,t);if(r!=null)return Dw(e,`yAxis`,r,n)},q([q([lN,o_,lte,s_,uN,dN,aN],Mk),iN],Pk),rm,qg,dN,q([cN,iN],Nk),iN,oN],(e,t,n,r,i,a,o,s,c,l,u,d,f)=>{var{chartData:p,dataStartIndex:m,dataEndIndex:h}=c;if(!(d==null||o==null||t==null||s!==`horizontal`&&s!==`vertical`||n==null||r==null||i==null||a==null||l==null)){var{data:g}=d,_=g!=null&&g.length>
430?g:p?.slice(m,h+1);if(_!=null)return JN({layout:s,barSettings:d,pos:o,parentViewBox:t,bandSize:l,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,stackedData:u,displayedData:_,offset:e,cells:f,dataStartIndex:m})}}),pN=[`index`];function mN(){return mN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mN.apply(null,arguments)}function hN(e,t){if(e==null)return{};var n,r,i=gN(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function gN(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var _N=(0,w.createContext)(void 0),vN=e=>{var t=(0,w.useContext)(_N);if(t!=null)return t.stackId;if(e!=null)return rp(e)},yN=(e,t)=>`recharts-bar-stack-clip-path-${e}-${t}`,bN=e=>{var t=(0,w.useContext)(_N);if(t!=null){var{stackId:n}=t;return`url(#${yN(n,e)})`}},xN=e=>{var{index:t}=e,n=hN(e,pN),r=bN(t);return w.createElement(Po,mN({className:`recharts-bar-stack-layer`,clipPath:r},n))},SN=[`onMouseEnter`,`onMouseLeave`,`onClick`],CN=[`value`,`background`,`tooltipPosition`],wN=[`id`],TN=[`onMouseEnter`,`onClick`,`onMouseLeave`];function EN(){return EN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EN.apply(null,arguments)}function DN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ON(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?DN(Object(n),!0).forEach(function(t){kN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kN(e,t,n){return(t=AN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AN(e){var t=jN(e,`string`);return typeof t==`symbol`?t:t+``}function jN(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function MN(e,t){if(e==null)return{};var n,r,i=NN(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function NN(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var PN=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:mp(n,t),payload:e}]},FN=w.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:a,hide:o,unit:s,tooltipType:c,id:l}=e,u={dataDefinedOnItem:void 0,getPosition:kc,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:mp(a,t),hide:o,type:c,color:i,unit:s,graphicalItemId:l}};return w.createElement(AO,{tooltipEntrySettings:u})});function IN(e){var t=K(pT),{data:n,dataKey:r,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:s,onClick:c}=a,l=MN(a,SN),u=DO(o,r,a.id),d=OO(s),f=kO(c,r,a.id);if(!i||n==null)return null;var p=So(i);return w.createElement(jT,{zIndex:Fk(i,p_.barBackground)},n.map((e,n)=>{var{value:a,background:o,tooltipPosition:s}=e,c=MN(e,CN);if(!o)return null;var m=u(e,n),h=d(e,n),g=f(e,n),_=ON(ON(ON(ON(ON({option:i,isActive:String(n)===t},c),{},{fill:`#eee`},o),p),qc(l,e,n)),{},{onMouseEnter:m,onMouseLeave:h,onClick:g,dataKey:r,index:n,className:`recharts-bar-background-rectangle`});return w.createElement(tN,EN({key:`background-bar-${n}`},_))}))}function LN(e){var{showLabels:t,children:n,rects:r}=e,i=r?.map(e=>{var t={x:e.x,y:e.y,width:e.width,lowerWidth:e.width,upperWidth:e.width,height:e.height};return ON(ON({},t),{},{value:e.value,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})});return w.createElement(ND,{value:t?i:void 0},n)}function RN(e){var{shape:t,activeBar:n,baseProps:r,entry:i,index:a,dataKey:o}=e,s=K(pT),c=K(hT),l=n&&String(i.originalDataIndex)===s&&(c==null||o===c),[u,d]=(0,w.useState)(!1),[f,p]=(0,w.useState)(!1);(0,w.useEffect)(()=>{var e;return l?(d(!0),e=requestAnimationFrame(()=>{p(!0)})):p(!1),()=>{cancelAnimationFrame(e)}},[l]);var m=(0,w.useCallback)(()=>{l||d(!1)},[l]),h=l&&f,g=l||u,_=l?n===!0?t:n:t,v=w.createElement(tN,EN({},r,{name:String(r.name)},i,{isActive:h,option:_,index:a,dataKey:o,onTransitionEnd:m}));return g?w.createElement(jT,{zIndex:p_.activeBar},w.createElement(xN,{index:i.originalDataIndex},v)):v}function zN(e){var{shape:t,baseProps:n,entry:r,index:i,dataKey:a}=e;return w.createElement(tN,EN({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:i,dataKey:a}))}function BN(e){var{data:t,props:n}=e,r=xo(n)??{},{id:i}=r,a=MN(r,wN),{shape:o,dataKey:s,activeBar:c}=n,{onMouseEnter:l,onClick:u,onMouseLeave:d}=n,f=MN(n,TN),p=DO(l,s,i),m=OO(d),h=kO(u,s,i);return t?w.createElement(w.Fragment,null,t.map((e,t)=>w.createElement(xN,EN({index:e.originalDataIndex,key:`rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,className:`recharts-bar-rectangle`},qc(f,e,t),{onMouseEnter:p(e,t),onMouseLeave:m(e,t),onClick:h(e,t)}),c?w.createElement(RN,{shape:o,activeBar:c,baseProps:a,entry:e,index:t,dataKey:s}):w.createElement(zN,{shape:o,baseProps:a,entry:e,index:t,dataKey:s})))):null}function VN(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:i,isAnimationActive:a,animationBegin:o,animationDuration:s,animationEasing:c,onAnimationEnd:l,onAnimationStart:u}=t,d=n.current,f=Jh(t,`recharts-bar-`),[p,m]=(0,w.useState)(!1),h=!p,g=(0,w.useCallback)(()=>{typeof l==`function`&&l(),m(!1)},[l]),_=(0,w.useCallback)(()=>{typeof u==`function`&&u(),m(!0)},[u]);return w.createElement(LN,{showLabels:h,rects:r},w.createElement(qh,{animationId:f,begin:o,duration:s,isActive:a,easing:c,onAnimationEnd:g,onAnimationStart:_,key:f},e=>{var a=e===1?r:r?.map((t,n)=>{var r=d&&d[n];if(r)return ON(ON({},t),{},{x:wc(r.x,t.x,e),y:wc(r.y,t.y,e),width:wc(r.width,t.width,e),height:wc(r.height,t.height,e)});if(i===`horizontal`){var a=wc(0,t.height,e),o=wc(t.stackedBarStart,t.y,e);return ON(ON({},t),{},{y:o,height:a})}var s=wc(0,t.width,e),c=wc(t.stackedBarStart,t.x,e);return ON(ON({},t),{},{width:s,x:c})});return e>0&&(n.current=a??null),a==null?null:w.createElement(Po,null,w.createElement(BN,{props:t,data:a}))}),w.createElement(RD,{label:t.label}),t.children)}function HN(e){var t=(0,w.useRef)(null);return w.createElement(VN,{previousRectanglesRef:t,props:e})}var UN=0,WN=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:Yf(e,t)}},GN=class extends w.PureComponent{render(){var{hide:e,data:t,dataKey:n,className:r,xAxisId:i,yAxisId:a,needClip:o,background:s,id:c}=this.props;if(e||t==null)return null;var l=rr(`recharts-bar`,r),u=c;return w.createElement(Po,{className:l,id:c},o&&w.createElement(`defs`,null,w.createElement(Oj,{clipPathId:u,xAxisId:i,yAxisId:a})),w.createElement(Po,{className:`recharts-bar-rectangles`,clipPath:o?`url(#clipPath-${u})`:void 0},w.createElement(IN,{data:t,dataKey:n,background:s,allOtherBarProps:this.props}),w.createElement(HN,this.props)))}},KN={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:`ease`,background:!1,hide:!1,isAnimationActive:`auto`,label:!1,legendT
43ype:`rect`,minPointSize:UN,xAxisId:0,yAxisId:0,zIndex:p_.bar};function qN(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:c,animationEasing:l,isAnimationActive:u}=e,{needClip:d}=Dj(t,n),f=im(),p=Rp(),m=XD(e.children,KT),h=K(t=>fN(t,e.id,p,m));if(f!==`vertical`&&f!==`horizontal`)return null;var g,_=h?.[0];return g=_==null||_.height==null||_.width==null?0:f===`vertical`?_.height/2:_.width/2,w.createElement(Ej,{xAxisId:t,yAxisId:n,data:h,dataPointFormatter:WN,errorBarOffset:g},w.createElement(GN,EN({},e,{layout:f,needClip:d,data:h,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:c,animationEasing:l,isAnimationActive:u})))}function JN(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r,hasCustomShape:i},pos:a,bandSize:o,xAxis:s,yAxis:c,xAxisTicks:l,yAxisTicks:u,stackedData:d,displayedData:f,offset:p,cells:m,parentViewBox:h,dataStartIndex:g}=e,_=t===`horizontal`?c:s,v=d?_.scale.domain():null,y=op({numericAxis:_}),b=_.scale.map(y);return f.map((e,f)=>{var _,x,S,C,w,T;if(d){var E=d[f+g];if(E==null)return null;_=ep(E,v)}else _=Yf(e,n),Array.isArray(_)||(_=[y,_]);var D=nN(r,UN)(_[1],f);if(t===`horizontal`){var O=c.scale.map(_[0]),k=c.scale.map(_[1]);if(O==null||k==null)return null;x=ap({axis:s,ticks:l,bandSize:o,offset:a.offset,entry:e,index:f}),S=k??O??void 0,C=a.size;var A=O-k;if(w=_c(A)?0:A,T={x,y:p.top,width:C,height:p.height},Math.abs(D)>0&&Math.abs(w)<Math.abs(D)){var j=gc(w||D)*(Math.abs(D)-Math.abs(w));S-=j,w+=j}}else{var M=s.scale.map(_[0]),N=s.scale.map(_[1]);if(M==null||N==null)return null;if(x=M,S=ap({axis:c,ticks:u,bandSize:o,offset:a.offset,entry:e,index:f}),C=N-M,w=a.size,T={x:p.left,y:S,width:p.width,height:w},Math.abs(D)>0&&Math.abs(C)<Math.abs(D)){var ee=gc(C||D)*(Math.abs(D)-Math.abs(C));C+=ee}}return x==null||S==null||C==null||w==null||!i&&(C===0||w===0)?null:ON(ON({},e),{},{stackedBarStart:b,x,y:S,width:C,height:w,value:d?_:_[1],payload:e,background:T,tooltipPosition:{x:x+C/2,y:S+w/2},parentViewBox:h,originalDataIndex:f},m&&m[f]&&m[f].props)}).filter(Boolean)}function YN(e){var t=$c(e,KN),n=vN(t.stackId),r=Rp();return w.createElement(FO,{id:t.id,type:`bar`},e=>w.createElement(w.Fragment,null,w.createElement(jO,{legendPayload:PN(t)}),w.createElement(FN,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),w.createElement(VO,{type:`bar`,id:e,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:n,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r,hasCustomShape:t.shape!=null}),w.createElement(jT,{zIndex:t.zIndex},w.createElement(qN,EN({},t,{id:e})))))}var XN=w.memo(YN,fh);XN.displayName=`Bar`;var ZN=[`domain`,`range`],QN=[`domain`,`range`];function $N(e,t){if(e==null)return{};var n,r,i=eP(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function eP(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function tP(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function nP(e,t){if(e===t)return!0;var{domain:n,range:r}=e,i=$N(e,ZN),{domain:a,range:o}=t,s=$N(t,QN);return!tP(n,a)||!tP(r,o)?!1:fh(i,s)}var rP=[`type`],iP=[`dangerouslySetInnerHTML`,`ticks`,`scale`],aP=[`id`,`scale`];function oP(){return oP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oP.apply(null,arguments)}function sP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
43t%2?sP(Object(n),!0).forEach(function(t){lP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lP(e,t,n){return(t=uP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uP(e){var t=dP(e,`string`);return typeof t==`symbol`?t:t+``}function dP(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function fP(e,t){if(e==null)return{};var n,r,i=pP(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function pP(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function mP(e){var t=pl(),n=(0,w.useRef)(null),r=am(),{type:i}=e,a=fP(e,rP),o=__(r,`xAxis`,i),s=(0,w.useMemo)(()=>{if(o!=null)return cP(cP({},a),{},{type:o})},[a,o]);return(0,w.useLayoutEffect)(()=>{s!=null&&(n.current===null?t(ok(s)):n.current!==s&&t(sk({prev:n.current,next:s})),n.current=s)},[s,t]),(0,w.useLayoutEffect)(()=>()=>{n.current&&=(t(ck(n.current)),null)},[t]),null}var hP=e=>{var{xAxisId:t,className:n}=e,r=K(Ip),i=Rp(),a=`xAxis`,o=K(e=>Ew(e,a,t,i)),s=K(e=>bw(e,t)),c=K(e=>Ene(e,t)),l=K(e=>iC(e,t));if(s==null||c==null||l==null)return null;var{dangerouslySetInnerHTML:u,ticks:d,scale:f}=e,p=fP(e,iP),{id:m,scale:h}=l,g=fP(l,aP);return w.createElement(ZA,oP({},p,g,{x:c.x,y:c.y,width:s.width,height:s.height,className:rr(`recharts-${a} ${a}`,n),viewBox:r,ticks:o,axisType:a,axisId:t}))},gP={allowDataOverflow:rC.allowDataOverflow,allowDecimals:rC.allowDecimals,allowDuplicatedCategory:rC.allowDuplicatedCategory,angle:rC.angle,axisLine:HA.axisLine,height:rC.height,hide:!1,includeHidden:rC.includeHidden,interval:rC.interval,label:!1,minTickGap:rC.minTickGap,mirror:rC.mirror,orientation:rC.orientation,padding:rC.padding,reversed:rC.reversed,scale:rC.scale,tick:rC.tick,tickCount:rC.tickCount,tickLine:HA.tickLine,tickSize:HA.tickSize,type:rC.type,niceTicks:rC.niceTicks,xAxisId:0},_P=w.memo(e=>{var t=$c(e,gP);return w.createElement(w.Fragment,null,w.createElement(mP,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),w.createElement(hP,t))},nP);_P.displayName=`XAxis`;var vP=[`type`],yP=[`dangerouslySetInnerHTML`,`ticks`,`scale`],bP=[`id`,`scale`];function xP(){return xP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xP.apply(null,arguments)}function SP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?SP(Object(n),!0).forEach(function(t){wP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wP(e,t,n){return(t=TP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TP(e){var t=EP(e,`string`);return typeof t==`symbol`?t:t+``}function EP(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function DP(e,t){if(e==null)return{};var n,r,i=OP(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function OP(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function kP(e){var t=pl(),n=(0,w.useRef)(null),r=am(),{type:i}=e,a=DP(e,vP),o=__(r,`yAxis`,i),s=(0,w.useMemo)(()=>
43{if(o!=null)return CP(CP({},a),{},{type:o})},[o,a]);return(0,w.useLayoutEffect)(()=>{s!=null&&(n.current===null?t(lk(s)):n.current!==s&&t(uk({prev:n.current,next:s})),n.current=s)},[s,t]),(0,w.useLayoutEffect)(()=>()=>{n.current&&=(t(dk(n.current)),null)},[t]),null}function AP(e){var{yAxisId:t,className:n,width:r,label:i}=e,a=(0,w.useRef)(null),o=(0,w.useRef)(null),s=K(Ip),c=Rp(),l=pl(),u=`yAxis`,d=K(e=>xw(e,t)),f=K(e=>Dne(e,t)),p=K(e=>Ew(e,u,t,c)),m=K(e=>sC(e,t));if((0,w.useLayoutEffect)(()=>{if(!(r!==`auto`||!d||gD(i)||(0,w.isValidElement)(i)||m==null)){var e=a.current;if(e){var n=e.getCalculatedWidth();Math.round(d.width)!==Math.round(n)&&l(fk({id:t,width:n}))}}},[p,d,l,i,t,r,m]),d==null||f==null||m==null)return null;var{dangerouslySetInnerHTML:h,ticks:g,scale:_}=e,v=DP(e,yP),{id:y,scale:b}=m,x=DP(m,bP);return w.createElement(ZA,xP({},v,x,{ref:a,labelRef:o,x:f.x,y:f.y,tickTextProps:r===`auto`?{width:void 0}:{width:r},width:d.width,height:d.height,className:rr(`recharts-${u} ${u}`,n),viewBox:s,ticks:p,axisType:u,axisId:t}))}var jP={allowDataOverflow:oC.allowDataOverflow,allowDecimals:oC.allowDecimals,allowDuplicatedCategory:oC.allowDuplicatedCategory,angle:oC.angle,axisLine:HA.axisLine,hide:!1,includeHidden:oC.includeHidden,interval:oC.interval,label:!1,minTickGap:oC.minTickGap,mirror:oC.mirror,orientation:oC.orientation,padding:oC.padding,reversed:oC.reversed,scale:oC.scale,tick:oC.tick,tickCount:oC.tickCount,tickLine:HA.tickLine,tickSize:HA.tickSize,type:oC.type,niceTicks:oC.niceTicks,width:oC.width,yAxisId:0},MP=w.memo(e=>{var t=$c(e,jP);return w.createElement(w.Fragment,null,w.createElement(kP,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),w.createElement(AP,t))},nP);MP.displayName=`YAxis`;var NP=q([(e,t)=>t,rm,A_,R_,sT,cT,_re,Pp],bre);function PP(e){return`getBBox`in e.currentTarget&&typeof e.currentTarget.getBBox==`function`}function FP(e){var t=e.currentTarget.getBoundingClientRect(),n,r;if(PP(e)){var i=e.currentTarget.getBBox();n=i.width>0?t.width/i.width:1,r=i.height>0?t.height/i.height:1}else{var a=e.currentTarget;n=a.offsetWidth>0?t.width/a.offsetWidth:1,r=a.offsetHeight>0?t.height/a.offsetHeight:1}var o=(e,i)=>({relativeX:Math.round((e-t.left)/n),relativeY:Math.round((i-t.top)/r)});return`touches`in e?Array.from(e.touches).map(e=>o(e.clientX,e.clientY)):o(e.clientX,e.clientY)}var IP=Td(`mouseClick`),LP=Pf();LP.startListening({actionCreator:IP,effect:(e,t)=>{var n=e.payload,r=NP(t.getState(),FP(n));r?.activeIndex!=null&&t.dispatch(Ine({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var RP=Td(`mouseMove`),zP=Pf(),BP=null,VP=null,HP=null;zP.startListening({actionCreator:RP,effect:(e,t)=>{var n=e.payload,{throttleDelay:r,throttledEvents:i}=t.getState().eventSettings,a=i===`all`||i?.includes(`mousemove`);BP!==null&&(cancelAnimationFrame(BP),BP=null),VP!==null&&(typeof r!=`number`||!a)&&(clearTimeout(VP),VP=null),HP=FP(n);var o=()=>{var e=t.getState(),n=Mw(e,e.tooltip.settings.shared);if(!HP){BP=null,VP=null;return}if(n===`axis`){var r=NP(e,HP);r?.activeIndex==null?t.dispatch(Lw()):t.dispatch(Rw({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}BP=null,VP=null};if(!a){o();return}r===`raf`?BP=requestAnimationFrame(o):typeof r==`number`&&VP===null&&(VP=setTimeout(o,r))}});function lie(e,t){return t instanceof HTMLElement?`HTMLElement <${t.tagName} class="${t.className}">`:t===window?`global.window`:e===`children`&&typeof t==`object`&&t?`<<CHILDREN>>`:t}var UP={accessibilityLayer:!0,barCategoryGap:`10%`,barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:`none`,syncId:void 0,syncMethod:`index`,baseValue:void 0,reverseStackOrder:!1},WP=qd({name:`rootProps`,initialState:UP,reducers:{updateOptions:(e,t)=>{e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=t.payload.barGap??UP.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),uie=WP.reducer,{updateOptions:die}=WP.actions,GP=qd({name:`polarOptions`,initialState:null,reducers:{updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)}}),{updatePolarOptions:fie}=GP.actions,pie=GP.reducer,KP=Td(`keyDown`),qP=Td(`focus`),JP=Td(`blur`),YP=Pf(),XP=null,ZP=null,QP=null;YP.startListening({actionCreator:KP,effect:(e,t)=>
43{QP=e.payload,XP!==null&&(cancelAnimationFrame(XP),XP=null);var{throttleDelay:n,throttledEvents:r}=t.getState().eventSettings,i=r===`all`||r.includes(`keydown`);ZP!==null&&(typeof n!=`number`||!i)&&(clearTimeout(ZP),ZP=null);var a=()=>{try{var e=t.getState();if(e.rootProps.accessibilityLayer===!1)return;var{keyboardInteraction:n}=e.tooltip,r=QP;if(r!==`ArrowRight`&&r!==`ArrowLeft`&&r!==`Enter`)return;var i=Ww(n,tT(e),LC(e),aT(e)),a=i==null?-1:Number(i);if(!Number.isFinite(a)||a<0)return;var o=cT(e);if(r===`Enter`){var s=ET(e,`axis`,`hover`,String(n.index));t.dispatch(Bw({active:!n.active,activeIndex:n.index,activeCoordinate:s}));return}var c=One(e)===`left-to-right`?1:-1,l=a+(r===`ArrowRight`?1:-1)*c;if(o==null||l>=o.length||l<0)return;var u=ET(e,`axis`,`hover`,String(l));t.dispatch(Bw({active:!0,activeIndex:l.toString(),activeCoordinate:u}))}finally{XP=null,ZP=null}};if(!i){a();return}n===`raf`?XP=requestAnimationFrame(a):typeof n==`number`&&ZP===null&&(a(),QP=null,ZP=setTimeout(()=>{QP?a():(ZP=null,XP=null)},n))}}),YP.startListening({actionCreator:qP,effect:(e,t)=>{var n=t.getState();if(n.rootProps.accessibilityLayer!==!1){var{keyboardInteraction:r}=n.tooltip;if(!r.active&&r.index==null){var i=`0`,a=ET(n,`axis`,`hover`,String(i));t.dispatch(Bw({active:!0,activeIndex:i,activeCoordinate:a}))}}}}),YP.startListening({actionCreator:JP,effect:(e,t)=>{var n=t.getState();if(n.rootProps.accessibilityLayer!==!1){var{keyboardInteraction:r}=n.tooltip;r.active&&t.dispatch(Bw({active:!1,activeIndex:r.index,activeCoordinate:r.coordinate}))}}});function $P(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(e,n)=>{if(n===`currentTarget`)return t;var r=Reflect.get(e,n);return typeof r==`function`?r.bind(e):r}})}var eF=Td(`externalEvent`),tF=Pf(),nF=new Map,rF=new Map,iF=new Map;tF.startListening({actionCreator:eF,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(n!=null){var i=r.type,a=$P(r);iF.set(i,{handler:n,reactEvent:a});var o=nF.get(i);o!==void 0&&(cancelAnimationFrame(o),nF.delete(i));var{throttleDelay:s,throttledEvents:c}=t.getState().eventSettings,l=c,u=l===`all`||l?.includes(i),d=rF.get(i);d!==void 0&&(typeof s!=`number`||!u)&&(clearTimeout(d),rF.delete(i));var f=()=>{var e=iF.get(i);try{if(!e)return;var{handler:n,reactEvent:r}=e,a=t.getState(),o={activeCoordinate:sre(a),activeDataKey:hT(a),activeIndex:pT(a),activeLabel:mT(a),activeTooltipIndex:pT(a),isTooltipActive:cre(a)};n&&n(o,r)}finally{nF.delete(i),rF.delete(i),iF.delete(i)}};if(!u){f();return}if(s===`raf`){var p=requestAnimationFrame(f);nF.set(i,p)}else if(typeof s==`number`){if(!rF.has(i)){f();var m=setTimeout(f,s);rF.set(i,m)}}else f()}}});var mie=q([q([Jw],e=>e.tooltipItemPayloads),(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(t!=null){var r=e.find(e=>e.settings.graphicalItemId===n);if(r!=null){var{getPosition:i}=r;if(i!=null)return i(t)}}}),aF=Td(`touchMove`),oF=Pf(),sF=null,cF=null,lF=null,uF=null;oF.startListening({actionCreator:aF,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){uF=$P(n);var{throttleDelay:r,throttledEvents:i}=t.getState().eventSettings,a=i===`all`||i.includes(`touchmove`);sF!==null&&(cancelAnimationFrame(sF),sF=null),cF!==null&&(typeof r!=`number`||!a)&&(clearTimeout(cF),cF=null),lF=Array.from(n.touches).map(e=>FP({clientX:e.clientX,clientY:e.clientY,currentTarget:n.currentTarget}));var o=()=>{if(uF!=null){var e=t.getState(),n=Mw(e,e.tooltip.settings.shared);if(n===`axis`){var r=lF?.[0];if(r==null){sF=null,cF=null;return}var i=NP(e,r);i?.activeIndex!=null&&t.dispatch(Rw({activeIndex:i.activeIndex,activeDataKey:void 0,activeCoordinate:i.activeCoordinate}))}else if(n===`item`){var a=uF.touches[0];if(document.elementFromPoint==null||a==null)return;var o=document.elementFromPoint(a.clientX,a.clientY);if(!o||!o.getAttribute)return;var s=o.getAttribute(Cp),c=o.getAttribute(`data-recharts-item-id`)??void 0,l=eT(e).find(e=>e.id===c);if(s==null||l==null||c==null)return;var{dataKey:u}=l,d=mie(e,s,c);t.dispatch(Iw({activeDataKey:u,activeIndex:s,activeCoordinate:d,activeGraphicalItemId:c}))}sF=null,cF=null}};if(!a){o();return}r===`raf`?sF=requestAnimationFrame(o):typeof r==`number`&&cF===null&&(o(),uF=null,cF=setTimeout(()=>
43{uF?o():(cF=null,sF=null)},r))}}});var dF={throttleDelay:`raf`,throttledEvents:[`mousemove`,`touchmove`,`pointermove`,`scroll`,`wheel`]},fF=qd({name:`eventSettings`,initialState:dF,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=Ym(t.payload.throttledEvents))}}}),{setEventSettings:hie}=fF.actions,gie=fF.reducer,_ie=Xl({brush:zk,cartesianAxis:pk,chartData:Bre,errorBars:xj,eventSettings:gie,graphicalItems:BO,layout:Vf,legend:eh,options:Ire,polarAxis:HD,polarOptions:pie,referenceElements:qk,renderedTicks:MA,rootProps:uie,tooltip:Lne,zIndex:Nre}),vie=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`Chart`;return Ld({reducer:_ie,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:![`commonjs`,`es6`,`production`].includes(`es6`)}).concat([LP.middleware,zP.middleware,YP.middleware,tF.middleware,oF.middleware]),enhancers:e=>{var t=e;return typeof e==`function`&&(t=e()),t.concat(Fd({type:`raf`}))},devTools:ph.devToolsEnabled&&{serialize:{replacer:lie},name:`recharts-${t}`}})};function yie(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=Rp(),a=(0,w.useRef)(null);if(i)return n;a.current??=vie(t,r);var o=ul;return w.createElement(kee,{context:o,store:a.current},n)}function bie(e){var{layout:t,margin:n}=e,r=pl(),i=Rp();return(0,w.useEffect)(()=>{i||(r(Rf(t)),r(Lf(n)))},[r,i,t,n]),null}var xie=(0,w.memo)(bie,fh);function Sie(e){var t=pl();return(0,w.useEffect)(()=>{t(die(e))},[t,e]),null}var Cie=(0,w.memo)(e=>{var t=pl();return(0,w.useEffect)(()=>{t(hie(e))},[t,e]),null},fh);function pF(e){var{zIndex:t,isPanorama:n}=e,r=(0,w.useRef)(null),i=pl();return(0,w.useLayoutEffect)(()=>(r.current&&i(jre({zIndex:t,element:r.current,isPanorama:n})),()=>{i(Mre({zIndex:t,isPanorama:n}))}),[i,t,n]),w.createElement(`g`,{tabIndex:-1,ref:r,className:`recharts-zIndex-layer_${t}`})}function mF(e){var{children:t,isPanorama:n}=e,r=K(Sre);if(!r||r.length===0)return t;var i=r.filter(e=>e<0),a=r.filter(e=>e>0);return w.createElement(w.Fragment,null,i.map(e=>w.createElement(pF,{key:e,zIndex:e,isPanorama:n})),t,a.map(e=>w.createElement(pF,{key:e,zIndex:e,isPanorama:n})))}var wie=[`children`];function Tie(e,t){if(e==null)return{};var n,r,i=Eie(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Eie(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function hF(){return hF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hF.apply(null,arguments)}var Die={width:`100%`,height:`100%`,display:`block`},Oie=(0,w.forwardRef)((e,t)=>{var n=tm(),r=nm(),i=Nee();if(!Uf(n)||!Uf(r))return null;var{children:a,otherAttributes:o,title:s,desc:c}=e,l,u;return o!=null&&(l=typeof o.tabIndex==`number`?o.tabIndex:i?0:void 0,u=typeof o.role==`string`?o.role:i?`application`:void 0),w.createElement(ko,hF({},o,{title:s,desc:c,role:u,tabIndex:l,width:n,height:r,style:Die,ref:t}),a)}),kie=e=>{var{children:t}=e,n=K(Bp);if(!n)return null;var{width:r,height:i,y:a,x:o}=n;return w.createElement(ko,{width:r,height:i,x:o,y:a},t)},gF=(0,w.forwardRef)((e,t)=>{var{children:n}=e,r=Tie(e,wie);return Rp()?w.createElement(kie,null,w.createElement(mF,{isPanorama:!0},n)):w.createElement(Oie,hF({ref:t},r),w.createElement(mF,{isPanorama:!1},n))});function Aie(){var e=pl(),[t,n]=(0,w.useState)(null),r=K(yp);return(0,w.useEffect)(()=>{if(t!=null){var n=t.getBoundingClientRect().width/t.offsetWidth;J(n)&&n!==r&&e(Bf(n))}},[t,e,r]),n}function _F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
43t%2?_F(Object(n),!0).forEach(function(t){Mie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_F(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mie(e,t,n){return(t=Nie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nie(e){var t=Pie(e,`string`);return typeof t==`symbol`?t:t+``}function Pie(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function vF(){return vF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vF.apply(null,arguments)}var Fie=()=>(GT(),null);function yF(e){if(typeof e==`number`)return e;if(typeof e==`string`){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var Iie=(0,w.forwardRef)((e,t)=>{var n=(0,w.useRef)(null),[r,i]=(0,w.useState)({containerWidth:yF(e.style?.width),containerHeight:yF(e.style?.height)}),a=(0,w.useCallback)((e,t)=>{i(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]),o=(0,w.useCallback)(e=>{if(typeof t==`function`&&t(e),e!=null&&typeof ResizeObserver<`u`){var{width:r,height:i}=e.getBoundingClientRect();a(r,i);var o=new ResizeObserver(e=>{var t=e[0];if(t!=null){var{width:n,height:r}=t.contentRect;a(n,r)}});o.observe(e),n.current=o}},[t,a]);return(0,w.useEffect)(()=>()=>{n.current?.disconnect()},[a]),w.createElement(w.Fragment,null,w.createElement(sm,{width:r.containerWidth,height:r.containerHeight}),w.createElement(`div`,vF({ref:o},e)))}),Lie=(0,w.forwardRef)((e,t)=>{var{width:n,height:r}=e,[i,a]=(0,w.useState)({containerWidth:yF(n),containerHeight:yF(r)}),o=(0,w.useCallback)((e,t)=>{a(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]),s=(0,w.useCallback)(e=>{if(typeof t==`function`&&t(e),e!=null){var{width:n,height:r}=e.getBoundingClientRect();o(n,r)}},[t,o]);return w.createElement(w.Fragment,null,w.createElement(sm,{width:i.containerWidth,height:i.containerHeight}),w.createElement(`div`,vF({ref:s},e)))}),Rie=(0,w.forwardRef)((e,t)=>{var{width:n,height:r}=e;return w.createElement(w.Fragment,null,w.createElement(sm,{width:n,height:r}),w.createElement(`div`,vF({ref:t},e)))}),zie=(0,w.forwardRef)((e,t)=>{var{width:n,height:r}=e;return typeof n==`string`||typeof r==`string`?w.createElement(Lie,vF({},e,{ref:t})):typeof n==`number`&&typeof r==`number`?w.createElement(Rie,vF({},e,{width:n,height:r,ref:t})):w.createElement(w.Fragment,null,w.createElement(sm,{width:n,height:r}),w.createElement(`div`,vF({ref:t},e)))});function Bie(e){return e?Iie:zie}var Vie=(0,w.forwardRef)((e,t)=>{var{children:n,className:r,height:i,onClick:a,onContextMenu:o,onDoubleClick:s,onMouseDown:c,onMouseEnter:l,onMouseLeave:u,onMouseMove:d,onMouseUp:f,onTouchEnd:p,onTouchMove:m,onTouchStart:h,style:g,width:_,responsive:v,dispatchTouchEvents:y=!0}=e,b=(0,w.useRef)(null),x=pl(),[S,C]=(0,w.useState)(null),[T,E]=(0,w.useState)(null),D=Aie(),O=Qp(),k=O?.width>0?O.width:_,A=O?.height>0?O.height:i,j=(0,w.useCallback)(e=>{D(e),typeof t==`function`&&t(e),C(e),E(e),e!=null&&(b.current=e)},[D,t,C,E]),M=(0,w.useCallback)(e=>{x(IP(e)),x(eF({handler:a,reactEvent:e}))},[x,a]),N=(0,w.useCallback)(e=>{x(RP(e)),x(eF({handler:l,reactEvent:e}))},[x,l]),ee=(0,w.useCallback)(e=>{x(Lw()),x(eF({handler:u,reactEvent:e}))},[x,u]),te=(0,w.useCallback)(e=>{x(RP(e)),x(eF({handler:d,reactEvent:e}))},[x,d]),P=(0,w.useCallback)(()=>{x(qP())},[x]),F=(0,w.useCallback)(()=>{x(JP())},[x]),ne=(0,w.useCallback)(e=>{x(KP(e.key))},[x]),re=(0,w.useCallback)(e=>{x(eF({handler:o,reactEvent:e}))},[x,o]),ie=(0,w.useCallback)(e=>{x(eF({handler:s,reactEvent:e}))},[x,s]),ae=(0,w.useCallback)(e=>{x(eF({handler:c,reactEvent:e}))},[x,c]),I=(0,w.useCallback)(e=>{x(eF({handler:f,reactEvent:e}))},[x,f]),L=(0,w.useCallback)(e=>{x(eF({handler:h,reactEvent:e}))},[x,h]),oe=(0,w.useCallback)(e=>{y&&x(aF(e)),x(eF({handler:m,reactEvent:e}))},[x,y,m]),R=(0,w.useCallback)(e=>{x(eF({handler:p,reactEvent:e}))},[x,p]),se=Bie(v);return w.createElement(Pre.Provider,{value:S},w.createElement(Fo.Provider,{value:T},w.createElement(se,{width:k??g?.width,height:A??g?.height,className:rr(`recharts-wrapper`,r),style:jie({position:`relative`,cursor:`default`,width:k,height:A},g),onClick:M,onContextMenu:re,onDoubleClick:ie,onFocus:P,onBlur:F,onKeyDown:ne,onMouseDown:ae,onMouseEnter:N,onMouseLeave:ee,onMouseMove:te,onMouseUp:I,onTouchEnd:R,onTouchMove:oe,onTouchStart:L,ref:j},w.createElement(Fie,null),n)))}),Hie=[`width`,`height`,`responsive`,`children`,`className`,`style`,`compact`,`title`,`desc`];function Uie(e,t){if(e==null)return{};var n,r,i=Wie(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Wie(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Gie=(0,w.forwardRef)((e,t)=>
43{var{width:n,height:r,responsive:i,children:a,className:o,style:s,compact:c,title:l,desc:u}=e,d=xo(Uie(e,Hie));return c?w.createElement(w.Fragment,null,w.createElement(sm,{width:n,height:r}),w.createElement(gF,{otherAttributes:d,title:l,desc:u},a)):w.createElement(Vie,{className:o,style:s,width:n,height:r,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},w.createElement(gF,{otherAttributes:d,title:l,desc:u,ref:t},w.createElement(Yk,null,a)))});function bF(){return bF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bF.apply(null,arguments)}function xF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Kie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?xF(Object(n),!0).forEach(function(t){qie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qie(e,t,n){return(t=Jie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jie(e){var t=Yie(e,`string`);return typeof t==`symbol`?t:t+``}function Yie(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Xie=Kie({accessibilityLayer:!0,barCategoryGap:`10%`,barGap:4,layout:`horizontal`,margin:{top:5,right:5,bottom:5,left:5},responsive:!1,reverseStackOrder:!1,stackOffset:`none`,syncMethod:`index`},dF),SF=(0,w.forwardRef)(function(e,t){var n=$c(e.categoricalChartProps,Xie),{chartName:r,defaultTooltipEventType:i,validateTooltipEventTypes:a,tooltipPayloadSearcher:o,categoricalChartProps:s}=e,c={chartName:r,defaultTooltipEventType:i,validateTooltipEventTypes:a,tooltipPayloadSearcher:o,eventEmitter:void 0};return w.createElement(yie,{preloadedState:{options:c},reduxStoreName:s.id??r},w.createElement(Ik,{chartData:s.data}),w.createElement(xie,{layout:n.layout,margin:n.margin}),w.createElement(Cie,{throttleDelay:n.throttleDelay,throttledEvents:n.throttledEvents}),w.createElement(Sie,{baseValue:n.baseValue,accessibilityLayer:n.accessibilityLayer,barCategoryGap:n.barCategoryGap,maxBarSize:n.maxBarSize,stackOffset:n.stackOffset,barGap:n.barGap,barSize:n.barSize,syncId:n.syncId,syncMethod:n.syncMethod,className:n.className,reverseStackOrder:n.reverseStackOrder}),w.createElement(Gie,bF({},n,{ref:t})))}),Zie=[`axis`,`item`],CF=(0,w.forwardRef)((e,t)=>w.createElement(SF,{chartName:`BarChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:Zie,tooltipPayloadSearcher:FT,categoricalChartProps:e,ref:t})),Qie=[`axis`],wF=(0,w.forwardRef)((e,t)=>w.createElement(SF,{chartName:`AreaChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:Qie,tooltipPayloadSearcher:FT,categoricalChartProps:e,ref:t})),$ie=[`axis`],eae=(0,w.forwardRef)((e,t)=>w.createElement(SF,{chartName:`ComposedChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:$ie,tooltipPayloadSearcher:FT,categoricalChartProps:e,ref:t})),tae={light:``,dark:`.dark`},nae={width:320,height:200},rae=w.createContext(null);function TF({id:e,className:t,children:n,config:r,initialDimension:i=nae,...a}){let o=w.useId(),s=`chart-${e??o.replace(/:/g,``)}`;return(0,z.jsx)(rae.Provider,{value:{config:r},children:(0,z.jsxs)(`div`,{"data-slot":`chart`,"data-chart":s,className:Ai(`flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden`,t),...a,children:[(0,z.jsx)(iae,{id:s,config:r}),(0,z.jsx)(dee,{initialDimension:i,children:n})]})})}var iae=({id:e,config:t})=>{let n=Object.entries(t).filter(([,e])=>e.theme??e.color);return n.length?(0,z.jsx)(`style`,{dangerouslySetInnerHTML:{__html:Object.entries(tae).map(([t,r])=>`
44${r} [data-chart=${e}] {
45${n.map(([e,n])=>{let r=n.theme?.[t]??n.color;return r?`  --color-${e}: ${r};`:null}).join(`
46`)}
47}
48`).join(`
49`)}}):null},EF=[{ano:`2023`,acessos:38},{ano:`2024`,acessos:138},{ano:`2025`,acessos:311}],aae={acessos:{label:`Acessos mensais`,color:`var(--primary)`}},oae=EF.length-1,sae=`8,3x`;function cae(e){let{cx:t,cy:n,index:r,payload:i}=e,a=i?.acessos;if(a==null)return null;let o=r===0,s=r===oae;return(0,z.jsxs)(`g`,{children:[(0,z.jsxs)(`text`,{x:t,y:n-16,textAnchor:o?`start`:s?`end`:`middle`,className:`fill-foreground text-sm font-medium`,children:[a.toLocaleStr
49ing(`pt-BR`),` mi`,s?` · ${sae}`:``]}),(0,z.jsx)(`circle`,{cx:t,cy:n,r:5,fill:`var(--color-acessos)`})]})}function lae(){return(0,z.jsx)(TF,{config:aae,className:`w-full aspect-16/7`,children:(0,z.jsxs)(wF,{data:EF,margin:{top:36,left:24,right:24,bottom:8},children:[(0,z.jsx)(`defs`,{children:(0,z.jsxs)(`linearGradient`,{id:`fillAcessos`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,z.jsx)(`stop`,{offset:`5%`,stopColor:`var(--color-acessos)`,stopOpacity:.5}),(0,z.jsx)(`stop`,{offset:`95%`,stopColor:`var(--color-acessos)`,stopOpacity:0})]})}),(0,z.jsx)(yj,{vertical:!1}),(0,z.jsx)(_P,{dataKey:`ano`,tickLine:!1,axisLine:!1,tickMargin:12,interval:0,padding:{left:24,right:24}}),(0,z.jsx)(ZM,{dataKey:`acessos`,type:`monotone`,stroke:`var(--color-acessos)`,strokeWidth:2,fill:`url(#fillAcessos)`,dot:(0,z.jsx)(cae,{}),activeDot:!1})]})})}var DF=so.useInsertionEffect,uae=DF&&DF!==so.useLayoutEffect?DF:e=>e();function OF(e){let t=ia(dae).current;return t.next=e,uae(t.effect),t.trampoline}function dae(){let e={next:void 0,callback:fae,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function fae(){}var pae=[];function kF(e){w.useEffect(e,pae)}var AF=0,jF=class e{static create(){return new e}currentId=AF;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=AF,t()},e)}isStarted(){return this.currentId!==AF}clear=()=>{this.currentId!==AF&&(clearTimeout(this.currentId),this.currentId=AF)};disposeEffect=()=>this.clear};function MF(){let e=ia(jF.create).current;return kF(e.disposeEffect),e}var NF=w.createContext(void 0);function PF(){let e=w.useContext(NF);if(e===void 0)throw Error(ha(53));return e}var FF=function(e){return e.scrollAreaCornerHeight=`--scroll-area-corner-height`,e.scrollAreaCornerWidth=`--scroll-area-corner-width`,e}({});function IF(e,t,n){if(!e)return 0;let r=getComputedStyle(e),i=n===`x`?`Inline`:`Block`;return n===`x`&&t===`margin`?parseFloat(r[`${t}InlineStart`])*2:parseFloat(r[`${t}${i}Start`])+parseFloat(r[`${t}${i}End`])}var mae=function(e){return e.orientation=`data-orientation`,e.hovering=`data-hovering`,e.scrolling=`data-scrolling`,e.hasOverflowX=`data-has-overflow-x`,e.hasOverflowY=`data-has-overflow-y`,e.overflowXStart=`data-overflow-x-start`,e.overflowXEnd=`data-overflow-x-end`,e.overflowYStart=`data-overflow-y-start`,e.overflowYEnd=`data-overflow-y-end`,e}({}),LF=`base-ui-disable-scrollbar`,RF={className:LF,getElement(e){return(0,z.jsx)(`style`,{nonce:e,href:LF,precedence:`base-ui:low`,children:`.${LF}{scrollbar-width:none}.${LF}::-webkit-scrollbar{display:none}`})}},zF=function(e){return e.scrolling=`data-scrolling`,e.hasOverflowX=`data-has-overflow-x`,e.hasOverflowY=`data-has-overflow-y`,e.overflowXStart=`data-overflow-x-start`,e.overflowXEnd=`data-overflow-x-end`,e.overflowYStart=`data-overflow-y-start`,e.overflowYEnd=`data-overflow-y-end`,e}({}),BF={hasOverflowX:e=>e?{[zF.hasOverflowX]:``}:null,hasOverflowY:e=>e?{[zF.hasOverflowY]:``}:null,overflowXStart:e=>e?{[zF.overflowXStart]:``}:null,overflowXEnd:e=>e?{[zF.overflowXEnd]:``}:null,overflowYStart:e=>e?{[zF.overflowYStart]:``}:null,overflowYEnd:e=>e?{[zF.overflowYEnd]:``}:null,cornerHidden:()=>null};function VF(){return typeof window<`u`}function HF(e){return GF(e)?(e.nodeName||``).toLowerCase():`#document`}function UF(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function WF(e){return((GF(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function GF(e){return VF()?e instanceof Node||e instanceof UF(e).Node:!1}function KF(e){return VF()?e instanceof Element||e instanceof UF(e).Element:!1}function qF(e){return VF()?e instanceof HTMLElement||e instanceof UF(e).HTMLElement:!1}function JF(e){return!VF()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof UF(e).ShadowRoot}function YF(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=nI(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function hae(e){return/^(table|td|th)$/.test(HF(e))}function XF(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var gae=/transform|translate|scale|rotate|perspective|filter/,_ae=/paint|layout|strict|content/,ZF=e=>!!e&&e!==`none`,QF;function $F(e){let t=KF(e)?nI(e):e;return ZF(t.transform)||ZF(t.translate)||ZF(t.scale)||ZF(t.rotate)||ZF(t.perspective)||!eI()&&(ZF(t.backdropFilter)||ZF(t.filter))||gae.test(t.willChange||``)||_ae.test(t.contain||``)}function vae(e){let t=iI(e);for(;qF(t)&&!tI(t);){if($F(t))return t;if(XF(t))return null;t=iI(t)}return null}function eI(){return QF??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),QF}function tI(e){return/^(html|body|#document)$/.test(HF(e))}function nI(e){return UF(e).getComputedStyle(e)}function rI(e){return KF(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function iI(e){if(HF(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||JF(e)&&e.host||WF(e);return JF(t)?t.host:t}function aI(e){let t=iI(e);return tI(t)?e.ownerDocument?e.ownerDocument.body:e.body:qF(t)&&YF(t)?t:aI(t)}
49function oI(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=aI(e),i=r===e.ownerDocument?.body,a=UF(r);if(i){let e=sI(a);return t.concat(a,a.visualViewport||[],YF(r)?r:[],e&&n?oI(e):[])}else return t.concat(r,oI(r,[],n))}function sI(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yae(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:bae,platform:xae,maxTouchPoints:Sae}=yae(),cI=bae.toLowerCase(),lI=xae.toLowerCase(),uI=/^i(os$|p)/.test(lI)||lI===`macintel`&&Sae>1,dI=`android`,fI=lI===dI||cI.includes(dI),pI=!uI&&lI.startsWith(`mac`);lI.startsWith(`win`),!fI&&/^(linux|chrome os)/.test(lI);var Cae=pI||uI,mI=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!mI&&cI.includes(`firefox`),!mI&&cI.includes(`chrom`);var wae=Cae,hI=/jsdom|happydom/.test(cI),Tae=`data-base-ui-focusable`,Eae=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function gI(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Y(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&JF(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function _I(e){return`composedPath`in e?e.composedPath()[0]:e.target}function vI(e,t){if(!KF(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(Y(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function yI(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Dae(e){return e.matches(`html,body`)}function bI(e){return qF(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Oae(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Eae}`)!=null}function xI(e){return e?e.getAttribute(`role`)===`combobox`&&bI(e):!1}function kae(e){if(!e||hI)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function SI(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function CI(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...CI(e,t.id,n)])}function wI(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Aae(e){e.preventDefault(),e.stopPropagation()}function jae(e){return`nativeEvent`in e}function Mae(e){return e.pointerType===``&&e.isTrusted?!0:fI&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Nae(e){return hI?!1:!fI&&e.width===0&&e.height===0||fI&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function TI(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Pae(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var Fae=[`top`,`right`,`bottom`,`left`],EI=Math.min,DI=Math.max,OI=Math.round,kI=Math.floor,AI=e=>({x:e,y:e}),Iae={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function jI(e,t,n){return DI(e,EI(t,n))}function MI(e,t){return typeof e==`function`?e(t):e}function NI(e){return e.split(`-`)[0]}function PI(e){return e.split(`-`)[1]}function FI(e){return e===`x`?`y`:`x`}function II(e){return e===`y`?`height`:`width`}function LI(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function RI(e){return FI(LI(e))}function Lae(e,t,n){n===void 0&&(n=!1);let r=PI(e),i=RI(e),a=II(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=HI(o)),[o,HI(o)]}function Rae(e){let t=HI(e);return[zI(e),t,zI(t)]}function zI(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var BI=[`left`,`right`],VI=[`right`,`left`],zae=[`top`,`bottom`],Bae=[`bottom`,`top`];function Vae(e,t,n){switch(e){case`top`:case`bottom`:return n?t?VI:BI:t?BI:VI;case`left`:case`right`:return t?zae:Bae;default:return[]}}function Hae(e,t,n,r){let i=PI(e),a=Vae(NI(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(zI)))),a}function HI(e){let t=NI(e);return Iae[t]+e.slice(t.length)}function Uae(e){return{top:0,right:0,bottom:0,left:0,...e}}function UI(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Uae(e)}function WI(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Wae(e){return e.visibility===`hidden`||e.visibility===`collapse`}function GI(e,t=e?nI(e):null){return!e||!e.isConnected||!t||Wae(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.dis
49play!==`contents`}function KI(e){return e?.ownerDocument||document}var Gae=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Kae(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return JF(n)?n.host:null}function qI(e){for(let t of Array.from(e.children))if(HF(t)===`summary`)return t;return null}function qae(e,t){let n=qI(t);return!!n&&(e===n||Y(n,e))}function JI(e){let t=e?HF(e):``;return e!=null&&e.matches(Gae)&&(t!==`summary`||e.parentElement!=null&&HF(e.parentElement)===`details`&&qI(e.parentElement)===e)&&(t!==`details`||qI(e)==null)&&(t!==`input`||e.type!==`hidden`)}function YI(e){if(!JI(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Kae(t)){let n=t!==e,r=HF(t)===`slot`;if(t.hasAttribute(`inert`)||n&&HF(t)===`details`&&!t.open&&!qae(e,t)||t.hasAttribute(`hidden`)||!r&&!Jae(t,n))return!1}return!0}function Jae(e,t){let n=nI(e);return t?n.display!==`none`:GI(e,n)}function XI(e){let t=e.tabIndex;if(t<0){let t=HF(e);if(t===`details`||t===`audio`||t===`video`||qF(e)&&e.isContentEditable)return 0}return t}function ZI(e){if(HF(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Yae(e,t){let n=ZI(e);if(!n)return!0;let r=t.find(e=>{let t=ZI(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=ZI(e);return t?.name===n.name&&t.form===n.form})===n}function QI(e){if(qF(e)&&HF(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return qF(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function $I(e,t){QI(e).forEach(e=>{JI(e)&&t.push(e),$I(e,t)})}
49function eL(e,t,n){QI(e).forEach(e=>{qF(e)&&e.matches(t)&&n.push(e),eL(e,t,n)})}function tL(e){return YI(e)&&XI(e)>=0}function nL(e){let t=[];return $I(e,t),t.filter(YI)}function rL(e){let t=nL(e);return t.filter(e=>XI(e)>=0&&Yae(e,t))}function iL(e,t){let n=rL(e),r=n.length;if(r===0)return;let i=gI(KI(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function aL(e){return iL(KI(e).body,1)||e}function oL(e){return iL(KI(e).body,-1)||e}function sL(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Y(n,r)}function Xae(e){rL(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function cL(e){let t=[];eL(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var Zae=w.createContext(void 0),Qae={disableStyleElements:!1};function $ae(){return w.useContext(Zae)??Qae}var eoe={x:0,y:0},lL={width:0,height:0},toe={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},noe={x:!0,y:!0,corner:!0},roe=w.forwardRef(function(e,t){let{render:n,className:r,overflowEdgeThreshold:i,style:a,...o}=e,{xStart:s,xEnd:c,yStart:l,yEnd:u}=ioe(i),d=fo(),f=MF(),p=MF(),{nonce:m,disableStyleElements:h}=$ae(),[g,_]=w.useState(!1),[v,y]=w.useState(!1),[b,x]=w.useState(!1),[S,C]=w.useState(!1),[T,E]=w.useState(!1),[D,O]=w.useState(lL),[k,A]=w.useState(lL),[j,M]=w.useState(toe),[N,ee]=w.useState(noe),te=w.useRef(null),P=w.useRef(null),F=w.useRef(null),ne=w.useRef(null),re=w.useRef(null),ie=w.useRef(null),ae=w.useRef(null),I=w.useRef(!1),L=w.useRef(0),oe=w.useRef(0),R=w.useRef(0),se=w.useRef(0),ce=w.useRef(`vertical`),le=w.useRef(eoe),ue=OF(e=>{let t=e.x-le.current.x,n=e.y-le.current.y;le.current=e,n!==0&&(x(!0),f.start(500,()=>{x(!1)})),t!==0&&(y(!0),p.start(500,()=>{y(!1)}))}),de=OF(e=>{e.button===0&&(I.current=!0,L.current=e.clientY,oe.current=e.clientX,ce.current=e.currentTarget.getAttribute(mae.orientation),P.current&&(R.current=P.current.scrollTop,se.current=P.current.scrollLeft),re.current&&ce.current===`vertical`&&re.current.setPointerCapture(e.pointerId),ie.current&&ce.current===`horizontal`&&ie.current.setPointerCapture(e.pointerId))}),fe=OF(e=>{if(!I.current)return;let t=e.clientY-L.current,n=e.clientX-oe.current;if(P.current){let r=P.current.scrollHeight,i=P.current.clientHeight,a=P.current.scrollWidth,o=P.current.clientWidth;if(re.current&&F.current&&ce.current===`vertical`){let n=IF(F.current,`padding`,`y`),a=IF(re.current,`margin`,`y`),o=re.current.offsetHeight,s=t/(F.current.offsetHeight-o-n-a);P.current.scrollTop=R.current+s*(r-i),e.preventDefault(),x(!0),f.start(500,()=>{x(!1)})}if(ie.current&&ne.current&&ce.current===`horizontal`){let t=IF(ne.current,`padding`,`x`),r=IF(ie.current,`margin`,`x`),i=ie.current.offsetWidth,s=n/(ne.current.offsetWidth-i-t-r);P.current.scrollLeft=se.current+s*(a-o),e.preventDefault(),y(!0),p.start(500,()=>{y(!1)})}}}),pe=OF(e=>{I.current=!1,re.current&&ce.current===`vertical`&&re.current.hasPointerCapture(e.pointerId)&&re.current.releasePointerCapture(e.pointerId),ie.current&&ce.current===`horizontal`&&ie.current.hasPointerCapture(e.pointerId)&&ie.current.releasePointerCapture(e.pointerId)});function me(e){C(e.pointerType===`touch`)}function he(e){if(me(e),e.pointerType!==`touch`){let t=Y(te.current,e.target);_(t)}}let ge=w.useMemo(()=>({scrolling:v||b,hasOverflowX:!N.x,hasOverflowY:!N.y,overflowXStart:j.xStart,overflowXEnd:j.xEnd,overflowYStart:j.yStart,overflowYEnd:j.yEnd,cornerHidden:N.corner}),[v,b,N.x,N.y,N.corner,j]),_e={role:`presentation`,onPointerEnter:he,onPointerMove:he,onPointerDown:me,onPointerLeave(){_(!1)},style:{position:`relative`,[FF.scrollAreaCornerHeight]:`${D.height}px`,[FF.scrollAreaCornerWidth]:`${D.width}px`}},ve=Ka(`div`,e,{state:ge,ref:[t,te],props:[_e,o],stateAttributesMapping:BF}),ye=w.useMemo(()=>({handlePointerDown:de,handlePointerMove:fe,handlePointerUp:pe,handleScroll:ue,cornerSize:D,setCornerSize:O,thumbSize:k,setThumbSize:A,hasMeasuredScrollbar:T,setHasMeasuredScrollbar:E,touchModality:S,cornerRef:ae,scrollingX:v,setScrollingX:y,scrollingY:b,setScrollingY:x,hovering:g,setHovering:_,viewportRef:P,rootRef:te,scrollbarYRef:F,scrollbarXRef:ne,thumbYRef:re,thumbXRef:ie,rootId:d,hiddenState:N,setHiddenState:ee,overflowEdges:j,setOverflowEdges:M,viewportState:ge,overflowEdgeThreshold:{xStart:s,xEnd:c,yStart:l,yEnd:u}}),[de,fe,pe,ue,D,k,T,S,v,y,b,x,g,_,d,N,j,ge,s,c,l,u]);return(0,z.jsxs)(NF.Provider,{value:ye,children:[!h&&RF.getElement(m),ve]})});function ioe(e){if(typeof e==`number`){let t=Math.max(0,e);return{xStart:t,xEnd:t,yStart:t,yEnd:t}}return{xStart:Math.max(0,e?.xStart||0),xEnd:Math.max(0,e?.xEnd||0),yStart:Math.max(0,e?.yStart||0),yEnd:Math.max(0,e?.yEnd||0)}}var aoe=w.createContext(void 0),ooe=w.createContext(void 0);function uL(){return w.useContext(ooe)?.direction??`ltr`}function dL(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}var fL=function(e){return e.scrollAreaOverflowXStart=`--scroll-area-overflow-x-start`,e.scrollAreaOverflowXEnd=`--scroll-area-overflow-x-end`,e.scrollAreaOverflowYStart=`--scroll-area-overflow-y-start`,e.scrollAreaOverflowYEnd=`--scroll-area-overflow-y-end`,e}({});function pL(e,t){if(t<=0)return 0;let n=dL(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}var mL=!1;function soe(){mL||mI||(typeof CSS<`u`&&`registerProperty`in CSS&&[fL.scrollAreaOverflowXStart,fL.scrollAreaOverflowXEnd,fL.scrollAreaOverflowYStart,fL.scrollAreaOverflowYEnd].forEac
49h(e=>{try{CSS.registerProperty({name:e,syntax:`<length>`,inherits:!1,initialValue:`0px`})}catch{}}),mL=!0)}var coe=w.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{viewportRef:o,scrollbarYRef:s,scrollbarXRef:c,thumbYRef:l,thumbXRef:u,cornerRef:d,cornerSize:f,setCornerSize:p,setThumbSize:m,rootId:h,setHiddenState:g,hiddenState:_,setHasMeasuredScrollbar:v,handleScroll:y,setHovering:b,setOverflowEdges:x,overflowEdges:S,overflowEdgeThreshold:C,scrollingX:T,scrollingY:E}=PF(),D=uL(),O=w.useRef(!0),k=w.useRef([NaN,NaN,NaN,NaN]),A=MF(),j=MF(),M=OF(()=>{let e=o.current,t=s.current,n=c.current,r=l.current,i=u.current,a=d.current;if(!e)return;let h=e.scrollHeight,_=e.scrollWidth,y=e.clientHeight,b=e.clientWidth,S=e.scrollTop,w=e.scrollLeft,T=k.current,E=Number.isNaN(T[0]);if(T[0]=y,T[1]=h,T[2]=b,T[3]=_,E&&v(!0),h===0||_===0)return;let O=loe(e),A=O.y,j=O.x,M=b/_,N=y/h,ee=Math.max(0,_-b),te=Math.max(0,h-y),P=0,F=0;if(!j){let e=0;e=dL(D===`rtl`?-w:w,0,ee),P=pL(e,ee),F=ee-P}let ne=A?0:dL(S,0,te),re=A?0:pL(ne,te),ie=A?0:te-re,ae=j?0:b,I=A?0:y,L=0,oe=0;!j&&!A&&(L=t?.offsetWidth||0,oe=n?.offsetHeight||0);let R=f.width===0&&f.height===0,se=R?L:0,ce=R?oe:0,le=IF(n,`padding`,`x`),ue=IF(t,`padding`,`y`),de=IF(i,`margin`,`x`),fe=IF(r,`margin`,`y`),pe=ae-le-de,me=I-ue-fe,he=n?Math.min(n.offsetWidth-se,pe):pe,ge=t?Math.min(t.offsetHeight-ce,me):me,_e=Math.max(16,he*M),ve=Math.max(16,ge*N);if(m(e=>e.height===ve&&e.width===_e?e:{width:_e,height:ve}),t&&r){let e=t.offsetHeight-ve-ue-fe,n=h-y,i=n===0?0:S/n,a=Math.min(e,Math.max(0,i*e));r.style.transform=`translate3d(0,${a}px,0)`}if(n&&i){let e=n.offsetWidth-_e-le-de,t=_-b,r=t===0?0:w/t,a=D===`rtl`?dL(r*e,-e,0):dL(r*e,0,e);i.style.transform=`translate3d(${a}px,0,0)`}let ye=[[fL.scrollAreaOverflowXStart,P],[fL.scrollAreaOverflowXEnd,F],[fL.scrollAreaOverflowYStart,re],[fL.scrollAreaOverflowYEnd,ie]];for(let[t,n]of ye)e.style.setProperty(t,`${n}px`);a&&(j||A?p({width:0,height:0}):!j&&!A&&p({width:L,height:oe})),g(e=>uoe(e,O));let be={xStart:!j&&P>C.xStart,xEnd:!j&&F>C.xEnd,yStart:!A&&re>C.yStart,yEnd:!A&&ie>C.yEnd};x(e=>e.xStart===be.xStart&&e.xEnd===be.xEnd&&e.yStart===be.yStart&&e.yEnd===be.yEnd?e:be)});U(()=>{o.current&&soe()},[o]),U(()=>{queueMicrotask(M)},[M,_,D,C.xStart,C.xEnd,C.yStart,C.yEnd]),U(()=>{o.current?.matches(`:hover`)&&b(!0)},[o,b]),U(()=>{let e=o.current;if(typeof ResizeObserver>`u`||!e)return;let t=!1,n=new ResizeObserver(()=>{if(!t){t=!0;let n=k.current;if(n[0]===e.clientHeight&&n[1]===e.scrollHeight&&n[2]===e.clientWidth&&n[3]===e.scrollWidth)return}M()});return n.observe(e),j.start(0,()=>{let t=e.getAnimations({subtree:!0});t.length!==0&&Promise.allSettled(t.map(e=>e.finished)).then(M).catch(()=>{})}),()=>{n.disconnect(),j.clear()}},[M,o,j]);function N(){O.current=!1}let ee={role:`presentation`,...h&&{"data-id":`${h}-viewport`},tabIndex:_.x&&_.y?-1:0,className:RF.className,style:{overflow:`scroll`},onScroll(){o.current&&(M(),O.current||y({x:o.current.scrollLeft,y:o.current.scrollTop}),A.start(100,()=>{O.current=!0}))},onWheel:N,onTouchMove:N,onPointerMove:N,onPointerEnter:N,onKeyDown:N},te=w.useMemo(()=>({scrolling:T||E,hasOverflowX:!_.x,hasOverflowY:!_.y,overflowXStart:S.xStart,overflowXEnd:S.xEnd,overflowYStart:S.yStart,overflowYEnd:S.yEnd,cornerHidden:_.corner}),[T,E,_.x,_.y,_.corner,S]),P=Ka(`div`,e,{ref:[t,o],state:te,props:[ee,a],stateAttributesMapping:BF}),F=w.useMemo(()=>({computeThumbPosition:M}),[M]);return(0,z.jsx)(aoe.Provider,{value:F,children:P})});function loe(e){let t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function uoe(e,t){return e.y===t.y&&e.x===t.x&&e.corner===t.corner?e:t}function hL(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}var gL=w.createContext(void 0);function doe(){let e=w.useContext(gL);if(e===void 0)throw Error(ha(54));return e}var _L=function(e){return e.scrollAreaThumbHeight=`--scroll-area-thumb-height`,e.scrollAreaThumbWidth=`--scroll-area-thumb-width`,e}({}),foe=w.forwardRef(function(e,t){let{render:n,className:r,orientation:i=`vertical`,keepMounted:a=!1,style:o,...s}=e,{hovering:c,scrollingX:l,scrollingY:u,hiddenState:d,overflowEdges:f,scrollbarYRef:p,scrollbarXRef:m,viewportRef:h,thumbYRef:g,thumbXRef:_,handlePointerDown:v,handlePointerUp:y,handleScroll:b,rootId:x,thumbSize:S,hasMeasuredScrollbar:C}=PF(),T={hovering:c,scrolling:{horizontal:l,vertical:u}[i],orientation:i,hasOverflowX:!d.x,hasOverflowY:!d.y,overflowXStart:f.xStart,overflowXEnd:f.xEnd,overflowYStart:f.yStart,overflowYEnd:f.yEnd,cornerHidden:d.corner},E=uL(),D=!C&&!a,O=i===`vertical`?d.y:d.x,k=a||!O;w.useEffect(()=>{if(!k)return;let e=h.current,t=i===`vertical`?p.current:m.current;if(!t)return;
49function n(n){if(!e||!t||n.ctrlKey)return;let r=i===`horizontal`,a=r?`scrollLeft`:`scrollTop`,o=r?n.deltaX:n.deltaY;if(o===0)return;let s=r?e.scrollWidth-e.clientWidth:e.scrollHeight-e.clientHeight,c=r&&E===`rtl`?-s:0,l=r&&E===`rtl`?0:s,u=e[a];u<=c&&o<0||u>=l&&o>0||(n.preventDefault(),e[a]=Math.min(l,Math.max(c,u+o)),b({x:e.scrollLeft,y:e.scrollTop}))}return hL(t,`wheel`,n,{passive:!1})},[E,b,i,m,p,k,h]);let A={...x&&{"data-id":`${x}-scrollbar`},onPointerDown(e){if(e.button!==0)return;let t=_I(e.nativeEvent),n=i===`vertical`?g.current:_.current;if(!(n&&Y(n,t))&&h.current){if(g.current&&p.current&&i===`vertical`){let t=IF(g.current,`margin`,`y`),n=IF(p.current,`padding`,`y`),r=g.current.offsetHeight,i=p.current.getBoundingClientRect(),a=e.clientY-i.top-r/2-n+t/2,o=h.current.scrollHeight,s=h.current.clientHeight,c=a/(p.current.offsetHeight-r-n-t)*(o-s);h.current.scrollTop=c}if(_.current&&m.current&&i===`horizontal`){let t=IF(_.current,`margin`,`x`),n=IF(m.current,`padding`,`x`),r=_.current.offsetWidth,i=m.current.getBoundingClientRect(),a=e.clientX-i.left-r/2-n+t/2,o=h.current.scrollWidth,s=h.current.clientWidth,c=a/(m.current.offsetWidth-r-n-t),l;E===`rtl`?(l=(1-c)*(o-s),h.current.scrollLeft<=0&&(l=-l)):l=c*(o-s),h.current.scrollLeft=l}b({x:h.current.scrollLeft,y:h.current.scrollTop}),v(e)}},onPointerUp:y,onPointerCancel:y,style:{position:`absolute`,touchAction:`none`,WebkitUserSelect:`none`,userSelect:`none`,visibility:D?`hidden`:void 0,...i===`vertical`&&{top:0,bottom:`var(${FF.scrollAreaCornerHeight})`,insetInlineEnd:0,[_L.scrollAreaThumbHeight]:`${S.height}px`},...i===`horizontal`&&{insetInlineStart:0,insetInlineEnd:`var(${FF.scrollAreaCornerWidth})`,bottom:0,[_L.scrollAreaThumbWidth]:`${S.width}px`}}},j=Ka(`div`,e,{ref:[t,i===`vertical`?p:m],state:T,props:[A,s],stateAttributesMapping:BF}),M=w.useMemo(()=>({orientation:i}),[i]);return k?(0,z.jsx)(gL.Provider,{value:M,children:j}):null}),poe=w.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{thumbYRef:o,thumbXRef:s,handlePointerDown:c,handlePointerMove:l,handlePointerUp:u,setScrollingX:d,setScrollingY:f,scrollingX:p,scrollingY:m,hasMeasuredScrollbar:h}=PF(),{orientation:g}=doe(),_={scrolling:g===`horizontal`?p:m,orientation:g};function v(e){g===`vertical`&&f(!1),g===`horizontal`&&d(!1),u(e)}return Ka(`div`,e,{ref:[t,g===`vertical`?o:s],state:_,props:[{onPointerDown:c,onPointerMove:l,onPointerUp:v,onPointerCancel:v,style:{visibility:h?void 0:`hidden`,...g===`vertical`&&{height:`var(${_L.scrollAreaThumbHeight})`},...g===`horizontal`&&{width:`var(${_L.scrollAreaThumbWidth})`}}},a]})}),moe=w.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{cornerRef:o,cornerSize:s,hiddenState:c}=PF(),l=Ka(`div`,e,{ref:[t,o],props:[{style:{position:`absolute`,bottom:0,insetInlineEnd:0,width:s.width,height:s.height}},a]});return c.corner?null:l});function vL({className:e,children:t,...n}){return(0,z.jsxs)(roe,{"data-slot":`scroll-area`,className:Ai(`relative`,e),...n,children:[(0,z.jsx)(coe,{"data-slot":`scroll-area-viewport`,className:`size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1`,children:t}),(0,z.jsx)(hoe,{}),(0,z.jsx)(moe,{})]})}function hoe({className:e,orientation:t=`vertical`,...n}){return(0,z.jsx)(foe,{"data-slot":`scroll-area-scrollbar`,"data-orientation":t,orientation:t,className:Ai(`flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent`,e),...n,children:(0,z.jsx)(poe,{"data-slot":`scroll-area-thumb`,className:`relative flex-1 rounded-full bg-border`})})}var yL=[],bL=void 0;function goe(){return bL}function _oe(e){yL.push(e)}function xL(e){let t=(t,n)=>{let r=ia(yoe).current,i;try{bL=r;for(let e of yL)e.before(r);i=e(t,n);for(let e of yL)e.after(r);r.didInitialize=!0}finally{bL=void 0}return i};return t.displayName=e.displayName||e.name,t}function voe(e){return w.forwardRef(xL(e))}function yoe(){return{didInitialize:!1}}var SL=w.createContext(void 0);function CL(e){let t=w.useContext(SL);if(t===void 0&&!e)throw Error(ha(72));return t}function boe(e,t){return t!=null&&!TI(t)?0:typeof e==`function`?e():e}function wL(e,t,n){let r=boe(e,n);return typeof r==`number`?r:r?.[t]}function TL(e){return typeof e==`function`?e():e}function EL(e,t){return t||e===`click`||e===`mousedown`}function xoe(e){return e?.includes(`mouse`)&&e!==`mousedown`}var DL=`none`,OL=`trigger-press`,kL=`trigger-hover`,AL=`trigger-focus`,Soe=`outside-press`,Coe=`close-press`,woe=`focus-out`,Toe=`escape-key`,Eoe=`disabled`,jL=`imperative-action`;function ML(e,t,n,r){let i=!1,a=!1,o=r??Da;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}var NL=w.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new jF,currentIdRef:{current:null},currentContextRef:{current:null}});function Doe(e,t){e.current=t.current}function Ooe(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=w.useRef(n),a=w.useRef(n),o=w.useRef(null),s=w.useRef(null),c=MF();return U(()=>
49{if(a.current=n,!o.current){i.current=n;return}i.current={open:wL(i.current,`open`),close:wL(n,`close`)}},[n,o,i,a]),(0,z.jsx)(NL.Provider,{value:w.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function koe(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=w.useContext(NL),[f,p]=w.useState(!1),m=w.useRef(n),h=w.useRef(!1);return U(()=>{m.current=n},[n]),U(()=>()=>{h.current=!0},[]),U(()=>{function e(){h.current||p(!1),l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current,d.clear()}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{(m.current||a.current!==t)&&d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),U(()=>{if(!n)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:r.setOpen,setIsInstantPhase:p},a.current=i,o.current={open:0,close:wL(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,ML(DL))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),U(()=>()=>{if(a.current===i){if(l.current=null,!m.current)return;a.current=null,Doe(o,c),d.clear()}},[l,a,o,i,c,d]),w.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function PL(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}var FL=null;globalThis.requestAnimationFrame;var IL=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},LL=class e{static create(){return new e}static request(e){return IL.request(e)}static cancel(e){return IL.cancel(e)}currentId=FL;request(e){this.cancel(),this.currentId=IL.request(()=>{this.currentId=FL,e()})}cancel=()=>{this.currentId!==FL&&(IL.cancel(this.currentId),this.currentId=FL)};disposeEffect=()=>this.cancel};function RL(){let e=ia(LL.create).current;return kF(e.disposeEffect),e}var zL=w.forwardRef(function(e,t){let[n,r]=w.useState();U(()=>{wae&&mI&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,z.jsx)(`span`,{...e,ref:t,style:ca,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function BL(e){return`data-base-ui-${e}`}var VL=0;function HL(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(VL);function a(){i&&!i()||e?.focus({preventScroll:n})}if(r)return a(),Ea;let o=requestAnimationFrame(a);return VL=o,()=>{VL===o&&(cancelAnimationFrame(o),VL=0)}}var UL={inert:new WeakMap,"aria-hidden":new WeakMap},WL=`data-base-ui-inert`,GL={inert:new WeakSet,"aria-hidden":new WeakSet},KL=new WeakMap,qL=0;function Aoe(e){return GL[e]}function JL(e){return e?JF(e)?e.host:JL(e.parentNode):null}var YL=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=JL(t);return e.contains(n)?n:null}).filter(e=>e!=null),XL=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},ZL=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{HF(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function joe(e,t,n,r,{mark:i=!0}){let a=null;r?a=`inert`:n&&(a=`aria-hidden`);let o=null,s=null,c=YL(t,e),l=i?ZL(t,XL(c),new Set(c)):[],u=[],d=[];if(a){let e=UL[a],n=Aoe(a);s=n,o=e;let r=YL(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=c.concat(r);ZL(t,XL(i),new Set(i)).forEach(t=>{let r=t.getAttribute(a),i=r!==null&&r!==`false`,o=(e.get(t)||0)+1;e.set(t,o),u.push(t),o===1&&i&&n.add(t),i||t.setAttribute(a,a===`inert`?``:`true`)})}return i&&l.forEach(e=>{let t=(KL.get(e)||0)+1;KL.set(e,t),d.push(e),t===1&&e.setAttribute(WL,``)}),qL+=1,()=>
49{o&&u.forEach(e=>{let t=(o.get(e)||0)-1;o.set(e,t),t||(!s?.has(e)&&a&&e.removeAttribute(a),s?.delete(e))}),i&&d.forEach(e=>{let t=(KL.get(e)||0)-1;KL.set(e,t),t||e.removeAttribute(WL)}),--qL,qL||(UL.inert=new WeakMap,UL[`aria-hidden`]=new WeakMap,GL.inert=new WeakSet,GL[`aria-hidden`]=new WeakSet,KL=new WeakMap)}}function QL(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0}=t,a=KI(e[0]).body;return joe(e,a,n,r,{mark:i})}var Moe={style:{transition:`none`}},Noe={fallbackAxisSide:`end`},Poe={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},$L=w.createContext(null),eR=()=>w.useContext($L),Foe=BL(`portal`);function tR(e={}){let{ref:t,container:n,componentProps:r=Da,elementProps:i}=e,a=uo(),o=eR()?.portalNode,[s,c]=w.useState(null),[l,u]=w.useState(null),d=OF(e=>{e!==null&&u(e)}),f=w.useRef(null);U(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(GF(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=Ka(`div`,r,{ref:[t,d],props:[{id:a,[Foe]:``},i]});return{portalNode:l,portalSubtree:s&&p?AT.createPortal(p,s):null}}var Ioe=w.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,renderGuards:s,...c}=e,{portalNode:l,portalSubtree:u}=tR({container:o,ref:t,componentProps:e,elementProps:c}),d=w.useRef(null),f=w.useRef(null),p=w.useRef(null),m=w.useRef(null),[h,g]=w.useState(null),_=w.useRef(!1),v=h?.modal,y=h?.open,b=typeof s==`boolean`?s:!!h&&!h.modal&&h.open&&!!l;w.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&sL(e)&&(e.type===`focusin`?_.current&&=(cL(l),!1):(Xae(l),_.current=!0))}return PL(hL(l,`focusin`,e,!0),hL(l,`focusout`,e,!0))},[l,v]),U(()=>{!l||y!==!0||!_.current||(cL(l),_.current=!1)},[y,l]);let x=w.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,z.jsxs)(w.Fragment,{children:[u,(0,z.jsxs)($L.Provider,{value:x,children:[b&&l&&(0,z.jsx)(zL,{"data-type":`outside`,ref:d,onFocus:e=>{sL(e,l)?p.current?.focus():oL(h?h.domReference:null)?.focus()}}),b&&l&&(0,z.jsx)(`span`,{"aria-owns":l.id,style:Poe}),l&&AT.createPortal(a,l),b&&l&&(0,z.jsx)(zL,{"data-type":`outside`,ref:f,onFocus:e=>{sL(e,l)?m.current?.focus():(aL(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,ML(`focus-out`,e.nativeEvent)))}})]})]})});function Loe(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Roe=w.createContext(null),zoe=w.createContext(null),nR=()=>w.useContext(Roe)?.id||null,rR=e=>{let t=w.useContext(zoe);return e??t};function iR(e){return e==null?e:`current`in e?e.current:e}function Boe(e,t){let n=UF(_I(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var Voe=20,aR=[];function oR(){aR=aR.filter(e=>e.deref()?.isConnected)}function sR(e){oR(),e&&HF(e)!==`body`&&(aR.push(new WeakRef(e)),aR.length>Voe&&(aR=aR.slice(-20)))}function cR(){return oR(),aR[aR.length-1]?.deref()}function Hoe(e){return e?tL(e)?e:rL(e)[0]||e:null}function lR(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=nL(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return tL(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function Uoe(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:m}=e,h=`rootStore`in t?t.rootStore:t,g=h.useState(`open`),_=h.useState(`domReferenceElement`),v=h.useState(`floatingElement`),{events:y,dataRef:b}=h.context,x=OF(()=>b.current.floatingContext?.nodeId),S=i===!1,C=xI(_)&&S,T=aa(i),E=aa(a),D=aa(l),O=aa(g),k=rR(p),A=eR(),j=w.useRef(!1),M=w.useRef(!1),N=w.useRef(!1),ee=w.useRef(null),te=w.useRef(``),P=w.useRef(``),F=w.useRef(null),ne=w.useRef(null),re=ga(F,f,A?.beforeInsideRef),ie=ga(ne,A?.afterInsideRef),ae=MF(),I=MF(),L=RL(),oe=A!=null,R=SI(v),se=OF((e=R)=>e?rL(e):[]),ce=OF(()=>m?.().filter(e=>e!=null)??[]);w.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&Y(R,gI(KI(R)))&&se().length===0&&!C&&Aae(e)}return hL(KI(R),`keydown`,e)},[r,R,s,C,se]),w.useEffect(()=>{if(r||!g)return;let e=KI(R);function t(){N.current=!1}function n(e){let t=_I(e),n=ce(),r=Y(v,t)||Y(_,t)||Y(A?.portalNode,t)||n.some(e=>e===t||Y(e,t));N.current=!r,P.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(M.current=!0,I.start(0,()=>{M.current=!1}))}function i(){P.current=`keyboard`}return PL(hL(e,`pointerdown`,n,!0),hL(e,`pointerup`,t,!0),hL(e,`pointercancel`,t,!0),hL(e,`keydown`,i,!0),t)},[r,v,_,R,g,A,I,ce]),w.useEffect(()=>{if(r||!c)return;let e=KI(R);function t(){M.current=!0,I.start(0,()=>{M.current=!1})}function n(e){let t=_I(e);tL(t)&&(ee.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=_I(t);s&&n==null&&i!=null&&Y(v,i)&&sR(i),queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=ce(),f=n?.hasAttribute(BL(`focus-guard`))&&[F.current,ne.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,iR(d),iR(u)].includes(n),p=!(Y(_,n)||Y(v,n)||Y(n,v)||Y(A?.portalNode,n)||l.some(e=>e===n||Y(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>Y(e,n))||f||k&&(CI(k.nodesRef.current,a).find(e=>Y(e.context?.elements.floating,n)||Y(e.context?.elements.domReference,n))||wI(k.nodesRef.current,a).find(e=>[e.context?.elements.floating,SI(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&R&&lR(R),o&&r!==_&&!GI(i)&&gI(e)===e.body){if(qF(R)&&(R.focus(),o===`popup`)){L.request(()=>{R.focus()});return}let e=se(),t=ee.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||R;qF(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(C||!s)&&n&&p&&!M.current&&(C||n!==cR())&&(j.current=!0,h.setOpen(!1,ML(woe,t)))})}function a(){N.current||(b.current.insideReactTree=!0,ae.start(0,()=>{b.current.insideReactTree=!1}))}let l=qF(_)?_:null;if(!(!v&&!l))return PL(l&&hL(l,`focusout`,i),l&&hL(l,`pointerdown`,t),v&&hL(v,`focusin`,n),v&&hL(v,`focusout`,i),v&&A&&hL(v,`focusout`,a,!0))},[r,_,v,R,s,k,A,h,c,o,se,C,x,b,ae,I,L,u,d,ce]),w.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(A?.portalNode?.querySelectorAll(`[${BL(`portal`)}]`)||[]),t=(k?wI(k.nodesRef.current,x()):[]).find(e=>xI(e.context?.elements.domReference||null))?.context?.elements.domReference,n=QL([v,...e,F.current,ne.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...ce(),t,iR(d),iR(u),C?_:null].filter(e=>e!=null),{ariaHidden:s||C,mark:!1}),i=QL([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,A,C,k,x,u,d,ce]),U(()=>
49{if(!g||r||!qF(R))return;let e=KI(R),t=gI(e);queueMicrotask(()=>{let n=T.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||Y(R,t))return;let i=null,a=()=>(i??=se(R),i[0]||R),o;o=r===!0||r===null?a():iR(r),o||=a();let s=Y(R,gI(e));HL(o,{preventScroll:o===R,shouldFocus(){if(!O.current)return!1;if(s)return!0;let t=gI(e);return!(t!==o&&Y(R,t))}})})},[r,g,R,se,T,D,O]),U(()=>{if(r||!R)return;let e=KI(R),t=gI(e),n=D.current==null;sR(t);function i(e){if(e.open||(te.current=Boe(e.nativeEvent,P.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(j.current=!0),e.reason===`outside-press`)if(e.nested)j.current=!1;else if(Mae(e.nativeEvent)||Nae(e.nativeEvent))j.current=!1;else{let e=!1;KI(R).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?j.current=!1:j.current=!0}}y.on(`openchange`,i);function a(){let e=E.current,r=typeof e==`function`?e(te.current):e;if(r===void 0||r===!1)return null;r===null&&(r=!0);let i=_?.isConnected?_:null,a=t?.isConnected&&HF(t)!==`body`?t:null,o=n?a||i:i||a;return o||=cR()||null,typeof r==`boolean`?o:iR(r)||o||null}return()=>{y.off(`openchange`,i);let t=gI(e),n=ce(),r=Y(v,t)||n.some(e=>e===t||Y(e,t))||k&&CI(k.nodesRef.current,x(),!1).some(e=>Y(e.context?.elements.floating,t)),o=E.current,s=a();queueMicrotask(()=>{let n=Hoe(s),i=typeof o!=`boolean`;o&&!j.current&&qF(n)&&(!(!i&&n!==t&&t!==e.body)||r)&&n.focus({preventScroll:!0}),j.current=!1})}},[r,v,R,E,D,y,k,_,x,ce]),U(()=>{if(!mI||g||!v)return;let e=gI(KI(v));!qF(e)||!bI(e)||Y(v,e)&&e.blur()},[g,v]),U(()=>{if(!(r||!A))return A.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{A.setFocusManagerState(null)}},[r,A,s,g,h,c,_]),U(()=>{if(!(r||!R))return lR(R),()=>{queueMicrotask(oR)}},[r,R]);let le=!r&&(s?!C:!0)&&(oe||s);return(0,z.jsxs)(w.Fragment,{children:[le&&(0,z.jsx)(zL,{"data-type":`inside`,ref:re,onFocus:e=>{if(s){let e=se();HL(e[e.length-1])}else A?.portalNode&&(j.current=!1,sL(e,A.portalNode)?aL(_)?.focus():iR(d??A.beforeOutsideRef)?.focus())}}),n,le&&(0,z.jsx)(zL,{"data-type":`inside`,ref:ie,onFocus:e=>{s?HL(se()[0]):A?.portalNode&&(c&&(j.current=!0),sL(e,A.portalNode)?oL(_)?.focus():iR(u??A.afterOutsideRef)?.focus())}})]})}function Woe(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function uR(e){return e!=null&&e.clientX!=null}function Goe(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=w.useRef(!1),u=w.useRef(null),[d,f]=w.useState(),[p,m]=w.useState([]),h=OF(e=>{i.set(`positionReference`,e)}),g=OF((e,t,n)=>{l.current||c.current.openEvent&&!uR(c.current.openEvent)||i.set(`positionReference`,Woe(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=OF(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=TI(d)?o:a;w.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=UF(o);function r(t){let n=_I(t);Y(o,n)?e():g(t.clientX,t.clientY)}return!c.current.openEvent||uR(c.current.openEvent)?u.current=hL(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),w.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),w.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),w.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=w.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return w.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}function Koe(){return!1}function qoe(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function dR(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=Koe,bubbles:s,externalTree:c}=t,l=`rootStore`in e?e.rootStore:e,u=l.useState(`open`),d=l.useState(`floatingElement`),{dataRef:f}=l.context,p=rR(c),m=OF(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=OF(()=>a),{escapeKey:v,outsidePress:y}=qoe(s),b=w.useRef(!1),x=w.useRef(!1),S=w.useRef(!1),C=w.useRef(!1),T=w.useRef(``),E=w.useRef(null),D=MF(),O=MF(),k=OF(()=>{O.clear(),f.current.insideReactTree=!1}),A=OF(e=>{let t=f.current.floatingContext?.nodeId;return(p?CI(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),j=OF(e=>yI(e,l.select(`floatingElement`))||yI(e,l.select(`domReferenceElement`))),M=OF(e=>{o()&&l.setOpen(!1,ML(OL,e.nativeEvent))}),N=OF(e=>{if(!u||!n||!r||e.key!==`Escape`||C.current||!v&&A(`__escapeKeyBubbles`))return;let t=ML(Toe,jae(e)?e.nativeEvent:e);l.setOpen(!1,t),t.isCanceled||e.preventDefault(),!v&&!t.isPropagationAllowed&&e.stopPropagation()}),ee=OF(()=>{f.current.insideReactTree=!0,O.start(0,k)}),te=OF(e=>{if(!u||!n||e.button!==0)return;let t=_I(e.nativeEvent);Y(l.select(`floatingElement`),t)&&(b.current||(b.current=!0,x.current=!1))}),P=OF(e=>{!u||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});w.useEffect(()=>{if(!u||!n)return;f.current.__escapeKeyBubbles=v,f.current.__outsidePressBubbles=y;let e=new jF,t=new jF;
49function i(){e.clear(),C.current=!0}function a(){e.start(mI?5:0,()=>{C.current=!1})}function o(){S.current=!0,t.start(0,()=>{S.current=!1})}function s(){b.current=!1,x.current=!1}function c(){let e=T.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=c();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function w(e){let t=f.current.floatingContext?.nodeId,n=p&&CI(p.nodesRef.current,t).some(t=>yI(e,t.context?.elements.floating));return j(e)||n}function O(e){if(m(e)){e.type!==`click`&&!j(e)&&(t.clear(),S.current=!1),k();return}if(f.current.insideReactTree){k();return}let n=_I(e),r=`[${BL(`inert`)}]`,i=KF(n)?n.getRootNode():null,a=Array.from((JF(i)?i:KI(l.select(`floatingElement`))).querySelectorAll(r)),o=l.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>Y(e,n))))return;let s=KF(n)?n:null;for(;s&&!tI(s);){let e=iI(s);if(tI(e)||!KF(e))break;s=e}if(!(a.length&&KF(n)&&!Dae(n)&&!Y(n,l.select(`floatingElement`))&&a.every(e=>!Y(s,e)))){if(qF(n)&&!(`touches`in e)){let t=tI(n),r=nI(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!w(e)){if(c()===`intentional`&&S.current){t.clear(),S.current=!1;return}typeof h==`function`&&!h(e)||A(`__outsidePressBubbles`)||(l.setOpen(!1,ML(Soe,e)),k())}}}function M(e){c()!==`sloppy`||e.pointerType===`touch`||!l.select(`open`)||!n||j(e)||O(e)}function ee(e){if(c()!==`sloppy`||!l.select(`open`)||!n||j(e))return;let t=e.touches[0];t&&(E.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},D.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}function te(e,t){let n=_I(e);if(!n)return;let r=hL(n,e.type,()=>{t(e),r()})}function P(e){T.current=`touch`,te(e,ee)}function F(e){D.clear(),e.type===`pointerdown`&&(T.current=e.pointerType),!(e.type===`mousedown`&&E.current&&!E.current.dismissOnMouseDown)&&te(e,e=>{e.type===`pointerdown`?M(e):O(e)})}function ne(e){if(!b.current)return;let n=x.current;if(s(),c()===`intentional`){if(e.type===`pointercancel`){n&&o();return}if(!w(e)){if(n){o();return}typeof h==`function`&&!h(e)||(t.clear(),S.current=!0,k())}}}function re(e){if(c()!==`sloppy`||!E.current||j(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-E.current.startX),r=Math.abs(t.clientY-E.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(E.current.dismissOnTouchEnd=!0),i>10&&(O(e),D.clear(),E.current=null)}function ie(e){te(e,re)}function ae(e){c()!==`sloppy`||!E.current||j(e)||(E.current.dismissOnTouchEnd&&O(e),D.clear(),E.current=null)}function I(e){te(e,ae)}let L=KI(d),oe=PL(r&&PL(hL(L,`keydown`,N),hL(L,`compositionstart`,i),hL(L,`compositionend`,a)),g&&PL(hL(L,`click`,F,!0),hL(L,`pointerdown`,F,!0),hL(L,`pointerup`,ne,!0),hL(L,`pointercancel`,ne,!0),hL(L,`mousedown`,F,!0),hL(L,`mouseup`,ne,!0),hL(L,`touchstart`,P,!0),hL(L,`touchmove`,ie,!0),hL(L,`touchend`,I,!0)));return()=>{oe(),e.clear(),t.clear(),s(),S.current=!1}},[f,d,r,g,h,u,n,v,y,N,k,_,A,j,p,l,D]),w.useEffect(k,[h,k]);let F=w.useMemo(()=>({onKeyDown:N,onPointerDown:M,onClick:M}),[N,M]),ne=w.useMemo(()=>({onKeyDown:N,onPointerDown:P,onMouseDown:P,onClickCapture:ee,onMouseDownCapture(e){ee(),te(e)},onPointerDownCapture(e){ee(),te(e)},onMouseUpCapture:ee,onTouchEndCapture:ee,onTouchMoveCapture:ee}),[N,ee,te,P]);return w.useMemo(()=>n?{reference:F,floating:ne,trigger:F}:{},[n,F,ne])}function fR(e,t,n){let{reference:r,floating:i}=e,a=LI(t),o=RI(t),s=II(o),c=NI(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(PI(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Joe(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=MI(t,e),p=UI(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=WI(await i.getClippingRect
vendor: 6,935 bytes, line 49
49({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=WI(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Yoe=50,Xoe=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Joe},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=fR(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Yoe&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=fR(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Zoe=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=MI(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=NI(r),_=LI(o),v=NI(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[HI(o)]:Rae(o)),x=p!==`none`;!d&&x&&b.push(...Hae(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Lae(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==LI(t))||T.every(e=>LI(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=LI(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function pR(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function mR(e){return Fae.some(t=>e[t]>=0)}var Qoe=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=MI(e,t);switch(i){case`referenceHidden`:{let e=pR(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:mR(e)}}}case`escaped`:{let e=pR(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:mR(e)}}}default:return{}}}}},hR=new Set([`left`,`top`]);async function $oe(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=NI(n),s=PI(n),c=LI(n)===`y`,l=hR.has(o)?-1:1,u=a&&c?-1:1,d=MI(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var ese=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await $oe(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},tse=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=MI(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=LI(NI(i)),p=FI(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=jI(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=jI(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},nse=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=MI(e,t),u={x:n,y:r},d=LI(i),f=FI(d),p=u[f],m=u[d],h=MI(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=hR.has(NI(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},rse=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=MI(e,t),u=await o.detectOverflow(t,l),d=NI(i),f=PI(i),p=LI(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=EI(h-u[g],v),x=EI(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=DI(u.left,0),t=DI(u.right,0),n=DI(u.top,0),r=DI(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:DI(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:DI(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function gR(e){let t=nI(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=qF(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=OI(n)!==a||OI(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function _R(e){return KF(e)?e:e.contextElement}function vR(e){let t=_R(e);if(!qF(t))return AI(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=gR(t),o=(a?OI(n.width):n.width)/r,s=(a?OI(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var ise=AI(0);function yR(e){let t=UF(e);
vendor: 5,800 bytes, line 49
49return!eI()||!t.visualViewport?ise:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ase(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==UF(e)?!1:t}function bR(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=_R(e),o=AI(1);t&&(r?KF(r)&&(o=vR(r)):o=vR(e));let s=ase(a,n,r)?yR(a):AI(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=UF(a),t=r&&KF(r)?UF(r):r,n=e,i=sI(n);for(;i&&r&&t!==n;){let e=vR(i),t=i.getBoundingClientRect(),r=nI(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=UF(i),i=sI(n)}}return WI({width:u,height:d,x:c,y:l})}function xR(e,t){let n=rI(e).scrollLeft;return t?t.left+n:bR(WF(e)).left+n}function SR(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-xR(e,n),y:n.top+t.scrollTop}}function ose(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=WF(r),s=t?XF(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=AI(1),u=AI(0),d=qF(r);if((d||!d&&!a)&&((HF(r)!==`body`||YF(o))&&(c=rI(r)),d)){let e=bR(r);l=vR(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?SR(o,c):AI(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function sse(e){return Array.from(e.getClientRects())}function cse(e){let t=WF(e),n=rI(e),r=e.ownerDocument.body,i=DI(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=DI(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+xR(e),s=-n.scrollTop;return nI(r).direction===`rtl`&&(o+=DI(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var CR=25;function lse(e,t){let n=UF(e),r=WF(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=eI();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=xR(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=CR&&(a-=o)}else l<=CR&&(a+=l);return{width:a,height:o,x:s,y:c}}function use(e,t){let n=bR(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=qF(e)?vR(e):AI(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function wR(e,t,n){let r;if(t===`viewport`)r=lse(e,n);else if(t===`document`)r=cse(WF(e));else if(KF(t))r=use(t,n);else{let n=yR(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return WI(r)}function TR(e,t){let n=iI(e);return n===t||!KF(n)||tI(n)?!1:nI(n).position===`fixed`||TR(n,t)}function dse(e,t){let n=t.get(e);if(n)return n;let r=oI(e,[],!1).filter(e=>KF(e)&&HF(e)!==`body`),i=null,a=nI(e).position===`fixed`,o=a?iI(e):e;for(;KF(o)&&!tI(o);){let t=nI(o),n=$F(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||YF(o)&&!n&&TR(e,o))?r=r.filter(e=>e!==o):i=t,o=iI(o)}return t.set(e,r),r}function fse(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?XF(t)?[]:dse(t,this._c):[].concat(n),r],o=wR(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=wR(t,a[e],i);s=DI(n.top,s),c=EI(n.right,c),l=EI(n.bottom,l),u=DI(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function pse(e){let{width:t,height:n}=gR(e);return{width:t,height:n}}function mse(e,t,n){let r=qF(t),i=WF(t),a=n===`fixed`,o=bR(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=AI(0);function l(){c.x=xR(i)}if(r||!r&&!a)if((HF(t)!==`body`||YF(i))&&(s=rI(t)),r){let e=bR(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?SR(i,s):AI(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function ER(e){return nI(e).position===`static`}function DR(e,t){if(!qF(e)||nI(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return WF(e)===n&&(n=n.ownerDocument.body),n}function OR(e,t){let n=UF(e);if(XF(e))return n;if(!qF(e)){let t=iI(e);for(;t&&!tI(t);){if(KF(t)&&!ER(t))return t;t=iI(t)}return n}let r=DR(e,t);for(;r&&hae(r)&&ER(r);)r=DR(r,t);return r&&tI(r)&&ER(r)&&!$F(r)?n:r||vae(e)||n}var hse=async function(e){let t=this.getOffsetParent||OR,n=this.getDimensions,r=await n(e.floating);return{reference:mse(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function gse(e){return nI(e).direction===`rtl`}var _se={convertOffsetParentRelativeRectToViewportRelativeRect:ose,getDocumentElement:WF,getClippingRect:fse,getOffsetParent:OR,getElementRects:hse,getClientRects:sse,getDimensions:pse,getScale:vR,isElement:KF,isRTL:gse};function kR(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function vse(e,t){let n=null,r,i=WF(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=kI(d),h=kI(i.clientWidth-(u+f)),g=kI(i.clientHeight-(d+p)),_=kI(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:DI(0,EI(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!kR(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function AR(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=_R(e),u=i||a?[...l?oI(l):[],...t?oI(t):[]]:[];
49u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?vse(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?bR(e):null;c&&g();function g(){let t=bR(e);h&&!kR(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var jR=ese,MR=tse,NR=Zoe,PR=rse,FR=Qoe,IR=nse,LR=(e,t,n)=>{let r=new Map,i={platform:_se,...n},a={...i.platform,_c:r};return Xoe(e,t,{...i,platform:a})},RR=typeof document<`u`?w.useLayoutEffect:function(){};function zR(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!zR(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!zR(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function BR(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function VR(e,t){let n=BR(e);return Math.round(t*n)/n}function HR(e){let t=w.useRef(e);return RR(()=>{t.current=e}),t}function UR(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=w.useState(r);zR(f,r)||p(r);let[m,h]=w.useState(null),[g,_]=w.useState(null),v=w.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=w.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=w.useRef(null),C=w.useRef(null),T=w.useRef(u),E=c!=null,D=HR(c),O=HR(i),k=HR(l),A=w.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),LR(S.current,C.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!zR(T.current,t)&&(T.current=t,AT.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);RR(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=w.useRef(!1);RR(()=>(j.current=!0,()=>{j.current=!1}),[]),RR(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(D.current)return D.current(b,x,A);A()}},[b,x,A,D,E]);let M=w.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),N=w.useMemo(()=>({reference:b,floating:x}),[b,x]),ee=w.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=VR(N.floating,u.x),r=VR(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...BR(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return w.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:ee}),[u,A,M,N,ee])}var WR=(e,t)=>{let n=jR(e);return{name:n.name,fn:n.fn,options:[e,t]}},GR=(e,t)=>{let n=MR(e);return{name:n.name,fn:n.fn,options:[e,t]}},KR=(e,t)=>({fn:IR(e).fn,options:[e,t]}),qR=(e,t)=>{let n=NR(e);return{name:n.name,fn:n.fn,options:[e,t]}},JR=(e,t)=>{let n=PR(e);return{name:n.name,fn:n.fn,options:[e,t]}},YR=(e,t)=>{let n=FR(e);return{name:n.name,fn:n.fn,options:[e,t]}};function XR(e){let t=w.useRef(!0);t.current&&(t.current=!1,e())}var ZR=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(ha(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);
49else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},QR=sl(),$R=Ca(19)?nz:rz;function ez(e,t,n,r,i){return $R(e,t,n,r,i)}function tz(e,t,n,r,i){let a=w.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,QR.useSyncExternalStore)(e.subscribe,a,a)}_oe({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,QR.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function nz(e,t,n,r,i){let a=goe();if(!a)return tz(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function rz(e,t,n,r,i){return(0,dl.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var iz=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return ez(this,e,t,n,r)}},az=class extends iz{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){w.useDebugValue(e);let n=this;U(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;U(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;U(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){w.useDebugValue(e);let n=this,r=t!==void 0;U(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return w.useDebugValue(e),ez(this,this.selectors[e],t,n,r)}useContextCallback(e,t){w.useDebugValue(e);let n=OF(t??Ea);this.context[e]=n}useStateSetter(e){let t=w.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},oz={open:ZR(e=>e.open),transitionStatus:ZR(e=>e.transitionStatus),domReferenceElement:ZR(e=>e.domReferenceElement),referenceElement:ZR(e=>e.positionReference??e.referenceElement),floatingElement:ZR(e=>e.floatingElement),floatingId:ZR(e=>e.floatingId)},sz=class extends az{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Loe(),nested:n,triggerElements:i},oz),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Pae(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>
49{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function cz(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=w.useRef(null);r===void 0&&f.current===null&&(f.current=new sz({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let p=r??f.current;return t.useSyncedValue(`floatingId`,i),U(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};KF(c)&&(e.domReferenceElement=c),p.state.positionReference===p.state.referenceElement&&(e.positionReference=c),p.update(e)},[s,i,c,l,p]),p.context.onOpenChange=d,p.context.nested=a,p}function lz(e,t=!1,n=!1){let[r,i]=w.useState(e&&t?`idle`:void 0),[a,o]=w.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),U(()=>{if(!e&&a&&r!==`ending`&&n){let e=LL.request(()=>{i(`ending`)});return()=>{LL.cancel(e)}}},[e,a,r,n]),U(()=>{if(!e||t)return;let n=LL.request(()=>{i(void 0)});return()=>{LL.cancel(n)}},[t,e]),U(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=LL.request(()=>{i(`idle`)});return()=>{LL.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}var uz=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),dz={[uz.startingStyle]:``},fz={[uz.endingStyle]:``},pz={transitionStatus(e){return e===`starting`?dz:e===`ending`?fz:null}};function mz(e,t=!1,n=!0){let r=RL();return OF((i,a=null)=>{r.cancel();let o=iR(e);if(o==null)return;let s=o,c=()=>{AT.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=uz.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function hz(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=OF(i),o=mz(r,n,!1);w.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}var gz={tabIndex:-1,[Tae]:``};function _z(e){return t=>t===`touch`?e.current:!0}function vz(e,t,n=!1){let r=uo(),i=nR()!=null,a=w.useRef(null);e===void 0&&a.current===null&&(a.current=t(r,i));let o=e??a.current;return cz({popupStore:o,treatPopupAsFloatingElement:n,floatingRootContext:o.state.floatingRootContext,floatingId:r,nested:i,onOpenChange:o.setOpen}),{store:o,internalStore:a.current}}function yz(e,t){let n=w.useRef(null),r=w.useRef(null);return w.useCallback(i=>{if(e===void 0)return;let a=!1;if(n.current!==null){let e=n.current,i=r.current,o=t.context.triggerElements.getById(e);i&&o===i&&(t.context.triggerElements.delete(e),a=!0),n.current=null,r.current=null}if(i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i),a=!0),a){let e=t.context.triggerElements.size;t.select(`open`)&&t.state.triggerCount!==e&&t.set(`triggerCount`,e)}},[t,e])}function bz(e,t,n,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let i=n?.id??null;(i||t)&&(e.activeTriggerId=i,e.activeTriggerElement=n??null)}function xz(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Sz(e,t,n,r={}){let i=n.reason,a=i===kL,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=xz(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i={...r.extraState,open:t};
49o?i.instantType=`focus`:s?i.instantType=`dismiss`:a&&(i.instantType=void 0),bz(i,t,n.trigger,c()),e.update(i)};a?AT.flushSync(l):l()}function Cz(e,t,n,r){XR(()=>{t===void 0&&e.state.open===!1&&n&&(e.state={...e.state,open:!0,activeTriggerId:r,preventUnmountingOnClose:!1})})}function wz(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=yz(e,n),o=OF(t=>{if(a(t),!t)return;let i=n.select(`open`),o=n.select(`activeTriggerId`);if(o===e){n.update({activeTriggerElement:t,...i?r:null});return}o==null&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return U(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function Tz(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=e.useState(`open`);U(()=>{if(!r){e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let t=e.context.triggerElements.size,i={};e.state.triggerCount!==t&&(i.triggerCount=t);let a=e.select(`activeTriggerId`),o=null;if(a){let t=e.context.triggerElements.getById(a);t?t!==e.state.activeTriggerElement&&(i.activeTriggerElement=t):o=a}if(!o&&!a&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;i.activeTriggerId=e,i.activeTriggerElement=n}}(i.triggerCount!==void 0||i.activeTriggerId!==void 0||i.activeTriggerElement!==void 0)&&e.update(i),o&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===o&&!e.context.triggerElements.getById(o)){let t=ML(DL);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,e.useState(`triggerCount`),n])}function Ez(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=lz(e),o=t.useState(`preventUnmountingOnClose`),s=e?!1:o;t.useSyncedValues({mounted:r,transitionStatus:a,preventUnmountingOnClose:s});let c=OF(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return hz({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||c()}}),{forceUnmount:c,transitionStatus:a}}function Dz(e,t){e.useSyncedValues(t),U(()=>()=>{e.update({activeTriggerProps:Da,inactiveTriggerProps:Da,popupProps:Da})},[e])}function Oz(e,t){U(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),U(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var kz=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Az(){return new sz({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new kz,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function jz(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Az(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Da,inactiveTriggerProps:Da,popupProps:Da}}function Mz(e,t,n=!1){return new sz({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var Nz=ZR(e=>e.triggerIdProp??e.activeTriggerId),Pz=ZR(e=>e.openProp??e.open),Fz=ZR(e=>(e.popupElement?.id??e.floatingId)||void 0);function Iz(e,t){return t!==void 0&&Pz(e)&&Nz(e)===t}function Lz(e,t){return Iz(e,t)?!0:t!==void 0&&Pz(e)&&Nz(e)==null&&e.triggerCount===1}var Rz={open:Pz,mounted:ZR(e=>e.mounted),transitionStatus:ZR(e=>e.transitionStatus),floatingRootContext:ZR(e=>e.floatingRootContext),triggerCount:ZR(e=>e.triggerCount),preventUnmountingOnClose:ZR(e=>e.preventUnmountingOnClose),payload:ZR(e=>e.payload),activeTriggerId:Nz,activeTriggerElement:ZR(e=>
49e.mounted?e.activeTriggerElement:null),popupId:Fz,isTriggerActive:ZR((e,t)=>t!==void 0&&Nz(e)===t),isOpenedByTrigger:ZR((e,t)=>Iz(e,t)),isMountedByTrigger:ZR((e,t)=>t!==void 0&&Nz(e)===t&&e.mounted),triggerProps:ZR((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:ZR((e,t)=>Lz(e,t)?Fz(e):void 0),popupProps:ZR(e=>e.popupProps),popupElement:ZR(e=>e.popupElement),positionerElement:ZR(e=>e.positionerElement)};function zz(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=uo(),a=nR()!=null,o=ia(()=>new sz({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new kz,floatingId:i,syncOnly:!1,nested:a})).current;return U(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=KF(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function Bz(e={}){let{nodeId:t,externalTree:n}=e,r=zz(e),i=e.rootContext||r,a=i.useState(`referenceElement`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.useState(`open`),l=i.useState(`floatingId`),[u,d]=w.useState(null),[f,p]=w.useState(void 0),[m,h]=w.useState(void 0),g=w.useRef(null),_=rR(n),v=w.useMemo(()=>({reference:a,floating:o,domReference:s}),[a,o,s]),y=UR({...e,elements:{...v,...u&&{reference:u}}}),b=KF(f)?f:null,x=m===void 0?i.state.floatingElement:m;i.useSyncedValue(`referenceElement`,f??null),i.useSyncedValue(`domReferenceElement`,f===void 0?s:b),i.useSyncedValue(`floatingElement`,x);let S=w.useCallback(e=>{let t=KF(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),y.refs.setReference(t)},[y.refs]),C=w.useCallback(e=>{(KF(e)||e===null)&&(g.current=e,p(e)),(KF(y.refs.reference.current)||y.refs.reference.current===null||e!==null&&!KF(e))&&y.refs.setReference(e)},[y.refs,p]),T=w.useCallback(e=>{h(e),y.refs.setFloating(e)},[y.refs]),E=w.useMemo(()=>({...y.refs,setReference:C,setFloating:T,setPositionReference:S,domReference:g}),[y.refs,C,T,S]),D=w.useMemo(()=>({...y.elements,domReference:s}),[y.elements,s]),O=w.useMemo(()=>({...y,dataRef:i.context.dataRef,open:c,onOpenChange:i.setOpen,events:i.context.events,floatingId:l,refs:E,elements:D,nodeId:t,rootStore:i}),[y,E,D,t,i,c,l]);return U(()=>{s&&(g.current=s)},[s]),U(()=>{i.context.dataRef.current.floatingContext=O;let e=_?.nodesRef.current.find(e=>e.id===t);e&&(e.context=O)}),w.useMemo(()=>({...y,context:O,refs:E,elements:D,rootStore:i}),[y,E,D,O,i])}var Vz=pI&&mI;function Hz(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=w.useRef(!1),c=w.useRef(null),l=w.useRef(!0),u=MF();w.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=UF(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&qF(e)&&e===gI(KI(e))&&(s.current=!0)}function a(){l.current=!0}function o(){l.current=!1}return PL(hL(t,`blur`,r),Vz&&hL(t,`keydown`,a,!0),Vz&&hL(t,`pointerdown`,o,!0))},[i,n]),w.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);KF(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=w.useMemo(()=>{function e(){s.current=!1,c.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(s.current){if(c.current===n)return;e()}let a=_I(t.nativeEvent);if(KF(a)){if(Vz&&!t.relatedTarget){if(!l.current&&!bI(a))return}else if(!kae(a))return}let o=vI(t.relatedTarget,i.context.triggerElements),{nativeEvent:d,currentTarget:f}=t,p=typeof r==`function`?r():r;if(i.select(`open`)&&o||p===0||p===void 0){i.setOpen(!0,ML(AL,d,f));return}u.start(p,()=>{s.current||i.setOpen(!0,ML(AL,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=KF(n)&&n.hasAttribute(BL(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=gI(KI(e));!n&&t===e||Y(o.current.floatingContext?.refs.floating.current,t)||Y(e,t)||a||vI(n??t,i.context.triggerElements)||i.setOpen(!1,ML(A
49L,r))})}}},[o,r,i,u]);return w.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var Uz=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new jF,this.restTimeout=new jF,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Wz=new WeakMap;function Gz(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Wz.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Wz.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Kz(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Wz.get(n);a&&a!==e&&Gz(a),Gz(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Wz.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function qz(e){let t=e.context.dataRef.current,n=ia(()=>t.hoverInteractionState??Uz.create()).current;return t.hoverInteractionState||=n,kF(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Jz(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),{dataRef:l}=a.context,u=rR(),d=nR(),f=qz(a),p=MF(),m=OF(()=>EL(l.current.openEvent?.type,f.interactedInside)),h=OF(()=>xoe(l.current.openEvent?.type)),g=OF(()=>{Gz(f)});U(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,g())},[o,f,g]),w.useEffect(()=>g,[g]),U(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&h()&&KF(c)&&s){let e=c,t=s,n=KI(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=f.pointerEventsScopeElement===t?null:f.pointerEventsScopeElement,a=r===t?null:r,o=f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body;return Kz(f,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{g()}}},[n,o,c,s,f,h,u,d,g]),w.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&CI(u.nodesRef.current,d).length>0)}function t(e){let t=wL(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,ML(kL,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=_I(e);if(!Oae(t)){f.interactedInside=!1;return}f.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function c(){f.openChangeTimeout.clear(),p.clear(),u?.events.off(`floating.closed`,v),g()}function _(n){if(e()&&u){u.events.on(`floating.closed`,v);return}if(vI(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&KF(o)&&CI(u.nodesRef.current,r,!1).some(e=>Y(e.context?.elements.floating,o)))){if(f.handler){f.handler(n);return}g(),h()&&!m()&&t(n)}}function v(t){!u||!d||e()||p.start(0,()=>{u.events.off(`floating.closed`,v),a.setOpen(!1,ML(kL,t)),u.events.emit(`floating.closed`,t)})}let y=s;return PL(y&&hL(y,`mouseenter`,c),y&&hL(y,`mouseleave`,_),y&&hL(y,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,v)})},[n,s,a,l,r,i,h,m,g,f,u,d,p])}var Yz={current:null};function Xz(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=Yz,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p}=t,m=`rootStore`in e?e.rootStore:e,{dataRef:h,events:g}=m.context,_=rR(l),v=qz(m),y=w.useRef(!1),b=aa(i),x=aa(r),S=aa(o),C=aa(n),T=aa(p),E=aa(f),D=OF(()=>EL(h.current.openEvent?.type,v.interactedInside)),O=OF(()=>T.current?.()!==!1),k=OF((e,t,n)=>{let r=m.context.triggerElements;if(r.hasElement(t))return!e||!Y(e,t);if(!KF(n))return!1;let i=n;return r.hasMatchingElement(e=>
49Y(e,i))&&(!e||!Y(e,i))}),A=OF(()=>{v.handler&&=(KI(m.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),j=OF(()=>{Gz(v)});return u&&(v.handleCloseOptions=b.current?.__options),w.useEffect(()=>A,[A]),w.useEffect(()=>{if(!n)return;function e(e){e.open?y.current=!1:(y.current=e.reason===kL,A(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,v,A]),w.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=wL(x.current,`close`,v.pointerType);n?v.openChangeTimeout.start(n,()=>{m.setOpen(!1,ML(kL,e)),_?.events.emit(`floating.closed`,e)}):t&&(v.openChangeTimeout.clear(),m.setOpen(!1,ML(kL,e)),_?.events.emit(`floating.closed`,e))}let t=c.current??(u?m.select(`domReferenceElement`):null);if(!KF(t))return;function r(e){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!TI(v.pointerType))return;let t=TL(S.current),n=wL(x.current,`open`,v.pointerType),r=_I(e),i=e.currentTarget??null,o=m.select(`domReferenceElement`),s=i;if(KF(r)&&!m.context.triggerElements.hasElement(r)){for(let e of m.context.triggerElements.elements())if(Y(e,r)){s=e;break}}KF(i)&&KF(o)&&!m.context.triggerElements.hasElement(i)&&Y(i,o)&&(s=o);let c=s==null?!1:k(o,s,r),l=m.select(`open`),u=E.current?.()??m.select(`transitionStatus`)===`ending`,d=!l&&u&&y.current,f=!c&&KF(s)&&KF(o)&&Y(o,s)&&d,p=t>0&&!n,h=c&&(l||d)||f,g=!l||c;if(h){O()&&m.setOpen(!0,ML(kL,e,s));return}p||(n?v.openChangeTimeout.start(n,()=>{g&&O()&&m.setOpen(!0,ML(kL,e,s))}):g&&O()&&m.setOpen(!0,ML(kL,e,s)))}function i(t){if(D()){j();return}A();let n=KI(m.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let r=h.current.floatingContext??d?.();if(!vI(t.relatedTarget,m.context.triggerElements)){if(b.current&&r){m.select(`open`)||v.openChangeTimeout.clear();let i=c.current;v.handler=b.current({...r,tree:_,x:t.clientX,y:t.clientY,onClose(){j(),A(),C.current&&!D()&&i===m.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,v.handler),v.handler(t);return}(v.pointerType!==`touch`||!Y(m.select(`floatingElement`),t.relatedTarget))&&e(t)}}return s?PL(hL(t,`mousemove`,r,{once:!0}),hL(t,`mouseenter`,r),hL(t,`mouseleave`,i)):PL(hL(t,`mouseenter`,r),hL(t,`mouseleave`,i))},[A,j,h,x,m,n,b,v,u,k,D,a,s,S,c,_,C,d,E,O]),w.useMemo(()=>{if(!n)return;function e(e){v.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=m.select(`domReferenceElement`),i=m.select(`open`),o=k(r,n,e.target);if(a&&!TI(v.pointerType))return;if(i&&o&&v.handleCloseOptions?.blockPointerEvents){let e=m.select(`floatingElement`);if(e){let t=v.handleCloseOptions?.getScope?.()??n.ownerDocument.body;Kz(v,{scopeElement:t,referenceElement:n,floatingElement:e})}}let s=TL(S.current);if(i&&!o||s===0||!o&&v.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;v.restTimeout.clear();function c(){if(v.restTimeoutPending=!1,D())return;let e=m.select(`open`);!v.blockMouseMove&&(!e||o)&&O()&&m.setOpen(!0,ML(kL,t,n))}v.pointerType===`touch`?AT.flushSync(()=>{c()}):o&&i?c():(v.restTimeoutPending=!0,v.restTimeout.start(s,c))}}},[n,v,D,k,a,m,S,O])}var Zz=.1,Qz=Zz*Zz,$z=.5;function eB(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function tB(e,t,n,r,i,a,o,s,c,l){let u=!1;return eB(e,t,n,r,i,a)&&(u=!u),eB(e,t,i,a,o,s)&&(u=!u),eB(e,t,o,s,c,l)&&(u=!u),eB(e,t,c,l,n,r)&&(u=!u),u}function nB(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function rB(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function iB(e={}){let{blockPointerEvents:t=!1}=e,n=new jF,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*Qz;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=_I(r),g=r.type===`mouseleave`,_=Y(u,h),v=Y(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&KF(r.relatedTarget)&&Y(u,r.relatedTarget))return;function y(){return!!(s&&CI(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=rB(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=rB(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=rB(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=rB(d,f,x.right-1,A,S.left+1,k);break;default:}if(j)return;if(l&&!nB(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?$z/2:$z*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+$z+1,o=C||T?S.bottom-$z:S.top,s=C?T?S.bottom-$z:S.top:S.bottom-$z;M=tB(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?$z/2:$z*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-$z,o=C||T?S.top+$z:S.bottom,s=C?T?S.top+$z:S.bottom:S.top+$z;M=tB(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?$z/2:$z*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+$z+1,o=w||E?S.right-$z:S.left,s=w?E?S.right-$z:S.left:S.right-$z;M=tB(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?$z/2:$z*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-$z,o=w||E?S.left+$z:S.right,s=w?E?S.left+$z:S.right:S.left+$z;M=tB(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var aB={...Rz,disabled:ZR(e=>e.disabled),instantType:ZR(e=>e.instantType),isInstantPhase:ZR(e=>e.isInstantPhase),trackCursorAxis:ZR(e=>e.trackCursorAxis),disableHoverablePopup:ZR(e=>e.disableHoverablePopup),lastOpenChangeReason:ZR(e=>
49e.openChangeReason),closeOnClick:ZR(e=>e.closeOnClick),closeDelay:ZR(e=>e.closeDelay),hasViewport:ZR(e=>e.hasViewport)},oB=class e extends az{constructor(e,t,n=!1){let r=new kz,i={...sB(),...e};i.floatingRootContext=Mz(r,t,n),super(i,{popupRef:w.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r},aB)}setOpen=(e,t)=>{Sz(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,ML(OL,e))}static useStore(t,n){return vz(t,(t,r)=>new e(n,t,r)).store}};function sB(){return{...jz(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var cB=xL(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=oB.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});Cz(p,r,n,d),p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i}),p.useSyncedValue(`disabled`,t),Tz(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:y,transitionStatus:b}=Ez(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),T=w.useRef(null);U(()=>{m&&t&&p.setOpen(!1,ML(Eoe))},[m,t,p]),U(()=>{b===`ending`&&C===`none`||b!==`ending`&&x?(S!==`delay`&&(T.current=S),p.set(`instantType`,`delay`)):T.current!==null&&(p.set(`instantType`,T.current),T.current=null)},[b,x,C,S,p]),U(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let E=w.useCallback(()=>{p.setOpen(!1,ML(jL))},[p]);w.useImperativeHandle(o,()=>({unmount:y,close:E}),[y,E]);let D=h||_||!t&&a!==`none`;return(0,z.jsxs)(SL.Provider,{value:p,children:[D&&(0,z.jsx)(lB,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function lB({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=dR(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=Goe(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n});return Dz(e,{activeTriggerProps:w.useMemo(()=>Ma(a.reference,i.reference),[a.reference,i.reference]),inactiveTriggerProps:w.useMemo(()=>Ma(a.trigger,i.trigger),[a.trigger,i.trigger]),popupProps:w.useMemo(()=>Ma(gz,a.floating,i.floating),[a.floating,i.floating])}),null}var uB=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=uz.startingStyle]=`startingStyle`,e[e.endingStyle=uz.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),dB=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),fB={[dB.popupOpen]:``};dB.popupOpen,dB.pressed;var pB={[uB.open]:``},mB={[uB.closed]:``},hB={[uB.anchorHidden]:``},gB={open(e){return e?fB:null}},_B={open(e){return e?pB:mB},anchorHidden(e){return e?hB:null}},vB=w.createContext(void 0);function yB(){return w.useContext(vB)}var bB=function(e){return e[e.popupOpen=dB.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),xB=`data-base-ui-tooltip-trigger`;function SB(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if(KF(n))return n}}let t=e.target;return KF(t)?t:null}function CB(e){let t=e;for(;t;){if(t.hasAttribute(xB))return t;let e=t.parentElement;if(e){t=e;continue}let n=t.getRootNode();t=`host`in n&&KF(n.host)?n.host:null}return null}var wB=voe(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:u,id:d,...f}=e,p=CL(!0),m=a?.store??p;if(!m)throw Error(ha(82));let h=fo(d),g=m.useState(`isTriggerActive`,h),_=m.useState(`isOpenedByTrigger`,h),v=m.useState(`floatingRootContext`),y=w.useRef(null),b=c??600,x=u??0,{registerTrigger:S,isMountedByThisTrigger:C}=wz(h,y,m,{payload:o,closeOnClick:l,closeDelay:x}),T=yB(),{delayRef:E,isInstantPhase:D,hasProvider:O}=koe(v,{open:_}),k=qz(v);m.useSyncedValue(`isInstantPhase`,D);let A=m.useState(`disabled`),j=s??A,M=aa(j),N=m.useState(`trackCursorAxis`),ee=m.useState(`disableHoverablePopup`),te=w.useRef(!1),P=MF(),F=w.useRef(void 0);function ne(){let e=T?.delay,t=typeof E.current==`object`?E.current.open:void 0,n=b;return O&&(n=t===0?0:c??e??b),n}function re(e){let t=y.current;if(!t||!e)return!1;let n=CB(e);return n!==null&&n!==t&&Y(t,n)}function ie(e){let t=re(e);return te.current=t,t&&(k.openChangeTimeout.clear(),k.restTimeout.clear(),k.restTimeoutPending=!1,P.clear()),t}let ae=Xz(v,{enabled:!j,mouseOnly:!0,move:!1,handleClose:!ee&&N!==`both`?iB():null,restMs:ne,delay(){let e=typeof E.current==`object`?E.current.close:void 0,t=x;return u==null&&O&&(t=e),{close:t}},triggerElementRef:y,isActiveTrigger:g,isClosing:()=>m.select(`transitionStatus`)===`ending`,shouldOpen(){return!te.current}}),I=Hz(v,{enabled:!j}).reference,L=e=>{let t=te.current,n=SB(e),r=ie(n),i=y.current,a=i&&n&&Y(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,ML(kL,e));return}if(t&&!r&&a&&!M.current&&!m.select(`open`)&&i&&TI(F.current)){let t=()=>{!te.current&&!M.current&&!m.select(`open`)&&m.setOpen(!0,ML(kL,e,i))},n=ne();n===0?(P.clear(),t()):P.start(n,t)}},oe=m.useState(`triggerProps`,C);return Ka(`button`,e,{state:{open:_},ref:[t,S,y],props:[ae,I,C||N!==`none`?oe:void 0,{onMouseOver(e){L(e.nativeEvent)},onFocus(e){re(SB(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){te.current=!1,P.clear(),F.current=void 0},onPointerEnter(e){F.current=e.pointerType},onPointerDown(e){F.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[bB.triggerDisabled]:j?``:void 0,[xB]:j?void 0:``},f],stateAttributesMapping:gB})}),TB=w.createContext(void 0);function EB(){let e=w.useContext(TB);if(e===void 0)throw Error(ha(70));return e}var DB=w.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=tR({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,z.jsxs)(w.Fragment,{children:[l,c&&AT.createPortal(n,c)]})}),OB=w.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;
49return CL().useState(`mounted`)||n?(0,z.jsx)(TB.Provider,{value:n,children:(0,z.jsx)(DB,{ref:t,...r})}):null}),kB=w.createContext(void 0);function AB(){let e=w.useContext(kB);if(e===void 0)throw Error(ha(71));return e}var jB=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=MI(e,t)||{};if(l==null)return{};let f=UI(u),p={x:n,y:r},m=RI(i),h=II(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=jI(k,j,A),N=!c.arrow&&PI(i)!=null&&j!==M&&a.reference[h]/2-(j<k?D:O)-g[h]/2<0,ee=N?j<k?j-k:j-A:0;return{[m]:p[m]+ee,data:{[m]:M,centerOffset:j-M-ee,...N&&{alignmentOffset:ee}},reset:N}}}),MB=(e,t)=>({...jB(e),options:[e,t]}),NB=YR().fn,PB={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await NB(e)).data?.referenceHidden||a}}}},FB={sideX:`left`,sideY:`top`},IB={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=UF(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:FB};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=KI(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=NI(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let h=f===`left`?`right`:FB.sideX,g=f===`top`?`bottom`:FB.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function LB(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function RB(e,t,n){let{rects:r,placement:i}=e;return{side:LB(t,NI(i),n),align:PI(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function zB(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,inline:f,keepMounted:p=!1,floatingRootContext:m,mounted:h,collisionAvoidance:g,shiftCrossAxis:_=!1,nodeId:v,adaptiveOrigin:y,lazyFlip:b=!1,externalTree:x}=e,[S,C]=w.useState(null);!h&&S!==null&&C(null);let T=g.side||`flip`,E=g.align||`flip`,D=g.fallbackAxisSide||`end`,O=typeof t==`function`?t:void 0,k=OF(O),A=O?k:t,j=aa(t),M=aa(h),N=uL()===`rtl`,ee=S||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[r],te=a===`center`?ee:`${ee}-${a}`,P=c,F=+(r===`bottom`),ne=+(r===`top`),re=+(r===`right`),ie=+(r===`left`);typeof P==`number`?P={top:P+F,right:P+ie,bottom:P+ne,left:P+re}:P&&={top:(P.top||0)+F,right:(P.right||0)+ie,bottom:(P.bottom||0)+ne,left:(P.left||0)+re};let ae={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:P},I=w.useRef(null),L=aa(i),oe=aa(o),R=typeof i==`function`?0:i,se=typeof o==`function`?0:o,ce=[];f&&ce.push(f),ce.push(WR(e=>{let t=RB(e,r,N),n=typeof L.current==`function`?L.current(t):L.current,i=typeof oe.current==`function`?oe.current(t):oe.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[R,se,N,r]));let le=E===`none`&&T!==`shift`,ue=!le&&(l||_||T===`shift`),de=T===`none`?null:qR({...ae,padding:{top:P.top+1,right:P.right+1,bottom:P.bottom+1,left:P.left+1},mainAxis:!_&&T===`flip`,crossAxis:E===`flip`?`alignment`:!1,fallbackAxisSideDirection:D}),fe=le?null:GR(e=>{let t=KI(e.elements.floating).documentElement;return{...ae,rootBoundary:_?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:E!==`none`,crossAxis:ue,limiter:l||_?void 0:KR(e=>{if(!I.current)return{};let{width:t,height:n}=I.current.getBoundingClientRect(),r=LI(NI(e.placement)),i=r===`y`?t:n,a=r===`y`?P.left+P.right:P.top+P.bottom;
49return{offset:i/2+a/2}})}},[ae,l,_,P,E]);T===`shift`||E===`shift`||a===`center`?ce.push(fe,de):ce.push(de,fe),ce.push(JR({...ae,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!M.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=UF(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),MB(e=>({element:I.current||KI(e.elements.floating).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=NI(a),l=LI(c),u=I.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(RB(e,r,N)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,ue&&l===`y`&&b?S:x),{}}},PB,y),U(()=>{!h&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,m]);let pe=w.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:me,elements:he,x:ge,y:_e,middlewareData:ve,update:ye,placement:be,context:xe,isPositioned:Se,floatingStyles:Ce}=Bz({rootContext:m,open:p?h:void 0,placement:te,middleware:ce,strategy:n,whileElementsMounted:p?void 0:(...e)=>AR(...e,pe),nodeId:v,externalTree:x}),{sideX:we,sideY:Te}=ve.adaptiveOrigin||FB,Ee=Se?n:`fixed`,De=w.useMemo(()=>{let e=y?{position:Ee,[we]:ge,[Te]:_e}:{position:Ee,...Ce};return Se||(e.opacity=0),e},[y,Ee,we,ge,Te,_e,Ce,Se]),Oe=w.useRef(null);U(()=>{if(!h)return;let e=j.current,t=typeof e==`function`?e():e,n=(BB(t)?t.current:t)||null;n!==Oe.current&&(me.setPositionReference(n),Oe.current=n)},[h,me,A,j]),w.useEffect(()=>{if(!h)return;let e=j.current;typeof e!=`function`&&BB(e)&&e.current!==Oe.current&&(me.setPositionReference(e.current),Oe.current=e.current)},[h,me,A,j]),w.useEffect(()=>{if(p&&h&&he.reference&&he.floating)return AR(he.reference,he.floating,ye,pe)},[p,h,he,ye,pe]);let ke=NI(be),Ae=LB(r,ke,N),je=PI(be)||`center`,Me=!!ve.hide?.referenceHidden;U(()=>{b&&h&&Se&&C(ke)},[b,h,Se,ke]);let Ne=w.useMemo(()=>({position:`absolute`,top:ve.arrow?.y,left:ve.arrow?.x}),[ve.arrow]),Pe=ve.arrow?.centerOffset!==0;return w.useMemo(()=>({positionerStyles:De,arrowStyles:Ne,arrowRef:I,arrowUncentered:Pe,side:Ae,align:je,physicalSide:ke,anchorHidden:Me,refs:me,context:xe,isPositioned:Se,update:ye}),[De,Ne,I,Pe,Ae,je,ke,Me,me,xe,Se,ye])}function BB(e){return e!=null&&`current`in e}function VB(e){return e===`starting`?Moe:Da}function HB(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),Ka(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},VB(r),i],stateAttributesMapping:_B})}var UB=w.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=Noe,style:g,..._}=e,v=CL(),y=EB(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),T=v.useState(`floatingRootContext`),E=v.useState(`instantType`),D=v.useState(`transitionStatus`),O=zB({anchor:i,positionMethod:a,floatingRootContext:T,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`hasViewport`)?IB:void 0}),k=HB(e,w.useMemo(()=>({open:b,side:O.side,align:O.align,anchorHidden:O.anchorHidden,instant:S===`none`?E:`tracking-cursor`}),[b,O.side,O.align,O.anchorHidden,S,E]),{styles:O.positionerStyles,transitionStatus:D,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,z.jsx)(kB.Provider,{value:O,children:k})}),WB={..._B,...pz},GB=w.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=CL(),{side:s,align:c}=AB(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);hz({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),Jz(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return Ka(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[f,VB(d),a],stateAttributesMapping:WB})}),KB=w.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=CL(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=AB();
49return Ka(`div`,e,{state:{open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)},ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:_B})}),qB=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=w.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=w.useMemo(()=>({open:t,close:n}),[t,n]);return(0,z.jsx)(vB.Provider,{value:i,children:(0,z.jsx)(Ooe,{delay:a,timeoutMs:r,children:e.children})})};function JB(e){return Ca(19)?e:e?`true`:void 0}function YB({delay:e=0,...t}){return(0,z.jsx)(qB,{"data-slot":`tooltip-provider`,delay:e,...t})}function XB({...e}){return(0,z.jsx)(cB,{"data-slot":`tooltip`,...e})}function ZB({...e}){return(0,z.jsx)(wB,{"data-slot":`tooltip-trigger`,...e})}function QB({className:e,side:t=`top`,sideOffset:n=4,align:r=`center`,alignOffset:i=0,children:a,...o}){return(0,z.jsx)(OB,{children:(0,z.jsx)(UB,{align:r,alignOffset:i,side:t,sideOffset:n,className:`isolate z-50`,children:(0,z.jsxs)(GB,{"data-slot":`tooltip-content`,className:Ai(`z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...o,children:[a,(0,z.jsx)(KB,{className:`z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`})]})})})}function $B({title:e,total:t,items:n}){return(0,z.jsxs)(er,{children:[(0,z.jsxs)(H,{size:2,color:`silver`,children:[e,` `,t&&(0,z.jsxs)(`span`,{className:`text-xs`,children:[`· `,t]})]}),(0,z.jsx)(vL,{className:`h-28 -mr-4 pr-4`,children:(0,z.jsx)(YB,{children:(0,z.jsx)(`div`,{className:`flex flex-col gap-2.5`,children:n.map(e=>(0,z.jsxs)(`div`,{className:`flex items-center justify-between w-full gap-4 cursor-pointer`,children:[(0,z.jsxs)(XB,{children:[(0,z.jsx)(ZB,{render:(0,z.jsx)(`div`,{className:`min-w-0 flex-1`}),children:(0,z.jsxs)(H,{size:1,weight:`bold`,className:`truncate text-[0.8rem]`,children:[e.label,` · `,e.percent]})}),(0,z.jsxs)(QB,{children:[e.label,` · `,e.percent,` · `,e.value]})]}),(0,z.jsx)(H,{size:1,color:`silver`,className:`shrink-0 whitespace-nowrap text-[0.8rem]`,children:e.value})]},e.label))})})})]})}var eV=[{label:`Homens`,percent:`50%`,value:`25,6 mi`},{label:`Mulheres`,percent:`50%`,value:`25,6 mi`}],tV=[{label:`Classe C`,percent:`52%`,value:`26,5 mi`},{label:`Classe B`,percent:`31%`,value:`16,0 mi`},{label:`Classes D e E`,percent:`13%`,value:`6,6 mi`},{label:`Classe A`,percent:`4%`,value:`2,1 mi`}],nV=[{label:`10 a 15`,percent:`13%`,value:`6,5 mi`},{label:`16 a 24`,percent:`28%`,value:`14,5 mi`},{label:`25 a 34`,percent:`27%`,value:`13,6 mi`},{label:`35 a 44`,percent:`18%`,value:`9,3 mi`},{label:`45 a 59`,percent:`12%`,value:`6,2 mi`},{label:`60 ou mais`,percent:`2%`,value:`1,1 mi`}],rV=w.createContext(!1),iV=w.createContext(void 0);function aV(e){let t=w.useContext(iV);if(e===!1&&t===void 0)throw Error(ha(27));return t}var oV={..._B,...pz},sV=w.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=aV(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return Ka(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:oV,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),cV=w.createContext(void 0);function lV(e=!1){let t=w.useContext(cV);if(t===void 0&&!e)throw Error(ha(16));return t}function uV(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:w.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function dV(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=w.useRef(null),s=lV(!0),c=a??s!==void 0,{props:l}=uV({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=w.useCallback(()=>{let e=o.current;fV(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return U(u,[u]),{getButtonProps:w.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return Ma({onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(Ua(e),o?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,a=e.currentTarget,s=fV(a),l=!i&&pV(a),u=r&&(i?s:!l),d=e.key===`Enter`,f=e.key===` `,p=a.getAttribute(`role`),m=p?.startsWith(`menuitem`)||p===`option`||p===`gridcell`;if(r&&c&&f){if(e.defaultPrevented&&m)return;e.preventDefault(),l||i&&s?(a.click(),e.preventBaseUIHandler()):u&&(n?.(e),e.preventBaseUIHandler());return}u&&(!i&&(f||d)&&e.preventDefault(),!i&&d&&n?.(e))},onKeyUp(e){if(!t){if(Ua(e),a?.(e),e.target===e.currentTarget&&i&&c&&fV(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!c&&e.key===` `&&n?.(e)}},onPointerDown(e){if(t){e.preventDefault();return}s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:OF(e=>{o.current=e,u()})}}function fV(e){return qF(e)&&e.tagName===`BUTTON`}function pV(e){return!!(e?.tagName===`A`&&e?.href)}var mV=w.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,{store:c}=aV(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=dV({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,ML(Coe,e.nativeEvent))}
49return Ka(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),hV=w.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=aV(),c=fo(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),Ka(`p`,e,{ref:t,props:[{id:c},o]})}),gV=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),_V=function(e){return e[e.open=uB.open]=`open`,e[e.closed=uB.closed]=`closed`,e[e.startingStyle=uB.startingStyle]=`startingStyle`,e[e.endingStyle=uB.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),vV=w.createContext(void 0);function yV(){let e=w.useContext(vV);if(e===void 0)throw Error(ha(26));return e}var bV=`ArrowUp`,xV=`ArrowDown`,SV=`ArrowLeft`,CV=`ArrowRight`,wV=`Home`,TV=new Set([SV,CV]),EV=new Set([bV,xV]),DV=new Set([...TV,...EV]),OV=new Set([...DV,wV,`End`]),kV={..._B,...pz,nestedDialogOpen(e){return e?{[_V.nestedDialogOpen]:``}:null}},AV=w.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,{store:c}=aV(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`),C=s.id??S;yV(),hz({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let w=o===void 0?_z(c.context.popupRef):o,T=g>0,E=c.useStateSetter(`popupElement`),D=Ka(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:T},props:[f,{id:C,"aria-labelledby":y??void 0,"aria-describedby":l??void 0,role:x,...gz,hidden:!m,onKeyDown(e){OV.has(e.key)&&e.stopPropagation()},style:{[gV.nestedDialogs]:g}},s],ref:[t,c.context.popupRef,E],stateAttributesMapping:kV});return(0,z.jsx)(Uoe,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:w,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:D})}),jV=w.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,z.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),MV=w.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=aV(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,z.jsx)(vV.Provider,{value:n,children:(0,z.jsxs)(Ioe,{ref:t,...r,children:[a&&o===!0&&(0,z.jsx)(jV,{ref:i.context.internalBackdropRef,inert:JB(!s)}),e.children]})}):null}),NV={},PV={},FV=``;function IV(e){if(typeof document>`u`)return!1;let t=KI(e);return UF(t).innerWidth-t.documentElement.clientWidth>0}function LV(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=KI(e),n=t.documentElement,r=t.body,i=YF(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function RV(e){let t=KI(e),n=t.documentElement,r=t.body,i=YF(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function zV(e){let t=KI(e),n=t.documentElement,r=t.body,i=UF(n),a=0,o=0,s=!1,c=LL.create();if(mI&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,NV={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},FV=n.style.scrollBehavior,PV={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=YF(n)?n:r;if(s=LV(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}
49px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,NV),Object.assign(r.style,PV),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=FV)}function d(){u(),c.request(l)}l();let f=hL(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var BV=new class{lockCount=0;restore=null;timeoutLock=jF.create();timeoutUnlock=jF.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=KI(e).documentElement,n=UF(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=Ea;return}let r=uI||!IV(e);this.restore=r?RV(e):zV(e)}};function VV(e=!0,t=null){U(()=>{if(e)return BV.acquire(t)},[e,t])}function HV(e){let{store:t,actionsRef:n}=e,r=t.useState(`open`);Oz(t,r),Tz(t);let{forceUnmount:i}=Ez(r,t),a=w.useCallback(()=>{t.setOpen(!1,ML(jL))},[t]);w.useImperativeHandle(n,()=>({unmount:i,close:a}),[i,a])}function UV({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`disablePointerDismissal`),a=e.useState(`modal`),o=e.useState(`popupElement`),s=e.useState(`floatingRootContext`),[c,l]=w.useState(0),[u,d]=w.useState(0),f=c===0,p=dR(s,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:a===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0||`touches`in t&&t.touches.length!==1)return!1;let n=_I(t);return f&&!i?a&&(e.context.internalBackdropRef.current||e.context.backdropRef.current)?e.context.internalBackdropRef.current===n||e.context.backdropRef.current===n||Y(n,o)&&!n?.hasAttribute(`data-base-ui-portal`):!0:!1},escapeKey:f});return VV(r&&a===!0,o),e.useContextCallback(`onNestedDialogOpen`,(e,t)=>{l(e),d(t)}),e.useContextCallback(`onNestedDialogClose`,()=>{l(0),d(0)}),w.useEffect(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(c+1,u+ +!!n),t?.onNestedDialogClose&&!r&&t.onNestedDialogClose(),()=>{t?.onNestedDialogClose&&r&&t.onNestedDialogClose()}),[n,r,c,u,t]),Dz(e,{activeTriggerProps:p.reference??Da,inactiveTriggerProps:p.trigger??Da,popupProps:p.floating??Da,nestedOpenDialogCount:c,nestedOpenDrawerCount:u}),null}var WV={...Rz,modal:ZR(e=>e.modal),nested:ZR(e=>e.nested),nestedOpenDialogCount:ZR(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:ZR(e=>e.nestedOpenDrawerCount),disablePointerDismissal:ZR(e=>e.disablePointerDismissal),openMethod:ZR(e=>e.openMethod),descriptionElementId:ZR(e=>e.descriptionElementId),titleElementId:ZR(e=>e.titleElementId),viewportElement:ZR(e=>e.viewportElement),role:ZR(e=>e.role)},GV=class e extends az{constructor(e,t,n=!1){let r=new kz,i=KV(e);i.floatingRootContext=Mz(r,t,n),super(i,{popupRef:w.createRef(),backdropRef:w.createRef(),internalBackdropRef:w.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:r,onOpenChange:void 0,onOpenChangeComplete:void 0},WV)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};bz(n,e,t.trigger),this.update(n)};static useStore(t,n){return vz(t,(t,r)=>new e(n,t,r),!0).store}};function KV(e={}){return{...jz(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function qV(e,t=`dialog`){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTr
49iggerId:f=null}=e,p=t===`drawer`,m=t===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=aV(!0),y={modal:h,disablePointerDismissal:g,nested:!!v,role:_},b=GV.useStore(u?.store,{open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y});XR(()=>{let e=r===void 0&&b.state.open===!1&&i===!0?{open:!0,activeTriggerId:f}:null;m?b.update(e?{...y,...e}:y):e&&b.update(e)}),b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`);HV({store:b,actionsRef:l});let T=x||S,E=w.useMemo(()=>({store:b}),[b]);return(0,z.jsx)(rV.Provider,{value:!1,children:(0,z.jsxs)(iV.Provider,{value:E,children:[T&&(0,z.jsx)(UV,{store:b,parentContext:v?.store.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})})}function JV(e){return qV(e,w.useContext(rV)?`drawer`:`dialog`)}var YV=w.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=aV(),c=fo(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),Ka(`h2`,e,{ref:t,props:[{id:c},o]})}),XV=w.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=dV({disabled:i,focusableWhenDisabled:a,native:o});return Ka(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),ZV=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,QV=rr,$V=((e,t)=>n=>{if(t?.variants==null)return QV(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=ZV(t)||ZV(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return QV(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)})(`group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5`,lg:`h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-9`,"icon-xs":`size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function eH({className:e,variant:t=`default`,size:n=`default`,...r}){return(0,z.jsx)(XV,{"data-slot":`button`,className:Ai($V({variant:t,size:n,className:e})),...r})}function tH({...e}){return(0,z.jsx)(JV,{"data-slot":`dialog`,...e})}function nH({...e}){return(0,z.jsx)(MV,{"data-slot":`dialog-portal`,...e})}function rH({className:e,...t}){return(0,z.jsx)(sV,{"data-slot":`dialog-overlay`,className:Ai(`fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function iH({className:e,children:t,showCloseButton:n=!0,...r}){return(0,z.jsxs)(nH,{children:[(0,z.jsx)(rH,{}),(0,z.jsxs)(AV,{"data-slot":`dialog-content`,className:Ai(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl bg-popover p-6 text-sm text-popover-foreground ring-1 ring-foreground
49/10 duration-100 outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r,children:[t,n&&(0,z.jsxs)(mV,{"data-slot":`dialog-close`,render:(0,z.jsx)(eH,{variant:`ghost`,className:`absolute top-4 right-4`,size:`icon-sm`}),children:[(0,z.jsx)(ta,{}),(0,z.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function aH({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`dialog-header`,className:Ai(`flex flex-col gap-2`,e),...t})}function oH({className:e,...t}){return(0,z.jsx)(YV,{"data-slot":`dialog-title`,className:Ai(`font-heading leading-none font-medium`,e),...t})}function sH({className:e,...t}){return(0,z.jsx)(hV,{"data-slot":`dialog-description`,className:Ai(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}function cH({title:e,variant:t=`arrow`,onClick:n,type:r=`button`,disabled:i=!1,children:a}){return t===`analysis`?(0,z.jsxs)(`button`,{type:r,onClick:n,disabled:i,className:`flex items-center p-2 gap-3 rounded-full bg-linear-to-r from-[#141414] to-primary w-fit border cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed`,children:[a,(0,z.jsx)(H,{weight:`medium`,color:`white`,children:e})]}):(0,z.jsxs)(`button`,{type:r,onClick:n,disabled:i,className:`flex items-center gap-2 w-fit cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed`,children:[(0,z.jsx)(H,{weight:`light`,color:`silver`,children:e}),(0,z.jsx)(Qi,{className:`size-4 stroke-accent`})]})}function lH(e){if(!e)return;let t=document.createElement(`a`);t.href=e,t.target=`_blank`,t.rel=`noopener noreferrer`,document.body.appendChild(t),t.click(),document.body.removeChild(t)}function uH({sources:e,title:t=`Ver fonte`,dialogTitle:n=`Fontes deste painel`}){let[r,i]=(0,w.useState)(!1);return e.length===0?null:e.length===1?(0,z.jsx)(cH,{title:t,onClick:()=>lH(e[0].url)}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(cH,{title:`Ver fontes`,onClick:()=>i(!0)}),(0,z.jsx)(tH,{open:r,onOpenChange:i,children:(0,z.jsxs)(iH,{children:[(0,z.jsxs)(aH,{children:[(0,z.jsx)(oH,{children:n}),(0,z.jsx)(sH,{children:`As pesquisas medem coisas diferentes e são exibidas lado a lado, sem média artificial. Cada linha abre a fonte original em uma nova aba.`})]}),(0,z.jsx)(`div`,{className:`flex flex-col divide-y`,children:e.map(e=>(0,z.jsxs)(`button`,{type:`button`,onClick:()=>lH(e.url),className:`flex items-center justify-between gap-4 py-3 group text-left cursor-pointer`,children:[(0,z.jsxs)(`div`,{className:`flex flex-col gap-0.5 min-w-0`,children:[(0,z.jsx)(H,{weight:`bold`,children:e.name}),e.note?(0,z.jsx)(H,{size:1,color:`silver`,children:e.note}):null]}),(0,z.jsx)($i,{className:`size-4 shrink-0 text-[#ABABAB] transition-colors group-hover:text-primary`})]},e.url+e.name))})]})})]})}var dH={name:`Cetic.br · TIC Domicílios 2025`,url:`https://cetic.br/pt/noticia/50-milhoes-de-brasileiros-ja-usam-ia-mas-potenciais-beneficios-continuam-limitados-as-camadas-de-maior-renda-e-escolaridade/`,note:`Uso de IA generativa por região, classe, idade e finalidade`},fH={name:`Cetic.br · Privacidade e Proteção de Dados Pessoais 2025`,url:`https://cetic.br/pt/noticia/um-em-cada-tres-usuarios-de-internet-no-brasil-relatou-sofrer-tentativa-de-golpe-com-uso-de-seus-dados-pessoais-aponta-cetic-br/`,note:`Painel TIC 2025 · módulo Privacidade · 2.500 usuários de Internet de 16 anos ou mais, entrevistas online, coleta em dezembro de 2025`},pH={name:`CGI.br · apresentação de resultados, 31/08/2026`,url:`https://cetic.br/pt/pesquisa/privacidade-e-protecao-de-dados-pessoais/`,note:`Tabelas por tipo de informação fornecida à IA, frequência de uso e nível de preocupação`},mH={name:`Cetic.br · TIC Empresas 2025`,url:`https://cetic.br/pt/noticia/uso-de-inteligencia-artificial-por-empresas-brasileiras-avanca-e-atinge-17-aponta-pesquisa-do-cetic-br/`,note:`Uso de IA por porte de empresa`},hH={name:`Cetic.br · TIC Educação 2024`,url:`https://cetic.br/noticia/sete-em-cada-dez-alunos-do-ensino-medio-usam-ia-generativa-em-pesquisas-escolares-revela-tic-educacao/`,note:`Uso de IA por estudantes e professores`},gH={name:`Cetic.br · TIC Educação 2025`,url:`https://cetic.br/pt/noticia/tic-educacao-2025-mostra-que-8-em-cada-10-e
49scolas-brasileiras-debatem-impacto-do-uso-de-telas-na-saude-mental-dos-alunos/`,note:`Permissão de uso de IA pelos alunos e uso por gestores · 2.404 escolas, entrevistas telefônicas, ago 2025 a abr 2026`},_H={name:`Sumsub · Identity Fraud Report 2025-2026`,url:`https://sumsub.com/fraud-report-2025/`,note:`Crescimento e concentração de deepfakes`},vH={name:`Datafolha · onda de junho de 2026`,url:`https://www1.folha.uol.com.br/opiniao/2026/06/inteligencia-artificial-tornou-se-fato-consumado-no-brasil.shtml`,note:`Conhecimento e uso de IA · 2.004 entrevistas, 16 anos ou mais`},yH={name:`KPMG e Universidade de Melbourne · estudo global 2025`,url:`https://kpmg.com/br/pt/home/insights/2025/04/confianca-atitudes-uso-inteligencia-artificial.html`,note:`Confiança, atitudes e uso de IA · recorte Brasil`},bH={name:`PwC · Barômetro Global de Empregos em IA 2025`,url:`https://www.pwc.com.br/pt/estudos/servicos/consultoria-negocios/2025/barometro-de-empregos-de-inteligencia-artificial-2025.html`,note:`Vagas que exigem IA e prêmio salarial · recorte Brasil`},xH=[{name:`MIT Media Lab · Your Brain on ChatGPT`,url:`https://www.media.mit.edu/publications/your-brain-on-chatgpt/`,note:`Kosmyna et al., 2025 · EEG em 54 participantes · dívida cognitiva`},{name:`Gerlich · Societies, 2025`,url:`https://www.mdpi.com/2075-4698/15/1/6`,note:`666 participantes · uso de IA, descarga cognitiva e pensamento crítico`},{name:`Microsoft e Carnegie Mellon · CHI 2025`,url:`https://www.microsoft.com/en-us/research/publication/the-impact-of-generative-ai-on-critical-thinking-self-reported-reductions-in-cognitive-effort-and-confidence-effects-from-a-survey-of-knowledge-workers/`,note:`Lee et al. · 319 trabalhadores do conhecimento · confiança na IA e esforço crítico`}],SH={name:`IBGE · PINTEC Semestral 2024`,url:`https://agenciadenoticias.ibge.gov.br/agencia-noticias/2012-agencia-de-noticias/noticias/44551-de-2022-a-2024-percentual-de-empresas-industriais-utilizando-inteligencia-artificial-subiu-de-16-9-para-41-9`,note:`IA na indústria · empresas com 100 ou mais ocupados`},CH=[{...mH,note:`Uso de IA por porte, todas as empresas`},{...SH,note:`Uso de IA na indústria, 2022 a 2024`}],wH=[{name:`Polícia Federal · dados divulgados em 2026`,url:`https://exame.com/inteligencia-artificial/deepfake-cresce-830-no-brasil-entenda-o-impacto-e-como-se-proteger/`,note:`42,5% das fraudes financeiras investigadas já usam IA`},{name:`Sumsub · Identity Fraud Report 2025-2026`,url:`https://sumsub.com/fraud-report-2025/`,note:`Deepfakes: alta de 126% e 39% de concentração na América Latina`},{name:`Serasa Experian · Indicador de Tentativas de Fraude`,url:`https://static.poder360.com.br/2025/05/Brasil-tentativas-fraude-fevereiro2025.pdf`,note:`Uma tentativa de fraude digital a cada 2,2 segundos`}],TH=[{name:`Anahp e Wolters Kluwer · pesquisa 2025`,url:`https://www.anahp.com.br/noticias/mais-de-80-dos-hospitais-privados-dispoem-de-solucoes-de-ia-mas-74-se-sentem-pouco-preparados-para-as-transformacoes/`,note:`82% dos hospitais privados já usam IA · 102 hospitais associados`}],EH={name:`Similarweb · tráfego de plataformas de IA`,url:`https://exame.com/marketing/ia-generativa-leva-6-mi-ao-e-commerce-e-tem-mercado-livre-na-lideranca/`,note:`Índice de acessos no Brasil · estimativas Similarweb, elaboração Radar CNN`},DH={name:`Microsoft · Work Trend Index 2025`,url:`https://www.microsoft.com/en-us/worklab/work-trend-index/2025-the-year-the-frontier-firm-is-born`,note:`31 mil trabalhadores do conhecimento em 31 países`},OH=[{...fH,note:`Tipo de informação fornecida às ferramentas de IA e preocupação com o uso dos dados · usuários de IA, 2025`},{...pH,note:`Frequência de uso das ferramentas de IA · usuários de IA, 2025`}];function kH(){return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)($B,{title:`Por sexo`,total:`2025`,items:eV}),(0,z.jsx)($B,{title:`Por classe social`,total:`2025`,items:tV}),(0,z.jsx)($B,{title:`Por faixa etária`,total:`2025`,items:nV})]})}function AH(){return(0,z.jsxs)(tr,{children:[(0,z.jsxs)(`div`,{className:`flex flex-col tablet:flex-row tablet:items-center justify-between w-full gap-8 tablet:gap-3`,children:[(0,z.jsxs)(`div`,{className:`flex flex-col w-full tablet:min-w-0 gap-6`,children:[(0,z.jsx)(Bi,{title:`Adoção da IA no Brasil · maio 2026`}),(0,z.jsxs)(`div`,{className:`flex items-center`,children:[(0,z.jsx)(ea,{className:`size-16 tablet:size-25 stroke-primary fill-primary`}),(0,z.jsx)(ea,{className:`size-16 tablet:size-25 stroke-muted fill-muted`})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsxs)(H,{weight:`bold`,children:[`1 em cada 2 brasileiros`,` `,(0,z.jsx)(`span`,{className:`font-light text-accent`,children:`já usaram IA generativa.`})]}),(0,z.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,z.jsx)(po,{className:`flex-1`,value:50}),(0,z.jsx)(H,{color:`silver`,children:`157 mi`})]})]}),(0,z.jsx)(na,{}),(0,z.jsxs)(H,{weight:`light`,color:`silver`,children:[`já usaram pelo menos uma vez`,` `,(0,z.jsx)(`span`,{className:`text-foreground font-bold`,children:`· 75 mi`})]}),(0,z.jsx)(`div`,{className:`flex items-center gap-3`,children:(0,z.jsx)(uH,{sources:[vH,dH,EH],dialogTitle:`Adoção da IA no Brasil · fontes`})})]}),(0,z.jsx)(na,{orientation:`vertical`,className:`hidden tablet:block`}),(0,z.jsx)(na,{className:`tablet:hidden`}),(0,z.jsxs)(`div`,{className:`flex flex-col w-full tablet:min-w-0 gap-6 tablet:p-6`,children:[(0,z.jsx)(Fi,{size:3,children:`Número de acessos das plataformas de IA no Brasil`}),(0,z.jsx)(lae,{}),(0,z.jsx)(`div`,{className:`grid grid-cols-1 desktop:grid-cols-3 gap-3 tablet:hidden desktop:grid`,children:(0,z.jsx)(kH,{})})]})]}),(0,z.jsx)(`div`,{className:`hidden tablet:grid desktop:hidden tablet:grid-cols-3 gap-3 w-full`,children:(0,z.jsx)(kH,{})})]})}var jH=s(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),MH=s(((e,t)=>{var n=jH();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
49:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),NH=s(((e,t)=>{t.exports=MH()()})),PH,FH=o((()=>{PH=class{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){let t=this._partials,n=0;for(let r=0;r<this._n&&r<32;r++){let i=t[r],a=e+i,o=Math.abs(e)<Math.abs(i)?e-(a-i):i-(a-e);o&&(t[n++]=o),e=a}return t[n]=e,this._n=n+1,this}valueOf(){let e=this._partials,t=this._n,n,r,i,a=0;if(t>0){for(a=e[--t];t>0&&(n=a,r=e[--t],a=n+r,i=r-(a-n),!i););t>0&&(i<0&&e[t-1]<0||i>0&&e[t-1]>0)&&(r=i*2,n=a+r,r==n-a&&(a=n))}return a}}}));function*IH(e){for(let t of e)yield*t}function LH(e){return Array.from(IH(e))}var RH=o((()=>{}));function zH(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}var BH=o((()=>{})),VH=o((()=>{FH(),RH(),BH()}));function HH(e){return e>1?0:e<-1?KH:Math.acos(e)}function UH(e){return e>1?qH:e<-1?-qH:Math.asin(e)}function WH(e){return(e=Q(e/2))*e}var GH,KH,qH,JH,YH,XH,X,ZH,QH,$H,Z,eU,tU,nU,rU,iU,Q,aU,oU,sU,cU=o((()=>{GH=1e-6,KH=Math.PI,qH=KH/2,JH=KH/4,YH=KH*2,XH=180/KH,X=KH/180,ZH=Math.abs,QH=Math.atan,$H=Math.atan2,Z=Math.cos,eU=Math.ceil,tU=Math.exp,nU=Math.hypot,rU=Math.log,iU=Math.pow,Q=Math.sin,aU=Math.sign||function(e){return e>0?1:e<0?-1:0},oU=Math.sqrt,sU=Math.tan}));function lU(){}var uU=o((()=>{}));function dU(e,t){e&&gU.hasOwnProperty(e.type)&&gU[e.type](e,t)}function fU(e,t,n){var r=-1,i=e.length-n,a;for(t.lineStart();++r<i;)a=e[r],t.point(a[0],a[1],a[2]);t.lineEnd()}function pU(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)fU(e[n],t,1);t.polygonEnd()}function mU(e,t){e&&hU.hasOwnProperty(e.type)?hU[e.type](e,t):dU(e,t)}var hU,gU,_U=o((()=>{hU={Feature:function(e,t){dU(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)dU(n[r].geometry,t)}},gU={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){fU(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)fU(n[r],t,0)},Polygon:function(e,t){pU(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)pU(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)dU(n[r],t)}}}));function vU(){AU.point=bU}function yU(){xU(TU,EU)}function bU(e,t){AU.point=xU,TU=e,EU=t,e*=X,t*=X,DU=e,OU=Z(t=t/2+JH),kU=Q(t)}function xU(e,t){e*=X,t*=X,t=t/2+JH;var n=e-DU,r=n>=0?1:-1,i=r*n,a=Z(t),o=Q(t),s=kU*o,c=OU*a+s*Z(i),l=s*r*Q(i);CU.add($H(l,c)),DU=e,OU=a,kU=o}function SU(e){return wU=new PH,mU(e,AU),wU*2}var CU,wU,TU,EU,DU,OU,kU,AU,jU=o((()=>{VH(),cU(),uU(),_U(),CU=new PH,wU=new PH,AU={point:lU,lineStart:lU,lineEnd:lU,polygonStart:function(){CU=new PH,AU.lineStart=vU,AU.lineEnd=yU},polygonEnd:function(){var e=+CU;wU.add(e<0?YH+e:e),this.lineStart=this.lineEnd=this.point=lU},sphere:function(){wU.add(YH)}}}));function MU(e){return[$H(e[1],e[0]),UH(e[2])]}function NU(e){var t=e[0],n=e[1],r=Z(n);return[r*Z(t),r*Q(t),Q(n)]}function PU(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function FU(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function IU(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function LU(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function RU(e){var t=oU(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var zU=o((()=>{cU()}));function BU(e,t){oW.push(sW=[ZU=e,$U=e]),t<QU&&(QU=t),t>eW&&(eW=t)}function VU(e,t){var n=NU([e*X,t*X]);if(iW){var r=FU(iW,n),i=FU([r[1],-r[0],0],r);RU(i),i=MU(i);var a=e-tW,o=a>0?1:-1,s=i[0]*XH*o,c,l=ZH(a)>180;l^(o*tW<s&&s<o*e)?(c=i[1]*XH,c>eW&&(eW=c)):(s=(s+360)%360-180,l^(o*tW<s&&s<o*e)?(c=-i[1]*XH,c<QU&&(QU=c)):(t<QU&&(QU=t),t>eW&&(eW=t))),l?e<tW?qU(ZU,e)>qU(ZU,$U)&&($U=e):qU(e,$U)>qU(ZU,$U)&&(ZU=e):$U>=ZU?(e<ZU&&(ZU=e),e>$U&&($U=e)):e>tW?qU(ZU,e)>qU(ZU,$U)&&($U=e):qU(e,$U)>qU(ZU,$U)&&(ZU=e)}else oW.push(sW=[ZU=e,$U=e]);t<QU&&(QU=t),t>eW&&(eW=t),iW=n,tW=e}function HU(){cW.point=VU}function UU(){sW[0]=ZU,sW[1]=$U,cW.point=BU,iW=null}function WU(e,t){if(iW){var n=e-tW;aW.add(ZH(n)>180?n+(n>0?360:-360):n)}else nW=e,rW=t;AU.point(e,t),VU(e,t)}function GU(){AU.lineStart()}function KU(){WU(nW,rW),AU.lineEnd(),ZH(aW)>1e-6&&(ZU=-($U=180)),sW[0]=ZU,sW[1]=$U,iW=null}function qU(e,t){return(t-=e)<0?t+360:t}function JU(e,t){return e[0]-t[0]}function YU(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}function XU(e){var t,n,r,i,a,o,s;if(eW=$U=-(ZU=QU=1/0),oW=[],mU(e,cW),n=oW.length){for(oW.sort(JU),t=1,r=oW[0],a=[r];t<n;++t)i=oW[t],YU(r,i[0])||YU(r,i[1])?(qU(r[0],i[1])>qU(r[0],r[1])&&(r[1]=i[1]),qU(i[0],r[1])>qU(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,n=a.length-1,t=0,r=a[n];t<=n;r=i,++t)i=a[t],(s=qU(r[1],i[0]))>o&&(o=s,ZU=i[0],$U=r[1])}return oW=sW=null,ZU===1/0||QU===1/0?[[NaN,NaN],[NaN,NaN]]:[[ZU,QU],[$U,eW]]}var ZU,QU,$U,eW,tW,nW,rW,iW,aW,oW,sW,cW,lW=o((()=>
49{VH(),jU(),zU(),cU(),_U(),cW={point:BU,lineStart:HU,lineEnd:UU,polygonStart:function(){cW.point=WU,cW.lineStart=GU,cW.lineEnd=KU,aW=new PH,AU.polygonStart()},polygonEnd:function(){AU.polygonEnd(),cW.point=BU,cW.lineStart=HU,cW.lineEnd=UU,CU<0?(ZU=-($U=180),QU=-(eW=90)):aW>1e-6?eW=90:aW<-1e-6&&(QU=-90),sW[0]=ZU,sW[1]=$U},sphere:function(){ZU=-($U=180),QU=-(eW=90)}}}));function uW(e,t){e*=X,t*=X;var n=Z(t);dW(n*Z(e),n*Q(e),Q(t))}function dW(e,t,n){++xW,CW+=(e-CW)/xW,wW+=(t-wW)/xW,TW+=(n-TW)/xW}function fW(){LW.point=pW}function pW(e,t){e*=X,t*=X;var n=Z(t);PW=n*Z(e),FW=n*Q(e),IW=Q(t),LW.point=mW,dW(PW,FW,IW)}function mW(e,t){e*=X,t*=X;var n=Z(t),r=n*Z(e),i=n*Q(e),a=Q(t),o=$H(oU((o=FW*a-IW*i)*o+(o=IW*r-PW*a)*o+(o=PW*i-FW*r)*o),PW*r+FW*i+IW*a);SW+=o,EW+=o*(PW+(PW=r)),DW+=o*(FW+(FW=i)),OW+=o*(IW+(IW=a)),dW(PW,FW,IW)}function hW(){LW.point=uW}function gW(){LW.point=vW}function _W(){yW(MW,NW),LW.point=uW}function vW(e,t){MW=e,NW=t,e*=X,t*=X,LW.point=yW;var n=Z(t);PW=n*Z(e),FW=n*Q(e),IW=Q(t),dW(PW,FW,IW)}function yW(e,t){e*=X,t*=X;var n=Z(t),r=n*Z(e),i=n*Q(e),a=Q(t),o=FW*a-IW*i,s=IW*r-PW*a,c=PW*i-FW*r,l=nU(o,s,c),u=UH(l),d=l&&-u/l;kW.add(d*o),AW.add(d*s),jW.add(d*c),SW+=u,EW+=u*(PW+(PW=r)),DW+=u*(FW+(FW=i)),OW+=u*(IW+(IW=a)),dW(PW,FW,IW)}function bW(e){xW=SW=CW=wW=TW=EW=DW=OW=0,kW=new PH,AW=new PH,jW=new PH,mU(e,LW);var t=+kW,n=+AW,r=+jW,i=nU(t,n,r);return i<1e-12&&(t=EW,n=DW,r=OW,SW<1e-6&&(t=CW,n=wW,r=TW),i=nU(t,n,r),i<1e-12)?[NaN,NaN]:[$H(n,t)*XH,UH(r/i)*XH]}var xW,SW,CW,wW,TW,EW,DW,OW,kW,AW,jW,MW,NW,PW,FW,IW,LW,RW=o((()=>{VH(),cU(),uU(),_U(),LW={sphere:lU,point:uW,lineStart:fW,lineEnd:hW,polygonStart:function(){LW.lineStart=gW,LW.lineEnd=_W},polygonEnd:function(){LW.lineStart=fW,LW.lineEnd=hW}}}));function zW(e){return function(){return e}}var BW=o((()=>{}));function VW(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return n=t.invert(n,r),n&&e.invert(n[0],n[1])}),n}var HW=o((()=>{}));function UW(e,t){return[ZH(e)>KH?e+Math.round(-e/YH)*YH:e,t]}function WW(e,t,n){return(e%=YH)?t||n?VW(KW(e),qW(t,n)):KW(e):t||n?qW(t,n):UW}function GW(e){return function(t,n){return t+=e,[t>KH?t-YH:t<-KH?t+YH:t,n]}}function KW(e){var t=GW(e);return t.invert=GW(-e),t}function qW(e,t){var n=Z(e),r=Q(e),i=Z(t),a=Q(t);function o(e,t){var o=Z(t),s=Z(e)*o,c=Q(e)*o,l=Q(t),u=l*n+s*r;return[$H(c*i-u*a,s*n-l*r),UH(u*i+c*a)]}return o.invert=function(e,t){var o=Z(t),s=Z(e)*o,c=Q(e)*o,l=Q(t),u=l*i-c*a;return[$H(c*i+l*a,s*n+u*r),UH(u*n-s*r)]},o}function JW(e){e=WW(e[0]*X,e[1]*X,e.length>2?e[2]*X:0);function t(t){return t=e(t[0]*X,t[1]*X),t[0]*=XH,t[1]*=XH,t}return t.invert=function(t){return t=e.invert(t[0]*X,t[1]*X),t[0]*=XH,t[1]*=XH,t},t}var YW=o((()=>{HW(),cU(),UW.invert=UW}));function XW(e,t,n,r,i,a){if(n){var o=Z(t),s=Q(t),c=r*n;i==null?(i=t+r*YH,a=t-c/2):(i=ZW(o,i),a=ZW(o,a),(r>0?i<a:i>a)&&(i+=r*YH));for(var l,u=i;r>0?u>a:u<a;u-=c)l=MU([o,-s*Z(u),-s*Q(u)]),e.point(l[0],l[1])}}function ZW(e,t){t=NU(t),t[0]-=e,RU(t);var n=HH(-t[1]);return((-t[2]<0?-n:n)+YH-GH)%YH}function QW(){var e=zW([0,0]),t=zW(90),n=zW(6),r,i,a={point:o};function o(e,t){r.push(e=i(e,t)),e[0]*=XH,e[1]*=XH}function s(){var o=e.apply(this,arguments),s=t.apply(this,arguments)*X,c=n.apply(this,arguments)*X;return r=[],i=WW(-o[0]*X,-o[1]*X,0).invert,XW(a,s,c,1),o={type:`Polygon`,coordinates:[r]},r=i=null,o}return s.center=function(t){return arguments.length?(e=typeof t==`function`?t:zW([+t[0],+t[1]]),s):e},s.radius=function(e){return arguments.length?(t=typeof e==`function`?e:zW(+e),s):t},s.precision=function(e){return arguments.length?(n=typeof e==`function`?e:zW(+e),s):n},s}var $W=o((()=>{zU(),BW(),cU(),YW()}));function eG(){var e=[],t;return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:lU,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}var tG=o((()=>{uU()}));function nG(e,t){return ZH(e[0]-t[0])<1e-6&&ZH(e[1]-t[1])<1e-6}var rG=o((()=>{cU()}));function iG(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function aG(e,t,n,r,i){var a=[],o=[],s,c;if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n=e[0],r=e[t],c;
vendor: 5,767 bytes, line 49
49if(nG(n,r)){if(!n[2]&&!r[2]){for(i.lineStart(),s=0;s<t;++s)i.point((n=e[s])[0],n[1]);i.lineEnd();return}r[0]+=2*GH}a.push(c=new iG(n,e,null,!0)),o.push(c.o=new iG(n,null,c,!1)),a.push(c=new iG(r,e,null,!1)),o.push(c.o=new iG(r,null,c,!0))}}),a.length){for(o.sort(t),oG(a),oG(o),s=0,c=o.length;s<c;++s)o[s].e=n=!n;for(var l=a[0],u,d;;){for(var f=l,p=!0;f.v;)if((f=f.n)===l)return;u=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(p)for(s=0,c=u.length;s<c;++s)i.point((d=u[s])[0],d[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(p)for(u=f.p.z,s=u.length-1;s>=0;--s)i.point((d=u[s])[0],d[1]);else r(f.x,f.p.x,-1,i);f=f.p}f=f.o,u=f.z,p=!p}while(!f.v);i.lineEnd()}}}function oG(e){if(t=e.length){for(var t,n=0,r=e[0],i;++n<t;)r.n=i=e[n],i.p=r,r=i;r.n=i=e[0],i.p=r}}var sG=o((()=>{rG(),cU()}));function cG(e){return ZH(e[0])<=KH?e[0]:aU(e[0])*((ZH(e[0])+KH)%YH-KH)}function lG(e,t){var n=cG(t),r=t[1],i=Q(r),a=[Q(n),-Z(n),0],o=0,s=0,c=new PH;i===1?r=qH+GH:i===-1&&(r=-qH-GH);for(var l=0,u=e.length;l<u;++l)if(f=(d=e[l]).length)for(var d,f,p=d[f-1],m=cG(p),h=p[1]/2+JH,g=Q(h),_=Z(h),v=0;v<f;++v,m=b,g=S,_=C,p=y){var y=d[v],b=cG(y),x=y[1]/2+JH,S=Q(x),C=Z(x),w=b-m,T=w>=0?1:-1,E=T*w,D=E>KH,O=g*S;if(c.add($H(O*T*Q(E),_*C+O*Z(E))),o+=D?w+T*YH:w,D^m>=n^b>=n){var k=FU(NU(p),NU(y));RU(k);var A=FU(a,k);RU(A);var j=(D^w>=0?-1:1)*UH(A[2]);(r>j||r===j&&(k[0]||k[1]))&&(s+=D^w>=0?1:-1)}}return(o<-1e-6||o<1e-6&&c<-1e-12)^s&1}var uG=o((()=>{VH(),zU(),cU()}));function dG(e,t,n,r){return function(i){var a=t(i),o=eG(),s=t(o),c=!1,l,u,d,f={point:p,lineStart:h,lineEnd:g,polygonStart:function(){f.point=_,f.lineStart=v,f.lineEnd=y,u=[],l=[]},polygonEnd:function(){f.point=p,f.lineStart=h,f.lineEnd=g,u=LH(u);var e=lG(l,r);u.length?(c||=(i.polygonStart(),!0),aG(u,pG,e,n,i)):e&&(c||=(i.polygonStart(),!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),c&&=(i.polygonEnd(),!1),u=l=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function p(t,n){e(t,n)&&i.point(t,n)}function m(e,t){a.point(e,t)}function h(){f.point=m,a.lineStart()}function g(){f.point=p,a.lineEnd()}function _(e,t){d.push([e,t]),s.point(e,t)}function v(){s.lineStart(),d=[]}function y(){_(d[0][0],d[0][1]),s.lineEnd();var e=s.clean(),t=o.result(),n,r=t.length,a,f,p;if(d.pop(),l.push(d),d=null,r){if(e&1){if(f=t[0],(a=f.length-1)>0){for(c||=(i.polygonStart(),!0),i.lineStart(),n=0;n<a;++n)i.point((p=f[n])[0],p[1]);i.lineEnd()}return}r>1&&e&2&&t.push(t.pop().concat(t.shift())),u.push(t.filter(fG))}}return f}}function fG(e){return e.length>1}function pG(e,t){return((e=e.x)[0]<0?e[1]-qH-GH:qH-e[1])-((t=t.x)[0]<0?t[1]-qH-GH:qH-t[1])}var mG=o((()=>{tG(),sG(),cU(),uG(),VH()}));function hG(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(a,o){var s=a>0?KH:-KH,c=ZH(a-t);ZH(c-KH)<1e-6?(e.point(t,n=(n+o)/2>0?qH:-qH),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),e.point(a,n),i=0):r!==s&&c>=KH&&(ZH(t-r)<1e-6&&(t-=r*GH),ZH(a-s)<1e-6&&(a-=s*GH),n=gG(t,n,a,o),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),i=0),e.point(t=a,n=o),r=s},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function gG(e,t,n,r){var i,a,o=Q(e-n);return ZH(o)>1e-6?QH((Q(t)*(a=Z(r))*Q(n)-Q(r)*(i=Z(t))*Q(e))/(i*a*o)):(t+r)/2}function _G(e,t,n,r){var i;if(e==null)i=n*qH,r.point(-KH,i),r.point(0,i),r.point(KH,i),r.point(KH,0),r.point(KH,-i),r.point(0,-i),r.point(-KH,-i),r.point(-KH,0),r.point(-KH,i);else if(ZH(e[0]-t[0])>1e-6){var a=e[0]<t[0]?KH:-KH;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(t[0],t[1])}var vG,yG=o((()=>{mG(),cU(),vG=dG(function(){return!0},hG,_G,[-KH,-qH])}));function bG(e){var t=Z(e),n=6*X,r=t>0,i=ZH(t)>GH;function a(t,r,i,a){XW(a,e,n,i,t,r)}function o(e,n){return Z(e)*Z(n)>t}function s(e){var t,n,a,s,u;return{lineStart:function(){s=a=!1,u=1},point:function(d,f){var p=[d,f],m,h=o(d,f),g=r?h?0:l(d,f):h?l(d+(d<0?KH:-KH),f):0;if(!t&&(s=a=h)&&e.lineStart(),h!==a&&(m=c(t,p),(!m||nG(t,m)||nG(p,m))&&(p[2]=1)),h!==a)u=0,h?(e.lineStart(),m=c(p,t),e.point(m[0],m[1])):(m=c(t,p),e.point(m[0],m[1],2),e.lineEnd()),t=m;else if(i&&t&&r^h){var _;!(g&n)&&(_=c(p,t,!0))&&(u=0,r?(e.lineStart(),e.point(_[0][0],_[0][1]),e.point(_[1][0],_[1][1]),e.lineEnd()):(e.point(_[1][0],_[1][1]),e.lineEnd(),e.lineStart(),e.point(_[0][0],_[0][1],3)))}h&&(!t||!nG(t,p))&&e.point(p[0],p[1]),t=p,a=h,n=g},lineEnd:function(){a&&e.lineEnd(),t=null},clean:function(){return u|(s&&a)<<1}}}function c(e,n,r){var i=NU(e),a=NU(n),o=[1,0,0],s=FU(i,a),c=PU(s,s),l=s[0],u=c-l*l;if(!u)return!r&&e;var d=t*c/u,f=-t*l/u,p=FU(o,s),m=LU(o,d);IU(m,LU(s,f));var h=p,g=PU(m,h),_=PU(h,h),v=g*g-_*(PU(m,m)-1);if(!(v<0)){var y=oU(v),b=LU(h,(-g-y)/_);if(IU(b,m),b=MU(b),!r)return b;var x=e[0],S=n[0],C=e[1],w=n[1],T;S<x&&(T=x,x=S,S=T);var E=S-x,D=ZH(E-KH)<GH,O=D||E<1e-6;if(!D&&w<C&&(T=C,C=w,w=T),O?D?C+w>0^b[1]<(ZH(b[0]-x)<1e-6?C:w):C<=b[1]&&b[1]<=w:E>KH^(x<=b[0]&&b[0]<=S)){var k=LU(h,(-g+y)/_);return IU(k,m),[b,MU(k)]}}}function l(t,n){var i=r?e:KH-e,a=0;return t<-i?a|=1:t>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return dG(o,s,a,r?[0,-e]:[-KH,e-KH])}var xG=o((()=>{zU(),$W(),cU(),rG(),mG()}));function SG(e,t,n,r,i,a){var o=e[0],s=e[1],c=t[0],l=t[1],u=0,d=1,f=c-o,p=l-s,m=n-o;if(!(!f&&m>0)){if(m/=f,f<0){if(m<u)return;m<d&&(d=m)}else if(f>0){if(m>d)return;m>u&&(u=m)}if(m=i-o,!(!f&&m<0)){if(m/=f,f<0){if(m>d)return;m>u&&(u=m)}else if(f>0){if(m<u)return;m<d&&(d=m)}if(m=r-s,!(!p&&m>0)){if(m/=p,p<0){if(m<u)return;m<d&&(d=m)}else if(p>0){if(m>d)return;m>u&&(u=m)}if(m=a-s,!(!p&&m<0)){if(m/=p,p<0){if(m>d)return;m>u&&(u=m)}else if(p>0){if(m<u)return;m<d&&(d=m)}return u>0&&(e[0]=o+u*f,e[1]=s+u*p),d<1&&(t[0]=o+d*f,t[1]=s+d*p),!0}}}}}var CG=o((()=>{}));function wG(e,t,n,r){function i(i,a){return e<=i&&i<=n&&t<=a&&a<=r}function a(i,a,s,l){var u=0,d=0;
49if(i==null||(u=o(i,s))!==(d=o(a,s))||c(i,a)<0^s>0)do l.point(u===0||u===3?e:n,u>1?r:t);while((u=(u+s+4)%4)!==d);else l.point(a[0],a[1])}function o(r,i){return ZH(r[0]-e)<1e-6?i>0?0:3:ZH(r[0]-n)<1e-6?i>0?2:1:ZH(r[1]-t)<1e-6?+(i>0):i>0?3:2}function s(e,t){return c(e.x,t.x)}function c(e,t){var n=o(e,1),r=o(t,1);return n===r?n===0?t[1]-e[1]:n===1?e[0]-t[0]:n===2?e[1]-t[1]:t[0]-e[0]:n-r}return function(o){var c=o,l=eG(),u,d,f,p,m,h,g,_,v,y,b,x={point:S,lineStart:E,lineEnd:D,polygonStart:w,polygonEnd:T};function S(e,t){i(e,t)&&c.point(e,t)}function C(){for(var t=0,n=0,i=d.length;n<i;++n)for(var a=d[n],o=1,s=a.length,c=a[0],l,u,f=c[0],p=c[1];o<s;++o)l=f,u=p,c=a[o],f=c[0],p=c[1],u<=r?p>r&&(f-l)*(r-u)>(p-u)*(e-l)&&++t:p<=r&&(f-l)*(r-u)<(p-u)*(e-l)&&--t;return t}function w(){c=l,u=[],d=[],b=!0}function T(){var e=C(),t=b&&e,n=(u=LH(u)).length;(t||n)&&(o.polygonStart(),t&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),n&&aG(u,s,e,a,o),o.polygonEnd()),c=o,u=d=f=null}function E(){x.point=O,d&&d.push(f=[]),y=!0,v=!1,g=_=NaN}function D(){u&&(O(p,m),h&&v&&l.rejoin(),u.push(l.result())),x.point=S,v&&c.lineEnd()}function O(a,o){var s=i(a,o);if(d&&f.push([a,o]),y)p=a,m=o,h=s,y=!1,s&&(c.lineStart(),c.point(a,o));else if(s&&v)c.point(a,o);else{var l=[g=Math.max(EG,Math.min(TG,g)),_=Math.max(EG,Math.min(TG,_))],u=[a=Math.max(EG,Math.min(TG,a)),o=Math.max(EG,Math.min(TG,o))];SG(l,u,e,t,n,r)?(v||(c.lineStart(),c.point(l[0],l[1])),c.point(u[0],u[1]),s||c.lineEnd(),b=!1):s&&(c.lineStart(),c.point(a,o),b=!1)}g=a,_=o,v=s}return x}}var TG,EG,DG=o((()=>{cU(),tG(),CG(),sG(),VH(),TG=1e9,EG=-TG}));function OG(){var e=0,t=0,n=960,r=500,i,a,o;return o={stream:function(o){return i&&a===o?i:i=wG(e,t,n,r)(a=o)},extent:function(s){return arguments.length?(e=+s[0][0],t=+s[0][1],n=+s[1][0],r=+s[1][1],i=a=null,o):[[e,t],[n,r]]}}}var kG=o((()=>{DG()}));function AG(){zG.point=MG,zG.lineEnd=jG}function jG(){zG.point=zG.lineEnd=lU}function MG(e,t){e*=X,t*=X,IG=e,LG=Q(t),RG=Z(t),zG.point=NG}function NG(e,t){e*=X,t*=X;var n=Q(t),r=Z(t),i=ZH(e-IG),a=Z(i),o=r*Q(i),s=RG*n-LG*r*a,c=LG*n+RG*r*a;FG.add($H(oU(o*o+s*s),c)),IG=e,LG=n,RG=r}function PG(e){return FG=new PH,mU(e,zG),+FG}var FG,IG,LG,RG,zG,BG=o((()=>{VH(),cU(),uU(),_U(),zG={sphere:lU,point:lU,lineStart:AG,lineEnd:lU,polygonStart:lU,polygonEnd:lU}}));function VG(e,t){return HG[0]=e,HG[1]=t,PG(UG)}var HG,UG,WG=o((()=>{BG(),HG=[null,null],UG={type:`LineString`,coordinates:HG}}));function GG(e,t){return e&&$G.hasOwnProperty(e.type)?$G[e.type](e,t):!1}function KG(e,t){return VG(e,t)===0}function qG(e,t){for(var n,r,i,a=0,o=e.length;a<o;a++){if(r=VG(e[a],t),r===0||a>0&&(i=VG(e[a],e[a-1]),i>0&&n<=i&&r<=i&&(n+r-i)*(1-((n-r)/i)**2)<1e-12*i))return!0;n=r}return!1}function JG(e,t){return!!lG(e.map(YG),XG(t))}function YG(e){return e=e.map(XG),e.pop(),e}function XG(e){return[e[0]*X,e[1]*X]}function ZG(e,t){return(e&&QG.hasOwnProperty(e.type)?QG[e.type]:GG)(e,t)}var QG,$G,eK=o((()=>{uG(),WG(),cU(),QG={Feature:function(e,t){return GG(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)if(GG(n[r].geometry,t))return!0;return!1}},$G={Sphere:function(){return!0},Point:function(e,t){return KG(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(KG(n[r],t))return!0;return!1},LineString:function(e,t){return qG(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(qG(n[r],t))return!0;return!1},Polygon:function(e,t){return JG(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(JG(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)if(GG(n[r],t))return!0;return!1}}}));function tK(e,t,n){var r=zH(e,t-GH,n).concat(t);return function(e){return r.map(function(t){return[e,t]})}}function nK(e,t,n){var r=zH(e,t-GH,n).concat(t);return function(e){return r.map(function(t){return[t,e]})}}function rK(){var e,t,n,r,i,a,o,s,c=10,l=c,u=90,d=360,f,p,m,h,g=2.5;function _(){return{type:`MultiLineString`,coordinates:v()}}function v(){return zH(eU(r/u)*u,n,u).map(m).concat(zH(eU(s/d)*d,o,d).map(h)).concat(zH(eU(t/c)*c,e,c).filter(function(e){return ZH(e%u)>GH}).map(f)).concat(zH(eU(a/l)*l,i,l).filter(function(e){return ZH(e%d
49)>GH}).map(p))}return _.lines=function(){return v().map(function(e){return{type:`LineString`,coordinates:e}})},_.outline=function(){return{type:`Polygon`,coordinates:[m(r).concat(h(o).slice(1),m(n).reverse().slice(1),h(s).reverse().slice(1))]}},_.extent=function(e){return arguments.length?_.extentMajor(e).extentMinor(e):_.extentMinor()},_.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],o=+e[1][1],r>n&&(e=r,r=n,n=e),s>o&&(e=s,s=o,o=e),_.precision(g)):[[r,s],[n,o]]},_.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],a=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),a>i&&(n=a,a=i,i=n),_.precision(g)):[[t,a],[e,i]]},_.step=function(e){return arguments.length?_.stepMajor(e).stepMinor(e):_.stepMinor()},_.stepMajor=function(e){return arguments.length?(u=+e[0],d=+e[1],_):[u,d]},_.stepMinor=function(e){return arguments.length?(c=+e[0],l=+e[1],_):[c,l]},_.precision=function(c){return arguments.length?(g=+c,f=tK(a,i,90),p=nK(t,e,g),m=tK(s,o,90),h=nK(r,n,g),_):g},_.extentMajor([[-180,-90+GH],[180,90-GH]]).extentMinor([[-180,-80-GH],[180,80+GH]])}function iK(){return rK()()}var aK=o((()=>{VH(),cU()}));function oK(e,t){var n=e[0]*X,r=e[1]*X,i=t[0]*X,a=t[1]*X,o=Z(r),s=Q(r),c=Z(a),l=Q(a),u=o*Z(n),d=o*Q(n),f=c*Z(i),p=c*Q(i),m=2*UH(oU(WH(a-r)+o*c*WH(i-n))),h=Q(m),g=m?function(e){var t=Q(e*=m)/h,n=Q(m-e)/h,r=n*u+t*f,i=n*d+t*p,a=n*s+t*l;return[$H(i,r)*XH,$H(a,oU(r*r+i*i))*XH]}:function(){return[n*XH,r*XH]};return g.distance=m,g}var sK=o((()=>{cU()})),cK,lK=o((()=>{cK=e=>e}));function uK(){bK.point=dK}function dK(e,t){bK.point=fK,gK=vK=e,_K=yK=t}function fK(e,t){hK.add(yK*e-vK*t),vK=e,yK=t}function pK(){fK(gK,_K)}var mK,hK,gK,_K,vK,yK,bK,xK=o((()=>{VH(),cU(),uU(),mK=new PH,hK=new PH,bK={point:lU,lineStart:lU,lineEnd:lU,polygonStart:function(){bK.lineStart=uK,bK.lineEnd=pK},polygonEnd:function(){bK.lineStart=bK.lineEnd=bK.point=lU,mK.add(ZH(hK)),hK=new PH},result:function(){var e=mK/2;return mK=new PH,e}}}));function SK(e,t){e<CK&&(CK=e),e>TK&&(TK=e),t<wK&&(wK=t),t>EK&&(EK=t)}var CK,wK,TK,EK,DK,OK=o((()=>{uU(),CK=1/0,wK=CK,TK=-CK,EK=TK,DK={point:SK,lineStart:lU,lineEnd:lU,polygonStart:lU,polygonEnd:lU,result:function(){var e=[[CK,wK],[TK,EK]];return TK=EK=-(wK=CK=1/0),e}}}));function kK(e,t){RK+=e,zK+=t,++BK}function AK(){ZK.point=jK}function jK(e,t){ZK.point=MK,kK(YK=e,XK=t)}function MK(e,t){var n=e-YK,r=t-XK,i=oU(n*n+r*r);VK+=i*(YK+e)/2,HK+=i*(XK+t)/2,UK+=i,kK(YK=e,XK=t)}function NK(){ZK.point=kK}function PK(){ZK.point=IK}function FK(){LK(qK,JK)}function IK(e,t){ZK.point=LK,kK(qK=YK=e,JK=XK=t)}function LK(e,t){var n=e-YK,r=t-XK,i=oU(n*n+r*r);VK+=i*(YK+e)/2,HK+=i*(XK+t)/2,UK+=i,i=XK*e-YK*t,WK+=i*(YK+e),GK+=i*(XK+t),KK+=i*3,kK(YK=e,XK=t)}var RK,zK,BK,VK,HK,UK,WK,GK,KK,qK,JK,YK,XK,ZK,QK=o((()=>{cU(),RK=0,zK=0,BK=0,VK=0,HK=0,UK=0,WK=0,GK=0,KK=0,ZK={point:kK,lineStart:AK,lineEnd:NK,polygonStart:function(){ZK.lineStart=PK,ZK.lineEnd=FK},polygonEnd:function(){ZK.point=kK,ZK.lineStart=AK,ZK.lineEnd=NK},result:function(){var e=KK?[WK/KK,GK/KK]:UK?[VK/UK,HK/UK]:BK?[RK/BK,zK/BK]:[NaN,NaN];return RK=zK=BK=VK=HK=UK=WK=GK=KK=0,e}}}));function $K(e){this._context=e}var eq=o((()=>{cU(),uU(),$K.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,YH);break}},result:lU}}));function tq(e,t){lq.point=nq,aq=sq=e,oq=cq=t}function nq(e,t){sq-=e,cq-=t,rq.add(oU(sq*sq+cq*cq)),sq=e,cq=t}var rq,iq,aq,oq,sq,cq,lq,uq=o((()=>{VH(),cU(),uU(),rq=new PH,lq={point:lU,lineStart:function(){lq.point=tq},lineEnd:function(){iq&&nq(aq,oq),lq.point=lU},polygonStart:function(){iq=!0},polygonEnd:function(){iq=null},result:function(){var e=+rq;return rq=new PH,e}}}));function dq(){this._string=[]}function fq(e){return`m0,`+e+`a`+e+`,`+e+` 0 1,1 0,`+-2*e+`a`+e+`,`+e+` 0 1,1 0,`+2*e+`z`}var pq=o((()=>{dq.prototype={_radius:4.5,_circle:fq(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push(`Z`),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push(`M`,e,`,`,t),this._point=1;break;case 1:this._string.push(`L`,e,`,`,t);break;default:this._circle??=fq(this._radius),this._string.push(`M`,e,`,`,t,this._circle);break}},result:function(){if(this._string.length){var e=this._string.join(``);return this._string=[],e}else return null}}}));function mq(e,t){var n=4.5,r,i;function a(e){return e&&(typeof n==`function`&&i.pointRadius(+n.apply(this,arguments)),mU(e,r(i))),i.result()}return a.area=function(e){return mU(e,r(bK)),bK.result()},a.measure=function(e){return mU(e,r(lq)),lq.result()},a.bounds=function(e){return mU(e,r(DK)),DK.result()},a.centroid=function(e){return mU(e,r(ZK)),ZK.result()},a.projection=function(t){return arguments.length?(r=t==null?(e=null,cK):(e=t).stream,a):e},a.context=function(e){return arguments.length?(i=e==null?(t=null,new dq):new $K(t=e),typeof n!=`function`&&i.pointRadius(n),a):t},a.pointRadius=function(e){return arguments.length?(n=typeof e==`function`?e:(i.pointRadius(+e),+e),a):n},a.projection(e).context(t)}
vendor: 5,297 bytes, line 49
49var hq=o((()=>{lK(),_U(),xK(),OK(),QK(),eq(),uq(),pq()}));function gq(e){return{stream:_q(e)}}function _q(e){return function(t){var n=new vq;for(var r in e)n[r]=e[r];return n.stream=t,n}}function vq(){}var yq=o((()=>{vq.prototype={constructor:vq,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}}}));function bq(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),mU(n,e.stream(DK)),t(DK.result()),r!=null&&e.clipExtent(r),e}function xq(e,t,n){return bq(e,function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+t[0][0]+(r-a*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(i-a*(n[1][1]+n[0][1]))/2;e.scale(150*a).translate([o,s])},n)}function Sq(e,t,n){return xq(e,[[0,0],t],n)}function Cq(e,t,n){return bq(e,function(n){var r=+t,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];e.scale(150*i).translate([a,o])},n)}function wq(e,t,n){return bq(e,function(n){var r=+t,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([a,o])},n)}var Tq=o((()=>{_U(),OK()}));function Eq(e,t){return+t?Oq(e,t):Dq(e)}function Dq(e){return _q({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function Oq(e,t){function n(r,i,a,o,s,c,l,u,d,f,p,m,h,g){var _=l-r,v=u-i,y=_*_+v*v;if(y>4*t&&h--){var b=o+f,x=s+p,S=c+m,C=oU(b*b+x*x+S*S),w=UH(S/=C),T=ZH(ZH(S)-1)<1e-6||ZH(a-d)<1e-6?(a+d)/2:$H(x,b),E=e(T,w),D=E[0],O=E[1],k=D-r,A=O-i,j=v*k-_*A;(j*j/y>t||ZH((_*k+v*A)/y-.5)>.3||o*f+s*p+c*m<Aq)&&(n(r,i,a,o,s,c,D,O,T,b/=C,x/=C,S,h,g),g.point(D,O),n(D,O,T,b,x,S,l,u,d,f,p,m,h,g))}}return function(t){var r,i,a,o,s,c,l,u,d,f,p,m,h={point:g,lineStart:_,lineEnd:y,polygonStart:function(){t.polygonStart(),h.lineStart=b},polygonEnd:function(){t.polygonEnd(),h.lineStart=_}};function g(n,r){n=e(n,r),t.point(n[0],n[1])}function _(){u=NaN,h.point=v,t.lineStart()}function v(r,i){var a=NU([r,i]),o=e(r,i);n(u,d,l,f,p,m,u=o[0],d=o[1],l=r,f=a[0],p=a[1],m=a[2],kq,t),t.point(u,d)}function y(){h.point=g,t.lineEnd()}function b(){_(),h.point=x,h.lineEnd=S}function x(e,t){v(r=e,t),i=u,a=d,o=f,s=p,c=m,h.point=v}function S(){n(u,d,l,f,p,m,i,a,r,o,s,c,kq,t),h.lineEnd=y,y()}return h}}var kq,Aq,jq=o((()=>{zU(),cU(),yq(),kq=16,Aq=Z(30*X)}));function Mq(e){return _q({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function Nq(e,t,n,r,i){function a(a,o){return a*=r,o*=i,[t+e*a,n-e*o]}return a.invert=function(a,o){return[(a-t)/e*r,(n-o)/e*i]},a}function Pq(e,t,n,r,i,a){if(!a)return Nq(e,t,n,r,i);var o=Z(a),s=Q(a),c=o*e,l=s*e,u=o/e,d=s/e,f=(s*n-o*t)/e,p=(s*t+o*n)/e;function m(e,a){return e*=r,a*=i,[c*e-l*a+t,n-l*e-c*a]}return m.invert=function(e,t){return[r*(u*e-d*t+f),i*(p-d*e-u*t)]},m}function Fq(e){return Iq(function(){return e})()}function Iq(e){var t,n=150,r=480,i=250,a=0,o=0,s=0,c=0,l=0,u,d=0,f=1,p=1,m=null,h=vG,g=null,_,v,y,b=cK,x=.5,S,C,w,T,E;function D(e){return w(e[0]*X,e[1]*X)}function O(e){return e=w.invert(e[0],e[1]),e&&[e[0]*XH,e[1]*XH]}D.stream=function(e){return T&&E===e?T:T=Lq(Mq(u)(h(S(b(E=e)))))},D.preclip=function(e){return arguments.length?(h=e,m=void 0,A()):h},D.postclip=function(e){return arguments.length?(b=e,g=_=v=y=null,A()):b},D.clipAngle=function(e){return arguments.length?(h=+e?bG(m=e*X):(m=null,vG),A()):m*XH},D.clipExtent=function(e){return arguments.length?(b=e==null?(g=_=v=y=null,cK):wG(g=+e[0][0],_=+e[0][1],v=+e[1][0],y=+e[1][1]),A()):g==null?null:[[g,_],[v,y]]},D.scale=function(e){return arguments.length?(n=+e,k()):n},D.translate=function(e){return arguments.length?(r=+e[0],i=+e[1],k()):[r,i]},D.center=function(e){return arguments.length?(a=e[0]%360*X,o=e[1]%360*X,k()):[a*XH,o*XH]},D.rotate=function(e){return arguments.length?(s=e[0]%360*X,c=e[1]%360*X,l=e.length>2?e[2]%360*X:0,k()):[s*XH,c*XH,l*XH]},D.angle=function(e){return arguments.length?(d=e%360*X,k()):d*XH},D.reflectX=function(e){return arguments.length?(f=e?-1:1,k()):f<0},D.reflectY=function(e){return arguments.length?(p=e?-1:1,k()):p<0},D.precision=function(e){return arguments.length?(S=Eq(C,x=e*e),A()):oU(x)},D.fitExtent=function(e,t){return xq(D,e,t)},D.fitSize=function(e,t){return Sq(D,e,t)},D.fitWidth=function(e,t){return Cq(D,e,t)},D.fitHeight=function(e,t){return wq(D,e,t)};function k(){var e=Pq(n,0,0,f,p,d).apply(null,t(a,o)),m=Pq(n,r-e[0],i-e[1],f,p,d);return u=WW(s,c,l),C=VW(t,m),w=VW(u,C),S=Eq(C,x),A()}function A(){return T=E=null,D}return function(){return t=e.apply(this,arguments),D.invert=t.invert&&O,k()}}var Lq,Rq=o((()=>{yG(),xG(),DG(),HW(),lK(),cU(),YW(),yq(),Tq(),jq(),Lq=_q({point:function(e,t){this.stream.point(e*X,t*X)}})}));function zq(e){var t=0,n=KH/3,r=Iq(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*X,n=e[1]*X):[t*XH,n*XH]},i}var Bq=o((()=>{cU(),Rq()}));function Vq(e){var t=Z(e);function n(e,n){return[e*t,Q(n)/t]}return n.invert=function(e,n){return[e/t,UH(n*t)]},n}var Hq=o((()=>{cU()}));function Uq(e,t){var n=Q(e),r=(n+Q(t))/2;if(ZH(r)<1e-6)return Vq(e);var i=1+n*(2*r-n),a=oU(i)/r;function o(e,t){var n=oU(i-2*r*Q(t))/r;return[n*Q(e*=r),a-n*Z(e)]}
49return o.invert=function(e,t){var n=a-t,o=$H(e,ZH(n))*aU(n);return n*r<0&&(o-=KH*aU(e)*aU(n)),[o/r,UH((i-(e*e+n*n)*r*r)/(2*r))]},o}function Wq(){return zq(Uq).scale(155.424).center([0,33.6442])}var Gq=o((()=>{cU(),Bq(),Hq()}));function Kq(){return Wq().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}var qq=o((()=>{Gq()}));function Jq(e){var t=e.length;return{point:function(n,r){for(var i=-1;++i<t;)e[i].point(n,r)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}function Yq(){var e,t,n=Kq(),r,i=Wq().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a,o=Wq().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s,c,l={point:function(e,t){c=[e,t]}};function u(e){var t=e[0],n=e[1];return c=null,(r.point(t,n),c)||(a.point(t,n),c)||(s.point(t,n),c)}u.invert=function(e){var t=n.scale(),r=n.translate(),a=(e[0]-r[0])/t,s=(e[1]-r[1])/t;return(s>=.12&&s<.234&&a>=-.425&&a<-.214?i:s>=.166&&s<.234&&a>=-.214&&a<-.115?o:n).invert(e)},u.stream=function(r){return e&&t===r?e:e=Jq([n.stream(t=r),i.stream(r),o.stream(r)])},u.precision=function(e){return arguments.length?(n.precision(e),i.precision(e),o.precision(e),d()):n.precision()},u.scale=function(e){return arguments.length?(n.scale(e),i.scale(e*.35),o.scale(e),u.translate(n.translate())):n.scale()},u.translate=function(e){if(!arguments.length)return n.translate();var t=n.scale(),c=+e[0],u=+e[1];return r=n.translate(e).clipExtent([[c-.455*t,u-.238*t],[c+.455*t,u+.238*t]]).stream(l),a=i.translate([c-.307*t,u+.201*t]).clipExtent([[c-.425*t+GH,u+.12*t+GH],[c-.214*t-GH,u+.234*t-GH]]).stream(l),s=o.translate([c-.205*t,u+.212*t]).clipExtent([[c-.214*t+GH,u+.166*t+GH],[c-.115*t-GH,u+.234*t-GH]]).stream(l),d()},u.fitExtent=function(e,t){return xq(u,e,t)},u.fitSize=function(e,t){return Sq(u,e,t)},u.fitWidth=function(e,t){return Cq(u,e,t)},u.fitHeight=function(e,t){return wq(u,e,t)};function d(){return e=t=null,u}return u.scale(1070)}var Xq=o((()=>{cU(),qq(),Gq(),Tq()}));function Zq(e){return function(t,n){var r=Z(t),i=Z(n),a=e(r*i);return a===1/0?[2,0]:[a*i*Q(t),a*Q(n)]}}function Qq(e){return function(t,n){var r=oU(t*t+n*n),i=e(r),a=Q(i),o=Z(i);return[$H(t*a,r*o),UH(r&&n*a/r)]}}var $q=o((()=>{cU()}));function eJ(){return Fq(tJ).scale(124.75).clipAngle(179.999)}var tJ,nJ=o((()=>{cU(),$q(),Rq(),tJ=Zq(function(e){return oU(2/(1+e))}),tJ.invert=Qq(function(e){return 2*UH(e/2)})}));function rJ(){return Fq(iJ).scale(79.4188).clipAngle(179.999)}var iJ,aJ=o((()=>{cU(),$q(),Rq(),iJ=Zq(function(e){return(e=HH(e))&&e/Q(e)}),iJ.invert=Qq(function(e){return e})}));function oJ(e,t){return[e,rU(sU((qH+t)/2))]}function sJ(){return cJ(oJ).scale(961/YH)}function cJ(e){var t=Fq(e),n=t.center,r=t.scale,i=t.translate,a=t.clipExtent,o=null,s,c,l;t.scale=function(e){return arguments.length?(r(e),u()):r()},t.translate=function(e){return arguments.length?(i(e),u()):i()},t.center=function(e){return arguments.length?(n(e),u()):n()},t.clipExtent=function(e){return arguments.length?(e==null?o=s=c=l=null:(o=+e[0][0],s=+e[0][1],c=+e[1][0],l=+e[1][1]),u()):o==null?null:[[o,s],[c,l]]};function u(){var n=KH*r(),i=t(JW(t.rotate()).invert([0,0]));return a(o==null?[[i[0]-n,i[1]-n],[i[0]+n,i[1]+n]]:e===oJ?[[Math.max(i[0]-n,o),s],[Math.min(i[0]+n,c),l]]:[[o,Math.max(i[1]-n,s)],[c,Math.min(i[1]+n,l)]])}return u()}var lJ=o((()=>{cU(),YW(),Rq(),oJ.invert=function(e,t){return[e,2*QH(tU(t))-qH]}}));function uJ(e){return sU((qH+e)/2)}function dJ(e,t){var n=Z(e),r=e===t?Q(e):rU(n/Z(t))/rU(uJ(t)/uJ(e)),i=n*iU(uJ(e),r)/r;if(!r)return oJ;function a(e,t){i>0?t<-qH+1e-6&&(t=-qH+GH):t>qH-1e-6&&(t=qH-GH);var n=i/iU(uJ(t),r);return[n*Q(r*e),i-n*Z(r*e)]}return a.invert=function(e,t){var n=i-t,a=aU(r)*oU(e*e+n*n),o=$H(e,ZH(n))*aU(n);return n*r<0&&(o-=KH*aU(e)*aU(n)),[o/r,2*QH(iU(i/a,1/r))-qH]},a}function fJ(){return zq(dJ).scale(109.5).parallels([30,30])}var pJ=o((()=>{cU(),Bq(),lJ()}));function mJ(e,t){return[e,t]}function hJ(){return Fq(mJ).scale(152.63)}var gJ=o((()=>{Rq(),mJ.invert=mJ}));function _J(e,t){var n=Z(e),r=e===t?Q(e):(n-Z(t))/(t-e),i=n/r+e;if(ZH(r)<1e-6)return mJ;function a(e,t){var n=i-t,a=r*e;return[n*Q(a),i-n*Z(a)]}
49return a.invert=function(e,t){var n=i-t,a=$H(e,ZH(n))*aU(n);return n*r<0&&(a-=KH*aU(e)*aU(n)),[a/r,i-aU(r)*oU(e*e+n*n)]},a}function vJ(){return zq(_J).scale(131.154).center([0,13.9389])}var yJ=o((()=>{cU(),Bq(),gJ()}));function bJ(e,t){var n=UH(EJ*Q(t)),r=n*n,i=r*r*r;return[e*Z(n)/(EJ*(SJ+3*CJ*r+i*(7*wJ+9*TJ*r))),n*(SJ+CJ*r+i*(wJ+TJ*r))]}function xJ(){return Fq(bJ).scale(177.158)}var SJ,CJ,wJ,TJ,EJ,DJ,OJ=o((()=>{Rq(),cU(),SJ=1.340264,CJ=-.081106,wJ=893e-6,TJ=.003796,EJ=oU(3)/2,DJ=12,bJ.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,a=0,o,s,c;a<DJ&&(s=n*(SJ+CJ*r+i*(wJ+TJ*r))-t,c=SJ+3*CJ*r+i*(7*wJ+9*TJ*r),n-=o=s/c,r=n*n,i=r*r*r,!(ZH(o)<1e-12));++a);return[EJ*e*(SJ+3*CJ*r+i*(7*wJ+9*TJ*r))/Z(n),UH(Q(n)/EJ)]}}));function kJ(e,t){var n=Z(t),r=Z(e)*n;return[n*Q(e)/r,Q(t)/r]}function AJ(){return Fq(kJ).scale(144.049).clipAngle(60)}var jJ=o((()=>{cU(),$q(),Rq(),kJ.invert=Qq(QH)}));function MJ(){var e=1,t=0,n=0,r=1,i=1,a=0,o,s,c=null,l,u,d,f=1,p=1,m=_q({point:function(e,t){var n=y([e,t]);this.stream.point(n[0],n[1])}}),h=cK,g,_;function v(){return f=e*r,p=e*i,g=_=null,y}function y(e){var r=e[0]*f,i=e[1]*p;if(a){var c=i*o-r*s;r=r*o+i*s,i=c}return[r+t,i+n]}return y.invert=function(e){var r=e[0]-t,i=e[1]-n;if(a){var c=i*o+r*s;r=r*o-i*s,i=c}return[r/f,i/p]},y.stream=function(e){return g&&_===e?g:g=m(h(_=e))},y.postclip=function(e){return arguments.length?(h=e,c=l=u=d=null,v()):h},y.clipExtent=function(e){return arguments.length?(h=e==null?(c=l=u=d=null,cK):wG(c=+e[0][0],l=+e[0][1],u=+e[1][0],d=+e[1][1]),v()):c==null?null:[[c,l],[u,d]]},y.scale=function(t){return arguments.length?(e=+t,v()):e},y.translate=function(e){return arguments.length?(t=+e[0],n=+e[1],v()):[t,n]},y.angle=function(e){return arguments.length?(a=e%360*X,s=Q(a),o=Z(a),v()):a*XH},y.reflectX=function(e){return arguments.length?(r=e?-1:1,v()):r<0},y.reflectY=function(e){return arguments.length?(i=e?-1:1,v()):i<0},y.fitExtent=function(e,t){return xq(y,e,t)},y.fitSize=function(e,t){return Sq(y,e,t)},y.fitWidth=function(e,t){return Cq(y,e,t)},y.fitHeight=function(e,t){return wq(y,e,t)},y}var NJ=o((()=>{DG(),lK(),yq(),Tq(),cU()}));function PJ(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),t*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}function FJ(){return Fq(PJ).scale(175.295)}var IJ=o((()=>{Rq(),cU(),PJ.invert=function(e,t){var n=t,r=25,i;do{var a=n*n,o=a*a;n-=i=(n*(1.007226+a*(.015085+o*(-.044475+.028874*a-.005916*o)))-t)/(1.007226+a*(.015085*3+o*(-.044475*7+.028874*9*a-.005916*11*o)))}while(ZH(i)>1e-6&&--r>0);return[e/(.8707+(a=n*n)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),n]}}));function LJ(e,t){return[Z(t)*Q(e),Q(t)]}function RJ(){return Fq(LJ).scale(249.5).clipAngle(90+GH)}var zJ=o((()=>{cU(),$q(),Rq(),LJ.invert=Qq(UH)}));function BJ(e,t){var n=Z(t),r=1+Z(e)*n;return[n*Q(e)/r,Q(t)/r]}function VJ(){return Fq(BJ).scale(250).clipAngle(142)}var HJ=o((()=>{cU(),$q(),Rq(),BJ.invert=Qq(function(e){return 2*QH(e)})}));function UJ(e,t){return[rU(sU((qH+t)/2)),-e]}function WJ(){var e=cJ(UJ),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90]).scale(159.155)}var GJ=o((()=>{cU(),lJ(),UJ.invert=function(e,t){return[-t,2*QH(tU(e))-qH]}})),KJ=c({geoAlbers:()=>Kq,geoAlbersUsa:()=>Yq,geoArea:()=>SU,geoAzimuthalEqualArea:()=>eJ,geoAzimuthalEqualAreaRaw:()=>tJ,geoAzimuthalEquidistant:()=>rJ,geoAzimuthalEquidistantRaw:()=>iJ,geoBounds:()=>XU,geoCentroid:()=>bW,geoCircle:()=>QW,geoClipAntimeridian:()=>vG,geoClipCircle:()=>bG,geoClipExtent:()=>OG,geoClipRectangle:()=>wG,geoConicConformal:()=>fJ,geoConicConformalRaw:()=>dJ,geoConicEqualArea:()=>Wq,geoConicEqualAreaRaw:()=>Uq,geoConicEquidistant:()=>vJ,geoConicEquidistantRaw:()=>_J,geoContains:()=>ZG,geoDistance:()=>VG,geoEqualEarth:()=>xJ,geoEqualEarthRaw:()=>bJ,geoEquirectangular:()=>hJ,geoEquirectangularRaw:()=>mJ,geoGnomonic:()=>AJ,geoGnomonicRaw:()=>kJ,geoGraticule:()=>rK,geoGraticule10:()=>iK,geoIdentity:()=>MJ,geoInterpolate:()=>oK,geoLength:()=>PG,geoMercator:()=>sJ,geoMercatorRaw:()=>oJ,geoNaturalEarth1:()=>FJ,geoNaturalEarth1Raw:()=>PJ,geoOrthographic:()=>RJ,geoOrthographicRaw:()=>LJ,geoPath:()=>mq,geoProjection:()=>Fq,geoProjectionMutator:()=>Iq,geoRotation:()=>JW,geoStereographic:()=>VJ,geoStereographicRaw:()=>BJ,geoStream:()=>mU,geoTransform:()=>gq,geoTransverseMercator:()=>WJ,geoTransverseMercatorRaw:()=>UJ}),qJ=o((()=>{jU(),lW(),RW(),$W(),yG(),xG(),kG(),DG(),eK(),WG(),aK(),sK(),BG(),hq(),qq(),Xq(),nJ(),aJ(),pJ(),Gq(),yJ(),OJ(),gJ(),jJ(),NJ(),Rq(),lJ(),IJ(),zJ(),HJ(),GJ
49(),YW(),_U(),yq()}));function JJ(e){return e}var YJ=o((()=>{}));function XJ(e){if(e==null)return JJ;var t,n,r=e.scale[0],i=e.scale[1],a=e.translate[0],o=e.translate[1];return function(e,s){s||(t=n=0);var c=2,l=e.length,u=Array(l);for(u[0]=(t+=e[0])*r+a,u[1]=(n+=e[1])*i+o;c<l;)u[c]=e[c],++c;return u}}var ZJ=o((()=>{YJ()}));function QJ(e){var t=XJ(e.transform),n,r=1/0,i=r,a=-r,o=-r;function s(e){e=t(e),e[0]<r&&(r=e[0]),e[0]>a&&(a=e[0]),e[1]<i&&(i=e[1]),e[1]>o&&(o=e[1])}function c(e){switch(e.type){case`GeometryCollection`:e.geometries.forEach(c);break;case`Point`:s(e.coordinates);break;case`MultiPoint`:e.coordinates.forEach(s);break}}for(n in e.arcs.forEach(function(e){for(var n=-1,s=e.length,c;++n<s;)c=t(e[n],n),c[0]<r&&(r=c[0]),c[0]>a&&(a=c[0]),c[1]<i&&(i=c[1]),c[1]>o&&(o=c[1])}),e.objects)c(e.objects[n]);return[r,i,a,o]}var $J=o((()=>{ZJ()}));function eY(e,t){for(var n,r=e.length,i=r-t;i<--r;)n=e[i],e[i++]=e[r],e[r]=n}var tY=o((()=>{}));function nY(e,t){return typeof t==`string`&&(t=e.objects[t]),t.type===`GeometryCollection`?{type:`FeatureCollection`,features:t.geometries.map(function(t){return rY(e,t)})}:rY(e,t)}function rY(e,t){var n=t.id,r=t.bbox,i=t.properties==null?{}:t.properties,a=iY(e,t);return n==null&&r==null?{type:`Feature`,properties:i,geometry:a}:r==null?{type:`Feature`,id:n,properties:i,geometry:a}:{type:`Feature`,id:n,bbox:r,properties:i,geometry:a}}function iY(e,t){var n=XJ(e.transform),r=e.arcs;function i(e,t){t.length&&t.pop();for(var i=r[e<0?~e:e],a=0,o=i.length;a<o;++a)t.push(n(i[a],a));e<0&&eY(t,o)}function a(e){return n(e)}function o(e){for(var t=[],n=0,r=e.length;n<r;++n)i(e[n],t);return t.length<2&&t.push(t[0]),t}function s(e){for(var t=o(e);t.length<4;)t.push(t[0]);return t}function c(e){return e.map(s)}function l(e){var t=e.type,n;switch(t){case`GeometryCollection`:return{type:t,geometries:e.geometries.map(l)};case`Point`:n=a(e.coordinates);break;case`MultiPoint`:n=e.coordinates.map(a);break;case`LineString`:n=o(e.arcs);break;case`MultiLineString`:n=e.arcs.map(o);break;case`Polygon`:n=c(e.arcs);break;case`MultiPolygon`:n=e.arcs.map(c);break;default:return null}return{type:t,coordinates:n}}return l(t)}var aY=o((()=>{tY(),ZJ()}));function oY(e,t){var n={},r={},i={},a=[],o=-1;t.forEach(function(n,r){var i=e.arcs[n<0?~n:n],a;i.length<3&&!i[1][0]&&!i[1][1]&&(a=t[++o],t[o]=n,t[r]=a)}),t.forEach(function(e){var t=s(e),n=t[0],a=t[1],o,c;if(o=i[n])if(delete i[o.end],o.push(e),o.end=a,c=r[a]){delete r[c.start];var l=c===o?o:o.concat(c);r[l.start=o.start]=i[l.end=c.end]=l}else r[o.start]=i[o.end]=o;else if(o=r[a])if(delete r[o.start],o.unshift(e),o.start=n,c=i[n]){delete i[c.end];var u=c===o?o:c.concat(o);r[u.start=c.start]=i[u.end=o.end]=u}else r[o.start]=i[o.end]=o;else o=[e],r[o.start=n]=i[o.end=a]=o});function s(t){var n=e.arcs[t<0?~t:t],r=n[0],i;return e.transform?(i=[0,0],n.forEach(function(e){i[0]+=e[0],i[1]+=e[1]})):i=n[n.length-1],t<0?[i,r]:[r,i]}function c(e,t){for(var r in e){var i=e[r];
49delete t[i.start],delete i.start,delete i.end,i.forEach(function(e){n[e<0?~e:e]=1}),a.push(i)}}return c(i,r),c(r,i),t.forEach(function(e){n[e<0?~e:e]||a.push([e])}),a}var sY=o((()=>{}));function cY(e){return iY(e,lY.apply(this,arguments))}function lY(e,t,n){var r,i,a;if(arguments.length>1)r=uY(e,t,n);else for(i=0,r=Array(a=e.arcs.length);i<a;++i)r[i]=i;return{type:`MultiLineString`,arcs:oY(e,r)}}function uY(e,t,n){var r=[],i=[],a;function o(e){var t=e<0?~e:e;(i[t]||(i[t]=[])).push({i:e,g:a})}function s(e){e.forEach(o)}function c(e){e.forEach(s)}function l(e){e.forEach(c)}function u(e){switch(a=e,e.type){case`GeometryCollection`:e.geometries.forEach(u);break;case`LineString`:s(e.arcs);break;case`MultiLineString`:case`Polygon`:c(e.arcs);break;case`MultiPolygon`:l(e.arcs);break}}return u(t),i.forEach(n==null?function(e){r.push(e[0].i)}:function(e){n(e[0].g,e[e.length-1].g)&&r.push(e[0].i)}),r}var dY=o((()=>{aY(),sY()}));function fY(e){for(var t=-1,n=e.length,r,i=e[n-1],a=0;++t<n;)r=i,i=e[t],a+=r[0]*i[1]-r[1]*i[0];return Math.abs(a)}function pY(e){return iY(e,mY.apply(this,arguments))}function mY(e,t){var n={},r=[],i=[];t.forEach(a);function a(e){switch(e.type){case`GeometryCollection`:e.geometries.forEach(a);break;case`Polygon`:o(e.arcs);break;case`MultiPolygon`:e.arcs.forEach(o);break}}function o(e){e.forEach(function(t){t.forEach(function(t){(n[t=t<0?~t:t]||(n[t]=[])).push(e)})}),r.push(e)}function s(t){return fY(iY(e,{type:`Polygon`,arcs:[t]}).coordinates[0])}return r.forEach(function(e){if(!e._){var t=[],r=[e];for(e._=1,i.push(t);e=r.pop();)t.push(e),e.forEach(function(e){e.forEach(function(e){n[e<0?~e:e].forEach(function(e){e._||(e._=1,r.push(e))})})})}}),r.forEach(function(e){delete e._}),{type:`MultiPolygon`,arcs:i.map(function(t){var r=[],i;if(t.forEach(function(e){e.forEach(function(e){e.forEach(function(e){n[e<0?~e:e].length<2&&r.push(e)})})}),r=oY(e,r),(i=r.length)>1)for(var a=1,o=s(r[0]),c,l;a<i;++a)(c=s(r[a]))>o&&(l=r[0],r[0]=r[a],r[a]=l,o=c);return r}).filter(function(e){return e.length>0})}}var hY=o((()=>{aY(),sY()}));function gY(e,t){for(var n=0,r=e.length;n<r;){var i=n+r>>>1;e[i]<t?n=i+1:r=i}return n}var _Y=o((()=>{}));function vY(e){var t={},n=e.map(function(){return[]});function r(e,n){e.forEach(function(e){e<0&&(e=~e);var r=t[e];r?r.push(n):t[e]=[n]})}function i(e,t){e.forEach(function(e){r(e,t)})}function a(e,t){e.type===`GeometryCollection`?e.geometries.forEach(function(e){a(e,t)}):e.type in o&&o[e.type](e.arcs,t)}var o={LineString:r,MultiLineString:i,Polygon:i,MultiPolygon:function(e,t){e.forEach(function(e){i(e,t)})}};for(var s in e.forEach(a),t)for(var c=t[s],l=c.length,u=0;u<l;++u)for(var d=u+1;d<l;++d){var f=c[u],p=c[d],m;(m=n[f])[s=gY(m,p)]!==p&&m.splice(s,0,p),(m=n[p])[s=gY(m,f)]!==f&&m.splice(s,0,f)}return n}var yY=o((()=>{_Y()}));function bY(e){if(e==null)return JJ;var t,n,r=e.scale[0],i=e.scale[1],a=e.translate[0],o=e.translate[1];return function(e,s){s||(t=n=0);var c=2,l=e.length,u=Array(l),d=Math.round((e[0]-a)/r),f=Math.round((e[1]-o)/i);for(u[0]=d-t,t=d,u[1]=f-n,n=f;c<l;)u[c]=e[c],++c;return u}}var xY=o((()=>{YJ()}));function SY(e,t){if(e.transform)throw Error(`already quantized`);if(!t||!t.scale){if(!((o=Math.floor(t))>=2))throw Error(`n must be ≥2`);c=e.bbox||QJ(e);var n=c[0],r=c[1],i=c[2],a=c[3],o;t={scale:[i-n?(i-n)/(o-1):1,a-r?(a-r)/(o-1):1],translate:[n,r]}}else c=e.bbox;var s=bY(t),c,l,u=e.objects,d={};function f(e){return s(e)}function p(e){var t;switch(e.type){case`GeometryCollection`:t={type:`GeometryCollection`,geometries:e.geometries.map(p)};break;case`Point`:t={type:`Point`,coordinates:f(e.coordinates)};break;case`MultiPoint`:t={type:`MultiPoint`,coordinates:e.coordinates.map(f)};break;default:return e}return e.id!=null&&(t.id=e.id),e.bbox!=null&&(t.bbox=e.bbox),e.properties!=null&&(t.properties=e.properties),t}function m(e){var t=0,n=1,r=e.length,i,a=Array(r);for(a[0]=s(e[0],0);++t<r;)((i=s(e[t],t))[0]||i[1])&&(a[n++]=i);return n===1&&(a[n++]=[0,0]),a.length=n,a}for(l in u)d[l]=p(u[l]);return{type:`Topology`,bbox:c,transform:t,objects:d,arcs:e.arcs.map(m)}}var CY=o((()=>{$J(),xY()})),wY=c({bbox:()=>QJ,feature:()=>nY,merge:()=>pY,mergeArcs:()=>mY,mesh:()=>cY,meshArcs:()=>lY,neighbors:()=>vY,quantize:()=>SY,transform:()=>XJ,untransform:()=>bY}),TY=o((()=>{$J(),aY(),dY(),hY(),yY(),CY(),ZJ(),xY()}));function EY(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new DY(n)}function DY(e){this._=e}function OY(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}function kY(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function AY(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=jY,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var jY,MY=o((()=>{jY={value:()=>{}},DY.prototype=EY.prototype={constructor:DY,on:function(e,t){var n=this._,r=OY(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=kY(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=AY(n[i],e.name,t);else if(t==null)for(i in n)n[i]=AY(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new DY(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}}})),NY=o((()=>{MY()})),PY,FY,IY=o((()=>{PY=`http://www.w3.org/1999/xhtml`,FY={svg:`http://www.w3.org/2000/svg`,xhtml:PY,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`}}));function LY(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),FY.hasOwnProperty(t)?{space:FY[t],local:e}:e}var RY=o((()=>{IY()}));function zY(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function BY(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function VY(e){var t=LY(e);return(t.local?BY:zY)(t)}var HY=o((()=>{RY(),IY()}));function UY(){}function WY(e){return e==null?UY:function(){return this.querySelector(e)}}var GY=o((()=>{}));function KY(e){typeof e!=`function`&&(e=WY(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new vQ(r,this._parents)}var qY=o((()=>{SQ(),GY()}));function JY(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}var YY=o((()=>{}));function XY(){return[]}function ZY(e){return e==null?XY:function(){return this.querySelectorAll(e)}}var QY=o((()=>{}));function $Y(e){return function(){var t=e.apply(this,arguments);return t==null?[]:JY(t)}}function eX(e){e=typeof e==`function`?$Y(e):ZY(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new vQ(r,i)}var tX=o((()=>{SQ(),YY(),QY()}));function nX(e){return function(){return this.matches(e)}}function rX(e){return function(t){return t.matches(e)}}var iX=o((()=>{}));function aX(e){return function(){return cX.call(this.children,e)}}function oX(){return this.firstElementChild}function sX(e){return this.select(e==null?oX:aX(typeof e==`function`?e:rX(e)))}var cX,lX=o((()=>{iX(),cX=Array.prototype.find}));function uX(){return this.children}function dX(e){return function(){return pX.call(this.children,e)}}function fX(e){return this.selectAll(e==null?uX:dX(typeof e==`function`?e:rX(e)))}var pX,mX=o((()=>{iX(),pX=Array.prototype.filter}));function hX(e){typeof e!=`function`&&(e=nX(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new vQ(r,this._parents)}var gX=o((()=>{SQ(),iX()}));function _X(e){return Array(e.length)}var vX=o((()=>{}));function yX(){return new vQ(this._enter||this._groups.map(_X),this._parents)}function bX(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}var xX=o((()=>{vX(),SQ(),bX.prototype={constructor:bX,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}}}));function SX(e){return function(){return e}}var CX=o((()=>{}));function wX(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new bX(e,a[o]);for(;o<c;
49++o)(s=t[o])&&(i[o]=s)}function TX(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new bX(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function EX(e){return e.__data__}function DX(e,t){if(!arguments.length)return Array.from(this,EX);var n=t?TX:wX,r=this._parents,i=this._groups;typeof e!=`function`&&(e=SX(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=JY(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new vQ(o,r),o._enter=s,o._exit=c,o}var OX=o((()=>{SQ(),xX(),YY(),CX()}));function kX(){return new vQ(this._exit||this._groups.map(_X),this._parents)}var AX=o((()=>{vX(),SQ()}));function jX(e,t,n){var r=this.enter(),i=this,a=this.exit();return r=typeof e==`function`?e(r):r.append(e+``),t!=null&&(i=t(i)),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}var MX=o((()=>{}));function NX(e){if(!(e instanceof vQ))throw Error(`invalid merge`);for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new vQ(o,this._parents)}var PX=o((()=>{SQ()}));function FX(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}var IX=o((()=>{}));function LX(e){e||=RX;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new vQ(i,this._parents).order()}function RX(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}var zX=o((()=>{SQ()}));function BX(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}var VX=o((()=>{}));function HX(){return Array.from(this)}var UX=o((()=>{}));function WX(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}var GX=o((()=>{}));function KX(){let e=0;for(let t of this)++e;return e}var qX=o((()=>{}));function JX(){return!this.node()}var YX=o((()=>{}));function XX(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}var ZX=o((()=>{}));function QX(e){return function(){this.removeAttribute(e)}}function $X(e){return function(){this.removeAttributeNS(e.space,e.local)}}function eZ(e,t){return function(){this.setAttribute(e,t)}}function tZ(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function nZ(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function rZ(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function iZ(e,t){var n=LY(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?$X:QX:typeof t==`function`?n.local?rZ:nZ:n.local?tZ:eZ)(n,t))}var aZ=o((()=>{RY()}));function oZ(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}var sZ=o((()=>{}));function cZ(e){return function(){this.style.removeProperty(e)}}function lZ(e,t,n){return function(){this.style.setProperty(e,t,n)}}function uZ(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function dZ(e,t,n){return arguments.length>1?this.each((t==null?cZ:typeof t==`function`?uZ:lZ)(e,t,n??``)):fZ(this.node(),e)}function fZ(e,t){return e.style.getPropertyValue(t)||oZ(e).getComputedStyle(e,null).getPropertyValue(t)}var pZ=o((()=>{sZ()}));function mZ(e){return function(){delete this[e]}}function hZ(e,t){return function(){this[e]=t}}function gZ(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function _Z(e,t){return arguments.length>1?this.each((t==null?mZ:typeof t==`function`?gZ:hZ)(e,t)):this.node()[e]}var vZ=o((()=>{}));function yZ(e){return e.trim().split(/^|\s+/)}function bZ(e){return e.classList||new xZ(e)}
49function xZ(e){this._node=e,this._names=yZ(e.getAttribute(`class`)||``)}function SZ(e,t){for(var n=bZ(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function CZ(e,t){for(var n=bZ(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function wZ(e){return function(){SZ(this,e)}}function TZ(e){return function(){CZ(this,e)}}function EZ(e,t){return function(){(t.apply(this,arguments)?SZ:CZ)(this,e)}}function DZ(e,t){var n=yZ(e+``);if(arguments.length<2){for(var r=bZ(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?EZ:t?wZ:TZ)(n,t))}var OZ=o((()=>{xZ.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}}}));function kZ(){this.textContent=``}function AZ(e){return function(){this.textContent=e}}function jZ(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function MZ(e){return arguments.length?this.each(e==null?kZ:(typeof e==`function`?jZ:AZ)(e)):this.node().textContent}var NZ=o((()=>{}));function PZ(){this.innerHTML=``}function FZ(e){return function(){this.innerHTML=e}}function IZ(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function LZ(e){return arguments.length?this.each(e==null?PZ:(typeof e==`function`?IZ:FZ)(e)):this.node().innerHTML}var RZ=o((()=>{}));function zZ(){this.nextSibling&&this.parentNode.appendChild(this)}function BZ(){return this.each(zZ)}var VZ=o((()=>{}));function HZ(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function UZ(){return this.each(HZ)}var WZ=o((()=>{}));function GZ(e){var t=typeof e==`function`?e:VY(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}var KZ=o((()=>{HY()}));function qZ(){return null}function JZ(e,t){var n=typeof e==`function`?e:VY(e),r=t==null?qZ:typeof t==`function`?t:WY(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}var YZ=o((()=>{HY(),GY()}));function XZ(){var e=this.parentNode;e&&e.removeChild(this)}function ZZ(){return this.each(XZ)}var QZ=o((()=>{}));function $Z(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function eQ(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function tQ(e){return this.select(e?eQ:$Z)}var nQ=o((()=>{}));function rQ(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}var iQ=o((()=>{}));function aQ(e){return function(t){e.call(this,t,this.__data__)}}function oQ(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function sQ(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function cQ(e,t,n){return function(){var r=this.__on,i,a=aQ(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function lQ(e,t,n){var r=oQ(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?cQ:sQ,i=0;i<a;++i)this.each(s(r[i],t,n));return this}var uQ=o((()=>{}));function dQ(e,t,n){var r=oZ(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function fQ(e,t){return function(){return dQ(this,e,t)}}function pQ(e,t){return function(){return dQ(this,e,t.apply(this,arguments))}}function mQ(e,t){return this.each((typeof t==`function`?pQ:fQ)(e,t))}var hQ=o((()=>{sZ()}));function*gQ(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var _Q=o((()=>{}));function vQ(e,t){this._groups=e,this._parents=t}function yQ(){return new vQ([[document.documentElement]],xQ)}function bQ(){return this}var xQ,SQ=o((()=>{qY(),tX(),lX(),mX(),gX(),OX(),xX(),AX(),MX(),PX(),IX(),zX(),VX(),UX(),GX(),qX(),YX(),ZX(),aZ(),pZ(),vZ(),OZ(),NZ(),RZ(),VZ(),WZ(),KZ(),YZ(),QZ(),nQ(),iQ(),uQ(),hQ(),_Q(),xQ=[null],vQ.prototype=yQ.prototype={constructor:vQ,select:KY,selectAll:eX,selectChild:sX,selectChildren:fX,filter:hX,data:DX,enter:yX,exit:kX,join:jX,merge:NX,selection:bQ,order:FX,sort:LX,call:BX,nodes:HX,node:WX,size:KX,empty:JX,each:XX,attr:iZ,style:dZ,property:_Z,classed:DZ,text:MZ,html:LZ,raise:BZ,lower:UZ,append:GZ,insert:JZ,remove:ZZ,clone:tQ,datum:rQ,on:lQ,dispatch:mQ,[Symbol.iterator]:gQ}}));function CQ(e){return typeof e==`string`?new vQ([[document.querySelector(e)]],[document.documentElement]):new vQ([[e]],xQ)}var wQ=o((()=>{SQ()}));function TQ(e){return CQ(VY(e).call(document.documentElement))}var EQ=o((()=>{HY(),wQ()}));function DQ(){return new OQ}function OQ(){this._=`@`+(++kQ).toString(36)}var kQ,AQ=o((()=>{kQ=0,OQ.prototype=DQ.prototype={constructor:OQ,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}}}));function jQ(e){let t;for(;t=e.sourceEvent;)e=t;return e}var MQ=o((()=>{}));
49function NQ(e,t){if(e=jQ(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var PQ=o((()=>{MQ()}));function FQ(e,t){return e.target&&(e=jQ(e),t===void 0&&(t=e.currentTarget),e=e.touches||[e]),Array.from(e,e=>NQ(e,t))}var IQ=o((()=>{PQ(),MQ()}));function LQ(e){return typeof e==`string`?new vQ([document.querySelectorAll(e)],[document.documentElement]):new vQ([e==null?[]:JY(e)],xQ)}var RQ=o((()=>{YY(),SQ()})),zQ=c({create:()=>TQ,creator:()=>VY,local:()=>DQ,matcher:()=>nX,namespace:()=>LY,namespaces:()=>FY,pointer:()=>NQ,pointers:()=>FQ,select:()=>CQ,selectAll:()=>LQ,selection:()=>yQ,selector:()=>WY,selectorAll:()=>ZY,style:()=>fZ,window:()=>oZ}),BQ=o((()=>{EQ(),HY(),AQ(),iX(),RY(),IY(),PQ(),IQ(),wQ(),RQ(),SQ(),GY(),QY(),pZ(),sZ()}));function VQ(e){e.preventDefault(),e.stopImmediatePropagation()}var HQ=o((()=>{}));function UQ(e){var t=e.document.documentElement,n=CQ(e).on(`dragstart.drag`,VQ,!0);`onselectstart`in t?n.on(`selectstart.drag`,VQ,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function WQ(e,t){var n=e.document.documentElement,r=CQ(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,VQ,!0),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var GQ=o((()=>{BQ(),HQ()})),KQ=o((()=>{NY(),BQ(),GQ(),HQ()}));function qQ(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function JQ(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}var YQ=o((()=>{}));function XQ(){}function ZQ(){return this.rgb().formatHex()}function QQ(){return u$(this).formatHsl()}function $Q(){return this.rgb().formatRgb()}function e$(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=y$.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?t$(t):n===3?new a$(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?n$(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?n$(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=b$.exec(e))?new a$(t[1],t[2],t[3],1):(t=x$.exec(e))?new a$(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=S$.exec(e))?n$(t[1],t[2],t[3],t[4]):(t=C$.exec(e))?n$(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=w$.exec(e))?l$(t[1],t[2]/100,t[3]/100,1):(t=T$.exec(e))?l$(t[1],t[2]/100,t[3]/100,t[4]):E$.hasOwnProperty(e)?t$(E$[e]):e===`transparent`?new a$(NaN,NaN,NaN,0):null}function t$(e){return new a$(e>>16&255,e>>8&255,e&255,1)}function n$(e,t,n,r){return r<=0&&(e=t=n=NaN),new a$(e,t,n,r)}function r$(e){return e instanceof XQ||(e=e$(e)),e?(e=e.rgb(),new a$(e.r,e.g,e.b,e.opacity)):new a$}function i$(e,t,n,r){return arguments.length===1?r$(e):new a$(e,t,n,r??1)}function a$(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function o$(){return`#`+c$(this.r)+c$(this.g)+c$(this.b)}function s$(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?`rgb(`:`rgba(`)+Math.max(0,Math.min(255,Math.round(this.r)||0))+`, `+Math.max(0,Math.min(255,Math.round(this.g)||0))+`, `+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?`)`:`, `+e+`)`)}function c$(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?`0`:``)+e.toString(16)}function l$(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new f$(e,t,n,r)}function u$(e){if(e instanceof f$)return new f$(e.h,e.s,e.l,e.opacity);if(e instanceof XQ||(e=e$(e)),!e)return new f$;if(e instanceof f$)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new f$(o,s,c,e.opacity)}function d$(e,t,n,r){return arguments.length===1?u$(e):new f$(e,t,n,r??1)}function f$(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function p$(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var m$,h$,g$,_$,v$,y$,b$,x$,S$,C$,w$,T$,E$,D$=o((()=>{YQ(),m$=.7,h$=1/m$,g$=`\\s*([+-]?\\d+)\\s*`,_$=`\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*`,v$=`\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,y$=/^#([0-9a-f]{3,8})$/,b$=RegExp(`^rgb\\(`+[g$,g$,g$]+`\\)$`),x$=RegExp(`^rgb\\(`+[v$,v$,v$]+`\\)$`),S$=RegExp(`^rgba\\(`+[g$,g$,g$,_$]+`\\)$`),C$=RegExp(`^rgba\\(`+[v$,v$,v$,_$]+`\\)$`),w$=RegExp(`^hsl\\(`+[_$,v$,v$]+`\\)$`),T$=RegExp(`^hsla\\(`+[_$,v$,v$,_$]+`\\)$`),E$={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},qQ(XQ,e$,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:ZQ,formatHex:ZQ,formatHsl:QQ,formatRgb:$Q,toString:$Q}),qQ(a$,i$,JQ(XQ,{brighter:function(e){return e=e==null?h$:h$**+e,new a$(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?m$:m$**+e,new a$(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:o$,formatHex:o$,formatRgb:s$,toString:s$})),qQ(f$,d$,JQ(XQ,{brighter:function(e){return e=e==null?h$:h$**+e,new f$(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?m$:m$**+e,new f$(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new a$(p$(e>=240?e-240:e+120,i,r),p$(e,i,r),p$(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?`hsl(`:`hsla(`)+(this.h||0)+`, `+(this.s||0)*100+`%, `+(this.l||0)*100+`%`+(e===1?`)`:`, `+e+`)`)}}))})),O$=o((()=>{D$(),YQ()})),k$=o((()=>{})),A$=o((()=>{k$()})),j$,M$=o((()=>{j$=e=>()=>e}));function N$(e,t){return function(n){return e+n*t}}function P$(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function F$(e){return(e=+e)==1?I$:function(t,n){return n-t?P$(t,n,e):j$(isNaN(t)?n:t)}}function I$(e,t){var n=t-e;return n?N$(e,n):j$(isNaN(e)?t:e)}var L$=o((()=>{M$()})),R$,z$=o((()=>{O$(),k$(),A$(),L$(),R$=(function e(t){var n=F$(t);function r(e,t){var r=n((e=i$(e)).r,(t=i$(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=I$(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1)}));function B$(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var V$=o((()=>{}));function H$(e){return function(){return e}}function U$(e){return function(t){return e(t)+``}}function W$(e,t){var n=G$.lastIndex=K$.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=G$.exec(e))&&(i=K$.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:B$(r,i)})),n=K$.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?U$(c[0].x):H$(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var G$,K$,q$=o((()=>{V$(),G$=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,K$=new RegExp(G$.source,`g`)}));function J$(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Y$,skewX:Math.atan(c)*Y$,scaleX:o,scaleY:s}}var Y$,X$,Z$=o((()=>{Y$=180/Math.PI,X$={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}}));function Q$(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?X$:J$(t.a,t.b,t.c,t.d,t.e,t.f)}function $$(e){return e==null||(e1||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),e1.setAttribute(`transform`,e),!(e=e1.transform.baseVal.consolidate()))?X$:(e=e.matrix,J$(e.a,e.b,e.c,e.d,e.e,e.f))}var e1,t1=o((()=>{Z$()}));function n1(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}
49function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:B$(e,i)},{i:c-2,x:B$(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:B$(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:B$(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:B$(e,n)},{i:s-2,x:B$(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var r1,i1,a1=o((()=>{V$(),t1(),r1=n1(Q$,`px, `,`px)`,`deg)`),i1=n1($$,`, `,`)`,`)`)}));function o1(e){return((e=Math.exp(e))+1/e)/2}function s1(e){return((e=Math.exp(e))-1/e)/2}function c1(e){return((e=Math.exp(2*e))-1)/(e+1)}var l1,u1,d1=o((()=>{l1=1e-12,u1=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<l1)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=o1(y),c=s/(n*g)*(i*c1(t*r+y)-s1(y));return[a+c*d,o+c*f,s*i/o1(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4)})),f1=o((()=>{O$(),z$(),V$(),q$(),M$(),k$(),A$(),L$(),a1(),d1()}));function p1(){return k1||=(M1(m1),j1.now()+A1)}function m1(){k1=0}function h1(){this._call=this._time=this._next=null}function g1(e,t,n){var r=new h1;return r.restart(e,t,n),r}function _1(){p1(),++S1;for(var e=E1,t;e;)(t=k1-e._time)>=0&&e._call.call(null,t),e=e._next;--S1}function v1(){k1=(O1=j1.now())+A1,S1=C1=0;try{_1()}finally{S1=0,b1(),k1=0}}function y1(){var e=j1.now(),t=e-O1;t>T1&&(A1-=t,O1=e)}function b1(){for(var e,t=E1,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:E1=n);D1=e,x1(r)}function x1(e){S1||(C1&&=clearTimeout(C1),e-k1>24?(e<1/0&&(C1=setTimeout(v1,e-j1.now()-A1)),w1&&=clearInterval(w1)):(w1||=(O1=j1.now(),setInterval(y1,T1)),S1=1,M1(v1)))}var S1,C1,w1,T1,E1,D1,O1,k1,A1,j1,M1,N1=o((()=>{S1=0,C1=0,w1=0,T1=1e3,O1=0,k1=0,A1=0,j1=typeof performance==`object`&&performance.now?performance:Date,M1=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)},h1.prototype=g1.prototype={constructor:h1,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?p1():+n)+(t==null?0:+t),!this._next&&D1!==this&&(D1?D1._next=this:E1=this,D1=this),this._call=e,this._time=n,x1()},stop:function(){this._call&&(this._call=null,this._time=1/0,x1())}}}));function P1(e,t,n){var r=new h1;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var F1=o((()=>{N1()})),I1=o((()=>{N1(),F1()}));function L1(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;V1(e,n,{name:t,index:r,group:i,on:H1,tween:U1,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function R1(e,t){var n=B1(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function z1(e,t){var n=B1(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function B1(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function V1(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=g1(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return P1(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(P1(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[
49++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}var H1,U1,W1=o((()=>{NY(),I1(),H1=EY(`start`,`end`,`cancel`,`interrupt`),U1=[]}));function G1(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}var K1=o((()=>{W1()}));function q1(e){return this.each(function(){G1(this,e)})}var J1=o((()=>{K1()}));function Y1(e,t){var n,r;return function(){var i=z1(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function X1(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=z1(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Z1(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=B1(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Y1:X1)(n,e,t))}function Q1(e,t,n){var r=e._id;return e.each(function(){var e=z1(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return B1(e,r).value[t]}}var $1=o((()=>{W1()}));function e0(e,t){var n;return(typeof t==`number`?B$:t instanceof e$?R$:(n=e$(t))?(t=n,R$):W$)(e,t)}var t0=o((()=>{O$(),f1()}));function n0(e){return function(){this.removeAttribute(e)}}function r0(e){return function(){this.removeAttributeNS(e.space,e.local)}}function i0(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function a0(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function o0(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function s0(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function c0(e,t){var n=LY(e),r=n===`transform`?i1:e0;return this.attrTween(e,typeof t==`function`?(n.local?s0:o0)(n,r,Q1(this,`attr.`+e,t)):t==null?(n.local?r0:n0)(n):(n.local?a0:i0)(n,r,t))}var l0=o((()=>{f1(),BQ(),$1(),t0()}));function u0(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function d0(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function f0(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&d0(e,i)),n}return i._value=t,i}function p0(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&u0(e,i)),n}return i._value=t,i}function m0(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=LY(e);return this.tween(n,(r.local?f0:p0)(r,t))}var h0=o((()=>{BQ()}));function g0(e,t){return function(){R1(this,e).delay=+t.apply(this,arguments)}}function _0(e,t){return t=+t,function(){R1(this,e).delay=t}}function v0(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?g0:_0)(t,e)):B1(this.node(),t).delay}var y0=o((()=>{W1()}));function b0(e,t){return function(){z1(this,e).duration=+t.apply(this,arguments)}}function x0(e,t){return t=+t,function(){z1(this,e).duration=t}}function S0(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?b0:x0)(t,e)):B1(this.node(),t).duration}var C0=o((()=>{W1()}));function w0(e,t){if(typeof t!=`function`)throw Error();return function(){z1(this,e).ease=t}}function T0(e){var t=this._id;return arguments.length?this.each(w0(t,e)):B1(this.node(),t).ease}var E0=o((()=>{W1()}));function D0(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();z1(this,e).ease=n}}function O0(e){if(typeof e!=`function`)throw Error();return this.each(D0(this._id,e))}var k0=o((()=>{W1()}));function A0(e){typeof e!=`function`&&(e=nX(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new _2(r,this._parents,this._name,this._id)}var j0=o((()=>{BQ(),S2()}));function M0(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new _2(o,this._parents,this._name,this._id)}var N0=o((()=>{S2()}));function P0(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function F0(e,t,n){var r,i,a=P0(t)?R1:z1;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function I0(e,t){var n=this._id;return arguments.length<2?B1(this.node(),n).on.on(e):this.each(F0(n,e,t))}var L0=o((()=>{W1()}));function R0(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function z0(){return this.on(`end.remove`,R0(this._id))}var B0=o((()=>{}));function V0(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=WY(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;
49++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,L1(l[f],t,n,f,l,B1(u,n)));return new _2(a,this._parents,t,n)}var H0=o((()=>{BQ(),S2(),W1()}));function U0(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=ZY(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=B1(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&L1(p,t,n,h,f,m);a.push(f),o.push(u)}return new _2(a,o,t,n)}var W0=o((()=>{BQ(),S2(),W1()}));function G0(){return new K0(this._groups,this._parents)}var K0,q0=o((()=>{BQ(),K0=yQ.prototype.constructor}));function J0(e,t){var n,r,i;return function(){var a=fZ(this,e),o=(this.style.removeProperty(e),fZ(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Y0(e){return function(){this.style.removeProperty(e)}}function X0(e,t,n){var r,i=n+``,a;return function(){var o=fZ(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function Z0(e,t,n){var r,i,a;return function(){var o=fZ(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),fZ(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function Q0(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=z1(this,e),l=c.on,u=c.value[a]==null?s||=Y0(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function $0(e,t,n){var r=(e+=``)==`transform`?r1:e0;return t==null?this.styleTween(e,J0(e,r)).on(`end.style.`+e,Y0(e)):typeof t==`function`?this.styleTween(e,Z0(e,r,Q1(this,`style.`+e,t))).each(Q0(this._id,e)):this.styleTween(e,X0(e,r,t),n).on(`end.style.`+e,null)}var e2=o((()=>{f1(),BQ(),W1(),$1(),t0()}));function t2(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function n2(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&t2(e,a,n)),r}return a._value=t,a}function r2(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,n2(e,t,n??``))}var i2=o((()=>{}));function a2(e){return function(){this.textContent=e}}function o2(e){return function(){var t=e(this);this.textContent=t??``}}function s2(e){return this.tween(`text`,typeof e==`function`?o2(Q1(this,`text`,e)):a2(e==null?``:e+``))}var c2=o((()=>{$1()}));function l2(e){return function(t){this.textContent=e.call(this,t)}}function u2(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&l2(r)),t}return r._value=e,r}function d2(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,u2(e))}var f2=o((()=>{}));function p2(){for(var e=this._name,t=this._id,n=y2(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=B1(c,t);L1(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new _2(r,this._parents,e,n)}var m2=o((()=>{S2(),W1()}));function h2(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=z1(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var g2=o((()=>{W1()}));function _2(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function v2(e){return yQ().transition(e)}function y2(){return++b2}var b2,x2,S2=o((()=>{BQ(),l0(),h0(),y0(),C0(),E0(),k0(),j0(),N0(),L0(),B0(),H0(),W0(),q0(),e2(),i2(),c2(),f2(),m2(),$1(),g2(),b2=0,x2=yQ.prototype,_2.prototype=v2.prototype={constructor:_2,select:V0,selectAll:U0,filter:A0,merge:M0,selection:G0,transition:p2,call:x2.call,nodes:x2.nodes,node:x2.node,size:x2.size,empty:x2.empty,each:x2.each,on:I0,attr:c0,attrTween:m0,style:$0,styleTween:r2,text:s2,textTween:d2,remove:z0,tween:Z1,delay:v0,duration:S0,ease:T0,easeVarying:O0,end:h2,[Symbol.iterator]:x2[Symbol.iterator]}}));function C2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var w2=o((()=>{})),T2=o((()=>{w2()}));function E2(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function D2(e){var t,n;e instanceof _2?(t=e._id,e=e._name):(t=y2(),(n=O2).time=p1(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&L1(c,e,t,l,o,n||E2(c,t));return new _2(r,this._parents,e,t)}var O2,k2=o((()=>{S2(),W1(),T2(),I1(),O2={time:null,delay:0,duration:250,ease:C2}})),A2=o((()=>{BQ(),J1(),k2(),yQ.prototype.interrupt=q1,yQ.prototype.transition=D2})),j2=o((()=>{S2(),W1()})),M2=o((()=>{A2(),S2(),j2(),K1()})),N2,P2=o((()=>{N2=e=>()=>e}));function F2(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}var I2=o((()=>{}));function L2(e,t,n){this.k=e,this.x=t,this.y=n}function R2(e){for(;!e.__zoom;)if(!(e=e.parentNode))return z2;return e.__zoom}var z2,B2=o((()=>{L2.prototype={constructor:L2,scale:function(e){return e===1?this:new L2(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new L2(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}},z2=new L2(1,0,0),R2.prototype=L2.prototype}));function V2(e){e.stopImmediatePropagation()}function H2(e){e.preventDefault(),e.stopImmediatePropagation()}var U2=o((()=>{}));function W2(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function G2(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function K2(){return this.__zoom||z2}function q2(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?
vendor: 4,473 bytes, line 49
491:.002)*(e.ctrlKey?10:1)}function J2(){return navigator.maxTouchPoints||`ontouchstart`in this}function Y2(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function X2(){var e=W2,t=G2,n=Y2,r=q2,i=J2,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=u1,l=EY(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,K2).on(`wheel.zoom`,w).on(`mousedown.zoom`,T).on(`dblclick.zoom`,E).filter(i).on(`touchstart.zoom`,D).on(`touchmove.zoom`,O).on(`touchend.zoom touchcancel.zoom`,k).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,K2),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(z2.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new L2(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new L2(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new L2(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=CQ(this.that).datum();l.call(e,this.that,new F2(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function w(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=NQ(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],G1(this),s.start();H2(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function T(t,...r){if(f||!e.apply(this,arguments))return;var i=S(this,r,!0).event(t),a=CQ(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),s=NQ(t,c),c=t.currentTarget,l=t.clientX,u=t.clientY;UQ(t.view),V2(t),i.mouse=[s,this.__zoom.invert(s)],G1(this),i.start();function d(e){if(H2(e),!i.moved){var t=e.clientX-l,r=e.clientY-u;i.moved=t*t+r*r>h}i.event(e).zoom(`mouse`,n(y(i.that.__zoom,i.mouse[0]=NQ(e,c),i.mouse[1]),i.extent,o))}
49function p(e){a.on(`mousemove.zoom mouseup.zoom`,null),WQ(e.view,i.moved),H2(e),i.event(e).end()}}function E(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=NQ(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);H2(r),s>0?CQ(this).transition().duration(s).call(x,d,c,r):CQ(this).call(_.transform,d,c,r)}}function D(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(V2(t),s=0;s<i;++s)c=r[s],l=NQ(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),G1(this),a.start())}}function O(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(H2(e),s=0;s<a;++s)c=i[s],l=NQ(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function k(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(V2(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=NQ(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=CQ(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:N2(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:N2(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:N2(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:N2([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}var Z2=o((()=>{NY(),KQ(),f1(),BQ(),M2(),P2(),I2(),B2(),U2()})),Q2=c({zoom:()=>X2,zoomIdentity:()=>z2,zoomTransform:()=>R2}),$2=o((()=>{Z2(),B2()})),e4=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e,p(),NH(),(qJ(),d(KJ)),(TY(),d(wY)),($2(),d(Q2)),(BQ(),d(zQ))):typeof define==`function`&&define.amd?define([`exports`,`react`,`prop-types`,`d3-geo`,`topojson-client`,`d3-zoom`,`d3-selection`],r):r((n=typeof globalThis<`u`?globalThis:n||self).reactSimpleMaps=n.reactSimpleMaps||{},n.React,n.PropTypes,n.d3,n.topojson,n.d3,n.d3)})(e,(function(e,t,n,r,i,a,o){function s(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var l=s(t),u=s(n),d=c(r);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
49t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e){return m=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},m(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}function _(e,t){if(e==null)return{};var n,r,i=function(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||n.return==null||n.return()}finally{if(s)throw i}}return a}}(e,t)||function(e,t){if(e){if(typeof e==`string`)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}}(e,t)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
50In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function y(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var b=[`width`,`height`,`projection`,`projectionConfig`],x=d.geoPath,S=_(d,[`geoPath`]),C=t.createContext(),w=function(e){var n=e.width,r=e.height,i=e.projection,a=e.projectionConfig,o=_(e,b),s=v(a.center||[],2),c=s[0],u=s[1],d=v(a.rotate||[],3),f=d[0],p=d[1],m=d[2],h=v(a.parallels||[],2),y=h[0],w=h[1],T=a.scale||null,E=t.useMemo((function(){return function(e){var t=e.projectionConfig,n=t===void 0?{}:t,r=e.projection,i=r===void 0?`geoEqualEarth`:r,a=e.width,o=a===void 0?800:a,s=e.height,c=s===void 0?600:s;if(typeof i==`function`)return i;var l=S[i]().translate([o/2,c/2]);return[l.center?`center`:null,l.rotate?`rotate`:null,l.scale?`scale`:null,l.parallels?`parallels`:null].forEach((function(e){e&&(l=l[e](n[e]||l[e]()))})),l}({projectionConfig:{center:c||c===0||u||u===0?[c,u]:null,rotate:f||f===0||p||p===0?[f,p,m]:null,parallels:y||y===0||w||w===0?[y,w]:null,scale:T},projection:i,width:n,height:r})}),[n,r,i,c,u,f,p,m,y,w,T]),D=t.useCallback(E,[E]),O=t.useMemo((function(){return{width:n,height:r,projection:D,path:x().projection(D)}}),[n,r,D]);return l.default.createElement(C.Provider,g({value:O},o))};w.propTypes={width:u.default.number,height:u.default.number,projection:u.default.oneOfType([u.default.string,u.default.func]),projectionConfig:u.default.object};var T=[`width`,`height`,`projection`,`projectionConfig`,`className`],E=t.forwardRef((function(e,t){var n=e.width,r=n===void 0?800:n,i=e.he
50ight,a=i===void 0?600:i,o=e.projection,s=o===void 0?`geoEqualEarth`:o,c=e.projectionConfig,u=c===void 0?{}:c,d=e.className,f=d===void 0?``:d,p=_(e,T);return l.default.createElement(w,{width:r,height:a,projection:s,projectionConfig:u},l.default.createElement(`svg`,g({ref:t,viewBox:`0 0 ${r} ${a}`,className:`rsm-svg ${f}`},p)))}));function D(e,t,n){var r=(e*n.k-e)/2,i=(t*n.k-t)/2;return[e/2-(r+n.x)/n.k,t/2-(i+n.y)/n.k]}function O(e,t){if(e.type!==`Topology`)return t?t(e.features||e):e.features||e;var n=i.feature(e,e.objects[Object.keys(e.objects)[0]]).features;return t?t(n):n}function k(e){return e.type===`Topology`?{outline:i.mesh(e,e.objects[Object.keys(e.objects)[0]],(function(e,t){return e===t})),borders:i.mesh(e,e.objects[Object.keys(e.objects)[0]],(function(e,t){return e!==t}))}:null}function A(e,t){return e?e.map((function(e,n){return p(p({},e),{},{rsmKey:`geo-${n}`,svgPath:t(e)})})):[]}function j(e){var n=e.geography,r=e.parseGeographies,i=t.useContext(C).path,a=v(t.useState({}),2),o=a[0],s=a[1];t.useEffect((function(){var e;(typeof window>`u`?`undefined`:m(window))!==`undefined`&&n&&(typeof n==`string`?(e=n,fetch(e).then((function(e){if(!e.ok)throw Error(e.statusText);return e.json()})).catch((function(e){console.log(`There was a problem when fetching the data: `,e)}))).then((function(e){e&&s({geographies:O(e,r),mesh:k(e)})})):s({geographies:O(n,r),mesh:k(n)}))}),[n,r]);var c=t.useMemo((function(){var e=o.mesh||{},t=function(e,t,n){return e&&t?{outline:p(p({},e),{},{rsmKey:`outline`,svgPath:n(e)}),borders:p(p({},t),{},{rsmKey:`borders`,svgPath:n(t)})}:{}}(e.outline,e.borders,i);return{geographies:A(o.geographies,i),outline:t.outline,borders:t.borders}}),[o,i]);return{geographies:c.geographies,outline:c.outline,borders:c.borders}}E.displayName=`ComposableMap`,E.propTypes={width:u.default.number,height:u.default.number,projection:u.default.oneOfType([u.default.string,u.default.func]),projectionConfig:u.default.object,className:u.default.string};var M=[`geography`,`children`,`parseGeographies`,`className`],N=t.forwardRef((function(e,n){var r=e.geography,i=e.children,a=e.parseGeographies,o=e.className,s=o===void 0?``:o,c=_(e,M),u=t.useContext(C),d=u.path,f=u.projection,p=j({geography:r,parseGeographies:a}),m=p.geographies,h=p.outline,v=p.borders;return l.default.createElement(`g`,g({ref:n,className:`rsm-geographies ${s}`},c),m&&m.length>0&&i({geographies:m,outline:h,borders:v,path:d,projection:f}))}));N.displayName=`Geographies`,N.propTypes={geography:u.default.oneOfType([u.default.string,u.default.object,u.default.array]),children:u.default.func,parseGeographies:u.default.func,className:u.default.string};var ee=[`geography`,`onMouseEnter`,`onMouseLeave`,`onMouseDown`,`onMouseUp`,`onFocus`,`onBlur`,`style`,`className`],te=t.forwardRef((function(e,n){var r=e.geography,i=e.onMouseEnter,a=e.onMouseLeave,o=e.onMouseDown,s=e.onMouseUp,c=e.onFocus,u=e.onBlur,d=e.style,f=d===void 0?{}:d,p=e.className,m=p===void 0?``:p,h=_(e,ee),y=v(t.useState(!1),2),b=y[0],x=y[1],S=v(t.useState(!1),2),C=S[0],w=S[1];return l.default.createElement(`path`,g({ref:n,tabIndex:`0`,className:`rsm-geography ${m}`,d:r.svgPath,onMouseEnter:function(e){w(!0),i&&i(e)},onMouseLeave:function(e){w(!1),b&&x(!1),a&&a(e)},onFocus:function(e){w(!0),c&&c(e)},onBlur:function(e){w(!1),b&&x(!1),u&&u(e)},onMouseDown:function(e){x(!0),o&&o(e)},onMouseUp:function(e){x(!1),s&&s(e)},style:f[b||C?b?`pressed`:`hover`:`default`]},h))}));te.displayName=`Geography`,te.propTypes={geography:u.default.object,onMouseEnter:u.default.func,onMouseLeave:u.default.func,onMouseDown:u.default.func,onMouseUp:u.default.func,onFocus:u.default.func,onBlur:u.default.func,style:u.default.object,className:u.default.string};var P=t.memo(te),F=[`fill`,`stroke`,`step`,`className`],ne=t.forwardRef((function(e,n){var i=e.fill,a=i===void 0?`transparent`:i,o=e.stroke,s=o===void 0?`currentcolor`:o,c=e.step,u=c===void 0?[10,10]:c,d=e.className,f=d===void 0?``:d,p=_(e,F),m=t.useContext(C).path;return l.default.createElement(`path`,g({ref:n,d:m(r.geoGraticule().step(u)()),fill:a,stroke:s,className:`rsm-graticule ${f}`},p))}));
50ne.displayName=`Graticule`,ne.propTypes={fill:u.default.string,stroke:u.default.string,step:u.default.array,className:u.default.string};var re=t.memo(ne),ie=[`value`],ae=t.createContext(),I={x:0,y:0,k:1,transformString:`translate(0 0) scale(1)`},L=function(e){var t=e.value,n=t===void 0?I:t,r=_(e,ie);return l.default.createElement(ae.Provider,g({value:n},r))};L.propTypes={x:u.default.number,y:u.default.number,k:u.default.number,transformString:u.default.string};function oe(e){var n=e.center,r=e.filterZoomEvent,i=e.onMoveStart,s=e.onMoveEnd,c=e.onMove,l=e.translateExtent,u=l===void 0?[[-1/0,-1/0],[1/0,1/0]]:l,d=e.scaleExtent,f=d===void 0?[1,8]:d,p=e.zoom,m=p===void 0?1:p,h=t.useContext(C),g=h.width,_=h.height,y=h.projection,b=v(n,2),x=b[0],S=b[1],w=v(t.useState({x:0,y:0,k:1}),2),T=w[0],E=w[1],O=t.useRef({x:0,y:0,k:1}),k=t.useRef(),A=t.useRef(),j=t.useRef(!1),M=v(u,2),N=M[0],ee=M[1],te=v(N,2),P=te[0],F=te[1],ne=v(ee,2),re=ne[0],ie=ne[1],ae=v(f,2),I=ae[0],L=ae[1];return t.useEffect((function(){var e=o.select(k.current),t=a.zoom().filter((function(e){return r?r(e):!!e&&!e.ctrlKey&&!e.button})).scaleExtent([I,L]).translateExtent([[P,F],[re,ie]]).on(`start`,(function(e){i&&!j.current&&i({coordinates:y.invert(D(g,_,e.transform)),zoom:e.transform.k},e)})).on(`zoom`,(function(e){if(!j.current){var t=e.transform,n=e.sourceEvent;E({x:t.x,y:t.y,k:t.k,dragging:n}),c&&c({x:t.x,y:t.y,zoom:t.k,dragging:n},e)}})).on(`end`,(function(e){if(j.current)j.current=!1;else{var t=v(y.invert(D(g,_,e.transform)),2),n=t[0],r=t[1];O.current={x:n,y:r,k:e.transform.k},s&&s({coordinates:[n,r],zoom:e.transform.k},e)}}));A.current=t,e.call(t)}),[g,_,P,F,re,ie,I,L,y,i,c,s,r]),t.useEffect((function(){if(x!==O.current.x||S!==O.current.y||m!==O.current.k){var e=y([x,S]),t=e[0]*m,n=e[1]*m,r=o.select(k.current);j.current=!0,r.call(A.current.transform,a.zoomIdentity.translate(g/2-t,_/2-n).scale(m)),E({x:g/2-t,y:_/2-n,k:m}),O.current={x,y:S,k:m}}}),[x,S,m,g,_,y]),{mapRef:k,position:T,transformString:`translate(${T.x} ${T.y}) scale(${T.k})`}}var R=[`center`,`zoom`,`minZoom`,`maxZoom`,`translateExtent`,`filterZoomEvent`,`onMoveStart`,`onMove`,`onMoveEnd`,`className`],se=t.forwardRef((function(e,n){var r=e.center,i=r===void 0?[0,0]:r,a=e.zoom,o=a===void 0?1:a,s=e.minZoom,c=s===void 0?1:s,u=e.maxZoom,d=u===void 0?8:u,f=e.translateExtent,p=e.filterZoomEvent,m=e.onMoveStart,h=e.onMove,v=e.onMoveEnd,y=e.className,b=_(e,R),x=t.useContext(C),S=x.width,w=x.height,T=oe({center:i,filterZoomEvent:p,onMoveStart:m,onMove:h,onMoveEnd:v,scaleExtent:[c,d],translateExtent:f,zoom:o}),E=T.mapRef,D=T.transformString,O=T.position;return l.default.createElement(L,{value:{x:O.x,y:O.y,k:O.k,transformString:D}},l.default.createElement(`g`,{ref:E},l.default.createElement(`rect`,{width:S,height:w,fill:`transparent`}),l.default.createElement(`g`,g({ref:n,transform:D,className:`rsm-zoomable-group ${y}`},b))))}));se.displayName=`ZoomableGroup`,se.propTypes={center:u.default.array,zoom:u.default.number,minZoom:u.default.number,maxZoom:u.default.number,translateExtent:u.default.arrayOf(u.default.array),onMoveStart:u.default.func,onMove:u.default.func,onMoveEnd:u.default.func,className:u.default.string};var ce=[`id`,`fill`,`stroke`,`strokeWidth`,`className`],le=t.forwardRef((function(e,n){var r=e.id,i=r===void 0?`rsm-sphere`:r,a=e.fill,o=a===void 0?`transparent`:a,s=e.stroke,c=s===void 0?`currentcolor`:s,u=e.strokeWidth,d=u===void 0?.5:u,f=e.className,p=f===void 0?``:f,m=_(e,ce),h=t.useContext(C).path,v=t.useMemo((function(){return h({type:`Sphere`})}),[h]);return l.default.createElement(t.Fragment,null,l.default.createElement(`defs`,null,l.default.createElement(`clipPath`,{id:i},l.default.createElement(`path`,{d:v}))),l.default.createElement(`path`,g({ref:n,d:v,fill:o,stroke:c,strokeWidth:d,style:{pointerEvents:`none`},className:`rsm-sphere ${p}`},m)))}));le.displayName=`Sphere`,le.propTypes={id:u.default.string,fill:u.default.string,stroke:u.default.string,strokeWidth:u.default.number,className:u.default.string};var ue=t.memo(le),de=[`coordinates`,`children`,`onMouseEnter`,`onMouseLeave`,`onMouseDown`,`onMouseUp`,`onFocus`,`onBlur`,`style`,`className`],fe=t.forwardRef((function(e,n){var r=e.coordinates,i=e.children,a=e.onMouseEnter,o=e.onMouseLeave,s=e.onMouseDown,c=e.onMouseUp,u=e.onFocus,d=e.onBlur,f=e.style,p=f===void 0?{}:f,m=e.className,h=m===void 0?``:m,y=_(e,de),b=t.useContext(C).projection,x=v(t.useState(!1),2),S=x[0],w=x[1],T=v(t.useState(!1),2),E=T[0],D=T[1],O=v(b(r),2),k=O[0],A=O[1];return l.default.createElement(`g`,g({ref:n,transform:`translate(${k}, ${A})`,className:`rsm-marker ${h}`,onMouseEnter:function(e){D(!0),a&&a(e)},onMouseLeave:function(e){D(!1),S&&w(!1),o&&o(e)},onFocus:function(e){D(!0),u&&u(e)},onBlur:function(e){D(!1),S&&w(!1),d&&d(e)},onMouseDown:function(e){w(!0),s&&s(e)},onMouseUp:function(e){w(!1),c&&c(e)},style:p[S||E?S?`pressed`:`hover`:`default`]},y),i)}));fe.displayName=`Marker`,fe.propTypes={coordinates:u.default.array,children:u.default.oneOfType([u.default.node,u.default.arrayOf(u.default.node)]),onMouseEnter:u.default.func,onMouseLeave:u.default.func,onMouseDown:u.default.func,onMouseUp:u.default.func,onFocus:u.default.func,onBlur:u.default.func,style:u.default.object,className:u.default.string};var pe=[`from`,`to`,`coordinates`,`stroke`,`strokeWidth`,`fill`,`className`],me=t.forwardRef((function(e,n){var r=e.from,i=r===void 0?[0,0]:r,a=e.to,o=a===void 0?[0,0]:a,s=e.coordinates,c=e.stroke,u=c===void 0?`currentcolor`:c,d=e.strokeWidth,f=d===void 0?3:d,p=e.fill,m=p===void 0?`transparent`:p,h=e.className,v=h===void 0?``:h,y=_(e,pe),b=t.useContext(C).path,x={type:`LineString`,coordinates:s||[i,o]};return l.default.createElement(`path`,g({ref:n,d:b(x),className:`rsm-line ${v}`,stroke:u,strokeWidth:f,fill:m},y))}));me.displayName=`Line`,me.propTypes={from:u.default.array,to:u.default.array,coordinates:u.default.array,stroke:u.default.string,strokeWidth:u.default.number,fill:u.default.string,className:u.default.string};var he=[`subject`,`children`,`connectorProps`,`dx`,`dy`,`curve`,`className`],ge=t.forwardRef((function(e,n){var r=e.subject,i=e.children,a=e.connectorProps,o=e.dx,s=o===void 0?30:o,c=e.dy,u=c===void 0?30:c,d=e.curve,f=d===void 0?0:d,p=e.className,m=p===void 0?``:p,h=_(e,he),y=v((0,t.useContext(C).projection)(r),2),b=y[0],x=y[1],S=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:30,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:30,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.5,r=Array.isArray(n)?n:[n,n],i=e/2*r[0],a=t/2*r[1];return`M0,0 Q${-e/2-i},${-t/2+a} ${-e},${-t}`}(s,u,f);return l.default.createElement(`g`,g({ref:n,transform:`translate(${b+s}, ${x+u})`,className:`rsm-annotation ${m}`},h),l.default.createElement(`path`,g({d:S,fill:`transparent`,stroke:`#000`},a)),i)}));ge.displayName=`Annotation`,ge.propTypes={subject:u.default.array,children:u.default.oneOfType([u.default.node,u.default.arrayOf(u.default.node)]),dx:u.default.number,dy:u.default.number,curve:u.default.number,connectorProps:u.default.object,className:u.default.string},e.Annotation=ge,e.ComposableMap=E,e.Geographies=N,e.Geography=P,e.Graticule=re,e.Line=me,e.MapContext=C,e.MapProvi
50der=w,e.Marker=fe,e.Sphere=ue,e.ZoomPanContext=ae,e.ZoomPanProvider=L,e.ZoomableGroup=se,e.useGeographies=j,e.useMapContext=function(){return t.useContext(C)},e.useZoomPan=oe,e.useZoomPanContext=function(){return t.useContext(ae)},Object.defineProperty(e,"__esModule",{value:!0})}))}))(),t4=[{region:`Sul`,value:39,color:`#5A0A11`},{region:`Norte`,value:36,color:`#7E0C15`},{region:`Sudeste`,value:33,color:`#A60F1A`},{region:`Centro-Oeste`,value:33,color:`#C2121F`},{region:`Nordeste`,value:25,color:`var(--primary)`}],yse=`/br-states.json`;function bse({data:e=t4}){let t=Object.fromEntries(e.map(e=>[e.region,e])),[n,r]=(0,w.useState)(null),i=(0,w.useMemo)(()=>typeof window<`u`&&window.matchMedia(`(hover: none)`).matches,[]);return(0,z.jsx)(YB,{children:(0,z.jsx)(e4.ComposableMap,{projection:`geoMercator`,projectionConfig:{scale:700,center:[-54,-15]},width:800,height:600,preserveAspectRatio:`xMidYMid meet`,className:`w-full h-full`,children:(0,z.jsx)(e4.Geographies,{geography:yse,children:({geographies:e})=>e.map(e=>{let a=e.properties.regiao,o=a?t[a]:void 0,s=o?.color??`#1a1a1a`;return(0,z.jsxs)(XB,{open:i?n===e.rsmKey:void 0,children:[(0,z.jsx)(ZB,{render:(0,z.jsx)(e4.Geography,{geography:e,fill:s,stroke:`#000`,strokeWidth:.5,onClick:i?()=>r(t=>t===e.rsmKey?null:e.rsmKey):void 0,style:{default:{outline:`none`},hover:{outline:`none`,opacity:.85},pressed:{outline:`none`}}})}),o&&(0,z.jsxs)(QB,{children:[o.region,` · `,o.value,`%`]})]},e.rsmKey)})})})})}function n4({pill:e,title:t,subtitle:n}){return(0,z.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,z.jsx)(Bi,{title:e}),(0,z.jsx)(Fi,{size:6,weight:`bold`,children:t}),n&&(0,z.jsx)(H,{color:`silver`,className:`w-full tablet:w-140`,children:n})]})}function r4({title:e,subtitle:t}){return(0,z.jsxs)(`div`,{className:`flex flex-col gap-0`,children:[(0,z.jsx)(Fi,{size:1,weight:`bold`,children:e}),t&&(0,z.jsx)(H,{color:`silver`,children:t})]})}function xse({title:e,subtitle:t,items:n,footerText:r,source:i,onSourceClick:a,className:o}){return(0,z.jsxs)(er,{className:o,children:[e&&(0,z.jsx)(r4,{title:e,subtitle:t}),(0,z.jsx)(`div`,{className:`flex flex-col gap-4`,children:n.map(e=>(0,z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,z.jsxs)(`div`,{className:`flex items-end justify-between gap-4`,children:[(0,z.jsx)(H,{weight:`bold`,children:e.title}),(0,z.jsx)(H,{weight:`bold`,className:`shrink-0`,children:e.subt
50itle})]}),(0,z.jsx)(`div`,{className:`h-2 w-full rounded-full bg-muted overflow-hidden`,children:(0,z.jsx)(`div`,{className:`h-full rounded-full`,style:{width:`${e.scoreValue}%`,backgroundColor:e.color}})})]},e.title))}),(0,z.jsx)(na,{}),r&&(0,z.jsx)(H,{color:`silver`,children:r}),i&&(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsx)(H,{color:`silver`,children:i}),a&&(0,z.jsx)(cH,{title:`Ver fonte`,onClick:a})]})]})}function Sse(){let e=[...t4].sort((e,t)=>t.value-e.value);return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`Recorte regional`,title:(0,z.jsxs)(z.Fragment,{children:[`A IA tem `,(0,z.jsx)(`span`,{className:`text-primary`,children:`endereço`})]}),subtitle:`Entre quem já usa a internet, a região pesa pouco no uso de IA. O Sul lidera, o Sudeste fica na média nacional e o Nordeste fecha a lista, 14 pontos abaixo do topo.`}),(0,z.jsxs)(`div`,{className:`flex flex-col tablet:flex-row justify-between w-full gap-3`,children:[(0,z.jsx)(er,{children:(0,z.jsx)(`div`,{className:`h-72 tablet:h-full tablet:min-h-80 desktop:h-105 flex items-center justify-center tablet:min-w-0`,children:(0,z.jsx)(bse,{})})}),(0,z.jsx)(xse,{title:`Uso de IA por região`,subtitle:`Fatia de usuários de internet que já recorreram à IA generativa em cada região.`,items:e.map(e=>({title:e.region,subtitle:`${e.value}%`,scoreValue:e.value,color:e.color})),footerText:`A média nacional fica perto de uma em cada duas pessoas conectadas. O recorte regional não soma 100%: cada número é a taxa de adoção dentro da própria região.`,source:`TIC Domicílios 2025 · uso de IA por região`,onSourceClick:()=>lH(dH.url)})]})]})}function i4({description:e}){return(0,z.jsx)(`div`,{className:`bg-background rounded-md border-l-2 border-primary p-4`,children:(0,z.jsx)(H,{color:`silver`,children:e})})}function a4({title:e,subtitle:t,scoreValue:n,description:r,complement:i,highlight:a=!1,icon:o}){return(0,z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,z.jsxs)(`div`,{className:`flex items-end justify-between gap-4`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2 min-w-0`,children:[o&&(0,z.jsx)(`span`,{className:`shrink-0`,children:o}),(0,z.jsxs)(`div`,{className:`flex flex-col min-w-0`,children:[(0,z.jsx)(H,{weight:`bold`,className:a?`text-primary`:``,children:e}),r&&(0,z.jsx)(H,{size:1,color:`silver`,children:r})]})]}),(0,z.jsxs)(`div`,{className:`flex items-baseline gap-1 shrink-0 whitespace-nowrap`,children:[(0,z.jsx)(H,{weight:`bold`,children:t}),i&&(0,z.jsxs)(H,{size:1,color:`silver`,children:[`· `,i]})]})]}),(0,z.jsx)(po,{value:n})]})}var Cse=28;function o4({title:e,subtitle:t,topContent:n,items:r,footerText:i,footerHighlight:a,source:o,onSourceClick:s,className:c,scrollable:l=!1,visibleItems:u=3}){let d=(0,w.useRef)(null),[f,p]=(0,w.useState)();(0,w.useLayoutEffect)(()=>{if(!l||!d.current)return;let e=()=>{let e=d.current?.querySelectorAll(`[data-score-row]`);if(!e||e.length<u)return;let t=e[0],n=e[u-1],r=e[u];p(n.offsetTop+n.offsetHeight-t.offsetTop+(r?Cse:0))},t=new ResizeObserver(e);return t.observe(d.current),e(),()=>t.disconnect()},[l,u]);let m=(0,z.jsx)(`div`,{ref:d,className:`flex flex-col gap-4`,children:r.map(e=>(0,z.jsx)(`div`,{"data-score-row":!0,children:(0,z.jsx)(a4,{title:e.title,subtitle:e.subtitle,scoreValue:e.scoreValue,description:e.description,complement:e.complement,highlight:e.highlight,icon:e.icon})},e.title))});return(0,z.jsxs)(er,{className:c,children:[e&&(0,z.jsx)(r4,{title:e,subtitle:t}),n,l?(0,z.jsx)(vL,{className:`w-full -mr-3 pr-3`,style:{height:f??320},children:m}):m,(0,z.jsx)(na,{}),i&&(0,z.jsx)(H,{color:`silver`,children:i}),a&&(0,z.jsx)(i4,{description:a}),o&&(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsx)(H,{color:`silver`,children:o}),s&&(0,z.jsx)(cH,{title:`Ver fonte`,onClick:s})]})]})}var s4=w.createContext(void 0);function c4(){let e=w.useContext(s4);if(e===void 0)throw Error(ha(13));return e}var l4={imageLoadingStatus:()=>null},wse=w.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,[o,s]=w.useState(`idle`),c={imageLoadingStatus:o},l=w.useMemo(()=>({imageLoadingStatus:o,setImageLoadingStatus:s}),[o,s]),u=Ka(`span`,e,{state:c,ref:t,props:a,stateAttributesMapping:l4});return(0,z.jsx)(s4.Provider,{value:l,children:u})});function Tse(e,{referrerPolicy:t,crossOrigin:n,sizes:r,srcSet:i}){let[a,o]=w.useState(`idle`);return U(()=>
50{if(!e&&!i)return o(`error`),Ea;let a=!0,s=new window.Image,c=e=>()=>{a&&o(e)};return o(`loading`),s.onload=c(`loaded`),s.onerror=c(`error`),t&&(s.referrerPolicy=t),s.crossOrigin=n??null,r&&(s.sizes=r),i&&(s.srcset=i),e&&(s.src=e),s.complete&&o(s.naturalWidth>0?`loaded`:`error`),()=>{a=!1}},[e,i,r,n,t]),a}var Ese={...l4,...pz},Dse=w.forwardRef(function(e,t){let{className:n,render:r,onLoadingStatusChange:i,style:a,...o}=e,{setImageLoadingStatus:s}=c4(),c=Tse(o.src,o),l=c===`loaded`,{mounted:u,transitionStatus:d,setMounted:f}=lz(l),p=w.useRef(null),m=OF(e=>{i?.(e),s(e)});U(()=>{c!==`idle`&&m(c)},[c,m]),U(()=>()=>s(`idle`),[s]),hz({open:l,ref:p,onComplete(){l||f(!1)}});let h=Ka(`img`,e,{state:{imageLoadingStatus:c,transitionStatus:d},ref:[t,p],props:o,stateAttributesMapping:Ese,enabled:u});return u?h:null}),Ose=w.forwardRef(function(e,t){let{className:n,render:r,delay:i,style:a,...o}=e,{imageLoadingStatus:s}=c4(),[c,l]=w.useState(i===void 0),u=MF();return w.useEffect(()=>(i===void 0?l(!0):u.start(i,()=>l(!0)),u.clear),[u,i]),Ka(`span`,e,{state:{imageLoadingStatus:s},ref:t,props:o,stateAttributesMapping:l4,enabled:s!==`loaded`&&(i===void 0||c)})});function kse({className:e,size:t=`default`,...n}){return(0,z.jsx)(wse,{"data-slot":`avatar`,"data-size":t,className:Ai(`group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten`,e),...n})}function Ase({className:e,...t}){return(0,z.jsx)(Dse,{"data-slot":`avatar-image`,className:Ai(`aspect-square size-full rounded-full object-cover`,e),...t})}function jse({className:e,...t}){return(0,z.jsx)(Ose,{"data-slot":`avatar-fallback`,className:Ai(`flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs`,e),...t})}var Mse=`/assets/alvaro-BMEiJnpq.png`;function u4({name:e,title:t,note:n,className:r}){return(0,z.jsxs)(er,{className:r,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,z.jsxs)(kse,{size:`lg`,children:[(0,z.jsx)(Ase,{src:Mse,alt:e}),(0,z.jsx)(jse,{children:`AM`})]}),(0,z.jsxs)(`div`,{className:`flex flex-col`,children:[(0,z.jsx)(Fi,{children:e}),(0,z.jsx)(H,{size:1,color:`silver`,children:`Curadoria editorial · Radar CNN`})]})]}),(0,z.jsx)(na,{}),(0,z.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[t&&(0,z.jsx)(Fi,{children:t}),n.map((e,t)=>(0,z.jsx)(H,{color:`silver`,children:e},t))]})]})}var Nse=[{socialClass:`Classe A`,value:69,people:`≈ 2 mi`},{socialClass:`Classe B`,value:52,people:`≈ 16 mi`},{socialClass:`Classe C`,value:32,people:`≈ 26 mi`},{socialClass:`Classes D e E`,value:16,people:`≈ 7 mi`,highlight:!0}];function Pse(){return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`Como a IA cresce · no dia a dia`,title:(0,z.jsxs)(z.Fragment,{children:[`A IA chegou primeiro para `,(0,z.jsx)(`span`,{className:`text-primary`,children:`quem já tinha mais`})]}),subtitle:`A adoção sobe com a classe social. Entre a classe A e as classes D e E, a diferença chega a 53 pontos. Somados, os quatro grupos formam os 50 milhões de brasileiros que usam IA.`}),(0,z.jsxs)(`div`,{className:`flex flex-col tablet:flex-row justify-between w-full gap-3`,children:[(0,z.jsx)(o4,{title:`A renda decide`,items:Nse.map(e=>({title:e.socialClass,subtitle:`${e.value}%`,complement:e.people,scoreValue:e.value,highlight:e.highlight})),footerHighlight:`53 pontos separam o topo da base. É o maior fosso digital que a pesquisa mede, acima do Pix e do acesso básico à internet.`,source:`Cetic.br · TIC Domicílios 2025 · uso por grupo`,onSourceClick:()=>lH(dH.url)}),(0,z.jsx)(u4,{name:`Álvaro Machado Dias`,title:`O gráfico desmente a promessa.`,note:[`A tecnologia que prometia nivelar é a mais concentrada que o país já mediu.`,`O fosso de 53 pontos entre a classe A e as classes D e E supera o do Pix, de 38, e deixa longe o do acesso à internet, que hoje chega a quase todos os domicílios. A explicação está no tipo de esforço que cada tecnologia cobra. Rede basta ter; IA é preciso operar, e operar pede repertório, tempo livre e uma pergunta na cabeça, recursos que se distribuem de forma tão desigual quanto a renda. Na minha experiência, tecnologias que dependem da iniciativa do usuário chegam primeiro a quem menos precisaria delas, e a IA apenas radicalizou esse padrão. Nada no gráfico sugere que a distância vá se fechar sozinha.`]})]})]})}var Fse=[{uso:`Uso pessoal`,descricao:`resolver, escrever, pesquisar, organizar a própria vida`,valor:84,pessoas:`43,8 mi`},{uso:`Ensino`,descricao:`pesquisa, escola ou faculdade`,valor:53,pessoas:`27,6 mi`},{uso:`Trabalho`,descricao:`uso profissional`,valor:50,pessoas:`26,2 mi`}];function Ise(){return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`Como a IA cresce · no dia a dia`,title:(0,z.jsxs)(z.Fragment,{children:[`A IA entrou na `,(0,z.jsx)(`span`,{className:`text-primary`,children:`casa`}),` do brasileiro antes de entrar no escritório`]}),subtitle:`De quem já usa IA no Brasil, a grande maioria recorre a ela para a própria vida. O estudo e o trabalho vêm atrás, e quase empatados.`}),(0,z.jsxs)(`div`,{className:`flex flex-col tablet:flex-row justify-between w-full gap-3`,children:[(0,z.jsx)(o4,{title:`Uso pessoal lidera`,items:Fse.map(e=>({title:e.uso,description:e.descricao,subtitle:`${e.valor}%`,complement:e.pessoas,scoreValue:e.valor})),footerText:`Base: os 51 milhões que já usaram IA. Cada pessoa pode marcar mais de uma finalidade, então os números não somam 100%.`}),(0,z.jsx)(u4,{name:`Álvaro Machado Dias`,title:`A IA virou hábito de casa antes de virar ferramenta de trabalho.`,note:[`De cada dez brasileiros que já usam, mais de oito recorrem a ela para tocar a própria vida, do texto difícil à pendência burocrática. Estudo e trabalho vêm bem atrás, quase empatados na metade.`,`A expectativa dos analistas sempre foi a inversa: a tecnologia entraria pelas empresas, atrás de produtivida
50de, e depois se espalharia. Aqui o brasileiro adotou primeiro por conta própria, sem chefe mandando nem curso ensinando. Na minha experiência, esse tipo de adoção espontânea vale mais que qualquer programa de capacitação, porque a pessoa chega ao escritório sabendo o que a ferramenta faz por ela. O problema passa a ser das empresas, que vão lidar com um uso que não desenharam e não controlam.`]})]})]})}function d4({stat:e,text:t}){return(0,z.jsxs)(`div`,{className:`flex items-start gap-4`,children:[(0,z.jsx)(Fi,{size:6,weight:`bold`,children:e}),(0,z.jsx)(H,{color:`silver`,children:t})]})}var Lse=[{item:`Aprovam`,value:86},{item:`Confiam`,value:55},{item:`Vão`,value:31,highlight:!0}],Rse=[{item:`Preocupados com riscos`,value:79},{item:`Querem regulação`,value:66},{item:`Temem uso eleitoral`,value:70},{item:`Querem leis contra desinformação`,value:84}];function zse(){return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`Como o Brasil vê a IA`,title:(0,z.jsxs)(z.Fragment,{children:[`Aprovam em massa, `,(0,z.jsx)(`span`,{className:`text-primary`,children:`confiam pela metade`})]})}),(0,z.jsxs)(`div`,{className:`flex flex-col tablet:flex-row justify-between w-full gap-3`,children:[(0,z.jsx)(o4,{title:`A distância entre aprovar e confiar`,subtitle:`Mesma pesquisa, mesma amostra. O vão de 31 pontos é o espaço da ansiedade coletiva.`,items:Lse.map(e=>({title:e.item,subtitle:`${e.value}`,scoreValue:e.value,highlight:e.highlight})),footerText:`A maioria quer regulação (66%), mas apenas 19% conhecem as regras que já existem. O mandato popular para regular convive com o desconhecimento sobre o que regular.`,source:`KPMG e Univ. de Melbourne 2025 · recorte Brasil`,onSourceClick:()=>lH(yH.url)}),(0,z.jsx)(o4,{topContent:(0,z.jsx)(d4,{stat:`91%`,text:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`span`,{className:`text-white`,children:`esperam que a IA`}),` `,(0,z.jsx)(`span`,{className:`text-primary`,children:`traga benefícios.`}),` O otimismo é alto e convive, sem contradição aparente, com a mesma desconfiança que segura a confiança em 55.`]})}),items:Rse.map(e=>({title:e.item,subtitle:`${e.value}%`,scoreValue:e.value})),source:`KPMG e Univ. de Melbourne 2025 · Brasil`,onSourceClick:()=>lH(yH.url)})]})]})}function Bse({label:e,value:t,text:n}){return(0,z.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,z.jsxs)(`div`,{className:`flex flex-col items-center bg-background rounded-md px-3 py-1.5 shrink-0`,children:[(0,z.jsx)(H,{size:1,color:`silver`,children:e}),(0,z.jsx)(H,{size:1,weight:`bold`,children:t})]}),(0,z.jsx)(H,{size:1,color:`silver`,children:n})]})}var Vse={mainStat:70,teachersUse:56,guidance:32,teachersPrepare:43};function Hse(){let e=Vse;return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`Como a IA cresce · na escola`,title:(0,z.jsxs)(z.Fragment,{children:[`A escola já `,(0,z.jsx)(`span`,{className:`text-primary`,children:`adotou`}),` a IA, mas ainda não ensinou a usá-la`]}),subtitle:`É o lugar onde a IA virou rotina mais rápido. O aluno chegou na frente do currículo, e a orientação ficou para trás.`}),(0,z.jsxs)(`div`,{className:`flex flex-col tablet:flex-row justify-between w-full gap-3`,children:[(0,z.jsxs)(er,{children:[(0,z.jsx)(d4,{stat:`${e.mainStat}%`,text:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`span`,{className:`text-white font-bold`,children:`dos estudantes brasileiros já usaram IA nos estudos`}),(0,z.jsx)(`br`,{}),`Pesquisa escolar, redação, preparação para prova. E não é só o aluno: `,(0,z.jsxs)(`span`,{className:`text-white font-bold`,children:[e.teachersUse,`% dos professores também já usaram.`]})]})}),(0,z.jsx)(Bse,{label:`orientação`,value:`${e.guidance}%`,text:`só 1 em 3 alunos recebeu orientação da escola sobre como usar`}),(0,z.jsx)(na,{}),(0,z.jsx)(a4,{title:`Professores que usam IA para preparar aulas`,subtitle:`${e.teachersPrepare}%`,scoreValue:e.teachersPrepare}),(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsx)(`div`,{className:`flex items-center gap-4`,children:(0,z.jsx)(H,{size:1,color:`silver`,children:`Cetic.br · TIC Educação 2024`})}),(0,z.jsx)(cH,{title:`Ver fonte`,onClick:()=>lH(hH.url)})]})]}),(0,z.jsx)(u4,{name:`Álvaro Machado Dias`,title:`A escola usa IA para dar aula e não ensina o aluno a usá-la.`,note:[`Quarenta e três por cento dos professores já preparam aulas com a ferramenta, sete em dez estudantes recorrem a ela para pesquisa, redação e prova, e ainda assim só um em três alunos recebeu orientação sobre como usar. Todo mundo adotou, ninguém ensina.`,`O Conselho Nacional de Educação aprovou normas em março, o que no Brasil costuma anteceder a prática em anos, não em meses. Na minha experiência, a lacuna séria está antes da regra: não existe medida nacional do efeito disso sobre o aprendizado, e sem esse número a discu
50ssão sobre proibir ou liberar é chute de ambos os lados.`]})]})]})}function f4({children:e}){return(0,z.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,z.jsx)(`div`,{className:`rounded-full bg-primary p-1 mt-1.5 shrink-0`}),(0,z.jsx)(H,{size:1,color:`silver`,children:e})]})}var Use={currentJobs:`73 mil`,previousJobs:`19 mil`,series:[{year:`2021`,value:19},{year:`2024`,value:73}],highlights:[`Engenheiro de IA é o cargo de crescimento mais rápido no país, à frente de toda a lista.`,`Salários em vagas que pedem IA sobem duas vezes mais rápido que os das vagas sem a tecnologia.`]},Wse=[{area:`Marketing ou vendas`,value:37},{area:`Segurança digital`,value:36},{area:`Gestão da empresa`,value:35},{area:`Processos administrativos`,value:33}];function Gse(){let e=Use,t=Math.max(...e.series.map(e=>e.value));return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`Como a IA cresce · no trabalho`,title:(0,z.jsxs)(z.Fragment,{children:[`O mercado pede IA, mas as empresas `,(0,z.jsx)(`span`,{className:`text-primary`,children:`compram em vez de contratar`})]}),subtitle:`O número de vagas que exigem IA quase quadruplicou em três anos. Mas as empresas adotam a tecnologia comprando software pronto, não contratando especialistas.`}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-2 desktop:grid-cols-3 gap-3 w-full`,children:[(0,z.jsxs)(er,{children:[(0,z.jsx)(r4,{title:`A demanda · quem o mercado procura`}),(0,z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,z.jsx)(Fi,{size:5,weight:`bold`,children:e.currentJobs}),(0,z.jsxs)(H,{color:`silver`,children:[`vagas exigiam conhecimento em IA no Brasil em 2024, contra`,` `,(0,z.jsx)(`span`,{className:`text-white font-bold`,children:e.previousJobs}),` em 2021. Uma alta de quase quatro vezes.`]})]}),(0,z.jsx)(`div`,{className:`flex flex-col gap-4`,children:e.series.map(e=>(0,z.jsx)(a4,{title:e.year,subtitle:`${e.value} mil`,scoreValue:e.value/t*100},e.year))}),(0,z.jsx)(na,{}),(0,z.jsx)(`div`,{className:`flex flex-col gap-3`,children:e.highlights.map((e,t)=>(0,z.jsx)(f4,{children:e},t))}),(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsx)(H,{size:1,color:`silver`,children:`PwC Barômetro de Empregos em IA 2025`}),(0,z.jsx)(cH,{title:`Ver fonte`,onClick:()=>lH(bH.url)})]})]}),(0,z.jsx)(o4,{title:`Por dentro · por onde a IA entra na empresa`,subtitle:`Entre as empresas brasileiras que já usam IA, em quais áreas a tecnologia aparece.`,items:Wse.map(e=>({title:e.area,subtitle:`${e.value}%`,scoreValue:e.value})),footerHighlight:`76% adquirem a IA como software pronto. Apenas 2% têm um engenheiro de machine learning no quadro.`,source:`Cetic.br · TIC Empresas 2025 · áreas de uso`,onSourceClick:()=>lH(mH.url)}),(0,z.jsx)(u4,{className:`tablet:col-span-2 desktop:col-span-1`,name:`Álvaro Machado Dias`,title:`O número que importa aqui é o da exigência, não o da substituição.`,note:[`Quando a vaga que pede IA quase quadruplica e o salário dessas posições sobe mais rápido, o mercado brasileiro está sinalizando ganho de produtividade esperado, com a tecnologia ampliando o trabalho humano em vez de eliminá-lo, padrão que se mantém mesmo nas funções vistas como automatizáveis.`,`A penetração revela o desenho real. A IA chega comprada, como software pronto, e se dilui nas áreas que já existem, do marketing à segurança, sem passar pela contratação de um especialista. Por isso o efeito aparece primeiro como uma competência cobrada de quase todos, e só depois, quando aparece, como um cargo novo.`]})]})]})}var Kse=[{item:`Não completariam o trabalho sem IA`,value:47},{item:`Usam a IA para executar, não para aprender`,value:54},{item:`Têm medo de ficar para trás sem usar`,value:46}];function qse(){return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`Efeito sobre quem usa`,title:(0,z.jsxs)(z.Fragment,{children:[`Metade já usa a IA para `,(0,z.jsx)(`span`,{className:`text-primary`,children:`entregar, não para aprender`})]}),subtitle:`Quase a metade dos profissionais diz que não tocaria o trabalho sem a ferramenta. O que esse atalho faz com o raciocínio ainda é cedo para cravar, mas os primeiros estudos não tranquilizam.`}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-2 desktop:grid-cols-3 gap-3 w-full`,children:[(0,z.jsx)(o4,{title:`A dependência que já dá para medir`,subtitle:`Entre quem usa IA no trabalho, o quanto ela virou condição para entregar.`,items:Kse.map(e=>({title:e.item,subtitle:`${e.value}%`,scoreValue:e.value})),footerHighlight:`Base: profissionais que já usam IA generativa no trabalho. Cada item é uma resposta independente, então os números não somam 100%.`,source:`Instituto Locomotiva para o Radar CNN IA · 2026`}),(0,z.jsxs)(er,{children:[(0,z.jsx)(r4,{title:`O que a ciência começa a ver`,subtitle:`A pergunta de fundo: delegar o pensamento à máquina enfraquece o pensamento de quem delega?`}),(0,z.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,z.jsxs)(f4,{children:[`No `,(0,z.jsx)(`span`,{className:`text-foreground  font-bold`,children:`MIT Media Lab`}
50),`, quem redige com IA mostra menor atividade cerebral e mal consegue citar o próprio texto, o que os autores chamam de `,(0,z.jsx)(`span`,{className:`text-primary`,children:`dívida cognitiva`}),`.`]}),(0,z.jsxs)(f4,{children:[`Um estudo com `,(0,z.jsx)(`span`,{className:`text-foreground font-bold`,children:`666 pessoas`}),` achou correlação negativa forte (`,(0,z.jsx)(`span`,{className:`text-foreground`,children:`r = -0,68`}),`) entre uso intenso de IA e pensamento crítico.`]}),(0,z.jsxs)(f4,{children:[(0,z.jsx)(`span`,{className:`text-foreground font-bold`,children:`Microsoft`}),` e`,` `,(0,z.jsx)(`span`,{className:`text-foreground font-bold`,children:`Carnegie Mellon:`}),` quanto mais o profissional confia na IA, menos esforço crítico ele aplica à própria tarefa.`]})]}),(0,z.jsx)(na,{}),(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsx)(H,{size:1,color:`silver`,children:`MIT Media Lab 2025 · Gerlich 2025...`}),(0,z.jsx)(uH,{sources:xH,dialogTitle:`O que a ciência começa a ver · fontes`})]})]}),(0,z.jsx)(u4,{className:`tablet:col-span-2 desktop:col-span-1`,name:`Álvaro Machado Dias`,title:`O dado firme aqui é a dependência, não a burrice.`,note:[`Quase metade não tocaria o trabalho sem a ferramenta, e mais da metade a usa para entregar em vez de aprender. Isso é hábito de uso, não diagnóstico de inteligência.`,`O risco cognitivo existe e os primeiros estudos apontam para ele, mas são poucos, correlacionais e feitos fora do Brasil. Tratar isso como sentença é cedo.`,`O que dá para afirmar é mais modesto e mais incômodo: quando a máquina faz a parte difícil, o músculo que não se exercita perde força. Valeu para o cálculo mental depois da calculadora, e vale aqui. A diferença é a escala e a velocidade.`]})]})]})}var Jse=[{porte:`Pequena`,faixa:`10 a 49 func.`,v2024:10,v2025:15},{porte:`Média`,faixa:`50 a 249 func.`,v2024:29,v2025:32},{porte:`Grande`,faixa:`250+ func.`,v2024:38,v2025:50},{porte:`Gerais`,faixa:`média do país`,v2024:13,v2025:17,geral:!0}],p4=[{ano:`2022`,valor:16.9},{ano:`2024`,valor:41.9}],Yse={v2024:{label:`2024`,color:`#3A3A3A`},v2025:{label:`2025`,color:`var(--primary)`}};function Xse(){return(0,z.jsx)(TF,{config:Yse,className:`w-full aspect-video`,children:(0,z.jsxs)(CF,{data:Jse,margin:{top:24},children:[(0,z.jsx)(yj,{vertical:!1}),(0,z.jsx)(_P,{dataKey:`porte`,tickLine:!1,axisLine:!1,tickMargin:8,interval:0}),(0,z.jsx)(XN,{dataKey:`v2024`,fill:`var(--color-v2024)`,radius:4,children:(0,z.jsx)(LD,{dataKey:`v2024`,position:`top`,formatter:e=>`${e}%`,className:`fill-muted-foreground text-xs`})}),(0,z.jsx)(XN,{dataKey:`v2025`,fill:`var(--color-v2025)`,radius:4,children:(0,z.jsx)(LD,{dataKey:`v2025`,position:`top`,formatter:e=>`${e}%`,className:`fill-primary text-xs font-medium`})})]})})}var Zse={valor:{label:`Uso de IA`,color:`var(--primary)`}};function Qse(){return(0,z.jsx)(TF,{config:Zse,className:`w-full aspect-video`,children:(0,z.jsxs)(eae,{data:p4,margin:{top:28,left:24,right:24},children:[(0,z.jsx)(yj,{vertical:!1}),(0,z.jsx)(_P,{dataKey:`ano`,tickLine:!1,axisLine:!1,tickMargin:8,interval:0}),(0,z.jsxs)(XN,{dataKey:`valor`,radius:4,barSize:80,children:[p4.map((e,t)=>(0,z.jsx)(KT,{fill:t===p4.length-1?`var(--primary)`:`#3A3A3A`},e.ano)),(0,z.jsx)(LD,{dataKey:`valor`,position:`top`,formatter:e=>Number(e).toLocaleString(`pt-BR`),className:`fill-foreground text-sm font-medium`})]}),(0,z.jsx)(fM,{dataKey:`valor`,stroke:`#4ADE80`,strokeWidth:2,strokeDasharray:`6 4`,dot:!1,type:`monotone`})]})})}function $se(){return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`Setor · indústria`,title:(0,z.jsxs)(z.Fragment,{children:[`A IA entrou rápido na `,(0,z.jsx)(`span`,{className:`text-primary`,children:`grande indústria`})]}),subtitle:`A IA cresceu em todo tamanho de empresa entre 2024 e 2025, mas correu muito mais rápido no topo. A distância entre a grande e a pequena aumentou.`}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-2 desktop:grid-cols-3 gap-3 w-full`,children:[(0,z.jsxs)(er,{children:[(0,z.jsx)(r4,{title:`Por porte · todas as empresas`,subtitle:`A IA sobe com o tamanho da empresa, em qualquer setor. Como quase toda empresa no Brasil é pequena, a média do país fica em 17%.`}),(0,z.jsx)(Xse,{}),(0,z.jsx)(na,{}),(0,z.jsx)(`div`,{className:`flex items-center justify-end`,children:(0,z.jsx)(uH,{sources:CH,dialogTitle:`Setor indústria · fontes`})})]}),(0,z.jsxs)(er,{children:[(0,z.jsx)(r4,{title:`A virada da indústria`,subtitle:`Uso de IA na grande indústria mais que dobrou entre 2022 e 2024.`}),(0,z.jsx)(Qse,{}),(0,z.jsx)(d4,{stat:`57%`,text:`é a fatia entre os gigantes da indústria, de 500 funcionários para cima.`})]}),(0,z.jsx)(u4,{className:`tablet:col-span-2 desktop:col-span-1`,name:`Álvaro Machado Dias`,title:(0,z.jsxs)(z.Fragment,{children:[`O número que dobrou não foi a vontade de inovar, foi o `,(0,z.jsx)(`span`,{className:`text-primary`,children:`atrito que c
50aiu.`})]}),note:[`Antes da IA generativa, automatizar exigia time de dados e meses de projeto. Hoje virou assinatura mensal e poucas semanas de aprendizado, e a indústria, que tinha o problema e a caixa, foi a primeira a correr.`,`Mas correu pela porta de quem já era grande. Entre os gigantes da indústria, de 500 funcionários para cima, a adoção passa de 57%. E o padrão se repete fora da fábrica: metade das grandes empresas usa IA, contra uma em sete entre as pequenas. O tamanho ainda decide quem automatiza, e essa desigualdade é a pauta dos próximos anos.`]})]})]})}function m4({stat:e,text:t,statHighlight:n=!1}){return(0,z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,z.jsx)(Fi,{size:5,weight:`bold`,className:n?`text-primary`:``,children:e}),(0,z.jsx)(H,{color:`silver`,children:t})]})}var ece={header:`O dano · o que já aparece nos números`,stat:`42,5%`,statHighlight:!0,statText:`das fraudes financeiras investigadas pela Polícia Federal já usam inteligência artificial.`,bullets:[(0,z.jsxs)(z.Fragment,{children:[`Os ataques com `,(0,z.jsx)(`span`,{className:`text-primary`,children:`deepfake`}),` no Brasil subiram `,(0,z.jsx)(`span`,{className:`text-primary`,children:`126%`}),` em 2025, e o país concentra quase `,(0,z.jsx)(`span`,{className:`text-primary`,children:`39%`}),` dos detectados na América Latina.`]}),(0,z.jsxs)(z.Fragment,{children:[`A Serasa registra uma tentativa de fraude a cada `,(0,z.jsx)(`span`,{className:`text-primary`,children:`2,2 segundos`}),`, somando toda fraude digital, não só a com IA.`]})]},tce={header:`A solução · o ganho que aparece`,stat:`82%`,statText:`dos hospitais privados brasileiros já usam IA.`,bullets:[(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`span`,{className:`text-primary`,children:`58%`}),` dos executivos de saúde reconhecem ganho de eficiência com IA generativa.`]}),(0,z.jsx)(z.Fragment,{children:`O uso mais comum é administrativo: triagem, apoio à decisão e análise de imagens.`})],hasAnalysis:!0};function h4({card:e,sources:t}){return(0,z.jsxs)(er,{children:[(0,z.jsx)(r4,{title:e.header}),(0,z.jsx)(m4,{stat:e.stat,text:e.statText,statHighlight:e.statHighlight}),(0,z.jsx)(na,{}),(0,z.jsx)(`div`,{className:`flex flex-col gap-3`,children:e.bullets.map((e,t)=>(0,z.jsx)(f4,{children:e},t))}),(0,z.jsx)(`div`,{className:`flex items-center justify-end`,children:(0,z.jsx)(uH,{sources:t,dialogTitle:`${e.header} · fontes`})})]})}function nce(){return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`Como a IA impacta · usos e riscos`,title:(0,z.jsxs)(z.Fragment,{children:[`A IA amplia `,(0,z.jsx)(`span`,{className:`text-primary`,children:`soluções e danos`})]}),subtitle:`A mesma tecnologia que ajuda a diagnosticar, ensinar e atender também permite fraudes, deepfakes e golpes em escala. Por enquanto, o lado que já dá para medir no Brasil é o do dano.`}),(0,z.jsxs)(`div`,{className:`flex flex-col tablet:flex-row justify-between w-full gap-3`,children:[(0,z.jsx)(h4,{card:ece,sources:wH}),(0,z.jsx)(h4,{card:tce,sources:TH})]})]})}var rce={high:{dotColor:`#36BE7E`,tag:`consenso das pesquisas`},medium:{dotColor:`#E1AB15`,tag:`evidência parcial`},low:{dotColor:`var(--primary)`,tag:`evidência fraca`}};function ice({level:e,title:t,subtitle:n,items:r,className:i}){let a=e===`gaps`,o=a?null:rce[e];return(0,z.jsxs)(er,{className:i,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[o&&(0,z.jsx)(`div`,{className:`size-2 rounded-full shrink-0`,style:{backgroundColor:o.dotColor}}),(0,z.jsx)(Fi,{size:1,weight:`bold`,children:t})]}),o&&(0,z.jsx)(H,{size:1,color:`silver`,children:o.tag})]}),n&&(0,z.jsx)(H,{size:1,color:`silver`,children:n}),(0,z.jsx)(`div`,{className:`flex flex-col gap-3`,children:r.map(e=>(0,z.jsxs)(`div`,{className:`flex items-start gap-2`,children:[a?(0,z.jsx)(Zi,{className:`size-3.5 stroke-primary shrink-0 mt-0.5`}):(0,z.jsx)(H,{size:1,color:`silver`,children:`•`}),(0,z.jsx)(H,{size:1,color:`silver`,children:e})]},e))})]})}var g4=[{level:`high`,title:`Alta confiança`,items:[`A adoção de IA cresce rápido em todos os recortes medidos no Brasil.`,`O uso é profundamente desigual por renda, idade, escolaridade e porte.`,`As empresas brasileiras experimentam mais do que integram a fundo.`]},{level:`medium`,title:`Confiança média`,items:[`Parte relevante do uso corporativo é descentralizada e informal.`,`A IA melhora produtivida
50de em contextos específicos; a evidência é heterogênea.`]},{level:`gaps`,title:`Mapa de lacunas`,subtitle:`O que ainda não está bem medido no Brasil. A agenda de pesquisa, não só o comentário do que outros fazem.`,items:[`IA em pequenas e médias empresas`,`IA no setor público municipal`,`Produtividade real versus percebida`]}];function ace(){return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`O que sabemos e o que falta`,title:(0,z.jsxs)(z.Fragment,{children:[`Consenso e `,(0,z.jsx)(`span`,{className:`text-primary`,children:`lacunas`})]})}),(0,z.jsx)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-2 desktop:grid-cols-3 gap-3 w-full`,children:g4.map((e,t)=>(0,z.jsx)(ice,{className:t===g4.length-1&&g4.length%2!=0?`tablet:col-span-2 desktop:col-span-1`:void 0,level:e.level,title:e.title,subtitle:e.subtitle,items:e.items},e.title))})]})}var oce=[{key:`universe`,label:`UNIVERSO`},{key:`scope`,label:`RECORTE`},{key:`year`,label:`COLETA`},{key:`keyStat`,label:`DADO CHAVE`}];function sce({study:e}){return(0,z.jsxs)(er,{children:[(0,z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,z.jsx)(H,{size:1,weight:`bold`,color:`primary`,children:e.source.toUpperCase()}),(0,z.jsx)(Fi,{size:1,weight:`bold`,children:e.title})]}),(0,z.jsx)(`div`,{className:`flex items-center gap-2 flex-wrap`,children:e.tags.map(e=>(0,z.jsx)(`div`,{className:`rounded-full border border-muted px-3 py-1`,children:(0,z.jsx)(H,{size:1,color:`silver`,children:e})},e))}),(0,z.jsx)(na,{}),(0,z.jsx)(`div`,{className:`flex items-start justify-between gap-4`,children:oce.map(({key:t,label:n})=>(0,z.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,z.jsx)(H,{size:1,color:`silver`,children:n}),(0,z.jsx)(H,{size:1,children:e[t]})]},t))}),e.sourceUrl&&(0,z.jsx)(`div`,{className:`flex items-center justify-end mt-auto`,children:(0,z.jsx)(cH,{title:`Ver fonte`,onClick:()=>lH(e.sourceUrl)})})]})}function cce({count:e,expanded:t=!1,onClick:n}){let r=(0,z.jsx)(er,{children:(0,z.jsx)(`div`,{className:`flex items-center justify-center h-full min-h-32`,children:(0,z.jsx)(H,{weight:`bold`,children:t?`Ver menos estudos`:`+ ${e} estudos na biblioteca expandida`})})});return n?(0,z.jsx)(`button`,{type:`button`,onClick:n,className:`cursor-pointer text-left w-full h-full`,children:r}):r}var _4=[{source:`Datafolha`,title:`IA: uso e percepção no Brasil`,tags:[`Opinião pública`,`Uso individual`],universe:`Pop. adulta`,scope:`Nacional`,year:`2026`,keyStat:`86%`,sourceUrl:vH.url},{source:`Cetic.br`,title:`TIC Domicílios 2025`,tags:[`Pessoas`,`Uso individual`],universe:`Usuários internet`,scope:`Nacional`,year:`2025`,keyStat:`32%`,sourceUrl:dH.url},{source:`Cetic.br`,title:`Privacidade e Proteção de Dados Pessoais 2025`,tags:[`Pessoas`,`Privacidade`],universe:`Usuários de IA`,scope:`Nacional`,year:`2025`,keyStat:`54%`,sourceUrl:fH.url},{source:`KPMG · Melbourne`,title:`Trust, attitudes and use of AI`,tags:[`Confiança`,`47 países`],universe:`Pop. adulta`,scope:`Brasil`,year:`2025`,keyStat:`86 / 55`,sourceUrl:yH.url},{source:`Cetic.br`,title:`TIC Empresas 2025`,tags:[`Empresas`],universe:`Empresas 10+`,scope:`Nacional`,year:`2025`,keyStat:`17%`,sourceUrl:mH.url},{source:`Microsoft`,title:`Work Trend Index`,tags:[`Trabalho`,`Global`],universe:`Trab. intelectual`,scope:`Global · BR amostra`,year:`2025`,keyStat:`75%`,sourceUrl:DH.url},{source:`Cetic.br`,title:`TIC Educação`,tags:[`Escola`,`Estudantes`],universe:`Ensino Médio`,scope:`Nacional`,year:`2024`,keyStat:`70%`,sourceUrl:hH.url},{source:`PwC`,title:`Barômetro Global de Empregos em IA`,tags:[`Trabalho`,`Vagas`],universe:`Anúncios de vaga`,scope:`Brasil`,year:`2024`,keyStat:`73 mil`,sourceUrl:bH.url},{source:`IBGE`,title:`PINTEC Semestral`,tags:[`Indústria`,`Empresas`],universe:`Indústrias 100+`,scope:`Nacional`,year:`2024`,keyStat:`41,9%`,sourceUrl:SH.url},{source:`Polícia Federal`,title:`Fraudes financeiras com IA`,tags:[`Danos`,`Fraude`],universe:`Fraudes investigadas`,scope:`Nacional`,year:`2025`,keyStat:`42,5%`,sourceUrl:wH[0].url},{source:`Sumsub`,title:`Identity Fraud Report`,tags:[`Danos`,`Deepfake`],universe:`Verificações`,scope:`Global · BR`,year:`2025`,keyStat:`126%`,sourceUrl:_H.url},{source:`Serasa Experian`,title:`Indicador de Tentativas de Fraude`,tags:[`Danos`,`Fraude`],universe:`Tentativas`,scope:`Nacional`,year:`2025`,keyStat:`2,2s`,sourceUrl:wH[2].url},{source:`Anahp · Wolters Kluwer`,title:`Qualidade e suporte à decisão clínica`,tags:[`Saúde`,`Hospitais`],universe:`102 hospitais`,scope:`Nacional`,year:`2025`,keyStat:`82%`,sourceUrl:TH[0].url},{source:`Similarweb`,title:`Tráfego de plataformas de IA`,tags:[`Adoção`,`Acessos`],universe:`Tráfego web`,scope:`Brasil`,year:`2025`,keyStat:`+124%`,sourceUrl:EH.url},{source:`Instituto Locomotiva`,title:`Uso profissional de IA`,tags:[`Trabalho`,`Dependência`],universe:`Profissionais`,scope:`Nacional`,year:`2025`,keyStat:`47%`},{source:`MIT Media Lab`,title:`Your Brain on ChatGPT`,tags:[`Cognição`,`Experimento`],universe:`54 participantes`,scope:`EUA`,year:`2025`,keyStat:`EEG`,sourceUrl:xH[0].url},{source:`Gerlich · Societies`,title:`AI tools and critical thinking`,tags:[`Cognição`,`Survey`],universe:`666 participantes`,scope:`Global`,year:`2025`,keyStat:`r = -0,68`,sourceUrl:xH[1].url},{source:`Microsoft · Carnegie Mellon`,title:`GenAI e pensamento crítico`,tags:[`Cognição`,`Trabalho`],universe:`319 profissionais`,scope:`Global`,year:`2025`,keyStat:`936 casos`,sourceUrl:xH[2].url}],lce=_4.length-5;function uce(){let[e,t]=(0,w.useState)(!1),n=e?_4:_4.slice(0,5);return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`Regulação`,title:(0,z.jsxs)(z.Fragment,{children:[`Biblioteca de `,(0,z.jsx)(`span`,{className:`text-primary`,children:`estudos`})]}),subtitle:`Toda pesquisa catalogada, com universo, amostra e datas. Busca por palavra-chave e filtro por painel.`}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-2 desktop:grid-cols-3 gap-3 w-full`,children:[n.map(e=>(0,z.jsx)(sce,{study:e},e.title)),(0,z.jsx)(cce,{count:lce,expanded:e,onClick:()=>t(e=>!e)})]})]})}var dce=[{label:`Estaduais`,value:47,highlight:!0},{label:`Municipais`,value:35},{label:`Particulares`,value:31}],fce=[{label:`Até o 5º ano`,value:26},{label:`Até o 9º ano`,value:42},{label:`Até o ensino médio`,value:52,highlight:!0}],pce=[{label:`Conteúdos visuais e de comunicação`,value:83,highlight:!0},{label:`Convites e comunicados`,value:80},{label:`Traduzir, revisar ou resumir textos`,value:71},{label:`Analisar desempenho dos alunos`,value:51}],mce=[{...gH,note:`Permissão por rede e por etapa, guia de orientações e uso pela gestão · gestores, 2025`}
50,{...hH,note:`Uso de IA pelos alunos do ensino médio em pesquisa escolar · alunos, 2024`}];function hce(){return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`Como a IA cresce · na escola`,title:(0,z.jsxs)(z.Fragment,{children:[`A maioria das escolas `,(0,z.jsx)(`span`,{className:`text-primary`,children:`veta`}),` a IA que o aluno já usa`]}),subtitle:`Depois de proibir o celular, a escola decide agora o que fazer com a IA. A permissão varia com a rede e com a idade do aluno, e quem escreve a regra já usa a ferramenta na gestão.`}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-2 desktop:grid-cols-3 gap-3 w-full`,children:[(0,z.jsx)(o4,{title:`Quem libera · por rede de ensino`,topContent:(0,z.jsx)(d4,{stat:`37%`,text:`das escolas permitem que os alunos usem IA. Em 61%, o uso é vetado.`}),items:dce.map(e=>({title:e.label,subtitle:`${e.value}%`,scoreValue:e.value,highlight:e.highlight})),footerHighlight:`60% das escolas já discutiram regras de uso de IA em reuniões com professores e famílias, mas só 22% têm um guia de orientações. A regra é debatida, não definida.`,source:`Cetic.br · TIC Educação 2025 · gestores`}),(0,z.jsxs)(er,{children:[(0,z.jsx)(r4,{title:`A permissão cresce com o aluno`,subtitle:`Fatia das escolas que liberam o uso, conforme a etapa mais avançada que oferecem.`}),(0,z.jsx)(`div`,{className:`flex flex-col gap-4`,children:fce.map(e=>(0,z.jsx)(a4,{title:e.label,subtitle:`${e.value}%`,scoreValue:e.value,highlight:e.highlight},e.label))}),(0,z.jsx)(na,{}),(0,z.jsx)(i4,{description:`Mesmo no ensino médio, onde a liberação é maior, quase metade das escolas proíbe. E 70% dos alunos dessa etapa já usam IA em pesquisa escolar.`}),(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsx)(H,{size:1,color:`silver`,children:`Cetic.br · TIC Educação 2025 e 2024`}),(0,z.jsx)(uH,{sources:mce,dialogTitle:`Regras da escola · fontes`})]})]}),(0,z.jsx)(o4,{title:`O gestor proíbe na sala e usa na secretaria`,topContent:(0,z.jsx)(d4,{stat:`53%`,text:`dos gestores já usam IA na gestão pedagógica, administrativa ou financeira.`}),items:pce.map(e=>({title:e.label,subtitle:`${e.value}%`,scoreValue:e.value,highlight:e.highlight})),footerText:`Base: gestores que já usam IA na gestão. Cada item é uma resposta independente, então os números não somam 100%.`,source:`Cetic.br · TIC Educação 2025 · gestores`})]})]})}var gce=[{label:`Temas de trabalho ou de estudo`,value:73},{label:`Preferências e gostos pessoais`,value:58,description:`filmes ou músicas`},{label:`Sentimentos e emoções`,value:54,highlight:!0,personal:!0},{label:`Dados de saúde`,value:52,personal:!0},{label:`Fotos suas ou de pessoas conhecidas`,value:50,personal:!0},{label:`Finanças pessoais`,value:41,personal:!0},{label:`Nome, endereço ou CPF`,value:37,personal:!0}].filter(e=>e.personal),_ce=[{label:`Pelo menos uma vez por semana`,value:33,highlight:!0},{label:`Todos os dias ou quase`,value:29,highlight:!0},{label:`Pelo menos uma vez por mês`,value:16},{label:`Menos de uma vez por mês`,value:14}];function vce(){return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`Como a IA cresce · no dia a dia`,title:(0,z.jsxs)(z.Fragment,{children:[`Mais da metade já compartilhou `,(0,z.jsx)(`span`,{className:`text-primary`,children:`emoções profundas`}),` com a IA`]}),subtitle:`Sentimentos entram na conversa mais do que qualquer outro dado pessoal. Dois em cada três dizem estar preocupados com o uso dessas informações e, ainda assim, continuam contando.`}),(0,z.jsxs)(`div`,{className:`flex flex-col tablet:flex-row justify-between w-full gap-3`,children:[(0,z.jsxs)(er,{children:[(0,z.jsx)(r4,{title:`O que o brasileiro conta de mais pessoal`}),(0,z.jsx)(`div`,{className:`flex flex-col gap-4`,children:gce.map(e=>(0,z.jsx)(a4,{title:e.label,subtitle:`${e.value}%`,scoreValue:e.value,highlight:e.highlight},e.label))}),(0,z.jsx)(na,{}),(0,z.jsx)(i4,{description:`Base: quem já usou IA. Cada item é uma resposta independente, então os números não somam 100%. Na lista completa, trabalho e estudo lideram, com 73%.`}),(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsx)(H,{size:1,color:`silver`,children:`Cetic.br · Painel TIC 2025 · privacidade`}),(0,z.jsx)(uH,{sources:OH,dialogTitle:`IA e dados pessoais · fontes`})]})]}),(0,z.jsxs)(er,{children:[(0,z.jsx)(r4,{title:`Desconfia e continua usando`,subtitle:`O quanto o usuário se preocupa com esses dados, e o quanto ele volta à ferramenta.`}),(0,z.jsx)(d4,{stat:`66%`,text:(0,z.jsxs)(z.Fragment,{children:[`dos usuários de IA estão `,(0,z.jsx)(`span`,{className:`text-foreground font-bold`,children:`preocupados ou muito preocupados`}),` com o uso desses dados.`]})}),(0,z.jsx)(na,{}),(0,z.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3`,children:[(0,z.jsx)(Fi,{size:1,weight:`bold`,children:`Com que frequência usa a IA`}),(0,z.jsx)(H,{size:1,color:`silver`,children:`8% não souberam dizer`})]}),(0,z.jsx)(`div`,{className:`flex flex-col gap-4`,children:_ce.map(e=>(0,z.jsx)(a4,{title:e.label,subtitle:`${e.value}%`,scoreValue:e.value,highlight:e.highlight},e.label))}),(0,z.jsx)(i4,{description:`A preocupação não trava o hábito: 62% abrem a ferramenta pelo menos uma vez por semana.`})]})]})]})}function yce(){return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(zi,{}),(0,z.jsx)(AH,{}),(0,z.jsx)(Sse,{}),(0,z.jsx)(Pse,{}),(0,z.jsx)(Ise,{}),(0,z.jsx)(vce,{}),(0,z.jsx)(zse,{}),(0,z.jsx)(Hse,{}),(0,z.jsx)(hce,{}),(0,z.jsx)(Gse,{}),(0,z.jsx)(qse,{}),(0,z.jsx)($se,{}),(0,z.jsx)(nce,{}),(0,z.jsx)(ace,{}),(0,z.jsx)(uce,{})]})}function bce(){return(0,z.jsxs)(tr,{children:[(0,z.jsxs)(`div`,{className:`flex flex-col items-center w-full gap-6`,children:[(0,z.jsx)(Li,{active:`global`}),(0,z.jsxs)(Fi,{size:7,weight:`bold`,className:`text-center tablet:max-w-200 leading-tight tablet:leading-15`,children:[`A IA deixou de ser tendência. Virou`,` `,(0,z.jsx)(`span`,{className:`text-primary`,children:`infraestrutura de poder.`})]}),(0,z.jsx)(H,{weight:`light`,color:`silver`,className:`text-center tablet:max-w-130`,children:`Acompanhe quais países, empresas e modelos estão avançando mais rápido e onde a tecnologia ainda falha em autonomia, energia, confiança e regulação.`}
50),(0,z.jsx)(`div`,{className:`w-full tablet:max-w-150 aspect-video rounded-2xl overflow-hidden border border-white/10 bg-black/40 p-2 mt-4`,children:(0,z.jsx)(`iframe`,{src:`https://www.youtube-nocookie.com/embed/Evdw-dzCCzQ?rel=0`,title:`Radar CNN IA · Global`,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,referrerPolicy:`strict-origin-when-cross-origin`,allowFullScreen:!0,className:`w-full h-full rounded-xl border-0`})})]}),(0,z.jsx)(`div`,{})]})}var v4=({color:e=`currentColor`,size:t=24,className:n,...r})=>w.createElement(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,fill:e,...r,className:`remixicon `+(n||``)},w.createElement(`path`,{d:`M20.5624 10.1875C20.8124 9.5 20.8749 8.8125 20.8124 8.125C20.7499 7.4375 20.4999 6.75 20.1874 6.125C19.6249 5.1875 18.8124 4.4375 17.8749 4C16.8749 3.5625 15.8124 3.4375 14.7499 3.6875C14.2499 3.1875 13.6874 2.75 13.0624 2.4375C12.4374 2.125 11.6874 2 10.9999 2C9.9374 2 8.8749 2.3125 7.9999 2.9375C7.1249 3.5625 6.4999 4.4375 6.1874 5.4375C5.4374 5.625 4.8124 5.9375 4.1874 6.3125C3.6249 6.75 3.1874 7.3125 2.8124 7.875C2.24991 8.8125 2.06241 9.875 2.18741 10.9375C2.31241 12 2.7499 13 3.4374 13.8125C3.1874 14.5 3.1249 15.1875 3.1874 15.875C3.2499 16.5625 3.4999 17.25 3.8124 17.875C4.3749 18.8125 5.1874 19.5625 6.1249 20C7.1249 20.4375 8.1874 20.5625 9.2499 20.3125C9.7499 20.8125 10.3124 21.25 10.9374 21.5625C11.5624 21.875 12.3124 22 12.9999 22C14.0624 22 15.1249 21.6875 15.9999 21.0625C16.8749 20.4375 17.4999 19.5625 17.8124 18.5625C18.4999 18.4375 19.1874 18.125 19.7499 17.6875C20.3124 17.25 20.8124 16.75 21.1249 16.125C21.6874 15.1875 21.8749 14.125 21.7499 13.0625C21.6249 12 21.2499 11 20.5624 10.1875ZM13.0624 20.6875C12.0624 20.6875 11.3124 20.375 10.6249 19.8125C10.6249 19.8125 10.6874 19.75 10.7499 19.75L14.7499 17.4375C14.8749 17.375 14.9374 17.3125 14.9999 17.1875C15.0624 17.0625 15.0624 17 15.0624 16.875V11.25L16.7499 12.25V16.875C16.8124 19.0625 15.0624 20.6875 13.0624 20.6875ZM4.9999 17.25C4.5624 16.5 4.3749 15.625 4.5624 14.75C4.5624 14.75 4.6249 14.8125 4.6874 14.8125L8.6874 17.125C8.8124 17.1875 8.8749 17.1875 8.9999 17.1875C9.1249 17.1875 9.2499 17.1875 9.3124 17.125L14.1874 14.3125V16.25L10.1249 18.625C9.2499 19.125 8.2499 19.25 7.3124 19C6.3124 18.75 5.4999 18.125 4.9999 17.25ZM3.9374 8.5625C4.3749 7.8125 5.0624 7.25 5.8749 6.9375V7.0625V11.6875C5.8749 11.8125 5.8749 11.9375 5.9374 12C5.9999 12.125 6.0624 12.1875 6.1874 12.25L11.0624 15.0625L9.3749 16.0625L5.3749 13.75C4.4999 13.25 3.8749 12.4375 3.6249 11.5C3.3749 10.5625 3.4374 9.4375 3.9374 8.5625ZM17.7499 11.75L12.8749 8.9375L14.5624 7.9375L18.5624 10.25C19.1874 10.625 19.6874 11.125 19.9999 11.75C20.3124 12.375 20.4999 13.0625 20.4374 13.8125C20.3749 14.5 20.1249 15.1875 19.6874 15.75C19.2499 16.3125 18.6874 16.75 17.9999 17V12.25C17.9999 12.125 17.9999 12 17.9374 11.9375C17.9374 11.9375 17.8749 11.8125 17.7499 11.75ZM19.4374 9.25C19.4374 9.25 19.3749 9.1875 19.3124 9.1875L15.3124 6.875C15.1874 6.8125 15.1249 6.8125 14.9999 6.8125C14.8749 6.8125 14.7499 6.8125 14.6874 6.875L9.8124 9.6875V7.75L13.8749 5.375C14.4999 5 15.1874 4.875 15.9374 4.875C16.6249 4.875 17.3124 5.125 17.9374 5.5625C18.4999 6 18.9999 6.5625 19.2499 7.1875C19.4999 7.8125 19.5624 8.5625 19.4374 9.25ZM8.9374 12.75L7.2499 11.75V7.0625C7.2499 6.375 7.4374 5.625 7.8124 5.0625C8.1874 4.4375 8.7499 4 9.3749 3.6875C9.9999 3.375 10.7499 3.25 11.4374 3.375C12.1249 3.4375 12.8124 3.75 13.3749 4.1875C13.3749 4.1875 13.3124 4.25 13.2499 4.25L9.2499 6.5625C9.1249 6.625 9.0624 6.6875 8.9999 6.8125C8.9374 6.9375 8.9374 7 8.9374 7.125V12.75ZM9.8124 10.75L11.9999 9.5L14.1874 10.75V13.25L11.9999 14.5L9.8124 13.25V10.75Z`})),y4=({color:e=`currentColor`,size:t=24,className:n,...r})=>w.createElement(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,fill:e,...r,className:`remixicon `+(n||``)},w.createElement(`path`,{d:`M23.9996 12.0235C17.5625 12.4117 12.4114 17.563 12.0232 24H11.9762C11.588 17.563 6.4369 12.4117 0 12.0235V11.9765C6.4369 11.5883 11.588 6.43719 11.9762 0H12.0232C12.4114 6.43719 17.5625 11.5883 23.9996 11.9765V12.0235Z`})),b4=({color:e=`currentColor`,size:t=24,className:n,...r})=>
50w.createElement(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,fill:e,...r,className:`remixicon `+(n||``)},w.createElement(`path`,{d:`M8.64445 2.55279C8.39746 2.05881 7.79679 1.85859 7.30281 2.10558C6.80883 2.35257 6.60861 2.95324 6.8556 3.44722L9.68128 9.09859L5.06655 5.92596C4.61145 5.61308 3.98887 5.72837 3.67598 6.18348C3.3631 6.63858 3.47839 7.26116 3.9335 7.57405L9.40503 11.3357L3.05258 11.0014C2.50106 10.9724 2.03043 11.3959 2.00141 11.9474C1.97238 12.499 2.39594 12.9696 2.94747 12.9986L8.74187 13.3036L4.44532 16.168C3.9858 16.4743 3.86162 17.0952 4.16797 17.5547C4.47433 18.0142 5.0952 18.1384 5.55473 17.8321L9.19687 15.404L6.68629 18.9188C6.36528 19.3682 6.46937 19.9927 6.91879 20.3137C7.3682 20.6347 7.99275 20.5307 8.31376 20.0812L11.3471 15.8345L10.5136 20.8356C10.4228 21.3804 10.7909 21.8956 11.3356 21.9864C11.8804 22.0772 12.3956 21.7092 12.4864 21.1644L13.2883 16.3532L15.6588 20.0408C15.9575 20.5053 16.5762 20.6398 17.0408 20.3412C17.5054 20.0425 17.6399 19.4238 17.3412 18.9592L15.5553 16.1812L18.3217 18.7348C18.7276 19.1094 19.3602 19.0841 19.7348 18.6783C20.1094 18.2725 20.0841 17.6398 19.6783 17.2652L16.6427 14.4631L20.876 14.9923C21.424 15.0608 21.9238 14.6721 21.9923 14.124C22.0608 13.576 21.6721 13.0762 21.1241 13.0077L16.9342 12.484L21.2291 11.4734C21.7667 11.3469 22.0999 10.8086 21.9734 10.271C21.8469 9.73336 21.3086 9.40009 20.771 9.52659L15.1819 10.8417L19.2863 5.61783C19.6276 5.18356 19.5521 4.5549 19.1178 4.21369C18.6836 3.87247 18.0549 3.94791 17.7137 4.38218L13.8574 9.29015L14.738 3.65438C14.8233 3.10872 14.4501 2.59725 13.9044 2.51199C13.3587 2.42673 12.8473 2.79996 12.762 3.34563L11.876 9.01594L8.64445 2.55279Z`})),x4=({color:e=`currentColor`,size:t=24,className:n,...r})=>w.createElement(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,fill:e,...r,className:`remixicon `+(n||``)},w.createElement(`path`,{d:`M15.7754 2.77832C12.1756 1.29525 7.86569 2.03348 4.93945 4.96094 3.05829 6.84454 2.03903 9.40497 2.02376 12 2.01618 13.2875 2.25573 14.5835 2.75977 15.8096 3.89507 18.5729 1.99897 21.0271.124023 23L6.2285 17.5399C4.8483 16.1023 4 14.1502 4 12 4 7.58172 7.58172 4 12 4 13.3173 4 14.5602 4.31838 15.656 4.8824L17.8076 3.8877C17.2661 3.49585 16.5718 3.07449 15.7754 2.77832ZM21.6963 9.7334C20.7087 5.48171 21.6357 3.27424 23.9004.0996094L8.58984 15.4717 18.1992 8.80597C18.6339 8.48506 19.2549 8.61084 19.4619 9.10968 19.8094 10.0061 20 10.9808 20 12 20 16.4183 16.4183 20 12 20 10.6968 20 9.46638 19.6884 8.37918 19.1356L5.19629 20.1445C6.83273 21.3127 9.8361 22 12 22 17.5228 22 22 17.5228 22 12 21.9959 11.2365 21.8709 10.4756 21.6963 9.7334Z`})),xce=[{model:`Claude Opus 5.5`,lab:`Anthropic`,region:`EUA`,value:58,highlight:!0},{model:`Claude Sonnet 5.5`,lab:`Anthropic`,region:`EUA`,value:56},{model:`Claude Fable 5.1`,lab:`Anthropic`,region:`EUA`,value:53},{model:`GPT-6 Astra`,lab:`OpenAI`,region:`EUA`,value:53},{model:`Gemini 4 Argon`,lab:`Google`,region:`EUA`,value:53},{model:`GPT-6.1 Sol`,lab:`OpenAI`,region:`EUA`,value:52},{model:`Muse Spark 1.3`,lab:`Meta`,region:`EUA`,value:48},{model:`GPT-6 Sol`,lab:`OpenAI`,region:`EUA`,value:48},{model:`Grok 4.7`,lab:`xAI`,region:`EUA`,value:46},{model:`MiMo-V2.6-Pro`,lab:`Xiaomi`,region:`China`,value:46}],Sce=[{category:`Preferência de usuários`,leader:`Gemini 4 Argon · Google`},{category:`Raciocínio científico`,leader:`Claude Opus 5.5 · Anthropic`},{category:`Programação`,leader:`Claude Sonnet 5.5 · Anthropic`},{category:`Criação de sites`,leader:`Claude Opus 5.5 · Anthropic`},{category:`Operar o computador`,leader:`Claude Opus 5 · Anthropic`},{category:`Produção de vídeo`,leader:`Gemini Omni Flash · Google`},{category:`Segurança cibernética`,leader:`GPT-5.5 · OpenAI`},{category:`Melhor open source`,leader:`MiMo-V2.6-Pro · Xiaomi`}],Cce={name:`Artificial Analysis · Intelligence Index v4.3`,url:`https://artificialanalysis.ai/leaderboards/models`},wce=[{name:`Arena.ai · Text Arena`,url:`https://arena.ai/leaderboard/text`,note:`Preferência de usuários`},{name:`Artificial Analysis · SciCode`,url:`https://artificialanalysis.ai/evaluations/scicode`,note:`Raciocínio científico`},{name:`Artificial Analysis · Coding Agent Index`,url:`https://artificialanalysis.ai/agents/coding-agents`,note:`Programação`},{name:`Artificial Analysis`,url:`https://artificialanalysis.ai/leaderboards/models`,note:`Melhor open source`},{name:`Arena.ai · Code Arena (WebDev)`,url:`https://arena.ai/leaderboard/code/webdev`,note:`Criação de sites`},{name:`OSWorld 2.0`,url:`https://osworld-v2.xlang.ai/`,note:`Operar o computador`},{name:`Artificial Analysis · Video Arena`,url:`https://artificialanalysis.ai/video/leaderboard/text-to-vi
50deo`,note:`Produção de vídeo`},{name:`AI Security Institute`,url:`https://www.aisi.gov.uk/`,note:`Segurança cibernética`}],S4={title:`Gemini 4 Argon`,subtitle:`a estratégia do Google`,paragraphs:[`O Google entrou na disputa com nota de modelo de ponta e preço de modelo intermediário. O Gemini 4 Argon estreia a US$ 2 por milhão de tokens de entrada e US$ 10 de saída, o mesmo patamar do GPT-6 Sol e do Claude Sonnet 5.5, e passa a US$ 4 / 20 depois do período de lançamento. A liberação começa por especialistas em defesa cibernética, no programa Fairwind; clientes pagos da API e assinantes do Google AI Ultra vêm em seguida.`,`O diferencial é entregar o mesmo resultado gastando menos. No índice da Artificial Analysis, o Argon empata em 53 pontos com o Claude Fable 5.1 e o GPT-6 Astra, mas cada tarefa sai por US$ 1,99, contra US$ 7,63 e US$ 3,26. O modelo também lidera a arena de preferência dos usuários e lê até 1 milhão de tokens de uma vez, o que o Google aponta como vantagem em trabalhos longos de programação, direito, finanças e correção de falhas de segurança.`],source:`Google · anúncio de 30/09/2026`},Tce=[{name:`Google · anúncio do Gemini 4 Argon`,url:`https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-4-argon/`,note:`Estratégia de liberação, preço e capacidades declaradas`},{name:`Artificial Analysis · Intelligence Index v4.3`,url:`https://artificialanalysis.ai/leaderboards/models`,note:`Nota no índice e custo por tarefa`},{name:`Arena.ai · Text Arena`,url:`https://arena.ai/leaderboard/text`,note:`Preferência de usuários`}],Ece={Anthropic:(0,z.jsx)(b4,{className:`size-5`,color:`#D97757`}),OpenAI:(0,z.jsx)(v4,{className:`size-5`,color:`#000000`}),Google:(0,z.jsx)(y4,{className:`size-5`,color:`#3186FF`}),xAI:(0,z.jsx)(x4,{className:`size-5`,color:`#000000`})};function Dce(){return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`Fronteira · Comparação entre modelos`,title:(0,z.jsxs)(z.Fragment,{children:[`Cada modelo vence em `,(0,z.jsx)(`span`,{className:`text-primary`,children:`uma prova diferente`})]}),subtitle:`Os principais modelos de IA do mundo, comparados em oito dimensões: o que os usuários preferem, o que os testes de capacidade medem, quanto custam e a que velocidade respondem.`}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-2 desktop:grid-cols-3 gap-3 w-full`,children:[(0,z.jsx)(o4,{scrollable:!0,title:(0,z.jsxs)(z.Fragment,{children:[`Inteligência composta `,(0,z.jsx)(`span`,{className:`font-normal text-[#ABABAB]`,children:`· Artificial Analysis · 1 out 2026`})]}),items:xce.map(e=>({title:e.model,description:`${e.lab} · ${e.region}`,subtitle:e.value.toLocaleString(`pt-BR`),scoreValue:e.value,highlight:e.highlight,icon:Ece[e.lab]})),footerHighlight:`Este índice traz a média de 10 avaliações. Note que ele é válido na data indicada abaixo.`,source:`Artificial Analysis · Intelligence Index v4.3 · 01/10/2026`,onSourceClick:()=>lH(Cce.url)}),(0,z.jsxs)(er,{children:[(0,z.jsx)(r4,{title:`Quem lidera o quê`}),(0,z.jsx)(na,{}),(0,z.jsx)(`div`,{className:`flex flex-col gap-4`,children:Sce.map(e=>(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,z.jsx)(H,{weight:`bold`,className:`shrink-0`,children:e.category}),(0,z.jsx)(H,{size:1,color:`silver`,className:`text-right`,children:e.leader})]},e.category))}),(0,z.jsx)(na,{}),(0,z.jsx)(`div`,{className:`flex items-center justify-between`,children:(0,z.jsx)(uH,{sources:wce,dialogTitle:`Quem lidera o quê · fontes`})})]}),(0,z.jsx)(u4,{className:`tablet:col-span-2 desktop:col-span-1`,name:`Álvaro Machado Dias`,note:[(0,z.jsxs)(z.Fragment,{children:[`A pergunta "qual é a melhor IA" perdeu o sentido em 2026. O topo virou um pelotão: os cinco primeiros da arena de preferência cabem em 8 pontos de Elo, com margens de erro que se sobrepõem. `,(0,z.jsx)(`span`,{className:`text-primary`,children:`Empate técnico, no vocabulário das pesquisas eleitorais.`})]}),`O que passou a importar foi a segunda pergunta: melhor para quê. Quem escolhe modelo por ranking geral paga preço de fronteira por capacidade que talvez nem use. As empresas mais sofisticadas já operam com três ou quatro modelos atrás de um roteador, cada um alocado à tarefa em que vence.`]}),(0,z.jsxs)(er,{className:`tablet:col-span-2 desktop:col-span-3`,children:[(0,z.jsx)(r4,{title:(0,z.jsxs)(z.Fragment,{children:[S4.title,` `,(0,z.jsxs)(`span`,{className:`font-normal text-[#ABABAB]`,children:[`· `,S4.subtitle]})]})}),(0,z.jsx)(na,{}),(0,z.jsx)(`div`,{className:`flex flex-col gap-4`,children:S4.paragraphs.map(e=>(0,z.jsx)(H,{color:`silver`,children:e},e))}),(0,z.jsx)(na,{}),(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsx)(H,{color:`silver`,children:S4.source}),(0,z.jsx)(uH,{sources:Tce,dialogTitle:`Gemini 4 Argon · fontes`})]})]})]})]})}var C4=[{model:`Claude Opus 5.5`,lab:`Anthropic`,score:58,costPerTask:5.98,highlight:!0},{model:`Claude Sonnet 5.5`,lab:`Anthropic`,score:56,costPerTask:7.62},{model:`Claude Fable 5.1`,lab:`Anthropic`,score:53,costPerTask:7.63},{model:`GPT-6 Astra`,lab:`OpenAI`,score:53,costPerTask:3.26},{model:`Gemini 4 Argon`,lab:`Google`,score:53,costPerTask:1.99}
50,{model:`GPT-6.1 Sol`,lab:`OpenAI`,score:52,costPerTask:.72},{model:`Muse Spark 1.3`,lab:`Meta`,score:48,costPerTask:1.6},{model:`GPT-6 Sol`,lab:`OpenAI`,score:48,costPerTask:1.04},{model:`Grok 4.7`,lab:`xAI`,score:46,costPerTask:3.74},{model:`MiMo-V2.6-Pro`,lab:`Xiaomi`,score:46,costPerTask:.13}],Oce={name:`Artificial Analysis · Intelligence Index v4.3`,url:`https://artificialanalysis.ai/leaderboards/models`},kce=[{model:`Claude Opus 5.5`,lab:`Anthropic`,price:`US$ 4 / 20`,detail:`antes: Claude Opus 5 · US$ 5 / 25`,change:`−20%`},{model:`GPT-6 Sol`,lab:`OpenAI`,price:`US$ 2 / 10`,detail:`antes: GPT-5.6 Sol · US$ 4 / 20`,change:`−50%`},{model:`GPT-6 Luna`,lab:`OpenAI`,price:`US$ 0,10 / 0,50`,detail:`antes: GPT-5.6 Luna · US$ 0,20 / 1,20`,change:`−50 a −58%`},{model:`Grok 4.7`,lab:`xAI`,price:`US$ 2 / 6`,detail:`antes: Grok 4.6 · US$ 2 / 6`,change:`igual`},{model:`Gemini 4 Argon`,lab:`Google`,price:`US$ 2 / 10`,detail:`preço de lançamento · depois, US$ 4 / 20`,change:`estreia`}],Ace=[{name:`Anthropic · preços da API`,url:`https://platform.claude.com/docs/en/about-claude/pricing`,note:`Claude Opus 5.5 e Claude Opus 5`},{name:`OpenAI · preços da API`,url:`https://developers.openai.com/api/docs/pricing`,note:`GPT-6 Sol, GPT-6 Luna e a série GPT-5.6`},{name:`Google · anúncio do Gemini 4 Argon`,url:`https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-4-argon/`,note:`Gemini 4 Argon, preço de lançamento e preço depois do período introdutório`},{name:`xAI · modelos e preços`,url:`https://docs.x.ai/developers/models`,note:`Grok 4.7 e Grok 4.6`}],jce={Anthropic:(0,z.jsx)(b4,{className:`size-5`,color:`#D97757`}),OpenAI:(0,z.jsx)(v4,{className:`size-5`,color:`#000000`}),Google:(0,z.jsx)(y4,{className:`size-5`,color:`#3186FF`}),xAI:(0,z.jsx)(x4,{className:`size-5`,color:`#000000`})},Mce=Math.max(...C4.map(e=>e.costPerTask));function Nce(e){return`US$ ${e.toLocaleString(`pt-BR`,{minimumFractionDigits:2,maximumFractionDigits:2})}`}function Pce(){return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`Custo · preço por tarefa`,title:(0,z.jsxs)(z.Fragment,{children:[`Quanto custa pôr a IA `,(0,z.jsx)(`span`,{className:`text-primary`,children:`para trabalhar`})]}),subtitle:`Em setembro, a OpenAI cortou pela metade o preço dos novos GPT-6, a Anthropic baixou o do Opus em 20% e o Google estreou o Gemini 4 Argon com preço de lançamento. Entre os dez modelos mais inteligentes, uma mesma tarefa custa de 13 centavos a quase 8 dólares.`}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-2 gap-3 w-full`,children:[(0,z.jsx)(o4,{scrollable:!0,title:(0,z.jsxs)(z.Fragment,{children:[`Quanto custa uma tarefa `,(0,z.jsx)(`span`,{className:`font-normal text-[#ABABAB]`,children:`· Artificial Analysis · 1 out 2026`})]}),items:C4.map(e=>({title:e.model,description:`${e.lab} · nota ${e.score}`,subtitle:Nce(e.costPerTask),scoreValue:e.costPerTask/Mce*100,highlight:e.highlight,icon:jce[e.lab]})),footerHighlight:`Custo médio de cada tarefa das 10 avaliações do índice, em dólares. Mesma ordem do ranking acima.`,source:`Artificial Analysis · Cost per Task · 01/10/2026`,onSourceClick:()=>lH(Oce.url)}),(0,z.jsxs)(er,{children:[(0,z.jsx)(r4,{title:`O que mudou no preço`,subtitle:`US$ por milhão de tokens · entrada / saída`}),(0,z.jsx)(na,{}),(0,z.jsx)(`div`,{className:`flex flex-col gap-4`,children:kce.map(e=>(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,z.jsxs)(`div`,{className:`flex flex-col min-w-0`,children:[(0,z.jsx)(H,{weight:`bold`,children:e.model}),(0,z.jsx)(H,{size:1,color:`silver`,children:e.detail})]}),(0,z.jsxs)(`div`,{className:`flex flex-col items-end shrink-0`,children:[(0,z.jsx)(H,{weight:`bold`,children:e.price}),(0,z.jsx)(H,{size:1,color:e.change.startsWith(`−`)?`primary`:`silver`,children:e.change})]})]},e.model))}),(0,z.jsx)(na,{}),(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsx)(H,{color:`silver`,children:`Preço de tabela · 01/10/2026`}),(0,z.jsx)(uH,{sources:Ace,dialogTitle:`Preço de tabela · fontes`})]})]})]})]})}var w4=(0,w.createContext)({});function T4(e){let t=(0,w.useRef)(null);return t.current===null&&(t.current=e()),t.current}var E4=typeof window<`u`?w.useLayoutEffect:w.useEffect,D4=(0,w.createContext)(null);function O4(e,t){e.indexOf(t)===-1&&e.push(t)}function k4(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var A4=(e,t,n)=>n>t?t:n<e?e:n,j4={},M4=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),N4=e=>typeof e==`object`&&!!e,P4=e=>/^0[^.\s]+$/u.test(e);
50function F4(e){let t;return()=>(t===void 0&&(t=e()),t)}var I4=e=>e,L4=(...e)=>e.reduce((e,t)=>n=>t(e(n))),R4=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},z4=class{constructor(){this.subscriptions=[]}add(e){return O4(this.subscriptions,e),()=>k4(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},B4=e=>e*1e3,V4=e=>e/1e3,H4=(e,t)=>t?1e3/t*e:0,Fce=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},U4=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ice=1e-7,Lce=12;function Rce(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=U4(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Ice&&++s<Lce);return o}function W4(e,t,n,r){if(e===t&&n===r)return I4;let i=t=>Rce(t,0,1,e,n);return e=>e===0||e===1?e:U4(i(e),t,r)}var G4=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,K4=e=>t=>1-e(1-t),q4=W4(.33,1.53,.69,.99),J4=K4(q4),Y4=G4(J4),X4=e=>e>=1?1:(e*=2)<1?.5*J4(e):.5*(2-2**(-10*(e-1))),Z4=e=>1-Math.sin(Math.acos(e)),Q4=K4(Z4),$4=G4(Z4),zce=W4(.42,0,1,1),Bce=W4(0,0,.58,1),e3=W4(.42,0,.58,1),t3=e=>Array.isArray(e)&&typeof e[0]!=`number`;function n3(e,t){return t3(e)?e[Fce(0,e.length,t)]:e}var r3=e=>Array.isArray(e)&&typeof e[0]==`number`,i3={linear:I4,easeIn:zce,easeInOut:e3,easeOut:Bce,circIn:Z4,circInOut:$4,circOut:Q4,backIn:J4,backInOut:Y4,backOut:q4,anticipate:X4},Vce=e=>typeof e==`string`,a3=e=>{if(r3(e)){e.length;let[t,n,r,i]=e;return W4(t,n,r,i)}else if(Vce(e))return i3[e],`${e}`,i3[e];return e},o3=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Hce(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var Uce=40;function s3(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=o3.reduce((e,t)=>(e[t]=Hce(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=j4.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Uce),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:o3.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<o3.length;t++)o[o3[t]].cancel(e)},state:i,steps:o}}var{schedule:c3,cancel:l3,state:u3,steps:d3}=s3(typeof requestAnimationFrame<`u`?requestAnimationFrame:I4,!0),f3;function Wce(){f3=void 0}var p3={now:()=>(f3===void 0&&p3.set(u3.isProcessing||j4.useManualTiming?u3.timestamp:performance.now()),f3),set:e=>{f3=e,queueMicrotask(Wce)}},m3=e=>t=>typeof t==`string`&&t.startsWith(e),h3=m3(`--`),Gce=m3(`var(--`),g3=e=>Gce(e)?Kce.test(e.split(`/*`)[0].trim()):!1,Kce=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function _3(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var v3={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},y3={...v3,transform:e=>A4(0,1,e)},b3={...v3,default:1},x3=e=>Math.round(e*1e5)/1e5,S3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function qce(e){return e==null}var Jce=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,C3=(e,t)=>n=>!!(typeof n==`string`&&Jce.test(n)&&n.startsWith(e)||t&&!qce(n)&&Object.prototype.hasOwnProperty.call(n,t)),w3=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(S3);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Yce=e=>A4(0,255,e),T3={...v3,transform:e=>Math.round(Yce(e))},E3={test:C3(`rgb`,`red`),parse:w3(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+T3.transform(e)+`, `+T3.transform(t)+`, `+T3.transform(n)+`, `+x3(y3.transform(r))+`)`};function Xce(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alph
50a:i?parseInt(i,16)/255:1}}var D3={test:C3(`#`),parse:Xce,transform:E3.transform},O3=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),k3=O3(`deg`),A3=O3(`%`),$=O3(`px`),Zce=O3(`vh`),Qce=O3(`vw`),j3={...A3,parse:e=>A3.parse(e)/100,transform:e=>A3.transform(e*100)},M3={test:C3(`hsl`,`hue`),parse:w3(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+A3.transform(x3(t))+`, `+A3.transform(x3(n))+`, `+x3(y3.transform(r))+`)`},N3={test:e=>E3.test(e)||D3.test(e)||M3.test(e),parse:e=>E3.test(e)?E3.parse(e):M3.test(e)?M3.parse(e):D3.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?E3.transform(e):M3.transform(e),getAnimatableNone:e=>{let t=N3.parse(e);return t.alpha=0,N3.transform(t)}},$ce=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ele(e){return isNaN(e)&&typeof e==`string`&&(e.match(S3)?.length||0)+(e.match($ce)?.length||0)>0}var P3=`number`,F3=`color`,tle=`var`,nle=`var(`,I3="${}",rle=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function L3(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(rle,e=>(N3.test(e)?(r.color.push(a),i.push(F3),n.push(N3.parse(e))):e.startsWith(nle)?(r.var.push(a),i.push(tle),n.push(e)):(r.number.push(a),i.push(P3),n.push(parseFloat(e))),++a,I3)).split(I3),indexes:r,types:i}}function ile(e){return L3(e).values}function R3({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===P3?i+=x3(r[a]):e===F3?i+=N3.transform(r[a]):i+=r[a]}return i}}function ale(e){return R3(L3(e))}var ole=e=>typeof e==`number`?0:N3.test(e)?N3.getAnimatableNone(e):e,sle=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:ole(e);function cle(e){let t=L3(e);return R3(t)(t.values.map((e,n)=>sle(e,t.split[n])))}var z3={test:ele,parse:ile,createTransformer:ale,getAnimatableNone:cle};function B3(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function lle({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=B3(s,r,e+1/3),a=B3(s,r,e),o=B3(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function V3(e,t){return n=>n>0?t:e}var H3=(e,t,n)=>e+(t-e)*n,U3=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ule=[D3,E3,M3],dle=e=>ule.find(t=>t.test(e));function W3(e){let t=dle(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===M3&&(n=lle(n)),n}var G3=(e,t)=>{let n=W3(e),r=W3(t);if(!n||!r)return V3(e,t);let i={...n};return e=>(i.red=U3(n.red,r.red,e),i.green=U3(n.green,r.green,e),i.blue=U3(n.blue,r.blue,e),i.alpha=H3(n.alpha,r.alpha,e),E3.transform(i))},K3=new Set([`none`,`hidden`]);function fle(e,t){return K3.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ple(e,t){return n=>H3(e,t,n)}function q3(e){return typeof e==`number`?ple:typeof e==`string`?g3(e)?V3:N3.test(e)?G3:gle:Array.isArray(e)?J3:typeof e==`object`?N3.test(e)?G3:mle:V3}function J3(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>q3(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function mle(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=q3(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function hle(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var gle=(e,t)=>{let n=z3.createTransformer(t),r=L3(e),i=L3(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?K3.has(e)&&!i.values.length||K3.has(t)&&!r.values.length?fle(e,t):L4(J3(hle(r,i),i.values),n):(`${e}${t}`,V3(e,t))};function Y3(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`
50number`?H3(e,t,n):q3(e)(e,t)}var _le=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>c3.update(t,e),stop:()=>l3(t),now:()=>u3.isProcessing?u3.timestamp:p3.now()}},X3=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Z3=2e4;function Q3(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function $3(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Q3(r),Z3);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:V4(i)}}var e6={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function t6(e,t){return e*Math.sqrt(1-t*t)}var vle=12;function yle(e,t,n){let r=n;for(let n=1;n<vle;n++)r-=e(r)/t(r);return r}var n6=.001;function ble({duration:e=e6.duration,bounce:t=e6.bounce,velocity:n=e6.velocity,mass:r=e6.mass}){let i,a;e6.maxDuration;let o=1-t;o=A4(e6.minDamping,e6.maxDamping,o),e=A4(e6.minDuration,e6.maxDuration,V4(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=t6(t,o),c=Math.exp(-i);return n6-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=t6(t**2,o);return(-i(t)+n6>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=yle(i,a,s);if(e=B4(e),isNaN(c))return{stiffness:e6.stiffness,damping:e6.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var xle=[`duration`,`bounce`],Sle=[`stiffness`,`damping`,`mass`];function r6(e,t){return t.some(t=>e[t]!==void 0)}function Cle(e){let t={velocity:e6.velocity,stiffness:e6.stiffness,damping:e6.damping,mass:e6.mass,isResolvedFromDuration:!1,...e};if(!r6(e,Sle)&&r6(e,xle))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*A4(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:e6.mass,stiffness:i,damping:a}}else{let n=ble({...e,velocity:0});t={...t,...n,mass:e6.mass},t.isResolvedFromDuration=!0}return t}function i6(e=e6.visualDuration,t=e6.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Cle({...n,velocity:-V4(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=V4(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?e6.restSpeed.granular:e6.restSpeed.default,i||=v?e6.restDelta.granular:e6.restDelta.default;let y,b,x,S,C,w;if(h<1)x=t6(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>B4(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=B4(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=B4(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Q3(T),Z3),t=X3(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}i6.applyToOptions=e=>{let t=$3(e,100,i6);return e.ease=t.ease,e.duration=B4(t.duration),e.type=`keyframes`,e};var wle=5;function a6(e,t,n){let r=Math.max(t-wle,0);return H4(n-e(r),t-r)}function o6({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=i6({keyframes:[f.value,m(f.value)],velocity:a6(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Tle(e,t,n){let r=[],i=n||j4.mix||Y3,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=L4(Array.isArray(t)?t[n]||I4:t,a)),r.push(a)}return r}function s6(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Tle(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=R4(e[r],e[r+1],n);return s[r](i)};return n?t=>l(A4(e[0],e[a-1],t)):l}function c6(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=R4(0,t,r);e.push(H3(n,1,i))}}function l6(e){let t=[0];return c6(t,e.length-1),t}function Ele(e,t){return e.map(e=>e*t)}function Dle(e,t){return e.map(()=>t||e3).splice(0,e.length-1)}function u6({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=t3(r)?r.map(a3):a3(r),a={done:!1,value:t[0]},o=s6(Ele(n&&n.length===t.length?n:l6(t),e),t,{ease:Array.isArray(i)?i:Dle(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Ole=e=>e!==null;function d6(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Ole),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var kle={decay:o6,inertia:o6,tween:u6,keyframes:u6,spring:i6};function f6(e){typeof e.type==`string`&&(e.type=kle[e.type])}var p6=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Ale=e=>e/100,m6=class extends p6{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==p3.now()&&this.tick(p3.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;f6(e);let{type:t=u6,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||u6;s!==u6&&typeof o[0]!=`number`&&(this.mixKeyframes=L4(Ale,Y3(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Q3(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=A4(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==o6&&(b.value=d6(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return V4(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+V4(e)}get time(){return V4(this.currentTime)}set time(e){e=B4(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return a6(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(p3.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=V4(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=_le,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(p3.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function jle(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var h6=e=>e*180/Math.PI,g6=e=>_6(h6(Math.atan2(e[1],e[0]))),Mle={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:g6,rotateZ:g6,skewX:e=>h6(Math.atan(e[1])),skewY:e=>h6(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},_6=e=>(e%=360,e<0&&(e+=360),e),v6=g6,y6=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),b6=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Nle={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:y6,scaleY:b6,scale:e=>(y6(e)+b6(e))/2,rotateX:e=>_6(h6(Math.atan2(e[6],e[5]))),rotateY:e=>_6(h6(Math.atan2(-e[2],e[0]))),rotateZ:v6,rotate:v6,skewX:e=>h6(Math.atan(e[4])),skewY:e=>h6(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function x6(e){return+!!e.includes(`scale`)}
50function S6(e,t){if(!e||e===`none`)return x6(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Nle,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Mle,i=t}if(!i)return x6(t);let a=r[t],o=i[1].split(`,`).map(Fle);return typeof a==`function`?a(o):o[a]}var Ple=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return S6(n,t)};function Fle(e){return parseFloat(e.trim())}var C6=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],w6=new Set([...C6,`pathRotation`]),T6=e=>e===v3||e===$,Ile=new Set([`x`,`y`,`z`]),Lle=C6.filter(e=>!Ile.has(e));function Rle(e){let t=[];return Lle.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var E6={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>S6(t,`x`),y:(e,{transform:t})=>S6(t,`y`)};E6.translateX=E6.x,E6.translateY=E6.y;var D6=new Set,O6=!1,k6=!1,A6=!1;function j6(){if(k6){let e=Array.from(D6).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Rle(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}k6=!1,O6=!1,D6.forEach(e=>e.complete(A6)),D6.clear()}function M6(){D6.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(k6=!0)})}function zle(){A6=!0,M6(),j6(),A6=!1}var N6=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(D6.add(this),O6||(O6=!0,c3.read(M6),c3.resolveKeyframes(j6))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}jle(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),D6.delete(this)}cancel(){this.state===`scheduled`&&(D6.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Ble=e=>e.startsWith(`--`);function P6(e,t,n){Ble(t)?e.style.setProperty(t,n):e.style[t]=n}var Vle={};function F6(e,t){let n=F4(e);return()=>Vle[t]??n()}var Hle=F6(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),I6=F6(()=>{try{document.createElement(`div`).animate({opacity:0}
50,{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),L6=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,R6={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:L6([0,.65,.55,1]),circOut:L6([.55,0,1,.45]),backIn:L6([.31,.01,.66,-.59]),backOut:L6([.33,1.53,.69,.99])};function z6(e,t){if(e)return typeof e==`function`?I6()?X3(e,t):`ease-out`:r3(e)?L6(e):Array.isArray(e)?e.map(e=>z6(e,t)||R6.easeOut):R6[e]}function Ule(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=z6(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function B6(e){return typeof e==`function`&&`applyToOptions`in e}function Wle({type:e,...t}){return B6(e)&&I6()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var V6=class extends p6{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Wle(e);this.animation=Ule(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=d6(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),P6(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return V4(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+V4(e)}get time(){return V4(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=B4(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`f
50inished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Hle()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),I4):r(this)}},H6={anticipate:X4,backInOut:Y4,circInOut:$4};function Gle(e){return e in H6}function Kle(e){typeof e.ease==`string`&&Gle(e.ease)&&(e.ease=H6[e.ease])}var U6=10,qle=class extends V6{constructor(e){Kle(e),f6(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new m6({...a,autoplay:!1}),s=Math.max(U6,p3.now()-this.startTime),c=A4(0,U6,s-U6),l=o.sample(s).value,{name:u}=this.options;i&&u&&P6(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},W6=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(z3.test(e)||e===`0`)&&!e.startsWith(`url(`));function Jle(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Yle(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=W6(i,t),s=W6(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:Jle(e)||(n===`spring`||B6(n))&&r}function G6(e){e.duration=0,e.type=`keyframes`}var K6=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Xle=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Zle(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Xle.test(e[t]))return!0;return!1}var Qle=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),$le=F4(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function eue(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return $le()&&n&&(K6.has(n)||Qle.has(n)&&Zle(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var tue=40,nue=class extends p6{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=p3.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||N6;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=p3.now();let u=!0;Yle(e,i,a,o)||(u=!1,(j4.instantAnimations||!s)&&l?.(d6(e,n,t)),e[0]=e[e.length-1],G6(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>tue?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&eue(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new qle({...d,element:p})}catch{m=new m6(d)}else m=new m6(d);m.finished.then(()=>{this.notifyFinished()}).catch(I4),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),zle()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},rue=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return q6(this.animations,`duration`)}get iterationDuration(){return q6(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function q6(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var iue=class extends rue{then(e,t){return this.finished.finally(e).then(()=>{})}};function J6(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>
50e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Y6=30,aue=e=>!isNaN(parseFloat(e)),X6={current:void 0},oue=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=p3.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=p3.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=aue(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new z4);let n=this.events[e].add(t);return e===`change`?()=>{n(),c3.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return X6.current&&X6.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=p3.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Y6)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Y6);return H4(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Z6(e,t){return new oue(e,t)}function Q6(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function $6(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Q6(n,e)}var sue={type:`spring`,stiffness:500,damping:25,restSpeed:10},cue=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),lue={type:`keyframes`,duration:.8},uue={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},due=(e,{keyframes:t})=>t.length>2?lue:w6.has(e)?e.startsWith(`scale`)?cue(t[1]):sue:uue,fue=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function pue(e){for(let t in e)if(!fue.has(t))return!0;return!1}var e8=(e,t,n,r={},i,a)=>o=>{let s=$6(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=B4(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};pue(s)||Object.assign(u,due(e,u)),u.duration&&=B4(u.duration),u.repeatDelay&&=B4(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(G6(u),u.delay===0&&(d=!0)),(j4.instantAnimations||j4.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,G6(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=d6(u.keyframes,s);if(e!==void 0){c3.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new m6(u):new nue(u)},mue=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function hue(e){let t=mue.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function t8(e,t,n=1){`${e}`;let[r,i]=hue(e);
50if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return M4(e)?parseFloat(e):e}return g3(i)?t8(i,t,n+1):i}function n8(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function r8(e,t,n,r){if(typeof t==`function`){let[i,a]=n8(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=n8(r);t=t(n===void 0?e.custom:n,i,a)}return t}function i8(e,t,n){let r=e.getProps();return r8(r,t,n===void 0?r.custom:n,e)}var a8=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...C6]),o8=e=>Array.isArray(e);function gue(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Z6(n))}function _ue(e){return o8(e)?e[e.length-1]||0:e}function vue(e,t){let{transitionEnd:n={},transition:r={},...i}=i8(e,t)||{};i={...i,...n};for(let t in i)gue(e,t,_ue(i[t]))}var s8=e=>!!(e&&e.getVelocity);function yue(e){return!!(s8(e)&&e.add)}function c8(e,t){let n=e.getValue(`willChange`);if(yue(n))return n.add(t);if(!n&&j4.WillChange){let n=new j4.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function l8(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var u8=`data-`+l8(`framerAppearId`);function d8(e){return e.props[u8]}var bue=typeof window<`u`;function xue({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function f8(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Q6(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&xue(f,t))continue;let o={delay:n,...$6(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){c3.update(()=>r.set(i));continue}let p=!1;if(bue&&window.MotionHandoffAnimation){let n=d8(e);if(n){let e=window.MotionHandoffAnimation(n,t,c3);e!==null&&(o.startTime=e,p=!0)}}c8(e,t);let m=l??e.shouldReduceMotion;r.start(e8(t,r,i,m&&a8.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>c3.update(()=>{o&&vue(e,o)});d.length?Promise.all(d).then(t):t()}return d}function p8(e,t,n={}){let r=i8(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(f8(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Sue(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function Sue(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(p8(c,t,{...o,delay:n+(typeof r==`function`?0:r)+J6(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Cue(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>p8(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=p8(e,t,n);else{let i=typeof t==`function`?i8(e,t,n.custom):t;r=Promise.all(f8(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var wue={test:e=>e===`auto`,parse:e=>e},m8=e=>t=>t.test(e),h8=[v3,$,A3,k3,Qce,Zce,wue],g8=e=>h8.find(m8(e));function Tue(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||P4(e)}var Eue=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Due(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(S3)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Eue.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Oue=/\b([a-z-]*)\(.*?\)/gu,_8={...z3,getAnimatableNone:e=>{let t=e.match(Oue);return t?t.map(Due).join(` `):e}},v8={...z3,getAnimatableNone:e=>{let t=z3.parse(e);return z3.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},y8={...v3,transform:Math.round},b8={borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,inset:$,insetBlock:$,insetBlockStart:$,insetBlockEnd:$,insetInline:$,insetInlineStart:$,insetInlineEnd:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,paddingBlock:$,paddingBlockStart:$,paddingBlockEnd:$,paddingInline:$,paddingInlineStart:$,paddingInlineEnd:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,marginBlock:$,marginBlockStart:$,marginBlockEnd:$,marginInline:$,marginInlineStart:$,marginInlineEnd:$,fontSize:$,backgroundPositionX:$,backgroundPositionY:$,rotate:k3,pathRotation:k3,rotateX:k3,rotateY:k3,rotateZ:k3,scale:b3,scaleX:b3,scaleY:b3,scaleZ:b3,skew:k3,skewX:k3,skewY:k3,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:y3,originX:j3,originY:j3,originZ:$,zIndex:y8,fillOpacity:y3,strokeOpacity:y3,numOctaves:y8},kue={...b8,color:N3,backgroundColor:N3,outlineColor:N3,fill:N3,stroke:N3,borderColor:N3,borderTopColor:N3,borderRightColor:N3,borderBottomColor:N3,borderLeftColor:N3,filter:_8,WebkitFilter:_8,mask:v8,WebkitMask:v8},x8=e=>kue[e],Aue=new Set([_8,v8]);function S8(e,t){let n=x8(e);return Aue.has(n)||(n=z3),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var jue=new Set([`auto`,`none`,`0`]);function Mue(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!jue.has(t)&&L3(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=S8(n,i)}var Nue=class extends N6{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),g3(r))){let i=t8(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!a8.has(n)||e.length!==2)return;let[r,i]=e,a=g8(r),o=g8(i);if(_3(r)!==_3(i)&&E6[n]){this.needsMeasurement=!0;return}if(a!==o)if(T6(a)&&T6(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else E6[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Tue(e[t]))&&n.push(t);
50n.length&&Mue(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=E6[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=E6[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},C8=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function w8(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var T8=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Pue(e){return N4(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:E8,cancel:Fue}=s3(queueMicrotask,!1),D8={x:!1,y:!1};function O8(){return D8.x||D8.y}function Iue(e){return e===`x`||e===`y`?D8[e]?null:(D8[e]=!0,()=>{D8[e]=!1}):D8.x||D8.y?null:(D8.x=D8.y=!0,()=>{D8.x=D8.y=!1})}function k8(e,t){let n=w8(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Lue(e){return!(e.pointerType===`touch`||O8())}function Rue(e,t,n={}){let[r,i,a]=k8(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Lue(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var A8=(e,t)=>t?e===t?!0:A8(e,t.parentElement):!1,j8=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,zue=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Bue(e){return zue.has(e.tagName)||e.isContentEditable===!0}var Vue=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Hue(e){return Vue.has(e.tagName)||e.isContentEditable===!0}var M8=new WeakSet;function N8(e){return t=>{t.key===`Enter`&&e(t)}}function P8(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Uue=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=N8(()=>{if(M8.has(n))return;P8(n,`down`);let e=N8(()=>{P8(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>P8(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function F8(e){return j8(e)&&!O8()}var I8=new WeakSet;function Wue(e,t,n={}){let[r,i,a]=k8(e,n),o=e=>{let r=e.currentTarget;if(!F8(e)||I8.has(e))return;M8.add(r),n.stopPropagation&&I8.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),M8.has(r)&&M8.delete(r),F8(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||A8(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Pue(e)&&(e.addEventListener(`focus`,e=>Uue(e,i)),!Bue(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function L8(e){return N4(e)&&`ownerSVGElement`in e}var R8=new WeakMap,z8,B8=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:L8(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Gue=B8(`inline`,`width`,`offsetWidth`),Kue=B8(`block`,`height`,`offsetHeight`);function que({target:e,borderBoxSize:t}){R8.get(e)?.forEach(n=>
50{n(e,{get width(){return Gue(e,t)},get height(){return Kue(e,t)}})})}function Jue(e){e.forEach(que)}function Yue(){typeof ResizeObserver>`u`||(z8=new ResizeObserver(Jue))}function Xue(e,t){z8||Yue();let n=w8(e);return n.forEach(e=>{let n=R8.get(e);n||(n=new Set,R8.set(e,n)),n.add(t),z8?.observe(e)}),()=>{n.forEach(e=>{let n=R8.get(e);n?.delete(t),n?.size||z8?.unobserve(e)})}}var V8=new Set,H8;function Zue(){H8=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};V8.forEach(t=>t(e))},window.addEventListener(`resize`,H8)}function Que(e){return V8.add(e),H8||Zue(),()=>{V8.delete(e),!V8.size&&typeof H8==`function`&&(window.removeEventListener(`resize`,H8),H8=void 0)}}function U8(e,t){return typeof e==`function`?Que(e):Xue(e,t)}var W8={value:null,addProjectionMetrics:null};function G8(e){return L8(e)&&e.tagName===`svg`}function $ue(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=s6(i,a,o);return t?s(r):s}var ede=[...h8,N3,z3],tde=e=>ede.find(m8(e)),K8=()=>({translate:0,scale:1,origin:0,originPoint:0}),q8=()=>({x:K8(),y:K8()}),J8=()=>({min:0,max:0}),Y8=()=>({x:J8(),y:J8()}),X8=new WeakMap;function Z8(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Q8(e){return typeof e==`string`||Array.isArray(e)}var $8=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],e5=[`initial`,...$8];function t5(e){return Z8(e.animate)||e5.some(t=>Q8(e[t]))}function n5(e){return!!(t5(e)||e.variants)}function nde(e,t,n){for(let r in t){let i=t[r],a=n[r];if(s8(i))e.addValue(r,i);else if(s8(a))e.addValue(r,Z6(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Z6(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var r5={current:null},i5={current:!1},rde=typeof window<`u`;function ide(){if(i5.current=!0,rde)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>r5.current=e.matches;e.addEventListener(`change`,t),t()}else r5.current=!1}var a5=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],o5={};function s5(e){o5=e}function ade(){return o5}var c5=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=N6,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=p3.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,c3.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=t5(t),this.isVariantNode=n5(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&s8(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,X8.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
50h((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(i5.current||ide(),this.shouldReduceMotion=r5.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),l3(this.notifyUpdate),l3(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&K6.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new V6({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:B4(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=w6.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&c3.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in o5){let t=o5[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Y8()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<a5.length;t++){let n=a5[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=nde(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Z6(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(M4(n)||P4(n))?n=parseFloat(n):!tde(n)&&z3.test(t)&&(n=S8(e,t)),this.setBaseTarget(e,s8(n)?n.get():n)),s8(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=r8(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!s8(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new z4),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){E8.render(this.render)}},l5=class extends c5{constructor(){super(...arguments),this.KeyframeResolver=Nue}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;s8(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},u5=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function d5({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ode({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function sde(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function f5(e){return e===void 0||e===1}function p5({scale:e,scaleX:t,scaleY:n}){return!f5(e)||!f5(t)||!f5(n)}function m5(e){return p5(e)||h5(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function h5(e){return g5(e.x)||g5(e.y)}function g5(e){return e&&e!==`0%`}function _5(e,t,n){return n+t*(e-n)}function v5(e,t,n,r,i){return i!==void 0&&(e=_5(e,i,r)),_5(e,n,r)+t}function y5(e,t=0,n=1,r,i){e.min=v5(e.min,t,n,r,i),e.max=v5(e.max,t,n,r,i)}function b5(e,{x:t,y:n}){y5(e.x,t.translate,t.scale,t.originPoint),y5(e.y,n.translate,n.scale,n.originPoint)}var x5=.999999999999,S5=1.0000000000001;function cde(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(C5(e.x,-a.scroll.offset.x),C5(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,b5(e,o)),r&&m5(a.latestValues)&&E5(e,a.latestValues,a.layout?.layoutBox))}t.x<S5&&t.x>x5&&(t.x=1),t.y<S5&&t.y>x5&&(t.y=1)}function C5(e,t){e.min+=t,e.max+=t}function w5(e,t,n,r,i=.5){y5(e,t,n,H3(e.min,e.max,i),r)}function T5(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}
50function E5(e,t,n){let r=n??e;w5(e.x,T5(t.x,r.x),t.scaleX,t.scale,t.originX),w5(e.y,T5(t.y,r.y),t.scaleY,t.scale,t.originY)}function D5(e,t){return d5(sde(e.getBoundingClientRect(),t))}function lde(e,t,n){let r=D5(e,n),{scroll:i}=t;return i&&(C5(r.x,i.offset.x),C5(r.y,i.offset.y)),r}var ude={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},dde=C6.length;function fde(e,t,n){let r=``,i=!0;for(let a=0;a<dde;a++){let o=C6[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=T8(s,b8[o]);if(!c){i=!1;let t=ude[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${T8(a,b8.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function O5(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(w6.has(e)){o=!0;continue}else if(h3(e)){i[e]=n;continue}else{let t=T8(n,b8[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=fde(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function k5(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function A5(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var j5={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if($.test(e))e=parseFloat(e);else return e;return`${A5(e,t.target.x)}% ${A5(e,t.target.y)}%`}},pde={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=z3.parse(e);if(i.length>5)return r;let a=z3.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=H3(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},M5={borderRadius:{...j5,applyTo:[...C8]},borderTopLeftRadius:j5,borderTopRightRadius:j5,borderBottomLeftRadius:j5,borderBottomRightRadius:j5,boxSh
50adow:pde};function N5(e,{layout:t,layoutId:n}){return w6.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!M5[e]||e===`opacity`)}function P5(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(s8(r[t])||i&&s8(i[t])||N5(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function mde(e){return window.getComputedStyle(e)}var F5=class extends l5{constructor(){super(...arguments),this.type=`html`,this.renderInstance=k5}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(w6.has(t))return this.projection?.isProjecting?x6(t):Ple(e,t);{let n=mde(e),r=(h3(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return D5(e,t)}build(e,t,n){O5(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return P5(e,t,n)}};function hde(e,t){return e in t}var gde=class extends c5{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(hde(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Y8()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},_de={offset:`stroke-dashoffset`,array:`stroke-dasharray`},vde={offset:`strokeDashoffset`,array:`strokeDasharray`};function yde(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?_de:vde;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var I5=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function L5(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(O5(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of I5)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&yde(d,i,a,o,!1)}var R5=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),z5=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function bde(e,t,n,r){k5(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(R5.has(n)?n:l8(n),t.attrs[n])}function B5(e,t,n){let r=P5(e,t,n);for(let n in e)if(s8(e[n])||s8(t[n])){let t=C6.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var V5=class extends l5{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Y8}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(w6.has(t)){let e=x8(t);return e&&e.default||0}if(I5.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=R5.has(t)?t:l8(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return B5(e,t,n)}
50build(e,t,n){L5(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){bde(e,t,n,r)}mount(e){this.isSVGTag=z5(e.tagName),super.mount(e)}},xde=e5.length;function H5(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&H5(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<xde;n++){let r=e5[n],i=e.props[r];(Q8(i)||i===!1)&&(t[r]=i)}return t}function U5(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Sde=[...$8].reverse(),Cde=$8.length;function wde(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Cue(e,t,n)))}function Tde(e){let t=wde(e),n=G5(),r=!0,i=!1,a=t=>(n,r)=>{let i=i8(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=H5(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Cde;t++){let p=Sde[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Q8(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||Z8(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Ede(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=o8(t)&&o8(n)?!U5(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=i8(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=J6(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=i8(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=G5(),i=!0}}}function Ede(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!U5(t,e):!1}function W5(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function G5(){return{animate:W5(!0),whileInView:W5(),whileHover:W5(),whileTap:W5(),whileDrag:W5(),whileFocus:W5(),exit:W5()}}function K5(e,t){e.min=t.min,e.max=t.max}function q5(e,t){K5(e.x,t.x),K5(e.y,t.y)}function J5(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Dde=.9999,Ode=1.0001,kde=-.01,Ade=.01;function Y5(e){return e.max-e.min}function jde(e,t,n){return Math.abs(e-t)<=n}function X5(e,t,n,r=.5){e.origin=r,e.originPoint=H3(t.min,t.max,e.origin),e.scale=Y5(n)/Y5(t),e.translate=H3(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Dde&&e.scale<=Ode||isNaN(e.scale))&&(e.scale=1),(e.translate>=kde&&e.translate<=Ade||isNaN(e.translate))&&(e.translate=0)}function Z5(e,t,n,r){X5(e.x,t.x,n.x,r?r.originX:void 0),X5(e.y,t.y,n.y,r?r.originY:void 0)}function Q5(e,t,n,r=0){e.min=(r?H3(n.min,n.max,r):n.min)+t.min,e.max=e.min+Y5(t)}function Mde(e,t,n,r){Q5(e.x,t.x,n.x,r?.x),Q5(e.y,t.y,n.y,r?.y)}function $5(e,t,n,r=0){let i=r?H3(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Y5(t)}function e7(e,t,n,r){$5(e.x,t.x,n.x,r?.x),$5(e.y,t.y,n.y,r?.y)}function t7(e,t,n,r,i){return e-=t,e=_5(e,1/n,r),i!==void 0&&(e=_5(e,1/i,r)),e}function Nde(e,t=0,n=1,r=.5,i,a=e,o=e){if(A3.test(t)&&(t=parseFloat(t),t=H3(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=H3(a.min,a.max,r);e===a&&(s-=t),e.min=t7(e.min,t,n,s,i),e.max=t7(e.max,t,n,s,i)}function n7(e,t,[n,r,i],a,o){Nde(e,t[n],t[r],t[i],t.scale,a,o)}var Pde=[`x`,`scaleX`,`originX`],Fde=[`y`,`scaleY`,`originY`];function r7(e,t,n,r){n7(e.x,t,Pde,n?n.x:void 0,r?r.x:void 0),n7(e.y,t,Fde,n?n.y:void 0,r?r.y:void 0)}function i7(e){return e.translate===0&&e.scale===1}function a7(e){return i7(e.x)&&i7(e.y)}function o7(e,t){return e.min===t.min&&e.max===t.max}function Ide(e,t){return o7(e.x,t.x)&&o7(e.y,t.y)}function s7(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function c7(e,t){return s7(e.x,t.x)&&s7(e.y,t.y)}function l7(e){return Y5(e.x)/Y5(e.y)}function u7(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function d7(e){return[e(`x`),e(`y`)]}function Lde(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Rde=C8.length,f7=e=>typeof e==`string`?parseFloat(e):e,p7=e=>typeof e==`number`||$.test(e);function zde(e,t,n,r,i,a){i?(e.opacity=H3(0,n.opacity??1,Bde(r)),e.o
50pacityExit=H3(t.opacity??1,0,Vde(r))):a&&(e.opacity=H3(t.opacity??1,n.opacity??1,r));for(let i=0;i<Rde;i++){let a=C8[i],o=m7(t,a),s=m7(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||p7(o)===p7(s)?(e[a]=Math.max(H3(f7(o),f7(s),r),0),(A3.test(s)||A3.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=H3(t.rotate||0,n.rotate||0,r))}function m7(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Bde=h7(0,.5,Q4),Vde=h7(.5,.95,I4);function h7(e,t,n){return r=>r<e?0:r>t?1:n(R4(e,t,r))}function g7(e,t,n){let r=s8(e)?e:Z6(e);return r.start(e8(``,r,t,n)),r.animation}function _7(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Hde=(e,t)=>e.depth-t.depth,Ude=class{constructor(){this.children=[],this.isDirty=!1}add(e){O4(this.children,e),this.isDirty=!0}remove(e){k4(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Hde),this.isDirty=!1,this.children.forEach(e)}};function Wde(e,t){let n=p3.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(l3(r),e(a-t))};return c3.setup(r,!0),()=>l3(r)}function v7(e){return s8(e)?e.get():e}var Gde=class{constructor(){this.members=[]}add(e){O4(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(k4(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(k4(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},y7={hasAnimatedSinceResize:!0,hasEverUpdated:!1},b7={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},x7=[``,`X`,`Y`,`Z`],Kde=1e3,qde=0;function S7(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function C7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=d8(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,c3,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&C7(r)}function w7({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=qde++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,W8.value&&(b7.nodes=b7.calculatedTargetDeltas=b7.calculatedProjections=0),this.nodes.forEach(Xde),this.nodes.forEach(nfe),this.nodes.forEach(rfe),this.nodes.forEach(Zde),W8.addProjectionMetrics&&W8.addProjectionMetrics(b7)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ude)}
50addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new z4),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=L8(t)&&!G8(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;c3.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Wde(i,250),y7.hasAnimatedSinceResize&&(y7.hasAnimatedSinceResize=!1,this.nodes.forEach(D7)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||sfe,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!c7(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...$6(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||D7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),l3(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ife),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&C7(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach($de),this.nodes.forEach(T7);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(E7);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(efe),this.nodes.forEach(tfe),this.nodes.forEach(Jde),this.nodes.forEach(Yde)):this.nodes.forEach(E7),this.clearAllSnapshots();let e=p3.now();u3.delta=A4(0,1e3/60,e-u3.timestamp),u3.timestamp=e,u3.isProcessing=!0,d3.update.process(u3),d3.preRender.process(u3),d3.render.process(u3),u3.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,E8.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Qde),this.sharedNodes.forEach(afe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,c3.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){c3.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Y5(this.snapshot.measuredBox.x)&&
50!Y5(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=Y8(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!a7(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||m5(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),cfe(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Y8();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(lfe))){let{scroll:e}=this.root;e&&(C5(t.x,e.offset.x),C5(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Y8();if(q5(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&q5(t,e),C5(t.x,i.offset.x),C5(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Y8();q5(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(C5(r.x,-n.scroll.offset.x),C5(r.y,-n.scroll.offset.y)),m5(n.latestValues)&&E5(r,n.latestValues,n.layout?.layoutBox)}return m5(this.latestValues)&&E5(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Y8();q5(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!m5(n.latestValues))continue;let r;n.instance&&(p5(n.latestValues)&&n.updateSnapshot(),r=Y8(),q5(r,n.measurePageBox())),r7(t,n.latestValues,n.snapshot?.layoutBox,r)}return m5(this.latestValues)&&r7(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==u3.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=u3.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Y8(),this.targetWithTransforms=Y8()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Mde(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):q5(this.target,this.layout.layoutBox),b5(this.target,this.targetDelta)):q5(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),W8.value&&b7.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||p5(this.parent.latestValues)||h5(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y8(),this.relativeTargetOrigin=Y8(),e7(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),q5(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;
50if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===u3.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;q5(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;cde(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Y8());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(J5(this.prevProjectionDelta.x,this.projectionDelta.x),J5(this.prevProjectionDelta.y,this.projectionDelta.y)),Z5(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!u7(this.projectionDelta.x,this.prevProjectionDelta.x)||!u7(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),W8.value&&b7.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=q8(),this.projectionDelta=q8(),this.projectionDeltaWithTransform=q8()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=q8();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Y8(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(A7));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=H3(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=H3(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(O7(o.x,e.x,n),O7(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(e7(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),ofe(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Ide(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Y8(),q5(f,this.relativeTarget)),c&&(this.animationValues=a,zde(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(l3(this.pendingAnimation),void 0),this.pendingAnimation=c3.update(()=>{y7.hasAnimatedSinceResize=!0,this.motionValue||=Z6(0),this.motionValue.jump(0,!1),this.currentAnimation=g7(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Kde),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&P7(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Y8();let t=Y5(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Y5(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}q5(t,n),E5(t,i),Z5(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
50)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Gde),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&S7(`z`,e,r,this.animationValues);for(let t=0;t<x7.length;t++)S7(`rotate${x7[t]}`,e,r,this.animationValues),S7(`skew${x7[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=v7(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=v7(t?.pointerEvents)||``),this.hasProjected&&!m5(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Lde(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in M5){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=M5[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?v7(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(T7),this.root.sharedNodes.clear()}}}function Jde(e){e.updateLayout()}function Yde(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)d7(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Y5(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;K5(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else P7(i,t.layoutBox,n)&&d7(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Y5(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=q8();Z5(o,n,t.layoutBox);let s=q8();a?Z5(s,e.applyTransform(r,!0),t.measuredBox):Z5(s,n,t.layoutBox);let c=!a7(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=Y8();e7(s,t.layoutBox,i.layoutBox,o);let c=Y8();e7(c,n,a.layoutBox,o),c7(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Xde(e){W8.value&&b7.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Zde(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Qde(e){e.clearSnapshot()}function T7(e){e.clearMeasurements()}function $de(e){e.isLayoutDirty=!0,e.updateLayout()}function E7(e){e.isLayoutDirty=!1}function efe(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function tfe(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function D7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function nfe(e){e.resolveTargetDelta()}function rfe(e){e.calcProjection()}
50function ife(e){e.resetSkewAndRotation()}function afe(e){e.removeLeadSnapshot()}function O7(e,t,n){e.translate=H3(t.translate,0,n),e.scale=H3(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function k7(e,t,n,r){e.min=H3(t.min,n.min,r),e.max=H3(t.max,n.max,r)}function ofe(e,t,n,r){k7(e.x,t.x,n.x,r),k7(e.y,t.y,n.y,r)}function A7(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var sfe={duration:.45,ease:[.4,0,.1,1]},j7=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),M7=j7(`applewebkit/`)&&!j7(`chrome/`)?Math.round:I4;function N7(e){e.min=M7(e.min),e.max=M7(e.max)}function cfe(e){N7(e.x),N7(e.y)}function P7(e,t,n){return e===`position`||e===`preserve-aspect`&&!jde(l7(t),l7(n),.2)}function lfe(e){return e!==e.root&&e.scroll?.wasRoot}var ufe=w7({attachResizeListener:(e,t)=>_7(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),F7={current:void 0},I7=w7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!F7.current){let e=new ufe({});e.mount(window),e.setOptions({layoutScroll:!0}),F7.current=e}return F7.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),L7=(0,w.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function dfe(e=!0){let t=(0,w.useContext)(D4);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,w.useId)();(0,w.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,w.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var R7=(0,w.createContext)({strict:!1}),z7={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},B7=!1;function ffe(){if(B7)return;let e={};for(let t in z7)e[t]={isEnabled:e=>z7[t].some(t=>!!e[t])};s5(e),B7=!0}function V7(){return ffe(),ade()}function pfe(e){let t=V7();for(let n in e)t[n]={...t[n],...e[n]};s5(t)}var H7=(0,w.createContext)({});function mfe(e,t){if(t5(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Q8(t)?t:void 0,animate:Q8(n)?n:void 0}}return e.inherit===!1?{}:t}function hfe(e){let{initial:t,animate:n}=mfe(e,(0,w.useContext)(H7));return(0,w.useMemo)(()=>({initial:t,animate:n}),[U7(t),U7(n)])}function U7(e){return Array.isArray(e)?e.join(` `):e}var W7=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function G7(e,t,n){for(let r in t)!s8(t[r])&&!N5(r,n)&&(e[r]=t[r])}function gfe({transformTemplate:e},t){return(0,w.useMemo)(()=>{let n=W7();return O5(n,t,e),Object.assign({},n.vars,n.style)},[t])}function _fe(e,t){let n=e.style||{},r={};return G7(r,n,e),Object.assign(r,gfe(e,t)),r}function vfe(e,t){let n={},r=_fe(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var K7=()=>({...W7(),attrs:{}});function yfe(e,t,n,r){let i=(0,w.useMemo)(()=>{let n=K7();return L5(n,t,z5(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};G7(t,e.style,e),i.style={...t,...i.style}}return i}var bfe=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function q7(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||bfe.has(e)}function xfe(e,t){return e.startsWith(`on`)?!q7(e):t?.(e)??!q7(e)}function Sfe(e,t,n,r){let i={};for(let a in e)a===`values`&&typeof e.values==`object`||s8(e[a])||(xfe(a,r)||n===!0&&q7(a)||!t&&!q7(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]);return i}var Cfe=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function J7(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Cfe.indexOf(e)>-1||/[A-Z]/u.test(e))}function wfe(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??J7(e)?yfe:vfe)(t,r,i,e),l=Sfe(t,typeof e==`string`,a,s),u=e===w.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,w.useMemo)(()=>s8(d)?d.get():d,[d]);return(0,w.createElement)(e,{...u,children:f})}function Tfe({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Efe(n,r,i,e),renderState:t()}}function Efe(e,t,n,r){let i={}
50,a=r(e,{});for(let e in a)i[e]=v7(a[e]);let{initial:o,animate:s}=e,c=t5(e),l=n5(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Z8(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=r8(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Y7=e=>(t,n)=>{let r=(0,w.useContext)(H7),i=(0,w.useContext)(D4),a=()=>Tfe(e,t,r,i);return n?a():T4(a)},Dfe=Y7({scrapeMotionValuesFromProps:P5,createRenderState:W7}),Ofe=Y7({scrapeMotionValuesFromProps:B5,createRenderState:K7}),kfe=Symbol.for(`motionComponentSymbol`);function Afe(e,t,n){let r=(0,w.useRef)(n);(0,w.useInsertionEffect)(()=>{r.current=n});let i=(0,w.useRef)(null);return(0,w.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var X7=(0,w.createContext)({});function Z7(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function jfe(e,t,n,r,i,a){let{visualElement:o}=(0,w.useContext)(H7),s=(0,w.useContext)(R7),c=(0,w.useContext)(D4),l=(0,w.useContext)(L7),u=l.reducedMotion,d=l.skipAnimations,f=(0,w.useRef)(null),p=(0,w.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,w.useContext)(X7);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Mfe(f.current,n,i,h);let g=(0,w.useRef)(!1);(0,w.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[u8],v=(0,w.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return E4(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,w.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Mfe(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Q7(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Z7(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Q7(e){if(e)return e.options.allowProjection===!1?Q7(e.parent):e.projection}function $7(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&pfe(r);let a=n?n===`svg`:J7(e),o=a?Ofe:Dfe;function s(n,s){let c,l={...(0,w.useContext)(L7),...n,layoutId:Nfe(n)},{isStatic:u,isValidProp:d}=l,f=hfe(n),p=o(n,u);if(!u&&typeof window<`u`){Pfe(l,r);let t=Ffe(l);c=t.MeasureLayout,f.visualElement=jfe(e,p,l,i,t.ProjectionNode,a)}return(0,z.jsxs)(H7.Provider,{value:f,children:[c&&f.visualElement?(0,z.jsx)(c,{visualElement:f.visualElement,...l}):null,wfe(e,n,Afe(p,f.visualElement,s),p,u,t,a,d)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,w.forwardRef)(s);return c[kfe]=e,c}function Nfe({layoutId:e}){let t=(0,w.useContext)(w4).id;return t&&e!==void 0?t+`-`+e:e}function Pfe(e,t){(0,w.useContext)(R7).strict}function Ffe(e){let{drag:t,layout:n}=V7();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Ife(e,t){if(typeof Proxy>`u`)return $7;let n=new Map,r=(n,r)=>$7(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,$7(a,void 0,e,t)),n.get(a))})}var Lfe=(e,t)=>
50t.isSVG??J7(e)?new V5(t):new F5(t,{allowProjection:e!==w.Fragment}),Rfe=class extends u5{constructor(e){super(e),e.animationState||=Tde(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Z8(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},zfe=0,Bfe={animation:{Feature:Rfe},exit:{Feature:class extends u5{constructor(){super(...arguments),this.id=zfe++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=i8(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function e9(e){return{point:{x:e.pageX,y:e.pageY}}}var Vfe=e=>t=>j8(t)&&e(t,e9(t));function t9(e,t,n,r){return _7(e,t,Vfe(n),r)}var n9=({current:e})=>e?e.ownerDocument.defaultView:null,r9=(e,t)=>Math.abs(e-t);function Hfe(e,t){let n=r9(e.x,t.x),r=r9(e.y,t.y);return Math.sqrt(n**2+r**2)}var i9=new Set([`auto`,`scroll`]),a9=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=o9(this.lastRawMoveEventInfo,this.transformPagePoint));let e=c9(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Hfe(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=u3;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=o9(t,this.transformPagePoint),c3.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=c9(e.type===`pointercancel`?this.lastMoveEventInfo:o9(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!j8(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=o9(e9(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=u3;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,c9(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=L4(t9(this.contextWindow,`pointermove`,this.handlePointerMove,d),t9(this.contextWindow,`pointerup`,this.handlePointerUp,d),t9(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(i9.has(e.overflowX)||i9.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),c3.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),l3(this.updatePoint)}};function o9(e,t){return t?{point:t(e.point)}:e}function s9(e,t){return{x:e.x-t.x,y:e.y-t.y}}function c9({point:e},t){return{point:e,delta:s9(e,l9(t)),offset:s9(e,Ufe(t)),velocity:Wfe(t,.1)}}function Ufe(e){return e[0]}function l9(e){return e[e.length-1]}function Wfe(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=l9(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>B4(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>B4(t)*2&&(r=e[1]);let a=V4(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Gfe(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?H3(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?H3(n,e,r.max):Math.min(e,n)),e}function u9(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Kfe(e,{top:t,left:n,bottom:r,right:i}){return{x:u9(e.x,n,i),y:u9(e.y,t,r)}}function d9(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function qfe(e,t){return{x:d9(e.x,t.x),y:d9(e.y,t.y)}}function Jfe(e,t){let n=.5,r=Y5(e),i=Y5(t);return i>r?n=R4(t.min,t.max-r,e.min):r>i&&(n=R4(e.min,e.max-i,t.min)),A4(0,1,n)}function Yfe(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var f9=.35;function Xfe(e=f9){return e===!1?e=0:e===!0&&(e=f9),{x:p9(e,`left`,`right`),y:p9(e,`top`,`bottom`)}}function p9(e,t,n){return{min:m9(e,t),max:m9(e,n)}}function m9(e,t){return typeof e==`number`?e:e[t]||0}var Zfe=new WeakMap,Qfe=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Y8(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(e9(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Iue(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),d7(e=>{let t=this.getAxisMotionValue(e).get()||0;if(A3.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Y5(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&c3.update(()=>i(e,t),!1,!0),c8(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=epe(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&c3.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new a9(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:n9(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&c3.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!g9(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Gfe(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Z7(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Kfe(n.layoutBox,e):this.constraints=!1,this.elastic=Xfe(t),r!==this.constraints&&!Z7(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&d7(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Yfe(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Z7(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=lde(n,r.root,this.visualElement.getTransformPagePoint()),a=qfe(r.layout.layoutBox,i);if(t){let e=t(ode(a));this.hasMutatedConstraints=!!e,e&&(a=d5(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=d7(o=>{if(!g9(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return c8(this.visualElement,e),n.start(e8(e,n,0,t,this.visualElement,!1))}stopAnimation(){d7(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){d7(t=>{let{drag:n}=this.getProps();
50if(!g9(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-H3(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Z7(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};d7(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Jfe({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),d7(t=>{if(!g9(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(H3(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Zfe.set(this.visualElement,this);let e=this.visualElement.current,t=t9(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Hue(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Z7(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=$fe(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),c3.read(r);let o=_7(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(d7(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=f9,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function h9(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function $fe(e,t,n){let r=U8(e,h9(n)),i=U8(t,h9(n));return()=>{r(),i()}}function g9(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function epe(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var tpe=class extends u5{constructor(e){super(e),this.removeGroupControls=I4,this.removeListeners=I4,this.controls=new Qfe(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||I4}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},_9=e=>(t,n)=>{e&&c3.update(()=>e(t,n),!1,!0)},npe=class extends u5{constructor(){super(...arguments),this.removePointerDownListener=I4}onPointerDown(e){this.session=new a9(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n9(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:_9(e),onStart:_9(t),onMove:_9(n),onEnd:(e,t)=>{delete this.session,r&&c3.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=t9(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},v9=!1,rpe=class extends w.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),v9&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),y7.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),v9=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||c3.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),E8.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;v9=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function y9(e){let[t,n]=dfe(),r=(0,w.useContext)(w4);return(0,z.jsx)(rpe,{...e,layoutGroup:r,switchLayoutGroup:(0,w.useContext)(X7),isPresent:t,safeToRemove:n})}var ipe={pan:{Feature:npe},drag:{Feature:tpe,ProjectionNode:I7,MeasureLayout:y9}};function b9(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&c3.postRender(()=>i(t,e9(t)))}var ape=class extends u5{mount(){let{current:e}=this.node;e&&(this.unmount=Rue(e,(e,t)=>(b9(this.node,t,`Start`),e=>b9(this.node,e,`End`))))}unmount(){}},ope=class extends u5{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=L4(_7(this.node.current,`focus`,()=>this.onFocus()),_7(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function x9(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&c3.postRender(()=>i(t,e9(t)))}var spe=class extends u5{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Wue(e,(e,t)=>(x9(this.node,t,`Start`),(e,{success:t})=>x9(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},S9=new WeakMap,C9=new WeakMap,cpe=e=>{let t=S9.get(e.target);t&&t(e)},lpe=e=>{e.forEach(cpe)};function upe({root:e,...t}){let n=e||document;C9.has(n)||C9.set(n,{});let r=C9.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(lpe,{root:e,...t})),r[i]}function dpe(e,t,n){let r=upe(t);return S9.set(e,n),r.observe(e),()=>{S9.delete(e),r.unobserve(e)}}var fpe={some:0,all:1},ppe=class extends u5{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:fpe[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=dpe(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(mpe(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function mpe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var hpe={inView:{Feature:ppe},tap:{Feature:spe},focus:{Feature:ope},hover:{Feature:ape}},gpe={layout:{ProjectionNode:I7,MeasureLayout:y9}},w9=Ife({...Bfe,...hpe,...ipe,...gpe},Lfe);function T9(e){let t=T4(()=>Z6(e)),{isStatic:n}=(0,w.useContext)(L7);if(n){let[,n]=(0,w.useState)(e);(0,w.useEffect)(()=>t.on(`change`,n),[])}return t}function E9(e,t){let n=T9(t()),r=()=>n.set(t());return r(),E4(()=>{let t=()=>c3.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>
50{n.forEach(e=>e()),l3(r)}}),n}function _pe(e){X6.current=[],e();let t=E9(X6.current,e);return X6.current=void 0,t}function D9(e,t,n,r){if(typeof e==`function`)return _pe(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return vpe(e,t,n,r);let i=typeof t==`function`?t:$ue(t,n,r),a=Array.isArray(e)?O9(e,i):O9([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function O9(e,t){let n=T4(()=>[]);return E9(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function vpe(e,t,n,r){let i=T4(()=>Object.keys(n)),a=T4(()=>({}));for(let o of i)a[o]=D9(e,t,n[o],r);return a}function k9(e){return typeof e==`object`&&!Array.isArray(e)}function A9(e,t,n,r){return e==null?[]:typeof e==`string`&&k9(t)?w8(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function ype(e,t,n){return e*(t+1)+n*t}function j9(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function bpe(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(k4(e,i),r--)}}function xpe(e,t,n,r,i,a){bpe(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:H3(i,a,r[o]),easing:n3(n,o)})}function Spe(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function Cpe(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var wpe=`easeInOut`,M9=20;function Tpe(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}else if(!Array.isArray(o)){l.set(o.name,j9(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=j9(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=Epe(e),{delay:l=0,times:u=l6(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=B6(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&kpe(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=B4(b));let r=$3(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&c6(u,T),c.length===1&&c.unshift(null),m&&`${m}${M9}`,m&&m<M9){let e=b>0?_/b:0;b=ype(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?K4(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:n3(f,e-1))}Spe(u,m,e)}let E=w+b;xpe(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(s8(p)){let e=N9(p,s);_(m,h,P9(`default`,e))}else{let e=A9(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=N9(r,s);for(let e in m)_(m[e],Dpe(h,e),P9(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Cpe);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(R4(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(wpe)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function N9(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function P9(e,t){return t[e]||(t[e]=[]),t[e]}function Epe(e){return Array.isArray(e)?e:[e]}function Dpe(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Ope=e=>typeof e==`number`,kpe=e=>e.every(Ope);function Ape(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=L8(e)&&!G8(e)?new V5(t):new F5(t);n.mount(e),X8.set(e,n)}function jpe(e){let t=new gde({presenceContext:null,props:{}
50,visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),X8.set(e,t)}function Mpe(e,t){return s8(e)||typeof e==`number`||typeof e==`string`&&!k9(t)}function F9(e,t,n,r){let i=[];if(Mpe(e,t))i.push(g7(e,k9(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=A9(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s=r instanceof Element?Ape:jpe;X8.has(r)||s(r);let c=X8.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...f8(c,{...t,transition:l},{}))}}return i}function Npe(e,t,n){let r=[];return Tpe(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=Z6(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:i6}).forEach(({keyframes:e,transition:t},n)=>{r.push(...F9(n,e,t))}),r}function Ppe(e){return Array.isArray(e)&&e.some(Array.isArray)}function Fpe(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),Ppe(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=Npe(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=F9(e,i,{...c,...r},t)}let l=new iue(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{k4(t.animations,l)})),l}return i}var Ipe=Fpe(),Lpe={some:0,all:1};function Rpe(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=w8(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n)if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:Lpe[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function zpe(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=(0,w.useState)(a);return(0,w.useEffect)(()=>{if(!e.current||i&&o)return;let a=()=>(s(!0),i?void 0:()=>s(!1)),c={root:t&&t.current||void 0,margin:n,amount:r};return Rpe(e.current,a,c)},[t,e,n,i,r]),o}var Bpe={"fable-5.1":`Claude Fable 5.1`,"fable-5":`Claude Fable 5`,"opus-5.5":`Claude Opus 5.5`,"opus-5":`Claude Opus 5`,"opus-4.8":`Claude Opus 4.8`,"opus-4.7":`Claude Opus 4.7`,"opus-4.6":`Claude Opus 4.6`,"sonnet-5.5":`Claude Sonnet 5.5`,"sonnet-5":`Claude Sonnet 5`,"sonnet-4.6":`Claude Sonnet 4.6`,"haiku-4.5":`Claude Haiku 4.5`,"gpt-6-astra":`GPT-6 Astra`,"gpt-6.1-sol":`GPT-6.1 Sol`,"gpt-6-sol":`GPT-6 Sol`,"gpt-6-luna":`GPT-6 Luna`,"gpt-5.6-sol":`GPT-5.6 Sol`,"gpt-5.6-terra":`GPT-5.6 Terra`,"gpt-5.6-luna":`GPT-5.6 Luna`,"gpt-5.5":`GPT-5.5`,"gpt-5.4":`GPT-5.4`,"gemini-4-argon":`Gemini 4 Argon`,"gemini-3.1-pro":`Gemini 3.1 Pro`,"gemini-3-pro":`Gemini 3 Pro`,"gemini-3.5-flash":`Gemini 3.5 Flash`,"gemini-3.6-flash":`Gemini 3.6 Flash`,"gemini-3.7-flash":`Gemini 3.7 Flash`,"gemini-3.8-flash":`Gemini 3.8 Flash`,"glm-5.3":`GLM-5.3`,"glm-5.2":`GLM-5.2`,"grok-4.7":`Grok 4.7`,"grok-4.6":`Grok 4.6`,"grok-4.5":`Grok 4.5`,"kimi-k3":`Kimi K3`,"qwen3.8-max-0902":`Qwen3.8 Max`,"qwen3.8-max":`Qwen3.8 Max`,"muse-spark-1.3":`Muse Spark 1.3`,"muse-spark-1.2":`Muse Spark 1.2`,"mimo-v2.6-pro":`MiMo-V2.6-Pro`,"deepseek-v4.1-flash":`DeepSeek V4.1 Flash`,"deepseek-v4-pro":`DeepSeek V4 Pro`},Vpe=new Set([`gpt`,`glm`,`hy`,`ai`,`oss`]);function Hpe(e){return Bpe[e.id]||e.name.split(`-`).map(e=>Vpe.has(e.toLowerCase())?e.toUpperCase():e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}var Upe={Anthropic:`#D97757`,OpenAI:`#10A37F`,Google:`#3186FF`,xAI:`#71767B`,Kimi:`#0EA5E9`,"Z.ai":`#8B5CF6`,Alibaba:`#FF6A00`,Meta:`#0668E1`,DeepSeek:`#536DFE`,Xiaomi:`#FF9F1C`,MiniMax:`#E91E63`};function I9(e){return Upe[e]??`#ABABAB`}var Wpe={Kimi:`Moonshot (Kimi)`};function Gpe(e){return Wpe[e]??e}var Kpe=[`Google`,`xAI`,`Kimi`,`Z.ai`,`Meta`,`DeepSeek`,`Alibaba`];function qpe(e,t){let n=[...e].sort((e,t)=>e.rank-t.rank),r=new Map;n.slice(0,Math.min(6,t)).forEach(e=>r.set(e.id,e));for(let e of Kpe){if(r.size>=t)break;if([...r.values()].some(t=>t.provider===e))continue;let i=n.find(t=>t.provider===e);i&&r.set(i.id,i)}for(let e of n){if(r.size>=t)break;r.set(e.id,e)}return[...r.values()].sort((e,t)=>
50e.rank-t.rank)}var Jpe=[{slug:`abstract-reasoning`,label:`Raciocínio abstrato`,description:`problema novo, nunca visto antes`},{slug:`mathematical-reasoning`,label:`Matemática`,description:`contas e provas em vários passos`},{slug:`academic-reasoning`,label:`Conhecimento acadêmico`,description:`nível universitário, todas as áreas`},{slug:`programmatic-reasoning`,label:`Programação`,description:`escrever e corrigir código`},{slug:`computer-use`,label:`Uso do computador`,description:`operar navegador e programas`},{slug:`reliability`,label:`Confiabilidade`,description:`seguir a instrução e admitir o que não sabe`}];function Ype(e){let t=(e-100)/50*100;return Math.max(0,Math.min(100,t))}function Xpe(e){let t=Jpe.map(t=>{let n=e.map(e=>e.dimensions?.[t.slug]).filter(e=>typeof e==`number`),r=n.length?Math.round(n.reduce((e,t)=>e+t,0)/n.length):0;return{...t,iq:r,lowest:!1}}).filter(e=>e.iq>0);if(t.length===0)return t;let n=Math.min(...t.map(e=>e.iq));return t.map(e=>({...e,lowest:e.iq===n})).sort((e,t)=>t.iq-e.iq)}var Zpe=`2026-09-30T22:18:35.979Z`,L9=(e,t,n,r,i,a)=>({"abstract-reasoning":e,"mathematical-reasoning":t,"academic-reasoning":n,"programmatic-reasoning":r,"computer-use":i,reliability:a}),Qpe=[{id:`opus-5.5`,name:`opus-5.5`,provider:`Anthropic`,rank:1,iq:143,dimensions:L9(131,151,140,156,144,134)},{id:`gpt-6-astra`,name:`gpt-6-astra`,provider:`OpenAI`,rank:2,iq:142,dimensions:L9(134,152,136,155,140,136)},{id:`gpt-6.1-sol`,name:`gpt-6.1-sol`,provider:`OpenAI`,rank:3,iq:141,dimensions:L9(133,152,137,152,141,132)},{id:`fable-5.1`,name:`fable-5.1`,provider:`Anthropic`,rank:4,iq:140,dimensions:L9(129,150,137,146,143,136)},{id:`gpt-6-sol`,name:`gpt-6-sol`,provider:`OpenAI`,rank:5,iq:139,dimensions:L9(124,150,136,151,141,129)},{id:`opus-5`,name:`opus-5`,provider:`Anthropic`,rank:6,iq:138,dimensions:L9(131,146,135,148,137,132)},{id:`gpt-5.6-sol`,name:`gpt-5.6-sol`,provider:`OpenAI`,rank:7,iq:137,dimensions:L9(130,147,134,147,135,127)},{id:`fable-5`,name:`fable-5`,provider:`Anthropic`,rank:8,iq:136,dimensions:L9(129,145,136,141,135,130)},{id:`sonnet-5.5`,name:`sonnet-5.5`,provider:`Anthropic`,rank:9,iq:132,dimensions:L9(111,145,138,145,127,127)},{id:`gemini-3.8-flash`,name:`Gemini 3.8 Flash`,provider:`Google`,rank:10,iq:131,dimensions:L9(130,130,134,139,126,131)},{id:`gpt-5.5`,name:`gpt-5.5`,provider:`OpenAI`,rank:11,iq:131,dimensions:L9(119,143,133,133,128,126)},{id:`gpt-5.6-terra`,name:`gpt-5.6-terra`,provider:`OpenAI`,rank:12,iq:131,dimensions:L9(122,142,131,146,128,119)},{id:`grok-4.7`,name:`grok-4.7`,provider:`xAI`,rank:14,iq:129,dimensions:L9(108,130,135,141,130,127)},{id:`kimi-k3`,name:`kimi-k3`,provider:`Kimi`,rank:16,iq:128,dimensions:L9(109,137,133,136,132,121)},{id:`muse-spark-1.3`,name:`Muse Spark 1.3`,provider:`Meta`,rank:17,iq:128,dimensions:L9(105,136,134,136,132,127)},{id:`glm-5.3`,name:`GLM-5.3`,provider:`Z.ai`,rank:18,iq:127,dimensions:L9(106,131,133,142,129,122)},{id:`qwen3.8-max-0902`,name:`Qwen3.8 Max 0902`,provider:`Alibaba`,rank:24,iq:125,dimensions:L9(103,133,132,142,121,120)},{id:`deepseek-v4.1-flash`,name:`DeepSeek V4.1 Flash`,provider:`DeepSeek`,rank:25,iq:124,dimensions:L9(102,132,131,132,129,120)}],$pe=[{name:`AI IQ · ranking de modelos`,url:`https://www.aiiq.org/models/`,note:`O ranking completo, com o QI estimado de cada modelo`},{name:`AI IQ · metodologia`,url:`https://www.aiiq.org/methodology/`,note:`Como as notas das provas viram pontos de QI`}],eme={name:`AI IQ · metodologia`,url:`https://www.aiiq.org/methodology/`},tme=`Cada barra mostra quanto a nota passa de 100, a média humana. As notas vêm das provas técnicas que os modelos já fazem, convertidas para a escala de QI.`,R9=80,z9=155,B9=86,nme=12,rme=8,ime=6,V9=16,H9=8,U9=12,ame=40,ome=10,W9=e=>Math.exp(-.5*((e-100)/15)**2),sme=e=>1-(1-e)**3;function cme({model:e,index:t,count:n,progress:r,layout:i,narrow:a}){let{xScale:o,yScale:s,baselineY:c,radius:l,stack:u}=i,d=I9(e.provider),f=n>1?t/(n-1)*.4:0,p=D9(r,[f,f+.6],[0,1]),m=D9(p,t=>B9+(e.iq-B9)*sme(t)),h=e.depth*u,g=D9(m,e=>o(e)),_=D9(m,e=>Math.min(s(W9(e))+h,c-l)),v=D9(p,[0,1],[.25,1]);return(0,z.jsxs)(w9.g,{style:{opacity:v},children:[(0,z.jsx)(w9.line,{x1:g,x2:g,y1:_,y2:c,stroke:d,strokeOpacity:.3}),(0,z.jsx)(w9.circle,{cx:g,cy:_,r:l,fill:d,stroke:`var(--foreground)`,strokeOpacity:.9,strokeWidth:a?1.5:2,children:(0,z.jsx)(`title`,{children:`${e.label} · ${e.provider} · QI ${e.iq}`})})]})}function lme({model:e,progress:t,layout:n,narrow:r}){let{xScale:i,yScale:a,padTop:o,radius:s,stack:c}=n,l=D9(t,[.7,1],[0,1]),u=o-H9-e.row*V9,d=i(e.iq),f=a(W9(e.iq))+e.depth*c;return(0,z.jsxs)(w9.g,{style:{opacity:l},children:[(0,z.jsx)(`line`,{x1:e.labelX,x2:d,y1:u+4,y2:f-s-3,stroke:`var(--accent)`,strokeOpacity:.45}),(0,z.jsxs)(`text`,{x:e.labelX,y:u,textAnchor:`middle`,fill:`var(--foreground)`,fontSize:r?10.5:12,fontWeight:700,children:[e.label,` · `,e.iq]})]})}function ume({models:e}){let t=(0,w.useRef)(null),[n,r]=(0,w.useState)(0);(0,w.useEffect)(()=>{let e=t.current;if(!e)return;let n=new ResizeObserver(e=>r(e[0].contentRect.width));return n.observe(e),()=>n.disconnect()},[]);let i=n>0&&n<560,a=i?5:7,o=i?10.5:12,s=(0,w.useMemo)(()=>qpe(e,i?rme:nme),[e,i]),{placed:c,rowsUsed:l}=(0,w.useMemo)(()=>
50{if(n===0)return{placed:[],rowsUsed:1};let e=n-U9*2,t=t=>U9+(t-R9)/(z9-R9)*e,r=e=>`${e.label} · ${e.iq}`.length*o*.56,i=new Map,a=[],c=0,l=[...s].sort((e,t)=>t.iq-e.iq),u=new Map;return l.forEach(e=>{let i=r(e)/2,o=Math.min(Math.max(t(e.iq),U9+i),n-U9-i),s=[o-i-H9,o+i+H9],l=-1;for(let e=0;e<ime;e++){let t=a[e]??[];if(!t.some(([e,t])=>s[0]<t&&s[1]>e)){a[e]=[...t,s],l=e;break}}l>=0&&(c=Math.max(c,l+1)),u.set(e.id,{row:l,labelX:o})}),{placed:[...s].sort((e,t)=>e.iq-t.iq).map(e=>{let n=i.get(e.iq)??0;i.set(e.iq,n+1);let r=u.get(e.id);return{...e,depth:n,row:r?.row??-1,labelX:r?.labelX??t(e.iq)}}),rowsUsed:Math.max(c,1)}},[s,n,o]),u=(0,w.useMemo)(()=>{if(n===0)return null;let e=ome+l*V9,t=i?300:370,r=n-U9*2,o=t-e-ame,s=e=>U9+(e-R9)/(z9-R9)*r,c=t=>e+o-t*o*.94;return{width:n,height:t,padTop:e,xScale:s,yScale:c,baselineY:c(0),radius:a,stack:a*2+2}},[n,i,l,a]),d=zpe(t,{once:!0,amount:.35}),f=T9(0);(0,w.useEffect)(()=>{if(!d||c.length===0)return;f.set(0);let e=Ipe(f,1,{duration:1.9,ease:`linear`});return()=>e.stop()},[d,c]);let p=[80,90,100,110,120,130,140,150],m=(0,w.useMemo)(()=>{let e=new Set;return s.filter(t=>e.has(t.provider)?!1:(e.add(t.provider),!0))},[s]),h=(0,w.useMemo)(()=>{if(!u)return``;let e=[];for(let t=R9;t<=z9;t++)e.push(`${u.xScale(t)},${u.yScale(W9(t))}`);return`M ${u.xScale(R9)},${u.baselineY} L ${e.join(` L `)} L ${u.xScale(z9)},${u.baselineY} Z`},[u]);return(0,z.jsxs)(`div`,{ref:t,className:`flex flex-col w-full gap-3`,children:[u&&(0,z.jsxs)(`svg`,{width:u.width,height:u.height,role:`img`,"aria-label":`QI estimado dos principais modelos de IA sobre a distribuição da população humana`,children:[(0,z.jsx)(`defs`,{children:(0,z.jsxs)(`linearGradient`,{id:`iqCurveFill`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,z.jsx)(`stop`,{offset:`0%`,stopColor:`var(--accent)`,stopOpacity:.22}),(0,z.jsx)(`stop`,{offset:`100%`,stopColor:`var(--accent)`,stopOpacity:0})]})}),(0,z.jsx)(`path`,{d:h,fill:`url(#iqCurveFill)`,stroke:`var(--accent)`,strokeOpacity:.55,strokeWidth:1.5}),(0,z.jsx)(`line`,{x1:U9,x2:u.width-U9,y1:u.baselineY,y2:u.baselineY,stroke:`var(--border)`}),p.map(e=>(0,z.jsxs)(`g`,{children:[(0,z.jsx)(`line`,{x1:u.xScale(e),x2:u.xScale(e),y1:u.baselineY,y2:u.baselineY+5,stroke:`var(--accent)`,strokeOpacity:.7}),(0,z.jsx)(`text`,{x:u.xScale(e),y:u.baselineY+22,textAnchor:`middle`,fontSize:i?11:12.5,fontWeight:e===100?700:400,fill:e===100?`var(--foreground)`:`var(--accent)`,children:e})]},e)),(0,z.jsx)(`line`,{x1:u.xScale(100),x2:u.xScale(100),y1:u.yScale(W9(100)),y2:u.baselineY,stroke:`var(--accent)`,strokeOpacity:.6,strokeDasharray:`4 4`}),(0,z.jsx)(`text`,{x:u.xScale(100),y:u.yScale(W9(100))-8,textAnchor:`middle`,fontSize:i?10.5:12,fill:`var(--accent)`,children:`média humana`}),c.map((e,t)=>(0,z.jsx)(cme,{model:e,index:t,count:c.length,progress:f,layout:u,narrow:i},e.id)),c.filter(e=>e.row>=0).map(e=>(0,z.jsx)(lme,{model:e,progress:f,layout:u,narrow:i},`label-${e.id}`))]}),(0,z.jsx)(`div`,{className:`flex flex-wrap items-center gap-x-5 gap-y-2`,children:m.map(e=>(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`size-2.5 rounded-full shrink-0`,style:{backgroundColor:I9(e.provider)}}),(0,z.jsx)(H,{size:1,color:`silver`,children:Gpe(e.provider)})]},e.provider))})]})}var dme=`https://www.aiiq.org/api/v1/models`;function G9(e){return{id:e.id,label:Hpe(e),provider:e.provider,rank:e.rank,iq:e.iq,dimensions:e.dimensions??{}}}function fme(e){let[t,n]=(0,w.useState)([]),[r,i]=(0,w.useState)(``),[a,o]=(0,w.useState)(`loading`);return(0,w.useEffect)(()=>{let t=!0;async function r(){try{let r=await fetch(dme);if(!r.ok)throw Error(String(r.status));let a=await r.json();if(!t)return;let s=a.models.filter(e=>e.iq!=null&&e.rank!=null).sort((e,t)=>e.rank-t.rank).map(G9);n(e?s.slice(0,e):s),i(typeof a.updatedAt==`string`?a.updatedAt:``),o(`live`)}catch{if(!t)return;let r=Qpe.map(G9);n(e?r.slice(0,e):r),i(Zpe),o(`fallback`)}}return r(),()=>{t=!1}},[e]),{models:t,updatedAt:r,status:a}}var pme=12;function mme(e){if(!e)return``;let t=new Date(e);return Number.isNaN(t.getTime())?``:t.toLocaleDateString(`pt-BR`)}function hme(){let{models:e,updatedAt:t,status:n}=fme(),r=mme(t),i=Xpe(e.slice(0,pme));return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`QI estimado · AI IQ`,title:(0,z.jsxs)(z.Fragment,{children:[`A IA já está `,(0,z.jsx)(`span`,{className:`text-primary`,children:`fora da curva`})]}),subtitle:`Na população, o QI médio é 100 e quase ninguém passa de 130. O AI IQ pega as provas que os modelos já fazem e converte cada resultado para essa mesma escala, para mostrar onde a máquina cairia se fosse comparada com pessoas.`}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-2 gap-3 w-full`,children:[(0,z.jsxs)(er,{className:`tablet:col-span-2`,children:[(0,z.jsx)(r4,{title:(0,z.jsxs)(z.Fragment,{children:[`Os principais modelos hoje`,` `,(0,z.jsx)(`span`,{className:`font-normal text-[#ABABAB]`,children:`· QI estimado · escala da população`})]})}),n===`loading`?(0,z.jsx)(`div`,{className:`flex items-center justify-center h-64`,children:(0,z.jsx)(H,{size:1,color:`silver`,children:`Carregando o dado ao vivo…`})}):(0,z.jsx)(ume,{models:e}),n===`fallback`&&(0,z.jsx)(H,{size:1,color:`primary`,children:`A fonte não respondeu agora. O gráfico mostra a última leitura arquivada, não o dado ao vivo.`}),(0,z.jsx)(na,{}),(0,z.jsxs)(`div`,{className:`flex flex-col tablet:flex-row tablet:items-center justify-between gap-2`,children:[(0,z.jsxs)(H,{size:1,color:`silver`,children:[`AI IQ · aiiq.org`,r?` · atualizado ${r}`:``]}),(0,z.jsx)(uH,{sources:$pe,dialogTitle:`QI estimado · fontes`})]})]}),(0,z.jsx)(o4,{scrollable:!0,visibleItems:3,title:(0,z.jsxs)(z.Fragment,{children:[`A nota em cada área`,` `,(0,z.jsx)(`span`,{className:`font-normal text-[#ABABAB]`,children:`· média dos 12 primeiros`})]}),items:i.map(e=>({title:e.label,description:e.description,subtitle:String(e.iq),scoreValue:Ype(e.iq),highlight:e.lowest})),footerText:tme,source:`AI IQ · metodologia`,onSourceClick:()=>lH(eme.url)}),(0,z.jsx)(u4,{name:`Álvaro Machado Dias`,note:[(0,z.jsxs)(z.Fragment,{children:[`A máquina vai melhor exatamente onde a tarefa se parece com uma prova: matemática, conteúdo acadêmico, programação. Vai pior nas duas coisas que prova nenhuma mede,`,` `,(0,z.jsx)(`span`,{className:`text-primary`,children:`resolver um problema que ela não pôde ter visto antes e não inventar resposta quando não sabe`}),`. São quase vinte pontos de diferença entre um grupo e outro.`]}),`Vale ler a posição na curva pelo que ela é: um retrato de desempenho em prova, pergunta fechada e resposta certa que alguém já conhece. Não diz por quanto tempo a IA sustenta um trabalho sem ninguém olhando, que é a medida do quadro seguinte. As duas subiram juntas até aqui, mas não são a mesma coisa.`]})]})]})}var K9={points:[{date:`2019`,model:`GPT-2`,timeLabel:`3 s`,minutes:.054},{date:`fev 2025`,model:`Claude 3.7 Sonnet`,timeLabel:`60 min`,minutes:60.4},{date:`abr 2025`,model:`o3`,timeLabel:`~2 h`,minutes:119.7},{date:`nov 2025`,model:`Opus 4.5`,timeLabel:`4h53`,minutes:293},{date:`fev 2026`,model:`Opus 4.6`,timeLabel:`~12 h`,minutes:719},{date:`abr 2026`,model:`Mythos Preview`,timeLabel:`~17h25`,minutes:1045}],mainStat:`~3h06`,mainStatDescription:`é o tempo que o Claude Mythos consegue trabalhar errando no máximo 20%`,margin:`Margem larga, no horizonte de 50%: de 8h30 a 55 horas. O teste ficou pequeno para o modelo.`,method:[{label:`200 tarefas reais`,description:`cronometradas com especialistas`}
50,{label:`A IA tenta sozinha`,description:`sem dicas, sem correção`},{label:`Horizonte`,description:`a duração em que acerta metade das vezes`}],practicalNotes:[{title:`O salto prático`,text:`A cada quatro meses, dobra o tempo de trabalho que a IA consegue assumir do começo ao fim. Não é só responder melhor: é ficar mais tempo executando sem intervenção humana.`},{title:`Não é uma prova comum`,text:`Este benchmark (METR) tem função prática: avaliar o tempo em que uma tarefa agêntica pode ser conduzida pela IA sem supervisão.`},{title:`Limites agênticos`,text:`Note que aqui estamos falando em até 20% de erros. Para 1% o tempo reduz-se dramaticamente.`}]},gme={name:`METR · Task-Completion Time Horizons`,url:`https://metr.org/time-horizons/`},_me={minutes:{label:`Horizonte`,color:`var(--primary)`}},vme=[.1,10,1e3];function yme(e){let{cx:t,cy:n,index:r,payload:i}=e,a=r===0,o=r===K9.points.length-1;return(0,z.jsxs)(`g`,{children:[(0,z.jsxs)(`text`,{x:t,y:n+(r%2==0?-12:-26),textAnchor:a?`start`:o?`end`:`middle`,className:`fill-foreground text-[10px]`,children:[i.model,` · `,i.timeLabel]}),(0,z.jsx)(`circle`,{cx:t,cy:n,r:o?5:3.5,fill:o?`var(--primary)`:`#FFFFFF`,stroke:o?`none`:`var(--primary)`,strokeWidth:o?0:1.5})]})}function bme(e){let{x:t,y:n,index:r,payload:i}=e,a=r===0,o=r===K9.points.length-1;return(0,z.jsx)(`text`,{x:t,y:n+12,textAnchor:a?`start`:o?`end`:`middle`,className:`fill-muted-foreground text-[11px]`,children:i.value})}function xme(){return(0,z.jsx)(TF,{config:_me,className:`w-full aspect-16/6`,children:(0,z.jsxs)(wF,{data:K9.points,margin:{top:40,left:8,right:8},children:[(0,z.jsx)(`defs`,{children:(0,z.jsxs)(`linearGradient`,{id:`fillAutonomy`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,z.jsx)(`stop`,{offset:`5%`,stopColor:`var(--color-minutes)`,stopOpacity:.5}),(0,z.jsx)(`stop`,{offset:`95%`,stopColor:`var(--color-minutes)`,stopOpacity:0})]})}),(0,z.jsx)(_P,{dataKey:`date`,tickLine:!1,axisLine:!1,tick:(0,z.jsx)(bme,{}),interval:0}),(0,z.jsx)(MP,{hide:!0,scale:`log`,domain:[.02,2e3]}),vme.map(e=>(0,z.jsx)(fA,{y:e,stroke:`var(--border)`,strokeOpacity:.5},e)),(0,z.jsx)(ZM,{dataKey:`minutes`,type:`monotone`,stroke:`var(--color-minutes)`,fill:`url(#fillAutonomy)`,dot:(0,z.jsx)(yme,{}),activeDot:!1})]})})}function Sme(){let e=K9;return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`Autonomia · Métrica METR`,title:(0,z.jsxs)(z.Fragment,{children:[`Quanto tempo a IA trabalha `,(0,z.jsx)(`span`,{className:`text-primary`,children:`sozinha`})]}),subtitle:`A METR mede o tamanho da maior tarefa que uma IA completa sem ajuda, contado em tempo de trabalho humano. Em 2019, tarefas de 3 segundos. Hoje, de mais de um dia útil.`}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-2 gap-3 w-full`,children:[(0,z.jsxs)(er,{children:[(0,z.jsx)(r4,{title:`Como se mede`}),(0,z.jsx)(`div`,{className:`flex flex-col gap-2`,children:e.method.map(e=>(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,z.jsx)(H,{className:`shrink-0`,children:e.label}),(0,z.jsx)(H,{size:1,color:`silver`,className:`text-right`,children:e.description})]},e.label))}),(0,z.jsx)(na,{}),(0,z.jsx)(Fi,{size:6,weight:`bold`,children:e.mainStat}),(0,z.jsx)(H,{color:`silver`,children:e.mainStatDescription}),(0,z.jsx)(H,{size:1,color:`silver`,children:e.margin}),(0,z.jsx)(`div`,{className:`flex items-center justify-between`,children:(0,z.jsx)(cH,{title:`Ver fonte`,onClick:()=>lH(gme.url)})})]}),(0,z.jsxs)(er,{children:[(0,z.jsx)(r4,{title:(0,z.jsxs)(z.Fragment,{children:[`A curva da autonomia `,(0,z.jsx)(`span`,{className:`font-normal text-[#ABABAB]`,children:`· horizonte de 50% por data de lançamento · escala logarítmica`})]})}),(0,z.jsx)(xme,{}),(0,z.jsx)(H,{size:1,color:`silver`,children:`Índice METR de horizonte de tarefa. Mede duração, não qualidade.`}),(0,z.jsx)(H,{color:`silver`,children:`Conforme nota-se a escala acima, a IA segue evoluindo de forma acelerada.`})]}),(0,z.jsx)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-3 gap-3 tablet:col-span-2`,children:e.practicalNotes.map(e=>(0,z.jsxs)(er,{children:[(0,z.jsx)(H,{weight:`bold`,children:e.title}),(0,z.jsx)(H,{size:1,color:`silver`,children:e.text})]},e.title))})]})]})}function q9({stat:e,statHighlight:t=!1,title:n,text:r,source:i,onSourceClick:a,className:o}){return(0,z.jsxs)(er,{className:o,children:[e&&(0,z.jsx)(Fi,{size:6,weight:`bold`,className:t?`text-primary`:``,children:e}),n&&(0,z.jsx)(H,{weight:`bold`,children:n}),(0,z.jsx)(H,{size:1,color:`silver`,children:r}),(0,z.jsxs)(`div`,{className:`flex items-center justify-between mt-auto`,children:[(0,z.jsx)(H,{size:1,color:`silver`,children:i}),(0,z.jsx)(cH,{title:`Ver fonte`,onClick:a})]})]})}
50var Cme=[{stat:`90%`,text:`de capacidade de operar no seu computador como se fosse uma pessoa. Há dois anos, a taxa era de 12%.`,source:`OSWorld-Verified · jul 2026`,sourceUrl:`https://osworld-v1.xlang.ai/`},{stat:`Ouro`,statHighlight:!0,text:`em 2025, a IA conquistou a medalha de ouro na olimpíada internacional de matemática.`,source:`Stanford AI Index · abr 2026`,sourceUrl:`https://aiindex.stanford.edu/report/`},{stat:`50%`,text:`de acerto ao ler relógio de ponteiros. Humanos acertam 90%. A máquina vence a olimpíada e erra o trivial.`,source:`Stanford AI Index · abr 2026`,sourceUrl:`https://aiindex.stanford.edu/report/`}],wme=[{title:`A máquina não diz "não sei"`,text:`Em um teste com 3.000 respostas sobre notícias, quase metade tinha problema relevante. O mais grave: a IA quase nunca dizia "não sei".`,source:`BBC e EBU · 2025`,sourceUrl:`https://www.ebu.ch/research/open/report/news-integrity-in-ai-assistants`},{title:`O paradoxo do raciocínio`,text:`Ao resumir documentos, os melhores modelos inventam fatos em menos de 5% dos textos. Os modos de raciocínio, campeões das provas, alucinam de duas a três vezes mais. Mais capaz e menos fiel, ao mesmo tempo.`,source:`Vectara · leaderboard de alucinação · mai 2026`,sourceUrl:`https://github.com/vectara/hallucination-leaderboard`},{title:`Funcionamento cada vez mais obscuro`,text:`Os grandes laboratórios passaram a revelar menos sobre dados usados, treinamento, testes de segurança e limitações. Quanto mais poderosa, menor a visibilidade de como ela foi construída.`,source:`Foundation Model Transparency via Stanford AI Index`,sourceUrl:`https://crfm.stanford.edu/fmti/December-2025/index.html`}];function Tme(){return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`Capacidade e limites`,title:(0,z.jsxs)(z.Fragment,{children:[`O que a máquina já faz e onde ainda `,(0,z.jsx)(`span`,{className:`text-primary`,children:`falha`})]}),subtitle:`A IA de 2026 opera o computador quase como uma pessoa e ganha olimpíada de matemática, mas ainda inventa fatos e erra tarefas que uma criança resolve. Cada medida abaixo tem sua fonte.`}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-3 gap-3 w-full`,children:[Cme.map(e=>(0,z.jsx)(q9,{stat:e.stat,statHighlight:e.statHighlight,text:e.text,source:e.source,onSourceClick:()=>lH(e.sourceUrl)},e.stat)),wme.map(e=>(0,z.jsx)(q9,{title:e.title,text:e.text,source:e.source,onSourceClick:()=>lH(e.sourceUrl)},e.title))]})]})}function Eme({stat:e,dotColor:t,text:n}){return(0,z.jsxs)(`div`,{className:`flex flex-col gap-2 bg-background rounded-md p-4`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(`div`,{className:`size-2.5 rounded-full shrink-0`,style:{backgroundColor:t}}),(0,z.jsx)(Fi,{size:6,weight:`bold`,children:e})]}),(0,z.jsx)(H,{size:1,color:`silver`,children:n})]})}var Dme=[{stat:`10x`,dotColor:`#36BE7E`,text:`menos energia para executar a mesma tarefa de IA, a cada ano. A eficiência melhora rápido, mas isso não significa conta menor.`},{stat:`2x`,dotColor:`var(--primary)`,text:`mais consumo total dos data centers até 2030. Mesmo com tarefas mais eficientes, a demanda cresce rápido demais.`}],Ome=[{year:`2025`,value:485},{year:`2030 · projeção`,value:950,projection:!0}],kme=[{stat:`+50%`,text:`foi o crescimento dos data centers dedicados a IA só em 2025.`,source:`IEA · abr 2026`,sourceUrl:`https://www.iea.org/reports/key-questions-on-energy-and-ai`},{title:`Maior que o petróleo`,text:`O investimento de cinco big te
50chs em infraestrutura de IA já supera o que o mundo inteiro investe por ano em produção de petróleo e gás.`,source:`IEA · abr 2026`,sourceUrl:`https://www.iea.org/reports/key-questions-on-energy-and-ai`},{title:`O novo motor da demanda`,text:`Nos países ricos, depois de décadas de consumo elétrico estável, os data centers viraram um dos principais motores de crescimento da demanda.`,source:`IEA · Electricity 2026 · fev 2026`,sourceUrl:`https://www.iea.org/reports/electricity-2026`}],Ame={name:`IEA · Key Questions on Energy and AI · abr 2026`,url:`https://www.iea.org/reports/key-questions-on-energy-and-ai`},jme={value:{label:`TWh`,color:`var(--primary)`}};function Mme(e){let{x:t,y:n,width:r,height:i,payload:a}=e;return a.projection?(0,z.jsx)(`rect`,{x:t,y:n,width:r,height:i,rx:4,fill:`var(--primary)`,fillOpacity:.2,stroke:`var(--primary)`,strokeWidth:1.5,strokeDasharray:`6 4`}):(0,z.jsx)(`rect`,{x:t,y:n,width:r,height:i,rx:4,fill:`var(--primary)`})}function Nme(){return(0,z.jsx)(TF,{config:jme,className:`w-full aspect-auto h-64`,children:(0,z.jsxs)(CF,{data:Ome,margin:{top:28,left:24,right:24},children:[(0,z.jsx)(yj,{vertical:!1}),(0,z.jsx)(_P,{dataKey:`year`,tickLine:!1,axisLine:!1,tickMargin:8,interval:0}),(0,z.jsx)(XN,{dataKey:`value`,barSize:64,shape:(0,z.jsx)(Mme,{}),children:(0,z.jsx)(LD,{dataKey:`value`,position:`top`,formatter:e=>`${e}`,className:`fill-foreground text-sm font-medium`})})]})})}function Pme(){return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`Energia · data centers`,title:(0,z.jsxs)(z.Fragment,{children:[`A conta de luz da `,(0,z.jsx)(`span`,{className:`text-primary`,children:`IA`})]}),subtitle:`Cada resposta sai de uma infraestrutura cheia de chips, água e eletricidade. A tarefa fica mais eficiente; a escala do uso aumenta a conta.`}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-2 gap-3 w-full`,children:[(0,z.jsxs)(er,{children:[(0,z.jsx)(r4,{title:`Eficiência contra volume`,subtitle:`O paradoxo central da IA física`}),(0,z.jsx)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-2 gap-3`,children:Dme.map(e=>(0,z.jsx)(Eme,{stat:e.stat,dotColor:e.dotColor,text:e.text},e.stat))}),(0,z.jsx)(H,{color:`silver`,children:`Quanto mais barata fica cada tarefa, mais tarefas o mundo roda. A eficiência não reduz a conta; multiplica o uso.`}),(0,z.jsx)(`div`,{className:`flex items-center justify-between mt-auto`,children:(0,z.jsx)(cH,{title:`Ver fonte`,onClick:()=>lH(Ame.url)})})]}),(0,z.jsxs)(er,{children:[(0,z.jsx)(r4,{title:`O consumo dos data centers`,subtitle:`TWh por ano`}),(0,z.jsx)(Nme,{}),(0,z.jsx)(H,{size:1,color:`silver`,children:`950 TWh é pouco mais que o consumo elétrico total do Japão hoje, na comparação da própria IEA. A barra de 2030 é projeção do cenário-base, não medição.`})]}),(0,z.jsx)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-3 gap-3 tablet:col-span-2`,children:kme.map(e=>(0,z.jsx)(q9,{stat:e.stat,title:e.title,text:e.text,source:e.source,onSourceClick:()=>lH(e.sourceUrl)},e.stat??e.title))})]})]})}var Fme=[{country:`United States of America`,value:100},{country:`China`,value:53.9},{country:`Singapore`,value:32.3},{country:`United Kingdom`,value:31.8},{country:`France`,value:31},{country:`South Korea`,value:30.2},{country:`Germany`,value:29},{country:`Canada`,value:28.4},{country:`Israel`,value:27.5},{country:`India`,value:23.4},{country:`Japan`,value:22.5},{country:`Netherlands`,value:21},{country:`Switzerland`,value:20.4},{country:`Saudi Arabia`,value:19},{country:`United Arab Emirates`,value:18.8},{country:`Taiwan`,value:18.5},{country:`Australia`,value:18.2},{country:`Sweden`,value:17.6},{country:`Finland`,value:17},{country:`Denmark`,value:16.6},{country:`Spain`,value:16.2},{country:`Norway`,value:16},{country:`Italy`,value:15.8},{country:`Ireland`,value:15.3},{country:`Austria`,value:14.8},{country:`Belgium`,value:14.5},{country:`Poland`,value:14},{country:`Brazil`,value:13.5},{country:`Portugal`,value:13.1},{country:`Estonia`,value:12.8},{country:`Czechia`,value:12.4},{country:`Russia`,value:12},{country:`Turkey`,value:11.6},{country:`Malaysia`,value:11.2},{country:`Qatar`,value:10.9},{country:`Iceland`,value:10.6},{country:`Greece`,value:10.2},{country:`Hungary`,value:9.9},{country:`Lithuania`,value:9.6},{country:`Slovenia`,value:9.3},{country:`New Zealand`,value:9},{country:`Vietnam`,value:8.6},{country:`Indonesia`,value:8.2},{country:`Thailand`,value:7.9},{country:`Mexico`,value:7.5},{country:`Chile`,value:7.2},{country:`Argentina`,value:6.8},{country:`Colombia`,value:6.4},{country:`Ukraine`,value:6},{country:`South Africa`,value:5.6},{country:`Egypt`,value:5.2},{country:`Peru`,value:4.8},{country:`Uruguay`,value:4.5},{country:`Morocco`,value:4.2},{country:`Jordan`,value:3.9},{country:`Nigeria`,value:3.6},{country:`Kenya`,value:3.3},{country:`Tunisia`,value:3},{country:`Pakistan`,value:2.7},{country:`Sri Lanka`,value:2.4}],J9={name:`Tortoise Global AI Index · 5ª edição (2024)`,url:`https://www.tortoisemedia.com/data/global-ai`},Ime={title:`EUA x China em números`,subtitle:`Desempenho dos modelos e capital privado`,stats:[{value:`2,7%`,description:`é toda a distância entre o melhor modelo americano e o melhor chinês. Em 2023, o vão passava de 17 pontos.`},{value:`23 a 1`,description:`é o placar do capital privado: US$ 285,9 bi nos EUA contra US$ 12,4 bi na China. E o desempenho empatou assim mesmo.`}],footnote:`O número subestima a China: fundos estatais injetaram US$ 184 bi em empresas de IA até 2023.`,source:{name:`Stanford AI Index 2026`,url:`https://aiindex.stanford.edu/report/`}},Lme=`/world-countries.json`,Rme=rb().domain([0,100]).range([`#E11526`,`#45070E`]),zme=`#141414`;function Bme({data:e=Fme}){let t=Object.fromEntries(e.map(e=>[e.country,e])),[n,r]=(0,w.useState)(null),i=(0,w.useMemo)(()=>typeof window<`u`&&window.matchMedia(`(hover: none)`).matches,[]);return(0,z.jsx)(YB,{children:(0,z.jsx)(e4.ComposableMap,{projection:`geoEqualEarth`,projectionConfig:{scale:180},className:`w-full h-full`,children:(0,z.jsx)(e4.Geographies,{geography:Lme,children:({geographies:e})=>e.map(e=>{let a=e.properties.name,o=t[a],s=o?Rme(o.value):zme;return(0,z.jsxs)(XB,{open:i?n===e.rsmKey:void 0,children:[(0,z.jsx)(ZB,{render:(0,z.jsx)(e4.Geography,{geography:e,fill:s,stroke:`#000`,strokeWidth:.4,onClick:i?()=>r(t=>t===e.rsmKey?null:e.rsmKey):void 0,style:{default:{outline:`none`},hover:{outline:`none`,opacity:.85},pressed:{outline:`none`}}})}
50),(0,z.jsx)(QB,{children:o?`${o.country} · ${o.value}`:`${a} · sem medição`})]},e.rsmKey)})})})})}var Vme=[{color:`#45070E`,label:`Liderança`},{color:`#7E0C15`,label:`Avançado`},{color:`#E11526`,label:`Emergente`},{color:`#141414`,label:`Sem medição`}];function Hme(){return(0,z.jsx)(`div`,{className:`flex flex-wrap items-center gap-x-5 gap-y-2`,children:Vme.map(e=>(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`size-2.5 rounded-xs shrink-0`,style:{backgroundColor:e.color}}),(0,z.jsx)(H,{size:1,color:`silver`,children:e.label})]},e.label))})}function Ume(){return(0,z.jsxs)(er,{children:[(0,z.jsx)(`div`,{className:`h-64 tablet:h-72 desktop:h-90 w-full flex items-center justify-center tablet:min-w-0`,children:(0,z.jsx)(Bme,{})}),(0,z.jsx)(Hme,{}),(0,z.jsx)(na,{}),(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsx)(H,{size:1,color:`silver`,children:J9.name}),(0,z.jsx)(cH,{title:`Ver fonte`,onClick:()=>lH(J9.url)})]})]})}function Wme(){let{title:e,subtitle:t,stats:n,footnote:r,source:i}=Ime;return(0,z.jsxs)(er,{className:`h-full`,children:[(0,z.jsx)(r4,{title:e,subtitle:t}),(0,z.jsx)(`div`,{className:`flex flex-col gap-3 flex-1`,children:n.map(e=>(0,z.jsxs)(er,{className:`flex-1 justify-center`,children:[(0,z.jsx)(Fi,{size:4,weight:`bold`,children:e.value}),(0,z.jsx)(H,{color:`silver`,children:e.description})]},e.value))}),(0,z.jsx)(H,{size:1,color:`silver`,children:r}),(0,z.jsx)(na,{}),(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsx)(H,{size:1,color:`silver`,children:i.name}),(0,z.jsx)(cH,{title:`Ver fonte`,onClick:()=>lH(i.url)})]})]})}function Gme(){return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`Geopolítica da IA`,title:(0,z.jsxs)(z.Fragment,{children:[`Uma corrida sem `,(0,z.jsx)(`span`,{className:`text-primary`,children:`placar definido`})]}),subtitle:`Estados Unidos e China travam uma disputa pela infraestrutura do futuro. Os americanos estão levando a melhor nos modelos proprietários e em semicondutores, os chineses se destacam em código livre e robótica. Como isso irá se desenrolar? Acompanhe aqui.`}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-2 gap-3 w-full`,children:[(0,z.jsx)(Ume,{}),(0,z.jsx)(Wme,{})]})]})}var Y9={name:`Anthropic · What 81,000 people want from AI · mar 2026`,url:`https://www.anthropic.com/features/81k-interviews`,note:`80.508 entrevistas abertas, 159 países, 70 idiomas`},Kme={name:`Anthropic · Apêndice metodológico (PDF)`,url:`https://cdn.sanity.io/files/4zrzovbb/website/99156863ed4a812569fe00a2adfb1c93f7e5a911.pdf`,note:`Métodos, limitações e análises adicionais`},qme=[{stat:`80.508`,text:`entrevistas abertas, feitas em 70 idiomas ao longo de uma semana de dezembro de 2025.`},{stat:`159`,text:`países representados. A Anthropic afirma ser o maior estudo qualitativo já feito.`},{stat:`67%`,statHighlight:!0,text:`das entrevistas foram classificadas como positivas sobre a IA no balanço geral, ou seja, nota 5 ou mais em uma escala de 1 a 7.`},{stat:`81%`,statHighlight:!0,text:`disseram que a IA já deu algum passo concreto na direção do que eles querem dela.`}],Jme=[{label:`Excelência profissional`,description:`a IA assume a tarefa repetitiva e sobra tempo para o trabalho complexo`,value:18.8},{label:`Transformação pessoal`,description:`crescer como pessoa, com a IA como treinadora, apoio ou companhia`,value:13.7},{label:`Gestão da vida cotidiana`,description:`organizar agenda, lembrar de tudo, reduzir a carga mental do dia`,value:13.5},{label:`Liberdade de tempo`,description:`sair do trabalho no horário e ficar com a família, os amigos ou o descanso`,value:11.1},{label:`Independência financeira`,description:`gerar renda e sair da pressão econômica`,value:9.7},{label:`Transformação da sociedade`,description:`resolver problemas coletivos, c
50omo doença, pobreza, clima e desigualdade`,value:9.4},{label:`Empreendedorismo`,description:`abrir e crescer um negócio sem capital, equipe ou infraestrutura`,value:8.7},{label:`Aprendizado`,description:`estudar com um professor paciente e disponível a qualquer hora`,value:8.4},{label:`Expressão criativa`,description:`executar o que antes esbarrava em falta de técnica ou de tempo`,value:5.6}],Yme=[{id:`tempo`,benefit:{label:`Tempo economizado`,lived:37,expected:13},harm:{label:`Produtividade ilusória`,lived:17,expected:1}},{id:`aprendizado`,benefit:{label:`Aprender mais e mais rápido`,lived:30,expected:3},harm:{label:`Atrofia cognitiva`,lived:8,expected:9}},{id:`economia`,benefit:{label:`Ganho econômico`,lived:19,expected:9},harm:{label:`Perder o trabalho para a IA`,lived:4,expected:14}},{id:`decisao`,benefit:{label:`Decisões melhores`,lived:19,expected:3},harm:{label:`Falta de confiabilidade`,lived:29,expected:8}},{id:`emocional`,benefit:{label:`Apoio emocional`,lived:13,expected:3},harm:{label:`Dependência emocional`,lived:5,expected:7}}],Xme=[{color:`#3A3A3A`,label:`Benefício já vivido`},{color:`#C9C9C9`,label:`Benefício esperado`},{color:`var(--primary)`,label:`Dano já vivido`},{color:`rgba(225, 21, 38, 0.28)`,label:`Dano esperado`}],Zme=[{region:`Europa Ocidental`,negative:35.6,jobsConcern:22.5},{region:`Oceania`,negative:35.5,jobsConcern:24.3},{region:`América do Norte`,negative:34.5,jobsConcern:24.6},{region:`Leste Asiático`,negative:34.5,jobsConcern:21.9},{region:`Europa do Sul e Leste`,negative:34,jobsConcern:22.1},{region:`Ásia Central`,negative:31.1,jobsConcern:15.9},{region:`Sul da Ásia`,negative:30.8,jobsConcern:21.5},{region:`Norte da África`,negative:30.6,jobsConcern:18.2},{region:`Oriente Médio`,negative:29.2,jobsConcern:19.9},{region:`Sudeste Asiático`,negative:28.3,jobsConcern:19.3},{region:`América Latina e Caribe`,negative:26.3,jobsConcern:18.5,highlight:!0},{region:`África Subsaariana`,negative:24.2,jobsConcern:18.2}],X9={benefitLived:`#3A3A3A`,benefitExpected:`#C9C9C9`,harmLived:`var(--primary)`,harmExpected:`rgba(225, 21, 38, 0.28)`};function Z9({value:e,color:t}){return e<=0?null:(0,z.jsx)(`div`,{className:`h-full`,style:{width:`${e/50*100}%`,backgroundColor:t}})}function Qme(e){return`${e.toLocaleString(`pt-BR`)}%`}function $me(){return(0,z.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[Yme.map((e,t)=>(0,z.jsxs)(`div`,{className:t===0?`flex flex-col gap-2`:`flex flex-col gap-2 border-t border-muted pt-5`,children:[(0,z.jsxs)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-2 gap-2 tablet:gap-6`,children:[(0,z.jsx)(Q9,{side:e.benefit,align:`right`}),(0,z.jsx)(Q9,{side:e.harm,align:`left`})]}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-2 gap-2 tablet:gap-6`,children:[(0,z.jsxs)(`div`,{className:`flex flex-row tablet:flex-row-reverse h-4 w-full rounded-sm bg-muted overflow-hidden`,children:[(0,z.jsx)(Z9,{value:e.benefit.lived,color:X9.benefitLived}),(0,z.jsx)(Z9,{value:e.benefit.expected,color:X9.benefitExpected})]}),(0,z.jsxs)(`div`,{className:`flex h-4 w-full rounded-sm bg-muted overflow-hidden`,children:[(0,z.jsx)(Z9,{value:e.harm.lived,color:X9.harmLived}),(0,z.jsx)(Z9,{value:e.harm.expected,color:X9.harmExpected})]})]})]},e.id)),(0,z.jsx)(`div`,{className:`flex flex-wrap items-center gap-x-5 gap-y-2 pt-1`,children:Xme.map(e=>(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`size-2.5 rounded-xs shrink-0`,style:{backgroundColor:e.color}}),(0,z.jsx)(H,{size:1,color:`silver`,children:e.label})]},e.label))})]})}function Q9({side:e,align:t}){let n=e.lived+e.expected;return(0,z.jsxs)(`div`,{className:`flex items-baseline gap-2 ${t===`right`?`tablet:justify-end`:``}`,children:[(0,z.jsx)(H,{weight:`bold`,children:e.label}),(0,z.jsx)(H,{size:1,color:`silver`,className:`shrink-0 whitespace-nowrap`,children:Qme(n)})]})}var $9=e=>`${e.toLocaleString(`pt-BR`)}%`;function ehe(){return(0,z.jsxs)(er,{children:[(0,z.jsx)(r4,{title:`O benefício e o dano andam juntos`}),(0,z.jsx)(H,{size:1,color:`silver`,children:`Cada linha compara um ganho com o problema que vem junto dele. A cor forte marca quem já viveu a situação; a cor clara, quem só espera que ela aconteça. O número ao lado soma os dois grupos, e a mesma pessoa pode aparecer nos dois lados da linha.`}),(0,z.jsx)(na,{}),(0,z.jsx)($me,{}),(0,z.jsx)(na,{}),(0,z.jsx)(i4,{description:`A exceção é a tomada de decisão, o único ponto em que a queixa supera o elogio: 37% citam respostas erradas ditas com confiança, contra 22% que dizem decidir melhor com a IA.`}),(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,z.jsx)(H,{size:1,color:`silver`,children:`Anthropic · mar 2026 · cada barra vai de 0 a 50%`}),(0,z.jsx)(cH,{title:`Ver estudo`,onClick:()=>lH(Y9.url)})]})]})}function the(){return(0,z.jsx)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-2 desktop:grid-cols-4 gap-3 w-full`,children:qme.map(e=>(0,z.jsx)(er,{children:(0,z.jsx)(m4,{stat:e.stat,statHighlight:e.statHighlight,text:e.text})},e.stat))})}function nhe(){return(0,z.jsxs)(er,{children:[(0,z.jsx)(r4,{title:`Como o estudo foi feito`}),(0,z.jsx)(H,{size:1,color:`silver`,children:`Durante uma semana de dezembro de 2025, quem tinh
50a conta no Claude.ai foi convidado a conversar com uma versão do modelo treinada para entrevistar. Participaram 80.508 pessoas, em 159 países e 70 idiomas. As perguntas eram sobre IA em geral, não só sobre o Claude. As respostas foram anonimizadas e classificadas por sistemas baseados no próprio Claude.`}),(0,z.jsx)(H,{size:1,color:`silver`,children:`A amostra não representa a população mundial: reúne usuários de uma plataforma de IA, gente que já usa e tende a gostar da tecnologia. América do Norte e Europa Ocidental concentram quase metade das entrevistas; América Latina e Caribe têm cerca de 8 mil.`}),(0,z.jsx)(na,{className:`mt-auto`}),(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,z.jsx)(H,{size:1,color:`silver`,children:`Anthropic · What 81,000 people want from AI · 18/03/2026`}),(0,z.jsx)(uH,{sources:[Y9,Kme],dialogTitle:`Estudo das 81 mil entrevistas · fontes`})]})]})}function rhe(){return(0,z.jsxs)(tr,{children:[(0,z.jsx)(n4,{pill:`Estudo em destaque · 81 mil entrevistas`,title:(0,z.jsxs)(z.Fragment,{children:[`O que 81 mil pessoas `,(0,z.jsx)(`span`,{className:`text-primary`,children:`querem da IA`})]}),subtitle:`A Anthropic colocou uma versão do Claude para entrevistar os próprios usuários: o que esperam da IA e o que temem perder com ela. Foram 80.508 conversas, em 159 países e 70 idiomas.`}),(0,z.jsxs)(`div`,{className:`flex flex-col gap-3 w-full`,children:[(0,z.jsx)(ehe,{}),(0,z.jsx)(the,{}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-2 gap-3 w-full`,children:[(0,z.jsx)(o4,{scrollable:!0,visibleItems:5,title:`O que as pessoas querem da IA`,subtitle:`A resposta de cada entrevistado à pergunta: se a IA pudesse fazer qualquer coisa por você, o que seria?`,items:Jme.map(e=>({title:e.label,description:e.description,subtitle:$9(e.value),scoreValue:e.value/20*100})),footerText:`Trabalhar melhor lidera, com 18,8%, mas o bloco da vida pessoal é maior: organizar o dia a dia, ganhar tempo livre e sair do aperto financeiro somam 34,3%. Para esse grupo, produtividade não é o objetivo, é o que libera tempo e dinheiro para viver.`,source:`Anthropic · mar 2026 · barras de 0 a 20%`}),(0,z.jsx)(o4,{scrollable:!0,visibleItems:5,title:`Onde a desconfiança é maior`,subtitle:`Parcela de quem avalia a IA de forma negativa, por região. Média global: 33%.`,items:Zme.map(e=>({title:e.region,description:`Preocupação com emprego: ${$9(e.jobsConcern)}`,subtitle:$9(e.negative),scoreValue:e.negative/40*100,highlight:e.highlight})),footerText:`Em todos os países a maioria avalia a IA de forma positiva; nenhum fica abaixo de 60%. O que muda de uma região para outra é o tamanho da minoria que desconfia, e o que mais alimenta essa desconfiança é o medo de perder o emprego.`,source:`Anthropic · mar 2026 · barras de 0 a 40%`})]}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-2 gap-3 w-full items-stretch`,children:[(0,z.jsx)(nhe,{}),(0,z.jsx)(u4,{name:`Álvaro Machado Dias`,note:[(0,z.jsxs)(z.Fragment,{children:[`Há um erro de categoria em separar os entrevistados entre favoráveis e contrários à IA. Os conflitos mais interessantes aparecem dentro do mesmo usuário: quem relata apoio emocional tem três vezes mais chance de também temer a dependência, e o aprendizado que amplia repertório é o mesmo que terceiriza o exercício cognitivo. O custo, em vez de chegar depois do benefício como externalidade distante,`,` `,(0,z.jsx)(`span`,{className:`text-primary`,children:`nasce da capacidade que produz o ganho.`})]}),`O caso limite é a decisão, único ponto em que o dano vivido supera o benefício, sinal de que o problema presente da IA é prosaico, errar com aparência de certeza, enquanto os riscos dramáticos seguem no plano da expectativa. Perder o trabalho para a máquina, que domina o debate público, aparece mais de três vezes mais como previsão do que como experiência relatada.`,`No recorte regional a questão econômica fica nítida. As regiões mais ricas combinam mais medo de perder o emprego e mais rejeição à IA; África, América Latina e partes da Ásia tendem ao extremo oposto. O padrão sugere que a mesma tecnologia comprime vantagens onde elas já existem e serve de atalho onde elas faltam.`]})]})]})]})}function ihe(){return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(bce,{}),(0,z.jsx)(Dce,{}),(0,z.jsx)(Pce,{}),(0,z.jsx)(hme,{}),(0,z.jsx)(Sme,{}),(0,z.jsx)(Tme,{}),(0,z.jsx)(Pme,{}),(0,z.jsx)(Gme,{}),(0,z.jsx)(rhe,{})]})}function ahe(){return(0,z.jsxs)(tr,{children:[(0,z.jsxs)(`div`,{className:`flex flex-col tablet:flex-row items-center w-full gap-8 tablet:gap-0`,children:[(0,z.jsxs)(`div`,{className:`flex flex-col w-full gap-6`,children:[(0,z.jsx)(Mn,{to:`https://www.cnnbrasil.com.br/ia/radar-cnn/`,className:`w-fit`,children:(0,z.jsx)(Bi,{title:`Acesse o Radar CNN - Brasil`})}),(0,z.jsxs)(Fi,{size:7,weight:`bold`,className:`tablet:max-w-110 leading-tight tablet:leading-15`,children:[`Inteligência artificial no Brasil, `,(0,z.jsx)(`span`,{className:`text-primary`,children:`hoje`}),`.`]}),(0,z.jsx)(H,{weight:`light`,color:`silver`,className:`tablet:max-w-120`,children:`A adoção da IA cresce de maneira acelerada no Brasil, refletindo um entusiasmo imenso, a despeito das dúvidas sobre os seus impactos.`})]}),(0,z.jsx)(`div`,{className:`flex items-center justify-center tablet:justify-end w-full`,children:(0,z.jsx)(`div`,{className:`w-full tablet:max-w-120 aspect-video rounded-2xl overflow-hidden border border-white/10 bg-black/40 p-2`,children:(0,z.jsx)(`iframe`,{src:`https://www.youtube-nocookie.com/embed/7THc4qpEagU?rel=0`,title:`Radar CNN IA · Brasil`,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,referrerPolicy:`strict-origin-when-cross-origin`,allowFullScreen:!0,className:`w-full h-full rounded-xl border-0`})})})]}),(0,z.jsx)(`div`,{className:`grid grid-cols-1 tablet:grid-cols-4 gap-2.5`,children:Ri.map(e=>(0,z.jsxs)(er,{children:[(0,z.jsx)(Fi,{size:5,weight:`bold`,children:e.value}),(0,z.jsx)(H,{color:`silver`,weight:`light`,children:e.label})]},e.label))})]})}function ohe(){return(0,z.jsx)(tr,{children:(0,z.jsxs)(`div`,{className:`flex flex-col items-center w-full gap-6`,children:[(0,z.jsx)(Mn,{to:`https://www.cnnbrasil.com.br/ia/radar-cnn/`,className:`w-fit`,children:(0,z.jsx)(Bi,{title:`Acesse o Radar CNN - Global`})}),(0,z.jsxs)(Fi,{size:7,weight:`bold`,className:`text-center tablet:max-w-200 leading-tight tablet:leading-15`,children:[`A IA deixou de ser tendência. Virou`,` `,(0,z.jsx)(`span`,{className:`text-primary`,children:`infraestrutura de poder.`})]}),(0,z.jsx)(H,{weight:`light`,color:`silver`,className:`text-center tablet:max-w-130`,children:`Acompanhe quais países, empresas e modelos estão avançando mais rápido e onde a tecnologia ainda falha em autonomia, energia, confiança e regulação.`}
50),(0,z.jsx)(`div`,{className:`w-full tablet:max-w-150 aspect-video rounded-2xl overflow-hidden border border-white/10 bg-black/40 p-2 mt-4`,children:(0,z.jsx)(`iframe`,{src:`https://www.youtube-nocookie.com/embed/Evdw-dzCCzQ?rel=0`,title:`Radar CNN IA · Global`,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,referrerPolicy:`strict-origin-when-cross-origin`,allowFullScreen:!0,className:`w-full h-full rounded-xl border-0`})})]})})}function she(){return(0,z.jsxs)(Ht,{children:[(0,z.jsxs)(Bt,{element:(0,z.jsx)($n,{}),children:[(0,z.jsx)(Bt,{path:`/radar-ia-brasil`,element:(0,z.jsx)(yce,{})}),(0,z.jsx)(Bt,{path:`/radar-ia-mundo`,element:(0,z.jsx)(ihe,{})}),(0,z.jsx)(Bt,{path:`/brasil-hero`,element:(0,z.jsx)(ahe,{})}),(0,z.jsx)(Bt,{path:`/global-hero`,element:(0,z.jsx)(ohe,{})})]}),(0,z.jsx)(Bt,{path:`*`,element:(0,z.jsx)(Rt,{to:`/radar-ia-brasil`,replace:!0})})]})}(0,Qn.createRoot)(document.getElementById(`root`)).render((0,z.jsx)(w.StrictMode,{children:(0,z.jsx)(An,{children:(0,z.jsx)(she,{})})}));

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.