omnigateway 0.7.2 → 0.8.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.
Files changed (42) hide show
  1. package/README.md +90 -4
  2. package/bin/omni.js +6874 -4685
  3. package/gateway.js +17400 -14802
  4. package/package.json +1 -1
  5. package/public/assets/{Chip-BOyBT5TP.js → Chip-DG-mqRx0.js} +1 -1
  6. package/public/assets/{CopyValue-DRHHQlN_.js → CopyValue-CItB094V.js} +1 -1
  7. package/public/assets/Lamp-Cxp-OxUq.js +25 -0
  8. package/public/assets/{Rack-D798XvPQ.js → Rack-xBT_6EtM.js} +5 -5
  9. package/public/assets/{RequestTable-CEBhwDs7.js → RequestTable-CM9mPiMF.js} +1 -1
  10. package/public/assets/{SummaryDeck-DBCSHihY.js → SummaryDeck-C3ZwZ3ng.js} +1 -1
  11. package/public/assets/{Toggle-CdCCoDEo.js → Toggle-CmXXn6F3.js} +1 -1
  12. package/public/assets/{TokenBreakdown-DDI9uTPW.js → TokenBreakdown-COJ643vg.js} +1 -1
  13. package/public/assets/{WindowChart-C-Y6U3WF.js → WindowChart-BrLf4KCu.js} +1 -1
  14. package/public/assets/_app.accounts-B-OYO2Yi.js +59 -0
  15. package/public/assets/_app.console-BOZ1wncA.js +44 -0
  16. package/public/assets/{_app.database-D0W0pcxC.js → _app.database-B5oHZPbu.js} +4 -4
  17. package/public/assets/{_app.index-CyxnfhVX.js → _app.index-CB3UFRwF.js} +5 -5
  18. package/public/assets/{_app.keys-D9qmw9Tj.js → _app.keys-B89CMo3x.js} +2 -2
  19. package/public/assets/{_app.logs-DtXUZETW.js → _app.logs-CNAnRW07.js} +1 -1
  20. package/public/assets/{_app.models-CNxwXyFl.js → _app.models-DpRcGhag.js} +4 -4
  21. package/public/assets/_app.plugins._pluginId-LzBq-Zjj.js +2 -0
  22. package/public/assets/{_app.plugins._pluginId-87Ox_hkW.js → _app.plugins._pluginId-sYDTZ9Px.js} +1 -1
  23. package/public/assets/{_app.settings-DjiMSl1Y.js → _app.settings-BV085FpM.js} +4 -4
  24. package/public/assets/{_app.usage-CZz9raYR.js → _app.usage-CGuOdYun.js} +3 -3
  25. package/public/assets/{chevron-right-CPoaXYHw.js → chevron-right-BeVtzzum.js} +1 -1
  26. package/public/assets/{client-CZnyYbay.js → client-Mf5f5R9Z.js} +1 -1
  27. package/public/assets/index-3lpol4cr.js +13 -0
  28. package/public/assets/{login-BtlMmyKj.js → login-BpvnkW6i.js} +2 -2
  29. package/public/assets/{login-dV42ZQIA.js → login-CwYbEKWH.js} +2 -2
  30. package/public/assets/plus-nHMFjQ2I.js +1 -0
  31. package/public/assets/{preload-helper-4wSmu2-E.js → preload-helper-8jyVfd2a.js} +1 -1
  32. package/public/assets/{shared-OJcoRCqT.js → shared-B2Lmnazz.js} +1 -1
  33. package/public/assets/{stream-CEb81tzM.js → stream-VJMOV03S.js} +1 -1
  34. package/public/assets/{trash-2-BjpqTubo.js → trash-2-CbjLfrko.js} +1 -1
  35. package/public/index.html +7 -7
  36. package/public/shared/dashboard-sdk.js +1 -1
  37. package/public/assets/Lamp-ZlMzNs5N.js +0 -25
  38. package/public/assets/_app.accounts-CLLLwN77.js +0 -59
  39. package/public/assets/_app.console-Dr9qxU7J.js +0 -44
  40. package/public/assets/_app.plugins._pluginId-CZWipH1n.js +0 -2
  41. package/public/assets/index-DNSPtYpM.js +0 -13
  42. package/public/assets/plus-_zo43Lvf.js +0 -1
@@ -1,4 +1,4 @@
1
- import{_ as e,h as t,i as n}from"./shared-OJcoRCqT.js";import{$ as r,A as i,B as ee,F as a,I as o,P as s,Q as te,X as c,Z as ne,et as re,g as l,l as ie,r as u,tt as d,u as ae}from"./Lamp-ZlMzNs5N.js";import{C as f,D as oe,O as se,_ as p,a as ce,b as m,i as le,t as ue,v as h,x as g,y as _}from"./Panel-CYQvfI3L.js";import{_ as de,d as v,i as fe,t as pe}from"./Rack-D798XvPQ.js";import{n as me,t as y}from"./chevron-right-CPoaXYHw.js";import{n as b,t as x}from"./stream-CEb81tzM.js";import{i as S,n as he}from"./Field-DK5zaBVA.js";import{t as C}from"./Meter-stpt3vQu.js";import{i as w,n as T,r as E,t as D}from"./Table-CVDZ69Zx.js";import{n as ge,r as O}from"./WindowChart-C-Y6U3WF.js";import{i as _e,n as ve,r as ye,t as be}from"./RequestTable-CEBhwDs7.js";import{i as k,n as A,r as xe,t as Se}from"./SummaryDeck-DBCSHihY.js";import{Fragment as Ce,useMemo as j,useState as M}from"react";import{jsx as N,jsxs as P}from"react/jsx-runtime";import F from"styled-components";var I=F.div`
1
+ import{_ as e,h as t,i as n}from"./shared-B2Lmnazz.js";import{$ as r,A as i,B as ee,F as a,I as o,P as s,Q as te,X as c,Z as ne,et as re,g as l,l as ie,r as u,tt as d,u as ae}from"./Lamp-Cxp-OxUq.js";import{C as f,D as oe,O as se,_ as p,a as ce,b as m,i as le,t as ue,v as h,x as g,y as _}from"./Panel-CYQvfI3L.js";import{_ as de,d as v,i as fe,t as pe}from"./Rack-xBT_6EtM.js";import{n as me,t as y}from"./chevron-right-BeVtzzum.js";import{n as b,t as x}from"./stream-VJMOV03S.js";import{i as S,n as he}from"./Field-DK5zaBVA.js";import{t as C}from"./Meter-stpt3vQu.js";import{i as w,n as T,r as E,t as D}from"./Table-CVDZ69Zx.js";import{n as ge,r as O}from"./WindowChart-BrLf4KCu.js";import{i as _e,n as ve,r as ye,t as be}from"./RequestTable-CM9mPiMF.js";import{i as k,n as A,r as xe,t as Se}from"./SummaryDeck-C3ZwZ3ng.js";import{Fragment as Ce,useMemo as j,useState as M}from"react";import{jsx as N,jsxs as P}from"react/jsx-runtime";import F from"styled-components";var I=F.div`
2
2
  display: grid;
3
3
  grid-template-areas:
4
4
  "chassis"
