@perses-dev/tempo-plugin 0.57.0-beta.0 → 0.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__mf/js/{Tempo.7093dd4a.js → Tempo.a15c7ca4.js} +3 -3
- package/__mf/js/async/1728.988e2b29.js +1 -0
- package/__mf/js/async/1905.d3c01a20.js +2 -0
- package/__mf/js/async/{7583.bfd2f519.js → 3064.2462a755.js} +1 -1
- package/__mf/js/async/392.b27ef564.js +2 -0
- package/__mf/js/async/54.812deb71.js +22 -0
- package/__mf/js/async/7902.57efc83f.js +2 -0
- package/__mf/js/async/7958.4ba5d596.js +7 -0
- package/__mf/js/async/9877.d18186e5.js +38 -0
- package/__mf/js/async/{__federation_expose_TempoDatasource.a0c321ab.js → __federation_expose_TempoDatasource.1f9ab43f.js} +2 -2
- package/__mf/js/async/__federation_expose_TempoExplorer.003c9970.js +1 -0
- package/__mf/js/async/{__federation_expose_TempoTraceQuery.e1786579.js → __federation_expose_TempoTraceQuery.eff34861.js} +1 -1
- package/__mf/js/async/lib-router.66abf9e6.js +2 -0
- package/__mf/js/async/{lib-router.4c755752.js.LICENSE.txt → lib-router.66abf9e6.js.LICENSE.txt} +3 -3
- package/__mf/js/{main.db74e654.js → main.6a6654b6.js} +3 -3
- package/lib/bootstrap.js +1 -1
- package/lib/bootstrap.js.map +1 -1
- package/lib/cjs/bootstrap.js +1 -1
- package/lib/cjs/components/AttributeFilters.js +1 -1
- package/lib/cjs/components/ClosableAlert.js +40 -0
- package/lib/cjs/components/TraceQLEditor.js +1 -1
- package/lib/cjs/components/TraceQLExtension.js +1 -1
- package/lib/cjs/components/complete.js +1 -1
- package/lib/cjs/components/filter/filter.js +12 -0
- package/lib/cjs/components/filter/filter_to_traceql.js +12 -0
- package/lib/cjs/components/filter/index.js +1 -1
- package/lib/cjs/components/filter/traceql_to_filter.js +12 -0
- package/lib/cjs/components/highlight.js +1 -1
- package/lib/cjs/components/index.js +1 -1
- package/lib/cjs/env.d.js +1 -1
- package/lib/cjs/explore/TempoExplorer.js +6 -5
- package/lib/cjs/explore/index.js +12 -0
- package/lib/cjs/explore/links.js +1 -1
- package/lib/cjs/getPluginModule.js +12 -0
- package/lib/cjs/index-federation.js +1 -1
- package/lib/cjs/index.js +12 -0
- package/lib/cjs/model/api-types.js +1 -1
- package/lib/cjs/model/index.js +1 -1
- package/lib/cjs/model/tempo-client.js +1 -1
- package/lib/cjs/model/tempo-selectors.js +1 -1
- package/lib/cjs/model/trace-query-model.js +1 -1
- package/lib/cjs/plugins/TempoDatasourceEditor.js +1 -1
- package/lib/cjs/plugins/index.js +12 -0
- package/lib/cjs/plugins/tempo-datasource-types.js +1 -1
- package/lib/cjs/plugins/tempo-datasource.js +1 -1
- package/lib/cjs/plugins/tempo-trace-query/TempoTraceQuery.js +1 -1
- package/lib/cjs/plugins/tempo-trace-query/TempoTraceQueryEditor.js +1 -1
- package/lib/cjs/plugins/tempo-trace-query/get-trace-data.js +1 -1
- package/lib/cjs/plugins/tempo-trace-query/index.js +12 -0
- package/lib/cjs/plugins/tempo-trace-query/query-editor-model.js +1 -1
- package/lib/cjs/setup-tests.js +1 -1
- package/lib/cjs/test/index.js +1 -1
- package/lib/cjs/test/mock-data.js +1 -1
- package/lib/cjs/test/setup-tests.js +1 -1
- package/lib/components/AttributeFilters.js +1 -1
- package/lib/components/AttributeFilters.js.map +1 -1
- package/lib/components/ClosableAlert.d.ts +3 -0
- package/lib/components/ClosableAlert.d.ts.map +1 -0
- package/lib/components/ClosableAlert.js +32 -0
- package/lib/components/ClosableAlert.js.map +1 -0
- package/lib/components/TraceQLEditor.js +1 -1
- package/lib/components/TraceQLEditor.js.map +1 -1
- package/lib/components/TraceQLExtension.js +1 -1
- package/lib/components/TraceQLExtension.js.map +1 -1
- package/lib/components/complete.js +1 -1
- package/lib/components/complete.js.map +1 -1
- package/lib/components/filter/filter.d.ts.map +1 -1
- package/lib/components/filter/filter.js +12 -0
- package/lib/components/filter/filter.js.map +1 -1
- package/lib/components/filter/filter_to_traceql.d.ts.map +1 -1
- package/lib/components/filter/filter_to_traceql.js +12 -0
- package/lib/components/filter/filter_to_traceql.js.map +1 -1
- package/lib/components/filter/index.js +1 -1
- package/lib/components/filter/index.js.map +1 -1
- package/lib/components/filter/traceql_to_filter.d.ts.map +1 -1
- package/lib/components/filter/traceql_to_filter.js +12 -0
- package/lib/components/filter/traceql_to_filter.js.map +1 -1
- package/lib/components/highlight.js +1 -1
- package/lib/components/highlight.js.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/index.js.map +1 -1
- package/lib/env.d.js +1 -1
- package/lib/env.d.js.map +1 -1
- package/lib/explore/TempoExplorer.d.ts.map +1 -1
- package/lib/explore/TempoExplorer.js +7 -6
- package/lib/explore/TempoExplorer.js.map +1 -1
- package/lib/explore/index.d.ts.map +1 -1
- package/lib/explore/index.js +12 -0
- package/lib/explore/index.js.map +1 -1
- package/lib/explore/links.js +1 -1
- package/lib/explore/links.js.map +1 -1
- package/lib/getPluginModule.d.ts.map +1 -1
- package/lib/getPluginModule.js +12 -0
- package/lib/getPluginModule.js.map +1 -1
- package/lib/index-federation.js +1 -1
- package/lib/index-federation.js.map +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +12 -0
- package/lib/index.js.map +1 -1
- package/lib/model/api-types.js +1 -1
- package/lib/model/api-types.js.map +1 -1
- package/lib/model/index.js +1 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/tempo-client.js +1 -1
- package/lib/model/tempo-client.js.map +1 -1
- package/lib/model/tempo-selectors.js +1 -1
- package/lib/model/tempo-selectors.js.map +1 -1
- package/lib/model/trace-query-model.js +1 -1
- package/lib/model/trace-query-model.js.map +1 -1
- package/lib/plugins/TempoDatasourceEditor.js +1 -1
- package/lib/plugins/TempoDatasourceEditor.js.map +1 -1
- package/lib/plugins/index.d.ts.map +1 -1
- package/lib/plugins/index.js +12 -0
- package/lib/plugins/index.js.map +1 -1
- package/lib/plugins/tempo-datasource-types.js +1 -1
- package/lib/plugins/tempo-datasource-types.js.map +1 -1
- package/lib/plugins/tempo-datasource.js +1 -1
- package/lib/plugins/tempo-datasource.js.map +1 -1
- package/lib/plugins/tempo-trace-query/TempoTraceQuery.js +1 -1
- package/lib/plugins/tempo-trace-query/TempoTraceQuery.js.map +1 -1
- package/lib/plugins/tempo-trace-query/TempoTraceQueryEditor.js +1 -1
- package/lib/plugins/tempo-trace-query/TempoTraceQueryEditor.js.map +1 -1
- package/lib/plugins/tempo-trace-query/get-trace-data.js +1 -1
- package/lib/plugins/tempo-trace-query/get-trace-data.js.map +1 -1
- package/lib/plugins/tempo-trace-query/index.d.ts.map +1 -1
- package/lib/plugins/tempo-trace-query/index.js +12 -0
- package/lib/plugins/tempo-trace-query/index.js.map +1 -1
- package/lib/plugins/tempo-trace-query/query-editor-model.js +1 -1
- package/lib/plugins/tempo-trace-query/query-editor-model.js.map +1 -1
- package/lib/setup-tests.js +1 -1
- package/lib/setup-tests.js.map +1 -1
- package/lib/test/index.js +1 -1
- package/lib/test/index.js.map +1 -1
- package/lib/test/mock-data.js +1 -1
- package/lib/test/mock-data.js.map +1 -1
- package/lib/test/setup-tests.js +1 -1
- package/lib/test/setup-tests.js.map +1 -1
- package/mf-manifest.json +36 -36
- package/mf-stats.json +36 -36
- package/package.json +6 -6
- package/__mf/js/async/1490.cc0a832d.js +0 -22
- package/__mf/js/async/1728.21067e6f.js +0 -1
- package/__mf/js/async/3849.d1b5a7aa.js +0 -7
- package/__mf/js/async/392.fd3eade4.js +0 -2
- package/__mf/js/async/4746.c0ce20c6.js +0 -2
- package/__mf/js/async/5214.d2077bec.js +0 -2
- package/__mf/js/async/8035.ce79a5fb.js +0 -38
- package/__mf/js/async/__federation_expose_TempoExplorer.79065666.js +0 -1
- package/__mf/js/async/lib-router.4c755752.js +0 -2
- /package/__mf/js/async/{4746.c0ce20c6.js.LICENSE.txt → 1905.d3c01a20.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{392.fd3eade4.js.LICENSE.txt → 392.b27ef564.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{1490.cc0a832d.js.LICENSE.txt → 54.812deb71.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5214.d2077bec.js.LICENSE.txt → 7902.57efc83f.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3849.d1b5a7aa.js.LICENSE.txt → 7958.4ba5d596.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_TempoDatasource.a0c321ab.js.LICENSE.txt → __federation_expose_TempoDatasource.1f9ab43f.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 5214.d2077bec.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.chunk_Tempo=self.chunk_Tempo||[]).push([["5214"],{34007:function(e,t,r){r.d(t,{A:()=>T});var n=r(70451),i=r(11750),a=r(81023),o=r(59238),l=r(77308),s=r(23434),u=r(72052),c=r(73397),f=r(24726),d=r(26952),p=r(11502),m=r(52855),g=r(47095),h=r(22402),b=r(62540);let y=(0,h.A)((0,b.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),v=(0,h.A)((0,b.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),x=(0,h.A)((0,b.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),w=(0,h.A)((0,b.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined");var A=r(17834);let $=(0,l.A)(p.A,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${(0,f.A)(r.color||r.severity)}`]]}})((0,s.A)(({theme:e})=>{let t="light"===e.palette.mode?o.e$:o.a,r="light"===e.palette.mode?o.a:o.e$;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter((0,d.A)(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${n}StandardBg`]:r(e.palette[n].light,.9),[`& .${m.A.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter((0,d.A)(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${m.A.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter((0,d.A)(["dark"])).map(([t])=>({props:{colorSeverity:t,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),B=(0,l.A)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),S=(0,l.A)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),O=(0,l.A)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),D={success:(0,b.jsx)(y,{fontSize:"inherit"}),warning:(0,b.jsx)(v,{fontSize:"inherit"}),error:(0,b.jsx)(x,{fontSize:"inherit"}),info:(0,b.jsx)(w,{fontSize:"inherit"})},T=n.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiAlert"}),{action:n,children:o,className:l,closeText:s="Close",color:d,components:p={},componentsProps:h={},icon:y,iconMapping:v=D,onClose:x,role:w="alert",severity:T="success",slotProps:N={},slots:M={},variant:C="standard",...k}=r,F={...r,color:d,severity:T,variant:C,colorSeverity:d||T},E=(e=>{let{variant:t,color:r,severity:n,classes:i}=e,o={root:["root",`color${(0,f.A)(r||n)}`,`${t}${(0,f.A)(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,a.A)(o,m.X,i)})(F),I={slots:{closeButton:p.CloseButton,closeIcon:p.CloseIcon,...M},slotProps:{...h,...N}},[L,R]=(0,c.A)("root",{ref:t,shouldForwardComponentProp:!0,className:(0,i.A)(E.root,l),elementType:$,externalForwardedProps:{...I,...k},ownerState:F,additionalProps:{role:w,elevation:0}}),[j,U]=(0,c.A)("icon",{className:E.icon,elementType:B,externalForwardedProps:I,ownerState:F}),[P,_]=(0,c.A)("message",{className:E.message,elementType:S,externalForwardedProps:I,ownerState:F}),[z,G]=(0,c.A)("action",{className:E.action,elementType:O,externalForwardedProps:I,ownerState:F}),[V,W]=(0,c.A)("closeButton",{elementType:g.A,externalForwardedProps:I,ownerState:F}),[Z,H]=(0,c.A)("closeIcon",{elementType:A.A,externalForwardedProps:I,ownerState:F});return(0,b.jsxs)(L,{...R,children:[!1!==y?(0,b.jsx)(j,{...U,children:y||v[T]||D[T]}):null,(0,b.jsx)(P,{..._,children:o}),null!=n?(0,b.jsx)(z,{...G,children:n}):null,null==n&&x?(0,b.jsx)(z,{...G,children:(0,b.jsx)(V,{size:"small","aria-label":s,title:s,color:"inherit",onClick:x,...W,children:(0,b.jsx)(Z,{fontSize:"small",...H})})}):null]})})},52855:function(e,t,r){r.d(t,{A:()=>o,X:()=>a});var n=r(29009),i=r(46733);function a(e){return(0,i.Ay)("MuiAlert",e)}let o=(0,n.A)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"])},14045:function(e,t,r){r.d(t,{A:()=>g});var n=r(70451),i=r(11750),a=r(81023),o=r(47599),l=r(88091),s=r(67214),u=r(77308),c=r(72052),f=r(85397),d=r(73397),p=r(62540);let m=(0,u.A)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${f.A.primary}`]:t.primary},{[`& .${f.A.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${o.A.root}:where(& .${f.A.primary})`]:{display:"block"},[`.${o.A.root}:where(& .${f.A.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),g=n.forwardRef(function(e,t){let r=(0,c.b)({props:e,name:"MuiListItemText"}),{children:o,className:u,disableTypography:g=!1,inset:h=!1,primary:b,primaryTypographyProps:y,secondary:v,secondaryTypographyProps:x,slots:w={},slotProps:A={},...$}=r,{dense:B}=n.useContext(s.A),S=null!=b?b:o,O=v,D={...r,disableTypography:g,inset:h,primary:!!S,secondary:!!O,dense:B},T=(e=>{let{classes:t,inset:r,primary:n,secondary:i,dense:o}=e;return(0,a.A)({root:["root",r&&"inset",o&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},f.b,t)})(D),N={slots:w,slotProps:{primary:y,secondary:x,...A}},[M,C]=(0,d.A)("root",{className:(0,i.A)(T.root,u),elementType:m,externalForwardedProps:{...N,...$},ownerState:D,ref:t}),[k,F]=(0,d.A)("primary",{className:T.primary,elementType:l.A,externalForwardedProps:N,ownerState:D}),[E,I]=(0,d.A)("secondary",{className:T.secondary,elementType:l.A,externalForwardedProps:N,ownerState:D});return null==S||S.type===l.A||g||(S=(0,p.jsx)(k,{variant:B?"body2":"body1",component:F?.variant?void 0:"span",...F,children:S})),null==O||O.type===l.A||g||(O=(0,p.jsx)(E,{variant:"body2",color:"textSecondary",...I,children:O})),(0,p.jsxs)(M,{...C,children:[S,O]})})},31729:function(e,t,r){r.d(t,{A:()=>v});var n=r(70451),i=r(11750),a=r(52215),o=r(81023),l=r(59238),s=r(1337),u=r(24726),c=r(77308),f=r(23434),d=r(26952),p=r(72052),m=r(76145),g=r(40180),h=r(4992),b=r(62540);let y=(0,c.A)(s.A,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`size${(0,u.A)(r.size)}`]]}})((0,f.A)(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${m.A.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${m.A.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.X4)(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,l.X4)(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.X4)(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter((0,d.A)()).map(([t])=>({props:{color:t},style:{[`&.${m.A.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.X4)(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,l.X4)(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.X4)(e.palette[t].main,e.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),v=n.forwardRef(function(e,t){var r;let{value:l,...s}=n.useContext(g.A),c=n.useContext(h.A),f=(0,a.A)({...s,selected:(r=e.value,void 0!==l&&void 0!==r&&(Array.isArray(l)?l.includes(r):r===l))},e),d=(0,p.b)({props:f,name:"MuiToggleButton"}),{children:v,className:x,color:w="standard",disabled:A=!1,disableFocusRipple:$=!1,fullWidth:B=!1,onChange:S,onClick:O,selected:D,size:T="medium",value:N,...M}=d,C={...d,color:w,disabled:A,disableFocusRipple:$,fullWidth:B,size:T},k=(e=>{let{classes:t,fullWidth:r,selected:n,disabled:i,size:a,color:l}=e,s={root:["root",n&&"selected",i&&"disabled",r&&"fullWidth",`size${(0,u.A)(a)}`,l]};return(0,o.A)(s,m.J,t)})(C);return(0,b.jsx)(y,{className:(0,i.A)(s.className,k.root,x,c||""),disabled:A,focusRipple:!$,ref:t,onClick:e=>{O&&(O(e,N),e.defaultPrevented)||S&&S(e,N)},onChange:S,value:N,ownerState:C,"aria-pressed":D,...M,children:v})})},76145:function(e,t,r){r.d(t,{A:()=>o,J:()=>a});var n=r(29009),i=r(46733);function a(e){return(0,i.Ay)("MuiToggleButton",e)}let o=(0,n.A)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"])},61375:function(e,t,r){r.d(t,{A:()=>x});var n=r(70451),i=r(11750),a=r(81023),o=r(41953),l=r(77308),s=r(23434),u=r(72052),c=r(24726),f=r(29009),d=r(46733);function p(e){return(0,d.Ay)("MuiToggleButtonGroup",e)}let m=(0,f.A)("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]);var g=r(40180),h=r(4992),b=r(76145),y=r(62540);let v=(0,l.A)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${m.grouped}`]:t.grouped},{[`& .${m.grouped}`]:t[`grouped${(0,c.A)(r.orientation)}`]},{[`& .${m.firstButton}`]:t.firstButton},{[`& .${m.lastButton}`]:t.lastButton},{[`& .${m.middleButton}`]:t.middleButton},t.root,"vertical"===r.orientation&&t.vertical,r.fullWidth&&t.fullWidth]}})((0,s.A)(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${m.grouped}`]:{[`&.${m.selected} + .${m.grouped}.${m.selected}`]:{borderTop:0,marginTop:0}},[`& .${m.firstButton},& .${m.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${m.lastButton},& .${m.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${m.lastButton}.${b.A.disabled},& .${m.middleButton}.${b.A.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${m.grouped}`]:{[`&.${m.selected} + .${m.grouped}.${m.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${m.firstButton},& .${m.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${m.lastButton},& .${m.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${m.lastButton}.${b.A.disabled},& .${m.middleButton}.${b.A.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),x=n.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiToggleButtonGroup"}),{children:l,className:s,color:f="standard",disabled:d=!1,exclusive:m=!1,fullWidth:b=!1,onChange:x,orientation:w="horizontal",size:A="medium",value:$,...B}=r,S={...r,disabled:d,fullWidth:b,orientation:w,size:A},O=(e=>{let{classes:t,orientation:r,fullWidth:n,disabled:i}=e,o={root:["root",r,n&&"fullWidth"],grouped:["grouped",`grouped${(0,c.A)(r)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,a.A)(o,p,t)})(S),D=n.useCallback((e,t)=>{let r;if(!x)return;let n=$&&$.indexOf(t);$&&n>=0?(r=$.slice()).splice(n,1):r=$?$.concat(t):[t],x(e,r)},[x,$]),T=n.useCallback((e,t)=>{x&&x(e,$===t?null:t)},[x,$]),N=n.useMemo(()=>({className:O.grouped,onChange:m?T:D,value:$,size:A,fullWidth:b,color:f,disabled:d}),[O.grouped,m,T,D,$,A,b,f,d]),M=(0,o.A)(l),C=M.length;return(0,y.jsx)(v,{role:"group",className:(0,i.A)(O.root,s),ref:t,ownerState:S,...B,children:(0,y.jsx)(g.A.Provider,{value:N,children:M.map((e,t)=>{let r,n;return(0,y.jsx)(h.A.Provider,{value:(r=0===t,n=t===C-1,r&&n?"":r?O.firstButton:n?O.lastButton:O.middleButton),children:e},t)})})})})},4992:function(e,t,r){r.d(t,{A:()=>n});let n=r(70451).createContext(void 0)},40180:function(e,t,r){r.d(t,{A:()=>n});let n=r(70451).createContext({})},41953:function(e,t,r){r.d(t,{A:()=>i});var n=r(70451);function i(e){return n.Children.toArray(e).filter(e=>n.isValidElement(e))}},3967:function(e,t,r){r.d(t,{DY:()=>l,Dk:()=>o,G2:()=>i,JW:()=>c,M8:()=>a,VE:()=>s,lh:()=>d,nV:()=>f,qw:()=>n,yf:()=>u});let n=["bottom","right"],i=["list","table"],a=["small","medium"];function o(e){return n.includes(e)}function l(e){return i.includes(e)}function s(e){return a.includes(e)}let u={position:"bottom",mode:"list",size:"medium"};function c(e){return void 0===e?u.position:o(e)?e:u.position}function f(e){return e&&l(e)?e:u.mode}function d(e){return e&&s(e)?e:u.size}},3627:function(e,t,r){r.d(t,{L:()=>n});let n={JoinByColumnValue:"Join by column value",MergeColumns:"Merge columns",MergeIndexedColumns:"Merge indexed columns",MergeSeries:"Merge series"}},12826:function(e,t,r){r.d(t,{T6:()=>eb,W5:()=>ec,x9:()=>ey,AC:()=>en,Fl:()=>ei,Se:()=>eo,px:()=>ed,GU:()=>eu,i$:()=>ep,j9:()=>em,fZ:()=>eg,Yf:()=>eh,KN:()=>es,w0:()=>er,oy:()=>ef,r_:()=>ea,CB:()=>el});var n,i,a,o,l,s,u,c,f,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function p(){if(l)return o;l=1;let e=[{key:"ZiB",factor:11805916207174113e5},{key:"ZB",factor:1e21},{key:"YiB",factor:12089258196146292e8},{key:"YB",factor:1e24},{key:"TiB",factor:0x10000000000},{key:"TB",factor:1e12},{key:"PiB",factor:0x4000000000000},{key:"PB",factor:1e15},{key:"MiB",factor:1048576},{key:"MB",factor:1e6},{key:"KiB",factor:1024},{key:"KB",factor:1e3},{key:"GiB",factor:0x40000000},{key:"GB",factor:1e9},{key:"EiB",factor:0x1000000000000000},{key:"EB",factor:1e18},{key:"B",factor:1}];function t(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}return o={unformat:function(r,n){let i,a=h(),o=a.currentDelimiters(),l=a.currentCurrency().symbol,s=a.currentOrdinal(),u=a.getZeroFormat(),c=a.currentAbbreviations();if("string"==typeof r)if(function(e,t){if(!(e.indexOf(":")&&":"!==t.thousands))return!1;let r=e.split(":");if(3!==r.length)return!1;let n=+r[0],i=+r[1],a=+r[2];return!isNaN(n)&&!isNaN(i)&&!isNaN(a)}(r,o)){let e,t,n;t=+(e=r.split(":"))[0],n=+e[1],i=+e[2]+60*n+3600*t}else i=function(r,n,i="",a,o,l,s){if(""!==r)return r===o?0:function r(n,i,a,o,l,s,u){if(!isNaN(+n))return+n;let c="",f=n.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(f!==n)return -1*r(f,i,a,o,l,s);for(let t=0;t<e.length;t++){let u=e[t];if((c=n.replace(RegExp(`([0-9 ])(${u.key})$`),"$1"))!==n)return r(c,i,a,o,l,s)*u.factor}if((c=n.replace("%",""))!==n)return r(c,i,a,o,l,s)/100;let d=parseFloat(n);if(isNaN(d))return;let p=o(d);if(p&&"."!==p&&(c=n.replace(RegExp(`${t(p)}$`),""))!==n)return r(c,i,a,o,l,s);let m={};Object.keys(s).forEach(e=>{m[s[e]]=e});let g=Object.keys(m).sort().reverse(),h=g.length;for(let e=0;e<h;e++){let t=g[e],u=m[t];if((c=n.replace(t,""))!==n){let e;switch(u){case"thousand":e=1e3;break;case"million":e=1e6;break;case"billion":e=1e9;break;case"trillion":e=1e12}return r(c,i,a,o,l,s)*e}}}(r.replace(i,"").replace(RegExp(`([0-9])${t(n.thousands)}([0-9])`,"g"),"$1$2").replace(n.decimal,"."),n,i,a,o,l)}(r,o,l,s,u,c);else{if("number"!=typeof r)return;i=r}if(void 0!==i)return i}}}function m(){if(u)return s;u=1;let e=p(),t=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,r={output:{type:"string",validValues:["currency","percent","byte","time","ordinal","number"]},base:{type:"string",validValues:["decimal","binary","general"],restriction:(e,t)=>"byte"===t.output,message:"`base` must be provided only when the output is `byte`",mandatory:e=>"byte"===e.output},characteristic:{type:"number",restriction:e=>e>=0,message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:["trillion","billion","million","thousand"]},average:"boolean",lowPrecision:{type:"boolean",restriction:(e,t)=>!0===t.average,message:"`lowPrecision` must be provided only when the option `average` is set"},currencyPosition:{type:"string",validValues:["prefix","infix","postfix"]},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:e=>e>=0,message:"value must be positive"},{restriction:(e,t)=>!t.exponential,message:"`totalLength` is incompatible with `exponential`"}]},mantissa:{type:"number",restriction:e=>e>=0,message:"value must be positive"},optionalMantissa:"boolean",trimMantissa:"boolean",roundingFunction:"function",optionalCharacteristic:"boolean",thousandSeparated:"boolean",spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",spaceSeparatedAbbreviation:"boolean",abbreviations:{type:"object",children:{thousand:"string",million:"string",billion:"string",trillion:"string"}},negative:{type:"string",validValues:["sign","parenthesis"]},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:(e,t)=>"percent"===t.output,message:"`prefixSymbol` can be provided only when the output is `percent`"}},n={languageTag:{type:"string",mandatory:!0,restriction:e=>e.match(t),message:"the language tag must follow the BCP 47 specification (see https://tools.ieft.org/html/bcp47)"},delimiters:{type:"object",children:{thousands:"string",decimal:"string",thousandsSize:"number"},mandatory:!0},abbreviations:{type:"object",children:{thousand:{type:"string",mandatory:!0},million:{type:"string",mandatory:!0},billion:{type:"string",mandatory:!0},trillion:{type:"string",mandatory:!0}},mandatory:!0},spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",ordinal:{type:"function",mandatory:!0},bytes:{type:"object",children:{binarySuffixes:"object",decimalSuffixes:"object"}},currency:{type:"object",children:{symbol:"string",position:"string",code:"string"},mandatory:!0},defaults:"format",ordinalFormat:"format",byteFormat:"format",percentageFormat:"format",currencyFormat:"format",timeDefaults:"format",formats:{type:"object",children:{fourDigits:{type:"format",mandatory:!0},fullWithTwoDecimals:{type:"format",mandatory:!0},fullWithTwoDecimalsNoCurrency:{type:"format",mandatory:!0},fullWithNoDecimals:{type:"format",mandatory:!0}}}};function i(t){return void 0!==e.unformat(t)}function a(e,t,n,i=!1){let o=Object.keys(e).map(i=>{if(!t[i])return console.error(`${n} Invalid key: ${i}`),!1;let o=e[i],l=t[i];if("string"==typeof l&&(l={type:l}),"format"===l.type){if(!a(o,r,`[Validate ${i}]`,!0))return!1}else if(typeof o!==l.type)return console.error(`${n} ${i} type mismatched: "${l.type}" expected, "${typeof o}" provided`),!1;if(l.restrictions&&l.restrictions.length){let t=l.restrictions.length;for(let r=0;r<t;r++){let{restriction:t,message:a}=l.restrictions[r];if(!t(o,e))return console.error(`${n} ${i} invalid value: ${a}`),!1}}return l.restriction&&!l.restriction(o,e)?(console.error(`${n} ${i} invalid value: ${l.message}`),!1):l.validValues&&-1===l.validValues.indexOf(o)?(console.error(`${n} ${i} invalid value: must be among ${JSON.stringify(l.validValues)}, "${o}" provided`),!1):(!l.children||!!a(o,l.children,`[Validate ${i}]`))&&!0});return i||o.push(...Object.keys(t).map(r=>{let i=t[r];if("string"==typeof i&&(i={type:i}),i.mandatory){let t=i.mandatory;if("function"==typeof t&&(t=t(e)),t&&void 0===e[r])return console.error(`${n} Missing mandatory key "${r}"`),!1}return!0})),o.reduce((e,t)=>e&&t,!0)}function o(e){return a(e,r,"[Validate format]")}return s={validate:function(e,t){let r=i(e),n=o(t);return r&&n},validateFormat:o,validateInput:i,validateLanguage:function(e){return a(e,n,"[Validate language]")}}}var g=function(e,t={}){var r,n,i,a,o,l;let s,u,c,f,d;if("string"!=typeof e)return e;n=e=(s=(r=e).match(/^{([^}]*)}/))?(t.prefix=s[1],r.slice(s[0].length)):r,function(e,t){if(-1!==e.indexOf("$")){t.output="currency";return}if(-1!==e.indexOf("%")){t.output="percent";return}if(-1!==e.indexOf("bd")){t.output="byte",t.base="general";return}if(-1!==e.indexOf("b")){t.output="byte",t.base="binary";return}if(-1!==e.indexOf("d")){t.output="byte",t.base="decimal";return}if(-1!==e.indexOf(":")){t.output="time";return}-1!==e.indexOf("o")&&(t.output="ordinal")}(e=(u=n.match(/{([^}]*)}$/))?(t.postfix=u[1],n.slice(0,-u[0].length)):n,t),(c=e.match(/[1-9]+[0-9]*/))&&(t.totalLength=+c[0]),(f=e.split(".")[0].match(/0+/))&&(t.characteristic=f[0].length),-1!==(i=e).indexOf(".")&&(t.optionalCharacteristic=-1===i.split(".")[0].indexOf("0")),-1!==e.indexOf("a")&&(t.average=!0),-1!==(a=e).indexOf("K")?t.forceAverage="thousand":-1!==a.indexOf("M")?t.forceAverage="million":-1!==a.indexOf("B")?t.forceAverage="billion":-1!==a.indexOf("T")&&(t.forceAverage="trillion");let p=e.split(".")[1];if(p){let e=p.match(/0+/);e&&(t.mantissa=e[0].length)}return(o=e).match(/\[\.]/)?t.optionalMantissa=!0:o.match(/\./)&&(t.optionalMantissa=!1),(d=e.split(".")[1])&&(t.trimMantissa=-1!==d.indexOf("[")),-1!==e.indexOf(",")&&(t.thousandSeparated=!0),-1!==e.indexOf(" ")&&(t.spaceSeparated=!0,t.spaceSeparatedCurrency=!0,(t.average||t.forceAverage)&&(t.spaceSeparatedAbbreviation=!0)),(l=e).match(/^\+?\([^)]*\)$/)&&(t.negative="parenthesis"),l.match(/^\+?-/)&&(t.negative="sign"),e.match(/^\+/)&&(t.forceSign=!0),t};function h(){let e;if(f)return c;f=1;let t=a?i:(a=1,i={languageTag:"en-US",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},spaceSeparated:!1,ordinal:function(e){let t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},bytes:{binarySuffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],decimalSuffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{thousandSeparated:!0,mantissa:2},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}}),r=m(),n={},o={},l=null,s={};function u(){return o[e]}return n.languages=()=>Object.assign({},o),n.currentLanguage=()=>e,n.currentBytes=()=>u().bytes||{},n.currentCurrency=()=>u().currency,n.currentAbbreviations=()=>u().abbreviations,n.currentDelimiters=()=>u().delimiters,n.currentOrdinal=()=>u().ordinal,n.currentDefaults=()=>Object.assign({},u().defaults,s),n.currentOrdinalDefaultFormat=()=>Object.assign({},n.currentDefaults(),u().ordinalFormat),n.currentByteDefaultFormat=()=>Object.assign({},n.currentDefaults(),u().byteFormat),n.currentPercentageDefaultFormat=()=>Object.assign({},n.currentDefaults(),u().percentageFormat),n.currentCurrencyDefaultFormat=()=>Object.assign({},n.currentDefaults(),u().currencyFormat),n.currentTimeDefaultFormat=()=>Object.assign({},n.currentDefaults(),u().timeFormat),n.setDefaults=e=>{e=g(e),r.validateFormat(e)&&(s=e)},n.getZeroFormat=()=>l,n.setZeroFormat=e=>l="string"==typeof e?e:null,n.hasZeroFormat=()=>null!==l,n.languageData=e=>{if(e){if(o[e])return o[e];throw Error(`Unknown tag "${e}"`)}return u()},n.registerLanguage=(t,n=!1)=>{if(!r.validateLanguage(t))throw Error("Invalid language data");o[t.languageTag]=t,n&&(e=t.languageTag)},n.setLanguage=(r,n=t.languageTag)=>{if(!o[r]){let t=r.split("-")[0],i=Object.keys(o).find(e=>e.split("-")[0]===t);return o[i]?void(e=i):void(e=n)}e=r},n.registerLanguage(t),e=t.languageTag,c=n}var b={exports:{}};(function(e){var t,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,i=Math.floor,a="[BigNumber Error] ",o=a+"Number primitive has more than 15 significant digits: ",l=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function s(e){var t=0|e;return e>0||e===t?t:t-1}function u(e){for(var t,r,n=1,i=e.length,a=e[0]+"";n<i;){for(r=14-(t=e[n++]+"").length;r--;t="0"+t);a+=t}for(i=a.length;48===a.charCodeAt(--i););return a.slice(0,i+1||1)}function c(e,t){var r,n,i=e.c,a=t.c,o=e.s,l=t.s,s=e.e,u=t.e;if(!o||!l)return null;if(r=i&&!i[0],n=a&&!a[0],r||n)return r?n?0:-l:o;if(o!=l)return o;if(r=o<0,n=s==u,!i||!a)return n?0:!i^r?1:-1;if(!n)return s>u^r?1:-1;for(o=0,l=(s=i.length)<(u=a.length)?s:u;o<l;o++)if(i[o]!=a[o])return i[o]>a[o]^r?1:-1;return s==u?0:s>u^r?1:-1}function f(e,t,r,n){if(e<t||e>r||e!==i(e))throw Error(a+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function d(e){var t=e.c.length-1;return s(e.e/14)==t&&e.c[t]%2!=0}function p(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function m(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}(t=function e(t){var g,h,b,y,v,x,w,A,$,B=j.prototype={constructor:j,toString:null,valueOf:null},S=new j(1),O=20,D=4,T=-7,N=21,M=-1e7,C=1e7,k=!1,F=1,E=0,I={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},L="0123456789abcdefghijklmnopqrstuvwxyz",R=!0;function j(e,t){var n,a,l,s,u,c,d,p,m=this;if(!(m instanceof j))return new j(e,t);if(null==t){if(e&&!0===e._isBigNumber){m.s=e.s,!e.c||e.e>C?m.c=m.e=null:e.e<M?m.c=[m.e=0]:(m.e=e.e,m.c=e.c.slice());return}if((c="number"==typeof e)&&0*e==0){if(m.s=1/e<0?(e=-e,-1):1,e===~~e){for(s=0,u=e;u>=10;u/=10,s++);s>C?m.c=m.e=null:(m.e=s,m.c=[e]);return}p=String(e)}else{if(!r.test(p=String(e)))return $(m,p,c);m.s=45==p.charCodeAt(0)?(p=p.slice(1),-1):1}(s=p.indexOf("."))>-1&&(p=p.replace(".","")),(u=p.search(/e/i))>0?(s<0&&(s=u),s+=+p.slice(u+1),p=p.substring(0,u)):s<0&&(s=p.length)}else{if(f(t,2,L.length,"Base"),10==t&&R)return z(m=new j(e),O+m.e+1,D);if(p=String(e),c="number"==typeof e){if(0*e!=0)return $(m,p,c,t);if(m.s=1/e<0?(p=p.slice(1),-1):1,j.DEBUG&&p.replace(/^0\.0*|\./,"").length>15)throw Error(o+e)}else m.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1;for(n=L.slice(0,t),s=u=0,d=p.length;u<d;u++)if(0>n.indexOf(a=p.charAt(u))){if("."==a){if(u>s){s=d;continue}}else if(!l&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){l=!0,u=-1,s=0;continue}return $(m,String(e),c,t)}c=!1,(s=(p=A(p,t,10,m.s)).indexOf("."))>-1?p=p.replace(".",""):s=p.length}for(u=0;48===p.charCodeAt(u);u++);for(d=p.length;48===p.charCodeAt(--d););if(p=p.slice(u,++d)){if(d-=u,c&&j.DEBUG&&d>15&&(e>0x1fffffffffffff||e!==i(e)))throw Error(o+m.s*e);if((s=s-u-1)>C)m.c=m.e=null;else if(s<M)m.c=[m.e=0];else{if(m.e=s,m.c=[],u=(s+1)%14,s<0&&(u+=14),u<d){for(u&&m.c.push(+p.slice(0,u)),d-=14;u<d;)m.c.push(+p.slice(u,u+=14));u=14-(p=p.slice(u)).length}else u-=d;for(;u--;p+="0");m.c.push(+p)}}else m.c=[m.e=0]}function U(e,t,r,n){var i,a,o,l,s;if(null==r?r=D:f(r,0,8),!e.c)return e.toString();if(i=e.c[0],o=e.e,null==t)s=u(e.c),s=1==n||2==n&&(o<=T||o>=N)?p(s,o):m(s,o,"0");else if(a=(e=z(new j(e),t,r)).e,l=(s=u(e.c)).length,1==n||2==n&&(t<=a||a<=T)){for(;l<t;s+="0",l++);s=p(s,a)}else if(t-=o,s=m(s,a,"0"),a+1>l){if(--t>0)for(s+=".";t--;s+="0");}else if((t+=a-l)>0)for(a+1==l&&(s+=".");t--;s+="0");return e.s<0&&i?"-"+s:s}function P(e,t){for(var r,n,i=1,a=new j(e[0]);i<e.length;i++)(n=new j(e[i])).s&&(r=c(a,n))!==t&&(0!==r||a.s!==t)||(a=n);return a}function _(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+14*r-1)>C?e.c=e.e=null:r<M?e.c=[e.e=0]:(e.e=r,e.c=t),e}function z(e,t,r,a){var o,s,u,c,f,d,p,m=e.c;if(m){e:{for(o=1,c=m[0];c>=10;c/=10,o++);if((s=t-o)<0)s+=14,u=t,p=i((f=m[d=0])/l[o-u-1]%10);else if((d=n((s+1)/14))>=m.length)if(a){for(;m.length<=d;m.push(0));f=p=0,o=1,s%=14,u=s-14+1}else break e;else{for(o=1,f=c=m[d];c>=10;c/=10,o++);s%=14,p=(u=s-14+o)<0?0:i(f/l[o-u-1]%10)}if(a=a||t<0||null!=m[d+1]||(u<0?f:f%l[o-u-1]),a=r<4?(p||a)&&(0==r||r==(e.s<0?3:2)):p>5||5==p&&(4==r||a||6==r&&(s>0?u>0?f/l[o-u]:0:m[d-1])%10&1||r==(e.s<0?8:7)),t<1||!m[0])return m.length=0,a?(t-=e.e+1,m[0]=l[(14-t%14)%14],e.e=-t||0):m[0]=e.e=0,e;if(0==s?(m.length=d,c=1,d--):(m.length=d+1,c=l[14-s],m[d]=u>0?i(f/l[o-u]%l[u])*c:0),a)for(;;)if(0==d){for(s=1,u=m[0];u>=10;u/=10,s++);for(u=m[0]+=c,c=1;u>=10;u/=10,c++);s!=c&&(e.e++,1e14==m[0]&&(m[0]=1));break}else{if(m[d]+=c,1e14!=m[d])break;m[d--]=0,c=1}for(s=m.length;0===m[--s];m.pop());}e.e>C?e.c=e.e=null:e.e<M&&(e.c=[e.e=0])}return e}function G(e){var t,r=e.e;return null===r?e.toString():(t=u(e.c),t=r<=T||r>=N?p(t,r):m(t,r,"0"),e.s<0?"-"+t:t)}return j.clone=e,j.ROUND_UP=0,j.ROUND_DOWN=1,j.ROUND_CEIL=2,j.ROUND_FLOOR=3,j.ROUND_HALF_UP=4,j.ROUND_HALF_DOWN=5,j.ROUND_HALF_EVEN=6,j.ROUND_HALF_CEIL=7,j.ROUND_HALF_FLOOR=8,j.EUCLID=9,j.config=j.set=function(e){var t,r;if(null!=e)if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(f(r=e[t],0,1e9,t),O=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(f(r=e[t],0,8,t),D=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(f(r[0],-1e9,0,t),f(r[1],0,1e9,t),T=r[0],N=r[1]):(f(r,-1e9,1e9,t),T=-(N=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)f(r[0],-1e9,-1,t),f(r[1],1,1e9,t),M=r[0],C=r[1];else if(f(r,-1e9,1e9,t),r)M=-(C=r<0?-r:r);else throw Error(a+t+" cannot be zero: "+r);if(e.hasOwnProperty(t="CRYPTO"))if(!!(r=e[t])===r)if(r)if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))k=r;else throw k=!r,Error(a+"crypto unavailable");else k=r;else throw Error(a+t+" not true or false: "+r);if(e.hasOwnProperty(t="MODULO_MODE")&&(f(r=e[t],0,9,t),F=r),e.hasOwnProperty(t="POW_PRECISION")&&(f(r=e[t],0,1e9,t),E=r),e.hasOwnProperty(t="FORMAT"))if("object"==typeof(r=e[t]))I=r;else throw Error(a+t+" not an object: "+r);if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(a+t+" invalid: "+r);R="0123456789"==r.slice(0,10),L=r}}else throw Error(a+"Object expected: "+e);return{DECIMAL_PLACES:O,ROUNDING_MODE:D,EXPONENTIAL_AT:[T,N],RANGE:[M,C],CRYPTO:k,MODULO_MODE:F,POW_PRECISION:E,FORMAT:I,ALPHABET:L}},j.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!j.DEBUG)return!0;var t,r,n=e.c,o=e.e,l=e.s;e:if("[object Array]"==({}).toString.call(n)){if((1===l||-1===l)&&o>=-1e9&&o<=1e9&&o===i(o)){if(0===n[0]){if(0===o&&1===n.length)return!0;break e}if((t=(o+1)%14)<1&&(t+=14),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=1e14||r!==i(r))break e;if(0!==r)return!0}}}else if(null===n&&null===o&&(null===l||1===l||-1===l))return!0;throw Error(a+"Invalid BigNumber: "+e)},j.maximum=j.max=function(){return P(arguments,-1)},j.minimum=j.min=function(){return P(arguments,1)},g=0x20000000000000*Math.random()&2097151?function(){return i(0x20000000000000*Math.random())}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)},j.random=function(e){var t,r,o,s,u,c=0,d=[],p=new j(S);if(null==e?e=O:f(e,0,1e9),s=n(e/14),k)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(s*=2));c<s;)(u=131072*t[c]+(t[c+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(d.push(u%1e14),c+=2);c=s/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(s*=7);c<s;)(u=(31&t[c])*0x1000000000000+0x10000000000*t[c+1]+0x100000000*t[c+2]+0x1000000*t[c+3]+(t[c+4]<<16)+(t[c+5]<<8)+t[c+6])>=9e15?crypto.randomBytes(7).copy(t,c):(d.push(u%1e14),c+=7);c=s/7}else throw k=!1,Error(a+"crypto unavailable");if(!k)for(;c<s;)(u=g())<9e15&&(d[c++]=u%1e14);for(s=d[--c],e%=14,s&&e&&(u=l[14-e],d[c]=i(s/u)*u);0===d[c];d.pop(),c--);if(c<0)d=[o=0];else{for(o=-1;0===d[0];d.splice(0,1),o-=14);for(c=1,u=d[0];u>=10;u/=10,c++);c<14&&(o-=14-c)}return p.e=o,p.c=d,p},j.sum=function(){for(var e=1,t=arguments,r=new j(t[0]);e<t.length;)r=r.plus(t[e++]);return r},A=function(){var e="0123456789";function t(e,t,r,n){for(var i,a,o=[0],l=0,s=e.length;l<s;){for(a=o.length;a--;o[a]*=t);for(o[0]+=n.indexOf(e.charAt(l++)),i=0;i<o.length;i++)o[i]>r-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/r|0,o[i]%=r)}return o.reverse()}return function(r,n,i,a,o){var l,s,c,f,d,p,g,h,b=r.indexOf("."),y=O,v=D;for(b>=0&&(f=E,E=0,r=r.replace(".",""),p=(h=new j(n)).pow(r.length-b),E=f,h.c=t(m(u(p.c),p.e,"0"),10,i,e),h.e=h.c.length),c=f=(g=t(r,n,i,o?(l=L,e):(l=e,L))).length;0==g[--f];g.pop());if(!g[0])return l.charAt(0);if(b<0?--c:(p.c=g,p.e=c,p.s=a,g=(p=w(p,h,y,v,i)).c,d=p.r,c=p.e),b=g[s=c+y+1],f=i/2,d=d||s<0||null!=g[s+1],d=v<4?(null!=b||d)&&(0==v||v==(p.s<0?3:2)):b>f||b==f&&(4==v||d||6==v&&1&g[s-1]||v==(p.s<0?8:7)),s<1||!g[0])r=d?m(l.charAt(1),-y,l.charAt(0)):l.charAt(0);else{if(g.length=s,d)for(--i;++g[--s]>i;)g[s]=0,s||(++c,g=[1].concat(g));for(f=g.length;!g[--f];);for(b=0,r="";b<=f;r+=l.charAt(g[b++]));r=m(r,c,l.charAt(0))}return r}}(),w=function(){function e(e,t,r){var n,i,a,o,l=0,s=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();s--;)n=c*(a=e[s]%1e7)+(o=e[s]/1e7|0)*u,l=((i=u*a+n%1e7*1e7+l)/r|0)+(n/1e7|0)+c*o,e[s]=i%r;return l&&(e=[l].concat(e)),e}function t(e,t,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=+(e[r]<t[r]),e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,a,o,l,u){var c,f,d,p,m,g,h,b,y,v,x,w,A,$,B,S,O,D=n.s==a.s?1:-1,T=n.c,N=a.c;if(!T||!T[0]||!N||!N[0])return new j(!n.s||!a.s||(T?N&&T[0]==N[0]:!N)?NaN:T&&0==T[0]||!N?0*D:D/0);for(y=(b=new j(D)).c=[],D=o+(f=n.e-a.e)+1,u||(u=1e14,f=s(n.e/14)-s(a.e/14),D=D/14|0),d=0;N[d]==(T[d]||0);d++);if(N[d]>(T[d]||0)&&f--,D<0)y.push(1),p=!0;else{for($=T.length,S=N.length,d=0,D+=2,(m=i(u/(N[0]+1)))>1&&(N=e(N,m,u),T=e(T,m,u),S=N.length,$=T.length),A=S,x=(v=T.slice(0,S)).length;x<S;v[x++]=0);O=[0].concat(O=N.slice()),B=N[0],N[1]>=u/2&&B++;do{if(m=0,(c=t(N,v,S,x))<0){if(w=v[0],S!=x&&(w=w*u+(v[1]||0)),(m=i(w/B))>1)for(m>=u&&(m=u-1),h=(g=e(N,m,u)).length,x=v.length;1==t(g,v,h,x);)m--,r(g,S<h?O:N,h,u),h=g.length,c=1;else 0==m&&(c=m=1),h=(g=N.slice()).length;if(h<x&&(g=[0].concat(g)),r(v,g,x,u),x=v.length,-1==c)for(;1>t(N,v,S,x);)m++,r(v,S<x?O:N,x,u),x=v.length}else 0===c&&(m++,v=[0]);y[d++]=m,v[0]?v[x++]=T[A]||0:(v=[T[A]],x=1)}while((A++<$||null!=v[0])&&D--);p=null!=v[0],y[0]||y.splice(0,1)}if(1e14==u){for(d=1,D=y[0];D>=10;D/=10,d++);z(b,o+(b.e=d+14*f-1)+1,l,p)}else b.e=f,b.r=+p;return b}}(),h=/^(-?)0([xbo])(?=\w[\w.]*$)/i,b=/^([^.]+)\.$/,y=/^\.([^.]+)$/,v=/^-?(Infinity|NaN)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,$=function(e,t,r,n){var i,o=r?t:t.replace(x,"");if(v.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(h,function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t}),n&&(i=n,o=o.replace(b,"$1").replace(y,"0.$1")),t!=o))return new j(o,i);if(j.DEBUG)throw Error(a+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},B.absoluteValue=B.abs=function(){var e=new j(this);return e.s<0&&(e.s=1),e},B.comparedTo=function(e,t){return c(this,new j(e,t))},B.decimalPlaces=B.dp=function(e,t){var r,n,i;if(null!=e)return f(e,0,1e9),null==t?t=D:f(t,0,8),z(new j(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-s(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},B.dividedBy=B.div=function(e,t){return w(this,new j(e,t),O,D)},B.dividedToIntegerBy=B.idiv=function(e,t){return w(this,new j(e,t),0,1)},B.exponentiatedBy=B.pow=function(e,t){var r,o,l,s,u,c,f,p,m,g=this;if((e=new j(e)).c&&!e.isInteger())throw Error(a+"Exponent not an integer: "+G(e));if(null!=t&&(t=new j(t)),c=e.e>14,!g.c||!g.c[0]||1==g.c[0]&&!g.e&&1==g.c.length||!e.c||!e.c[0])return m=new j(Math.pow(+G(g),c?e.s*(2-d(e)):+G(e))),t?m.mod(t):m;if(f=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new j(NaN);(o=!f&&g.isInteger()&&t.isInteger())&&(g=g.mod(t))}else{if(e.e>9&&(g.e>0||g.e<-1||(0==g.e?g.c[0]>1||c&&g.c[1]>=24e7:g.c[0]<8e13||c&&g.c[0]<=9999975e7)))return s=g.s<0&&d(e)?-0:0,g.e>-1&&(s=1/s),new j(f?1/s:s);E&&(s=n(E/14+2))}for(c?(r=new j(.5),f&&(e.s=1),p=d(e)):p=(l=Math.abs(+G(e)))%2,m=new j(S);;){if(p){if(!(m=m.times(g)).c)break;s?m.c.length>s&&(m.c.length=s):o&&(m=m.mod(t))}if(l){if(0===(l=i(l/2)))break;p=l%2}else if(z(e=e.times(r),e.e+1,1),e.e>14)p=d(e);else{if(0==(l=+G(e)))break;p=l%2}g=g.times(g),s?g.c&&g.c.length>s&&(g.c.length=s):o&&(g=g.mod(t))}return o?m:(f&&(m=S.div(m)),t?m.mod(t):s?z(m,E,D,u):m)},B.integerValue=function(e){var t=new j(this);return null==e?e=D:f(e,0,8),z(t,t.e+1,e)},B.isEqualTo=B.eq=function(e,t){return 0===c(this,new j(e,t))},B.isFinite=function(){return!!this.c},B.isGreaterThan=B.gt=function(e,t){return c(this,new j(e,t))>0},B.isGreaterThanOrEqualTo=B.gte=function(e,t){return 1===(t=c(this,new j(e,t)))||0===t},B.isInteger=function(){return!!this.c&&s(this.e/14)>this.c.length-2},B.isLessThan=B.lt=function(e,t){return 0>c(this,new j(e,t))},B.isLessThanOrEqualTo=B.lte=function(e,t){return -1===(t=c(this,new j(e,t)))||0===t},B.isNaN=function(){return!this.s},B.isNegative=function(){return this.s<0},B.isPositive=function(){return this.s>0},B.isZero=function(){return!!this.c&&0==this.c[0]},B.minus=function(e,t){var r,n,i,a,o=this.s;if(t=(e=new j(e,t)).s,!o||!t)return new j(NaN);if(o!=t)return e.s=-t,this.plus(e);var l=this.e/14,u=e.e/14,c=this.c,f=e.c;if(!l||!u){if(!c||!f)return c?(e.s=-t,e):new j(f?this:NaN);if(!c[0]||!f[0])return f[0]?(e.s=-t,e):new j(c[0]?this:3==D?-0:0)}if(l=s(l),u=s(u),c=c.slice(),o=l-u){for((a=o<0)?(o=-o,i=c):(u=l,i=f),i.reverse(),t=o;t--;i.push(0));i.reverse()}else for(n=(a=(o=c.length)<(t=f.length))?o:t,o=t=0;t<n;t++)if(c[t]!=f[t]){a=c[t]<f[t];break}if(a&&(i=c,c=f,f=i,e.s=-e.s),(t=(n=f.length)-(r=c.length))>0)for(;t--;c[r++]=0);for(t=1e14-1;n>o;){if(c[--n]<f[n]){for(r=n;r&&!c[--r];c[r]=t);--c[r],c[n]+=1e14}c[n]-=f[n]}for(;0==c[0];c.splice(0,1),--u);return c[0]?_(e,c,u):(e.s=3==D?-1:1,e.c=[e.e=0],e)},B.modulo=B.mod=function(e,t){var r,n;return(e=new j(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==F?(n=e.s,e.s=1,r=w(this,e,0,3),e.s=n,r.s*=n):r=w(this,e,0,F),(e=this.minus(r.times(e))).c[0]||1!=F||(e.s=this.s),e):new j(this):new j(NaN)},B.multipliedBy=B.times=function(e,t){var r,n,i,a,o,l,u,c,f,d,p,m,g,h=this.c,b=(e=new j(e,t)).c;if(!h||!b||!h[0]||!b[0])return this.s&&e.s&&(!h||h[0]||b)&&(!b||b[0]||h)?(e.s*=this.s,h&&b?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(n=s(this.e/14)+s(e.e/14),e.s*=this.s,(u=h.length)<(d=b.length)&&(g=h,h=b,b=g,i=u,u=d,d=i),i=u+d,g=[];i--;g.push(0));for(i=d;--i>=0;){for(r=0,p=b[i]%1e7,m=b[i]/1e7|0,a=i+(o=u);a>i;)l=m*(c=h[--o]%1e7)+(f=h[o]/1e7|0)*p,r=((c=p*c+l%1e7*1e7+g[a]+r)/1e14|0)+(l/1e7|0)+m*f,g[a--]=c%1e14;g[a]=r}return r?++n:g.splice(0,1),_(e,g,n)},B.negated=function(){var e=new j(this);return e.s=-e.s||null,e},B.plus=function(e,t){var r,n=this.s;if(t=(e=new j(e,t)).s,!n||!t)return new j(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,a=e.e/14,o=this.c,l=e.c;if(!i||!a){if(!o||!l)return new j(n/0);if(!o[0]||!l[0])return l[0]?e:new j(o[0]?this:0*n)}if(i=s(i),a=s(a),o=o.slice(),n=i-a){for(n>0?(a=i,r=l):(n=-n,r=o),r.reverse();n--;r.push(0));r.reverse()}for((n=o.length)-(t=l.length)<0&&(r=l,l=o,o=r,t=n),n=0;t;)n=(o[--t]=o[t]+l[t]+n)/1e14|0,o[t]=1e14===o[t]?0:o[t]%1e14;return n&&(o=[n].concat(o),++a),_(e,o,a)},B.precision=B.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return f(e,1,1e9),null==t?t=D:f(t,0,8),z(new j(this),e,t);if(!(r=this.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&this.e+1>n&&(n=this.e+1),n},B.shiftedBy=function(e){return f(e,-0x1fffffffffffff,0x1fffffffffffff),this.times("1e"+e)},B.squareRoot=B.sqrt=function(){var e,t,r,n,i,a=this.c,o=this.s,l=this.e,c=O+4,f=new j("0.5");if(1!==o||!a||!a[0])return new j(!o||o<0&&(!a||a[0])?NaN:a?this:1/0);if(0==(o=Math.sqrt(+G(this)))||o==1/0?(((t=u(a)).length+l)%2==0&&(t+="0"),o=Math.sqrt(+t),l=s((l+1)/2)-(l<0||l%2),r=new j(t=o==1/0?"5e"+l:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+l)):r=new j(o+""),r.c[0]){for((o=(l=r.e)+c)<3&&(o=0);;)if(i=r,r=f.times(i.plus(w(this,i,c,1))),u(i.c).slice(0,o)===(t=u(r.c)).slice(0,o)){if(r.e<l&&--o,"9999"!=(t=t.slice(o-3,o+1))&&(n||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(z(r,r.e+O+2,1),e=!r.times(r).eq(this));break}if(!n&&(z(i,i.e+O+2,0),i.times(i).eq(this))){r=i;break}c+=4,o+=4,n=1}}return z(r,r.e+O+1,D,e)},B.toExponential=function(e,t){return null!=e&&(f(e,0,1e9),e++),U(this,e,t,1)},B.toFixed=function(e,t){return null!=e&&(f(e,0,1e9),e=e+this.e+1),U(this,e,t)},B.toFormat=function(e,t,r){var n;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=I;else if("object"!=typeof r)throw Error(a+"Argument not an object: "+r);if(n=this.toFixed(e,t),this.c){var i,o=n.split("."),l=+r.groupSize,s=+r.secondaryGroupSize,u=r.groupSeparator||"",c=o[0],f=o[1],d=this.s<0,p=d?c.slice(1):c,m=p.length;if(s&&(i=l,l=s,s=i,m-=i),l>0&&m>0){for(i=m%l||l,c=p.substr(0,i);i<m;i+=l)c+=u+p.substr(i,l);s>0&&(c+=u+p.slice(i)),d&&(c="-"+c)}n=f?c+(r.decimalSeparator||"")+((s=+r.fractionGroupSize)?f.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):f):c}return(r.prefix||"")+n+(r.suffix||"")},B.toFraction=function(e){var t,r,n,i,o,s,c,f,d,p,m,g,h=this.c;if(null!=e&&(!(c=new j(e)).isInteger()&&(c.c||1!==c.s)||c.lt(S)))throw Error(a+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+G(c));if(!h)return new j(this);for(t=new j(S),d=r=new j(S),n=f=new j(S),g=u(h),o=t.e=g.length-this.e-1,t.c[0]=l[(s=o%14)<0?14+s:s],e=!e||c.comparedTo(t)>0?o>0?t:d:c,s=C,C=1/0,c=new j(g),f.c[0]=0;p=w(c,t,0,1),1!=(i=r.plus(p.times(n))).comparedTo(e);)r=n,n=i,d=f.plus(p.times(i=d)),f=i,t=c.minus(p.times(i=t)),c=i;return i=w(e.minus(r),n,0,1),f=f.plus(i.times(d)),r=r.plus(i.times(n)),f.s=d.s=this.s,o*=2,m=1>w(d,n,o,D).minus(this).abs().comparedTo(w(f,r,o,D).minus(this).abs())?[d,n]:[f,r],C=s,m},B.toNumber=function(){return+G(this)},B.toPrecision=function(e,t){return null!=e&&f(e,1,1e9),U(this,e,t,2)},B.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=T||i>=N?p(u(r.c),i):m(u(r.c),i,"0"):10===e&&R?t=m(u((r=z(new j(r),O+i+1,D)).c),r.e,"0"):(f(e,2,L.length,"Base"),t=A(m(u(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},B.valueOf=B.toJSON=function(){return G(this)},B._isBigNumber=!0,null!=t&&j.set(t),j}()).default=t.BigNumber=t,b.exports?b.exports=t:(e||(e="undefined"!=typeof self&&self?self:window),e.BigNumber=t)})(d);var y=b.exports;let v=h(),x=m(),w={trillion:1e12,billion:1e9,million:1e6,thousand:1e3},A={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1,roundingFunction:Math.round,spaceSeparatedAbbreviation:!1},{binarySuffixes:$,decimalSuffixes:B}=v.currentBytes(),S={scale:1024,suffixes:B,marker:"bd"},O={scale:1024,suffixes:$,marker:"b"},D={scale:1e3,suffixes:B,marker:"d"};function T(e,t,r){let n=t[0],i=Math.abs(e);if(i>=r){for(let a=1;a<t.length;++a){let o=Math.pow(r,a),l=Math.pow(r,a+1);if(i>=o&&i<l){n=t[a],e/=o;break}}n===t[0]&&(e/=Math.pow(r,t.length-1),n=t[t.length-1])}return{value:e,suffix:n}}function N(e){let t="";for(let r=0;r<e;r++)t+="0";return t}function M({instance:e,providedFormat:t,state:r=v,decimalSeparator:n,defaults:i=r.currentDefaults()}){var a,o,l,s,u;let c,f,d,p,m,g,h,b=e._value;if(0===b&&r.hasZeroFormat())return r.getZeroFormat();if(!isFinite(b))return b.toString();let x=Object.assign({},A,i,t),$=x.totalLength,B=$?0:x.characteristic,S=x.optionalCharacteristic,O=x.forceAverage,D=x.lowPrecision,T=!!$||!!O||x.average,M=$?-1:T&&void 0===t.mantissa?0:x.mantissa,C=!$&&(void 0===t.optionalMantissa?-1===M:x.optionalMantissa),k=x.trimMantissa,F=x.thousandSeparated,E=x.spaceSeparated,I=x.negative,L=x.forceSign,R=x.exponential,j=x.roundingFunction,U="";if(T){let e=function({value:e,forceAverage:t,lowPrecision:r=!0,abbreviations:n,spaceSeparated:i=!1,totalLength:a=0,roundingFunction:o=Math.round}){let l="",s=Math.abs(e),u=-1;if(t&&n[t]&&w[t]?(l=n[t],e/=w[t]):s>=w.trillion||r&&1===o(s/w.trillion)?(l=n.trillion,e/=w.trillion):s<w.trillion&&s>=w.billion||r&&1===o(s/w.billion)?(l=n.billion,e/=w.billion):s<w.billion&&s>=w.million||r&&1===o(s/w.million)?(l=n.million,e/=w.million):(s<w.million&&s>=w.thousand||r&&1===o(s/w.thousand))&&(l=n.thousand,e/=w.thousand),l&&(l=(i?" ":"")+l),a){let t=e<0,r=e.toString().split(".")[0];u=Math.max(a-(t?r.length-1:r.length),0)}return{value:e,abbreviation:l,mantissaPrecision:u}}({value:b,forceAverage:O,lowPrecision:D,abbreviations:r.currentAbbreviations(),spaceSeparated:E,roundingFunction:j,totalLength:$});b=e.value,U+=e.abbreviation,$&&(M=e.mantissaPrecision)}if(R){let e=function({value:e,characteristicPrecision:t}){let[r,n]=e.toExponential().split("e"),i=+r;return t&&1<t&&(i*=Math.pow(10,t-1),n-=t-1,n=n>=0?`+${n}`:n),{value:i,abbreviation:`e${n}`}}({value:b,characteristicPrecision:B});b=e.value,U=e.abbreviation+U}let P=function(e,t,r,n,i,a){if(-1===n)return e;let o=function(e,t,r=Math.round){return -1!==e.toString().indexOf("e")?function(e,t){let r=e.toString(),[n,i]=r.split("e"),[a,o=""]=n.split(".");if(+i>0)r=a+o+N(i-o.length);else{let e=".";e=0>+a?`-0${e}`:`0${e}`;let n=(N(-i-1)+Math.abs(a)+o).substr(0,t);n.length<t&&(n+=N(t-n.length)),r=e+n}return+i>0&&t>0&&(r+=`.${N(t)}`),r}(e,t):new y(r(+`${e}e+${t}`)/Math.pow(10,t)).toFixed(t)}(t,n,a),[l,s=""]=o.toString().split(".");if(s.match(/^0+$/)&&(r||i))return l;let u=s.match(/0+$/);return i&&u?`${l}.${s.toString().slice(0,u.index)}`:o.toString()}(b.toString(),b,C,M,k,j);return a=P=function(e,t,r,n){let i=e,[a,o]=i.toString().split(".");if(a.match(/^-?0$/)&&r)return o?`${a.replace("0","")}.${o}`:a.replace("0","");let l=t<0&&0===a.indexOf("-");if(l&&(a=a.slice(1),i=i.slice(1)),a.length<n){let e=n-a.length;for(let t=0;t<e;t++)i=`0${i}`}return l&&(i=`-${i}`),i.toString()}(P,b,S,B),o=b,l=n,f=(c=r.currentDelimiters()).thousands,l=l||c.decimal,d=c.thousandsSize||3,m=(p=a.toString()).split(".")[0],g=p.split(".")[1],h=o<0&&0===m.indexOf("-"),F&&(h&&(m=m.slice(1)),(function(e,t){let r=[],n=0;for(let i=e;i>0;i--)n===t&&(r.unshift(i),n=0),n++;return r})(m.length,d).forEach((e,t)=>{m=m.slice(0,e+t)+f+m.slice(e+t)}),h&&(m=`-${m}`)),P=p=g?m+l+g:m,(T||R)&&(P+=U),(L||b<0)&&(s=P,P=0===(u=b)?s:0==+s?s.replace("-",""):u>0?`+${s}`:"sign"===I?s:`(${s.replace("-","")})`),P}function C(e,t){if(!e)return t;let r=Object.keys(e);return 1===r.length&&"output"===r[0]?t:e}function k(e,t,r){let n=new y(e._value),i=t;return r.isNumbro(t)&&(i=t._value),i=new y(i),e._value=n.minus(i).toNumber(),e}let F=h(),E=m(),I={loadLanguagesInNode:e=>{e.forEach(e=>{let t;try{t=function(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(`../languages/${e}`)}catch(t){console.error(`Unable to load "${e}". No matching language file found.`)}t&&_.registerLanguage(t)})}},L=p(),R={format:(...e)=>(function(e,t={},r){if("string"==typeof t&&(t=g(t)),!x.validateFormat(t))return"ERROR: invalid format";let n=t.prefix||"",i=t.postfix||"",a=function(e,t,r){var n,i,a;switch(t.output){case"currency":let o,l,s,u,c,f,d,p,m,g;return n=t=C(t,v.currentCurrencyDefaultFormat()),o=v.currentCurrency(),s=Object.assign({},A,l=Object.assign({},n)),c="",f=!!s.totalLength||!!s.forceAverage||s.average,d=l.currencyPosition||o.position,p=l.currencySymbol||o.symbol,m=void 0!==s.spaceSeparatedCurrency?s.spaceSeparatedCurrency:s.spaceSeparated,void 0===l.lowPrecision&&(l.lowPrecision=!1),m&&(c=" "),"infix"===d&&(u=c+p+c),g=M({instance:e,providedFormat:l,state:v,decimalSeparator:u}),"prefix"===d&&(g=e._value<0&&"sign"===s.negative?`-${c}${p}${g.slice(1)}`:e._value>0&&s.forceSign?`+${c}${p}${g.slice(1)}`:p+c+g),d&&"postfix"!==d||(g=g+(c=!s.spaceSeparatedAbbreviation&&f?"":c)+p),g;case"percent":let h,b,y;return i=t=C(t,v.currentPercentageDefaultFormat()),h=i.prefixSymbol,b=M({instance:r(100*e._value),providedFormat:i,state:v}),y=Object.assign({},A,i),h?`%${y.spaceSeparated?" ":""}${b}`:`${b}${y.spaceSeparated?" ":""}%`;case"byte":return function(e,t,r,n){let i=t.base||"binary",a=Object.assign({},A,t),{binarySuffixes:o,decimalSuffixes:l}=r.currentBytes(),s={general:{scale:1024,suffixes:l||B,marker:"bd"},binary:{scale:1024,suffixes:o||$,marker:"b"},decimal:{scale:1e3,suffixes:l||B,marker:"d"}}[i],{value:u,suffix:c}=T(e._value,s.suffixes,s.scale),f=M({instance:n(u),providedFormat:t,state:r,defaults:r.currentByteDefaultFormat()});return`${f}${a.spaceSeparated?" ":""}${c}`}(e,t=C(t,v.currentByteDefaultFormat()),v,r);case"time":let x,w,S;return t=C(t,v.currentTimeDefaultFormat()),x=Math.floor(e._value/60/60),w=Math.floor((e._value-60*x*60)/60),S=Math.round(e._value-60*x*60-60*w),`${x}:${w<10?"0":""}${w}:${S<10?"0":""}${S}`;case"ordinal":let O,D,N,k;return a=t=C(t,v.currentOrdinalDefaultFormat()),O=v.currentOrdinal(),D=Object.assign({},A,a),N=M({instance:e,providedFormat:a,state:v}),k=O(e._value),`${N}${D.spaceSeparated?" ":""}${k}`;default:return M({instance:e,providedFormat:t,numbro:r})}}(e,t,r);return(a=n+a)+i})(...e,_),getByteUnit:(...e)=>(function(e){return T(e._value,S.suffixes,S.scale).suffix})(...e,_),getBinaryByteUnit:(...e)=>(function(e){return T(e._value,O.suffixes,O.scale).suffix})(...e,_),getDecimalByteUnit:(...e)=>(function(e){return T(e._value,D.suffixes,D.scale).suffix})(...e,_),formatOrDefault:C},j={add:(e,t)=>{let r,n;return r=new y(e._value),n=t,_.isNumbro(t)&&(n=t._value),n=new y(n),e._value=r.plus(n).toNumber(),e},subtract:(e,t)=>k(e,t,_),multiply:(e,t)=>{let r,n;return r=new y(e._value),n=t,_.isNumbro(t)&&(n=t._value),n=new y(n),e._value=r.times(n).toNumber(),e},divide:(e,t)=>{let r,n;return r=new y(e._value),n=t,_.isNumbro(t)&&(n=t._value),n=new y(n),e._value=r.dividedBy(n).toNumber(),e},set:(e,t)=>{let r;return r=t,_.isNumbro(t)&&(r=t._value),e._value=r,e},difference:(e,t)=>{let r;return k(r=_(e._value),t,_),Math.abs(r._value)},BigNumber:y};class U{constructor(e){this._value=e}clone(){return _(this._value)}format(e={}){return R.format(this,e)}formatCurrency(e){return"string"==typeof e&&(e=g(e)),(e=R.formatOrDefault(e,F.currentCurrencyDefaultFormat())).output="currency",R.format(this,e)}formatTime(e={}){return e.output="time",R.format(this,e)}binaryByteUnits(){return R.getBinaryByteUnit(this)}decimalByteUnits(){return R.getDecimalByteUnit(this)}byteUnits(){return R.getByteUnit(this)}difference(e){return j.difference(this,e)}add(e){return j.add(this,e)}subtract(e){return j.subtract(this,e)}multiply(e){return j.multiply(this,e)}divide(e){return j.divide(this,e)}set(e){return j.set(this,P(e))}value(){return this._value}valueOf(){return this._value}}function P(e){let t=e;return _.isNumbro(e)?t=e._value:"string"==typeof e?t=_.unformat(e):isNaN(e)&&(t=NaN),t}function _(e){return new U(P(e))}_.version="2.5.0",_.isNumbro=function(e){return e instanceof U},_.language=F.currentLanguage,_.registerLanguage=F.registerLanguage,_.setLanguage=F.setLanguage,_.languages=F.languages,_.languageData=F.languageData,_.zeroFormat=F.setZeroFormat,_.defaultFormat=F.currentDefaults,_.setDefaults=F.setDefaults,_.defaultCurrencyFormat=F.currentCurrencyDefaultFormat,_.validate=E.validate,_.loadLanguagesInNode=I.loadLanguagesInNode,_.unformat=L.unformat,_.BigNumber=j.BigNumber;var z=_&&_.__esModule&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,G=r(71065);function V(e,{unit:t="bytes",shortValues:r,decimalPlaces:n}){let i="decbytes"===t;if(!(0,G.jb)(r)||Math.abs(e)<(i?1e3:1024)){let t={style:"unit",unit:"byte",unitDisplay:"long",useGrouping:!0};return(0,G.IU)(n)?(t.minimumFractionDigits=(0,G.To)(n),t.maximumFractionDigits=(0,G.To)(n)):(0,G.jb)(r)&&(t.maximumSignificantDigits=3),Intl.NumberFormat("en-US",t).format(e)}return z(e).format({output:"byte",base:i?"decimal":"binary",spaceSeparated:!0,mantissa:(0,G.IU)(n)?n:2,trimMantissa:!(0,G.IU)(n),optionalMantissa:!(0,G.IU)(n)})}function W(e,{unit:t="bits",shortValues:r,decimalPlaces:n}){let i="decbits"===t;if(!(0,G.jb)(r)||Math.abs(e)<(i?1e3:1024)){let t={style:"decimal",useGrouping:!0};return(0,G.IU)(n)?(t.minimumFractionDigits=(0,G.To)(n),t.maximumFractionDigits=(0,G.To)(n)):(0,G.jb)(r)&&(t.maximumSignificantDigits=3),Intl.NumberFormat("en-US",t).format(e)+" bits"}return z(e).format({output:"byte",base:i?"decimal":"binary",spaceSeparated:!0,mantissa:(0,G.IU)(n)?n:2,trimMantissa:!(0,G.IU)(n),optionalMantissa:!(0,G.IU)(n)}).replace(/KB/g,"Kb").replace(/MB/g,"Mb").replace(/GB/g,"Gb").replace(/TB/g,"Tb").replace(/PB/g,"Pb").replace(/EB/g,"Eb").replace(/KiB/g,"Kib").replace(/MiB/g,"Mib").replace(/GiB/g,"Gib").replace(/TiB/g,"Tib").replace(/PiB/g,"Pib").replace(/EiB/g,"Eib")}let Z="Percent",H="Temperature",q="Time";var K=((n={}).nanoseconds="nanosecond",n.microseconds="microsecond",n.milliseconds="millisecond",n.seconds="second",n.minutes="minute",n.hours="hour",n.days="day",n.weeks="week",n.months="month",n.years="year",n);let Y={years:31536e3,months:2592e3,weeks:604800,days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001,microseconds:1e-6,nanoseconds:1e-9},X=["years","months","weeks","days","hours","minutes","seconds","milliseconds","microseconds","nanoseconds"],J="Throughput";var Q=r(40224);let ee="Currency",et="Date",er={Time:{label:"Time",decimalPlaces:!0},Percent:{label:"percent",decimalPlaces:!0},Decimal:{label:"Decimal",decimalPlaces:!0,shortValues:!0},Bytes:{label:"Bytes",decimalPlaces:!0,shortValues:!0},Bits:{label:"Bits",decimalPlaces:!0,shortValues:!0},Throughput:{label:"Throughput",decimalPlaces:!0},Currency:{label:"Currency",decimalPlaces:!0},Temperature:{label:H,decimalPlaces:!0},Date:{label:"Date & Time"}},en={nanoseconds:{group:q,label:"Nanoseconds"},microseconds:{group:q,label:"Microseconds"},milliseconds:{group:q,label:"Milliseconds"},seconds:{group:q,label:"Seconds"},minutes:{group:q,label:"Minutes"},hours:{group:q,label:"Hours"},days:{group:q,label:"Days"},weeks:{group:q,label:"Weeks"},months:{group:q,label:"Months"},years:{group:q,label:"Years"},percent:{group:Z,label:"Percent (0-100)"},"percent-decimal":{group:Z,label:"Percent (0.0-1.0)"},"%":{disableSelectorOption:!0,group:Z,label:"%"},decimal:{group:"Decimal",label:"Decimal"},bytes:{group:"Bytes",label:"Bytes (IEC)"},decbytes:{group:"Bytes",label:"Bytes (SI)"},bits:{group:"Bits",label:"Bits (IEC)"},decbits:{group:"Bits",label:"Bits (SI)"},"bits/sec":{group:J,label:"Bits/sec (IEC)"},"decbits/sec":{group:J,label:"Bits/sec (SI)"},"bytes/sec":{group:J,label:"Bytes/sec (IEC)"},"decbytes/sec":{group:J,label:"Bytes/sec (SI)"},"counts/sec":{group:J,label:"Counts/sec"},"events/sec":{group:J,label:"Events/sec"},"messages/sec":{group:J,label:"Messages/sec"},"ops/sec":{group:J,label:"Ops/sec"},"packets/sec":{group:J,label:"Packets/sec"},"reads/sec":{group:J,label:"Reads/sec"},"requests/sec":{group:J,label:"Requests/sec"},"records/sec":{group:J,label:"Records/sec"},"rows/sec":{group:J,label:"Rows/sec"},"writes/sec":{group:J,label:"Writes/sec"},aud:{group:ee,label:"Australian Dollar (A$)"},cad:{group:ee,label:"Canadian Dollar (CA$)"},chf:{group:ee,label:"Swiss Franc (CHF)"},cny:{group:ee,label:"Renminbi (CN\xa5)"},eur:{group:ee,label:"Euro (€)"},gbp:{group:ee,label:"Pound (\xa3)"},hkd:{group:ee,label:"Hong Kong Dollar (HK$)"},inr:{group:ee,label:"Indian Rupee (₹)"},jpy:{group:ee,label:"Yen (\xa5)"},krw:{group:ee,label:"South Korean Won (₩)"},nok:{group:ee,label:"Norwegian Krone (NOK)"},nzd:{group:ee,label:"New Zealand Dollar (NZ$)"},sek:{group:ee,label:"Swedish Krona (SEK)"},sgd:{group:ee,label:"Singapore Dollar (S$)"},usd:{group:ee,label:"US Dollar ($)"},celsius:{group:H,label:"Celsius (\xb0C)"},fahrenheit:{group:H,label:"Fahrenheit (\xb0F)"},"datetime-iso":{group:et,label:"DateTime (GMT)"},"datetime-us":{group:et,label:"DateTime (US-East)"},"datetime-local":{group:et,label:"DateTime (Browser Local)"},"date-iso":{group:et,label:"Date (GMT)"},"date-us":{group:et,label:"Date (US-East)"},"date-local":{group:et,label:"Date (Browser Local)"},"time-local":{group:et,label:"Time (Browser Local)"},"time-iso":{group:et,label:"Time (GMT)"},"time-us":{group:et,label:"Time (US-East)"},"relative-time":{group:et,label:"Relative Time"},"unix-timestamp":{group:et,label:"Unix Timestamp (s)"},"unix-timestamp-ms":{group:et,label:"Unix Timestamp (ms)"}};function ei(e,t){if(!t)return e.toString();if(ef(t))return V(e,t);if(ed(t))return W(e,t);if(ec(t))return function(e,{shortValues:t,decimalPlaces:r}){let n={style:"decimal",useGrouping:!0};return(0,G.jb)(t)&&(n.notation="compact"),(0,G.IU)(r)?(n.minimumFractionDigits=(0,G.To)(r),n.maximumFractionDigits=(0,G.To)(r)):(0,G.jb)(t)&&(n.maximumSignificantDigits=3),Intl.NumberFormat("en-US",n).format(e)}(e,t);if(eu(t))return function(e,{unit:t,decimalPlaces:r}){let n={style:"percent",useGrouping:!0};return(0,G.IU)(r)?(n.minimumFractionDigits=(0,G.To)(r),n.maximumFractionDigits=(0,G.To)(r)):n.maximumSignificantDigits=3,"percent"===t&&(e/=100),Intl.NumberFormat("en-US",n).format(e)}(e,t);if(es(t))return function(e,{unit:t,decimalPlaces:r}){var n;if(0===e)return"0s";let i=function(e,t){let r=e*Y[t],n=X[0]||"years",i=n,a=r/Y[n];for(i of X)if((a=r/Y[i])>=1)break;return{value:a,unit:i}}(e,t??"seconds"),a={style:"unit",unit:K[i.unit],unitDisplay:"months"===(n=i.unit)||"years"===n?"long":"narrow"};return(0,G.IU)(r)?(a.minimumFractionDigits=(0,G.To)(r),a.maximumFractionDigits=(0,G.To)(r)):a.maximumSignificantDigits=3,Intl.NumberFormat("en-US",a).format(i.value)}(e,t);if(eg(t))return function(e,{unit:t,shortValues:r,decimalPlaces:n}){if("bits/sec"===t){let t=1024>Math.abs(e)?"sec":"s";return W(e,{unit:"bits",shortValues:r,decimalPlaces:n})+"/"+t}if("decbits/sec"===t){let t=1e3>Math.abs(e)?"sec":"s";return W(e,{unit:"decbits",shortValues:r,decimalPlaces:n})+"/"+t}if("decbytes/sec"===t){let t=1e3>Math.abs(e)?"sec":"s";return V(e,{unit:"decbytes",shortValues:r,decimalPlaces:n})+"/"+t}if("bytes/sec"===t){let t=1024>Math.abs(e)?"sec":"s";return V(e,{unit:"bytes",shortValues:r,decimalPlaces:n})+"/"+t}let i={style:"decimal",useGrouping:!0};return(0,G.jb)(r)&&(i.notation="compact"),(0,G.IU)(n)?(i.minimumFractionDigits=(0,G.To)(n),i.maximumFractionDigits=(0,G.To)(n)):(0,G.jb)(r)&&(i.maximumSignificantDigits=3),Intl.NumberFormat("en-US",i).format(e)+" "+t}(e,t);if(eh(t))return function(e,{unit:t,decimalPlaces:r}){let n={style:"currency",currency:(0,Q.toUpper)(t),currencyDisplay:"symbol"};return(0,G.IU)(r)?(n.minimumFractionDigits=(0,G.To)(r),n.maximumFractionDigits=(0,G.To)(r)):n.maximumSignificantDigits=3,Intl.NumberFormat("en-US",n).format(e)}(e,t);if(eb(t))return function(e,t={}){let r=Intl.DateTimeFormat().resolvedOptions().timeZone,{unit:n="datetime-local",locale:i=(()=>{if("undefined"!=typeof navigator){if(navigator.language)return navigator.language;if(navigator.languages&&navigator.languages.length>0){let e=navigator.languages[0];if(e)return e}let e=navigator;if(e.userLanguage)return e.userLanguage;if(e.browserLanguage)return e.browserLanguage;if(e.systemLanguage)return e.systemLanguage}return Intl.DateTimeFormat().resolvedOptions().locale||"en-US"})(),timeZone:a=r,referenceTime:o=Date.now()}=t;if("unix-timestamp"===n)return(e>1e12?Math.floor(e/1e3):e).toString();if("unix-timestamp-ms"===n)return Math.floor(e<1e11?1e3*e:e).toString();let l=function(e){if(e<0)if(Math.abs(e)>1e10)return new Date(e);else return new Date(1e3*e);if(e>=25e10&&e<=26e10){let t=new Date(1e3*e);if(t.getUTCFullYear()>=9999)return t}return new Date(e<1e10?1e3*e:e)}(e);if("relative-time"===n){let e=new Date(o),t=l.getTime()-e.getTime();for(let{unit:e,ms:r}of[{unit:"year",ms:31536e6},{unit:"month",ms:2592e6},{unit:"week",ms:6048e5},{unit:"day",ms:864e5},{unit:"hour",ms:36e5},{unit:"minute",ms:6e4},{unit:"second",ms:1e3}]){let n=Math.round(t/r);if(Math.abs(n)>=1)return new Intl.RelativeTimeFormat(i,{numeric:"auto"}).format(n,e)}return new Intl.RelativeTimeFormat(i,{numeric:"auto"}).format(0,"second")}let s={timeZone:a};switch(n){case"datetime-iso":return l.toISOString();case"datetime-us":return s.timeZone="America/New_York",s.year="numeric",s.month="2-digit",s.day="2-digit",s.hour="2-digit",s.minute="2-digit",s.second="2-digit",s.hour12=!0,new Intl.DateTimeFormat("en-US",s).format(l);case"datetime-local":s.year="numeric",s.month="2-digit",s.day="2-digit",s.hour="2-digit",s.minute="2-digit",s.second="2-digit",s.hour12=!1;break;case"date-iso":return l.toISOString().split("T")[0];case"date-us":return s.timeZone="America/New_York",s.year="numeric",s.month="2-digit",s.day="2-digit",new Intl.DateTimeFormat("en-US",s).format(l);case"date-local":s.year="numeric",s.month="2-digit",s.day="2-digit";break;case"time-local":s.hour="2-digit",s.minute="2-digit",s.second="2-digit",s.hour12=!1;break;case"time-iso":return l.toISOString().split("T")[1].replace("Z","");case"time-us":return s.timeZone="America/New_York",s.hour="2-digit",s.minute="2-digit",s.second="2-digit",s.hour12=!0,new Intl.DateTimeFormat("en-US",s).format(l);default:throw Error(`Unknown date unit: ${n}`)}return new Intl.DateTimeFormat(i,s).format(l)}(e,t);if(ey(t))return((e,{unit:t,decimalPlaces:r})=>{let n={unit:t,style:"unit"};(0,G.IU)(r)?(n.minimumFractionDigits=(0,G.To)(r),n.maximumFractionDigits=(0,G.To)(r)):n.maximumSignificantDigits=3;let i="celsius"===t?"en-GB":"en-US";return Intl.NumberFormat(i,n).format(e)})(e,t);throw Error(`Unknown unit options ${t}`)}function ea(e){return en[e.unit??"decimal"]}function eo(e){return ea(e).group??"Decimal"}function el(e){return er[ea(e).group??"Decimal"]}function es(e){return"Time"===eo(e)}function eu(e){return"Percent"===eo(e)}function ec(e){return"Decimal"===eo(e)}function ef(e){return"Bytes"===eo(e)}function ed(e){return"Bits"===eo(e)}function ep(e){return!!el(e).decimalPlaces}function em(e){return!!el(e).shortValues}function eg(e){return"Throughput"===eo(e)}function eh(e){return"Currency"===eo(e)}function eb(e){return"Date"===eo(e)}function ey(e){return"Temperature"===eo(e)}},71065:function(e,t,r){function n(e){return!1!==e}function i(e){return"number"==typeof e}function a(e){return e&&(e<0?e=0:e>20&&(e=20)),e}r.d(t,{IU:()=>i,To:()=>a,jb:()=>n})},42524:function(e,t,r){var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M19,13H5V11H19V13Z","Minus")}}]);
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
(self.chunk_Tempo=self.chunk_Tempo||[]).push([["8035"],{42927:function(e,t,r){"use strict";r.d(t,{A:()=>O});var o=r(70451),a=r(11750),n=r(81023),i=r(59238),p=r(32560),l=r(22402),s=r(62540);let d=(0,l.A)((0,s.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),c=(0,l.A)((0,s.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),u=(0,l.A)((0,s.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var m=r(24726),h=r(83926),f=r(29009),y=r(46733);function g(e){return(0,y.Ay)("MuiCheckbox",e)}let v=(0,f.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);var A=r(77308),b=r(23434),x=r(26952),w=r(72052),R=r(64606),T=r(73397);let M=(0,A.A)(p.A,{shouldForwardProp:e=>(0,h.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${(0,m.A)(r.size)}`],"default"!==r.color&&t[`color${(0,m.A)(r.color)}`]]}})((0,b.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,i.X4)(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,x.A)()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,i.X4)(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter((0,x.A)()).map(([t])=>({props:{color:t},style:{[`&.${v.checked}, &.${v.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${v.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),k=(0,s.jsx)(c,{}),C=(0,s.jsx)(d,{}),$=(0,s.jsx)(u,{}),O=o.forwardRef(function(e,t){let r=(0,w.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:i=k,color:p="primary",icon:l=C,indeterminate:d=!1,indeterminateIcon:c=$,inputProps:u,size:h="medium",disableRipple:f=!1,className:y,slots:v={},slotProps:A={},...b}=r,x=d?c:l,O=d?c:i,S={...r,disableRipple:f,color:p,indeterminate:d,size:h},H=(e=>{let{classes:t,indeterminate:r,color:o,size:a}=e,i={root:["root",r&&"indeterminate",`color${(0,m.A)(o)}`,`size${(0,m.A)(a)}`]},p=(0,n.A)(i,g,t);return{...t,...p}})(S),z=A.input??u,[j,P]=(0,T.A)("root",{ref:t,elementType:M,className:(0,a.A)(H.root,y),shouldForwardComponentProp:!0,externalForwardedProps:{slots:v,slotProps:A,...b},ownerState:S,additionalProps:{type:"checkbox",icon:o.cloneElement(x,{fontSize:x.props.fontSize??h}),checkedIcon:o.cloneElement(O,{fontSize:O.props.fontSize??h}),disableRipple:f,slots:v,slotProps:{input:(0,R.A)("function"==typeof z?z(S):z,{"data-indeterminate":d})}}});return(0,s.jsx)(j,{...P,classes:H})})},82561:function(e,t,r){"use strict";r.d(t,{A:()=>i,t:()=>n});var o=r(29009),a=r(46733);function n(e){return(0,a.Ay)("MuiLink",e)}let i=(0,o.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"])},33313:function(e,t,r){"use strict";r.d(t,{A:()=>b});var o=r(70451),a=r(11750),n=r(81023),i=r(59238),p=r(69402),l=r(77308),s=r(23434),d=r(72052),c=r(29009),u=r(46733);function m(e){return(0,u.Ay)("MuiSkeleton",e)}(0,c.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var h=r(62540);let f=(0,p.keyframes)`
|
|
2
|
-
0% {
|
|
3
|
-
opacity: 1;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
50% {
|
|
7
|
-
opacity: 0.4;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
100% {
|
|
11
|
-
opacity: 1;
|
|
12
|
-
}
|
|
13
|
-
`,y=(0,p.keyframes)`
|
|
14
|
-
0% {
|
|
15
|
-
transform: translateX(-100%);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
50% {
|
|
19
|
-
/* +0.5s of delay between each loop */
|
|
20
|
-
transform: translateX(100%);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
100% {
|
|
24
|
-
transform: translateX(100%);
|
|
25
|
-
}
|
|
26
|
-
`,g="string"!=typeof f?(0,p.css)`
|
|
27
|
-
animation: ${f} 2s ease-in-out 0.5s infinite;
|
|
28
|
-
`:null,v="string"!=typeof y?(0,p.css)`
|
|
29
|
-
&::after {
|
|
30
|
-
animation: ${y} 2s linear 0.5s infinite;
|
|
31
|
-
}
|
|
32
|
-
`:null,A=(0,l.A)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})((0,s.A)(({theme:e})=>{let t=String(e.shape.borderRadius).match(/[\d.\-+]*\s*(.*)/)[1]||"px",r=parseFloat(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,i.X4)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${t}/${Math.round(r/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:"fit-content"}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:"auto"}},{props:{animation:"pulse"},style:g||{animation:`${f} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
|
|
33
|
-
90deg,
|
|
34
|
-
transparent,
|
|
35
|
-
${(e.vars||e).palette.action.hover},
|
|
36
|
-
transparent
|
|
37
|
-
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:v||{"&::after":{animation:`${y} 2s linear 0.5s infinite`}}}]}})),b=o.forwardRef(function(e,t){let r=(0,d.b)({props:e,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:p="span",height:l,style:s,variant:c="text",width:u,...f}=r,y={...r,animation:o,component:p,variant:c,hasChildren:!!f.children},g=(e=>{let{classes:t,variant:r,animation:o,hasChildren:a,width:i,height:p}=e;return(0,n.A)({root:["root",r,o,a&&"withChildren",a&&!i&&"fitContent",a&&!p&&"heightAuto"]},m,t)})(y);return(0,h.jsx)(A,{as:p,ref:t,className:(0,a.A)(g.root,i),ownerState:y,...f,style:{width:u,height:l,...s}})})},91394:function(e,t,r){"use strict";r.d(t,{A:()=>y});var o=r(70451),a=r(11750),n=r(81023),i=r(70872),p=r(77308),l=r(23434),s=r(72052),d=r(29009),c=r(46733);function u(e){return(0,c.Ay)("MuiTable",e)}(0,d.A)("MuiTable",["root","stickyHeader"]);var m=r(62540);let h=(0,p.A)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((0,l.A)(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),f="table",y=o.forwardRef(function(e,t){let r=(0,s.b)({props:e,name:"MuiTable"}),{className:p,component:l=f,padding:d="normal",size:c="medium",stickyHeader:y=!1,...g}=r,v={...r,component:l,padding:d,size:c,stickyHeader:y},A=(e=>{let{classes:t,stickyHeader:r}=e;return(0,n.A)({root:["root",r&&"stickyHeader"]},u,t)})(v),b=o.useMemo(()=>({padding:d,size:c,stickyHeader:y}),[d,c,y]);return(0,m.jsx)(i.A.Provider,{value:b,children:(0,m.jsx)(h,{as:l,role:l===f?null:"table",ref:t,className:(0,a.A)(A.root,p),ownerState:v,...g})})})},70872:function(e,t,r){"use strict";r.d(t,{A:()=>o});let o=r(70451).createContext()},91644:function(e,t,r){"use strict";r.d(t,{A:()=>o});let o=r(70451).createContext()},5139:function(e,t,r){"use strict";r.d(t,{A:()=>y});var o=r(70451),a=r(11750),n=r(81023),i=r(91644),p=r(77308),l=r(72052),s=r(29009),d=r(46733);function c(e){return(0,d.Ay)("MuiTableBody",e)}(0,s.A)("MuiTableBody",["root"]);var u=r(62540);let m=(0,p.A)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),h={variant:"body"},f="tbody",y=o.forwardRef(function(e,t){let r=(0,l.b)({props:e,name:"MuiTableBody"}),{className:o,component:p=f,...s}=r,d={...r,component:p},y=(e=>{let{classes:t}=e;return(0,n.A)({root:["root"]},c,t)})(d);return(0,u.jsx)(i.A.Provider,{value:h,children:(0,u.jsx)(m,{className:(0,a.A)(y.root,o),as:p,ref:t,role:p===f?null:"rowgroup",ownerState:d,...s})})})},45271:function(e,t,r){"use strict";r.d(t,{A:()=>A});var o=r(70451),a=r(11750),n=r(81023),i=r(59238),p=r(24726),l=r(70872),s=r(91644),d=r(77308),c=r(23434),u=r(72052),m=r(29009),h=r(46733);function f(e){return(0,h.Ay)("MuiTableCell",e)}let y=(0,m.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var g=r(62540);let v=(0,d.A)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`size${(0,p.A)(r.size)}`],"normal"!==r.padding&&t[`padding${(0,p.A)(r.padding)}`],"inherit"!==r.align&&t[`align${(0,p.A)(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((0,c.A)(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
38
|
-
${"light"===e.palette.mode?(0,i.a)((0,i.X4)(e.palette.divider,1),.88):(0,i.e$)((0,i.X4)(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${y.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),A=o.forwardRef(function(e,t){let r,i=(0,u.b)({props:e,name:"MuiTableCell"}),{align:d="inherit",className:c,component:m,padding:h,scope:y,size:A,sortDirection:b,variant:x,...w}=i,R=o.useContext(l.A),T=o.useContext(s.A),M=T&&"head"===T.variant,k=y;"td"===(r=m||(M?"th":"td"))?k=void 0:!k&&M&&(k="col");let C=x||T&&T.variant,$={...i,align:d,component:r,padding:h||(R&&R.padding?R.padding:"normal"),size:A||(R&&R.size?R.size:"medium"),sortDirection:b,stickyHeader:"head"===C&&R&&R.stickyHeader,variant:C},O=(e=>{let{classes:t,variant:r,align:o,padding:a,size:i,stickyHeader:l}=e,s={root:["root",r,l&&"stickyHeader","inherit"!==o&&`align${(0,p.A)(o)}`,"normal"!==a&&`padding${(0,p.A)(a)}`,`size${(0,p.A)(i)}`]};return(0,n.A)(s,f,t)})($),S=null;return b&&(S="asc"===b?"ascending":"descending"),(0,g.jsx)(v,{as:r,ref:t,className:(0,a.A)(O.root,c),"aria-sort":S,scope:k,ownerState:$,...w})})},347:function(e,t,r){"use strict";r.d(t,{A:()=>m});var o=r(70451),a=r(11750),n=r(81023),i=r(77308),p=r(72052),l=r(29009),s=r(46733);function d(e){return(0,s.Ay)("MuiTableContainer",e)}(0,l.A)("MuiTableContainer",["root"]);var c=r(62540);let u=(0,i.A)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),m=o.forwardRef(function(e,t){let r=(0,p.b)({props:e,name:"MuiTableContainer"}),{className:o,component:i="div",...l}=r,s={...r,component:i},m=(e=>{let{classes:t}=e;return(0,n.A)({root:["root"]},d,t)})(s);return(0,c.jsx)(u,{ref:t,as:i,className:(0,a.A)(m.root,o),ownerState:s,...l})})},70561:function(e,t,r){"use strict";r.d(t,{A:()=>y});var o=r(70451),a=r(11750),n=r(81023),i=r(91644),p=r(77308),l=r(72052),s=r(29009),d=r(46733);function c(e){return(0,d.Ay)("MuiTableHead",e)}(0,s.A)("MuiTableHead",["root"]);var u=r(62540);let m=(0,p.A)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),h={variant:"head"},f="thead",y=o.forwardRef(function(e,t){let r=(0,l.b)({props:e,name:"MuiTableHead"}),{className:o,component:p=f,...s}=r,d={...r,component:p},y=(e=>{let{classes:t}=e;return(0,n.A)({root:["root"]},c,t)})(d);return(0,u.jsx)(i.A.Provider,{value:h,children:(0,u.jsx)(m,{as:p,className:(0,a.A)(y.root,o),ref:t,role:p===f?null:"rowgroup",ownerState:d,...s})})})},3399:function(e,t,r){"use strict";r.d(t,{A:()=>g});var o=r(70451),a=r(11750),n=r(81023),i=r(59238),p=r(91644),l=r(77308),s=r(23434),d=r(72052),c=r(29009),u=r(46733);function m(e){return(0,u.Ay)("MuiTableRow",e)}let h=(0,c.A)("MuiTableRow",["root","selected","hover","head","footer"]);var f=r(62540);let y=(0,l.A)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((0,s.A)(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${h.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${h.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,i.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,i.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),g=o.forwardRef(function(e,t){let r=(0,d.b)({props:e,name:"MuiTableRow"}),{className:i,component:l="tr",hover:s=!1,selected:c=!1,...u}=r,h=o.useContext(p.A),g={...r,component:l,hover:s,selected:c,head:h&&"head"===h.variant,footer:h&&"footer"===h.variant},v=(e=>{let{classes:t,selected:r,hover:o,head:a,footer:i}=e;return(0,n.A)({root:["root",r&&"selected",o&&"hover",a&&"head",i&&"footer"]},m,t)})(g);return(0,f.jsx)(y,{as:l,ref:t,className:(0,a.A)(v.root,i),role:"tr"===l?null:"row",ownerState:g,...u})})},65211:function(e,t,r){"use strict";r.d(t,{A:()=>z});var o=r(70451),a=r(11750),n=r(3725),i=r(81023),p=r(59238),l=r(35216),s=r(93399),d=r(30443),c=r(77308),u=r(56599),m=r(23434),h=r(72052),f=r(24726),y=r(46823),g=r(48865),v=r(32398),A=r(29424),b=r(63392),x=r(2203),w=r(73397),R=r(32751),T=r(62540);let M=(0,c.A)(g.A,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((0,m.A)(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${R.A.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${R.A.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${R.A.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${R.A.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${R.A.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${R.A.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${R.A.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${R.A.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),k=(0,c.A)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,f.A)(r.placement.split("-")[0])}`]]}})((0,m.A)(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,p.X4)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${R.A.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${R.A.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${R.A.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${R.A.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Math.round(16/14*1e5)/1e5}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${R.A.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${R.A.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${R.A.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${R.A.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${R.A.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${R.A.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${R.A.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${R.A.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${R.A.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${R.A.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),C=(0,c.A)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((0,m.A)(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,p.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))),$=!1,O=new n.E,S={x:0,y:0};function H(e,t){return(r,...o)=>{t&&t(r,...o),e(r,...o)}}let z=o.forwardRef(function(e,t){let r=(0,h.b)({props:e,name:"MuiTooltip"}),{arrow:p=!1,children:c,classes:m,components:z={},componentsProps:j={},describeChild:P=!1,disableFocusListener:E=!1,disableHoverListener:L=!1,disableInteractive:V=!1,disableTouchListener:B=!1,enterDelay:I=100,enterNextDelay:N=0,enterTouchDelay:W=700,followCursor:X=!1,id:_,leaveDelay:F=0,leaveTouchDelay:U=1500,onClose:D,onOpen:Y,open:Z,placement:q="bottom",PopperComponent:J,PopperProps:G={},slotProps:K={},slots:Q={},title:ee,TransitionComponent:et,TransitionProps:er,...eo}=r,ea=o.isValidElement(c)?c:(0,T.jsx)("span",{children:c}),en=(0,u.A)(),ei=(0,l.I)(),[ep,el]=o.useState(),[es,ed]=o.useState(null),ec=o.useRef(!1),eu=V||X,em=(0,n.A)(),eh=(0,n.A)(),ef=(0,n.A)(),ey=(0,n.A)(),[eg,ev]=(0,x.A)({controlled:Z,default:!1,name:"Tooltip",state:"open"}),eA=eg,eb=(0,b.A)(_),ex=o.useRef(),ew=(0,v.A)(()=>{void 0!==ex.current&&(document.body.style.WebkitUserSelect=ex.current,ex.current=void 0),ey.clear()});o.useEffect(()=>ew,[ew]);let eR=e=>{O.clear(),$=!0,ev(!0),Y&&!eA&&Y(e)},eT=(0,v.A)(e=>{O.start(800+F,()=>{$=!1}),ev(!1),D&&eA&&D(e),em.start(en.transitions.duration.shortest,()=>{ec.current=!1})}),eM=e=>{ec.current&&"touchstart"!==e.type||(ep&&ep.removeAttribute("title"),eh.clear(),ef.clear(),I||$&&N?eh.start($?N:I,()=>{eR(e)}):eR(e))},ek=e=>{eh.clear(),ef.start(F,()=>{eT(e)})},[,eC]=o.useState(!1),e$=e=>{(0,s.A)(e.target)||(eC(!1),ek(e))},eO=e=>{ep||el(e.currentTarget),(0,s.A)(e.target)&&(eC(!0),eM(e))},eS=e=>{ec.current=!0;let t=ea.props;t.onTouchStart&&t.onTouchStart(e)};o.useEffect(()=>{if(eA)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&eT(e)}},[eT,eA]);let eH=(0,A.A)((0,d.A)(ea),el,t);ee||0===ee||(eA=!1);let ez=o.useRef(),ej={},eP="string"==typeof ee;P?(ej.title=eA||!eP||L?null:ee,ej["aria-describedby"]=eA?eb:null):(ej["aria-label"]=eP?ee:null,ej["aria-labelledby"]=eA&&!eP?eb:null);let eE={...ej,...eo,...ea.props,className:(0,a.A)(eo.className,ea.props.className),onTouchStart:eS,ref:eH,...X?{onMouseMove:e=>{let t=ea.props;t.onMouseMove&&t.onMouseMove(e),S={x:e.clientX,y:e.clientY},ez.current&&ez.current.update()}}:{}},eL={};B||(eE.onTouchStart=e=>{eS(e),ef.clear(),em.clear(),ew(),ex.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ey.start(W,()=>{document.body.style.WebkitUserSelect=ex.current,eM(e)})},eE.onTouchEnd=e=>{ea.props.onTouchEnd&&ea.props.onTouchEnd(e),ew(),ef.start(U,()=>{eT(e)})}),!L&&(eE.onMouseOver=H(eM,eE.onMouseOver),eE.onMouseLeave=H(ek,eE.onMouseLeave),eu||(eL.onMouseOver=eM,eL.onMouseLeave=ek)),!E&&(eE.onFocus=H(eO,eE.onFocus),eE.onBlur=H(e$,eE.onBlur),eu||(eL.onFocus=eO,eL.onBlur=e$));let eV={...r,isRtl:ei,arrow:p,disableInteractive:eu,placement:q,PopperComponentProp:J,touch:ec.current},eB="function"==typeof K.popper?K.popper(eV):K.popper,eI=o.useMemo(()=>{let e=[{name:"arrow",enabled:!!es,options:{element:es,padding:4}}];return G.popperOptions?.modifiers&&(e=e.concat(G.popperOptions.modifiers)),eB?.popperOptions?.modifiers&&(e=e.concat(eB.popperOptions.modifiers)),{...G.popperOptions,...eB?.popperOptions,modifiers:e}},[es,G.popperOptions,eB?.popperOptions]),eN=(e=>{let{classes:t,disableInteractive:r,arrow:o,touch:a,placement:n}=e,p={popper:["popper",!r&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",a&&"touch",`tooltipPlacement${(0,f.A)(n.split("-")[0])}`],arrow:["arrow"]};return(0,i.A)(p,R.E,t)})(eV),eW="function"==typeof K.transition?K.transition(eV):K.transition,eX={slots:{popper:z.Popper,transition:z.Transition??et,tooltip:z.Tooltip,arrow:z.Arrow,...Q},slotProps:{arrow:K.arrow??j.arrow,popper:{...G,...eB??j.popper},tooltip:K.tooltip??j.tooltip,transition:{...er,...eW??j.transition}}},[e_,eF]=(0,w.A)("popper",{elementType:M,externalForwardedProps:eX,ownerState:eV,className:(0,a.A)(eN.popper,G?.className)}),[eU,eD]=(0,w.A)("transition",{elementType:y.A,externalForwardedProps:eX,ownerState:eV}),[eY,eZ]=(0,w.A)("tooltip",{elementType:k,className:eN.tooltip,externalForwardedProps:eX,ownerState:eV}),[eq,eJ]=(0,w.A)("arrow",{elementType:C,className:eN.arrow,externalForwardedProps:eX,ownerState:eV,ref:ed});return(0,T.jsxs)(o.Fragment,{children:[o.cloneElement(ea,eE),(0,T.jsx)(e_,{as:J??g.A,placement:q,anchorEl:X?{getBoundingClientRect:()=>({top:S.y,left:S.x,right:S.x,bottom:S.y,width:0,height:0})}:ep,popperRef:ez,open:!!ep&&eA,id:eb,transition:!0,...eL,...eF,popperOptions:eI,children:({TransitionProps:e})=>(0,T.jsx)(eU,{timeout:en.transitions.duration.shorter,...e,...eD,children:(0,T.jsxs)(eY,{...eZ,children:[ee,p?(0,T.jsx)(eq,{...eJ}):null]})})})]})})},32751:function(e,t,r){"use strict";r.d(t,{A:()=>i,E:()=>n});var o=r(29009),a=r(46733);function n(e){return(0,a.Ay)("MuiTooltip",e)}let i=(0,o.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"])},17366:function(e,t,r){"use strict";var o;t.default=void 0,t.default=(0,((o=r(1448))&&o.__esModule?o:{default:o}).default)("M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z","InformationOutline")},29917:function(e,t,r){"use strict";var o;t.default=void 0,t.default=(0,((o=r(1448))&&o.__esModule?o:{default:o}).default)("M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12M8.8,14L10,12.8V4H14V12.8L15.2,14H8.8Z","PinOutline")},40362:function(e,t,r){"use strict";var o=r(56441);function a(){}function n(){}n.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,n,i){if(i!==o){var p=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:n,resetWarningCache:a};return r.PropTypes=r,r}},62688:function(e,t,r){e.exports=r(40362)()},56441:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.chunk_Tempo=self.chunk_Tempo||[]).push([["1829"],{56627:function(e,r,a){a.r(r),a.d(r,{TempoExplorer:()=>A});var n=a(62540),s=a(315),i=a(74628),l=a(34007),t=a(48612),p=a(33862),c=a(51670),u=a(64990),o=a(76622),d=a(70451);let h=new URLSearchParams({explorer:"Tempo-TempoExplorer",data:JSON.stringify({queries:[{kind:"TraceQuery",spec:{plugin:{kind:"TempoTraceQuery",spec:{query:"TRACEID",datasource:{kind:"TempoDatasource",name:"DATASOURCENAME"}}}}}]})}),x=new URLSearchParams({explorer:"Tempo-TempoExplorer",data:JSON.stringify({queries:[{kind:"TraceQuery",spec:{plugin:{kind:"TempoTraceQuery",spec:{query:"TRACEID",datasource:{kind:"TempoDatasource",name:"DATASOURCENAME"}}}}}],spanId:"SPANID"})}),T=`/explore?${h}`.replace("DATASOURCENAME","${datasourceName}").replace("TRACEID","${traceId}"),m=`/explore?${x}`.replace("DATASOURCENAME","${datasourceName}").replace("TRACEID","${traceId}").replace("SPANID","${spanId}");function y(e){let{queries:r}=e,{isFetching:a,isLoading:p,queryResults:u}=(0,o.useDataQueries)("TraceQuery");if(0===u.length)return(0,n.jsx)(n.Fragment,{});if(p||a)return(0,n.jsx)(t.LoadingOverlay,{});let d=u.find(e=>e.error);if(d)throw d.error;if(!u.some(e=>{var r;return((null==(r=e.data)?void 0:r.searchResult)??[]).length>0}))return(0,n.jsx)(t.NoDataOverlay,{resource:"traces"});let h=u.some(e=>{var r,a;return null==(a=e.data)||null==(r=a.metadata)?void 0:r.hasMoreResults});return(0,n.jsxs)(s.A,{sx:{height:"100%"},gap:2,children:[(0,n.jsx)(i.A,{sx:{height:"35%",flexShrink:0},children:(0,n.jsx)(c.Panel,{panelOptions:{hideHeader:!0},definition:{kind:"Panel",spec:{queries:r,display:{name:""},plugin:{kind:"ScatterChart",spec:{link:T}}}}})}),(0,n.jsx)(c.Panel,{sx:{flexGrow:1},panelOptions:{hideHeader:!0},definition:{kind:"Panel",spec:{queries:r,display:{name:""},plugin:{kind:"TraceTable",spec:{links:{trace:T}}}}}}),h&&(0,n.jsx)(l.A,{severity:"info",children:"Not all matching traces are currently displayed. Increase the result limit to view additional traces."})]})}function g(e){var r,a;let{queries:s,selectedSpanId:i}=e,l=null==(a=s[0])||null==(r=a.spec.plugin.spec)?void 0:r.query;return(0,n.jsx)(c.Panel,{panelOptions:{showIcons:"always"},definition:{kind:"Panel",spec:{queries:s,display:{name:`Trace ${l}`},plugin:{kind:"TracingGanttChart",spec:{links:{trace:T,span:m},selectedSpanId:i}}}}})}function A(){var e,r;let{data:{queries:a=[],spanId:l},setData:c}=(0,u.useExplorerManagerContext)(),[h,x]=(0,d.useState)(a),T=a.length?a.map(e=>({kind:e.spec.plugin.kind,spec:e.spec.plugin.spec})):[],m=null==(r=a[0])||null==(e=r.spec.plugin.spec)?void 0:e.query,A=(0,p.h)(m??"");return(0,n.jsxs)(s.A,{gap:2,sx:{width:"100%"},children:[(0,n.jsx)(o.MultiQueryEditor,{queryTypes:["TraceQuery"],onChange:e=>x(e),queries:h,onQueryRun:()=>c({queries:h})}),(0,n.jsx)(t.ErrorBoundary,{FallbackComponent:t.ErrorAlert,resetKeys:[a],children:(0,n.jsx)(o.DataQueriesProvider,{definitions:T,children:(0,n.jsx)(i.A,{height:700,children:A?(0,n.jsx)(g,{queries:a,selectedSpanId:l}):(0,n.jsx)(y,{queries:a})})})})]})}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see lib-router.4c755752.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.chunk_Tempo=self.chunk_Tempo||[]).push([["9535"],{70744:function(e,t,r){var n,a,o,i;function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{AO:()=>v,B6:()=>D,G3:()=>et,Gh:()=>U,HC:()=>W,HS:()=>j,HW:()=>ee,Oi:()=>h,Pq:()=>B,RO:()=>L,Rr:()=>y,Sk:()=>$,TM:()=>d,V2:()=>V,VV:()=>K,aE:()=>eo,o1:()=>_,pX:()=>q,pb:()=>k,rc:()=>n,ro:()=>S,sC:()=>u,tH:()=>z,tW:()=>P,ue:()=>E,v6:()=>I,yD:()=>T,zR:()=>c}),(o=n||(n={})).Pop="POP",o.Push="PUSH",o.Replace="REPLACE";let s="popstate";function u(e){let t;void 0===e&&(e={});let{initialEntries:r=["/"],initialIndex:a,v5Compat:o=!1}=e;t=r.map((e,t)=>c(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let i=u(null==a?t.length-1:a),l=n.Pop,s=null;function u(e){return Math.min(Math.max(e,0),t.length-1)}function c(e,r,n){void 0===r&&(r=null);let a=m(t?t[i].pathname:"/",e,r,n);return f("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function d(e){return"string"==typeof e?e:v(e)}return{get index(){return i},get action(){return l},get location(){return t[i]},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?y(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){l=n.Push;let a=c(e,r);i+=1,t.splice(i,t.length,a),o&&s&&s({action:l,location:a,delta:1})},replace(e,r){l=n.Replace;let a=c(e,r);t[i]=a,o&&s&&s({action:l,location:a,delta:0})},go(e){l=n.Pop;let r=u(i+e),a=t[r];i=r,s&&s({action:l,location:a,delta:e})},listen:e=>(s=e,()=>{s=null})}}function c(e){return void 0===e&&(e={}),g(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return m("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:v(t)},null,e)}function d(e){return void 0===e&&(e={}),g(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=y(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),m("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:v(t))},function(e,t){f("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function h(e,t){if(!1===e||null==e)throw Error(t)}function f(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t}}function m(e,t,r,n){return void 0===r&&(r=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?y(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function v(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function y(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function g(e,t,r,a){void 0===a&&(a={});let{window:o=document.defaultView,v5Compat:i=!1}=a,u=o.history,c=n.Pop,d=null,f=y();function y(){return(u.state||{idx:null}).idx}function g(){c=n.Pop;let e=y(),t=null==e?null:e-f;f=e,d&&d({action:c,location:w.location,delta:t})}function b(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,r="string"==typeof e?e:v(e);return h(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==f&&(f=0,u.replaceState(l({},u.state,{idx:f}),""));let w={get action(){return c},get location(){return e(o,u)},listen(e){if(d)throw Error("A history only accepts one active listener");return o.addEventListener(s,g),d=e,()=>{o.removeEventListener(s,g),d=null}},createHref:e=>t(o,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=n.Push;let a=m(w.location,e,t);r&&r(a,e);let l=p(a,f=y()+1),s=w.createHref(a);try{u.pushState(l,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(s)}i&&d&&d({action:c,location:w.location,delta:1})},replace:function(e,t){c=n.Replace;let a=m(w.location,e,t);r&&r(a,e);let o=p(a,f=y()),l=w.createHref(a);u.replaceState(o,"",l),i&&d&&d({action:c,location:w.location,delta:0})},go:e=>u.go(e)};return w}(i=a||(a={})).data="data",i.deferred="deferred",i.redirect="redirect",i.error="error";let b=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(h(!0!==e.index||!e.children,"Cannot specify children on an index route"),h(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=l({},e,t(e),{id:i});return n[i]=r,r}{let r=l({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=w(e.children,t,o,n)),r}})}function E(e,t,r){return void 0===r&&(r="/"),R(e,t,r,!1)}function R(e,t,r,n){let a=k(("string"==typeof t?y(t):t).pathname||"/",r);if(null==a)return null;let o=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{var l,s;let u,c,d={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};d.relativePath.startsWith("/")&&(h(d.relativePath.startsWith(a),'Absolute route path "'+d.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),d.relativePath=d.relativePath.slice(a.length));let f=j([a,d.relativePath]),p=n.concat(d);t.children&&t.children.length>0&&(h(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+f+'".'),e(t.children,r,p,f)),(null!=t.path||t.index)&&r.push({path:f,score:(l=f,s=t.index,c=(u=l.split("/")).length,u.some(C)&&(c+=-2),s&&(c+=2),u.filter(e=>!C(e)).reduce((e,t)=>e+(x.test(t)?3:""===t?1:10),c)),routesMeta:p})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);o.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)});let i=null;for(let e=0;null==i&&e<o.length;++e){let t=L(a);i=function(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let l=n[e],s=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=D({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&r&&!n[n.length-1].route.index&&(c=D({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:j([o,c.pathname]),pathnameBase:M(j([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=j([o,c.pathnameBase]))}return i}(o[e],t,n)}return i}function S(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}let x=/^:[\w-]+$/,C=e=>"*"===e;function P(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(f(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));let n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e)return a(t["*"]);let o=e.match(/^:([\w-]+)(\??)$/);if(o){let[,e,r]=o,n=t[e];return h("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function D(e,t){var r,n,a;let o,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[l,s]=(r=e.path,n=e.caseSensitive,a=e.end,void 0===n&&(n=!1),void 0===a&&(a=!0),f("*"===r||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),o=[],i="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(o.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")),r.endsWith("*")?(o.push({paramName:"*"}),i+="*"===r||"/*"===r?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==r&&"/"!==r&&(i+="(?:(?=\\/|$))"),[new RegExp(i,n?void 0:"i"),o]),u=t.match(l);if(!u)return null;let c=u[0],d=c.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:s.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=h[r]||"";d=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let o=h[r];return a&&!o?e[n]=void 0:e[n]=(o||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:d,pattern:e}}function L(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return f(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function k(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function _(e,t){var r;let n;void 0===t&&(t="/");let{pathname:a,search:o="",hash:i=""}="string"==typeof e?y(e):e;return{pathname:a?a.startsWith("/")?a:(r=a,n=t.replace(/\/+$/,"").split("/"),r.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"):t,search:F(o),hash:N(i)}}function O(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field [")+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function A(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function T(e,t){let r=A(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function U(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=y(e):(h(!(a=l({},e)).pathname||!a.pathname.includes("?"),O("?","pathname","search",a)),h(!a.pathname||!a.pathname.includes("#"),O("#","pathname","hash",a)),h(!a.search||!a.search.includes("#"),O("#","search","hash",a)));let i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=_(a,o),c=s&&"/"!==s&&s.endsWith("/"),d=(i||"."===s)&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}let j=e=>e.join("/").replace(/\/\/+/g,"/"),M=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),F=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",N=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",B=function(e,t){void 0===t&&(t={});let r="number"==typeof t?{status:t}:t,n=new Headers(r.headers);return n.has("Content-Type")||n.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),l({},r,{headers:n}))};class z extends Error{}class H{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],h(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise((e,t)=>r=t),this.controller=new AbortController;let n=()=>r(new z("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(r,e,void 0,t),t=>this.onSettle(r,e,t));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof z)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach(r=>r(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise(t=>{this.subscribe(n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)})})}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return h(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:function(e){if(!(e instanceof Promise&&!0===e._tracked))return e;if(e._error)throw e._error;return e._data}(n)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}let I=function(e,t){return void 0===t&&(t={}),new H(e,"number"==typeof t?{status:t}:t)},V=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,l({},r,{headers:n}))},$=(e,t)=>{let r=V(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},W=(e,t)=>{let r=V(e,t);return r.headers.set("X-Remix-Replace","true"),r};class K{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function q(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let J=["post","put","patch","delete"],Y=new Set(J),X=new Set(["get",...J]),G=new Set([301,302,303,307,308]),Q=new Set([307,308]),Z={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ee={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},et={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},er=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,en=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ea="remix-router-transitions";function eo(e){let t,r,o,i,s,u,c=e.window?e.window:"undefined"!=typeof window?window:void 0,d=void 0!==c&&void 0!==c.document&&void 0!==c.document.createElement,p=!d;if(h(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let r=e.detectErrorBoundary;t=e=>({hasErrorBoundary:r(e)})}else t=en;let v={},y=w(e.routes,t,void 0,v),g=e.basename||"/",b=e.dataStrategy||em,x=e.patchRoutesOnNavigation,C=l({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),P=null,D=new Set,L=null,_=null,O=null,A=null!=e.hydrationData,T=E(y,e.history.location,g),U=!1,j=null;if(null==T&&!x){let t=eL(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=eD(y);T=r,j={[n.id]:t}}if(T&&!e.hydrationData&&to(T,y,e.history.location.pathname).active&&(T=null),T)if(T.some(e=>e.route.lazy))o=!1;else if(T.some(e=>e.route.loader))if(C.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=T.findIndex(e=>void 0!==r[e.route.id]);o=T.slice(0,e+1).every(e=>!ec(e.route,t,r))}else o=T.every(e=>!ec(e.route,t,r))}else o=null!=e.hydrationData;else o=!0;else if(o=!1,T=[],C.v7_partialHydration){let t=to(null,y,e.history.location.pathname);t.active&&t.matches&&(U=!0,T=t.matches)}let M={historyAction:e.history.action,location:e.history.location,matches:T,initialized:o,navigation:Z,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||j,fetchers:new Map,blockers:new Map},F=n.Pop,N=!1,B=!1,z=new Map,H=null,I=!1,V=!1,$=[],W=new Set,K=new Map,J=0,Y=-1,X=new Map,eo=new Set,es=new Map,ed=new Map,eh=new Set,ep=new Map,ey=new Map;function eE(e,t){void 0===t&&(t={}),M=l({},M,e);let r=[],n=[];C.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(eh.has(t)?n.push(t):r.push(t))}),eh.forEach(e=>{M.fetchers.has(e)||K.has(e)||n.push(e)}),[...D].forEach(e=>e(M,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),C.v7_fetcherPersist?(r.forEach(e=>M.fetchers.delete(e)),n.forEach(e=>e4(e))):n.forEach(e=>eh.delete(e))}function eR(t,a,o){var i,s;let u,c,{flushSync:d}=void 0===o?{}:o,h=null!=M.actionData&&null!=M.navigation.formMethod&&eM(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;u=a.actionData?Object.keys(a.actionData).length>0?a.actionData:null:h?M.actionData:null;let f=a.loaderData?ex(M.loaderData,a.loaderData,a.matches||[],a.errors):M.loaderData,p=M.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,et));let m=!0===N||null!=M.navigation.formMethod&&eM(M.navigation.formMethod)&&(null==(s=t.state)?void 0:s._isRedirect)!==!0;if(r&&(y=r,r=void 0),I||F===n.Pop||(F===n.Push?e.history.push(t,t.state):F===n.Replace&&e.history.replace(t,t.state)),F===n.Pop){let e=z.get(M.location.pathname);e&&e.has(t.pathname)?c={currentLocation:M.location,nextLocation:t}:z.has(t.pathname)&&(c={currentLocation:t,nextLocation:M.location})}else if(B){let e=z.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),z.set(M.location.pathname,e)),c={currentLocation:M.location,nextLocation:t}}eE(l({},a,{actionData:u,loaderData:f,historyAction:F,location:t,initialized:!0,navigation:Z,revalidation:"idle",restoreScrollPosition:ta(t,a.matches||M.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:c,flushSync:!0===d}),F=n.Pop,N=!1,B=!1,I=!1,V=!1,$=[]}async function e_(t,r){if("number"==typeof t)return void e.history.go(t);let a=ei(M.location,M.matches,g,C.v7_prependBasename,t,C.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:o,submission:i,error:s}=el(C.v7_normalizeFormMethod,!1,a,r),u=M.location,c=m(M.location,o,r&&r.state);c=l({},c,e.history.encodeLocation(c));let d=r&&null!=r.replace?r.replace:void 0,h=n.Push;!0===d?h=n.Replace:!1===d||null!=i&&eM(i.formMethod)&&i.formAction===M.location.pathname+M.location.search&&(h=n.Replace);let f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,p=!0===(r&&r.flushSync),v=te({currentLocation:u,nextLocation:c,historyAction:h});return v?void e9(v,{state:"blocked",location:c,proceed(){e9(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),e_(t,r)},reset(){let e=new Map(M.blockers);e.set(v,et),eE({blockers:e})}}):await eU(h,c,{submission:i,pendingError:s,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:p})}async function eU(t,n,o){var i,u,c,d;let h;s&&s.abort(),s=null,F=t,I=!0===(o&&o.startUninterruptedRevalidation),i=M.location,u=M.matches,L&&O&&(L[tn(i,u)]=O()),N=!0===(o&&o.preventScrollReset),B=!0===(o&&o.enableViewTransition);let f=r||y,p=o&&o.overrideNavigation,m=null!=o&&o.initialHydration&&M.matches&&M.matches.length>0&&!U?M.matches:E(f,n,g),v=!0===(o&&o.flushSync);if(m&&M.initialized&&!V&&(c=M.location,d=n,c.pathname===d.pathname&&c.search===d.search&&(""===c.hash?""!==d.hash:c.hash===d.hash||""!==d.hash||!1))&&!(o&&o.submission&&eM(o.submission.formMethod)))return void eR(n,{matches:m},{flushSync:v});let b=to(m,f,n.pathname);if(b.active&&b.matches&&(m=b.matches),!m){let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);eR(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:v});return}s=new AbortController;let w=ew(e.history,n,s.signal,o&&o.submission);if(o&&o.pendingError)h=[eP(m).route.id,{type:a.error,error:o.pendingError}];else if(o&&o.submission&&eM(o.submission.formMethod)){let t=await ez(w,n,o.submission,m,b.active,{replace:o.replace,flushSync:v});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(eA(r)&&q(r.error)&&404===r.error.status){s=null,eR(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}m=t.matches||m,h=t.pendingActionResult,p=eV(n,o.submission),v=!1,b.active=!1,w=ew(e.history,w.url,w.signal)}let{shortCircuited:R,matches:S,loaderData:x,errors:C}=await eK(w,n,m,b.active,p,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,v,h);R||(s=null,eR(n,l({matches:S||m},eC(h),{loaderData:x,errors:C})))}async function ez(e,t,r,o,i,l){var s;let u;if(void 0===l&&(l={}),eZ(),eE({navigation:{state:"submitting",location:t,formMethod:(s=r).formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text}},{flushSync:!0===l.flushSync}),i){let r=await ti(o,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let e=eP(r.partialMatches).route.id;return{matches:r.partialMatches,pendingActionResult:[e,{type:a.error,error:r.error}]}}if(r.matches)o=r.matches;else{let{notFoundMatches:e,error:r,route:n}=tt(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:a.error,error:r}]}}}let c=eH(o,t);if(c.route.action||c.route.lazy){if(u=(await eG("action",M,e,[c],o,null))[c.route.id],e.signal.aborted)return{shortCircuited:!0}}else u={type:a.error,error:eL(405,{method:e.method,pathname:t.pathname,routeId:c.route.id})};if(eT(u)){let t;return t=l&&null!=l.replace?l.replace:eb(u.response.headers.get("Location"),new URL(e.url),g)===M.location.pathname+M.location.search,await eX(e,u,!0,{submission:r,replace:t}),{shortCircuited:!0}}if(eO(u))throw eL(400,{type:"defer-action"});if(eA(u)){let e=eP(o,c.route.id);return!0!==(l&&l.replace)&&(F=n.Push),{matches:o,pendingActionResult:[e.route.id,u]}}return{matches:o,pendingActionResult:[c.route.id,u]}}async function eK(t,n,a,o,i,u,c,d,h,f,p){let m=i||eV(n,u),v=u||c||eI(m),b=!I&&(!C.v7_partialHydration||!h);if(o){if(b){let e=eq(p);eE(l({navigation:m},void 0!==e?{actionData:e}:{}),{flushSync:f})}let e=await ti(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eP(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)a=e.matches;else{let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let w=r||y,[E,R]=eu(e.history,M,a,v,n,C.v7_partialHydration&&!0===h,C.v7_skipActionErrorRevalidation,V,$,W,eh,es,eo,w,g,p);if(tr(e=>!(a&&a.some(t=>t.route.id===e))||E&&E.some(t=>t.route.id===e)),Y=++J,0===E.length&&0===R.length){let e=e2();return eR(n,l({matches:a,loaderData:{},errors:p&&eA(p[1])?{[p[0]]:p[1].error}:null},eC(p),e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(b){let e={};if(!o){e.navigation=m;let t=eq(p);void 0!==t&&(e.actionData=t)}R.length>0&&(R.forEach(e=>{let t=M.fetchers.get(e.key),r=e$(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)}),e.fetchers=new Map(M.fetchers)),eE(e,{flushSync:f})}R.forEach(e=>{e3(e.key),e.controller&&K.set(e.key,e.controller)});let S=()=>R.forEach(e=>e3(e.key));s&&s.signal.addEventListener("abort",S);let{loaderResults:x,fetcherResults:P}=await eQ(M,a,E,R,t);if(t.signal.aborted)return{shortCircuited:!0};s&&s.signal.removeEventListener("abort",S),R.forEach(e=>K.delete(e.key));let D=ek(x);if(D)return await eX(t,D.result,!0,{replace:d}),{shortCircuited:!0};if(D=ek(P))return eo.add(D.key),await eX(t,D.result,!0,{replace:d}),{shortCircuited:!0};let{loaderData:L,errors:k}=eS(M,a,x,p,R,P,ep);ep.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&ep.delete(t)})}),C.v7_partialHydration&&h&&M.errors&&(k=l({},M.errors,k));let _=e2(),O=e6(Y),A=_||O||R.length>0;return l({matches:a,loaderData:L,errors:k},A?{fetchers:new Map(M.fetchers)}:{})}function eq(e){if(e&&!eA(e[1]))return{[e[0]]:e[1].data};if(M.actionData)if(0===Object.keys(M.actionData).length)return null;else return M.actionData}async function eJ(t,n,a,o,i,l,u,c,d){var f,p;function m(e){if(!e.route.action&&!e.route.lazy){let e=eL(405,{method:d.formMethod,pathname:a,routeId:n});return e1(t,n,e,{flushSync:u}),!0}return!1}if(eZ(),es.delete(t),!l&&m(o))return;let v=M.fetchers.get(t);e0(t,(f=d,p=v,{state:"submitting",formMethod:f.formMethod,formAction:f.formAction,formEncType:f.formEncType,formData:f.formData,json:f.json,text:f.text,data:p?p.data:void 0}),{flushSync:u});let b=new AbortController,w=ew(e.history,a,b.signal,d);if(l){let e=await ti(i,new URL(w.url).pathname,w.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void e1(t,n,e.error,{flushSync:u});if(!e.matches)return void e1(t,n,eL(404,{pathname:a}),{flushSync:u});if(m(o=eH(i=e.matches,a)))return}K.set(t,b);let R=J,S=(await eG("action",M,w,[o],i,t))[o.route.id];if(w.signal.aborted){K.get(t)===b&&K.delete(t);return}if(C.v7_fetcherPersist&&eh.has(t)){if(eT(S)||eA(S))return void e0(t,eW(void 0))}else{if(eT(S))return(K.delete(t),Y>R)?void e0(t,eW(void 0)):(eo.add(t),e0(t,e$(d)),eX(w,S,!1,{fetcherSubmission:d,preventScrollReset:c}));if(eA(S))return void e1(t,n,S.error)}if(eO(S))throw eL(400,{type:"defer-action"});let x=M.navigation.location||M.location,P=ew(e.history,x,b.signal),D=r||y,L="idle"!==M.navigation.state?E(D,M.navigation.location,g):M.matches;h(L,"Didn't find any matches after fetcher action");let k=++J;X.set(t,k);let _=e$(d,S.data);M.fetchers.set(t,_);let[O,A]=eu(e.history,M,L,d,x,!1,C.v7_skipActionErrorRevalidation,V,$,W,eh,es,eo,D,g,[o.route.id,S]);A.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=M.fetchers.get(t),n=e$(void 0,r?r.data:void 0);M.fetchers.set(t,n),e3(t),e.controller&&K.set(t,e.controller)}),eE({fetchers:new Map(M.fetchers)});let T=()=>A.forEach(e=>e3(e.key));b.signal.addEventListener("abort",T);let{loaderResults:U,fetcherResults:j}=await eQ(M,L,O,A,P);if(b.signal.aborted)return;b.signal.removeEventListener("abort",T),X.delete(t),K.delete(t),A.forEach(e=>K.delete(e.key));let N=ek(U);if(N)return eX(P,N.result,!1,{preventScrollReset:c});if(N=ek(j))return eo.add(N.key),eX(P,N.result,!1,{preventScrollReset:c});let{loaderData:B,errors:z}=eS(M,L,U,void 0,A,j,ep);if(M.fetchers.has(t)){let e=eW(S.data);M.fetchers.set(t,e)}e6(k),"loading"===M.navigation.state&&k>Y?(h(F,"Expected pending action"),s&&s.abort(),eR(M.navigation.location,{matches:L,loaderData:B,errors:z,fetchers:new Map(M.fetchers)})):(eE({errors:z,loaderData:ex(M.loaderData,B,L,z),fetchers:new Map(M.fetchers)}),V=!1)}async function eY(t,r,n,a,o,i,l,s,u){let c=M.fetchers.get(t);e0(t,e$(u,c?c.data:void 0),{flushSync:l});let d=new AbortController,f=ew(e.history,n,d.signal);if(i){let e=await ti(o,new URL(f.url).pathname,f.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void e1(t,r,e.error,{flushSync:l});if(!e.matches)return void e1(t,r,eL(404,{pathname:n}),{flushSync:l});a=eH(o=e.matches,n)}K.set(t,d);let p=J,m=(await eG("loader",M,f,[a],o,t))[a.route.id];if(eO(m)&&(m=await eB(m,f.signal,!0)||m),K.get(t)===d&&K.delete(t),!f.signal.aborted){if(eh.has(t))return void e0(t,eW(void 0));if(eT(m))if(Y>p)return void e0(t,eW(void 0));else{eo.add(t),await eX(f,m,!1,{preventScrollReset:s});return}if(eA(m))return void e1(t,r,m.error);h(!eO(m),"Unhandled fetcher deferred data"),e0(t,eW(m.data))}}async function eX(t,r,a,o){let{submission:i,fetcherSubmission:u,preventScrollReset:f,replace:p}=void 0===o?{}:o;r.response.headers.has("X-Remix-Revalidate")&&(V=!0);let v=r.response.headers.get("Location");h(v,"Expected a Location header on the redirect Response"),v=eb(v,new URL(t.url),g);let y=m(M.location,v,{_isRedirect:!0});if(d){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(er.test(v)){let r=e.history.createURL(v);t=r.origin!==c.location.origin||null==k(r.pathname,g)}if(t)return void(p?c.location.replace(v):c.location.assign(v))}s=null;let b=!0===p||r.response.headers.has("X-Remix-Replace")?n.Replace:n.Push,{formMethod:w,formAction:E,formEncType:R}=M.navigation;!i&&!u&&w&&E&&R&&(i=eI(M.navigation));let S=i||u;if(Q.has(r.response.status)&&S&&eM(S.formMethod))await eU(b,y,{submission:l({},S,{formAction:v}),preventScrollReset:f||N,enableViewTransition:a?B:void 0});else{let e=eV(y,i);await eU(b,y,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:f||N,enableViewTransition:a?B:void 0})}}async function eG(e,r,n,o,i,l){let s,u={};try{s=await ev(b,e,r,n,o,i,l,v,t)}catch(e){return o.forEach(t=>{u[t.route.id]={type:a.error,error:e}}),u}for(let[e,t]of Object.entries(s)){var c;if(ej((c=t).result)&&G.has(c.result.status)){let r=t.result;u[e]={type:a.redirect,response:function(e,t,r,n,a,o){let i=e.headers.get("Location");if(h(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!er.test(i)){let l=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=ei(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,i,g,C.v7_relativeSplatPath)}}else u[e]=await eg(t)}return u}async function eQ(t,r,n,o,i){let l=t.matches,s=eG("loader",t,i,n,r,null),u=Promise.all(o.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:a.error,error:eL(404,{pathname:r.path})}});{let n=(await eG("loader",t,ew(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),c=await s,d=(await u).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([eF(r,c,i.signal,l,t.loaderData),eN(r,d,o)]),{loaderResults:c,fetcherResults:d}}function eZ(){V=!0,$.push(...tr()),es.forEach((e,t)=>{K.has(t)&&W.add(t),e3(t)})}function e0(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),eE({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function e1(e,t,r,n){void 0===n&&(n={});let a=eP(M.matches,t);e4(e),eE({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function e7(e){return ed.set(e,(ed.get(e)||0)+1),eh.has(e)&&eh.delete(e),M.fetchers.get(e)||ee}function e4(e){let t=M.fetchers.get(e);K.has(e)&&!(t&&"loading"===t.state&&X.has(e))&&e3(e),es.delete(e),X.delete(e),eo.delete(e),C.v7_fetcherPersist&&eh.delete(e),W.delete(e),M.fetchers.delete(e)}function e3(e){let t=K.get(e);t&&(t.abort(),K.delete(e))}function e5(e){for(let t of e){let e=eW(e7(t).data);M.fetchers.set(t,e)}}function e2(){let e=[],t=!1;for(let r of eo){let n=M.fetchers.get(r);h(n,"Expected fetcher: "+r),"loading"===n.state&&(eo.delete(r),e.push(r),t=!0)}return e5(e),t}function e6(e){let t=[];for(let[r,n]of X)if(n<e){let e=M.fetchers.get(r);h(e,"Expected fetcher: "+r),"loading"===e.state&&(e3(r),X.delete(r),t.push(r))}return e5(t),t.length>0}function e8(e){M.blockers.delete(e),ey.delete(e)}function e9(e,t){let r=M.blockers.get(e)||et;h("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(M.blockers);n.set(e,t),eE({blockers:n})}function te(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===ey.size)return;ey.size>1&&f(!1,"A router only supports one blocker at a time");let a=Array.from(ey.entries()),[o,i]=a[a.length-1],l=M.blockers.get(o);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function tt(e){let t=eL(404,{pathname:e}),{matches:n,route:a}=eD(r||y);return tr(),{notFoundMatches:n,route:a,error:t}}function tr(e){let t=[];return ep.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),ep.delete(n))}),t}function tn(e,t){return _&&_(e,t.map(e=>S(e,M.loaderData)))||e.key}function ta(e,t){if(L){let r=L[tn(e,t)];if("number"==typeof r)return r}return null}function to(e,t,r){if(x){if(!e)return{active:!0,matches:R(t,r,g,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:R(t,r,g,!0)}}return{active:!1,matches:null}}async function ti(e,n,a,o){if(!x)return{type:"success",matches:e};let i=e;for(;;){let e=null==r,l=r||y,s=v;try{await x({signal:a,path:n,matches:i,fetcherKey:o,patch:(e,r)=>{a.aborted||ef(e,r,l,s,t)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!a.aborted&&(y=[...y])}if(a.aborted)return{type:"aborted"};let u=E(l,n,g);if(u)return{type:"success",matches:u};let c=R(l,n,g,!0);if(!c||i.length===c.length&&i.every((e,t)=>e.route.id===c[t].route.id))return{type:"success",matches:null};i=c}}return i={get basename(){return g},get future(){return C},get state(){return M},get routes(){return y},get window(){return c},initialize:function(){if(P=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(u){u(),u=void 0;return}f(0===ey.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=te({currentLocation:M.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{u=e});e.history.go(-1*a),e9(o,{state:"blocked",location:n,proceed(){e9(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(M.blockers);e.set(o,et),eE({blockers:e})}});return}return eU(r,n)}),d){var t=c,r=z;try{let e=t.sessionStorage.getItem(ea);if(e){let t=JSON.parse(e);for(let[e,n]of Object.entries(t||{}))n&&Array.isArray(n)&&r.set(e,new Set(n||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ea,JSON.stringify(r))}catch(e){f(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(c,z);c.addEventListener("pagehide",e),H=()=>c.removeEventListener("pagehide",e)}return M.initialized||eU(n.Pop,M.location,{initialHydration:!0}),i},subscribe:function(e){return D.add(e),()=>D.delete(e)},enableScrollRestoration:function(e,t,r){if(L=e,O=t,_=r||null,!A&&M.navigation===Z){A=!0;let e=ta(M.location,M.matches);null!=e&&eE({restoreScrollPosition:e})}return()=>{L=null,O=null,_=null}},navigate:e_,fetch:function(e,t,n,a){if(p)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");e3(e);let o=!0===(a&&a.flushSync),i=r||y,l=ei(M.location,M.matches,g,C.v7_prependBasename,n,C.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=E(i,l,g),u=to(s,i,l);if(u.active&&u.matches&&(s=u.matches),!s)return void e1(e,t,eL(404,{pathname:l}),{flushSync:o});let{path:c,submission:d,error:h}=el(C.v7_normalizeFormMethod,!0,l,a);if(h)return void e1(e,t,h,{flushSync:o});let f=eH(s,c),m=!0===(a&&a.preventScrollReset);d&&eM(d.formMethod)?eJ(e,t,c,f,s,u.active,o,m,d):(es.set(e,{routeId:t,path:c}),eY(e,t,c,f,s,u.active,o,m,d))},revalidate:function(){if(eZ(),eE({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state)return void eU(M.historyAction,M.location,{startUninterruptedRevalidation:!0});eU(F||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===B})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:e7,deleteFetcher:function(e){let t=(ed.get(e)||0)-1;t<=0?(ed.delete(e),eh.add(e),C.v7_fetcherPersist||e4(e)):ed.set(e,t),eE({fetchers:new Map(M.fetchers)})},dispose:function(){P&&P(),H&&H(),D.clear(),s&&s.abort(),M.fetchers.forEach((e,t)=>e4(t)),M.blockers.forEach((e,t)=>e8(t))},getBlocker:function(e,t){let r=M.blockers.get(e)||et;return ey.get(e)!==t&&ey.set(e,t),r},deleteBlocker:e8,patchRoutes:function(e,n){let a=null==r;ef(e,n,r||y,v,t),a&&(y=[...y],eE({}))},_internalFetchControllers:K,_internalActiveDeferreds:ep,_internalSetRoutes:function(e){r=w(e,t,void 0,v={})}}}function ei(e,t,r,n,a,o,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=U(a||".",T(s,o),k(e.pathname,r)||e.pathname,"path"===l);if(null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u){let e=ez(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:j([r,c.pathname])),v(c)}function el(e,t,r,n){var a;let o,i;if(!n||!(null!=n&&("formData"in n&&null!=n.formData||"body"in n&&void 0!==n.body)))return{path:r};if(n.formMethod&&(a=n.formMethod,!X.has(a.toLowerCase())))return{path:r,error:eL(405,{method:n.formMethod})};let l=()=>({path:r,error:eL(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=e_(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eM(u))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===n.formEncType){if(!eM(u))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(h("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=eE(n.formData),i=n.formData;else if(n.body instanceof FormData)o=eE(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=eR(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=eR(o)}catch(e){return l()}let d={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eM(d.formMethod))return{path:r,submission:d};let f=y(r);return t&&f.search&&ez(f.search)&&o.append("index",""),f.search="?"+o,{path:v(f),submission:d}}function es(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function eu(e,t,r,n,a,o,i,s,u,c,d,h,f,p,m,v){let y=v?eA(v[1])?v[1].error:v[1].data:void 0,g=e.createURL(t.location),b=e.createURL(a),w=r;o&&t.errors?w=es(r,Object.keys(t.errors)[0],!0):v&&eA(v[1])&&(w=es(r,v[0]));let R=v?v[1].statusCode:void 0,S=i&&R&&R>=400,x=w.filter((e,r)=>{var a,i,c;let d,h,{route:f}=e;if(f.lazy)return!0;if(null==f.loader)return!1;if(o)return ec(f,t.loaderData,t.errors);if(a=t.loaderData,i=t.matches[r],c=e,d=!i||c.route.id!==i.route.id,h=void 0===a[c.route.id],d||h||u.some(t=>t===e.route.id))return!0;let p=t.matches[r];return eh(e,l({currentUrl:g,currentParams:p.params,nextUrl:b,nextParams:e.params},n,{actionResult:y,actionStatus:R,defaultShouldRevalidate:!S&&(s||g.pathname+g.search===b.pathname+b.search||g.search!==b.search||ed(p,e))}))}),C=[];return h.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||d.has(a))return;let i=E(p,e.path,m);if(!i)return void C.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(a),h=eH(i,e.path),v=!1;f.has(a)?v=!1:c.has(a)?(c.delete(a),v=!0):v=u&&"idle"!==u.state&&void 0===u.data?s:eh(h,l({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:y,actionStatus:R,defaultShouldRevalidate:!S&&s})),v&&C.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:h,controller:new AbortController})}),[x,C]}function ec(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return(!!n||!a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function ed(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function eh(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function ef(e,t,r,n,a){var o;let i;if(e){let t=n[e];h(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=w(t.filter(e=>!i.some(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||t.children.every((t,n)=>{var a;return null==(a=r.children)?void 0:a.some(r=>e(t,r))}))})(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...l)}async function ep(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];h(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;f(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||b.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,l({},t(a),{lazy:void 0}))}async function em(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}async function ev(e,t,r,n,o,i,s,u,c,d){let h=i.map(e=>e.route.lazy?ep(e.route,c,u):void 0),f=i.map((e,r)=>{let i=h[r],s=o.some(t=>t.route.id===e.route.id),u=async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(s=!0),s?ey(t,n,e,i,r,d):Promise.resolve({type:a.data,result:void 0}));return l({},e,{shouldLoad:s,resolve:u})}),p=await e({matches:f,request:n,params:i[0].params,fetcherKey:s,context:d});try{await Promise.all(h)}catch(e){}return p}async function ey(e,t,r,n,o,i){let l,s,u=n=>{let a,l=new Promise((e,t)=>a=t);s=()=>a(),t.signal.addEventListener("abort",s);let u=a=>"function"!=typeof n?Promise.reject(Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: ')+r.route.id+"]")):n({request:t,params:r.params,context:i},...void 0!==a?[a]:[]);return Promise.race([(async()=>{try{let e=await (o?o(e=>u(e)):u());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),l])};try{let o=r.route[e];if(n)if(o){let e,[t]=await Promise.all([u(o).catch(t=>{e=t}),n]);if(void 0!==e)throw e;l=t}else if(await n,o=r.route[e])l=await u(o);else{if("action"!==e)return{type:a.data,result:void 0};let n=new URL(t.url),o=n.pathname+n.search;throw eL(405,{method:t.method,pathname:o,routeId:r.route.id})}else if(o)l=await u(o);else{let e=new URL(t.url),r=e.pathname+e.search;throw eL(404,{pathname:r})}h(void 0!==l.result,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `")+e+"` function. Please return a value or `null`.")}catch(e){return{type:a.error,result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return l}async function eg(e){var t,r,n,o,i,l,s,u,c;let{result:d,type:h}=e;if(ej(d)){let e;try{let t=d.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==d.body?null:await d.json():await d.text()}catch(e){return{type:a.error,error:e}}return h===a.error?{type:a.error,error:new K(d.status,d.statusText,e),statusCode:d.status,headers:d.headers}:{type:a.data,data:e,statusCode:d.status,headers:d.headers}}if(h===a.error)return eU(d)?d.data instanceof Error?{type:a.error,error:d.data,statusCode:null==(n=d.init)?void 0:n.status,headers:null!=(o=d.init)&&o.headers?new Headers(d.init.headers):void 0}:{type:a.error,error:new K((null==(t=d.init)?void 0:t.status)||500,void 0,d.data),statusCode:q(d)?d.status:void 0,headers:null!=(r=d.init)&&r.headers?new Headers(d.init.headers):void 0}:{type:a.error,error:d,statusCode:q(d)?d.status:void 0};return(c=d)&&"object"==typeof c&&"object"==typeof c.data&&"function"==typeof c.subscribe&&"function"==typeof c.cancel&&"function"==typeof c.resolveData?{type:a.deferred,deferredData:d,statusCode:null==(i=d.init)?void 0:i.status,headers:(null==(l=d.init)?void 0:l.headers)&&new Headers(d.init.headers)}:eU(d)?{type:a.data,data:d.data,statusCode:null==(s=d.init)?void 0:s.status,headers:null!=(u=d.init)&&u.headers?new Headers(d.init.headers):void 0}:{type:a.data,data:d}}function eb(e,t,r){if(er.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e),a=null!=k(n.pathname,r);if(n.origin===t.origin&&a)return n.pathname+n.search+n.hash}return e}function ew(e,t,r,n){let a=e.createURL(e_(t)).toString(),o={signal:r};if(n&&eM(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=eE(n.formData):o.body=n.formData}return new Request(a,o)}function eE(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function eR(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function eS(e,t,r,n,a,o,i){let s,u,c,d,f,p,{loaderData:m,errors:v}=(u={},c=null,d=!1,f={},p=n&&eA(n[1])?n[1].error:void 0,t.forEach(e=>{if(!(e.route.id in r))return;let n=e.route.id,a=r[n];if(h(!eT(a),"Cannot handle redirect results in processLoaderData"),eA(a)){let e=a.error;void 0!==p&&(e=p,p=void 0),c=c||{},1;{let r=eP(t,n);null==c[r.route.id]&&(c[r.route.id]=e)}u[n]=void 0,d||(d=!0,s=q(a.error)?a.error.status:500),a.headers&&(f[n]=a.headers)}else eO(a)?(i.set(n,a.deferredData),u[n]=a.deferredData.data,null==a.statusCode||200===a.statusCode||d||(s=a.statusCode)):(u[n]=a.data,a.statusCode&&200!==a.statusCode&&!d&&(s=a.statusCode)),a.headers&&(f[n]=a.headers)}),void 0!==p&&n&&(c={[n[0]]:p},u[n[0]]=void 0),{loaderData:u,errors:c,statusCode:s||200,loaderHeaders:f});return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(h(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(eA(i)){let t=eP(e.matches,null==n?void 0:n.route.id);v&&v[t.route.id]||(v=l({},v,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(eT(i))h(!1,"Unhandled fetcher revalidation redirect");else if(eO(i))h(!1,"Unhandled fetcher deferred data");else{let t=eW(i.data);e.fetchers.set(r,t)}}),{loaderData:m,errors:v}}function ex(e,t,r,n){let a=l({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function eC(e){return e?eA(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function eP(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function eD(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function eL(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(l="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(l="Not Found",s='No route matches URL "'+r+'"'):405===e&&(l="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new K(e||500,l,Error(s),!0)}function ek(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(eT(n))return{key:r,result:n}}}function e_(e){let t="string"==typeof e?y(e):e;return v(l({},t,{hash:""}))}function eO(e){return e.type===a.deferred}function eA(e){return e.type===a.error}function eT(e){return(e&&e.type)===a.redirect}function eU(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function ej(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eM(e){return Y.has(e.toLowerCase())}async function eF(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[l,s]=o[i],u=e.find(e=>(null==e?void 0:e.route.id)===l);if(!u)continue;let c=n.find(e=>e.route.id===u.route.id),d=null!=c&&!ed(c,u)&&(a&&a[u.route.id])!==void 0;eO(s)&&d&&await eB(s,r,!1).then(e=>{e&&(t[l]=e)})}}async function eN(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],l=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&eO(l)&&(h(i,"Expected an AbortController for revalidating fetcher deferred result"),await eB(l,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function eB(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:a.data,data:e.deferredData.unwrappedData}}catch(e){return{type:a.error,error:e}}return{type:a.data,data:e.deferredData.data}}}function ez(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eH(e,t){let r="string"==typeof t?y(t).search:t.search;if(e[e.length-1].route.index&&ez(r||""))return e[e.length-1];let n=A(e);return n[n.length-1]}function eI(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function eV(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function e$(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function eW(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}Symbol("deferred")},49348:function(e,t,r){r.r(t),r.d(t,{AbortedDeferredError:()=>c.tH,Await:()=>u.jD,BrowserRouter:()=>U,Form:()=>H,HashRouter:()=>j,Link:()=>B,MemoryRouter:()=>u.fS,NavLink:()=>z,Navigate:()=>u.C5,NavigationType:()=>c.rc,Outlet:()=>u.sv,Route:()=>u.qh,Router:()=>u.Ix,RouterProvider:()=>A,Routes:()=>u.BV,ScrollRestoration:()=>I,UNSAFE_DataRouterContext:()=>u.sp,UNSAFE_DataRouterStateContext:()=>u.Rq,UNSAFE_ErrorResponseImpl:()=>c.VV,UNSAFE_FetchersContext:()=>P,UNSAFE_LocationContext:()=>u.yN,UNSAFE_NavigationContext:()=>u.jb,UNSAFE_RouteContext:()=>u.UX,UNSAFE_ViewTransitionContext:()=>C,UNSAFE_useRouteId:()=>u.$3,UNSAFE_useScrollRestoration:()=>et,createBrowserRouter:()=>R,createHashRouter:()=>S,createMemoryRouter:()=>u.bg,createPath:()=>c.AO,createRoutesFromChildren:()=>u.AV,createRoutesFromElements:()=>u.Eu,createSearchParams:()=>m,defer:()=>c.v6,generatePath:()=>c.tW,isRouteErrorResponse:()=>c.pX,json:()=>c.Pq,matchPath:()=>c.B6,matchRoutes:()=>c.ue,parsePath:()=>c.Rr,redirect:()=>c.V2,redirectDocument:()=>c.Sk,renderMatches:()=>u.KT,replace:()=>c.HC,resolvePath:()=>c.o1,unstable_HistoryRouter:()=>M,unstable_usePrompt:()=>en,useActionData:()=>u.mP,useAsyncError:()=>u.oI,useAsyncValue:()=>u.J8,useBeforeUnload:()=>er,useBlocker:()=>u.KP,useFetcher:()=>G,useFetchers:()=>Q,useFormAction:()=>X,useHref:()=>u.$P,useInRouterContext:()=>u.Ri,useLinkClickHandler:()=>W,useLoaderData:()=>u.LG,useLocation:()=>u.zy,useMatch:()=>u.RQ,useMatches:()=>u.FE,useNavigate:()=>u.Zp,useNavigation:()=>u.cq,useNavigationType:()=>u.wQ,useOutlet:()=>u.P1,useOutletContext:()=>u.KC,useParams:()=>u.g,useResolvedPath:()=>u.x$,useRevalidator:()=>u.vL,useRouteError:()=>u.r5,useRouteLoaderData:()=>u.Ew,useRoutes:()=>u.Ye,useSearchParams:()=>K,useSubmit:()=>Y,useViewTransitionState:()=>ea});var n,a,o,i,l=r(70451),s=r(20231),u=r(67435),c=r(70744);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function h(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}let f="application/x-www-form-urlencoded";function p(e){return null!=e&&"string"==typeof e.tagName}function m(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}let v=null,y=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function g(e){return null==e||y.has(e)?e:null}let b=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],w=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],E=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function R(e,t){return(0,c.aE)({basename:null==t?void 0:t.basename,future:d({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,c.zR)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||x(),routes:e,mapRouteProperties:u.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function S(e,t){return(0,c.aE)({basename:null==t?void 0:t.basename,future:d({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,c.TM)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||x(),routes:e,mapRouteProperties:u.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function x(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=d({},t,{errors:function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new c.VV(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(t.errors)})),t}let C=l.createContext({isTransitioning:!1}),P=l.createContext(new Map),D=l.startTransition,L=s.flushSync,k=l.useId;function _(e){L?L(e):e()}class O{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function A(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=l.useState(r.state),[i,s]=l.useState(),[c,d]=l.useState({isTransitioning:!1}),[h,f]=l.useState(),[p,m]=l.useState(),[v,y]=l.useState(),g=l.useRef(new Map),{v7_startTransition:b}=n||{},w=l.useCallback(e=>{if(b)D?D(e):e();else e()},[b]),E=l.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)}),n.forEach(e=>g.current.delete(e));let l=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||l)return void(a?_(()=>o(e)):w(()=>o(e)));if(a){_(()=>{p&&(h&&h.resolve(),p.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{_(()=>o(e))});t.finished.finally(()=>{_(()=>{f(void 0),m(void 0),s(void 0),d({isTransitioning:!1})})}),_(()=>m(t));return}p?(h&&h.resolve(),p.skipTransition(),y({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(s(e),d({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,p,h,g,w]);l.useLayoutEffect(()=>r.subscribe(E),[r,E]),l.useEffect(()=>{c.isTransitioning&&!c.flushSync&&f(new O)},[c]),l.useEffect(()=>{if(h&&i&&r.window){let e=h.promise,t=r.window.document.startViewTransition(async()=>{w(()=>o(i)),await e});t.finished.finally(()=>{f(void 0),m(void 0),s(void 0),d({isTransitioning:!1})}),m(t)}},[w,i,h,r.window]),l.useEffect(()=>{h&&i&&a.location.key===i.location.key&&h.resolve()},[h,p,a.location,i]),l.useEffect(()=>{!c.isTransitioning&&v&&(s(v.state),d({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[c.isTransitioning,v]),l.useEffect(()=>{},[]);let R=l.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),S=r.basename||"/",x=l.useMemo(()=>({router:r,navigator:R,static:!1,basename:S}),[r,R,S]),L=l.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return l.useEffect(()=>(0,u.V8)(n,r.future),[n,r.future]),l.createElement(l.Fragment,null,l.createElement(u.sp.Provider,{value:x},l.createElement(u.Rq.Provider,{value:a},l.createElement(P.Provider,{value:g.current},l.createElement(C.Provider,{value:c},l.createElement(u.Ix,{basename:S,location:a.location,navigationType:a.historyAction,navigator:R,future:L},a.initialized||r.future.v7_partialHydration?l.createElement(T,{routes:r.routes,future:r.future,state:a}):t))))),null)}let T=l.memo(function(e){let{routes:t,future:r,state:n}=e;return(0,u.ph)(t,void 0,n,r)});function U(e){let{basename:t,children:r,future:n,window:a}=e,o=l.useRef();null==o.current&&(o.current=(0,c.zR)({window:a,v5Compat:!0}));let i=o.current,[s,d]=l.useState({action:i.action,location:i.location}),{v7_startTransition:h}=n||{},f=l.useCallback(e=>{h&&D?D(()=>d(e)):d(e)},[d,h]);return l.useLayoutEffect(()=>i.listen(f),[i,f]),l.useEffect(()=>(0,u.V8)(n),[n]),l.createElement(u.Ix,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:i,future:n})}function j(e){let{basename:t,children:r,future:n,window:a}=e,o=l.useRef();null==o.current&&(o.current=(0,c.TM)({window:a,v5Compat:!0}));let i=o.current,[s,d]=l.useState({action:i.action,location:i.location}),{v7_startTransition:h}=n||{},f=l.useCallback(e=>{h&&D?D(()=>d(e)):d(e)},[d,h]);return l.useLayoutEffect(()=>i.listen(f),[i,f]),l.useEffect(()=>(0,u.V8)(n),[n]),l.createElement(u.Ix,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:i,future:n})}function M(e){let{basename:t,children:r,future:n,history:a}=e,[o,i]=l.useState({action:a.action,location:a.location}),{v7_startTransition:s}=n||{},c=l.useCallback(e=>{s&&D?D(()=>i(e)):i(e)},[i,s]);return l.useLayoutEffect(()=>a.listen(c),[a,c]),l.useEffect(()=>(0,u.V8)(n),[n]),l.createElement(u.Ix,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}let F="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,N=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,B=l.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:f,to:p,preventScrollReset:m,viewTransition:v}=e,y=h(e,b),{basename:g}=l.useContext(u.jb),w=!1;if("string"==typeof p&&N.test(p)&&(r=p,F))try{let e=new URL(window.location.href),t=new URL(p.startsWith("//")?e.protocol+p:p),r=(0,c.pb)(t.pathname,g);t.origin===e.origin&&null!=r?p=r+t.search+t.hash:w=!0}catch(e){}let E=(0,u.$P)(p,{relative:a}),R=W(p,{replace:i,state:s,target:f,preventScrollReset:m,relative:a,viewTransition:v});return l.createElement("a",d({},y,{href:r||E,onClick:w||o?n:function(e){n&&n(e),e.defaultPrevented||R(e)},ref:t,target:f}))}),z=l.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:s,to:f,viewTransition:p,children:m}=e,v=h(e,w),y=(0,u.x$)(f,{relative:v.relative}),g=(0,u.zy)(),b=l.useContext(u.Rq),{navigator:E,basename:R}=l.useContext(u.jb),S=null!=b&&ea(y)&&!0===p,x=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,C=g.pathname,P=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;a||(C=C.toLowerCase(),P=P?P.toLowerCase():null,x=x.toLowerCase()),P&&R&&(P=(0,c.pb)(P,R)||P);let D="/"!==x&&x.endsWith("/")?x.length-1:x.length,L=C===x||!i&&C.startsWith(x)&&"/"===C.charAt(D),k=null!=P&&(P===x||!i&&P.startsWith(x)&&"/"===P.charAt(x.length)),_={isActive:L,isPending:k,isTransitioning:S},O=L?n:void 0;r="function"==typeof o?o(_):[o,L?"active":null,k?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let A="function"==typeof s?s(_):s;return l.createElement(B,d({},v,{"aria-current":O,className:r,ref:t,style:A,to:f,viewTransition:p}),"function"==typeof m?m(_):m)}),H=l.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:a,replace:o,state:i,method:s="get",action:u,onSubmit:c,relative:f,preventScrollReset:p,viewTransition:m}=e,v=h(e,E),y=Y(),g=X(u,{relative:f}),b="get"===s.toLowerCase()?"get":"post";return l.createElement("form",d({ref:t,method:b,action:g,onSubmit:a?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||s;y(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:o,state:i,relative:f,preventScrollReset:p,viewTransition:m})}},v))});function I(e){let{getKey:t,storageKey:r}=e;return et({getKey:t,storageKey:r}),null}function V(e){let t=l.useContext(u.sp);return t||(0,c.Oi)(!1),t}function $(e){let t=l.useContext(u.Rq);return t||(0,c.Oi)(!1),t}function W(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:s}=void 0===t?{}:t,d=(0,u.Zp)(),h=(0,u.zy)(),f=(0,u.x$)(e,{relative:i});return l.useCallback(t=>{0!==t.button||r&&"_self"!==r||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),d(e,{replace:void 0!==n?n:(0,c.AO)(h)===(0,c.AO)(f),state:a,preventScrollReset:o,relative:i,viewTransition:s}))},[h,d,f,n,a,r,e,o,i,s])}function K(e){let t=l.useRef(m(e)),r=l.useRef(!1),n=(0,u.zy)(),a=l.useMemo(()=>{var e,a;let o;return e=n.search,a=r.current?null:t.current,o=m(e),a&&a.forEach((e,t)=>{o.has(t)||a.getAll(t).forEach(e=>{o.append(t,e)})}),o},[n.search]),o=(0,u.Zp)(),i=l.useCallback((e,t)=>{let n=m("function"==typeof e?e(a):e);r.current=!0,o("?"+n,t)},[o,a]);return[a,i]}(n=o||(o={})).UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState",(a=i||(i={})).UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration";let q=0,J=()=>"__"+String(++q)+"__";function Y(){let{router:e}=V(o.UseSubmit),{basename:t}=l.useContext(u.jb),r=(0,u.$3)();return l.useCallback(function(n,a){if(void 0===a&&(a={}),"undefined"==typeof document)throw Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");let{action:o,method:i,encType:l,formData:s,body:u}=function(e,t){let r,n,a,o,i;if(p(e)&&"form"===e.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?(0,c.pb)(i,t):null,r=e.getAttribute("method")||"get",a=g(e.getAttribute("enctype"))||f,o=new FormData(e)}else if(p(e)&&"button"===e.tagName.toLowerCase()||p(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(n=l?(0,c.pb)(l,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||"get",a=g(e.getAttribute("formenctype"))||g(i.getAttribute("enctype"))||f,o=new FormData(i,e),!function(){if(null===v)try{new FormData(document.createElement("form"),0),v=!1}catch(e){v=!0}return v}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,n)}}else if(p(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else r="get",n=null,a=f,i=e;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}(n,t);if(!1===a.navigate){let t=a.fetcherKey||J();e.fetch(t,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,flushSync:a.flushSync})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function X(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=l.useContext(u.jb),a=l.useContext(u.UX);a||(0,c.Oi)(!1);let[o]=a.matches.slice(-1),i=d({},(0,u.x$)(e||".",{relative:r})),s=(0,u.zy)();if(null==e){i.search=s.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();i.search=r?"?"+r:""}}return(!e||"."===e)&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:(0,c.HS)([n,i.pathname])),(0,c.AO)(i)}function G(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=V(o.UseFetcher),a=$(i.UseFetcher),s=l.useContext(P),h=l.useContext(u.UX),f=null==(t=h.matches[h.matches.length-1])?void 0:t.route.id;s||(0,c.Oi)(!1),h||(0,c.Oi)(!1),null==f&&(0,c.Oi)(!1);let p=k?k():"",[m,v]=l.useState(r||p);r&&r!==m?v(r):m||v(J()),l.useEffect(()=>(n.getFetcher(m),()=>{n.deleteFetcher(m)}),[n,m]);let y=l.useCallback((e,t)=>{f||(0,c.Oi)(!1),n.fetch(m,f,e,t)},[m,f,n]),g=Y(),b=l.useCallback((e,t)=>{g(e,d({},t,{navigate:!1,fetcherKey:m}))},[m,g]),w=l.useMemo(()=>l.forwardRef((e,t)=>l.createElement(H,d({},e,{navigate:!1,fetcherKey:m,ref:t}))),[m]),E=a.fetchers.get(m)||c.HW,R=s.get(m);return l.useMemo(()=>d({Form:w,submit:b,load:y},E,{data:R}),[w,b,y,E,R])}function Q(){return Array.from($(i.UseFetchers).fetchers.entries()).map(e=>{let[t,r]=e;return d({},r,{key:t})})}let Z="react-router-scroll-positions",ee={};function et(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=V(o.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:s}=$(i.UseScrollRestoration),{basename:h}=l.useContext(u.jb),f=(0,u.zy)(),p=(0,u.FE)(),m=(0,u.cq)();l.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e,t){let{capture:r}={};l.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}},[e,r])}(l.useCallback(()=>{"idle"===m.state&&(ee[(t?t(f,p):null)||f.key]=window.scrollY);try{sessionStorage.setItem(r||Z,JSON.stringify(ee))}catch(e){}window.history.scrollRestoration="auto"},[r,t,m.state,f,p])),"undefined"!=typeof document&&(l.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||Z);e&&(ee=JSON.parse(e))}catch(e){}},[r]),l.useLayoutEffect(()=>{let e=t&&"/"!==h?(e,r)=>t(d({},e,{pathname:(0,c.pb)(e.pathname,h)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(ee,()=>window.scrollY,e);return()=>r&&r()},[n,h,t]),l.useLayoutEffect(()=>{if(!1!==a){if("number"==typeof a)return void window.scrollTo(0,a);if(f.hash){let e=document.getElementById(decodeURIComponent(f.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==s&&window.scrollTo(0,0)}},[f,a,s]))}function er(e,t){let{capture:r}=t||{};l.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function en(e){let{when:t,message:r}=e,n=(0,u.KP)(t);l.useEffect(()=>{"blocked"===n.state&&(window.confirm(r)?setTimeout(n.proceed,0):n.reset())},[n,r]),l.useEffect(()=>{"blocked"!==n.state||t||n.reset()},[n,t])}function ea(e,t){void 0===t&&(t={});let r=l.useContext(C);null==r&&(0,c.Oi)(!1);let{basename:n}=V(o.useViewTransitionState),a=(0,u.x$)(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=(0,c.pb)(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=(0,c.pb)(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=(0,c.B6)(a.pathname,s)||null!=(0,c.B6)(a.pathname,i)}},67435:function(e,t,r){r.d(t,{$3:()=>B,$P:()=>v,AV:()=>eh,BV:()=>ei,C5:()=>er,Eu:()=>eh,Ew:()=>$,FE:()=>I,Ix:()=>eo,J8:()=>q,KC:()=>x,KP:()=>X,KT:()=>ef,LG:()=>V,P1:()=>C,RQ:()=>w,Ri:()=>y,Rq:()=>c,UX:()=>p,V8:()=>Z,Ye:()=>L,Zp:()=>R,bg:()=>em,cq:()=>z,fS:()=>et,g:()=>P,jD:()=>el,jb:()=>h,mP:()=>W,oI:()=>J,ph:()=>k,qh:()=>ea,r5:()=>K,sp:()=>u,sv:()=>en,vL:()=>H,wE:()=>ep,wQ:()=>b,x$:()=>D,yN:()=>f,zy:()=>g});var n,a,o,i=r(70451),l=r(70744);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let u=i.createContext(null),c=i.createContext(null),d=i.createContext(null),h=i.createContext(null),f=i.createContext(null),p=i.createContext({outlet:null,matches:[],isDataRoute:!1}),m=i.createContext(null);function v(e,t){let{relative:r}=void 0===t?{}:t;y()||(0,l.Oi)(!1);let{basename:n,navigator:a}=i.useContext(h),{hash:o,pathname:s,search:u}=D(e,{relative:r}),c=s;return"/"!==n&&(c="/"===s?n:(0,l.HS)([n,s])),a.createHref({pathname:c,search:u,hash:o})}function y(){return null!=i.useContext(f)}function g(){return y()||(0,l.Oi)(!1),i.useContext(f).location}function b(){return i.useContext(f).navigationType}function w(e){y()||(0,l.Oi)(!1);let{pathname:t}=g();return i.useMemo(()=>(0,l.B6)(e,(0,l.RO)(t)),[t,e])}function E(e){i.useContext(h).static||i.useLayoutEffect(e)}function R(){let{isDataRoute:e}=i.useContext(p);return e?function(){let{router:e}=M(U.UseNavigateStable),t=N(j.UseNavigateStable),r=i.useRef(!1);return E(()=>{r.current=!0}),i.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,s({fromRouteId:t},a)))},[e,t])}():function(){y()||(0,l.Oi)(!1);let e=i.useContext(u),{basename:t,future:r,navigator:n}=i.useContext(h),{matches:a}=i.useContext(p),{pathname:o}=g(),s=JSON.stringify((0,l.yD)(a,r.v7_relativeSplatPath)),c=i.useRef(!1);return E(()=>{c.current=!0}),i.useCallback(function(r,a){if(void 0===a&&(a={}),!c.current)return;if("number"==typeof r)return void n.go(r);let i=(0,l.Gh)(r,JSON.parse(s),o,"path"===a.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:(0,l.HS)([t,i.pathname])),(a.replace?n.replace:n.push)(i,a.state,a)},[t,n,s,o,e])}()}let S=i.createContext(null);function x(){return i.useContext(S)}function C(e){let t=i.useContext(p).outlet;return t?i.createElement(S.Provider,{value:e},t):t}function P(){let{matches:e}=i.useContext(p),t=e[e.length-1];return t?t.params:{}}function D(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=i.useContext(h),{matches:a}=i.useContext(p),{pathname:o}=g(),s=JSON.stringify((0,l.yD)(a,n.v7_relativeSplatPath));return i.useMemo(()=>(0,l.Gh)(e,JSON.parse(s),o,"path"===r),[e,s,o,r])}function L(e,t){return k(e,t)}function k(e,t,r,n){let a;y()||(0,l.Oi)(!1);let{navigator:o,static:u}=i.useContext(h),{matches:c}=i.useContext(p),d=c[c.length-1],m=d?d.params:{};d&&d.pathname;let v=d?d.pathnameBase:"/";d&&d.route;let b=g();if(t){var w;let e="string"==typeof t?(0,l.Rr)(t):t;"/"===v||(null==(w=e.pathname)?void 0:w.startsWith(v))||(0,l.Oi)(!1),a=e}else a=b;let E=a.pathname||"/",R=E;if("/"!==v){let e=v.replace(/^\//,"").split("/");R="/"+E.replace(/^\//,"").split("/").slice(e.length).join("/")}let S=!u&&r&&r.matches&&r.matches.length>0?r.matches:(0,l.ue)(e,{pathname:R}),x=T(S&&S.map(e=>Object.assign({},e,{params:Object.assign({},m,e.params),pathname:(0,l.HS)([v,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?v:(0,l.HS)([v,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),c,r,n);return t&&x?i.createElement(f.Provider,{value:{location:s({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:l.rc.Pop}},x):x}let _=i.createElement(function(){let e=K(),t=(0,l.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class O extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement(p.Provider,{value:this.props.routeContext},i.createElement(m.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function A(e){let{routeContext:t,match:r,children:n}=e,a=i.useContext(u);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),i.createElement(p.Provider,{value:t},n)}function T(e,t,r,n){var a,o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(null==(o=n)||!o.v7_partialHydration||0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let s=e,u=null==(a=r)?void 0:a.errors;if(null!=u){let e=s.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id])!==void 0);e>=0||(0,l.Oi)(!1),s=s.slice(0,Math.min(s.length,e+1))}let c=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){c=!0,s=d>=0?s.slice(0,d+1):[s[0]];break}}}return s.reduceRight((e,n,a)=>{var o;let l,h=!1,f=null,p=null;r&&(l=u&&n.route.id?u[n.route.id]:void 0,f=n.route.errorElement||_,c&&(d<0&&0===a?(o="route-fallback",G[o]||(G[o]=!0),h=!0,p=null):d===a&&(h=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,a+1)),v=()=>{let t;return t=l?f:h?p:n.route.Component?i.createElement(n.route.Component,null):n.route.element?n.route.element:e,i.createElement(A,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?i.createElement(O,{location:r.location,revalidation:r.revalidation,component:f,error:l,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var U=((n=U||{}).UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n),j=((a=j||{}).UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a);function M(e){let t=i.useContext(u);return t||(0,l.Oi)(!1),t}function F(e){let t=i.useContext(c);return t||(0,l.Oi)(!1),t}function N(e){let t,r=((t=i.useContext(p))||(0,l.Oi)(!1),t),n=r.matches[r.matches.length-1];return n.route.id||(0,l.Oi)(!1),n.route.id}function B(){return N(j.UseRouteId)}function z(){return F(j.UseNavigation).navigation}function H(){let e=M(U.UseRevalidator),t=F(j.UseRevalidator);return i.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function I(){let{matches:e,loaderData:t}=F(j.UseMatches);return i.useMemo(()=>e.map(e=>(0,l.ro)(e,t)),[e,t])}function V(){let e=F(j.UseLoaderData),t=N(j.UseLoaderData);return e.errors&&null!=e.errors[t]?void console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"):e.loaderData[t]}function $(e){return F(j.UseRouteLoaderData).loaderData[e]}function W(){let e=F(j.UseActionData),t=N(j.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function K(){var e;let t=i.useContext(m),r=F(j.UseRouteError),n=N(j.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function q(){let e=i.useContext(d);return null==e?void 0:e._data}function J(){let e=i.useContext(d);return null==e?void 0:e._error}let Y=0;function X(e){let{router:t,basename:r}=M(U.UseBlocker),n=F(j.UseBlocker),[a,o]=i.useState(""),u=i.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:s({},n,{pathname:(0,l.pb)(n.pathname,r)||n.pathname}),nextLocation:s({},a,{pathname:(0,l.pb)(a.pathname,r)||a.pathname}),historyAction:o})},[r,e]);return i.useEffect(()=>{let e=String(++Y);return o(e),()=>t.deleteBlocker(e)},[t]),i.useEffect(()=>{""!==a&&t.getBlocker(a,u)},[t,a,u]),a&&n.blockers.has(a)?n.blockers.get(a):l.G3}let G={},Q=(e,t,r)=>{};function Z(e,t){(null==e?void 0:e.v7_startTransition)===void 0&&Q("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(null==e?void 0:e.v7_relativeSplatPath)!==void 0||t&&t.v7_relativeSplatPath||Q("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(void 0===t.v7_fetcherPersist&&Q("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&Q("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===t.v7_partialHydration&&Q("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&Q("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}let ee=i.startTransition;function et(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:o}=e,s=i.useRef();null==s.current&&(s.current=(0,l.sC)({initialEntries:n,initialIndex:a,v5Compat:!0}));let u=s.current,[c,d]=i.useState({action:u.action,location:u.location}),{v7_startTransition:h}=o||{},f=i.useCallback(e=>{h&&ee?ee(()=>d(e)):d(e)},[d,h]);return i.useLayoutEffect(()=>u.listen(f),[u,f]),i.useEffect(()=>Z(o),[o]),i.createElement(eo,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:u,future:o})}function er(e){let{to:t,replace:r,state:n,relative:a}=e;y()||(0,l.Oi)(!1);let{future:o,static:s}=i.useContext(h),{matches:u}=i.useContext(p),{pathname:c}=g(),d=R(),f=JSON.stringify((0,l.Gh)(t,(0,l.yD)(u,o.v7_relativeSplatPath),c,"path"===a));return i.useEffect(()=>d(JSON.parse(f),{replace:r,state:n,relative:a}),[d,f,a,r,n]),null}function en(e){return C(e.context)}function ea(e){(0,l.Oi)(!1)}function eo(e){let{basename:t="/",children:r=null,location:n,navigationType:a=l.rc.Pop,navigator:o,static:u=!1,future:c}=e;y()&&(0,l.Oi)(!1);let d=t.replace(/^\/*/,"/"),p=i.useMemo(()=>({basename:d,navigator:o,static:u,future:s({v7_relativeSplatPath:!1},c)}),[d,c,o,u]);"string"==typeof n&&(n=(0,l.Rr)(n));let{pathname:m="/",search:v="",hash:g="",state:b=null,key:w="default"}=n,E=i.useMemo(()=>{let e=(0,l.pb)(m,d);return null==e?null:{location:{pathname:e,search:v,hash:g,state:b,key:w},navigationType:a}},[d,m,v,g,b,w,a]);return null==E?null:i.createElement(h.Provider,{value:p},i.createElement(f.Provider,{children:r,value:E}))}function ei(e){let{children:t,location:r}=e;return k(eh(t),r)}function el(e){let{children:t,errorElement:r,resolve:n}=e;return i.createElement(ec,{resolve:n,errorElement:r},i.createElement(ed,null,t))}var es=((o=es||{})[o.pending=0]="pending",o[o.success=1]="success",o[o.error=2]="error",o);let eu=new Promise(()=>{});class ec extends i.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,a=es.pending;if(r instanceof Promise)if(this.state.error){a=es.error;let e=this.state.error;Object.defineProperty(n=Promise.reject().catch(()=>{}),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?a="_error"in(n=r)?es.error:"_data"in n?es.success:es.pending:(a=es.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then(e=>Object.defineProperty(r,"_data",{get:()=>e}),e=>Object.defineProperty(r,"_error",{get:()=>e})));else a=es.success,Object.defineProperty(n=Promise.resolve(),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(a===es.error&&n._error instanceof l.tH)throw eu;if(a===es.error&&!t)throw n._error;if(a===es.error)return i.createElement(d.Provider,{value:n,children:t});if(a===es.success)return i.createElement(d.Provider,{value:n,children:e});throw n}}function ed(e){let{children:t}=e,r=q(),n="function"==typeof t?t(r):t;return i.createElement(i.Fragment,null,n)}function eh(e,t){void 0===t&&(t=[]);let r=[];return i.Children.forEach(e,(e,n)=>{if(!i.isValidElement(e))return;let a=[...t,n];if(e.type===i.Fragment)return void r.push.apply(r,eh(e.props.children,a));e.type!==ea&&(0,l.Oi)(!1),e.props.index&&e.props.children&&(0,l.Oi)(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=eh(e.props.children,a)),r.push(o)}),r}function ef(e){return T(e)}function ep(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:i.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:i.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:i.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function em(e,t){return(0,l.aE)({basename:null==t?void 0:t.basename,future:s({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,l.sC)({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:ep,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}}}]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|