codesesh 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/{chunk-NBCLV4CX.js → chunk-7APNDHQ6.js} +2148 -1298
- package/dist/chunk-7APNDHQ6.js.map +1 -0
- package/dist/chunk-A4U2SMJJ.js +169 -0
- package/dist/chunk-A4U2SMJJ.js.map +1 -0
- package/dist/dist-KEPJFHOC.js +115 -0
- package/dist/index.js +1052 -906
- package/dist/index.js.map +1 -1
- package/dist/scan-refresh-worker.js +70 -63
- package/dist/scan-refresh-worker.js.map +1 -1
- package/dist/search-index-worker.js +11 -7
- package/dist/search-index-worker.js.map +1 -1
- package/dist/smart-tag-worker.js +2 -1
- package/dist/smart-tag-worker.js.map +1 -1
- package/dist/web/assets/index-B076CRkD.js +109 -0
- package/dist/web/assets/index-CWNbVhet.css +2 -0
- package/dist/web/assets/react-D9s532MZ.js +1821 -0
- package/dist/web/assets/{syntax-C_RLNYQn.js → syntax-mZXQuVcd.js} +1 -1
- package/dist/web/assets/vendor-i9U7_fNF.js +41 -0
- package/dist/web/icon/agent/cursor.svg +1 -12
- package/dist/web/icon/agent/pi.svg +2 -2
- package/dist/web/index.html +56 -5
- package/package.json +5 -10
- package/dist/chunk-NBCLV4CX.js.map +0 -1
- package/dist/dist-5356XOFP.js +0 -219
- package/dist/web/assets/index-B6p64k_Q.js +0 -113
- package/dist/web/assets/index-DiFr4_5-.css +0 -2
- package/dist/web/assets/react-3acXkZNw.js +0 -1821
- package/dist/web/assets/vendor-CShgXaOi.js +0 -40
- package/dist/web/icon/agent/antigravity.svg +0 -1
- package/dist/web/icon/agent/kilocode.svg +0 -1
- /package/dist/{dist-5356XOFP.js.map → dist-KEPJFHOC.js.map} +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import{n as e,r as t,t as n}from"./rolldown-runtime-QTnfLwEv.js";import{l as r,u as i}from"./markdown-dR4kAewZ.js";import{p as a,v as o}from"./react-D9s532MZ.js";var s=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},c=new class extends s{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},l={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},u=new class{#e=l;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function d(e){setTimeout(e,0)}var f=typeof window>`u`||`Deno`in globalThis;function p(){}function m(e,t){return typeof e==`function`?e(t):e}function h(e){return typeof e==`number`&&e>=0&&e!==1/0}function g(e,t){return Math.max(e+(t||0)-Date.now(),0)}function _(e,t){return typeof e==`function`?e(t):e}function v(e,t){return typeof e==`function`?e(t):e}function y(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==x(o,t.options))return!1}else if(!C(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function b(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(S(t.options.mutationKey)!==S(a))return!1}else if(!C(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function x(e,t){return(t?.queryKeyHashFn||S)(e)}function S(e){return JSON.stringify(e,(e,t)=>O(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function C(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>C(e[n],t[n])):!1}var w=Object.prototype.hasOwnProperty;function T(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=D(e)&&D(t);if(!r&&!(O(e)&&O(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:w.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=T(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function E(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function D(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function O(e){if(!k(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!k(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function k(e){return Object.prototype.toString.call(e)===`[object Object]`}function A(e){return new Promise(t=>{u.setTimeout(t,e)})}function j(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:T(e,t)}function M(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function N(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ee=Symbol();function P(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ee?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function F(e,t){return typeof e==`function`?e(...t):!!e}function te(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var I=(()=>{let e=()=>f;return{isServer(){return e()},setIsServer(t){e=t}}})();function ne(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var re=d;function L(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=re,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var R=L(),ie=new class extends s{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function ae(e){return Math.min(1e3*2**e,3e4)}function z(e){return(e??`online`)!==`online`||ie.isOnline()}var oe=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function se(e){return e instanceof oe}function ce(e){let t=!1,n=0,r,i=ne(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new oe(t);p(n),e.onCancel?.(n)}},s=()=>{t=!0},l=()=>{t=!1},u=()=>c.isFocused()&&(e.networkMode===`always`||ie.isOnline())&&e.canRun(),d=()=>z(e.networkMode)&&e.canRun(),f=e=>{a()||(r?.(),i.resolve(e))},p=e=>{a()||(r?.(),i.reject(e))},m=()=>new Promise(t=>{r=e=>{(a()||u())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),h=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(f).catch(r=>{if(a())return;let i=e.retry??(I.isServer()?0:3),o=e.retryDelay??ae,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){p(r);return}n++,e.onFail?.(n,r),A(s).then(()=>u()?void 0:m()).then(()=>{t?p(r):h()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:l,canStart:d,start:()=>(d()?h():m().then(h),i)}}var le=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),h(this.gcTime)&&(this.#e=u.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(I.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(u.clearTimeout(this.#e),this.#e=void 0)}};function ue(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{te(e,()=>t.signal,()=>n=!0)},u=P(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?N:M;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?fe:de,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:de(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function de(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function fe(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var pe=class extends le{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=ge(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=ge(this.options);e.data!==void 0&&(this.setState(he(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=j(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(p).catch(p):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>v(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ee||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>_(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!g(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=P(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?ue(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=ce({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof oe&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof oe){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...me(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...he(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),R.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function me(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:z(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function he(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ge(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var _e=class extends s{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=ne(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),ye(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return be(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return be(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof v(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!E(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&xe(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||v(this.options.enabled,this.#t)!==v(t.enabled,this.#t)||_(this.options.staleTime,this.#t)!==_(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||v(this.options.enabled,this.#t)!==v(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Ce(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(p)),t}#g(){this.#b();let e=_(this.options.staleTime,this.#t);if(I.isServer()||this.#r.isStale||!h(e))return;let t=g(this.#r.dataUpdatedAt,e)+1;this.#d=u.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(I.isServer()||v(this.options.enabled,this.#t)===!1||!h(this.#p)||this.#p===0)&&(this.#f=u.setInterval(()=>{(this.options.refetchIntervalInBackground||c.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(u.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(u.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&ye(e,t),o=i&&xe(e,n,t,r);(a||o)&&(l={...l,...me(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=j(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=j(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,y=m===`error`,b=_&&g,x=d!==void 0,S={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:y,isInitialLoading:b,isLoading:b,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:y&&!x,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:y&&x,isStale:Se(e,t),refetch:this.refetch,promise:this.#o,isEnabled:v(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=S.data!==void 0,r=S.status===`error`&&!t,i=e=>{r?e.reject(S.error):t&&e.resolve(S.data)},a=()=>{let e=this.#o=S.promise=ne();i(e)},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||S.data!==o.value)&&a();break;case`rejected`:(!r||S.error!==o.reason)&&a();break}}return S}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!E(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){R.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function ve(e,t){return v(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&v(t.retryOnMount,e)===!1)}function ye(e,t){return ve(e,t)||e.state.data!==void 0&&be(e,t,t.refetchOnMount)}function be(e,t,n){if(v(t.enabled,e)!==!1&&_(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Se(e,t)}return!1}function xe(e,t,n,r){return(e!==t||v(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Se(e,n)}function Se(e,t){return v(t.enabled,e)!==!1&&e.isStaleByTime(_(t.staleTime,e))}function Ce(e,t){return!E(e.getCurrentResult(),t)}var we=class extends le{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Te(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=ce({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),R.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Te(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Ee=class extends s{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new we({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=De(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=De(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=De(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=De(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){R.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>b(t,e))}findAll(e={}){return this.getAll().filter(t=>b(e,t))}notify(e){R.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return R.batch(()=>Promise.all(e.map(e=>e.continue().catch(p))))}};function De(e){return e.options.scope?.id}var Oe=class extends s{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),E(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&S(t.mutationKey)!==S(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Te();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){R.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},ke=class extends s{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??x(r,t),a=this.get(i);return a||(a=new pe({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){R.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>y(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>y(e,t)):t}notify(e){R.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){R.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){R.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ae=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new ke,this.#t=e.mutationCache||new Ee,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=c.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=ie.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(_(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=m(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return R.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;R.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return R.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=R.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(p).catch(p)}invalidateQueries(e,t={}){return R.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=R.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(p)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(p)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(_(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(p).catch(p)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(p).catch(p)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return ie.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(S(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{C(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(S(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{C(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=x(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===ee&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},B=t(i(),1),je=r(),Me=B.createContext(void 0),Ne=e=>{let t=B.useContext(Me);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Pe=({client:e,children:t})=>(B.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,je.jsx)(Me.Provider,{value:e,children:t})),Fe=B.createContext(!1),Ie=()=>B.useContext(Fe);Fe.Provider;function Le(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Re=B.createContext(Le()),ze=()=>B.useContext(Re),Be=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?F(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Ve=e=>{B.useEffect(()=>{e.clearReset()},[e])},He=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||F(n,[e.error,r])),Ue=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},We=(e,t)=>e.isLoading&&e.isFetching&&!t,Ge=(e,t)=>e?.suspense&&t.isPending,Ke=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function qe(e,t,n){let r=Ie(),i=ze(),a=Ne(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,Ue(o),Be(o,i,s),Ve(i);let l=!a.getQueryCache().get(o.queryHash),[u]=B.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(B.useSyncExternalStore(B.useCallback(e=>{let t=f?u.subscribe(R.batchCalls(e)):p;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),B.useEffect(()=>{u.setOptions(o)},[o,u]),Ge(o,d))throw Ke(o,u,i);if(He({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!I.isServer()&&We(d,r)&&(l?Ke(o,u,i):s?.promise)?.catch(p).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function Je(e,t){return qe(e,_e,t)}function Ye(e){return e}function Xe(e,t){let n=Ne(t),[r]=B.useState(()=>new Oe(n,e));B.useEffect(()=>{r.setOptions(e)},[r,e]);let i=B.useSyncExternalStore(B.useCallback(e=>r.subscribe(R.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=B.useCallback((e,t)=>{r.mutate(e,t).catch(p)},[r]);if(i.error&&F(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var Ze=`modulepreload`,Qe=function(e){return`/`+e},$e={},et=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,import.meta.url).href}r=o(t.map(t=>{if(t=Qe(t,n),t=s(t),t in $e)return;$e[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`:Ze,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)})},tt=e=>{throw TypeError(e)},nt=(e,t,n)=>t.has(e)||tt(`Cannot `+n),rt=(e,t,n)=>(nt(e,t,`read from private field`),n?n.call(e):t.get(e)),it=(e,t,n)=>t.has(e)?tt(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),at=(e,t,n,r)=>(nt(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),ot=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,st=/^[\\/]{2}/;function ct(e,t){return t+e.replace(/\\/g,`/`)}var lt=`popstate`;function ut(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function dt(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return ht(``,{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:gt(t)}return vt(t,n,null,e)}function V(e,t){if(e===!1||e==null)throw Error(t)}function ft(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function pt(){return Math.random().toString(36).substring(2,10)}function mt(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 ht(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?_t(t):t,state:n,key:t&&t.key||r||pt(),mask:i}}function gt({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 _t(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 vt(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=ut(e)?e:ht(h.location,e,t);n&&n(r,e),l=u()+1;let d=mt(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=ut(e)?e:ht(h.location,e,t);n&&n(r,e),l=u();let i=mt(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 yt(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(lt,d),c=e,()=>{i.removeEventListener(lt,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 yt(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),V(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:gt(t);return i=i.replace(/ $/,`%20`),!n&&st.test(i)&&(i=r+i),new URL(i,r)}var bt,xt=class{constructor(e){if(it(this,bt,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(rt(this,bt).has(e))return rt(this,bt).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){rt(this,bt).set(e,t)}};bt=new WeakMap;var St=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function Ct(e){return St.has(e)}var wt=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]);function Tt(e){return wt.has(e)}function Et(e){return e.index===!0}function Dt(e,t,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(V(e.index!==!0||!e.children,`Cannot specify children on an index route`),V(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),Et(e)){let n={...e,id:s};return r[s]=Ot(n,t(n)),n}else{let n={...e,id:s,children:void 0};return r[s]=Ot(n,t(n)),e.children&&(n.children=Dt(e.children,t,o,r,i)),n}})}function Ot(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function kt(e,t,n=`/`){return At(e,t,n,!1)}function At(e,t,n,r,i){let a=Xt((typeof t==`string`?_t(t):t).pathname||`/`,n);if(a==null)return null;let o=i??Mt(e),s=null,c=Yt(a);for(let e=0;s==null&&e<o.length;++e)s=Gt(o[e],c,r);return s}function jt(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 Mt(e){let t=Nt(e);return Ft(t),t}function Nt(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;V(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" 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=sn([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(V(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),Nt(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:Ut(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Jt(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 Pt(e.path))a(e,t,!0,n)}),t}function Pt(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=Pt(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 Ft(e){e.sort((e,t)=>e.score===t.score?Wt(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var It=/^:[\w-]+$/,Lt=3,Rt=2,zt=1,Bt=10,Vt=-2,Ht=e=>e===`*`;function Ut(e,t){let n=e.split(`/`),r=n.length;return n.some(Ht)&&(r+=Vt),t&&(r+=Rt),n.filter(e=>!Ht(e)).reduce((e,t)=>e+(It.test(t)?Lt:t===``?zt:Bt),r)}function Wt(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 Gt(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?qt(u,l,s.matcher,s.compiledParams):Kt(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Kt({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:sn([a,d.pathname]),pathnameBase:ln(sn([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=sn([a,d.pathnameBase]))}return o}function Kt(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Jt(e.path,e.caseSensitive,e.end);return qt(e,t,n,r)}function qt(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 Jt(e,t=!1,n=!0){ft(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 Yt(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return ft(!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 Xt(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 Zt({basename:e,pathname:t}){return t===`/`?e:sn([e,t])}var Qt=e=>ot.test(e);function $t(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?_t(e):e,a;return n?(n=on(n),a=n.startsWith(`/`)?en(n.substring(1),`/`):en(n,t)):a=t,{pathname:a,search:un(r),hash:dn(i)}}function en(e,t){let n=cn(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function tn(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 nn(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function rn(e){let t=nn(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function an(e,t,n,r=!1){let i;typeof e==`string`?i=_t(e):(i={...e},V(!i.pathname||!i.pathname.includes(`?`),tn(`?`,`pathname`,`search`,i)),V(!i.pathname||!i.pathname.includes(`#`),tn(`#`,`pathname`,`hash`,i)),V(!i.search||!i.search.includes(`#`),tn(`#`,`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=$t(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var on=e=>e.replace(/[\\/]{2,}/g,`/`),sn=e=>on(e.join(`/`)),cn=e=>e.replace(/\/+$/,``),ln=e=>cn(e).replace(/^\/*/,`/`),un=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,dn=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,fn=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],pn=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 mn(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function hn(e){return sn(e.map(e=>e.route.path).filter(Boolean))||`/`}var gn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function _n(e,t){let n=e;if(typeof n!=`string`||!ot.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(gn)try{let e=new URL(window.location.href),r=st.test(n)?new URL(ct(n,e.protocol)):new URL(n),a=Xt(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{ft(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var vn=Symbol(`Uninstrumented`);function yn(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=xn(n.lazy,t.lazy,()=>void 0);e&&(r.lazy=e)}if(typeof t.lazy==`object`){let e=t.lazy;[`middleware`,`loader`,`action`].forEach(t=>{let i=e[t],a=n[`lazy.${t}`];if(typeof i==`function`&&a.length>0){let e=xn(a,i,()=>void 0);e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}})}return[`loader`,`action`].forEach(e=>{let i=t[e];if(typeof i==`function`&&n[e].length>0){let t=i[vn]??i,a=xn(n[e],t,(...e)=>Cn(e[0]));a&&(e===`loader`&&t.hydrate===!0&&(a.hydrate=!0),a[vn]=t,r[e]=a)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[vn]??e,r=xn(n.middleware,t,(...e)=>Cn(e[0]));return r?(r[vn]=t,r):e})),r}function bn(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}})),n.navigate.length>0){let t=e.navigate[vn]??e.navigate,r=xn(n.navigate,t,(...t)=>{let[n,r]=t;return{to:typeof n==`number`||typeof n==`string`?n:n?gt(n):`.`,...wn(e,r??{})}});r&&(r[vn]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[vn]??e.fetch,r=xn(n.fetch,t,(...t)=>{let[n,,r,i]=t;return{href:r??`.`,fetcherKey:n,...wn(e,i??{})}});r&&(r[vn]=t,e.fetch=r)}return e}function xn(e,t,n){return e.length===0?null:async(...r)=>{let i=await Sn(e,n(...r),()=>t(...r),e.length-1);if(i.type===`error`)throw i.value;return i.value}}async function Sn(e,t,n,r){let i=e[r],a;if(i){let o,s=async()=>(o?console.error(`You cannot call instrumented handlers more than once`):o=Sn(e,t,n,r-1),a=await o,V(a,`Expected a result`),a.type===`error`&&a.value instanceof Error?{status:`error`,error:a.value}:{status:`success`,error:void 0});try{await i(s,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}o||await s(),await o}else try{a={type:`success`,value:await n()}}catch(e){a={type:`error`,value:e}}return a||{type:`error`,value:Error(`No result assigned in instrumentation chain.`)}}function Cn(e){let{request:t,context:n,params:r,pattern:i}=e;return{request:Tn(t),params:{...r},pattern:i,context:En(n)}}function wn(e,t){return{currentUrl:gt(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function Tn(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function En(e){if(On(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var Dn=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function On(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===Dn}var kn=[`POST`,`PUT`,`PATCH`,`DELETE`],An=new Set(kn),jn=[`GET`,...kn],Mn=new Set(jn),Nn=new Set([301,302,303,307,308]),Pn=new Set([307,308]),Fn={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},In={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ln={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},Rn=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),zn=`remix-router-transitions`,Bn=Symbol(`ResetLoaderData`),Vn,Hn,Un,Wn,Gn=class{constructor(e){it(this,Vn),it(this,Hn),it(this,Un),it(this,Wn),at(this,Vn,e),at(this,Hn,Mt(e))}get stableRoutes(){return rt(this,Vn)}get activeRoutes(){return rt(this,Un)??rt(this,Vn)}get branches(){return rt(this,Wn)??rt(this,Hn)}get hasHMRRoutes(){return rt(this,Un)!=null}setRoutes(e){at(this,Vn,e),at(this,Hn,Mt(e))}setHmrRoutes(e){at(this,Un,e),at(this,Wn,Mt(e))}commitHmrRoutes(){rt(this,Un)&&(at(this,Vn,rt(this,Un)),at(this,Hn,rt(this,Wn)),at(this,Un,void 0),at(this,Wn,void 0))}};Vn=new WeakMap,Hn=new WeakMap,Un=new WeakMap,Wn=new WeakMap;function Kn(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;V(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties||Rn,a=i;if(e.instrumentations){let t=e.instrumentations;a=e=>({...i(e),...yn(t.map(e=>e.route).filter(Boolean),e)})}let o={},s=new Gn(Dt(e.routes,a,void 0,o)),c=e.basename||`/`;c.startsWith(`/`)||(c=`/${c}`);let l=e.dataStrategy||lr,u={...e.future},d=null,f=new Set,p=null,m=null,h=null,g=null,_=e.hydrationData!=null,v=At(s.activeRoutes,e.history.location,c,!1,s.branches),y=!1,b=null,x,S;if(v==null&&!e.patchRoutesOnNavigation){let t=Pr(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Nr(s.activeRoutes);x=!0,S=!x,v=n,b={[r.id]:t}}else if(v&&!e.hydrationData&&Ue(v,s.activeRoutes,e.history.location.pathname).active&&(v=null),!v){x=!1,S=!x,v=[];let t=Ue(null,s.activeRoutes,e.history.location.pathname);t.active&&t.matches&&(y=!0,v=t.matches)}else if(v.some(e=>e.route.lazy))x=!1,S=!x;else if(!v.some(e=>Zn(e.route)))x=!0,S=!x;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=v;if(n){let e=v.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}S=!1,x=!0,r.forEach(e=>{let r=Qn(e.route,t,n);S||=r.renderFallback,x&&=!r.shouldLoad})}let C,w={historyAction:e.history.action,location:e.history.location,matches:v,initialized:x,renderFallback:S,navigation:Fn,restoreScrollPosition:e.hydrationData==null&&null,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},T=`POP`,E=null,D=!1,O,k=!1,A=new Map,j=null,M=!1,N=!1,ee=new Set,P=new Map,F=0,te=-1,I=new Map,ne=new Set,re=new Map,L=new Map,R=new Set,ie=new Map,ae,z=null;function oe(){if(d=e.history.listen(({action:t,location:n,delta:r})=>{if(ae){ae(),ae=void 0;return}ft(ie.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=Le({currentLocation:w.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{ae=e});e.history.go(r*-1),Ie(i,{state:`blocked`,location:n,proceed(){Ie(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(w.blockers);e.set(i,Ln),le({blockers:e})}}),E?.resolve(),E=null;return}return pe(t,n)}),n){ii(t,A);let e=()=>ai(t,A);t.addEventListener(`pagehide`,e),j=()=>t.removeEventListener(`pagehide`,e)}return w.initialized||pe(`POP`,w.location,{initialHydration:!0}),C}function se(){d&&d(),j&&j(),f.clear(),O&&O.abort(),w.fetchers.forEach((e,t)=>ke(w.fetchers,t)),w.blockers.forEach((e,t)=>Fe(t))}function ce(e){if(f.add(e),p){let{newErrors:t}=p;p=null,e(w,{deletedFetchers:[],newErrors:t,viewTransitionOpts:void 0,flushSync:!1})}return()=>f.delete(e)}function le(e,t={}){e.matches&&=e.matches.map(e=>{let t=o[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),w={...w,...e};let n=[],r=[];w.fetchers.forEach((e,t)=>{e.state===`idle`&&(R.has(t)?n.push(t):r.push(t))}),R.forEach(e=>{!w.fetchers.has(e)&&!P.has(e)&&n.push(e)}),f.size===0&&(p={newErrors:e.errors??null}),[...f].forEach(r=>r(w,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>ke(w.fetchers,e)),r.forEach(e=>w.fetchers.delete(e))}function ue(t,n,{flushSync:r}={}){let i=w.actionData!=null&&w.navigation.formMethod!=null&&Yr(w.navigation.formMethod)&&w.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?w.actionData:null;let o=n.loaderData?Ar(w.loaderData,n.loaderData,n.matches||[],n.errors):w.loaderData,c=w.blockers;c.size>0&&(c=new Map(c),c.forEach((e,t)=>c.set(t,Ln)));let l=!M&&He(t,n.matches||w.matches),u=D===!0||w.navigation.formMethod!=null&&Yr(w.navigation.formMethod)&&t.state?._isRedirect!==!0;s.commitHmrRoutes(),M||T===`POP`||(T===`PUSH`?e.history.push(t,t.state):T===`REPLACE`&&e.history.replace(t,t.state));let d;if(T===`POP`){let e=A.get(w.location.pathname);e&&e.has(t.pathname)?d={currentLocation:w.location,nextLocation:t}:A.has(t.pathname)&&(d={currentLocation:t,nextLocation:w.location})}else if(k){let e=A.get(w.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),A.set(w.location.pathname,e)),d={currentLocation:w.location,nextLocation:t}}le({...n,actionData:a,loaderData:o,historyAction:T,location:t,initialized:!0,renderFallback:!1,navigation:Fn,revalidation:`idle`,restoreScrollPosition:l,preventScrollReset:u,blockers:c},{viewTransitionOpts:d,flushSync:r===!0}),T=`POP`,D=!1,k=!1,M=!1,N=!1,E?.resolve(),E=null,z?.resolve(),z=null}async function de(t,n){if(E?.resolve(),E=null,typeof t==`number`){E||=oi();let n=E.promise;return e.history.go(t),n}let{path:r,submission:i,error:a}=Yn(!1,Jn(w.location,w.matches,c,t,n?.fromRouteId,n?.relative),n),o;n?.mask&&(o={pathname:``,search:``,hash:``,...typeof n.mask==`string`?_t(n.mask):{...w.location.mask,...n.mask}});let s=w.location,l=ht(s,r,n&&n.state,void 0,o);l={...l,...e.history.encodeLocation(l)};let u=n&&n.replace!=null?n.replace:void 0,d=`PUSH`;u===!0?d=`REPLACE`:u===!1||i!=null&&Yr(i.formMethod)&&i.formAction===w.location.pathname+w.location.search&&(d=`REPLACE`);let f=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,p=(n&&n.flushSync)===!0,m=Le({currentLocation:s,nextLocation:l,historyAction:d});if(m){Ie(m,{state:`blocked`,location:l,proceed(){Ie(m,{state:`proceeding`,proceed:void 0,reset:void 0,location:l}),de(t,n)},reset(){let e=new Map(w.blockers);e.set(m,Ln),le({blockers:e})}});return}await pe(d,l,{submission:i,pendingError:a,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:p,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate})}function fe(){z||=oi(),we(),le({revalidation:`loading`});let e=z.promise;return w.navigation.state===`submitting`?e:w.navigation.state===`idle`?(pe(w.historyAction,w.location,{startUninterruptedRevalidation:!0}),e):(pe(T||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:k===!0}),e)}async function pe(t,n,r){O&&O.abort(),O=null,T=t,M=(r&&r.startUninterruptedRevalidation)===!0,Ve(w.location,w.matches),D=(r&&r.preventScrollReset)===!0,k=(r&&r.enableViewTransition)===!0;let i=s.activeRoutes,a=r?.initialHydration&&w.matches&&w.matches.length>0&&!y?w.matches:At(i,n,c,!1,s.branches),o=(r&&r.flushSync)===!0;if(a&&w.initialized&&!N&&Lr(w.location,n)&&!(r&&r.submission&&Yr(r.submission.formMethod))){ue(n,{matches:a},{flushSync:o});return}let l=Ue(a,i,n.pathname);if(l.active&&l.matches&&(a=l.matches),!a){let{error:e,notFoundMatches:t,route:r}=Re(n.pathname);ue(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:o});return}let u=r&&r.overrideNavigation?{...r.overrideNavigation,matches:a,historyAction:t}:void 0;O=new AbortController;let d=wr(e.history,n,O.signal,r&&r.submission),f=e.getContext?await e.getContext():new xt,p;if(r&&r.pendingError)p=[Mr(a).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&Yr(r.submission.formMethod)){let i=await me(d,n,r.submission,a,t,f,l.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:o});if(i.shortCircuited)return;if(i.pendingActionResult){let[e,t]=i.pendingActionResult;if(Hr(t)&&mn(t.error)&&t.error.status===404){O=null,ue(n,{matches:i.matches,loaderData:{},errors:{[e]:t.error}});return}}a=i.matches||a,p=i.pendingActionResult,u=$r(n,a,t,r.submission),o=!1,l.active=!1,d=wr(e.history,d.url,d.signal)}let{shortCircuited:m,matches:h,loaderData:g,errors:_,workingFetchers:v}=await he(d,n,a,t,f,l.active,u,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,o,p,r&&r.callSiteDefaultShouldRevalidate);m||(O=null,ue(n,{matches:h||a,...jr(p),loaderData:g,errors:_,...v?{fetchers:v}:{}}))}async function me(t,n,i,l,u,d,f,p,m={}){if(we(),le({navigation:ei(n,l,u,i)},{flushSync:m.flushSync===!0}),f){let e=await We(l,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Nr(s.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=Mr(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}else if(e.matches)l=e.matches;else{let{notFoundMatches:e,error:t,route:r}=Re(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let h,g=Zr(l,n);if(!g.route.action&&!g.route.lazy)h={type:`error`,error:Pr(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};else{let e=await Se(t,n,hr(a,o,t,n,l,g,p?[]:r,d),d,null);if(h=e[g.route.id],!h){for(let t of l)if(e[t.route.id]){h=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(Ur(h)){let n;return n=m&&m.replace!=null?m.replace:Cr(h.response.headers.get(`Location`),new URL(t.url),c,e.history)===w.location.pathname+w.location.search,await xe(t,h,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(Hr(h)){let e=Mr(l,g.route.id);return(m&&m.replace)!==!0&&(T=`PUSH`),{matches:l,pendingActionResult:[e.route.id,h,g.route.id]}}return{matches:l,pendingActionResult:[g.route.id,h]}}async function he(t,n,i,l,u,d,f,p,m,h,g,_,v,y){let b=f||$r(n,i,l,p),x=p||m||Qr(b),S=!M&&!g;if(d){if(S){let e=ge(v);le({navigation:b,...e===void 0?{}:{actionData:e}},{flushSync:_})}let e=await We(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Nr(s.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=Mr(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}else if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=Re(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let C=s.activeRoutes,{dsMatches:T,revalidatingFetchers:E}=Xn(t,u,a,o,e.history,w,i,x,n,g?[]:r,g===!0,N,ee,R,re,ne,C,c,e.patchRoutesOnNavigation!=null,s.branches,v,y);if(te=++F,!e.dataStrategy&&!T.some(e=>e.shouldLoad)&&!T.some(e=>e.route.middleware&&e.route.middleware.length>0)&&E.length===0){let e=new Map(w.fetchers),t=Me(e);return ue(n,{matches:i,loaderData:{},errors:v&&Hr(v[1])?{[v[0]]:v[1].error}:null,...jr(v),...t?{fetchers:e}:{}},{flushSync:_}),{shortCircuited:!0}}if(S){let e={};if(!d){e.navigation=b;let t=ge(v);t!==void 0&&(e.actionData=t)}E.length>0&&(e.fetchers=_e(E)),le(e,{flushSync:_})}E.forEach(e=>{B(e.key),e.controller&&P.set(e.key,e.controller)});let D=()=>E.forEach(e=>B(e.key));O&&O.signal.addEventListener(`abort`,D);let{loaderResults:k,fetcherResults:A}=await Ce(T,E,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};O&&O.signal.removeEventListener(`abort`,D),E.forEach(e=>P.delete(e.key));let j=Fr(k);if(j)return await xe(t,j.result,!0,{replace:h}),{shortCircuited:!0};if(j=Fr(A),j)return ne.add(j.key),await xe(t,j.result,!0,{replace:h}),{shortCircuited:!0};let I=new Map(w.fetchers),{loaderData:L,errors:ie}=kr(w,i,k,v,E,A,I);g&&w.errors&&(ie={...w.errors,...ie});let ae=Me(I),z=Ne(te,I),oe=ae||z||E.length>0;return{matches:i,loaderData:L,errors:ie,...oe?{workingFetchers:I}:{}}}function ge(e){if(e&&!Hr(e[1]))return{[e[0]]:e[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function _e(e){let t=new Map(w.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=ti(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function ve(t,n,r,i){B(t);let a=(i&&i.flushSync)===!0,o=s.activeRoutes,l=Jn(w.location,w.matches,c,r,n,i?.relative),u=At(o,l,c,!1,s.branches),d=Ue(u,o,l);if(d.active&&d.matches&&(u=d.matches),!u){Ee(t,n,Pr(404,{pathname:l}),{flushSync:a});return}let{path:f,submission:p,error:m}=Yn(!0,l,i);if(m){Ee(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new xt,g=(i&&i.preventScrollReset)===!0;if(p&&Yr(p.formMethod)){await ye(t,n,f,u,h,d.active,a,g,p,i&&i.defaultShouldRevalidate);return}re.set(t,{routeId:n,path:f}),await be(t,n,f,u,h,d.active,a,g,p)}async function ye(t,n,i,l,u,d,f,p,m,h){we(),re.delete(t),Te(t,ni(m,w.fetchers.get(t)),{flushSync:f});let g=new AbortController,_=wr(e.history,i,g.signal,m);if(d){let e=await We(l,new URL(_.url).pathname,_.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){Ee(t,n,e.error,{flushSync:f});return}else if(e.matches)l=e.matches;else{Ee(t,n,Pr(404,{pathname:i}),{flushSync:f});return}}let v=Zr(l,i);if(!v.route.action&&!v.route.lazy){Ee(t,n,Pr(405,{method:m.formMethod,pathname:i,routeId:n}),{flushSync:f});return}P.set(t,g);let y=F,b=hr(a,o,_,i,l,v,r,u),x=await Se(_,i,b,u,t),S=x[v.route.id];if(!S){for(let e of b)if(x[e.route.id]){S=x[e.route.id];break}}if(_.signal.aborted){P.get(t)===g&&P.delete(t);return}if(R.has(t)){if(Ur(S)||Hr(S)){Te(t,ri(void 0));return}}else{if(Ur(S))if(P.delete(t),te>y){Te(t,ri(void 0));return}else return ne.add(t),Te(t,ti(m)),xe(_,S,!1,{fetcherSubmission:m,preventScrollReset:p});if(Hr(S)){Ee(t,n,S.error);return}}let C=w.navigation.location||w.location,E=wr(e.history,C,g.signal),D=s.activeRoutes,k=w.navigation.state===`idle`?w.matches:At(D,w.navigation.location,c,!1,s.branches);V(k,`Didn't find any matches after fetcher action`);let A=++F;I.set(t,A);let{dsMatches:j,revalidatingFetchers:M}=Xn(E,u,a,o,e.history,w,k,m,C,r,!1,N,ee,R,re,ne,D,c,e.patchRoutesOnNavigation!=null,s.branches,[v.route.id,S],h),L=ti(m,S.data),ie=new Map(w.fetchers);ie.set(t,L),M.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=ie.get(t),r=ti(void 0,n?n.data:void 0);ie.set(t,r),B(t),e.controller&&P.set(t,e.controller)}),le({fetchers:ie});let ae=()=>M.forEach(e=>B(e.key));g.signal.addEventListener(`abort`,ae);let{loaderResults:z,fetcherResults:oe}=await Ce(j,M,E,C,u);if(g.signal.aborted)return;g.signal.removeEventListener(`abort`,ae),I.delete(t),P.delete(t),M.forEach(e=>P.delete(e.key));let se=w.fetchers.has(t),ce=e=>{if(!se)return e;let n=new Map(e.fetchers);return n.set(t,ri(S.data)),{...e,fetchers:n}},de=Fr(z);if(de)return w=ce(w),xe(E,de.result,!1,{preventScrollReset:p});if(de=Fr(oe),de)return ne.add(de.key),w=ce(w),xe(E,de.result,!1,{preventScrollReset:p});let fe=new Map(w.fetchers);se&&fe.set(t,ri(S.data));let{loaderData:pe,errors:me}=kr(w,k,z,void 0,M,oe,fe);Ne(A,fe),w.navigation.state===`loading`&&A>te?(V(T,`Expected pending action`),O&&O.abort(),ue(w.navigation.location,{matches:k,loaderData:pe,errors:me,fetchers:fe})):(le({errors:me,loaderData:Ar(w.loaderData,pe,k,me),fetchers:fe}),N=!1)}async function be(t,n,i,s,c,l,u,d,f){let p=w.fetchers.get(t);Te(t,ti(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=wr(e.history,i,m.signal);if(l){let e=await We(s,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){Ee(t,n,e.error,{flushSync:u});return}else if(e.matches)s=e.matches;else{Ee(t,n,Pr(404,{pathname:i}),{flushSync:u});return}}let g=Zr(s,i);P.set(t,m);let _=F,v=await Se(h,i,hr(a,o,h,i,s,g,r,c),c,t),y=v[g.route.id];if(!y){for(let e of s)if(v[e.route.id]){y=v[e.route.id];break}}if(P.get(t)===m&&P.delete(t),!h.signal.aborted){if(R.has(t)){Te(t,ri(void 0));return}if(Ur(y))if(te>_){Te(t,ri(void 0));return}else{ne.add(t),await xe(h,y,!1,{preventScrollReset:d});return}if(Hr(y)){Ee(t,n,y.error);return}Te(t,ri(y.data))}}async function xe(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:l,replace:u}={}){a||(E?.resolve(),E=null),i.response.headers.has(`X-Remix-Revalidate`)&&(N=!0);let d=i.response.headers.get(`Location`);V(d,`Expected a Location header on the redirect Response`),d=Cr(d,new URL(r.url),c,e.history);let f=ht(w.location,d,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(Qt(d)){let n=yt(t,d,!0);e=n.origin!==t.location.origin||Xt(n.pathname,c)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}O=null;let p=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:m,formAction:h,formEncType:g}=w.navigation;!o&&!s&&m&&h&&g&&(o=Qr(w.navigation));let _=o||s;Pn.has(i.response.status)&&_&&Yr(_.formMethod)?await pe(p,f,{submission:{..._,formAction:d},preventScrollReset:l||D,enableViewTransition:a?k:void 0}):await pe(p,f,{overrideNavigation:$r(f,[],p,o),fetcherSubmission:s,preventScrollReset:l||D,enableViewTransition:a?k:void 0})}async function Se(e,t,n,r,i){let a,o={};try{a=await gr(l,e,t,n,i,r,!1)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!Yr(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;!a.hasOwnProperty(e.route.id)&&!w.loaderData.hasOwnProperty(e.route.id)&&(!w.errors||!w.errors.hasOwnProperty(e.route.id))&&e.shouldCallHandler()&&(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(Vr(r)){let i=r.result;o[t]={type:`redirect`,response:br(i,e,t,n,c)}}else o[t]=await yr(r);return o}async function Ce(e,t,n,r,i){let a=Se(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await Se(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}else return Promise.resolve({[e.key]:{type:`error`,error:Pr(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function we(){N=!0,re.forEach((e,t)=>{P.has(t)&&ee.add(t),B(t)})}function Te(e,t,n={}){let r=new Map(w.fetchers);r.set(e,t),le({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function Ee(e,t,n,r={}){let i=Mr(w.matches,t),a=new Map(w.fetchers);ke(a,e),le({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function De(e){return L.set(e,(L.get(e)||0)+1),R.has(e)&&R.delete(e),w.fetchers.get(e)||In}function Oe(e,t){B(e,t?.reason),Te(e,ri(null))}function ke(e,t){let n=w.fetchers.get(t);P.has(t)&&!(n&&n.state===`loading`&&I.has(t))&&B(t),re.delete(t),I.delete(t),ne.delete(t),R.delete(t),ee.delete(t),e.delete(t)}function Ae(e){let t=(L.get(e)||0)-1;t<=0?(L.delete(e),R.add(e)):L.set(e,t),le({fetchers:new Map(w.fetchers)})}function B(e,t){let n=P.get(e);n&&(n.abort(t),P.delete(e))}function je(e,t){for(let n of e){let e=t.get(n);V(e,`Expected fetcher: ${n}`);let r=ri(e.data);t.set(n,r)}}function Me(e){let t=[],n=!1;for(let r of ne){let i=e.get(r);V(i,`Expected fetcher: ${r}`),i.state===`loading`&&(ne.delete(r),t.push(r),n=!0)}return je(t,e),n}function Ne(e,t){let n=[];for(let[r,i]of I)if(i<e){let e=t.get(r);V(e,`Expected fetcher: ${r}`),e.state===`loading`&&(B(r),I.delete(r),n.push(r))}return je(n,t),n.length>0}function Pe(e,t){let n=w.blockers.get(e)||Ln;return ie.get(e)!==t&&ie.set(e,t),n}function Fe(e){w.blockers.delete(e),ie.delete(e)}function Ie(e,t){let n=w.blockers.get(e)||Ln;V(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(w.blockers);r.set(e,t),le({blockers:r})}function Le({currentLocation:e,nextLocation:t,historyAction:n}){if(ie.size===0)return;ie.size>1&&ft(!1,`A router only supports one blocker at a time`);let r=Array.from(ie.entries()),[i,a]=r[r.length-1],o=w.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function Re(e){let t=Pr(404,{pathname:e}),n=s.activeRoutes,{matches:r,route:i}=Nr(n);return{notFoundMatches:r,route:i,error:t}}function ze(e,t,n){if(m=e,g=t,h=n||null,!_&&w.navigation===Fn){_=!0;let e=He(w.location,w.matches);e!=null&&le({restoreScrollPosition:e})}return()=>{m=null,g=null,h=null}}function Be(e,t){return h&&h(e,t.map(e=>jt(e,w.loaderData)))||e.key}function Ve(e,t){if(m&&g){let n=Be(e,t);m[n]=g()}}function He(e,t){if(m){let n=Be(e,t),r=m[n];if(typeof r==`number`)return r}return null}function Ue(t,n,r){if(e.patchRoutesOnNavigation){let e=s.branches;if(!t)return{active:!0,matches:At(n,r,c,!0,e)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:At(n,r,c,!0,e)}}return{active:!1,matches:null}}async function We(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let l=t;for(;;){let t=o;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:l,fetcherKey:i,patch:(e,n)=>{r.aborted||nr(e,n,s,t,a,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:l}}if(r.aborted)return{type:`aborted`};let u=s.branches,d=At(s.activeRoutes,n,c,!1,u),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=At(s.activeRoutes,n,c,!0,u),!(f&&l.length<f.length&&Ge(l,f.slice(0,l.length))))))return{type:`success`,matches:d};if(f||=At(s.activeRoutes,n,c,!0,u),!f||Ge(l,f))return{type:`success`,matches:null};l=f}}function Ge(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function Ke(e){o={},s.setHmrRoutes(Dt(e,a,void 0,o))}function qe(e,t,n=!1){nr(e,t,s,o,a,n),s.hasHMRRoutes||le({})}return C={get basename(){return c},get future(){return u},get state(){return w},get routes(){return s.stableRoutes},get branches(){return s.branches},get manifest(){return o},get window(){return t},initialize:oe,subscribe:ce,enableScrollRestoration:ze,navigate:de,fetch:ve,revalidate:fe,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:De,resetFetcher:Oe,deleteFetcher:Ae,dispose:se,getBlocker:Pe,deleteBlocker:Fe,patchRoutes:qe,_internalFetchControllers:P,_internalSetRoutes:Ke,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){le(e)}},e.instrumentations&&(C=bn(C,e.instrumentations.map(e=>e.router).filter(Boolean))),C}function qn(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function Jn(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=an(r||`.`,rn(o),Xt(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=Xr(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=Zt({basename:n,pathname:c.pathname})),gt(c)}function Yn(e,t,n){if(!n||!qn(n))return{path:t};if(n.formMethod&&!Jr(n.formMethod))return{path:t,error:Pr(405,{method:n.formMethod})};let r=()=>({path:t,error:Pr(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=Ir(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!Yr(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}
|
|
2
|
+
`,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if(n.formEncType===`application/json`){if(!Yr(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}V(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=Er(n.formData),s=n.formData;else if(n.body instanceof FormData)o=Er(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=Dr(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=Dr(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(Yr(c.formMethod))return{path:t,submission:c};let l=_t(t);return e&&l.search&&Xr(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:gt(l),submission:c}}function Xn(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x){let S=b?Hr(b[1])?b[1].error:b[1].data:void 0,C=i.createURL(a.location),w=i.createURL(c),T;if(u&&a.errors){let e=Object.keys(a.errors)[0];T=o.findIndex(t=>t.route.id===e)}else if(b&&Hr(b[1])){let e=b[0];T=o.findIndex(t=>t.route.id===e)-1}let E=b?b[1].statusCode:void 0,D=E&&E>=400,O={currentUrl:C,currentParams:a.matches[0]?.params||{},nextUrl:w,nextParams:o[0].params,...s,actionResult:S,actionStatus:E},k=hn(o),A=o.map((i,o)=>{let{route:s}=i,f=null;if(T!=null&&o>T)f=!1;else if(s.lazy)f=!0;else if(!Zn(s))f=!1;else if(u){let{shouldLoad:e}=Qn(s,a.loaderData,a.errors);f=e}else $n(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return mr(n,r,e,c,k,i,l,t,f);let p=!1;typeof x==`boolean`?p=x:D?p=!1:d||C.pathname+C.search===w.pathname+w.search?p=!0:C.search===w.search?er(a.matches[o],i)&&(p=!0):p=!0;let m={...O,defaultShouldRevalidate:p},h=tr(i,m);return mr(n,r,e,c,k,i,l,t,h,m,x)}),j=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s))return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,b=At(g,e.path,_??`/`,!1,y);if(!b){if(v&&m)return;j.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let S=Zr(b,e.path),C=new AbortController,w=wr(i,e.path,C.signal),T=null;if(f.has(s))f.delete(s),T=hr(n,r,w,e.path,b,S,l,t);else if(m)d&&(T=hr(n,r,w,e.path,b,S,l,t));else{let i;i=typeof x==`boolean`?x:!D&&d;let a={...O,defaultShouldRevalidate:i};tr(S,a)&&(T=hr(n,r,w,e.path,b,S,l,t,a))}T&&j.push({key:s,routeId:e.routeId,path:e.path,matches:T,match:S,request:w,controller:C})}),{dsMatches:A,revalidatingFetchers:j}}function Zn(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Qn(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Zn(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function $n(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function er(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function tr(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function nr(e,t,n,r,i,a){let o;if(e){let t=r[e];V(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],c=[];if(t.forEach(e=>{let t=o.find(t=>rr(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=Dt(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=Dt([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function rr(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>rr(e,t)))??!1:!1}var ir=new WeakMap,ar=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(V(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=ir.get(i);o||(o={},ir.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=Ct(e),n=i[e]!==void 0&&e!==`hasErrorBoundary`;if(t)ft(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)ft(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},or=new WeakMap;function sr(e,t,n,r,i){let a=n[e.id];if(V(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=or.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{V(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=Tt(e),o=a[e]!==void 0&&e!==`hasErrorBoundary`;i?ft(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?ft(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return or.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=ar({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}async function cr(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function lr(e){return e.matches.some(e=>e.route.middleware)?ur(e,()=>cr(e)):cr(e)}function ur(e,t){return dr(e,t,e=>{if(qr(e))throw e;return e},zr,n);function n(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:`error`,result:t}}));{let{matches:r}=e,i=Mr(r,r[Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0))].route.id).route.id;return Promise.resolve({[i]:{type:`error`,result:t}})}}}async function dr(e,t,n,r,i){let{matches:a,...o}=e;return await fr(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function fr(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await fr(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function pr(e,t,n,r,i){let a=ar({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=sr(r.route,Yr(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function mr(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=pr(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?tr(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?tr(a,{...l,defaultShouldRevalidate:e}):tr(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!Yr(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(Yr(n.method)||!p)?_r({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function hr(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?mr(e,t,n,r,hn(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:pr(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function gr(e,t,n,r,i,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let s={request:t,url:Tr(t,n),pattern:hn(r),params:r[0].params,context:a,matches:r},c=o?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return ur(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...s,fetcherKey:i,runClientMiddleware:c});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return l}async function _r({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=Yr(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:Tr(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a)if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw Pr(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}else if(t)c=await f(t);else{let t=new URL(e.url);throw Pr(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function vr(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function yr(e){let{result:t,type:n}=e;if(Gr(t)){let e;try{e=await vr(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new pn(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?Wr(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:Rr(t),statusCode:mn(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:mn(t)?t.status:void 0}:Wr(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function br(e,t,n,r,i){let a=e.headers.get(`Location`);if(V(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!Qt(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=Jn(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var xr=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Sr(e){try{return xr.includes(new URL(e).protocol)}catch{return!1}}function Cr(e,t,n,r){if(Qt(e)){let r=e,i=st.test(r)?new URL(ct(r,t.protocol)):new URL(r);if(Sr(i.toString()))throw Error(`Invalid redirect location`);let a=Xt(i.pathname,n)!=null;if(i.origin===t.origin&&a)return on(i.pathname)+i.search+i.hash}try{if(Sr(r.createURL(e).toString()))throw Error(`Invalid redirect location`)}catch{}return e}function wr(e,t,n,r){let i=e.createURL(Ir(t)).toString(),a={signal:n};if(r&&Yr(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):t===`text/plain`?a.body=r.text:t===`application/x-www-form-urlencoded`&&r.formData?a.body=Er(r.formData):a.body=r.formData}return new Request(i,a)}function Tr(e,t){let n=new URL(e.url),r=typeof t==`string`?_t(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);n.search=e.size?`?${e.toString()}`:``}else n.search=``;return n.hash=r.hash||``,n}function Er(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function Dr(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Or(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&Hr(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(V(!Ur(f),`Cannot handle redirect results in processLoaderData`),Hr(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=Mr(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=Bn),c||(c=!0,s=mn(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function kr(e,t,n,r,i,a,o){let{loaderData:s,errors:c}=Or(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let s=a[n];if(V(s,`Did not find corresponding fetcher result`),Hr(s)){let t=Mr(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:s.error}),o.delete(n)}else if(Ur(s))V(!1,`Unhandled fetcher revalidation redirect`);else{let e=ri(s.data);o.set(n,e)}}),{loaderData:s,errors:c}}function Ar(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==Bn).reduce((e,[t,n])=>(e[t]=n,e),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function jr(e){return e?Hr(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Mr(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function Nr(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function Pr(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new pn(e||500,o,Error(s),!0)}function Fr(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Ur(r))return{key:n,result:r}}}function Ir(e){return gt({...typeof e==`string`?_t(e):e,hash:``})}function Lr(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash||t.hash!==``}function Rr(e){return new pn(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function zr(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&Br(t))}function Br(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function Vr(e){return Gr(e.result)&&Nn.has(e.result.status)}function Hr(e){return e.type===`error`}function Ur(e){return(e&&e.type)===`redirect`}function Wr(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function Gr(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function Kr(e){return Nn.has(e)}function qr(e){return Gr(e)&&Kr(e.status)&&e.headers.has(`Location`)}function Jr(e){return Mn.has(e.toUpperCase())}function Yr(e){return An.has(e.toUpperCase())}function Xr(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function Zr(e,t){let n=typeof t==`string`?_t(t).search:t.search;if(e[e.length-1].route.index&&Xr(n||``))return e[e.length-1];let r=nn(e);return r[r.length-1]}function Qr(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function $r(e,t,n,r){return r?{state:`loading`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:`loading`,location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ei(e,t,n,r){return{state:`submitting`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function ti(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function ni(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ri(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function ii(e,t){try{let n=e.sessionStorage.getItem(zn);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function ai(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(zn,JSON.stringify(n))}catch(e){ft(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function oi(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var si=B.createContext(null);si.displayName=`DataRouter`;var ci=B.createContext(null);ci.displayName=`DataRouterState`;var li=B.createContext(!1);function ui(){return B.useContext(li)}var di=B.createContext({isTransitioning:!1});di.displayName=`ViewTransition`;var fi=B.createContext(new Map);fi.displayName=`Fetchers`;var pi=B.createContext(null);pi.displayName=`Await`;var mi=B.createContext(null);mi.displayName=`Navigation`;var hi=B.createContext(null);hi.displayName=`Location`;var gi=B.createContext({outlet:null,matches:[],isDataRoute:!1});gi.displayName=`Route`;var _i=B.createContext(null);_i.displayName=`RouteError`;var vi=`REACT_ROUTER_ERROR`,yi=`REDIRECT`,bi=`ROUTE_ERROR_RESPONSE`;function xi(e){if(e.startsWith(`${vi}:${yi}:{`))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 Si(e){if(e.startsWith(`${vi}:${bi}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new pn(t.status,t.statusText,t.data)}catch{}}function Ci(e,{relative:t}={}){V(wi(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=B.useContext(mi),{hash:i,pathname:a,search:o}=Ai(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:sn([n,a])),r.createHref({pathname:s,search:o,hash:i})}function wi(){return B.useContext(hi)!=null}function Ti(){return V(wi(),`useLocation() may be used only in the context of a <Router> component.`),B.useContext(hi).location}var Ei=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Di(e){B.useContext(mi).static||B.useLayoutEffect(e)}function Oi(){let{isDataRoute:e}=B.useContext(gi);return e?Ji():ki()}function ki(){V(wi(),`useNavigate() may be used only in the context of a <Router> component.`);let e=B.useContext(si),{basename:t,navigator:n}=B.useContext(mi),{matches:r}=B.useContext(gi),{pathname:i}=Ti(),a=JSON.stringify(rn(r)),o=B.useRef(!1);return Di(()=>{o.current=!0}),B.useCallback((r,s={})=>{if(ft(o.current,Ei),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=an(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:sn([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}B.createContext(null);function Ai(e,{relative:t}={}){let{matches:n}=B.useContext(gi),{pathname:r}=Ti(),i=JSON.stringify(rn(n));return B.useMemo(()=>an(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function ji(e,t,n){V(wi(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=B.useContext(mi),{matches:i}=B.useContext(gi),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||``;Xi(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.
|
|
3
|
+
|
|
4
|
+
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=Ti(),d;if(t){let e=typeof t==`string`?_t(t):t;V(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})):kt(e,{pathname:p});ft(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),ft(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=Ri(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:sn([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:sn([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?B.createElement(hi.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Mi(){let e=qi(),t=mn(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=B.createElement(B.Fragment,null,B.createElement(`p`,null,`💿 Hey developer 👋`),B.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,B.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,B.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),B.createElement(B.Fragment,null,B.createElement(`h2`,null,`Unexpected Application Error!`),B.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?B.createElement(`pre`,{style:i},n):null,o)}var Ni=B.createElement(Mi,null),Pi=class extends B.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=Si(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:B.createElement(gi.Provider,{value:this.props.routeContext},B.createElement(_i.Provider,{value:e,children:this.props.component}));return this.context?B.createElement(Ii,{error:e},t):t}};Pi.contextType=li;var Fi=new WeakMap;function Ii({children:e,error:t}){let{basename:n}=B.useContext(mi);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=xi(t.digest);if(e){let r=Fi.get(t);if(r)throw r;let i=_n(e.location,n),a=i.absoluteURL||i.to;if(Sr(a))throw Error(`Invalid redirect location`);if(gn&&!Fi.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 Fi.set(t,n),n}return B.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function Li({routeContext:e,match:t,children:n}){let r=B.useContext(si);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),B.createElement(gi.Provider,{value:e},n)}function Ri(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);V(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:hn(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||Ni,o&&(s<0&&c===0?(Xi(`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?B.createElement(n.route.Component,null):n.route.element?n.route.element:e,B.createElement(Li,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?B.createElement(Pi,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function zi(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Bi(e){let t=B.useContext(si);return V(t,zi(e)),t}function Vi(e){let t=B.useContext(ci);return V(t,zi(e)),t}function Hi(e){let t=B.useContext(gi);return V(t,zi(e)),t}function Ui(e){let t=Hi(e),n=t.matches[t.matches.length-1];return V(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Wi(){return Ui(`useRouteId`)}function Gi(){let e=Vi(`useNavigation`);return B.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function Ki(){let{matches:e,loaderData:t}=Vi(`useMatches`);return B.useMemo(()=>e.map(e=>jt(e,t)),[e,t])}function qi(){let e=B.useContext(_i),t=Vi(`useRouteError`),n=Ui(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Ji(){let{router:e}=Bi(`useNavigate`),t=Ui(`useNavigate`),n=B.useRef(!1);return Di(()=>{n.current=!0}),B.useCallback(async(r,i={})=>{ft(n.current,Ei),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Yi={};function Xi(e,t,n){!t&&!Yi[e]&&(Yi[e]=!0,ft(!1,n))}var Zi={};function Qi(e,t){!e&&!Zi[t]&&(Zi[t]=!0,console.warn(t))}var $i=B.useOptimistic,ea=()=>void 0;function ta(e){return $i?$i(e):[e,ea]}function na(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&ft(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:B.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&ft(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:B.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&ft(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:B.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var ra=[`HydrateFallback`,`hydrateFallbackElement`],ia=class{constructor(){this.status=`pending`,this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function aa({router:e,flushSync:t,onError:n,useTransitions:r}){r=ui()||r;let[i,a]=B.useState(e.state),[o,s]=ta(i),[c,l]=B.useState(),[u,d]=B.useState({isTransitioning:!1}),[f,p]=B.useState(),[m,h]=B.useState(),[g,_]=B.useState(),v=B.useRef(new Map),y=B.useCallback((i,{deletedFetchers:o,newErrors:c,flushSync:u,viewTransitionOpts:g})=>{c&&n&&Object.values(c).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:hn(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&v.current.set(t,e.data)}),o.forEach(e=>v.current.delete(e)),Qi(u===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let y=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(Qi(g==null||y,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!g||!y){t&&u?t(()=>a(i)):r===!1?a(i):B.startTransition(()=>{r===!0&&s(e=>oa(e,i)),a(i)});return}if(t&&u){t(()=>{m&&(f?.resolve(),m.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:g.currentLocation,nextLocation:g.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})})}),t(()=>h(n));return}m?(f?.resolve(),m.skipTransition(),_({state:i,currentLocation:g.currentLocation,nextLocation:g.nextLocation})):(l(i),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}))},[e.window,t,m,f,r,s,n]);B.useLayoutEffect(()=>e.subscribe(y),[e,y]),B.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new ia)},[u]),B.useEffect(()=>{if(f&&c&&e.window){let t=c,n=f.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):B.startTransition(()=>{r===!0&&s(e=>oa(e,t)),a(t)}),await n});i.finished.finally(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})}),h(i)}},[c,f,e.window,r,s]),B.useEffect(()=>{f&&c&&o.location.key===c.location.key&&f.resolve()},[f,m,o.location,c]),B.useEffect(()=>{!u.isTransitioning&&g&&(l(g.state),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),_(void 0))},[u.isTransitioning,g]);let b=B.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),x=e.basename||`/`,S=B.useMemo(()=>({router:e,navigator:b,static:!1,basename:x,onError:n}),[e,b,x,n]);return B.createElement(B.Fragment,null,B.createElement(si.Provider,{value:S},B.createElement(ci.Provider,{value:o},B.createElement(fi.Provider,{value:v.current},B.createElement(di.Provider,{value:u},B.createElement(la,{basename:x,location:o.location,navigationType:o.historyAction,navigator:b,useTransitions:r},B.createElement(sa,{routes:e.routes,manifest:e.manifest,future:e.future,state:o,isStatic:!1,onError:n})))))),null)}function oa(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var sa=B.memo(ca);function ca({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return ji(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function la({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){V(!wi(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=B.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=_t(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=B.useMemo(()=>{let e=Xt(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]);return ft(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:B.createElement(mi.Provider,{value:c},B.createElement(hi.Provider,{children:t,value:h}))}B.Component;var ua=`get`,da=`application/x-www-form-urlencoded`;function fa(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function pa(e){return fa(e)&&e.tagName.toLowerCase()===`button`}function ma(e){return fa(e)&&e.tagName.toLowerCase()===`form`}function ha(e){return fa(e)&&e.tagName.toLowerCase()===`input`}function ga(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _a(e,t){return e.button===0&&(!t||t===`_self`)&&!ga(e)}function va(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function ya(e,t){let n=va(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var ba=null;function xa(){if(ba===null)try{new FormData(document.createElement(`form`),0),ba=!1}catch{ba=!0}return ba}var Sa=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Ca(e){return e!=null&&!Sa.has(e)?(ft(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${da}"`),null):e}function wa(e,t){let n,r,i,a,o;if(ma(e)){let o=e.getAttribute(`action`);r=o?Xt(o,t):null,n=e.getAttribute(`method`)||ua,i=Ca(e.getAttribute(`enctype`))||da,a=new FormData(e)}else if(pa(e)||ha(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?Xt(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||ua,i=Ca(e.getAttribute(`formenctype`))||Ca(o.getAttribute(`enctype`))||da,a=new FormData(o,e),!xa()){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(fa(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=ua,r=null,i=da,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 Ta={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},Ea=/[&><\u2028\u2029]/g;function Da(e){return e.replace(Ea,e=>Ta[e])}function Oa(e,t){if(e===!1||e==null)throw Error(t)}function ka(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&&Xt(i.pathname,t)===`/`?i.pathname=`${cn(t)}/_root.${r}`:i.pathname=`${cn(i.pathname)}.${r}`,i}async function Aa(e,t){if(e.id in t)return t[e.id];try{let n=await et(()=>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.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ja(e){return e!=null&&typeof e.page==`string`}function Ma(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 Na(e,t,n){return Ra((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Aa(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Ma).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Pa(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,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 Fa(e,t,{includeHydrateFallback:n}={}){return Ia(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 Ia(e){return[...new Set(e)]}function La(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Ra(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!ja(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(La(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function za(){let e=B.useContext(si);return Oa(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Ba(){let e=B.useContext(ci);return Oa(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Va=B.createContext(void 0);Va.displayName=`FrameworkContext`;function Ha(){let e=B.useContext(Va);return Oa(e,`You must render this element inside a <HydratedRouter> element`),e}function Ua(e,t){let n=B.useContext(Va),[r,i]=B.useState(!1),[a,o]=B.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=B.useRef(null);B.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]),B.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:Wa(s,p),onBlur:Wa(c,m),onMouseEnter:Wa(l,p),onMouseLeave:Wa(u,m),onTouchStart:Wa(d,p)}]:[a,f,{}]:[!1,f,{}]}function Wa(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ga({page:e,...t}){let n=ui(),{nonce:r}=Ha(),{router:i}=za(),a=B.useMemo(()=>kt(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?B.createElement(qa,{page:e,matches:a,...t}):B.createElement(Ja,{page:e,matches:a,...t})):null}function Ka(e){let{manifest:t,routeModules:n}=Ha(),[r,i]=B.useState([]);return B.useEffect(()=>{let r=!1;return Na(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function qa({page:e,matches:t,...n}){let r=Ti(),{future:i}=Ha(),{basename:a}=za(),o=B.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=ka(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 B.createElement(B.Fragment,null,o.map(e=>B.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Ja({page:e,matches:t,...n}){let r=Ti(),{future:i,manifest:a,routeModules:o}=Ha(),{basename:s}=za(),{loaderData:c,matches:l}=Ba(),u=B.useMemo(()=>Pa(e,t,l,a,r,`data`),[e,t,l,a,r]),d=B.useMemo(()=>Pa(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=B.useMemo(()=>{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=ka(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=B.useMemo(()=>Fa(d,a),[d,a]),m=Ka(d);return B.createElement(B.Fragment,null,f.map(e=>B.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>B.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>B.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Ya(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}B.Component;var Xa=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Xa&&(window.__reactRouterVersion=`7.18.1`)}catch{}function Za(e,t){return Kn({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:dt({window:t?.window}),hydrationData:t?.hydrationData||Qa(),routes:e,mapRouteProperties:na,hydrationRouteProperties:ra,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function Qa(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:$a(e.errors)}),e}function $a(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new pn(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(typeof r.__subType==`string`&&fn.includes(r.__subType)){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}function eo({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=B.useState({action:n.action,location:n.location}),o=B.useCallback(e=>{r===!1?a(e):B.startTransition(()=>a(e))},[r]);return B.useLayoutEffect(()=>n.listen(o),[n,o]),B.createElement(la,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}eo.displayName=`unstable_HistoryRouter`;var to=B.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:_}=B.useContext(mi),v=typeof l==`string`&&ot.test(l),y=_n(l,h);l=y.to;let b=Ci(l,{relative:r}),x=Ti(),S=null;if(o){let e=an(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:sn([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=Ua(n,p),E=co(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function D(t){e&&e(t),t.defaultPrevented||E(t)}let O=!(y.isExternal||i),k=B.createElement(`a`,{...p,...T,href:(O?S:void 0)||y.absoluteURL||b,onClick:O?D:e,ref:Ya(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?B.createElement(B.Fragment,null,k,B.createElement(Ga,{page:b})):k});to.displayName=`Link`;var no=B.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=Ai(a,{relative:c.relative}),d=Ti(),f=B.useContext(ci),{navigator:p,basename:m}=B.useContext(mi),h=f!=null&&bo(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=Xt(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,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return B.createElement(to,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});no.displayName=`NavLink`;var ro=B.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=ua,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=B.useContext(mi),g=po(),_=mo(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&ot.test(s);return B.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?B.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});ro.displayName=`Form`;function io({getKey:e,storageKey:t,...n}){let r=B.useContext(Va),{basename:i}=B.useContext(mi),a=Ti(),o=Ki();vo({getKey:e,storageKey:t});let s=B.useMemo(()=>{if(!r||!e)return null;let t=_o(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),B.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${Da(JSON.stringify(t||ho))}, ${Da(JSON.stringify(s))})`}})}io.displayName=`ScrollRestoration`;function ao(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function oo(e){let t=B.useContext(si);return V(t,ao(e)),t}function so(e){let t=B.useContext(ci);return V(t,ao(e)),t}function co(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Oi(),d=Ti(),f=Ai(e,{relative:o});return B.useCallback(p=>{if(_a(p,t)){p.preventDefault();let t=n===void 0?gt(d)===gt(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?B.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function lo(e){ft(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=B.useRef(va(e)),n=B.useRef(!1),r=Ti(),i=B.useMemo(()=>ya(r.search,n.current?null:t.current),[r.search]),a=Oi();return[i,B.useCallback((e,t)=>{let r=va(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var uo=0,fo=()=>`__${String(++uo)}__`;function po(){let{router:e}=oo(`useSubmit`),{basename:t}=B.useContext(mi),n=Wi(),r=e.fetch,i=e.navigate;return B.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=wa(e,t);if(a.navigate===!1){let e=a.fetcherKey||fo();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 mo(e,{relative:t}={}){let{basename:n}=B.useContext(mi),r=B.useContext(gi);V(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Ai(e||`.`,{relative:t})},o=Ti();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:sn([n,a.pathname])),gt(a)}var ho=`react-router-scroll-positions`,go={};function _o(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:Xt(e.pathname,n)||e.pathname},t)),i??=e.key,i}function vo({getKey:e,storageKey:t}={}){let{router:n}=oo(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=so(`useScrollRestoration`),{basename:a}=B.useContext(mi),o=Ti(),s=Ki(),c=Gi();B.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),yo(B.useCallback(()=>{if(c.state===`idle`){let t=_o(o,s,a,e);go[t]=window.scrollY}try{sessionStorage.setItem(t||ho,JSON.stringify(go))}catch(e){ft(!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`&&(B.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||ho);e&&(go=JSON.parse(e))}catch{}},[t]),B.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(go,()=>window.scrollY,e?(t,n)=>_o(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),B.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{ft(!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 yo(e,t){let{capture:n}=t||{};B.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function bo(e,{relative:t}={}){let n=B.useContext(di);V(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=oo(`useViewTransitionState`),i=Ai(e,{relative:t});if(!n.isTransitioning)return!1;let a=Xt(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Xt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Kt(i.pathname,o)!=null||Kt(i.pathname,a)!=null}var xo=t(o(),1);function So(e){return B.createElement(aa,{flushSync:xo.flushSync,...e})}var Co=[[`path`,{d:`M5.33333 3.00001C7.79379 2.99657 10.1685 3.88709 12 5.5V21C10.1685 19.3871 7.79379 18.4966 5.33333 18.5C3.77132 18.5 2.99032 18.5 2.64526 18.2792C2.4381 18.1466 2.35346 18.0619 2.22086 17.8547C2 17.5097 2 16.8941 2 15.6629V6.40322C2 4.97543 2 4.26154 2.54874 3.68286C3.09748 3.10418 3.65923 3.07432 4.78272 3.0146C4.965 3.00491 5.14858 3.00001 5.33333 3.00001Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M18.6667 3.00001C16.2062 2.99657 13.8315 3.88709 12 5.5V21C13.8315 19.3871 16.2062 18.4966 18.6667 18.5C20.2287 18.5 21.0097 18.5 21.3547 18.2792C21.5619 18.1466 21.6465 18.0619 21.7791 17.8547C22 17.5097 22 16.8941 22 15.6629V6.40322C22 4.97543 22 4.26154 21.4513 3.68286C20.9025 3.10418 20.3408 3.07432 19.2173 3.0146C19.035 3.00491 18.8514 3.00001 18.6667 3.00001Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M19 7.32566C18.8893 7.32211 18.7782 7.32032 18.6667 7.32032C18.1048 7.31954 17.5475 7.36537 17 7.45576M19 11.0067C18.8893 11.0032 18.7782 11.0014 18.6667 11.0014C17.401 10.9996 16.158 11.2344 15 11.6824M19 14.501C18.8893 14.4975 18.7782 14.4957 18.6667 14.4957C17.401 14.4939 16.158 14.7287 15 15.1767`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M5 7.32566C5.11067 7.32211 5.22179 7.32032 5.33333 7.32032C5.89518 7.31954 6.45255 7.36537 7 7.45576M5 11.0067C5.11067 11.0032 5.22179 11.0014 5.33333 11.0014C6.599 10.9996 7.84198 11.2344 9 11.6824M5 14.501C5.11067 14.4975 5.22179 14.4957 5.33333 14.4957C6.599 14.4939 7.84198 14.7287 9 15.1767`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}]],wo=[[`path`,{d:`M3 12C3 7.75736 3 5.63604 4.31802 4.31802C5.63604 3 7.75736 3 12 3C16.2426 3 18.364 3 19.682 4.31802C21 5.63604 21 7.75736 21 12C21 16.2426 21 18.364 19.682 19.682C18.364 21 16.2426 21 12 21C7.75736 21 5.63604 21 4.31802 19.682C3 18.364 3 16.2426 3 12Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M3 9H21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],To=[[`path`,{d:`M12 14L17 14`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M7.25 13.875V14M7.5 14C7.5 14.1381 7.38807 14.25 7.25 14.25C7.11193 14.25 7 14.1381 7 14C7 13.8619 7.11193 13.75 7.25 13.75C7.38807 13.75 7.5 13.8619 7.5 14Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M12 18H7M16.75 17.875V18M16.5 18C16.5 18.1381 16.6119 18.25 16.75 18.25C16.8881 18.25 17 18.1381 17 18C17 17.8619 16.8881 17.75 16.75 17.75C16.6119 17.75 16.5 17.8619 16.5 18Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M16 2V6M8 2V6`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}],[`path`,{d:`M3 10H21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`4`}],[`path`,{d:`M13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22H13C16.7712 22 18.6569 22 19.8284 20.8284C21 19.6569 21 17.7712 21 14V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`5`}]],Eo=[[`path`,{d:`M18 6L6.00081 17.9992M17.9992 18L6 6.00085`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Do=[[`path`,{d:`M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M14.9994 15L9 9M9.00064 15L15 9`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],Oo=[[`path`,{d:`M11 6L21 6`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M11 12L21 12`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M11 18L21 18`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M3 7.39286C3 7.39286 4 8.04466 4.5 9C4.5 9 6 5.25 8 4`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}],[`path`,{d:`M3 18.3929C3 18.3929 4 19.0447 4.5 20C4.5 20 6 16.25 8 15`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`4`}]],ko=[[`path`,{d:`M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17.0001 9.00004 17.0001C9.41425 17.0001 9.74759 16.6523 10.4143 15.9568L19 7.00006`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Ao=[[`path`,{d:`M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M8 12.5L10.5 15L16 9`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],jo=[[`path`,{d:`M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Mo=[[`path`,{d:`M15 18C15 18 9.00001 13.5811 9 12C8.99999 10.4188 15 6 15 6`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],No=[[`path`,{d:`M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Po=[[`path`,{d:`M18 15C18 15 13.5811 9.00001 12 9C10.4188 8.99999 6 15 6 15`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Fo=[[`path`,{d:`M11.9082 1.99805C11.0831 2.0062 10.2457 2.11736 9.41182 2.34079C8.57798 2.56421 7.79714 2.88668 7.07854 3.29214M1.99789 11.9082C2.01271 10.1907 2.47297 8.53244 3.29451 7.07923M6.92124 20.6143C5.48316 19.7666 4.25544 18.5606 3.38386 17.0807M12.0918 22.002C12.9169 21.9939 13.7544 21.8827 14.5882 21.6593C15.422 21.4359 16.2029 21.1134 16.9215 20.7079M22.0021 12.0919C21.9873 13.8094 21.527 15.4677 20.7055 16.9209M17.0788 3.38574C18.5169 4.23349 19.7446 5.43944 20.6162 6.91943`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Io=[[`circle`,{cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Lo=[[`circle`,{cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M12 8V12L14 14`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],Ro=[[`path`,{d:`M14 21H16M14 21C13.1716 21 12.5 20.3284 12.5 19.5V17L12 17M14 21H10M10 21H8M10 21C10.8284 21 11.5 20.3284 11.5 19.5V17L12 17M12 17V21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M16 3H8C5.17157 3 3.75736 3 2.87868 3.87868C2 4.75736 2 6.17157 2 9V11C2 13.8284 2 15.2426 2.87868 16.1213C3.75736 17 5.17157 17 8 17H16C18.8284 17 20.2426 17 21.1213 16.1213C22 15.2426 22 13.8284 22 11V9C22 6.17157 22 4.75736 21.1213 3.87868C20.2426 3 18.8284 3 16 3Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],zo=[[`path`,{d:`M7.5 7.5L8.72654 8.55719C9.24218 9.00163 9.5 9.22386 9.5 9.5C9.5 9.77614 9.24218 9.99836 8.72654 10.4428L7.5 11.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M11.5 12.5H15.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M12 21C15.7497 21 17.6246 21 18.9389 20.0451C19.3634 19.7367 19.7367 19.3634 20.0451 18.9389C21 17.6246 21 15.7497 21 12C21 8.25027 21 6.3754 20.0451 5.06107C19.7367 4.6366 19.3634 4.26331 18.9389 3.95491C17.6246 3 15.7497 3 12 3C8.25027 3 6.3754 3 5.06107 3.95491C4.6366 4.26331 4.26331 4.6366 3.95491 5.06107C3 6.3754 3 8.25027 3 12C3 15.7497 3 17.6246 3.95491 18.9389C4.26331 19.3634 4.6366 19.7367 5.06107 20.0451C6.3754 21 8.25027 21 12 21Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],Bo=[[`path`,{d:`M7 11V9C7 5.70017 7 4.05025 8.02513 3.02513C9.05025 2 10.7002 2 14 2C17.2998 2 18.9497 2 19.9749 3.02513C21 4.05025 21 5.70017 21 9V11C21 14.2998 21 15.9497 19.9749 16.9749C18.9497 18 17.2998 18 14 18C10.7002 18 9.05025 18 8.02513 16.9749C7 15.9497 7 14.2998 7 11Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M3 6V15C3 18.2998 3 19.9497 4.02513 20.9749C5.05025 22 6.70017 22 10 22H17`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],Vo=[[`path`,{d:`M8 7L16 7`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M8 11L12 11`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M13 21.5V21C13 18.1716 13 16.7574 13.8787 15.8787C14.7574 15 16.1716 15 19 15H19.5M20 13.3431V10C20 6.22876 20 4.34315 18.8284 3.17157C17.6569 2 15.7712 2 12 2C8.22877 2 6.34315 2 5.17157 3.17157C4 4.34314 4 6.22876 4 10L4 14.5442C4 17.7892 4 19.4117 4.88607 20.5107C5.06508 20.7327 5.26731 20.9349 5.48933 21.1139C6.58831 22 8.21082 22 11.4558 22C12.1614 22 12.5141 22 12.8372 21.886C12.9044 21.8623 12.9702 21.835 13.0345 21.8043C13.3436 21.6564 13.593 21.407 14.0919 20.9081L18.8284 16.1716C19.4065 15.5935 19.6955 15.3045 19.8478 14.9369C20 14.5694 20 14.1606 20 13.3431Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],Ho=[[`path`,{d:`M4 12.0005L4 14.5446C4 17.7896 4 19.4122 4.88607 20.5111C5.06508 20.7331 5.26731 20.9354 5.48933 21.1144C6.58831 22.0005 8.21082 22.0005 11.4558 22.0005C12.1614 22.0005 12.5141 22.0005 12.8372 21.8865C12.9044 21.8627 12.9702 21.8355 13.0345 21.8047C13.3436 21.6569 13.593 21.4075 14.0919 20.9086L18.8284 16.172C19.4065 15.594 19.6955 15.3049 19.8478 14.9374C20 14.5699 20 14.1611 20 13.3436V10.0005C20 6.22922 20 4.34361 18.8284 3.17203C17.7693 2.11287 16.1265 2.01125 13.0345 2.0015M13 21.5005V21.0005C13 18.172 13 16.7578 13.8787 15.8791C14.7574 15.0005 16.1716 15.0005 19 15.0005H19.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M12 5.99954H4M8 1.99954V9.99954`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],Uo=[[`path`,{d:`M13 20.8268V22H14.1734C14.5827 22 14.7874 22 14.9715 21.9238C15.1555 21.8475 15.3003 21.7028 15.5897 21.4134L20.4133 16.5894C20.6864 16.3164 20.8229 16.1799 20.8959 16.0327C21.0347 15.7525 21.0347 15.4236 20.8959 15.1434C20.8229 14.9961 20.6864 14.8596 20.4133 14.5866C20.1403 14.3136 20.0038 14.1771 19.8565 14.1041C19.5763 13.9653 19.2473 13.9653 18.9671 14.1041C18.8198 14.1771 18.6833 14.3136 18.4103 14.5866L18.4103 14.5866L13.5867 19.4106C13.2972 19.7 13.1525 19.8447 13.0762 20.0287C13 20.2128 13 20.4174 13 20.8268Z`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M19 11C19 11 19 9.4306 18.8478 9.06306C18.6955 8.69552 18.4065 8.40649 17.8284 7.82843L13.0919 3.09188C12.593 2.593 12.3436 2.34355 12.0345 2.19575C11.9702 2.165 11.9044 2.13772 11.8372 2.11401C11.5141 2 11.1614 2 10.4558 2C7.21082 2 5.58831 2 4.48933 2.88607C4.26731 3.06508 4.06508 3.26731 3.88607 3.48933C3 4.58831 3 6.21082 3 9.45584V14C3 17.7712 3 19.6569 4.17157 20.8284C5.23467 21.8915 6.8857 21.99 10 21.9991M12 2.5V3C12 5.82843 12 7.24264 12.8787 8.12132C13.7574 9 15.1716 9 18 9H18.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],Wo=[[`path`,{d:`M13.5 16.5L15 18M14 14.5C14 15.8807 12.8807 17 11.5 17C10.1193 17 9 15.8807 9 14.5C9 13.1193 10.1193 12 11.5 12C12.8807 12 14 13.1193 14 14.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],Go=[[`path`,{d:`M14.9852 12.1565L18.9283 7.74467C20.8466 5.59831 21.8058 4.52514 21.4133 3.63757C21.0207 2.75 19.5869 2.75 16.7193 2.75H7.28068C4.41309 2.75 2.97929 2.75 2.58674 3.63757C2.19419 4.52514 3.15335 5.59831 5.07167 7.74467L9.0148 12.1565C9.26618 12.4378 9.39189 12.5784 9.45764 12.751C9.5234 12.9235 9.5234 13.1128 9.5234 13.4912V18.3704C9.5234 20.0513 9.5234 20.8917 10.0566 21.1712C10.5897 21.4507 11.2734 20.9688 12.6409 20.0049L13.6315 19.3066C14.0456 19.0147 14.2527 18.8688 14.3646 18.6522C14.4766 18.4357 14.4766 18.1812 14.4766 17.6722V13.4912C14.4766 13.1128 14.4766 12.9235 14.5424 12.751C14.6081 12.5784 14.7338 12.4378 14.9852 12.1565Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Ko=[[`path`,{d:`M11 7.10156C8.71776 7.56483 7 9.58259 7 12.0015C7 14.763 9.23858 17.0015 12 17.0015C14.419 17.0015 16.4367 15.2838 16.9 13.0015`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M14.5 7.11525V9.5H16.8847C17.7168 9.5 18.1328 9.5 18.5068 9.34506C18.8809 9.19011 19.1751 8.89595 19.7634 8.30762L20.0977 7.97337C21.0515 7.01951 21.5284 6.54258 21.4987 6.0829C21.4874 5.90785 21.431 5.73869 21.335 5.59185C21.083 5.20626 20.4153 5.11087 19.0799 4.9201C18.8891 3.5847 18.7937 2.917 18.4081 2.665C18.2613 2.56903 18.0922 2.51264 17.9171 2.50131C17.4574 2.47156 16.9805 2.94849 16.0266 3.90235L15.6924 4.2366C15.1041 4.82493 14.8099 5.11909 14.6549 5.49316C14.5 5.86723 14.5 6.28323 14.5 7.11525Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M14.5 9.5L12 12`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}]],qo=[[`circle`,{cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M9.5 9.5C9.5 8.11929 10.6193 7 12 7C13.3807 7 14.5 8.11929 14.5 9.5C14.5 10.3569 14.0689 11.1131 13.4117 11.5636C12.7283 12.0319 12 12.6716 12 13.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],Jo=[[`path`,{d:`M5.14286 14C4.41735 12.8082 4 11.4118 4 9.91886C4 5.54539 7.58172 2 12 2C16.4183 2 20 5.54539 20 9.91886C20 11.4118 19.5827 12.8082 18.8571 14`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M7.38287 17.0982C7.291 16.8216 7.24507 16.6833 7.25042 16.5713C7.26174 16.3343 7.41114 16.1262 7.63157 16.0405C7.73579 16 7.88105 16 8.17157 16H15.8284C16.119 16 16.2642 16 16.3684 16.0405C16.5889 16.1262 16.7383 16.3343 16.7496 16.5713C16.7549 16.6833 16.709 16.8216 16.6171 17.0982C16.4473 17.6094 16.3624 17.8651 16.2315 18.072C15.9572 18.5056 15.5272 18.8167 15.0306 18.9408C14.7935 19 14.525 19 13.9881 19H10.0119C9.47495 19 9.2065 19 8.96944 18.9408C8.47283 18.8167 8.04281 18.5056 7.7685 18.072C7.63755 17.8651 7.55266 17.6094 7.38287 17.0982Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M15 19L14.8707 19.6466C14.7293 20.3537 14.6586 20.7072 14.5001 20.9866C14.2552 21.4185 13.8582 21.7439 13.3866 21.8994C13.0816 22 12.7211 22 12 22C11.2789 22 10.9184 22 10.6134 21.8994C10.1418 21.7439 9.74484 21.4185 9.49987 20.9866C9.34144 20.7072 9.27073 20.3537 9.12932 19.6466L9 19`,stroke:`currentColor`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M12 16V11`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}]],Yo=[[`circle`,{cx:`7.5`,cy:`7.5`,r:`1.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M5 21C9.37246 15.775 14.2741 8.88406 21.4975 13.5424`,stroke:`currentColor`,strokeWidth:`1.5`,key:`2`}]],Xo=[[`path`,{d:`M18.001 20C16.3295 21.2558 14.2516 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 12.8634 21.8906 13.7011 21.6849 14.5003C21.4617 15.3673 20.5145 15.77 19.6699 15.4728C18.9519 15.2201 18.6221 14.3997 18.802 13.66C18.9314 13.1279 19 12.572 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C13.3197 19 14.554 18.6348 15.6076 18`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`0`}]],Zo=[[`path`,{d:`M8.5 14.5H15.5M8.5 9.5H12`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M14.1706 20.8905C18.3536 20.6125 21.6856 17.2332 21.9598 12.9909C22.0134 12.1607 22.0134 11.3009 21.9598 10.4707C21.6856 6.22838 18.3536 2.84913 14.1706 2.57107C12.7435 2.47621 11.2536 2.47641 9.8294 2.57107C5.64639 2.84913 2.31441 6.22838 2.04024 10.4707C1.98659 11.3009 1.98659 12.1607 2.04024 12.9909C2.1401 14.536 2.82343 15.9666 3.62791 17.1746C4.09501 18.0203 3.78674 19.0758 3.30021 19.9978C2.94941 20.6626 2.77401 20.995 2.91484 21.2351C3.05568 21.4752 3.37026 21.4829 3.99943 21.4982C5.24367 21.5285 6.08268 21.1757 6.74868 20.6846C7.1264 20.4061 7.31527 20.2668 7.44544 20.2508C7.5756 20.2348 7.83177 20.3403 8.34401 20.5513C8.8044 20.7409 9.33896 20.8579 9.8294 20.8905C11.2536 20.9852 12.7435 20.9854 14.1706 20.8905Z`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],Qo=[[`path`,{d:`M12.5 3.00372C11.6049 2.99039 10.7047 3.01289 9.8294 3.07107C5.64639 3.34913 2.31441 6.72838 2.04024 10.9707C1.98659 11.8009 1.98659 12.6607 2.04024 13.4909C2.1401 15.036 2.82343 16.4666 3.62791 17.6746C4.09501 18.5203 3.78674 19.5758 3.30021 20.4978C2.94941 21.1626 2.77401 21.495 2.91484 21.7351C3.05568 21.9752 3.37026 21.9829 3.99943 21.9982C5.24367 22.0285 6.08268 21.6757 6.74868 21.1846C7.1264 20.9061 7.31527 20.7668 7.44544 20.7508C7.5756 20.7348 7.83177 20.8403 8.34401 21.0513C8.8044 21.2409 9.33896 21.3579 9.8294 21.3905C11.2536 21.4852 12.7435 21.4854 14.1706 21.3905C18.3536 21.1125 21.6856 17.7332 21.9598 13.4909C22.0021 12.836 22.011 12.1627 21.9866 11.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M16 2L22.0001 8M16 8L22.0001 2`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M8.5 15H15.5M8.5 10H12`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],$o=[[`path`,{d:`M20 12L4 12`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],es=[[`path`,{d:`M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M12 22C15.3137 22 18 17.5228 18 12C18 6.47715 15.3137 2 12 2`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M10 14.5C10 15.3284 9.32843 16 8.5 16C7.67157 16 7 15.3284 7 14.5C7 13.6716 7.67157 13 8.5 13C9.32843 13 10 13.6716 10 14.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M11.125 7H11M11.25 7C11.25 7.13807 11.1381 7.25 11 7.25C10.8619 7.25 10.75 7.13807 10.75 7C10.75 6.86193 10.8619 6.75 11 6.75C11.1381 6.75 11.25 6.86193 11.25 7Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}]],ts=[[`path`,{d:`M6.00449 12.5V12M18.0045 12.5V12M12.0045 12.5V12M7.00449 12.5C7.00449 11.9477 6.55677 11.5 6.00449 11.5C5.4522 11.5 5.00449 11.9477 5.00449 12.5C5.00449 13.0523 5.4522 13.5 6.00449 13.5C6.55677 13.5 7.00449 13.0523 7.00449 12.5ZM19.0045 12.5C19.0045 11.9477 18.5568 11.5 18.0045 11.5C17.4522 11.5 17.0045 11.9477 17.0045 12.5C17.0045 13.0523 17.4522 13.5 18.0045 13.5C18.5568 13.5 19.0045 13.0523 19.0045 12.5ZM13.0045 12.5C13.0045 11.9477 12.5568 11.5 12.0045 11.5C11.4522 11.5 11.0045 11.9477 11.0045 12.5C11.0045 13.0523 11.4522 13.5 12.0045 13.5C12.5568 13.5 13.0045 13.0523 13.0045 12.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],ns=[[`path`,{d:`M15.5 2V5M6.5 2V5M11 2V5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M19 12V10.5C19 7.20017 19 5.55025 17.9749 4.52512C16.9497 3.5 15.2998 3.5 12 3.5H10C6.70017 3.5 5.05025 3.5 4.02513 4.52513C3 5.55025 3 7.20017 3 10.5V15C3 18.2998 3 19.9497 4.02513 20.9749C5.05025 22 6.70017 22 10 22H11`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M7 15H11M7 11H15`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M15.7367 21.6527L14 22L14.3473 20.2633C14.4179 19.9106 14.5913 19.5866 14.8456 19.3323L18.9111 15.2668C19.2668 14.9111 19.8437 14.9111 20.1995 15.2668L20.7332 15.8005C21.0889 16.1563 21.0889 16.7332 20.7332 17.0889L16.6677 21.1544C16.4134 21.4087 16.0894 21.5821 15.7367 21.6527Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}]],rs=[[`path`,{d:`M21 11C21 7.22876 21 5.34315 19.8284 4.17157C18.6569 3 16.7712 3 13 3H11C7.22876 3 5.34315 3 4.17157 4.17157C3 5.34315 3 7.22876 3 11V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H13C16.7712 21 18.6569 21 19.8284 19.8284C21 18.6569 21 16.7712 21 13V11Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M9 3V21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M14 9L15.1082 9.87868C16.3694 10.8787 17 11.3787 17 12C17 12.6213 16.3694 13.1213 15.1082 14.1213L14 15`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],is=[[`path`,{d:`M21 11C21 7.22876 21 5.34315 19.8284 4.17157C18.6569 3 16.7712 3 13 3H11C7.22876 3 5.34315 3 4.17157 4.17157C3 5.34315 3 7.22876 3 11V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H13C16.7712 21 18.6569 21 19.8284 19.8284C21 18.6569 21 16.7712 21 13V11Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M9 3V21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M16 9L14.8918 9.87868C13.6306 10.8787 13 11.3787 13 12C13 12.6213 13.6306 13.1213 14.8918 14.1213L16 15`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],as=[[`path`,{d:`M6 22V13.6944C6 12.1287 6 11.3459 6.21454 10.6077C6.42908 9.86948 6.84589 9.21812 7.6795 7.91542L10.3359 3.76419C11.0885 2.58806 11.4648 2 12 2C12.5352 2 12.9115 2.58806 13.6641 3.76419L16.3205 7.91542C17.1541 9.21812 17.5709 9.86948 17.7855 10.6077C18 11.3459 18 12.1287 18 13.6944V22`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M7 11C7.63152 11.3231 8.4887 11.9732 9.28009 11.9991C10.2988 12.0324 10.9868 11.1372 12 11.1372C13.0132 11.1372 13.7012 12.0324 14.7199 11.9991C15.5113 11.9732 16.3685 11.3231 17 11`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M12 12L12 22`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M10 5H14`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}]],os=[[`path`,{d:`M15.5 2V6M8.5 6V2`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M6.00446 7.61331C5.93719 6.74273 6.63957 6 7.53014 6H16.4699C17.3604 6 18.0628 6.74273 17.9955 7.61331L17.8117 9.99197C17.6796 11.7019 17.1011 13.3498 16.132 14.7773L15.5312 15.6622C14.9638 16.4979 14.0077 17 12.9838 17H11.0162C9.99228 17 9.03617 16.4979 8.46881 15.6622L7.86803 14.7773C6.89885 13.3498 6.32041 11.7019 6.18827 9.99197L6.00446 7.61331Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M12 17V22`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M11 9H13`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}]],ss=[[`path`,{d:`M12 4V2`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M20 22C20 17.5817 16.4183 14 12 14C7.58172 14 4 17.5817 4 22`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M9.375 8.25H9.25M9.5 8.25C9.5 8.38807 9.38807 8.5 9.25 8.5C9.11193 8.5 9 8.38807 9 8.25C9 8.11193 9.11193 8 9.25 8C9.38807 8 9.5 8.11193 9.5 8.25Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M14.875 8.25H14.75M15 8.25C15 8.38807 14.8881 8.5 14.75 8.5C14.6119 8.5 14.5 8.38807 14.5 8.25C14.5 8.11193 14.6119 8 14.75 8C14.8881 8 15 8.11193 15 8.25Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}],[`path`,{d:`M15.1538 4H8.84615C7.59095 4 6.96334 4 6.47397 4.22025C5.91693 4.47095 5.47095 4.91693 5.22025 5.47397C5 5.96334 5 6.59095 5 7.84615C5 9.85448 5 10.8586 5.3524 11.6417C5.75353 12.5329 6.46709 13.2465 7.35835 13.6476C8.14135 14 9.14552 14 11.1538 14H12.8462C14.8545 14 15.8586 14 16.6417 13.6476C17.5329 13.2465 18.2465 12.5329 18.6476 11.6417C19 10.8586 19 9.85448 19 7.84615C19 6.59095 19 5.96334 18.7797 5.47397C18.529 4.91693 18.0831 4.47095 17.526 4.22025C17.0367 4 16.4091 4 15.1538 4Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`4`}]],cs=[[`path`,{d:`M17 17L21 21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19C15.4183 19 19 15.4183 19 11Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],ls=[[`path`,{d:`M13.7276 3.44418L15.4874 6.99288C15.7274 7.48687 16.3673 7.9607 16.9073 8.05143L20.0969 8.58575C22.1367 8.92853 22.6167 10.4206 21.1468 11.8925L18.6671 14.3927C18.2471 14.8161 18.0172 15.6327 18.1471 16.2175L18.8571 19.3125C19.417 21.7623 18.1271 22.71 15.9774 21.4296L12.9877 19.6452C12.4478 19.3226 11.5579 19.3226 11.0079 19.6452L8.01827 21.4296C5.8785 22.71 4.57865 21.7522 5.13859 19.3125L5.84851 16.2175C5.97849 15.6327 5.74852 14.8161 5.32856 14.3927L2.84884 11.8925C1.389 10.4206 1.85895 8.92853 3.89872 8.58575L7.08837 8.05143C7.61831 7.9607 8.25824 7.48687 8.49821 6.99288L10.258 3.44418C11.2179 1.51861 12.7777 1.51861 13.7276 3.44418Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],us=[[`path`,{d:`M16.9991 12C16.9991 14.7614 14.7605 17 11.9991 17C9.23766 17 6.99908 14.7614 6.99908 12C6.99908 9.23858 9.23766 7 11.9991 7C14.7605 7 16.9991 9.23858 16.9991 12Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M12.1247 3.25H11.9997M12.1242 20.75H11.9992M20.75 12.125V12M3.25 12.125V12M18.2752 5.90098L18.1868 5.81259M5.90051 18.275L5.81212 18.1866M18.0987 18.2756L18.187 18.1872M5.72429 5.9012L5.81267 5.81282M12.2497 3.25C12.2497 3.38807 12.1378 3.5 11.9997 3.5C11.8616 3.5 11.7497 3.38807 11.7497 3.25C11.7497 3.11193 11.8616 3 11.9997 3C12.1378 3 12.2497 3.11193 12.2497 3.25ZM12.2492 20.75C12.2492 20.8881 12.1373 21 11.9992 21C11.8611 21 11.7492 20.8881 11.7492 20.75C11.7492 20.6119 11.8611 20.5 11.9992 20.5C12.1373 20.5 12.2492 20.6119 12.2492 20.75ZM20.75 12.25C20.6119 12.25 20.5 12.1381 20.5 12C20.5 11.8619 20.6119 11.75 20.75 11.75C20.8881 11.75 21 11.8619 21 12C21 12.1381 20.8881 12.25 20.75 12.25ZM3.25 12.25C3.11193 12.25 3 12.1381 3 12C3 11.8619 3.11193 11.75 3.25 11.75C3.38807 11.75 3.5 11.8619 3.5 12C3.5 12.1381 3.38807 12.25 3.25 12.25ZM18.3636 5.98937C18.266 6.087 18.1077 6.087 18.01 5.98937C17.9124 5.89174 17.9124 5.73345 18.01 5.63582C18.1077 5.53819 18.266 5.53819 18.3636 5.63582C18.4612 5.73345 18.4612 5.89174 18.3636 5.98937ZM5.9889 18.3634C5.89127 18.461 5.73297 18.461 5.63534 18.3634C5.53771 18.2658 5.53771 18.1075 5.63534 18.0099C5.73297 17.9122 5.89127 17.9122 5.9889 18.0099C6.08653 18.1075 6.08653 18.2658 5.9889 18.3634ZM18.0103 18.364C17.9126 18.2663 17.9126 18.108 18.0103 18.0104C18.1079 17.9128 18.2662 17.9128 18.3638 18.0104C18.4614 18.108 18.4614 18.2663 18.3638 18.364C18.2662 18.4616 18.1079 18.4616 18.0103 18.364ZM5.6359 5.98959C5.53827 5.89196 5.53827 5.73367 5.6359 5.63604C5.73353 5.53841 5.89182 5.53841 5.98945 5.63604C6.08708 5.73367 6.08708 5.89196 5.98945 5.98959C5.89182 6.08722 5.73353 6.08722 5.6359 5.98959Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],ds=[[`path`,{d:`M13 11C13 8.79086 11.2091 7 9 7C6.79086 7 5 8.79086 5 11C5 13.2091 6.79086 15 9 15C11.2091 15 13 13.2091 13 11Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M11.0386 7.55773C11.0131 7.37547 11 7.18927 11 7C11 4.79086 12.7909 3 15 3C17.2091 3 19 4.79086 19 7C19 9.20914 17.2091 11 15 11C14.2554 11 13.5584 10.7966 12.9614 10.4423`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M15 21C15 17.6863 12.3137 15 9 15C5.68629 15 3 17.6863 3 21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M21 17C21 13.6863 18.3137 11 15 11`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}]],fs=[[`path`,{d:`M17 8.5C17 5.73858 14.7614 3.5 12 3.5C9.23858 3.5 7 5.73858 7 8.5C7 11.2614 9.23858 13.5 12 13.5C14.7614 13.5 17 11.2614 17 8.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M19 20.5C19 16.634 15.866 13.5 12 13.5C8.13401 13.5 5 16.634 5 20.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],ps=[[`path`,{d:`M20.3584 13.3567C19.1689 14.546 16.9308 14.4998 13.4992 14.4998C11.2914 14.4998 9.50138 12.7071 9.50024 10.4993C9.50024 7.07001 9.454 4.83065 10.6435 3.64138C11.8329 2.45212 12.3583 2.50027 17.6274 2.50027C18.1366 2.49809 18.3929 3.11389 18.0329 3.47394L15.3199 6.18714C14.6313 6.87582 14.6294 7.99233 15.3181 8.68092C16.0068 9.36952 17.1234 9.36959 17.8122 8.68109L20.5259 5.96855C20.886 5.60859 21.5019 5.86483 21.4997 6.37395C21.4997 11.6422 21.5479 12.1675 20.3584 13.3567Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M13.5 14.5L7.32842 20.6716C6.22386 21.7761 4.433 21.7761 3.32843 20.6716C2.22386 19.567 2.22386 17.7761 3.32843 16.6716L9.5 10.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M5.50896 18.5H5.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,key:`2`}]];function ms(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=ms(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function hs(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ms(e))&&(r&&(r+=` `),r+=t);return r}var gs=a(),_s=`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.onTimeUpdateCapture.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 vs(e){return typeof e==`string`&&_s.includes(e)}var ys=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 bs(e){return typeof e==`string`&&ys.has(e)}function xs(e){return typeof e==`string`&&e.startsWith(`data-`)}function Ss(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(bs(n)||xs(n))&&(t[n]=e[n]);return t}function Cs(e){if(e==null)return null;if((0,B.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return Ss(t)}return typeof e==`object`&&!Array.isArray(e)?Ss(e):null}function ws(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(bs(n)||xs(n)||vs(n))&&(t[n]=e[n]);return t}var Ts=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function Es(){return Es=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},Es.apply(null,arguments)}function Ds(e,t){if(e==null)return{};var n,r,i=Os(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 Os(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 ks=(0,B.forwardRef)((e,t)=>{var{children:n,width:r,height:i,viewBox:a,className:o,style:s,title:c,desc:l}=e,u=Ds(e,Ts),d=a||{width:r,height:i,x:0,y:0},f=hs(`recharts-surface`,o);return B.createElement(`svg`,Es({},ws(u),{className:f,width:r,height:i,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`,ref:t}),B.createElement(`title`,null,c),B.createElement(`desc`,null,l),n)}),As=[`children`,`className`];function js(){return js=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},js.apply(null,arguments)}function Ms(e,t){if(e==null)return{};var n,r,i=Ns(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 Ns(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 Ps=B.forwardRef((e,t)=>{var{children:n,className:r}=e,i=Ms(e,As),a=hs(`recharts-layer`,r);return B.createElement(`g`,js({className:a},ws(i),{ref:t}),n)}),Fs=(0,B.createContext)(null);function H(e){return function(){return e}}var Is=Math.cos,Ls=Math.sin,Rs=Math.sqrt,zs=Math.PI;zs/2;var Bs=2*zs,Vs=Math.PI,Hs=2*Vs,Us=1e-6,Ws=Hs-Us;function Gs(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Ks(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return Gs;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 qs=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?Gs:Ks(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>Us)if(!(Math.abs(u*s-c*l)>Us)||!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((Vs-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Us&&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)>Us||Math.abs(this._y1-l)>Us)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%Hs+Hs),d>Ws?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>Us&&this._append`A${n},${n},0,${+(d>=Vs)},${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 Js(){return new qs}Js.prototype=qs.prototype;function Ys(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 qs(t)}Array.prototype.slice;function Xs(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Zs(e){this._context=e}Zs.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 Qs(e){return new Zs(e)}function $s(e){return e[0]}function ec(e){return e[1]}function tc(e,t){var n=H(!0),r=null,i=Qs,a=null,o=Ys(s);e=typeof e==`function`?e:e===void 0?$s:H(e),t=typeof t==`function`?t:t===void 0?ec:H(t);function s(s){var c,l=(s=Xs(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:H(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:H(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:H(!!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 nc(e,t,n){var r=null,i=H(!0),a=null,o=Qs,s=null,c=Ys(l);e=typeof e==`function`?e:e===void 0?$s:H(+e),t=typeof t==`function`?t:H(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?ec:H(+n);function l(l){var u,d,f,p=(l=Xs(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 tc().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:H(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:H(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:H(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:H(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:H(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:H(+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:H(!!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 rc=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 ic(e){return new rc(e,!0)}function ac(e){return new rc(e,!1)}var oc={draw(e,t){let n=Rs(t/zs);e.moveTo(n,0),e.arc(0,0,n,0,Bs)}},sc={draw(e,t){let n=Rs(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()}},cc=Rs(1/3),lc=cc*2,uc={draw(e,t){let n=Rs(t/lc),r=n*cc;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},dc={draw(e,t){let n=Rs(t),r=-n/2;e.rect(r,r,n,n)}},fc=.8908130915292852,pc=Ls(zs/10)/Ls(7*zs/10),mc=Ls(Bs/10)*pc,hc=-Is(Bs/10)*pc,gc={draw(e,t){let n=Rs(t*fc),r=mc*n,i=hc*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=Bs*t/5,o=Is(a),s=Ls(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},_c=Rs(3),vc={draw(e,t){let n=-Rs(t/(_c*3));e.moveTo(0,n*2),e.lineTo(-_c*n,-n),e.lineTo(_c*n,-n),e.closePath()}},yc=-.5,bc=Rs(3)/2,xc=1/Rs(12),Sc=(xc/2+1)*3,Cc={draw(e,t){let n=Rs(t/Sc),r=n/2,i=n*xc,a=r,o=n*xc+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(yc*r-bc*i,bc*r+yc*i),e.lineTo(yc*a-bc*o,bc*a+yc*o),e.lineTo(yc*s-bc*c,bc*s+yc*c),e.lineTo(yc*r+bc*i,yc*i-bc*r),e.lineTo(yc*a+bc*o,yc*o-bc*a),e.lineTo(yc*s+bc*c,yc*c-bc*s),e.closePath()}};function wc(e,t){let n=null,r=Ys(i);e=typeof e==`function`?e:H(e||oc),t=typeof t==`function`?t:H(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:H(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:H(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}function Tc(){}function Ec(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 Dc(e){this._context=e}Dc.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:Ec(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:Ec(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Oc(e){return new Dc(e)}function kc(e){this._context=e}kc.prototype={areaStart:Tc,areaEnd:Tc,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:Ec(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ac(e){return new kc(e)}function jc(e){this._context=e}jc.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:Ec(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Mc(e){return new jc(e)}function Nc(e){this._context=e}Nc.prototype={areaStart:Tc,areaEnd:Tc,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 Pc(e){return new Nc(e)}function Fc(e){return e<0?-1:1}function Ic(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(Fc(a)+Fc(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Lc(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Rc(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 zc(e){this._context=e}zc.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:Rc(this,this._t0,Lc(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,Rc(this,Lc(this,n=Ic(this,e,t)),n);break;default:Rc(this,this._t0,n=Ic(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Bc(e){this._context=new Vc(e)}(Bc.prototype=Object.create(zc.prototype)).point=function(e,t){zc.prototype.point.call(this,t,e)};function Vc(e){this._context=e}Vc.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 Hc(e){return new zc(e)}function Uc(e){return new Bc(e)}function Wc(e){this._context=e}Wc.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=Gc(e),i=Gc(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 Gc(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 Kc(e){return new Wc(e)}function qc(e,t){this._context=e,this._t=t}qc.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 Jc(e){return new qc(e,.5)}function Yc(e){return new qc(e,0)}function Xc(e){return new qc(e,1)}function Zc(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 Qc(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function $c(e,t){return e[t]}function el(e){let t=[];return t.key=e,t}function tl(){var e=H([]),t=Qc,n=Zc,r=$c;function i(i){var a=Array.from(e.apply(this,arguments),el),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=Xs(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:H(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:H(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?Qc:typeof e==`function`?e:H(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Zc,i):n},i}function nl(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}Zc(e,t)}}function rl(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}Zc(e,t)}}function il(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,Zc(e,t)}}var al=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e===`__proto__`}e.isUnsafeProperty=t})),ol=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}e.isDeepKey=t})),sl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}e.toKey=t})),cl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(t).join(`,`);let n=String(e);return n===`0`&&Object.is(Number(e),-0)?`-0`:n}e.toString=t})),ll=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=cl(),n=sl();function r(e){if(Array.isArray(e))return e.map(n.toKey);if(typeof e==`symbol`)return[e];e=t.toString(e);let r=[],i=e.length;if(i===0)return r;let a=0,o=``,s=``,c=!1;for(e.charCodeAt(0)===46&&(r.push(``),a++);a<i;){let t=e[a];s?t===`\\`&&a+1<i?(a++,o+=e[a]):t===s?s=``:o+=t:c?t===`"`||t===`'`?s=t:t===`]`?(c=!1,r.push(o),o=``):o+=t:t===`[`?(c=!0,o&&=(r.push(o),``)):t===`.`?o&&=(r.push(o),``):o+=t,a++}return o&&r.push(o),r}e.toPath=r})),ul=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=al(),n=ol(),r=sl(),i=ll();function a(e,s,c){if(e==null)return c;switch(typeof s){case`string`:{if(t.isUnsafeProperty(s))return c;let r=e[s];return r===void 0?n.isDeepKey(s)?a(e,i.toPath(s),c):c:r}case`number`:case`symbol`:{typeof s==`number`&&(s=r.toKey(s));let t=e[s];return t===void 0?c:t}default:{if(Array.isArray(s))return o(e,s,c);if(s=Object.is(s?.valueOf(),-0)?`-0`:String(s),t.isUnsafeProperty(s))return c;let n=e[s];return n===void 0?c:n}}}function o(e,n,r){if(n.length===0)return r;let i=e;for(let e=0;e<n.length;e++){if(i==null||t.isUnsafeProperty(n[e]))return r;i=i[n[e]]}return i===void 0?r:i}e.get=a})),dl=t(n(((e,t)=>{t.exports=ul().get}))()),fl=4;function pl(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:fl),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function ml(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+pl(i)+n},``)}var hl=e=>e===0?0:e>0?1:-1,gl=e=>typeof e==`number`&&e!=+e,_l=e=>typeof e==`string`&&e.indexOf(`%`)===e.length-1,U=e=>(typeof e==`number`||e instanceof Number)&&!gl(e),vl=e=>U(e)||typeof e==`string`,yl=0,bl=e=>{var t=++yl;return`${e||``}${t}`},xl=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];if(!U(e)&&typeof e!=`string`)return n;var i;if(_l(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return gl(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},Sl=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 Cl(e,t,n){return U(e)&&U(t)?pl(e+n*(t-e)):t}function wl(e,t,n){if(!(!e||!e.length))return e.find(e=>e&&(typeof t==`function`?t(e):(0,dl.default)(e,t))===n)}var Tl=e=>e==null,El=e=>Tl(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function Dl(e){return e!=null}function Ol(){}var kl=[`type`,`size`,`sizeType`];function Al(){return Al=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},Al.apply(null,arguments)}function jl(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 Ml(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jl(Object(n),!0).forEach(function(t){Nl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nl(e,t,n){return(t=Pl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pl(e){var t=Fl(e,`string`);return typeof t==`symbol`?t:t+``}function Fl(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 Il(e,t){if(e==null)return{};var n,r,i=Ll(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 Ll(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 Rl={symbolCircle:oc,symbolCross:sc,symbolDiamond:uc,symbolSquare:dc,symbolStar:gc,symbolTriangle:vc,symbolWye:Cc},zl=Math.PI/180,Bl=e=>Rl[`symbol${El(e)}`]||oc,Vl=(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*zl;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2);case`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}},Hl=(e,t)=>{Rl[`symbol${El(e)}`]=t},Ul=e=>{var{type:t=`circle`,size:n=64,sizeType:r=`area`}=e,i=Ml(Ml({},Il(e,kl)),{},{type:t,size:n,sizeType:r}),a=`circle`;typeof t==`string`&&(a=t);var o=()=>{var e=Bl(a),t=wc().type(e).size(Vl(n,r,a))();if(t!==null)return t},{className:s,cx:c,cy:l}=i,u=ws(i);return U(c)&&U(l)&&U(n)?B.createElement(`path`,Al({},u,{className:hs(`recharts-symbols`,s),transform:`translate(${c}, ${l})`,d:o()})):null};Ul.registerSymbol=Hl;var Wl=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,Gl=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,B.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{vs(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},Kl=(e,t,n)=>r=>(e(t,n,r),null),ql=(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];vs(i)&&typeof a==`function`&&(r||={},r[i]=Kl(a,t,n))}),r};function Jl(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 Yl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Jl(Object(n),!0).forEach(function(t){Xl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xl(e,t,n){return(t=Zl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zl(e){var t=Ql(e,`string`);return typeof t==`symbol`?t:t+``}function Ql(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 $l(e,t){var n=Yl({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}var eu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){let n=new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}e.uniqBy=t})),tu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}e.ary=t})),nu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e}e.identity=t})),ru=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return Number.isSafeInteger(e)&&e>=0}e.isLength=t})),iu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=ru();function n(e){return e!=null&&typeof e!=`function`&&t.isLength(e.length)}e.isArrayLike=n})),au=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`object`&&!!e}e.isObjectLike=t})),ou=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=iu(),n=au();function r(e){return n.isObjectLike(e)&&t.isArrayLike(e)}e.isArrayLikeObject=r})),su=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=ul();function n(e){return function(n){return t.get(n,e)}}e.property=n})),cu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}e.isObject=t})),lu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e==null||typeof e!=`object`&&typeof e!=`function`}e.isPrimitive=t})),uu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}e.isEqualsSameValueZero=t})),du=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=cu(),n=lu(),r=uu();function i(e,t,n){return typeof n==`function`?a(e,t,function e(t,r,i,o,s,c){let l=n(t,r,i,o,s,c);return l===void 0?a(t,r,e,c):!!l},new Map):i(e,t,()=>void 0)}function a(e,n,i,s){if(n===e)return!0;switch(typeof n){case`object`:return o(e,n,i,s);case`function`:return Object.keys(n).length>0?a(e,{...n},i,s):r.isEqualsSameValueZero(e,n);default:return t.isObject(e)?typeof n!=`string`||n===``:r.isEqualsSameValueZero(e,n)}}function o(e,t,r,i){if(t==null)return!0;if(Array.isArray(t))return c(e,t,r,i);if(t instanceof Map)return s(e,t,r,i);if(t instanceof Set)return l(e,t,r,i);let a=Object.keys(t);if(e==null||n.isPrimitive(e))return a.length===0;if(a.length===0)return!0;if(i?.has(t))return i.get(t)===e;i?.set(t,e);try{for(let o=0;o<a.length;o++){let s=a[o];if(!n.isPrimitive(e)&&!(s in e)||t[s]===void 0&&e[s]!==void 0||t[s]===null&&e[s]!==null||!r(e[s],t[s],s,e,t,i))return!1}return!0}finally{i?.delete(t)}}function s(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function c(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function l(e,t,n,r){return t.size===0||e instanceof Set&&c([...e],[...t],n,r)}e.isMatchWith=i,e.isSetMatch=l})),fu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=du();function n(e,n){return t.isMatchWith(e,n,()=>void 0)}e.isMatch=n})),pu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}e.getSymbols=t})),mu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}e.getTag=t})),hu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),e.argumentsTag=`[object Arguments]`,e.arrayBufferTag=`[object ArrayBuffer]`,e.arrayTag=`[object Array]`,e.bigInt64ArrayTag=`[object BigInt64Array]`,e.bigUint64ArrayTag=`[object BigUint64Array]`,e.booleanTag=`[object Boolean]`,e.dataViewTag=`[object DataView]`,e.dateTag=`[object Date]`,e.errorTag=`[object Error]`,e.float32ArrayTag=`[object Float32Array]`,e.float64ArrayTag=`[object Float64Array]`,e.functionTag=`[object Function]`,e.int16ArrayTag=`[object Int16Array]`,e.int32ArrayTag=`[object Int32Array]`,e.int8ArrayTag=`[object Int8Array]`,e.mapTag=`[object Map]`,e.numberTag=`[object Number]`,e.objectTag=`[object Object]`,e.regexpTag=`[object RegExp]`,e.setTag=`[object Set]`,e.stringTag=`[object String]`,e.symbolTag=`[object Symbol]`,e.uint16ArrayTag=`[object Uint16Array]`,e.uint32ArrayTag=`[object Uint32Array]`,e.uint8ArrayTag=`[object Uint8Array]`,e.uint8ClampedArrayTag=`[object Uint8ClampedArray]`})),gu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),e.globalThis=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})()||Function(`return this`)()})),_u=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=gu();function n(e){return t.globalThis.Buffer!==void 0&&t.globalThis.Buffer.isBuffer(e)}e.isBuffer=n})),vu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}e.isTypedArray=t})),yu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=pu(),n=mu(),r=hu(),i=_u(),a=lu(),o=vu();function s(e,t){return c(e,void 0,e,new Map,t)}function c(e,t,n,r=new Map,s=void 0){let d=s?.(e,t,n,r);if(d!==void 0)return d;if(a.isPrimitive(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let i=0;i<e.length;i++)t[i]=c(e[i],i,n,r,s);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[i,a]of e)t.set(i,c(a,i,n,r,s));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let i of e)t.add(c(i,void 0,n,r,s));return t}if(i.isBuffer(e))return e.subarray();if(o.isTypedArray(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let i=0;i<e.length;i++)t[i]=c(e[i],i,n,r,s);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),l(t,e,n,r,s),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),l(t,e,n,r,s),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),l(t,e,n,r,s),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,l(t,e,n,r,s),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),l(t,e,n,r,s),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),l(t,e,n,r,s),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),l(t,e,n,r,s),t}if(typeof e==`object`&&u(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),l(t,e,n,r,s),t}return e}function l(e,n,r=e,i,a){let o=[...Object.keys(n),...t.getSymbols(n)];for(let t=0;t<o.length;t++){let s=o[t],l=Object.getOwnPropertyDescriptor(e,s);(l==null||l.writable)&&(e[s]=c(n[s],s,r,i,a))}}function u(e){switch(n.getTag(e)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=s,e.cloneDeepWithImpl=c,e.copyProperties=l})),bu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=yu();function n(e){return t.cloneDeepWithImpl(e,void 0,e,new Map,void 0)}e.cloneDeep=n})),xu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=fu(),n=bu();function r(e){return e=n.cloneDeep(e),n=>t.isMatch(n,e)}e.matches=r})),Su=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=yu(),n=mu(),r=hu();function i(e,i){return t.cloneDeepWith(e,(a,o,s,c)=>{let l=i?.(a,o,s,c);if(l!==void 0)return l;if(typeof e==`object`){if(n.getTag(e)===r.objectTag&&typeof e.constructor!=`function`){let n={};return c.set(e,n),t.copyProperties(n,e,s,c),n}switch(Object.prototype.toString.call(e)){case r.numberTag:case r.stringTag:case r.booleanTag:{let n=new e.constructor(e?.valueOf());return t.copyProperties(n,e),n}case r.argumentsTag:{let n={};return t.copyProperties(n,e),n.length=e.length,n[Symbol.iterator]=e[Symbol.iterator],n}default:return}}})}e.cloneDeepWith=i})),Cu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Su();function n(e){return t.cloneDeepWith(e)}e.cloneDeep=n})),wu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=/^(?:0|[1-9]\d*)$/;function n(e,n=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<n;case`symbol`:return!1;case`string`:return t.test(e)}}e.isIndex=n})),Tu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=mu();function n(e){return typeof e==`object`&&!!e&&t.getTag(e)===`[object Arguments]`}e.isArguments=n})),Eu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=ol(),n=wu(),r=Tu(),i=ll();function a(e,a){let o;if(o=Array.isArray(a)?a:typeof a==`string`&&t.isDeepKey(a)&&e?.[a]==null?i.toPath(a):[a],o.length===0)return!1;let s=e;for(let e=0;e<o.length;e++){let t=o[e];if((s==null||!Object.hasOwn(s,t))&&!((Array.isArray(s)||r.isArguments(s))&&n.isIndex(t)&&t<s.length))return!1;s=s[t]}return!0}e.has=a})),Du=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=fu(),n=sl(),r=Cu(),i=ul(),a=Eu();function o(e,o){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=n.toKey(e);break}return o=r.cloneDeep(o),function(n){let r=i.get(n,e);return r===void 0?a.has(n,e):o===void 0?r===void 0:t.isMatch(r,o)}}e.matchesProperty=o})),Ou=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=nu(),n=su(),r=xu(),i=Du();function a(e){if(e==null)return t.identity;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?i.matchesProperty(e[0],e[1]):r.matches(e);case`string`:case`symbol`:case`number`:return n.property(e)}}e.iteratee=a})),ku=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=eu(),n=tu(),r=nu(),i=ou(),a=Ou();function o(e,o=r.identity){return i.isArrayLikeObject(e)?t.uniqBy(Array.from(e),n.ary(a.iteratee(o),1)):[]}e.uniqBy=o})),Au=t(n(((e,t)=>{t.exports=ku().uniqBy}))());function ju(e,t,n){return t===!0?(0,Au.default)(e,n):typeof t==`function`?(0,Au.default)(e,t):e}var Mu=(0,B.createContext)(null),Nu=e=>e,Pu=()=>{var e=(0,B.useContext)(Mu);return e?e.store.dispatch:Nu},Fu=()=>{},Iu=()=>Fu,Lu=(e,t)=>e===t;function W(e){var t=(0,B.useContext)(Mu),n=(0,B.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:Fu,[t,e]);return(0,gs.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:Iu,t?t.store.getState:Fu,t?t.store.getState:Fu,n,Lu)}function Ru(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function zu(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!=`object`)throw TypeError(t)}function Bu(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 Vu=e=>Array.isArray(e)?e:[e];function Hu(e){let t=Array.isArray(e[0])?e[0]:e;return Bu(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function Uu(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Wu=class{constructor(e){this.value=e}deref(){return this.value}},Gu=typeof WeakRef<`u`?WeakRef:Wu,Ku=0,qu=1;function Ju(){return{s:Ku,v:void 0,o:null,p:null}}function Yu(e,t={}){let n=Ju(),{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=Ju(),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=Ju(),e.set(n,t)):t=r}}let s=t,c;if(t.s===qu)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 Gu(c):c}return s.s=qu,s.v=c,c}return o.clearCache=()=>{n=Ju(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Xu(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()),Ru(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Yu,argsMemoizeOptions:u=[],devModeChecks:d={}}={...n,...a},f=Vu(c),p=Vu(u),m=Hu(e),h=s(function(){return t++,o.apply(null,arguments)},...f),g=l(function(){r++;let e=Uu(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 G=Xu(Yu),Zu=Object.assign((e,t=G)=>{zu(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:()=>Zu}),Qu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}e.compareValues=(e,n,r)=>{if(e!==n){let i=t(e),a=t(n);if(i===a&&i===0){if(e<n)return r===`desc`?1:-1;if(e>n)return r===`desc`?-1:1}return r===`desc`?a-i:i-a}return 0}})),$u=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`symbol`||e instanceof Symbol}e.isSymbol=t})),ed=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=$u(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(e,i){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||t.isSymbol(e)?!0:typeof e==`string`&&(r.test(e)||!n.test(e))||i!=null&&Object.hasOwn(i,e)}e.isKey=i})),td=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Qu(),n=ed(),r=ll();function i(e,i,a,o){if(e==null)return[];a=o?void 0:a,Array.isArray(e)||(e=Object.values(e)),Array.isArray(i)||(i=i==null?[null]:[i]),i.length===0&&(i=[null]),Array.isArray(a)||(a=a==null?[]:[a]),a=a.map(e=>String(e));let s=(e,t)=>{let n=e;for(let e=0;e<t.length&&n!=null;++e)n=n[t[e]];return n},c=(e,t)=>t==null||e==null?t:typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:s(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?s(t,e):typeof t==`object`?t[e]:t,l=i.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||n.isKey(e)?e:{key:e,path:r.toPath(e)}));return e.map(e=>({original:e,criteria:l.map(t=>c(t,e))})).slice().sort((e,n)=>{for(let r=0;r<l.length;r++){let i=t.compareValues(e.criteria[r],n.criteria[r],a[r]);if(i!==0)return i}return 0}).map(e=>e.original)}e.orderBy=i})),nd=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(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}e.flatten=t})),rd=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=wu(),n=iu(),r=cu(),i=uu();function a(e,a,o){return r.isObject(o)&&(typeof a==`number`&&n.isArrayLike(o)&&t.isIndex(a)&&a<o.length||typeof a==`string`&&a in o)?i.isEqualsSameValueZero(o[a],e):!1}e.isIterateeCall=a})),id=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=td(),n=nd(),r=rd();function i(e,...i){let a=i.length;return a>1&&r.isIterateeCall(e,i[0],i[1])?i=[]:a>2&&r.isIterateeCall(i[0],i[1],i[2])&&(i=[i[0]]),t.orderBy(e,n.flatten(i),[`asc`])}e.sortBy=i})),ad=t(n(((e,t)=>{t.exports=id().sortBy}))()),od=e=>e.legend.settings,sd=e=>e.legend.size;G([e=>e.legend.payload,od],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?(0,ad.default)(r,n):r});var cd=1;function ld(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=(0,B.useState)({height:0,left:0,top:0,width:0});return[t,(0,B.useCallback)(e=>{if(e!=null){var r=e.getBoundingClientRect(),i={height:r.height,left:r.left,top:r.top,width:r.width};(Math.abs(i.height-t.height)>cd||Math.abs(i.left-t.left)>cd||Math.abs(i.top-t.top)>cd||Math.abs(i.width-t.width)>cd)&&n({height:i.height,left:i.left,top:i.top,width:i.width})}},[t.width,t.height,t.top,t.left,...e])]}function ud(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 dd=typeof Symbol==`function`&&Symbol.observable||`@@observable`,fd=()=>Math.random().toString(36).substring(7).split(``).join(`.`),pd={INIT:`@@redux/INIT${fd()}`,REPLACE:`@@redux/REPLACE${fd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${fd()}`};function md(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 hd(e,t,n){if(typeof e!=`function`)throw Error(ud(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(ud(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(ud(1));return n(hd)(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(ud(3));return i}function d(e){if(typeof e!=`function`)throw Error(ud(4));if(c)throw Error(ud(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(ud(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!md(e))throw Error(ud(7));if(e.type===void 0)throw Error(ud(8));if(typeof e.type!=`string`)throw Error(ud(17));if(c)throw Error(ud(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(ud(10));r=e,f({type:pd.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(ud(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[dd](){return this}}}return f({type:pd.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[dd]:m}}function gd(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:pd.INIT})===void 0)throw Error(ud(12));if(n(void 0,{type:pd.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(ud(13))})}function _d(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{gd(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(ud(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function vd(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function yd(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(ud(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=vd(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function bd(e){return md(e)&&`type`in e&&typeof e.type==`string`}var xd=Symbol.for(`immer-nothing`),Sd=Symbol.for(`immer-draftable`),Cd=Symbol.for(`immer-state`);function wd(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Td=Object,Ed=Td.getPrototypeOf,Dd=`constructor`,Od=`prototype`,kd=`configurable`,Ad=`enumerable`,jd=`writable`,Md=`value`,Nd=e=>!!e&&!!e[Cd];function Pd(e){return e?Ld(e)||Wd(e)||!!e[Sd]||!!e[Dd]?.[Sd]||Gd(e)||Kd(e):!1}var Fd=Td[Od][Dd].toString(),Id=new WeakMap;function Ld(e){if(!e||!qd(e))return!1;let t=Ed(e);if(t===null||t===Td[Od])return!0;let n=Td.hasOwnProperty.call(t,Dd)&&t[Dd];if(n===Object)return!0;if(!Jd(n))return!1;let r=Id.get(n);return r===void 0&&(r=Function.toString.call(n),Id.set(n,r)),r===Fd}function Rd(e,t,n=!0){zd(e)===0?(n?Reflect.ownKeys(e):Td.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function zd(e){let t=e[Cd];return t?t.type_:Wd(e)?1:Gd(e)?2:Kd(e)?3:0}var Bd=(e,t,n=zd(e))=>n===2?e.has(t):Td[Od].hasOwnProperty.call(e,t),Vd=(e,t,n=zd(e))=>n===2?e.get(t):e[t],Hd=(e,t,n,r=zd(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Ud(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Wd=Array.isArray,Gd=e=>e instanceof Map,Kd=e=>e instanceof Set,qd=e=>typeof e==`object`,Jd=e=>typeof e==`function`,Yd=e=>typeof e==`boolean`;function Xd(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Zd=e=>e.copy_||e.base_,Qd=e=>e.modified_?e.copy_:e.base_;function $d(e,t){if(Gd(e))return new Map(e);if(Kd(e))return new Set(e);if(Wd(e))return Array[Od].slice.call(e);let n=Ld(e);if(t===!0||t===`class_only`&&!n){let t=Td.getOwnPropertyDescriptors(e);delete t[Cd];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[jd]===!1&&(a[jd]=!0,a[kd]=!0),(a.get||a.set)&&(t[i]={[kd]:!0,[jd]:!0,[Ad]:a[Ad],[Md]:e[i]})}return Td.create(Ed(e),t)}else{let t=Ed(e);if(t!==null&&n)return{...e};let r=Td.create(t);return Td.assign(r,e)}}function ef(e,t=!1){return rf(e)||Nd(e)||!Pd(e)?e:(zd(e)>1&&Td.defineProperties(e,{set:nf,add:nf,clear:nf,delete:nf}),Td.freeze(e),t&&Rd(e,(e,t)=>{ef(t,!0)},!1),e)}function tf(){wd(2)}var nf={[Md]:tf};function rf(e){return e===null||!qd(e)||Td.isFrozen(e)}var af=`MapSet`,of=`Patches`,sf=`ArrayMethods`,cf={};function lf(e){let t=cf[e];return t||wd(0,e),t}var uf=e=>!!cf[e],df,ff=()=>df,pf=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:uf(af)?lf(af):void 0,arrayMethodsPlugin_:uf(sf)?lf(sf):void 0});function mf(e,t){t&&(e.patchPlugin_=lf(of),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function hf(e){gf(e),e.drafts_.forEach(vf),e.drafts_=null}function gf(e){e===df&&(df=e.parent_)}var _f=e=>df=pf(df,e);function vf(e){let t=e[Cd];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function yf(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[Cd].modified_&&(hf(t),wd(4)),Pd(e)&&(e=bf(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Cd].base_,e,t)}else e=bf(t,n);return xf(t,e,!0),hf(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===xd?void 0:e}function bf(e,t){if(rf(t))return t;let n=t[Cd];if(!n)return kf(t,e.handledSet_,e);if(!Cf(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);Df(n,e)}return n.copy_}function xf(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ef(t,n)}function Sf(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Cf=(e,t)=>e.scope_===t,wf=[];function Tf(e,t,n,r){let i=Zd(e),a=e.type_;if(r!==void 0&&Vd(i,r,a)===t){Hd(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Rd(i,(e,n)=>{if(Nd(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??wf;for(let e of o)Hd(i,e,n,a)}function Ef(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!Cf(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=Qd(i);Tf(e,i.draft_??i,a,n),Df(i,r)})}function Df(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)}Sf(e)}}function Of(e,t,n){let{scope_:r}=e;if(Nd(n)){let i=n[Cd];Cf(i,r)&&i.callbacks_.push(function(){Lf(e),Tf(e,n,Qd(i),t)})}else Pd(n)&&e.callbacks_.push(function(){let i=Zd(e);e.type_===3?i.has(n)&&kf(n,r.handledSet_,r):Vd(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&kf(Vd(e.copy_,t,e.type_),r.handledSet_,r)})}function kf(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Nd(e)||t.has(e)||!Pd(e)||rf(e)?e:(t.add(e),Rd(e,(r,i)=>{if(Nd(i)){let t=i[Cd];Cf(t,n)&&(Hd(e,r,Qd(t),e.type_),Sf(t))}else Pd(i)&&kf(i,t,n)}),e)}function Af(e,t){let n=Wd(e),r={type_:+!!n,scope_:t?t.scope_:ff(),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=jf;n&&(i=[r],a=Mf);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var jf={get(e,t){if(t===Cd)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=Zd(e);if(!Bd(i,t,e.type_))return Pf(e,i,t);let a=i[t];if(e.finalized_||!Pd(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Xd(t))return a;if(a===Nf(e.base_,t)){Lf(e);let n=e.type_===1?+t:t,r=zf(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in Zd(e)},ownKeys(e){return Reflect.ownKeys(Zd(e))},set(e,t,n){let r=Ff(Zd(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Nf(Zd(e),t),i=r?.[Cd];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Ud(n,r)&&(n!==void 0||Bd(e.base_,t,e.type_)))return!0;Lf(e),If(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_.set(t,!0),Of(e,t,n),!0)},deleteProperty(e,t){return Lf(e),Nf(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),If(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=Zd(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[jd]:!0,[kd]:e.type_!==1||t!==`length`,[Ad]:r[Ad],[Md]:n[t]}},defineProperty(){wd(11)},getPrototypeOf(e){return Ed(e.base_)},setPrototypeOf(){wd(12)}},Mf={};for(let e in jf){let t=jf[e];Mf[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Mf.deleteProperty=function(e,t){return Mf.set.call(this,e,t,void 0)},Mf.set=function(e,t,n){return jf.set.call(this,e[0],t,n,e[0])};function Nf(e,t){let n=e[Cd];return(n?Zd(n):e)[t]}function Pf(e,t,n){let r=Ff(t,n);return r?Md in r?r[Md]:r.get?.call(e.draft_):void 0}function Ff(e,t){if(!(t in e))return;let n=Ed(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Ed(n)}}function If(e){e.modified_||(e.modified_=!0,e.parent_&&If(e.parent_))}function Lf(e){e.copy_||=(e.assigned_=new Map,$d(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Rf=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Jd(e)&&!Jd(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Jd(t)||wd(6),n!==void 0&&!Jd(n)&&wd(7);let r;if(Pd(e)){let i=_f(this),a=zf(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?hf(i):gf(i)}return mf(i,n),yf(r,i)}else if(!e||!qd(e)){if(r=t(e),r===void 0&&(r=e),r===xd&&(r=void 0),this.autoFreeze_&&ef(r,!0),n){let t=[],i=[];lf(of).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else wd(1,e)},this.produceWithPatches=(e,t)=>{if(Jd(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]},Yd(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Yd(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Yd(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Pd(e)||wd(8),Nd(e)&&(e=Bf(e));let t=_f(this),n=zf(t,e,void 0);return n[Cd].isManual_=!0,gf(t),n}finishDraft(e,t){let n=e&&e[Cd];(!n||!n.isManual_)&&wd(9);let{scope_:r}=n;return mf(r,t),yf(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=lf(of).applyPatches_;return Nd(e)?r(e,t):this.produce(e,e=>r(e,t))}};function zf(e,t,n,r){let[i,a]=Gd(t)?lf(af).proxyMap_(t,n):Kd(t)?lf(af).proxySet_(t,n):Af(t,n);return(n?.scope_??ff()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Ef(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 Bf(e){return Nd(e)||wd(10,e),Vf(e)}function Vf(e){if(!Pd(e)||rf(e))return e;let t=e[Cd],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=$d(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=$d(e,!0);return Rd(n,(e,t)=>{Hd(n,e,Vf(t))},r),t&&(t.finalized_=!1),n}var Hf=new Rf().produce;function Uf(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var Wf=Uf(),Gf=Uf,Kf=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?vd:vd.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function qf(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(em(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=>bd(t)&&t.type===e,n}var Jf=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 Yf(e){return Pd(e)?Hf(e,()=>{}):e}function Xf(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Zf(e){return typeof e==`boolean`}var Qf=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new Jf;return t&&(Zf(t)?a.push(Wf):a.push(Gf(t.extraArgument))),a},$f=`RTK_autoBatch`,K=()=>e=>({payload:e,meta:{[$f]:!0}}),ep=e=>t=>{setTimeout(t,e)},tp=(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?window.requestAnimationFrame:ep(10):e.type===`callback`?e.queueNotification:ep(e.timeout),l=()=>{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?.[$f],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},np=e=>function(t){let{autoBatch:n=!0}=t??{},r=new Jf(e);return n&&r.push(tp(typeof n==`object`?n:void 0)),r};function rp(e){let t=Qf(),{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(md(n))c=_d(n);else throw Error(em(1));let l;l=typeof r==`function`?r(t):t();let u=vd;i&&(u=Kf({trace:!1,...typeof i==`object`&&i}));let d=np(yd(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return hd(c,o,p)}function ip(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(em(28));if(r in t)throw Error(em(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 ap(e){return typeof e==`function`}function op(e,t){let[n,r,i]=ip(t),a;if(ap(e))a=()=>Yf(e());else{let t=Yf(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(Nd(e)){let r=n(e,t);return r===void 0?e:r}else if(Pd(e))return Hf(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 sp=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,cp=(e=21)=>{let t=``,n=e;for(;n--;)t+=sp[Math.random()*64|0];return t},lp=Symbol.for(`rtk-slice-createasyncthunk`);function up(e,t){return`${e}/${t}`}function dp({creators:e}={}){let t=e?.asyncThunk?.[lp];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(em(11));let i=(typeof e.reducers==`function`?e.reducers(mp()):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(em(12));if(n in o.sliceCaseReducersByType)throw Error(em(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:up(n,r),createNotation:typeof e.reducers==`function`};gp(a)?vp(o,a,s,t):hp(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?ip(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return op(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=Xf(d,r,m)),i}function i(t=l){return Xf(Xf(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=fp(a,t,()=>Xf(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 fp(e,t,n,r){function i(i,...a){let o=t(i);return o===void 0&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}var pp=dp();function mp(){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 hp({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!_p(r))throw Error(em(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?qf(e,o):qf(e))}function gp(e){return e._reducerDefinitionType===`asyncThunk`}function _p(e){return e._reducerDefinitionType===`reducerWithPrepare`}function vp({type:e,reducerName:t},n,r,i){if(!i)throw Error(em(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||yp,pending:s||yp,rejected:c||yp,settled:l||yp})}function yp(){}var bp=`task`,xp=`listener`,Sp=`completed`,Cp=`cancelled`,wp=`task-${Cp}`,Tp=`task-${Sp}`,Ep=`${xp}-${Cp}`,Dp=`${xp}-${Sp}`,Op=class{constructor(e){this.code=e,this.message=`${bp} ${Cp} (reason: ${e})`}name=`TaskAbortError`;message},kp=(e,t)=>{if(typeof e!=`function`)throw TypeError(em(32))},Ap=()=>{},jp=(e,t=Ap)=>(e.catch(t),e),Mp=(e,t)=>(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),Np=e=>{if(e.aborted)throw new Op(e.reason)};function Pp(e,t){let n=Ap;return new Promise((r,i)=>{let a=()=>i(new Op(e.reason));if(e.aborted){a();return}n=Mp(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=Ap})}var Fp=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof Op?`cancelled`:`rejected`,error:e}}finally{t?.()}},Ip=e=>t=>jp(Pp(e,t).then(t=>(Np(e),t))),Lp=e=>{let t=Ip(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:Rp}=Object,zp={},Bp=`listenerMiddleware`,Vp=(e,t)=>{let n=t=>Mp(e,()=>t.abort(e.reason));return(r,i)=>{kp(r,`taskExecutor`);let a=new AbortController;n(a);let o=Fp(async()=>{Np(e),Np(a.signal);let t=await r({pause:Ip(a.signal),delay:Lp(a.signal),signal:a.signal});return Np(a.signal),t},()=>a.abort(Tp));return i?.autoJoin&&t.push(o.catch(Ap)),{result:Ip(e)(o),cancel(){a.abort(wp)}}}},Hp=(e,t)=>{let n=async(n,r)=>{Np(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 Pp(t,Promise.race(a));return Np(t),e}finally{i()}};return(e,t)=>jp(n(e,t))},Up=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=qf(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error(em(21));return kp(a,`options.listener`),{predicate:i,type:t,effect:a}},Wp=Rp(e=>{let{type:t,predicate:n,effect:r}=Up(e);return{id:cp(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error(em(22))}}},{withTypes:()=>Wp}),Gp=(e,t)=>{let{type:n,effect:r,predicate:i}=Up(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},Kp=e=>{e.pending.forEach(e=>{e.abort(Ep)})},qp=(e,t)=>()=>{for(let e of t.keys())Kp(e);e.clear()},Jp=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},Yp=Rp(qf(`${Bp}/add`),{withTypes:()=>Yp}),Xp=qf(`${Bp}/removeAll`),Zp=Rp(qf(`${Bp}/remove`),{withTypes:()=>Zp}),Qp=(...e)=>{console.error(`${Bp}/error`,...e)},$p=(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=Qp}=e;kp(o,`onError`);let s=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&Kp(e)}),c=e=>{let n=Gp(t,e)??Wp(e);return s(n)};Rp(c,{withTypes:()=>c});let l=e=>{let n=Gp(t,e);return n&&(n.unsubscribe(),e.cancelActive&&Kp(n)),!!n};Rp(l,{withTypes:()=>l});let u=async(e,n,s,l)=>{let u=new AbortController,d=Hp(c,u.signal),f=[];try{e.pending.add(u),r(e),await Promise.resolve(e.effect(n,Rp({},s,{getOriginalState:l,condition:(e,t)=>d(e,t).then(Boolean),take:d,delay:Lp(u.signal),pause:Ip(u.signal),extra:a,signal:u.signal,fork:Vp(u.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==u&&(e.abort(Ep),n.delete(e))})},cancel:()=>{u.abort(Ep),e.pending.delete(u)},throwIfCancelled:()=>{Np(u.signal)}})))}catch(e){e instanceof Op||Jp(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),u.abort(Dp),i(e),e.pending.delete(u)}},d=qp(t,n);return{middleware:e=>n=>r=>{if(!bd(r))return n(r);if(Yp.match(r))return c(r.payload);if(Xp.match(r)){d();return}if(Zp.match(r))return l(r.payload);let i=e.getState(),a=()=>{if(i===zp)throw Error(em(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,Jp(o,e,{raisedBy:`predicate`})}s&&u(t,r,e,a)}}}finally{i=zp}return s},startListening:c,stopListening:l,clearListeners:d}};function em(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 tm=pp({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=t.payload.left??0},setScale(e,t){e.scale=t.payload}}}),{setMargin:nm,setLayout:rm,setChartSize:im,setScale:am}=tm.actions,om=tm.reducer;function sm(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function q(e){return Number.isFinite(e)}function cm(e){return typeof e==`number`&&e>0&&Number.isFinite(e)}function lm(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 um(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?lm(Object(n),!0).forEach(function(t){dm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dm(e,t,n){return(t=fm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fm(e){var t=pm(e,`string`);return typeof t==`symbol`?t:t+``}function pm(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 mm(e,t,n){return Tl(e)||Tl(t)?n:vl(t)?(0,dl.default)(e,t,n):typeof t==`function`?t(e):n}var hm=(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`&&U(e[a]))return um(um({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&U(e[o]))return um(um({},e),{},{[o]:e[o]+(i||0)})}return e},gm=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,_m={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=gl(c)?l:c;u>=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},expand:nl,none:Zc,silhouette:rl,wiggle:il,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=gl(o[1])?o[0]:o[1];s>=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}}},vm=(e,t,n)=>{var r=_m[n]??Zc,i=tl().keys(t).value((e,t)=>Number(mm(e,t,0))).order(Qc).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=mm(e[i],t[r],0);Array.isArray(a)&&a.length===2&&U(a[0])&&U(a[1])&&(n[0]=a[0],n[1]=a[1])})}),i},ym=e=>{var t=e.flat(2).filter(U);return[Math.min(...t),Math.max(...t)]},bm=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],xm=(e,t,n)=>{if(e!=null)return bm(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=ym(sm(r,t,n));return!q(i[0])||!q(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]))},Sm=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Cm=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,wm=(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=(0,ad.default)(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 Tm(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:a}=e;return um(um({},t),{},{dataKey:n,payload:r,value:i,name:a})}function Em(e,t){if(e)return String(e);if(typeof t==`string`)return t}var Dm=(e,t)=>{if(t===`horizontal`)return e.relativeX;if(t===`vertical`)return e.relativeY},Om=(e,t)=>t===`centric`?e.angle:e.radius,km=e=>e.layout.width,Am=e=>e.layout.height,jm=e=>e.layout.scale,Mm=e=>e.layout.margin,Nm=G(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Pm=G(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Fm=`data-recharts-item-index`,Im=`data-recharts-item-id`;function Lm(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 Rm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Lm(Object(n),!0).forEach(function(t){zm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zm(e,t,n){return(t=Bm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bm(e){var t=Vm(e,`string`);return typeof t==`symbol`?t:t+``}function Vm(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 Hm=e=>e.brush.height;function Um(e){return Pm(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Wm(e){return Pm(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Gm(e){return Nm(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+t.height:e,0)}function Km(e){return Nm(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+t.height:e,0)}var qm=G([km,Am,Mm,Hm,Um,Wm,Gm,Km,od,sd],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=Rm(Rm({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=hm(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return Rm(Rm({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),Jm=G(qm,e=>({x:e.left,y:e.top,width:e.width,height:e.height}));G(km,Am,(e,t)=>({x:0,y:0,width:e,height:t}));var Ym=(0,B.createContext)(null),Xm=()=>(0,B.useContext)(Ym)!=null,Zm=e=>e.brush,Qm=G([Zm,qm,Mm],(e,t,n)=>({height:e.height,x:U(e.x)?e.x:t.left,y:U(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:U(e.width)?e.width:t.width})),$m=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(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}e.debounce=t})),eh=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=$m();function n(e,n=0,r={}){typeof r!=`object`&&(r={});let{leading:i=!1,trailing:a=!0,maxWait:o}=r,s=[,,];i&&(s[0]=`leading`),a&&(s[1]=`trailing`);let c,l=null,u=t.debounce(function(...t){c=e.apply(this,t),l=null},n,{edges:s}),d=function(...t){return o!=null&&(l===null&&(l=Date.now()),Date.now()-l>=o)?(c=e.apply(this,t),l=Date.now(),u.cancel(),u.schedule(),c):(u.apply(this,t),c)};return d.cancel=u.cancel,d.flush=()=>(u.flush(),c),d}e.debounce=n})),th=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=eh();function n(e,n=0,r={}){let{leading:i=!0,trailing:a=!0}=r;return t.debounce(e,n,{leading:i,maxWait:n,trailing:a})}e.throttle=n})),nh=t(n(((e,t)=>{t.exports=th().throttle}))()),rh=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++]))}},ih={width:`100%`,height:`100%`,debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},ah=(e,t,n)=>{var{width:r=ih.width,height:i=ih.height,aspect:a,maxHeight:o}=n,s=_l(r)?e:Number(r),c=_l(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}},oh={width:0,height:0,overflow:`visible`},sh={width:0,overflowX:`visible`},ch={height:0,overflowY:`visible`},lh={},uh=e=>{var{width:t,height:n}=e,r=_l(t),i=_l(n);return r&&i?oh:r?sh:i?ch:lh};function dh(e){var{width:t,height:n,aspect:r}=e,i=t,a=n;return i===void 0&&a===void 0?(i=ih.width,a=ih.height):i===void 0?i=r&&r>0?void 0:ih.width:a===void 0&&(a=r&&r>0?void 0:ih.height),{width:i,height:a}}function fh(){return fh=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},fh.apply(null,arguments)}function ph(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 mh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ph(Object(n),!0).forEach(function(t){hh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hh(e,t,n){return(t=gh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gh(e){var t=_h(e,`string`);return typeof t==`symbol`?t:t+``}function _h(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 vh=(0,B.createContext)(ih.initialDimension);function yh(e){return cm(e.width)&&cm(e.height)}function bh(e){var{children:t,width:n,height:r}=e,i=(0,B.useMemo)(()=>({width:n,height:r}),[n,r]);return yh(i)?B.createElement(vh.Provider,{value:i},t):null}var xh=()=>(0,B.useContext)(vh),Sh=(0,B.forwardRef)((e,t)=>{var{aspect:n,initialDimension:r=ih.initialDimension,width:i,height:a,minWidth:o=ih.minWidth,minHeight:s,maxHeight:c,children:l,debounce:u=ih.debounce,id:d,className:f,onResize:p,style:m={}}=e,h=(0,B.useRef)(null),g=(0,B.useRef)();g.current=p,(0,B.useImperativeHandle)(t,()=>h.current);var[_,v]=(0,B.useState)({containerWidth:r.width,containerHeight:r.height}),y=(0,B.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,B.useEffect)(()=>{if(h.current==null||typeof ResizeObserver>`u`)return Ol;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=(0,nh.default)(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}=_;rh(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var{calculatedWidth:S,calculatedHeight:C}=ah(b,x,{width:i,height:a,aspect:n,maxHeight:c});return rh(S!=null&&S>0||C!=null&&C>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
5
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
6
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
7
|
+
height and width.`,S,C,i,a,o,s,n),B.createElement(`div`,{id:d?`${d}`:void 0,className:hs(`recharts-responsive-container`,f),style:mh(mh({},m),{},{width:i,height:a,minWidth:o,minHeight:s,maxHeight:c}),ref:h},B.createElement(`div`,{style:uh({width:i,height:a})},B.createElement(bh,{width:S,height:C},l)))}),Ch=(0,B.forwardRef)((e,t)=>{var n=xh();if(cm(n.width)&&cm(n.height))return e.children;var{width:r,height:i}=dh({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:o}=ah(void 0,void 0,{width:r,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return U(a)&&U(o)?B.createElement(bh,{width:a,height:o},e.children):B.createElement(Sh,fh({},e,{width:r,height:i,ref:t}))});function wh(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 Th=()=>{var e=Xm(),t=W(Jm),n=W(Qm),r=W(Zm)?.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}},Eh={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Dh=()=>W(qm)??Eh,Oh=()=>W(km),kh=()=>W(Am),Ah=e=>e.layout.layoutType,jh=()=>W(Ah),Mh=e=>{var t=e.layout.layoutType;if(t===`centric`||t===`radial`)return t},Nh=()=>jh()!==void 0,Ph=e=>{var t=Pu(),n=Xm(),{width:r,height:i}=e,a=xh(),o=r,s=i;return a&&(o=a.width>0?a.width:r,s=a.height>0?a.height:i),(0,B.useEffect)(()=>{!n&&cm(o)&&cm(s)&&t(im({width:o,height:s}))},[t,n,o,s]),null},Fh=Symbol.for(`immer-nothing`),Ih=Symbol.for(`immer-draftable`),Lh=Symbol.for(`immer-state`);function Rh(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var zh=Object.getPrototypeOf;function Bh(e){return!!e&&!!e[Lh]}function Vh(e){return e?Wh(e)||Array.isArray(e)||!!e[Ih]||!!e.constructor?.[Ih]||Xh(e)||Zh(e):!1}var Hh=Object.prototype.constructor.toString(),Uh=new WeakMap;function Wh(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=Uh.get(n);return r===void 0&&(r=Function.toString.call(n),Uh.set(n,r)),r===Hh}function Gh(e,t,n=!0){Kh(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 Kh(e){let t=e[Lh];return t?t.type_:Array.isArray(e)?1:Xh(e)?2:Zh(e)?3:0}function qh(e,t){return Kh(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Jh(e,t,n){let r=Kh(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Yh(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function Xh(e){return e instanceof Map}function Zh(e){return e instanceof Set}function Qh(e){return e.copy_||e.base_}function $h(e,t){if(Xh(e))return new Map(e);if(Zh(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let n=Wh(e);if(t===!0||t===`class_only`&&!n){let t=Object.getOwnPropertyDescriptors(e);delete t[Lh];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(zh(e),t)}else{let t=zh(e);if(t!==null&&n)return{...e};let r=Object.create(t);return Object.assign(r,e)}}function eg(e,t=!1){return rg(e)||Bh(e)||!Vh(e)?e:(Kh(e)>1&&Object.defineProperties(e,{set:ng,add:ng,clear:ng,delete:ng}),Object.freeze(e),t&&Object.values(e).forEach(e=>eg(e,!0)),e)}function tg(){Rh(2)}var ng={value:tg};function rg(e){return typeof e!=`object`||!e||Object.isFrozen(e)}var ig={};function ag(e){let t=ig[e];return t||Rh(0,e),t}var og;function sg(){return og}function cg(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function lg(e,t){t&&(ag(`Patches`),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ug(e){dg(e),e.drafts_.forEach(pg),e.drafts_=null}function dg(e){e===og&&(og=e.parent_)}function fg(e){return og=cg(og,e)}function pg(e){let t=e[Lh];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function mg(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];return e!==void 0&&e!==n?(n[Lh].modified_&&(ug(t),Rh(4)),Vh(e)&&(e=hg(t,e),t.parent_||_g(t,e)),t.patches_&&ag(`Patches`).generateReplacementPatches_(n[Lh].base_,e,t.patches_,t.inversePatches_)):e=hg(t,n,[]),ug(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Fh?void 0:e}function hg(e,t,n){if(rg(t))return t;let r=e.immer_.shouldUseStrictIteration(),i=t[Lh];if(!i)return Gh(t,(r,a)=>gg(e,i,t,r,a,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return _g(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),Gh(a,(r,a)=>gg(e,i,t,r,a,n,o),r),_g(e,t,!1),n&&e.patches_&&ag(`Patches`).generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function gg(e,t,n,r,i,a,o){if(i==null||typeof i!=`object`&&!o)return;let s=rg(i);if(!(s&&!o)){if(Bh(i)){let o=hg(e,i,a&&t&&t.type_!==3&&!qh(t.assigned_,r)?a.concat(r):void 0);if(Jh(n,r,o),Bh(o))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(Vh(i)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===i&&s)return;hg(e,i),(!t||!t.scope_.parent_)&&typeof r!=`symbol`&&(Xh(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&_g(e,i)}}}function _g(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&eg(t,n)}function vg(e,t){let n=Array.isArray(e),r={type_:+!!n,scope_:t?t.scope_:sg(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},i=r,a=yg;n&&(i=[r],a=bg);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}var yg={get(e,t){if(t===Lh)return e;let n=Qh(e);if(!qh(n,t))return Sg(e,n,t);let r=n[t];return e.finalized_||!Vh(r)?r:r===xg(e.base_,t)?(Tg(e),e.copy_[t]=Dg(r,e)):r},has(e,t){return t in Qh(e)},ownKeys(e){return Reflect.ownKeys(Qh(e))},set(e,t,n){let r=Cg(Qh(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=xg(Qh(e),t),i=r?.[Lh];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Yh(n,r)&&(n!==void 0||qh(e.base_,t)))return!0;Tg(e),wg(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 xg(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Tg(e),wg(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=Qh(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty(){Rh(11)},getPrototypeOf(e){return zh(e.base_)},setPrototypeOf(){Rh(12)}},bg={};Gh(yg,(e,t)=>{bg[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),bg.deleteProperty=function(e,t){return bg.set.call(this,e,t,void 0)},bg.set=function(e,t,n){return yg.set.call(this,e[0],t,n,e[0])};function xg(e,t){let n=e[Lh];return(n?Qh(n):e)[t]}function Sg(e,t,n){let r=Cg(t,n);return r?`value`in r?r.value:r.get?.call(e.draft_):void 0}function Cg(e,t){if(!(t in e))return;let n=zh(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=zh(n)}}function wg(e){e.modified_||(e.modified_=!0,e.parent_&&wg(e.parent_))}function Tg(e){e.copy_||=$h(e.base_,e.scope_.immer_.useStrictShallowCopy_)}var Eg=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`&&Rh(6),n!==void 0&&typeof n!=`function`&&Rh(7);let r;if(Vh(e)){let i=fg(this),a=Dg(e,void 0),o=!0;try{r=t(a),o=!1}finally{o?ug(i):dg(i)}return lg(i,n),mg(r,i)}else if(!e||typeof e!=`object`){if(r=t(e),r===void 0&&(r=e),r===Fh&&(r=void 0),this.autoFreeze_&&eg(r,!0),n){let t=[],i=[];ag(`Patches`).generateReplacementPatches_(e,r,t,i),n(t,i)}return r}else Rh(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){Vh(e)||Rh(8),Bh(e)&&(e=Og(e));let t=fg(this),n=Dg(e,void 0);return n[Lh].isManual_=!0,dg(t),n}finishDraft(e,t){let n=e&&e[Lh];(!n||!n.isManual_)&&Rh(9);let{scope_:r}=n;return lg(r,t),mg(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=ag(`Patches`).applyPatches_;return Bh(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Dg(e,t){let n=Xh(e)?ag(`MapSet`).proxyMap_(e,t):Zh(e)?ag(`MapSet`).proxySet_(e,t):vg(e,t);return(t?t.scope_:sg()).drafts_.push(n),n}function Og(e){return Bh(e)||Rh(10,e),kg(e)}function kg(e){if(!Vh(e)||rg(e))return e;let t=e[Lh],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=$h(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=$h(e,!0);return Gh(n,(e,t)=>{Jh(n,e,kg(t))},r),t&&(t.finalized_=!1),n}new Eg().produce;function J(e){return e}var Ag=pp({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(J(t.payload))},prepare:K()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Bf(e).payload.indexOf(J(n));i>-1&&(e.payload[i]=J(r))},prepare:K()},removeLegendPayload:{reducer(e,t){var n=Bf(e).payload.indexOf(J(t.payload));n>-1&&e.payload.splice(n,1)},prepare:K()}}}),{setLegendSize:jg,setLegendSettings:Mg,addLegendPayload:Ng,replaceLegendPayload:Pg,removeLegendPayload:Fg}=Ag.actions,Ig=Ag.reducer,Lg=n((e=>{var t=i();t.useSyncExternalStore,t.useRef,t.useEffect,t.useMemo,t.useDebugValue}));n(((e,t)=>{t.exports=Lg()}))();function Rg(e){e()}function zg(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Rg(()=>{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 Bg={notify(){},get:()=>[]};function Vg(e,t){let n,r=Bg,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=zg())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Bg)}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 Hg=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Ug=typeof navigator<`u`&&navigator.product===`ReactNative`,Wg=Hg||Ug?B.useLayoutEffect:B.useEffect;function Gg(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function Kg(e,t){if(Gg(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])||!Gg(e[n[r]],t[n[r]]))return!1;return!0}var qg=Symbol.for(`react-redux-context`),Jg=typeof globalThis<`u`?globalThis:{};function Yg(){if(!B.createContext)return{};let e=Jg[qg]??=new Map,t=e.get(B.createContext);return t||(t=B.createContext(null),e.set(B.createContext,t)),t}var Xg=Yg();function Zg(e){let{children:t,context:n,serverState:r,store:i}=e,a=B.useMemo(()=>{let e=Vg(i);return{store:i,subscription:e,getServerState:r?()=>r:void 0}},[i,r]),o=B.useMemo(()=>i.getState(),[i]);Wg(()=>{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||Xg;return B.createElement(s.Provider,{value:a},t)}var Qg=Zg,$g=new Set([`axisLine`,`tickLine`,`activeBar`,`activeDot`,`activeLabel`,`activeShape`,`allowEscapeViewBox`,`background`,`cursor`,`dot`,`label`,`line`,`margin`,`padding`,`position`,`shape`,`style`,`tick`,`wrapperStyle`,`radius`,`throttledEvents`]);function e_(e,t){return e==null&&t==null?!0:typeof e==`number`&&typeof t==`number`?e===t||e!==e&&t!==t:e===t}function t_(e,t){for(var n of new Set([...Object.keys(e),...Object.keys(t)]))if($g.has(n)){if(e[n]==null&&t[n]==null)continue;if(!Kg(e[n],t[n]))return!1}else if(!e_(e[n],t[n]))return!1;return!0}function n_(){return n_=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},n_.apply(null,arguments)}function r_(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 i_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?r_(Object(n),!0).forEach(function(t){a_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a_(e,t,n){return(t=o_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o_(e){var t=s_(e,`string`);return typeof t==`symbol`?t:t+``}function s_(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){return Array.isArray(e)&&vl(e[0])&&vl(e[1])?e.join(` ~ `):e}var l_={separator:` : `,contentStyle:{margin:0,padding:10,backgroundColor:`#fff`,border:`1px solid #ccc`,whiteSpace:`nowrap`},itemStyle:{display:`block`,paddingTop:4,paddingBottom:4,color:`#000`},labelStyle:{},accessibilityLayer:!1};function u_(e,t){return t==null?e:(0,ad.default)(e,t)}var d_=e=>{var{separator:t=l_.separator,contentStyle:n,itemStyle:r,labelStyle:i=l_.labelStyle,payload:a,formatter:o,itemSorter:s,wrapperClassName:c,labelClassName:l,label:u,labelFormatter:d,accessibilityLayer:f=l_.accessibilityLayer}=e,p=()=>{if(a&&a.length){var e={padding:0,margin:0},n=u_(a,s).map((e,n)=>{if(e.type===`none`)return null;var i=e.formatter||o||c_,{value:s,name:c}=e,l=s,u=c;if(i){var d=i(s,c,e,n,a);if(Array.isArray(d))[l,u]=d;else if(d!=null)l=d;else return null}var f=i_(i_({},l_.itemStyle),{},{color:e.color||l_.itemStyle.color},r);return B.createElement(`li`,{className:`recharts-tooltip-item`,key:`tooltip-item-${n}`,style:f},vl(u)?B.createElement(`span`,{className:`recharts-tooltip-item-name`},u):null,vl(u)?B.createElement(`span`,{className:`recharts-tooltip-item-separator`},t):null,B.createElement(`span`,{className:`recharts-tooltip-item-value`},l),B.createElement(`span`,{className:`recharts-tooltip-item-unit`},e.unit||``))});return B.createElement(`ul`,{className:`recharts-tooltip-item-list`,style:e},n)}return null},m=i_(i_({},l_.contentStyle),n),h=i_({margin:0},i),g=!Tl(u),_=g?u:``,v=hs(`recharts-default-tooltip`,c),y=hs(`recharts-tooltip-label`,l);g&&d&&a!=null&&(_=d(u,a));var b=f?{role:`status`,"aria-live":`assertive`}:{};return B.createElement(`div`,n_({className:v,style:m},b),B.createElement(`p`,{className:y,style:h},B.isValidElement(_)?_:`${_}`),p())},f_=`recharts-tooltip-wrapper`,p_={visibility:`hidden`};function m_(e){var{coordinate:t,translateX:n,translateY:r}=e;return hs(f_,{[`${f_}-right`]:U(n)&&t&&U(t.x)&&n>=t.x,[`${f_}-left`]:U(n)&&t&&U(t.x)&&n<t.x,[`${f_}-bottom`]:U(r)&&t&&U(t.y)&&r>=t.y,[`${f_}-top`]:U(r)&&t&&U(t.y)&&r<t.y})}function h_(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offset:i,position:a,reverseDirection:o,tooltipDimension:s,viewBox:c,viewBoxDimension:l}=e;if(a&&U(a[r]))return a[r];var u=n[r]-s-(i>0?i:0),d=n[r]+i;if(t[r])return o[r]?u:d;var f=c[r];return f==null?0:o[r]?Math.max(u<f?d:u,f):l==null?0:d+s>f+l?Math.max(u,f):Math.max(d,f)}function g_(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?`translate3d(${t}px, ${n}px, 0)`:`translate(${t}px, ${n}px)`}}function __(e){var{allowEscapeViewBox:t,coordinate:n,offsetTop:r,offsetLeft:i,position:a,reverseDirection:o,tooltipBox:s,useTranslate3d:c,viewBox:l}=e,u,d,f;return s.height>0&&s.width>0&&n?(d=h_({allowEscapeViewBox:t,coordinate:n,key:`x`,offset:i,position:a,reverseDirection:o,tooltipDimension:s.width,viewBox:l,viewBoxDimension:l.width}),f=h_({allowEscapeViewBox:t,coordinate:n,key:`y`,offset:r,position:a,reverseDirection:o,tooltipDimension:s.height,viewBox:l,viewBoxDimension:l.height}),u=g_({translateX:d,translateY:f,useTranslate3d:c})):u=p_,{cssProperties:u,cssClasses:m_({translateX:d,translateY:f,coordinate:n})}}var v_={devToolsEnabled:!0,isSsr:!(typeof window<`u`&&window.document&&window.document.createElement&&window.setTimeout)};function y_(){var[e,t]=(0,B.useState)(()=>v_.isSsr||!window.matchMedia?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches);return(0,B.useEffect)(()=>{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}function b_(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 x_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?b_(Object(n),!0).forEach(function(t){S_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S_(e,t,n){return(t=C_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C_(e){var t=w_(e,`string`);return typeof t==`symbol`?t:t+``}function w_(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 T_(e){if(!(e.prefersReducedMotion&&e.isAnimationActive===`auto`)&&e.isAnimationActive&&e.active)return`transform ${e.animationDuration}ms ${e.animationEasing}`}function E_(e){var t=y_(),[n,r]=B.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));B.useEffect(()=>{var t=t=>{t.key===`Escape`&&r({dismissed:!0,dismissedAtCoordinate:{x:e.coordinate?.x??0,y:e.coordinate?.y??0}})};return document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`keydown`,t)}},[e.coordinate?.x,e.coordinate?.y]),n.dismissed&&((e.coordinate?.x??0)!==n.dismissedAtCoordinate.x||(e.coordinate?.y??0)!==n.dismissedAtCoordinate.y)&&r(x_(x_({},n),{},{dismissed:!1}));var{cssClasses:i,cssProperties:a}=__({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset==`number`?e.offset:e.offset.x,offsetTop:typeof e.offset==`number`?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),o=x_(x_({},e.hasPortalFromProps?{}:x_(x_({transition:T_({prefersReducedMotion:t,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},a),{},{pointerEvents:`none`,position:`absolute`,top:0,left:0})),{},{visibility:!n.dismissed&&e.active&&e.hasPayload?`visible`:`hidden`},e.wrapperStyle);return B.createElement(`div`,{xmlns:`http://www.w3.org/1999/xhtml`,tabIndex:-1,className:i,style:o,ref:e.innerRef},e.children)}var D_=B.memo(E_),O_=()=>W(e=>e.rootProps.accessibilityLayer)??!0;function k_(){return k_=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},k_.apply(null,arguments)}function A_(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 j_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?A_(Object(n),!0).forEach(function(t){M_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function M_(e,t,n){return(t=N_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N_(e){var t=P_(e,`string`);return typeof t==`symbol`?t:t+``}function P_(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 F_={curveBasisClosed:Ac,curveBasisOpen:Mc,curveBasis:Oc,curveBumpX:ic,curveBumpY:ac,curveLinearClosed:Pc,curveLinear:Qs,curveMonotoneX:Hc,curveMonotoneY:Uc,curveNatural:Kc,curveStep:Jc,curveStepAfter:Xc,curveStepBefore:Yc},I_=e=>q(e.x)&&q(e.y),L_=e=>e.base!=null&&I_(e.base)&&I_(e),R_=e=>e.x,z_=e=>e.y,B_=(e,t)=>{if(typeof e==`function`)return e;var n=`curve${El(e)}`;if((n===`curveMonotone`||n===`curveBump`)&&t){var r=F_[`${n}${t===`vertical`?`Y`:`X`}`];if(r)return r}return F_[n]||Qs},V_={connectNulls:!1,type:`linear`},H_=e=>{var{type:t=V_.type,points:n=[],baseLine:r,layout:i,connectNulls:a=V_.connectNulls}=e,o=B_(t,i),s=a?n.filter(I_):n;if(Array.isArray(r)){var c,l=n.map((e,t)=>j_(j_({},e),{},{base:r[t]}));return c=i===`vertical`?nc().y(z_).x1(R_).x0(e=>e.base.x):nc().x(R_).y1(z_).y0(e=>e.base.y),c.defined(L_).curve(o)(a?l.filter(L_):l)}return(i===`vertical`&&U(r)?nc().y(z_).x1(R_).x0(r):U(r)?nc().x(R_).y1(z_).y0(r):tc().x(R_).y(z_)).defined(I_).curve(o)(s)},U_=e=>{var{className:t,points:n,path:r,pathRef:i}=e,a=jh();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?H_(o):r;return B.createElement(`path`,k_({},Ss(e),Gl(e),{className:hs(`recharts-curve`,t),d:s===null?void 0:s,ref:i}))},W_=[`x`,`y`,`top`,`left`,`width`,`height`,`className`];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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G_.apply(null,arguments)}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 q_(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){J_(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 J_(e,t,n){return(t=Y_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y_(e){var t=X_(e,`string`);return typeof t==`symbol`?t:t+``}function X_(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 Z_(e,t){if(e==null)return{};var n,r,i=Q_(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 Q_(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 $_=(e,t,n,r,i,a)=>`M${e},${i}v${r}M${a},${t}h${n}`,ev=e=>{var{x:t=0,y:n=0,top:r=0,left:i=0,width:a=0,height:o=0,className:s}=e,c=Z_(e,W_),l=q_({x:t,y:n,top:r,left:i,width:a,height:o},c);return!U(t)||!U(n)||!U(a)||!U(o)||!U(r)||!U(i)?null:B.createElement(`path`,G_({},ws(l),{className:hs(`recharts-cross`,s),d:$_(t,n,a,o,r,i)}))};function tv(e,t,n,r){var i=r/2;return{stroke:`none`,fill:`#ccc`,x:e===`horizontal`?t.x-i:n.left+.5,y:e===`horizontal`?n.top+.5:t.y-i,width:e===`horizontal`?r:n.width-1,height:e===`horizontal`?n.height-1:r}}function nv(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 rv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?nv(Object(n),!0).forEach(function(t){iv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function iv(e,t,n){return(t=av(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function av(e){var t=ov(e,`string`);return typeof t==`symbol`?t:t+``}function ov(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 sv=e=>e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`),cv=(e,t,n)=>e.map(e=>`${sv(e)} ${t}ms ${n}`).join(`,`),lv=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((e,t)=>e.filter(e=>t.includes(e))),uv=(e,t)=>Object.keys(t).reduce((n,r)=>rv(rv({},n),{},{[r]:e(r,t[r])}),{});function dv(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 fv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dv(Object(n),!0).forEach(function(t){pv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pv(e,t,n){return(t=mv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mv(e){var t=hv(e,`string`);return typeof t==`symbol`?t:t+``}function hv(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 gv=(e,t,n)=>e+(t-e)*n,_v=e=>{var{from:t,to:n}=e;return t!==n},vv=(e,t,n)=>{var r=uv((t,n)=>{if(_v(n)){var[r,i]=e(n.from,n.to,n.velocity);return fv(fv({},n),{},{from:r,velocity:i})}return n},t);return n<1?uv((e,t)=>_v(t)&&r[e]!=null?fv(fv({},t),{},{velocity:gv(t.velocity,r[e].velocity,n),from:gv(t.from,r[e].from,n)}):t,t):vv(e,r,n-1)};function yv(e,t,n,r,i,a){var o,s=r.reduce((n,r)=>fv(fv({},n),{},{[r]:{from:e[r],velocity:0,to:t[r]}}),{}),c=()=>uv((e,t)=>t.from,s),l=()=>!Object.values(s).filter(_v).length,u=null,d=r=>{o||=r;var f=(r-o)/n.dt;s=vv(n,s,f),i(fv(fv(fv({},e),t),c())),o=r,l()||(u=a.setTimeout(d))};return()=>(u=a.setTimeout(d),()=>{var e;(e=u)==null||e()})}function bv(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:fv(fv({},n),{},{[r]:[i,a]})},{}),l,u=i=>{l||=i;var d=(i-l)/r,f=uv((e,t)=>gv(...t,n(d)),c);if(a(fv(fv(fv({},e),t),f)),d<1)s=o.setTimeout(u);else{var p=uv((e,t)=>gv(...t,n(1)),c);a(fv(fv(fv({},e),t),p))}};return()=>(s=o.setTimeout(u),()=>{var e;(e=s)==null||e()})}var xv=(e,t,n,r,i,a)=>{var o=lv(e,t);return n==null?()=>(i(fv(fv({},e),t)),()=>{}):n.isStepper===!0?yv(e,t,n,o,i,a):bv(e,t,n,r,o,i,a)},Sv=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],Cv=(e,t)=>e.map((e,n)=>e*t**n).reduce((e,t)=>e+t),wv=(e,t)=>n=>Cv(Sv(e,t),n),Tv=(e,t)=>n=>Cv([...Sv(e,t).map((e,t)=>e*t).slice(1),0],n),Ev=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]]},Dv=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=Ev(e[0]);if(t)return t}return e.length===4?e:[0,0,1,1]},Ov=(e,t,n,r)=>{var i=wv(e,n),a=wv(t,r),o=Tv(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},kv=function(){return Ov(...Dv(...arguments))},Av=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},jv=e=>{if(typeof e==`string`)switch(e){case`ease`:case`ease-in-out`:case`ease-out`:case`ease-in`:case`linear`:return kv(e);case`spring`:return Av();default:if(e.split(`(`)[0]===`cubic-bezier`)return kv(e)}return typeof e==`function`?e:null};function Mv(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 Nv=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 Pv(){return Mv(new Nv)}var Fv=(0,B.createContext)(Pv);function Iv(e,t){var n=(0,B.useContext)(Fv);return(0,B.useMemo)(()=>t??n(e),[e,t,n])}var Lv={begin:0,duration:1e3,easing:`ease`,isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Rv={t:0},zv={t:1};function Bv(e){var t=$l(e,Lv),{isActive:n,canBegin:r,duration:i,easing:a,begin:o,onAnimationEnd:s,onAnimationStart:c,children:l}=t,u=y_(),d=n===`auto`?!v_.isSsr&&!u:n,f=Iv(t.animationId,t.animationManager),[p,m]=(0,B.useState)(d?Rv:zv),h=(0,B.useRef)(null);return(0,B.useEffect)(()=>{d||m(zv)},[d]),(0,B.useEffect)(()=>{if(!d||!r)return Ol;var e=xv(Rv,zv,jv(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 Vv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`animation-`,n=(0,B.useRef)(bl(t)),r=(0,B.useRef)(e);return r.current!==e&&(n.current=bl(t),r.current=e),n.current}var Hv=[`radius`],Uv=[`radius`],Wv,Gv,Kv,qv,Jv,Yv,Xv,Zv,Qv,$v;function ey(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 ty(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ey(Object(n),!0).forEach(function(t){ny(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ey(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ny(e,t,n){return(t=ry(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ry(e){var t=iy(e,`string`);return typeof t==`symbol`?t:t+``}function iy(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 ay(){return ay=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},ay.apply(null,arguments)}function oy(e,t){if(e==null)return{};var n,r,i=sy(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 sy(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 cy(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ly=(e,t,n,r,i)=>{var a=pl(n),o=pl(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=ml(Wv||=cy([`M`,`,`,``]),e,t+c*f[0]),f[0]>0&&(d+=ml(Gv||=cy([`A `,`,`,`,0,0,`,`,`,`,`,``]),f[0],f[0],u,e+l*f[0],t)),d+=ml(Kv||=cy([`L `,`,`,``]),e+n-l*f[1],t),f[1]>0&&(d+=ml(qv||=cy([`A `,`,`,`,0,0,`,`,
|
|
8
|
+
`,`,`,``]),f[1],f[1],u,e+n,t+c*f[1])),d+=ml(Jv||=cy([`L `,`,`,``]),e+n,t+r-c*f[2]),f[2]>0&&(d+=ml(Yv||=cy([`A `,`,`,`,0,0,`,`,
|
|
9
|
+
`,`,`,``]),f[2],f[2],u,e+n-l*f[2],t+r)),d+=ml(Xv||=cy([`L `,`,`,``]),e+l*f[3],t+r),f[3]>0&&(d+=ml(Zv||=cy([`A `,`,`,`,0,0,`,`,
|
|
10
|
+
`,`,`,``]),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=ml(Qv||=cy(`M .,.
|
|
11
|
+
A .,.,0,0,.,.,.
|
|
12
|
+
L .,.
|
|
13
|
+
A .,.,0,0,.,.,.
|
|
14
|
+
L .,.
|
|
15
|
+
A .,.,0,0,.,.,.
|
|
16
|
+
L .,.
|
|
17
|
+
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=ml($v||=cy([`M `,`,`,` h `,` v `,` h `,` Z`]),e,t,n,r,-n);return d},uy={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},dy=e=>{var t=$l(e,uy),n=(0,B.useRef)(null),[r,i]=(0,B.useState)(-1);(0,B.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,B.useRef)(s),_=(0,B.useRef)(c),v=(0,B.useRef)(a),y=(0,B.useRef)(o),b=Vv((0,B.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=hs(`recharts-rectangle`,u);if(!h){var S=ws(t),{radius:C}=S,w=oy(S,Hv);return B.createElement(`path`,ay({},w,{x:pl(a),y:pl(o),width:pl(s),height:pl(c),radius:typeof l==`number`?l:void 0,className:x,d:ly(a,o,s,c,l)}))}var T=g.current,E=_.current,D=v.current,O=y.current,k=`0px ${r===-1?1:r}px`,A=`${r}px ${r}px`,j=cv([`strokeDasharray`],f,typeof d==`string`?d:uy.animationEasing);return B.createElement(Bv,{animationId:b,key:b,canBegin:r>0,duration:f,easing:d,isActive:h,begin:p},e=>{var r=Cl(T,s,e),i=Cl(E,c,e),u=Cl(D,a,e),d=Cl(O,o,e);n.current&&(g.current=r,_.current=i,v.current=u,y.current=d);var f=m?e>0?{transition:j,strokeDasharray:A}:{strokeDasharray:k}:{strokeDasharray:A},p=ws(t),{radius:h}=p,b=oy(p,Uv);return B.createElement(`path`,ay({},b,{radius:typeof l==`number`?l:void 0,className:x,d:ly(u,d,r,i,l),ref:n,style:ty(ty({},f),t.style)}))})};function fy(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 py(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?fy(Object(n),!0).forEach(function(t){my(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function my(e,t,n){return(t=hy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hy(e){var t=gy(e,`string`);return typeof t==`symbol`?t:t+``}function gy(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 _y=Math.PI/180,vy=e=>e*180/Math.PI,yy=(e,t,n,r)=>({x:e+Math.cos(-_y*r)*n,y:t+Math.sin(-_y*r)*n}),by=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},xy=(e,t)=>{var{x:n,y:r}=e,{x:i,y:a}=t;return Math.sqrt((n-i)**2+(r-a)**2)},Sy=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:a}=t,o=xy({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:vy(c),angleInRadian:c}},Cy=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}},wy=(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},Ty=(e,t)=>{var{relativeX:n,relativeY:r}=e,{radius:i,angle:a}=Sy({x:n,y:r},t),{innerRadius:o,outerRadius:s}=t;if(i<o||i>s||i===0)return null;var{startAngle:c,endAngle:l}=Cy(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?py(py({},t),{},{radius:i,angle:wy(u,t)}):null};function Ey(e){var{cx:t,cy:n,radius:r,startAngle:i,endAngle:a}=e;return{points:[yy(t,n,r,i),yy(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}var Dy,Oy,ky,Ay,jy,My,Ny;function Py(){return Py=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},Py.apply(null,arguments)}function Fy(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Iy=(e,t)=>hl(t-e)*Math.min(Math.abs(t-e),359.999),Ly=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)/_y,d=c?i:i+a*u,f=yy(t,n,l,d),p=yy(t,n,r,d),m=c?i-a*u:i;return{center:f,circleTangency:p,lineTangency:yy(t,n,l*Math.cos(u*_y),m),theta:u}},Ry=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:a,endAngle:o}=e,s=Iy(a,o),c=a+s,l=yy(t,n,i,a),u=yy(t,n,i,c),d=ml(Dy||=Fy([`M `,`,`,`
|
|
18
|
+
A `,`,`,`,0,
|
|
19
|
+
`,`,`,`,
|
|
20
|
+
`,`,`,`
|
|
21
|
+
`]),l.x,l.y,i,i,+(Math.abs(s)>180),+(a>c),u.x,u.y);if(r>0){var f=yy(t,n,r,a),p=yy(t,n,r,c);d+=ml(Oy||=Fy([`L `,`,`,`
|
|
22
|
+
A `,`,`,`,0,
|
|
23
|
+
`,`,`,`,
|
|
24
|
+
`,`,`,` Z`]),p.x,p.y,r,r,+(Math.abs(s)>180),+(a<=c),f.x,f.y)}else d+=ml(ky||=Fy([`L `,`,`,` Z`]),t,n);return d},zy=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:a,forceCornerRadius:o,cornerIsExternal:s,startAngle:c,endAngle:l}=e,u=hl(l-c),{circleTangency:d,lineTangency:f,theta:p}=Ly({cx:t,cy:n,radius:i,angle:c,sign:u,cornerRadius:a,cornerIsExternal:s}),{circleTangency:m,lineTangency:h,theta:g}=Ly({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?ml(Ay||=Fy([`M `,`,`,`
|
|
25
|
+
a`,`,`,`,0,0,1,`,`,0
|
|
26
|
+
a`,`,`,`,0,0,1,`,`,0
|
|
27
|
+
`]),f.x,f.y,a,a,a*2,a,a,-a*2):Ry({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:l});var v=ml(jy||=Fy([`M `,`,`,`
|
|
28
|
+
A`,`,`,`,0,0,`,`,`,`,`,`
|
|
29
|
+
A`,`,`,`,0,`,`,`,`,`,`,`,`
|
|
30
|
+
A`,`,`,`,0,0,`,`,`,`,`,`
|
|
31
|
+
`]),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}=Ly({cx:t,cy:n,radius:r,angle:c,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),{circleTangency:S,lineTangency:C,theta:w}=Ly({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+=ml(My||=Fy([`L`,`,`,`
|
|
32
|
+
A`,`,`,`,0,0,`,`,`,`,`,`
|
|
33
|
+
A`,`,`,`,0,`,`,`,`,`,`,`,`
|
|
34
|
+
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+=ml(Ny||=Fy([`L`,`,`,`Z`]),t,n);return v},By={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Vy=e=>{var t=$l(e,By),{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=hs(`recharts-sector`,d),p=a-i,m=xl(o,p,0,!0),h=m>0&&Math.abs(l-u)<360?zy({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,p/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:l,endAngle:u}):Ry({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:l,endAngle:u});return B.createElement(`path`,Py({},ws(t),{className:f,d:h}))};function Hy(e,t,n){if(e===`horizontal`)return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e===`vertical`)return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(Wl(t)){if(e===`centric`){var{cx:r,cy:i,innerRadius:a,outerRadius:o,angle:s}=t,c=yy(r,i,a,s),l=yy(r,i,o,s);return[{x:c.x,y:c.y},{x:l.x,y:l.y}]}return Ey(t)}}var Uy=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=$u();function n(e){return t.isSymbol(e)?NaN:Number(e)}e.toNumber=n})),Wy=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Uy();function n(e){return e?(e=t.toNumber(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}e.toFinite=n})),Gy=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=rd(),n=Wy();function r(e,r,i){i&&typeof i!=`number`&&t.isIterateeCall(e,r,i)&&(r=i=void 0),e=n.toFinite(e),r===void 0?(r=e,e=0):r=n.toFinite(r),i=i===void 0?e<r?1:-1:n.toFinite(i);let a=Math.max(Math.ceil((r-e)/(i||1)),0),o=Array(a);for(let t=0;t<a;t++)o[t]=e,e+=i;return o}e.range=r})),Ky=t(n(((e,t)=>{t.exports=Gy().range}))()),qy=e=>e.chartData,Jy=G([qy],e=>{var t=e.chartData==null?0:e.chartData.length-1;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Yy=(e,t,n,r)=>r?Jy(e):qy(e);function Xy(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(q(t)&&q(n))return!0}return!1}function Zy(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Qy(e,t){if(t&&typeof e!=`function`&&Array.isArray(e)&&e.length===2){var[n,r]=e,i,a;if(q(n))i=n;else if(typeof n==`function`)return;if(q(r))a=r;else if(typeof r==`function`)return;var o=[i,a];if(Xy(o))return o}}function $y(e,t,n){if(!(!n&&t==null)){if(typeof e==`function`&&t!=null)try{var r=e(t,n);if(Xy(r))return Zy(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(U(i))o=i;else if(typeof i==`function`)try{t!=null&&(o=i(t?.[0]))}catch{}else if(typeof i==`string`&&Sm.test(i)){var c=Sm.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(U(a))s=a;else if(typeof a==`function`)try{t!=null&&(s=a(t?.[1]))}catch{}else if(typeof a==`string`&&Cm.test(a)){var u=Cm.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(Xy(f))return t==null?f:Zy(f,t,n)}}}var Y=t(n(((e,t)=>{(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;)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>0;--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 eb(e){return e===0?1:Math.floor(new Y.default(e).abs().log(10).toNumber())+1}function tb(e,t,n){for(var r=new Y.default(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var nb=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},rb=(e,t,n)=>{if(e.lte(0))return new Y.default(0);var r=eb(e.toNumber()),i=new Y.default(10).pow(r),a=e.div(i),o=r===1?.1:.05,s=new Y.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);return t?new Y.default(s.toNumber()):new Y.default(Math.ceil(s.toNumber()))},ib=(e,t,n)=>{if(e.lte(0))return new Y.default(0);var r=[1,2,2.5,5],i=e.toNumber(),a=Math.floor(new Y.default(i).abs().log(10).toNumber()),o=new Y.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 Y.default(10).pow(l))}var u=new Y.default(r[c]??1).mul(o);return t?u:new Y.default(Math.ceil(u.toNumber()))},ab=(e,t,n)=>{var r=new Y.default(1),i=new Y.default(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new Y.default(10).pow(eb(e)-1),i=new Y.default(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new Y.default(Math.floor(e)))}else e===0?i=new Y.default(Math.floor((t-1)/2)):n||(i=new Y.default(Math.floor(e)));for(var o=Math.floor((t-1)/2),s=[],c=0;c<t;c++)s.push(i.add(new Y.default(c-o).mul(r)).toNumber());return s},ob=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]:rb;if(!Number.isFinite((t-e)/(n-1)))return{step:new Y.default(0),tickMin:new Y.default(0),tickMax:new Y.default(0)};var o=a(new Y.default(t).sub(e).div(n-1),r,i),s;e<=0&&t>=0?s=new Y.default(0):(s=new Y.default(e).add(t).div(2),s=s.sub(new Y.default(s).mod(o)));var c=Math.ceil(s.sub(e).div(o).toNumber()),l=Math.ceil(new Y.default(t).sub(s).div(o).toNumber()),u=c+l+1;return u>n?ob(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 Y.default(c).mul(o)),tickMax:s.add(new Y.default(l).mul(o))})},sb=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]=nb([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 ab(s,r,i);var{step:u,tickMin:d,tickMax:f}=ob(s,c,o,i,0,a===`snap125`?ib:rb),p=tb(d,f.add(new Y.default(.1).mul(u)),u);return t>n?p.reverse():p},cb=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]=nb([n,r]);if(o===-1/0||s===1/0)return[n,r];if(o===s)return[o];var c=a===`snap125`?ib:rb,l=Math.max(t,2),u=c(new Y.default(s).sub(o).div(l-1),i,0),d=[...tb(new Y.default(o),new Y.default(s),u),s];return i===!1&&(d=d.map(e=>Math.round(e))),n>r?d.reverse():d},lb=e=>e.rootProps.barCategoryGap,ub=e=>e.rootProps.stackOffset,db=e=>e.rootProps.reverseStackOrder,fb=e=>e.options.chartName,pb=e=>e.rootProps.syncId,mb=e=>e.rootProps.syncMethod,hb=e=>e.options.eventEmitter,gb={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},_b={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:gb.axis},vb={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:gb.axis},yb=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function bb(e,t,n){if(n!==`auto`)return n;if(e!=null)return gm(e,t)?`category`:`number`}function xb(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 Sb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?xb(Object(n),!0).forEach(function(t){Cb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cb(e,t,n){return(t=wb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wb(e){var t=Tb(e,`string`);return typeof t==`symbol`?t:t+``}function Tb(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 Eb={allowDataOverflow:_b.allowDataOverflow,allowDecimals:_b.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:_b.angleAxisId,includeHidden:!1,name:void 0,reversed:_b.reversed,scale:_b.scale,tick:_b.tick,tickCount:void 0,ticks:void 0,type:_b.type,unit:void 0,niceTicks:`auto`},Db={allowDataOverflow:vb.allowDataOverflow,allowDecimals:vb.allowDecimals,allowDuplicatedCategory:vb.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:vb.radiusAxisId,includeHidden:vb.includeHidden,name:void 0,reversed:vb.reversed,scale:vb.scale,tick:vb.tick,tickCount:vb.tickCount,ticks:void 0,type:vb.type,unit:void 0,niceTicks:`auto`},Ob=G([(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},Mh],(e,t)=>{if(e!=null)return e;var n=bb(t,`angleAxis`,Eb.type)??`category`;return Sb(Sb({},Eb),{},{type:n})}),kb=G([(e,t)=>e.polarAxis.radiusAxis[t],Mh],(e,t)=>{if(e!=null)return e;var n=bb(t,`radiusAxis`,Db.type)??`category`;return Sb(Sb({},Db),{},{type:n})}),Ab=e=>e.polarOptions,jb=G([km,Am,qm],by),Mb=G([Ab,jb],(e,t)=>{if(e!=null)return xl(e.innerRadius,t,0)}),Nb=G([Ab,jb],(e,t)=>{if(e!=null)return xl(e.outerRadius,t,t*.8)}),Pb=G([Ab],e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]});G([Ob,Pb],yb);var Fb=G([jb,Mb,Nb],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});G([kb,Fb],yb);var Ib=G([Ah,Ab,Mb,Nb,km,Am],(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:xl(o,i,i/2),cy:xl(s,a,a/2),innerRadius:n,outerRadius:r,startAngle:c,endAngle:l,clockWise:!1}}}),Lb=(e,t)=>t,Rb=(e,t,n)=>n;function zb(e){return e?.id}function Bb(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=zb(e);t.forEach((t,r)=>{var s=a==null||i?r:String(mm(t,a,null)),c=mm(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 Vb(e){return`stackId`in e&&e.stackId!=null&&e.dataKey!=null}var Hb=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Ub(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function Wb(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 Gb=e=>{var t=Ah(e);return t===`horizontal`?`xAxis`:t===`vertical`?`yAxis`:t===`centric`?`angleAxis`:`radiusAxis`},Kb=e=>e.tooltip.settings.axisId;function qb(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 Jb=(e,t)=>{if(t!=null)switch(e){case`linear`:if(!Xy(t)){for(var n,r,i=0;i<t.length;i++){var a=t[i];q(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 Yb(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Xb(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Zb(e){let t,n,r;e.length===2?(t=e===Yb||e===Xb?e:Qb,n=e,r=e):(t=Yb,n=(t,n)=>Yb(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 Qb(){return 0}function $b(e){return e===null?NaN:+e}function*ex(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 tx=Zb(Yb),nx=tx.right;tx.left,Zb($b).center;var rx=class extends Map{constructor(e,t=sx){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(ix(this,e))}has(e){return super.has(ix(this,e))}set(e,t){return super.set(ax(this,e),t)}delete(e){return super.delete(ox(this,e))}};function ix({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function ax({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function ox({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function sx(e){return typeof e==`object`&&e?e.valueOf():e}function cx(e=Yb){if(e===Yb)return lx;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 lx(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:+(e>t))}var ux=Math.sqrt(50),dx=Math.sqrt(10),fx=Math.sqrt(2);function px(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=ux?10:a>=dx?5:a>=fx?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?px(e,t,n*2):[s,c,l]}function mx(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?px(t,e,n):px(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 hx(e,t,n){return t=+t,e=+e,n=+n,px(e,t,n)[2]}function gx(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?hx(t,e,n):hx(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function _x(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 vx(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 yx(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?lx:cx(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));yx(e,t,u,d,i)}let a=e[t],o=n,s=r;for(bx(e,n,t),i(e[r],a)>0&&bx(e,n,r);o<s;){for(bx(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?bx(e,n,s):(++s,bx(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function bx(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function xx(e,t,n){if(e=Float64Array.from(ex(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return vx(e);if(t>=1)return _x(e);var r,i=(r-1)*t,a=Math.floor(i),o=_x(yx(e,a).subarray(0,a+1));return o+(vx(e.subarray(a+1))-o)*(i-a)}}function Sx(e,t,n=$b){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 Cx(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 wx(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Tx(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 Ex=Symbol(`implicit`);function Dx(){var e=new rx,t=[],n=[],r=Ex;function i(i){let a=e.get(i);if(a===void 0){if(r!==Ex)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 rx;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 Dx(t,n).unknown(r)},wx.apply(i,arguments),i}function Ox(){var e=Dx().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=Cx(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()},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 Ox(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},wx.apply(d(),arguments)}function kx(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return kx(t())},e}function Ax(){return kx(Ox.apply(null,arguments).paddingInner(1))}function jx(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Mx(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Nx(){}var Px=.7,Fx=1/Px,Ix=`\\s*([+-]?\\d+)\\s*`,Lx=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,Rx=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,zx=/^#([0-9a-f]{3,8})$/,Bx=RegExp(`^rgb\\(${Ix},${Ix},${Ix}\\)$`),Vx=RegExp(`^rgb\\(${Rx},${Rx},${Rx}\\)$`),Hx=RegExp(`^rgba\\(${Ix},${Ix},${Ix},${Lx}\\)$`),Ux=RegExp(`^rgba\\(${Rx},${Rx},${Rx},${Lx}\\)$`),Wx=RegExp(`^hsl\\(${Lx},${Rx},${Rx}\\)$`),Gx=RegExp(`^hsla\\(${Lx},${Rx},${Rx},${Lx}\\)$`),Kx={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};jx(Nx,Zx,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qx,formatHex:qx,formatHex8:Jx,formatHsl:Yx,formatRgb:Xx,toString:Xx});function qx(){return this.rgb().formatHex()}function Jx(){return this.rgb().formatHex8()}function Yx(){return uS(this).formatHsl()}function Xx(){return this.rgb().formatRgb()}function Zx(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=zx.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Qx(t):n===3?new nS(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?$x(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?$x(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=Bx.exec(e))?new nS(t[1],t[2],t[3],1):(t=Vx.exec(e))?new nS(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Hx.exec(e))?$x(t[1],t[2],t[3],t[4]):(t=Ux.exec(e))?$x(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Wx.exec(e))?lS(t[1],t[2]/100,t[3]/100,1):(t=Gx.exec(e))?lS(t[1],t[2]/100,t[3]/100,t[4]):Kx.hasOwnProperty(e)?Qx(Kx[e]):e===`transparent`?new nS(NaN,NaN,NaN,0):null}function Qx(e){return new nS(e>>16&255,e>>8&255,e&255,1)}function $x(e,t,n,r){return r<=0&&(e=t=n=NaN),new nS(e,t,n,r)}function eS(e){return e instanceof Nx||(e=Zx(e)),e?(e=e.rgb(),new nS(e.r,e.g,e.b,e.opacity)):new nS}function tS(e,t,n,r){return arguments.length===1?eS(e):new nS(e,t,n,r??1)}function nS(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}jx(nS,tS,Mx(Nx,{brighter(e){return e=e==null?Fx:Fx**+e,new nS(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Px:Px**+e,new nS(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nS(sS(this.r),sS(this.g),sS(this.b),oS(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:rS,formatHex:rS,formatHex8:iS,formatRgb:aS,toString:aS}));function rS(){return`#${cS(this.r)}${cS(this.g)}${cS(this.b)}`}function iS(){return`#${cS(this.r)}${cS(this.g)}${cS(this.b)}${cS((isNaN(this.opacity)?1:this.opacity)*255)}`}function aS(){let e=oS(this.opacity);return`${e===1?`rgb(`:`rgba(`}${sS(this.r)}, ${sS(this.g)}, ${sS(this.b)}${e===1?`)`:`, ${e})`}`}function oS(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function sS(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function cS(e){return e=sS(e),(e<16?`0`:``)+e.toString(16)}function lS(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fS(e,t,n,r)}function uS(e){if(e instanceof fS)return new fS(e.h,e.s,e.l,e.opacity);if(e instanceof Nx||(e=Zx(e)),!e)return new fS;if(e instanceof fS)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 fS(o,s,c,e.opacity)}function dS(e,t,n,r){return arguments.length===1?uS(e):new fS(e,t,n,r??1)}function fS(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}jx(fS,dS,Mx(Nx,{brighter(e){return e=e==null?Fx:Fx**+e,new fS(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Px:Px**+e,new fS(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 nS(hS(e>=240?e-240:e+120,i,r),hS(e,i,r),hS(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new fS(pS(this.h),mS(this.s),mS(this.l),oS(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=oS(this.opacity);return`${e===1?`hsl(`:`hsla(`}${pS(this.h)}, ${mS(this.s)*100}%, ${mS(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function pS(e){return e=(e||0)%360,e<0?e+360:e}function mS(e){return Math.max(0,Math.min(1,e||0))}function hS(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 gS=e=>()=>e;function _S(e,t){return function(n){return e+n*t}}function vS(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function yS(e){return(e=+e)==1?bS:function(t,n){return n-t?vS(t,n,e):gS(isNaN(t)?n:t)}}function bS(e,t){var n=t-e;return n?_S(e,n):gS(isNaN(e)?t:e)}var xS=(function e(t){var n=yS(t);function r(e,t){var r=n((e=tS(e)).r,(t=tS(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=bS(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 SS(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 CS(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function wS(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]=NS(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 TS(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function ES(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function DS(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]=NS(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var OS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,kS=new RegExp(OS.source,`g`);function AS(e){return function(){return e}}function jS(e){return function(t){return e(t)+``}}function MS(e,t){var n=OS.lastIndex=kS.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=OS.exec(e))&&(i=kS.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:ES(r,i)})),n=kS.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?jS(c[0].x):AS(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 NS(e,t){var n=typeof t,r;return t==null||n===`boolean`?gS(t):(n===`number`?ES:n===`string`?(r=Zx(t))?(t=r,xS):MS:t instanceof Zx?xS:t instanceof Date?TS:CS(t)?SS:Array.isArray(t)?wS:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?DS:ES)(e,t)}function PS(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function FS(e,t){t===void 0&&(t=e,e=NS);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 IS(e){return function(){return e}}function LS(e){return+e}var RS=[0,1];function zS(e){return e}function BS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:IS(isNaN(t)?NaN:.5)}function VS(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function HS(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=BS(i,r),a=n(o,a)):(r=BS(r,i),a=n(a,o)),function(e){return a(r(e))}}function US(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]=BS(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=nx(e,t,1,r)-1;return a[n](i[n](t))}}function WS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function GS(){var e=RS,t=RS,n=NS,r,i,a,o=zS,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==zS&&(o=VS(e[0],e[n-1])),s=n>2?US:HS,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),ES))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,LS),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=PS,u()},d.clamp=function(e){return arguments.length?(o=e?!0:zS,u()):o!==zS},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 KS(){return GS()(zS,zS)}function qS(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function JS(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 YS(e){return e=JS(Math.abs(e)),e?e[1]:NaN}function XS(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 ZS(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var QS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $S(e){if(!(t=QS.exec(e)))throw Error(`invalid format: `+e);var t;return new eC({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]})}$S.prototype=eC.prototype;function eC(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+``}eC.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 tC(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 nC;function rC(e,t){var n=JS(e,t);if(!n)return nC=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(nC=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`)+JS(e,Math.max(0,t+a-1))[0]}function iC(e,t){var n=JS(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 aC={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:qS,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)=>iC(e*100,t),r:iC,s:rC,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function oC(e){return e}var sC=Array.prototype.map,cC=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function lC(e){var t=e.grouping===void 0||e.thousands===void 0?oC:XS(sC.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?oC:ZS(sC.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=$S(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`):aC[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=aC[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=tC(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&nC!==void 0?cC[8+nC/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(YS(t)/3)))*3,r=10**-n,i=l((e=$S(e),e.type=`f`,e),{suffix:cC[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var uC,dC,fC;pC({thousands:`,`,grouping:[3],currency:[`$`,``]});function pC(e){return uC=lC(e),dC=uC.format,fC=uC.formatPrefix,uC}function mC(e){return Math.max(0,-YS(Math.abs(e)))}function hC(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(YS(t)/3)))*3-YS(Math.abs(e)))}function gC(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,YS(t)-YS(e))+1}function _C(e,t,n,r){var i=gx(e,t,n),a;switch(r=$S(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=hC(i,o))&&(r.precision=a),fC(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=gC(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=mC(i))&&(r.precision=a-(r.type===`%`)*2);break}return dC(r)}function vC(e){var t=e.domain;return e.ticks=function(e){var n=t();return mx(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return _C(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=hx(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 yC(){var e=KS();return e.copy=function(){return WS(e,yC())},wx.apply(e,arguments),vC(e)}function bC(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,LS),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return bC(e).unknown(t)},e=arguments.length?Array.from(e,LS):[0,1],vC(n)}function xC(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 SC(e){return Math.log(e)}function CC(e){return Math.exp(e)}function wC(e){return-Math.log(-e)}function TC(e){return-Math.exp(-e)}function EC(e){return isFinite(e)?+(`1e`+e):e<0?0:e}function DC(e){return e===10?EC:e===Math.E?Math.exp:t=>e**+t}function OC(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 kC(e){return(t,n)=>-e(-t,n)}function AC(e){let t=e(SC,CC),n=t.domain,r=10,i,a;function o(){return i=OC(r),a=DC(r),n()[0]<0?(i=kC(i),a=kC(a),e(wC,TC)):e(SC,CC),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=mx(o,s,p))}else m=mx(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=$S(n)).precision==null&&(n.trim=!0),n=dC(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(xC(n(),{floor:e=>a(Math.floor(i(e))),ceil:e=>a(Math.ceil(i(e)))})),t}function jC(){let e=AC(GS()).domain([1,10]);return e.copy=()=>WS(e,jC()).base(e.base()),wx.apply(e,arguments),e}function MC(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function NC(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function PC(e){var t=1,n=e(MC(t),NC(t));return n.constant=function(n){return arguments.length?e(MC(t=+n),NC(t)):t},vC(n)}function FC(){var e=PC(GS());return e.copy=function(){return WS(e,FC()).constant(e.constant())},wx.apply(e,arguments)}function IC(e){return function(t){return t<0?-((-t)**+e):t**+e}}function LC(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function RC(e){return e<0?-e*e:e*e}function zC(e){var t=e(zS,zS),n=1;function r(){return n===1?e(zS,zS):n===.5?e(LC,RC):e(IC(n),IC(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},vC(t)}function BC(){var e=zC(GS());return e.copy=function(){return WS(e,BC()).exponent(e.exponent())},wx.apply(e,arguments),e}function VC(){return BC.apply(null,arguments).exponent(.5)}function HC(e){return Math.sign(e)*e*e}function UC(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function WC(){var e=KS(),t=[0,1],n=!1,r;function i(t){var i=UC(e(t));return isNaN(i)?r:n?Math.round(i):i}return i.invert=function(t){return e.invert(HC(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,LS)).map(HC)),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 WC(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},wx.apply(i,arguments),vC(i)}function GC(){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]=Sx(e,r/i);return a}function a(e){return e==null||isNaN(e=+e)?r:t[nx(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(Yb),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 GC().domain(e).range(t).unknown(r)},wx.apply(a,arguments)}function KC(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(e){return e!=null&&e<=e?i[nx(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 KC().domain([e,t]).range(i).unknown(a)},wx.apply(vC(o),arguments)}function qC(){var e=[.5],t=[0,1],n,r=1;function i(i){return i!=null&&i<=i?t[nx(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 qC().domain(e).range(t).unknown(n)},wx.apply(i,arguments)}var JC=new Date,YC=new Date;function XC(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=>XC(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)=>(JC.setTime(+t),YC.setTime(+r),e(JC),e(YC),Math.floor(n(JC,YC))),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 ZC=XC(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ZC.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?XC(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ZC),ZC.range;var QC=1e3,$C=QC*60,ew=$C*60,tw=ew*24,nw=tw*7,rw=tw*30,iw=tw*365,aw=XC(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*QC)},(e,t)=>(t-e)/QC,e=>e.getUTCSeconds());aw.range;var ow=XC(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*QC)},(e,t)=>{e.setTime(+e+t*$C)},(e,t)=>(t-e)/$C,e=>e.getMinutes());ow.range;var sw=XC(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*$C)},(e,t)=>(t-e)/$C,e=>e.getUTCMinutes());sw.range;var cw=XC(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*QC-e.getMinutes()*$C)},(e,t)=>{e.setTime(+e+t*ew)},(e,t)=>(t-e)/ew,e=>e.getHours());cw.range;var lw=XC(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ew)},(e,t)=>(t-e)/ew,e=>e.getUTCHours());lw.range;var uw=XC(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*$C)/tw,e=>e.getDate()-1);uw.range;var dw=XC(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/tw,e=>e.getUTCDate()-1);dw.range;var fw=XC(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/tw,e=>Math.floor(e/tw));fw.range;function pw(e){return XC(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())*$C)/nw)}var mw=pw(0),hw=pw(1),gw=pw(2),_w=pw(3),vw=pw(4),yw=pw(5),bw=pw(6);mw.range,hw.range,gw.range,_w.range,vw.range,yw.range,bw.range;function xw(e){return XC(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)/nw)}var Sw=xw(0),Cw=xw(1),ww=xw(2),Tw=xw(3),Ew=xw(4),Dw=xw(5),Ow=xw(6);Sw.range,Cw.range,ww.range,Tw.range,Ew.range,Dw.range,Ow.range;var kw=XC(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());kw.range;var Aw=XC(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());Aw.range;var jw=XC(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());jw.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:XC(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)}),jw.range;var Mw=XC(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());Mw.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:XC(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)}),Mw.range;function Nw(e,t,n,r,i,a){let o=[[aw,1,QC],[aw,5,5*QC],[aw,15,15*QC],[aw,30,30*QC],[a,1,$C],[a,5,5*$C],[a,15,15*$C],[a,30,30*$C],[i,1,ew],[i,3,3*ew],[i,6,6*ew],[i,12,12*ew],[r,1,tw],[r,2,2*tw],[n,1,nw],[t,1,rw],[t,3,3*rw],[e,1,iw]];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=Zb(([,,e])=>e).right(o,i);if(a===o.length)return e.every(gx(t/iw,n/iw,r));if(a===0)return ZC.every(Math.max(gx(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[Pw,Fw]=Nw(Mw,Aw,Sw,fw,lw,sw),[Iw,Lw]=Nw(jw,kw,mw,uw,cw,ow);function Rw(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 zw(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 Bw(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Vw(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=qw(i),u=Jw(i),d=qw(a),f=Jw(a),p=qw(o),m=Jw(o),h=qw(s),g=Jw(s),_=qw(c),v=Jw(c),y={a:N,A:ee,b:P,B:F,c:null,d:hT,e:hT,f:bT,g:jT,G:NT,H:gT,I:_T,j:vT,L:yT,m:xT,M:ST,p:te,q:I,Q:nE,s:rE,S:CT,u:wT,U:TT,V:DT,w:OT,W:kT,x:null,X:null,y:AT,Y:MT,Z:PT,"%":tE},b={a:ne,A:re,b:L,B:R,c:null,d:FT,e:FT,f:BT,g:ZT,G:$T,H:IT,I:LT,j:RT,L:zT,m:VT,M:HT,p:ie,q:ae,Q:nE,s:rE,S:UT,u:WT,U:GT,V:qT,w:JT,W:YT,x:null,X:null,y:XT,Y:QT,Z:eE,"%":tE},x={a:E,A:D,b:O,B:k,c:A,d:aT,e:aT,f:dT,g:tT,G:eT,H:sT,I:sT,j:oT,L:uT,m:iT,M:cT,p:T,q:rT,Q:pT,s:mT,S:lT,u:Xw,U:Zw,V:Qw,w:Yw,W:$w,x:j,X:M,y:tT,Y:eT,Z:nT,"%":fT};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=Hw[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=Bw(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));if(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=zw(Bw(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?Cw.ceil(a):Cw(a),a=dw.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=Rw(Bw(r.y,0,1)),o=a.getDay(),a=o>4||o===0?hw.ceil(a):hw(a),a=uw.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?zw(Bw(r.y,0,1)).getUTCDay():Rw(Bw(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,zw(r)):Rw(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 Hw?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 P(e){return c[e.getMonth()]}function F(e){return s[e.getMonth()]}function te(e){return i[+(e.getHours()>=12)]}function I(e){return 1+~~(e.getMonth()/3)}function ne(e){return o[e.getUTCDay()]}function re(e){return a[e.getUTCDay()]}function L(e){return c[e.getUTCMonth()]}function R(e){return s[e.getUTCMonth()]}function ie(e){return i[+(e.getUTCHours()>=12)]}function ae(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 Hw={"-":``,_:` `,0:`0`},Uw=/^\s*\d+/,Ww=/^%/,Gw=/[\\^$*+?|[\]().{}]/g;function X(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 Kw(e){return e.replace(Gw,`\\$&`)}function qw(e){return RegExp(`^(?:`+e.map(Kw).join(`|`)+`)`,`i`)}function Jw(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Yw(e,t,n){var r=Uw.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Xw(e,t,n){var r=Uw.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Zw(e,t,n){var r=Uw.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Qw(e,t,n){var r=Uw.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function $w(e,t,n){var r=Uw.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function eT(e,t,n){var r=Uw.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function tT(e,t,n){var r=Uw.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function nT(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 rT(e,t,n){var r=Uw.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function iT(e,t,n){var r=Uw.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function aT(e,t,n){var r=Uw.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function oT(e,t,n){var r=Uw.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function sT(e,t,n){var r=Uw.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function cT(e,t,n){var r=Uw.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function lT(e,t,n){var r=Uw.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function uT(e,t,n){var r=Uw.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function dT(e,t,n){var r=Uw.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function fT(e,t,n){var r=Ww.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function pT(e,t,n){var r=Uw.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function mT(e,t,n){var r=Uw.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function hT(e,t){return X(e.getDate(),t,2)}function gT(e,t){return X(e.getHours(),t,2)}function _T(e,t){return X(e.getHours()%12||12,t,2)}function vT(e,t){return X(1+uw.count(jw(e),e),t,3)}function yT(e,t){return X(e.getMilliseconds(),t,3)}function bT(e,t){return yT(e,t)+`000`}function xT(e,t){return X(e.getMonth()+1,t,2)}function ST(e,t){return X(e.getMinutes(),t,2)}function CT(e,t){return X(e.getSeconds(),t,2)}function wT(e){var t=e.getDay();return t===0?7:t}function TT(e,t){return X(mw.count(jw(e)-1,e),t,2)}function ET(e){var t=e.getDay();return t>=4||t===0?vw(e):vw.ceil(e)}function DT(e,t){return e=ET(e),X(vw.count(jw(e),e)+(jw(e).getDay()===4),t,2)}function OT(e){return e.getDay()}function kT(e,t){return X(hw.count(jw(e)-1,e),t,2)}function AT(e,t){return X(e.getFullYear()%100,t,2)}function jT(e,t){return e=ET(e),X(e.getFullYear()%100,t,2)}function MT(e,t){return X(e.getFullYear()%1e4,t,4)}function NT(e,t){var n=e.getDay();return e=n>=4||n===0?vw(e):vw.ceil(e),X(e.getFullYear()%1e4,t,4)}function PT(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+X(t/60|0,`0`,2)+X(t%60,`0`,2)}function FT(e,t){return X(e.getUTCDate(),t,2)}function IT(e,t){return X(e.getUTCHours(),t,2)}function LT(e,t){return X(e.getUTCHours()%12||12,t,2)}function RT(e,t){return X(1+dw.count(Mw(e),e),t,3)}function zT(e,t){return X(e.getUTCMilliseconds(),t,3)}function BT(e,t){return zT(e,t)+`000`}function VT(e,t){return X(e.getUTCMonth()+1,t,2)}function HT(e,t){return X(e.getUTCMinutes(),t,2)}function UT(e,t){return X(e.getUTCSeconds(),t,2)}function WT(e){var t=e.getUTCDay();return t===0?7:t}function GT(e,t){return X(Sw.count(Mw(e)-1,e),t,2)}function KT(e){var t=e.getUTCDay();return t>=4||t===0?Ew(e):Ew.ceil(e)}function qT(e,t){return e=KT(e),X(Ew.count(Mw(e),e)+(Mw(e).getUTCDay()===4),t,2)}function JT(e){return e.getUTCDay()}function YT(e,t){return X(Cw.count(Mw(e)-1,e),t,2)}function XT(e,t){return X(e.getUTCFullYear()%100,t,2)}function ZT(e,t){return e=KT(e),X(e.getUTCFullYear()%100,t,2)}function QT(e,t){return X(e.getUTCFullYear()%1e4,t,4)}function $T(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ew(e):Ew.ceil(e),X(e.getUTCFullYear()%1e4,t,4)}function eE(){return`+0000`}function tE(){return`%`}function nE(e){return+e}function rE(e){return Math.floor(e/1e3)}var iE,aE,oE;sE({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 sE(e){return iE=Vw(e),aE=iE.format,iE.parse,oE=iE.utcFormat,iE.utcParse,iE}function cE(e){return new Date(e)}function lE(e){return e instanceof Date?+e:+new Date(+e)}function uE(e,t,n,r,i,a,o,s,c,l){var u=KS(),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,lE)):f().map(cE)},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(xC(n,e)):u},u.copy=function(){return WS(u,uE(e,t,n,r,i,a,o,s,c,l))},u}function dE(){return wx.apply(uE(Iw,Lw,jw,kw,mw,uw,cw,ow,aw,aE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function fE(){return wx.apply(uE(Pw,Fw,Mw,Aw,Sw,dw,lw,sw,aw,oE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function pE(){var e=0,t=1,n,r,i,a,o=zS,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(NS),l.rangeRound=u(PS),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 mE(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function hE(){var e=vC(pE()(zS));return e.copy=function(){return mE(e,hE())},Tx.apply(e,arguments)}function gE(){var e=AC(pE()).domain([1,10]);return e.copy=function(){return mE(e,gE()).base(e.base())},Tx.apply(e,arguments)}function _E(){var e=PC(pE());return e.copy=function(){return mE(e,_E()).constant(e.constant())},Tx.apply(e,arguments)}function vE(){var e=zC(pE());return e.copy=function(){return mE(e,vE()).exponent(e.exponent())},Tx.apply(e,arguments)}function yE(){return vE.apply(null,arguments).exponent(.5)}function bE(){var e=[],t=zS;function n(n){if(n!=null&&!isNaN(n=+n))return t((nx(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(Yb),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)=>xx(e,r/t))},n.copy=function(){return bE(t).domain(e)},Tx.apply(n,arguments)}function xE(){var e=0,t=.5,n=1,r=1,i,a,o,s,c,l=zS,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=FS(e,[n,r,i]),p):[l(0),l(.5),l(1)]}}return p.range=m(NS),p.rangeRound=m(PS),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 SE(){var e=vC(xE()(zS));return e.copy=function(){return mE(e,SE())},Tx.apply(e,arguments)}function CE(){var e=AC(xE()).domain([.1,1,10]);return e.copy=function(){return mE(e,CE()).base(e.base())},Tx.apply(e,arguments)}function wE(){var e=PC(xE());return e.copy=function(){return mE(e,wE()).constant(e.constant())},Tx.apply(e,arguments)}function TE(){var e=zC(xE());return e.copy=function(){return mE(e,TE()).exponent(e.exponent())},Tx.apply(e,arguments)}function EE(){return TE.apply(null,arguments).exponent(.5)}var DE=e({scaleBand:()=>Ox,scaleDiverging:()=>SE,scaleDivergingLog:()=>CE,scaleDivergingPow:()=>TE,scaleDivergingSqrt:()=>EE,scaleDivergingSymlog:()=>wE,scaleIdentity:()=>bC,scaleImplicit:()=>Ex,scaleLinear:()=>yC,scaleLog:()=>jC,scaleOrdinal:()=>Dx,scalePoint:()=>Ax,scalePow:()=>BC,scaleQuantile:()=>GC,scaleQuantize:()=>KC,scaleRadial:()=>WC,scaleSequential:()=>hE,scaleSequentialLog:()=>gE,scaleSequentialPow:()=>vE,scaleSequentialQuantile:()=>bE,scaleSequentialSqrt:()=>yE,scaleSequentialSymlog:()=>_E,scaleSqrt:()=>VC,scaleSymlog:()=>FC,scaleThreshold:()=>qC,scaleTime:()=>dE,scaleUtc:()=>fE,tickFormat:()=>_C});function OE(e){if(e in DE)return DE[e]();var t=`scale${El(e)}`;if(t in DE)return DE[t]()}function kE(e,t,n){if(typeof e==`function`)return e.copy().domain(t).range(n);if(e!=null){var r=OE(e);if(r!=null)return r.domain(t).range(n),r}}function AE(e,t,n,r){if(!(n==null||r==null))return typeof e.scale==`function`?kE(e.scale,n,r):kE(t,n,r)}function jE(e){return`scale${El(e)}`}function ME(e){return jE(e)in DE}var NE=(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 ME(r)?r:`point`}};function PE(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 FE(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=PE(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 IE(e){if(e!=null)return`invert`in e&&typeof e.invert==`function`?e.invert.bind(e):FE(e,void 0)}function LE(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 RE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?LE(Object(n),!0).forEach(function(t){zE(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zE(e,t,n){return(t=BE(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BE(e){var t=VE(e,`string`);return typeof t==`symbol`?t:t+``}function VE(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 HE=[0,`auto`],UE={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`},WE=(e,t)=>e.cartesianAxis.xAxis[t],GE=(e,t)=>WE(e,t)??UE,KE={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:HE,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},qE=(e,t)=>e.cartesianAxis.yAxis[t],JE=(e,t)=>qE(e,t)??KE,YE={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:``},XE=(e,t)=>e.cartesianAxis.zAxis[t]??YE,ZE=(e,t,n)=>{switch(t){case`xAxis`:return GE(e,n);case`yAxis`:return JE(e,n);case`zAxis`:return XE(e,n);case`angleAxis`:return Ob(e,n);case`radiusAxis`:return kb(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},QE=(e,t,n)=>{switch(t){case`xAxis`:return GE(e,n);case`yAxis`:return JE(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},$E=(e,t,n)=>{switch(t){case`xAxis`:return GE(e,n);case`yAxis`:return JE(e,n);case`angleAxis`:return Ob(e,n);case`radiusAxis`:return kb(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},eD=e=>e.graphicalItems.cartesianItems.some(e=>e.type===`bar`)||e.graphicalItems.polarItems.some(e=>e.type===`radialBar`);function tD(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;case`radiusAxis`:return`radiusAxisId`in n&&n.radiusAxisId===t;default:return!1}}}var nD=e=>e.graphicalItems.cartesianItems,rD=G([Lb,Rb],tD),iD=(e,t,n)=>e.filter(n).filter(e=>t?.includeHidden===!0||!e.hide),aD=G([nD,ZE,rD],iD,{memoizeOptions:{resultEqualityCheck:Ub}}),oD=G([aD],e=>e.filter(e=>e.type===`area`||e.type===`bar`).filter(Vb)),sD=e=>e.filter(e=>!(`stackId`in e)||e.stackId===void 0),cD=G([aD],sD),lD=e=>e.map(e=>e.data).filter(Boolean).flat(1),uD=G([aD],lD,{memoizeOptions:{resultEqualityCheck:Ub}}),dD=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},fD=G([uD,Yy],dD),pD=(e,t,n)=>t?.dataKey==null?n.length>0?n.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:mm(e,t)}))):e.map(e=>({value:e})):e.map(e=>({value:mm(e,t.dataKey)})),mD=G([fD,ZE,aD],pD);function hD(e){if(vl(e)||e instanceof Date){var t=Number(e);if(q(t))return t}}function gD(e){if(Array.isArray(e)){var t=[hD(e[0]),hD(e[1])];return Xy(t)?t:void 0}var n=hD(e);if(n!=null)return[n,n]}function _D(e){return e.map(hD).filter(Dl)}function vD(e,t){var n=hD(e),r=hD(t);return n==null&&r==null?0:n==null?-1:r==null?1:n-r}var yD=G([mD],e=>e?.map(e=>e.value).sort(vD));function bD(e,t){switch(e){case`xAxis`:return t.direction===`x`;case`yAxis`:return t.direction===`y`;default:return!1}}function xD(e,t,n){return!n||typeof t!=`number`||gl(t)||!n.length?[]:_D(n.flatMap(n=>{var r=mm(e,n.dataKey),i,a;if(Array.isArray(r)?[i,a]=r:i=a=r,!(!q(i)||!q(a)))return[t-i,t+a]}))}var SD=e=>$E(e,Gb(e),Kb(e)),CD=G([SD],e=>e?.dataKey),wD=G([oD,Yy,SD],Bb),TD=(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:vm(e,o.map(zb),n),graphicalItems:o}]}))},ED=G([wD,oD,ub,db],TD),DD=(e,t,n,r)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(r==null&&n!==`zAxis`){var o=xm(e,i,a);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},OD=G([ZE],e=>e.allowDataOverflow),kD=e=>{if(e==null||!(`domain`in e))return HE;if(e.domain!=null)return e.domain;if(`ticks`in e&&e.ticks!=null){if(e.type===`number`){var t=_D(e.ticks);return[Math.min(...t),Math.max(...t)]}if(e.type===`category`)return e.ticks.map(String)}return e?.domain??HE},AD=G([ZE],kD),jD=G([AD,OD],Qy),MD=G([ED,qy,Lb,jD],DD,{memoizeOptions:{resultEqualityCheck:Hb}}),ND=e=>e.errorBars,PD=(e,t,n)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>bD(n,e)),FD=function(){var e=[...arguments].filter(Boolean);if(e.length!==0){var t=e.flat();return[Math.min(...t),Math.max(...t)]}},ID=(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=>bD(i,e)),c=mm(e,t.dataKey??n.dataKey),l=xD(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=gD(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=gD(mm(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]))}),q(a)&&q(o))return[a,o]},LD=G([fD,ZE,cD,ND,Lb],ID,{memoizeOptions:{resultEqualityCheck:Hb}});function RD(e){var{value:t}=e;if(vl(t)||t instanceof Date)return t}var zD=(e,t,n)=>{var r=e.map(RD).filter(e=>e!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&Sl(r))?(0,Ky.default)(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},BD=e=>e.referenceElements.dots,VD=(e,t,n)=>e.filter(e=>e.ifOverflow===`extendDomain`).filter(e=>t===`xAxis`?e.xAxisId===n:e.yAxisId===n),HD=G([BD,Lb,Rb],VD),UD=e=>e.referenceElements.areas,WD=G([UD,Lb,Rb],VD),GD=e=>e.referenceElements.lines,KD=G([GD,Lb,Rb],VD),qD=(e,t)=>{if(e!=null){var n=_D(e.map(e=>t===`xAxis`?e.x:e.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},JD=G(HD,Lb,qD),YD=(e,t)=>{if(e!=null){var n=_D(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)]}},XD=G([WD,Lb],YD);function ZD(e){if(e.x!=null)return _D([e.x]);var t=e.segment?.map(e=>e.x);return t==null||t.length===0?[]:_D(t)}function QD(e){if(e.y!=null)return _D([e.y]);var t=e.segment?.map(e=>e.y);return t==null||t.length===0?[]:_D(t)}var $D=(e,t)=>{if(e!=null){var n=e.flatMap(e=>t===`xAxis`?ZD(e):QD(e));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},eO=G(JD,G([KD,Lb],$D),XD,(e,t,n)=>FD(e,n,t)),tO=(e,t,n,r,i,a,o,s)=>n??$y(t,o===`vertical`&&s===`xAxis`||o===`horizontal`&&s===`yAxis`?FD(r,a,i):FD(a,i),e.allowDataOverflow),nO=G([ZE,AD,jD,MD,LD,eO,Ah,Lb],tO,{memoizeOptions:{resultEqualityCheck:Hb}}),rO=[0,1],iO=(e,t,n,r,i,a,o)=>{if(!((e==null||n==null||n.length===0)&&o===void 0)){var{dataKey:s,type:c}=e,l=gm(t,a);return l&&s==null?(0,Ky.default)(0,n?.length??0):c===`category`?zD(r,e,l):i===`expand`?rO:o}},aO=G([ZE,Ah,fD,mD,ub,Lb,nO],iO),oO=G([ZE,eD,fb],NE),sO=(e,t,n)=>{var{niceTicks:r}=t;if(r!==`none`){var i=kD(t),a=Array.isArray(i)&&(i[0]===`auto`||i[1]===`auto`);if((r===`snap125`||r===`adaptive`)&&t!=null&&t.tickCount&&Xy(e)){if(a)return sb(e,t.tickCount,t.allowDecimals,r);if(t.type===`number`)return cb(e,t.tickCount,t.allowDecimals,r)}if(r===`auto`&&n===`linear`&&t!=null&&t.tickCount){if(a&&Xy(e))return sb(e,t.tickCount,t.allowDecimals,`adaptive`);if(t.type===`number`&&Xy(e))return cb(e,t.tickCount,t.allowDecimals,`adaptive`)}}},cO=G([aO,$E,oO],sO),lO=(e,t,n,r)=>{if(r!==`angleAxis`&&e?.type===`number`&&Xy(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},uO=G([ZE,aO,cO,Lb],lO),dO=G(G(mD,ZE,(e,t)=>{if(!(!t||t.type!==`number`)){var n=1/0,r=Array.from(_D(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}}),Ah,lb,qm,(e,t,n,r,i)=>i,(e,t,n,r,i)=>{if(!q(e))return 0;var a=t===`vertical`?r.height:r.width;if(i===`gap`)return e*a/2;if(i===`no-gap`){var o=xl(n,e*a),s=e*a/2;return s-o-(s-o)/a*o}return 0}),fO=(e,t,n)=>{var r=GE(e,t);return r==null||typeof r.padding!=`string`?0:dO(e,`xAxis`,t,n,r.padding)},pO=(e,t,n)=>{var r=JE(e,t);return r==null||typeof r.padding!=`string`?0:dO(e,`yAxis`,t,n,r.padding)},mO=G(GE,fO,(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}}),hO=G(JE,pO,(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}}),gO=G([qm,mO,Qm,Zm,(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]}),_O=G([qm,Ah,hO,Qm,Zm,(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]}),vO=(e,t,n,r)=>{switch(t){case`xAxis`:return gO(e,n,r);case`yAxis`:return _O(e,n,r);case`zAxis`:return XE(e,n)?.range;case`angleAxis`:return Pb(e);case`radiusAxis`:return Fb(e,n);default:return}},yO=G([ZE,vO],yb),bO=G([ZE,oO,G([oO,uO],Jb),yO],AE),xO=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:i,scale:a}=n;if(gm(e,r)&&(i===`number`||a!==`auto`))return t.map(e=>e.value)}},SO=G([Ah,mD,$E,Lb],xO),CO=G([bO],qb);G([bO],IE),G([bO,yD],FE),G([aD,ND,Lb],PD);function wO(e,t){return e.id<t.id?-1:+(e.id>t.id)}var TO=(e,t)=>t,EO=(e,t,n)=>n,DO=G(Nm,TO,EO,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(wO)),OO=G(Pm,TO,EO,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(wO)),kO=(e,t)=>({width:e.width,height:t.height}),AO=(e,t)=>({width:typeof t.width==`number`?t.width:60,height:e.height});G(qm,GE,kO);var jO=(e,t,n)=>{switch(t){case`top`:return e.top;case`bottom`:return n-e.bottom;default:return 0}},MO=(e,t,n)=>{switch(t){case`left`:return e.left;case`right`:return n-e.right;default:return 0}},NO=G(Am,qm,DO,TO,EO,(e,t,n,r,i)=>{var a={},o;return n.forEach(n=>{var s=kO(t,n);o??=jO(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}),PO=G(km,qm,OO,TO,EO,(e,t,n,r,i)=>{var a={},o;return n.forEach(n=>{var s=AO(t,n);o??=MO(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});G([qm,GE,(e,t)=>{var n=GE(e,t);if(n!=null)return NO(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}}}),G([qm,JE,(e,t)=>{var n=JE(e,t);if(n!=null)return PO(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}}}),G(qm,JE,(e,t)=>({width:typeof t.width==`number`?t.width:60,height:e.height}));var FO=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=n,s=gm(e,r),c=t.map(e=>e.value);if(o&&s&&a===`category`&&i&&Sl(c))return c}},IO=G([Ah,mD,ZE,Lb],FO);G([Ah,QE,oO,CO,IO,SO,vO,cO,Lb],(e,t,n,r,i,a,o,s,c)=>{if(t!=null){var l=gm(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}}}),G([Ah,$E,oO,CO,cO,vO,IO,SO,Lb],(e,t,n,r,i,a,o,s,c)=>{if(!(t==null||r==null)){var l=gm(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?hl(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 q(i)?{index:t,coordinate:i+m,value:e,offset:m}:null}).filter(Dl):l&&s?s.map((e,t)=>{var n=r.map(e);return q(n)?{coordinate:n+m,value:e,index:t,offset:m}:null}).filter(Dl):r.ticks?r.ticks(f).map((e,t)=>{var n=r.map(e);return q(n)?{coordinate:n+m,value:e,index:t,offset:m}:null}).filter(Dl):r.domain().map((e,t)=>{var n=r.map(e);return q(n)?{coordinate:n+m,value:o?o[e]:e,index:t,offset:m}:null}).filter(Dl)}}),G([Ah,$E,CO,vO,IO,SO,Lb],(e,t,n,r,i,a,o)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var s=gm(e,o),{tickCount:c}=t,l=0;return l=o===`angleAxis`&&r?.length>=2?hl(r[0]-r[1])*2*l:l,s&&a?a.map((e,t)=>{var r=n.map(e);return q(r)?{coordinate:r+l,value:e,index:t,offset:l}:null}).filter(Dl):n.ticks?n.ticks(c).map((e,t)=>{var r=n.map(e);return q(r)?{coordinate:r+l,value:e,index:t,offset:l}:null}).filter(Dl):n.domain().map((e,t)=>{var r=n.map(e);return q(r)?{coordinate:r+l,value:i?i[e]:e,index:t,offset:l}:null}).filter(Dl)}}),G(ZE,CO,(e,t)=>{if(!(e==null||t==null))return RE(RE({},e),{},{scale:t})}),G((e,t,n)=>XE(e,n),G([G([ZE,oO,aO,yO],AE)],qb),(e,t)=>{if(!(e==null||t==null))return RE(RE({},e),{},{scale:t})});var LO=G([Ah,Nm,Pm],(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}});G([(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 RO=e=>e.options.defaultTooltipEventType,zO=e=>e.options.validateTooltipEventTypes;function BO(e,t,n){if(e==null)return t;var r=e?`axis`:`item`;return n==null?t:n.includes(r)?r:t}function VO(e,t){return BO(t,RO(e),zO(e))}function HO(e){return W(t=>VO(t,e))}var UO=(e,t)=>{var n,r=Number(t);if(!(gl(r)||t==null))return r>=0?e==null||(n=e[r])==null?void 0:n.value:void 0},WO=e=>e.tooltip.settings,GO={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},KO=pp({name:`tooltip`,initialState:{itemInteraction:{click:GO,hover:GO},axisInteraction:{click:GO,hover:GO},keyboardInteraction:GO,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(J(t.payload))},prepare:K()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Bf(e).tooltipItemPayloads.indexOf(J(n));i>-1&&(e.tooltipItemPayloads[i]=J(r))},prepare:K()},removeTooltipEntrySettings:{reducer(e,t){var n=Bf(e).tooltipItemPayloads.indexOf(J(t.payload));n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:K()},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:qO,replaceTooltipEntrySettings:JO,removeTooltipEntrySettings:YO,setTooltipSettingsState:XO,setActiveMouseOverItemIndex:ZO,mouseLeaveItem:QO,mouseLeaveChart:$O,setActiveClickItemIndex:ek,setMouseOverAxisIndex:tk,setMouseClickAxisIndex:nk,setSyncInteraction:rk,setKeyboardInteraction:ik}=KO.actions,ak=KO.reducer;function ok(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 sk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ok(Object(n),!0).forEach(function(t){ck(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ok(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ck(e,t,n){return(t=lk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lk(e){var t=uk(e,`string`);return typeof t==`symbol`?t:t+``}function uk(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 dk(e,t,n){return t===`axis`?n===`click`?e.axisInteraction.click:e.axisInteraction.hover:n===`click`?e.itemInteraction.click:e.itemInteraction.hover}function fk(e){return e.index!=null}var pk=(e,t,n,r)=>{if(t==null)return GO;var i=dk(e,t,n);if(i==null)return GO;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(fk(i)){if(a)return sk(sk({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return sk(sk({},GO),{},{coordinate:i.coordinate})};function mk(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 hk(e,t){var n=mk(e),r=t[0],i=t[1];return n!==void 0&&n>=Math.min(r,i)&&n<=Math.max(r,i)}function gk(e,t,n){if(n==null||t==null)return!0;var r=mm(e,t);return r==null||!Xy(n)||hk(r,n)}var _k=(e,t,n,r)=>{var i=e?.index;if(i==null)return null;var a=Number(i);if(!q(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||gk(l,n,r)?String(c):null},vk=(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}}}},yk=(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)},bk=e=>e.options.tooltipPayloadSearcher,xk=e=>e.tooltip;function Sk(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 Ck(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Sk(Object(n),!0).forEach(function(t){wk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wk(e,t,n){return(t=Tk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tk(e){var t=Ek(e,`string`);return typeof t==`symbol`?t:t+``}function Ek(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 Dk(e){if(typeof e==`string`||typeof e==`number`)return e}function Ok(e){if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`)return e}function kk(e){if(typeof e==`string`||typeof e==`number`)return e;if(typeof e==`function`)return t=>e(t)}function Ak(e){if(typeof e==`string`)return e}function jk(e){if(!(typeof e!=`object`||!e))return{name:`name`in e?Dk(e.name):void 0,unit:`unit`in e?Ok(e.unit):void 0,dataKey:`dataKey`in e?kk(e.dataKey):void 0,payload:`payload`in e?e.payload:void 0,color:`color`in e?Ak(e.color):void 0,fill:`fill`in e?Ak(e.fill):void 0}}function Mk(e,t){return e??t}var Nk=(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=Mk(d,s),m=Array.isArray(p)?sm(p,l,u):p,h=f?.dataKey??r,g=f?.nameKey,_=r&&Array.isArray(m)&&!Array.isArray(m[0])&&o===`axis`?wl(m,r,i):a(m,t,c,g);return Array.isArray(_)?_.forEach(t=>{var n=jk(t),r=n?.name,i=n?.dataKey,a=n?.payload,o=Ck(Ck({},f),{},{name:r,unit:n?.unit,color:n?.color??f?.color,fill:n?.fill??f?.fill});e.push(Tm({tooltipEntrySettings:o,dataKey:i,payload:a,value:mm(a,i),name:r==null?void 0:String(r)}))}):e.push(Tm({tooltipEntrySettings:f,dataKey:h,payload:_,value:mm(_,h),name:mm(_,g)??f?.name})),e},[])}},Pk=G([SD,eD,fb],NE),Fk=G([G([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),SD,G([Gb,Kb],tD)],iD,{memoizeOptions:{resultEqualityCheck:Ub}}),Ik=G([Fk],e=>e.filter(Vb)),Lk=G([G([Fk],lD,{memoizeOptions:{resultEqualityCheck:Ub}}),qy],dD),Rk=G([Ik,qy,SD],Bb),zk=G([Lk,SD,Fk],pD),Bk=G([SD],kD),Vk=G([Bk,G([SD],e=>e.allowDataOverflow)],Qy),Hk=G([G([Rk,G([Fk],e=>e.filter(Vb)),ub,db],TD),qy,Gb,Vk],DD),Uk=G([Lk,SD,G([Fk],sD),ND,Gb],ID,{memoizeOptions:{resultEqualityCheck:Hb}}),Wk=G([G([BD,Gb,Kb],VD),Gb],qD),Gk=G([G([UD,Gb,Kb],VD),Gb],YD),Kk=G([SD,Ah,Lk,zk,ub,Gb,G([SD,Bk,Vk,Hk,Uk,G([Wk,G([G([GD,Gb,Kb],VD),Gb],$D),Gk],FD),Ah,Gb],tO)],iO),qk=G([SD,Kk,G([Kk,SD,Pk],sO),Gb],lO),Jk=e=>vO(e,Gb(e),Kb(e),!1),Yk=G([SD,Jk],yb),Xk=G([G([SD,Pk,qk,Yk],AE)],qb),Zk=G([Ah,SD,Pk,Xk,Jk,G([Ah,zk,SD,Gb],FO),G([Ah,zk,SD,Gb],xO),Gb],(e,t,n,r,i,a,o,s)=>{if(t){var{type:c}=t,l=gm(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?hl(i[0]-i[1])*2*d:d,l&&o?o.map((e,t)=>{var n=r.map(e);return q(n)?{coordinate:n+d,value:e,index:t,offset:d}:null}).filter(Dl):r.domain().map((e,t)=>{var n=r.map(e);return q(n)?{coordinate:n+d,value:a?a[e]:e,index:t,offset:d}:null}).filter(Dl)}}}),Qk=G([RO,zO,WO],(e,t,n)=>BO(n.shared,e,t)),$k=e=>e.tooltip.settings.trigger,eA=e=>e.tooltip.settings.defaultIndex,tA=G([xk,Qk,$k,eA],pk),nA=G([tA,Lk,CD,Kk],_k),rA=G([Zk,nA],UO),iA=G([tA],e=>{if(e)return e.dataKey}),aA=G([tA],e=>{if(e)return e.graphicalItemId}),oA=G([xk,Qk,$k,eA],yk),sA=G([tA,G([km,Am,Ah,qm,Zk,eA,oA],vk)],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),cA=G([tA],e=>e?.active??!1);G([G([oA,nA,qy,CD,rA,bk,Qk],Nk)],e=>{if(e!=null){var t=e.map(e=>e.payload).filter(e=>e!=null);return Array.from(new Set(t))}});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 uA(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){dA(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 dA(e,t,n){return(t=fA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fA(e){var t=pA(e,`string`);return typeof t==`symbol`?t:t+``}function pA(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 mA=()=>W(SD),hA=()=>{var e=mA(),t=W(Zk),n=W(Xk);return wm(!e||!n?void 0:uA(uA({},e),{},{scale:n}),t)};function gA(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 _A(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?gA(Object(n),!0).forEach(function(t){vA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vA(e,t,n){return(t=yA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yA(e){var t=bA(e,`string`);return typeof t==`symbol`?t:t+``}function bA(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 xA=(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}},SA=(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 _A(_A(_A({},r),yy(r.cx,r.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,{angle:c}=r;return _A(_A(_A({},r),yy(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 CA(e,t){var{relativeX:n,relativeY:r}=e;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var wA=(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(hl(c-s)!==hl(l-c)){var d=[];if(hl(l-c)===hl(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},TA=()=>W(fb),EA=(e,t)=>t,DA=(e,t,n)=>n,OA=(e,t,n,r)=>r,kA=G(Zk,e=>(0,ad.default)(e,e=>e.coordinate)),AA=G([xk,EA,DA,OA],pk),jA=G([AA,Lk,CD,Kk],_k),MA=(e,t,n)=>{if(t!=null){var r=xk(e);return t===`axis`?n===`hover`?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n===`hover`?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},NA=G([xk,EA,DA,OA],yk),PA=G([km,Am,Ah,qm,Zk,OA,NA],vk),FA=G([AA,PA],(e,t)=>e.coordinate??t),IA=G([Zk,jA],UO),LA=G([NA,jA,qy,CD,IA,bk,EA],Nk),RA=G([AA,jA],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),zA=(e,t,n,r,i,a,o)=>{if(!(!e||!n||!r||!i)&&CA(e,o)){var s=wA(Dm(e,t),a,i,n,r),c=xA(t,i,s,e);return{activeIndex:String(s),activeCoordinate:c}}},BA=(e,t,n,r,i,a,o)=>{if(!(!e||!r||!i||!a||!n)){var s=Ty(e,n);if(s){var c=wA(Om(s,t),o,a,r,i),l=SA(t,a,c,s);return{activeIndex:String(c),activeCoordinate:l}}}},VA=(e,t,n,r,i,a,o,s)=>{if(!(!e||!t||!r||!i||!a))return t===`horizontal`||t===`vertical`?zA(e,t,r,i,a,o,s):BA(e,t,n,r,i,a,o)},HA=G(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}}),UA=G(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(gb));return Array.from(new Set(t)).sort((e,t)=>e-t)},{memoizeOptions:{resultEqualityCheck:Wb}});function WA(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 GA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?WA(Object(n),!0).forEach(function(t){KA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function KA(e,t,n){return(t=qA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qA(e){var t=JA(e,`string`);return typeof t==`symbol`?t:t+``}function JA(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 YA={zIndexMap:Object.values(gb).reduce((e,t)=>GA(GA({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},XA=new Set(Object.values(gb));function ZA(e){return XA.has(e)}var QA=pp({name:`zIndex`,initialState:YA,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:K()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(--e.zIndexMap[n].consumers,e.zIndexMap[n].consumers<=0&&!ZA(n)&&delete e.zIndexMap[n])},prepare:K()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:r,isPanorama:i}=t.payload;e.zIndexMap[n]?i?e.zIndexMap[n].panoramaElement=J(r):e.zIndexMap[n].element=J(r):e.zIndexMap[n]={consumers:0,element:i?void 0:J(r),panoramaElement:i?J(r):void 0}},prepare:K()},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:K()}}}),{registerZIndexPortal:$A,unregisterZIndexPortal:ej,registerZIndexPortalElement:tj,unregisterZIndexPortalElement:nj}=QA.actions,rj=QA.reducer;function ij(e){var{zIndex:t,children:n}=e,r=Nh()&&t!==void 0&&t!==0,i=Xm(),a=Pu();(0,B.useLayoutEffect)(()=>r?(a($A({zIndex:t})),()=>{a(ej({zIndex:t}))}):Ol,[a,t,r]);var o=W(e=>HA(e,t,i));return r?o?(0,xo.createPortal)(n,o):null:n}function aj(){return aj=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},aj.apply(null,arguments)}function oj(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 sj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?oj(Object(n),!0).forEach(function(t){cj(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cj(e,t,n){return(t=lj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lj(e){var t=uj(e,`string`);return typeof t==`symbol`?t:t+``}function uj(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 dj(e){var{cursor:t,cursorComp:n,cursorProps:r}=e;return(0,B.isValidElement)(t)?(0,B.cloneElement)(t,r):(0,B.createElement)(n,r)}function fj(e){var{coordinate:t,payload:n,index:r,offset:i,tooltipAxisBandSize:a,layout:o,cursor:s,tooltipEventType:c,chartName:l}=e,u=t,d=n,f=r;if(!s||!u||l!==`ScatterChart`&&c!==`axis`)return null;var p,m,h;if(l===`ScatterChart`)p=u,m=ev,h=gb.cursorLine;else if(l===`BarChart`)p=tv(o,u,i,a),m=dy,h=gb.cursorRectangle;else if(o===`radial`&&Wl(u)){var{cx:g,cy:_,radius:v,startAngle:y,endAngle:b}=Ey(u);p={cx:g,cy:_,startAngle:y,endAngle:b,innerRadius:v,outerRadius:v},m=Vy,h=gb.cursorLine}else p={points:Hy(o,u,i)},m=U_,h=gb.cursorLine;var x=typeof s==`object`&&`className`in s?s.className:void 0,S=sj(sj(sj(sj({stroke:`#ccc`,pointerEvents:`none`},i),p),Cs(s)),{},{payload:d,payloadIndex:f,className:hs(`recharts-tooltip-cursor`,x)});return B.createElement(ij,{zIndex:e.zIndex??h},B.createElement(dj,{cursor:s,cursorComp:m,cursorProps:S}))}function pj(e){var t=hA(),n=Dh(),r=jh(),i=TA();return t==null||n==null||r==null||i==null?null:B.createElement(fj,aj({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var mj=(0,B.createContext)(null),hj=()=>(0,B.useContext)(mj),gj=t(n(((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,_j=new gj,vj=`recharts.syncEvent.tooltip`,yj=`recharts.syncEvent.brush`,bj=(e,t)=>{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!gl(n))return e[n]}},xj=pp({name:`options`,initialState:{chartName:``,tooltipPayloadSearcher:()=>void 0,eventEmitter:void 0,defaultTooltipEventType:`axis`},reducers:{createEventEmitter:e=>{e.eventEmitter??=Symbol(`rechartsEventEmitter`)}}}),Sj=xj.reducer,{createEventEmitter:Cj}=xj.actions;function wj(e){return e.tooltip.syncInteraction}var Tj=pp({name:`chartData`,initialState:{chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},reducers:{setChartData(e,t){if(e.chartData=J(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:Ej,setDataStartEndIndexes:Dj,setComputedData:Oj}=Tj.actions,kj=Tj.reducer,Aj=[`x`,`y`];function jj(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 Mj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jj(Object(n),!0).forEach(function(t){Nj(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nj(e,t,n){return(t=Pj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pj(e){var t=Fj(e,`string`);return typeof t==`symbol`?t:t+``}function Fj(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 Ij(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}function Rj(){var e=W(pb),t=W(hb),n=Pu(),r=W(mb),i=W(Zk),a=jh(),o=Th();(0,B.useEffect)(()=>{if(e==null)return Ol;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=Ij(d,Aj),{x:h,y:g,width:_,height:v}=c.payload.sourceViewBox,y=Mj(Mj({},m),{},{x:o.x+(_?(f-h)/_:0)*o.width,y:o.y+(v?(p-g)/v:0)*o.height});n(Mj(Mj({},c),{},{payload:Mj(Mj({},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(rk({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(rk({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 _j.on(vj,s),()=>{_j.off(vj,s)}},[W(e=>e.rootProps.className),n,t,e,r,i,a,o])}function zj(){var e=W(pb),t=W(hb),n=Pu();(0,B.useEffect)(()=>{if(e==null)return Ol;var r=(r,i,a)=>{t!==a&&e===r&&n(Dj(i))};return _j.on(yj,r),()=>{_j.off(yj,r)}},[n,t,e])}function Bj(){var e=Pu();(0,B.useEffect)(()=>{e(Cj())},[e]),Rj(),zj()}function Vj(e,t,n,r,i,a){var o=W(n=>MA(n,e,t)),s=W(aA),c=W(hb),l=W(pb),u=W(mb),d=W(wj)?.active,f=Th();(0,B.useEffect)(()=>{if(!d&&l!=null&&c!=null){var e=rk({active:a,coordinate:n,dataKey:o,index:i,label:typeof r==`number`?String(r):r,sourceViewBox:f,graphicalItemId:s});_j.emit(vj,l,e,c)}},[d,n,o,s,i,r,c,l,u,a,f])}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){return e.dataKey}function Jj(e,t){return B.isValidElement(e)?B.cloneElement(e,t):typeof e==`function`?B.createElement(e,t):B.createElement(d_,t)}var Yj=[],Xj={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:`ease`,axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:`auto`,itemSorter:`name`,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:` : `,trigger:`hover`,useTranslate3d:!1,wrapperStyle:{}};function Zj(e){var t=$l(e,Xj),{active:n,allowEscapeViewBox:r,animationDuration:i,animationEasing:a,content:o,filterNull:s,isAnimationActive:c,offset:l,payloadUniqBy:u,position:d,reverseDirection:f,useTranslate3d:p,wrapperStyle:m,cursor:h,shared:g,trigger:_,defaultIndex:v,portal:y,axisId:b}=t,x=Pu(),S=typeof v==`number`?String(v):v;(0,B.useEffect)(()=>{x(XO({shared:g,trigger:_,axisId:b,active:n,defaultIndex:S}))},[x,g,_,b,n,S]);var C=Th(),w=O_(),T=HO(g),{activeIndex:E,isActive:D}=W(e=>RA(e,T,_,S))??{},O=W(e=>LA(e,T,_,S)),k=W(e=>IA(e,T,_,S)),A=W(e=>FA(e,T,_,S)),j=O,M=hj(),N=n??D??!1,[ee,P]=ld([j,N]),F=T===`axis`?k:void 0;Vj(T,_,A,F,E,N);var te=y??M;if(te==null||C==null||T==null)return null;var I=j??Yj;N||(I=Yj),s&&I.length&&(I=ju(I.filter(e=>e.value!=null&&(e.hide!==!0||t.includeHidden)),u,qj));var ne=I.length>0,re=Uj(Uj({},t),{},{payload:I,label:F,active:N,activeIndex:E,coordinate:A,accessibilityLayer:w}),L=B.createElement(D_,{allowEscapeViewBox:r,animationDuration:i,animationEasing:a,isAnimationActive:c,active:N,coordinate:A,hasPayload:ne,offset:l,position:d,reverseDirection:f,useTranslate3d:p,viewBox:C,wrapperStyle:m,lastBoundingBox:ee,innerRef:P,hasPortalFromProps:!!y},Jj(o,re));return B.createElement(B.Fragment,null,(0,xo.createPortal)(L,te),N&&B.createElement(pj,{cursor:h,tooltipEventType:T,coordinate:A,payload:I,index:E}))}var Qj=e=>null;Qj.displayName=`Cell`;function $j(e,t,n){return(t=eM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eM(e){var t=tM(e,`string`);return typeof t==`symbol`?t:t+``}function tM(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 nM=class{constructor(e){$j(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 rM(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 iM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?rM(Object(n),!0).forEach(function(t){aM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aM(e,t,n){return(t=oM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oM(e){var t=sM(e,`string`);return typeof t==`symbol`?t:t+``}function sM(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 cM=iM({},{cacheSize:2e3,enableCache:!0}),lM=new nM(cM.cacheSize),uM={position:`absolute`,top:`-20000px`,left:0,padding:0,margin:0,border:`none`,whiteSpace:`pre`},dM=`recharts_measurement_span`;function fM(e,t){return`${e}|${t.fontSize||``}|${t.fontFamily||``}|${t.fontWeight||``}|${t.fontStyle||``}|${t.letterSpacing||``}|${t.textTransform||``}`}var pM=(e,t)=>{try{var n=document.getElementById(dM);n||(n=document.createElement(`span`),n.setAttribute(`id`,dM),n.setAttribute(`aria-hidden`,`true`),document.body.appendChild(n)),Object.assign(n.style,uM,t),n.textContent=`${e}`;var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},mM=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||v_.isSsr)return{width:0,height:0};if(!cM.enableCache)return pM(e,t);var n=fM(e,t),r=lM.get(n);if(r)return r;var i=pM(e,t);return lM.set(n,i),i},hM;function gM(e,t,n){return(t=_M(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _M(e){var t=vM(e,`string`);return typeof t==`symbol`?t:t+``}function vM(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 yM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,bM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,xM=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,SM=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,CM={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},wM=[`cm`,`mm`,`pt`,`pc`,`in`,`Q`,`px`];function TM(e){return wM.includes(e)}var EM=`NaN`;function DM(e,t){return e*CM[t]}var OM=class e{static parse(t){var[,n,r]=SM.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,gl(e)&&(this.unit=``),t!==``&&!xM.test(t)&&(this.num=NaN,this.unit=``),TM(t)&&(this.num=DM(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 gl(this.num)}};hM=OM,gM(OM,`NaN`,new hM(NaN,``));function kM(e){if(e==null||e.includes(EM))return EM;for(var t=e;t.includes(`*`)||t.includes(`/`);){var[,n,r,i]=yM.exec(t)??[],a=OM.parse(n??``),o=OM.parse(i??``),s=r===`*`?a.multiply(o):a.divide(o);if(s.isNaN())return EM;t=t.replace(yM,s.toString())}for(;t.includes(`+`)||/.-\d+(?:\.\d+)?/.test(t);){var[,c,l,u]=bM.exec(t)??[],d=OM.parse(c??``),f=OM.parse(u??``),p=l===`+`?d.add(f):d.subtract(f);if(p.isNaN())return EM;t=t.replace(bM,p.toString())}return t}var AM=/\(([^()]*)\)/;function jM(e){for(var t=e,n;(n=AM.exec(t))!=null;){var[,r]=n;t=t.replace(AM,kM(r))}return t}function MM(e){var t=e.replace(/\s+/g,``);return t=jM(t),t=kM(t),t}function NM(e){try{return MM(e)}catch{return EM}}function PM(e){var t=NM(e.slice(5,-1));return t===EM?``:t}var FM=[`x`,`y`,`lineHeight`,`capHeight`,`fill`,`scaleToFit`,`textAnchor`,`verticalAnchor`],IM=[`dx`,`dy`,`angle`,`className`,`breakAll`];function LM(){return LM=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},LM.apply(null,arguments)}function RM(e,t){if(e==null)return{};var n,r,i=zM(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 zM(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 BM=/[ \f\n\r\t\v\u2028\u2029]+/,VM=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];return Tl(t)||(i=n?t.toString().split(``):t.toString().split(BM)),{wordsWithComputedWidth:i.map(e=>({word:e,width:mM(e,r).width})),spaceWidth:n?0:mM(`\xA0`,r).width}}catch{return null}};function HM(e){return e===`start`||e===`middle`||e===`end`||e===`inherit`}function UM(e){return Tl(e)||typeof e==`string`||typeof e==`number`||typeof e==`boolean`}var WM=(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},[]),GM=e=>e.reduce((e,t)=>e.width>t.width?e:t),KM=`…`,qM=(e,t,n,r,i,a,o,s)=>{var c=VM({breakAll:n,style:r,children:e.slice(0,t)+KM});if(!c)return[!1,[]];var l=WM(c.wordsWithComputedWidth,a,o,s);return[l.length>i||GM(l).width>Number(a),l]},JM=(e,t,n,r,i)=>{var{maxLines:a,children:o,style:s,breakAll:c}=e,l=U(a),u=String(o),d=WM(t,r,n,i);if(!l||i||!(d.length>a||GM(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]=qM(u,g-1,c,s,a,r,n,i),[y]=qM(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},YM=e=>[{words:Tl(e)?[]:e.toString().split(BM),width:void 0}],XM=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:a,maxLines:o}=e;if((t||n)&&!v_.isSsr){var s,c,l=VM({breakAll:a,children:r,style:i});if(l){var{wordsWithComputedWidth:u,spaceWidth:d}=l;s=u,c=d}else return YM(r);return JM({breakAll:a,children:r,maxLines:o,style:i},s,c,t,!!n)}return YM(r)},ZM=`#808080`,QM={angle:0,breakAll:!1,capHeight:`0.71em`,fill:ZM,lineHeight:`1em`,scaleToFit:!1,textAnchor:`start`,verticalAnchor:`end`,x:0,y:0},$M=(0,B.forwardRef)((e,t)=>{var n=$l(e,QM),{x:r,y:i,lineHeight:a,capHeight:o,fill:s,scaleToFit:c,textAnchor:l,verticalAnchor:u}=n,d=RM(n,FM),f=(0,B.useMemo)(()=>XM({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=RM(d,IM);if(!vl(r)||!vl(i)||f.length===0)return null;var y=Number(r)+(U(p)?p:0),b=Number(i)+(U(m)?m:0);if(!q(y)||!q(b))return null;var x;switch(u){case`start`:x=PM(`calc(${o})`);break;case`middle`:x=PM(`calc(${(f.length-1)/2} * -${a} + (${o} / 2))`);break;default:x=PM(`calc(${f.length-1} * -${a})`);break}var S=[],C=f[0];if(c&&C!=null){var w=C.width,{width:T}=d;S.push(`scale(${U(T)&&U(w)?T/w:1})`)}return h&&S.push(`rotate(${h}, ${y}, ${b})`),S.length&&(v.transform=S.join(` `)),B.createElement(`text`,LM({},ws(v),{ref:t,x:y,y:b,className:hs(`recharts-text`,g),textAnchor:l,fill:s.includes(`url`)?ZM:s}),f.map((e,t)=>{var n=e.words.join(_?``:` `);return B.createElement(`tspan`,{x:y,dy:t===0?x:a,key:`${n}-${t}`},n)}))});$M.displayName=`Text`;function eN(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 tN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?eN(Object(n),!0).forEach(function(t){nN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nN(e,t,n){return(t=rN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rN(e){var t=iN(e,`string`);return typeof t==`symbol`?t:t+``}function iN(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 aN=e=>{var{viewBox:t,position:n,offset:r=0,parentViewBox:i,clamp:a}=e,{x:o,y:s,height:c,upperWidth:l,lowerWidth:u}=wh(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`?tN({x:p+x,y:s+c/2,horizontalAnchor:C,verticalAnchor:`middle`},k):n===`insideRight`?tN({x:p+m-x,y:s+c/2,horizontalAnchor:S,verticalAnchor:`middle`},k):n===`insideTop`?tN({x:d+l/2,y:s+_,horizontalAnchor:`middle`,verticalAnchor:y},k):n===`insideBottom`?tN({x:f+u/2,y:s+c-_,horizontalAnchor:`middle`,verticalAnchor:v},k):n===`insideTopLeft`?tN({x:d+x,y:s+_,horizontalAnchor:C,verticalAnchor:y},k):n===`insideTopRight`?tN({x:d+l-x,y:s+_,horizontalAnchor:S,verticalAnchor:y},k):n===`insideBottomLeft`?tN({x:f+x,y:s+c-_,horizontalAnchor:C,verticalAnchor:v},k):n===`insideBottomRight`?tN({x:f+u-x,y:s+c-_,horizontalAnchor:S,verticalAnchor:v},k):n&&typeof n==`object`&&(U(n.x)||_l(n.x))&&(U(n.y)||_l(n.y))?tN({x:o+xl(n.x,m),y:s+xl(n.y,c),horizontalAnchor:`end`,verticalAnchor:`end`},k):tN({x:h,y:s+c/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},k)},oN=[`labelRef`],sN=[`content`];function cN(e,t){if(e==null)return{};var n,r,i=lN(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 lN(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 uN(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 dN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uN(Object(n),!0).forEach(function(t){fN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fN(e,t,n){return(t=pN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pN(e){var t=mN(e,`string`);return typeof t==`symbol`?t:t+``}function mN(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 hN(){return hN=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},hN.apply(null,arguments)}var gN=(0,B.createContext)(null),_N=()=>{var e=(0,B.useContext)(gN),t=Th();return e||(t?wh(t):void 0)},vN=(0,B.createContext)(null),yN=()=>{var e=(0,B.useContext)(vN),t=W(Ib);return e||t},bN=e=>{var{value:t,formatter:n}=e,r=Tl(e.children)?t:e.children;return typeof n==`function`?n(r):r},xN=e=>e!=null&&typeof e==`function`,SN=(e,t)=>hl(t-e)*Math.min(Math.abs(t-e),360),CN=(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=SN(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=yy(s,c,m,_),b=yy(s,c,m,_+(v?1:-1)*359),x=`M${y.x},${y.y}
|
|
35
|
+
A${m},${m},0,1,${+!v},
|
|
36
|
+
${b.x},${b.y}`,S=Tl(e.id)?bl(`recharts-radial-line-`):e.id;return B.createElement(`text`,hN({},r,{dominantBaseline:`central`,className:hs(`recharts-radial-bar-label`,o)}),B.createElement(`defs`,null,B.createElement(`path`,{id:S,d:x})),B.createElement(`textPath`,{xlinkHref:`#${S}`},n))},wN=(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}=yy(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}=yy(r,i,(a+o)/2,l);return{x:f,y:p,textAnchor:`middle`,verticalAnchor:`middle`}},TN=e=>e!=null&&`cx`in e&&U(e.cx),EN={angle:0,offset:5,zIndex:gb.label,position:`middle`,textBreakAll:!1};function DN(e){if(!TN(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 ON(e){var t=$l(e,EN),{viewBox:n,parentViewBox:r,position:i,value:a,children:o,content:s,className:c=``,textBreakAll:l,labelRef:u}=t,d=yN(),f=_N(),p=n==null?i===`center`?f:d??f:TN(n)?n:wh(n),m,h,g=DN(p);if(!p||Tl(a)&&Tl(o)&&!(0,B.isValidElement)(s)&&typeof s!=`function`)return null;var _=dN(dN({},t),{},{viewBox:p});if((0,B.isValidElement)(s)){var{labelRef:v}=_;return(0,B.cloneElement)(s,cN(_,oN))}if(typeof s==`function`){var{content:y}=_;if(m=(0,B.createElement)(s,cN(_,sN)),(0,B.isValidElement)(m))return m}else m=bN(t);var b=ws(t);if(TN(p)){if(i===`insideStart`||i===`insideEnd`||i===`end`)return CN(t,i,m,b,p);h=wN(p,t.offset,t.position)}else{if(!g)return null;var x=aN({viewBox:g,position:i,offset:t.offset,parentViewBox:TN(r)?void 0:r,clamp:!0});h=dN(dN({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 B.createElement(ij,{zIndex:t.zIndex},B.createElement($M,hN({ref:u,className:hs(`recharts-label`,c)},b,h,{textAnchor:HM(b.textAnchor)?b.textAnchor:h.textAnchor,breakAll:l}),m))}ON.displayName=`Label`;var kN=[`valueAccessor`],AN=[`dataKey`,`clockWise`,`id`,`textBreakAll`,`zIndex`];function jN(){return jN=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},jN.apply(null,arguments)}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 t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(UM(t))return t},FN=(0,B.createContext)(void 0);FN.Provider;var IN=(0,B.createContext)(void 0),LN=IN.Provider;function RN(){return(0,B.useContext)(FN)}function zN(){return(0,B.useContext)(IN)}function BN(e){var{valueAccessor:t=PN}=e,n=MN(e,kN),{dataKey:r,clockWise:i,id:a,textBreakAll:o,zIndex:s}=n,c=MN(n,AN),l=RN(),u=zN(),d=l||u;return!d||!d.length?null:B.createElement(ij,{zIndex:s??gb.label},B.createElement(Ps,{className:`recharts-label-list`},d.map((e,i)=>{var s=Tl(r)?t(e,i):mm(e.payload,r),l=Tl(a)?{}:{id:`${a}-${i}`};return B.createElement(ON,jN({key:`label-${i}`},ws(e),c,l,{fill:n.fill??e.fill,parentViewBox:e.parentViewBox,value:s,textBreakAll:o,viewBox:e.viewBox,index:i,zIndex:0}))})))}BN.displayName=`LabelList`;function VN(e){var{label:t}=e;return t?t===!0?B.createElement(BN,{key:`labelList-implicit`}):B.isValidElement(t)||xN(t)?B.createElement(BN,{key:`labelList-implicit`,content:t}):typeof t==`object`?B.createElement(BN,jN({key:`labelList-implicit`},t,{type:String(t.type)})):null:null}var HN=e=>e.graphicalItems.polarItems,UN=G([HN,ZE,G([Lb,Rb],tD)],iD),WN=G([G([UN],lD),Jy],dD),GN=G([WN,ZE,UN],pD);G([WN,ZE,UN],(e,t,n)=>n.length>0?e.flatMap(e=>n.flatMap(n=>({value:mm(e,t.dataKey??n.dataKey),errorDomain:[]}))).filter(Boolean):t?.dataKey==null?e.map(e=>({value:e,errorDomain:[]})):e.map(e=>({value:mm(e,t.dataKey),errorDomain:[]})));var KN=()=>void 0,qN=G([ZE,Ah,WN,GN,ub,Lb,G([ZE,AD,jD,KN,G([WN,ZE,UN,ND,Lb],ID),KN,Ah,Lb],tO)],iO);G([oO,G([ZE,qN,G([qN,$E,oO],sO),Lb],lO)],Jb);var JN=pp({name:`polarAxis`,initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=J(t.payload)},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=J(t.payload)},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:YN,removeRadiusAxis:XN,addAngleAxis:ZN,removeAngleAxis:QN}=JN.actions,$N=JN.reducer;function eP(e){return e&&typeof e==`object`&&`className`in e&&typeof e.className==`string`?e.className:``}function tP(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 nP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tP(Object(n),!0).forEach(function(t){rP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rP(e,t,n){return(t=iP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iP(e){var t=aP(e,`string`);return typeof t==`symbol`?t:t+``}function aP(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 oP=G([HN,(e,t)=>t],(e,t)=>e.filter(e=>e.type===`pie`).find(e=>e.id===t)),sP=[],cP=(e,t,n)=>n?.length===0?sP:n,lP=G([Jy,oP,cP],(e,t,n)=>{var{chartData:r}=e;if(t!=null){var i=t?.data!=null&&t.data.length>0?t.data:r;if((!i||!i.length)&&n!=null&&(i=n.map(e=>nP(nP({},t.presentationProps),e.props))),i!=null)return i}}),uP=G([lP,oP,cP],(e,t,n)=>{if(!(e==null||t==null))return e.map((e,r)=>{var i,a=mm(e,t.nameKey,t.name),o=n!=null&&(i=n[r])!=null&&(i=i.props)!=null&&i.fill?n[r].props.fill:typeof e==`object`&&e&&`fill`in e?e.fill:t.fill;return{value:Em(a,t.dataKey),color:o,payload:e,type:t.legendType}})}),dP=G([lP,oP,cP,qm],(e,t,n,r)=>{if(!(t==null||e==null))return RF({offset:r,pieSettings:t,displayedData:e,cells:n})}),fP=n((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}})),pP=n(((e,t)=>{t.exports=fP()}))(),mP=e=>typeof e==`string`?e:e?e.displayName||e.name||`Component`:``,hP=null,gP=null,_P=e=>{if(e===hP&&Array.isArray(gP))return gP;var t=[];return B.Children.forEach(e,e=>{Tl(e)||((0,pP.isFragment)(e)?t=t.concat(_P(e.props.children)):t.push(e))}),gP=t,hP=e,t};function vP(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(e=>mP(e)):[mP(t)],_P(e).forEach(e=>{var t=(0,dl.default)(e,`type.displayName`)||(0,dl.default)(e,`type.name`);t&&r.indexOf(t)!==-1&&n.push(e)}),n}var yP=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(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}e.isPlainObject=t})),bP=n(((e,t)=>{t.exports=yP().isPlainObject})),xP,SP,CP,wP,TP;function EP(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 DP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?EP(Object(n),!0).forEach(function(t){OP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function OP(e,t,n){return(t=kP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kP(e){var t=AP(e,`string`);return typeof t==`symbol`?t:t+``}function AP(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 jP(){return jP=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},jP.apply(null,arguments)}function MP(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var NP=(e,t,n,r,i)=>{var a=n-r,o=ml(xP||=MP([`M `,`,`,``]),e,t);return o+=ml(SP||=MP([`L `,`,`,``]),e+n,t),o+=ml(CP||=MP([`L `,`,`,``]),e+n-a/2,t+i),o+=ml(wP||=MP([`L `,`,`,``]),e+n-a/2-r,t+i),o+=ml(TP||=MP([`L `,`,`,` Z`]),e,t),o},PP={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},FP=e=>{var t=$l(e,PP),{x:n,y:r,upperWidth:i,lowerWidth:a,height:o,className:s}=t,{animationEasing:c,animationDuration:l,animationBegin:u,isUpdateAnimationActive:d}=t,f=(0,B.useRef)(null),[p,m]=(0,B.useState)(-1),h=(0,B.useRef)(i),g=(0,B.useRef)(a),_=(0,B.useRef)(o),v=(0,B.useRef)(n),y=(0,B.useRef)(r),b=Vv(e,`trapezoid-`);if((0,B.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=hs(`recharts-trapezoid`,s);if(!d)return B.createElement(`g`,null,B.createElement(`path`,jP({},ws(t),{className:x,d:NP(n,r,i,a,o)})));var S=h.current,C=g.current,w=_.current,T=v.current,E=y.current,D=`0px ${p===-1?1:p}px`,O=`${p}px ${p}px`,k=cv([`strokeDasharray`],l,c);return B.createElement(Bv,{animationId:b,key:b,canBegin:p>0,duration:l,easing:c,isActive:d,begin:u},e=>{var s=Cl(S,i,e),c=Cl(C,a,e),l=Cl(w,o,e),u=Cl(T,n,e),d=Cl(E,r,e);f.current&&(h.current=s,g.current=c,_.current=l,v.current=u,y.current=d);var p=e>0?{transition:k,strokeDasharray:O}:{strokeDasharray:D};return B.createElement(`path`,jP({},ws(t),{className:x,d:NP(u,d,s,c,l),ref:f,style:DP(DP({},p),t.style)}))})},IP=t(bP()),LP=[`option`,`shapeType`,`activeClassName`,`inActiveClassName`];function RP(e,t){if(e==null)return{};var n,r,i=zP(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 zP(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 BP(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 VP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?BP(Object(n),!0).forEach(function(t){HP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function HP(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=WP(e,`string`);return typeof t==`symbol`?t:t+``}function WP(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 GP(e,t){return VP(VP({},t),e)}function KP(e,t){return e===`symbols`}function qP(e){var{shapeType:t,elementProps:n}=e;switch(t){case`rectangle`:return B.createElement(dy,n);case`trapezoid`:return B.createElement(FP,n);case`sector`:return B.createElement(Vy,n);case`symbols`:if(KP(t,n))return B.createElement(Ul,n);break;case`curve`:return B.createElement(U_,n);default:return null}}function JP(e){return(0,B.isValidElement)(e)?e.props:e}function YP(e){var{option:t,shapeType:n,activeClassName:r=`recharts-active-shape`,inActiveClassName:i=`recharts-shape`}=e,a=RP(e,LP),o;if((0,B.isValidElement)(t))o=(0,B.cloneElement)(t,VP(VP({},a),JP(t)));else if(typeof t==`function`)o=t(a,a.index);else if((0,IP.default)(t)&&typeof t!=`boolean`){var s=GP(t,a);o=B.createElement(qP,{shapeType:n,elementProps:s})}else{var c=a;o=B.createElement(qP,{shapeType:n,elementProps:c})}return a.isActive?B.createElement(Ps,{className:r},o):B.createElement(Ps,{className:i},o)}var XP=(e,t,n)=>{var r=Pu();return(i,a)=>o=>{e?.(i,a,o),r(ZO({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}},ZP=e=>{var t=Pu();return(n,r)=>i=>{e?.(n,r,i),t(QO())}},QP=(e,t,n)=>{var r=Pu();return(i,a)=>o=>{e?.(i,a,o),r(ek({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}};function $P(e){var{tooltipEntrySettings:t}=e,n=Pu(),r=Xm(),i=(0,B.useRef)(null);return(0,B.useLayoutEffect)(()=>{r||(i.current===null?n(qO(t)):i.current!==t&&n(JO({prev:i.current,next:t})),i.current=t)},[t,n,r]),(0,B.useLayoutEffect)(()=>()=>{i.current&&=(n(YO(i.current)),null)},[n]),null}function eF(e){var{legendPayload:t}=e,n=Pu(),r=W(Ah),i=(0,B.useRef)(null);return(0,B.useLayoutEffect)(()=>{r!==`centric`&&r!==`radial`||(i.current===null?n(Ng(t)):i.current!==t&&n(Pg({prev:i.current,next:t})),i.current=t)},[n,r,t]),(0,B.useLayoutEffect)(()=>()=>{i.current&&=(n(Fg(i.current)),null)},[n]),null}var tF=B.useId??(()=>{var[e]=B.useState(()=>bl(`uid-`));return e});function nF(e,t){var n=tF();return t||(e?`${e}-${n}`:n)}var rF=(0,B.createContext)(void 0),iF=e=>{var{id:t,type:n,children:r}=e,i=nF(`recharts-${n}`,t);return B.createElement(rF.Provider,{value:i},r(i))},aF=pp({name:`graphicalItems`,initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(J(t.payload))},prepare:K()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Bf(e).cartesianItems.indexOf(J(n));i>-1&&(e.cartesianItems[i]=J(r))},prepare:K()},removeCartesianGraphicalItem:{reducer(e,t){var n=Bf(e).cartesianItems.indexOf(J(t.payload));n>-1&&e.cartesianItems.splice(n,1)},prepare:K()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(J(t.payload))},prepare:K()},removePolarGraphicalItem:{reducer(e,t){var n=Bf(e).polarItems.indexOf(J(t.payload));n>-1&&e.polarItems.splice(n,1)},prepare:K()},replacePolarGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Bf(e).polarItems.indexOf(J(n));i>-1&&(e.polarItems[i]=J(r))},prepare:K()}}}),{addCartesianGraphicalItem:oF,replaceCartesianGraphicalItem:sF,removeCartesianGraphicalItem:cF,addPolarGraphicalItem:lF,removePolarGraphicalItem:uF,replacePolarGraphicalItem:dF}=aF.actions,fF=aF.reducer,pF=(0,B.memo)(e=>{var t=Pu(),n=(0,B.useRef)(null);return(0,B.useLayoutEffect)(()=>{n.current===null?t(lF(e)):n.current!==e&&t(dF({prev:n.current,next:e})),n.current=e},[t,e]),(0,B.useLayoutEffect)(()=>()=>{n.current&&=(t(uF(n.current)),null)},[t]),null}),mF=[`key`],hF=[`onMouseEnter`,`onClick`,`onMouseLeave`],gF=[`id`],_F=[`id`];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)}function yF(e,t){if(e==null)return{};var n,r,i=bF(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 bF(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 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 SF(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){CF(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 CF(e,t,n){return(t=wF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wF(e){var t=TF(e,`string`);return typeof t==`symbol`?t:t+``}function TF(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 EF(e){var t=(0,B.useMemo)(()=>vP(e.children,Qj),[e.children]),n=W(n=>uP(n,e.id,t));return n==null?null:B.createElement(eF,{legendPayload:n})}function DF(e){if(!(e==null||typeof e==`boolean`||typeof e==`function`)){if(B.isValidElement(e)){var t=e.props?.fill;return typeof t==`string`?t:void 0}var{fill:n}=e;return typeof n==`string`?n:void 0}}var OF=B.memo(e=>{var{dataKey:t,nameKey:n,sectors:r,stroke:i,strokeWidth:a,fill:o,name:s,hide:c,tooltipType:l,id:u,activeShape:d}=e,f=DF(d),p={dataDefinedOnItem:r.map(e=>{var t=e.tooltipPayload;return f==null||t==null?t:t.map(e=>SF(SF({},e),{},{color:f,fill:f}))}),getPosition:e=>r[Number(e)]?.tooltipPosition,settings:{stroke:i,strokeWidth:a,fill:o,dataKey:t,nameKey:n,name:Em(s,t),hide:c,type:l,color:o,unit:``,graphicalItemId:u}};return B.createElement($P,{tooltipEntrySettings:p})}),kF=(e,t)=>e>t?`start`:e<t?`end`:`middle`,AF=(e,t,n)=>xl(typeof t==`function`?t(e):t,n,n*.8),jF=(e,t,n)=>{var{top:r,left:i,width:a,height:o}=t,s=by(a,o);return{cx:i+xl(e.cx,a,a/2),cy:r+xl(e.cy,o,o/2),innerRadius:xl(e.innerRadius,s,0),outerRadius:AF(n,e.outerRadius,s),maxRadius:e.maxRadius||Math.sqrt(a*a+o*o)/2}},MF=(e,t)=>hl(t-e)*Math.min(Math.abs(t-e),360),NF=(e,t)=>{if(B.isValidElement(e))return B.cloneElement(e,t);if(typeof e==`function`)return e(t);var n=hs(`recharts-pie-label-line`,typeof e==`boolean`?``:e.className),{key:r}=t,i=yF(t,mF);return B.createElement(U_,vF({},i,{type:`linear`,className:n}))},PF=(e,t,n)=>{if(B.isValidElement(e))return B.cloneElement(e,t);var r=n;if(typeof e==`function`&&(r=e(t),B.isValidElement(r)))return r;var i=hs(`recharts-pie-label-text`,eP(e));return B.createElement($M,vF({},t,{alignmentBaseline:`middle`,className:i}),r)};function FF(e){var{sectors:t,props:n,showLabels:r}=e,{label:i,labelLine:a,dataKey:o}=n;if(!r||!i||!t)return null;var s=Ss(n),c=Cs(i),l=Cs(a),u=typeof i==`object`&&`offsetRadius`in i&&typeof i.offsetRadius==`number`&&i.offsetRadius||20,d=t.map((e,t)=>{var n=(e.startAngle+e.endAngle)/2,r=yy(e.cx,e.cy,e.outerRadius+u,n),d=SF(SF(SF(SF({},s),e),{},{stroke:`none`},c),{},{index:t,textAnchor:kF(r.x,e.cx)},r),f=SF(SF(SF(SF({},s),e),{},{fill:`none`,stroke:e.fill},l),{},{index:t,points:[yy(e.cx,e.cy,e.outerRadius,n),r],key:`line`});return B.createElement(ij,{zIndex:gb.label,key:`label-${e.startAngle}-${e.endAngle}-${e.midAngle}-${t}`},B.createElement(Ps,null,a&&NF(a,f),PF(i,d,mm(e,o))))});return B.createElement(Ps,{className:`recharts-pie-labels`},d)}function IF(e){var{sectors:t,props:n,showLabels:r}=e,{label:i}=n;return typeof i==`object`&&i&&`position`in i?B.createElement(VN,{label:i}):B.createElement(FF,{sectors:t,props:n,showLabels:r})}function LF(e){var{sectors:t,activeShape:n,inactiveShape:r,allOtherPieProps:i,shape:a,id:o}=e,s=W(nA),c=W(iA),l=W(aA),{onMouseEnter:u,onClick:d,onMouseLeave:f}=i,p=yF(i,hF),m=XP(u,i.dataKey,o),h=ZP(f),g=QP(d,i.dataKey,o);return t==null||t.length===0?null:B.createElement(B.Fragment,null,t.map((e,u)=>{if(e?.startAngle===0&&e?.endAngle===0&&t.length!==1)return null;var d=l==null||l===o,f=String(u)===s&&(c==null||i.dataKey===c)&&d,_=n&&f?n:s?r:null,v=SF(SF({},e),{},{stroke:e.stroke,tabIndex:-1,[Fm]:u,[Im]:o});return B.createElement(Ps,vF({key:`sector-${e?.startAngle}-${e?.endAngle}-${e.midAngle}-${u}`,tabIndex:-1,className:`recharts-pie-sector`},ql(p,e,u),{onMouseEnter:m(e,u),onMouseLeave:h(e,u),onClick:g(e,u)}),B.createElement(YP,vF({option:a??_,index:u,shapeType:`sector`,isActive:f},v)))}))}function RF(e){var{pieSettings:t,displayedData:n,cells:r,offset:i}=e,{cornerRadius:a,startAngle:o,endAngle:s,dataKey:c,nameKey:l,tooltipType:u}=t,d=Math.abs(t.minAngle),f=MF(o,s),p=Math.abs(f),m=n.length<=1?0:t.paddingAngle??0,h=n.filter(e=>mm(e,c,0)!==0).length,g=(p>=360?h:h-1)*m,_=p-h*d-g,v=n.reduce((e,t)=>{var n=mm(t,c,0);return e+(U(n)?n:0)},0),y;if(v>0){var b;y=n.map((e,n)=>{var s=mm(e,c,0),p=mm(e,l,n),h=jF(t,i,e),g=(U(s)?s:0)/v,y,x=SF(SF({},e),r&&r[n]&&r[n].props),S=x!=null&&`fill`in x&&typeof x.fill==`string`?x.fill:t.fill;y=n?b.endAngle+hl(f)*m*(s===0?0:1):o;var C=y+hl(f)*((s===0?0:d)+g*_),w=(y+C)/2,T=(h.innerRadius+h.outerRadius)/2,E=[{name:p,value:s,payload:x,dataKey:c,type:u,color:S,fill:S,graphicalItemId:t.id}],D=yy(h.cx,h.cy,T,w);return b=SF(SF(SF(SF({},t.presentationProps),{},{percent:g,cornerRadius:typeof a==`string`?parseFloat(a):a,name:p,tooltipPayload:E,midAngle:w,middleRadius:T,tooltipPosition:D},x),h),{},{value:s,dataKey:c,startAngle:y,endAngle:C,payload:x,paddingAngle:hl(f)*m}),b})}return y}function zF(e){var{showLabels:t,sectors:n,children:r}=e,i=(0,B.useMemo)(()=>!t||!n?[]:n.map(e=>({value:e.value,payload:e.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:e.cx,cy:e.cy,innerRadius:e.innerRadius,outerRadius:e.outerRadius,startAngle:e.startAngle,endAngle:e.endAngle,clockWise:!1},fill:e.fill})),[n,t]);return B.createElement(LN,{value:t?i:void 0},r)}function BF(e){var{props:t,previousSectorsRef:n,id:r}=e,{sectors:i,isAnimationActive:a,animationBegin:o,animationDuration:s,animationEasing:c,activeShape:l,inactiveShape:u,onAnimationStart:d,onAnimationEnd:f}=t,p=Vv(t,`recharts-pie-`),m=n.current,[h,g]=(0,B.useState)(!1),_=(0,B.useCallback)(()=>{typeof f==`function`&&f(),g(!1)},[f]),v=(0,B.useCallback)(()=>{typeof d==`function`&&d(),g(!0)},[d]);return B.createElement(zF,{showLabels:!h,sectors:i},B.createElement(Bv,{animationId:p,begin:o,duration:s,isActive:a,easing:c,onAnimationStart:v,onAnimationEnd:_,key:p},e=>{var a=[],o=(i&&i[0])?.startAngle??0;return i?.forEach((t,n)=>{var r=m&&m[n],i=n>0?(0,dl.default)(t,`paddingAngle`,0):0;if(r){var s=Cl(r.endAngle-r.startAngle,t.endAngle-t.startAngle,e),c=SF(SF({},t),{},{startAngle:o+i,endAngle:o+s+i});a.push(c),o=c.endAngle}else{var{endAngle:l,startAngle:u}=t,d=Cl(0,l-u,e),f=SF(SF({},t),{},{startAngle:o+i,endAngle:o+d+i});a.push(f),o=f.endAngle}}),n.current=a,B.createElement(Ps,null,B.createElement(LF,{sectors:a,activeShape:l,inactiveShape:u,allOtherPieProps:t,shape:t.shape,id:r}))}),B.createElement(IF,{showLabels:!h,sectors:i,props:t}),t.children)}var VF={animationBegin:400,animationDuration:1500,animationEasing:`ease`,cx:`50%`,cy:`50%`,dataKey:`value`,endAngle:360,fill:`#808080`,hide:!1,innerRadius:0,isAnimationActive:`auto`,label:!1,labelLine:!0,legendType:`rect`,minAngle:0,nameKey:`name`,outerRadius:`80%`,paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:`#fff`,zIndex:gb.area};function HF(e){var{id:t}=e,n=yF(e,gF),{hide:r,className:i,rootTabIndex:a}=e,o=(0,B.useMemo)(()=>vP(e.children,Qj),[e.children]),s=W(e=>dP(e,t,o)),c=(0,B.useRef)(null),l=hs(`recharts-pie`,i);return r||s==null?(c.current=null,B.createElement(Ps,{tabIndex:a,className:l})):B.createElement(ij,{zIndex:e.zIndex},B.createElement(OF,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:s,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t,activeShape:e.activeShape}),B.createElement(Ps,{tabIndex:a,className:l},B.createElement(BF,{props:SF(SF({},n),{},{sectors:s}),previousSectorsRef:c,id:t})))}function UF(e){var t=$l(e,VF),{id:n}=t,r=yF(t,_F),i=Ss(r);return B.createElement(iF,{id:n,type:`pie`},e=>B.createElement(B.Fragment,null,B.createElement(pF,{type:`pie`,id:e,data:r.data,dataKey:r.dataKey,hide:r.hide,angleAxisId:0,radiusAxisId:0,name:r.name,nameKey:r.nameKey,tooltipType:r.tooltipType,legendType:r.legendType,fill:r.fill,cx:r.cx,cy:r.cy,startAngle:r.startAngle,endAngle:r.endAngle,paddingAngle:r.paddingAngle,minAngle:r.minAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius,cornerRadius:r.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),B.createElement(EF,vF({},r,{id:e})),B.createElement(HF,vF({},r,{id:e}))))}var WF=UF;WF.displayName=`Pie`;function GF(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 KF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?GF(Object(n),!0).forEach(function(t){qF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qF(e,t,n){return(t=JF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JF(e){var t=YF(e,`string`);return typeof t==`symbol`?t:t+``}function YF(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 XF=pp({name:`cartesianAxis`,initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=J(t.payload)},prepare:K()},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]=J(r))},prepare:K()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:K()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=J(t.payload)},prepare:K()},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]=J(r))},prepare:K()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:K()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=J(t.payload)},prepare:K()},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]=J(r))},prepare:K()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:K()},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]=KF(KF({},i),{},{width:r,widthHistory:o})}}}}),{addXAxis:ZF,replaceXAxis:QF,removeXAxis:$F,addYAxis:eI,replaceYAxis:tI,removeYAxis:nI,addZAxis:rI,replaceZAxis:iI,removeZAxis:aI,updateYAxisWidth:oI}=XF.actions,sI=XF.reducer,cI=G([G([qm],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),km,Am],(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)}}),lI=()=>W(cI),uI=e=>{var{chartData:t}=e,n=Pu(),r=Xm();return(0,B.useEffect)(()=>r?()=>{}:(n(Ej(t)),()=>{n(Ej(void 0))}),[t,n,r]),null},dI={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},fI=pp({name:`brush`,initialState:dI,reducers:{setBrushSettings(e,t){return t.payload==null?dI:t.payload}}}),{setBrushSettings:pI}=fI.actions,mI=fI.reducer,hI=pp({name:`referenceElements`,initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=Bf(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=Bf(e).areas.findIndex(e=>e===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(J(t.payload))},removeLine:(e,t)=>{var n=Bf(e).lines.findIndex(e=>e===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:gI,removeDot:_I,addArea:vI,removeArea:yI,addLine:bI,removeLine:xI}=hI.actions,SI=hI.reducer,CI=(0,B.createContext)(void 0),wI=e=>{var{children:t}=e,[n]=(0,B.useState)(`${bl(`recharts`)}-clip`),r=lI();if(r==null)return null;var{x:i,y:a,width:o,height:s}=r;return B.createElement(CI.Provider,{value:n},B.createElement(`defs`,null,B.createElement(`clipPath`,{id:n},B.createElement(`rect`,{x:i,y:a,height:s,width:o}))),t)},TI=pp({name:`renderedTicks`,initialState:{xAxis:{},yAxis:{}},reducers:{setRenderedTicks:(e,t)=>{var{axisType:n,axisId:r,ticks:i}=t.payload;e[n][r]=J(i)},removeRenderedTicks:(e,t)=>{var{axisType:n,axisId:r}=t.payload;delete e[n][r]}}}),{setRenderedTicks:EI,removeRenderedTicks:DI}=TI.actions,OI=TI.reducer,kI=pp({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:AI,replaceErrorBar:jI,removeErrorBar:MI}=kI.actions,NI=kI.reducer,PI=G([(e,t)=>t,Ah,Ib,Gb,Yk,Zk,kA,qm],VA);function FI(e){return`getBBox`in e.currentTarget&&typeof e.currentTarget.getBBox==`function`}function II(e){var t=e.currentTarget.getBoundingClientRect(),n,r;if(FI(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 LI=qf(`mouseClick`),RI=$p();RI.startListening({actionCreator:LI,effect:(e,t)=>{var n=e.payload,r=PI(t.getState(),II(n));r?.activeIndex!=null&&t.dispatch(nk({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var zI=qf(`mouseMove`),BI=$p(),VI=null,HI=null,UI=null;BI.startListening({actionCreator:zI,effect:(e,t)=>{var n=e.payload,{throttleDelay:r,throttledEvents:i}=t.getState().eventSettings,a=i===`all`||i?.includes(`mousemove`);VI!==null&&(cancelAnimationFrame(VI),VI=null),HI!==null&&(typeof r!=`number`||!a)&&(clearTimeout(HI),HI=null),UI=II(n);var o=()=>{var e=t.getState(),n=VO(e,e.tooltip.settings.shared);if(!UI){VI=null,HI=null;return}if(n===`axis`){var r=PI(e,UI);r?.activeIndex==null?t.dispatch($O()):t.dispatch(tk({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}VI=null,HI=null};if(!a){o();return}r===`raf`?VI=requestAnimationFrame(o):typeof r==`number`&&HI===null&&(HI=setTimeout(o,r))}});function WI(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 GI={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},KI=pp({name:`rootProps`,initialState:GI,reducers:{updateOptions:(e,t)=>{e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=t.payload.barGap??GI.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}}}),qI=KI.reducer,{updateOptions:JI}=KI.actions,YI=pp({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:XI}=YI.actions,ZI=YI.reducer,QI=qf(`keyDown`),$I=qf(`focus`),eL=qf(`blur`),tL=$p(),nL=null,rL=null,iL=null;tL.startListening({actionCreator:QI,effect:(e,t)=>{iL=e.payload,nL!==null&&(cancelAnimationFrame(nL),nL=null);var{throttleDelay:n,throttledEvents:r}=t.getState().eventSettings,i=r===`all`||r.includes(`keydown`);rL!==null&&(typeof n!=`number`||!i)&&(clearTimeout(rL),rL=null);var a=()=>{try{var e=t.getState();if(e.rootProps.accessibilityLayer===!1)return;var{keyboardInteraction:n}=e.tooltip,r=iL;if(r!==`ArrowRight`&&r!==`ArrowLeft`&&r!==`Enter`)return;var i=_k(n,Lk(e),CD(e),Kk(e)),a=i==null?-1:Number(i);if(!Number.isFinite(a)||a<0)return;var o=Zk(e);if(r===`Enter`){var s=PA(e,`axis`,`hover`,String(n.index));t.dispatch(ik({active:!n.active,activeIndex:n.index,activeCoordinate:s}));return}var c=LO(e)===`left-to-right`?1:-1,l=a+(r===`ArrowRight`?1:-1)*c;if(o==null||l>=o.length||l<0)return;var u=PA(e,`axis`,`hover`,String(l));t.dispatch(ik({active:!0,activeIndex:l.toString(),activeCoordinate:u}))}finally{nL=null,rL=null}};if(!i){a();return}n===`raf`?nL=requestAnimationFrame(a):typeof n==`number`&&rL===null&&(a(),iL=null,rL=setTimeout(()=>{iL?a():(rL=null,nL=null)},n))}}),tL.startListening({actionCreator:$I,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=PA(n,`axis`,`hover`,String(i));t.dispatch(ik({active:!0,activeIndex:i,activeCoordinate:a}))}}}}),tL.startListening({actionCreator:eL,effect:(e,t)=>{var n=t.getState();if(n.rootProps.accessibilityLayer!==!1){var{keyboardInteraction:r}=n.tooltip;r.active&&t.dispatch(ik({active:!1,activeIndex:r.index,activeCoordinate:r.coordinate}))}}});function aL(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 oL=qf(`externalEvent`),sL=$p(),cL=new Map,lL=new Map,uL=new Map;sL.startListening({actionCreator:oL,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(n!=null){var i=r.type,a=aL(r);uL.set(i,{handler:n,reactEvent:a});var o=cL.get(i);o!==void 0&&(cancelAnimationFrame(o),cL.delete(i));var{throttleDelay:s,throttledEvents:c}=t.getState().eventSettings,l=c,u=l===`all`||l?.includes(i),d=lL.get(i);d!==void 0&&(typeof s!=`number`||!u)&&(clearTimeout(d),lL.delete(i));var f=()=>{var e=uL.get(i);try{if(!e)return;var{handler:n,reactEvent:r}=e,a=t.getState(),o={activeCoordinate:sA(a),activeDataKey:iA(a),activeIndex:nA(a),activeLabel:rA(a),activeTooltipIndex:nA(a),isTooltipActive:cA(a)};n&&n(o,r)}finally{cL.delete(i),lL.delete(i),uL.delete(i)}};if(!u){f();return}if(s===`raf`){var p=requestAnimationFrame(f);cL.set(i,p)}else if(typeof s==`number`){if(!lL.has(i)){f();var m=setTimeout(f,s);lL.set(i,m)}}else f()}}});var dL=G([G([xk],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)}}}),fL=qf(`touchMove`),pL=$p(),mL=null,hL=null,gL=null,_L=null;pL.startListening({actionCreator:fL,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){_L=aL(n);var{throttleDelay:r,throttledEvents:i}=t.getState().eventSettings,a=i===`all`||i.includes(`touchmove`);mL!==null&&(cancelAnimationFrame(mL),mL=null),hL!==null&&(typeof r!=`number`||!a)&&(clearTimeout(hL),hL=null),gL=Array.from(n.touches).map(e=>II({clientX:e.clientX,clientY:e.clientY,currentTarget:n.currentTarget}));var o=()=>{if(_L!=null){var e=t.getState(),n=VO(e,e.tooltip.settings.shared);if(n===`axis`){var r=gL?.[0];if(r==null){mL=null,hL=null;return}var i=PI(e,r);i?.activeIndex!=null&&t.dispatch(tk({activeIndex:i.activeIndex,activeDataKey:void 0,activeCoordinate:i.activeCoordinate}))}else if(n===`item`){var a=_L.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(Fm),c=o.getAttribute(`data-recharts-item-id`)??void 0,l=Fk(e).find(e=>e.id===c);if(s==null||l==null||c==null)return;var{dataKey:u}=l,d=dL(e,s,c);t.dispatch(ZO({activeDataKey:u,activeIndex:s,activeCoordinate:d,activeGraphicalItemId:c}))}mL=null,hL=null}};if(!a){o();return}r===`raf`?mL=requestAnimationFrame(o):typeof r==`number`&&hL===null&&(o(),_L=null,hL=setTimeout(()=>{_L?o():(hL=null,mL=null)},r))}}});var vL={throttleDelay:`raf`,throttledEvents:[`mousemove`,`touchmove`,`pointermove`,`scroll`,`wheel`]},yL=pp({name:`eventSettings`,initialState:vL,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=J(t.payload.throttledEvents))}}}),{setEventSettings:bL}=yL.actions,xL=yL.reducer,SL=_d({brush:mI,cartesianAxis:sI,chartData:kj,errorBars:NI,eventSettings:xL,graphicalItems:fF,layout:om,legend:Ig,options:Sj,polarAxis:$N,polarOptions:ZI,referenceElements:SI,renderedTicks:OI,rootProps:qI,tooltip:ak,zIndex:rj}),CL=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`Chart`;return rp({reducer:SL,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:![`commonjs`,`es6`,`production`].includes(`es6`)}).concat([RI.middleware,BI.middleware,tL.middleware,sL.middleware,pL.middleware]),enhancers:e=>{var t=e;return typeof e==`function`&&(t=e()),t.concat(tp({type:`raf`}))},devTools:v_.devToolsEnabled&&{serialize:{replacer:WI},name:`recharts-${t}`}})};function wL(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=Xm(),a=(0,B.useRef)(null);if(i)return n;a.current??=CL(t,r);var o=Mu;return B.createElement(Qg,{context:o,store:a.current},n)}function TL(e){var{layout:t,margin:n}=e,r=Pu(),i=Xm();return(0,B.useEffect)(()=>{i||(r(rm(t)),r(nm(n)))},[r,i,t,n]),null}var EL=(0,B.memo)(TL,t_);function DL(e){var t=Pu();return(0,B.useEffect)(()=>{t(JI(e))},[t,e]),null}var OL=(0,B.memo)(e=>{var t=Pu();return(0,B.useEffect)(()=>{t(bL(e))},[t,e]),null},t_);function kL(e){var{zIndex:t,isPanorama:n}=e,r=(0,B.useRef)(null),i=Pu();return(0,B.useLayoutEffect)(()=>(r.current&&i(tj({zIndex:t,element:r.current,isPanorama:n})),()=>{i(nj({zIndex:t,isPanorama:n}))}),[i,t,n]),B.createElement(`g`,{tabIndex:-1,ref:r,className:`recharts-zIndex-layer_${t}`})}function AL(e){var{children:t,isPanorama:n}=e,r=W(UA);if(!r||r.length===0)return t;var i=r.filter(e=>e<0),a=r.filter(e=>e>0);return B.createElement(B.Fragment,null,i.map(e=>B.createElement(kL,{key:e,zIndex:e,isPanorama:n})),t,a.map(e=>B.createElement(kL,{key:e,zIndex:e,isPanorama:n})))}var jL=[`children`];function ML(e,t){if(e==null)return{};var n,r,i=NL(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 NL(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 PL(){return PL=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},PL.apply(null,arguments)}var FL={width:`100%`,height:`100%`,display:`block`},IL=(0,B.forwardRef)((e,t)=>{var n=Oh(),r=kh(),i=O_();if(!cm(n)||!cm(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),B.createElement(ks,PL({},o,{title:s,desc:c,role:u,tabIndex:l,width:n,height:r,style:FL,ref:t}),a)}),LL=e=>{var{children:t}=e,n=W(Qm);if(!n)return null;var{width:r,height:i,y:a,x:o}=n;return B.createElement(ks,{width:r,height:i,x:o,y:a},t)},RL=(0,B.forwardRef)((e,t)=>{var{children:n}=e,r=ML(e,jL);return Xm()?B.createElement(LL,null,B.createElement(AL,{isPanorama:!0},n)):B.createElement(IL,PL({ref:t},r),B.createElement(AL,{isPanorama:!1},n))});function zL(){var e=Pu(),[t,n]=(0,B.useState)(null),r=W(jm);return(0,B.useEffect)(()=>{if(t!=null){var n=t.getBoundingClientRect().width/t.offsetWidth;q(n)&&n!==r&&e(am(n))}},[t,e,r]),n}function BL(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 VL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?BL(Object(n),!0).forEach(function(t){HL(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function HL(e,t,n){return(t=UL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UL(e){var t=WL(e,`string`);return typeof t==`symbol`?t:t+``}function WL(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 GL(){return GL=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},GL.apply(null,arguments)}var KL=()=>(Bj(),null);function qL(e){if(typeof e==`number`)return e;if(typeof e==`string`){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var JL=(0,B.forwardRef)((e,t)=>{var n=(0,B.useRef)(null),[r,i]=(0,B.useState)({containerWidth:qL(e.style?.width),containerHeight:qL(e.style?.height)}),a=(0,B.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,B.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,B.useEffect)(()=>()=>{n.current?.disconnect()},[a]),B.createElement(B.Fragment,null,B.createElement(Ph,{width:r.containerWidth,height:r.containerHeight}),B.createElement(`div`,GL({ref:o},e)))}),YL=(0,B.forwardRef)((e,t)=>{var{width:n,height:r}=e,[i,a]=(0,B.useState)({containerWidth:qL(n),containerHeight:qL(r)}),o=(0,B.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,B.useCallback)(e=>{if(typeof t==`function`&&t(e),e!=null){var{width:n,height:r}=e.getBoundingClientRect();o(n,r)}},[t,o]);return B.createElement(B.Fragment,null,B.createElement(Ph,{width:i.containerWidth,height:i.containerHeight}),B.createElement(`div`,GL({ref:s},e)))}),XL=(0,B.forwardRef)((e,t)=>{var{width:n,height:r}=e;return B.createElement(B.Fragment,null,B.createElement(Ph,{width:n,height:r}),B.createElement(`div`,GL({ref:t},e)))}),ZL=(0,B.forwardRef)((e,t)=>{var{width:n,height:r}=e;return typeof n==`string`||typeof r==`string`?B.createElement(YL,GL({},e,{ref:t})):typeof n==`number`&&typeof r==`number`?B.createElement(XL,GL({},e,{width:n,height:r,ref:t})):B.createElement(B.Fragment,null,B.createElement(Ph,{width:n,height:r}),B.createElement(`div`,GL({ref:t},e)))});function QL(e){return e?JL:ZL}var $L=(0,B.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,B.useRef)(null),x=Pu(),[S,C]=(0,B.useState)(null),[w,T]=(0,B.useState)(null),E=zL(),D=xh(),O=D?.width>0?D.width:_,k=D?.height>0?D.height:i,A=(0,B.useCallback)(e=>{E(e),typeof t==`function`&&t(e),C(e),T(e),e!=null&&(b.current=e)},[E,t,C,T]),j=(0,B.useCallback)(e=>{x(LI(e)),x(oL({handler:a,reactEvent:e}))},[x,a]),M=(0,B.useCallback)(e=>{x(zI(e)),x(oL({handler:l,reactEvent:e}))},[x,l]),N=(0,B.useCallback)(e=>{x($O()),x(oL({handler:u,reactEvent:e}))},[x,u]),ee=(0,B.useCallback)(e=>{x(zI(e)),x(oL({handler:d,reactEvent:e}))},[x,d]),P=(0,B.useCallback)(()=>{x($I())},[x]),F=(0,B.useCallback)(()=>{x(eL())},[x]),te=(0,B.useCallback)(e=>{x(QI(e.key))},[x]),I=(0,B.useCallback)(e=>{x(oL({handler:o,reactEvent:e}))},[x,o]),ne=(0,B.useCallback)(e=>{x(oL({handler:s,reactEvent:e}))},[x,s]),re=(0,B.useCallback)(e=>{x(oL({handler:c,reactEvent:e}))},[x,c]),L=(0,B.useCallback)(e=>{x(oL({handler:f,reactEvent:e}))},[x,f]),R=(0,B.useCallback)(e=>{x(oL({handler:h,reactEvent:e}))},[x,h]),ie=(0,B.useCallback)(e=>{y&&x(fL(e)),x(oL({handler:m,reactEvent:e}))},[x,y,m]),ae=(0,B.useCallback)(e=>{x(oL({handler:p,reactEvent:e}))},[x,p]),z=QL(v);return B.createElement(mj.Provider,{value:S},B.createElement(Fs.Provider,{value:w},B.createElement(z,{width:O??g?.width,height:k??g?.height,className:hs(`recharts-wrapper`,r),style:VL({position:`relative`,cursor:`default`,width:O,height:k},g),onClick:j,onContextMenu:I,onDoubleClick:ne,onFocus:P,onBlur:F,onKeyDown:te,onMouseDown:re,onMouseEnter:M,onMouseLeave:N,onMouseMove:ee,onMouseUp:L,onTouchEnd:ae,onTouchMove:ie,onTouchStart:R,ref:A},B.createElement(KL,null),n)))}),eR=[`width`,`height`,`responsive`,`children`,`className`,`style`,`compact`,`title`,`desc`];function tR(e,t){if(e==null)return{};var n,r,i=nR(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 nR(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 rR=(0,B.forwardRef)((e,t)=>{var{width:n,height:r,responsive:i,children:a,className:o,style:s,compact:c,title:l,desc:u}=e,d=Ss(tR(e,eR));return c?B.createElement(B.Fragment,null,B.createElement(Ph,{width:n,height:r}),B.createElement(RL,{otherAttributes:d,title:l,desc:u},a)):B.createElement($L,{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},B.createElement(RL,{otherAttributes:d,title:l,desc:u,ref:t},B.createElement(wI,null,a)))});function iR(e){var t=Pu();return(0,B.useEffect)(()=>{t(XI(e))},[t,e]),null}var aR=[`layout`];function oR(){return oR=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},oR.apply(null,arguments)}function sR(e,t){if(e==null)return{};var n,r,i=cR(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 cR(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 lR(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 uR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?lR(Object(n),!0).forEach(function(t){dR(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dR(e,t,n){return(t=fR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fR(e){var t=pR(e,`string`);return typeof t==`symbol`?t:t+``}function pR(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 mR=uR({accessibilityLayer:!0,stackOffset:`none`,barCategoryGap:`10%`,barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:`index`,layout:`radial`,responsive:!1,cx:`50%`,cy:`50%`,innerRadius:0,outerRadius:`80%`},vL),hR=(0,B.forwardRef)(function(e,t){var n=$l(e.categoricalChartProps,mR),{layout:r}=n,i=sR(n,aR),{chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:s,tooltipPayloadSearcher:c}=e,l={chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:s,tooltipPayloadSearcher:c,eventEmitter:void 0};return B.createElement(wL,{preloadedState:{options:l},reduxStoreName:n.id??a},B.createElement(uI,{chartData:n.data}),B.createElement(EL,{layout:r,margin:n.margin}),B.createElement(OL,{throttleDelay:n.throttleDelay,throttledEvents:n.throttledEvents}),B.createElement(DL,{baseValue:void 0,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}),B.createElement(iR,{cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius}),B.createElement(rR,oR({},i,{ref:t})))});function gR(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 _R(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?gR(Object(n),!0).forEach(function(t){vR(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vR(e,t,n){return(t=yR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yR(e){var t=bR(e,`string`);return typeof t==`symbol`?t:t+``}function bR(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 xR=[`item`],SR=_R(_R({},mR),{},{layout:`centric`,startAngle:0,endAngle:360}),CR=(0,B.forwardRef)((e,t)=>{var n=$l(e,SR);return B.createElement(hR,{chartName:`PieChart`,defaultTooltipEventType:`item`,validateTooltipEventTypes:xR,tooltipPayloadSearcher:bj,categoricalChartProps:n,ref:t})}),wR=(e,t)=>{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},TR=(e,t)=>({classGroupId:e,validator:t}),ER=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),DR=`-`,OR=[],kR=`arbitrary..`,AR=e=>{let t=NR(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return MR(e);let n=e.split(DR);return jR(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?wR(i,t):t:i||OR}return n[e]||OR}}},jR=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=jR(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(DR):e.slice(t).join(DR),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},MR=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?kR+r:void 0})(),NR=e=>{let{theme:t,classGroups:n}=e;return PR(n,t)},PR=(e,t)=>{let n=ER();for(let r in e){let i=e[r];FR(i,n,r,t)}return n},FR=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];IR(i,t,n,r)}},IR=(e,t,n,r)=>{if(typeof e==`string`){LR(e,t,n);return}if(typeof e==`function`){RR(e,t,n,r);return}zR(e,t,n,r)},LR=(e,t,n)=>{let r=e===``?t:BR(t,e);r.classGroupId=n},RR=(e,t,n,r)=>{if(VR(e)){FR(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(TR(n,e))},zR=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];FR(o,BR(t,a),n,r)}},BR=(e,t)=>{let n=e,r=t.split(DR),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=ER(),n.nextPart.set(t,i)),n=i}return n},VR=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,HR=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)}}},UR=`!`,WR=`:`,GR=[],KR=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),qR=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(UR)?(c=s.slice(0,-1),l=!0):s.startsWith(UR)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return KR(t,l,c,u)};if(t){let e=t+WR,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):KR(GR,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},JR=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}},YR=e=>({cache:HR(e.cacheSize),parseClassName:qR(e),sortModifiers:JR(e),postfixLookupClassGroupIds:XR(e),...AR(e)}),XR=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},ZR=/\s+/,QR=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(ZR),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?_+UR:_,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},$R=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=ez(n))&&(i&&(i+=` `),i+=r);return i},ez=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=ez(e[r]))&&(n&&(n+=` `),n+=t);return n},tz=(e,...t)=>{let n,r,i,a,o=o=>(n=YR(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=QR(e,n);return i(e,a),a};return a=o,(...e)=>a($R(...e))},nz=[],rz=e=>{let t=t=>t[e]||nz;return t.isThemeGetter=!0,t},iz=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,az=/^\((?:(\w[\w-]*):)?(.+)\)$/i,oz=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,sz=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cz=/\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$/,lz=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,uz=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dz=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fz=e=>oz.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),pz=e=>!!e&&Number.isInteger(Number(e)),mz=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),hz=e=>sz.test(e),gz=()=>!0,_z=e=>cz.test(e)&&!lz.test(e),vz=()=>!1,yz=e=>uz.test(e),bz=e=>dz.test(e),xz=e=>!Q(e)&&!$(e),Sz=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)),Cz=e=>Rz(e,Hz,vz),Q=e=>iz.test(e),wz=e=>Rz(e,Uz,_z),Tz=e=>Rz(e,Wz,Z),Ez=e=>Rz(e,Kz,gz),Dz=e=>Rz(e,Gz,vz),Oz=e=>Rz(e,Bz,vz),kz=e=>Rz(e,Vz,bz),Az=e=>Rz(e,qz,yz),$=e=>az.test(e),jz=e=>zz(e,Uz),Mz=e=>zz(e,Gz),Nz=e=>zz(e,Bz),Pz=e=>zz(e,Hz),Fz=e=>zz(e,Vz),Iz=e=>zz(e,qz,!0),Lz=e=>zz(e,Kz,!0),Rz=(e,t,n)=>{let r=iz.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},zz=(e,t,n=!1)=>{let r=az.exec(e);return r?r[1]?t(r[1]):n:!1},Bz=e=>e===`position`||e===`percentage`,Vz=e=>e===`image`||e===`url`,Hz=e=>e===`length`||e===`size`||e===`bg-size`,Uz=e=>e===`length`,Wz=e=>e===`number`,Gz=e=>e===`family-name`,Kz=e=>e===`number`||e===`weight`,qz=e=>e===`shadow`,Jz=tz(()=>{let e=rz(`color`),t=rz(`font`),n=rz(`text`),r=rz(`font-weight`),i=rz(`tracking`),a=rz(`leading`),o=rz(`breakpoint`),s=rz(`container`),c=rz(`spacing`),l=rz(`radius`),u=rz(`shadow`),d=rz(`inset-shadow`),f=rz(`text-shadow`),p=rz(`drop-shadow`),m=rz(`blur`),h=rz(`perspective`),g=rz(`aspect`),_=rz(`ease`),v=rz(`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(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],T=()=>[fz,`full`,`auto`,...w()],E=()=>[pz,`none`,`subgrid`,$,Q],D=()=>[`auto`,{span:[`full`,pz,$,Q]},pz,$,Q],O=()=>[pz,`auto`,$,Q],k=()=>[`auto`,`min`,`max`,`fr`,$,Q],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=()=>[fz,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ee=()=>[fz,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],P=()=>[fz,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[e,$,Q],te=()=>[...b(),Nz,Oz,{position:[$,Q]}],I=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ne=()=>[`auto`,`cover`,`contain`,Pz,Cz,{size:[$,Q]}],re=()=>[mz,jz,wz],L=()=>[``,`none`,`full`,l,$,Q],R=()=>[``,Z,jz,wz],ie=()=>[`solid`,`dashed`,`dotted`,`double`],ae=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],z=()=>[Z,mz,Nz,Oz],oe=()=>[``,`none`,m,$,Q],se=()=>[`none`,Z,$,Q],ce=()=>[`none`,Z,$,Q],le=()=>[Z,$,Q],ue=()=>[fz,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[hz],breakpoint:[hz],color:[gz],container:[hz],"drop-shadow":[hz],ease:[`in`,`out`,`in-out`],font:[xz],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[hz],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[hz],shadow:[hz],spacing:[`px`,Z],text:[hz],"text-shadow":[hz],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,fz,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[Sz],columns:[{columns:[Z,Q,$,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:[pz,`auto`,$,Q]}],basis:[{basis:[fz,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,fz,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[pz,`first`,`last`,`none`,$,Q]}],"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`,...P()]}],"min-block-size":[{"min-block":[`auto`,...P()]}],"max-block-size":[{"max-block":[`none`,...P()]}],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,jz,wz]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Lz,Ez]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,mz,Q]}],"font-family":[{font:[Mz,Dz,t]}],"font-features":[{"font-features":[Q]}],"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,$,Q]}],"line-clamp":[{"line-clamp":[Z,`none`,$,Tz]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ie(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,wz]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"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:[pz,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],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`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:I()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},pz,$,Q],radial:[``,$,Q],conic:[pz,$,Q]},Fz,kz]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-bs":[{"border-bs":R()}],"border-w-be":[{"border-be":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":R()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ie(),`hidden`,`none`]}],"divide-style":[{divide:[...ie(),`hidden`,`none`]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...ie(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,jz,wz]}],"outline-color":[{outline:F()}],shadow:[{shadow:[``,`none`,u,Iz,Az]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":[`none`,d,Iz,Az]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:R()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Z,wz]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":[`none`,f,Iz,Az]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...ae(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ae()}],"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":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:I()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:oe()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Iz,Az]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"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`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:ce()}],"scale-x":[{"scale-x":ce()}],"scale-y":[{"scale-y":ce()}],"scale-z":[{"scale-z":ce()}],"scale-3d":[`scale-3d`],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ue()}],"translate-x":[{"translate-x":ue()}],"translate-y":[{"translate-y":ue()}],"translate-z":[{"translate-z":ue()}],"translate-none":[`translate-none`],zoom:[{zoom:[pz,$,Q]}],accent:[{accent:F()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:F()}],"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-in`,`zoom-out`,$,Q]}],"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":F()}],"scrollbar-track-color":[{"scrollbar-track":F()}],"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`]}],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`,$,Q]}],fill:[{fill:[`none`,...F()]}],"stroke-w":[{stroke:[Z,jz,wz,Tz]}],stroke:[{stroke:[`none`,...F()]}],"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`]}}),Yz=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r){setTimeout(function(){r(e)},0);return}else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h){d[r]=void 0;continue}if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}};new class extends Yz{};function Xz(e,t){let n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function Zz(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function Qz(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function $z(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function eB(e,t){return Qz(e,t,``)}function tB(e,t){return $z(e,t,``)}function nB(e,t){return t.slice(0,rB(e,t))}function rB(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function iB(e,t){let n=[];for(let r of Array.from(t.segment(e))){let e=r.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function aB(e,t){if(t)return sB(e,t)[1];let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function oB(e,t){if(t)return sB(e,t)[0];let n=e.match(/^\s*/);return n?n[0]:``}function sB(e,t){if(!t)return[oB(e),aB(e)];if(t.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);let n=iB(e,t),r=n[0],i=n[n.length-1];return[/\s/.test(r)?r:``,/\s/.test(i)?i:``]}var cB=`a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}`,lB=RegExp(`[${cB}]+|\\s+|[^${cB}]`,`ug`);new class extends Yz{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=iB(e,r)}else n=e.match(lB)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&uB(n,i,r,e,t.intlSegmenter),n=e,r=null,i=null)}),(r||i)&&uB(n,i,r,null,t.intlSegmenter),e}};function uB(e,t,n,r,i){if(t&&n){let[a,o]=sB(t.value,i),[s,c]=sB(n.value,i);if(e){let r=Xz(a,s);e.value=$z(e.value,s,r),t.value=eB(t.value,r),n.value=eB(n.value,r)}if(r){let e=Zz(o,c);r.value=Qz(r.value,c,e),t.value=tB(t.value,e),n.value=tB(n.value,e)}}else if(n){if(e){let e=oB(n.value,i);n.value=n.value.substring(e.length)}if(r){let e=oB(r.value,i);r.value=r.value.substring(e.length)}}else if(e&&r){let n=oB(r.value,i),[a,o]=sB(t.value,i),s=Xz(n,a);t.value=eB(t.value,s);let c=Zz(eB(n,s),o);t.value=tB(t.value,c),r.value=Qz(r.value,n,c),e.value=$z(e.value,n,n.slice(0,n.length-c.length))}else if(r){let e=oB(r.value,i),n=nB(aB(t.value,i),e);t.value=tB(t.value,n)}else if(e){let n=nB(aB(e.value,i),oB(t.value,i));t.value=eB(t.value,n)}}new class extends Yz{tokenize(e){let t=RegExp(`(\\r?\\n)|[${cB}]+|[^\\S\\n\\r]+|[^${cB}]`,`ug`);return e.match(t)||[]}};var dB=new class extends Yz{constructor(){super(...arguments),this.tokenize=pB}equals(e,t,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
|
|
37
|
+
`))&&(e=e.trim()),(!n.newlineIsToken||!t.includes(`
|
|
38
|
+
`))&&(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
|
|
39
|
+
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
40
|
+
`)&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function fB(e,t,n){return dB.diff(e,t,n)}function pB(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
41
|
+
`));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function mB(e){return e==`.`||e==`!`||e==`?`}new class extends Yz{tokenize(e){let t=[],n=0;for(let r=0;r<e.length;r++){if(r==e.length-1){t.push(e.slice(n));break}if(mB(e[r])&&e[r+1].match(/\s/)){for(t.push(e.slice(n,r+1)),r=n=r+1;e[r+1]?.match(/\s/);)r++;t.push(e.slice(n,r+1)),n=r+1}}return t}},new class extends Yz{tokenize(e){return e.split(/([{}:;,]|\s+)/)}},new class extends Yz{constructor(){super(...arguments),this.tokenize=pB}get useLongestToken(){return!0}castInput(e,t){let{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>t===void 0?n:t}=t;return typeof e==`string`?e:JSON.stringify(hB(e,null,null,r),null,` `)}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`),n)}};function hB(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i===void 0?``:i,e));let a;for(a=0;a<t.length;a+=1)if(t[a]===e)return n[a];let o;if(Object.prototype.toString.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=hB(e[a],t,n,r,String(a));return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e==`object`&&e){t.push(e),o={},n.push(o);let i=[],s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)s=i[a],o[s]=hB(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}new class extends Yz{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};export{So as $,Go as A,ts as B,Ro as C,Ho as D,Vo as E,Xo as F,os as G,rs as H,Zo as I,ls as J,ss as K,Qo as L,qo as M,Jo as N,Uo as O,Yo as P,ps as Q,$o as R,Lo as S,Bo as T,is as U,ns as V,as as W,fs as X,us as Y,ds as Z,Mo as _,Zj as a,Oi as at,Fo as b,Co as c,Xe as ct,Eo as d,Pe as dt,to as et,Do as f,Ne as ft,jo as g,Ao as h,WF as i,Ki as it,Ko as j,Wo as k,wo as l,Ye as lt,Oo as m,se as mt,Jz as n,mn as nt,Ch as o,qi as ot,ko as p,Ae as pt,cs as q,CR as r,Ti as rt,hs as s,lo as st,fB as t,Za as tt,To as u,Je as ut,No as v,zo as w,Io as x,Po as y,es as z};
|