@@ -0,0 +1,13 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_app-BWNEo1e-.js","assets/Panel-CYQvfI3L.js","assets/client-Mf5f5R9Z.js","assets/shared-B2Lmnazz.js","assets/Lamp-Cxp-OxUq.js","assets/Rack-xBT_6EtM.js","assets/chevron-right-BeVtzzum.js","assets/stream-VJMOV03S.js","assets/Field-DK5zaBVA.js","assets/Meter-stpt3vQu.js","assets/Table-CVDZ69Zx.js","assets/WindowChart-BrLf4KCu.js","assets/RequestTable-CM9mPiMF.js","assets/TokenBreakdown-COJ643vg.js","assets/Chip-DG-mqRx0.js","assets/SummaryDeck-C3ZwZ3ng.js","assets/Readout-D6-aurU8.js","assets/_app.index-CB3UFRwF.js","assets/_app.accounts-B-OYO2Yi.js","assets/CopyValue-CItB094V.js","assets/plus-nHMFjQ2I.js","assets/trash-2-CbjLfrko.js","assets/Toggle-CmXXn6F3.js","assets/_app.console-BOZ1wncA.js","assets/_app.database-B5oHZPbu.js","assets/reasons-Du1OBWAM.js","assets/_app.keys-B89CMo3x.js","assets/_app.logs-CNAnRW07.js","assets/_app.models-DpRcGhag.js","assets/_app.settings-BV085FpM.js","assets/_app.usage-CGuOdYun.js"])))=>i.map(i=>d[i]);
2
+ import{$t as e,Jt as t,Kt as n,Qt as r,Sn as i,V as a,W as o,Xt as s,Yt as c,Zt as l,_n as u,an as d,bn as f,cn as p,dn as m,en as h,fn as g,gn as _,hn as v,in as y,ln as b,mn as x,nn as S,on as C,pn as w,rn as T,sn as ee,vn as E,wn as D,wt as te,xn as O}from"./Lamp-Cxp-OxUq.js";import{a as ne,c as re,i as ie,n as k,o as ae,r as A,s as oe,t as j}from"./preload-helper-8jyVfd2a.js";import{A as se,C as ce,D as le,_ as ue,a as de,k as M,l as fe,s as pe,t as me}from"./Panel-CYQvfI3L.js";import{h as he,n as ge,p as _e}from"./Rack-xBT_6EtM.js";import{n as ve,t as ye}from"./stream-VJMOV03S.js";import{t as be}from"./login-CwYbEKWH.js";import{t as xe}from"./_app.plugins._pluginId-LzBq-Zjj.js";import{MutationCache as Se,QueryCache as Ce,QueryClient as we,QueryClientProvider as Te}from"@tanstack/react-query";import*as N from"react";import{StrictMode as Ee}from"react";import{Fragment as De,jsx as P,jsxs as F}from"react/jsx-runtime";import{createRoot as Oe}from"react-dom/client";import ke from"styled-components";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function I(e){return e?.isNotFound===!0}function Ae(){try{return sessionStorage}catch{return}}var je=`tsr-scroll-restoration-v1_3`,Me=Ae();function Ne(){try{return JSON.parse(Me?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Pe(){try{Me?.setItem(je,JSON.stringify(L))}catch{}}var L=Ne(),Fe=`data-scroll-restoration-id`,Ie=e=>e.state.__TSR_key||e.href;function Le(e){let t=e.getAttribute(Fe);if(t)return`[${Fe}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var Re=!1,ze=`window`;function Be(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Ve(e){let t=new Set;for(let n of e){if(n===ze)continue;let e=Be(n);e&&t.add(e)}return t}function He(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||Ie,a=new Set,o=e=>{let t=L[e]||={};for(let e of a)e===document?t[ze]={scrollX,scrollY}:e.isConnected&&(t[Le(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.restoration&&(r.restoration=!0,Re=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{Re||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{o(i(e.stores.resolvedLocation.get()??e.stores.location.get())),Pe()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c=r.hash,l;if(a.clear(),r.next=!0,r.hash=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.restoring&&d&&d!==u){let e=L[d];if(e){let t=L[u];for(let n in e){if(n===ze){if(s)continue}else{let e=Be(n);if(!e||s&&o&&(l??=Ve(o),l.has(e)))continue}t||=L[u]={},t[n]??=e[n]}}}Re=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=Ve(o));let t=e&&i&&c,s=r.restoring?L[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===ze){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=Be(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{Re=!1}}))}function Ue(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function We(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function Ge(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=We(r):Array.isArray(t)?t.push(We(r)):n[e]=[t,We(r)]}return n}var Ke=/^(?:\s|["[{\d-]|fa|nu|tr)/,qe=Ye(JSON.parse),Je=Xe(JSON.stringify,JSON.parse);function Ye(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=Ge(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Xe(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!Ke.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=Ue(e,r);return t?`?${t}`:``}}function Ze(e){return{input:({url:t})=>{for(let n of e)t=$e(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=et(e[n],t);return t}}}function Qe(e){let t=h(e.basepath),n=`/${t}`,i=e.caseSensitive?n:n.toLowerCase(),a=`${i}/`;return{input:({url:t})=>{let r=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return r===i?t.pathname=`/`:r.startsWith(a)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=r([`/`,t,e.pathname]),e)}}function $e(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function et(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function tt(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{g(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var R=`__TSR_index`,nt=`popstate`,rt=`beforeunload`;function it(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=ct(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[R];i=at(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[R];i=at(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[R]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function at(e,t){t||={};let n=lt();return{...t,key:n,__TSR_key:n,[R]:e}}function ot(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>ct(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=lt();t.history.replaceState({[R]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(e,t,n)=>{let r=s(t),i=!!g;i||(u=l),l=ct(t,n),g=[r,n,g?.[2]||e],i||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(f){f=!1;return}let e=c(),n=e.state[R]-l.state[R],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=it({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(rt,x,{capture:!0}),t.removeEventListener(nt,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(rt,x,{capture:!0}),t.addEventListener(nt,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function st(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function ct(e,t){let n=st(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=lt();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[R]:0,key:a,__TSR_key:a}}}function lt(){return(Math.random()+1).toString(36).substring(7)}function ut(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function dt(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function ft({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function pt(e,t,n,r){for(let i of t){if(r?.()===!1)return;n.some(e=>e.routeId===i.routeId)||e.routesById[i.routeId].options.onLeave?.(i)}for(let i of n){if(r?.()===!1)return;e.routesById[i.routeId].options[t.some(e=>e.routeId===i.routeId)?`onStay`:`onEnter`]?.(i)}}var mt=class{constructor(t,n){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=s(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:ot()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`,this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=b(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=tt(this.latestLocation,e),He(this)}let a=this.options.basepath??`/`,o=this.options.rewrite;if(r||n!==a||i!==o){this.basepath=a;let e=[],t=h(a);t&&t!==`/`&&e.push(Qe({basepath:a})),o&&e.push(o),this.rewrite=e.length===0?void 0:e.length===1?e[0]:Ze(e),this.history&&this.updateLatestLocation(),this.stores&&this.stores.location.set(this.latestLocation)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=p(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&ee(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:a,state:o})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let a=this.options.parseSearch(n),s=this.options.stringifySearch(a);return{href:e+s+r,publicHref:e+s+r,pathname:w(e).path,external:!1,searchStr:s,search:O(t?.search,a),hash:w(r.slice(1)).path,state:i(t?.state,o)}}let s=new URL(a,this.origin),c=$e(this.rewrite,s),l=this.options.parseSearch(c.search),u=this.options.stringifySearch(l);return c.search=u,{href:c.href.replace(c.origin,``),publicHref:a,pathname:w(c.pathname).path,external:!!this.rewrite&&c.origin!==this.origin,searchStr:u,search:O(t?.search,l),hash:w(c.hash.slice(1)).path,state:i(t?.state,o)}},r=n(e),{__tempLocation:a,__tempKey:o}=r.state;if(a&&(!o||o===this.tempLocationKey)){let e=n(a);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(t,n)=>e({base:t,to:n.includes(`//`)?c(n):n,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=d(S(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this._pendingLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let a=t.unsafeRelative===`path`?n.pathname:t.from??r[1],o=t.to?`${t.to}`:void 0,s=r[2],c=Object.assign(Object.create(null),r[3]),d=o?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(a,`.`),f=o?this.resolvePathWithBase(d,o):d,p=bt(t.params,c),m=this.routesByPath[S(f)],h;if(m)h=this.getRouteBranch(m);else if(f.includes(`$`))h=[];else{let[e,t,n]=this.getMatchedRoutes(f);h=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(h=[...h,this.options.notFoundRoute])}if(h.length&&u(p))for(let e of h){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(p,t(p))}catch{}}let g=e.leaveParams?f:w(l({path:f,params:p,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,y=s;if(e._includeValidateSearch&&this.options.search?.strict){let e={};h.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,_t(t.options.validateSearch,{...e,...y}))}catch{}}),y=e}y=vt(y,t,h,e._includeValidateSearch),y=O(s,y);let b=this.options.stringifySearch(y),x=t.hash===!0?n.hash:t.hash?_(t.hash,n.hash):void 0,C=x?`#${x}`:``,T=t.state===!0?n.state:t.state?_(t.state,n.state):{};T=i(n.state,T);let ee=`${g}${b}${C}`,E,D,te=!1;if(this.rewrite){let e=new URL(ee,this.origin),t=et(this.rewrite,e);E=e.href.replace(e.origin,``),t.origin===this.origin?D=t.pathname+t.search+t.hash:(D=t.href,te=!0)}else E=v(ee),D=E;return{publicHref:D,href:E,pathname:g,search:y,searchStr:b,state:T,hash:x??``,external:te,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=y(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=bt(s,n);r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=S(this.latestLocation.href)===S(n.href)&&x(ft(n.state),ft(this.latestLocation.state)),a=this._commitPromise,o,s=new Promise(e=>{o=e});if(s.resolve=()=>{o(),a?.resolve()},this._commitPromise=s,i)this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:r}})}return this._scroll.next=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,_redirects:a,href:o,...s}={})=>{if(o){let t=this.history.location.state.__TSR_index,n=ct(o,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);s.to=$e(this.rewrite,r).pathname,s.search=this.options.parseSearch(n.search),s.hash=n.hash.slice(1)}let c=this.buildLocation({...s,_includeValidateSearch:!0});a&&(c._redirects=a),this._pendingLocation=c;let l=this.commitLocation({...c,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this._pendingLocation===c&&(this._pendingLocation=void 0)}),l},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(E(t,this.protocolAllowlist))return;if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return}i.replace?window.location.replace(t):window.location.href=t;return}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.hash=e.action.type===`PUSH`||e.action.type===`REPLACE`),await tn(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(dt(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set([...t,...this._cache.values(),...[...r?.values()??[]].flat(),...this._tx?.[3]??[]].filter(e=>!n||n(e)).map(e=>e.id)),a=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),a.push(e));let o=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&ut(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(o);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i)this._flights?.delete(e);for(let e of a)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=(e.options._builtLocation??this.buildLocation(e.options)).publicHref||`/`;e.options.href=t,e.headers.set(`Location`,t)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&E(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=z,this.preloadRoute=e=>nn(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=C(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!x(o.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?x(a.search,r.search,{partial:!0})?o.rawParams:!1:o.rawParams},this.getStoreConfig=n,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??`fuzzy`,stringifySearch:t.stringifySearch??Je,parseSearch:t.parseSearch??qe,protocolAllowlist:t.protocolAllowlist??m}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=T(e),this.routeBranchCache.set(e,t)),t}matchRoutesInternal(e,t){let[n,r,a]=this.getMatchedRoutes(e.pathname),o=n,s=!1;(a?a.path!==`/`&&r[`**`]:S(e.pathname))&&(this.options.notFoundRoute?o=[...o,this.options.notFoundRoute]:s=!0);let c=s?yt(this.options.notFoundMode,o):void 0,u=Array(o.length),d=this._committed,f=(e,t)=>{let n=d[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?d.find(t=>t.routeId===e.id):void 0},p;for(let n=0;n<o.length;n++){let a=o[n],s=u[n-1],d,m,h;{let n=s?.search??e.search,r=s?._strictSearch??void 0;try{let e=_t(a.options.validateSearch,{...n})??void 0;d={...n,...e},m={...r,...e}}catch(e){let r=e;if(e instanceof ht||(r=new ht(e.message,{cause:e})),t?.throwOnError)throw r;d=n,m={},h=r}}let g=``,_=``;try{g=a.options.loaderDeps?.({search:d})??``,_=g&&JSON.stringify(g)||``}catch(e){if(t?.throwOnError)throw e;h??=e}let{interpolatedPath:v,usedParams:y}=l({path:a.fullPath,params:r,decoder:this.pathParamsDecoder,server:this.isServer}),b=a.id+v+_,x=f(a,n),S=this._cache.get(b)??(x?.id===b?x:void 0);p=S?._strictParams??Object.assign(y,p);let C;if(!S)try{xt(a,p)}catch(e){if(C=I(e)||ae(e)?e:new gt(e.message,{cause:e}),t?.throwOnError)throw C}let w=x?`stay`:`enter`,T;if(S)T={...S,cause:w,search:O(x?x.search:S.search,d),_strictSearch:m,searchError:h};else{let e=ut(a)?`pending`:`success`;T={id:b,ssr:a.options.ssr,index:n,routeId:a.id,params:x?.params??p,_strictParams:p,pathname:v,updatedAt:Date.now(),search:x?O(x.search,d):d,_strictSearch:m,searchError:h,status:e,isFetching:!1,error:void 0,paramsError:C,context:{},abortController:t?._controller??new AbortController,cause:w,loaderDeps:x?i(x.loaderDeps,g):g,invalid:!1,preload:!1,staticData:a.options.staticData||{},fullPath:a.fullPath}}let ee=c===a.id;T._notFound&&!ee&&(T.error=void 0),T._notFound=ee,u[n]=T}for(let e=0;e<u.length;e++){let n=u[e];n.params=n.cause===`stay`?O(n.params,p):p,t?._controller&&(n.context={})}return u}matchRoutesLightweight(e){let t=f(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,r=n?.id,i=this.lightweightCache.get(e);if(i&&i[0]===r)return i[1];let[a,o]=this.getMatchedRoutes(e.pathname),s=f(a),c={...e.search};for(let e of a)try{Object.assign(c,_t(e.options.validateSearch,c))}catch{}let l=n&&n.routeId===s.id&&n.pathname===e.pathname,u;if(l)u=n.params;else{let e=Object.assign(Object.create(null),o);for(let t of a)try{xt(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}},ht=class extends Error{},gt=class extends Error{};function _t(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new ht(`Async validation not supported`);if(n.issues)throw new ht(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function vt(e,t,n,r){let i=[];for(let e of n){let t=e.options;`search`in t?t.search?.middlewares&&i.push(...t.search.middlewares):(t.preSearchFilters||t.postSearchFilters)&&i.push(({search:e,next:n})=>{let r=n(t.preSearchFilters?t.preSearchFilters.reduce((e,t)=>t(e),e):e);return t.postSearchFilters?t.postSearchFilters.reduce((e,t)=>t(e),r):r});let n=t.validateSearch;n&&i.push(({search:e,next:t,meta:i})=>{let a=t(e);if(r)try{let e=_t(n,a);if(i&&e)for(let t in e)t in a||(i.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let a=(e,n,r)=>{if(e>=i.length){if(!t.search)return{};if(t.search===!0)return n;let e=_(t.search,n);return r&&(r.explicit=e),e}return i[e]({search:n,next:(t,n)=>{if(n){let n=r||{};return{search:a(e+1,t,n),meta:n}}return a(e+1,t,r)},meta:r})};return a(0,e)}function yt(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return re}function bt(e,t){return e===!1||e===null?Object.create(null):(e??!0)===!0?t:Object.assign(t,_(e,t))}function xt(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function St(e,t){return e.options[t]?.preload?.()}function Ct(e,t){let n=St(e,`component`),r=St(e,`pendingComponent`),i=t&&r?r.then(t):r;return t&&!r&&t(),n&&i?Promise.all([n,i]).then(()=>{}):n??i}function z(e,t,n){let r=()=>t===!1?void 0:t?St(e,t):Ct(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function wt(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}var B=0,V=1,Tt=2,H=3,U=4;function Et(e){return typeof e[0]==`number`}function W(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,r)=>{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).finally(()=>t.removeEventListener(`abort`,i))})}function G(e,t){return e.routesById[t.routeId]}function Dt(e,t,n){return ae(e)?[H,e]:I(e)?(e.routeId||=n,[Tt,e]):(t&&typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),t?[V,e]:[B,e])}function Ot(e,t){let n=Dt(t,!0,e.id);if(n[0]!==V)return n;try{e.options.onError?.(n[1])}catch(t){n=Dt(t,!0,e.id)}return n}function kt(e,t,n){return n[0].signal.aborted||!n[2]()?(n[0].abort(),[U]):Ot(e,t)}function At(e,t){return n=>e.navigate({...n,_fromLocation:t})}async function jt(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[4];for(let t=n[7]??0;t<r;t++){let r=s[t],i=G(e,r);r.abortController=n[0];let u=s[t-1]?.context??e.options.context??{},d={params:r.params,location:o,navigate:At(e,o),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:i.id},f=u;try{let e=r._ctx;!e&&i.options.context&&(e=r._ctx=i.options.context({...d,deps:r.loaderDeps,context:u})||{}),f={...u,...e},r.context=f}catch(a){return K(e,r),[t,kt(i,a,n)]}if(c.aborted||!n[2]())return n[0].abort(),[t,[U]];let p=r.paramsError??r.searchError;if(p!==void 0)return K(e,r),[t,kt(i,p,n)];let m=i.options.beforeLoad;if(!m)continue;let h={...d,search:r.search,context:f,...e.options.additionalContext},g=r.status;g===`success`&&t>=a&&(r.status=`pending`),n[8]?.();try{Pt(e,r,`beforeLoad`,n[0]);let a=await W(m(h),c);if(!n[2]())return n[0].abort(),[t,[U]];let o=Dt(a,!1,i.id);if(o[0]!==B)return K(e,r),[t,o];r.context={...f,...a}}catch(a){return K(e,r),[t,kt(i,a,n)]}finally{g===`success`&&r.status===`pending`&&(r.status=`success`),Pt(e,r,!1,n[0])}}i()}function Mt(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function K(e,t){let n=t._flight;t._flight=void 0,Mt(e,t,n)?.abort()}function q(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=Mt(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function Nt(e){for(let t of e){let e=t._flight;e&&e[2]++}}function Pt(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function Ft(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:At(e,s),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function It(e,t,n,r,i,a,o,s){let c=s.signal;if(c.aborted)return[U];if(!i)return[B,void 0];let l=n._flight;Pt(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(Ft(e,t,n,r,s,a,o))).then(e=>Dt(e,!1,r.id),e=>Dt(e,!0,r.id)).then(t=>(t[0]!==B&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===V&&l[2]?Ot(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],await W(l[0],c)}catch(t){if(t!==c)throw t;return K(e,n),[U]}finally{Pt(e,n,!1,s)}}function Lt(e,t,n){t[0]===B?(e.loaderData=t[1],e.error=void 0,e.status=`success`,e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):t[0]!==H&&(e.status=`success`,e.error=void 0,e.invalid=!0)}function Rt(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&K(e,r)}function zt(e,t){return t[0]===V||t[0]===Tt?{...e,status:t[0]===V?`error`:`notFound`,error:t[1],_flight:void 0}:e}function Bt(e,t,n,r,i,a,o){let s=t[1][n],c=G(e,s),l=!!a[4],u=l?e._cache.get(s.id):void 0,d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(Ft(e,t,s,c,a[0],i,l))),a[2]()||(a[0].abort(),p=[U])),!p)if(s.status!==`success`)f=!0;else{let t=a[4]||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[6]||s.cause===`enter`||a[3].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}catch(t){s.invalid=!0,K(e,s),p=kt(c,t,a)}let m=c.options.loader,h=typeof m==`function`?m:m?.handler,g=(!l||c.options.preload!==!1)&&m?e._flights?.get(s.id):void 0;g===s._flight||p?g=void 0:g&&!f&&!l&&d===void 0?f=!0:f||(g=void 0);let _=!!(m&&f&&s.status===`success`&&!l&&!a[5]&&((typeof m==`function`?void 0:m?.staleReloadMode)??e.options.defaultStaleReloadMode)!==`blocking`),v=f&&(!l||c.options.preload!==!1),y=v&&!_&&(s.status!==`success`||!!m),b=c.lazyFn&&c._lazy!==!0?a[8]:void 0;if(v&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),g&&g[2]++,y){let t=s._flight;s._flight=g,Mt(e,s,t)?.abort(),s.status===`success`&&n>=o&&(s.status=`pending`),a[8]?.()}v||(s.isFetching=!1);let x=(p?Promise.resolve(p):y?It(e,t,s,c,h,i,l,a[0]):Promise.resolve([B,s.loaderData])).then(t=>(y&&(Lt(s,t,l),t[0]===B&&(l&&m&&!a[0].signal.aborted&&Rt(e,s,u),s.status=`pending`)),t)),S=W(Promise.resolve().then(()=>z(c,void 0,b)),a[0].signal).then(()=>void 0,e=>[n,kt(c,e,a)]).then(e=>x.then(t=>(y&&!e&&t[0]===B&&s.status===`pending`&&a[2]()&&(s.status=`success`,a[8]?.()),e)));if(r.push([n,x,S]),!_)return x.then(e=>zt(s,e));let C={...s,status:`pending`,preload:!1,_flight:g};s.invalid=!1,s.isFetching=`loader`;let w=It(e,t,C,c,h,i,!1,a[0]).then(e=>(s.isFetching=!1,Lt(C,e,!1),e));return(t[2]??=[]).push([n,w,S,C]),w.then(e=>zt(C,e))}async function Vt(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=G(e,t[n]),a=z(i,!1);if(a)try{await W(a,r)}catch(e){if(e===r)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function J(e,t){t[2]&&=(q(e,t[2].map(e=>e[3])),void 0)}async function Ht(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=H)throw[a,t];!i&&t[0]!==B&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===H)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}async function Ut(e,t,n,r,i,a,o){let s=t[1],c=await a,l=!1,u=s.findIndex(e=>e._notFound),d=t=>t[1][0]===Tt?Vt(e,s,t,r.signal):t[0],f=u<0?s.length:u;if((c?.[1][0]??0)>=H)f=0;else if(c){f=c[2]??=await d(c);for(let e of n){if(e[0]>=f)break;let t=await e[1];if(t[0]!==B&&t[0]<H&&!(`loaderData`in s[e[0]])){c=[e[0],t],f=c[2]=await d(c);break}}}for(let e of n){if(e[0]>=f)break;let t=await e[2];if(t){c=t;break}}if((c?.[1][0]??0)>=H){let n=c[1];if(n[0]!==H||n[1].options.reloadDocument||i<20)return J(e,t),n;l=!0,c=[0,[V,Error(`Too many redirects`)]]}let p=c?c[2]??await d(c):u;if(p>=0){let i=c?.[1],a=i?.[0],u=s[p],d=i?.[1],f=()=>{i&&(u._notFound=void 0,a===V?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};f();let m=G(e,u);try{await W(i?Promise.resolve().then(()=>z(m,a===V?`errorComponent`:`notFoundComponent`)):Promise.all([z(m),z(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal)return J(e,t),[U]}i?l&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),J(e,t),q(e,s),f()):(u.status=`success`,o?.())}return t}async function Wt(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;t<i;t++){let r=a[t],i=G(e,r).options;if(i.head||i.scripts)try{let t={ssr:e.options.ssr,matches:a,match:r,params:r.params,loaderData:r.loaderData},[o,s]=await W(Promise.all([i.head?.(t),i.scripts?.(t)]),n);r.meta=o?.meta,r.links=o?.links,r.headScripts=o?.scripts,r.styles=o?.styles,r.scripts=s}catch(e){if(e===n)break;console.error(e)}if(r.status!==`success`||r._notFound)break}return t}async function Gt(e,t,n,r){let i=[t,n],a=e.stores.matches.get(),o=n.findIndex(e=>e._notFound);if(e.options.notFoundMode!==`root`&&o>=0){let t=await Vt(e,i[1],void 0,r[0].signal,o);t!==o&&(n[o]._notFound=void 0,n[t]._notFound=!0),o=t}let s=o<0?n.length:o+1,c=0;for(;c<s&&c!==o;){let e=n[c],t=r[3][c],i=a[c];if(t?.id!==e.id||t.status!==`success`||t._notFound||e.preload||i?.id!==e.id||i.status!==`success`||i._notFound)break;c++}let l=[],u=r[7]??0,d=u?Promise.resolve(i[1][u-1]):void 0,f=()=>{for(let t=u;t<s&&!r[0].signal.aborted;t++)d=Bt(e,i,t,l,d,r,c)},p=await jt(e,i,r,s,f,c);if(p&&(r[5]=!0,s=p[0],p[1][0]===Tt?(p[2]=await Vt(e,i[1],p,r[0].signal),s=Math.min(s,p[2]+1)):p[1][0]>=H&&(s=0),f()),r[2]()&&!r[4]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let m;try{let t=Ut(e,i,l,r[0],r[1],Ht(l,p,i[2]),r[8]);i[2]?.length&&(i[3]=Ht(i[2],void 0,void 0,t.then(e=>Et(e)?0:wt(e[1]).length,()=>0))),m=await t}catch(t){throw J(e,i),t}return Et(m)?m:Wt(e,m,r[0].signal,r[7]===m[1].length?r[7]:0)}function Kt(e,t){if(e._tx!==t)return;let n=e._pending,r=!1,i=n?.[0][3][n[1]]?.id;n?.[0]!==t&&(n&&t[3][n[1]]?.id===i?(n[0]=t,r=!0):(clearTimeout(n?.[3]),e._pending=n=void 0));let a=t[3],o=e.stores.matches.get(),s=-1,c,l,u,d=!1;for(let t=0;t<a.length;t++){let n=a[t],r=n.status===`success`;if(d=o[t]?.id===n.id&&o[t]?.status===`pending`,r&&!d)continue;let i=G(e,n);if(c=r&&d||n.invalid?0:i.options.pendingMs??e.options.defaultPendingMs,u=i.options.pendingComponent??e.options.defaultPendingComponent,!u||typeof c!=`number`||c===1/0)return;s=t,l=i.options.pendingMinMs??e.options.defaultPendingMinMs??0;break}if(s<0)return;let f=a[s].id;if((!n||n[1]!==s||i!==f)&&(clearTimeout(n?.[3]),e._pending=n=[t,s,d?Date.now()+l:t[4]+c,void 0,d?Promise.resolve(!0):void 0,u]),n[4]&&!r&&n[5]===u)return;if(n[5]=u,!n[4]){clearTimeout(n[3]);let r=n[2]-Date.now();if(r>0){n[3]=setTimeout(()=>Kt(e,t),r);return}n[2]=0}let p=a.map(e=>({...e,_flight:void 0}));p[s].status=`pending`;let m=e.startTransition(()=>e.stores.setMatches(p),p).then(t=>(t&&e._pending===n&&n[4]===m&&!n[2]&&(n[2]=Date.now()+l),t));n[4]=m}function qt(e,t){let n=e._pending;n?.[0]===t&&(clearTimeout(n[3]),e._pending=void 0)}function Jt(e,t){e._committed=t,e.stores.setMatches(t)}function Yt(e,t){q(e,t[1]),J(e,t)}function Xt(e,t,n,r){let i=e._committed,a=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let o=wt(n).length,s=new Map,c=Date.now();for(let t of[...i,...a.values()]){if(t.status!==`success`||n.some((e,n)=>e.id===t.id&&(n<o||e.status===`success`)))continue;let r=G(e,t);!r.options.loader||c-t.updatedAt>=(t.preload?r.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:r.options.gcTime??e.options.defaultGcTime??3e5)||s.set(t.id,a.get(t.id)===t?t:{...t,_flight:void 0,isFetching:!1,context:{}})}t[3]=[],e._cache=s,Jt(e,n),q(e,[...a.values(),...i],[...n,...s.values()]),pt(e,i,n,()=>e._tx===t)}async function Y(e,t){let n=e._tx;for(;n&&n!==t;){if(await n[5],e._tx===n)return;n=e._tx}}async function Zt(e,t,n){await e.navigate({...n.options,replace:!0,ignoreBlocker:!0,_redirects:t[1]+1})}function Qt(e,t){qt(e,t),t[0].abort(),q(e,t[3]),t[3]=[],e._tx===t&&(e.batch(()=>{e.stores.status.set(`idle`),e.stores.setMatches(e._committed)}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0))}async function $t(e,t,n,r,i){let a=n.map(e=>({...e}));Nt(a);for(let t of r)K(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await Ut(e,o,r,t[0],t[1],i)}catch(t){throw q(e,a),t}if(Et(s)){q(e,a),s[0]===H&&e._tx===t&&e._committed===n&&await Zt(e,t,s[1]);return}let c=await Wt(e,s,t[0].signal);if(e._tx!==t||e._committed!==n){q(e,c[1]);return}for(let t of c[1]){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),K(e,n))}Jt(e,c[1]),q(e,n,c[1])}async function en(e,t,n,r,i,a){let o=[t[0],t[1],()=>e._tx===t&&!!t[3].length,e._committed,void 0,i,n,a,r],s=await Gt(e,t[2],t[3],o);if(Et(s)){s[0]===H&&e._tx===t?(qt(e,t),q(e,t[3]),t[3]=[],e._tx===t&&await Zt(e,t,s[1])):Qt(e,t);return}let c=e._pending;if(c?.[0]===t&&(clearTimeout(c[3]),c[4])){let n=t[0].signal,r=!1;try{r=await W(c[4],n)}catch(e){if(e!==n)throw e}if(r&&e._pending===c&&c[0]===t){let e=c[2]-Date.now();if(e>0){try{await W(new Promise(t=>{c[3]=setTimeout(t,e)}),n)}catch{}clearTimeout(c[3])}}}if(e._tx!==t){qt(e,t),Yt(e,s);return}let l=t[2],u=dt(l,e.stores.resolvedLocation.get()),d=s[2];await e.startViewTransition(async()=>{if(e._tx!==t){Yt(e,s);return}let n=await e.startTransition(()=>{qt(e,t),Xt(e,t,s[1],a),e._tx===t&&(e.emit({type:`onLoad`,...u}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...u}))},s[1]);if(e._tx!==t){J(e,s);return}d?.length&&$t(e,t,s[1],d,s[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(l),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...u}),n&&e._tx===t&&e.emit({type:`onRendered`,...u})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function tn(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),u.signal.aborted){await Y(e,n);return}let f=dt(a,r);if(e.emit({type:`onBeforeNavigate`,...f}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...f}),u.signal.aborted){await Y(e,n);return}let p=i.href===a.href,m,h=u;try{m=e.matchRoutes(a,{_controller:u}),Nt(m)}catch(t){if(u.abort(),!ae(t)){await Y(e),e._commitPromise?.resolve(),e._commitPromise=void 0;return}await e.navigate({...t.options,replace:!0,ignoreBlocker:!0}),await Y(e,n);return}let g=l?c[1](m):void 0;if(g?h=l:l?.abort(),u.signal.aborted){q(e,m),await Y(e,n);return}e._preflight=void 0;let _=[h,s,a,m,Date.now(),Promise.resolve().then(()=>en(e,_,p,()=>Kt(e,_),t?.sync,g)).catch(()=>{e._tx===_&&Qt(e,_)})];if(e._tx=_,n){for(let t of e.stores.matches.get()){if(e._tx!==_)break;t.isFetching&&Pt(e,t,!1)}n[0].abort(),q(e,n[3],_[3],!0)}if(e._tx!==_){q(e,_[3]),_[3]=[],await Y(e,_);return}e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),!r&&!m.some(e=>e._notFound)&&Kt(e,_);try{await _[5]}finally{await Y(e,_)}}async function nn(e,t,n=0){if(n>20)return;let r=t._builtLocation??e.buildLocation(t),i=e._committed,a=new AbortController,o;try{o=e.matchRoutes(r,{_controller:a}),Nt(o)}catch(e){a.abort(),I(e)||console.error(e);return}(e._preloads??=new Map).set(a,o);let s;try{let t;try{t=await Gt(e,r,o,[a,n,()=>!0,i,!0])}finally{s=e._preloads.delete(a),q(e,o),a.abort()}if(!Et(t))return t[1];if(s&&t[0]===H&&!t[1].options.reloadDocument)return nn(e,{...t[1].options,_fromLocation:r},n+1)}catch(e){I(e)||console.error(e)}}function rn(e){return P(an,{...e})}var an=class extends N.Component{constructor(...e){super(...e),this.state={error:null},this.reset=()=>{this.setState({error:null})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?N.createElement(this.props.errorComponent??on,{error:e,reset:this.reset}):this.props.children}};function on({error:e}){let[t,n]=N.useState(!1);return F(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[F(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[P(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),P(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),P(`div`,{style:{height:`.25rem`}}),t?P(`div`,{children:P(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?P(`code`,{children:e.message}):null})}):null]})}var X=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(X||{});function sn({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function cn(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var ln=[],un=0,{link:dn,unlink:fn,propagate:pn,checkDirty:mn,shallowPropagate:hn}=sn({update(e){return e._update()},notify(e){ln[_n++]=e,e.flags&=~X.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=X.Mutable|X.Dirty,bn(e))}}),gn=0,_n=0,Z,vn=0;function yn(e){try{++vn,e()}finally{--vn||xn()}}function bn(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=fn(n,e)}function xn(){if(!(vn>0)){for(;gn<_n;){let e=ln[gn];ln[gn++]=void 0,e.notify()}gn=0,_n=0}}function Sn(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?X.None:X.Mutable,get(){return Z!==void 0&&dn(i,Z,un),i._snapshot},subscribe(e){let t=cn(e),n={current:!1},r=Cn(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Z,o=t?.compare??Object.is;if(n)Z=i,++un,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=X.Mutable|X.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Z=a,n&&(i.flags&=~X.RecursedCheck),bn(i)}}};return n?(i.flags=X.Mutable|X.Dirty,i.get=function(){let e=i.flags;if(e&X.Dirty||e&X.Pending&&mn(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&hn(e)}}else e&X.Pending&&(i.flags=e&~X.Pending);return Z!==void 0&&dn(i,Z,un),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(pn(e),hn(e),xn())}},i}function Cn(e){let t=()=>{let t=Z;Z=n,++un,n.depsTail=void 0,n.flags=X.Watching|X.RecursedCheck;try{return e()}finally{Z=t,n.flags&=~X.RecursedCheck,bn(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:X.Watching|X.RecursedCheck,notify(){let e=this.flags;e&X.Dirty||e&X.Pending&&mn(this.deps,this)?t():this.flags=X.Watching},stop(){this.flags=X.None,this.depsTail=void 0,bn(this)}};return t(),n}function wn(e){let t=M(),r=`not-found-${n(t.stores.location,e=>e.pathname)}-${n(t.stores.status,e=>e)}`;return P(rn,{getResetKey:()=>r,onCatch:(t,n)=>{if(I(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(I(t))return e.fallback?.(t);throw t},children:e.children})}function Tn(){return P(`p`,{children:`Not Found`})}function Q(e){return P(De,{children:e.children})}function En(e,t,n){return t.options.notFoundComponent?P(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?P(e.options.defaultNotFoundComponent,{...n}):P(Tn,{})}function Dn(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?P(n,{}):null}var On=(e,t)=>e[0]===t[0]&&e[1]===t[1],kn=N.memo(function({routeId:e}){let t=M();return P(An,{router:t,match:n(t.stores.getMatchStore(e),e=>e)})});function An({router:e,match:n}){let r=e.routesById[n.routeId],i=Dn(e,r),a=r.options.errorComponent??e.options.defaultErrorComponent,o=r.options.onCatch??e.options.defaultOnCatch,s=r.isRoot?r.options.notFoundComponent??e.options.notFoundRoute?.options.component:r.options.notFoundComponent,c=n.ssr===!1||n.ssr===`data-only`,l=r.options.wrapInSuspense??i??(r.options.errorComponent?.preload||c)?N.Suspense:Q,u=a?rn:Q,d=s?wn:Q;return F(r.isRoot?r.options.shellComponent??Q:Q,{children:[P(ne.Provider,{value:n.routeId,children:P(l,{fallback:i,children:P(u,{getResetKey:()=>n,errorComponent:a,onCatch:(e,t)=>{if(I(e))throw e.routeId??=n.routeId,e;o?.(e,t)},children:P(d,{fallback:e=>{if(e.routeId??=n.routeId,e.routeId!==n.routeId)throw e;return N.createElement(s,e)},children:c?P(t,{fallback:i,children:P(jn,{match:n})}):P(jn,{match:n})})})})}),null]})}var jn=N.memo(function({match:e}){let t=M(),n=e.routeId,r=t.routesById[n],i=N.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=N.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?P(e,{},i):P(Mn,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t._tx)throw t._tx[5];return Dn(t,r)}if(e.status===`notFound`)return En(t,r,e.error);if(e.status===`error`)throw e.error;return a}),Mn=N.memo(function(){let e=M(),t=N.useContext(ne),r,i,a;{let o=e.stores.getMatchStore(t);[r,i]=n(o,e=>[!!e._notFound,e.error],On),a=n(e.stores.ids,e=>e[e.indexOf(t)+1])}if(r)return En(e,e.routesById[t],i);if(!a)return null;let o=P(kn,{routeId:a});return t===`__root__`?P(N.Suspense,{fallback:Dn(e),children:o}):o});function Nn(e,t){let n=e[1];e.length=0,n?.(t)}function Pn({t:e}){let t=M(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise((a,o)=>{Nn(n,!1),n.push(i,a),e(t),N.startTransition(()=>{try{r()}catch(e){n[1]===a&&(n.length=0),o(e)}})}),D(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(S(r.publicHref)!==S(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...dt(a,a)})}):t._tx||t.load().catch(console.error),e},[t,t.history]),null}function Fn(){let e=M(),t=e.routesById[re],n=Dn(e,t),r=e.ssr?Q:N.Suspense,i=F(De,{children:[P(Pn,{t:N.useState()[1]}),P(r,{fallback:n,children:P(In,{})})]});return e.options.InnerWrap?P(e.options.InnerWrap,{children:i}):i}function In(){let e=M(),t=e._rendered,r=n(e.stores.matches,e=>t[0]??e),i=r[0],a=i?.routeId;D(()=>{t[0]===r&&Nn(t,!0)},[t,r]);let o=a?P(kn,{routeId:a}):null;return P(ne.Provider,{value:a,children:e.options.disableGlobalCatchBoundary?o:P(rn,{getResetKey:()=>i,onCatch:void 0,children:o})})}var Ln=e=>({createMutableStore:Sn,createReadonlyStore:Sn,batch:yn}),Rn=e=>new zn(e),zn=class extends mt{constructor(e){super(e,Ln)}};function Bn({router:e,children:t,...n}){u(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=P(se.Provider,{value:e,children:t});return e.options.Wrap?P(e.options.Wrap,{children:r}):r}function Vn({router:e,...t}){return P(Bn,{router:e,...t,children:P(Fn,{})})}var Hn=ke.div`
3
+ display: flex;
4
+ align-items: center;
5
+ justify-content: center;
6
+ min-height: 100vh;
7
+ padding: ${({theme:e})=>e.space(4)};
8
+ text-align: center;
9
+ `,Un=ke.p`
10
+ font-size: 13px;
11
+ color: ${({theme:e})=>e.color.inkDim};
12
+ max-width: 48ch;
13
+ `,Wn=ie()({component:Mn,notFoundComponent:()=>P(Hn,{children:F(ce,{$gap:3,style:{alignItems:`center`},children:[P(ue,{children:`Not found`}),P(Un,{children:`This console has no screen at that address.`}),P(le,{as:`a`,href:`/`,$variant:`primary`,$size:`sm`,children:`Back to the rack`})]})})});async function Gn(e){return e.queryClient.ensureQueryData({queryKey:o.status,queryFn:()=>fe(`/api/status`),revalidateIfStale:!0})}function Kn(e){let t=e.principal;return e.authenticated!==!0||t==null?`/login`:t.kind===`client`?`/client`:t.kind===`admin`||t.kind===`viewer`?`/`:`/login`}function qn(e,t){let n=Kn(e);if(n===`/login`)throw oe({to:`/login`,search:{next:t}});if(n!==`/`)throw oe({to:n})}function Jn(e,t){let n=Kn(e);if(n===`/login`)throw oe({to:`/login`,search:{next:t}});if(n!==`/client`)throw oe({to:n})}var Yn=A(`/_app`)({beforeLoad:async({context:e,location:t})=>{qn(await Gn(e),t.href),await e.queryClient.ensureQueryData(a)},pendingComponent:Xn,pendingMs:200,errorComponent:k(()=>j(()=>import(`./_app-BWNEo1e-.js`),__vite__mapDeps([0,1])),`errorComponent`),component:Zn});function Xn(){return P(me,{legend:`Console`,children:P(de,{rows:6})})}function Zn(){let e=te().data??[];return P(ye,{children:F(ve,{children:[P(he,{$providers:e}),P(ge,{children:P(Mn,{})})]})})}var Qn=A(`/client`)({beforeLoad:async({context:e,location:t})=>{Jn(await Gn(e),t.href)},component:k(()=>j(()=>import(`./client-Mf5f5R9Z.js`),__vite__mapDeps([2,3,4,1,5,6,7,8,9,10,11,12,13,14,15,16])),`component`)}),$n=A(`/_app/`)({component:k(()=>j(()=>import(`./_app.index-CB3UFRwF.js`),__vite__mapDeps([17,4,1,5,13,14,9,10,16])),`component`)}),er=A(`/_app/accounts`)({component:k(()=>j(()=>import(`./_app.accounts-B-OYO2Yi.js`),__vite__mapDeps([18,4,1,5,19,6,20,21,22,14,8,9,10,11,3])),`component`)}),tr=A(`/_app/console`)({component:k(()=>j(()=>import(`./_app.console-BOZ1wncA.js`),__vite__mapDeps([23,4,1,5,7,8])),`component`)}),nr=A(`/_app/database`)({component:k(()=>j(()=>import(`./_app.database-B5oHZPbu.js`),__vite__mapDeps([24,4,1,5,8,9,10,16,25])),`component`)}),rr=A(`/_app/keys`)({component:k(()=>j(()=>import(`./_app.keys-B89CMo3x.js`),__vite__mapDeps([26,4,1,5,19,6,20,22,14,8,9,10])),`component`)}),ir=A(`/_app/logs`)({component:k(()=>j(()=>import(`./_app.logs-CNAnRW07.js`),__vite__mapDeps([27,4,1,5,14,8,12,13,10])),`component`)}),ar=A(`/_app/models`)({component:k(()=>j(()=>import(`./_app.models-DpRcGhag.js`),__vite__mapDeps([28,4,1,5,20,21,22,14,8,9])),`component`)}),or=A(`/_app/settings`)({component:k(()=>j(()=>import(`./_app.settings-BV085FpM.js`),__vite__mapDeps([29,4,1,5,22,8,9,25])),`component`)}),sr=A(`/_app/usage`)({component:k(()=>j(()=>import(`./_app.usage-CGuOdYun.js`),__vite__mapDeps([30,3,4,1,5,10,15,16])),`component`)}),$=Yn.update({id:`/_app`,getParentRoute:()=>Wn}),cr=Qn.update({id:`/client`,path:`/client`,getParentRoute:()=>Wn}),lr=be.update({id:`/login`,path:`/login`,getParentRoute:()=>Wn}),ur=$n.update({id:`/`,path:`/`,getParentRoute:()=>$}),dr={AppAccountsRoute:er.update({id:`/accounts`,path:`/accounts`,getParentRoute:()=>$}),AppConsoleRoute:tr.update({id:`/console`,path:`/console`,getParentRoute:()=>$}),AppDatabaseRoute:nr.update({id:`/database`,path:`/database`,getParentRoute:()=>$}),AppKeysRoute:rr.update({id:`/keys`,path:`/keys`,getParentRoute:()=>$}),AppLogsRoute:ir.update({id:`/logs`,path:`/logs`,getParentRoute:()=>$}),AppModelsRoute:ar.update({id:`/models`,path:`/models`,getParentRoute:()=>$}),AppSettingsRoute:or.update({id:`/settings`,path:`/settings`,getParentRoute:()=>$}),AppUsageRoute:sr.update({id:`/usage`,path:`/usage`,getParentRoute:()=>$}),AppIndexRoute:ur,AppPluginsPluginIdRoute:xe.update({id:`/plugins/$pluginId`,path:`/plugins/$pluginId`,getParentRoute:()=>$})},fr={AppRoute:$._addFileChildren(dr),ClientRoute:cr,LoginRoute:lr},pr=Wn._addFileChildren(fr)._addFileTypes();function mr(e){return{isLoginRoute:()=>e().state.location.pathname===`/login`,onUnauthenticated:()=>void e().navigate({to:`/login`,search:{next:e().state.location.href}})}}function hr(e){let t=t=>{!(t instanceof pe)||!t.isUnauthenticated||e.isLoginRoute()||e.onUnauthenticated()};return new we({queryCache:new Ce({onError:t}),mutationCache:new Se({onError:t}),defaultOptions:{queries:{retry:(e,t)=>t instanceof pe&&t.isUnauthenticated?!1:e<2,staleTime:5e3,refetchOnWindowFocus:!0},mutations:{retry:!1}}})}var gr,_r=hr(mr(()=>gr));gr=Rn({routeTree:pr,context:{queryClient:_r}});var vr=document.getElementById(`root`);if(vr===null)throw Error(`#root is missing from index.html`);Oe(vr).render(P(Ee,{children:P(_e,{children:P(Te,{client:_r,children:P(Vn,{router:gr})})})}));
@@ -1,4 +1,4 @@
1
- import{It as e,Wt as t,t as n,vt as r,zt as i}from"./Lamp-ZlMzNs5N.js";import{C as a,D as o,E as s,_ as c,b as l,n as u,o as d}from"./Panel-CYQvfI3L.js";import{t as f}from"./login-dV42ZQIA.js";import{n as p,t as m}from"./Field-DK5zaBVA.js";import{t as h}from"./reasons-Du1OBWAM.js";import{useState as g}from"react";import{jsx as _,jsxs as v}from"react/jsx-runtime";import y from"styled-components";var b=y.div`
1
+ import{Bt as e,Gt as t,Lt as n,t as r,vt as i}from"./Lamp-Cxp-OxUq.js";import{C as a,D as o,E as s,_ as c,b as l,n as u,o as d}from"./Panel-CYQvfI3L.js";import{t as f}from"./login-CwYbEKWH.js";import{n as p,t as m}from"./Field-DK5zaBVA.js";import{t as h}from"./reasons-Du1OBWAM.js";import{useState as g}from"react";import{jsx as _,jsxs as v}from"react/jsx-runtime";import y from"styled-components";var b=y.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
@@ -42,4 +42,4 @@ import{It as e,Wt as t,t as n,vt as r,zt as i}from"./Lamp-ZlMzNs5N.js";import{C
42
42
  font: inherit;
43
43
  font-size: 12px;
44
44
  cursor: pointer;
45
- `;function O(){let s=t(),{next:u,reason:y}=f.useSearch(),O=i(),k=r(),A=e(),[j,M]=g(``),[N,P]=g(``),[F,I]=g(null),[L,R]=g(`admin`),z=O.data?.configured===!1,B=[{id:`admin`,label:`Operator`,blurb:`This console is for the operator of this gateway.`},...O.data?.viewerConfigured===!0?[{id:`viewer`,label:`Read-only`,blurb:`Everything the operator can see, and nothing they can change.`}]:[],{id:`client`,label:`API key`,blurb:`Your own usage, limits and requests. Sign in with a gateway API key.`}],V=L===`client`,H=h(y),U=k.isPending||A.isPending||O.isLoading,W=()=>{if(V){s({to:`/client`});return}s({to:u?.startsWith(`/`)===!0?u:`/`})};return _(b,{children:v(x,{children:[v(S,{children:[_(n,{state:O.isError?`down`:`ok`,label:O.isError?`gateway unreachable`:`gateway reachable`}),`Omnigateway`]}),v(C,{onSubmit:e=>{if(e.preventDefault(),I(null),z){if(j!==N){I(`The two passwords do not match.`);return}A.mutate(j,{onSuccess:W,onError:e=>I(d(e))});return}k.mutate({mode:L,secret:j},{onSuccess:W,onError:()=>I(V?`That API key was not accepted. It may have been revoked.`:`That password does not match. Try again.`)})},children:[O.isError?_(T,{children:`The gateway is not answering. Check that it is running, then reload.`}):null,H===null?null:_(E,{role:`status`,children:H}),v(a,{$gap:1,children:[_(c,{children:z?`First run`:`Sign in`}),_(w,{children:z?`Set the operator password for this gateway. It is the only account, and it is stored hashed.`:B.find(e=>e.id===L)?.blurb??``})]}),z||B.length<2?null:_(l,{$gap:1,$wrap:!0,role:`tablist`,"aria-label":`Sign in as`,children:B.map(e=>_(D,{type:`button`,role:`tab`,"aria-selected":e.id===L,$on:e.id===L,onClick:()=>{R(e.id),M(``),I(null)},children:e.label},e.id))}),_(m,{label:V?`API key`:`Password`,children:e=>_(p,{...e,type:`password`,autoFocus:!0,autoComplete:z?`new-password`:V?`off`:`current-password`,value:j,onChange:e=>M(e.target.value)})}),z?_(m,{label:`Confirm password`,children:e=>_(p,{...e,type:`password`,autoComplete:`new-password`,value:N,onChange:e=>P(e.target.value)})}):null,F===null?null:_(T,{role:`alert`,children:F}),_(l,{children:_(o,{type:`submit`,$variant:`primary`,disabled:U||j.length===0,children:z?`Set password and sign in`:`Sign in`})})]})]})})}export{O as component};
45
+ `;function O(){let s=t(),{next:u,reason:y}=f.useSearch(),O=e(),k=i(),A=n(),[j,M]=g(``),[N,P]=g(``),[F,I]=g(null),[L,R]=g(`admin`),z=O.data?.configured===!1,B=[{id:`admin`,label:`Operator`,blurb:`This console is for the operator of this gateway.`},...O.data?.viewerConfigured===!0?[{id:`viewer`,label:`Read-only`,blurb:`Everything the operator can see, and nothing they can change.`}]:[],{id:`client`,label:`API key`,blurb:`Your own usage, limits and requests. Sign in with a gateway API key.`}],V=L===`client`,H=h(y),U=k.isPending||A.isPending||O.isLoading,W=()=>{if(V){s({to:`/client`});return}s({to:u?.startsWith(`/`)===!0?u:`/`})};return _(b,{children:v(x,{children:[v(S,{children:[_(r,{state:O.isError?`down`:`ok`,label:O.isError?`gateway unreachable`:`gateway reachable`}),`Omnigateway`]}),v(C,{onSubmit:e=>{if(e.preventDefault(),I(null),z){if(j!==N){I(`The two passwords do not match.`);return}A.mutate(j,{onSuccess:W,onError:e=>I(d(e))});return}k.mutate({mode:L,secret:j},{onSuccess:W,onError:()=>I(V?`That API key was not accepted. It may have been revoked.`:`That password does not match. Try again.`)})},children:[O.isError?_(T,{children:`The gateway is not answering. Check that it is running, then reload.`}):null,H===null?null:_(E,{role:`status`,children:H}),v(a,{$gap:1,children:[_(c,{children:z?`First run`:`Sign in`}),_(w,{children:z?`Set the operator password for this gateway. It is the only account, and it is stored hashed.`:B.find(e=>e.id===L)?.blurb??``})]}),z||B.length<2?null:_(l,{$gap:1,$wrap:!0,role:`tablist`,"aria-label":`Sign in as`,children:B.map(e=>_(D,{type:`button`,role:`tab`,"aria-selected":e.id===L,$on:e.id===L,onClick:()=>{R(e.id),M(``),I(null)},children:e.label},e.id))}),_(m,{label:V?`API key`:`Password`,children:e=>_(p,{...e,type:`password`,autoFocus:!0,autoComplete:z?`new-password`:V?`off`:`current-password`,value:j,onChange:e=>M(e.target.value)})}),z?_(m,{label:`Confirm password`,children:e=>_(p,{...e,type:`password`,autoComplete:`new-password`,value:N,onChange:e=>P(e.target.value)})}):null,F===null?null:_(T,{role:`alert`,children:F}),_(l,{children:_(o,{type:`submit`,$variant:`primary`,disabled:U||j.length===0,children:z?`Set password and sign in`:`Sign in`})})]})]})})}export{O as component};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-BtlMmyKj.js","assets/Lamp-ZlMzNs5N.js","assets/Panel-CYQvfI3L.js","assets/Field-DK5zaBVA.js","assets/reasons-Du1OBWAM.js"])))=>i.map(i=>d[i]);
2
- import{n as e,r as t,t as n}from"./preload-helper-4wSmu2-E.js";var r=t(`/login`)({validateSearch:e=>({...typeof e.next==`string`?{next:e.next}:{},...typeof e.reason==`string`?{reason:e.reason}:{}}),component:e(()=>n(()=>import(`./login-BtlMmyKj.js`),__vite__mapDeps([0,1,2,3,4])),`component`)});export{r as t};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-BpvnkW6i.js","assets/Lamp-Cxp-OxUq.js","assets/Panel-CYQvfI3L.js","assets/Field-DK5zaBVA.js","assets/reasons-Du1OBWAM.js"])))=>i.map(i=>d[i]);
2
+ import{n as e,r as t,t as n}from"./preload-helper-8jyVfd2a.js";var r=t(`/login`)({validateSearch:e=>({...typeof e.next==`string`?{next:e.next}:{},...typeof e.reason==`string`?{reason:e.reason}:{}}),component:e(()=>n(()=>import(`./login-BpvnkW6i.js`),__vite__mapDeps([0,1,2,3,4])),`component`)});export{r as t};
@@ -0,0 +1 @@
1
+ import{b as e}from"./Rack-xBT_6EtM.js";var t=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t};
@@ -1 +1 @@
1
- import{Gt as e,Sn as t,Ut as n,Wt as r,Zt as i,en as a,ln as o,tn as s,vn as c,xn as l}from"./Lamp-ZlMzNs5N.js";import{k as u}from"./Panel-CYQvfI3L.js";import*as d from"react";import f from"react";import{jsx as p}from"react/jsx-runtime";var m=`__root__`;function h(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function g(e){return e instanceof Response&&!!e.options}var _=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=m:this.parentRoute||o();let r=n?m:t?.path;r&&r!==`/`&&(r=a(r));let c=t?.id||r,l=n?m:i([this.parentRoute.id===`__root__`?``:this.parentRoute.id,c]);r===`__root__`&&(r=`/`),l!==`__root__`&&(l=i([`/`,l]));let u=l===`__root__`?`/`:i([this.parentRoute.fullPath,r]);this._path=r,this._id=l,this._fullPath=u,this._to=s(u)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>h({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},v=class extends _{constructor(e){super(e)}},y=d.createContext(void 0),b=d.createContext(void 0),x={};function S(e,t){let n=d.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=l(n.current,i):i}}function C(t){let n=u(),r=d.useContext(t.from?b:y),i=t.from??r,a=n.stores.getMatchStore(i),s=S(t,n),c=e(a,e=>e?s(e):x);if(c!==x)return c;(t.shouldThrow??!0)&&o()}function w(e){return C({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function T(e){let{select:t,...n}=e;return C({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function E(e){return C({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function D(e){return C({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function O(e){return C({...e,select:t=>e.select?e.select(t.context):t.context})}var k=class extends _{constructor(e){super(e),this.useMatch=e=>C({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>O({...e,from:this.id}),this.useSearch=e=>D({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>E({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>T({...e,from:this.id}),this.useLoaderData=e=>w({...e,from:this.id}),this.useNavigate=()=>r({from:this.fullPath}),this.Link=f.forwardRef((e,t)=>p(n,{ref:t,from:this.fullPath,...e}))}};function A(e){return new k(e)}function j(){return e=>N(e)}var M=class extends v{constructor(e){super(e),this.useMatch=e=>C({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>O({...e,from:this.id}),this.useSearch=e=>D({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>E({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>T({...e,from:this.id}),this.useLoaderData=e=>w({...e,from:this.id}),this.useNavigate=()=>r({from:this.fullPath}),this.Link=f.forwardRef((e,t)=>p(n,{ref:t,from:this.fullPath,...e}))}};function N(e){return new M(e)}function P(e){return e=>{let t=A(e);return t.isRoot=!1,t}}function F(e,n){let r,i,a,o=()=>(r||=(a=void 0,e().then(e=>{r=void 0,i=e[n??`default`]}).catch(e=>{r=void 0,a=e})),r),s=function(e){if(a){if(c(a)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${a.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw a}if(!i)if(t)t(o());else throw o();return d.createElement(i,e)};return s.preload=o,s}var I=`modulepreload`,L=function(e){return`/`+e},R={},z=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=L(t,n),t=s(t),t in R)return;R[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`:I,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)})};export{y as a,m as c,j as i,F as n,g as o,P as r,h as s,z as t};
1
+ import{Cn as e,Gt as t,Kt as n,Qt as r,Sn as i,Wt as a,nn as o,tn as s,un as c,yn as l}from"./Lamp-Cxp-OxUq.js";import{k as u}from"./Panel-CYQvfI3L.js";import*as d from"react";import f from"react";import{jsx as p}from"react/jsx-runtime";var m=`__root__`;function h(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function g(e){return e instanceof Response&&!!e.options}var _=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=m:this.parentRoute||c();let i=n?m:t?.path;i&&i!==`/`&&(i=s(i));let a=t?.id||i,l=n?m:r([this.parentRoute.id===`__root__`?``:this.parentRoute.id,a]);i===`__root__`&&(i=`/`),l!==`__root__`&&(l=r([`/`,l]));let u=l===`__root__`?`/`:r([this.parentRoute.fullPath,i]);this._path=i,this._id=l,this._fullPath=u,this._to=o(u)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>h({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},v=class extends _{constructor(e){super(e)}},y=d.createContext(void 0),b=d.createContext(void 0),x={};function S(e,t){let n=d.useRef();return r=>{let a=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=i(n.current,a):a}}function C(e){let t=u(),r=d.useContext(e.from?b:y),i=e.from??r,a=t.stores.getMatchStore(i),o=S(e,t),s=n(a,e=>e?o(e):x);if(s!==x)return s;(e.shouldThrow??!0)&&c()}function w(e){return C({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function T(e){let{select:t,...n}=e;return C({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function E(e){return C({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function D(e){return C({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function O(e){return C({...e,select:t=>e.select?e.select(t.context):t.context})}var k=class extends _{constructor(e){super(e),this.useMatch=e=>C({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>O({...e,from:this.id}),this.useSearch=e=>D({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>E({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>T({...e,from:this.id}),this.useLoaderData=e=>w({...e,from:this.id}),this.useNavigate=()=>t({from:this.fullPath}),this.Link=f.forwardRef((e,t)=>p(a,{ref:t,from:this.fullPath,...e}))}};function A(e){return new k(e)}function j(){return e=>N(e)}var M=class extends v{constructor(e){super(e),this.useMatch=e=>C({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>O({...e,from:this.id}),this.useSearch=e=>D({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>E({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>T({...e,from:this.id}),this.useLoaderData=e=>w({...e,from:this.id}),this.useNavigate=()=>t({from:this.fullPath}),this.Link=f.forwardRef((e,t)=>p(a,{ref:t,from:this.fullPath,...e}))}};function N(e){return new M(e)}function P(e){return e=>{let t=A(e);return t.isRoot=!1,t}}function F(t,n){let r,i,a,o=()=>(r||=(a=void 0,t().then(e=>{r=void 0,i=e[n??`default`]}).catch(e=>{r=void 0,a=e})),r),s=function(t){if(a){if(l(a)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${a.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw a}if(!i)if(e)e(o());else throw o();return d.createElement(i,t)};return s.preload=o,s}var I=`modulepreload`,L=function(e){return`/`+e},R={},z=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=L(t,n),t=s(t),t in R)return;R[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`:I,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)})};export{y as a,m as c,j as i,F as n,g as o,P as r,h as s,z as t};
@@ -1,4 +1,4 @@
1
- import{A as e,I as t,Kt as n}from"./Lamp-ZlMzNs5N.js";import{b as r}from"./Panel-CYQvfI3L.js";import*as i from"react";import{Component as a,cloneElement as o,createContext as s,createElement as c,forwardRef as l,isValidElement as u,memo as d,useCallback as f,useContext as p,useEffect as m,useImperativeHandle as h,useLayoutEffect as g,useMemo as _,useRef as v,useState as y}from"react";import{createPortal as b}from"react-dom";import x from"styled-components";var S=Object.create,C=Object.defineProperty,w=Object.getOwnPropertyDescriptor,T=Object.getOwnPropertyNames,E=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,O=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),k=(e,t)=>{let n={};for(var r in e)C(n,r,{get:e[r],enumerable:!0});return t||C(n,Symbol.toStringTag,{value:`Module`}),n},A=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=T(t),a=0,o=i.length,s;a<o;a++)s=i[a],!D.call(e,s)&&s!==n&&C(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=w(t,s))||r.enumerable});return e},j=(e,t,n)=>(n=e==null?{}:S(E(e)),A(t||!e||!e.__esModule||!D.call(e,`default`)?C(n,`default`,{value:e,enumerable:!0}):n,e));function M(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=M(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function N(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=M(e))&&(r&&(r+=` `),r+=t);return r}var ee=`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 te(e){return typeof e==`string`&&ee.includes(e)}var ne=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 re(e){return typeof e==`string`&&ne.has(e)}function ie(e){return typeof e==`string`&&e.startsWith(`data-`)}function ae(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(re(n)||ie(n))&&(t[n]=e[n]);return t}function oe(e){if(e==null)return null;if(u(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return ae(t)}return typeof e==`object`&&!Array.isArray(e)?ae(e):null}function se(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(re(n)||ie(n)||te(n))&&(t[n]=e[n]);return t}function ce(e){return e==null?null:u(e)?se(e.props):typeof e==`object`&&!Array.isArray(e)?se(e):null}var le=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function ue(){return ue=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},ue.apply(null,arguments)}function de(e,t){if(e==null)return{};var n,r,i=fe(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 fe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var pe=l((e,t)=>{var n=e.children,r=e.width,a=e.height,o=e.viewBox,s=e.className,c=e.style,l=e.title,u=e.desc,d=de(e,le),f=o||{width:r,height:a,x:0,y:0},p=N(`recharts-surface`,s);return i.createElement(`svg`,ue({},se(d),{className:p,width:r,height:a,style:c,viewBox:`${f.x} ${f.y} ${f.width} ${f.height}`,ref:t}),i.createElement(`title`,null,l),i.createElement(`desc`,null,u),n)}),me=[`children`,`className`];function he(){return he=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},he.apply(null,arguments)}function ge(e,t){if(e==null)return{};var n,r,i=_e(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 _e(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 ve=i.forwardRef((e,t)=>{var n=e.children,r=e.className,a=ge(e,me),o=N(`recharts-layer`,r);return i.createElement(`g`,he({className:o},se(a),{ref:t}),n)});function ye(e){return e===`__proto__`}var be=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function xe(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e===``||e.startsWith(`.`)||e.endsWith(`.`)?!1:be.test(e);default:return!1}}function Se(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function Ce(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(Ce).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function we(e){if(Array.isArray(e))return e.map(Se);if(typeof e==`symbol`)return[e];e=Ce(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let s=e[r];if(a)s===`\\`&&r+1<n?(r++,i+=e[r]):s===a?a=``:i+=s;else if(o)s===`"`||s===`'`?a=s:s===`]`?(o=!1,t.push(i),i=``):i+=s;else if(s===`[`)o=!0,i&&=(t.push(i),``);else if(s===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=s;r++}return i&&t.push(i),t}function Te(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(ye(t))return n;let r=e[t];return r===void 0?xe(t)&&!Object.hasOwn(e,t)?Te(e,we(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=Se(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return Ee(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),ye(t))return n;let r=e[t];return r===void 0?n:r}}}function Ee(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||ye(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var De=4;function Oe(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:De),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function ke(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+Oe(i)+n},``)}var Ae=e=>e===0?0:e>0?1:-1,je=e=>typeof e==`number`&&e!=+e,Me=e=>typeof e==`string`&&e.length>1&&e.indexOf(`%`)===e.length-1,P=e=>(typeof e==`number`||e instanceof Number)&&!je(e),Ne=e=>P(e)||typeof e==`string`,Pe=0,Fe=e=>{var t=++Pe;return`${e||``}${t}`},Ie=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(!P(e)&&typeof e!=`string`)return n;var i;if(Me(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return je(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},Le=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 Re(e,t,n){return P(e)&&P(t)?Oe(e+n*(t-e)):t}function ze(e,t,n){if(!(!e||!e.length))return e.find(e=>e&&(typeof t==`function`?t(e):Te(e,t))===n)}var F=e=>e==null,Be=e=>F(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function Ve(e){return e!=null}function He(){}function Ue(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}}function We(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 Ge(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?We(Object(n),!0).forEach(function(t){Ke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ke(e,t,n){return(t=qe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qe(e){var t=Je(e,`string`);return typeof t==`symbol`?t:t+``}function Je(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 Ye=e=>{var t=e.viewBox,n=e.position,r=e.offset,i=r===void 0?0:r,a=e.parentViewBox,o=e.clamp,s=Ue(t),c=s.x,l=s.y,u=s.height,d=s.upperWidth,f=s.lowerWidth,p=c,m=c+(d-f)/2,h=(p+m)/2,g=(d+f)/2,_=p+d/2,v=u>=0?1:-1,y=v*i,b=v>0?`end`:`start`,x=v>0?`start`:`end`,S=d>=0?1:-1,C=S*i,w=S>0?`end`:`start`,T=S>0?`start`:`end`,E=a;if(n===`top`){var D={x:p+d/2,y:l-y,horizontalAnchor:`middle`,verticalAnchor:b};return o&&E&&(D.height=Math.max(l-E.y,0),D.width=d),D}if(n===`bottom`){var O={x:m+f/2,y:l+u+y,horizontalAnchor:`middle`,verticalAnchor:x};return o&&E&&(O.height=Math.max(E.y+E.height-(l+u),0),O.width=f),O}if(n===`left`){var k={x:h-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`};return o&&E&&(k.width=Math.max(k.x-E.x,0),k.height=u),k}if(n===`right`){var A={x:h+g+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`};return o&&E&&(A.width=Math.max(E.x+E.width-A.x,0),A.height=u),A}var j=o&&E?{width:g,height:u}:{};return n===`insideLeft`?Ge({x:h+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`},j):n===`insideRight`?Ge({x:h+g-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`},j):n===`insideTop`?Ge({x:p+d/2,y:l+y,horizontalAnchor:`middle`,verticalAnchor:x},j):n===`insideBottom`?Ge({x:m+f/2,y:l+u-y,horizontalAnchor:`middle`,verticalAnchor:b},j):n===`insideTopLeft`?Ge({x:p+C,y:l+y,horizontalAnchor:T,verticalAnchor:x},j):n===`insideTopRight`?Ge({x:p+d-C,y:l+y,horizontalAnchor:w,verticalAnchor:x},j):n===`insideBottomLeft`?Ge({x:m+C,y:l+u-y,horizontalAnchor:T,verticalAnchor:b},j):n===`insideBottomRight`?Ge({x:m+f-C,y:l+u-y,horizontalAnchor:w,verticalAnchor:b},j):n&&typeof n==`object`&&(P(n.x)||Me(n.x))&&(P(n.y)||Me(n.y))?Ge({x:c+Ie(n.x,g),y:l+Ie(n.y,u),horizontalAnchor:`end`,verticalAnchor:`end`},j):Ge({x:_,y:l+u/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},j)},Xe=[`top`,`left`,`right`,`bottom`];function Ze(e){return e==null?!1:typeof e==`object`||Xe.includes(e)}var Qe=s(null);function I(e){return function(){return e}}var $e=Math.PI,et=2*$e,tt=1e-6,nt=et-tt;function rt(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function it(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return rt;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 at=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?rt:it(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>tt)if(!(Math.abs(u*s-c*l)>tt)||!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(($e-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>tt&&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)>tt||Math.abs(this._y1-l)>tt)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%et+et),d>nt?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>tt&&this._append`A${n},${n},0,${+(d>=$e)},${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._}};at.prototype;function ot(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 at(t)}Array.prototype.slice;function st(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function ct(e){this._context=e}ct.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)}}};function lt(e){return new ct(e)}function ut(e){return e[0]}function dt(e){return e[1]}function ft(e,t){var n=I(!0),r=null,i=lt,a=null,o=ot(s);e=typeof e==`function`?e:e===void 0?ut:I(e),t=typeof t==`function`?t:t===void 0?dt:I(t);function s(s){var c,l=(s=st(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:I(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:I(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:I(!!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 pt(e,t,n){var r=null,i=I(!0),a=null,o=lt,s=null,c=ot(l);e=typeof e==`function`?e:e===void 0?ut:I(+e),t=typeof t==`function`?t:I(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?dt:I(+n);function l(l){var u,d,f,p=(l=st(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 ft().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:I(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:I(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:I(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:I(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:I(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:I(+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:I(!!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 mt=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)}this._x0=e,this._y0=t}};function ht(e){return new mt(e,!0)}function gt(e){return new mt(e,!1)}function _t(){}function vt(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 yt(e){this._context=e}yt.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:vt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(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:vt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bt(e){return new yt(e)}function xt(e){this._context=e}xt.prototype={areaStart:_t,areaEnd:_t,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)}},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:vt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function St(e){return new xt(e)}function Ct(e){this._context=e}Ct.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:vt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wt(e){return new Ct(e)}function Tt(e){this._context=e}Tt.prototype={areaStart:_t,areaEnd:_t,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 Et(e){return new Tt(e)}function Dt(e){return e<0?-1:1}function Ot(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(Dt(a)+Dt(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function kt(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function At(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 jt(e){this._context=e}jt.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:At(this,this._t0,kt(this,this._t0))}(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,At(this,kt(this,n=Ot(this,e,t)),n);break;default:At(this,this._t0,n=Ot(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Mt(e){this._context=new Nt(e)}(Mt.prototype=Object.create(jt.prototype)).point=function(e,t){jt.prototype.point.call(this,t,e)};function Nt(e){this._context=e}Nt.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 Pt(e){return new jt(e)}function Ft(e){return new Mt(e)}function It(e){this._context=e}It.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=Lt(e),i=Lt(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 Lt(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 Rt(e){return new It(e)}function zt(e,t){this._context=e,this._t=t}zt.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)}}this._x=e,this._y=t}};function Bt(e){return new zt(e,.5)}function Vt(e){return new zt(e,0)}function Ht(e){return new zt(e,1)}function Ut(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 Wt(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function Gt(e,t){return e[t]}function Kt(e){let t=[];return t.key=e,t}function qt(){var e=I([]),t=Wt,n=Ut,r=Gt;function i(i){var a=Array.from(e.apply(this,arguments),Kt),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=st(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:I(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:I(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?Wt:typeof e==`function`?e:I(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Ut,i):n},i}function Jt(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}Ut(e,t)}}function Yt(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}Ut(e,t)}}function Xt(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,Ut(e,t)}}var Zt=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,Qt=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if(u(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{te(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},$t=(e,t,n)=>r=>(e(t,n,r),null),en=(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];te(i)&&typeof a==`function`&&(r||={},r[i]=$t(a,t,n))}),r};function tn(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 nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tn(Object(n),!0).forEach(function(t){rn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rn(e,t,n){return(t=an(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function an(e){var t=on(e,`string`);return typeof t==`symbol`?t:t+``}function on(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 sn(e,t){var n=nn({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function cn(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())}function ln(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function un(e){return e}function dn(e){return function(t){return Te(t,e)}}function fn(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function pn(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function mn(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function hn(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var gn=`[object RegExp]`,_n=`[object String]`,vn=`[object Number]`,yn=`[object Boolean]`,bn=`[object Arguments]`,xn=`[object Symbol]`,Sn=`[object Date]`,Cn=`[object Map]`,wn=`[object Set]`,Tn=`[object Array]`,En=`[object Function]`,Dn=`[object ArrayBuffer]`,On=`[object Object]`,kn=`[object Error]`,An=`[object DataView]`,jn=`[object Uint8Array]`,Mn=`[object Uint8ClampedArray]`,Nn=`[object Uint16Array]`,Pn=`[object Uint32Array]`,Fn=`[object BigUint64Array]`,In=`[object Int8Array]`,Ln=`[object Int16Array]`,Rn=`[object Int32Array]`,zn=`[object BigInt64Array]`,Bn=`[object Float32Array]`,Vn=`[object Float64Array]`,Hn=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function Un(e){return Hn.Buffer!==void 0&&Hn.Buffer.isBuffer(e)}function Wn(e,t){return Gn(e,void 0,e,new Map,t)}function Gn(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(fn(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 a=0;a<e.length;a++)t[a]=Gn(e[a],a,n,r,i);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[a,o]of e)t.set(a,Gn(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(Gn(a,void 0,n,r,i));return t}if(Un(e))return e.subarray();if(pn(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=Gn(e[a],a,n,r,i);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),Kn(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),Kn(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),Kn(t,e,n,r,i),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,Kn(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),Kn(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),Kn(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),Kn(t,e,n,r,i),t}if(typeof e==`object`&&qn(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),Kn(t,e,n,r,i),t}return e}function Kn(e,t,n=e,r,i){let a=[...Object.keys(t),...mn(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=Gn(t[s],s,n,r,i))}}function qn(e){switch(hn(e)){case bn:case Tn:case Dn:case An:case yn:case Sn:case Bn:case Vn:case In:case Ln:case Rn:case Cn:case vn:case On:case gn:case wn:case _n:case xn:case jn:case Mn:case Nn:case Pn:return!0;default:return!1}}function Jn(e){return Gn(e,void 0,e,new Map,void 0)}function Yn(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Xn(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function Zn(e,t,n){return typeof n==`function`?Qn(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?Qn(t,r,e,s,!1):!!c},new Map,!0):Zn(e,t,()=>void 0)}function Qn(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return $n(e,t,n,r);case`function`:return Object.keys(t).length>0?Qn(e,{...t},n,r,i):Yn(e,t);default:return Xn(e)&&i?typeof t!=`string`||t===``:Yn(e,t)}}function $n(e,t,n,r){if(t==null)return!0;if(Array.isArray(t))return tr(e,t,n,r);if(t instanceof Map)return er(e,t,n,r);if(t instanceof Set)return nr(e,t,n,r);let i=Object.keys(t);if(e==null||fn(e))return i.length===0;if(i.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let a=0;a<i.length;a++){let o=i[a];if(!fn(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function er(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 tr(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 nr(e,t,n,r){return t.size===0||e instanceof Set&&tr([...e],[...t],n,r)}function rr(e,t){return Zn(e,t,()=>void 0)}function ir(e){return e=Jn(e),t=>rr(t,e)}function ar(e,t){return Wn(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(hn(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),Kn(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case vn:case _n:case yn:{let t=new e.constructor(e?.valueOf());return Kn(t,e),t}case bn:{let t={};return Kn(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function or(e){return ar(e)}var sr=/^(?:0|[1-9]\d*)$/;function cr(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return sr.test(e)}}function lr(e){return typeof e==`object`&&!!e&&hn(e)===`[object Arguments]`}function ur(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&xe(t)&&!(t in Object(e))?we(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=n[e];if((r==null||!Object.hasOwn(r,t))&&!((Array.isArray(r)||lr(r))&&cr(t)&&t<r.length))return!1;r=r[t]}return!0}function dr(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=Se(e)}return t=or(t),function(n){let r=Te(n,e);return r===void 0?ur(n,e):t===void 0?r===void 0:rr(r,t)}}function fr(e){if(e==null)return un;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?dr(e[0],e[1]):ir(e);case`string`:case`symbol`:case`number`:return dn(e)}}function pr(e){return Number.isSafeInteger(e)&&e>=0}function mr(e){return e!=null&&typeof e!=`function`&&pr(e.length)}function hr(e){return typeof e==`object`&&!!e}function gr(e){return hr(e)&&mr(e)}function _r(e,t=un){return gr(e)?cn(Array.from(e),ln(fr(t),1)):[]}function vr(e,t,n){return t===!0?_r(e,n):typeof t==`function`?_r(e,t):e}var yr=s(null),br=e=>e,L=()=>{var e=p(yr);return e?e.store.dispatch:br},xr=()=>{},Sr=()=>xr,Cr=(e,t)=>e===t;function R(e){var t=p(yr),r=_(()=>t?t=>{if(t!=null)return e(t)}:xr,[t,e]);return n(t?t.subscription.addNestedSub:Sr,t?t.store.getState:xr,t?t.store.getState:xr,r,Cr)}function wr(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function Tr(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 Er=e=>Array.isArray(e)?e:[e];function Dr(e){let t=Array.isArray(e[0])?e[0]:e;return Tr(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function Or(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var kr=class{constructor(e){this.value=e}deref(){return this.value}},Ar=typeof WeakRef>`u`?kr:WeakRef,jr=0,Mr=1;function Nr(){return{s:jr,v:void 0,o:null,p:null}}function Pr(e){return e instanceof Ar?e.deref():e}function Fr(e,t={}){let n=Nr(),{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=Nr(),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=Nr(),e.set(n,t)):t=r}}let s=t,c;if(t.s===Mr)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=Pr(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new Ar(c):c}return s.s=Mr,s.v=c,c}return o.clearCache=()=>{n=Nr(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Ir(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()),wr(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Fr,argsMemoizeOptions:u=[]}={...n,...a},d=Er(c),f=Er(u),p=Dr(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=Or(p,arguments);return i=m.apply(null,e),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var z=Ir(Fr);function Lr(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}function Rr(e,t,n){return Xn(n)&&(typeof t==`number`&&mr(n)&&cr(t)&&t<n.length||typeof t==`string`&&t in n)?Yn(n[t],e):!1}function zr(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}var Br=(e,t,n)=>{if(e!==t){let r=zr(e),i=zr(t);if(r===i&&r===0){if(e<t)return n===`desc`?1:-1;if(e>t)return n===`desc`?-1:1}return n===`desc`?i-r:r-i}return 0};function Vr(e){return typeof e==`symbol`||e instanceof Symbol}var Hr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ur=/^\w*$/;function Wr(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||Vr(e)?!0:typeof e==`string`&&(Ur.test(e)||!Hr.test(e))||t!=null&&Object.hasOwn(t,e)}function Gr(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(e=>String(e));let i=(e,t)=>{let n=e;for(let e=0;e<t.length&&n!=null;++e)n=n[t[e]];return n},a=(e,t)=>t==null||e==null?t:typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):typeof t==`object`?t[e]:t,o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||Wr(e)?e:{key:e,path:we(e)}));return e.map(e=>({original:e,criteria:o.map(t=>a(t,e))})).slice().sort((e,t)=>{for(let r=0;r<o.length;r++){let i=Br(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function Kr(e,...t){let n=t.length;return n>1&&Rr(e,t[0],t[1])?t=[]:n>2&&Rr(t[0],t[1],t[2])&&(t=[t[0]]),Gr(e,Lr(t),[`asc`])}var qr=e=>e.legend.settings,Jr=e=>e.legend.size;z([e=>e.legend.payload,qr],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?Kr(r,n):r});function Yr(e,t){return ei(e)||$r(e,t)||Zr(e,t)||Xr()}function Xr(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{A as e,I as t,qt as n}from"./Lamp-Cxp-OxUq.js";import{b as r}from"./Panel-CYQvfI3L.js";import*as i from"react";import{Component as a,cloneElement as o,createContext as s,createElement as c,forwardRef as l,isValidElement as u,memo as d,useCallback as f,useContext as p,useEffect as m,useImperativeHandle as h,useLayoutEffect as g,useMemo as _,useRef as v,useState as y}from"react";import{createPortal as b}from"react-dom";import x from"styled-components";var S=Object.create,C=Object.defineProperty,w=Object.getOwnPropertyDescriptor,T=Object.getOwnPropertyNames,E=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,O=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),k=(e,t)=>{let n={};for(var r in e)C(n,r,{get:e[r],enumerable:!0});return t||C(n,Symbol.toStringTag,{value:`Module`}),n},A=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=T(t),a=0,o=i.length,s;a<o;a++)s=i[a],!D.call(e,s)&&s!==n&&C(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=w(t,s))||r.enumerable});return e},j=(e,t,n)=>(n=e==null?{}:S(E(e)),A(t||!e||!e.__esModule||!D.call(e,`default`)?C(n,`default`,{value:e,enumerable:!0}):n,e));function M(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=M(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function N(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=M(e))&&(r&&(r+=` `),r+=t);return r}var ee=`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 te(e){return typeof e==`string`&&ee.includes(e)}var ne=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 re(e){return typeof e==`string`&&ne.has(e)}function ie(e){return typeof e==`string`&&e.startsWith(`data-`)}function ae(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(re(n)||ie(n))&&(t[n]=e[n]);return t}function oe(e){if(e==null)return null;if(u(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return ae(t)}return typeof e==`object`&&!Array.isArray(e)?ae(e):null}function se(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(re(n)||ie(n)||te(n))&&(t[n]=e[n]);return t}function ce(e){return e==null?null:u(e)?se(e.props):typeof e==`object`&&!Array.isArray(e)?se(e):null}var le=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function ue(){return ue=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},ue.apply(null,arguments)}function de(e,t){if(e==null)return{};var n,r,i=fe(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 fe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var pe=l((e,t)=>{var n=e.children,r=e.width,a=e.height,o=e.viewBox,s=e.className,c=e.style,l=e.title,u=e.desc,d=de(e,le),f=o||{width:r,height:a,x:0,y:0},p=N(`recharts-surface`,s);return i.createElement(`svg`,ue({},se(d),{className:p,width:r,height:a,style:c,viewBox:`${f.x} ${f.y} ${f.width} ${f.height}`,ref:t}),i.createElement(`title`,null,l),i.createElement(`desc`,null,u),n)}),me=[`children`,`className`];function he(){return he=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},he.apply(null,arguments)}function ge(e,t){if(e==null)return{};var n,r,i=_e(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 _e(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 ve=i.forwardRef((e,t)=>{var n=e.children,r=e.className,a=ge(e,me),o=N(`recharts-layer`,r);return i.createElement(`g`,he({className:o},se(a),{ref:t}),n)});function ye(e){return e===`__proto__`}var be=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function xe(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e===``||e.startsWith(`.`)||e.endsWith(`.`)?!1:be.test(e);default:return!1}}function Se(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function Ce(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(Ce).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function we(e){if(Array.isArray(e))return e.map(Se);if(typeof e==`symbol`)return[e];e=Ce(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let s=e[r];if(a)s===`\\`&&r+1<n?(r++,i+=e[r]):s===a?a=``:i+=s;else if(o)s===`"`||s===`'`?a=s:s===`]`?(o=!1,t.push(i),i=``):i+=s;else if(s===`[`)o=!0,i&&=(t.push(i),``);else if(s===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=s;r++}return i&&t.push(i),t}function Te(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(ye(t))return n;let r=e[t];return r===void 0?xe(t)&&!Object.hasOwn(e,t)?Te(e,we(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=Se(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return Ee(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),ye(t))return n;let r=e[t];return r===void 0?n:r}}}function Ee(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||ye(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var De=4;function Oe(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:De),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function ke(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+Oe(i)+n},``)}var Ae=e=>e===0?0:e>0?1:-1,je=e=>typeof e==`number`&&e!=+e,Me=e=>typeof e==`string`&&e.length>1&&e.indexOf(`%`)===e.length-1,P=e=>(typeof e==`number`||e instanceof Number)&&!je(e),Ne=e=>P(e)||typeof e==`string`,Pe=0,Fe=e=>{var t=++Pe;return`${e||``}${t}`},Ie=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(!P(e)&&typeof e!=`string`)return n;var i;if(Me(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return je(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},Le=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 Re(e,t,n){return P(e)&&P(t)?Oe(e+n*(t-e)):t}function ze(e,t,n){if(!(!e||!e.length))return e.find(e=>e&&(typeof t==`function`?t(e):Te(e,t))===n)}var F=e=>e==null,Be=e=>F(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function Ve(e){return e!=null}function He(){}function Ue(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}}function We(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 Ge(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?We(Object(n),!0).forEach(function(t){Ke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ke(e,t,n){return(t=qe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qe(e){var t=Je(e,`string`);return typeof t==`symbol`?t:t+``}function Je(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 Ye=e=>{var t=e.viewBox,n=e.position,r=e.offset,i=r===void 0?0:r,a=e.parentViewBox,o=e.clamp,s=Ue(t),c=s.x,l=s.y,u=s.height,d=s.upperWidth,f=s.lowerWidth,p=c,m=c+(d-f)/2,h=(p+m)/2,g=(d+f)/2,_=p+d/2,v=u>=0?1:-1,y=v*i,b=v>0?`end`:`start`,x=v>0?`start`:`end`,S=d>=0?1:-1,C=S*i,w=S>0?`end`:`start`,T=S>0?`start`:`end`,E=a;if(n===`top`){var D={x:p+d/2,y:l-y,horizontalAnchor:`middle`,verticalAnchor:b};return o&&E&&(D.height=Math.max(l-E.y,0),D.width=d),D}if(n===`bottom`){var O={x:m+f/2,y:l+u+y,horizontalAnchor:`middle`,verticalAnchor:x};return o&&E&&(O.height=Math.max(E.y+E.height-(l+u),0),O.width=f),O}if(n===`left`){var k={x:h-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`};return o&&E&&(k.width=Math.max(k.x-E.x,0),k.height=u),k}if(n===`right`){var A={x:h+g+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`};return o&&E&&(A.width=Math.max(E.x+E.width-A.x,0),A.height=u),A}var j=o&&E?{width:g,height:u}:{};return n===`insideLeft`?Ge({x:h+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`},j):n===`insideRight`?Ge({x:h+g-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`},j):n===`insideTop`?Ge({x:p+d/2,y:l+y,horizontalAnchor:`middle`,verticalAnchor:x},j):n===`insideBottom`?Ge({x:m+f/2,y:l+u-y,horizontalAnchor:`middle`,verticalAnchor:b},j):n===`insideTopLeft`?Ge({x:p+C,y:l+y,horizontalAnchor:T,verticalAnchor:x},j):n===`insideTopRight`?Ge({x:p+d-C,y:l+y,horizontalAnchor:w,verticalAnchor:x},j):n===`insideBottomLeft`?Ge({x:m+C,y:l+u-y,horizontalAnchor:T,verticalAnchor:b},j):n===`insideBottomRight`?Ge({x:m+f-C,y:l+u-y,horizontalAnchor:w,verticalAnchor:b},j):n&&typeof n==`object`&&(P(n.x)||Me(n.x))&&(P(n.y)||Me(n.y))?Ge({x:c+Ie(n.x,g),y:l+Ie(n.y,u),horizontalAnchor:`end`,verticalAnchor:`end`},j):Ge({x:_,y:l+u/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},j)},Xe=[`top`,`left`,`right`,`bottom`];function Ze(e){return e==null?!1:typeof e==`object`||Xe.includes(e)}var Qe=s(null);function I(e){return function(){return e}}var $e=Math.PI,et=2*$e,tt=1e-6,nt=et-tt;function rt(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function it(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return rt;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 at=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?rt:it(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>tt)if(!(Math.abs(u*s-c*l)>tt)||!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(($e-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>tt&&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)>tt||Math.abs(this._y1-l)>tt)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%et+et),d>nt?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>tt&&this._append`A${n},${n},0,${+(d>=$e)},${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._}};at.prototype;function ot(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 at(t)}Array.prototype.slice;function st(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function ct(e){this._context=e}ct.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)}}};function lt(e){return new ct(e)}function ut(e){return e[0]}function dt(e){return e[1]}function ft(e,t){var n=I(!0),r=null,i=lt,a=null,o=ot(s);e=typeof e==`function`?e:e===void 0?ut:I(e),t=typeof t==`function`?t:t===void 0?dt:I(t);function s(s){var c,l=(s=st(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:I(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:I(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:I(!!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 pt(e,t,n){var r=null,i=I(!0),a=null,o=lt,s=null,c=ot(l);e=typeof e==`function`?e:e===void 0?ut:I(+e),t=typeof t==`function`?t:I(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?dt:I(+n);function l(l){var u,d,f,p=(l=st(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 ft().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:I(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:I(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:I(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:I(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:I(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:I(+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:I(!!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 mt=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)}this._x0=e,this._y0=t}};function ht(e){return new mt(e,!0)}function gt(e){return new mt(e,!1)}function _t(){}function vt(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 yt(e){this._context=e}yt.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:vt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(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:vt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bt(e){return new yt(e)}function xt(e){this._context=e}xt.prototype={areaStart:_t,areaEnd:_t,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)}},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:vt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function St(e){return new xt(e)}function Ct(e){this._context=e}Ct.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:vt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wt(e){return new Ct(e)}function Tt(e){this._context=e}Tt.prototype={areaStart:_t,areaEnd:_t,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 Et(e){return new Tt(e)}function Dt(e){return e<0?-1:1}function Ot(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(Dt(a)+Dt(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function kt(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function At(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 jt(e){this._context=e}jt.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:At(this,this._t0,kt(this,this._t0))}(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,At(this,kt(this,n=Ot(this,e,t)),n);break;default:At(this,this._t0,n=Ot(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Mt(e){this._context=new Nt(e)}(Mt.prototype=Object.create(jt.prototype)).point=function(e,t){jt.prototype.point.call(this,t,e)};function Nt(e){this._context=e}Nt.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 Pt(e){return new jt(e)}function Ft(e){return new Mt(e)}function It(e){this._context=e}It.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=Lt(e),i=Lt(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 Lt(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 Rt(e){return new It(e)}function zt(e,t){this._context=e,this._t=t}zt.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)}}this._x=e,this._y=t}};function Bt(e){return new zt(e,.5)}function Vt(e){return new zt(e,0)}function Ht(e){return new zt(e,1)}function Ut(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 Wt(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function Gt(e,t){return e[t]}function Kt(e){let t=[];return t.key=e,t}function qt(){var e=I([]),t=Wt,n=Ut,r=Gt;function i(i){var a=Array.from(e.apply(this,arguments),Kt),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=st(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:I(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:I(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?Wt:typeof e==`function`?e:I(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Ut,i):n},i}function Jt(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}Ut(e,t)}}function Yt(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}Ut(e,t)}}function Xt(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,Ut(e,t)}}var Zt=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,Qt=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if(u(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{te(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},$t=(e,t,n)=>r=>(e(t,n,r),null),en=(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];te(i)&&typeof a==`function`&&(r||={},r[i]=$t(a,t,n))}),r};function tn(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 nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tn(Object(n),!0).forEach(function(t){rn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rn(e,t,n){return(t=an(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function an(e){var t=on(e,`string`);return typeof t==`symbol`?t:t+``}function on(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 sn(e,t){var n=nn({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function cn(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())}function ln(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function un(e){return e}function dn(e){return function(t){return Te(t,e)}}function fn(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function pn(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function mn(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function hn(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var gn=`[object RegExp]`,_n=`[object String]`,vn=`[object Number]`,yn=`[object Boolean]`,bn=`[object Arguments]`,xn=`[object Symbol]`,Sn=`[object Date]`,Cn=`[object Map]`,wn=`[object Set]`,Tn=`[object Array]`,En=`[object Function]`,Dn=`[object ArrayBuffer]`,On=`[object Object]`,kn=`[object Error]`,An=`[object DataView]`,jn=`[object Uint8Array]`,Mn=`[object Uint8ClampedArray]`,Nn=`[object Uint16Array]`,Pn=`[object Uint32Array]`,Fn=`[object BigUint64Array]`,In=`[object Int8Array]`,Ln=`[object Int16Array]`,Rn=`[object Int32Array]`,zn=`[object BigInt64Array]`,Bn=`[object Float32Array]`,Vn=`[object Float64Array]`,Hn=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function Un(e){return Hn.Buffer!==void 0&&Hn.Buffer.isBuffer(e)}function Wn(e,t){return Gn(e,void 0,e,new Map,t)}function Gn(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(fn(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 a=0;a<e.length;a++)t[a]=Gn(e[a],a,n,r,i);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[a,o]of e)t.set(a,Gn(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(Gn(a,void 0,n,r,i));return t}if(Un(e))return e.subarray();if(pn(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=Gn(e[a],a,n,r,i);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),Kn(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),Kn(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),Kn(t,e,n,r,i),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,Kn(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),Kn(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),Kn(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),Kn(t,e,n,r,i),t}if(typeof e==`object`&&qn(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),Kn(t,e,n,r,i),t}return e}function Kn(e,t,n=e,r,i){let a=[...Object.keys(t),...mn(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=Gn(t[s],s,n,r,i))}}function qn(e){switch(hn(e)){case bn:case Tn:case Dn:case An:case yn:case Sn:case Bn:case Vn:case In:case Ln:case Rn:case Cn:case vn:case On:case gn:case wn:case _n:case xn:case jn:case Mn:case Nn:case Pn:return!0;default:return!1}}function Jn(e){return Gn(e,void 0,e,new Map,void 0)}function Yn(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Xn(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function Zn(e,t,n){return typeof n==`function`?Qn(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?Qn(t,r,e,s,!1):!!c},new Map,!0):Zn(e,t,()=>void 0)}function Qn(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return $n(e,t,n,r);case`function`:return Object.keys(t).length>0?Qn(e,{...t},n,r,i):Yn(e,t);default:return Xn(e)&&i?typeof t!=`string`||t===``:Yn(e,t)}}function $n(e,t,n,r){if(t==null)return!0;if(Array.isArray(t))return tr(e,t,n,r);if(t instanceof Map)return er(e,t,n,r);if(t instanceof Set)return nr(e,t,n,r);let i=Object.keys(t);if(e==null||fn(e))return i.length===0;if(i.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let a=0;a<i.length;a++){let o=i[a];if(!fn(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function er(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 tr(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 nr(e,t,n,r){return t.size===0||e instanceof Set&&tr([...e],[...t],n,r)}function rr(e,t){return Zn(e,t,()=>void 0)}function ir(e){return e=Jn(e),t=>rr(t,e)}function ar(e,t){return Wn(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(hn(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),Kn(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case vn:case _n:case yn:{let t=new e.constructor(e?.valueOf());return Kn(t,e),t}case bn:{let t={};return Kn(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function or(e){return ar(e)}var sr=/^(?:0|[1-9]\d*)$/;function cr(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return sr.test(e)}}function lr(e){return typeof e==`object`&&!!e&&hn(e)===`[object Arguments]`}function ur(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&xe(t)&&!(t in Object(e))?we(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=n[e];if((r==null||!Object.hasOwn(r,t))&&!((Array.isArray(r)||lr(r))&&cr(t)&&t<r.length))return!1;r=r[t]}return!0}function dr(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=Se(e)}return t=or(t),function(n){let r=Te(n,e);return r===void 0?ur(n,e):t===void 0?r===void 0:rr(r,t)}}function fr(e){if(e==null)return un;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?dr(e[0],e[1]):ir(e);case`string`:case`symbol`:case`number`:return dn(e)}}function pr(e){return Number.isSafeInteger(e)&&e>=0}function mr(e){return e!=null&&typeof e!=`function`&&pr(e.length)}function hr(e){return typeof e==`object`&&!!e}function gr(e){return hr(e)&&mr(e)}function _r(e,t=un){return gr(e)?cn(Array.from(e),ln(fr(t),1)):[]}function vr(e,t,n){return t===!0?_r(e,n):typeof t==`function`?_r(e,t):e}var yr=s(null),br=e=>e,L=()=>{var e=p(yr);return e?e.store.dispatch:br},xr=()=>{},Sr=()=>xr,Cr=(e,t)=>e===t;function R(e){var t=p(yr),r=_(()=>t?t=>{if(t!=null)return e(t)}:xr,[t,e]);return n(t?t.subscription.addNestedSub:Sr,t?t.store.getState:xr,t?t.store.getState:xr,r,Cr)}function wr(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function Tr(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 Er=e=>Array.isArray(e)?e:[e];function Dr(e){let t=Array.isArray(e[0])?e[0]:e;return Tr(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function Or(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var kr=class{constructor(e){this.value=e}deref(){return this.value}},Ar=typeof WeakRef>`u`?kr:WeakRef,jr=0,Mr=1;function Nr(){return{s:jr,v:void 0,o:null,p:null}}function Pr(e){return e instanceof Ar?e.deref():e}function Fr(e,t={}){let n=Nr(),{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=Nr(),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=Nr(),e.set(n,t)):t=r}}let s=t,c;if(t.s===Mr)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=Pr(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new Ar(c):c}return s.s=Mr,s.v=c,c}return o.clearCache=()=>{n=Nr(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Ir(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()),wr(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Fr,argsMemoizeOptions:u=[]}={...n,...a},d=Er(c),f=Er(u),p=Dr(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=Or(p,arguments);return i=m.apply(null,e),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var z=Ir(Fr);function Lr(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}function Rr(e,t,n){return Xn(n)&&(typeof t==`number`&&mr(n)&&cr(t)&&t<n.length||typeof t==`string`&&t in n)?Yn(n[t],e):!1}function zr(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}var Br=(e,t,n)=>{if(e!==t){let r=zr(e),i=zr(t);if(r===i&&r===0){if(e<t)return n===`desc`?1:-1;if(e>t)return n===`desc`?-1:1}return n===`desc`?i-r:r-i}return 0};function Vr(e){return typeof e==`symbol`||e instanceof Symbol}var Hr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ur=/^\w*$/;function Wr(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||Vr(e)?!0:typeof e==`string`&&(Ur.test(e)||!Hr.test(e))||t!=null&&Object.hasOwn(t,e)}function Gr(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(e=>String(e));let i=(e,t)=>{let n=e;for(let e=0;e<t.length&&n!=null;++e)n=n[t[e]];return n},a=(e,t)=>t==null||e==null?t:typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):typeof t==`object`?t[e]:t,o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||Wr(e)?e:{key:e,path:we(e)}));return e.map(e=>({original:e,criteria:o.map(t=>a(t,e))})).slice().sort((e,t)=>{for(let r=0;r<o.length;r++){let i=Br(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function Kr(e,...t){let n=t.length;return n>1&&Rr(e,t[0],t[1])?t=[]:n>2&&Rr(t[0],t[1],t[2])&&(t=[t[0]]),Gr(e,Lr(t),[`asc`])}var qr=e=>e.legend.settings,Jr=e=>e.legend.size;z([e=>e.legend.payload,qr],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?Kr(r,n):r});function Yr(e,t){return ei(e)||$r(e,t)||Zr(e,t)||Xr()}function Xr(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zr(e,t){if(e){if(typeof e==`string`)return Qr(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qr(e,t):void 0}}function Qr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $r(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function ei(e){if(Array.isArray(e))return e}var ti=1;function ni(e,t){return Math.abs(e.height-t.height)>ti||Math.abs(e.left-t.left)>ti||Math.abs(e.top-t.top)>ti||Math.abs(e.width-t.width)>ti}function ri(e){var t=e.getBoundingClientRect();return{height:t.height,left:t.left,top:t.top,width:t.width}}function ii(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=Yr(y({height:0,left:0,top:0,width:0}),2),n=t[0],r=t[1],i=v(null),a=v(n);a.current=n;var o=f(e=>{if(i.current!=null&&(i.current.disconnect(),i.current=null),e!=null){var t=ri(e);if(ni(t,a.current)&&r(t),typeof ResizeObserver<`u`){var n=new ResizeObserver(()=>{var t=ri(e);ni(t,a.current)&&r(t)});n.observe(e),i.current=n}}},[...e]);return m(()=>()=>{var e;(e=i.current)==null||e.disconnect()},[]),[n,o]}function ai(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 oi=typeof Symbol==`function`&&Symbol.observable||`@@observable`,si=()=>Math.random().toString(36).substring(7).split(``).join(`.`),ci={INIT:`@@redux/INIT${si()}`,REPLACE:`@@redux/REPLACE${si()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${si()}`};function li(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 ui(e,t,n){if(typeof e!=`function`)throw Error(ai(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(ai(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(ai(1));return n(ui)(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(ai(3));return i}function d(e){if(typeof e!=`function`)throw Error(ai(4));if(c)throw Error(ai(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(ai(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!li(e))throw Error(ai(7));if(e.type===void 0)throw Error(ai(8));if(typeof e.type!=`string`)throw Error(ai(17));if(c)throw Error(ai(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(ai(10));r=e,f({type:ci.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(ai(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[oi](){return this}}}return f({type:ci.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[oi]:m}}function di(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:ci.INIT})===void 0)throw Error(ai(12));if(n(void 0,{type:ci.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(ai(13))})}function fi(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{di(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(ai(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function pi(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function mi(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(ai(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=pi(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function hi(e){return li(e)&&`type`in e&&typeof e.type==`string`}var gi=Symbol.for(`immer-nothing`),_i=Symbol.for(`immer-draftable`),vi=Symbol.for(`immer-state`);function yi(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var bi=Object,xi=bi.getPrototypeOf,Si=`constructor`,Ci=`prototype`,wi=`configurable`,Ti=`enumerable`,Ei=`writable`,Di=`value`,Oi=e=>!!e&&!!e[vi];function ki(e){return e?Mi(e)||zi(e)||!!e[_i]||!!e[Si]?.[_i]||Bi(e)||Vi(e):!1}var Ai=bi[Ci][Si].toString(),ji=new WeakMap;function Mi(e){if(!e||!Hi(e))return!1;let t=xi(e);if(t===null||t===bi[Ci])return!0;let n=bi.hasOwnProperty.call(t,Si)&&t[Si];if(n===Object)return!0;if(!Ui(n))return!1;let r=ji.get(n);return r===void 0&&(r=Function.toString.call(n),ji.set(n,r)),r===Ai}function Ni(e,t,n=!0){Pi(e)===0?(n?Reflect.ownKeys(e):bi.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Pi(e){let t=e[vi];return t?t.type_:zi(e)?1:Bi(e)?2:Vi(e)?3:0}var Fi=(e,t,n=Pi(e))=>n===2?e.has(t):bi[Ci].hasOwnProperty.call(e,t),Ii=(e,t,n=Pi(e))=>n===2?e.get(t):e[t],Li=(e,t,n,r=Pi(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Ri(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var zi=Array.isArray,Bi=e=>e instanceof Map,Vi=e=>e instanceof Set,Hi=e=>typeof e==`object`,Ui=e=>typeof e==`function`,Wi=e=>typeof e==`boolean`;function Gi(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Ki=e=>e.copy_||e.base_,qi=e=>e.modified_?e.copy_:e.base_;function Ji(e,t){if(Bi(e))return new Map(e);if(Vi(e))return new Set(e);if(zi(e))return Array[Ci].slice.call(e);let n=Mi(e);if(t===!0||t===`class_only`&&!n){let t=bi.getOwnPropertyDescriptors(e);delete t[vi];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Ei]===!1&&(a[Ei]=!0,a[wi]=!0),(a.get||a.set)&&(t[i]={[wi]:!0,[Ei]:!0,[Ti]:a[Ti],[Di]:e[i]})}return bi.create(xi(e),t)}{let t=xi(e);if(t!==null&&n)return{...e};let r=bi.create(t);return bi.assign(r,e)}}function Yi(e,t=!1){return Qi(e)||Oi(e)||!ki(e)?e:(Pi(e)>1&&bi.defineProperties(e,{set:Zi,add:Zi,clear:Zi,delete:Zi}),bi.freeze(e),t&&Ni(e,(e,t)=>{Yi(t,!0)},!1),e)}function Xi(){yi(2)}var Zi={[Di]:Xi};function Qi(e){return e===null||!Hi(e)||bi.isFrozen(e)}var $i=`MapSet`,ea=`Patches`,ta=`ArrayMethods`,na={};function ra(e){let t=na[e];return t||yi(0,e),t}var ia=e=>!!na[e],aa,oa=()=>aa,sa=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ia($i)?ra($i):void 0,arrayMethodsPlugin_:ia(ta)?ra(ta):void 0});function ca(e,t){t&&(e.patchPlugin_=ra(ea),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function la(e){ua(e),e.drafts_.forEach(fa),e.drafts_=null}function ua(e){e===aa&&(aa=e.parent_)}var da=e=>aa=sa(aa,e);function fa(e){let t=e[vi];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function pa(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[vi].modified_&&(la(t),yi(4)),ki(e)&&(e=ma(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[vi].base_,e,t)}else e=ma(t,n);return ha(t,e,!0),la(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===gi?void 0:e}function ma(e,t){if(Qi(t))return t;let n=t[vi];if(!n)return Ca(t,e.handledSet_,e);if(!_a(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);xa(n,e)}return n.copy_}function ha(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Yi(t,n)}function ga(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var _a=(e,t)=>e.scope_===t,va=[];function ya(e,t,n,r){let i=Ki(e),a=e.type_;if(r!==void 0&&Ii(i,r,a)===t){Li(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Ni(i,(e,n)=>{if(Oi(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??va;for(let e of o)Li(i,e,n,a)}function ba(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!_a(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=qi(i);ya(e,i.draft_??i,a,n),xa(i,r)})}function xa(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)}ga(e)}}function Sa(e,t,n){let{scope_:r}=e;if(Oi(n)){let i=n[vi];_a(i,r)&&i.callbacks_.push(function(){Ma(e),ya(e,n,qi(i),t)})}else ki(n)&&e.callbacks_.push(function(){let i=Ki(e);e.type_===3?i.has(n)&&Ca(n,r.handledSet_,r):Ii(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ca(Ii(e.copy_,t,e.type_),r.handledSet_,r)})}function Ca(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Oi(e)||t.has(e)||!ki(e)||Qi(e)?e:(t.add(e),Ni(e,(r,i)=>{if(Oi(i)){let t=i[vi];_a(t,n)&&(Li(e,r,qi(t),e.type_),ga(t))}else ki(i)&&Ca(i,t,n)}),e)}function wa(e,t){let n=zi(e),r={type_:+!!n,scope_:t?t.scope_:oa(),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=Ta;n&&(i=[r],a=Ea);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var Ta={get(e,t){if(t===vi)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=Ki(e);if(!Fi(i,t,e.type_))return ka(e,i,t);let a=i[t];if(e.finalized_||!ki(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Gi(t))return a;if(a===Da(e.base_,t)||Oa(e,t,a)){Ma(e);let n=e.type_===1?+t:t,r=Pa(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in Ki(e)},ownKeys(e){return Reflect.ownKeys(Ki(e))},set(e,t,n){let r=Aa(Ki(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Da(Ki(e),t),i=r?.[vi];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Ri(n,r)&&(n!==void 0||Fi(e.base_,t,e.type_)))return!0;Ma(e),ja(e)}return e.copy_[t]===n&&(n!==void 0||Fi(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),Sa(e,t,n),!0)},deleteProperty(e,t){return Ma(e),Da(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),ja(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=Ki(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Ei]:!0,[wi]:e.type_!==1||t!==`length`,[Ti]:r[Ti],[Di]:n[t]}},defineProperty(){yi(11)},getPrototypeOf(e){return xi(e.base_)},setPrototypeOf(){yi(12)}},Ea={};for(let e in Ta){let t=Ta[e];Ea[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Ea.deleteProperty=function(e,t){return Ea.set.call(this,e,t,void 0)},Ea.set=function(e,t,n){return Ta.set.call(this,e[0],t,n,e[0])};function Da(e,t){let n=e[vi];return(n?Ki(n):e)[t]}function Oa(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!ki(n)||n[vi]?!1:e.baseRefs_.has(n)}function ka(e,t,n){let r=Aa(t,n);return r?Di in r?r[Di]:r.get?.call(e.draft_):void 0}function Aa(e,t){if(!(t in e))return;let n=xi(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=xi(n)}}function ja(e){e.modified_||(e.modified_=!0,e.parent_&&ja(e.parent_))}function Ma(e){e.copy_||=(e.assigned_=new Map,Ji(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Na=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Ui(e)&&!Ui(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Ui(t)||yi(6),n!==void 0&&!Ui(n)&&yi(7);let r;if(ki(e)){let i=da(this),a=Pa(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?la(i):ua(i)}return ca(i,n),pa(r,i)}if(!e||!Hi(e)){if(r=t(e),r===void 0&&(r=e),r===gi&&(r=void 0),this.autoFreeze_&&Yi(r,!0),n){let t=[],i=[];ra(ea).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}yi(1,e)},this.produceWithPatches=(e,t)=>{if(Ui(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]},Wi(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Wi(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Wi(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){ki(e)||yi(8),Oi(e)&&(e=Fa(e));let t=da(this),n=Pa(t,e,void 0);return n[vi].isManual_=!0,ua(t),n}finishDraft(e,t){let n=e&&e[vi];(!n||!n.isManual_)&&yi(9);let{scope_:r}=n;return ca(r,t),pa(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=ra(ea).applyPatches_;return Oi(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Pa(e,t,n,r){let[i,a]=Bi(t)?ra($i).proxyMap_(t,n):Vi(t)?ra($i).proxySet_(t,n):wa(t,n);return(n?.scope_??oa()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?ba(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 Fa(e){return Oi(e)||yi(10,e),Ia(e)}function Ia(e){if(!ki(e)||Qi(e))return e;let t=e[vi],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ji(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Ji(e,!0);return Ni(n,(e,t)=>{Li(n,e,Ia(t))},r),t&&(t.finalized_=!1),n}var La=new Na().produce,B=e=>e;function Ra(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var za=Ra(),Ba=Ra,Va=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?pi:pi.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Ha(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(Zo(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=>hi(t)&&t.type===e,n}var Ua=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 Wa(e){return ki(e)?La(e,()=>{}):e}function Ga(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Ka(e){return typeof e==`boolean`}var qa=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new Ua;return t&&(Ka(t)?a.push(za):a.push(Ba(t.extraArgument))),a},Ja=`RTK_autoBatch`,V=()=>e=>({payload:e,meta:{[Ja]:!0}}),Ya=e=>t=>{setTimeout(t,e)},Xa=(e,t)=>n=>{let r=!1,i=()=>{r||(r=!0,cancelAnimationFrame(a),clearTimeout(o),n())},a=e(i),o=setTimeout(i,t)},Za=(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?Xa(window.requestAnimationFrame,100):Ya(10):e.type===`callback`?e.queueNotification:Ya(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?.[Ja],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},Qa=e=>function(t){let{autoBatch:n=!0}=t??{},r=new Ua(e);return n&&r.push(Za(typeof n==`object`?n:void 0)),r};function $a(e){let t=qa(),{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(li(n))c=fi(n);else throw Error(Zo(1));let l;l=typeof r==`function`?r(t):t();let u=pi;i&&(u=Va({trace:!1,...typeof i==`object`&&i}));let d=Qa(mi(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return ui(c,o,p)}function eo(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(Zo(28));if(r in t)throw Error(Zo(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 to(e){return typeof e==`function`}function no(e,t){let[n,r,i]=eo(t),a;if(to(e))a=()=>Wa(e());else{let t=Wa(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(Oi(e)){let r=n(e,t);return r===void 0?e:r}else if(ki(e))return La(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 ro=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,io=(e=21)=>{let t=``,n=e;for(;n--;)t+=ro[Math.random()*64|0];return t},ao=Symbol.for(`rtk-slice-createasyncthunk`);function oo(e,t){return`${e}/${t}`}function so({creators:e}={}){let t=e?.asyncThunk?.[ao];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(Zo(11));let i=(typeof e.reducers==`function`?e.reducers(uo()):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(Zo(12));if(n in o.sliceCaseReducersByType)throw Error(Zo(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:oo(n,r),createNotation:typeof e.reducers==`function`};po(a)?ho(o,a,s,t):fo(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?eo(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return no(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=Ga(d,r,m)),i}function i(t=l){return Ga(Ga(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=co(a,t,()=>Ga(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 co(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 lo=so();function uo(){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 fo({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!mo(r))throw Error(Zo(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Ha(e,o):Ha(e))}function po(e){return e._reducerDefinitionType===`asyncThunk`}function mo(e){return e._reducerDefinitionType===`reducerWithPrepare`}function ho({type:e,reducerName:t},n,r,i){if(!i)throw Error(Zo(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||go,pending:s||go,rejected:c||go,settled:l||go})}function go(){}var _o=`task`,vo=`listener`,yo=`completed`,bo=`cancelled`,xo=`task-${bo}`,So=`task-${yo}`,Co=`${vo}-${bo}`,wo=`${vo}-${yo}`,To=class{constructor(e){this.code=e,this.message=`${_o} ${bo} (reason: ${e})`}code;name=`TaskAbortError`;message},Eo=(e,t)=>{if(typeof e!=`function`)throw TypeError(Zo(32))},Do=()=>{},Oo=(e,t=Do)=>(e.catch(t),e),ko=(e,t)=>(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),Ao=e=>{if(e.aborted)throw new To(e.reason)};function jo(e,t){let n=Do;return new Promise((r,i)=>{let a=()=>i(new To(e.reason));if(e.aborted){a();return}n=ko(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=Do})}var Mo=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof To?`cancelled`:`rejected`,error:e}}finally{t?.()}},No=e=>t=>Oo(jo(e,t).then(t=>(Ao(e),t))),Po=e=>{let t=No(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:Fo}=Object,Io={},Lo=`listenerMiddleware`,Ro=(e,t)=>{let n=t=>ko(e,()=>t.abort(e.reason));return(r,i)=>{Eo(r,`taskExecutor`);let a=new AbortController;n(a);let o=Mo(async()=>{Ao(e),Ao(a.signal);let t=await r({pause:No(a.signal),delay:Po(a.signal),signal:a.signal});return Ao(a.signal),t},()=>a.abort(So));return i?.autoJoin&&t.push(o.catch(Do)),{result:No(e)(o),cancel(){a.abort(xo)}}}},zo=(e,t)=>{let n=async(n,r)=>{Ao(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 jo(t,Promise.race(a));return Ao(t),e}finally{i()}};return((e,t)=>Oo(n(e,t)))},Bo=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=Ha(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error(Zo(21));return Eo(a,`options.listener`),{predicate:i,type:t,effect:a}},Vo=Fo(e=>{let{type:t,predicate:n,effect:r}=Bo(e);return{id:io(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error(Zo(22))}}},{withTypes:()=>Vo}),Ho=(e,t)=>{let{type:n,effect:r,predicate:i}=Bo(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},Uo=e=>{e.pending.forEach(e=>{e.abort(Co)})},Wo=(e,t)=>()=>{for(let e of t.keys())Uo(e);e.clear()},Go=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},Ko=Fo(Ha(`${Lo}/add`),{withTypes:()=>Ko}),qo=Ha(`${Lo}/removeAll`),Jo=Fo(Ha(`${Lo}/remove`),{withTypes:()=>Jo}),Yo=(...e)=>{console.error(`${Lo}/error`,...e)},Xo=(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=Yo}=e;Eo(o,`onError`);let s=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&Uo(e)}),c=(e=>{let n=Ho(t,e)??Vo(e);return s(n)});Fo(c,{withTypes:()=>c});let l=e=>{let n=Ho(t,e);return n&&(n.unsubscribe(),e.cancelActive&&Uo(n)),!!n};Fo(l,{withTypes:()=>l});let u=async(e,n,s,l)=>{let u=new AbortController,d=zo(c,u.signal),f=[];try{e.pending.add(u),r(e),await Promise.resolve(e.effect(n,Fo({},s,{getOriginalState:l,condition:(e,t)=>d(e,t).then(Boolean),take:d,delay:Po(u.signal),pause:No(u.signal),extra:a,signal:u.signal,fork:Ro(u.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==u&&(e.abort(Co),n.delete(e))})},cancel:()=>{u.abort(Co),e.pending.delete(u)},throwIfCancelled:()=>{Ao(u.signal)}})))}catch(e){e instanceof To||Go(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),u.abort(wo),i(e),e.pending.delete(u)}},d=Wo(t,n);return{middleware:e=>n=>r=>{if(!hi(r))return n(r);if(Ko.match(r))return c(r.payload);if(qo.match(r)){d();return}if(Jo.match(r))return l(r.payload);let i=e.getState(),a=()=>{if(i===Io)throw Error(Zo(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,Go(o,e,{raisedBy:`predicate`})}s&&u(t,r,e,a)}}}finally{i=Io}return s},startListening:c,stopListening:l,clearListeners:d}};function Zo(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 Qo=lo({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}}}),$o=Qo.actions,es=$o.setMargin,ts=$o.setLayout,ns=$o.setChartSize,rs=$o.setScale,is=Qo.reducer;function as(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function H(e){return Number.isFinite(e)}function os(e){return typeof e==`number`&&e>0&&Number.isFinite(e)}function ss(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 cs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ss(Object(n),!0).forEach(function(t){ls(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ss(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ls(e,t,n){return(t=us(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function us(e){var t=ds(e,`string`);return typeof t==`symbol`?t:t+``}function ds(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 U(e,t,n){return F(e)||F(t)?n:Ne(t)?Te(e,t,n):typeof t==`function`?t(e):n}var fs=(e,t,n)=>{if(t&&n){var r=n.width,i=n.height,a=t.align,o=t.verticalAlign,s=t.layout,c=t.position,l=t.offset,u=l===void 0?0:l;if(c!=null){if(Ze(c)){if(c===`top`&&P(e.top))return cs(cs({},e),{},{top:e.top+(i||0)+u});if(c===`bottom`&&P(e.bottom))return cs(cs({},e),{},{bottom:e.bottom+(i||0)+u});if(c===`left`&&P(e.left))return cs(cs({},e),{},{left:e.left+(r||0)+u});if(c===`right`&&P(e.right))return cs(cs({},e),{},{right:e.right+(r||0)+u})}return e}if((s===`vertical`||s===`horizontal`&&o===`middle`)&&a!==`center`&&P(e[a]))return cs(cs({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&P(e[o]))return cs(cs({},e),{},{[o]:e[o]+(i||0)})}return e},ps=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,ms=(e,t,n,r)=>{if(r)return e.map(e=>e.coordinate);var i,a,o=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===n&&(a=!0),e.coordinate));return i||o.push(t),a||o.push(n),o},hs=(e,t,n)=>{if(!e)return null;var r=e.duplicateDomain,i=e.type,a=e.range,o=e.scale,s=e.realScaleType,c=e.isCategorical,l=e.categoricalDomain,u=e.tickCount,d=e.ticks,f=e.niceTicks,p=e.axisType;if(!o)return null;var m=s===`scaleBand`&&o.bandwidth?o.bandwidth()/2:2,h=(t||n)&&i===`category`&&o.bandwidth?o.bandwidth()/m:0;return h=p===`angleAxis`&&a&&a.length>=2?Ae(a[0]-a[1])*2*h:h,t&&(d||f)?(d||f||[]).map((e,t)=>{var n=r?r.indexOf(e):e,i=o.map(n);return H(i)?{coordinate:i+h,value:e,offset:h,index:t}:null}).filter(Ve):c&&l?l.map((e,t)=>{var n=o.map(e);return H(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(Ve):o.ticks&&!n&&u!=null?o.ticks(u).map((e,t)=>{var n=o.map(e);return H(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(Ve):o.domain().map((e,t)=>{var n=o.map(e);return H(n)?{coordinate:n+h,value:r?r[e]:e,index:t,offset:h}:null}).filter(Ve)},gs={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=je(c)?l:c;u>=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},expand:Jt,none:Ut,silhouette:Yt,wiggle:Xt,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=je(o[1])?o[0]:o[1];s>=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}}},_s=(e,t,n)=>{var r=gs[n]??Ut,i=qt().keys(t).value((e,t)=>Number(U(e,t,0))).order(Wt).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=U(e[i],t[r],0);Array.isArray(a)&&a.length===2&&P(a[0])&&P(a[1])&&(n[0]=a[0],n[1]=a[1])})}),i};function vs(e){return e==null?void 0:String(e)}function ys(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type===`category`){if(!t.allowDuplicatedCategory&&t.dataKey&&!F(i[t.dataKey])){var s=ze(n,`value`,i[t.dataKey]);if(s)return s.coordinate+r/2}return n!=null&&n[a]?n[a].coordinate+r/2:null}var c=U(i,F(o)?t.dataKey:o),l=t.scale.map(c);return P(l)?l:null}var bs=e=>{var t=e.flat(2).filter(P);return[Math.min(...t),Math.max(...t)]},xs=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Ss=(e,t,n)=>{if(e!=null&&Object.keys(e).length!==0)return xs(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var o=a.stackedData.reduce((e,r)=>{var i=bs(as(r,t,n));return!H(i[0])||!H(i[1])?e:[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]},[1/0,-1/0]))},Cs=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ws=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ts=(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=Kr(t,e=>e.coordinate),a=[],o=0,s=1,c=i.length;s<c;s++){var l=(i[s]?.coordinate||0)-(i[s-1]?.coordinate||0);a.push(l),o=Math.max(l,o)}var u=o*1e-4,d=1/0;for(var f of a)f>u&&(d=Math.min(f,d));return d===1/0?0:d}return n?void 0:0};function Es(e){var t=e.tooltipEntrySettings,n=e.dataKey,r=e.payload,i=e.value,a=e.name;return cs(cs({},t),{},{dataKey:n,payload:r,value:i,name:a})}function Ds(e,t){if(e!=null)return String(e);if(typeof t==`string`)return t}var Os=(e,t)=>{if(t===`horizontal`)return e.relativeX;if(t===`vertical`)return e.relativeY},ks=(e,t)=>t===`centric`?e.angle:e.radius,As=e=>e.layout.width,js=e=>e.layout.height,Ms=e=>e.layout.scale,Ns=e=>e.layout.margin,Ps=z(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Fs=z(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Is=`data-recharts-item-index`;function Ls(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 Rs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ls(Object(n),!0).forEach(function(t){zs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ls(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zs(e,t,n){return(t=Bs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bs(e){var t=Vs(e,`string`);return typeof t==`symbol`?t:t+``}function Vs(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 Hs=e=>e.brush.height;function Us(e){return Fs(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Ws(e){return Fs(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Gs(e){return Ps(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+(typeof t.height==`number`?t.height:30):e,0)}function Ks(e){return Ps(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+(typeof t.height==`number`?t.height:30):e,0)}var qs=z([As,js,Ns,Hs,Us,Ws,Gs,Ks,qr,Jr],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=Rs(Rs({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=fs(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return Rs(Rs({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),Js=z(qs,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Ys=z(As,js,(e,t)=>({x:0,y:0,width:e,height:t})),Xs=s(null),Zs=()=>p(Xs)!=null,Qs=e=>e.brush,$s=z([Qs,qs,Ns],(e,t,n)=>({height:e.height,x:P(e.x)?e.x:t.left,y:P(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:P(e.width)?e.width:t.width}));function ec(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function tc(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=ec(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?(s=e.apply(this,t),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function nc(e,t=0,n={}){let{leading:r=!0,trailing:i=!0}=n;return tc(e,t,{leading:r,maxWait:t,trailing:i})}var rc=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++]))}},ic={width:`100%`,height:`100%`,debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},ac=(e,t,n)=>{var r=n.width,i=r===void 0?ic.width:r,a=n.height,o=a===void 0?ic.height:a,s=n.aspect,c=n.maxHeight,l=Me(i)?e:Number(i),u=Me(o)?t:Number(o);return s&&s>0&&(l?u=l/s:u&&(l=u*s),c&&u!=null&&u>c&&(u=c)),{calculatedWidth:l,calculatedHeight:u}},oc={width:0,height:0,overflow:`visible`},sc={width:0,overflowX:`visible`},cc={height:0,overflowY:`visible`},lc={},uc=e=>{var t=e.width,n=e.height,r=Me(t),i=Me(n);return r&&i?oc:r?sc:i?cc:lc};function dc(e){var t=e.width,n=e.height,r=e.aspect,i=t,a=n;return i===void 0&&a===void 0?(i=ic.width,a=ic.height):i===void 0?i=r&&r>0?void 0:ic.width:a===void 0&&(a=r&&r>0?void 0:ic.height),{width:i,height:a}}var fc=[`aspect`,`initialDimension`,`width`,`height`,`minWidth`,`minHeight`,`maxHeight`,`children`,`debounce`,`id`,`className`,`onResize`,`style`];function pc(){return pc=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},pc.apply(null,arguments)}function mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mc(Object(n),!0).forEach(function(t){gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gc(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=vc(e,`string`);return typeof t==`symbol`?t:t+``}function vc(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 yc(e,t){return wc(e)||Cc(e,t)||xc(e,t)||bc()}function bc(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xc(e,t){if(e){if(typeof e==`string`)return Sc(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sc(e,t):void 0}}function Sc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cc(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function wc(e){if(Array.isArray(e))return e}function Tc(e,t){if(e==null)return{};var n,r,i=Ec(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 Ec(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 Dc=s(ic.initialDimension);function Oc(e){return os(e.width)&&os(e.height)}function kc(e){var t=e.children,n=e.width,r=e.height,a=_(()=>({width:n,height:r}),[n,r]);return Oc(a)?i.createElement(Dc.Provider,{value:a},t):null}var Ac=()=>p(Dc),jc=l((e,t)=>{var n=e.aspect,r=e.initialDimension,a=r===void 0?ic.initialDimension:r,o=e.width,s=e.height,c=e.minWidth,l=c===void 0?ic.minWidth:c,u=e.minHeight,d=e.maxHeight,p=e.children,g=e.debounce,_=g===void 0?ic.debounce:g,b=e.id,x=e.className,S=e.onResize,C=e.style,w=C===void 0?{}:C,T=Tc(e,fc),E=v(null),D=v();D.current=S,h(t,()=>E.current);var O=yc(y({containerWidth:a.width,containerHeight:a.height}),2),k=O[0],A=O[1],j=f((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}})},[]);m(()=>{if(E.current==null||typeof ResizeObserver>`u`)return He;var e=e=>{var t,n=e[0];if(n!=null){var r=n.contentRect,i=r.width,a=r.height;j(i,a),(t=D.current)==null||t.call(D,i,a)}};_>0&&(e=nc(e,_,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=E.current.getBoundingClientRect(),r=n.width,i=n.height;return j(r,i),t.observe(E.current),()=>{t.disconnect()}},[j,_]);var M=k.containerWidth,ee=k.containerHeight;rc(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var te=ac(M,ee,{width:o,height:s,aspect:n,maxHeight:d}),ne=te.calculatedWidth,re=te.calculatedHeight;return rc(M<0||ee<0||ne!=null&&ne>0||re!=null&&re>0,`The width(%s) and height(%s) of chart should be greater than 0,
4
4
  please check the style of container, or the props width(%s) and height(%s),
@@ -1 +1 @@
1
- import{W as e}from"./Lamp-ZlMzNs5N.js";import{g as t}from"./Rack-D798XvPQ.js";import{useQueryClient as n}from"@tanstack/react-query";import{createContext as r,use as i,useEffect as a,useRef as o,useState as s,useSyncExternalStore as c}from"react";import{jsx as l}from"react/jsx-runtime";var u=`stream:console`,d={"res:usage":{predicate:e=>e.queryKey[0]===`usage`||e.queryKey[0]===`client`&&(e.queryKey[1]===`usage`||e.queryKey[1]===`summary`)},"res:logs":{predicate:e=>e.queryKey[0]===`logs`&&e.queryKey[1]!==`body`||e.queryKey[0]===`client`&&e.queryKey[1]===`logs`},"res:credentials":{queryKey:e.credentials},"res:keys":{queryKey:e.keys},"res:settings":{queryKey:e.settings},"res:models":{queryKey:e.models},"res:quota":{queryKey:[`quota-history`]},[u]:{queryKey:[`console`]}},f=Object.keys(d),p=f.filter(e=>e.startsWith(`res:`)),m=f.filter(e=>e.startsWith(`stream:`));function h(e,t){if(t===`res:*`){_(e);return}let n=d[t];n!==void 0&&e.invalidateQueries(n)}function g(e){for(let t of f)h(e,t)}function _(e){e.invalidateQueries()}var v=4401,y=500,b=3e4,x=new Set([...p,...m]),S=3,C=6e4,w=(e,t)=>{let n=setTimeout(e,t);return()=>clearTimeout(n)};function T(){let{protocol:e,host:t}=window.location;return`${e===`https:`?`wss:`:`ws:`}//${t}/api/stream`}function E(e){if(typeof e!=`string`)return null;let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!=`object`||!t||Array.isArray(t))return null;let n=t,{type:r,topic:i,seq:a}=n;return typeof r!=`string`||i!==void 0&&typeof i!=`string`||a!==void 0&&typeof a!=`number`?null:{type:r,...typeof i==`string`?{topic:i}:{},...typeof a==`number`?{seq:a}:{},...`payload`in n?{payload:n.payload}:{}}}function D(e){let t=new Set,n=new Set,r=new Map,i=new Map,a=new Map,o=e=>a.has(e)||x.has(e),s=[],c=null,l=!1,u=!1,d=!1,f=!1,w=!1,T=0,D=null,O={status:`poll`,pushed:()=>!1};function k(){let e=w?`offline`:u&&!f?`push`:`poll`,r=e===`push`;O={status:e,pushed:e=>r&&n.has(e)};for(let e of t)e()}function A(e){c?.send(JSON.stringify(e))}function j(e,t){let n=i.get(e);if(n===void 0||n.size===0)return!1;for(let e of[...n])e(t);return!0}function M(){for(let e of p)A({type:`subscribe`,topic:e});for(let e of m){let t=r.get(e);A(t===void 0?{type:`subscribe`,topic:e}:{type:`subscribe`,topic:e,sinceSeq:t})}for(let e of a.keys())A({type:`subscribe`,topic:e})}function N(){u=!0,T=0,n.clear(),d&&g(e.client),d=!0,M(),k()}function P(t){let i=E(t.data);if(i===null)return;let{topic:a}=i;if(i.type===`ack`){a!==void 0&&o(a)&&(n.add(a),j(a,{kind:`open`}),k());return}if(i.type===`error`){a!==void 0&&(n.delete(a)&&k(),j(a,{kind:`refused`}));return}if(a!==void 0){if(i.type===`gap`){i.seq!==void 0&&r.set(a,i.seq),j(a,{kind:`gap`}),h(e.client,a);return}if(i.type===`event`){if(a===`res:*`){_(e.client);return}if(i.seq!==void 0){let t=r.get(a);if(r.set(a,i.seq),t!==void 0&&i.seq>t+1){j(a,{kind:`gap`}),h(e.client,a);return}}i.payload!==void 0&&j(a,{kind:`frame`,payload:i.payload})||h(e.client,a)}}}function F(t){let r=u;u=!1,c=null,n.clear();for(let e of[...i.keys()])j(e,{kind:`closed`});if(l){if(t.code===v){w=!0,l=!1,k(),_(e.client);return}if(!r)f=!0;else{let t=e.now();s=[...s.filter(e=>e>t-C),t],s.length>=S&&(f=!0)}k(),I()}}function I(){let t=Math.min(b,y*2**T);T+=1,D=e.timer(()=>{D=null,l&&L()},t)}function L(){let t=new WebSocket(e.url());c=t,t.addEventListener(`open`,N),t.addEventListener(`message`,P),t.addEventListener(`close`,F)}function R(e,t){let n=i.get(e)??new Set;return i.set(e,n),n.add(t),()=>{n.delete(t),n.size===0&&i.delete(e)}}return{subscribe(e){return t.add(e),()=>{t.delete(e)}},snapshot:()=>O,hold(e,t){let r=R(e,t),i=(a.get(e)??0)+1;a.set(e,i),i===1&&u&&A({type:`subscribe`,topic:e}),n.has(e)&&t({kind:`open`});let o=!1;return()=>{if(o)return;o=!0,r();let t=(a.get(e)??1)-1;if(t>0){a.set(e,t);return}a.delete(e),n.delete(e)&&k(),u&&A({type:`unsubscribe`,topic:e})}},publish(e,t){return!u||!n.has(e)?!1:(A({type:`send`,topic:e,payload:t}),!0)},onStream:R,start(){return l=!0,L(),()=>{l=!1,D?.(),D=null;let e=c;c=null,u=!1,e?.close()}}}}var O=r(null),k=r(null),A=r(null),j={status:`poll`,pushed:()=>!1};function M({children:e,enabled:t=!0,timer:r=w,now:i=Date.now,url:o=T}){let u=n(),[d]=s(()=>D({client:u,timer:r,now:i,url:o})),[f]=s(()=>({subscribe:(e,t)=>d.hold(e,e=>{if(e.kind===`gap`){t({kind:`closed`});return}t(e)}),send:d.publish}));a(()=>{if(t)return d.start()},[d,t]);let p=c(d.subscribe,d.snapshot,d.snapshot);return l(O,{value:p,children:l(k,{value:d.onStream,children:l(A,{value:f,children:e})})})}function N(){return i(O)??j}function P(e,t){let n=i(k),r=o(t);a(()=>{r.current=t}),a(()=>{if(n!==null)return n(e,e=>r.current(e))},[n,e])}function F({children:e}){let n=N(),r=i(A);return l(t,{connection:n,...r===null?{}:{channels:r},children:e})}export{h as a,u as i,F as n,P as r,M as t};
1
+ import{W as e}from"./Lamp-Cxp-OxUq.js";import{g as t}from"./Rack-xBT_6EtM.js";import{useQueryClient as n}from"@tanstack/react-query";import{createContext as r,use as i,useEffect as a,useRef as o,useState as s,useSyncExternalStore as c}from"react";import{jsx as l}from"react/jsx-runtime";var u=`stream:console`,d={"res:usage":{predicate:e=>e.queryKey[0]===`usage`||e.queryKey[0]===`client`&&(e.queryKey[1]===`usage`||e.queryKey[1]===`summary`)},"res:logs":{predicate:e=>e.queryKey[0]===`logs`&&e.queryKey[1]!==`body`||e.queryKey[0]===`client`&&e.queryKey[1]===`logs`},"res:credentials":{queryKey:e.credentials},"res:keys":{queryKey:e.keys},"res:settings":{queryKey:e.settings},"res:models":{queryKey:e.models},"res:quota":{queryKey:[`quota-history`]},[u]:{queryKey:[`console`]}},f=Object.keys(d),p=f.filter(e=>e.startsWith(`res:`)),m=f.filter(e=>e.startsWith(`stream:`));function h(e,t){if(t===`res:*`){_(e);return}let n=d[t];n!==void 0&&e.invalidateQueries(n)}function g(e){for(let t of f)h(e,t)}function _(e){e.invalidateQueries()}var v=4401,y=500,b=3e4,x=new Set([...p,...m]),S=3,C=6e4,w=(e,t)=>{let n=setTimeout(e,t);return()=>clearTimeout(n)};function T(){let{protocol:e,host:t}=window.location;return`${e===`https:`?`wss:`:`ws:`}//${t}/api/stream`}function E(e){if(typeof e!=`string`)return null;let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!=`object`||!t||Array.isArray(t))return null;let n=t,{type:r,topic:i,seq:a}=n;return typeof r!=`string`||i!==void 0&&typeof i!=`string`||a!==void 0&&typeof a!=`number`?null:{type:r,...typeof i==`string`?{topic:i}:{},...typeof a==`number`?{seq:a}:{},...`payload`in n?{payload:n.payload}:{}}}function D(e){let t=new Set,n=new Set,r=new Map,i=new Map,a=new Map,o=e=>a.has(e)||x.has(e),s=[],c=null,l=!1,u=!1,d=!1,f=!1,w=!1,T=0,D=null,O={status:`poll`,pushed:()=>!1};function k(){let e=w?`offline`:u&&!f?`push`:`poll`,r=e===`push`;O={status:e,pushed:e=>r&&n.has(e)};for(let e of t)e()}function A(e){c?.send(JSON.stringify(e))}function j(e,t){let n=i.get(e);if(n===void 0||n.size===0)return!1;for(let e of[...n])e(t);return!0}function M(){for(let e of p)A({type:`subscribe`,topic:e});for(let e of m){let t=r.get(e);A(t===void 0?{type:`subscribe`,topic:e}:{type:`subscribe`,topic:e,sinceSeq:t})}for(let e of a.keys())A({type:`subscribe`,topic:e})}function N(){u=!0,T=0,n.clear(),d&&g(e.client),d=!0,M(),k()}function P(t){let i=E(t.data);if(i===null)return;let{topic:a}=i;if(i.type===`ack`){a!==void 0&&o(a)&&(n.add(a),j(a,{kind:`open`}),k());return}if(i.type===`error`){a!==void 0&&(n.delete(a)&&k(),j(a,{kind:`refused`}));return}if(a!==void 0){if(i.type===`gap`){i.seq!==void 0&&r.set(a,i.seq),j(a,{kind:`gap`}),h(e.client,a);return}if(i.type===`event`){if(a===`res:*`){_(e.client);return}if(i.seq!==void 0){let t=r.get(a);if(r.set(a,i.seq),t!==void 0&&i.seq>t+1){j(a,{kind:`gap`}),h(e.client,a);return}}i.payload!==void 0&&j(a,{kind:`frame`,payload:i.payload})||h(e.client,a)}}}function F(t){let r=u;u=!1,c=null,n.clear();for(let e of[...i.keys()])j(e,{kind:`closed`});if(l){if(t.code===v){w=!0,l=!1,k(),_(e.client);return}if(!r)f=!0;else{let t=e.now();s=[...s.filter(e=>e>t-C),t],s.length>=S&&(f=!0)}k(),I()}}function I(){let t=Math.min(b,y*2**T);T+=1,D=e.timer(()=>{D=null,l&&L()},t)}function L(){let t=new WebSocket(e.url());c=t,t.addEventListener(`open`,N),t.addEventListener(`message`,P),t.addEventListener(`close`,F)}function R(e,t){let n=i.get(e)??new Set;return i.set(e,n),n.add(t),()=>{n.delete(t),n.size===0&&i.delete(e)}}return{subscribe(e){return t.add(e),()=>{t.delete(e)}},snapshot:()=>O,hold(e,t){let r=R(e,t),i=(a.get(e)??0)+1;a.set(e,i),i===1&&u&&A({type:`subscribe`,topic:e}),n.has(e)&&t({kind:`open`});let o=!1;return()=>{if(o)return;o=!0,r();let t=(a.get(e)??1)-1;if(t>0){a.set(e,t);return}a.delete(e),n.delete(e)&&k(),u&&A({type:`unsubscribe`,topic:e})}},publish(e,t){return!u||!n.has(e)?!1:(A({type:`send`,topic:e,payload:t}),!0)},onStream:R,start(){return l=!0,L(),()=>{l=!1,D?.(),D=null;let e=c;c=null,u=!1,e?.close()}}}}var O=r(null),k=r(null),A=r(null),j={status:`poll`,pushed:()=>!1};function M({children:e,enabled:t=!0,timer:r=w,now:i=Date.now,url:o=T}){let u=n(),[d]=s(()=>D({client:u,timer:r,now:i,url:o})),[f]=s(()=>({subscribe:(e,t)=>d.hold(e,e=>{if(e.kind===`gap`){t({kind:`closed`});return}t(e)}),send:d.publish}));a(()=>{if(t)return d.start()},[d,t]);let p=c(d.subscribe,d.snapshot,d.snapshot);return l(O,{value:p,children:l(k,{value:d.onStream,children:l(A,{value:f,children:e})})})}function N(){return i(O)??j}function P(e,t){let n=i(k),r=o(t);a(()=>{r.current=t}),a(()=>{if(n!==null)return n(e,e=>r.current(e))},[n,e])}function F(e,t){let n=i(A),r=o(t);a(()=>{r.current=t}),a(()=>{if(n!==null&&e!==null)return n.subscribe(e,e=>r.current(e))},[n,e])}function I({children:e}){let n=N(),r=i(A);return l(t,{connection:n,...r===null?{}:{channels:r},children:e})}export{u as a,P as i,I as n,h as o,F as r,M as t};
@@ -1 +1 @@
1
- import{b as e}from"./Rack-D798XvPQ.js";var t=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]);export{t};
1
+ import{b as e}from"./Rack-xBT_6EtM.js";var t=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]);export{t};