@perses-dev/scatter-chart-plugin 0.11.0-rc.1 → 0.11.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.
@@ -1,4 +1,4 @@
1
- /*! For license information please see 818.e122aec1.js.LICENSE.txt */
1
+ /*! For license information please see 818.633d6b7a.js.LICENSE.txt */
2
2
  (self.chunk_ScatterChart=self.chunk_ScatterChart||[]).push([["818"],{19597(e,t,r){"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{A:()=>n})},37696(e,t,r){"use strict";r.d(t,{J:()=>h});var n,i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=r(19597),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.A)(function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===i[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return n={name:r.name,styles:r.styles,next:n},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)n={name:i.name,styles:i.styles,next:n},i=i.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=p(e,t,r[i])+";";else for(var o in r){var a=r[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=o+"{"+t[a]+"}":u(a)&&(n+=c(o)+":"+d(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)u(a[s])&&(n+=c(o)+":"+d(o,a[s])+";");else{var l=p(e,t,a);switch(o){case"animation":case"animationName":n+=c(o)+":"+l+";";break;default:n+=o+"{"+l+"}"}}}return n}(e,t,r);case"function":if(void 0!==e){var o=n,a=r(e);return n=o,p(e,t,a)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var f=/label:\s*([^\s;{]+)\s*(;|$)/g;function h(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,o=!0,a="";n=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,a+=p(r,t,s)):a+=s[0];for(var l=1;l<e.length;l++)a+=p(r,t,e[l]),o&&(a+=s[l]);f.lastIndex=0;for(var u="";null!==(i=f.exec(a));)u+="-"+i[1];return{name:function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(a)+u,styles:a,next:n}}},34007(e,t,r){"use strict";r.d(t,{A:()=>$});var n=r(70451),i=r(11750),o=r(81023),a=r(59238),s=r(77308),l=r(23434),u=r(72052),c=r(73397),d=r(24726),p=r(26952),f=r(11502),h=r(52855),m=r(47095),g=r(22402),y=r(62540);let v=(0,g.A)((0,y.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"),b=(0,g.A)((0,y.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),x=(0,g.A)((0,y.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"),A=(0,g.A)((0,y.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 w=r(17834);let S=(0,s.A)(f.A,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${(0,d.A)(r.color||r.severity)}`]]}})((0,l.A)(({theme:e})=>{let t="light"===e.palette.mode?a.e$:a.a,r="light"===e.palette.mode?a.a:a.e$;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter((0,p.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),[`& .${h.A.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter((0,p.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}`,[`& .${h.A.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter((0,p.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)}}}))]}})),_=(0,s.A)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),k=(0,s.A)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),M=(0,s.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}),C={success:(0,y.jsx)(v,{fontSize:"inherit"}),warning:(0,y.jsx)(b,{fontSize:"inherit"}),error:(0,y.jsx)(x,{fontSize:"inherit"}),info:(0,y.jsx)(A,{fontSize:"inherit"})},$=n.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiAlert"}),{action:n,children:a,className:s,closeText:l="Close",color:p,components:f={},componentsProps:g={},icon:v,iconMapping:b=C,onClose:x,role:A="alert",severity:$="success",slotProps:O={},slots:E={},variant:N="standard",...R}=r,T={...r,color:p,severity:$,variant:N,colorSeverity:p||$},I=(e=>{let{variant:t,color:r,severity:n,classes:i}=e,a={root:["root",`color${(0,d.A)(r||n)}`,`${t}${(0,d.A)(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,o.A)(a,h.X,i)})(T),P={slots:{closeButton:f.CloseButton,closeIcon:f.CloseIcon,...E},slotProps:{...g,...O}},[j,z]=(0,c.A)("root",{ref:t,shouldForwardComponentProp:!0,className:(0,i.A)(I.root,s),elementType:S,externalForwardedProps:{...P,...R},ownerState:T,additionalProps:{role:A,elevation:0}}),[B,L]=(0,c.A)("icon",{className:I.icon,elementType:_,externalForwardedProps:P,ownerState:T}),[D,F]=(0,c.A)("message",{className:I.message,elementType:k,externalForwardedProps:P,ownerState:T}),[W,Z]=(0,c.A)("action",{className:I.action,elementType:M,externalForwardedProps:P,ownerState:T}),[q,V]=(0,c.A)("closeButton",{elementType:m.A,externalForwardedProps:P,ownerState:T}),[H,U]=(0,c.A)("closeIcon",{elementType:w.A,externalForwardedProps:P,ownerState:T});return(0,y.jsxs)(j,{...z,children:[!1!==v?(0,y.jsx)(B,{...L,children:v||b[$]||C[$]}):null,(0,y.jsx)(D,{...F,children:a}),null!=n?(0,y.jsx)(W,{...Z,children:n}):null,null==n&&x?(0,y.jsx)(W,{...Z,children:(0,y.jsx)(q,{size:"small","aria-label":l,title:l,color:"inherit",onClick:x,...V,children:(0,y.jsx)(H,{fontSize:"small",...U})})}):null]})})},52855(e,t,r){"use strict";r.d(t,{A:()=>a,X:()=>o});var n=r(29009),i=r(46733);function o(e){return(0,i.Ay)("MuiAlert",e)}let a=(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"])},5611(e,t,r){"use strict";r.d(t,{A:()=>q});var n,i,o=r(70451),a=r(11750),s=r(81023),l=r(59238),u=r(81227),c=r(48865),d=r(77308),p=r(23434),f=r(72052),h=r(24726),m=r(29009),g=r(46733);function y(e){return(0,g.Ay)("MuiListSubheader",e)}(0,m.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var v=r(62540);let b=(0,d.A)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${(0,h.A)(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})((0,p.A)(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),x=o.forwardRef(function(e,t){let r=(0,f.b)({props:e,name:"MuiListSubheader"}),{className:n,color:i="default",component:o="li",disableGutters:l=!1,disableSticky:u=!1,inset:c=!1,...d}=r,p={...r,color:i,component:o,disableGutters:l,disableSticky:u,inset:c},m=(e=>{let{classes:t,color:r,disableGutters:n,inset:i,disableSticky:o}=e,a={root:["root","default"!==r&&`color${(0,h.A)(r)}`,!n&&"gutters",i&&"inset",!o&&"sticky"]};return(0,s.A)(a,y,t)})(p);return(0,v.jsx)(b,{as:o,className:(0,a.A)(m.root,n),ref:t,ownerState:p,...d})});x&&(x.muiSkipListHighlight=!0);var A=r(11502),w=r(47095),S=r(47601),_=r(63095),k=r(35931),M=r(8323),C=r(52131),$=r(17834),O=r(94886);function E(e){return(0,g.Ay)("MuiAutocomplete",e)}let N=(0,m.A)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var R=r(73397);let T=(0,d.A)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{fullWidth:n,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=r;return[{[`& .${N.tag}`]:t.tag},{[`& .${N.tag}`]:t[`tagSize${(0,h.A)(s)}`]},{[`& .${N.inputRoot}`]:t.inputRoot},{[`& .${N.input}`]:t.input},{[`& .${N.input}`]:a&&t.inputFocused},t.root,n&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${N.focused} .${N.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${N.clearIndicator}`]:{visibility:"visible"}},[`& .${N.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${N.inputRoot}`]:{[`.${N.hasPopupIcon}&, .${N.hasClearIcon}&`]:{paddingRight:30},[`.${N.hasPopupIcon}.${N.hasClearIcon}&`]:{paddingRight:56},[`& .${N.input}`]:{width:0,minWidth:30}},[`& .${_.A.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${_.A.root}.${k.A.sizeSmall}`]:{[`& .${_.A.input}`]:{padding:"2px 4px 3px 0"}},[`& .${M.A.root}`]:{padding:9,[`.${N.hasPopupIcon}&, .${N.hasClearIcon}&`]:{paddingRight:39},[`.${N.hasPopupIcon}.${N.hasClearIcon}&`]:{paddingRight:65},[`& .${N.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${N.endAdornment}`]:{right:9}},[`& .${M.A.root}.${k.A.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${N.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${C.A.root}`]:{paddingTop:19,paddingLeft:8,[`.${N.hasPopupIcon}&, .${N.hasClearIcon}&`]:{paddingRight:39},[`.${N.hasPopupIcon}.${N.hasClearIcon}&`]:{paddingRight:65},[`& .${C.A.input}`]:{padding:"7px 4px"},[`& .${N.endAdornment}`]:{right:9}},[`& .${C.A.root}.${k.A.sizeSmall}`]:{paddingBottom:1,[`& .${C.A.input}`]:{padding:"2.5px 4px"}},[`& .${k.A.hiddenLabel}`]:{paddingTop:8},[`& .${C.A.root}.${k.A.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${N.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${C.A.root}.${k.A.hiddenLabel}.${k.A.sizeSmall}`]:{[`& .${N.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${N.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${N.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${N.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${N.inputRoot}`]:{flexWrap:"wrap"}}}]}),I=(0,d.A)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),P=(0,d.A)(w.A,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),j=(0,d.A)(w.A,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),z=(0,d.A)(c.A,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${N.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})((0,p.A)(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),B=(0,d.A)(A.A,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((0,p.A)(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),L=(0,d.A)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((0,p.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),D=(0,d.A)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((0,p.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),F=(0,d.A)("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((0,p.A)(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${N.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${N.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${N.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${N.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${N.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),W=(0,d.A)(x,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((0,p.A)(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),Z=(0,d.A)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${N.option}`]:{paddingLeft:24}}),q=o.forwardRef(function(e,t){let r,l=(0,f.b)({props:e,name:"MuiAutocomplete"}),{autoComplete:d=!1,autoHighlight:p=!1,autoSelect:m=!1,blurOnSelect:g=!1,ChipProps:y,className:b,clearIcon:x=n||(n=(0,v.jsx)($.A,{fontSize:"small"})),clearOnBlur:w=!l.freeSolo,clearOnEscape:_=!1,clearText:k="Clear",closeText:M="Close",componentsProps:C,defaultValue:N=l.multiple?[]:null,disableClearable:q=!1,disableCloseOnSelect:V=!1,disabled:H=!1,disabledItemsFocusable:U=!1,disableListWrap:Y=!1,disablePortal:K=!1,filterOptions:X,filterSelectedOptions:G=!1,forcePopupIcon:Q="auto",freeSolo:J=!1,fullWidth:ee=!1,getLimitTagsText:et=e=>`+${e}`,getOptionDisabled:er,getOptionKey:en,getOptionLabel:ei,isOptionEqualToValue:eo,groupBy:ea,handleHomeEndKeys:es=!l.freeSolo,id:el,includeInputInList:eu=!1,inputValue:ec,limitTags:ed=-1,ListboxComponent:ep,ListboxProps:ef,loading:eh=!1,loadingText:em="Loading…",multiple:eg=!1,noOptionsText:ey="No options",onChange:ev,onClose:eb,onHighlightChange:ex,onInputChange:eA,onOpen:ew,open:eS,openOnFocus:e_=!1,openText:ek="Open",options:eM,PaperComponent:eC,PopperComponent:e$,popupIcon:eO=i||(i=(0,v.jsx)(O.A,{})),readOnly:eE=!1,renderGroup:eN,renderInput:eR,renderOption:eT,renderTags:eI,selectOnFocus:eP=!l.freeSolo,size:ej="medium",slots:ez={},slotProps:eB={},value:eL,...eD}=l,{getRootProps:eF,getInputProps:eW,getInputLabelProps:eZ,getPopupIndicatorProps:eq,getClearProps:eV,getTagProps:eH,getListboxProps:eU,getOptionProps:eY,value:eK,dirty:eX,expanded:eG,id:eQ,popupOpen:eJ,focused:e0,focusedTag:e1,anchorEl:e2,setAnchorEl:e4,inputValue:e5,groupedOptions:e7}=(0,u.A)({...l,componentName:"Autocomplete"}),e3=!q&&!H&&eX&&!eE,e9=(!J||!0===Q)&&!1!==Q,{onMouseDown:e6}=eW(),{ref:e8,...te}=eU(),tt=ei||(e=>e.label??e),tr={...l,disablePortal:K,expanded:eG,focused:e0,fullWidth:ee,getOptionLabel:tt,hasClearIcon:e3,hasPopupIcon:e9,inputFocused:-1===e1,popupOpen:eJ,size:ej},tn=(e=>{let{classes:t,disablePortal:r,expanded:n,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:l,inputFocused:u,popupOpen:c,size:d}=e,p={root:["root",n&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",u&&"inputFocused"],tag:["tag",`tagSize${(0,h.A)(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,s.A)(p,E,t)})(tr),ti={slots:{paper:eC,popper:e$,...ez},slotProps:{chip:y,listbox:ef,...C,...eB}},[to,ta]=(0,R.A)("listbox",{elementType:F,externalForwardedProps:ti,ownerState:tr,className:tn.listbox,additionalProps:te,ref:e8}),[ts,tl]=(0,R.A)("paper",{elementType:A.A,externalForwardedProps:ti,ownerState:tr,className:tn.paper}),[tu,tc]=(0,R.A)("popper",{elementType:c.A,externalForwardedProps:ti,ownerState:tr,className:tn.popper,additionalProps:{disablePortal:K,style:{width:e2?e2.clientWidth:null},role:"presentation",anchorEl:e2,open:eJ}});if(eg&&eK.length>0){let e=e=>({className:tn.tag,disabled:H,...eH(e)});r=eI?eI(eK,e,tr):eK.map((t,r)=>{let{key:n,...i}=e({index:r});return(0,v.jsx)(S.A,{label:tt(t),size:ej,...i,...ti.slotProps.chip},n)})}if(ed>-1&&Array.isArray(r)){let e=r.length-ed;!e0&&e>0&&(r=r.splice(0,ed)).push((0,v.jsx)("span",{className:tn.tag,children:et(e)},r.length))}let td=eN||(e=>(0,v.jsxs)("li",{children:[(0,v.jsx)(W,{className:tn.groupLabel,ownerState:tr,component:"div",children:e.group}),(0,v.jsx)(Z,{className:tn.groupUl,ownerState:tr,children:e.children})]},e.key)),tp=eT||((e,t)=>{let{key:r,...n}=e;return(0,v.jsx)("li",{...n,children:tt(t)},r)}),tf=(e,t)=>{let r=eY({option:e,index:t});return tp({...r,className:tn.option},e,{selected:r["aria-selected"],index:t,inputValue:e5},tr)},th=ti.slotProps.clearIndicator,tm=ti.slotProps.popupIndicator;return(0,v.jsxs)(o.Fragment,{children:[(0,v.jsx)(T,{ref:t,className:(0,a.A)(tn.root,b),ownerState:tr,...eF(eD),children:eR({id:eQ,disabled:H,fullWidth:!0,size:"small"===ej?"small":void 0,InputLabelProps:eZ(),InputProps:{ref:e4,className:tn.inputRoot,startAdornment:r,onMouseDown:e=>{e.target===e.currentTarget&&e6(e)},...(e3||e9)&&{endAdornment:(0,v.jsxs)(I,{className:tn.endAdornment,ownerState:tr,children:[e3?(0,v.jsx)(P,{...eV(),"aria-label":k,title:k,ownerState:tr,...th,className:(0,a.A)(tn.clearIndicator,th?.className),children:x}):null,e9?(0,v.jsx)(j,{...eq(),disabled:H,"aria-label":eJ?M:ek,title:eJ?M:ek,ownerState:tr,...tm,className:(0,a.A)(tn.popupIndicator,tm?.className),children:eO}):null]})}},inputProps:{className:tn.input,disabled:H,readOnly:eE,...eW()}})}),e2?(0,v.jsx)(z,{as:tu,...tc,children:(0,v.jsxs)(B,{as:ts,...tl,children:[eh&&0===e7.length?(0,v.jsx)(L,{className:tn.loading,ownerState:tr,children:em}):null,0!==e7.length||J||eh?null:(0,v.jsx)(D,{className:tn.noOptions,ownerState:tr,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:ey}),e7.length>0?(0,v.jsx)(to,{as:ep,...ta,children:e7.map((e,t)=>ea?td({key:e.key,group:e.group,children:e.options.map((t,r)=>tf(t,e.index+r))}):tf(e,t))}):null]})}):null]})})},32309(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(70451),i=r(11750),o=r(81023),a=r(77308),s=r(72052),l=r(73397),u=r(96313),c=r(29009),d=r(46733);function p(e){return(0,d.Ay)("MuiBackdrop",e)}(0,c.A)("MuiBackdrop",["root","invisible"]);var f=r(62540);let h=(0,a.A)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),m=n.forwardRef(function(e,t){let r=(0,s.b)({props:e,name:"MuiBackdrop"}),{children:n,className:a,component:c="div",invisible:d=!1,open:m,components:g={},componentsProps:y={},slotProps:v={},slots:b={},TransitionComponent:x,transitionDuration:A,...w}=r,S={...r,component:c,invisible:d},_=(e=>{let{classes:t,invisible:r}=e;return(0,o.A)({root:["root",r&&"invisible"]},p,t)})(S),k={slots:{transition:x,root:g.Root,...b},slotProps:{...y,...v}},[M,C]=(0,l.A)("root",{elementType:h,externalForwardedProps:k,className:(0,i.A)(_.root,a),ownerState:S}),[$,O]=(0,l.A)("transition",{elementType:u.A,externalForwardedProps:k,ownerState:S});return(0,f.jsx)($,{in:m,timeout:A,...w,...O,children:(0,f.jsx)(M,{"aria-hidden":!0,...C,classes:_,ref:t,children:n})})})},74628(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(70451),i=r(11750),o=r(41535),a=r(92927),s=r(20523),l=r(26041),u=r(62540),c=r(71027),d=r(9408),p=r(93724);let f=(0,r(29009).A)("MuiBox",["root"]),h=(0,d.A)(),m=function(e={}){let{themeId:t,defaultTheme:r,defaultClassName:c="MuiBox-root",generateClassName:d}=e,p=(0,o.Ay)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(a.A);return n.forwardRef(function(e,n){let o=(0,l.A)(r),{className:a,component:f="div",...h}=(0,s.A)(e);return(0,u.jsx)(p,{as:f,ref:n,className:(0,i.A)(a,d?d(c):c),theme:t&&o[t]||o,...h})})}({themeId:p.A,defaultTheme:h,defaultClassName:f.root,generateClassName:c.A.generate})},7013(e,t,r){"use strict";r.d(t,{A:()=>E});var n=r(70451),i=r(11750),o=r(52215),a=r(81023),s=r(59238),l=r(63392),u=r(83926),c=r(77308),d=r(23434),p=r(72052),f=r(1337),h=r(25742),m=r(24726),g=r(26952),y=r(29009),v=r(46733);function b(e){return(0,v.Ay)("MuiButton",e)}let x=(0,y.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]);var A=r(94580),w=r(30016),S=r(62540);let _=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],k=(0,c.A)(f.A,{shouldForwardProp:e=>(0,u.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${(0,m.A)(r.color)}`],t[`size${(0,m.A)(r.size)}`],t[`${r.variant}Size${(0,m.A)(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})((0,d.A)(({theme:e})=>{let t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],r="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${x.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${x.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${x.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${x.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter((0,g.A)()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:(0,s.X4)(e.palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette[t].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${x.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${x.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${x.loading}`]:{color:"transparent"}}}]}})),M=(0,c.A)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${(0,m.A)(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},..._]})),C=(0,c.A)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${(0,m.A)(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},..._]})),$=(0,c.A)("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),O=(0,c.A)("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),E=n.forwardRef(function(e,t){let r=n.useContext(A.A),s=n.useContext(w.A),u=(0,o.A)(r,e),c=(0,p.b)({props:u,name:"MuiButton"}),{children:d,color:f="primary",component:g="button",className:y,disabled:v=!1,disableElevation:x=!1,disableFocusRipple:_=!1,endIcon:E,focusVisibleClassName:N,fullWidth:R=!1,id:T,loading:I=null,loadingIndicator:P,loadingPosition:j="center",size:z="medium",startIcon:B,type:L,variant:D="text",...F}=c,W=(0,l.A)(T),Z=P??(0,S.jsx)(h.A,{"aria-labelledby":W,color:"inherit",size:16}),q={...c,color:f,component:g,disabled:v,disableElevation:x,disableFocusRipple:_,fullWidth:R,loading:I,loadingIndicator:Z,loadingPosition:j,size:z,type:L,variant:D},V=(e=>{let{color:t,disableElevation:r,fullWidth:n,size:i,variant:o,loading:s,loadingPosition:l,classes:u}=e,c={root:["root",s&&"loading",o,`${o}${(0,m.A)(t)}`,`size${(0,m.A)(i)}`,`${o}Size${(0,m.A)(i)}`,`color${(0,m.A)(t)}`,r&&"disableElevation",n&&"fullWidth",s&&`loadingPosition${(0,m.A)(l)}`],startIcon:["icon","startIcon",`iconSize${(0,m.A)(i)}`],endIcon:["icon","endIcon",`iconSize${(0,m.A)(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=(0,a.A)(c,b,u);return{...u,...d}})(q),H=(B||I&&"start"===j)&&(0,S.jsx)(M,{className:V.startIcon,ownerState:q,children:B||(0,S.jsx)(O,{className:V.loadingIconPlaceholder,ownerState:q})}),U=(E||I&&"end"===j)&&(0,S.jsx)(C,{className:V.endIcon,ownerState:q,children:E||(0,S.jsx)(O,{className:V.loadingIconPlaceholder,ownerState:q})}),Y="boolean"==typeof I?(0,S.jsx)("span",{className:V.loadingWrapper,style:{display:"contents"},children:I&&(0,S.jsx)($,{className:V.loadingIndicator,ownerState:q,children:Z})}):null;return(0,S.jsxs)(k,{ownerState:q,className:(0,i.A)(r.className,V.root,y,s||""),component:g,disabled:v||I,focusRipple:!_,focusVisibleClassName:(0,i.A)(V.focusVisible,N),ref:t,type:L,id:I?W:T,...F,classes:V,children:[H,"end"!==j&&Y,d,"end"===j&&Y,U]})})},1337(e,t,r){"use strict";r.d(t,{A:()=>E});var n=r(70451),i=r(11750),o=r(81023),a=r(93399),s=r(77308),l=r(72052),u=r(29424),c=r(32398),d=r(48731);class p{static create(){return new p}static use(){let e=(0,d.A)(p.create).current,[t,r]=n.useState(!1);return e.shouldMount=t,e.setShouldMount=r,n.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){let e,t,r;return this.mounted||(this.mounted=((r=new Promise((r,n)=>{e=r,t=n})).resolve=e,r.reject=t,r),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}var f=r(44394),h=r(3725),m=r(69402),g=r(62540),y=r(29009);let v=(0,y.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),b=(0,m.keyframes)`
3
3
  0% {
4
4
  transform: scale(0);
@@ -144,4 +144,4 @@ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
144
144
  theme.transitions = createTransitions(theme.transitions || {});
145
145
 
146
146
  export default theme;`}let P=function(e={},...t){var r;let{breakpoints:o,mixins:a={},spacing:s,palette:l={},transitions:u={},typography:c={},shape:d,...p}=e;if(e.vars&&void 0===e.generateThemeVars)throw Error((0,n.A)(20));let f=b(l),h=(0,C.A)(e),m=(0,i.A)(h,{mixins:(r=h.breakpoints,{toolbar:{minHeight:56,[r.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[r.up("sm")]:{minHeight:64}},...a}),palette:f,shadows:N.slice(),typography:function(e,t){let{fontFamily:r=O,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d,...p}="function"==typeof t?t(e):t,f=n/14,h=d||(e=>`${e/u*f}rem`),m=(e,t,n,i,o)=>({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n,...r===O?{letterSpacing:`${Math.round(i/t*1e5)/1e5}em`}:{},...o,...c}),g={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,$),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,$),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,i.A)({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...g},p,{clone:!1})}(f,c),transitions:(0,R.Ay)(u),zIndex:{...T}});return m=(0,i.A)(m,p),(m=t.reduce((e,t)=>(0,i.A)(e,t),m)).unstable_sxConfig={...k.A,...p?.unstable_sxConfig},m.unstable_sx=function(e){return(0,M.A)({sx:e,theme:this})},m.toRuntimeSource=I,m};var j=r(9307);let z=[...Array(25)].map((e,t)=>{if(0===t)return"none";let r=(0,j.A)(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function B(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function L(e){return"dark"===e?z:[]}function D(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}function F(e,t,r){!e[t]&&r&&(e[t]=r)}function W(e){return"string"==typeof e&&e.startsWith("hsl")?(0,o.YL)(e):e}function Z(e,t){`${t}Channel`in e||(e[`${t}Channel`]=(0,o.Me)(W(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
147
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}let q=e=>{try{return e()}catch(e){}};function V(e,t,r,n){if(!t)return;t=!0===t?{}:t;let i="dark"===n?"dark":"light";if(!r){e[n]=function(e){let{palette:t={mode:"light"},opacity:r,overlays:n,...i}=e,o=b(t);return{palette:o,opacity:{...B(o.mode),...r},overlays:n||L(o.mode),...i}}({...t,palette:{mode:i,...t?.palette}});return}let{palette:o,...a}=P({...r,palette:{mode:i,...t?.palette}});return e[n]={...t,palette:o,opacity:{...B(i),...t?.opacity},overlays:t?.overlays||L(i)},a}function H(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...!0!==r&&r,palette:b({...!0===r?{}:r.palette,mode:t})})}function U(e={},...t){let{palette:r,cssVariables:a=!1,colorSchemes:s=!r?{light:!0}:void 0,defaultColorScheme:l=r?.mode,...u}=e,c=l||"light",d=s?.[c],p={...s,...r?{[c]:{..."boolean"!=typeof d&&d,palette:r}}:void 0};if(!1===a){if(!("colorSchemes"in e))return P(e,...t);let n=r;"palette"in e||!p[c]||(!0!==p[c]?n=p[c].palette:"dark"===c&&(n={mode:"dark"}));let i=P({...e,palette:n},...t);return i.defaultColorScheme=c,i.colorSchemes=p,"light"===i.palette.mode&&(i.colorSchemes.light={...!0!==p.light&&p.light,palette:i.palette},H(i,"dark",p.dark)),"dark"===i.palette.mode&&(i.colorSchemes.dark={...!0!==p.dark&&p.dark,palette:i.palette},H(i,"light",p.light)),i}return r||"light"in p||"light"!==c||(p.light=!0),function(e={},...t){var r,a;let s,l,{colorSchemes:u={light:!0},defaultColorScheme:c,disableCssColorScheme:d=!1,cssVarPrefix:p="mui",shouldSkipGeneratingVar:f=D,colorSchemeSelector:h=u.light&&u.dark?"media":void 0,rootSelector:m=":root",...g}=e,y=Object.keys(u)[0],v=c||(u.light&&"light"!==y?"light":y),b=((e="mui")=>(function(e=""){return(t,...r)=>`var(--${e?`${e}-`:""}${t}${function t(...r){if(!r.length)return"";let n=r[0];return"string"!=typeof n||n.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${n}`:`, var(--${e?`${e}-`:""}${n}${t(...r.slice(1))})`}(...r)})`})(e))(p),{[v]:w,light:S,dark:C,...$}=u,O={...$},E=w;if(("dark"!==v||"dark"in u)&&("light"!==v||"light"in u)||(E=!0),!E)throw Error((0,n.A)(21,v));let N=V(O,E,g,v);S&&!O.light&&V(O,S,void 0,"light"),C&&!O.dark&&V(O,C,void 0,"dark");let R={defaultColorScheme:v,...N,cssVarPrefix:p,colorSchemeSelector:h,rootSelector:m,getCssVar:b,colorSchemes:O,font:{...(r=N.typography,s={},Object.entries(r).forEach(e=>{let[t,r]=e;"object"==typeof r&&(s[t]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),s),...N.font},spacing:"number"==typeof(a=g.spacing)?`${a}px`:"string"==typeof a||"function"==typeof a||Array.isArray(a)?a:"8px"};Object.keys(R.colorSchemes).forEach(e=>{let t=R.colorSchemes[e].palette,r=e=>{let r=e.split("-"),n=r[1],i=r[2];return b(e,t[n][i])};if("light"===t.mode&&(F(t.common,"background","#fff"),F(t.common,"onBackground","#000")),"dark"===t.mode&&(F(t.common,"background","#000"),F(t.common,"onBackground","#fff")),["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{t[e]||(t[e]={})}),"light"===t.mode){F(t.Alert,"errorColor",(0,o.Nd)(t.error.light,.6)),F(t.Alert,"infoColor",(0,o.Nd)(t.info.light,.6)),F(t.Alert,"successColor",(0,o.Nd)(t.success.light,.6)),F(t.Alert,"warningColor",(0,o.Nd)(t.warning.light,.6)),F(t.Alert,"errorFilledBg",r("palette-error-main")),F(t.Alert,"infoFilledBg",r("palette-info-main")),F(t.Alert,"successFilledBg",r("palette-success-main")),F(t.Alert,"warningFilledBg",r("palette-warning-main")),F(t.Alert,"errorFilledColor",q(()=>t.getContrastText(t.error.main))),F(t.Alert,"infoFilledColor",q(()=>t.getContrastText(t.info.main))),F(t.Alert,"successFilledColor",q(()=>t.getContrastText(t.success.main))),F(t.Alert,"warningFilledColor",q(()=>t.getContrastText(t.warning.main))),F(t.Alert,"errorStandardBg",(0,o.j4)(t.error.light,.9)),F(t.Alert,"infoStandardBg",(0,o.j4)(t.info.light,.9)),F(t.Alert,"successStandardBg",(0,o.j4)(t.success.light,.9)),F(t.Alert,"warningStandardBg",(0,o.j4)(t.warning.light,.9)),F(t.Alert,"errorIconColor",r("palette-error-main")),F(t.Alert,"infoIconColor",r("palette-info-main")),F(t.Alert,"successIconColor",r("palette-success-main")),F(t.Alert,"warningIconColor",r("palette-warning-main")),F(t.AppBar,"defaultBg",r("palette-grey-100")),F(t.Avatar,"defaultBg",r("palette-grey-400")),F(t.Button,"inheritContainedBg",r("palette-grey-300")),F(t.Button,"inheritContainedHoverBg",r("palette-grey-A100")),F(t.Chip,"defaultBorder",r("palette-grey-400")),F(t.Chip,"defaultAvatarColor",r("palette-grey-700")),F(t.Chip,"defaultIconColor",r("palette-grey-700")),F(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),F(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),F(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),F(t.LinearProgress,"primaryBg",(0,o.j4)(t.primary.main,.62)),F(t.LinearProgress,"secondaryBg",(0,o.j4)(t.secondary.main,.62)),F(t.LinearProgress,"errorBg",(0,o.j4)(t.error.main,.62)),F(t.LinearProgress,"infoBg",(0,o.j4)(t.info.main,.62)),F(t.LinearProgress,"successBg",(0,o.j4)(t.success.main,.62)),F(t.LinearProgress,"warningBg",(0,o.j4)(t.warning.main,.62)),F(t.Skeleton,"bg",`rgba(${r("palette-text-primaryChannel")} / 0.11)`),F(t.Slider,"primaryTrack",(0,o.j4)(t.primary.main,.62)),F(t.Slider,"secondaryTrack",(0,o.j4)(t.secondary.main,.62)),F(t.Slider,"errorTrack",(0,o.j4)(t.error.main,.62)),F(t.Slider,"infoTrack",(0,o.j4)(t.info.main,.62)),F(t.Slider,"successTrack",(0,o.j4)(t.success.main,.62)),F(t.Slider,"warningTrack",(0,o.j4)(t.warning.main,.62));let e=(0,o.Y9)(t.background.default,.8);F(t.SnackbarContent,"bg",e),F(t.SnackbarContent,"color",q(()=>t.getContrastText(e))),F(t.SpeedDialAction,"fabHoverBg",(0,o.Y9)(t.background.paper,.15)),F(t.StepConnector,"border",r("palette-grey-400")),F(t.StepContent,"border",r("palette-grey-400")),F(t.Switch,"defaultColor",r("palette-common-white")),F(t.Switch,"defaultDisabledColor",r("palette-grey-100")),F(t.Switch,"primaryDisabledColor",(0,o.j4)(t.primary.main,.62)),F(t.Switch,"secondaryDisabledColor",(0,o.j4)(t.secondary.main,.62)),F(t.Switch,"errorDisabledColor",(0,o.j4)(t.error.main,.62)),F(t.Switch,"infoDisabledColor",(0,o.j4)(t.info.main,.62)),F(t.Switch,"successDisabledColor",(0,o.j4)(t.success.main,.62)),F(t.Switch,"warningDisabledColor",(0,o.j4)(t.warning.main,.62)),F(t.TableCell,"border",(0,o.j4)((0,o.Cg)(t.divider,1),.88)),F(t.Tooltip,"bg",(0,o.Cg)(t.grey[700],.92))}if("dark"===t.mode){F(t.Alert,"errorColor",(0,o.j4)(t.error.light,.6)),F(t.Alert,"infoColor",(0,o.j4)(t.info.light,.6)),F(t.Alert,"successColor",(0,o.j4)(t.success.light,.6)),F(t.Alert,"warningColor",(0,o.j4)(t.warning.light,.6)),F(t.Alert,"errorFilledBg",r("palette-error-dark")),F(t.Alert,"infoFilledBg",r("palette-info-dark")),F(t.Alert,"successFilledBg",r("palette-success-dark")),F(t.Alert,"warningFilledBg",r("palette-warning-dark")),F(t.Alert,"errorFilledColor",q(()=>t.getContrastText(t.error.dark))),F(t.Alert,"infoFilledColor",q(()=>t.getContrastText(t.info.dark))),F(t.Alert,"successFilledColor",q(()=>t.getContrastText(t.success.dark))),F(t.Alert,"warningFilledColor",q(()=>t.getContrastText(t.warning.dark))),F(t.Alert,"errorStandardBg",(0,o.Nd)(t.error.light,.9)),F(t.Alert,"infoStandardBg",(0,o.Nd)(t.info.light,.9)),F(t.Alert,"successStandardBg",(0,o.Nd)(t.success.light,.9)),F(t.Alert,"warningStandardBg",(0,o.Nd)(t.warning.light,.9)),F(t.Alert,"errorIconColor",r("palette-error-main")),F(t.Alert,"infoIconColor",r("palette-info-main")),F(t.Alert,"successIconColor",r("palette-success-main")),F(t.Alert,"warningIconColor",r("palette-warning-main")),F(t.AppBar,"defaultBg",r("palette-grey-900")),F(t.AppBar,"darkBg",r("palette-background-paper")),F(t.AppBar,"darkColor",r("palette-text-primary")),F(t.Avatar,"defaultBg",r("palette-grey-600")),F(t.Button,"inheritContainedBg",r("palette-grey-800")),F(t.Button,"inheritContainedHoverBg",r("palette-grey-700")),F(t.Chip,"defaultBorder",r("palette-grey-700")),F(t.Chip,"defaultAvatarColor",r("palette-grey-300")),F(t.Chip,"defaultIconColor",r("palette-grey-300")),F(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),F(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),F(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),F(t.LinearProgress,"primaryBg",(0,o.Nd)(t.primary.main,.5)),F(t.LinearProgress,"secondaryBg",(0,o.Nd)(t.secondary.main,.5)),F(t.LinearProgress,"errorBg",(0,o.Nd)(t.error.main,.5)),F(t.LinearProgress,"infoBg",(0,o.Nd)(t.info.main,.5)),F(t.LinearProgress,"successBg",(0,o.Nd)(t.success.main,.5)),F(t.LinearProgress,"warningBg",(0,o.Nd)(t.warning.main,.5)),F(t.Skeleton,"bg",`rgba(${r("palette-text-primaryChannel")} / 0.13)`),F(t.Slider,"primaryTrack",(0,o.Nd)(t.primary.main,.5)),F(t.Slider,"secondaryTrack",(0,o.Nd)(t.secondary.main,.5)),F(t.Slider,"errorTrack",(0,o.Nd)(t.error.main,.5)),F(t.Slider,"infoTrack",(0,o.Nd)(t.info.main,.5)),F(t.Slider,"successTrack",(0,o.Nd)(t.success.main,.5)),F(t.Slider,"warningTrack",(0,o.Nd)(t.warning.main,.5));let e=(0,o.Y9)(t.background.default,.98);F(t.SnackbarContent,"bg",e),F(t.SnackbarContent,"color",q(()=>t.getContrastText(e))),F(t.SpeedDialAction,"fabHoverBg",(0,o.Y9)(t.background.paper,.15)),F(t.StepConnector,"border",r("palette-grey-600")),F(t.StepContent,"border",r("palette-grey-600")),F(t.Switch,"defaultColor",r("palette-grey-300")),F(t.Switch,"defaultDisabledColor",r("palette-grey-600")),F(t.Switch,"primaryDisabledColor",(0,o.Nd)(t.primary.main,.55)),F(t.Switch,"secondaryDisabledColor",(0,o.Nd)(t.secondary.main,.55)),F(t.Switch,"errorDisabledColor",(0,o.Nd)(t.error.main,.55)),F(t.Switch,"infoDisabledColor",(0,o.Nd)(t.info.main,.55)),F(t.Switch,"successDisabledColor",(0,o.Nd)(t.success.main,.55)),F(t.Switch,"warningDisabledColor",(0,o.Nd)(t.warning.main,.55)),F(t.TableCell,"border",(0,o.Nd)((0,o.Cg)(t.divider,1),.68)),F(t.Tooltip,"bg",(0,o.Cg)(t.grey[700],.92))}Z(t.background,"default"),Z(t.background,"paper"),Z(t.common,"background"),Z(t.common,"onBackground"),Z(t,"divider"),Object.keys(t).forEach(e=>{let r=t[e];"tonalOffset"!==e&&r&&"object"==typeof r&&(r.main&&F(t[e],"mainChannel",(0,o.Me)(W(r.main))),r.light&&F(t[e],"lightChannel",(0,o.Me)(W(r.light))),r.dark&&F(t[e],"darkChannel",(0,o.Me)(W(r.dark))),r.contrastText&&F(t[e],"contrastTextChannel",(0,o.Me)(W(r.contrastText))),"text"===e&&(Z(t[e],"primary"),Z(t[e],"secondary")),"action"===e&&(r.active&&Z(t[e],"active"),r.selected&&Z(t[e],"selected")))})});let T={prefix:p,disableCssColorScheme:d,shouldSkipGeneratingVar:f,getSelector:(l=R=t.reduce((e,t)=>(0,i.A)(e,t),R),(e,t)=>{let r=l.rootSelector||":root",n=l.colorSchemeSelector,i=n;if("class"===n&&(i=".%s"),"data"===n&&(i="[data-%s]"),n?.startsWith("data-")&&!n.includes("%s")&&(i=`[${n}="%s"]`),l.defaultColorScheme===e){if("dark"===e){let n,o={};return((n=l.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${n?`${n}-`:""}overlays-${t}`),`--${n?`${n}-`:""}palette-AppBar-darkBg`,`--${n?`${n}-`:""}palette-AppBar-darkColor`]).forEach(e=>{o[e]=t[e],delete t[e]}),"media"===i)?{[r]:t,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",e)]:o,[`${r}, ${i.replace("%s",e)}`]:t}:{[r]:{...t,...o}}}if(i&&"media"!==i)return`${r}, ${i.replace("%s",String(e))}`}else if(e){if("media"===i)return{[`@media (prefers-color-scheme: ${String(e)})`]:{[r]:t}};if(i)return i.replace("%s",String(e))}return r})},{vars:P,generateThemeVars:j,generateStyleSheets:z}=_(R,T);return R.vars=P,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([e,t])=>{R[e]=t}),R.generateThemeVars=j,R.generateStyleSheets=z,R.generateSpacing=function(){return(0,x.A)(g.spacing,(0,A.LX)(this))},R.getColorSchemeSelector=function(e){return"media"===h?`@media (prefers-color-scheme: ${e})`:h?h.startsWith("data-")&&!h.includes("%s")?`[${h}="${e}"] &`:"class"===h?`.${e} &`:"data"===h?`[data-${e}] &`:`${h.replace("%s",e)} &`:"&"},R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=f,R.unstable_sxConfig={...k.A,...g?.unstable_sxConfig},R.unstable_sx=function(e){return(0,M.A)({sx:e,theme:this})},R.toRuntimeSource=I,R}({...u,colorSchemes:p,defaultColorScheme:c,..."boolean"!=typeof a&&a},...t)}},48927(e,t,r){"use strict";r.d(t,{Ay:()=>s,p0:()=>i});let n={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return`${Math.round(e)}ms`}function a(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function s(e){let t={...n,...e.easing},r={...i,...e.duration};return{getAutoHeightDuration:a,create:(e=["all"],n={})=>{let{duration:i=r.standard,easing:a=t.easeInOut,delay:s=0,...l}=n;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof i?i:o(i)} ${a} ${"string"==typeof s?s:o(s)}`).join(",")},...e,easing:t,duration:r}}},87169(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(9408).A)()},9307(e,t,r){"use strict";function n(e){return Math.round(10*(e<1?5.11916*e**2:4.5*Math.log(e+1)+2))/1e3}r.d(t,{A:()=>n})},93724(e,t,r){"use strict";r.d(t,{A:()=>n});let n="$$material"},83926(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(14738);let i=e=>(0,n.A)(e)&&"classes"!==e},14738(e,t,r){"use strict";r.d(t,{A:()=>n});let n=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},77308(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(57867),i=r(87169),o=r(93724),a=r(83926);let s=(0,n.Ay)({themeId:o.A,defaultTheme:i.A,rootShouldForwardProp:a.A})},56599(e,t,r){"use strict";r.d(t,{A:()=>a}),r(70451);var n=r(26041),i=r(87169),o=r(93724);function a(){let e=(0,n.A)(i.A);return e[o.A]||e}},32494(e,t,r){"use strict";r.d(t,{c:()=>i,q:()=>n});let n=e=>e.scrollTop;function i(e,t){let{timeout:r,easing:n,style:i={}}=e;return{duration:i.transitionDuration??("number"==typeof r?r:r[t.mode]||0),easing:i.transitionTimingFunction??("object"==typeof n?n[t.mode]:n),delay:i.transitionDelay}}},81227(e,t,r){"use strict";r.d(t,{A:()=>h,Z:()=>u});var n=r(70451),i=r(54553),o=r(89369),a=r(83183),s=r(71849);function l(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function u(e={}){let{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(e,{inputValue:s,getOptionLabel:u})=>{let c=a?s.trim():s;r&&(c=c.toLowerCase()),t&&(c=l(c));let d=c?e.filter(e=>{let n=(o||u)(e);return r&&(n=n.toLowerCase()),t&&(n=l(n)),"start"===i?n.startsWith(c):n.includes(c)}):e;return"number"==typeof n?d.slice(0,n):d}}let c=u(),d=e=>null!==e.current&&e.current.parentElement?.contains(document.activeElement),p=[];function f(e,t,r){if(t||null==e)return"";let n=r(e);return"string"==typeof n?n:""}let h=function(e){var t;let r,{unstable_isActiveElementInListbox:l=d,unstable_classNamePrefix:u="Mui",autoComplete:h=!1,autoHighlight:m=!1,autoSelect:g=!1,blurOnSelect:y=!1,clearOnBlur:v=!e.freeSolo,clearOnEscape:b=!1,componentName:x="useAutocomplete",defaultValue:A=e.multiple?p:null,disableClearable:w=!1,disableCloseOnSelect:S=!1,disabled:_,disabledItemsFocusable:k=!1,disableListWrap:M=!1,filterOptions:C=c,filterSelectedOptions:$=!1,freeSolo:O=!1,getOptionDisabled:E,getOptionKey:N,getOptionLabel:R=e=>e.label??e,groupBy:T,handleHomeEndKeys:I=!e.freeSolo,id:P,includeInputInList:j=!1,inputValue:z,isOptionEqualToValue:B=(e,t)=>e===t,multiple:L=!1,onChange:D,onClose:F,onHighlightChange:W,onInputChange:Z,onOpen:q,open:V,openOnFocus:H=!1,options:U,readOnly:Y=!1,selectOnFocus:K=!e.freeSolo,value:X}=e,G=(0,i.A)(P),Q=R;Q=e=>{let t=R(e);return"string"!=typeof t?String(t):t};let J=n.useRef(!1),ee=n.useRef(!0),et=n.useRef(null),er=n.useRef(null),[en,ei]=n.useState(null),[eo,ea]=n.useState(-1),es=m?0:-1,el=n.useRef(es),eu=n.useRef(f(A??X,L,Q)).current,[ec,ed]=(0,o.A)({controlled:X,default:A,name:x}),[ep,ef]=(0,o.A)({controlled:z,default:eu,name:x,state:"inputValue"}),[eh,em]=n.useState(!1),eg=n.useCallback((e,t,r)=>{if(!(L?ec.length<t.length:null!==t)&&!v)return;let n=f(t,L,Q);ep!==n&&(ef(n),Z&&Z(e,n,r))},[Q,ep,L,Z,ef,v,ec]),[ey,ev]=(0,o.A)({controlled:V,default:!1,name:x,state:"open"}),[eb,ex]=n.useState(!0),eA=!L&&null!=ec&&ep===Q(ec),ew=ey&&!Y,eS=ew?C(U.filter(e=>!($&&(L?ec:[ec]).some(t=>null!==t&&B(e,t)))),{inputValue:eA&&eb?"":ep,getOptionLabel:Q}):[],e_=(t={filteredOptions:eS,value:ec,inputValue:ep},r=n.useRef({}),n.useEffect(()=>{r.current=t}),r.current);n.useEffect(()=>{let e=ec!==e_.value;eh&&!e||(!O||e)&&eg(null,ec,"reset")},[ec,eg,eh,e_.value,O]);let ek=ey&&eS.length>0&&!Y,eM=(0,a.A)(e=>{-1===e?et.current.focus():en.querySelector(`[data-tag-index="${e}"]`).focus()});n.useEffect(()=>{L&&eo>ec.length-1&&(ea(-1),eM(-1))},[ec,L,eo,eM]);let eC=(0,a.A)(({event:e,index:t,reason:r})=>{if(el.current=t,-1===t?et.current.removeAttribute("aria-activedescendant"):et.current.setAttribute("aria-activedescendant",`${G}-option-${t}`),W&&["mouse","keyboard","touch"].includes(r)&&W(e,-1===t?null:eS[t],r),!er.current)return;let n=er.current.querySelector(`[role="option"].${u}-focused`);n&&(n.classList.remove(`${u}-focused`),n.classList.remove(`${u}-focusVisible`));let i=er.current;if("listbox"!==er.current.getAttribute("role")&&(i=er.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t){i.scrollTop=0;return}let o=er.current.querySelector(`[data-option-index="${t}"]`);if(o&&(o.classList.add(`${u}-focused`),"keyboard"===r&&o.classList.add(`${u}-focusVisible`),i.scrollHeight>i.clientHeight&&"mouse"!==r&&"touch"!==r)){let e=i.clientHeight+i.scrollTop,t=o.offsetTop+o.offsetHeight;t>e?i.scrollTop=t-i.clientHeight:o.offsetTop-o.offsetHeight*(1.3*!!T)<i.scrollTop&&(i.scrollTop=o.offsetTop-o.offsetHeight*(1.3*!!T))}}),e$=(0,a.A)(({event:e,diff:t,direction:r="next",reason:n})=>{if(!ew)return;let i=function(e,t){if(!er.current||e<0||e>=eS.length)return -1;let r=e;for(;;){let n=er.current.querySelector(`[data-option-index="${r}"]`),i=!k&&(!n||n.disabled||"true"===n.getAttribute("aria-disabled"));if(n&&n.hasAttribute("tabindex")&&!i)return r;if((r="next"===t?(r+1)%eS.length:(r-1+eS.length)%eS.length)===e)return -1}}((()=>{let e=eS.length-1;if("reset"===t)return es;if("start"===t)return 0;if("end"===t)return e;let r=el.current+t;return r<0?-1===r&&j?-1:M&&-1!==el.current||Math.abs(t)>1?0:e:r>e?r===e+1&&j?-1:M||Math.abs(t)>1?e:0:r})(),r);if(eC({index:i,reason:n,event:e}),h&&"reset"!==t)if(-1===i)et.current.value=ep;else{let e=Q(eS[i]);et.current.value=e,0===e.toLowerCase().indexOf(ep.toLowerCase())&&ep.length>0&&et.current.setSelectionRange(ep.length,e.length)}}),eO=n.useCallback(()=>{if(!ew)return;let e=(()=>{var e;if(-1!==el.current&&e_.filteredOptions&&e_.filteredOptions.length!==eS.length&&e_.inputValue===ep&&(L?ec.length===e_.value.length&&e_.value.every((e,t)=>Q(ec[t])===Q(e)):(e=e_.value,(e?Q(e):"")===(ec?Q(ec):"")))){let e=e_.filteredOptions[el.current];if(e)return eS.findIndex(t=>Q(t)===Q(e))}return -1})();if(-1!==e){el.current=e;return}let t=L?ec[0]:ec;if(0===eS.length||null==t)return void e$({diff:"reset"});if(er.current){if(null!=t){let e=eS[el.current];if(L&&e&&-1!==ec.findIndex(t=>B(e,t)))return;let r=eS.findIndex(e=>B(e,t));-1===r?e$({diff:"reset"}):eC({index:r});return}if(el.current>=eS.length-1)return void eC({index:eS.length-1});eC({index:el.current})}},[eS.length,!L&&ec,$,e$,eC,ew,ep,L]),eE=(0,a.A)(e=>{(0,s.A)(er,e),e&&eO()});n.useEffect(()=>{eO()},[eO]);let eN=e=>{!ey&&(ev(!0),ex(!0),q&&q(e))},eR=(e,t)=>{ey&&(ev(!1),F&&F(e,t))},eT=(e,t,r,n)=>{if(L){if(ec.length===t.length&&ec.every((e,r)=>e===t[r]))return}else if(ec===t)return;D&&D(e,t,r,n),ed(t)},eI=n.useRef(!1),eP=(e,t,r="selectOption",n="options")=>{let i=r,o=t;if(L){let e=(o=Array.isArray(ec)?ec.slice():[]).findIndex(e=>B(t,e));-1===e?o.push(t):"freeSolo"!==n&&(o.splice(e,1),i="removeOption")}eg(e,o,i),eT(e,o,i,{option:t}),S||e&&(e.ctrlKey||e.metaKey)||eR(e,i),(!0===y||"touch"===y&&eI.current||"mouse"===y&&!eI.current)&&et.current.blur()},ej=(e,t)=>{if(!L)return;""===ep&&eR(e,"toggleInput");let r=eo;-1===eo?""===ep&&"previous"===t&&(r=ec.length-1):((r+="next"===t?1:-1)<0&&(r=0),r===ec.length&&(r=-1)),ea(r=function(e,t){if(-1===e)return -1;let r=e;for(;;){if("next"===t&&r===ec.length||"previous"===t&&-1===r)return -1;let e=en.querySelector(`[data-tag-index="${r}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t)),eM(r)},ez=e=>{J.current=!0,ef(""),Z&&Z(e,"","clear"),eT(e,L?[]:null,"clear")},eB=e=>{em(!0),H&&!J.current&&eN(e)},eL=e=>{l(er)?et.current.focus():(em(!1),ee.current=!0,J.current=!1,g&&-1!==el.current&&ew?eP(e,eS[el.current],"blur"):g&&O&&""!==ep?eP(e,ep,"blur","freeSolo"):v&&eg(e,ec,"blur"),eR(e,"blur"))},eD=e=>{let t=e.target.value;ep!==t&&(ef(t),ex(!1),Z&&Z(e,t,"input")),""===t?w||L||eT(e,null,"clear"):eN(e)},eF=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));el.current!==t&&eC({event:e,index:t,reason:"mouse"})},eW=e=>{eC({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),eI.current=!0},eZ=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));eP(e,eS[t],"selectOption"),eI.current=!1},eq=e=>{ey?eR(e,"toggleInput"):eN(e)},eV=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==G&&e.preventDefault()},eH=e=>{e.currentTarget.contains(e.target)&&(et.current.focus(),K&&ee.current&&et.current.selectionEnd-et.current.selectionStart==0&&et.current.select(),ee.current=!1)},eU=e=>{_||""!==ep&&ey||eq(e)},eY=O&&ep.length>0;eY=eY||(L?ec.length>0:null!==ec);let eK=eS;return T&&(eK=eS.reduce((e,t,r)=>{let n=T(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:r,index:r,group:n,options:[t]}),e},[])),_&&eh&&eL(),{getRootProps:(e={})=>({...e,onKeyDown:t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1===eo||["ArrowLeft","ArrowRight"].includes(t.key)||(ea(-1),eM(-1)),229!==t.which))switch(t.key){case"Home":ew&&I&&(t.preventDefault(),e$({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":ew&&I&&(t.preventDefault(),e$({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),e$({diff:-5,direction:"previous",reason:"keyboard",event:t}),eN(t);break;case"PageDown":t.preventDefault(),e$({diff:5,direction:"next",reason:"keyboard",event:t}),eN(t);break;case"ArrowDown":t.preventDefault(),e$({diff:1,direction:"next",reason:"keyboard",event:t}),eN(t);break;case"ArrowUp":t.preventDefault(),e$({diff:-1,direction:"previous",reason:"keyboard",event:t}),eN(t);break;case"ArrowLeft":ej(t,"previous");break;case"ArrowRight":ej(t,"next");break;case"Enter":if(-1!==el.current&&ew){let e=eS[el.current],r=!!E&&E(e);if(t.preventDefault(),r)return;eP(t,e,"selectOption"),h&&et.current.setSelectionRange(et.current.value.length,et.current.value.length)}else O&&""!==ep&&!1===eA&&(L&&t.preventDefault(),eP(t,ep,"createOption","freeSolo"));break;case"Escape":ew?(t.preventDefault(),t.stopPropagation(),eR(t,"escape")):b&&(""!==ep||L&&ec.length>0)&&(t.preventDefault(),t.stopPropagation(),ez(t));break;case"Backspace":if(L&&!Y&&""===ep&&ec.length>0){let e=-1===eo?ec.length-1:eo,r=ec.slice();r.splice(e,1),eT(t,r,"removeOption",{option:ec[e]})}break;case"Delete":if(L&&!Y&&""===ep&&ec.length>0&&-1!==eo){let e=ec.slice();e.splice(eo,1),eT(t,e,"removeOption",{option:ec[eo]})}}},onMouseDown:eV,onClick:eH}),getInputLabelProps:()=>({id:`${G}-label`,htmlFor:G}),getInputProps:()=>({id:G,value:ep,onBlur:eL,onFocus:eB,onChange:eD,onMouseDown:eU,"aria-activedescendant":ew?"":null,"aria-autocomplete":h?"both":"list","aria-controls":ek?`${G}-listbox`:void 0,"aria-expanded":ek,autoComplete:"off",ref:et,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:_}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ez}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:eq}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,...!Y&&{onDelete:t=>{let r=ec.slice();r.splice(e,1),eT(t,r,"removeOption",{option:ec[e]})}}}),getListboxProps:()=>({role:"listbox",id:`${G}-listbox`,"aria-labelledby":`${G}-label`,ref:eE,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{let r=(L?ec:[ec]).some(e=>null!=e&&B(t,e)),n=!!E&&E(t);return{key:N?.(t)??Q(t),tabIndex:-1,role:"option",id:`${G}-option-${e}`,onMouseMove:eF,onClick:eZ,onTouchStart:eW,"data-option-index":e,"aria-disabled":n,"aria-selected":r}},id:G,inputValue:ep,value:ec,dirty:eY,expanded:ew&&en,popupOpen:ew,focused:eh||-1!==eo,anchorEl:en,setAnchorEl:ei,focusedTag:eo,groupedOptions:eK}}},8072(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(70451),i=r(31789),o=r(70320),a=r(45827);let s={...n}.useSyncExternalStore;function l(e={}){let{themeId:t}=e;return function(e,r={}){let l=(0,a.A)();l&&t&&(l=l[t]||l);let u="u">typeof window&&void 0!==window.matchMedia,{defaultMatches:c=!1,matchMedia:d=u?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:f=!1}=(0,o.A)({name:"MuiUseMediaQuery",props:r,theme:l}),h="function"==typeof e?e(l):e;return(h=h.replace(/^@media( ?)/m,"")).includes("print")&&console.warn("MUI: You have provided a `print` query to the `useMediaQuery` hook.\nUsing the print media query to modify print styles can lead to unexpected results.\nConsider using the `displayPrint` field in the `sx` prop instead.\nMore information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."),(void 0!==s?function(e,t,r,i,o){let a=n.useCallback(()=>t,[t]),l=n.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(null!==i){let{matches:t}=i(e);return()=>t}return a},[a,e,i,o,r]),[u,c]=n.useMemo(()=>{if(null===r)return[a,()=>()=>{}];let t=r(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[a,r,e]);return s(c,u,l)}:function(e,t,r,o,a){let[s,l]=n.useState(()=>a&&r?r(e).matches:o?o(e).matches:t);return(0,i.A)(()=>{if(!r)return;let t=r(e),n=()=>{l(t.matches)};return n(),t.addEventListener("change",n),()=>{t.removeEventListener("change",n)}},[e,r]),s})(h,c,d,p,f)}}l();let u=l({themeId:r(93724).A})},24726(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(85235).A},70498(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(37605).A},26952(e,t,r){"use strict";function n(e=[]){return([,t])=>t&&function(e,t=[]){if("string"!=typeof e.main)return!1;for(let r of t)if(!e.hasOwnProperty(r)||"string"!=typeof e[r])return!1;return!0}(t,e)}r.d(t,{A:()=>n})},22402(e,t,r){"use strict";r.d(t,{A:()=>g});var n=r(70451),i=r(11750),o=r(81023),a=r(24726),s=r(77308),l=r(23434),u=r(72052),c=r(29009),d=r(46733);function p(e){return(0,d.Ay)("MuiSvgIcon",e)}(0,c.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=r(62540);let h=(0,s.A)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${(0,a.A)(r.color)}`],t[`fontSize${(0,a.A)(r.fontSize)}`]]}})((0,l.A)(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),m=n.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiSvgIcon"}),{children:s,className:l,color:c="inherit",component:d="svg",fontSize:m="medium",htmlColor:g,inheritViewBox:y=!1,titleAccess:v,viewBox:b="0 0 24 24",...x}=r,A=n.isValidElement(s)&&"svg"===s.type,w={...r,color:c,component:d,fontSize:m,instanceFontSize:e.fontSize,inheritViewBox:y,viewBox:b,hasSvgAsChild:A},S={};y||(S.viewBox=b);let _=(e=>{let{color:t,fontSize:r,classes:n}=e,i={root:["root","inherit"!==t&&`color${(0,a.A)(t)}`,`fontSize${(0,a.A)(r)}`]};return(0,o.A)(i,p,n)})(w);return(0,f.jsxs)(h,{as:d,className:(0,i.A)(_.root,l),focusable:"false",color:g,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:t,...S,...x,...A&&s.props,ownerState:w,children:[A?s.props.children:s,v?(0,f.jsx)("title",{children:v}):null]})});function g(e,t){function r(r,n){return(0,f.jsx)(m,{"data-testid":`${t}Icon`,ref:n,...r,children:e})}return r.muiName=m.muiName,n.memo(n.forwardRef(r))}m.muiName="SvgIcon"},55403(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(61493).A},91621(e,t,r){"use strict";r.r(t),r.d(t,{capitalize:()=>i.A,requirePropFactory:()=>f,unstable_useId:()=>g.A,debounce:()=>s.A,setRef:()=>h,unstable_useEnhancedEffect:()=>m.A,useEventCallback:()=>b.A,unsupportedProp:()=>y,ownerWindow:()=>p.A,deprecatedPropType:()=>l,mergeSlotProps:()=>A.A,isMuiElement:()=>u.A,useControlled:()=>v.A,ownerDocument:()=>d.A,createChainedFunction:()=>o.A,unstable_memoTheme:()=>c.A,unstable_ClassNameGenerator:()=>w,useForkRef:()=>x.A,createSvgIcon:()=>a.A});var n=r(71027),i=r(24726),o=r(70498),a=r(22402),s=r(55403);let l=function(e,t){return()=>null};var u=r(6835),c=r(23434),d=r(1092),p=r(63025);let f=function(e,t){return()=>null},h=r(71849).A;var m=r(54382),g=r(63392);let y=function(e,t,r,n,i){return null};var v=r(2203),b=r(32398),x=r(29424),A=r(64606);let w={configure:e=>{n.A.configure(e)}}},79223(e,t,r){"use strict";r.d(t,{A:()=>n});let n=function(e){return"string"==typeof e}},6835(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(94237).A},23434(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(46826);let i={theme:void 0},o=function(e){let t,r;return function(o){let a=t;return(void 0===a||o.theme!==r)&&(i.theme=o.theme,t=a=(0,n.A)(e(i)),r=o.theme),a}}},64606(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(11750);function i(e,t){if(!e)return t;if("function"==typeof e||"function"==typeof t)return r=>{let i="function"==typeof t?t(r):t,o="function"==typeof e?e({...r,...i}):e,a=(0,n.A)(r?.className,i?.className,o?.className);return{...i,...o,...!!a&&{className:a},...i?.style&&o?.style&&{style:{...i.style,...o.style}},...i?.sx&&o?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(o.sx)?o.sx:[o.sx]]}}};let r=(0,n.A)(t?.className,e?.className);return{...t,...e,...!!r&&{className:r},...t?.style&&e?.style&&{style:{...t.style,...e.style}},...t?.sx&&e?.sx&&{sx:[...Array.isArray(t.sx)?t.sx:[t.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}},1092(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(10713).A},63025(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(72097).A},2203(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(89369).A},54382(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31789).A},32398(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(83183).A},29424(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(95591).A},63392(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(54553).A},73397(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(95591),i=r(76780),o=r(1689),a=r(9414);function s(e,t){let{className:r,elementType:s,ownerState:l,externalForwardedProps:u,internalForwardedProps:c,shouldForwardComponentProp:d=!1,...p}=t,{component:f,slots:h={[e]:void 0},slotProps:m={[e]:void 0},...g}=u,y=h[e]||s,v=(0,o.A)(m[e],l),{props:{component:b,...x},internalRef:A}=(0,a.A)({className:r,...p,externalForwardedProps:"root"===e?g:void 0,externalSlotProps:v}),w=(0,n.A)(A,v?.ref,t.ref),S="root"===e?b||f:b,_=(0,i.A)(y,{..."root"===e&&!f&&!h[e]&&c,..."root"!==e&&!h[e]&&c,...x,...S&&!d&&{as:S},...S&&d&&{component:S},ref:w},l);return[y,_]}},90124(e,t,r){"use strict";r.d(t,{Dg:()=>m,Dp:()=>h}),r(70451);var n=r(20523),i=r(41535),o=r(69402),a=r(62540);function s(e){let{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?r:e):t;return(0,a.jsx)(o.Global,{styles:n})}var l=r(26041);function u(e){let t=(0,i.tT)(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}let c=function({styles:e,themeId:t,defaultTheme:r={}}){let n=(0,l.A)(r),i=t&&n[t]||n,o="function"==typeof e?e(i):e;return i.modularCssLayers&&(o=Array.isArray(o)?o.map(e=>"function"==typeof e?u(e(i)):u(e)):u(o)),(0,a.jsx)(s,{styles:o})};var d=r(87169),p=r(93724);let f=function(e){return(0,a.jsx)(c,{...e,defaultTheme:d.A,themeId:p.A})};function h(e){return function(t){return(0,a.jsx)(f,{styles:"function"==typeof e?r=>e({theme:r,...t}):e})}}function m(){return n.A}},41535(e,t,r){"use strict";r.d(t,{Ay:()=>a,HX:()=>s,tT:()=>u});var n=r(42292),i=r.n(n),o=r(37696);function a(e,t){return i()(e,t)}function s(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}r(69402);let l=[];function u(e){return l[0]=e,(0,o.J)(l)}},35216(e,t,r){"use strict";r.d(t,{I:()=>o});var n=r(70451);r(62540);let i=n.createContext(),o=()=>n.useContext(i)??!1},68335(e,t,r){"use strict";r.d(t,{A:()=>b});var n=r(70451),i=r(11750),o=r(6121),a=r(46733),s=r(81023),l=r(7939),u=r(51327),c=r(20523),d=r(80787),p=r(85351),f=r(89187),h=r(62540);let m=(0,d.A)(),g=(0,l.A)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function y(e){return(0,u.A)({props:e,name:"MuiStack",defaultTheme:m})}let v=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...(0,p.NI)({theme:t},(0,p.kW)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let n=(0,f.LX)(t),i=Object.keys(t.breakpoints.values).reduce((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t),{}),a=(0,p.kW)({values:e.direction,base:i}),s=(0,p.kW)({values:e.spacing,base:i});"object"==typeof a&&Object.keys(a).forEach((e,t,r)=>{if(!a[e]){let n=t>0?a[r[t-1]]:"column";a[e]=n}}),r=(0,o.A)(r,(0,p.NI)({theme:t},s,(t,r)=>e.useFlexGap?{gap:(0,f._W)(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[r?a[r]:e.direction]}`]:(0,f._W)(n,t)}}))}return(0,p.iZ)(t.breakpoints,r)};function b(e={}){let{createStyledComponent:t=g,useThemeProps:r=y,componentName:o="MuiStack"}=e,l=t(v);return n.forwardRef(function(e,t){let u,d=r(e),{component:p="div",direction:f="column",spacing:m=0,divider:g,children:y,className:v,useFlexGap:b=!1,...x}=(0,c.A)(d),A=(0,s.A)({root:["root"]},e=>(0,a.Ay)(o,e),{});return(0,h.jsx)(l,{as:p,ownerState:{direction:f,spacing:m,useFlexGap:b},ref:t,className:(0,i.A)(A.root,v),...x,children:g?(u=n.Children.toArray(y).filter(Boolean)).reduce((e,t,r)=>(e.push(t),r<u.length-1&&e.push(n.cloneElement(g,{key:`separator-${r}`})),e),[]):y})})}},85351(e,t,r){"use strict";r.d(t,{EU:()=>u,NI:()=>l,iZ:()=>d,kW:()=>p,vf:()=>c,zu:()=>o});var n=r(6121),i=r(40391);let o={xs:0,sm:600,md:900,lg:1200,xl:1536},a={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`},s={containerQueries:e=>({up:t=>{let r="number"==typeof t?t:o[t]||t;return"number"==typeof r&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function l(e,t,r){let n=e.theme||{};if(Array.isArray(t)){let e=n.breakpoints||a;return t.reduce((n,i,o)=>(n[e.up(e.keys[o])]=r(t[o]),n),{})}if("object"==typeof t){let e=n.breakpoints||a;return Object.keys(t).reduce((a,l)=>{if((0,i.ob)(e.keys,l)){let e=(0,i.CT)(n.containerQueries?n:s,l);e&&(a[e]=r(t[l],l))}else Object.keys(e.values||o).includes(l)?a[e.up(l)]=r(t[l],l):a[l]=t[l];return a},{})}return r(t)}function u(e={}){return e.keys?.reduce((t,r)=>(t[e.up(r)]={},t),{})||{}}function c(e,t){return e.reduce((e,t)=>{let r=e[t];return r&&0!==Object.keys(r).length||delete e[t],e},t)}function d(e,...t){let r=u(e),i=[r,...t].reduce((e,t)=>(0,n.A)(e,t),{});return c(Object.keys(r),i)}function p({values:e,breakpoints:t,base:r}){let n,i=Object.keys(r||function(e,t){if("object"!=typeof e)return{};let r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((t,n)=>{n<e.length&&(r[t]=!0)}):n.forEach(t=>{null!=e[t]&&(r[t]=!0)}),r}(e,t));return 0===i.length?e:i.reduce((t,r,i)=>(Array.isArray(e)?(t[r]=null!=e[i]?e[i]:e[n],n=i):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[n],n=r):t[r]=e,t),{})}},59238(e,t,r){"use strict";r.d(t,{X4:()=>d,eM:()=>c,Cg:()=>p,Nd:()=>h,a:()=>m,Me:()=>a,e$:()=>f,Y9:()=>y,j4:()=>g,YL:()=>l});var n=r(67425);function i(e,t=0,r=1){return function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}(e,t,r)}function o(e){let t;if(e.type)return e;if("#"===e.charAt(0)){var r;let t,n;return o((r=(r=e).slice(1),t=RegExp(`.{1,${r.length>=6?2:1}}`,"g"),(n=r.match(t))&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""))}let i=e.indexOf("("),a=e.substring(0,i);if(!["rgb","rgba","hsl","hsla","color"].includes(a))throw Error((0,n.A)(9,e));let s=e.substring(i+1,e.length-1);if("color"===a){if(t=(s=s.split(" ")).shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(t))throw Error((0,n.A)(10,t))}else s=s.split(",");return{type:a,values:s=s.map(e=>parseFloat(e)),colorSpace:t}}let a=(e,t)=>{try{let t;return(t=o(e)).values.slice(0,3).map((e,r)=>t.type.includes("hsl")&&0!==r?`${e}%`:e).join(" ")}catch(t){return e}};function s(e){let{type:t,colorSpace:r}=e,{values:n}=e;return t.includes("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=t.includes("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function l(e){let{values:t}=e=o(e),r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),l=(e,t=(e+r/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),u="rgb",c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),s({type:u,values:c})}function u(e){let t="hsl"===(e=o(e)).type||"hsla"===e.type?o(l(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){let r=u(e),n=u(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function d(e,t){return e=o(e),t=i(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function p(e,t,r){try{return d(e,t)}catch(t){return e}}function f(e,t){if(e=o(e),t=i(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return s(e)}function h(e,t,r){try{return f(e,t)}catch(t){return e}}function m(e,t){if(e=o(e),t=i(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return s(e)}function g(e,t,r){try{return m(e,t)}catch(t){return e}}function y(e,t,r){try{return function(e,t=.15){return u(e)>.5?f(e,t):m(e,t)}(e,t)}catch(t){return e}}},57867(e,t,r){"use strict";r.d(t,{Ay:()=>f,MC:()=>u});var n=r(41535),i=r(6121),o=r(80787),a=r(92927),s=r(46826);let l=(0,o.A)();function u(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function c(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function d(e,t,r){let i="function"==typeof t?t(e):t;if(Array.isArray(i))return i.flatMap(t=>d(e,t,r));if(Array.isArray(i?.variants)){let t;if(i.isProcessed)t=r?c(i.style,r):i.style;else{let{variants:e,...o}=i;t=r?c((0,n.tT)(o),r):o}return p(e,i.variants,[t],r)}return i?.isProcessed?r?c((0,n.tT)(i.style),r):i.style:r?c((0,n.tT)(i),r):i}function p(e,t,r=[],i){let o;e:for(let a=0;a<t.length;a+=1){let s=t[a];if("function"==typeof s.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(o))continue}else for(let t in s.props)if(e[t]!==s.props[t]&&e.ownerState?.[t]!==s.props[t])continue e;"function"==typeof s.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},r.push(i?c((0,n.tT)(s.style(o)),i):s.style(o))):r.push(i?c((0,n.tT)(s.style),i):s.style)}return r}function f(e={}){let{themeId:t,defaultTheme:r=l,rootShouldForwardProp:o=u,slotShouldForwardProp:h=u}=e;function m(e){e.theme=!function(e){for(let t in e)return!1;return!0}(e.theme)?e.theme[t]||e.theme:r}return(e,t={})=>{var r,l,f;(0,n.HX)(e,e=>e.filter(e=>e!==a.A));let{name:g,slot:y,skipVariantsResolver:v,skipSx:b,overridesResolver:x=!(r=(l=y)?l.charAt(0).toLowerCase()+l.slice(1):l)?null:(e,t)=>t[r],...A}=t,w=g&&g.startsWith("Mui")||y?"components":"custom",S=void 0!==v?v:y&&"Root"!==y&&"root"!==y||!1,_=b||!1,k=u;"Root"===y||"root"===y?k=o:y?k=h:"string"==typeof(f=e)&&f.charCodeAt(0)>96&&(k=void 0);let M=(0,n.Ay)(e,{shouldForwardProp:k,label:void 0,...A}),C=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return d(t,e,t.theme.modularCssLayers?w:void 0)};if((0,i.Q)(e)){let t=(0,s.A)(e);return function(e){return t.variants?d(e,t,e.theme.modularCssLayers?w:void 0):e.theme.modularCssLayers?c(t.style,w):t.style}}return e},$=(...t)=>{let r=[],n=t.map(C),i=[];if(r.push(m),g&&x&&i.push(function(e){let t=e.theme,r=t.components?.[g]?.styleOverrides;if(!r)return null;let n={};for(let t in r)n[t]=d(e,r[t],e.theme.modularCssLayers?"theme":void 0);return x(e,n)}),g&&!S&&i.push(function(e){let t=e.theme,r=t?.components?.[g]?.variants;return r?p(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),_||i.push(a.A),Array.isArray(n[0])){let e,t=n.shift(),o=Array(r.length).fill(""),a=Array(i.length).fill("");(e=[...o,...t,...a]).raw=[...o,...t.raw,...a],r.unshift(e)}let o=M(...r,...n,...i);return e.muiName&&(o.muiName=e.muiName),o};return M.withConfig&&($.withConfig=M.withConfig),$}}},17575(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(89187);function i(e=8,t=(0,n.LX)({spacing:e})){if(e.mui)return e;let r=(...e)=>(0===e.length?[1]:e).map(e=>{let r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}},80787(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(6121),i=r(40391);let o={borderRadius:4};var a=r(17575),s=r(92927),l=r(73126);function u(e,t){if(this.vars){if(!this.colorSchemes?.[e]||"function"!=typeof this.getColorSchemeSelector)return{};let r=this.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return this.palette.mode===e?t:{}}let c=function(e={},...t){let{breakpoints:r={},palette:c={},spacing:d,shape:p={},...f}=e,h=function(e){let t,{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5,...o}=e,a=((t=Object.keys(r).map(e=>({key:e,val:r[e]}))||[]).sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})),s=Object.keys(a);function l(e){let t="number"==typeof r[e]?r[e]:e;return`@media (min-width:${t}${n})`}function u(e){let t="number"==typeof r[e]?r[e]:e;return`@media (max-width:${t-i/100}${n})`}function c(e,t){let o=s.indexOf(t);return`@media (min-width:${"number"==typeof r[e]?r[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof r[s[o]]?r[s[o]]:t)-i/100}${n})`}return{keys:s,values:a,up:l,down:u,between:c,only:function(e){return s.indexOf(e)+1<s.length?c(e,s[s.indexOf(e)+1]):l(e)},not:function(e){let t=s.indexOf(e);return 0===t?l(s[1]):t===s.length-1?u(s[t]):c(e,s[s.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}(r),m=(0,a.A)(d),g=(0,n.A)({breakpoints:h,direction:"ltr",components:{},palette:{mode:"light",...c},spacing:m,shape:{...o,...p}},f);return(g=(0,i.Ay)(g)).applyStyles=u,(g=t.reduce((e,t)=>(0,n.A)(e,t),g)).unstable_sxConfig={...l.A,...f?.unstable_sxConfig},g.unstable_sx=function(e){return(0,s.A)({sx:e,theme:this})},g}},40391(e,t,r){"use strict";function n(e,t){if(!e.containerQueries)return t;let r=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{let r=/min-width:\s*([0-9.]+)/;return(e.match(r)?.[1]||0)-(t.match(r)?.[1]||0)});return r.length?r.reduce((e,r)=>{let n=t[r];return delete e[r],e[r]=n,e},{...t}):t}function i(e,t){return"@"===t||t.startsWith("@")&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function o(e,t){let r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;let[,n,i]=r,o=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(o)}function a(e){let t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function r(r,n){r.up=(...r)=>t(e.breakpoints.up(...r),n),r.down=(...r)=>t(e.breakpoints.down(...r),n),r.between=(...r)=>t(e.breakpoints.between(...r),n),r.only=(...r)=>t(e.breakpoints.only(...r),n),r.not=(...r)=>{let i=t(e.breakpoints.not(...r),n);return i.includes("not all and")?i.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):i}}let n={},i=e=>(r(n,e),n);return r(i),{...e,containerQueries:i}}r.d(t,{Ay:()=>a,CT:()=>o,_S:()=>n,ob:()=>i})},57255(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(6121);let i=function(e,t){return t?(0,n.A)(e,t,{clone:!1}):e}},46826(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(41535);function i(e){let{variants:t,...r}=e,i={variants:t,style:(0,n.tT)(r),isProcessed:!0};return i.style===r||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=(0,n.tT)(e.style))}),i}},89187(e,t,r){"use strict";let n;r.d(t,{Lc:()=>b,Ms:()=>x,_W:()=>y,MA:()=>m,LX:()=>g});var i,o=r(85351),a=r(95279),s=r(57255);let l={m:"margin",p:"padding"},u={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},d=(i=e=>{if(e.length>2)if(!c[e])return[e];else e=c[e];let[t,r]=e.split(""),n=l[t],i=u[r]||"";return Array.isArray(i)?i.map(e=>n+e):[n+i]},n={},e=>(void 0===n[e]&&(n[e]=i(e)),n[e])),p=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[...p,...f];function m(e,t,r,n){let i=(0,a.Yn)(e,t,!0)??r;return"number"==typeof i||"string"==typeof i?e=>"string"==typeof e?e:"string"==typeof i?`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if("string"==typeof e)return e;let t=i[Math.abs(e)];return e>=0?t:"number"==typeof t?-t:`-${t}`}:"function"==typeof i?i:()=>void 0}function g(e){return m(e,"spacing",8,"spacing")}function y(e,t){return"string"==typeof t||null==t?t:e(t)}function v(e,t){let r=g(e.theme);return Object.keys(e).map(n=>(function(e,t,r,n){var i;if(!t.includes(r))return null;let a=(i=d(r),e=>i.reduce((t,r)=>(t[r]=y(n,e),t),{})),s=e[r];return(0,o.NI)(e,s,a)})(e,t,n,r)).reduce(s.A,{})}function b(e){return v(e,p)}function x(e){return v(e,f)}function A(e){return v(e,h)}b.propTypes={},b.filterProps=p,x.propTypes={},x.filterProps=f,A.propTypes={},A.filterProps=h},95279(e,t,r){"use strict";r.d(t,{Ay:()=>s,BO:()=>a,Yn:()=>o});var n=r(85235),i=r(85351);function o(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){let r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function a(e,t,r,n=r){let i;return i="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:o(e,r)||n,t&&(i=t(i,n,e)),i}let s=function(e){let{prop:t,cssProperty:r=e.prop,themeKey:s,transform:l}=e,u=e=>{if(null==e[t])return null;let u=e[t],c=o(e.theme,s)||{};return(0,i.NI)(e,u,e=>{let i=a(c,l,e);return(e===i&&"string"==typeof e&&(i=a(c,l,`${t}${"default"===e?"":(0,n.A)(e)}`,e)),!1===r)?i:{[r]:i}})};return u.propTypes={},u.filterProps=[t],u}},73126(e,t,r){"use strict";r.d(t,{A:()=>I});var n=r(89187),i=r(95279),o=r(57255);let a=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?(0,o.A)(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r};var s=r(85351);function l(e){return"number"!=typeof e?e:`${e}px solid`}function u(e,t){return(0,i.Ay)({prop:e,themeKey:"borders",transform:t})}let c=u("border",l),d=u("borderTop",l),p=u("borderRight",l),f=u("borderBottom",l),h=u("borderLeft",l),m=u("borderColor"),g=u("borderTopColor"),y=u("borderRightColor"),v=u("borderBottomColor"),b=u("borderLeftColor"),x=u("outline",l),A=u("outlineColor"),w=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,n.MA)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,s.NI)(e,e.borderRadius,e=>({borderRadius:(0,n._W)(t,e)}))}return null};w.propTypes={},w.filterProps=["borderRadius"],a(c,d,p,f,h,m,g,y,v,b,w,x,A);let S=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,n.MA)(e.theme,"spacing",8,"gap");return(0,s.NI)(e,e.gap,e=>({gap:(0,n._W)(t,e)}))}return null};S.propTypes={},S.filterProps=["gap"];let _=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,n.MA)(e.theme,"spacing",8,"columnGap");return(0,s.NI)(e,e.columnGap,e=>({columnGap:(0,n._W)(t,e)}))}return null};_.propTypes={},_.filterProps=["columnGap"];let k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,n.MA)(e.theme,"spacing",8,"rowGap");return(0,s.NI)(e,e.rowGap,e=>({rowGap:(0,n._W)(t,e)}))}return null};function M(e,t){return"grey"===t?t:e}function C(e){return e<=1&&0!==e?`${100*e}%`:e}k.propTypes={},k.filterProps=["rowGap"],a(S,_,k,(0,i.Ay)({prop:"gridColumn"}),(0,i.Ay)({prop:"gridRow"}),(0,i.Ay)({prop:"gridAutoFlow"}),(0,i.Ay)({prop:"gridAutoColumns"}),(0,i.Ay)({prop:"gridAutoRows"}),(0,i.Ay)({prop:"gridTemplateColumns"}),(0,i.Ay)({prop:"gridTemplateRows"}),(0,i.Ay)({prop:"gridTemplateAreas"}),(0,i.Ay)({prop:"gridArea"})),a((0,i.Ay)({prop:"color",themeKey:"palette",transform:M}),(0,i.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:M}),(0,i.Ay)({prop:"backgroundColor",themeKey:"palette",transform:M}));let $=(0,i.Ay)({prop:"width",transform:C}),O=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,s.NI)(e,e.maxWidth,t=>{let r=e.theme?.breakpoints?.values?.[t]||s.zu[t];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:C(t)}}):null;O.filterProps=["maxWidth"];let E=(0,i.Ay)({prop:"minWidth",transform:C}),N=(0,i.Ay)({prop:"height",transform:C}),R=(0,i.Ay)({prop:"maxHeight",transform:C}),T=(0,i.Ay)({prop:"minHeight",transform:C});(0,i.Ay)({prop:"size",cssProperty:"width",transform:C}),(0,i.Ay)({prop:"size",cssProperty:"height",transform:C}),a($,O,E,N,R,T,(0,i.Ay)({prop:"boxSizing"}));let I={border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:w},color:{themeKey:"palette",transform:M},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:M},backgroundColor:{themeKey:"palette",transform:M},p:{style:n.Ms},pt:{style:n.Ms},pr:{style:n.Ms},pb:{style:n.Ms},pl:{style:n.Ms},px:{style:n.Ms},py:{style:n.Ms},padding:{style:n.Ms},paddingTop:{style:n.Ms},paddingRight:{style:n.Ms},paddingBottom:{style:n.Ms},paddingLeft:{style:n.Ms},paddingX:{style:n.Ms},paddingY:{style:n.Ms},paddingInline:{style:n.Ms},paddingInlineStart:{style:n.Ms},paddingInlineEnd:{style:n.Ms},paddingBlock:{style:n.Ms},paddingBlockStart:{style:n.Ms},paddingBlockEnd:{style:n.Ms},m:{style:n.Lc},mt:{style:n.Lc},mr:{style:n.Lc},mb:{style:n.Lc},ml:{style:n.Lc},mx:{style:n.Lc},my:{style:n.Lc},margin:{style:n.Lc},marginTop:{style:n.Lc},marginRight:{style:n.Lc},marginBottom:{style:n.Lc},marginLeft:{style:n.Lc},marginX:{style:n.Lc},marginY:{style:n.Lc},marginInline:{style:n.Lc},marginInlineStart:{style:n.Lc},marginInlineEnd:{style:n.Lc},marginBlock:{style:n.Lc},marginBlockStart:{style:n.Lc},marginBlockEnd:{style:n.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:S},rowGap:{style:k},columnGap:{style:_},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:C},maxWidth:{style:O},minWidth:{transform:C},height:{transform:C},maxHeight:{transform:C},minHeight:{transform:C},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}},20523(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(6121),i=r(73126);function o(e){let t,r,o,{sx:a,...s}=e,{systemProps:l,otherProps:u}=(r={systemProps:{},otherProps:{}},o=s?.theme?.unstable_sxConfig??i.A,Object.keys(s).forEach(e=>{o[e]?r.systemProps[e]=s[e]:r.otherProps[e]=s[e]}),r);return t=Array.isArray(a)?[l,...a]:"function"==typeof a?(...e)=>{let t=a(...e);return(0,n.Q)(t)?{...l,...t}:l}:{...l,...a},{...u,sx:t}}},92927(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(85235),i=r(57255),o=r(95279),a=r(85351),s=r(40391),l=r(73126);let u=function(){function e(e,t,r,i){let s={[e]:t,theme:r},l=i[e];if(!l)return{[e]:t};let{cssProperty:u=e,themeKey:c,transform:d,style:p}=l;if(null==t)return null;if("typography"===c&&"inherit"===t)return{[e]:t};let f=(0,o.Yn)(r,c)||{};return p?p(s):(0,a.NI)(s,t,t=>{let r=(0,o.BO)(f,d,t);return(t===r&&"string"==typeof t&&(r=(0,o.BO)(f,d,`${e}${"default"===t?"":(0,n.A)(t)}`,t)),!1===u)?r:{[u]:r}})}return function t(r){let{sx:n,theme:o={},nested:u}=r||{};if(!n)return null;let c=o.unstable_sxConfig??l.A;function d(r){let n=r;if("function"==typeof r)n=r(o);else if("object"!=typeof r)return r;if(!n)return null;let l=(0,a.EU)(o.breakpoints),d=Object.keys(l),p=l;return(Object.keys(n).forEach(r=>{var s;let l=(s=n[r],"function"==typeof s?s(o):s);if(null!=l)if("object"==typeof l)if(c[r])p=(0,i.A)(p,e(r,l,o,c));else{let e=(0,a.NI)({theme:o},l,e=>({[r]:e}));!function(...e){let t=new Set(e.reduce((e,t)=>e.concat(Object.keys(t)),[]));return e.every(e=>t.size===Object.keys(e).length)}(e,l)?p=(0,i.A)(p,e):p[r]=t({sx:l,theme:o,nested:!0})}else p=(0,i.A)(p,e(r,l,o,c))}),!u&&o.modularCssLayers)?{"@layer sx":(0,s._S)(o,(0,a.vf)(d,p))}:(0,s._S)(o,(0,a.vf)(d,p))}return Array.isArray(n)?n.map(d):d(n)}}();u.filterProps=["sx"];let c=u},7939(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(57867).Ay)()},26041(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(80787),i=r(45827);let o=(0,n.A)(),a=function(e=o){return(0,i.A)(e)}},70320(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(52215);function i(e){let{theme:t,name:r,props:i}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,n.A)(t.components[r].defaultProps,i):i}},51327(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(70320),i=r(26041);function o({props:e,name:t,defaultTheme:r,themeId:a}){let s=(0,i.A)(r);return a&&(s=s[a]||s),(0,n.A)({theme:s,name:t,props:e})}},45827(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(70451),i=r(69402);let o=function(e=null){let t=n.useContext(i.ThemeContext);return t&&0!==Object.keys(t).length?t:e}},71027(e,t,r){"use strict";let n;r.d(t,{A:()=>o});let i=e=>e,o=(n=i,{configure(e){n=e},generate:e=>n(e),reset(){n=i}})},76780(e,t,r){"use strict";r.d(t,{A:()=>n});let n=function(e,t,r){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...r}}}},85235(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(67425);function i(e){if("string"!=typeof e)throw Error((0,n.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},81023(e,t,r){"use strict";function n(e,t,r){let n={};for(let i in e){let o=e[i],a="",s=!0;for(let e=0;e<o.length;e+=1){let n=o[e];n&&(a+=(!0===s?"":" ")+t(n),s=!1,r&&r[n]&&(a+=" "+r[n]))}n[i]=a}return n}r.d(t,{A:()=>n})},37605(e,t,r){"use strict";function n(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}r.d(t,{A:()=>n})},61493(e,t,r){"use strict";function n(e,t=166){let r;function i(...n){let o=()=>{e.apply(this,n)};clearTimeout(r),r=setTimeout(o,t)}return i.clear=()=>{clearTimeout(r)},i}r.d(t,{A:()=>n})},6121(e,t,r){"use strict";r.d(t,{A:()=>function e(t,r,a={clone:!0}){let s=a.clone?{...t}:t;return o(t)&&o(r)&&Object.keys(r).forEach(l=>{n.isValidElement(r[l])||(0,i.isValidElementType)(r[l])?s[l]=r[l]:o(r[l])&&Object.prototype.hasOwnProperty.call(t,l)&&o(t[l])?s[l]=e(t[l],r[l],a):a.clone?s[l]=o(r[l])?function e(t){if(n.isValidElement(t)||(0,i.isValidElementType)(t)||!o(t))return t;let r={};return Object.keys(t).forEach(n=>{r[n]=e(t[n])}),r}(r[l]):r[l]:s[l]=r[l]}),s},Q:()=>o});var n=r(70451),i=r(98489);function o(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}},3507(e,t,r){"use strict";r.d(t,{A:()=>n});let n=function(e,t=[]){if(void 0===e)return{};let r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}},67425(e,t,r){"use strict";function n(e,...t){let r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>r.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${r} for the full message.`}r.d(t,{A:()=>n})},46733(e,t,r){"use strict";r.d(t,{Ay:()=>o});var n=r(71027);let i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function o(e,t,r="Mui"){let a=i[t];return a?`${r}-${a}`:`${n.A.generate(e)}-${t}`}},29009(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(46733);function i(e,t,r="Mui"){let o={};return t.forEach(t=>{o[t]=(0,n.Ay)(e,t,r)}),o}},30443(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(70451);function i(e){return parseInt(n.version,10)>=19?e?.props?.ref||null:e?.ref||null}},94329(e,t,r){"use strict";function n(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}r.d(t,{A:()=>n})},41953(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(70451);function i(e){return n.Children.toArray(e).filter(e=>n.isValidElement(e))}},93399(e,t,r){"use strict";function n(e){try{return e.matches(":focus-visible")}catch(e){}return!1}r.d(t,{A:()=>n})},94237(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(70451);function i(e,t){return n.isValidElement(e)&&-1!==t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)}},9414(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(11750),i=r(3507);let o=function(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t},a=function(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:a,externalForwardedProps:s,className:l}=e;if(!t){let e=(0,n.A)(r?.className,l,s?.className,a?.className),t={...r?.style,...s?.style,...a?.style},i={...r,...s,...a};return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}let u=(0,i.A)({...s,...a}),c=o(a),d=o(s),p=t(u),f=(0,n.A)(p?.className,r?.className,l,s?.className,a?.className),h={...p?.style,...r?.style,...s?.style,...a?.style},m={...p,...r,...d,...c};return f.length>0&&(m.className=f),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:p.ref}}},10713(e,t,r){"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{A:()=>n})},72097(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(10713);function i(e){return(0,n.A)(e).defaultView||window}},1689(e,t,r){"use strict";r.d(t,{A:()=>n});let n=function(e,t,r){return"function"==typeof e?e(t,r):e}},52215(e,t,r){"use strict";r.d(t,{A:()=>function e(t,r){let n={...r};for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i))if("components"===i||"slots"===i)n[i]={...t[i],...n[i]};else if("componentsProps"===i||"slotProps"===i){let o=t[i],a=r[i];if(a)if(o)for(let t in n[i]={...a},o)Object.prototype.hasOwnProperty.call(o,t)&&(n[i][t]=e(o[t],a[t]));else n[i]=a;else n[i]=o||{}}else void 0===n[i]&&(n[i]=t[i]);return n}})},71849(e,t,r){"use strict";function n(e,t){"function"==typeof e?e(t):e&&(e.current=t)}r.d(t,{A:()=>n})},89369(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(70451);function i({controlled:e,default:t,name:r,state:o="value"}){let{current:a}=n.useRef(void 0!==e),[s,l]=n.useState(t),u=n.useCallback(e=>{a||l(e)},[]);return[a?e:s,u]}},31789(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(70451);let i="u">typeof window?n.useLayoutEffect:n.useEffect},83183(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(70451),i=r(31789);let o=function(e){let t=n.useRef(e);return(0,i.A)(()=>{t.current=e}),n.useRef((...e)=>(0,t.current)(...e)).current}},95591(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(70451);function i(...e){let t=n.useRef(void 0),r=n.useCallback(t=>{let r=e.map(e=>{if(null==e)return null;if("function"==typeof e){let r=e(t);return"function"==typeof r?r:()=>{e(null)}}return e.current=t,()=>{e.current=null}});return()=>{r.forEach(e=>e?.())}},e);return n.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=r(e))},e)}},54553(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(70451);let i=0,o={...n}.useId;function a(e){if(void 0!==o){let t=o();return e??t}return function(e){let[t,r]=n.useState(e),o=e||t;return n.useEffect(()=>{null==t&&(i+=1,r(`mui-${i}`))},[t]),o}(e)}},48731(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(70451);let i={};function o(e,t){let r=n.useRef(i);return r.current===i&&(r.current=e(t)),r}},77893(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(95591),i=r(76780),o=r(9414),a=r(1689);let s=function(e){let{elementType:t,externalSlotProps:r,ownerState:s,skipResolvingSlotProps:l=!1,...u}=e,c=l?{}:(0,a.A)(r,s),{props:d,internalRef:p}=(0,o.A)({...u,externalSlotProps:c}),f=(0,n.A)(p,c?.ref,e.additionalProps?.ref);return(0,i.A)(t,{...d,ref:f},s)}},3725(e,t,r){"use strict";r.d(t,{E:()=>a,A:()=>s});var n=r(48731),i=r(70451);let o=[];class a{static create(){return new a}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function s(){var e;let t=(0,n.A)(a.create).current;return e=t.disposeEffect,i.useEffect(e,o),t}},40625(e,t,r){"use strict";r.r(t),r.d(t,{ONE_WEEK_IN_MS:()=>u,querySpecSchema:()=>W,annotationDisplaySchema:()=>I,buildPanelSpecSchema:()=>V,resolvePanelRef:()=>S,variableDefinitionSchema:()=>eo,variableTextSchema:()=>er,isTimeSeriesValueTuple:()=>C,otlpresourcev1:()=>i,parseDurationString:()=>p,isValidQueryPluginType:()=>M,ONE_YEAR_IN_MS:()=>c,DURATION_REGEX:()=>d,createPanelRef:()=>k,getSuggestedStepMs:()=>w,otlpcommonv1:()=>n,variableListSpecSchema:()=>G,variableDisplaySchema:()=>X,DEFAULT_ALL_VALUE:()=>"$__all",ONE_HOUR_IN_MS:()=>s,getPanelKeyFromRef:()=>_,ONE_MINUTE_IN_MS:()=>6e4,intervalToDuration:()=>m,convertTimeToDuration:()=>g,isDurationString:()=>f,panelSpecSchema:()=>q,buildVariableDefinitionSchema:()=>ea,otlptracev1:()=>o,annotationSpecSchema:()=>j,buildDatasourceSpecSchema:()=>L,panelDisplaySpec:()=>F,panelDefinitionSchema:()=>H,buildVariableListSchema:()=>ee,datasourceSpecSchema:()=>B,buildVariableSpecSchema:()=>ei,isAbsoluteTimeRange:()=>v,ONE_SECOND_IN_MS:()=>1e3,displaySchema:()=>z,panelEditorSchema:()=>Y,variableListSchema:()=>J,isValidTraceId:()=>$,roundStepInterval:()=>A,variableTextSpecSchema:()=>et,durationValidationSchema:()=>D,toAbsoluteTimeRange:()=>b,buildVariableListSpecSchema:()=>Q,buildAnnotationSpecSchema:()=>P,buildPanelDefinitionSchema:()=>U,isRelativeTimeRange:()=>y,linkSchema:()=>Z,variableSpecSchema:()=>en,formatDuration:()=>h,buildPanelEditorSchema:()=>K,ONE_DAY_IN_MS:()=>l,pluginSchema:()=>T});var n={};r.r(n);var i={};r.r(i);var o={};r.r(o),r.d(o,{StatusCodeError:()=>N,StatusCodeOk:()=>E,StatusCodeUnset:()=>O});var a=r(94461);let s=36e5,l=864e5,u=6048e5,c=31536e6,d=/^(?:(\d+)y)?(?:(\d+)w)?(?:(\d+)d)?(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?(?:(\d+)ms)?$/;function p(e){let t=d.exec(e);if(null===t)throw Error(`Invalid duration string '${e}'`);return{years:parseInt(t[1]??"0"),months:0,weeks:parseInt(t[2]??"0"),days:parseInt(t[3]??"0"),hours:parseInt(t[4]??"0"),minutes:parseInt(t[5]??"0"),seconds:parseInt(t[6]??"0")+parseInt(t[7]??"0")/1e3}}function f(e){return""!==e&&d.test(e)}function h(e){let t=[];if(e.years&&t.push(`${e.years}y`),e.weeks&&t.push(`${e.weeks}w`),e.days&&t.push(`${e.days}d`),e.hours&&t.push(`${e.hours}h`),e.minutes&&t.push(`${e.minutes}m`),e.seconds){let r=Math.trunc(e.seconds);r&&t.push(`${r}s`);let n=Math.round((e.seconds-r)*1e3);n&&t.push(`${n}ms`)}return t.join("")}function m(e){return g(e.end.valueOf()-e.start.valueOf())}function g(e){let t=Math.trunc(e/c);t>0&&(e-=t*c);let r=Math.trunc(e/u);r>0&&(e-=r*u);let n=Math.trunc(e/l);n>0&&(e-=n*l);let i=Math.trunc(e/s);i>0&&(e-=i*s);let o=Math.trunc(e/6e4);return o>0&&(e-=6e4*o),{years:t,months:0,weeks:r,days:n,hours:i,minutes:o,seconds:e/1e3}}function y(e){return void 0!==e.pastDuration}function v(e){return void 0!==e.start&&void 0!==e.end}function b(e){let t=e.end??new Date;return{start:(0,a.sub)(t,p(e.pastDuration)),end:t}}let x=[{maxMs:15,roundedStepMs:10,display:"0.01s"},{maxMs:35,roundedStepMs:20,display:"0.02s"},{maxMs:75,roundedStepMs:50,display:"0.05s"},{maxMs:150,roundedStepMs:100,display:"0.1s"},{maxMs:350,roundedStepMs:200,display:"0.2s"},{maxMs:750,roundedStepMs:500,display:"0.5s"},{maxMs:1500,roundedStepMs:1e3,display:"1s"},{maxMs:3500,roundedStepMs:2e3,display:"2s"},{maxMs:7500,roundedStepMs:5e3,display:"5s"},{maxMs:12500,roundedStepMs:1e4,display:"10s"},{maxMs:17500,roundedStepMs:15e3,display:"15s"},{maxMs:25e3,roundedStepMs:2e4,display:"20s"},{maxMs:45e3,roundedStepMs:3e4,display:"30s"},{maxMs:9e4,roundedStepMs:6e4,display:"1m"},{maxMs:21e4,roundedStepMs:12e4,display:"2m"},{maxMs:45e4,roundedStepMs:3e5,display:"5m"},{maxMs:75e4,roundedStepMs:6e5,display:"10m"},{maxMs:75e4,roundedStepMs:9e5,display:"15m"},{maxMs:15e5,roundedStepMs:12e5,display:"20m"},{maxMs:27e5,roundedStepMs:18e5,display:"30m"},{maxMs:54e5,roundedStepMs:36e5,display:"1h"},{maxMs:9e6,roundedStepMs:72e5,display:"2h"},{maxMs:162e5,roundedStepMs:108e5,display:"3h"},{maxMs:324e5,roundedStepMs:216e5,display:"6h"},{maxMs:864e5,roundedStepMs:432e5,display:"12h"},{maxMs:6048e5,roundedStepMs:864e5,display:"1d"},{maxMs:18144e5,roundedStepMs:6048e5,display:"1w"},{maxMs:36288e5,roundedStepMs:2592e6,display:"30d"},{maxMs:63072e6,roundedStepMs:31536e6,display:"1y"}];function A(e){for(let{maxMs:t,roundedStepMs:r}of x)if(e<t)return r;return 15e3}function w(e,t){return A(Math.floor((e.end.valueOf()-e.start.valueOf())/t))}function S(e,t){let r=_(t),n=e.panels[r];if(void 0===n)throw Error(`Could not resolve panels reference ${t.$ref}`);return n}function _(e){return e.$ref.substring(14)}function k(e){return{$ref:`#/spec/panels/${e}`}}function M(e){return["TimeSeriesQuery","TraceQuery","ProfileQuery","LogQuery","AlertsQuery","SilencesQuery"].includes(e)}function C(e){return 2===e.length}function $(e){return/^[0-9a-fA-F]+$/.test(e)}let O="STATUS_CODE_UNSET",E="STATUS_CODE_OK",N="STATUS_CODE_ERROR";var R=r(59140);let T=R.Ik({kind:R.Yj().min(1,"Required"),spec:R.g1(R.Yj(),R.bz())}),I=R.Ik({name:R.Yj(),description:R.Yj().optional(),hidden:R.zM().optional(),color:R.Yj().optional()});function P(e){return R.Ik({display:I,plugin:e})}let j=R.Ik({display:I,plugin:T}),z=R.Ik({name:R.Yj().optional(),description:R.Yj().optional()}),B=R.Ik({display:z.optional(),default:R.zM(),plugin:T});function L(e){return R.Ik({display:z.optional(),default:R.zM(),plugin:e})}let D=R.Yj().min(1,"Required").regex(d,"Must be a valid duration string"),F=R.Ik({name:R.Yj().optional(),description:R.Yj().optional()}),W=R.Ik({kind:R.Yj().min(1),spec:R.Ik({name:R.Yj().optional(),plugin:T})}),Z=R.Ik({name:R.Yj().optional(),url:R.Yj().min(1),tooltip:R.Yj().optional(),renderVariables:R.zM().optional(),targetBlank:R.zM().optional()}),q=R.Ik({display:F.optional(),plugin:T,queries:R.YO(W).optional(),links:R.YO(Z).optional()});function V(e){return R.Ik({display:F.optional(),plugin:e,queries:R.YO(W).optional(),links:R.YO(Z).optional()})}let H=R.Ik({kind:R.eu("Panel"),spec:q});function U(e){return R.Ik({kind:R.eu("Panel"),spec:V(e)})}let Y=R.Ik({groupId:R.ai(),panelDefinition:H});function K(e){return R.Ik({groupId:R.ai(),panelDefinition:U(e)})}let X=R.Ik({name:R.Yj().optional(),description:R.Yj().optional(),hidden:R.zM().optional()}),G=R.Ik({name:R.Yj().min(1),display:X.optional(),defaultValue:R.Yj().or(R.YO(R.Yj())).optional(),allowAllValue:R.zM(),allowMultiple:R.zM(),customAllValue:R.Yj().optional(),capturingRegexp:R.Yj().optional(),sort:R.k5(["none","alphabetical-asc","alphabetical-desc","numerical-asc","numerical-desc","alphabetical-ci-asc","alphabetical-ci-desc"]).optional(),plugin:T});function Q(e){return R.Ik({name:R.Yj().min(1),display:X.optional(),defaultValue:R.Yj().or(R.YO(R.Yj())).optional(),allowAllValue:R.zM(),allowMultiple:R.zM(),customAllValue:R.Yj().optional(),capturingRegexp:R.Yj().optional(),sort:R.k5(["none","alphabetical-asc","alphabetical-desc","numerical-asc","numerical-desc","alphabetical-ci-asc","alphabetical-ci-desc"]).optional(),plugin:e})}let J=R.Ik({kind:R.eu("ListVariable"),spec:G});function ee(e){return R.Ik({kind:R.eu("ListVariable"),spec:Q(e)})}let et=R.Ik({name:R.Yj().min(1),display:X.optional(),value:R.Yj(),constant:R.zM().optional()}),er=R.Ik({kind:R.eu("TextVariable"),spec:et}),en=R.gM("kind",[er,J]);function ei(e){return R.KC([er,ee(e)])}let eo=en;function ea(e){return R.gM("kind",[R.Ik({kind:R.eu("ListVariable"),spec:Q(e)}),R.Ik({kind:R.eu("TextVariable"),spec:et})])}},87275(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z","ChevronDown")},11061(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z","ChevronRight")},7800(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z","Close")},86067(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z","DeleteOutline")},17366(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).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(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12M8.8,14L10,12.8V4H14V12.8L15.2,14H8.8Z","PinOutline")},86742(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z","Plus")},1448(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(91621),i=r(62540);t.default=function(e,t){return(0,n.createSvgIcon)((0,i.jsx)("path",{d:e}),t)}},20009(e,t,r){"use strict";r.d(t,{A:()=>F});var n,i,o,a,s,l,u,c,d="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==r.g?r.g:"u">typeof self?self:{};function p(){if(a)return o;a=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,o=m(),a=o.currentDelimiters(),s=o.currentCurrency().symbol,l=o.currentOrdinal(),u=o.getZeroFormat(),c=o.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],o=+r[2];return!isNaN(n)&&!isNaN(i)&&!isNaN(o)}(r,a)){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="",o,a,s){if(""!==r)return r===a?0:function r(n,i,o,a,s,l,u){if(!isNaN(+n))return+n;let c="",d=n.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(d!==n)return -1*r(d,i,o,a,s,l);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,o,a,s,l)*u.factor}if((c=n.replace("%",""))!==n)return r(c,i,o,a,s,l)/100;let p=parseFloat(n);if(isNaN(p))return;let f=a(p);if(f&&"."!==f&&(c=n.replace(RegExp(`${t(f)}$`),""))!==n)return r(c,i,o,a,s,l);let h={};Object.keys(l).forEach(e=>{h[l[e]]=e});let m=Object.keys(h).sort().reverse(),g=m.length;for(let e=0;e<g;e++){let t=m[e],u=h[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,o,a,s,l)*e}}}(r.replace(i,"").replace(RegExp(`([0-9])${t(n.thousands)}([0-9])`,"g"),"$1$2").replace(n.decimal,"."),n,i,o,a,s)}(r,a,s,l,u,c);else{if("number"!=typeof r)return;i=r}if(void 0!==i)return i}}}function f(){if(l)return s;l=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 o(e,t,n,i=!1){let a=Object.keys(e).map(i=>{if(!t[i])return console.error(`${n} Invalid key: ${i}`),!1;let a=e[i],s=t[i];if("string"==typeof s&&(s={type:s}),"format"===s.type){if(!o(a,r,`[Validate ${i}]`,!0))return!1}else if(typeof a!==s.type)return console.error(`${n} ${i} type mismatched: "${s.type}" expected, "${typeof a}" provided`),!1;if(s.restrictions&&s.restrictions.length){let t=s.restrictions.length;for(let r=0;r<t;r++){let{restriction:t,message:o}=s.restrictions[r];if(!t(a,e))return console.error(`${n} ${i} invalid value: ${o}`),!1}}return s.restriction&&!s.restriction(a,e)?(console.error(`${n} ${i} invalid value: ${s.message}`),!1):s.validValues&&-1===s.validValues.indexOf(a)?(console.error(`${n} ${i} invalid value: must be among ${JSON.stringify(s.validValues)}, "${a}" provided`),!1):(!s.children||!!o(a,s.children,`[Validate ${i}]`))&&!0});return i||a.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})),a.reduce((e,t)=>e&&t,!0)}function a(e){return o(e,r,"[Validate format]")}return s={validate:function(e,t){let r=i(e),n=a(t);return r&&n},validateFormat:a,validateInput:i,validateLanguage:function(e){return o(e,n,"[Validate language]")}}}var h=function(e,t={}){var r,n,i,o,a,s;let l,u,c,d,p;if("string"!=typeof e)return e;n=e=(l=(r=e).match(/^{([^}]*)}/))?(t.prefix=l[1],r.slice(l[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]),(d=e.split(".")[0].match(/0+/))&&(t.characteristic=d[0].length),-1!==(i=e).indexOf(".")&&(t.optionalCharacteristic=-1===i.split(".")[0].indexOf("0")),-1!==e.indexOf("a")&&(t.average=!0),-1!==(o=e).indexOf("K")?t.forceAverage="thousand":-1!==o.indexOf("M")?t.forceAverage="million":-1!==o.indexOf("B")?t.forceAverage="billion":-1!==o.indexOf("T")&&(t.forceAverage="trillion");let f=e.split(".")[1];if(f){let e=f.match(/0+/);e&&(t.mantissa=e[0].length)}return(a=e).match(/\[\.]/)?t.optionalMantissa=!0:a.match(/\./)&&(t.optionalMantissa=!1),(p=e.split(".")[1])&&(t.trimMantissa=-1!==p.indexOf("[")),-1!==e.indexOf(",")&&(t.thousandSeparated=!0),-1!==e.indexOf(" ")&&(t.spaceSeparated=!0,t.spaceSeparatedCurrency=!0,(t.average||t.forceAverage)&&(t.spaceSeparatedAbbreviation=!0)),(s=e).match(/^\+?\([^)]*\)$/)&&(t.negative="parenthesis"),s.match(/^\+?-/)&&(t.negative="sign"),e.match(/^\+/)&&(t.forceSign=!0),t};function m(){let e;if(c)return u;c=1;let t=i?n:(i=1,n={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=f(),o={},a={},s=null,l={};function d(){return a[e]}return o.languages=()=>Object.assign({},a),o.currentLanguage=()=>e,o.currentBytes=()=>d().bytes||{},o.currentCurrency=()=>d().currency,o.currentAbbreviations=()=>d().abbreviations,o.currentDelimiters=()=>d().delimiters,o.currentOrdinal=()=>d().ordinal,o.currentDefaults=()=>Object.assign({},d().defaults,l),o.currentOrdinalDefaultFormat=()=>Object.assign({},o.currentDefaults(),d().ordinalFormat),o.currentByteDefaultFormat=()=>Object.assign({},o.currentDefaults(),d().byteFormat),o.currentPercentageDefaultFormat=()=>Object.assign({},o.currentDefaults(),d().percentageFormat),o.currentCurrencyDefaultFormat=()=>Object.assign({},o.currentDefaults(),d().currencyFormat),o.currentTimeDefaultFormat=()=>Object.assign({},o.currentDefaults(),d().timeFormat),o.setDefaults=e=>{e=h(e),r.validateFormat(e)&&(l=e)},o.getZeroFormat=()=>s,o.setZeroFormat=e=>s="string"==typeof e?e:null,o.hasZeroFormat=()=>null!==s,o.languageData=e=>{if(e){if(a[e])return a[e];throw Error(`Unknown tag "${e}"`)}return d()},o.registerLanguage=(t,n=!1)=>{if(!r.validateLanguage(t))throw Error("Invalid language data");a[t.languageTag]=t,n&&(e=t.languageTag)},o.setLanguage=(r,n=t.languageTag)=>{if(!a[r]){let t=r.split("-")[0],i=Object.keys(a).find(e=>e.split("-")[0]===t);return a[i]?void(e=i):void(e=n)}e=r},o.registerLanguage(t),e=t.languageTag,u=o}var g={exports:{}};(function(e){var t,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,i=Math.floor,o="[BigNumber Error] ",a=o+"Number primitive has more than 15 significant digits: ",s=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function l(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,o=e[0]+"";n<i;){for(r=14-(t=e[n++]+"").length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function c(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,l=e.e,u=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=l==u,!i||!o)return n?0:!i^r?1:-1;if(!n)return l>u^r?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return l==u?0:l>u^r?1:-1}function d(e,t,r,n){if(e<t||e>r||e!==i(e))throw Error(o+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function p(e){var t=e.c.length-1;return l(e.e/14)==t&&e.c[t]%2!=0}function f(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function h(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 m,g,y,v,b,x,A,w,S,_=B.prototype={constructor:B,toString:null,valueOf:null},k=new B(1),M=20,C=4,$=-7,O=21,E=-1e7,N=1e7,R=!1,T=1,I=0,P={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},j="0123456789abcdefghijklmnopqrstuvwxyz",z=!0;function B(e,t){var n,o,s,l,u,c,p,f,h=this;if(!(h instanceof B))return new B(e,t);if(null==t){if(e&&!0===e._isBigNumber){h.s=e.s,!e.c||e.e>N?h.c=h.e=null:e.e<E?h.c=[h.e=0]:(h.e=e.e,h.c=e.c.slice());return}if((c="number"==typeof e)&&0*e==0){if(h.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,u=e;u>=10;u/=10,l++);l>N?h.c=h.e=null:(h.e=l,h.c=[e]);return}f=String(e)}else{if(!r.test(f=String(e)))return S(h,f,c);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(l=f.indexOf("."))>-1&&(f=f.replace(".","")),(u=f.search(/e/i))>0?(l<0&&(l=u),l+=+f.slice(u+1),f=f.substring(0,u)):l<0&&(l=f.length)}else{if(d(t,2,j.length,"Base"),10==t&&z)return W(h=new B(e),M+h.e+1,C);if(f=String(e),c="number"==typeof e){if(0*e!=0)return S(h,f,c,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,B.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(a+e)}else h.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=j.slice(0,t),l=u=0,p=f.length;u<p;u++)if(0>n.indexOf(o=f.charAt(u))){if("."==o){if(u>l){l=p;continue}}else if(!s&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){s=!0,u=-1,l=0;continue}return S(h,String(e),c,t)}c=!1,(l=(f=w(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):l=f.length}for(u=0;48===f.charCodeAt(u);u++);for(p=f.length;48===f.charCodeAt(--p););if(f=f.slice(u,++p)){if(p-=u,c&&B.DEBUG&&p>15&&(e>0x1fffffffffffff||e!==i(e)))throw Error(a+h.s*e);if((l=l-u-1)>N)h.c=h.e=null;else if(l<E)h.c=[h.e=0];else{if(h.e=l,h.c=[],u=(l+1)%14,l<0&&(u+=14),u<p){for(u&&h.c.push(+f.slice(0,u)),p-=14;u<p;)h.c.push(+f.slice(u,u+=14));u=14-(f=f.slice(u)).length}else u-=p;for(;u--;f+="0");h.c.push(+f)}}else h.c=[h.e=0]}function L(e,t,r,n){var i,o,a,s,l;if(null==r?r=C:d(r,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)l=u(e.c),l=1==n||2==n&&(a<=$||a>=O)?f(l,a):h(l,a,"0");else if(o=(e=W(new B(e),t,r)).e,s=(l=u(e.c)).length,1==n||2==n&&(t<=o||o<=$)){for(;s<t;l+="0",s++);l=f(l,o)}else if(t-=a,l=h(l,o,"0"),o+1>s){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function D(e,t){for(var r,n,i=1,o=new B(e[0]);i<e.length;i++)(n=new B(e[i])).s&&(r=c(o,n))!==t&&(0!==r||o.s!==t)||(o=n);return o}function F(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)>N?e.c=e.e=null:r<E?e.c=[e.e=0]:(e.e=r,e.c=t),e}function W(e,t,r,o){var a,l,u,c,d,p,f,h=e.c;if(h){t:{for(a=1,c=h[0];c>=10;c/=10,a++);if((l=t-a)<0)l+=14,u=t,f=i((d=h[p=0])/s[a-u-1]%10);else if((p=n((l+1)/14))>=h.length)if(o){for(;h.length<=p;h.push(0));d=f=0,a=1,l%=14,u=l-14+1}else break t;else{for(a=1,d=c=h[p];c>=10;c/=10,a++);l%=14,f=(u=l-14+a)<0?0:i(d/s[a-u-1]%10)}if(o=o||t<0||null!=h[p+1]||(u<0?d:d%s[a-u-1]),o=r<4?(f||o)&&(0==r||r==(e.s<0?3:2)):f>5||5==f&&(4==r||o||6==r&&(l>0?u>0?d/s[a-u]:0:h[p-1])%10&1||r==(e.s<0?8:7)),t<1||!h[0])return h.length=0,o?(t-=e.e+1,h[0]=s[(14-t%14)%14],e.e=-t||0):h[0]=e.e=0,e;if(0==l?(h.length=p,c=1,p--):(h.length=p+1,c=s[14-l],h[p]=u>0?i(d/s[a-u]%s[u])*c:0),o)for(;;)if(0==p){for(l=1,u=h[0];u>=10;u/=10,l++);for(u=h[0]+=c,c=1;u>=10;u/=10,c++);l!=c&&(e.e++,1e14==h[0]&&(h[0]=1));break}else{if(h[p]+=c,1e14!=h[p])break;h[p--]=0,c=1}for(l=h.length;0===h[--l];h.pop());}e.e>N?e.c=e.e=null:e.e<E&&(e.c=[e.e=0])}return e}function Z(e){var t,r=e.e;return null===r?e.toString():(t=u(e.c),t=r<=$||r>=O?f(t,r):h(t,r,"0"),e.s<0?"-"+t:t)}return B.clone=e,B.ROUND_UP=0,B.ROUND_DOWN=1,B.ROUND_CEIL=2,B.ROUND_FLOOR=3,B.ROUND_HALF_UP=4,B.ROUND_HALF_DOWN=5,B.ROUND_HALF_EVEN=6,B.ROUND_HALF_CEIL=7,B.ROUND_HALF_FLOOR=8,B.EUCLID=9,B.config=B.set=function(e){var t,r;if(null!=e)if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(d(r=e[t],0,1e9,t),M=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(d(r=e[t],0,8,t),C=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(d(r[0],-1e9,0,t),d(r[1],0,1e9,t),$=r[0],O=r[1]):(d(r,-1e9,1e9,t),$=-(O=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)d(r[0],-1e9,-1,t),d(r[1],1,1e9,t),E=r[0],N=r[1];else if(d(r,-1e9,1e9,t),r)E=-(N=r<0?-r:r);else throw Error(o+t+" cannot be zero: "+r);if(e.hasOwnProperty(t="CRYPTO"))if(!!(r=e[t])===r)if(r)if("u">typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))R=r;else throw R=!r,Error(o+"crypto unavailable");else R=r;else throw Error(o+t+" not true or false: "+r);if(e.hasOwnProperty(t="MODULO_MODE")&&(d(r=e[t],0,9,t),T=r),e.hasOwnProperty(t="POW_PRECISION")&&(d(r=e[t],0,1e9,t),I=r),e.hasOwnProperty(t="FORMAT"))if("object"==typeof(r=e[t]))P=r;else throw Error(o+t+" not an object: "+r);if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(o+t+" invalid: "+r);z="0123456789"==r.slice(0,10),j=r}}else throw Error(o+"Object expected: "+e);return{DECIMAL_PLACES:M,ROUNDING_MODE:C,EXPONENTIAL_AT:[$,O],RANGE:[E,N],CRYPTO:R,MODULO_MODE:T,POW_PRECISION:I,FORMAT:P,ALPHABET:j}},B.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!B.DEBUG)return!0;var t,r,n=e.c,a=e.e,s=e.s;t:if("[object Array]"==({}).toString.call(n)){if((1===s||-1===s)&&a>=-1e9&&a<=1e9&&a===i(a)){if(0===n[0]){if(0===a&&1===n.length)return!0;break t}if((t=(a+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 t;if(0!==r)return!0}}}else if(null===n&&null===a&&(null===s||1===s||-1===s))return!0;throw Error(o+"Invalid BigNumber: "+e)},B.maximum=B.max=function(){return D(arguments,-1)},B.minimum=B.min=function(){return D(arguments,1)},m=0x20000000000000*Math.random()&2097151?function(){return i(0x20000000000000*Math.random())}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)},B.random=function(e){var t,r,a,l,u,c=0,p=[],f=new B(k);if(null==e?e=M:d(e,0,1e9),l=n(e/14),R)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(l*=2));c<l;)(u=131072*t[c]+(t[c+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(p.push(u%1e14),c+=2);c=l/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(l*=7);c<l;)(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):(p.push(u%1e14),c+=7);c=l/7}else throw R=!1,Error(o+"crypto unavailable");if(!R)for(;c<l;)(u=m())<9e15&&(p[c++]=u%1e14);for(l=p[--c],e%=14,l&&e&&(u=s[14-e],p[c]=i(l/u)*u);0===p[c];p.pop(),c--);if(c<0)p=[a=0];else{for(a=-1;0===p[0];p.splice(0,1),a-=14);for(c=1,u=p[0];u>=10;u/=10,c++);c<14&&(a-=14-c)}return f.e=a,f.c=p,f},B.sum=function(){for(var e=1,t=arguments,r=new B(t[0]);e<t.length;)r=r.plus(t[e++]);return r},w=function(){var e="0123456789";function t(e,t,r,n){for(var i,o,a=[0],s=0,l=e.length;s<l;){for(o=a.length;o--;a[o]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(r,n,i,o,a){var s,l,c,d,p,f,m,g,y=r.indexOf("."),v=M,b=C;for(y>=0&&(d=I,I=0,r=r.replace(".",""),f=(g=new B(n)).pow(r.length-y),I=d,g.c=t(h(u(f.c),f.e,"0"),10,i,e),g.e=g.c.length),c=d=(m=t(r,n,i,a?(s=j,e):(s=e,j))).length;0==m[--d];m.pop());if(!m[0])return s.charAt(0);if(y<0?--c:(f.c=m,f.e=c,f.s=o,m=(f=A(f,g,v,b,i)).c,p=f.r,c=f.e),y=m[l=c+v+1],d=i/2,p=p||l<0||null!=m[l+1],p=b<4?(null!=y||p)&&(0==b||b==(f.s<0?3:2)):y>d||y==d&&(4==b||p||6==b&&1&m[l-1]||b==(f.s<0?8:7)),l<1||!m[0])r=p?h(s.charAt(1),-v,s.charAt(0)):s.charAt(0);else{if(m.length=l,p)for(--i;++m[--l]>i;)m[l]=0,l||(++c,m=[1].concat(m));for(d=m.length;!m[--d];);for(y=0,r="";y<=d;r+=s.charAt(m[y++]));r=h(r,c,s.charAt(0))}return r}}(),A=function(){function e(e,t,r){var n,i,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)n=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+n%1e7*1e7+s)/r|0)+(n/1e7|0)+c*a,e[l]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}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,o,a,s,u){var c,d,p,f,h,m,g,y,v,b,x,A,w,S,_,k,M,C=n.s==o.s?1:-1,$=n.c,O=o.c;if(!$||!$[0]||!O||!O[0])return new B(!n.s||!o.s||($?O&&$[0]==O[0]:!O)?NaN:$&&0==$[0]||!O?0*C:C/0);for(v=(y=new B(C)).c=[],C=a+(d=n.e-o.e)+1,u||(u=1e14,d=l(n.e/14)-l(o.e/14),C=C/14|0),p=0;O[p]==($[p]||0);p++);if(O[p]>($[p]||0)&&d--,C<0)v.push(1),f=!0;else{for(S=$.length,k=O.length,p=0,C+=2,(h=i(u/(O[0]+1)))>1&&(O=e(O,h,u),$=e($,h,u),k=O.length,S=$.length),w=k,x=(b=$.slice(0,k)).length;x<k;b[x++]=0);M=[0].concat(M=O.slice()),_=O[0],O[1]>=u/2&&_++;do{if(h=0,(c=t(O,b,k,x))<0){if(A=b[0],k!=x&&(A=A*u+(b[1]||0)),(h=i(A/_))>1)for(h>=u&&(h=u-1),g=(m=e(O,h,u)).length,x=b.length;1==t(m,b,g,x);)h--,r(m,k<g?M:O,g,u),g=m.length,c=1;else 0==h&&(c=h=1),g=(m=O.slice()).length;if(g<x&&(m=[0].concat(m)),r(b,m,x,u),x=b.length,-1==c)for(;1>t(O,b,k,x);)h++,r(b,k<x?M:O,x,u),x=b.length}else 0===c&&(h++,b=[0]);v[p++]=h,b[0]?b[x++]=$[w]||0:(b=[$[w]],x=1)}while((w++<S||null!=b[0])&&C--);f=null!=b[0],v[0]||v.splice(0,1)}if(1e14==u){for(p=1,C=v[0];C>=10;C/=10,p++);W(y,a+(y.e=p+14*d-1)+1,s,f)}else y.e=d,y.r=+f;return y}}(),g=/^(-?)0([xbo])(?=\w[\w.]*$)/i,y=/^([^.]+)\.$/,v=/^\.([^.]+)$/,b=/^-?(Infinity|NaN)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,S=function(e,t,r,n){var i,a=r?t:t.replace(x,"");if(b.test(a))e.s=isNaN(a)?null:a<0?-1:1;else{if(!r&&(a=a.replace(g,function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t}),n&&(i=n,a=a.replace(y,"$1").replace(v,"0.$1")),t!=a))return new B(a,i);if(B.DEBUG)throw Error(o+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},_.absoluteValue=_.abs=function(){var e=new B(this);return e.s<0&&(e.s=1),e},_.comparedTo=function(e,t){return c(this,new B(e,t))},_.decimalPlaces=_.dp=function(e,t){var r,n,i;if(null!=e)return d(e,0,1e9),null==t?t=C:d(t,0,8),W(new B(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-l(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},_.dividedBy=_.div=function(e,t){return A(this,new B(e,t),M,C)},_.dividedToIntegerBy=_.idiv=function(e,t){return A(this,new B(e,t),0,1)},_.exponentiatedBy=_.pow=function(e,t){var r,a,s,l,u,c,d,f,h,m=this;if((e=new B(e)).c&&!e.isInteger())throw Error(o+"Exponent not an integer: "+Z(e));if(null!=t&&(t=new B(t)),c=e.e>14,!m.c||!m.c[0]||1==m.c[0]&&!m.e&&1==m.c.length||!e.c||!e.c[0])return h=new B(Math.pow(+Z(m),c?e.s*(2-p(e)):+Z(e))),t?h.mod(t):h;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new B(NaN);(a=!d&&m.isInteger()&&t.isInteger())&&(m=m.mod(t))}else{if(e.e>9&&(m.e>0||m.e<-1||(0==m.e?m.c[0]>1||c&&m.c[1]>=24e7:m.c[0]<8e13||c&&m.c[0]<=9999975e7)))return l=m.s<0&&p(e)?-0:0,m.e>-1&&(l=1/l),new B(d?1/l:l);I&&(l=n(I/14+2))}for(c?(r=new B(.5),d&&(e.s=1),f=p(e)):f=(s=Math.abs(+Z(e)))%2,h=new B(k);;){if(f){if(!(h=h.times(m)).c)break;l?h.c.length>l&&(h.c.length=l):a&&(h=h.mod(t))}if(s){if(0===(s=i(s/2)))break;f=s%2}else if(W(e=e.times(r),e.e+1,1),e.e>14)f=p(e);else{if(0==(s=+Z(e)))break;f=s%2}m=m.times(m),l?m.c&&m.c.length>l&&(m.c.length=l):a&&(m=m.mod(t))}return a?h:(d&&(h=k.div(h)),t?h.mod(t):l?W(h,I,C,u):h)},_.integerValue=function(e){var t=new B(this);return null==e?e=C:d(e,0,8),W(t,t.e+1,e)},_.isEqualTo=_.eq=function(e,t){return 0===c(this,new B(e,t))},_.isFinite=function(){return!!this.c},_.isGreaterThan=_.gt=function(e,t){return c(this,new B(e,t))>0},_.isGreaterThanOrEqualTo=_.gte=function(e,t){return 1===(t=c(this,new B(e,t)))||0===t},_.isInteger=function(){return!!this.c&&l(this.e/14)>this.c.length-2},_.isLessThan=_.lt=function(e,t){return 0>c(this,new B(e,t))},_.isLessThanOrEqualTo=_.lte=function(e,t){return -1===(t=c(this,new B(e,t)))||0===t},_.isNaN=function(){return!this.s},_.isNegative=function(){return this.s<0},_.isPositive=function(){return this.s>0},_.isZero=function(){return!!this.c&&0==this.c[0]},_.minus=function(e,t){var r,n,i,o,a=this.s;if(t=(e=new B(e,t)).s,!a||!t)return new B(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,u=e.e/14,c=this.c,d=e.c;if(!s||!u){if(!c||!d)return c?(e.s=-t,e):new B(d?this:NaN);if(!c[0]||!d[0])return d[0]?(e.s=-t,e):new B(c[0]?this:3==C?-0:0)}if(s=l(s),u=l(u),c=c.slice(),a=s-u){for((o=a<0)?(a=-a,i=c):(u=s,i=d),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=c.length)<(t=d.length))?a:t,a=t=0;t<n;t++)if(c[t]!=d[t]){o=c[t]<d[t];break}if(o&&(i=c,c=d,d=i,e.s=-e.s),(t=(n=d.length)-(r=c.length))>0)for(;t--;c[r++]=0);for(t=1e14-1;n>a;){if(c[--n]<d[n]){for(r=n;r&&!c[--r];c[r]=t);--c[r],c[n]+=1e14}c[n]-=d[n]}for(;0==c[0];c.splice(0,1),--u);return c[0]?F(e,c,u):(e.s=3==C?-1:1,e.c=[e.e=0],e)},_.modulo=_.mod=function(e,t){var r,n;return(e=new B(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==T?(n=e.s,e.s=1,r=A(this,e,0,3),e.s=n,r.s*=n):r=A(this,e,0,T),(e=this.minus(r.times(e))).c[0]||1!=T||(e.s=this.s),e):new B(this):new B(NaN)},_.multipliedBy=_.times=function(e,t){var r,n,i,o,a,s,u,c,d,p,f,h,m,g=this.c,y=(e=new B(e,t)).c;if(!g||!y||!g[0]||!y[0])return this.s&&e.s&&(!g||g[0]||y)&&(!y||y[0]||g)?(e.s*=this.s,g&&y?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(n=l(this.e/14)+l(e.e/14),e.s*=this.s,(u=g.length)<(p=y.length)&&(m=g,g=y,y=m,i=u,u=p,p=i),i=u+p,m=[];i--;m.push(0));for(i=p;--i>=0;){for(r=0,f=y[i]%1e7,h=y[i]/1e7|0,o=i+(a=u);o>i;)s=h*(c=g[--a]%1e7)+(d=g[a]/1e7|0)*f,r=((c=f*c+s%1e7*1e7+m[o]+r)/1e14|0)+(s/1e7|0)+h*d,m[o--]=c%1e14;m[o]=r}return r?++n:m.splice(0,1),F(e,m,n)},_.negated=function(){var e=new B(this);return e.s=-e.s||null,e},_.plus=function(e,t){var r,n=this.s;if(t=(e=new B(e,t)).s,!n||!t)return new B(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new B(n/0);if(!a[0]||!s[0])return s[0]?e:new B(a[0]?this:0*n)}if(i=l(i),o=l(o),a=a.slice(),n=i-o){for(n>0?(o=i,r=s):(n=-n,r=a),r.reverse();n--;r.push(0));r.reverse()}for((n=a.length)-(t=s.length)<0&&(r=s,s=a,a=r,t=n),n=0;t;)n=(a[--t]=a[t]+s[t]+n)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return n&&(a=[n].concat(a),++o),F(e,a,o)},_.precision=_.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return d(e,1,1e9),null==t?t=C:d(t,0,8),W(new B(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},_.shiftedBy=function(e){return d(e,-0x1fffffffffffff,0x1fffffffffffff),this.times("1e"+e)},_.squareRoot=_.sqrt=function(){var e,t,r,n,i,o=this.c,a=this.s,s=this.e,c=M+4,d=new B("0.5");if(1!==a||!o||!o[0])return new B(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+Z(this)))||a==1/0?(((t=u(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=l((s+1)/2)-(s<0||s%2),r=new B(t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new B(a+""),r.c[0]){for((a=(s=r.e)+c)<3&&(a=0);;)if(i=r,r=d.times(i.plus(A(this,i,c,1))),u(i.c).slice(0,a)===(t=u(r.c)).slice(0,a)){if(r.e<s&&--a,"9999"!=(t=t.slice(a-3,a+1))&&(n||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(W(r,r.e+M+2,1),e=!r.times(r).eq(this));break}if(!n&&(W(i,i.e+M+2,0),i.times(i).eq(this))){r=i;break}c+=4,a+=4,n=1}}return W(r,r.e+M+1,C,e)},_.toExponential=function(e,t){return null!=e&&(d(e,0,1e9),e++),L(this,e,t,1)},_.toFixed=function(e,t){return null!=e&&(d(e,0,1e9),e=e+this.e+1),L(this,e,t)},_.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=P;else if("object"!=typeof r)throw Error(o+"Argument not an object: "+r);if(n=this.toFixed(e,t),this.c){var i,a=n.split("."),s=+r.groupSize,l=+r.secondaryGroupSize,u=r.groupSeparator||"",c=a[0],d=a[1],p=this.s<0,f=p?c.slice(1):c,h=f.length;if(l&&(i=s,s=l,l=i,h-=i),s>0&&h>0){for(i=h%s||s,c=f.substr(0,i);i<h;i+=s)c+=u+f.substr(i,s);l>0&&(c+=u+f.slice(i)),p&&(c="-"+c)}n=d?c+(r.decimalSeparator||"")+((l=+r.fractionGroupSize)?d.replace(RegExp("\\d{"+l+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):c}return(r.prefix||"")+n+(r.suffix||"")},_.toFraction=function(e){var t,r,n,i,a,l,c,d,p,f,h,m,g=this.c;if(null!=e&&(!(c=new B(e)).isInteger()&&(c.c||1!==c.s)||c.lt(k)))throw Error(o+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+Z(c));if(!g)return new B(this);for(t=new B(k),p=r=new B(k),n=d=new B(k),m=u(g),a=t.e=m.length-this.e-1,t.c[0]=s[(l=a%14)<0?14+l:l],e=!e||c.comparedTo(t)>0?a>0?t:p:c,l=N,N=1/0,c=new B(m),d.c[0]=0;f=A(c,t,0,1),1!=(i=r.plus(f.times(n))).comparedTo(e);)r=n,n=i,p=d.plus(f.times(i=p)),d=i,t=c.minus(f.times(i=t)),c=i;return i=A(e.minus(r),n,0,1),d=d.plus(i.times(p)),r=r.plus(i.times(n)),d.s=p.s=this.s,a*=2,h=1>A(p,n,a,C).minus(this).abs().comparedTo(A(d,r,a,C).minus(this).abs())?[p,n]:[d,r],N=l,h},_.toNumber=function(){return+Z(this)},_.toPrecision=function(e,t){return null!=e&&d(e,1,1e9),L(this,e,t,2)},_.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<=$||i>=O?f(u(r.c),i):h(u(r.c),i,"0"):10===e&&z?t=h(u((r=W(new B(r),M+i+1,C)).c),r.e,"0"):(d(e,2,j.length,"Base"),t=w(h(u(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},_.valueOf=_.toJSON=function(){return Z(this)},_._isBigNumber=!0,null!=t&&B.set(t),B}()).default=t.BigNumber=t,g.exports?g.exports=t:(e||(e="u">typeof self&&self?self:window),e.BigNumber=t)})(d);var y=g.exports;let v=m(),b=f(),x={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:w,decimalSuffixes:S}=v.currentBytes(),_={scale:1024,suffixes:S,marker:"bd"},k={scale:1024,suffixes:w,marker:"b"},M={scale:1e3,suffixes:S,marker:"d"};function C(e,t,r){let n=t[0],i=Math.abs(e);if(i>=r){for(let o=1;o<t.length;++o){let a=Math.pow(r,o),s=Math.pow(r,o+1);if(i>=a&&i<s){n=t[o],e/=a;break}}n===t[0]&&(e/=Math.pow(r,t.length-1),n=t[t.length-1])}return{value:e,suffix:n}}function $(e){let t="";for(let r=0;r<e;r++)t+="0";return t}function O({instance:e,providedFormat:t,state:r=v,decimalSeparator:n,defaults:i=r.currentDefaults()}){var o,a,s,l,u;let c,d,p,f,h,m,g,b=e._value;if(0===b&&r.hasZeroFormat())return r.getZeroFormat();if(!isFinite(b))return b.toString();let w=Object.assign({},A,i,t),S=w.totalLength,_=S?0:w.characteristic,k=w.optionalCharacteristic,M=w.forceAverage,C=w.lowPrecision,E=!!S||!!M||w.average,N=S?-1:E&&void 0===t.mantissa?0:w.mantissa,R=!S&&(void 0===t.optionalMantissa?-1===N:w.optionalMantissa),T=w.trimMantissa,I=w.thousandSeparated,P=w.spaceSeparated,j=w.negative,z=w.forceSign,B=w.exponential,L=w.roundingFunction,D="";if(E){let e=function({value:e,forceAverage:t,lowPrecision:r=!0,abbreviations:n,spaceSeparated:i=!1,totalLength:o=0,roundingFunction:a=Math.round}){let s="",l=Math.abs(e),u=-1;if(t&&n[t]&&x[t]?(s=n[t],e/=x[t]):l>=x.trillion||r&&1===a(l/x.trillion)?(s=n.trillion,e/=x.trillion):l<x.trillion&&l>=x.billion||r&&1===a(l/x.billion)?(s=n.billion,e/=x.billion):l<x.billion&&l>=x.million||r&&1===a(l/x.million)?(s=n.million,e/=x.million):(l<x.million&&l>=x.thousand||r&&1===a(l/x.thousand))&&(s=n.thousand,e/=x.thousand),s&&(s=(i?" ":"")+s),o){let t=e<0,r=e.toString().split(".")[0];u=Math.max(o-(t?r.length-1:r.length),0)}return{value:e,abbreviation:s,mantissaPrecision:u}}({value:b,forceAverage:M,lowPrecision:C,abbreviations:r.currentAbbreviations(),spaceSeparated:P,roundingFunction:L,totalLength:S});b=e.value,D+=e.abbreviation,S&&(N=e.mantissaPrecision)}if(B){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=e.value,D=e.abbreviation+D}let F=function(e,t,r,n,i,o){if(-1===n)return e;let a=function(e,t,r=Math.round){return -1!==e.toString().indexOf("e")?function(e,t){let r=e.toString(),[n,i]=r.split("e"),[o,a=""]=n.split(".");if(+i>0)r=o+a+$(i-a.length);else{let e=".";e=0>+o?`-0${e}`:`0${e}`;let n=($(-i-1)+Math.abs(o)+a).substr(0,t);n.length<t&&(n+=$(t-n.length)),r=e+n}return+i>0&&t>0&&(r+=`.${$(t)}`),r}(e,t):new y(r(+`${e}e+${t}`)/Math.pow(10,t)).toFixed(t)}(t,n,o),[s,l=""]=a.toString().split(".");if(l.match(/^0+$/)&&(r||i))return s;let u=l.match(/0+$/);return i&&u?`${s}.${l.toString().slice(0,u.index)}`:a.toString()}(b.toString(),b,R,N,T,L);return o=F=function(e,t,r,n){let i=e,[o,a]=i.toString().split(".");if(o.match(/^-?0$/)&&r)return a?`${o.replace("0","")}.${a}`:o.replace("0","");let s=t<0&&0===o.indexOf("-");if(s&&(o=o.slice(1),i=i.slice(1)),o.length<n){let e=n-o.length;for(let t=0;t<e;t++)i=`0${i}`}return s&&(i=`-${i}`),i.toString()}(F,b,k,_),a=b,s=n,d=(c=r.currentDelimiters()).thousands,s=s||c.decimal,p=c.thousandsSize||3,h=(f=o.toString()).split(".")[0],m=f.split(".")[1],g=a<0&&0===h.indexOf("-"),I&&(g&&(h=h.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})(h.length,p).forEach((e,t)=>{h=h.slice(0,e+t)+d+h.slice(e+t)}),g&&(h=`-${h}`)),F=f=m?h+s+m:h,(E||B)&&(F+=D),(z||b<0)&&(l=F,F=0===(u=b)?l:0==+l?l.replace("-",""):u>0?`+${l}`:"sign"===j?l:`(${l.replace("-","")})`),F}function E(e,t){if(!e)return t;let r=Object.keys(e);return 1===r.length&&"output"===r[0]?t:e}function N(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 R=m(),T=f(),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&&D.registerLanguage(t)})}},P=p(),j={format:(...e)=>(function(e,t={},r){if("string"==typeof t&&(t=h(t)),!b.validateFormat(t))return"ERROR: invalid format";let n=t.prefix||"",i=t.postfix||"",o=function(e,t,r){var n,i,o;switch(t.output){case"currency":let a,s,l,u,c,d,p,f,h,m;return n=t=E(t,v.currentCurrencyDefaultFormat()),a=v.currentCurrency(),l=Object.assign({},A,s=Object.assign({},n)),c="",d=!!l.totalLength||!!l.forceAverage||l.average,p=s.currencyPosition||a.position,f=s.currencySymbol||a.symbol,h=void 0!==l.spaceSeparatedCurrency?l.spaceSeparatedCurrency:l.spaceSeparated,void 0===s.lowPrecision&&(s.lowPrecision=!1),h&&(c=" "),"infix"===p&&(u=c+f+c),m=O({instance:e,providedFormat:s,state:v,decimalSeparator:u}),"prefix"===p&&(m=e._value<0&&"sign"===l.negative?`-${c}${f}${m.slice(1)}`:e._value>0&&l.forceSign?`+${c}${f}${m.slice(1)}`:f+c+m),p&&"postfix"!==p||(m=m+(c=!l.spaceSeparatedAbbreviation&&d?"":c)+f),m;case"percent":let g,y,b;return i=t=E(t,v.currentPercentageDefaultFormat()),g=i.prefixSymbol,y=O({instance:r(100*e._value),providedFormat:i,state:v}),b=Object.assign({},A,i),g?`%${b.spaceSeparated?" ":""}${y}`:`${y}${b.spaceSeparated?" ":""}%`;case"byte":return function(e,t,r,n){let i=t.base||"binary",o=Object.assign({},A,t),{binarySuffixes:a,decimalSuffixes:s}=r.currentBytes(),l={general:{scale:1024,suffixes:s||S,marker:"bd"},binary:{scale:1024,suffixes:a||w,marker:"b"},decimal:{scale:1e3,suffixes:s||S,marker:"d"}}[i],{value:u,suffix:c}=C(e._value,l.suffixes,l.scale),d=O({instance:n(u),providedFormat:t,state:r,defaults:r.currentByteDefaultFormat()});return`${d}${o.spaceSeparated?" ":""}${c}`}(e,t=E(t,v.currentByteDefaultFormat()),v,r);case"time":let x,_,k;return t=E(t,v.currentTimeDefaultFormat()),x=Math.floor(e._value/60/60),_=Math.floor((e._value-60*x*60)/60),k=Math.round(e._value-60*x*60-60*_),`${x}:${_<10?"0":""}${_}:${k<10?"0":""}${k}`;case"ordinal":let M,$,N,R;return o=t=E(t,v.currentOrdinalDefaultFormat()),M=v.currentOrdinal(),$=Object.assign({},A,o),N=O({instance:e,providedFormat:o,state:v}),R=M(e._value),`${N}${$.spaceSeparated?" ":""}${R}`;default:return O({instance:e,providedFormat:t,numbro:r})}}(e,t,r);return(o=n+o)+i})(...e,D),getByteUnit:(...e)=>(function(e){return C(e._value,_.suffixes,_.scale).suffix})(...e),getBinaryByteUnit:(...e)=>(function(e){return C(e._value,k.suffixes,k.scale).suffix})(...e),getDecimalByteUnit:(...e)=>(function(e){return C(e._value,M.suffixes,M.scale).suffix})(...e),formatOrDefault:E},z={add:(e,t)=>{let r,n;return r=new y(e._value),n=t,D.isNumbro(t)&&(n=t._value),n=new y(n),e._value=r.plus(n).toNumber(),e},subtract:(e,t)=>N(e,t,D),multiply:(e,t)=>{let r,n;return r=new y(e._value),n=t,D.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,D.isNumbro(t)&&(n=t._value),n=new y(n),e._value=r.dividedBy(n).toNumber(),e},set:(e,t)=>{let r;return r=t,D.isNumbro(t)&&(r=t._value),e._value=r,e},difference:(e,t)=>{let r;return N(r=D(e._value),t,D),Math.abs(r._value)},BigNumber:y};class B{constructor(e){this._value=e}clone(){return D(this._value)}format(e={}){return j.format(this,e)}formatCurrency(e){return"string"==typeof e&&(e=h(e)),(e=j.formatOrDefault(e,R.currentCurrencyDefaultFormat())).output="currency",j.format(this,e)}formatTime(e={}){return e.output="time",j.format(this,e)}binaryByteUnits(){return j.getBinaryByteUnit(this)}decimalByteUnits(){return j.getDecimalByteUnit(this)}byteUnits(){return j.getByteUnit(this)}difference(e){return z.difference(this,e)}add(e){return z.add(this,e)}subtract(e){return z.subtract(this,e)}multiply(e){return z.multiply(this,e)}divide(e){return z.divide(this,e)}set(e){return z.set(this,L(e))}value(){return this._value}valueOf(){return this._value}}function L(e){let t=e;return D.isNumbro(e)?t=e._value:"string"==typeof e?t=D.unformat(e):isNaN(e)&&(t=NaN),t}function D(e){return new B(L(e))}D.version="2.5.0",D.isNumbro=function(e){return e instanceof B},D.language=R.currentLanguage,D.registerLanguage=R.registerLanguage,D.setLanguage=R.setLanguage,D.languages=R.languages,D.languageData=R.languageData,D.zeroFormat=R.setZeroFormat,D.defaultFormat=R.currentDefaults,D.setDefaults=R.setDefaults,D.defaultCurrencyFormat=R.currentCurrencyDefaultFormat,D.validate=T.validate,D.loadLanguagesInNode=I.loadLanguagesInNode,D.unformat=P.unformat,D.BigNumber=z.BigNumber;var F=D&&D.__esModule&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D},40362(e,t,r){"use strict";var n=r(56441);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}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:o,resetWarningCache:i};return r.PropTypes=r,r}},62688(e,t,r){e.exports=r(40362)()},56441(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98489(e,t){"use strict";var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===o||e===c||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===l||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||void 0!==e.getModuleId)||!1}},46477(e,t,r){"use strict";r.d(t,{Ay:()=>v});var n=r(49257),i=r(7490),o=r(70451),a=r.n(o),s=r(20231),l=r.n(s),u=r(33477),c=r(64863),d="unmounted",p="exited",f="entering",h="entered",m="exiting",g=function(e){function t(t,r){var n,i=e.call(this,t,r)||this,o=r&&!r.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?o?(n=p,i.appearStatus=f):n=h:n=t.unmountOnExit||t.mountOnEnter?d:p,i.state={status:n},i.nextCallback=null,i}(0,i.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===d?{status:p}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==f&&r!==h&&(t=f):(r===f||r===h)&&(t=m)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:l().findDOMNode(this);r&&(0,c.F)(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:d})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[l().findDOMNode(this),n],o=i[0],a=i[1],s=this.getTimeouts(),u=n?s.appear:s.enter;(e||r)&&1?(this.props.onEnter(o,a),this.safeSetState({status:f},function(){t.props.onEntering(o,a),t.onTransitionEnd(u,function(){t.safeSetState({status:h},function(){t.props.onEntered(o,a)})})})):this.safeSetState({status:h},function(){t.props.onEntered(o)})},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:l().findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:m},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:p},function(){e.props.onExited(n)})})})):this.safeSetState({status:p},function(){e.props.onExited(n)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:l().findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!r||n)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)},r.render=function(){var e=this.state.status;if(e===d)return null;var t=this.props,r=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,n.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a().createElement(u.A.Provider,{value:null},"function"==typeof r?r(e,i):a().cloneElement(a().Children.only(r),i))},t}(a().Component);function y(){}g.contextType=u.A,g.propTypes={},g.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:y,onEntering:y,onEntered:y,onExit:y,onExiting:y,onExited:y},g.UNMOUNTED=d,g.EXITED=p,g.ENTERING=f,g.ENTERED=h,g.EXITING=m;let v=g},44394(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(49257),i=r(68102),o=r(7490),a=r(70451),s=r.n(a),l=r(33477);function u(e,t){var r=Object.create(null);return e&&a.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=t&&(0,a.isValidElement)(e)?t(e):e}),r}function c(e,t,r){return null!=r[t]?r[t]:e.props[t]}var d=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},p=function(e){function t(t,r){var n=e.call(this,t,r)||this,i=n.handleExited.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}(0,o.A)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,i=t.children,o=t.handleExited;return{children:t.firstRender?u(e.children,function(t){return(0,a.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:c(t,"appear",e),enter:c(t,"enter",e),exit:c(t,"exit",e)})}):(Object.keys(n=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(n=0;n<i[l].length;n++){var u=i[l][n];s[i[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<o.length;n++)s[o[n]]=r(o[n]);return s}(i,r=u(e.children))).forEach(function(t){var s=n[t];if((0,a.isValidElement)(s)){var l=t in i,u=t in r,d=i[t],p=(0,a.isValidElement)(d)&&!d.props.in;u&&(!l||p)?n[t]=(0,a.cloneElement)(s,{onExited:o.bind(null,s),in:!0,exit:c(s,"exit",e),enter:c(s,"enter",e)}):u||!l||p?u&&l&&(0,a.isValidElement)(d)&&(n[t]=(0,a.cloneElement)(s,{onExited:o.bind(null,s),in:d.props.in,exit:c(s,"exit",e),enter:c(s,"enter",e)})):n[t]=(0,a.cloneElement)(s,{in:!1})}}),n),firstRender:!1}},r.handleExited=function(e,t){var r=u(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=(0,i.A)({},t.children);return delete r[e.key],{children:r}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,i=(0,n.A)(e,["component","childFactory"]),o=this.state.contextValue,a=d(this.state.children).map(r);return(delete i.appear,delete i.enter,delete i.exit,null===t)?s().createElement(l.A.Provider,{value:o},a):s().createElement(l.A.Provider,{value:o},s().createElement(t,i,a))},t}(s().Component);p.propTypes={},p.defaultProps={component:"div",childFactory:function(e){return e}};let f=p},33477(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(70451);let i=r.n(n)().createContext(null)},64863(e,t,r){"use strict";r.d(t,{F:()=>n});var n=function(e){return e.scrollTop}},23420(e){function t(){}t.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function i(){n.off(e,i),t.apply(r,arguments)}return i._=t,this.on(e,i,r)},emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,i=r.length;n<i;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],i=[];if(n&&t)for(var o=0,a=n.length;o<a;o++)n[o].fn!==t&&n[o].fn._!==t&&i.push(n[o]);return i.length?r[e]=i:delete r[e],this}},e.exports=t,e.exports.TinyEmitter=t},42915(e){"use strict";var t;t=function(){function e(){return!0}function t(){return!1}function r(){}return function n(){var i=[{name:"number",test:function(e){return"number"==typeof e}},{name:"string",test:function(e){return"string"==typeof e}},{name:"boolean",test:function(e){return"boolean"==typeof e}},{name:"Function",test:function(e){return"function"==typeof e}},{name:"Array",test:Array.isArray},{name:"Date",test:function(e){return e instanceof Date}},{name:"RegExp",test:function(e){return e instanceof RegExp}},{name:"Object",test:function(e){return"object"==typeof e&&null!==e&&e.constructor===Object}},{name:"null",test:function(e){return null===e}},{name:"undefined",test:function(e){return void 0===e}}],o={name:"any",test:e},a=[],s=[],l={types:i,conversions:s,ignore:a};function u(e){var t=j(l.types,function(t){return t.name===e});if(t)return t;if("any"===e)return o;var r=j(l.types,function(t){return t.name.toLowerCase()===e.toLowerCase()});throw TypeError('Unknown type "'+e+'"'+(r?'. Did you mean "'+r.name+'"?':""))}function c(e){return e===o?999:l.types.indexOf(e)}function d(e){var t=j(l.types,function(t){return t.test(e)});if(t)return t.name;throw TypeError("Value has unknown type. Value: "+e)}function p(e){return e.map(function(e){var t=e.types.map(v);return(e.restParam?"...":"")+t.join("|")}).join(",")}function f(e){var t=I(e);return!!t&&t.restParam}function h(e){return e.types.some(function(e){return null!=e.conversion})}function m(t){if(!t||0===t.types.length)return e;if(1===t.types.length)return u(t.types[0].name).test;if(2===t.types.length){var r=u(t.types[0].name).test,n=u(t.types[1].name).test;return function(e){return r(e)||n(e)}}var i=t.types.map(function(e){return u(e.name).test});return function(e){for(var t=0;t<i.length;t++)if(i[t](e))return!0;return!1}}function g(e,t){return t<e.params.length?e.params[t]:f(e.params)?I(e.params):null}function y(e,t,r){var n=g(e,t);return(n?r?n.types.filter(b):n.types:[]).map(v)}function v(e){return e.name}function b(e){return null===e.conversion||void 0===e.conversion}function x(e,t){var r=function(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return Object.keys(t)}(z(e,function(e){return y(e,t,!1)}));return -1!==r.indexOf("any")?["any"]:r}function A(e,t,r){var n,i,o,a=e||"unnamed",s=r;for(o=0;o<t.length;o++){var l=s.filter(function(e){var r=m(g(e,o));return(o<e.params.length||f(e.params))&&r(t[o])});if(0===l.length){if((i=x(s,o)).length>0){var u=d(t[o]);return(n=TypeError("Unexpected type of argument in function "+a+" (expected: "+i.join(" or ")+", actual: "+u+", index: "+o+")")).data={category:"wrongType",fn:a,index:o,actual:u,expected:i},n}}else s=l}var c=s.map(function(e){return f(e.params)?1/0:e.params.length});if(t.length<Math.min.apply(null,c))return(n=TypeError("Too few arguments in function "+a+" (expected: "+(i=x(s,o)).join(" or ")+", index: "+t.length+")")).data={category:"tooFewArgs",fn:a,index:t.length,expected:i},n;var p=Math.max.apply(null,c);return t.length>p?(n=TypeError("Too many arguments in function "+a+" (expected: "+p+", actual: "+t.length+")")).data={category:"tooManyArgs",fn:a,index:t.length,expectedLength:p}:(n=TypeError('Arguments of type "'+t.join(", ")+'" do not match any of the defined signatures of function '+a+".")).data={category:"mismatch",actual:t.map(d)},n}function w(e){for(var t=999,r=0;r<e.types.length;r++)b(e.types[r])&&(t=Math.min(t,e.types[r].typeIndex));return t}function S(e){for(var t=999,r=0;r<e.types.length;r++)b(e.types[r])||(t=Math.min(t,e.types[r].conversionIndex));return t}function _(e,t){var r,n,i=Math.min(e.params.length,t.params.length);if(0!=(n=e.params.some(h)-t.params.some(h)))return n;for(r=0;r<i;r++)if(0!=(n=h(e.params[r])-h(t.params[r])))return n;for(r=0;r<i;r++)if(0!==(n=function(e,t){var r;return 0!=(r=e.restParam-t.restParam)||0!=(r=h(e)-h(t))||0!=(r=w(e)-w(t))?r:S(e)-S(t)}(e.params[r],t.params[r])))return n;return e.params.length-t.params.length}function k(e){var t,r,n,i,o=[],a=[];switch(e.types.forEach(function(e){e.conversion&&(o.push(u(e.conversion.from).test),a.push(e.conversion.convert))}),a.length){case 0:return function(e){return e};case 1:return t=o[0],n=a[0],function(e){return t(e)?n(e):e};case 2:return t=o[0],r=o[1],n=a[0],i=a[1],function(e){return t(e)?n(e):r(e)?i(e):e};default:return function(e){for(var t=0;t<a.length;t++)if(o[t](e))return a[t](e);return e}}}function M(e,t){return function e(r,n,i){if(!(n<r.length))return[i.map(function(e,t){return{types:e,restParam:t===r.length-1&&f(r)}})];var o,a=r[n],s=t?a.types.filter(b):a.types;if(a.restParam){var l=s.filter(b);o=l.length<s.length?[l,s]:[s]}else o=s.map(function(e){return[e]});return z(o,function(t){return e(r,n+1,i.concat([t]))})}(e,0,[])}function C(e,n){if(0===Object.keys(n).length)throw SyntaxError("No signatures provided");var i,o=[];Object.keys(n).map(function(e){var t,r,i;return t=n[e],r=l.conversions,i=[],(""!==e.trim()&&(i=e.split(",").map(E).map(function(e,t,n){var i,o,a,s,l,d,p,f,h=(i=r,o=l=((s=0===e.indexOf("..."))?e.length>3?e.slice(3):"any":e).split("|").map(E).filter(N).filter(O),a={},i.forEach(function(e){-1!==o.indexOf(e.from)||-1===o.indexOf(e.to)||a[e.from]||(a[e.from]=e)}),d=Object.keys(a).map(function(e){return a[e]}),p=l.map(function(e){var t=u(e);return{name:e,typeIndex:c(t),test:t.test,conversion:null,conversionIndex:-1}}),f=d.map(function(e){var t=u(e.from);return{name:e.from,typeIndex:c(t),test:t.test,conversion:e,conversionIndex:r.indexOf(e)}}),{types:p.concat(f),restParam:s});if(h.restParam&&t!==n.length-1)throw SyntaxError('Unexpected rest parameter "'+e+'": only allowed for the last parameter');return h})),i.some(T))?null:{params:i,fn:t}}).filter(R).forEach(function(e){var t=j(o,function(t){return function(e,t){for(var r=Math.max(e.params.length,t.params.length),n=0;n<r;n++)if(!function(e,t){for(var r,n=0;n<e.length;n++)if(r=e[n],-1!==t.indexOf(r))return!0;return!1}(y(e,n,!0),y(t,n,!0)))return!1;var i=e.params.length,o=t.params.length,a=f(e.params),s=f(t.params);return a?s?i===o:o>=i:s?i>=o:i===o}(t,e)});if(t)throw TypeError('Conflicting signatures "'+p(t.params)+'" and "'+p(e.params)+'".');o.push(e)});var a=z(o,function(e){return(e?M(e.params,!1):[]).map(function(t){return{params:t,fn:e.fn}})}).filter(R);a.sort(_);var s=a[0]&&a[0].params.length<=2&&!f(a[0].params),d=a[1]&&a[1].params.length<=2&&!f(a[1].params),g=a[2]&&a[2].params.length<=2&&!f(a[2].params),v=a[3]&&a[3].params.length<=2&&!f(a[3].params),b=a[4]&&a[4].params.length<=2&&!f(a[4].params),x=a[5]&&a[5].params.length<=2&&!f(a[5].params),A=a.map(function(e){return function(e){var t,r,n;if(f(e)){var i,o=(t=(i=e).slice(0,i.length-1).map(m)).length,a=m(I(e)),s=function(e){for(var t=o;t<e.length;t++)if(!a(e[t]))return!1;return!0};return function(e){for(var r=0;r<t.length;r++)if(!t[r](e[r]))return!1;return s(e)&&e.length>=o+1}}return 0===e.length?function(e){return 0===e.length}:1===e.length?(r=m(e[0]),function(e){return r(e[0])&&1===e.length}):2===e.length?(r=m(e[0]),n=m(e[1]),function(e){return r(e[0])&&n(e[1])&&2===e.length}):(t=e.map(m),function(e){for(var r=0;r<t.length;r++)if(!t[r](e[r]))return!1;return e.length===t.length})}(e.params)}),w=s?m(a[0].params[0]):t,S=d?m(a[1].params[0]):t,C=g?m(a[2].params[0]):t,$=v?m(a[3].params[0]):t,B=b?m(a[4].params[0]):t,L=x?m(a[5].params[0]):t,D=s?m(a[0].params[1]):t,F=d?m(a[1].params[1]):t,W=g?m(a[2].params[1]):t,Z=v?m(a[3].params[1]):t,q=b?m(a[4].params[1]):t,V=x?m(a[5].params[1]):t,H=a.map(function(e){return function(e,t){var r=t;if(e.some(h)){var n=f(e),i=e.map(k);r=function(){for(var e=[],r=n?arguments.length-1:arguments.length,o=0;o<r;o++)e[o]=i[o](arguments[o]);return n&&(e[r]=arguments[r].map(i[r])),t.apply(this,e)}}var o=r;if(f(e)){var a=e.length-1;o=function(){return r.apply(this,P(arguments,0,a).concat([P(arguments,a)]))}}return o}(e.params,e.fn)}),U=s?H[0]:r,Y=d?H[1]:r,K=g?H[2]:r,X=v?H[3]:r,G=b?H[4]:r,Q=x?H[5]:r,J=s?a[0].params.length:-1,ee=d?a[1].params.length:-1,et=g?a[2].params.length:-1,er=v?a[3].params.length:-1,en=b?a[4].params.length:-1,ei=x?a[5].params.length:-1,eo=6*!!(s&&d&&g&&v&&b&&x),ea=a.length,es=function(){for(var t=eo;t<ea;t++)if(A[t](arguments))return H[t].apply(this,arguments);return l.onMismatch(e,arguments,a)},el=function e(t,r){return arguments.length===J&&w(t)&&D(r)?U.apply(e,arguments):arguments.length===ee&&S(t)&&F(r)?Y.apply(e,arguments):arguments.length===et&&C(t)&&W(r)?K.apply(e,arguments):arguments.length===er&&$(t)&&Z(r)?X.apply(e,arguments):arguments.length===en&&B(t)&&q(r)?G.apply(e,arguments):arguments.length===ei&&L(t)&&V(r)?Q.apply(e,arguments):es.apply(e,arguments)};try{Object.defineProperty(el,"name",{value:e})}catch(e){}return i={},a.forEach(function(e){e.params.some(h)||M(e.params,!0).forEach(function(t){i[p(t)]=e.fn})}),el.signatures=i,el}function $(e,t,r){throw A(e,t,r)}function O(e){return -1===l.ignore.indexOf(e)}function E(e){return e.trim()}function N(e){return!!e}function R(e){return null!==e}function T(e){return 0===e.types.length}function I(e){return e[e.length-1]}function P(e,t,r){return Array.prototype.slice.call(e,t,r)}function j(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function z(e,t){return Array.prototype.concat.apply([],e.map(t))}function B(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(("object"==typeof n.signatures||"string"==typeof n.signature)&&""!==n.name){if(""===t)t=n.name;else if(t!==n.name){var i=Error("Function names do not match (expected: "+t+", actual: "+n.name+")");throw i.data={actual:n.name,expected:t},i}}}return t}function L(e){var t,r={};function n(e,n){if(r.hasOwnProperty(e)&&n!==r[e])throw(t=Error('Signature "'+e+'" is defined twice')).data={signature:e},t}for(var i=0;i<e.length;i++){var o=e[i];if("object"==typeof o.signatures)for(var a in o.signatures)o.signatures.hasOwnProperty(a)&&(n(a,o.signatures[a]),r[a]=o.signatures[a]);else if("string"==typeof o.signature)n(o.signature,o),r[o.signature]=o;else throw(t=TypeError("Function is no typed-function (index: "+i+")")).data={index:i},t}return r}return(l=C("typed",{"string, Object":C,Object:function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return C(B(t),e)},"...Function":function(e){return C(B(e),L(e))},"string, ...Function":function(e,t){return C(e,L(t))}})).create=n,l.types=i,l.conversions=s,l.ignore=a,l.onMismatch=$,l.throwMismatchError=$,l.createError=A,l.convert=function(e,t){var r=d(e);if(t===r)return e;for(var n=0;n<l.conversions.length;n++){var i=l.conversions[n];if(i.from===r&&i.to===t)return i.convert(e)}throw Error("Cannot convert from "+r+" to "+t)},l.find=function(e,t){if(!e.signatures)throw TypeError("Function is no typed-function");if("string"==typeof t){r=t.split(",");for(var r,n=0;n<r.length;n++)r[n]=r[n].trim()}else if(Array.isArray(t))r=t;else throw TypeError("String array or a comma separated string expected");var i=r.join(","),o=e.signatures[i];if(o)return o;throw TypeError("Signature not found (signature: "+(e.name||"unnamed")+"("+r.join(", ")+"))")},l.addType=function(e,t){if(!e||"string"!=typeof e.name||"function"!=typeof e.test)throw TypeError("Object with properties {name: string, test: function} expected");if(!1!==t){for(var r=0;r<l.types.length;r++)if("Object"===l.types[r].name)return void l.types.splice(r,0,e)}l.types.push(e)},l.addConversion=function(e){if(!e||"string"!=typeof e.from||"string"!=typeof e.to||"function"!=typeof e.convert)throw TypeError("Object with properties {from: string, to: string, convert: function} expected");l.conversions.push(e)},l}()},"function"==typeof define&&define.amd?define([],t):e.exports=t()},85180(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(70451);function i(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:"contentBoxSize"===t?e.contentRect["inlineSize"===r?"width":"height"]:void 0}function o(e){void 0===e&&(e={});var t,r,o,a,s,l,u=e.onResize,c=(0,n.useRef)(void 0);c.current=u;var d=e.round||Math.round,p=(0,n.useRef)(),f=(0,n.useState)({width:void 0,height:void 0}),h=f[0],m=f[1],g=(0,n.useRef)(!1);(0,n.useEffect)(function(){return g.current=!1,function(){g.current=!0}},[]);var y=(0,n.useRef)({width:void 0,height:void 0}),v=(t=(0,n.useCallback)(function(t){return p.current&&p.current.box===e.box&&p.current.round===d||(p.current={box:e.box,round:d,instance:new ResizeObserver(function(t){var r=t[0],n="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",o=i(r,n,"inlineSize"),a=i(r,n,"blockSize"),s=o?d(o):void 0,l=a?d(a):void 0;if(y.current.width!==s||y.current.height!==l){var u={width:s,height:l};y.current.width=s,y.current.height=l,c.current?c.current(u):g.current||m(u)}})}),p.current.instance.observe(t,{box:e.box}),function(){p.current&&p.current.instance.unobserve(t)}},[e.box,d]),r=e.ref,o=(0,n.useRef)(null),(a=(0,n.useRef)(null)).current=r,s=(0,n.useRef)(null),(0,n.useEffect)(function(){l()}),l=(0,n.useCallback)(function(){var e=s.current,r=a.current,n=e||(r?r instanceof Element?r:r.current:null);o.current&&o.current.element===n&&o.current.subscriber===t||(o.current&&o.current.cleanup&&o.current.cleanup(),o.current={element:n,subscriber:t,cleanup:n?t(n):void 0})},[t]),(0,n.useEffect)(function(){return function(){o.current&&o.current.cleanup&&(o.current.cleanup(),o.current=null)}},[]),(0,n.useCallback)(function(e){s.current=e,l()},[l]));return(0,n.useMemo)(function(){return{ref:v,width:h.width,height:h.height}},[v,h.width,h.height])}},68102(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}r.d(t,{A:()=>n})},7490(e,t,r){"use strict";function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}r.d(t,{A:()=>i})},49257(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}r.d(t,{A:()=>n})},11750(e,t,r){"use strict";r.d(t,{A:()=>n});let n=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n}},38662(e,t,r){"use strict";r.d(t,{CN:()=>w,jM:()=>Z,lE:()=>o});var n,i=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),a=Symbol.for("immer-state");function s(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var l=Object.getPrototypeOf;function u(e){return!!e&&!!e[a]}function c(e){return!!e&&(f(e)||Array.isArray(e)||!!e[o]||!!e.constructor?.[o]||v(e)||b(e))}var d=Object.prototype.constructor.toString(),p=new WeakMap;function f(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if("function"!=typeof r)return!1;let n=p.get(r);return void 0===n&&(n=Function.toString.call(r),p.set(r,n)),n===d}function h(e,t,r=!0){0===m(e)?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function m(e){let t=e[a];return t?t.type_:Array.isArray(e)?1:v(e)?2:3*!!b(e)}function g(e,t){return 2===m(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function y(e,t,r){let n=m(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function v(e){return e instanceof Map}function b(e){return e instanceof Set}function x(e){return e.copy_||e.base_}function A(e,t){if(v(e))return new Map(e);if(b(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=f(e);if(!0!==t&&("class_only"!==t||r)){let t=l(e);return null!==t&&r?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[a];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(l(e),t)}}function w(e,t=!1){return _(e)||u(e)||!c(e)||(m(e)>1&&Object.defineProperties(e,{set:S,add:S,clear:S,delete:S}),Object.freeze(e),t&&Object.values(e).forEach(e=>w(e,!0))),e}var S={value:function(){s(2)}};function _(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var k={};function M(e){let t=k[e];return t||s(0,e),t}function C(e,t){t&&(M("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function $(e){O(e),e.drafts_.forEach(N),e.drafts_=null}function O(e){e===n&&(n=e.parent_)}function E(e){return n={drafts_:[],parent_:n,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function N(e){let t=e[a];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function R(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return void 0!==e&&e!==r?(r[a].modified_&&($(t),s(4)),c(e)&&(e=T(t,e),t.parent_||P(t,e)),t.patches_&&M("Patches").generateReplacementPatches_(r[a].base_,e,t.patches_,t.inversePatches_)):e=T(t,r,[]),$(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==i?e:void 0}function T(e,t,r){if(_(t))return t;let n=e.immer_.shouldUseStrictIteration(),i=t[a];if(!i)return h(t,(n,o)=>I(e,i,t,n,o,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return P(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;let t=i.copy_,o=t,a=!1;3===i.type_&&(o=new Set(t),t.clear(),a=!0),h(o,(n,o)=>I(e,i,t,n,o,r,a),n),P(e,t,!1),r&&e.patches_&&M("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function I(e,t,r,n,i,o,a){if(null==i||"object"!=typeof i&&!a)return;let s=_(i);if(!s||a){if(u(i)){let a=T(e,i,o&&t&&3!==t.type_&&!g(t.assigned_,n)?o.concat(n):void 0);if(y(r,n,a),!u(a))return;e.canAutoFreeze_=!1}else a&&r.add(i);if(c(i)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&s)return;T(e,i),(!t||!t.scope_.parent_)&&"symbol"!=typeof n&&(v(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&P(e,i)}}}function P(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&w(t,r)}var j={get(e,t){if(t===a)return e;let r=x(e);if(!g(r,t)){var n;let i;return n=e,(i=L(r,t))?"value"in i?i.value:i.get?.call(n.draft_):void 0}let i=r[t];return e.finalized_||!c(i)?i:i===B(e.base_,t)?(F(e),e.copy_[t]=W(i,e)):i},has:(e,t)=>t in x(e),ownKeys:e=>Reflect.ownKeys(x(e)),set(e,t,r){let n=L(x(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=B(x(e),t),i=n?.[a];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||g(e.base_,t)))return!0;F(e),D(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==B(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,F(e),D(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=x(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){s(11)},getPrototypeOf:e=>l(e.base_),setPrototypeOf(){s(12)}},z={};function B(e,t){let r=e[a];return(r?x(r):e)[t]}function L(e,t){if(!(t in e))return;let r=l(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=l(r)}}function D(e){!e.modified_&&(e.modified_=!0,e.parent_&&D(e.parent_))}function F(e){e.copy_||(e.copy_=A(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function W(e,t){let r=v(e)?M("MapSet").proxyMap_(e,t):b(e)?M("MapSet").proxySet_(e,t):function(e,t){let r=Array.isArray(e),i={type_:+!!r,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=i,a=j;r&&(o=[i],a=z);let{revoke:s,proxy:l}=Proxy.revocable(o,a);return i.draft_=l,i.revoke_=s,l}(e,t);return(t?t.scope_:n).drafts_.push(r),r}h(j,(e,t)=>{z[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),z.deleteProperty=function(e,t){return z.set.call(this,e,t,void 0)},z.set=function(e,t,r){return j.set.call(this,e[0],t,r,e[0])};var Z=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,r)=>{let n;if("function"==typeof e&&"function"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}if("function"!=typeof t&&s(6),void 0!==r&&"function"!=typeof r&&s(7),c(e)){let i=E(this),o=W(e,void 0),a=!0;try{n=t(o),a=!1}finally{a?$(i):O(i)}return C(i,r),R(n,i)}if(e&&"object"==typeof e)s(1,e);else{if(void 0===(n=t(e))&&(n=e),n===i&&(n=void 0),this.autoFreeze_&&w(n,!0),r){let t=[],i=[];M("Patches").generateReplacementPatches_(e,n,t,i),r(t,i)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return"function"==typeof e?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){var t;c(e)||s(8),u(e)&&(u(t=e)||s(10,t),e=function e(t){let r;if(!c(t)||_(t))return t;let n=t[a],i=!0;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=A(t,n.scope_.immer_.useStrictShallowCopy_),i=n.scope_.immer_.shouldUseStrictIteration()}else r=A(t,!0);return h(r,(t,n)=>{y(r,t,e(n))},i),n&&(n.finalized_=!1),r}(t));let r=E(this),n=W(e,void 0);return n[a].isManual_=!0,O(r),n}finishDraft(e,t){let r=e&&e[a];r&&r.isManual_||s(9);let{scope_:n}=r;return C(n,t),R(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=M("Patches").applyPatches_;return u(e)?n(e,t):this.produce(e,e=>n(e,t))}}().produce},18615(e,t,r){"use strict";r.d(t,{v:()=>g});var n=r(68102),i=r(32718),o=r(23420),a=r(46797),s=r(1207),l=r(49204);function u(e,t,r,n){if(!(this instanceof u))throw SyntaxError("Constructor must be called with the new operator");this.fn=e,this.count=t,this.min=r,this.max=n,this.message="Wrong number of arguments in function "+e+" ("+t+" provided, "+r+(null!=n?"-"+n:"")+" expected)",this.stack=Error().stack}u.prototype=Error(),u.prototype.constructor=Error,u.prototype.name="ArgumentsError",u.prototype.isArgumentsError=!0;var c={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null},d=["Matrix","Array"],p=["number","BigNumber","Fraction"];function f(e,t,r){var n;void 0!==e[t]&&(n=e[t],-1===r.indexOf(n))&&console.warn('Warning: Unknown value "'+e[t]+'" for configuration option "'+t+'". Available options: '+r.map(e=>JSON.stringify(e)).join(", ")+".")}var h=r(15562),m=r(16086);function g(e,t){var r,y,v=(0,n.A)({},c,t);if("function"!=typeof Object.create)throw Error("ES5 not supported by this JavaScript engine. Please load the es5-shim and es5-sham library for compatibility.");var b=((r={isNumber:a.Et,isComplex:a.Zd,isBigNumber:a.C4,isFraction:a.fU,isUnit:a.vO,isString:a.Kg,isArray:a.cy,isMatrix:a.OA,isCollection:a.P3,isDenseMatrix:a.zR,isSparseMatrix:a.AF,isRange:a._Z,isIndex:a.nw,isBoolean:a.Lm,isResultSet:a.eW,isHelp:a.gS,isFunction:a.Tn,isDate:a.$P,isRegExp:a.gd,isObject:a.Gv,isNull:a.kZ,isUndefined:a.b0,isAccessorNode:a.AS,isArrayNode:a.gO,isAssignmentNode:a.qM,isBlockNode:a.CD,isConditionalNode:a.PO,isConstantNode:a.BA,isFunctionAssignmentNode:a.m2,isFunctionNode:a.Px,isIndexNode:a.$I,isNode:a.Ll,isObjectNode:a.GJ,isOperatorNode:a.$$,isParenthesisNode:a.tv,isRangeNode:a.Ye,isSymbolNode:a.li,isChain:a.o_}).on=(y=new o).on.bind(y),r.off=y.off.bind(y),r.once=y.once.bind(y),r.emit=y.emit.bind(y),r);b.config=function(e,t){function r(r){if(!r)return(0,i.s8)(e,i.o8);var n=(0,i.s8)(e,i.o8);f(r,"matrix",d),f(r,"number",p),(0,i.zw)(e,r);var o=(0,i.s8)(e,i.o8);return t("config",o,n,(0,i.s8)(r,i.o8)),o}return r.MATRIX_OPTIONS=d,r.NUMBER_OPTIONS=p,Object.keys(c).forEach(t=>{Object.defineProperty(r,t,{get:()=>e[t],enumerable:!0,configurable:!0})}),r}(v,b.emit),b.expression={transform:{},mathWithTransform:{config:b.config}};var x={},A=function(e,t,r){function n(e,r){r&&"function"==typeof r.transform?(t.expression.transform[e]=r.transform,c(e)&&(t.expression.mathWithTransform[e]=r.transform)):(delete t.expression.transform[e],c(e)&&(t.expression.mathWithTransform[e]=r))}function o(e){return"function"==typeof e&&"object"==typeof e.signatures}function c(e){return!(0,i.mQ)(p,e)}function d(e){return void 0!==e&&void 0!==e.meta&&!0===e.meta.isTransformFunction}var p={expression:!0,type:!0,docs:!0,error:!0,json:!0,chain:!0};return function(f,h){var m=arguments.length;if(1!==m&&2!==m)throw new u("import",m,1,2);h||(h={});var g={};for(var y in!function e(t,r,n){if(Array.isArray(r))r.forEach(r=>e(t,r));else if("object"==typeof r)for(var o in r)(0,i.mQ)(r,o)&&e(t,r[o],o);else if((0,s.T$)(r)||void 0!==n){var a=(0,s.T$)(r)?d(r)?r.fn+".transform":r.fn:n;if((0,i.mQ)(t,a)&&t[a]!==r&&!h.silent)throw Error('Cannot import "'+a+'" twice');t[a]=r}else if(!h.silent)throw TypeError("Factory, Object, or Array expected")}(g,f),g)if((0,i.mQ)(g,y)){var v,b=g[y];if((0,s.T$)(b))!function(n,a){var u,f,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.fn;if((0,l.gR)(h,"."))throw Error("Factory name should not contain a nested path. Name: "+JSON.stringify(h));var m=d(n)?t.expression.transform:t,g=h in t.expression.transform,y=(0,i.mQ)(m,h)?m[h]:void 0,v=function(){var r={};n.dependencies.map(s.Py).forEach(e=>{if((0,l.gR)(e,"."))throw Error("Factory dependency should not contain a nested path. Name: "+JSON.stringify(e));"math"===e?r.math=t:"mathWithTransform"===e?r.mathWithTransform=t.expression.mathWithTransform:"classes"===e?r.classes=t:r[e]=t[e]});var i=n(r);if(i&&"function"==typeof i.transform)throw Error('Transforms cannot be attached to factory functions. Please create a separate function for it with exports.path="expression.transform"');if(void 0===y||a.override)return i;if(o(y)&&o(i))return e(y,i);if(a.silent)return y;throw Error('Cannot import "'+h+'": already exists')};n.meta&&!1===n.meta.lazy?m[h]=v():(0,i.RZ)(m,h,v),y&&g?(u=h,delete t.expression.transform[u],c(u)?t.expression.mathWithTransform[u]=t[u]:delete t.expression.mathWithTransform[u]):!d(n)&&(-1!==(f=n).fn.indexOf(".")||(0,i.mQ)(p,f.fn)||f.meta&&f.meta.isClass)||(0,i.RZ)(t.expression.mathWithTransform,h,()=>m[h]),r[h]=n,t.emit("import",h,v)}(b,h);else{if("function"==typeof(v=b)||"number"==typeof v||"string"==typeof v||"boolean"==typeof v||null===v||(0,a.vO)(v)||(0,a.Zd)(v)||(0,a.C4)(v)||(0,a.fU)(v)||(0,a.OA)(v)||Array.isArray(v))!function(i,a,s){var l;if(s.wrap&&"function"==typeof a&&(a=function(e){var r=function(){for(var r=[],n=0,i=arguments.length;n<i;n++){var o=arguments[n];r[n]=o&&o.valueOf()}return e.apply(t,r)};return e.transform&&(r.transform=e.transform),r}(a)),"function"==typeof(l=a)&&"string"==typeof l.signature&&(a=e(i,{[a.signature]:a})),o(t[i])&&o(a)){a=s.override?e(i,a.signatures):e(t[i],a),t[i]=a,delete r[i],n(i,a),t.emit("import",i,function(){return a});return}if(void 0===t[i]||s.override){t[i]=a,delete r[i],n(i,a),t.emit("import",i,function(){return a});return}if(!s.silent)throw Error('Cannot import "'+i+'": already exists')}(y,b,h);else if(!h.silent)throw TypeError("Factory, Object, or Array expected")}}}}(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return b.typed.apply(b.typed,t)},b,x);return b.import=A,b.on("config",()=>{(0,i.zu)(x).forEach(e=>{e&&e.meta&&e.meta.recreateOnConfigChange&&A(e,{override:!0})})}),b.create=g.bind(null,e),b.factory=s.P9,b.import((0,i.zu)((0,i.rU)(e))),b.ArgumentsError=u,b.DimensionError=h.h,b.IndexError=m.d,b}},95343(e,t,r){"use strict";r.d(t,{P:()=>eP});var n,i,o="0123456789abcdef",a="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",s="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",l={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},u=!0,c="[DecimalError] ",d=c+"Invalid argument: ",p=c+"Precision limit exceeded",f=c+"crypto unavailable",h="[object Decimal]",m=Math.floor,g=Math.pow,y=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,v=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,b=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,x=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,A=a.length-1,w=s.length-1,S={toStringTag:h};function _(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(o+=P(r)),o+=n;(r=7-(n=(a=e[t])+"").length)&&(o+=P(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function k(e,t,r){if(e!==~~e||e<t||e>r)throw Error(d+e)}function M(e,t,r,n){var i,o,a,s;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),o=g(10,7-t),s=e[i]%o|0,null==n?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),a=r<4&&99999==s||r>3&&49999==s||5e4==s||0==s):a=(r<4&&s+1==o||r>3&&s+1==o/2)&&(e[i+1]/o/100|0)==g(10,t-2)-1||(s==o/2||0==s)&&(e[i+1]/o/100|0)==0:t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),a=(n||r<4)&&9999==s||!n&&r>3&&4999==s):a=((n||r<4)&&s+1==o||!n&&r>3&&s+1==o/2)&&(e[i+1]/o/1e3|0)==g(10,t-3)-1,a}function C(e,t,r){for(var n,i,a=[0],s=0,l=e.length;s<l;){for(i=a.length;i--;)a[i]*=t;for(a[0]+=o.indexOf(e.charAt(s++)),n=0;n<a.length;n++)a[n]>r-1&&(void 0===a[n+1]&&(a[n+1]=0),a[n+1]+=a[n]/r|0,a[n]%=r)}return a.reverse()}S.absoluteValue=S.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),O(e)},S.ceil=function(){return O(new this.constructor(this),this.e+1,2)},S.clampedTo=S.clamp=function(e,t){var r=this.constructor;if(e=new r(e),t=new r(t),!e.s||!t.s)return new r(NaN);if(e.gt(t))throw Error(d+t);return 0>this.cmp(e)?e:this.cmp(t)>0?t:new r(this)},S.comparedTo=S.cmp=function(e){var t,r,n,i,o=this.d,a=(e=new this.constructor(e)).d,s=this.s,l=e.s;if(!o||!a)return s&&l?s!==l?s:o===a?0:!o^s<0?1:-1:NaN;if(!o[0]||!a[0])return o[0]?s:a[0]?-l:0;if(s!==l)return s;if(this.e!==e.e)return this.e>e.e^s<0?1:-1;for(t=0,r=(n=o.length)<(i=a.length)?n:i;t<r;++t)if(o[t]!==a[t])return o[t]>a[t]^s<0?1:-1;return n===i?0:n>i^s<0?1:-1},S.cosine=S.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n,i;if(t.isZero())return t;(n=t.d.length)<32?i=(1/q(4,r=Math.ceil(n/3))).toString():(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=Z(e,1,t.times(i),new e(1));for(var o=r;o--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=r,t}(n,V(n,r)),n.precision=e,n.rounding=t,O(2==i||3==i?r.neg():r,e,t,!0)):new n(1):new n(NaN)},S.cubeRoot=S.cbrt=function(){var e,t,r,n,i,o,a,s,l,c,d=this.constructor;if(!this.isFinite()||this.isZero())return new d(this);for(u=!1,(o=this.s*g(this.s*this,1/3))&&Math.abs(o)!=1/0?n=new d(o.toString()):(r=_(this.d),(o=((e=this.e)-r.length+1)%3)&&(r+=1==o||-2==o?"0":"00"),o=g(r,1/3),e=m((e+1)/3)-(e%3==(e<0?-1:2)),(n=new d(r=o==1/0?"5e"+e:(r=o.toExponential()).slice(0,r.indexOf("e")+1)+e)).s=this.s),a=(e=d.precision)+3;;)if(n=$((c=(l=(s=n).times(s).times(s)).plus(this)).plus(this).times(s),c.plus(l),a+2,1),_(s.d).slice(0,a)===(r=_(n.d)).slice(0,a)){if("9999"!=(r=r.slice(a-3,a+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(O(n,e+1,1),t=!n.times(n).times(n).eq(this));break}if(!i&&(O(s,e+1,0),s.times(s).times(s).eq(this))){n=s;break}a+=4,i=1}return u=!0,O(n,e,d.rounding,t)},S.decimalPlaces=S.dp=function(){var e,t=this.d,r=NaN;if(t){if(r=((e=t.length-1)-m(this.e/7))*7,e=t[e])for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r},S.dividedBy=S.div=function(e){return $(this,new this.constructor(e))},S.dividedToIntegerBy=S.divToInt=function(e){var t=this.constructor;return O($(this,new t(e),0,1,1),t.precision,t.rounding)},S.equals=S.eq=function(e){return 0===this.cmp(e)},S.floor=function(){return O(new this.constructor(this),this.e+1,3)},S.greaterThan=S.gt=function(e){return this.cmp(e)>0},S.greaterThanOrEqualTo=S.gte=function(e){var t=this.cmp(e);return 1==t||0===t},S.hyperbolicCosine=S.cosh=function(){var e,t,r,n,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;r=a.precision,n=a.rounding,a.precision=r+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?t=(1/q(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),o=Z(a,1,o.times(t),new a(1),!0);for(var l,u=e,c=new a(8);u--;)l=o.times(o),o=s.minus(l.times(c.minus(l.times(c))));return O(o,a.precision=r,a.rounding=n,!0)},S.hyperbolicSine=S.sinh=function(){var e,t,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,(n=i.d.length)<3)i=Z(o,2,i,i,!0);else{e=(e=1.4*Math.sqrt(n))>16?16:0|e,i=Z(o,2,i=i.times(1/q(5,e)),i,!0);for(var a,s=new o(5),l=new o(16),u=new o(20);e--;)a=i.times(i),i=i.times(s.plus(a.times(l.times(a).plus(u))))}return o.precision=t,o.rounding=r,O(i,t,r,!0)},S.hyperbolicTangent=S.tanh=function(){var e,t,r=this.constructor;return this.isFinite()?this.isZero()?new r(this):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,$(this.sinh(),this.cosh(),r.precision=e,r.rounding=t)):new r(this.s)},S.inverseCosine=S.acos=function(){var e=this,t=e.constructor,r=e.abs().cmp(1),n=t.precision,i=t.rounding;return -1!==r?0===r?e.isNeg()?T(t,n,i):new t(0):new t(NaN):e.isZero()?T(t,n+4,i).times(.5):(t.precision=n+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=n,t.rounding=i,e.times(2))},S.inverseHyperbolicCosine=S.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,u=!1,r=r.times(r).minus(1).sqrt().plus(r),u=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)},S.inverseHyperbolicSine=S.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,u=!1,r=r.times(r).plus(1).sqrt().plus(r),u=!0,n.precision=e,n.rounding=t,r.ln())},S.inverseHyperbolicTangent=S.atanh=function(){var e,t,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,Math.max(n=i.sd(),e)<-(2*i.e)-1)?O(new o(i),e,t,!0):(o.precision=r=n-i.e,i=$(i.plus(1),new o(1).minus(i),r+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5)):new o(NaN)},S.inverseSine=S.asin=function(){var e,t,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),r=o.precision,n=o.rounding,-1!==t)?0===t?((e=T(o,r+4,n).times(.5)).s=i.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2))},S.inverseTangent=S.atan=function(){var e,t,r,n,i,o,a,s,l,c=this,d=c.constructor,p=d.precision,f=d.rounding;if(c.isFinite()){if(c.isZero())return new d(c);else if(c.abs().eq(1)&&p+4<=w)return(a=T(d,p+4,f).times(.25)).s=c.s,a}else{if(!c.s)return new d(NaN);if(p+4<=w)return(a=T(d,p+4,f).times(.5)).s=c.s,a}for(d.precision=s=p+10,d.rounding=1,e=r=Math.min(28,s/7+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(u=!1,t=Math.ceil(s/7),n=1,l=c.times(c),a=new d(c),i=c;-1!==e;)if(i=i.times(l),o=a.minus(i.div(n+=2)),i=i.times(l),void 0!==(a=o.plus(i.div(n+=2))).d[t])for(e=t;a.d[e]===o.d[e]&&e--;);return r&&(a=a.times(2<<r-1)),u=!0,O(a,d.precision=p,d.rounding=f,!0)},S.isFinite=function(){return!!this.d},S.isInteger=S.isInt=function(){return!!this.d&&m(this.e/7)>this.d.length-2},S.isNaN=function(){return!this.s},S.isNegative=S.isNeg=function(){return this.s<0},S.isPositive=S.isPos=function(){return this.s>0},S.isZero=function(){return!!this.d&&0===this.d[0]},S.lessThan=S.lt=function(e){return 0>this.cmp(e)},S.lessThanOrEqualTo=S.lte=function(e){return 1>this.cmp(e)},S.logarithm=S.log=function(e){var t,r,n,i,o,a,s,l=this.constructor,c=l.precision,d=l.rounding;if(null==e)e=new l(10),t=!0;else{if(r=(e=new l(e)).d,e.s<0||!r||!r[0]||e.eq(1))return new l(NaN);t=e.eq(10)}if(r=this.d,this.s<0||!r||!r[0]||this.eq(1))return new l(r&&!r[0]?-1/0:1!=this.s?NaN:r?0:1/0);if(t)if(r.length>1)i=!0;else{for(n=r[0];n%10==0;)n/=10;i=1!==n}if(u=!1,M((s=$(o=D(this,a=c+5),t?R(l,a+10):D(e,a),a,1)).d,n=c,d))do if(a+=10,s=$(o=D(this,a),t?R(l,a+10):D(e,a),a,1),!i){+_(s.d).slice(n+1,n+15)+1==1e14&&(s=O(s,c+1,0));break}while(M(s.d,n+=10,d));return u=!0,O(s,c,d)},S.minus=S.sub=function(e){var t,r,n,i,o,a,s,l,c,d,p,f,h=this.constructor;if(e=new h(e),!this.d||!e.d)return this.s&&e.s?this.d?e.s=-e.s:e=new h(e.d||this.s!==e.s?this:NaN):e=new h(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.plus(e);if(c=this.d,f=e.d,s=h.precision,l=h.rounding,!c[0]||!f[0]){if(f[0])e.s=-e.s;else{if(!c[0])return new h(3===l?-0:0);e=new h(this)}return u?O(e,s,l):e}if(r=m(e.e/7),d=m(this.e/7),c=c.slice(),o=d-r){for((p=o<0)?(t=c,o=-o,a=f.length):(t=f,r=d,a=c.length),o>(n=Math.max(Math.ceil(s/7),a)+2)&&(o=n,t.length=1),t.reverse(),n=o;n--;)t.push(0);t.reverse()}else{for((p=(n=c.length)<(a=f.length))&&(a=n),n=0;n<a;n++)if(c[n]!=f[n]){p=c[n]<f[n];break}o=0}for(p&&(t=c,c=f,f=t,e.s=-e.s),a=c.length,n=f.length-a;n>0;--n)c[a++]=0;for(n=f.length;n>o;){if(c[--n]<f[n]){for(i=n;i&&0===c[--i];)c[i]=1e7-1;--c[i],c[n]+=1e7}c[n]-=f[n]}for(;0===c[--a];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(e.d=c,e.e=N(c,r),u?O(e,s,l):e):new h(3===l?-0:0)},S.modulo=S.mod=function(e){var t,r=this.constructor;return(e=new r(e),this.d&&e.s&&(!e.d||e.d[0]))?e.d&&(!this.d||this.d[0])?(u=!1,9==r.modulo?(t=$(this,e.abs(),0,3,1),t.s*=e.s):t=$(this,e,0,r.modulo,1),t=t.times(e),u=!0,this.minus(t)):O(new r(this),r.precision,r.rounding):new r(NaN)},S.naturalExponential=S.exp=function(){return L(this)},S.naturalLogarithm=S.ln=function(){return D(this)},S.negated=S.neg=function(){var e=new this.constructor(this);return e.s=-e.s,O(e)},S.plus=S.add=function(e){var t,r,n,i,o,a,s,l,c,d,p=this.constructor;if(e=new p(e),!this.d||!e.d)return this.s&&e.s?this.d||(e=new p(e.d||this.s===e.s?this:NaN)):e=new p(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.minus(e);if(c=this.d,d=e.d,s=p.precision,l=p.rounding,!c[0]||!d[0])return d[0]||(e=new p(this)),u?O(e,s,l):e;if(o=m(this.e/7),n=m(e.e/7),c=c.slice(),i=o-n){for(i<0?(r=c,i=-i,a=d.length):(r=d,n=o,a=c.length),i>(a=(o=Math.ceil(s/7))>a?o+1:a+1)&&(i=a,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((a=c.length)-(i=d.length)<0&&(i=a,r=d,d=c,c=r),t=0;i;)t=(c[--i]=c[i]+d[i]+t)/1e7|0,c[i]%=1e7;for(t&&(c.unshift(t),++n),a=c.length;0==c[--a];)c.pop();return e.d=c,e.e=N(c,n),u?O(e,s,l):e},S.precision=S.sd=function(e){var t;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(d+e);return this.d?(t=I(this.d),e&&this.e+1>t&&(t=this.e+1)):t=NaN,t},S.round=function(){var e=this.constructor;return O(new e(this),this.e+1,e.rounding)},S.sine=S.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:Z(e,2,t,t);r=(r=1.4*Math.sqrt(n))>16?16:0|r,t=Z(e,2,t=t.times(1/q(5,r)),t);for(var i,o=new e(5),a=new e(16),s=new e(20);r--;)i=t.times(t),t=t.times(o.plus(i.times(a.times(i).minus(s))));return t}(n,V(n,r)),n.precision=e,n.rounding=t,O(i>2?r.neg():r,e,t,!0)):new n(NaN)},S.squareRoot=S.sqrt=function(){var e,t,r,n,i,o,a=this.d,s=this.e,l=this.s,c=this.constructor;if(1!==l||!a||!a[0])return new c(!l||l<0&&(!a||a[0])?NaN:a?this:1/0);for(u=!1,0==(l=Math.sqrt(+this))||l==1/0?(((t=_(a)).length+s)%2==0&&(t+="0"),l=Math.sqrt(t),s=m((s+1)/2)-(s<0||s%2),n=new c(t=l==1/0?"5e"+s:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+s)):n=new c(l.toString()),r=(s=c.precision)+3;;)if(n=(o=n).plus($(this,o,r+2,1)).times(.5),_(o.d).slice(0,r)===(t=_(n.d)).slice(0,r)){if("9999"!=(t=t.slice(r-3,r+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(O(n,s+1,1),e=!n.times(n).eq(this));break}if(!i&&(O(o,s+1,0),o.times(o).eq(this))){n=o;break}r+=4,i=1}return u=!0,O(n,s,c.rounding,e)},S.tangent=S.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,(r=r.sin()).s=1,r=$(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,O(2==i||4==i?r.neg():r,e,t,!0)):new n(NaN)},S.times=S.mul=function(e){var t,r,n,i,o,a,s,l,c,d=this.constructor,p=this.d,f=(e=new d(e)).d;if(e.s*=this.s,!p||!p[0]||!f||!f[0])return new d(!e.s||p&&!p[0]&&!f||f&&!f[0]&&!p?NaN:!p||!f?e.s/0:0*e.s);for(r=m(this.e/7)+m(e.e/7),(l=p.length)<(c=f.length)&&(o=p,p=f,f=o,a=l,l=c,c=a),o=[],n=a=l+c;n--;)o.push(0);for(n=c;--n>=0;){for(t=0,i=l+n;i>n;)s=o[i]+f[n]*p[i-n-1]+t,o[i--]=s%1e7|0,t=s/1e7|0;o[i]=(o[i]+t)%1e7|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=N(o,r),u?O(e,d.precision,d.rounding):e},S.toBinary=function(e,t){return H(this,2,e,t)},S.toDecimalPlaces=S.toDP=function(e,t){var r=this,n=r.constructor;return(r=new n(r),void 0===e)?r:(k(e,0,1e9),void 0===t?t=n.rounding:k(t,0,8),O(r,e+r.e+1,t))},S.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=E(n,!0):(k(e,0,1e9),void 0===t?t=i.rounding:k(t,0,8),r=E(n=O(new i(n),e+1,t),!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r},S.toFixed=function(e,t){var r,n,i=this.constructor;return void 0===e?r=E(this):(k(e,0,1e9),void 0===t?t=i.rounding:k(t,0,8),r=E(n=O(new i(this),e+this.e+1,t),!1,e+n.e+1)),this.isNeg()&&!this.isZero()?"-"+r:r},S.toFraction=function(e){var t,r,n,i,o,a,s,l,c,p,f,h,m=this.d,y=this.constructor;if(!m)return new y(this);if(c=r=new y(1),n=l=new y(0),a=(o=(t=new y(n)).e=I(m)-this.e-1)%7,t.d[0]=g(10,a<0?7+a:a),null==e)e=o>0?t:c;else{if(!(s=new y(e)).isInt()||s.lt(c))throw Error(d+s);e=s.gt(t)?o>0?t:c:s}for(u=!1,s=new y(_(m)),p=y.precision,y.precision=o=7*m.length*2;f=$(s,t,0,1,1),1!=(i=r.plus(f.times(n))).cmp(e);)r=n,n=i,i=c,c=l.plus(f.times(i)),l=i,i=t,t=s.minus(f.times(i)),s=i;return i=$(e.minus(r),n,0,1,1),l=l.plus(i.times(c)),r=r.plus(i.times(n)),l.s=c.s=this.s,h=1>$(c,n,o,1).minus(this).abs().cmp($(l,r,o,1).minus(this).abs())?[c,n]:[l,r],y.precision=p,u=!0,h},S.toHexadecimal=S.toHex=function(e,t){return H(this,16,e,t)},S.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),null==e){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),void 0===t?t=n.rounding:k(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(u=!1,r=$(r,e,0,t,1).times(e),u=!0,O(r)):(e.s=r.s,r=e),r},S.toNumber=function(){return+this},S.toOctal=function(e,t){return H(this,8,e,t)},S.toPower=S.pow=function(e){var t,r,n,i,o,a,s=this,l=s.constructor,c=+(e=new l(e));if(!s.d||!e.d||!s.d[0]||!e.d[0])return new l(g(+s,c));if((s=new l(s)).eq(1))return s;if(n=l.precision,o=l.rounding,e.eq(1))return O(s,n,o);if((t=m(e.e/7))>=e.d.length-1&&(r=c<0?-c:c)<=0x1fffffffffffff)return i=j(l,s,r,n),e.s<0?new l(1).div(i):O(i,n,o);if((a=s.s)<0){if(t<e.d.length-1)return new l(NaN);if((1&e.d[t])==0&&(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(t=0!=(r=g(+s,c))&&isFinite(r)?new l(r+"").e:m(c*(Math.log("0."+_(s.d))/Math.LN10+s.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?a/0:0):(u=!1,l.rounding=s.s=1,r=Math.min(12,(t+"").length),(i=L(e.times(D(s,n+r)),n)).d&&M((i=O(i,n+5,1)).d,n,o)&&(t=n+10,+_((i=O(L(e.times(D(s,t+r)),t),t+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=O(i,n+1,0))),i.s=a,u=!0,l.rounding=o,O(i,n,o))},S.toPrecision=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=E(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(k(e,1,1e9),void 0===t?t=i.rounding:k(t,0,8),r=E(n=O(new i(n),e,t),e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r},S.toSignificantDigits=S.toSD=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(k(e,1,1e9),void 0===t?t=r.rounding:k(t,0,8)),O(new r(this),e,t)},S.toString=function(){var e=this.constructor,t=E(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()&&!this.isZero()?"-"+t:t},S.truncated=S.trunc=function(){return O(new this.constructor(this),this.e+1,1)},S.valueOf=S.toJSON=function(){var e=this.constructor,t=E(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()?"-"+t:t};var $=function(){function e(e,t,r){var n,i=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+i,e[o]=n%r|0,i=n/r|0;return i&&e.unshift(i),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}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.shift()}return function(i,o,a,s,l,u){var c,d,p,f,h,g,y,v,b,x,A,w,S,_,k,M,C,$,E,N,R=i.constructor,T=i.s==o.s?1:-1,I=i.d,P=o.d;if(!I||!I[0]||!P||!P[0])return new R(!i.s||!o.s||(I?P&&I[0]==P[0]:!P)?NaN:I&&0==I[0]||!P?0*T:T/0);for(u?(h=1,d=i.e-o.e):(u=1e7,h=7,d=m(i.e/h)-m(o.e/h)),E=P.length,C=I.length,x=(b=new R(T)).d=[],p=0;P[p]==(I[p]||0);p++);if(P[p]>(I[p]||0)&&d--,null==a?(_=a=R.precision,s=R.rounding):_=l?a+(i.e-o.e)+1:a,_<0)x.push(1),g=!0;else{if(_=_/h+2|0,p=0,1==E){for(f=0,P=P[0],_++;(p<C||f)&&_--;p++)k=f*u+(I[p]||0),x[p]=k/P|0,f=k%P|0;g=f||p<C}else{for((f=u/(P[0]+1)|0)>1&&(P=e(P,f,u),I=e(I,f,u),E=P.length,C=I.length),M=E,w=(A=I.slice(0,E)).length;w<E;)A[w++]=0;(N=P.slice()).unshift(0),$=P[0],P[1]>=u/2&&++$;do f=0,(c=t(P,A,E,w))<0?(S=A[0],E!=w&&(S=S*u+(A[1]||0)),(f=S/$|0)>1?(f>=u&&(f=u-1),v=(y=e(P,f,u)).length,w=A.length,1==(c=t(y,A,v,w))&&(f--,r(y,E<v?N:P,v,u))):(0==f&&(c=f=1),y=P.slice()),(v=y.length)<w&&y.unshift(0),r(A,y,w,u),-1==c&&(w=A.length,(c=t(P,A,E,w))<1&&(f++,r(A,E<w?N:P,w,u))),w=A.length):0===c&&(f++,A=[0]),x[p++]=f,c&&A[0]?A[w++]=I[M]||0:(A=[I[M]],w=1);while((M++<C||void 0!==A[0])&&_--);g=void 0!==A[0]}x[0]||x.shift()}if(1==h)b.e=d,n=g;else{for(p=1,f=x[0];f>=10;f/=10)p++;b.e=p+d*h-1,O(b,l?a+b.e+1:a,s,g)}return b}}();function O(e,t,r,n){var i,o,a,s,l,c,d,p,f,h=e.constructor;t:if(null!=t){if(!(p=e.d))return e;for(i=1,s=p[0];s>=10;s/=10)i++;if((o=t-i)<0)o+=7,a=t,l=(d=p[f=0])/g(10,i-a-1)%10|0;else if((f=Math.ceil((o+1)/7))>=(s=p.length))if(n){for(;s++<=f;)p.push(0);d=l=0,i=1,o%=7,a=o-7+1}else break t;else{for(i=1,d=s=p[f];s>=10;s/=10)i++;o%=7,l=(a=o-7+i)<0?0:d/g(10,i-a-1)%10|0}if(n=n||t<0||void 0!==p[f+1]||(a<0?d:d%g(10,i-a-1)),c=r<4?(l||n)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||n||6==r&&(o>0?a>0?d/g(10,i-a):0:p[f-1])%10&1||r==(e.s<0?8:7)),t<1||!p[0])return p.length=0,c?(t-=e.e+1,p[0]=g(10,(7-t%7)%7),e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=f,s=1,f--):(p.length=f+1,s=g(10,7-o),p[f]=a>0?(d/g(10,i-a)%g(10,a)|0)*s:0),c)for(;;)if(0==f){for(o=1,a=p[0];a>=10;a/=10)o++;for(a=p[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(e.e++,1e7==p[0]&&(p[0]=1));break}else{if(p[f]+=s,1e7!=p[f])break;p[f--]=0,s=1}for(o=p.length;0===p[--o];)p.pop()}return u&&(e.e>h.maxE?(e.d=null,e.e=NaN):e.e<h.minE&&(e.e=0,e.d=[0])),e}function E(e,t,r){if(!e.isFinite())return F(e);var n,i=e.e,o=_(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+P(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+P(-i-1)+o,r&&(n=r-a)>0&&(o+=P(n))):i>=a?(o+=P(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+P(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=P(n))),o}function N(e,t){var r=e[0];for(t*=7;r>=10;r/=10)t++;return t}function R(e,t,r){if(t>A)throw u=!0,r&&(e.precision=r),Error(p);return O(new e(a),t,1,!0)}function T(e,t,r){if(t>w)throw Error(p);return O(new e(s),t,r,!0)}function I(e){var t=e.length-1,r=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function P(e){for(var t="";e--;)t+="0";return t}function j(e,t,r,n){var i,o=new e(1),a=Math.ceil(n/7+4);for(u=!1;;){if(r%2&&U((o=o.times(t)).d,a)&&(i=!0),0===(r=m(r/2))){r=o.d.length-1,i&&0===o.d[r]&&++o.d[r];break}U((t=t.times(t)).d,a)}return u=!0,o}function z(e){return 1&e.d[e.d.length-1]}function B(e,t,r){for(var n,i,o=new e(t[0]),a=0;++a<t.length;){if(!(i=new e(t[a])).s){o=i;break}((n=o.cmp(i))===r||0===n&&o.s===r)&&(o=i)}return o}function L(e,t){var r,n,i,o,a,s,l,c=0,d=0,p=0,f=e.constructor,h=f.rounding,m=f.precision;if(!e.d||!e.d[0]||e.e>17)return new f(e.d?!e.d[0]?1:e.s<0?0:1/0:e.s?e.s<0?0:e:0/0);for(null==t?(u=!1,l=m):l=t,s=new f(.03125);e.e>-2;)e=e.times(s),p+=5;for(l+=n=Math.log(g(2,p))/Math.LN10*2+5|0,r=o=a=new f(1),f.precision=l;;){if(o=O(o.times(e),l,1),r=r.times(++d),_((s=a.plus($(o,r,l,1))).d).slice(0,l)===_(a.d).slice(0,l)){for(i=p;i--;)a=O(a.times(a),l,1);if(null!=t)return f.precision=m,a;if(!(c<3&&M(a.d,l-n,h,c)))return O(a,f.precision=m,h,u=!0);f.precision=l+=10,r=o=s=new f(1),d=0,c++}a=s}}function D(e,t){var r,n,i,o,a,s,l,c,d,p,f,h=1,m=e,g=m.d,y=m.constructor,v=y.rounding,b=y.precision;if(m.s<0||!g||!g[0]||!m.e&&1==g[0]&&1==g.length)return new y(g&&!g[0]?-1/0:1!=m.s?NaN:g?0:m);if(null==t?(u=!1,d=b):d=t,y.precision=d+=10,n=(r=_(g)).charAt(0),!(15e14>Math.abs(o=m.e)))return c=R(y,d+2,b).times(o+""),m=D(new y(n+"."+r.slice(1)),d-10).plus(c),y.precision=b,null==t?O(m,b,v,u=!0):m;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=_((m=m.times(e)).d)).charAt(0),h++;for(o=m.e,n>1?(m=new y("0."+r),o++):m=new y(n+"."+r.slice(1)),p=m,l=a=m=$(m.minus(1),m.plus(1),d,1),f=O(m.times(m),d,1),i=3;;){if(a=O(a.times(f),d,1),_((c=l.plus($(a,new y(i),d,1))).d).slice(0,d)===_(l.d).slice(0,d)){if(l=l.times(2),0!==o&&(l=l.plus(R(y,d+2,b).times(o+""))),l=$(l,new y(h),d,1),null!=t)return y.precision=b,l;if(!M(l.d,d-10,v,s))return O(l,y.precision=b,v,u=!0);y.precision=d+=10,c=a=m=$(p.minus(1),p.plus(1),d,1),f=O(m.times(m),d,1),i=s=1}l=c,i+=2}}function F(e){return String(e.s*e.s/0)}function W(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);n++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(n,i)){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";e.d.push(+t),u&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function Z(e,t,r,n,i){var o,a,s,l,c=e.precision,d=Math.ceil(c/7);for(u=!1,l=r.times(r),s=new e(n);;){if(a=$(s.times(l),new e(t++*t++),c,1),s=i?n.plus(a):n.minus(a),n=$(a.times(l),new e(t++*t++),c,1),void 0!==(a=s.plus(n)).d[d]){for(o=d;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=n,n=a,a=o}return u=!0,a.d.length=d+1,a}function q(e,t){for(var r=e;--t;)r*=e;return r}function V(e,t){var r,n=t.s<0,o=T(e,e.precision,1),a=o.times(.5);if((t=t.abs()).lte(a))return i=n?4:1,t;if((r=t.divToInt(o)).isZero())i=n?3:2;else{if((t=t.minus(r.times(o))).lte(a))return i=z(r)?n?2:3:n?4:1,t;i=z(r)?n?1:4:n?3:2}return t.minus(o).abs()}function H(e,t,r,i){var a,s,l,u,c,d,p,f,h,m=e.constructor,g=void 0!==r;if(g?(k(r,1,1e9),void 0===i?i=m.rounding:k(i,0,8)):(r=m.precision,i=m.rounding),e.isFinite()){for(l=(p=E(e)).indexOf("."),g?(a=2,16==t?r=4*r-3:8==t&&(r=3*r-2)):a=t,l>=0&&(p=p.replace(".",""),(h=new m(1)).e=p.length-l,h.d=C(E(h),10,a),h.e=h.d.length),s=c=(f=C(p,10,a)).length;0==f[--c];)f.pop();if(f[0]){if(l<0?s--:((e=new m(e)).d=f,e.e=s,f=(e=$(e,h,r,i,0,a)).d,s=e.e,d=n),l=f[r],u=a/2,d=d||void 0!==f[r+1],d=i<4?(void 0!==l||d)&&(0===i||i===(e.s<0?3:2)):l>u||l===u&&(4===i||d||6===i&&1&f[r-1]||i===(e.s<0?8:7)),f.length=r,d)for(;++f[--r]>a-1;)f[r]=0,r||(++s,f.unshift(1));for(c=f.length;!f[c-1];--c);for(l=0,p="";l<c;l++)p+=o.charAt(f[l]);if(g){if(c>1)if(16==t||8==t){for(l=16==t?4:3,--c;c%l;c++)p+="0";for(c=(f=C(p,a,t)).length;!f[c-1];--c);for(l=1,p="1.";l<c;l++)p+=o.charAt(f[l])}else p=p.charAt(0)+"."+p.slice(1);p=p+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)p="0"+p;p="0."+p}else if(++s>c)for(s-=c;s--;)p+="0";else s<c&&(p=p.slice(0,s)+"."+p.slice(s))}else p=g?"0p+0":"0";p=(16==t?"0x":2==t?"0b":8==t?"0o":"")+p}else p=F(e);return e.s<0?"-"+p:p}function U(e,t){if(e.length>t)return e.length=t,!0}function Y(e){return new this(e).abs()}function K(e){return new this(e).acos()}function X(e){return new this(e).acosh()}function G(e,t){return new this(e).plus(t)}function Q(e){return new this(e).asin()}function J(e){return new this(e).asinh()}function ee(e){return new this(e).atan()}function et(e){return new this(e).atanh()}function er(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,o=n+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(r=t.s<0?T(this,n,i):new this(0)).s=e.s:!e.d||t.isZero()?(r=T(this,o,1).times(.5)).s=e.s:t.s<0?(this.precision=o,this.rounding=1,r=this.atan($(e,t,o,1)),t=T(this,o,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan($(e,t,o,1)):(r=T(this,o,1).times(t.s>0?.25:.75)).s=e.s:r=new this(NaN),r}function en(e){return new this(e).cbrt()}function ei(e){return O(e=new this(e),e.e+1,2)}function eo(e,t,r){return new this(e).clamp(t,r)}function ea(e){if(!e||"object"!=typeof e)throw Error(c+"Object expected");var t,r,n,i=!0===e.defaults,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(t=0;t<o.length;t+=3)if(r=o[t],i&&(this[r]=l[r]),void 0!==(n=e[r]))if(m(n)===n&&n>=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(d+r+": "+n);if(r="crypto",i&&(this[r]=l[r]),void 0!==(n=e[r]))if(!0===n||!1===n||0===n||1===n)if(n)if("u">typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(f);else this[r]=!1;else throw Error(d+r+": "+n);return this}function es(e){return new this(e).cos()}function el(e){return new this(e).cosh()}function eu(e,t){return new this(e).div(t)}function ec(e){return new this(e).exp()}function ed(e){return O(e=new this(e),e.e+1,3)}function ep(){var e,t,r=new this(0);for(e=0,u=!1;e<arguments.length;)if(t=new this(arguments[e++]),t.d)r.d&&(r=r.plus(t.times(t)));else{if(t.s)return u=!0,new this(1/0);r=t}return u=!0,r.sqrt()}function ef(e){return e instanceof eI||e&&e.toStringTag===h||!1}function eh(e){return new this(e).ln()}function em(e,t){return new this(e).log(t)}function eg(e){return new this(e).log(2)}function ey(e){return new this(e).log(10)}function ev(){return B(this,arguments,-1)}function eb(){return B(this,arguments,1)}function ex(e,t){return new this(e).mod(t)}function eA(e,t){return new this(e).mul(t)}function ew(e,t){return new this(e).pow(t)}function eS(e){var t,r,n,i,o=0,a=new this(1),s=[];if(void 0===e?e=this.precision:k(e,1,1e9),n=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(n));o<n;)(i=t[o])>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);o<n;)(i=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((127&t[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,o):(s.push(i%1e7),o+=4);o=n/4}else throw Error(f);else for(;o<n;)s[o++]=1e7*Math.random()|0;for(n=s[--o],e%=7,n&&e&&(i=g(10,7-e),s[o]=(n/i|0)*i);0===s[o];o--)s.pop();if(o<0)r=0,s=[0];else{for(r=-1;0===s[0];r-=7)s.shift();for(n=1,i=s[0];i>=10;i/=10)n++;n<7&&(r-=7-n)}return a.e=r,a.d=s,a}function e_(e){return O(e=new this(e),e.e+1,this.rounding)}function ek(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function eM(e){return new this(e).sin()}function eC(e){return new this(e).sinh()}function e$(e){return new this(e).sqrt()}function eO(e,t){return new this(e).sub(t)}function eE(){var e=0,t=arguments,r=new this(t[0]);for(u=!1;r.s&&++e<t.length;)r=r.plus(t[e]);return u=!0,O(r,this.precision,this.rounding)}function eN(e){return new this(e).tan()}function eR(e){return new this(e).tanh()}function eT(e){return O(e=new this(e),e.e+1,1)}S[Symbol.for("nodejs.util.inspect.custom")]=S.toString,S[Symbol.toStringTag]="Decimal";var eI=S.constructor=function e(t){var r,n,i;function o(e){var t,r,n;if(!(this instanceof o))return new o(e);if(this.constructor=o,ef(e)){this.s=e.s,u?!e.d||e.e>o.maxE?(this.e=NaN,this.d=null):e.e<o.minE?(this.e=0,this.d=[0]):(this.e=e.e,this.d=e.d.slice()):(this.e=e.e,this.d=e.d?e.d.slice():e.d);return}if("number"==(n=typeof e)){if(0===e){this.s=1/e<0?-1:1,this.e=0,this.d=[0];return}if(e<0?(e=-e,this.s=-1):this.s=1,e===~~e&&e<1e7){for(t=0,r=e;r>=10;r/=10)t++;u?t>o.maxE?(this.e=NaN,this.d=null):t<o.minE?(this.e=0,this.d=[0]):(this.e=t,this.d=[e]):(this.e=t,this.d=[e]);return}if(0*e!=0){e||(this.s=NaN),this.e=NaN,this.d=null;return}return W(this,e.toString())}if("string"===n)return 45===(r=e.charCodeAt(0))?(e=e.slice(1),this.s=-1):(43===r&&(e=e.slice(1)),this.s=1),x.test(e)?W(this,e):function(e,t){var r,n,i,o,a,s,l,c,p;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),x.test(t))return W(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(v.test(t))r=16,t=t.toLowerCase();else if(y.test(t))r=2;else if(b.test(t))r=8;else throw Error(d+t);for((o=t.search(/p/i))>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),a=(o=t.indexOf("."))>=0,n=e.constructor,a&&(o=(s=(t=t.replace(".","")).length)-o,i=j(n,new n(r),o,2*o)),o=p=(c=C(t,r,1e7)).length-1;0===c[o];--o)c.pop();return o<0?new n(0*e.s):(e.e=N(c,p),e.d=c,u=!1,a&&(e=$(e,i,4*s)),l&&(e=e.times(54>Math.abs(l)?g(2,l):eI.pow(2,l))),u=!0,e)}(this,e);if("bigint"===n)return e<0?(e=-e,this.s=-1):this.s=1,W(this,e.toString());throw Error(d+e)}if(o.prototype=S,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=ea,o.clone=e,o.isDecimal=ef,o.abs=Y,o.acos=K,o.acosh=X,o.add=G,o.asin=Q,o.asinh=J,o.atan=ee,o.atanh=et,o.atan2=er,o.cbrt=en,o.ceil=ei,o.clamp=eo,o.cos=es,o.cosh=el,o.div=eu,o.exp=ec,o.floor=ed,o.hypot=ep,o.ln=eh,o.log=em,o.log10=ey,o.log2=eg,o.max=ev,o.min=eb,o.mod=ex,o.mul=eA,o.pow=ew,o.random=eS,o.round=e_,o.sign=ek,o.sin=eM,o.sinh=eC,o.sqrt=e$,o.sub=eO,o.sum=eE,o.tan=eN,o.tanh=eR,o.trunc=eT,void 0===t&&(t={}),t&&!0!==t.defaults)for(r=0,i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return o.config(t),o}(l);a=new eI(a),s=new eI(s);var eP={createBigNumberClass:(0,r(1207).P9)("BigNumber",["?on","config"],e=>{var{on:t,config:r}=e,n=eI.clone({precision:r.precision,modulo:eI.EUCLID});return n.prototype=Object.create(n.prototype),n.prototype.type="BigNumber",n.prototype.isBigNumber=!0,n.prototype.toJSON=function(){return{mathjs:"BigNumber",value:this.toString()}},n.fromJSON=function(e){return new n(e.value)},t&&t("config",function(e,t){e.precision!==t.precision&&n.config({precision:e.precision})}),n},{isClass:!0})}},80185(e,t,r){"use strict";r.d(t,{k:()=>d});var n=r(27340),i=r(46797),o=r(49204),a=r(93988),s=r(55624),l=r(32718),u=r(15562),c=(0,r(1207).P9)("DenseMatrix",["Matrix"],e=>{var{Matrix:t}=e;function r(e,t){if(!(this instanceof r))throw SyntaxError("Constructor must be called with the new operator");if(t&&!(0,i.Kg)(t))throw Error("Invalid datatype: "+t);if((0,i.OA)(e))"DenseMatrix"===e.type?(this._data=(0,l.o8)(e._data),this._size=(0,l.o8)(e._size)):(this._data=e.toArray(),this._size=e.size()),this._datatype=t||e._datatype;else if(e&&(0,i.cy)(e.data)&&(0,i.cy)(e.size))this._data=e.data,this._size=e.size,(0,o.tf)(this._data,this._size),this._datatype=t||e.datatype;else if((0,i.cy)(e))this._data=function e(t){for(var r=0,n=t.length;r<n;r++){var o=t[r];(0,i.cy)(o)?t[r]=e(o):o&&!0===o.isMatrix&&(t[r]=e(o.valueOf()))}return t}(e),this._size=(0,o.LO)(this._data),(0,o.tf)(this._data,this._size),this._datatype=t;else if(e)throw TypeError("Unsupported type of data ("+(0,i.QP)(e)+")");else this._data=[],this._size=[0],this._datatype=t}function n(e,t,r){if(0===t.length){for(var n=e._data;(0,i.cy)(n);)n=n[0];return n}return e._size=t.slice(0),e._data=(0,o.XR)(e._data,e._size,r),e}function c(e,t,r){for(var i=e._size.slice(0),o=!1;i.length<t.length;)i.push(0),o=!0;for(var a=0,s=t.length;a<s;a++)t[a]>i[a]&&(i[a]=t[a],o=!0);o&&n(e,i,r)}return r.prototype=new t,r.prototype.createDenseMatrix=function(e,t){return new r(e,t)},r.prototype.type="DenseMatrix",r.prototype.isDenseMatrix=!0,r.prototype.getDataType=function(){return(0,o.ig)(this._data,i.QP)},r.prototype.storage=function(){return"dense"},r.prototype.datatype=function(){return this._datatype},r.prototype.create=function(e,t){return new r(e,t)},r.prototype.subset=function(e,t,n){switch(arguments.length){case 1:return function(e,t){if(!(0,i.nw)(t))throw TypeError("Invalid index");if(t.isScalar())return e.get(t.min());var n=t.size();if(n.length!==e._size.length)throw new u.h(n.length,e._size.length);for(var a=t.min(),s=t.max(),l=0,c=e._size.length;l<c;l++)(0,o.r7)(a[l],e._size[l]),(0,o.r7)(s[l],e._size[l]);return new r(function e(t,r,n,i){var a=i===n-1,s=r.dimension(i);return a?s.map(function(e){return(0,o.r7)(e,t.length),t[e]}).valueOf():s.map(function(a){return(0,o.r7)(a,t.length),e(t[a],r,n,i+1)}).valueOf()}(e._data,t,n.length,0),e._datatype)}(this,e);case 2:case 3:return function(e,t,r,n){if(!t||!0!==t.isIndex)throw TypeError("Invalid index");var a,s=t.size(),d=t.isScalar();if((0,i.OA)(r)?(a=r.size(),r=r.valueOf()):a=(0,o.LO)(r),d){if(0!==a.length)throw TypeError("Scalar expected");e.set(t.min(),r,n)}else{if(s.length<e._size.length)throw new u.h(s.length,e._size.length,"<");if(a.length<s.length){for(var p=0,f=0;1===s[p]&&1===a[p];)p++;for(;1===s[p];)f++,p++;r=(0,o.iD)(r,s.length,f,a)}if(!(0,l.QO)(s,a))throw new u.h(s,a,">");c(e,t.max().map(function(e){return e+1}),n);var h=s.length;!function e(t,r,n,i,a){var s=a===i-1,l=r.dimension(a);s?l.forEach(function(e,r){(0,o.r7)(e),t[e]=n[r[0]]}):l.forEach(function(s,l){(0,o.r7)(s),e(t[s],r,n[l[0]],i,a+1)})}(e._data,t,r,h,0)}return e}(this,e,t,n);default:throw SyntaxError("Wrong number of arguments")}},r.prototype.get=function(e){if(!(0,i.cy)(e))throw TypeError("Array expected");if(e.length!==this._size.length)throw new u.h(e.length,this._size.length);for(var t=0;t<e.length;t++)(0,o.r7)(e[t],this._size[t]);for(var r=this._data,n=0,a=e.length;n<a;n++){var s=e[n];(0,o.r7)(s,r.length),r=r[s]}return r},r.prototype.set=function(e,t,r){if(!(0,i.cy)(e))throw TypeError("Array expected");if(e.length<this._size.length)throw new u.h(e.length,this._size.length,"<");c(this,e.map(function(e){return e+1}),r);var n,a,s,l=this._data;for(n=0,a=e.length-1;n<a;n++)s=e[n],(0,o.r7)(s,l.length),l=l[s];return s=e[e.length-1],(0,o.r7)(s,l.length),l[s]=t,this},r.prototype.resize=function(e,t,r){if(!(0,i.P3)(e))throw TypeError("Array or Matrix expected");var o=e.valueOf().map(e=>Array.isArray(e)&&1===e.length?e[0]:e);return n(r?this.clone():this,o,t)},r.prototype.reshape=function(e,t){var r=t?this.clone():this;r._data=(0,o.tQ)(r._data,e);var n=r._size.reduce((e,t)=>e*t);return r._size=(0,o.cs)(e,n),r},r.prototype.clone=function(){return new r({data:(0,l.o8)(this._data),size:(0,l.o8)(this._size),datatype:this._datatype})},r.prototype.size=function(){return this._size.slice(0)},r.prototype.map=function(e){var t=this,n=function r(n,o){return(0,i.cy)(n)?n.map(function(e,t){return r(e,o.concat(t))}):e(n,o,t)}(this._data,[]),a=void 0!==this._datatype?(0,o.ig)(n,i.QP):void 0;return new r(n,a)},r.prototype.forEach=function(e){var t=this;!function r(n,o){(0,i.cy)(n)?n.forEach(function(e,t){r(e,o.concat(t))}):e(n,o,t)}(this._data,[])},r.prototype[Symbol.iterator]=function*(){var e=function* e(t,r){if((0,i.cy)(t))for(var n=0;n<t.length;n++)yield*e(t[n],r.concat(n));else yield{value:t,index:r}};yield*e(this._data,[])},r.prototype.rows=function(){var e=[];if(2!==this.size().length)throw TypeError("Rows can only be returned for a 2D matrix.");for(var t of this._data)e.push(new r([t],this._datatype));return e},r.prototype.columns=function(){var e=this,t=[],n=this.size();if(2!==n.length)throw TypeError("Rows can only be returned for a 2D matrix.");for(var i=this._data,o=function(n){var o=i.map(e=>[e[n]]);t.push(new r(o,e._datatype))},a=0;a<n[1];a++)o(a);return t},r.prototype.toArray=function(){return(0,l.o8)(this._data)},r.prototype.valueOf=function(){return this._data},r.prototype.format=function(e){return(0,a.GP)(this._data,e)},r.prototype.toString=function(){return(0,a.GP)(this._data)},r.prototype.toJSON=function(){return{mathjs:"DenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},r.prototype.diagonal=function(e){if(e){if((0,i.C4)(e)&&(e=e.toNumber()),!(0,i.Et)(e)||!(0,s.YN)(e))throw TypeError("The parameter k must be an integer number")}else e=0;for(var t=e>0?e:0,n=e<0?-e:0,o=Math.min(this._size[0]-n,this._size[1]-t),a=[],l=0;l<o;l++)a[l]=this._data[l+n][l+t];return new r({data:a,size:[o],datatype:this._datatype})},r.diagonal=function(e,t,n,a){if(!(0,i.cy)(e))throw TypeError("Array expected, size parameter");if(2!==e.length)throw Error("Only two dimensions matrix are supported");if(e=e.map(function(e){if((0,i.C4)(e)&&(e=e.toNumber()),!(0,i.Et)(e)||!(0,s.YN)(e)||e<1)throw Error("Size values must be positive integers");return e}),n){if((0,i.C4)(n)&&(n=n.toNumber()),!(0,i.Et)(n)||!(0,s.YN)(n))throw TypeError("The parameter k must be an integer number")}else n=0;var l,u=n>0?n:0,c=n<0?-n:0,d=e[0],p=e[1],f=Math.min(d-c,p-u);if((0,i.cy)(t)){if(t.length!==f)throw Error("Invalid value array length");l=function(e){return t[e]}}else if((0,i.OA)(t)){var h=t.size();if(1!==h.length||h[0]!==f)throw Error("Invalid matrix length");l=function(e){return t.get([e])}}else l=function(){return t};a||(a=(0,i.C4)(l(0))?l(0).mul(0):0);var m=[];if(e.length>0){m=(0,o.XR)(m,e,a);for(var g=0;g<f;g++)m[g+c][g+u]=l(g)}return new r({data:m,size:[d,p]})},r.fromJSON=function(e){return new r(e)},r.prototype.swapRows=function(e,t){if(!(0,i.Et)(e)||!(0,s.YN)(e)||!(0,i.Et)(t)||!(0,s.YN)(t))throw Error("Row index must be positive integers");if(2!==this._size.length)throw Error("Only two dimensional matrix is supported");return(0,o.r7)(e,this._size[0]),(0,o.r7)(t,this._size[0]),r._swapRows(e,t,this._data),this},r._swapRows=function(e,t,r){var n=r[e];r[e]=r[t],r[t]=n},r},{isClass:!0}),d={MatrixDependencies:n.t,createDenseMatrixClass:c}},53684(e,t,r){"use strict";r.d(t,{u:()=>l});var n=r(45588),i=r(55624),o=r(1207),a="equalScalar",s=(0,o.P9)(a,["typed","config"],e=>{var{typed:t,config:r}=e;return t(a,{"boolean, boolean":function(e,t){return e===t},"number, number":function(e,t){return(0,i.q8)(e,t,r.epsilon)},"BigNumber, BigNumber":function(e,t){return e.eq(t)||function(e,t,r){if(null==r)return e.eq(t);if(e.eq(t))return!0;if(e.isNaN()||t.isNaN())return!1;if(e.isFinite()&&t.isFinite()){var n=e.minus(t).abs();if(n.isZero())return!0;var i=e.constructor.max(e.abs(),t.abs());return n.lte(i.times(r))}return!1}(e,t,r.epsilon)},"Fraction, Fraction":function(e,t){return e.equals(t)},"Complex, Complex":function(e,t){var n;return n=r.epsilon,(0,i.q8)(e.re,t.re,n)&&(0,i.q8)(e.im,t.im,n)},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw Error("Cannot compare units with different base");return this(e.value,t.value)}})});(0,o.P9)(a,["typed","config"],e=>{var{typed:t,config:r}=e;return t(a,{"number, number":function(e,t){return(0,i.q8)(e,t,r.epsilon)}})});var l={typedDependencies:n.U,createEqualScalar:s}},91165(e,t,r){"use strict";r.d(t,{_:()=>y});var n=r(95343),i=r(80185),o=r(53684),a=r(43163),s=r(45588),l=r(1207),u=r(15562),c=(0,l.P9)("algorithm01",["typed"],e=>{var{typed:t}=e;return function(e,r,n,i){var o,a,s=e._data,l=e._size,c=e._datatype,d=r._values,p=r._index,f=r._ptr,h=r._size,m=r._datatype;if(l.length!==h.length)throw new u.h(l.length,h.length);if(l[0]!==h[0]||l[1]!==h[1])throw RangeError("Dimension mismatch. Matrix A ("+l+") must match Matrix B ("+h+")");if(!d)throw Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var g=l[0],y=l[1],v="string"==typeof c&&c===m?c:void 0,b=v?t.find(n,[v,v]):n,x=[];for(o=0;o<g;o++)x[o]=[];var A=[],w=[];for(a=0;a<y;a++){for(var S=a+1,_=f[a],k=f[a+1],M=_;M<k;M++)A[o=p[M]]=i?b(d[M],s[o][a]):b(s[o][a],d[M]),w[o]=S;for(o=0;o<g;o++)w[o]===S?x[o][a]=A[o]:x[o][a]=s[o][a]}return e.createDenseMatrix({data:x,size:[g,y],datatype:v})}}),d=(0,l.P9)("algorithm04",["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return function(e,n,i){var o,a,s,l,c,d,p=e._values,f=e._index,h=e._ptr,m=e._size,g=e._datatype,y=n._values,v=n._index,b=n._ptr,x=n._size,A=n._datatype;if(m.length!==x.length)throw new u.h(m.length,x.length);if(m[0]!==x[0]||m[1]!==x[1])throw RangeError("Dimension mismatch. Matrix A ("+m+") must match Matrix B ("+x+")");var w=m[0],S=m[1],_=r,k=0,M=i;"string"==typeof g&&g===A&&(o=g,_=t.find(r,[o,o]),k=t.convert(0,o),M=t.find(i,[o,o]));var C=p&&y?[]:void 0,$=[],O=[],E=p&&y?[]:void 0,N=p&&y?[]:void 0,R=[],T=[];for(s=0;s<S;s++){O[s]=$.length;var I=s+1;for(c=h[s],d=h[s+1],l=c;l<d;l++)a=f[l],$.push(a),R[a]=I,E&&(E[a]=p[l]);for(c=b[s],d=b[s+1],l=c;l<d;l++)if(R[a=v[l]]===I){if(E){var P=M(E[a],y[l]);_(P,k)?R[a]=null:E[a]=P}}else $.push(a),T[a]=I,N&&(N[a]=y[l]);if(E&&N)for(l=O[s];l<$.length;)R[a=$[l]]===I?(C[l]=E[a],l++):T[a]===I?(C[l]=N[a],l++):$.splice(l,1)}return O[S]=$.length,e.createSparseMatrix({values:C,index:$,ptr:O,size:[w,S],datatype:o})}}),p=(0,l.P9)("algorithm10",["typed","DenseMatrix"],e=>{var{typed:t,DenseMatrix:r}=e;return function(e,n,i,o){var a,s=e._values,l=e._index,u=e._ptr,c=e._size,d=e._datatype;if(!s)throw Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var p=c[0],f=c[1],h=i;"string"==typeof d&&(a=d,n=t.convert(n,a),h=t.find(i,[a,a]));for(var m=[],g=[],y=[],v=0;v<f;v++){for(var b=v+1,x=u[v],A=u[v+1],w=x;w<A;w++){var S=l[w];g[S]=s[w],y[S]=b}for(var _=0;_<p;_++)0===v&&(m[_]=[]),y[_]===b?m[_][v]=o?h(n,g[_]):h(g[_],n):m[_][v]=n}return new r({data:m,size:[p,f],datatype:a})}}),f=(0,l.P9)("algorithm13",["typed"],e=>{var{typed:t}=e;return function(e,r,n){var i,o=e._data,a=e._size,s=e._datatype,l=r._data,c=r._size,d=r._datatype,p=[];if(a.length!==c.length)throw new u.h(a.length,c.length);for(var f=0;f<a.length;f++){if(a[f]!==c[f])throw RangeError("Dimension mismatch. Matrix A ("+a+") must match Matrix B ("+c+")");p[f]=a[f]}var h=n;"string"==typeof s&&s===d&&(i=s,h=t.find(n,[i,i]));var m=p.length>0?function e(t,r,n,i,o,a){var s=[];if(r===n.length-1)for(var l=0;l<i;l++)s[l]=t(o[l],a[l]);else for(var u=0;u<i;u++)s[u]=e(t,r+1,n,n[r+1],o[u],a[u]);return s}(h,0,p,p[0],o,l):[];return e.createDenseMatrix({data:m,size:p,datatype:i})}}),h=r(77666),m=r(34046),g=(0,l.P9)("gcd",["typed","matrix","equalScalar","BigNumber","DenseMatrix"],e=>{var{typed:t,matrix:r,equalScalar:n,BigNumber:i,DenseMatrix:o}=e,a=c({typed:t}),s=d({typed:t,equalScalar:n}),l=p({typed:t,DenseMatrix:o}),u=f({typed:t}),g=(0,h.f)({typed:t});return t("gcd",{"number, number":m.aU,"BigNumber, BigNumber":function(e,t){if(!e.isInt()||!t.isInt())throw Error("Parameters in function gcd must be integer numbers");for(var r=new i(0);!t.isZero();){var n=e.mod(t);e=t,t=n}return e.lt(r)?e.neg():e},"Fraction, Fraction":function(e,t){return e.gcd(t)},"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, number | BigNumber":function(e,t){return l(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return g(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return l(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return g(t,e,this,!0)},"Array, number | BigNumber":function(e,t){return g(r(e),t,this,!1).valueOf()},"number | BigNumber, Array":function(e,t){return g(r(t),e,this,!0).valueOf()},"Array | Matrix | number | BigNumber, Array | Matrix | number | BigNumber, ...Array | Matrix | number | BigNumber":function(e,t,r){for(var n=this(e,t),i=0;i<r.length;i++)n=this(n,r[i]);return n}})}),y={BigNumberDependencies:n.P,DenseMatrixDependencies:i.k,equalScalarDependencies:o.u,matrixDependencies:a.p,typedDependencies:s.U,createGcd:g}},43163(e,t,r){"use strict";r.d(t,{p:()=>v});var n=r(80185),i=r(27340),o=r(53684),a=r(45588),s=r(46797),l=r(55624),u=r(93988),c=r(32718),d=r(49204),p=r(1207),f=r(15562),h=(0,p.P9)("SparseMatrix",["typed","equalScalar","Matrix"],e=>{var{typed:t,equalScalar:r,Matrix:n}=e;function i(e,t){if(!(this instanceof i))throw SyntaxError("Constructor must be called with the new operator");if(t&&!(0,s.Kg)(t))throw Error("Invalid datatype: "+t);if((0,s.OA)(e)){var r,n,a;r=this,n=e,a=t,"SparseMatrix"===n.type?(r._values=n._values?(0,c.o8)(n._values):void 0,r._index=(0,c.o8)(n._index),r._ptr=(0,c.o8)(n._ptr),r._size=(0,c.o8)(n._size),r._datatype=a||n._datatype):o(r,n.valueOf(),a||n._datatype)}else if(e&&(0,s.cy)(e.index)&&(0,s.cy)(e.ptr)&&(0,s.cy)(e.size))this._values=e.values,this._index=e.index,this._ptr=e.ptr,this._size=e.size,this._datatype=t||e.datatype;else if((0,s.cy)(e))o(this,e,t);else if(e)throw TypeError("Unsupported type of data ("+(0,s.QP)(e)+")");else this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=t}function o(e,n,i){e._values=[],e._index=[],e._ptr=[],e._datatype=i;var o=n.length,a=0,l=r,u=0;if((0,s.Kg)(i)&&(l=t.find(r,[i,i])||r,u=t.convert(0,i)),o>0){var c=0;do{e._ptr.push(e._index.length);for(var d=0;d<o;d++){var p=n[d];if((0,s.cy)(p)){if(0===c&&a<p.length&&(a=p.length),c<p.length){var f=p[c];l(f,u)||(e._values.push(f),e._index.push(d))}}else 0===c&&a<1&&(a=1),l(p,u)||(e._values.push(p),e._index.push(d))}c++}while(c<a)}e._ptr.push(e._index.length),e._size=[o,a]}function a(e,t,r,n){if(r-t==0)return r;for(var i=t;i<r;i++)if(n[i]===e)return i;return t}function p(e,t,r,n,i,o,a){i.splice(e,0,n),o.splice(e,0,t);for(var s=r+1;s<a.length;s++)a[s]++}function h(e,n,i,o){var a,l,u,c=o||0,d=r,p=0;(0,s.Kg)(e._datatype)&&(d=t.find(r,[e._datatype,e._datatype])||r,p=t.convert(0,e._datatype),c=t.convert(c,e._datatype));var f=!d(c,p),h=e._size[0],m=e._size[1];if(i>m){for(l=m;l<i;l++)if(e._ptr[l]=e._values.length,f)for(a=0;a<h;a++)e._values.push(c),e._index.push(a);e._ptr[i]=e._values.length}else i<m&&(e._ptr.splice(i+1,m-i),e._values.splice(e._ptr[i],e._values.length),e._index.splice(e._ptr[i],e._index.length));if(m=i,n>h){if(f){var g=0;for(l=0;l<m;l++){e._ptr[l]=e._ptr[l]+g,u=e._ptr[l+1]+g;var y=0;for(a=h;a<n;a++,y++)e._values.splice(u+y,0,c),e._index.splice(u+y,0,a),g++}e._ptr[m]=e._values.length}}else if(n<h){var v=0;for(l=0;l<m;l++){e._ptr[l]=e._ptr[l]-v;var b=e._ptr[l],x=e._ptr[l+1]-v;for(u=b;u<x;u++)(a=e._index[u])>n-1&&(e._values.splice(u,1),e._index.splice(u,1),v++)}e._ptr[l]=e._values.length}return e._size[0]=n,e._size[1]=i,e}function m(e,t,r,n,i){var o,a,s=n[0],l=n[1],u=[];for(o=0;o<s;o++)for(a=0,u[o]=[];a<l;a++)u[o][a]=0;for(a=0;a<l;a++)for(var d=r[a],p=r[a+1],f=d;f<p;f++)u[o=t[f]][a]=e?i?(0,c.o8)(e[f]):e[f]:1;return u}return i.prototype=new n,i.prototype.createSparseMatrix=function(e,t){return new i(e,t)},i.prototype.type="SparseMatrix",i.prototype.isSparseMatrix=!0,i.prototype.getDataType=function(){return(0,d.ig)(this._values,s.QP)},i.prototype.storage=function(){return"sparse"},i.prototype.datatype=function(){return this._datatype},i.prototype.create=function(e,t){return new i(e,t)},i.prototype.density=function(){var e=this._size[0],t=this._size[1];return 0!==e&&0!==t?this._index.length/(e*t):0},i.prototype.subset=function(e,t,r){if(!this._values)throw Error("Cannot invoke subset on a Pattern only matrix");switch(arguments.length){case 1:return function(e,t){if(!(0,s.nw)(t))throw TypeError("Invalid index");if(t.isScalar())return e.get(t.min());var r,n,o,a,l=t.size();if(l.length!==e._size.length)throw new f.h(l.length,e._size.length);var u=t.min(),c=t.max();for(r=0,n=e._size.length;r<n;r++)(0,d.r7)(u[r],e._size[r]),(0,d.r7)(c[r],e._size[r]);var p=e._values,h=e._index,m=e._ptr,g=t.dimension(0),y=t.dimension(1),v=[],b=[];g.forEach(function(e,t){b[e]=t[0],v[e]=!0});var x=p?[]:void 0,A=[],w=[];return y.forEach(function(e){for(w.push(A.length),o=m[e],a=m[e+1];o<a;o++)!0===v[r=h[o]]&&(A.push(b[r]),x&&x.push(p[o]))}),w.push(A.length),new i({values:x,index:A,ptr:w,size:l,datatype:e._datatype})}(this,e);case 2:case 3:return function(e,t,r,n){if(!t||!0!==t.isIndex)throw TypeError("Invalid index");var i,o=t.size(),a=t.isScalar();if((0,s.OA)(r)?(i=r.size(),r=r.toArray()):i=(0,d.LO)(r),a){if(0!==i.length)throw TypeError("Scalar expected");e.set(t.min(),r,n)}else{if(1!==o.length&&2!==o.length)throw new f.h(o.length,e._size.length,"<");if(i.length<o.length){for(var l=0,u=0;1===o[l]&&1===i[l];)l++;for(;1===o[l];)u++,l++;r=(0,d.iD)(r,o.length,u,i)}if(!(0,c.QO)(o,i))throw new f.h(o,i,">");if(1===o.length)t.dimension(0).forEach(function(t,i){(0,d.r7)(t),e.set([t,0],r[i[0]],n)});else{var p=t.dimension(0),h=t.dimension(1);p.forEach(function(t,i){(0,d.r7)(t),h.forEach(function(o,a){(0,d.r7)(o),e.set([t,o],r[i[0]][a[0]],n)})})}}return e}(this,e,t,r);default:throw SyntaxError("Wrong number of arguments")}},i.prototype.get=function(e){if(!(0,s.cy)(e))throw TypeError("Array expected");if(e.length!==this._size.length)throw new f.h(e.length,this._size.length);if(!this._values)throw Error("Cannot invoke get on a Pattern only matrix");var t=e[0],r=e[1];(0,d.r7)(t,this._size[0]),(0,d.r7)(r,this._size[1]);var n=a(t,this._ptr[r],this._ptr[r+1],this._index);return n<this._ptr[r+1]&&this._index[n]===t?this._values[n]:0},i.prototype.set=function(e,n,i){if(!(0,s.cy)(e))throw TypeError("Array expected");if(e.length!==this._size.length)throw new f.h(e.length,this._size.length);if(!this._values)throw Error("Cannot invoke set on a Pattern only matrix");var o=e[0],l=e[1],u=this._size[0],c=this._size[1],m=r,g=0;(0,s.Kg)(this._datatype)&&(m=t.find(r,[this._datatype,this._datatype])||r,g=t.convert(0,this._datatype)),(o>u-1||l>c-1)&&(h(this,Math.max(o+1,u),Math.max(l+1,c),i),u=this._size[0],c=this._size[1]),(0,d.r7)(o,u),(0,d.r7)(l,c);var y=a(o,this._ptr[l],this._ptr[l+1],this._index);return y<this._ptr[l+1]&&this._index[y]===o?m(n,g)?function(e,t,r,n,i){r.splice(e,1),n.splice(e,1);for(var o=t+1;o<i.length;o++)i[o]--}(y,l,this._values,this._index,this._ptr):this._values[y]=n:p(y,o,l,n,this._values,this._index,this._ptr),this},i.prototype.resize=function(e,t,r){if(!(0,s.P3)(e))throw TypeError("Array or Matrix expected");var n=e.valueOf().map(e=>Array.isArray(e)&&1===e.length?e[0]:e);if(2!==n.length)throw Error("Only two dimensions matrix are supported");return n.forEach(function(e){if(!(0,s.Et)(e)||!(0,l.YN)(e)||e<0)throw TypeError("Invalid size, must contain positive integers (size: "+(0,u.GP)(n)+")")}),h(r?this.clone():this,n[0],n[1],t)},i.prototype.reshape=function(e,t){if(!(0,s.cy)(e))throw TypeError("Array expected");if(2!==e.length)throw Error("Sparse matrices can only be reshaped in two dimensions");e.forEach(function(t){if(!(0,s.Et)(t)||!(0,l.YN)(t)||t<=-2||0===t)throw TypeError("Invalid size, must contain positive integers or -1 (size: "+(0,u.GP)(e)+")")});var r=this._size[0]*this._size[1],n=(e=(0,d.cs)(e,r))[0]*e[1];if(r!==n)throw Error("Reshaping sparse matrix will result in the wrong number of elements");var i=t?this.clone():this;if(this._size[0]===e[0]&&this._size[1]===e[1])return i;for(var o=[],c=0;c<i._ptr.length;c++)for(var f=0;f<i._ptr[c+1]-i._ptr[c];f++)o.push(c);for(var h=i._values.slice(),m=i._index.slice(),g=0;g<i._index.length;g++){var y=m[g],v=o[g],b=y*i._size[1]+v;o[g]=b%e[1],m[g]=Math.floor(b/e[1])}i._values.length=0,i._index.length=0,i._ptr.length=e[1]+1,i._size=e.slice();for(var x=0;x<i._ptr.length;x++)i._ptr[x]=0;for(var A=0;A<h.length;A++){var w=m[A],S=o[A],_=h[A];p(a(w,i._ptr[S],i._ptr[S+1],i._index),w,S,_,i._values,i._index,i._ptr)}return i},i.prototype.clone=function(){return new i({values:this._values?(0,c.o8)(this._values):void 0,index:(0,c.o8)(this._index),ptr:(0,c.o8)(this._ptr),size:(0,c.o8)(this._size),datatype:this._datatype})},i.prototype.size=function(){return this._size.slice(0)},i.prototype.map=function(e,n){if(!this._values)throw Error("Cannot invoke map on a Pattern only matrix");var o=this;return function(e,n,o,a,l){var u=[],c=[],d=[],p=r,f=0;(0,s.Kg)(e._datatype)&&(p=t.find(r,[e._datatype,e._datatype])||r,f=t.convert(0,e._datatype));for(var h=function(e,t,r){e=a(e,t,r),p(e,f)||(u.push(e),c.push(t))},m=0;m<=o;m++){d.push(u.length);var g=e._ptr[m],y=e._ptr[m+1];if(l)for(var v=g;v<y;v++){var b=e._index[v];b>=0&&b<=n&&h(e._values[v],b-0,m-0)}else{for(var x={},A=g;A<y;A++)x[e._index[A]]=e._values[A];for(var w=0;w<=n;w++)h(w in x?x[w]:0,w-0,m-0)}}return d.push(u.length),new i({values:u,index:c,ptr:d,size:[n-0+1,o-0+1]})}(this,this._size[0]-1,this._size[1]-1,function(t,r,n){return e(t,[r,n],o)},n)},i.prototype.forEach=function(e,t){if(!this._values)throw Error("Cannot invoke forEach on a Pattern only matrix");for(var r=this._size[0],n=this._size[1],i=0;i<n;i++){var o=this._ptr[i],a=this._ptr[i+1];if(t)for(var s=o;s<a;s++){var l=this._index[s];e(this._values[s],[l,i],this)}else{for(var u={},c=o;c<a;c++)u[this._index[c]]=this._values[c];for(var d=0;d<r;d++)e(d in u?u[d]:0,[d,i],this)}}},i.prototype[Symbol.iterator]=function*(){if(!this._values)throw Error("Cannot iterate a Pattern only matrix");for(var e=this._size[1],t=0;t<e;t++)for(var r=this._ptr[t],n=this._ptr[t+1],i=r;i<n;i++){var o=this._index[i];yield{value:this._values[i],index:[o,t]}}},i.prototype.toArray=function(){return m(this._values,this._index,this._ptr,this._size,!0)},i.prototype.valueOf=function(){return m(this._values,this._index,this._ptr,this._size,!1)},i.prototype.format=function(e){for(var t=this._size[0],r=this._size[1],n=this.density(),i="Sparse Matrix ["+(0,u.GP)(t,e)+" x "+(0,u.GP)(r,e)+"] density: "+(0,u.GP)(n,e)+"\n",o=0;o<r;o++)for(var a=this._ptr[o],s=this._ptr[o+1],l=a;l<s;l++){var c=this._index[l];i+="\n ("+(0,u.GP)(c,e)+", "+(0,u.GP)(o,e)+") ==> "+(this._values?(0,u.GP)(this._values[l],e):"X")}return i},i.prototype.toString=function(){return(0,u.GP)(this.toArray())},i.prototype.toJSON=function(){return{mathjs:"SparseMatrix",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},i.prototype.diagonal=function(e){if(e){if((0,s.C4)(e)&&(e=e.toNumber()),!(0,s.Et)(e)||!(0,l.YN)(e))throw TypeError("The parameter k must be an integer number")}else e=0;var t=e>0?e:0,r=e<0?-e:0,n=this._size[0],o=this._size[1],a=Math.min(n-r,o-t),u=[],c=[],d=[];d[0]=0;for(var p=t;p<o&&u.length<a;p++)for(var f=this._ptr[p],h=this._ptr[p+1],m=f;m<h;m++){var g=this._index[m];if(g===p-t+r){u.push(this._values[m]),c[u.length-1]=g-r;break}}return d.push(u.length),new i({values:u,index:c,ptr:d,size:[a,1]})},i.fromJSON=function(e){return new i(e)},i.diagonal=function(e,n,o,a,u){if(!(0,s.cy)(e))throw TypeError("Array expected, size parameter");if(2!==e.length)throw Error("Only two dimensions matrix are supported");if(e=e.map(function(e){if((0,s.C4)(e)&&(e=e.toNumber()),!(0,s.Et)(e)||!(0,l.YN)(e)||e<1)throw Error("Size values must be positive integers");return e}),o){if((0,s.C4)(o)&&(o=o.toNumber()),!(0,s.Et)(o)||!(0,l.YN)(o))throw TypeError("The parameter k must be an integer number")}else o=0;var c,d=r,p=0;(0,s.Kg)(u)&&(d=t.find(r,[u,u])||r,p=t.convert(0,u));var f=o>0?o:0,h=o<0?-o:0,m=e[0],g=e[1],y=Math.min(m-h,g-f);if((0,s.cy)(n)){if(n.length!==y)throw Error("Invalid value array length");c=function(e){return n[e]}}else if((0,s.OA)(n)){var v=n.size();if(1!==v.length||v[0]!==y)throw Error("Invalid matrix length");c=function(e){return n.get([e])}}else c=function(){return n};for(var b=[],x=[],A=[],w=0;w<g;w++){A.push(b.length);var S=w-f;if(S>=0&&S<y){var _=c(S);d(_,p)||(x.push(S+h),b.push(_))}}return A.push(b.length),new i({values:b,index:x,ptr:A,size:[m,g]})},i.prototype.swapRows=function(e,t){if(!(0,s.Et)(e)||!(0,l.YN)(e)||!(0,s.Et)(t)||!(0,l.YN)(t))throw Error("Row index must be positive integers");if(2!==this._size.length)throw Error("Only two dimensional matrix is supported");return(0,d.r7)(e,this._size[0]),(0,d.r7)(t,this._size[0]),i._swapRows(e,t,this._size[1],this._values,this._index,this._ptr),this},i._forEachRow=function(e,t,r,n,i){for(var o=n[e],a=n[e+1],s=o;s<a;s++)i(r[s],t[s])},i._swapRows=function(e,t,r,n,i,o){for(var s=0;s<r;s++){var l=o[s],u=o[s+1],c=a(e,l,u,i),d=a(t,l,u,i);if(c<u&&d<u&&i[c]===e&&i[d]===t){if(n){var p=n[c];n[c]=n[d],n[d]=p}continue}if(c<u&&i[c]===e&&(d>=u||i[d]!==t)){var f=n?n[c]:void 0;i.splice(d,0,t),n&&n.splice(d,0,f),i.splice(d<=c?c+1:c,1),n&&n.splice(d<=c?c+1:c,1);continue}if(d<u&&i[d]===t&&(c>=u||i[c]!==e)){var h=n?n[d]:void 0;i.splice(c,0,e),n&&n.splice(c,0,h),i.splice(c<=d?d+1:d,1),n&&n.splice(c<=d?d+1:d,1)}}},i},{isClass:!0}),m={MatrixDependencies:i.t,equalScalarDependencies:o.u,typedDependencies:a.U,createSparseMatrixClass:h},g="matrix",y=(0,p.P9)(g,["typed","Matrix","DenseMatrix","SparseMatrix"],e=>{var{typed:t,Matrix:r,DenseMatrix:n,SparseMatrix:i}=e;return t(g,{"":function(){return o([])},string:function(e){return o([],e)},"string, string":function(e,t){return o([],e,t)},Array:function(e){return o(e)},Matrix:function(e){return o(e,e.storage())},"Array | Matrix, string":o,"Array | Matrix, string, string":o});function o(e,t,r){if("dense"===t||"default"===t||void 0===t)return new n(e,r);if("sparse"===t)return new i(e,r);throw TypeError("Unknown matrix type "+JSON.stringify(t)+".")}}),v={DenseMatrixDependencies:n.k,MatrixDependencies:i.t,SparseMatrixDependencies:m,typedDependencies:a.U,createMatrix:y}},27340(e,t,r){"use strict";r.d(t,{t:()=>n});var n={createMatrixClass:(0,r(1207).P9)("Matrix",[],()=>{function e(){if(!(this instanceof e))throw SyntaxError("Constructor must be called with the new operator")}return e.prototype.type="Matrix",e.prototype.isMatrix=!0,e.prototype.storage=function(){throw Error("Cannot invoke storage on a Matrix interface")},e.prototype.datatype=function(){throw Error("Cannot invoke datatype on a Matrix interface")},e.prototype.create=function(e,t){throw Error("Cannot invoke create on a Matrix interface")},e.prototype.subset=function(e,t,r){throw Error("Cannot invoke subset on a Matrix interface")},e.prototype.get=function(e){throw Error("Cannot invoke get on a Matrix interface")},e.prototype.set=function(e,t,r){throw Error("Cannot invoke set on a Matrix interface")},e.prototype.resize=function(e,t){throw Error("Cannot invoke resize on a Matrix interface")},e.prototype.reshape=function(e,t){throw Error("Cannot invoke reshape on a Matrix interface")},e.prototype.clone=function(){throw Error("Cannot invoke clone on a Matrix interface")},e.prototype.size=function(){throw Error("Cannot invoke size on a Matrix interface")},e.prototype.map=function(e,t){throw Error("Cannot invoke map on a Matrix interface")},e.prototype.forEach=function(e){throw Error("Cannot invoke forEach on a Matrix interface")},e.prototype[Symbol.iterator]=function(){throw Error("Cannot iterate a Matrix interface")},e.prototype.toArray=function(){throw Error("Cannot invoke toArray on a Matrix interface")},e.prototype.valueOf=function(){throw Error("Cannot invoke valueOf on a Matrix interface")},e.prototype.format=function(e){throw Error("Cannot invoke format on a Matrix interface")},e.prototype.toString=function(){throw Error("Cannot invoke toString on a Matrix interface")},e},{isClass:!0})}},45588(e,t,r){"use strict";r.d(t,{U:()=>F});var n=r(95343);let i=Math.cosh||function(e){return 1e-9>Math.abs(e)?1-e:(Math.exp(e)+Math.exp(-e))*.5},o=Math.sinh||function(e){return 1e-9>Math.abs(e)?e:(Math.exp(e)-Math.exp(-e))*.5},a=function(e,t){return((e=Math.abs(e))<(t=Math.abs(t))&&([e,t]=[t,e]),e<1e8)?Math.sqrt(e*e+t*t):(t/=e,e*Math.sqrt(1+t*t))},s=function(){throw SyntaxError("Invalid Param")};function l(e,t){let r=Math.abs(e),n=Math.abs(t);return 0===e?Math.log(n):0===t?Math.log(r):r<3e3&&n<3e3?.5*Math.log(e*e+t*t):.5*Math.log((e*=.5)*e+(t*=.5)*t)+Math.LN2}let u={re:0,im:0},c=function(e,t){if(null==e)u.re=u.im=0;else if(void 0!==t)u.re=e,u.im=t;else switch(typeof e){case"object":if("im"in e&&"re"in e)u.re=e.re,u.im=e.im;else if("abs"in e&&"arg"in e){if(!isFinite(e.abs)&&isFinite(e.arg))return d.INFINITY;u.re=e.abs*Math.cos(e.arg),u.im=e.abs*Math.sin(e.arg)}else if("r"in e&&"phi"in e){if(!isFinite(e.r)&&isFinite(e.phi))return d.INFINITY;u.re=e.r*Math.cos(e.phi),u.im=e.r*Math.sin(e.phi)}else 2===e.length?(u.re=e[0],u.im=e[1]):s();break;case"string":u.im=u.re=0;let r=e.replace(/_/g,"").match(/\d+\.?\d*e[+-]?\d+|\d+\.?\d*|\.\d+|./g),n=1,i=0;null===r&&s();for(let e=0;e<r.length;e++){let t=r[e];" "===t||" "===t||"\n"===t||("+"===t?n++:"-"===t?i++:("i"===t||"I"===t?(n+i===0&&s()," "===r[e+1]||isNaN(r[e+1])?u.im+=parseFloat((i%2?"-":"")+"1"):(u.im+=parseFloat((i%2?"-":"")+r[e+1]),e++)):((n+i===0||isNaN(t))&&s(),"i"===r[e+1]||"I"===r[e+1]?(u.im+=parseFloat((i%2?"-":"")+t),e++):u.re+=parseFloat((i%2?"-":"")+t)),n=i=0))}n+i>0&&s();break;case"number":u.im=0,u.re=e;break;default:s()}return isNaN(u.re)||isNaN(u.im),u};function d(e,t){if(!(this instanceof d))return new d(e,t);let r=c(e,t);this.re=r.re,this.im=r.im}d.prototype={re:0,im:0,sign:function(){let e=a(this.re,this.im);return new d(this.re/e,this.im/e)},add:function(e,t){let r=c(e,t),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im));return n||i?n&&i?d.NAN:d.INFINITY:new d(this.re+r.re,this.im+r.im)},sub:function(e,t){let r=c(e,t),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im));return n||i?n&&i?d.NAN:d.INFINITY:new d(this.re-r.re,this.im-r.im)},mul:function(e,t){let r=c(e,t),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im)),o=0===this.re&&0===this.im,a=0===r.re&&0===r.im;return n&&a||i&&o?d.NAN:n||i?d.INFINITY:0===r.im&&0===this.im?new d(this.re*r.re,0):new d(this.re*r.re-this.im*r.im,this.re*r.im+this.im*r.re)},div:function(e,t){let r=c(e,t),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im)),o=0===this.re&&0===this.im,a=0===r.re&&0===r.im;if(o&&a||n&&i)return d.NAN;if(a||n)return d.INFINITY;if(o||i)return d.ZERO;if(0===r.im)return new d(this.re/r.re,this.im/r.re);if(Math.abs(r.re)<Math.abs(r.im)){let e=r.re/r.im,t=r.re*e+r.im;return new d((this.re*e+this.im)/t,(this.im*e-this.re)/t)}{let e=r.im/r.re,t=r.im*e+r.re;return new d((this.re+this.im*e)/t,(this.im-this.re*e)/t)}},pow:function(e,t){let r=c(e,t),n=0===this.re&&0===this.im;if(0===r.re&&0===r.im)return d.ONE;if(0===r.im){if(0===this.im&&this.re>0)return new d(Math.pow(this.re,r.re),0);else if(0===this.re)switch((r.re%4+4)%4){case 0:return new d(Math.pow(this.im,r.re),0);case 1:return new d(0,Math.pow(this.im,r.re));case 2:return new d(-Math.pow(this.im,r.re),0);case 3:return new d(0,-Math.pow(this.im,r.re))}}if(n&&r.re>0)return d.ZERO;let i=Math.atan2(this.im,this.re),o=l(this.re,this.im),a=Math.exp(r.re*o-r.im*i),s=r.im*o+r.re*i;return new d(a*Math.cos(s),a*Math.sin(s))},sqrt:function(){let e=this.re,t=this.im;if(0===t)if(e>=0)return new d(Math.sqrt(e),0);else return new d(0,Math.sqrt(-e));let r=Math.sqrt(.5*(a(e,t)+Math.abs(e))),n=Math.abs(t)/(2*r);return e>=0?new d(r,t<0?-n:n):new d(n,t<0?-r:r)},exp:function(){let e=Math.exp(this.re);return 0===this.im?new d(e,0):new d(e*Math.cos(this.im),e*Math.sin(this.im))},expm1:function(){let e,t=this.re,r=this.im;return new d(Math.expm1(t)*Math.cos(r)+-2*(e=Math.sin(.5*r))*e,Math.exp(t)*Math.sin(r))},log:function(){let e=this.re,t=this.im;return 0===t&&e>0?new d(Math.log(e),0):new d(l(e,t),Math.atan2(t,e))},abs:function(){return a(this.re,this.im)},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){let e=this.re,t=this.im;return new d(Math.sin(e)*i(t),Math.cos(e)*o(t))},cos:function(){let e=this.re,t=this.im;return new d(Math.cos(e)*i(t),-Math.sin(e)*o(t))},tan:function(){let e=2*this.re,t=2*this.im,r=Math.cos(e)+i(t);return new d(Math.sin(e)/r,o(t)/r)},cot:function(){let e=2*this.re,t=2*this.im,r=Math.cos(e)-i(t);return new d(-Math.sin(e)/r,o(t)/r)},sec:function(){let e=this.re,t=this.im,r=.5*i(2*t)+.5*Math.cos(2*e);return new d(Math.cos(e)*i(t)/r,Math.sin(e)*o(t)/r)},csc:function(){let e=this.re,t=this.im,r=.5*i(2*t)-.5*Math.cos(2*e);return new d(Math.sin(e)*i(t)/r,-Math.cos(e)*o(t)/r)},asin:function(){let e=this.re,t=this.im,r=new d(t*t-e*e+1,-2*e*t).sqrt(),n=new d(r.re-t,r.im+e).log();return new d(n.im,-n.re)},acos:function(){let e=this.re,t=this.im,r=new d(t*t-e*e+1,-2*e*t).sqrt(),n=new d(r.re-t,r.im+e).log();return new d(Math.PI/2-n.im,n.re)},atan:function(){let e=this.re,t=this.im;if(0===e){if(1===t)return new d(0,1/0);if(-1===t)return new d(0,-1/0)}let r=e*e+(1-t)*(1-t),n=new d((1-t*t-e*e)/r,-2*e/r).log();return new d(-.5*n.im,.5*n.re)},acot:function(){let e=this.re,t=this.im;if(0===t)return new d(Math.atan2(1,e),0);let r=e*e+t*t;return 0!==r?new d(e/r,-t/r).atan():new d(0!==e?e/0:0,0!==t?-t/0:0).atan()},asec:function(){let e=this.re,t=this.im;if(0===e&&0===t)return new d(0,1/0);let r=e*e+t*t;return 0!==r?new d(e/r,-t/r).acos():new d(0!==e?e/0:0,0!==t?-t/0:0).acos()},acsc:function(){let e=this.re,t=this.im;if(0===e&&0===t)return new d(Math.PI/2,1/0);let r=e*e+t*t;return 0!==r?new d(e/r,-t/r).asin():new d(0!==e?e/0:0,0!==t?-t/0:0).asin()},sinh:function(){let e=this.re,t=this.im;return new d(o(e)*Math.cos(t),i(e)*Math.sin(t))},cosh:function(){let e=this.re,t=this.im;return new d(i(e)*Math.cos(t),o(e)*Math.sin(t))},tanh:function(){let e=2*this.re,t=2*this.im,r=i(e)+Math.cos(t);return new d(o(e)/r,Math.sin(t)/r)},coth:function(){let e=2*this.re,t=2*this.im,r=i(e)-Math.cos(t);return new d(o(e)/r,-Math.sin(t)/r)},csch:function(){let e=this.re,t=this.im,r=Math.cos(2*t)-i(2*e);return new d(-2*o(e)*Math.cos(t)/r,2*i(e)*Math.sin(t)/r)},sech:function(){let e=this.re,t=this.im,r=Math.cos(2*t)+i(2*e);return new d(2*i(e)*Math.cos(t)/r,-2*o(e)*Math.sin(t)/r)},asinh:function(){let e=this.re,t=this.im;if(0===t){if(0===e)return new d(0,0);let t=Math.abs(e),r=Math.log(t+Math.sqrt(t*t+1));return new d(e<0?-r:r,0)}let r=new d(e*e-t*t+1,2*e*t).sqrt();return new d(e+r.re,t+r.im).log()},acosh:function(){let e=this.re,t=this.im;if(0===t){if(e>1)return new d(Math.log(e+Math.sqrt(e-1)*Math.sqrt(e+1)),0);if(e<-1){let t=Math.sqrt(e*e-1);return new d(Math.log(-e+t),Math.PI)}return new d(0,Math.acos(e))}let r=new d(e-1,t).sqrt(),n=new d(e+1,t).sqrt();return new d(e+r.re*n.re-r.im*n.im,t+r.re*n.im+r.im*n.re).log()},atanh:function(){let e=this.re,t=this.im;if(0===t)return 0===e?new d(0,0):1===e?new d(1/0,0):-1===e?new d(-1/0,0):-1<e&&e<1?new d(.5*Math.log((1+e)/(1-e)),0):e>1?new d(.5*Math.log((e+1)/(e-1)),-Math.PI/2):new d(.5*Math.log(-((1+e)/(1-e))),Math.PI/2);let r=1-e,n=1+e,i=r*r+t*t;if(0===i)return new d(-1!==e?e/0:0,0!==t?t/0:0);let o=(n*r-t*t)/i,a=(t*r+n*t)/i;return new d(l(o,a)/2,Math.atan2(a,o)/2)},acoth:function(){let e=this.re,t=this.im;if(0===e&&0===t)return new d(0,Math.PI/2);let r=e*e+t*t;return 0!==r?new d(e/r,-t/r).atanh():new d(0!==e?e/0:0,0!==t?-t/0:0).atanh()},acsch:function(){let e=this.re,t=this.im;if(0===t){if(0===e)return new d(1/0,0);let t=1/e;return new d(Math.log(t+Math.sqrt(t*t+1)),0)}let r=e*e+t*t;return 0!==r?new d(e/r,-t/r).asinh():new d(0!==e?e/0:0,0!==t?-t/0:0).asinh()},asech:function(){let e=this.re,t=this.im;if(this.isZero())return d.INFINITY;let r=e*e+t*t;return 0!==r?new d(e/r,-t/r).acosh():new d(0!==e?e/0:0,0!==t?-t/0:0).acosh()},inverse:function(){if(this.isZero())return d.INFINITY;if(this.isInfinite())return d.ZERO;let e=this.re,t=this.im,r=e*e+t*t;return new d(e/r,-t/r)},conjugate:function(){return new d(this.re,-this.im)},neg:function(){return new d(-this.re,-this.im)},ceil:function(e){return e=Math.pow(10,e||0),new d(Math.ceil(this.re*e)/e,Math.ceil(this.im*e)/e)},floor:function(e){return e=Math.pow(10,e||0),new d(Math.floor(this.re*e)/e,Math.floor(this.im*e)/e)},round:function(e){return e=Math.pow(10,e||0),new d(Math.round(this.re*e)/e,Math.round(this.im*e)/e)},equals:function(e,t){let r=c(e,t);return Math.abs(r.re-this.re)<=d.EPSILON&&Math.abs(r.im-this.im)<=d.EPSILON},clone:function(){return new d(this.re,this.im)},toString:function(){let e=this.re,t=this.im,r="";return this.isNaN()?"NaN":this.isInfinite()?"Infinity":(Math.abs(e)<d.EPSILON&&(e=0),Math.abs(t)<d.EPSILON&&(t=0),0===t)?r+e:(0!==e?(r+=e,r+=" ",t<0?(t=-t,r+="-"):r+="+",r+=" "):t<0&&(t=-t,r+="-"),1!==t&&(r+=t),r+"i")},toVector:function(){return[this.re,this.im]},valueOf:function(){return 0===this.im?this.re:null},isNaN:function(){return isNaN(this.re)||isNaN(this.im)},isZero:function(){return 0===this.im&&0===this.re},isFinite:function(){return isFinite(this.re)&&isFinite(this.im)},isInfinite:function(){return!this.isFinite()}},d.ZERO=new d(0,0),d.ONE=new d(1,0),d.I=new d(0,1),d.PI=new d(Math.PI,0),d.E=new d(Math.E,0),d.INFINITY=new d(1/0,1/0),d.NAN=new d(NaN,NaN),d.EPSILON=1e-15;var p=r(55624),f=r(46797),h=r(1207),m=(0,h.P9)("Complex",[],()=>(d.prototype.type="Complex",d.prototype.isComplex=!0,d.prototype.toJSON=function(){return{mathjs:"Complex",re:this.re,im:this.im}},d.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},d.prototype.format=function(e){var t=this.im,r=this.re,n=(0,p.GP)(this.re,e),i=(0,p.GP)(this.im,e),o=(0,f.Et)(e)?e:e?e.precision:null;if(null!==o){var a=Math.pow(10,-o);Math.abs(r/t)<a&&(r=0),Math.abs(t/r)<a&&(t=0)}return 0===t?n:0===r?1===t?"i":-1===t?"-i":i+"i":t<0?-1===t?n+" - i":n+" - "+i.substring(1)+"i":1===t?n+" + i":n+" + "+i+"i"},d.fromPolar=function(e){switch(arguments.length){case 1:var t=arguments[0];if("object"==typeof t)return d(t);throw TypeError("Input has to be an object with r and phi keys.");case 2:var r=arguments[0],n=arguments[1];if((0,f.Et)(r)){if((0,f.vO)(n)&&n.hasBase("ANGLE")&&(n=n.toNumber("rad")),(0,f.Et)(n))return new d({r,phi:n});throw TypeError("Phi is not a number nor an angle unit.")}throw TypeError("Radius r is not a number.");default:throw SyntaxError("Wrong number of arguments in function fromPolar")}},d.prototype.valueOf=d.prototype.toString,d.fromJSON=function(e){return new d(e)},d.compare=function(e,t){return e.re>t.re?1:e.re<t.re?-1:e.im>t.im?1:e.im<t.im?-1:0},d),{isClass:!0}),g=r(80185),y={s:1,n:0,d:1};function v(e,t){if(isNaN(e=parseInt(e,10)))throw k();return e*t}function b(e,t){if(0===t)throw _();var r=Object.create(S.prototype);r.s=e<0?-1:1;var n=w(e=e<0?-e:e,t);return r.n=e/n,r.d=t/n,r}function x(e){for(var t={},r=e,n=2,i=4;i<=r;){for(;r%n==0;)r/=n,t[n]=(t[n]||0)+1;i+=1+2*n++}return r!==e?r>1&&(t[r]=(t[r]||0)+1):t[e]=(t[e]||0)+1,t}var A=function(e,t){var r,n=0,i=1,o=1,a=0,s=0,l=0,u=1,c=1,d=0,p=1,f=1,h=1;if(null==e);else if(void 0!==t){if(o=(n=e)*(i=t),n%1!=0||i%1!=0)throw M()}else switch(typeof e){case"object":if("d"in e&&"n"in e)n=e.n,i=e.d,"s"in e&&(n*=e.s);else if(0 in e)n=e[0],1 in e&&(i=e[1]);else throw k();o=n*i;break;case"number":if(e<0&&(o=e,e=-e),e%1==0)n=e;else if(e>0){for(e>=1&&(c=Math.pow(10,Math.floor(1+Math.log(e)/Math.LN10)),e/=c);p<=1e7&&h<=1e7;){if(e===(r=(d+f)/(p+h))){p+h<=1e7?(n=d+f,i=p+h):h>p?(n=f,i=h):(n=d,i=p);break}e>r?(d+=f,p+=h):(f+=d,h+=p),p>1e7?(n=f,i=h):(n=d,i=p)}n*=c}else(isNaN(e)||isNaN(t))&&(i=n=NaN);break;case"string":if(null===(p=e.match(/\d+|./g)))throw k();if("-"===p[d]?(o=-1,d++):"+"===p[d]&&d++,p.length===d+1?s=v(p[d++],o):"."===p[d+1]||"."===p[d]?("."!==p[d]&&(a=v(p[d++],o)),(++d+1===p.length||"("===p[d+1]&&")"===p[d+3]||"'"===p[d+1]&&"'"===p[d+3])&&(s=v(p[d],o),u=Math.pow(10,p[d].length),d++),("("===p[d]&&")"===p[d+2]||"'"===p[d]&&"'"===p[d+2])&&(l=v(p[d+1],o),c=Math.pow(10,p[d+1].length)-1,d+=3)):"/"===p[d+1]||":"===p[d+1]?(s=v(p[d],o),u=v(p[d+2],1),d+=3):"/"===p[d+3]&&" "===p[d+1]&&(a=v(p[d],o),s=v(p[d+2],o),u=v(p[d+4],1),d+=5),p.length<=d){o=n=l+(i=u*c)*a+c*s;break}default:throw k()}if(0===i)throw _();y.s=o<0?-1:1,y.n=Math.abs(n),y.d=Math.abs(i)};function w(e,t){if(!e)return t;if(!t)return e;for(;;){if(!(e%=t))return t;if(!(t%=e))return e}}function S(e,t){if(A(e,t),!(this instanceof S))return b(y.s*y.n,y.d);e=w(y.d,y.n),this.s=y.s,this.n=y.n/e,this.d=y.d/e}var _=function(){return Error("Division by Zero")},k=function(){return Error("Invalid argument")},M=function(){return Error("Parameters must be integer")};S.prototype={s:1,n:0,d:1,abs:function(){return b(this.n,this.d)},neg:function(){return b(-this.s*this.n,this.d)},add:function(e,t){return A(e,t),b(this.s*this.n*y.d+y.s*this.d*y.n,this.d*y.d)},sub:function(e,t){return A(e,t),b(this.s*this.n*y.d-y.s*this.d*y.n,this.d*y.d)},mul:function(e,t){return A(e,t),b(this.s*y.s*this.n*y.n,this.d*y.d)},div:function(e,t){return A(e,t),b(this.s*y.s*this.n*y.d,this.d*y.n)},clone:function(){return b(this.s*this.n,this.d)},mod:function(e,t){if(isNaN(this.n)||isNaN(this.d))return new S(NaN);if(void 0===e)return b(this.s*this.n%this.d,1);if(A(e,t),0===y.n&&0===this.d)throw _();return b(this.s*(y.d*this.n)%(y.n*this.d),y.d*this.d)},gcd:function(e,t){return A(e,t),b(w(y.n,this.n)*w(y.d,this.d),y.d*this.d)},lcm:function(e,t){return(A(e,t),0===y.n&&0===this.n)?b(0,1):b(y.n*this.n,w(y.n,this.n)*w(y.d,this.d))},ceil:function(e){return(e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d))?new S(NaN):b(Math.ceil(e*this.s*this.n/this.d),e)},floor:function(e){return(e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d))?new S(NaN):b(Math.floor(e*this.s*this.n/this.d),e)},round:function(e){return(e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d))?new S(NaN):b(Math.round(e*this.s*this.n/this.d),e)},roundTo:function(e,t){return A(e,t),b(this.s*Math.round(this.n*y.d/(this.d*y.n))*y.n,y.d)},inverse:function(){return b(this.s*this.d,this.n)},pow:function(e,t){if(A(e,t),1===y.d)if(y.s<0)return b(Math.pow(this.s*this.d,y.n),Math.pow(this.n,y.n));else return b(Math.pow(this.s*this.n,y.n),Math.pow(this.d,y.n));if(this.s<0)return null;var r=x(this.n),n=x(this.d),i=1,o=1;for(var a in r)if("1"!==a){if("0"===a){i=0;break}if(r[a]*=y.n,r[a]%y.d!=0)return null;r[a]/=y.d,i*=Math.pow(a,r[a])}for(var a in n)if("1"!==a){if(n[a]*=y.n,n[a]%y.d!=0)return null;n[a]/=y.d,o*=Math.pow(a,n[a])}return y.s<0?b(o,i):b(i,o)},equals:function(e,t){return A(e,t),this.s*this.n*y.d==y.s*y.n*this.d},compare:function(e,t){A(e,t);var r=this.s*this.n*y.d-y.s*y.n*this.d;return(0<r)-(r<0)},simplify:function(e){if(isNaN(this.n)||isNaN(this.d))return this;e=e||.001;for(var t=this.abs(),r=t.toContinued(),n=1;n<r.length;n++){for(var i=b(r[n-1],1),o=n-2;o>=0;o--)i=i.inverse().add(r[o]);if(Math.abs(i.sub(t).valueOf())<e)return i.mul(this.s)}return this},divisible:function(e,t){return A(e,t),!(!(y.n*this.d)||this.n*y.d%(y.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(e){var t,r="",n=this.n,i=this.d;return this.s<0&&(r+="-"),1===i?r+=n:(e&&(t=Math.floor(n/i))>0&&(r+=t,r+=" ",n%=i),r+=n,r+="/",r+=i),r},toLatex:function(e){var t,r="",n=this.n,i=this.d;return this.s<0&&(r+="-"),1===i?r+=n:(e&&(t=Math.floor(n/i))>0&&(r+=t,n%=i),r+="\\frac{",r+=n,r+="}{",r+=i,r+="}"),r},toContinued:function(){var e,t=this.n,r=this.d,n=[];if(isNaN(t)||isNaN(r))return n;do n.push(Math.floor(t/r)),e=t%r,t=r,r=e;while(1!==t);return n},toString:function(e){var t=this.n,r=this.d;if(isNaN(t)||isNaN(r))return"NaN";e=e||15;var n=function(e){for(;e%2==0;e/=2);for(;e%5==0;e/=5);if(1===e)return 0;for(var t=10%e,r=1;1!==t;r++)if(t=10*t%e,r>2e3)return 0;return r}(r),i=function(e,t){for(var r=1,n=function(e,t,r){for(var n=1;t>0;e=e*e%r,t>>=1)1&t&&(n=n*e%r);return n}(10,t,e),i=0;i<300;i++){if(r===n)return i;r=10*r%e,n=10*n%e}return 0}(r,n),o=this.s<0?"-":"";if(o+=t/r|0,t%=r,(t*=10)&&(o+="."),n){for(var a=i;a--;)o+=t/r|0,t%=r,t*=10;o+="(";for(var a=n;a--;)o+=t/r|0,t%=r,t*=10;o+=")"}else for(var a=e;t&&a--;)o+=t/r|0,t%=r,t*=10;return o}};var C=(0,h.P9)("Fraction",[],()=>(S.prototype.type="Fraction",S.prototype.isFraction=!0,S.prototype.toJSON=function(){return{mathjs:"Fraction",n:this.s*this.n,d:this.d}},S.fromJSON=function(e){return new S(e)},S),{isClass:!0}),$=r(42915),O=r(32718);function E(e,t){return!!e&&"object"==typeof e&&(!!(0,O.mQ)(R,t)||!(t in Object.prototype)&&!(t in Function.prototype))}function N(e){return"object"==typeof e&&e&&e.constructor===Object}var R={length:!0,name:!0},T={toString:!0,valueOf:!0,toLocaleString:!0};class I{constructor(e){this.wrappedObject=e}keys(){return Object.keys(this.wrappedObject)}get(e){var t,r,n=this.wrappedObject;if(N(n)&&E(n,e))return n[e];if("function"==typeof n[e]&&(t=n,r=e,!(null==t||"function"!=typeof t[r]||(0,O.mQ)(t,r)&&Object.getPrototypeOf&&r in Object.getPrototypeOf(t))&&((0,O.mQ)(T,r)||!(r in Object.prototype)&&!(r in Function.prototype))))throw Error('Cannot access method "'+e+'" as a property');throw Error('No access to property "'+e+'"')}set(e,t){return!function(e,t,r){if(N(e)&&E(e,t))return e[t]=r;throw Error('No access to property "'+t+'"')}(this.wrappedObject,e,t),this}has(e){return e in this.wrappedObject}}function P(e){return!!e&&(e instanceof Map||e instanceof I||"function"==typeof e.set&&"function"==typeof e.get&&"function"==typeof e.keys&&"function"==typeof e.has)}var j=function(){return j=$.create,$},z=(0,h.P9)("typed",["?BigNumber","?Complex","?DenseMatrix","?Fraction"],function(e){var{BigNumber:t,Complex:r,DenseMatrix:n,Fraction:i}=e,o=j();return o.types=[{name:"number",test:f.Et},{name:"Complex",test:f.Zd},{name:"BigNumber",test:f.C4},{name:"Fraction",test:f.fU},{name:"Unit",test:f.vO},{name:"string",test:f.Kg},{name:"Chain",test:f.o_},{name:"Array",test:f.cy},{name:"Matrix",test:f.OA},{name:"DenseMatrix",test:f.zR},{name:"SparseMatrix",test:f.AF},{name:"Range",test:f._Z},{name:"Index",test:f.nw},{name:"boolean",test:f.Lm},{name:"ResultSet",test:f.eW},{name:"Help",test:f.gS},{name:"function",test:f.Tn},{name:"Date",test:f.$P},{name:"RegExp",test:f.gd},{name:"null",test:f.kZ},{name:"undefined",test:f.b0},{name:"AccessorNode",test:f.AS},{name:"ArrayNode",test:f.gO},{name:"AssignmentNode",test:f.qM},{name:"BlockNode",test:f.CD},{name:"ConditionalNode",test:f.PO},{name:"ConstantNode",test:f.BA},{name:"FunctionNode",test:f.Px},{name:"FunctionAssignmentNode",test:f.m2},{name:"IndexNode",test:f.$I},{name:"Node",test:f.Ll},{name:"ObjectNode",test:f.GJ},{name:"OperatorNode",test:f.$$},{name:"ParenthesisNode",test:f.tv},{name:"RangeNode",test:f.Ye},{name:"SymbolNode",test:f.li},{name:"Map",test:P},{name:"Object",test:f.Gv}],o.conversions=[{from:"number",to:"BigNumber",convert:function(e){if(t||B(e),(0,p.vm)(e)>15)throw TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+e+"). Use function bignumber(x) to convert to BigNumber.");return new t(e)}},{from:"number",to:"Complex",convert:function(e){return r||L(e),new r(e,0)}},{from:"number",to:"string",convert:function(e){return e+""}},{from:"BigNumber",to:"Complex",convert:function(e){return r||L(e),new r(e.toNumber(),0)}},{from:"Fraction",to:"BigNumber",convert:function(e){throw TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(e){return r||L(e),new r(e.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(e){i||D(e);var t=new i(e);if(t.valueOf()!==e)throw TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+e+"). Use function fraction(x) to convert to Fraction.");return t}},{from:"string",to:"number",convert:function(e){var t=Number(e);if(isNaN(t))throw Error('Cannot convert "'+e+'" to a number');return t}},{from:"string",to:"BigNumber",convert:function(e){t||B(e);try{return new t(e)}catch(t){throw Error('Cannot convert "'+e+'" to BigNumber')}}},{from:"string",to:"Fraction",convert:function(e){i||D(e);try{return new i(e)}catch(t){throw Error('Cannot convert "'+e+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(e){r||L(e);try{return new r(e)}catch(t){throw Error('Cannot convert "'+e+'" to Complex')}}},{from:"boolean",to:"number",convert:function(e){return+e}},{from:"boolean",to:"BigNumber",convert:function(e){return t||B(e),new t(+e)}},{from:"boolean",to:"Fraction",convert:function(e){return i||D(e),new i(+e)}},{from:"boolean",to:"string",convert:function(e){return String(e)}},{from:"Array",to:"Matrix",convert:function(e){return n||function(){throw Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}(),new n(e)}},{from:"Matrix",to:"Array",convert:function(e){return e.valueOf()}}],o});function B(e){throw Error("Cannot convert value ".concat(e," into a BigNumber: no class 'BigNumber' provided"))}function L(e){throw Error("Cannot convert value ".concat(e," into a Complex number: no class 'Complex' provided"))}function D(e){throw Error("Cannot convert value ".concat(e," into a Fraction, no class 'Fraction' provided."))}var F={BigNumberDependencies:n.P,ComplexDependencies:{createComplexClass:m},DenseMatrixDependencies:g.k,FractionDependencies:{createFractionClass:C},createTyped:z}},15562(e,t,r){"use strict";function n(e,t,r){if(!(this instanceof n))throw SyntaxError("Constructor must be called with the new operator");this.actual=e,this.expected=t,this.relation=r,this.message="Dimension mismatch ("+(Array.isArray(e)?"["+e.join(", ")+"]":e)+" "+(this.relation||"!=")+" "+(Array.isArray(t)?"["+t.join(", ")+"]":t)+")",this.stack=Error().stack}r.d(t,{h:()=>n}),n.prototype=RangeError(),n.prototype.constructor=RangeError,n.prototype.name="DimensionError",n.prototype.isDimensionError=!0},16086(e,t,r){"use strict";function n(e,t,r){if(!(this instanceof n))throw SyntaxError("Constructor must be called with the new operator");this.index=e,arguments.length<3?(this.min=0,this.max=t):(this.min=t,this.max=r),void 0!==this.min&&this.index<this.min?this.message="Index out of range ("+this.index+" < "+this.min+")":void 0!==this.max&&this.index>=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=Error().stack}r.d(t,{d:()=>n}),n.prototype=RangeError(),n.prototype.constructor=RangeError,n.prototype.name="IndexError",n.prototype.isIndexError=!0},34046(e,t,r){"use strict";r.d(t,{Wf:()=>o,aU:()=>i});var n=r(55624);function i(e,t){var r;if(!(0,n.YN)(e)||!(0,n.YN)(t))throw Error("Parameters in function gcd must be integer numbers");for(;0!==t;)r=e%t,e=t,t=r;return e<0?-e:e}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(0,n.YN)(t)||t<0||t>15)throw Error("Number of decimals in function round must be an integer from 0 to 15 inclusive");return parseFloat((0,n.Mg)(e,t))}i.signature="number, number"},77666(e,t,r){"use strict";r.d(t,{f:()=>o});var n=r(1207),i=r(32718),o=(0,n.P9)("algorithm14",["typed"],e=>{var{typed:t}=e;return function(e,r,n,o){var a,s=e._data,l=e._size,u=e._datatype,c=n;"string"==typeof u&&(a=u,r=t.convert(r,a),c=t.find(n,[a,a]));var d=l.length>0?function e(t,r,n,i,o,a,s){var l=[];if(r===n.length-1)for(var u=0;u<i;u++)l[u]=s?t(a,o[u]):t(o[u],a);else for(var c=0;c<i;c++)l[c]=e(t,r+1,n,n[r+1],o[c],a,s);return l}(c,0,l,l[0],s,r,o):[];return e.createDenseMatrix({data:d,size:(0,i.o8)(l),datatype:a})}})},49204(e,t,r){"use strict";r.d(t,{LO:()=>l,XR:()=>d,cs:()=>f,gR:()=>g,iD:()=>m,ig:()=>function e(t,r){for(var n,i=0,o=0;o<t.length;o++){var a=t[o],s=Array.isArray(a);if(0===o&&s&&(i=a.length),s&&a.length!==i)return;var l=s?e(a,r):r(a);if(void 0===n)n=l;else if(n!==l)return"mixed"}return n},r7:()=>c,tQ:()=>p,tf:()=>u});var n=r(55624),i=r(46797),o=r(93988),a=r(15562),s=r(16086);function l(e){for(var t=[];Array.isArray(e);)t.push(e.length),e=e[0];return t}function u(e,t){if(0===t.length){if(Array.isArray(e))throw new a.h(e.length,0)}else!function e(t,r,n){var i,o=t.length;if(o!==r[n])throw new a.h(o,r[n]);if(n<r.length-1){var s=n+1;for(i=0;i<o;i++){if(!Array.isArray(t[i]))throw new a.h(r.length-1,r.length,"<");e(t[i],r,s)}}else for(i=0;i<o;i++)if(Array.isArray(t[i]))throw new a.h(r.length+1,r.length,">")}(e,t,0)}function c(e,t){if(!(0,i.Et)(e)||!(0,n.YN)(e))throw TypeError("Index must be an integer (value: "+e+")");if(e<0||"number"==typeof t&&e>=t)throw new s.d(e,t)}function d(e,t,r){if(!Array.isArray(e)||!Array.isArray(t))throw TypeError("Array expected");if(0===t.length)throw Error("Resizing to scalar is not supported");return t.forEach(function(e){if(!(0,i.Et)(e)||!(0,n.YN)(e)||e<0)throw TypeError("Invalid size, must contain positive integers (size: "+(0,o.GP)(t)+")")}),function e(t,r,n,i){var o,a,s=t.length,l=r[n],u=Math.min(s,l);if(t.length=l,n<r.length-1){var c=n+1;for(o=0;o<u;o++)Array.isArray(a=t[o])||(a=[a],t[o]=a),e(a,r,c,i);for(o=u;o<l;o++)a=[],t[o]=a,e(a,r,c,i)}else{for(o=0;o<u;o++)for(;Array.isArray(t[o]);)t[o]=t[o][0];for(o=u;o<l;o++)t[o]=i}}(e,t,0,void 0!==r?r:0),e}function p(e,t){var r=function(e){if(!Array.isArray(e))return e;var t=[];return e.forEach(function e(r){Array.isArray(r)?r.forEach(e):t.push(r)}),t}(e),n=r.length;if(!Array.isArray(e)||!Array.isArray(t))throw TypeError("Array expected");if(0===t.length)throw new a.h(0,n,"!=");var i=h(t=f(t,n));if(n!==i)throw new a.h(i,n,"!=");try{return function(e,t){for(var r,n=e,i=t.length-1;i>0;i--){var o=t[i];r=[];for(var a=n.length/o,s=0;s<a;s++)r.push(n.slice(s*o,(s+1)*o));n=r}return n}(r,t)}catch(e){if(e instanceof a.h)throw new a.h(i,n,"!=");throw e}}function f(e,t){var r=h(e),n=e.slice(),i=e.indexOf(-1);if(e.indexOf(-1,i+1)>=0)throw Error("More than one wildcard in sizes");if(i>=0)if(t%r==0)n[i]=-t/r;else throw Error("Could not replace wildcard, since "+t+" is no multiple of "+-r);return n}function h(e){return e.reduce((e,t)=>e*t,1)}function m(e,t,r,n){var i=n||l(e);if(r)for(var o=0;o<r;o++)e=[e],i.unshift(1);for(e=function e(t,r,n){var i,o;if(Array.isArray(t)){var a=n+1;for(i=0,o=t.length;i<o;i++)t[i]=e(t[i],r,a)}else for(var s=n;s<r;s++)t=[t];return t}(e,t,0);i.length<t;)i.push(1);return e}function g(e,t){return -1!==e.indexOf(t)}},1207(e,t,r){"use strict";r.d(t,{P9:()=>i,Py:()=>a,T$:()=>o});var n=r(32718);function i(e,t,r,i){function o(i){var o=(0,n.K)(i,t.map(a));return function(e,t,r){if(!t.filter(e=>{var t;return!((t=e)&&"?"===t[0])}).every(e=>void 0!==r[e])){var n=t.filter(e=>void 0===r[e]);throw Error('Cannot create function "'.concat(e,'", ')+"some dependencies are missing: ".concat(n.map(e=>'"'.concat(e,'"')).join(", "),"."))}}(e,t,i),r(o)}return o.isFactory=!0,o.fn=e,o.dependencies=t.slice().sort(),i&&(o.meta=i),o}function o(e){return"function"==typeof e&&"string"==typeof e.fn&&Array.isArray(e.dependencies)}function a(e){return e&&"?"===e[0]?e.slice(1):e}},46797(e,t,r){"use strict";function n(e){return"number"==typeof e}function i(e){return!!e&&"object"==typeof e&&"function"==typeof e.constructor&&(!0===e.isBigNumber&&"object"==typeof e.constructor.prototype&&!0===e.constructor.prototype.isBigNumber||"function"==typeof e.constructor.isDecimal&&!0===e.constructor.isDecimal(e))}function o(e){return e&&"object"==typeof e&&!0===Object.getPrototypeOf(e).isComplex||!1}function a(e){return e&&"object"==typeof e&&!0===Object.getPrototypeOf(e).isFraction||!1}function s(e){return e&&!0===e.constructor.prototype.isUnit||!1}function l(e){return"string"==typeof e}r.d(t,{$$:()=>j,$I:()=>T,$P:()=>x,AF:()=>f,AS:()=>k,BA:()=>E,C4:()=>i,CD:()=>$,Et:()=>n,GJ:()=>P,Gv:()=>w,Kg:()=>l,Ll:()=>I,Lm:()=>g,OA:()=>c,P3:()=>d,PO:()=>O,Px:()=>R,QP:()=>F,Tn:()=>b,Ye:()=>B,Zd:()=>o,_Z:()=>h,b0:()=>_,cy:()=>u,eW:()=>y,fU:()=>a,gO:()=>M,gS:()=>v,gd:()=>A,kZ:()=>S,li:()=>L,m2:()=>N,nw:()=>m,o_:()=>D,qM:()=>C,tv:()=>z,vO:()=>s,zR:()=>p});var u=Array.isArray;function c(e){return e&&!0===e.constructor.prototype.isMatrix||!1}function d(e){return Array.isArray(e)||c(e)}function p(e){return e&&e.isDenseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function f(e){return e&&e.isSparseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function h(e){return e&&!0===e.constructor.prototype.isRange||!1}function m(e){return e&&!0===e.constructor.prototype.isIndex||!1}function g(e){return"boolean"==typeof e}function y(e){return e&&!0===e.constructor.prototype.isResultSet||!1}function v(e){return e&&!0===e.constructor.prototype.isHelp||!1}function b(e){return"function"==typeof e}function x(e){return e instanceof Date}function A(e){return e instanceof RegExp}function w(e){return!!(e&&"object"==typeof e&&e.constructor===Object&&!o(e)&&!a(e))}function S(e){return null===e}function _(e){return void 0===e}function k(e){return e&&!0===e.isAccessorNode&&!0===e.constructor.prototype.isNode||!1}function M(e){return e&&!0===e.isArrayNode&&!0===e.constructor.prototype.isNode||!1}function C(e){return e&&!0===e.isAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function $(e){return e&&!0===e.isBlockNode&&!0===e.constructor.prototype.isNode||!1}function O(e){return e&&!0===e.isConditionalNode&&!0===e.constructor.prototype.isNode||!1}function E(e){return e&&!0===e.isConstantNode&&!0===e.constructor.prototype.isNode||!1}function N(e){return e&&!0===e.isFunctionAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function R(e){return e&&!0===e.isFunctionNode&&!0===e.constructor.prototype.isNode||!1}function T(e){return e&&!0===e.isIndexNode&&!0===e.constructor.prototype.isNode||!1}function I(e){return e&&!0===e.isNode&&!0===e.constructor.prototype.isNode||!1}function P(e){return e&&!0===e.isObjectNode&&!0===e.constructor.prototype.isNode||!1}function j(e){return e&&!0===e.isOperatorNode&&!0===e.constructor.prototype.isNode||!1}function z(e){return e&&!0===e.isParenthesisNode&&!0===e.constructor.prototype.isNode||!1}function B(e){return e&&!0===e.isRangeNode&&!0===e.constructor.prototype.isNode||!1}function L(e){return e&&!0===e.isSymbolNode&&!0===e.constructor.prototype.isNode||!1}function D(e){return e&&!0===e.constructor.prototype.isChain||!1}function F(e){var t=typeof e;return"object"===t?null===e?"null":Array.isArray(e)?"Array":e instanceof Date?"Date":e instanceof RegExp?"RegExp":i(e)?"BigNumber":o(e)?"Complex":a(e)?"Fraction":c(e)?"Matrix":s(e)?"Unit":m(e)?"Index":h(e)?"Range":y(e)?"ResultSet":I(e)?e.type:D(e)?"Chain":v(e)?"Help":"Object":"function"===t?"Function":t}},55624(e,t,r){"use strict";r.d(t,{GP:()=>p,IY:()=>c,Kk:()=>l,Mg:()=>h,YL:()=>s,YN:()=>i,_S:()=>o,_n:()=>u,p6:()=>a,q8:()=>x,vm:()=>v});var n=r(46797);function i(e){return"boolean"==typeof e||!!isFinite(e)&&e===Math.round(e)}var o=Math.sign||function(e){return e>0?1:e<0?-1:0},a=Math.log2||function(e){return Math.log(e)/Math.LN2},s=Math.log10||function(e){return Math.log(e)/Math.LN10},l=Math.log1p||function(e){return Math.log(e+1)},u=Math.cbrt||function(e){if(0===e)return e;var t,r=e<0;return r&&(e=-e),isFinite(e)?(t=Math.exp(Math.log(e)/3),t=(e/(t*t)+2*t)/3):t=e,r?-t:t},c=Math.expm1||function(e){return e>=2e-4||e<=-2e-4?Math.exp(e)-1:e+e*e/2+e*e*e/6};function d(e,t,r){var n="";if(r){if(r<1)throw Error("size must be in greater than 0");if(!i(r))throw Error("size must be an integer");if(e>2**(r-1)-1||e<-(2**(r-1)))throw Error("Value must be in range [-2^".concat(r-1,", 2^").concat(r-1,"-1]"));if(!i(e))throw Error("Value must be an integer");e<0&&(e+=2**r),n="i".concat(r)}var o="";return e<0&&(e=-e,o="-"),"".concat(o).concat({2:"0b",8:"0o",16:"0x"}[t]).concat(e.toString(t)).concat(n)}function p(e,t){if("function"==typeof t)return t(e);if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(isNaN(e))return"NaN";var r,i,o="auto";if(t&&(t.notation&&(o=t.notation),(0,n.Et)(t)?r=t:(0,n.Et)(t.precision)&&(r=t.precision),t.wordSize)&&"number"!=typeof(i=t.wordSize))throw Error('Option "wordSize" must be a number');switch(o){case"fixed":return h(e,r);case"exponential":return m(e,r);case"engineering":return function(e,t){if(isNaN(e)||!isFinite(e))return String(e);var r=g(f(e),t),i=r.exponent,o=r.coefficients,a=i%3==0?i:i<0?i-3-i%3:i-i%3;if((0,n.Et)(t))for(;t>o.length||i-a+1>o.length;)o.push(0);else for(var s=Math.abs(i-a)-(o.length-1),l=0;l<s;l++)o.push(0);for(var u=Math.abs(i-a),c=1;u>0;)c++,u--;var d=o.slice(c).join(""),p=(0,n.Et)(t)&&d.length||d.match(/[1-9]/)?"."+d:"",h=o.slice(0,c).join("")+p+"e"+(i>=0?"+":"")+a.toString();return r.sign+h}(e,r);case"bin":return d(e,2,i);case"oct":return d(e,8,i);case"hex":return d(e,16,i);case"auto":return(function(e,t,r){if(isNaN(e)||!isFinite(e))return String(e);var n=r&&void 0!==r.lowerExp?r.lowerExp:-3,i=r&&void 0!==r.upperExp?r.upperExp:5,o=f(e),a=t?g(o,t):o;if(a.exponent<n||a.exponent>=i)return m(e,t);var s=a.coefficients,l=a.exponent;s.length<t&&(s=s.concat(y(t-s.length))),s=s.concat(y(l-s.length+1+(s.length<t?t-s.length:0))),s=y(-l).concat(s);var u=l>0?l:0;return u<s.length-1&&s.splice(u+1,0,"."),a.sign+s.join("")})(e,r,t&&t).replace(/((\.\d*?)(0+))($|e)/,function(){var e=arguments[2],t=arguments[4];return"."!==e?e+t:t});default:throw Error('Unknown notation "'+o+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function f(e){var t=String(e).toLowerCase().match(/^(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!t)throw SyntaxError("Invalid number "+e);var r=t[1],n=t[2],i=parseFloat(t[4]||"0"),o=n.indexOf(".");i+=-1!==o?o-1:n.length-1;var a=n.replace(".","").replace(/^0*/,function(e){return i-=e.length,""}).replace(/0*$/,"").split("").map(function(e){return parseInt(e)});return 0===a.length&&(a.push(0),i++),{sign:r,coefficients:a,exponent:i}}function h(e,t){if(isNaN(e)||!isFinite(e))return String(e);var r=f(e),n="number"==typeof t?g(r,r.exponent+1+t):r,i=n.coefficients,o=n.exponent+1,a=o+(t||0);return i.length<a&&(i=i.concat(y(a-i.length))),o<0&&(i=y(-o+1).concat(i),o=1),o<i.length&&i.splice(o,0,0===o?"0.":"."),n.sign+i.join("")}function m(e,t){if(isNaN(e)||!isFinite(e))return String(e);var r=f(e),n=t?g(r,t):r,i=n.coefficients,o=n.exponent;i.length<t&&(i=i.concat(y(t-i.length)));var a=i.shift();return n.sign+a+(i.length>0?"."+i.join(""):"")+"e"+(o>=0?"+":"")+o}function g(e,t){for(var r={sign:e.sign,coefficients:e.coefficients,exponent:e.exponent},n=r.coefficients;t<=0;)n.unshift(0),r.exponent++,t++;if(n.length>t&&n.splice(t,n.length-t)[0]>=5){var i=t-1;for(n[i]++;10===n[i];)n.pop(),0===i&&(n.unshift(0),r.exponent++,i++),i--,n[i]++}return r}function y(e){for(var t=[],r=0;r<e;r++)t.push(0);return t}function v(e){return e.toExponential().replace(/e.*$/,"").replace(/^0\.?0*|\./,"").length}var b=Number.EPSILON||2220446049250313e-31;function x(e,t,r){if(null==r)return e===t;if(e===t)return!0;if(isNaN(e)||isNaN(t))return!1;if(isFinite(e)&&isFinite(t)){var n=Math.abs(e-t);return n<b||n<=Math.max(Math.abs(e),Math.abs(t))*r}return!1}},32718(e,t,r){"use strict";r.d(t,{K:()=>u,Mx:()=>l,QO:()=>function e(t,r){var n,i,o;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(i=0,o=t.length;i<o;i++)if(!e(t[i],r[i]))return!1;return!0}if("function"==typeof t)return t===r;if(!(t instanceof Object))return t===r;if(Array.isArray(r)||!(r instanceof Object))return!1;for(n in t)if(!(n in r)||!e(t[n],r[n]))return!1;for(n in r)if(!(n in t))return!1;return!0},RZ:()=>a,mQ:()=>s,o8:()=>function e(t){var r=typeof t;if("number"===r||"string"===r||"boolean"===r||null==t)return t;if("function"==typeof t.clone)return t.clone();if(Array.isArray(t))return t.map(function(t){return e(t)});if(t instanceof Date)return new Date(t.valueOf());if((0,n.C4)(t))return t;if(t instanceof RegExp)throw TypeError("Cannot clone "+t);return i(t,e)},rU:()=>o,s8:()=>i,zu:()=>c,zw:()=>function e(t,r){if(Array.isArray(r))throw TypeError("Arrays are not supported by deepExtend");for(var n in r)if(s(r,n)&&!(n in Object.prototype)&&!(n in Function.prototype))if(r[n]&&r[n].constructor===Object)void 0===t[n]&&(t[n]={}),t[n]&&t[n].constructor===Object?e(t[n],r[n]):t[n]=r[n];else if(Array.isArray(r[n]))throw TypeError("Arrays are not supported by deepExtend");else t[n]=r[n];return t}});var n=r(46797);function i(e,t){var r={};for(var n in e)s(e,n)&&(r[n]=t(e[n]));return r}function o(e){var t={};return function e(t,r){for(var n in t)if(s(t,n)){var i=t[n];"object"==typeof i&&null!==i?e(i,r):r[n]=i}}(e,t),t}function a(e,t,r){var n,i=!0;Object.defineProperty(e,t,{get:function(){return i&&(n=r(),i=!1),n},set:function(e){n=e,i=!1},configurable:!0,enumerable:!0})}function s(e,t){return e&&Object.hasOwnProperty.call(e,t)}function l(e){return e&&"function"==typeof e.factory}function u(e,t){for(var r={},n=0;n<t.length;n++){var i=t[n],o=e[i];void 0!==o&&(r[i]=o)}return r}function c(e){return Object.keys(e).map(t=>e[t])}},93988(e,t,r){"use strict";r.d(t,{GP:()=>function e(t,r){var s=function(t,r){var s;if("number"==typeof t)return(0,i.GP)(t,r);if((0,n.C4)(t))return function(e,t){if("function"==typeof t)return t(e);if(!e.isFinite())return e.isNaN()?"NaN":e.gt(0)?"Infinity":"-Infinity";var r="auto";if(void 0!==t&&(t.notation&&(r=t.notation),"number"==typeof t?f=t:t.precision&&(f=t.precision),t.wordSize)&&"number"!=typeof(h=t.wordSize))throw Error('Option "wordSize" must be a number');switch(r){case"fixed":return n=e,i=f,n.toFixed(i);case"exponential":return a(e,f);case"engineering":return s=e,l=f,c=(u=s.e)%3==0?u:u<0?u-3-u%3:u-u%3,-1!==(p=(d=s.mul(Math.pow(10,-c))).toPrecision(l)).indexOf("e")&&(p=d.toString()),p+"e"+(u>=0?"+":"")+c.toString();case"bin":return o(e,2,h);case"oct":return o(e,8,h);case"hex":return o(e,16,h);case"auto":var n,i,s,l,u,c,d,p,f,h,m=t&&void 0!==t.lowerExp?t.lowerExp:-3,g=t&&void 0!==t.upperExp?t.upperExp:5;if(e.isZero())return"0";var y=e.toSignificantDigits(f),v=y.e;return(v>=m&&v<g?y.toFixed():a(e,f)).replace(/((\.\d*?)(0+))($|e)/,function(){var e=arguments[2],t=arguments[4];return"."!==e?e+t:t});default:throw Error('Unknown notation "'+r+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}(t,r);if((s=t)&&"object"==typeof s&&"number"==typeof s.s&&"number"==typeof s.n&&"number"==typeof s.d)if(!r||"decimal"!==r.fraction)return t.s*t.n+"/"+t.d;else return t.toString();if(Array.isArray(t))return function t(r,n){if(!Array.isArray(r))return e(r,n);for(var i="[",o=r.length,a=0;a<o;a++)0!==a&&(i+=", "),i+=t(r[a],n);return i+"]"}(t,r);if((0,n.Kg)(t))return'"'+t+'"';if("function"==typeof t)return t.syntax?String(t.syntax):"function";if(t&&"object"==typeof t)if("function"==typeof t.format)return t.format(r);else return t&&t.toString(r)!==({}).toString()?t.toString(r):"{"+Object.keys(t).map(n=>'"'+n+'": '+e(t[n],r)).join(", ")+"}";return String(t)}(t,r);return r&&"object"==typeof r&&"truncate"in r&&s.length>r.truncate?s.substring(0,r.truncate-3)+"...":s}});var n=r(46797),i=r(55624);function o(e,t,r){var n=new e.constructor(2),o="";if(r){if(r<1)throw Error("size must be in greater than 0");if(!(0,i.YN)(r))throw Error("size must be an integer");if(e.greaterThan(n.pow(r-1).sub(1))||e.lessThan(n.pow(r-1).mul(-1)))throw Error("Value must be in range [-2^".concat(r-1,", 2^").concat(r-1,"-1]"));if(!e.isInteger())throw Error("Value must be an integer");e.lessThan(0)&&(e=e.add(n.pow(r))),o="i".concat(r)}switch(t){case 2:return"".concat(e.toBinary()).concat(o);case 8:return"".concat(e.toOctal()).concat(o);case 16:return"".concat(e.toHexadecimal()).concat(o);default:throw Error("Base ".concat(t," not supported "))}}function a(e,t){return void 0!==t?e.toExponential(t-1):e.toExponential()}},37830(e,t,r){"use strict";r.d(t,{G:()=>o,eq:()=>i});var n=r(86045);let i=n.ZS.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class o extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof o))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,n.ZS.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}o.create=e=>new o(e)},86045(e,t,r){"use strict";var n,i,o;r.d(t,{CR:()=>s,ZS:()=>n,Zp:()=>a}),(o=n||(n={})).assertEqual=e=>{},o.assertIs=function(e){},o.assertNever=function(e){throw Error()},o.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},o.getValidEnumValues=e=>{let t=o.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let n of t)r[n]=e[n];return o.objectValues(r)},o.objectValues=e=>o.objectKeys(e).map(function(t){return e[t]}),o.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},o.find=(e,t)=>{for(let r of e)if(t(r))return r},o.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,o.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},o.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(i||(i={})).mergeShapes=(e,t)=>({...e,...t});let a=n.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),s=e=>{switch(typeof e){case"undefined":return a.undefined;case"string":return a.string;case"number":return Number.isNaN(e)?a.nan:a.number;case"boolean":return a.boolean;case"function":return a.function;case"bigint":return a.bigint;case"symbol":return a.symbol;case"object":if(Array.isArray(e))return a.array;if(null===e)return a.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return a.promise;if("u">typeof Map&&e instanceof Map)return a.map;if("u">typeof Set&&e instanceof Set)return a.set;if("u">typeof Date&&e instanceof Date)return a.date;return a.object;default:return a.unknown}}},59140(e,t,r){"use strict";let n;r.d(t,{k5:()=>eT,gM:()=>eE,bz:()=>eM,g1:()=>eN,zM:()=>ek,ai:()=>e_,Ik:()=>e$,YO:()=>eC,Yj:()=>eS,eu:()=>eR,KC:()=>eO});var i,o,a,s,l=r(37830),u=r(86045);let c=(e,t)=>{let r;switch(e.code){case l.eq.invalid_type:r=e.received===u.Zp.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case l.eq.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,u.ZS.jsonStringifyReplacer)}`;break;case l.eq.unrecognized_keys:r=`Unrecognized key(s) in object: ${u.ZS.joinValues(e.keys,", ")}`;break;case l.eq.invalid_union:r="Invalid input";break;case l.eq.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${u.ZS.joinValues(e.options)}`;break;case l.eq.invalid_enum_value:r=`Invalid enum value. Expected ${u.ZS.joinValues(e.options)}, received '${e.received}'`;break;case l.eq.invalid_arguments:r="Invalid function arguments";break;case l.eq.invalid_return_type:r="Invalid function return type";break;case l.eq.invalid_date:r="Invalid date";break;case l.eq.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:u.ZS.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case l.eq.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case l.eq.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case l.eq.custom:r="Invalid input";break;case l.eq.invalid_intersection_types:r="Intersection results could not be merged";break;case l.eq.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case l.eq.not_finite:r="Number must be finite";break;default:r=t.defaultError,u.ZS.assertNever(e)}return{message:r}};(i=a||(a={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},i.toString=e=>"string"==typeof e?e:e?.message;let d=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,o=[...r,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}};function p(e,t){let r=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,c,void 0].filter(e=>!!e)});e.common.issues.push(r)}class f{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return h;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return f.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return h;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let h=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),g=e=>({status:"valid",value:e}),y=e=>"u">typeof Promise&&e instanceof Promise;class v{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let b=(e,t)=>{if("valid"===t.status)return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new l.G(e.common.issues);return this._error=t,this._error}}};function x(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:o}=e;return"invalid_enum_value"===t.code?{message:o??i.defaultError}:void 0===i.data?{message:o??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:o??r??i.defaultError}},description:i}}class A{get description(){return this._def.description}_getType(e){return(0,u.CR)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,u.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new f,ctx:{common:e.parent.common,data:e.data,parsedType:(0,u.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(y(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,u.CR)(e)},n=this._parseSync({data:e,path:r.path,parent:r});return b(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,u.CR)(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return"valid"===r.status?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,u.CR)(e)},n=this._parse({data:e,path:r.path,parent:r});return b(r,await (y(n)?n:Promise.resolve(n)))}refine(e,t){return this._refinement((r,n)=>{let i=e(r),o=()=>n.addIssue({code:l.eq.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(r):t});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(o(),!1)):!!i||(o(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new eh({schema:this,typeName:s.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return em.create(this,this._def)}nullable(){return eg.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return G.create(this)}promise(){return ef.create(this,this._def)}or(e){return J.create([this,e],this._def)}and(e){return er.create(this,e,this._def)}transform(e){return new eh({...x(this._def),schema:this,typeName:s.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ey({...x(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:s.ZodDefault})}brand(){return new ex({typeName:s.ZodBranded,type:this,...x(this._def)})}catch(e){return new ev({...x(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:s.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eA.create(this,e)}readonly(){return ew.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let w=/^c[^\s-]{8,}$/i,S=/^[0-9a-z]+$/,_=/^[0-9A-HJKMNP-TV-Z]{26}$/i,k=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,M=/^[a-z0-9_-]{21}$/i,C=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,$=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,O=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,E=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,N=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,R=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,T=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,I=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,P=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,j="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",z=RegExp(`^${j}$`);function B(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}class L extends A{_parse(e){var t,r,i,o;let a;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==u.Zp.string){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.string,received:t.parsedType}),h}let s=new f;for(let c of this._def.checks)if("min"===c.kind)e.data.length<c.value&&(p(a=this._getOrReturnCtx(e,a),{code:l.eq.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),s.dirty());else if("max"===c.kind)e.data.length>c.value&&(p(a=this._getOrReturnCtx(e,a),{code:l.eq.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),s.dirty());else if("length"===c.kind){let t=e.data.length>c.value,r=e.data.length<c.value;(t||r)&&(a=this._getOrReturnCtx(e,a),t?p(a,{code:l.eq.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}):r&&p(a,{code:l.eq.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}),s.dirty())}else if("email"===c.kind)O.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"email",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("emoji"===c.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"emoji",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("uuid"===c.kind)k.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"uuid",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("nanoid"===c.kind)M.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"nanoid",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("cuid"===c.kind)w.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"cuid",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("cuid2"===c.kind)S.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"cuid2",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("ulid"===c.kind)_.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"ulid",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("url"===c.kind)try{new URL(e.data)}catch{p(a=this._getOrReturnCtx(e,a),{validation:"url",code:l.eq.invalid_string,message:c.message}),s.dirty()}else"regex"===c.kind?(c.regex.lastIndex=0,c.regex.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"regex",code:l.eq.invalid_string,message:c.message}),s.dirty())):"trim"===c.kind?e.data=e.data.trim():"includes"===c.kind?e.data.includes(c.value,c.position)||(p(a=this._getOrReturnCtx(e,a),{code:l.eq.invalid_string,validation:{includes:c.value,position:c.position},message:c.message}),s.dirty()):"toLowerCase"===c.kind?e.data=e.data.toLowerCase():"toUpperCase"===c.kind?e.data=e.data.toUpperCase():"startsWith"===c.kind?e.data.startsWith(c.value)||(p(a=this._getOrReturnCtx(e,a),{code:l.eq.invalid_string,validation:{startsWith:c.value},message:c.message}),s.dirty()):"endsWith"===c.kind?e.data.endsWith(c.value)||(p(a=this._getOrReturnCtx(e,a),{code:l.eq.invalid_string,validation:{endsWith:c.value},message:c.message}),s.dirty()):"datetime"===c.kind?(function(e){let t=`${j}T${B(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)})(c).test(e.data)||(p(a=this._getOrReturnCtx(e,a),{code:l.eq.invalid_string,validation:"datetime",message:c.message}),s.dirty()):"date"===c.kind?z.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{code:l.eq.invalid_string,validation:"date",message:c.message}),s.dirty()):"time"===c.kind?RegExp(`^${B(c)}$`).test(e.data)||(p(a=this._getOrReturnCtx(e,a),{code:l.eq.invalid_string,validation:"time",message:c.message}),s.dirty()):"duration"===c.kind?$.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"duration",code:l.eq.invalid_string,message:c.message}),s.dirty()):"ip"===c.kind?(t=e.data,!(("v4"===(r=c.version)||!r)&&E.test(t)||("v6"===r||!r)&&R.test(t))&&1&&(p(a=this._getOrReturnCtx(e,a),{validation:"ip",code:l.eq.invalid_string,message:c.message}),s.dirty())):"jwt"===c.kind?!function(e,t){if(!C.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,c.alg)&&(p(a=this._getOrReturnCtx(e,a),{validation:"jwt",code:l.eq.invalid_string,message:c.message}),s.dirty()):"cidr"===c.kind?(i=e.data,!(("v4"===(o=c.version)||!o)&&N.test(i)||("v6"===o||!o)&&T.test(i))&&1&&(p(a=this._getOrReturnCtx(e,a),{validation:"cidr",code:l.eq.invalid_string,message:c.message}),s.dirty())):"base64"===c.kind?I.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"base64",code:l.eq.invalid_string,message:c.message}),s.dirty()):"base64url"===c.kind?P.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"base64url",code:l.eq.invalid_string,message:c.message}),s.dirty()):u.ZS.assertNever(c);return{status:s.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:l.eq.invalid_string,...a.errToObj(r)})}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...a.errToObj(e)})}url(e){return this._addCheck({kind:"url",...a.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...a.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...a.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...a.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...a.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...a.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...a.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...a.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...a.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...a.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...a.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...a.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...a.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...a.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...a.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...a.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...a.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...a.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...a.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...a.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...a.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...a.errToObj(t)})}nonempty(e){return this.min(1,a.errToObj(e))}trim(){return new L({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new L({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new L({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}L.create=e=>new L({checks:[],typeName:s.ZodString,coerce:e?.coerce??!1,...x(e)});class D extends A{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==u.Zp.number){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.number,received:t.parsedType}),h}let r=new f;for(let n of this._def.checks)"int"===n.kind?u.ZS.isInteger(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:l.eq.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:l.eq.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:l.eq.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:l.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:l.eq.not_finite,message:n.message}),r.dirty()):u.ZS.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,a.toString(t))}gt(e,t){return this.setLimit("min",e,!1,a.toString(t))}lte(e,t){return this.setLimit("max",e,!0,a.toString(t))}lt(e,t){return this.setLimit("max",e,!1,a.toString(t))}setLimit(e,t,r,n){return new D({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:a.toString(n)}]})}_addCheck(e){return new D({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:a.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:a.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:a.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:a.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:a.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:a.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:a.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:a.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:a.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&u.ZS.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}D.create=e=>new D({checks:[],typeName:s.ZodNumber,coerce:e?.coerce||!1,...x(e)});class F extends A{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==u.Zp.bigint)return this._getInvalidInput(e);let r=new f;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:l.eq.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:l.eq.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(p(t=this._getOrReturnCtx(e,t),{code:l.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):u.ZS.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.bigint,received:t.parsedType}),h}gte(e,t){return this.setLimit("min",e,!0,a.toString(t))}gt(e,t){return this.setLimit("min",e,!1,a.toString(t))}lte(e,t){return this.setLimit("max",e,!0,a.toString(t))}lt(e,t){return this.setLimit("max",e,!1,a.toString(t))}setLimit(e,t,r,n){return new F({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:a.toString(n)}]})}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:a.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:a.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:a.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:a.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:a.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}F.create=e=>new F({checks:[],typeName:s.ZodBigInt,coerce:e?.coerce??!1,...x(e)});class W extends A{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==u.Zp.boolean){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.boolean,received:t.parsedType}),h}return g(e.data)}}W.create=e=>new W({typeName:s.ZodBoolean,coerce:e?.coerce||!1,...x(e)});class Z extends A{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==u.Zp.date){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.date,received:t.parsedType}),h}if(Number.isNaN(e.data.getTime()))return p(this._getOrReturnCtx(e),{code:l.eq.invalid_date}),h;let r=new f;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(p(t=this._getOrReturnCtx(e,t),{code:l.eq.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(p(t=this._getOrReturnCtx(e,t),{code:l.eq.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):u.ZS.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:a.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:a.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Z.create=e=>new Z({checks:[],coerce:e?.coerce||!1,typeName:s.ZodDate,...x(e)});class q extends A{_parse(e){if(this._getType(e)!==u.Zp.symbol){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.symbol,received:t.parsedType}),h}return g(e.data)}}q.create=e=>new q({typeName:s.ZodSymbol,...x(e)});class V extends A{_parse(e){if(this._getType(e)!==u.Zp.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.undefined,received:t.parsedType}),h}return g(e.data)}}V.create=e=>new V({typeName:s.ZodUndefined,...x(e)});class H extends A{_parse(e){if(this._getType(e)!==u.Zp.null){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.null,received:t.parsedType}),h}return g(e.data)}}H.create=e=>new H({typeName:s.ZodNull,...x(e)});class U extends A{constructor(){super(...arguments),this._any=!0}_parse(e){return g(e.data)}}U.create=e=>new U({typeName:s.ZodAny,...x(e)});class Y extends A{constructor(){super(...arguments),this._unknown=!0}_parse(e){return g(e.data)}}Y.create=e=>new Y({typeName:s.ZodUnknown,...x(e)});class K extends A{_parse(e){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.never,received:t.parsedType}),h}}K.create=e=>new K({typeName:s.ZodNever,...x(e)});class X extends A{_parse(e){if(this._getType(e)!==u.Zp.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.void,received:t.parsedType}),h}return g(e.data)}}X.create=e=>new X({typeName:s.ZodVoid,...x(e)});class G extends A{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==u.Zp.array)return p(t,{code:l.eq.invalid_type,expected:u.Zp.array,received:t.parsedType}),h;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(p(t,{code:e?l.eq.too_big:l.eq.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(p(t,{code:l.eq.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(p(t,{code:l.eq.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new v(t,e,t.path,r)))).then(e=>f.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new v(t,e,t.path,r)));return f.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new G({...this._def,minLength:{value:e,message:a.toString(t)}})}max(e,t){return new G({...this._def,maxLength:{value:e,message:a.toString(t)}})}length(e,t){return new G({...this._def,exactLength:{value:e,message:a.toString(t)}})}nonempty(e){return this.min(1,e)}}G.create=(e,t)=>new G({type:e,minLength:null,maxLength:null,exactLength:null,typeName:s.ZodArray,...x(t)});class Q extends A{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=u.ZS.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==u.Zp.object){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.object,received:t.parsedType}),h}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof K&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||o.push(e);let a=[];for(let e of i){let t=n[e],i=r.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new v(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof K){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)a.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(p(r,{code:l.eq.unrecognized_keys,keys:o}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new v(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of a){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>f.mergeObjectSync(t,e)):f.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return a.errToObj,new Q({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:a.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new Q({...this._def,unknownKeys:"strip"})}passthrough(){return new Q({...this._def,unknownKeys:"passthrough"})}extend(e){return new Q({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Q({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:s.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Q({...this._def,catchall:e})}pick(e){let t={};for(let r of u.ZS.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new Q({...this._def,shape:()=>t})}omit(e){let t={};for(let r of u.ZS.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new Q({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof Q){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=em.create(e(i))}return new Q({...t._def,shape:()=>r})}if(t instanceof G)return new G({...t._def,type:e(t.element)});if(t instanceof em)return em.create(e(t.unwrap()));if(t instanceof eg)return eg.create(e(t.unwrap()));if(t instanceof en)return en.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let r of u.ZS.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new Q({...this._def,shape:()=>t})}required(e){let t={};for(let r of u.ZS.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof em;)e=e._def.innerType;t[r]=e}return new Q({...this._def,shape:()=>t})}keyof(){return ec(u.ZS.objectKeys(this.shape))}}Q.create=(e,t)=>new Q({shape:()=>e,unknownKeys:"strip",catchall:K.create(),typeName:s.ZodObject,...x(t)}),Q.strictCreate=(e,t)=>new Q({shape:()=>e,unknownKeys:"strict",catchall:K.create(),typeName:s.ZodObject,...x(t)}),Q.lazycreate=(e,t)=>new Q({shape:e,unknownKeys:"strip",catchall:K.create(),typeName:s.ZodObject,...x(t)});class J extends A{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new l.G(e.ctx.common.issues));return p(t,{code:l.eq.invalid_union,unionErrors:r}),h});{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new l.G(e));return p(t,{code:l.eq.invalid_union,unionErrors:i}),h}}get options(){return this._def.options}}J.create=(e,t)=>new J({options:e,typeName:s.ZodUnion,...x(t)});let ee=e=>{if(e instanceof el)return ee(e.schema);if(e instanceof eh)return ee(e.innerType());if(e instanceof eu)return[e.value];if(e instanceof ed)return e.options;if(e instanceof ep)return u.ZS.objectValues(e.enum);else if(e instanceof ey)return ee(e._def.innerType);else if(e instanceof V)return[void 0];else if(e instanceof H)return[null];else if(e instanceof em)return[void 0,...ee(e.unwrap())];else if(e instanceof eg)return[null,...ee(e.unwrap())];else if(e instanceof ex)return ee(e.unwrap());else if(e instanceof ew)return ee(e.unwrap());else if(e instanceof ev)return ee(e._def.innerType);else return[]};class et extends A{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.Zp.object)return p(t,{code:l.eq.invalid_type,expected:u.Zp.object,received:t.parsedType}),h;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(p(t,{code:l.eq.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=ee(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new et({typeName:s.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...x(r)})}}class er extends A{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if("aborted"===e.status||"aborted"===n.status)return h;let i=function e(t,r){let n=(0,u.CR)(t),i=(0,u.CR)(r);if(t===r)return{valid:!0,data:t};if(n===u.Zp.object&&i===u.Zp.object){let n=u.ZS.objectKeys(r),i=u.ZS.objectKeys(t).filter(e=>-1!==n.indexOf(e)),o={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};o[n]=i.data}return{valid:!0,data:o}}if(n===u.Zp.array&&i===u.Zp.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let o=e(t[i],r[i]);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}if(n===u.Zp.date&&i===u.Zp.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,n.value);return i.valid?(("dirty"===e.status||"dirty"===n.status)&&t.dirty(),{status:t.value,value:i.data}):(p(r,{code:l.eq.invalid_intersection_types}),h)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}er.create=(e,t,r)=>new er({left:e,right:t,typeName:s.ZodIntersection,...x(r)});class en extends A{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==u.Zp.array)return p(r,{code:l.eq.invalid_type,expected:u.Zp.array,received:r.parsedType}),h;if(r.data.length<this._def.items.length)return p(r,{code:l.eq.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),h;!this._def.rest&&r.data.length>this._def.items.length&&(p(r,{code:l.eq.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new v(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>f.mergeArray(t,e)):f.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new en({...this._def,rest:e})}}en.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new en({items:e,typeName:s.ZodTuple,rest:null,...x(t)})};class ei extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==u.Zp.object)return p(r,{code:l.eq.invalid_type,expected:u.Zp.object,received:r.parsedType}),h;let n=[],i=this._def.keyType,o=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new v(r,e,r.path,e)),value:o._parse(new v(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?f.mergeObjectAsync(t,n):f.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new ei(t instanceof A?{keyType:e,valueType:t,typeName:s.ZodRecord,...x(r)}:{keyType:L.create(),valueType:e,typeName:s.ZodRecord,...x(t)})}}class eo extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==u.Zp.map)return p(r,{code:l.eq.invalid_type,expected:u.Zp.map,received:r.parsedType}),h;let n=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([e,t],o)=>({key:n._parse(new v(r,e,r.path,[o,"key"])),value:i._parse(new v(r,t,r.path,[o,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return h;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of o){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return h;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}eo.create=(e,t,r)=>new eo({valueType:t,keyType:e,typeName:s.ZodMap,...x(r)});class ea extends A{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==u.Zp.set)return p(r,{code:l.eq.invalid_type,expected:u.Zp.set,received:r.parsedType}),h;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(p(r,{code:l.eq.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(p(r,{code:l.eq.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function o(e){let r=new Set;for(let n of e){if("aborted"===n.status)return h;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let a=[...r.data.values()].map((e,t)=>i._parse(new v(r,e,r.path,t)));return r.common.async?Promise.all(a).then(e=>o(e)):o(a)}min(e,t){return new ea({...this._def,minSize:{value:e,message:a.toString(t)}})}max(e,t){return new ea({...this._def,maxSize:{value:e,message:a.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ea.create=(e,t)=>new ea({valueType:e,minSize:null,maxSize:null,typeName:s.ZodSet,...x(t)});class es extends A{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.Zp.function)return p(t,{code:l.eq.invalid_type,expected:u.Zp.function,received:t.parsedType}),h;function r(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c,c].filter(e=>!!e),issueData:{code:l.eq.invalid_arguments,argumentsError:r}})}function n(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c,c].filter(e=>!!e),issueData:{code:l.eq.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof ef){let e=this;return g(async function(...t){let a=new l.G([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw a.addIssue(r(t,e)),a}),u=await Reflect.apply(o,this,s);return await e._def.returns._def.type.parseAsync(u,i).catch(e=>{throw a.addIssue(n(u,e)),a})})}{let e=this;return g(function(...t){let a=e._def.args.safeParse(t,i);if(!a.success)throw new l.G([r(t,a.error)]);let s=Reflect.apply(o,this,a.data),u=e._def.returns.safeParse(s,i);if(!u.success)throw new l.G([n(s,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new es({...this._def,args:en.create(e).rest(Y.create())})}returns(e){return new es({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new es({args:e||en.create([]).rest(Y.create()),returns:t||Y.create(),typeName:s.ZodFunction,...x(r)})}}class el extends A{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}el.create=(e,t)=>new el({getter:e,typeName:s.ZodLazy,...x(t)});class eu extends A{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:l.eq.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ec(e,t){return new ed({values:e,typeName:s.ZodEnum,...x(t)})}eu.create=(e,t)=>new eu({value:e,typeName:s.ZodLiteral,...x(t)});class ed extends A{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return p(t,{expected:u.ZS.joinValues(r),received:t.parsedType,code:l.eq.invalid_type}),h}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return p(t,{received:t.data,code:l.eq.invalid_enum_value,options:r}),h}return g(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ed.create(e,{...this._def,...t})}exclude(e,t=this._def){return ed.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}ed.create=ec;class ep extends A{_parse(e){let t=u.ZS.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==u.Zp.string&&r.parsedType!==u.Zp.number){let e=u.ZS.objectValues(t);return p(r,{expected:u.ZS.joinValues(e),received:r.parsedType,code:l.eq.invalid_type}),h}if(this._cache||(this._cache=new Set(u.ZS.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=u.ZS.objectValues(t);return p(r,{received:r.data,code:l.eq.invalid_enum_value,options:e}),h}return g(e.data)}get enum(){return this._def.values}}ep.create=(e,t)=>new ep({values:e,typeName:s.ZodNativeEnum,...x(t)});class ef extends A{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==u.Zp.promise&&!1===t.common.async?(p(t,{code:l.eq.invalid_type,expected:u.Zp.promise,received:t.parsedType}),h):g((t.parsedType===u.Zp.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ef.create=(e,t)=>new ef({type:e,typeName:s.ZodPromise,...x(t)});class eh extends A{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===s.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{p(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return h;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n});{if("aborted"===t.value)return h;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?h:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?h:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>"valid"!==e.status?h:Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if("valid"!==e.status)return h;let o=n.transform(e.value,i);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}u.ZS.assertNever(n)}}eh.create=(e,t,r)=>new eh({schema:e,typeName:s.ZodEffects,effect:t,...x(r)}),eh.createWithPreprocess=(e,t,r)=>new eh({schema:t,effect:{type:"preprocess",transform:e},typeName:s.ZodEffects,...x(r)});class em extends A{_parse(e){return this._getType(e)===u.Zp.undefined?g(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}em.create=(e,t)=>new em({innerType:e,typeName:s.ZodOptional,...x(t)});class eg extends A{_parse(e){return this._getType(e)===u.Zp.null?g(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eg.create=(e,t)=>new eg({innerType:e,typeName:s.ZodNullable,...x(t)});class ey extends A{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===u.Zp.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ey.create=(e,t)=>new ey({innerType:e,typeName:s.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...x(t)});class ev extends A{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return y(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l.G(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new l.G(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:s.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...x(t)});class eb extends A{_parse(e){if(this._getType(e)!==u.Zp.nan){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.nan,received:t.parsedType}),h}return{status:"valid",value:e.data}}}eb.create=e=>new eb({typeName:s.ZodNaN,...x(e)}),Symbol("zod_brand");class ex extends A{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eA extends A{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eA({in:e,out:t,typeName:s.ZodPipeline})}}class ew extends A{_parse(e){let t=this._def.innerType._parse(e),r=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return y(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}ew.create=(e,t)=>new ew({innerType:e,typeName:s.ZodReadonly,...x(t)}),Q.lazycreate,(o=s||(s={})).ZodString="ZodString",o.ZodNumber="ZodNumber",o.ZodNaN="ZodNaN",o.ZodBigInt="ZodBigInt",o.ZodBoolean="ZodBoolean",o.ZodDate="ZodDate",o.ZodSymbol="ZodSymbol",o.ZodUndefined="ZodUndefined",o.ZodNull="ZodNull",o.ZodAny="ZodAny",o.ZodUnknown="ZodUnknown",o.ZodNever="ZodNever",o.ZodVoid="ZodVoid",o.ZodArray="ZodArray",o.ZodObject="ZodObject",o.ZodUnion="ZodUnion",o.ZodDiscriminatedUnion="ZodDiscriminatedUnion",o.ZodIntersection="ZodIntersection",o.ZodTuple="ZodTuple",o.ZodRecord="ZodRecord",o.ZodMap="ZodMap",o.ZodSet="ZodSet",o.ZodFunction="ZodFunction",o.ZodLazy="ZodLazy",o.ZodLiteral="ZodLiteral",o.ZodEnum="ZodEnum",o.ZodEffects="ZodEffects",o.ZodNativeEnum="ZodNativeEnum",o.ZodOptional="ZodOptional",o.ZodNullable="ZodNullable",o.ZodDefault="ZodDefault",o.ZodCatch="ZodCatch",o.ZodPromise="ZodPromise",o.ZodBranded="ZodBranded",o.ZodPipeline="ZodPipeline",o.ZodReadonly="ZodReadonly";let eS=L.create,e_=D.create;eb.create,F.create;let ek=W.create;Z.create,q.create,V.create,H.create;let eM=U.create;Y.create,K.create,X.create;let eC=G.create,e$=Q.create;Q.strictCreate;let eO=J.create,eE=et.create;er.create,en.create;let eN=ei.create;eo.create,ea.create,es.create,el.create;let eR=eu.create,eT=ed.create;ep.create,ef.create,eh.create,em.create,eg.create,eh.createWithPreprocess,eA.create}}]);
147
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}let q=e=>{try{return e()}catch(e){}};function V(e,t,r,n){if(!t)return;t=!0===t?{}:t;let i="dark"===n?"dark":"light";if(!r){e[n]=function(e){let{palette:t={mode:"light"},opacity:r,overlays:n,...i}=e,o=b(t);return{palette:o,opacity:{...B(o.mode),...r},overlays:n||L(o.mode),...i}}({...t,palette:{mode:i,...t?.palette}});return}let{palette:o,...a}=P({...r,palette:{mode:i,...t?.palette}});return e[n]={...t,palette:o,opacity:{...B(i),...t?.opacity},overlays:t?.overlays||L(i)},a}function H(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...!0!==r&&r,palette:b({...!0===r?{}:r.palette,mode:t})})}function U(e={},...t){let{palette:r,cssVariables:a=!1,colorSchemes:s=!r?{light:!0}:void 0,defaultColorScheme:l=r?.mode,...u}=e,c=l||"light",d=s?.[c],p={...s,...r?{[c]:{..."boolean"!=typeof d&&d,palette:r}}:void 0};if(!1===a){if(!("colorSchemes"in e))return P(e,...t);let n=r;"palette"in e||!p[c]||(!0!==p[c]?n=p[c].palette:"dark"===c&&(n={mode:"dark"}));let i=P({...e,palette:n},...t);return i.defaultColorScheme=c,i.colorSchemes=p,"light"===i.palette.mode&&(i.colorSchemes.light={...!0!==p.light&&p.light,palette:i.palette},H(i,"dark",p.dark)),"dark"===i.palette.mode&&(i.colorSchemes.dark={...!0!==p.dark&&p.dark,palette:i.palette},H(i,"light",p.light)),i}return r||"light"in p||"light"!==c||(p.light=!0),function(e={},...t){var r,a;let s,l,{colorSchemes:u={light:!0},defaultColorScheme:c,disableCssColorScheme:d=!1,cssVarPrefix:p="mui",shouldSkipGeneratingVar:f=D,colorSchemeSelector:h=u.light&&u.dark?"media":void 0,rootSelector:m=":root",...g}=e,y=Object.keys(u)[0],v=c||(u.light&&"light"!==y?"light":y),b=((e="mui")=>(function(e=""){return(t,...r)=>`var(--${e?`${e}-`:""}${t}${function t(...r){if(!r.length)return"";let n=r[0];return"string"!=typeof n||n.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${n}`:`, var(--${e?`${e}-`:""}${n}${t(...r.slice(1))})`}(...r)})`})(e))(p),{[v]:w,light:S,dark:C,...$}=u,O={...$},E=w;if(("dark"!==v||"dark"in u)&&("light"!==v||"light"in u)||(E=!0),!E)throw Error((0,n.A)(21,v));let N=V(O,E,g,v);S&&!O.light&&V(O,S,void 0,"light"),C&&!O.dark&&V(O,C,void 0,"dark");let R={defaultColorScheme:v,...N,cssVarPrefix:p,colorSchemeSelector:h,rootSelector:m,getCssVar:b,colorSchemes:O,font:{...(r=N.typography,s={},Object.entries(r).forEach(e=>{let[t,r]=e;"object"==typeof r&&(s[t]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),s),...N.font},spacing:"number"==typeof(a=g.spacing)?`${a}px`:"string"==typeof a||"function"==typeof a||Array.isArray(a)?a:"8px"};Object.keys(R.colorSchemes).forEach(e=>{let t=R.colorSchemes[e].palette,r=e=>{let r=e.split("-"),n=r[1],i=r[2];return b(e,t[n][i])};if("light"===t.mode&&(F(t.common,"background","#fff"),F(t.common,"onBackground","#000")),"dark"===t.mode&&(F(t.common,"background","#000"),F(t.common,"onBackground","#fff")),["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{t[e]||(t[e]={})}),"light"===t.mode){F(t.Alert,"errorColor",(0,o.Nd)(t.error.light,.6)),F(t.Alert,"infoColor",(0,o.Nd)(t.info.light,.6)),F(t.Alert,"successColor",(0,o.Nd)(t.success.light,.6)),F(t.Alert,"warningColor",(0,o.Nd)(t.warning.light,.6)),F(t.Alert,"errorFilledBg",r("palette-error-main")),F(t.Alert,"infoFilledBg",r("palette-info-main")),F(t.Alert,"successFilledBg",r("palette-success-main")),F(t.Alert,"warningFilledBg",r("palette-warning-main")),F(t.Alert,"errorFilledColor",q(()=>t.getContrastText(t.error.main))),F(t.Alert,"infoFilledColor",q(()=>t.getContrastText(t.info.main))),F(t.Alert,"successFilledColor",q(()=>t.getContrastText(t.success.main))),F(t.Alert,"warningFilledColor",q(()=>t.getContrastText(t.warning.main))),F(t.Alert,"errorStandardBg",(0,o.j4)(t.error.light,.9)),F(t.Alert,"infoStandardBg",(0,o.j4)(t.info.light,.9)),F(t.Alert,"successStandardBg",(0,o.j4)(t.success.light,.9)),F(t.Alert,"warningStandardBg",(0,o.j4)(t.warning.light,.9)),F(t.Alert,"errorIconColor",r("palette-error-main")),F(t.Alert,"infoIconColor",r("palette-info-main")),F(t.Alert,"successIconColor",r("palette-success-main")),F(t.Alert,"warningIconColor",r("palette-warning-main")),F(t.AppBar,"defaultBg",r("palette-grey-100")),F(t.Avatar,"defaultBg",r("palette-grey-400")),F(t.Button,"inheritContainedBg",r("palette-grey-300")),F(t.Button,"inheritContainedHoverBg",r("palette-grey-A100")),F(t.Chip,"defaultBorder",r("palette-grey-400")),F(t.Chip,"defaultAvatarColor",r("palette-grey-700")),F(t.Chip,"defaultIconColor",r("palette-grey-700")),F(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),F(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),F(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),F(t.LinearProgress,"primaryBg",(0,o.j4)(t.primary.main,.62)),F(t.LinearProgress,"secondaryBg",(0,o.j4)(t.secondary.main,.62)),F(t.LinearProgress,"errorBg",(0,o.j4)(t.error.main,.62)),F(t.LinearProgress,"infoBg",(0,o.j4)(t.info.main,.62)),F(t.LinearProgress,"successBg",(0,o.j4)(t.success.main,.62)),F(t.LinearProgress,"warningBg",(0,o.j4)(t.warning.main,.62)),F(t.Skeleton,"bg",`rgba(${r("palette-text-primaryChannel")} / 0.11)`),F(t.Slider,"primaryTrack",(0,o.j4)(t.primary.main,.62)),F(t.Slider,"secondaryTrack",(0,o.j4)(t.secondary.main,.62)),F(t.Slider,"errorTrack",(0,o.j4)(t.error.main,.62)),F(t.Slider,"infoTrack",(0,o.j4)(t.info.main,.62)),F(t.Slider,"successTrack",(0,o.j4)(t.success.main,.62)),F(t.Slider,"warningTrack",(0,o.j4)(t.warning.main,.62));let e=(0,o.Y9)(t.background.default,.8);F(t.SnackbarContent,"bg",e),F(t.SnackbarContent,"color",q(()=>t.getContrastText(e))),F(t.SpeedDialAction,"fabHoverBg",(0,o.Y9)(t.background.paper,.15)),F(t.StepConnector,"border",r("palette-grey-400")),F(t.StepContent,"border",r("palette-grey-400")),F(t.Switch,"defaultColor",r("palette-common-white")),F(t.Switch,"defaultDisabledColor",r("palette-grey-100")),F(t.Switch,"primaryDisabledColor",(0,o.j4)(t.primary.main,.62)),F(t.Switch,"secondaryDisabledColor",(0,o.j4)(t.secondary.main,.62)),F(t.Switch,"errorDisabledColor",(0,o.j4)(t.error.main,.62)),F(t.Switch,"infoDisabledColor",(0,o.j4)(t.info.main,.62)),F(t.Switch,"successDisabledColor",(0,o.j4)(t.success.main,.62)),F(t.Switch,"warningDisabledColor",(0,o.j4)(t.warning.main,.62)),F(t.TableCell,"border",(0,o.j4)((0,o.Cg)(t.divider,1),.88)),F(t.Tooltip,"bg",(0,o.Cg)(t.grey[700],.92))}if("dark"===t.mode){F(t.Alert,"errorColor",(0,o.j4)(t.error.light,.6)),F(t.Alert,"infoColor",(0,o.j4)(t.info.light,.6)),F(t.Alert,"successColor",(0,o.j4)(t.success.light,.6)),F(t.Alert,"warningColor",(0,o.j4)(t.warning.light,.6)),F(t.Alert,"errorFilledBg",r("palette-error-dark")),F(t.Alert,"infoFilledBg",r("palette-info-dark")),F(t.Alert,"successFilledBg",r("palette-success-dark")),F(t.Alert,"warningFilledBg",r("palette-warning-dark")),F(t.Alert,"errorFilledColor",q(()=>t.getContrastText(t.error.dark))),F(t.Alert,"infoFilledColor",q(()=>t.getContrastText(t.info.dark))),F(t.Alert,"successFilledColor",q(()=>t.getContrastText(t.success.dark))),F(t.Alert,"warningFilledColor",q(()=>t.getContrastText(t.warning.dark))),F(t.Alert,"errorStandardBg",(0,o.Nd)(t.error.light,.9)),F(t.Alert,"infoStandardBg",(0,o.Nd)(t.info.light,.9)),F(t.Alert,"successStandardBg",(0,o.Nd)(t.success.light,.9)),F(t.Alert,"warningStandardBg",(0,o.Nd)(t.warning.light,.9)),F(t.Alert,"errorIconColor",r("palette-error-main")),F(t.Alert,"infoIconColor",r("palette-info-main")),F(t.Alert,"successIconColor",r("palette-success-main")),F(t.Alert,"warningIconColor",r("palette-warning-main")),F(t.AppBar,"defaultBg",r("palette-grey-900")),F(t.AppBar,"darkBg",r("palette-background-paper")),F(t.AppBar,"darkColor",r("palette-text-primary")),F(t.Avatar,"defaultBg",r("palette-grey-600")),F(t.Button,"inheritContainedBg",r("palette-grey-800")),F(t.Button,"inheritContainedHoverBg",r("palette-grey-700")),F(t.Chip,"defaultBorder",r("palette-grey-700")),F(t.Chip,"defaultAvatarColor",r("palette-grey-300")),F(t.Chip,"defaultIconColor",r("palette-grey-300")),F(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),F(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),F(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),F(t.LinearProgress,"primaryBg",(0,o.Nd)(t.primary.main,.5)),F(t.LinearProgress,"secondaryBg",(0,o.Nd)(t.secondary.main,.5)),F(t.LinearProgress,"errorBg",(0,o.Nd)(t.error.main,.5)),F(t.LinearProgress,"infoBg",(0,o.Nd)(t.info.main,.5)),F(t.LinearProgress,"successBg",(0,o.Nd)(t.success.main,.5)),F(t.LinearProgress,"warningBg",(0,o.Nd)(t.warning.main,.5)),F(t.Skeleton,"bg",`rgba(${r("palette-text-primaryChannel")} / 0.13)`),F(t.Slider,"primaryTrack",(0,o.Nd)(t.primary.main,.5)),F(t.Slider,"secondaryTrack",(0,o.Nd)(t.secondary.main,.5)),F(t.Slider,"errorTrack",(0,o.Nd)(t.error.main,.5)),F(t.Slider,"infoTrack",(0,o.Nd)(t.info.main,.5)),F(t.Slider,"successTrack",(0,o.Nd)(t.success.main,.5)),F(t.Slider,"warningTrack",(0,o.Nd)(t.warning.main,.5));let e=(0,o.Y9)(t.background.default,.98);F(t.SnackbarContent,"bg",e),F(t.SnackbarContent,"color",q(()=>t.getContrastText(e))),F(t.SpeedDialAction,"fabHoverBg",(0,o.Y9)(t.background.paper,.15)),F(t.StepConnector,"border",r("palette-grey-600")),F(t.StepContent,"border",r("palette-grey-600")),F(t.Switch,"defaultColor",r("palette-grey-300")),F(t.Switch,"defaultDisabledColor",r("palette-grey-600")),F(t.Switch,"primaryDisabledColor",(0,o.Nd)(t.primary.main,.55)),F(t.Switch,"secondaryDisabledColor",(0,o.Nd)(t.secondary.main,.55)),F(t.Switch,"errorDisabledColor",(0,o.Nd)(t.error.main,.55)),F(t.Switch,"infoDisabledColor",(0,o.Nd)(t.info.main,.55)),F(t.Switch,"successDisabledColor",(0,o.Nd)(t.success.main,.55)),F(t.Switch,"warningDisabledColor",(0,o.Nd)(t.warning.main,.55)),F(t.TableCell,"border",(0,o.Nd)((0,o.Cg)(t.divider,1),.68)),F(t.Tooltip,"bg",(0,o.Cg)(t.grey[700],.92))}Z(t.background,"default"),Z(t.background,"paper"),Z(t.common,"background"),Z(t.common,"onBackground"),Z(t,"divider"),Object.keys(t).forEach(e=>{let r=t[e];"tonalOffset"!==e&&r&&"object"==typeof r&&(r.main&&F(t[e],"mainChannel",(0,o.Me)(W(r.main))),r.light&&F(t[e],"lightChannel",(0,o.Me)(W(r.light))),r.dark&&F(t[e],"darkChannel",(0,o.Me)(W(r.dark))),r.contrastText&&F(t[e],"contrastTextChannel",(0,o.Me)(W(r.contrastText))),"text"===e&&(Z(t[e],"primary"),Z(t[e],"secondary")),"action"===e&&(r.active&&Z(t[e],"active"),r.selected&&Z(t[e],"selected")))})});let T={prefix:p,disableCssColorScheme:d,shouldSkipGeneratingVar:f,getSelector:(l=R=t.reduce((e,t)=>(0,i.A)(e,t),R),(e,t)=>{let r=l.rootSelector||":root",n=l.colorSchemeSelector,i=n;if("class"===n&&(i=".%s"),"data"===n&&(i="[data-%s]"),n?.startsWith("data-")&&!n.includes("%s")&&(i=`[${n}="%s"]`),l.defaultColorScheme===e){if("dark"===e){let n,o={};return((n=l.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${n?`${n}-`:""}overlays-${t}`),`--${n?`${n}-`:""}palette-AppBar-darkBg`,`--${n?`${n}-`:""}palette-AppBar-darkColor`]).forEach(e=>{o[e]=t[e],delete t[e]}),"media"===i)?{[r]:t,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",e)]:o,[`${r}, ${i.replace("%s",e)}`]:t}:{[r]:{...t,...o}}}if(i&&"media"!==i)return`${r}, ${i.replace("%s",String(e))}`}else if(e){if("media"===i)return{[`@media (prefers-color-scheme: ${String(e)})`]:{[r]:t}};if(i)return i.replace("%s",String(e))}return r})},{vars:P,generateThemeVars:j,generateStyleSheets:z}=_(R,T);return R.vars=P,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([e,t])=>{R[e]=t}),R.generateThemeVars=j,R.generateStyleSheets=z,R.generateSpacing=function(){return(0,x.A)(g.spacing,(0,A.LX)(this))},R.getColorSchemeSelector=function(e){return"media"===h?`@media (prefers-color-scheme: ${e})`:h?h.startsWith("data-")&&!h.includes("%s")?`[${h}="${e}"] &`:"class"===h?`.${e} &`:"data"===h?`[data-${e}] &`:`${h.replace("%s",e)} &`:"&"},R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=f,R.unstable_sxConfig={...k.A,...g?.unstable_sxConfig},R.unstable_sx=function(e){return(0,M.A)({sx:e,theme:this})},R.toRuntimeSource=I,R}({...u,colorSchemes:p,defaultColorScheme:c,..."boolean"!=typeof a&&a},...t)}},48927(e,t,r){"use strict";r.d(t,{Ay:()=>s,p0:()=>i});let n={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return`${Math.round(e)}ms`}function a(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function s(e){let t={...n,...e.easing},r={...i,...e.duration};return{getAutoHeightDuration:a,create:(e=["all"],n={})=>{let{duration:i=r.standard,easing:a=t.easeInOut,delay:s=0,...l}=n;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof i?i:o(i)} ${a} ${"string"==typeof s?s:o(s)}`).join(",")},...e,easing:t,duration:r}}},87169(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(9408).A)()},9307(e,t,r){"use strict";function n(e){return Math.round(10*(e<1?5.11916*e**2:4.5*Math.log(e+1)+2))/1e3}r.d(t,{A:()=>n})},93724(e,t,r){"use strict";r.d(t,{A:()=>n});let n="$$material"},83926(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(14738);let i=e=>(0,n.A)(e)&&"classes"!==e},14738(e,t,r){"use strict";r.d(t,{A:()=>n});let n=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},77308(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(57867),i=r(87169),o=r(93724),a=r(83926);let s=(0,n.Ay)({themeId:o.A,defaultTheme:i.A,rootShouldForwardProp:a.A})},56599(e,t,r){"use strict";r.d(t,{A:()=>a}),r(70451);var n=r(26041),i=r(87169),o=r(93724);function a(){let e=(0,n.A)(i.A);return e[o.A]||e}},32494(e,t,r){"use strict";r.d(t,{c:()=>i,q:()=>n});let n=e=>e.scrollTop;function i(e,t){let{timeout:r,easing:n,style:i={}}=e;return{duration:i.transitionDuration??("number"==typeof r?r:r[t.mode]||0),easing:i.transitionTimingFunction??("object"==typeof n?n[t.mode]:n),delay:i.transitionDelay}}},81227(e,t,r){"use strict";r.d(t,{A:()=>h,Z:()=>u});var n=r(70451),i=r(54553),o=r(89369),a=r(83183),s=r(71849);function l(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function u(e={}){let{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(e,{inputValue:s,getOptionLabel:u})=>{let c=a?s.trim():s;r&&(c=c.toLowerCase()),t&&(c=l(c));let d=c?e.filter(e=>{let n=(o||u)(e);return r&&(n=n.toLowerCase()),t&&(n=l(n)),"start"===i?n.startsWith(c):n.includes(c)}):e;return"number"==typeof n?d.slice(0,n):d}}let c=u(),d=e=>null!==e.current&&e.current.parentElement?.contains(document.activeElement),p=[];function f(e,t,r){if(t||null==e)return"";let n=r(e);return"string"==typeof n?n:""}let h=function(e){var t;let r,{unstable_isActiveElementInListbox:l=d,unstable_classNamePrefix:u="Mui",autoComplete:h=!1,autoHighlight:m=!1,autoSelect:g=!1,blurOnSelect:y=!1,clearOnBlur:v=!e.freeSolo,clearOnEscape:b=!1,componentName:x="useAutocomplete",defaultValue:A=e.multiple?p:null,disableClearable:w=!1,disableCloseOnSelect:S=!1,disabled:_,disabledItemsFocusable:k=!1,disableListWrap:M=!1,filterOptions:C=c,filterSelectedOptions:$=!1,freeSolo:O=!1,getOptionDisabled:E,getOptionKey:N,getOptionLabel:R=e=>e.label??e,groupBy:T,handleHomeEndKeys:I=!e.freeSolo,id:P,includeInputInList:j=!1,inputValue:z,isOptionEqualToValue:B=(e,t)=>e===t,multiple:L=!1,onChange:D,onClose:F,onHighlightChange:W,onInputChange:Z,onOpen:q,open:V,openOnFocus:H=!1,options:U,readOnly:Y=!1,selectOnFocus:K=!e.freeSolo,value:X}=e,G=(0,i.A)(P),Q=R;Q=e=>{let t=R(e);return"string"!=typeof t?String(t):t};let J=n.useRef(!1),ee=n.useRef(!0),et=n.useRef(null),er=n.useRef(null),[en,ei]=n.useState(null),[eo,ea]=n.useState(-1),es=m?0:-1,el=n.useRef(es),eu=n.useRef(f(A??X,L,Q)).current,[ec,ed]=(0,o.A)({controlled:X,default:A,name:x}),[ep,ef]=(0,o.A)({controlled:z,default:eu,name:x,state:"inputValue"}),[eh,em]=n.useState(!1),eg=n.useCallback((e,t,r)=>{if(!(L?ec.length<t.length:null!==t)&&!v)return;let n=f(t,L,Q);ep!==n&&(ef(n),Z&&Z(e,n,r))},[Q,ep,L,Z,ef,v,ec]),[ey,ev]=(0,o.A)({controlled:V,default:!1,name:x,state:"open"}),[eb,ex]=n.useState(!0),eA=!L&&null!=ec&&ep===Q(ec),ew=ey&&!Y,eS=ew?C(U.filter(e=>!($&&(L?ec:[ec]).some(t=>null!==t&&B(e,t)))),{inputValue:eA&&eb?"":ep,getOptionLabel:Q}):[],e_=(t={filteredOptions:eS,value:ec,inputValue:ep},r=n.useRef({}),n.useEffect(()=>{r.current=t}),r.current);n.useEffect(()=>{let e=ec!==e_.value;eh&&!e||(!O||e)&&eg(null,ec,"reset")},[ec,eg,eh,e_.value,O]);let ek=ey&&eS.length>0&&!Y,eM=(0,a.A)(e=>{-1===e?et.current.focus():en.querySelector(`[data-tag-index="${e}"]`).focus()});n.useEffect(()=>{L&&eo>ec.length-1&&(ea(-1),eM(-1))},[ec,L,eo,eM]);let eC=(0,a.A)(({event:e,index:t,reason:r})=>{if(el.current=t,-1===t?et.current.removeAttribute("aria-activedescendant"):et.current.setAttribute("aria-activedescendant",`${G}-option-${t}`),W&&["mouse","keyboard","touch"].includes(r)&&W(e,-1===t?null:eS[t],r),!er.current)return;let n=er.current.querySelector(`[role="option"].${u}-focused`);n&&(n.classList.remove(`${u}-focused`),n.classList.remove(`${u}-focusVisible`));let i=er.current;if("listbox"!==er.current.getAttribute("role")&&(i=er.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t){i.scrollTop=0;return}let o=er.current.querySelector(`[data-option-index="${t}"]`);if(o&&(o.classList.add(`${u}-focused`),"keyboard"===r&&o.classList.add(`${u}-focusVisible`),i.scrollHeight>i.clientHeight&&"mouse"!==r&&"touch"!==r)){let e=i.clientHeight+i.scrollTop,t=o.offsetTop+o.offsetHeight;t>e?i.scrollTop=t-i.clientHeight:o.offsetTop-o.offsetHeight*(1.3*!!T)<i.scrollTop&&(i.scrollTop=o.offsetTop-o.offsetHeight*(1.3*!!T))}}),e$=(0,a.A)(({event:e,diff:t,direction:r="next",reason:n})=>{if(!ew)return;let i=function(e,t){if(!er.current||e<0||e>=eS.length)return -1;let r=e;for(;;){let n=er.current.querySelector(`[data-option-index="${r}"]`),i=!k&&(!n||n.disabled||"true"===n.getAttribute("aria-disabled"));if(n&&n.hasAttribute("tabindex")&&!i)return r;if((r="next"===t?(r+1)%eS.length:(r-1+eS.length)%eS.length)===e)return -1}}((()=>{let e=eS.length-1;if("reset"===t)return es;if("start"===t)return 0;if("end"===t)return e;let r=el.current+t;return r<0?-1===r&&j?-1:M&&-1!==el.current||Math.abs(t)>1?0:e:r>e?r===e+1&&j?-1:M||Math.abs(t)>1?e:0:r})(),r);if(eC({index:i,reason:n,event:e}),h&&"reset"!==t)if(-1===i)et.current.value=ep;else{let e=Q(eS[i]);et.current.value=e,0===e.toLowerCase().indexOf(ep.toLowerCase())&&ep.length>0&&et.current.setSelectionRange(ep.length,e.length)}}),eO=n.useCallback(()=>{if(!ew)return;let e=(()=>{var e;if(-1!==el.current&&e_.filteredOptions&&e_.filteredOptions.length!==eS.length&&e_.inputValue===ep&&(L?ec.length===e_.value.length&&e_.value.every((e,t)=>Q(ec[t])===Q(e)):(e=e_.value,(e?Q(e):"")===(ec?Q(ec):"")))){let e=e_.filteredOptions[el.current];if(e)return eS.findIndex(t=>Q(t)===Q(e))}return -1})();if(-1!==e){el.current=e;return}let t=L?ec[0]:ec;if(0===eS.length||null==t)return void e$({diff:"reset"});if(er.current){if(null!=t){let e=eS[el.current];if(L&&e&&-1!==ec.findIndex(t=>B(e,t)))return;let r=eS.findIndex(e=>B(e,t));-1===r?e$({diff:"reset"}):eC({index:r});return}if(el.current>=eS.length-1)return void eC({index:eS.length-1});eC({index:el.current})}},[eS.length,!L&&ec,$,e$,eC,ew,ep,L]),eE=(0,a.A)(e=>{(0,s.A)(er,e),e&&eO()});n.useEffect(()=>{eO()},[eO]);let eN=e=>{!ey&&(ev(!0),ex(!0),q&&q(e))},eR=(e,t)=>{ey&&(ev(!1),F&&F(e,t))},eT=(e,t,r,n)=>{if(L){if(ec.length===t.length&&ec.every((e,r)=>e===t[r]))return}else if(ec===t)return;D&&D(e,t,r,n),ed(t)},eI=n.useRef(!1),eP=(e,t,r="selectOption",n="options")=>{let i=r,o=t;if(L){let e=(o=Array.isArray(ec)?ec.slice():[]).findIndex(e=>B(t,e));-1===e?o.push(t):"freeSolo"!==n&&(o.splice(e,1),i="removeOption")}eg(e,o,i),eT(e,o,i,{option:t}),S||e&&(e.ctrlKey||e.metaKey)||eR(e,i),(!0===y||"touch"===y&&eI.current||"mouse"===y&&!eI.current)&&et.current.blur()},ej=(e,t)=>{if(!L)return;""===ep&&eR(e,"toggleInput");let r=eo;-1===eo?""===ep&&"previous"===t&&(r=ec.length-1):((r+="next"===t?1:-1)<0&&(r=0),r===ec.length&&(r=-1)),ea(r=function(e,t){if(-1===e)return -1;let r=e;for(;;){if("next"===t&&r===ec.length||"previous"===t&&-1===r)return -1;let e=en.querySelector(`[data-tag-index="${r}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t)),eM(r)},ez=e=>{J.current=!0,ef(""),Z&&Z(e,"","clear"),eT(e,L?[]:null,"clear")},eB=e=>{em(!0),H&&!J.current&&eN(e)},eL=e=>{l(er)?et.current.focus():(em(!1),ee.current=!0,J.current=!1,g&&-1!==el.current&&ew?eP(e,eS[el.current],"blur"):g&&O&&""!==ep?eP(e,ep,"blur","freeSolo"):v&&eg(e,ec,"blur"),eR(e,"blur"))},eD=e=>{let t=e.target.value;ep!==t&&(ef(t),ex(!1),Z&&Z(e,t,"input")),""===t?w||L||eT(e,null,"clear"):eN(e)},eF=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));el.current!==t&&eC({event:e,index:t,reason:"mouse"})},eW=e=>{eC({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),eI.current=!0},eZ=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));eP(e,eS[t],"selectOption"),eI.current=!1},eq=e=>{ey?eR(e,"toggleInput"):eN(e)},eV=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==G&&e.preventDefault()},eH=e=>{e.currentTarget.contains(e.target)&&(et.current.focus(),K&&ee.current&&et.current.selectionEnd-et.current.selectionStart==0&&et.current.select(),ee.current=!1)},eU=e=>{_||""!==ep&&ey||eq(e)},eY=O&&ep.length>0;eY=eY||(L?ec.length>0:null!==ec);let eK=eS;return T&&(eK=eS.reduce((e,t,r)=>{let n=T(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:r,index:r,group:n,options:[t]}),e},[])),_&&eh&&eL(),{getRootProps:(e={})=>({...e,onKeyDown:t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1===eo||["ArrowLeft","ArrowRight"].includes(t.key)||(ea(-1),eM(-1)),229!==t.which))switch(t.key){case"Home":ew&&I&&(t.preventDefault(),e$({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":ew&&I&&(t.preventDefault(),e$({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),e$({diff:-5,direction:"previous",reason:"keyboard",event:t}),eN(t);break;case"PageDown":t.preventDefault(),e$({diff:5,direction:"next",reason:"keyboard",event:t}),eN(t);break;case"ArrowDown":t.preventDefault(),e$({diff:1,direction:"next",reason:"keyboard",event:t}),eN(t);break;case"ArrowUp":t.preventDefault(),e$({diff:-1,direction:"previous",reason:"keyboard",event:t}),eN(t);break;case"ArrowLeft":ej(t,"previous");break;case"ArrowRight":ej(t,"next");break;case"Enter":if(-1!==el.current&&ew){let e=eS[el.current],r=!!E&&E(e);if(t.preventDefault(),r)return;eP(t,e,"selectOption"),h&&et.current.setSelectionRange(et.current.value.length,et.current.value.length)}else O&&""!==ep&&!1===eA&&(L&&t.preventDefault(),eP(t,ep,"createOption","freeSolo"));break;case"Escape":ew?(t.preventDefault(),t.stopPropagation(),eR(t,"escape")):b&&(""!==ep||L&&ec.length>0)&&(t.preventDefault(),t.stopPropagation(),ez(t));break;case"Backspace":if(L&&!Y&&""===ep&&ec.length>0){let e=-1===eo?ec.length-1:eo,r=ec.slice();r.splice(e,1),eT(t,r,"removeOption",{option:ec[e]})}break;case"Delete":if(L&&!Y&&""===ep&&ec.length>0&&-1!==eo){let e=ec.slice();e.splice(eo,1),eT(t,e,"removeOption",{option:ec[eo]})}}},onMouseDown:eV,onClick:eH}),getInputLabelProps:()=>({id:`${G}-label`,htmlFor:G}),getInputProps:()=>({id:G,value:ep,onBlur:eL,onFocus:eB,onChange:eD,onMouseDown:eU,"aria-activedescendant":ew?"":null,"aria-autocomplete":h?"both":"list","aria-controls":ek?`${G}-listbox`:void 0,"aria-expanded":ek,autoComplete:"off",ref:et,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:_}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ez}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:eq}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,...!Y&&{onDelete:t=>{let r=ec.slice();r.splice(e,1),eT(t,r,"removeOption",{option:ec[e]})}}}),getListboxProps:()=>({role:"listbox",id:`${G}-listbox`,"aria-labelledby":`${G}-label`,ref:eE,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{let r=(L?ec:[ec]).some(e=>null!=e&&B(t,e)),n=!!E&&E(t);return{key:N?.(t)??Q(t),tabIndex:-1,role:"option",id:`${G}-option-${e}`,onMouseMove:eF,onClick:eZ,onTouchStart:eW,"data-option-index":e,"aria-disabled":n,"aria-selected":r}},id:G,inputValue:ep,value:ec,dirty:eY,expanded:ew&&en,popupOpen:ew,focused:eh||-1!==eo,anchorEl:en,setAnchorEl:ei,focusedTag:eo,groupedOptions:eK}}},8072(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(70451),i=r(31789),o=r(70320),a=r(45827);let s={...n}.useSyncExternalStore;function l(e={}){let{themeId:t}=e;return function(e,r={}){let l=(0,a.A)();l&&t&&(l=l[t]||l);let u="u">typeof window&&void 0!==window.matchMedia,{defaultMatches:c=!1,matchMedia:d=u?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:f=!1}=(0,o.A)({name:"MuiUseMediaQuery",props:r,theme:l}),h="function"==typeof e?e(l):e;return(h=h.replace(/^@media( ?)/m,"")).includes("print")&&console.warn("MUI: You have provided a `print` query to the `useMediaQuery` hook.\nUsing the print media query to modify print styles can lead to unexpected results.\nConsider using the `displayPrint` field in the `sx` prop instead.\nMore information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."),(void 0!==s?function(e,t,r,i,o){let a=n.useCallback(()=>t,[t]),l=n.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(null!==i){let{matches:t}=i(e);return()=>t}return a},[a,e,i,o,r]),[u,c]=n.useMemo(()=>{if(null===r)return[a,()=>()=>{}];let t=r(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[a,r,e]);return s(c,u,l)}:function(e,t,r,o,a){let[s,l]=n.useState(()=>a&&r?r(e).matches:o?o(e).matches:t);return(0,i.A)(()=>{if(!r)return;let t=r(e),n=()=>{l(t.matches)};return n(),t.addEventListener("change",n),()=>{t.removeEventListener("change",n)}},[e,r]),s})(h,c,d,p,f)}}l();let u=l({themeId:r(93724).A})},24726(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(85235).A},70498(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(37605).A},26952(e,t,r){"use strict";function n(e=[]){return([,t])=>t&&function(e,t=[]){if("string"!=typeof e.main)return!1;for(let r of t)if(!e.hasOwnProperty(r)||"string"!=typeof e[r])return!1;return!0}(t,e)}r.d(t,{A:()=>n})},22402(e,t,r){"use strict";r.d(t,{A:()=>g});var n=r(70451),i=r(11750),o=r(81023),a=r(24726),s=r(77308),l=r(23434),u=r(72052),c=r(29009),d=r(46733);function p(e){return(0,d.Ay)("MuiSvgIcon",e)}(0,c.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=r(62540);let h=(0,s.A)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${(0,a.A)(r.color)}`],t[`fontSize${(0,a.A)(r.fontSize)}`]]}})((0,l.A)(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),m=n.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiSvgIcon"}),{children:s,className:l,color:c="inherit",component:d="svg",fontSize:m="medium",htmlColor:g,inheritViewBox:y=!1,titleAccess:v,viewBox:b="0 0 24 24",...x}=r,A=n.isValidElement(s)&&"svg"===s.type,w={...r,color:c,component:d,fontSize:m,instanceFontSize:e.fontSize,inheritViewBox:y,viewBox:b,hasSvgAsChild:A},S={};y||(S.viewBox=b);let _=(e=>{let{color:t,fontSize:r,classes:n}=e,i={root:["root","inherit"!==t&&`color${(0,a.A)(t)}`,`fontSize${(0,a.A)(r)}`]};return(0,o.A)(i,p,n)})(w);return(0,f.jsxs)(h,{as:d,className:(0,i.A)(_.root,l),focusable:"false",color:g,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:t,...S,...x,...A&&s.props,ownerState:w,children:[A?s.props.children:s,v?(0,f.jsx)("title",{children:v}):null]})});function g(e,t){function r(r,n){return(0,f.jsx)(m,{"data-testid":`${t}Icon`,ref:n,...r,children:e})}return r.muiName=m.muiName,n.memo(n.forwardRef(r))}m.muiName="SvgIcon"},55403(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(61493).A},91621(e,t,r){"use strict";r.r(t),r.d(t,{capitalize:()=>i.A,requirePropFactory:()=>f,unstable_useId:()=>g.A,debounce:()=>s.A,setRef:()=>h,unstable_useEnhancedEffect:()=>m.A,useEventCallback:()=>b.A,unsupportedProp:()=>y,ownerWindow:()=>p.A,deprecatedPropType:()=>l,mergeSlotProps:()=>A.A,isMuiElement:()=>u.A,useControlled:()=>v.A,ownerDocument:()=>d.A,createChainedFunction:()=>o.A,unstable_memoTheme:()=>c.A,unstable_ClassNameGenerator:()=>w,useForkRef:()=>x.A,createSvgIcon:()=>a.A});var n=r(71027),i=r(24726),o=r(70498),a=r(22402),s=r(55403);let l=function(e,t){return()=>null};var u=r(6835),c=r(23434),d=r(1092),p=r(63025);let f=function(e,t){return()=>null},h=r(71849).A;var m=r(54382),g=r(63392);let y=function(e,t,r,n,i){return null};var v=r(2203),b=r(32398),x=r(29424),A=r(64606);let w={configure:e=>{n.A.configure(e)}}},79223(e,t,r){"use strict";r.d(t,{A:()=>n});let n=function(e){return"string"==typeof e}},6835(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(94237).A},23434(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(46826);let i={theme:void 0},o=function(e){let t,r;return function(o){let a=t;return(void 0===a||o.theme!==r)&&(i.theme=o.theme,t=a=(0,n.A)(e(i)),r=o.theme),a}}},64606(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(11750);function i(e,t){if(!e)return t;if("function"==typeof e||"function"==typeof t)return r=>{let i="function"==typeof t?t(r):t,o="function"==typeof e?e({...r,...i}):e,a=(0,n.A)(r?.className,i?.className,o?.className);return{...i,...o,...!!a&&{className:a},...i?.style&&o?.style&&{style:{...i.style,...o.style}},...i?.sx&&o?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(o.sx)?o.sx:[o.sx]]}}};let r=(0,n.A)(t?.className,e?.className);return{...t,...e,...!!r&&{className:r},...t?.style&&e?.style&&{style:{...t.style,...e.style}},...t?.sx&&e?.sx&&{sx:[...Array.isArray(t.sx)?t.sx:[t.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}},1092(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(10713).A},63025(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(72097).A},2203(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(89369).A},54382(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31789).A},32398(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(83183).A},29424(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(95591).A},63392(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(54553).A},73397(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(95591),i=r(76780),o=r(1689),a=r(9414);function s(e,t){let{className:r,elementType:s,ownerState:l,externalForwardedProps:u,internalForwardedProps:c,shouldForwardComponentProp:d=!1,...p}=t,{component:f,slots:h={[e]:void 0},slotProps:m={[e]:void 0},...g}=u,y=h[e]||s,v=(0,o.A)(m[e],l),{props:{component:b,...x},internalRef:A}=(0,a.A)({className:r,...p,externalForwardedProps:"root"===e?g:void 0,externalSlotProps:v}),w=(0,n.A)(A,v?.ref,t.ref),S="root"===e?b||f:b,_=(0,i.A)(y,{..."root"===e&&!f&&!h[e]&&c,..."root"!==e&&!h[e]&&c,...x,...S&&!d&&{as:S},...S&&d&&{component:S},ref:w},l);return[y,_]}},90124(e,t,r){"use strict";r.d(t,{Dg:()=>m,Dp:()=>h}),r(70451);var n=r(20523),i=r(41535),o=r(69402),a=r(62540);function s(e){let{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?r:e):t;return(0,a.jsx)(o.Global,{styles:n})}var l=r(26041);function u(e){let t=(0,i.tT)(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}let c=function({styles:e,themeId:t,defaultTheme:r={}}){let n=(0,l.A)(r),i=t&&n[t]||n,o="function"==typeof e?e(i):e;return i.modularCssLayers&&(o=Array.isArray(o)?o.map(e=>"function"==typeof e?u(e(i)):u(e)):u(o)),(0,a.jsx)(s,{styles:o})};var d=r(87169),p=r(93724);let f=function(e){return(0,a.jsx)(c,{...e,defaultTheme:d.A,themeId:p.A})};function h(e){return function(t){return(0,a.jsx)(f,{styles:"function"==typeof e?r=>e({theme:r,...t}):e})}}function m(){return n.A}},41535(e,t,r){"use strict";r.d(t,{Ay:()=>a,HX:()=>s,tT:()=>u});var n=r(42292),i=r.n(n),o=r(37696);function a(e,t){return i()(e,t)}function s(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}r(69402);let l=[];function u(e){return l[0]=e,(0,o.J)(l)}},35216(e,t,r){"use strict";r.d(t,{I:()=>o});var n=r(70451);r(62540);let i=n.createContext(),o=()=>n.useContext(i)??!1},68335(e,t,r){"use strict";r.d(t,{A:()=>b});var n=r(70451),i=r(11750),o=r(6121),a=r(46733),s=r(81023),l=r(7939),u=r(51327),c=r(20523),d=r(80787),p=r(85351),f=r(89187),h=r(62540);let m=(0,d.A)(),g=(0,l.A)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function y(e){return(0,u.A)({props:e,name:"MuiStack",defaultTheme:m})}let v=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...(0,p.NI)({theme:t},(0,p.kW)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let n=(0,f.LX)(t),i=Object.keys(t.breakpoints.values).reduce((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t),{}),a=(0,p.kW)({values:e.direction,base:i}),s=(0,p.kW)({values:e.spacing,base:i});"object"==typeof a&&Object.keys(a).forEach((e,t,r)=>{if(!a[e]){let n=t>0?a[r[t-1]]:"column";a[e]=n}}),r=(0,o.A)(r,(0,p.NI)({theme:t},s,(t,r)=>e.useFlexGap?{gap:(0,f._W)(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[r?a[r]:e.direction]}`]:(0,f._W)(n,t)}}))}return(0,p.iZ)(t.breakpoints,r)};function b(e={}){let{createStyledComponent:t=g,useThemeProps:r=y,componentName:o="MuiStack"}=e,l=t(v);return n.forwardRef(function(e,t){let u,d=r(e),{component:p="div",direction:f="column",spacing:m=0,divider:g,children:y,className:v,useFlexGap:b=!1,...x}=(0,c.A)(d),A=(0,s.A)({root:["root"]},e=>(0,a.Ay)(o,e),{});return(0,h.jsx)(l,{as:p,ownerState:{direction:f,spacing:m,useFlexGap:b},ref:t,className:(0,i.A)(A.root,v),...x,children:g?(u=n.Children.toArray(y).filter(Boolean)).reduce((e,t,r)=>(e.push(t),r<u.length-1&&e.push(n.cloneElement(g,{key:`separator-${r}`})),e),[]):y})})}},85351(e,t,r){"use strict";r.d(t,{EU:()=>u,NI:()=>l,iZ:()=>d,kW:()=>p,vf:()=>c,zu:()=>o});var n=r(6121),i=r(40391);let o={xs:0,sm:600,md:900,lg:1200,xl:1536},a={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`},s={containerQueries:e=>({up:t=>{let r="number"==typeof t?t:o[t]||t;return"number"==typeof r&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function l(e,t,r){let n=e.theme||{};if(Array.isArray(t)){let e=n.breakpoints||a;return t.reduce((n,i,o)=>(n[e.up(e.keys[o])]=r(t[o]),n),{})}if("object"==typeof t){let e=n.breakpoints||a;return Object.keys(t).reduce((a,l)=>{if((0,i.ob)(e.keys,l)){let e=(0,i.CT)(n.containerQueries?n:s,l);e&&(a[e]=r(t[l],l))}else Object.keys(e.values||o).includes(l)?a[e.up(l)]=r(t[l],l):a[l]=t[l];return a},{})}return r(t)}function u(e={}){return e.keys?.reduce((t,r)=>(t[e.up(r)]={},t),{})||{}}function c(e,t){return e.reduce((e,t)=>{let r=e[t];return r&&0!==Object.keys(r).length||delete e[t],e},t)}function d(e,...t){let r=u(e),i=[r,...t].reduce((e,t)=>(0,n.A)(e,t),{});return c(Object.keys(r),i)}function p({values:e,breakpoints:t,base:r}){let n,i=Object.keys(r||function(e,t){if("object"!=typeof e)return{};let r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((t,n)=>{n<e.length&&(r[t]=!0)}):n.forEach(t=>{null!=e[t]&&(r[t]=!0)}),r}(e,t));return 0===i.length?e:i.reduce((t,r,i)=>(Array.isArray(e)?(t[r]=null!=e[i]?e[i]:e[n],n=i):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[n],n=r):t[r]=e,t),{})}},59238(e,t,r){"use strict";r.d(t,{X4:()=>d,eM:()=>c,Cg:()=>p,Nd:()=>h,a:()=>m,Me:()=>a,e$:()=>f,Y9:()=>y,j4:()=>g,YL:()=>l});var n=r(67425);function i(e,t=0,r=1){return function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}(e,t,r)}function o(e){let t;if(e.type)return e;if("#"===e.charAt(0)){var r;let t,n;return o((r=(r=e).slice(1),t=RegExp(`.{1,${r.length>=6?2:1}}`,"g"),(n=r.match(t))&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""))}let i=e.indexOf("("),a=e.substring(0,i);if(!["rgb","rgba","hsl","hsla","color"].includes(a))throw Error((0,n.A)(9,e));let s=e.substring(i+1,e.length-1);if("color"===a){if(t=(s=s.split(" ")).shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(t))throw Error((0,n.A)(10,t))}else s=s.split(",");return{type:a,values:s=s.map(e=>parseFloat(e)),colorSpace:t}}let a=(e,t)=>{try{let t;return(t=o(e)).values.slice(0,3).map((e,r)=>t.type.includes("hsl")&&0!==r?`${e}%`:e).join(" ")}catch(t){return e}};function s(e){let{type:t,colorSpace:r}=e,{values:n}=e;return t.includes("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=t.includes("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function l(e){let{values:t}=e=o(e),r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),l=(e,t=(e+r/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),u="rgb",c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),s({type:u,values:c})}function u(e){let t="hsl"===(e=o(e)).type||"hsla"===e.type?o(l(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){let r=u(e),n=u(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function d(e,t){return e=o(e),t=i(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function p(e,t,r){try{return d(e,t)}catch(t){return e}}function f(e,t){if(e=o(e),t=i(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return s(e)}function h(e,t,r){try{return f(e,t)}catch(t){return e}}function m(e,t){if(e=o(e),t=i(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return s(e)}function g(e,t,r){try{return m(e,t)}catch(t){return e}}function y(e,t,r){try{return function(e,t=.15){return u(e)>.5?f(e,t):m(e,t)}(e,t)}catch(t){return e}}},57867(e,t,r){"use strict";r.d(t,{Ay:()=>f,MC:()=>u});var n=r(41535),i=r(6121),o=r(80787),a=r(92927),s=r(46826);let l=(0,o.A)();function u(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function c(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function d(e,t,r){let i="function"==typeof t?t(e):t;if(Array.isArray(i))return i.flatMap(t=>d(e,t,r));if(Array.isArray(i?.variants)){let t;if(i.isProcessed)t=r?c(i.style,r):i.style;else{let{variants:e,...o}=i;t=r?c((0,n.tT)(o),r):o}return p(e,i.variants,[t],r)}return i?.isProcessed?r?c((0,n.tT)(i.style),r):i.style:r?c((0,n.tT)(i),r):i}function p(e,t,r=[],i){let o;e:for(let a=0;a<t.length;a+=1){let s=t[a];if("function"==typeof s.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(o))continue}else for(let t in s.props)if(e[t]!==s.props[t]&&e.ownerState?.[t]!==s.props[t])continue e;"function"==typeof s.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},r.push(i?c((0,n.tT)(s.style(o)),i):s.style(o))):r.push(i?c((0,n.tT)(s.style),i):s.style)}return r}function f(e={}){let{themeId:t,defaultTheme:r=l,rootShouldForwardProp:o=u,slotShouldForwardProp:h=u}=e;function m(e){e.theme=!function(e){for(let t in e)return!1;return!0}(e.theme)?e.theme[t]||e.theme:r}return(e,t={})=>{var r,l,f;(0,n.HX)(e,e=>e.filter(e=>e!==a.A));let{name:g,slot:y,skipVariantsResolver:v,skipSx:b,overridesResolver:x=!(r=(l=y)?l.charAt(0).toLowerCase()+l.slice(1):l)?null:(e,t)=>t[r],...A}=t,w=g&&g.startsWith("Mui")||y?"components":"custom",S=void 0!==v?v:y&&"Root"!==y&&"root"!==y||!1,_=b||!1,k=u;"Root"===y||"root"===y?k=o:y?k=h:"string"==typeof(f=e)&&f.charCodeAt(0)>96&&(k=void 0);let M=(0,n.Ay)(e,{shouldForwardProp:k,label:void 0,...A}),C=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return d(t,e,t.theme.modularCssLayers?w:void 0)};if((0,i.Q)(e)){let t=(0,s.A)(e);return function(e){return t.variants?d(e,t,e.theme.modularCssLayers?w:void 0):e.theme.modularCssLayers?c(t.style,w):t.style}}return e},$=(...t)=>{let r=[],n=t.map(C),i=[];if(r.push(m),g&&x&&i.push(function(e){let t=e.theme,r=t.components?.[g]?.styleOverrides;if(!r)return null;let n={};for(let t in r)n[t]=d(e,r[t],e.theme.modularCssLayers?"theme":void 0);return x(e,n)}),g&&!S&&i.push(function(e){let t=e.theme,r=t?.components?.[g]?.variants;return r?p(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),_||i.push(a.A),Array.isArray(n[0])){let e,t=n.shift(),o=Array(r.length).fill(""),a=Array(i.length).fill("");(e=[...o,...t,...a]).raw=[...o,...t.raw,...a],r.unshift(e)}let o=M(...r,...n,...i);return e.muiName&&(o.muiName=e.muiName),o};return M.withConfig&&($.withConfig=M.withConfig),$}}},17575(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(89187);function i(e=8,t=(0,n.LX)({spacing:e})){if(e.mui)return e;let r=(...e)=>(0===e.length?[1]:e).map(e=>{let r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}},80787(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(6121),i=r(40391);let o={borderRadius:4};var a=r(17575),s=r(92927),l=r(73126);function u(e,t){if(this.vars){if(!this.colorSchemes?.[e]||"function"!=typeof this.getColorSchemeSelector)return{};let r=this.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return this.palette.mode===e?t:{}}let c=function(e={},...t){let{breakpoints:r={},palette:c={},spacing:d,shape:p={},...f}=e,h=function(e){let t,{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5,...o}=e,a=((t=Object.keys(r).map(e=>({key:e,val:r[e]}))||[]).sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})),s=Object.keys(a);function l(e){let t="number"==typeof r[e]?r[e]:e;return`@media (min-width:${t}${n})`}function u(e){let t="number"==typeof r[e]?r[e]:e;return`@media (max-width:${t-i/100}${n})`}function c(e,t){let o=s.indexOf(t);return`@media (min-width:${"number"==typeof r[e]?r[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof r[s[o]]?r[s[o]]:t)-i/100}${n})`}return{keys:s,values:a,up:l,down:u,between:c,only:function(e){return s.indexOf(e)+1<s.length?c(e,s[s.indexOf(e)+1]):l(e)},not:function(e){let t=s.indexOf(e);return 0===t?l(s[1]):t===s.length-1?u(s[t]):c(e,s[s.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}(r),m=(0,a.A)(d),g=(0,n.A)({breakpoints:h,direction:"ltr",components:{},palette:{mode:"light",...c},spacing:m,shape:{...o,...p}},f);return(g=(0,i.Ay)(g)).applyStyles=u,(g=t.reduce((e,t)=>(0,n.A)(e,t),g)).unstable_sxConfig={...l.A,...f?.unstable_sxConfig},g.unstable_sx=function(e){return(0,s.A)({sx:e,theme:this})},g}},40391(e,t,r){"use strict";function n(e,t){if(!e.containerQueries)return t;let r=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{let r=/min-width:\s*([0-9.]+)/;return(e.match(r)?.[1]||0)-(t.match(r)?.[1]||0)});return r.length?r.reduce((e,r)=>{let n=t[r];return delete e[r],e[r]=n,e},{...t}):t}function i(e,t){return"@"===t||t.startsWith("@")&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function o(e,t){let r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;let[,n,i]=r,o=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(o)}function a(e){let t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function r(r,n){r.up=(...r)=>t(e.breakpoints.up(...r),n),r.down=(...r)=>t(e.breakpoints.down(...r),n),r.between=(...r)=>t(e.breakpoints.between(...r),n),r.only=(...r)=>t(e.breakpoints.only(...r),n),r.not=(...r)=>{let i=t(e.breakpoints.not(...r),n);return i.includes("not all and")?i.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):i}}let n={},i=e=>(r(n,e),n);return r(i),{...e,containerQueries:i}}r.d(t,{Ay:()=>a,CT:()=>o,_S:()=>n,ob:()=>i})},57255(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(6121);let i=function(e,t){return t?(0,n.A)(e,t,{clone:!1}):e}},46826(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(41535);function i(e){let{variants:t,...r}=e,i={variants:t,style:(0,n.tT)(r),isProcessed:!0};return i.style===r||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=(0,n.tT)(e.style))}),i}},89187(e,t,r){"use strict";let n;r.d(t,{Lc:()=>b,Ms:()=>x,_W:()=>y,MA:()=>m,LX:()=>g});var i,o=r(85351),a=r(95279),s=r(57255);let l={m:"margin",p:"padding"},u={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},d=(i=e=>{if(e.length>2)if(!c[e])return[e];else e=c[e];let[t,r]=e.split(""),n=l[t],i=u[r]||"";return Array.isArray(i)?i.map(e=>n+e):[n+i]},n={},e=>(void 0===n[e]&&(n[e]=i(e)),n[e])),p=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[...p,...f];function m(e,t,r,n){let i=(0,a.Yn)(e,t,!0)??r;return"number"==typeof i||"string"==typeof i?e=>"string"==typeof e?e:"string"==typeof i?`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if("string"==typeof e)return e;let t=i[Math.abs(e)];return e>=0?t:"number"==typeof t?-t:`-${t}`}:"function"==typeof i?i:()=>void 0}function g(e){return m(e,"spacing",8,"spacing")}function y(e,t){return"string"==typeof t||null==t?t:e(t)}function v(e,t){let r=g(e.theme);return Object.keys(e).map(n=>(function(e,t,r,n){var i;if(!t.includes(r))return null;let a=(i=d(r),e=>i.reduce((t,r)=>(t[r]=y(n,e),t),{})),s=e[r];return(0,o.NI)(e,s,a)})(e,t,n,r)).reduce(s.A,{})}function b(e){return v(e,p)}function x(e){return v(e,f)}function A(e){return v(e,h)}b.propTypes={},b.filterProps=p,x.propTypes={},x.filterProps=f,A.propTypes={},A.filterProps=h},95279(e,t,r){"use strict";r.d(t,{Ay:()=>s,BO:()=>a,Yn:()=>o});var n=r(85235),i=r(85351);function o(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){let r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function a(e,t,r,n=r){let i;return i="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:o(e,r)||n,t&&(i=t(i,n,e)),i}let s=function(e){let{prop:t,cssProperty:r=e.prop,themeKey:s,transform:l}=e,u=e=>{if(null==e[t])return null;let u=e[t],c=o(e.theme,s)||{};return(0,i.NI)(e,u,e=>{let i=a(c,l,e);return(e===i&&"string"==typeof e&&(i=a(c,l,`${t}${"default"===e?"":(0,n.A)(e)}`,e)),!1===r)?i:{[r]:i}})};return u.propTypes={},u.filterProps=[t],u}},73126(e,t,r){"use strict";r.d(t,{A:()=>I});var n=r(89187),i=r(95279),o=r(57255);let a=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?(0,o.A)(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r};var s=r(85351);function l(e){return"number"!=typeof e?e:`${e}px solid`}function u(e,t){return(0,i.Ay)({prop:e,themeKey:"borders",transform:t})}let c=u("border",l),d=u("borderTop",l),p=u("borderRight",l),f=u("borderBottom",l),h=u("borderLeft",l),m=u("borderColor"),g=u("borderTopColor"),y=u("borderRightColor"),v=u("borderBottomColor"),b=u("borderLeftColor"),x=u("outline",l),A=u("outlineColor"),w=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,n.MA)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,s.NI)(e,e.borderRadius,e=>({borderRadius:(0,n._W)(t,e)}))}return null};w.propTypes={},w.filterProps=["borderRadius"],a(c,d,p,f,h,m,g,y,v,b,w,x,A);let S=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,n.MA)(e.theme,"spacing",8,"gap");return(0,s.NI)(e,e.gap,e=>({gap:(0,n._W)(t,e)}))}return null};S.propTypes={},S.filterProps=["gap"];let _=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,n.MA)(e.theme,"spacing",8,"columnGap");return(0,s.NI)(e,e.columnGap,e=>({columnGap:(0,n._W)(t,e)}))}return null};_.propTypes={},_.filterProps=["columnGap"];let k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,n.MA)(e.theme,"spacing",8,"rowGap");return(0,s.NI)(e,e.rowGap,e=>({rowGap:(0,n._W)(t,e)}))}return null};function M(e,t){return"grey"===t?t:e}function C(e){return e<=1&&0!==e?`${100*e}%`:e}k.propTypes={},k.filterProps=["rowGap"],a(S,_,k,(0,i.Ay)({prop:"gridColumn"}),(0,i.Ay)({prop:"gridRow"}),(0,i.Ay)({prop:"gridAutoFlow"}),(0,i.Ay)({prop:"gridAutoColumns"}),(0,i.Ay)({prop:"gridAutoRows"}),(0,i.Ay)({prop:"gridTemplateColumns"}),(0,i.Ay)({prop:"gridTemplateRows"}),(0,i.Ay)({prop:"gridTemplateAreas"}),(0,i.Ay)({prop:"gridArea"})),a((0,i.Ay)({prop:"color",themeKey:"palette",transform:M}),(0,i.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:M}),(0,i.Ay)({prop:"backgroundColor",themeKey:"palette",transform:M}));let $=(0,i.Ay)({prop:"width",transform:C}),O=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,s.NI)(e,e.maxWidth,t=>{let r=e.theme?.breakpoints?.values?.[t]||s.zu[t];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:C(t)}}):null;O.filterProps=["maxWidth"];let E=(0,i.Ay)({prop:"minWidth",transform:C}),N=(0,i.Ay)({prop:"height",transform:C}),R=(0,i.Ay)({prop:"maxHeight",transform:C}),T=(0,i.Ay)({prop:"minHeight",transform:C});(0,i.Ay)({prop:"size",cssProperty:"width",transform:C}),(0,i.Ay)({prop:"size",cssProperty:"height",transform:C}),a($,O,E,N,R,T,(0,i.Ay)({prop:"boxSizing"}));let I={border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:w},color:{themeKey:"palette",transform:M},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:M},backgroundColor:{themeKey:"palette",transform:M},p:{style:n.Ms},pt:{style:n.Ms},pr:{style:n.Ms},pb:{style:n.Ms},pl:{style:n.Ms},px:{style:n.Ms},py:{style:n.Ms},padding:{style:n.Ms},paddingTop:{style:n.Ms},paddingRight:{style:n.Ms},paddingBottom:{style:n.Ms},paddingLeft:{style:n.Ms},paddingX:{style:n.Ms},paddingY:{style:n.Ms},paddingInline:{style:n.Ms},paddingInlineStart:{style:n.Ms},paddingInlineEnd:{style:n.Ms},paddingBlock:{style:n.Ms},paddingBlockStart:{style:n.Ms},paddingBlockEnd:{style:n.Ms},m:{style:n.Lc},mt:{style:n.Lc},mr:{style:n.Lc},mb:{style:n.Lc},ml:{style:n.Lc},mx:{style:n.Lc},my:{style:n.Lc},margin:{style:n.Lc},marginTop:{style:n.Lc},marginRight:{style:n.Lc},marginBottom:{style:n.Lc},marginLeft:{style:n.Lc},marginX:{style:n.Lc},marginY:{style:n.Lc},marginInline:{style:n.Lc},marginInlineStart:{style:n.Lc},marginInlineEnd:{style:n.Lc},marginBlock:{style:n.Lc},marginBlockStart:{style:n.Lc},marginBlockEnd:{style:n.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:S},rowGap:{style:k},columnGap:{style:_},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:C},maxWidth:{style:O},minWidth:{transform:C},height:{transform:C},maxHeight:{transform:C},minHeight:{transform:C},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}},20523(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(6121),i=r(73126);function o(e){let t,r,o,{sx:a,...s}=e,{systemProps:l,otherProps:u}=(r={systemProps:{},otherProps:{}},o=s?.theme?.unstable_sxConfig??i.A,Object.keys(s).forEach(e=>{o[e]?r.systemProps[e]=s[e]:r.otherProps[e]=s[e]}),r);return t=Array.isArray(a)?[l,...a]:"function"==typeof a?(...e)=>{let t=a(...e);return(0,n.Q)(t)?{...l,...t}:l}:{...l,...a},{...u,sx:t}}},92927(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(85235),i=r(57255),o=r(95279),a=r(85351),s=r(40391),l=r(73126);let u=function(){function e(e,t,r,i){let s={[e]:t,theme:r},l=i[e];if(!l)return{[e]:t};let{cssProperty:u=e,themeKey:c,transform:d,style:p}=l;if(null==t)return null;if("typography"===c&&"inherit"===t)return{[e]:t};let f=(0,o.Yn)(r,c)||{};return p?p(s):(0,a.NI)(s,t,t=>{let r=(0,o.BO)(f,d,t);return(t===r&&"string"==typeof t&&(r=(0,o.BO)(f,d,`${e}${"default"===t?"":(0,n.A)(t)}`,t)),!1===u)?r:{[u]:r}})}return function t(r){let{sx:n,theme:o={},nested:u}=r||{};if(!n)return null;let c=o.unstable_sxConfig??l.A;function d(r){let n=r;if("function"==typeof r)n=r(o);else if("object"!=typeof r)return r;if(!n)return null;let l=(0,a.EU)(o.breakpoints),d=Object.keys(l),p=l;return(Object.keys(n).forEach(r=>{var s;let l=(s=n[r],"function"==typeof s?s(o):s);if(null!=l)if("object"==typeof l)if(c[r])p=(0,i.A)(p,e(r,l,o,c));else{let e=(0,a.NI)({theme:o},l,e=>({[r]:e}));!function(...e){let t=new Set(e.reduce((e,t)=>e.concat(Object.keys(t)),[]));return e.every(e=>t.size===Object.keys(e).length)}(e,l)?p=(0,i.A)(p,e):p[r]=t({sx:l,theme:o,nested:!0})}else p=(0,i.A)(p,e(r,l,o,c))}),!u&&o.modularCssLayers)?{"@layer sx":(0,s._S)(o,(0,a.vf)(d,p))}:(0,s._S)(o,(0,a.vf)(d,p))}return Array.isArray(n)?n.map(d):d(n)}}();u.filterProps=["sx"];let c=u},7939(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(57867).Ay)()},26041(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(80787),i=r(45827);let o=(0,n.A)(),a=function(e=o){return(0,i.A)(e)}},70320(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(52215);function i(e){let{theme:t,name:r,props:i}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,n.A)(t.components[r].defaultProps,i):i}},51327(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(70320),i=r(26041);function o({props:e,name:t,defaultTheme:r,themeId:a}){let s=(0,i.A)(r);return a&&(s=s[a]||s),(0,n.A)({theme:s,name:t,props:e})}},45827(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(70451),i=r(69402);let o=function(e=null){let t=n.useContext(i.ThemeContext);return t&&0!==Object.keys(t).length?t:e}},71027(e,t,r){"use strict";let n;r.d(t,{A:()=>o});let i=e=>e,o=(n=i,{configure(e){n=e},generate:e=>n(e),reset(){n=i}})},76780(e,t,r){"use strict";r.d(t,{A:()=>n});let n=function(e,t,r){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...r}}}},85235(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(67425);function i(e){if("string"!=typeof e)throw Error((0,n.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},81023(e,t,r){"use strict";function n(e,t,r){let n={};for(let i in e){let o=e[i],a="",s=!0;for(let e=0;e<o.length;e+=1){let n=o[e];n&&(a+=(!0===s?"":" ")+t(n),s=!1,r&&r[n]&&(a+=" "+r[n]))}n[i]=a}return n}r.d(t,{A:()=>n})},37605(e,t,r){"use strict";function n(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}r.d(t,{A:()=>n})},61493(e,t,r){"use strict";function n(e,t=166){let r;function i(...n){let o=()=>{e.apply(this,n)};clearTimeout(r),r=setTimeout(o,t)}return i.clear=()=>{clearTimeout(r)},i}r.d(t,{A:()=>n})},6121(e,t,r){"use strict";r.d(t,{A:()=>function e(t,r,a={clone:!0}){let s=a.clone?{...t}:t;return o(t)&&o(r)&&Object.keys(r).forEach(l=>{n.isValidElement(r[l])||(0,i.isValidElementType)(r[l])?s[l]=r[l]:o(r[l])&&Object.prototype.hasOwnProperty.call(t,l)&&o(t[l])?s[l]=e(t[l],r[l],a):a.clone?s[l]=o(r[l])?function e(t){if(n.isValidElement(t)||(0,i.isValidElementType)(t)||!o(t))return t;let r={};return Object.keys(t).forEach(n=>{r[n]=e(t[n])}),r}(r[l]):r[l]:s[l]=r[l]}),s},Q:()=>o});var n=r(70451),i=r(98489);function o(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}},3507(e,t,r){"use strict";r.d(t,{A:()=>n});let n=function(e,t=[]){if(void 0===e)return{};let r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}},67425(e,t,r){"use strict";function n(e,...t){let r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>r.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${r} for the full message.`}r.d(t,{A:()=>n})},46733(e,t,r){"use strict";r.d(t,{Ay:()=>o});var n=r(71027);let i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function o(e,t,r="Mui"){let a=i[t];return a?`${r}-${a}`:`${n.A.generate(e)}-${t}`}},29009(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(46733);function i(e,t,r="Mui"){let o={};return t.forEach(t=>{o[t]=(0,n.Ay)(e,t,r)}),o}},30443(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(70451);function i(e){return parseInt(n.version,10)>=19?e?.props?.ref||null:e?.ref||null}},94329(e,t,r){"use strict";function n(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}r.d(t,{A:()=>n})},41953(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(70451);function i(e){return n.Children.toArray(e).filter(e=>n.isValidElement(e))}},93399(e,t,r){"use strict";function n(e){try{return e.matches(":focus-visible")}catch(e){}return!1}r.d(t,{A:()=>n})},94237(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(70451);function i(e,t){return n.isValidElement(e)&&-1!==t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)}},9414(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(11750),i=r(3507);let o=function(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t},a=function(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:a,externalForwardedProps:s,className:l}=e;if(!t){let e=(0,n.A)(r?.className,l,s?.className,a?.className),t={...r?.style,...s?.style,...a?.style},i={...r,...s,...a};return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}let u=(0,i.A)({...s,...a}),c=o(a),d=o(s),p=t(u),f=(0,n.A)(p?.className,r?.className,l,s?.className,a?.className),h={...p?.style,...r?.style,...s?.style,...a?.style},m={...p,...r,...d,...c};return f.length>0&&(m.className=f),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:p.ref}}},10713(e,t,r){"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{A:()=>n})},72097(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(10713);function i(e){return(0,n.A)(e).defaultView||window}},1689(e,t,r){"use strict";r.d(t,{A:()=>n});let n=function(e,t,r){return"function"==typeof e?e(t,r):e}},52215(e,t,r){"use strict";r.d(t,{A:()=>function e(t,r){let n={...r};for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i))if("components"===i||"slots"===i)n[i]={...t[i],...n[i]};else if("componentsProps"===i||"slotProps"===i){let o=t[i],a=r[i];if(a)if(o)for(let t in n[i]={...a},o)Object.prototype.hasOwnProperty.call(o,t)&&(n[i][t]=e(o[t],a[t]));else n[i]=a;else n[i]=o||{}}else void 0===n[i]&&(n[i]=t[i]);return n}})},71849(e,t,r){"use strict";function n(e,t){"function"==typeof e?e(t):e&&(e.current=t)}r.d(t,{A:()=>n})},89369(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(70451);function i({controlled:e,default:t,name:r,state:o="value"}){let{current:a}=n.useRef(void 0!==e),[s,l]=n.useState(t),u=n.useCallback(e=>{a||l(e)},[]);return[a?e:s,u]}},31789(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(70451);let i="u">typeof window?n.useLayoutEffect:n.useEffect},83183(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(70451),i=r(31789);let o=function(e){let t=n.useRef(e);return(0,i.A)(()=>{t.current=e}),n.useRef((...e)=>(0,t.current)(...e)).current}},95591(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(70451);function i(...e){let t=n.useRef(void 0),r=n.useCallback(t=>{let r=e.map(e=>{if(null==e)return null;if("function"==typeof e){let r=e(t);return"function"==typeof r?r:()=>{e(null)}}return e.current=t,()=>{e.current=null}});return()=>{r.forEach(e=>e?.())}},e);return n.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=r(e))},e)}},54553(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(70451);let i=0,o={...n}.useId;function a(e){if(void 0!==o){let t=o();return e??t}return function(e){let[t,r]=n.useState(e),o=e||t;return n.useEffect(()=>{null==t&&(i+=1,r(`mui-${i}`))},[t]),o}(e)}},48731(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(70451);let i={};function o(e,t){let r=n.useRef(i);return r.current===i&&(r.current=e(t)),r}},77893(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(95591),i=r(76780),o=r(9414),a=r(1689);let s=function(e){let{elementType:t,externalSlotProps:r,ownerState:s,skipResolvingSlotProps:l=!1,...u}=e,c=l?{}:(0,a.A)(r,s),{props:d,internalRef:p}=(0,o.A)({...u,externalSlotProps:c}),f=(0,n.A)(p,c?.ref,e.additionalProps?.ref);return(0,i.A)(t,{...d,ref:f},s)}},3725(e,t,r){"use strict";r.d(t,{E:()=>a,A:()=>s});var n=r(48731),i=r(70451);let o=[];class a{static create(){return new a}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function s(){var e;let t=(0,n.A)(a.create).current;return e=t.disposeEffect,i.useEffect(e,o),t}},40625(e,t,r){"use strict";r.r(t),r.d(t,{ONE_WEEK_IN_MS:()=>u,querySpecSchema:()=>W,annotationDisplaySchema:()=>I,buildPanelSpecSchema:()=>V,resolvePanelRef:()=>S,variableDefinitionSchema:()=>en,variableTextSchema:()=>ee,isTimeSeriesValueTuple:()=>C,otlpresourcev1:()=>i,parseDurationString:()=>p,isValidQueryPluginType:()=>M,ONE_YEAR_IN_MS:()=>c,DURATION_REGEX:()=>d,createPanelRef:()=>k,getSuggestedStepMs:()=>w,otlpcommonv1:()=>n,variableListSpecSchema:()=>K,variableDisplaySchema:()=>Y,DEFAULT_ALL_VALUE:()=>"$__all",ONE_HOUR_IN_MS:()=>s,convertTimeToDuration:()=>g,ONE_MINUTE_IN_MS:()=>6e4,intervalToDuration:()=>m,getPanelKeyFromRef:()=>_,isDurationString:()=>f,panelSpecSchema:()=>q,buildVariableDefinitionSchema:()=>ei,otlptracev1:()=>o,annotationSpecSchema:()=>j,buildDatasourceSpecSchema:()=>L,panelDisplaySpec:()=>F,panelDefinitionSchema:()=>H,buildVariableListSchema:()=>Q,datasourceSpecSchema:()=>B,buildVariableSpecSchema:()=>er,isAbsoluteTimeRange:()=>v,ONE_SECOND_IN_MS:()=>1e3,displaySchema:()=>z,variableListSchema:()=>G,variableTextSpecSchema:()=>J,isValidTraceId:()=>$,roundStepInterval:()=>A,durationValidationSchema:()=>D,toAbsoluteTimeRange:()=>b,buildVariableListSpecSchema:()=>X,buildAnnotationSpecSchema:()=>P,buildPanelDefinitionSchema:()=>U,isRelativeTimeRange:()=>y,linkSchema:()=>Z,variableSpecSchema:()=>et,formatDuration:()=>h,ONE_DAY_IN_MS:()=>l,pluginSchema:()=>T});var n={};r.r(n);var i={};r.r(i);var o={};r.r(o),r.d(o,{StatusCodeError:()=>N,StatusCodeOk:()=>E,StatusCodeUnset:()=>O});var a=r(94461);let s=36e5,l=864e5,u=6048e5,c=31536e6,d=/^(?:(\d+)y)?(?:(\d+)w)?(?:(\d+)d)?(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?(?:(\d+)ms)?$/;function p(e){let t=d.exec(e);if(null===t)throw Error(`Invalid duration string '${e}'`);return{years:parseInt(t[1]??"0"),months:0,weeks:parseInt(t[2]??"0"),days:parseInt(t[3]??"0"),hours:parseInt(t[4]??"0"),minutes:parseInt(t[5]??"0"),seconds:parseInt(t[6]??"0")+parseInt(t[7]??"0")/1e3}}function f(e){return""!==e&&d.test(e)}function h(e){let t=[];if(e.years&&t.push(`${e.years}y`),e.weeks&&t.push(`${e.weeks}w`),e.days&&t.push(`${e.days}d`),e.hours&&t.push(`${e.hours}h`),e.minutes&&t.push(`${e.minutes}m`),e.seconds){let r=Math.trunc(e.seconds);r&&t.push(`${r}s`);let n=Math.round((e.seconds-r)*1e3);n&&t.push(`${n}ms`)}return t.join("")}function m(e){return g(e.end.valueOf()-e.start.valueOf())}function g(e){let t=Math.trunc(e/c);t>0&&(e-=t*c);let r=Math.trunc(e/u);r>0&&(e-=r*u);let n=Math.trunc(e/l);n>0&&(e-=n*l);let i=Math.trunc(e/s);i>0&&(e-=i*s);let o=Math.trunc(e/6e4);return o>0&&(e-=6e4*o),{years:t,months:0,weeks:r,days:n,hours:i,minutes:o,seconds:e/1e3}}function y(e){return void 0!==e.pastDuration}function v(e){return void 0!==e.start&&void 0!==e.end}function b(e){let t=e.end??new Date;return{start:(0,a.sub)(t,p(e.pastDuration)),end:t}}let x=[{maxMs:15,roundedStepMs:10,display:"0.01s"},{maxMs:35,roundedStepMs:20,display:"0.02s"},{maxMs:75,roundedStepMs:50,display:"0.05s"},{maxMs:150,roundedStepMs:100,display:"0.1s"},{maxMs:350,roundedStepMs:200,display:"0.2s"},{maxMs:750,roundedStepMs:500,display:"0.5s"},{maxMs:1500,roundedStepMs:1e3,display:"1s"},{maxMs:3500,roundedStepMs:2e3,display:"2s"},{maxMs:7500,roundedStepMs:5e3,display:"5s"},{maxMs:12500,roundedStepMs:1e4,display:"10s"},{maxMs:17500,roundedStepMs:15e3,display:"15s"},{maxMs:25e3,roundedStepMs:2e4,display:"20s"},{maxMs:45e3,roundedStepMs:3e4,display:"30s"},{maxMs:9e4,roundedStepMs:6e4,display:"1m"},{maxMs:21e4,roundedStepMs:12e4,display:"2m"},{maxMs:45e4,roundedStepMs:3e5,display:"5m"},{maxMs:75e4,roundedStepMs:6e5,display:"10m"},{maxMs:75e4,roundedStepMs:9e5,display:"15m"},{maxMs:15e5,roundedStepMs:12e5,display:"20m"},{maxMs:27e5,roundedStepMs:18e5,display:"30m"},{maxMs:54e5,roundedStepMs:36e5,display:"1h"},{maxMs:9e6,roundedStepMs:72e5,display:"2h"},{maxMs:162e5,roundedStepMs:108e5,display:"3h"},{maxMs:324e5,roundedStepMs:216e5,display:"6h"},{maxMs:864e5,roundedStepMs:432e5,display:"12h"},{maxMs:6048e5,roundedStepMs:864e5,display:"1d"},{maxMs:18144e5,roundedStepMs:6048e5,display:"1w"},{maxMs:36288e5,roundedStepMs:2592e6,display:"30d"},{maxMs:63072e6,roundedStepMs:31536e6,display:"1y"}];function A(e){for(let{maxMs:t,roundedStepMs:r}of x)if(e<t)return r;return 15e3}function w(e,t){return A(Math.floor((e.end.valueOf()-e.start.valueOf())/t))}function S(e,t){let r=_(t),n=e.panels[r];if(void 0===n)throw Error(`Could not resolve panels reference ${t.$ref}`);return n}function _(e){return e.$ref.substring(14)}function k(e){return{$ref:`#/spec/panels/${e}`}}function M(e){return["TimeSeriesQuery","TraceQuery","ProfileQuery","LogQuery","AlertsQuery","SilencesQuery"].includes(e)}function C(e){return 2===e.length}function $(e){return/^[0-9a-fA-F]+$/.test(e)}let O="STATUS_CODE_UNSET",E="STATUS_CODE_OK",N="STATUS_CODE_ERROR";var R=r(59140);let T=R.Ik({kind:R.Yj().min(1,"Required"),spec:R.g1(R.Yj(),R.bz())}),I=R.Ik({name:R.Yj(),description:R.Yj().optional(),hidden:R.zM().optional(),color:R.Yj().optional()});function P(e){return R.Ik({display:I,plugin:e})}let j=R.Ik({display:I,plugin:T}),z=R.Ik({name:R.Yj().optional(),description:R.Yj().optional()}),B=R.Ik({display:z.optional(),default:R.zM(),plugin:T});function L(e){return R.Ik({display:z.optional(),default:R.zM(),plugin:e})}let D=R.Yj().min(1,"Required").regex(d,"Must be a valid duration string"),F=R.Ik({name:R.Yj().optional(),description:R.Yj().optional()}),W=R.Ik({kind:R.Yj().min(1),spec:R.Ik({name:R.Yj().optional(),plugin:T})}),Z=R.Ik({name:R.Yj().optional(),url:R.Yj().min(1),tooltip:R.Yj().optional(),renderVariables:R.zM().optional(),targetBlank:R.zM().optional()}),q=R.Ik({display:F.optional(),plugin:T,queries:R.YO(W).optional(),links:R.YO(Z).optional()});function V(e){return R.Ik({display:F.optional(),plugin:e,queries:R.YO(W).optional(),links:R.YO(Z).optional()})}let H=R.Ik({kind:R.eu("Panel"),spec:q});function U(e){return R.Ik({kind:R.eu("Panel"),spec:V(e)})}let Y=R.Ik({name:R.Yj().optional(),description:R.Yj().optional(),hidden:R.zM().optional()}),K=R.Ik({name:R.Yj().min(1),display:Y.optional(),defaultValue:R.Yj().or(R.YO(R.Yj())).optional(),allowAllValue:R.zM(),allowMultiple:R.zM(),customAllValue:R.Yj().optional(),capturingRegexp:R.Yj().optional(),sort:R.k5(["none","alphabetical-asc","alphabetical-desc","numerical-asc","numerical-desc","alphabetical-ci-asc","alphabetical-ci-desc"]).optional(),plugin:T});function X(e){return R.Ik({name:R.Yj().min(1),display:Y.optional(),defaultValue:R.Yj().or(R.YO(R.Yj())).optional(),allowAllValue:R.zM(),allowMultiple:R.zM(),customAllValue:R.Yj().optional(),capturingRegexp:R.Yj().optional(),sort:R.k5(["none","alphabetical-asc","alphabetical-desc","numerical-asc","numerical-desc","alphabetical-ci-asc","alphabetical-ci-desc"]).optional(),plugin:e})}let G=R.Ik({kind:R.eu("ListVariable"),spec:K});function Q(e){return R.Ik({kind:R.eu("ListVariable"),spec:X(e)})}let J=R.Ik({name:R.Yj().min(1),display:Y.optional(),value:R.Yj(),constant:R.zM().optional()}),ee=R.Ik({kind:R.eu("TextVariable"),spec:J}),et=R.gM("kind",[ee,G]);function er(e){return R.KC([ee,Q(e)])}let en=et;function ei(e){return R.gM("kind",[R.Ik({kind:R.eu("ListVariable"),spec:X(e)}),R.Ik({kind:R.eu("TextVariable"),spec:J})])}},87275(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z","ChevronDown")},11061(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z","ChevronRight")},7800(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z","Close")},86067(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z","DeleteOutline")},17366(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).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(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12M8.8,14L10,12.8V4H14V12.8L15.2,14H8.8Z","PinOutline")},86742(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z","Plus")},1448(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(91621),i=r(62540);t.default=function(e,t){return(0,n.createSvgIcon)((0,i.jsx)("path",{d:e}),t)}},20009(e,t,r){"use strict";r.d(t,{A:()=>F});var n,i,o,a,s,l,u,c,d="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==r.g?r.g:"u">typeof self?self:{};function p(){if(a)return o;a=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,o=m(),a=o.currentDelimiters(),s=o.currentCurrency().symbol,l=o.currentOrdinal(),u=o.getZeroFormat(),c=o.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],o=+r[2];return!isNaN(n)&&!isNaN(i)&&!isNaN(o)}(r,a)){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="",o,a,s){if(""!==r)return r===a?0:function r(n,i,o,a,s,l,u){if(!isNaN(+n))return+n;let c="",d=n.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(d!==n)return -1*r(d,i,o,a,s,l);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,o,a,s,l)*u.factor}if((c=n.replace("%",""))!==n)return r(c,i,o,a,s,l)/100;let p=parseFloat(n);if(isNaN(p))return;let f=a(p);if(f&&"."!==f&&(c=n.replace(RegExp(`${t(f)}$`),""))!==n)return r(c,i,o,a,s,l);let h={};Object.keys(l).forEach(e=>{h[l[e]]=e});let m=Object.keys(h).sort().reverse(),g=m.length;for(let e=0;e<g;e++){let t=m[e],u=h[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,o,a,s,l)*e}}}(r.replace(i,"").replace(RegExp(`([0-9])${t(n.thousands)}([0-9])`,"g"),"$1$2").replace(n.decimal,"."),n,i,o,a,s)}(r,a,s,l,u,c);else{if("number"!=typeof r)return;i=r}if(void 0!==i)return i}}}function f(){if(l)return s;l=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 o(e,t,n,i=!1){let a=Object.keys(e).map(i=>{if(!t[i])return console.error(`${n} Invalid key: ${i}`),!1;let a=e[i],s=t[i];if("string"==typeof s&&(s={type:s}),"format"===s.type){if(!o(a,r,`[Validate ${i}]`,!0))return!1}else if(typeof a!==s.type)return console.error(`${n} ${i} type mismatched: "${s.type}" expected, "${typeof a}" provided`),!1;if(s.restrictions&&s.restrictions.length){let t=s.restrictions.length;for(let r=0;r<t;r++){let{restriction:t,message:o}=s.restrictions[r];if(!t(a,e))return console.error(`${n} ${i} invalid value: ${o}`),!1}}return s.restriction&&!s.restriction(a,e)?(console.error(`${n} ${i} invalid value: ${s.message}`),!1):s.validValues&&-1===s.validValues.indexOf(a)?(console.error(`${n} ${i} invalid value: must be among ${JSON.stringify(s.validValues)}, "${a}" provided`),!1):(!s.children||!!o(a,s.children,`[Validate ${i}]`))&&!0});return i||a.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})),a.reduce((e,t)=>e&&t,!0)}function a(e){return o(e,r,"[Validate format]")}return s={validate:function(e,t){let r=i(e),n=a(t);return r&&n},validateFormat:a,validateInput:i,validateLanguage:function(e){return o(e,n,"[Validate language]")}}}var h=function(e,t={}){var r,n,i,o,a,s;let l,u,c,d,p;if("string"!=typeof e)return e;n=e=(l=(r=e).match(/^{([^}]*)}/))?(t.prefix=l[1],r.slice(l[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]),(d=e.split(".")[0].match(/0+/))&&(t.characteristic=d[0].length),-1!==(i=e).indexOf(".")&&(t.optionalCharacteristic=-1===i.split(".")[0].indexOf("0")),-1!==e.indexOf("a")&&(t.average=!0),-1!==(o=e).indexOf("K")?t.forceAverage="thousand":-1!==o.indexOf("M")?t.forceAverage="million":-1!==o.indexOf("B")?t.forceAverage="billion":-1!==o.indexOf("T")&&(t.forceAverage="trillion");let f=e.split(".")[1];if(f){let e=f.match(/0+/);e&&(t.mantissa=e[0].length)}return(a=e).match(/\[\.]/)?t.optionalMantissa=!0:a.match(/\./)&&(t.optionalMantissa=!1),(p=e.split(".")[1])&&(t.trimMantissa=-1!==p.indexOf("[")),-1!==e.indexOf(",")&&(t.thousandSeparated=!0),-1!==e.indexOf(" ")&&(t.spaceSeparated=!0,t.spaceSeparatedCurrency=!0,(t.average||t.forceAverage)&&(t.spaceSeparatedAbbreviation=!0)),(s=e).match(/^\+?\([^)]*\)$/)&&(t.negative="parenthesis"),s.match(/^\+?-/)&&(t.negative="sign"),e.match(/^\+/)&&(t.forceSign=!0),t};function m(){let e;if(c)return u;c=1;let t=i?n:(i=1,n={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=f(),o={},a={},s=null,l={};function d(){return a[e]}return o.languages=()=>Object.assign({},a),o.currentLanguage=()=>e,o.currentBytes=()=>d().bytes||{},o.currentCurrency=()=>d().currency,o.currentAbbreviations=()=>d().abbreviations,o.currentDelimiters=()=>d().delimiters,o.currentOrdinal=()=>d().ordinal,o.currentDefaults=()=>Object.assign({},d().defaults,l),o.currentOrdinalDefaultFormat=()=>Object.assign({},o.currentDefaults(),d().ordinalFormat),o.currentByteDefaultFormat=()=>Object.assign({},o.currentDefaults(),d().byteFormat),o.currentPercentageDefaultFormat=()=>Object.assign({},o.currentDefaults(),d().percentageFormat),o.currentCurrencyDefaultFormat=()=>Object.assign({},o.currentDefaults(),d().currencyFormat),o.currentTimeDefaultFormat=()=>Object.assign({},o.currentDefaults(),d().timeFormat),o.setDefaults=e=>{e=h(e),r.validateFormat(e)&&(l=e)},o.getZeroFormat=()=>s,o.setZeroFormat=e=>s="string"==typeof e?e:null,o.hasZeroFormat=()=>null!==s,o.languageData=e=>{if(e){if(a[e])return a[e];throw Error(`Unknown tag "${e}"`)}return d()},o.registerLanguage=(t,n=!1)=>{if(!r.validateLanguage(t))throw Error("Invalid language data");a[t.languageTag]=t,n&&(e=t.languageTag)},o.setLanguage=(r,n=t.languageTag)=>{if(!a[r]){let t=r.split("-")[0],i=Object.keys(a).find(e=>e.split("-")[0]===t);return a[i]?void(e=i):void(e=n)}e=r},o.registerLanguage(t),e=t.languageTag,u=o}var g={exports:{}};(function(e){var t,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,i=Math.floor,o="[BigNumber Error] ",a=o+"Number primitive has more than 15 significant digits: ",s=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function l(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,o=e[0]+"";n<i;){for(r=14-(t=e[n++]+"").length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function c(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,l=e.e,u=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=l==u,!i||!o)return n?0:!i^r?1:-1;if(!n)return l>u^r?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return l==u?0:l>u^r?1:-1}function d(e,t,r,n){if(e<t||e>r||e!==i(e))throw Error(o+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function p(e){var t=e.c.length-1;return l(e.e/14)==t&&e.c[t]%2!=0}function f(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function h(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 m,g,y,v,b,x,A,w,S,_=B.prototype={constructor:B,toString:null,valueOf:null},k=new B(1),M=20,C=4,$=-7,O=21,E=-1e7,N=1e7,R=!1,T=1,I=0,P={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},j="0123456789abcdefghijklmnopqrstuvwxyz",z=!0;function B(e,t){var n,o,s,l,u,c,p,f,h=this;if(!(h instanceof B))return new B(e,t);if(null==t){if(e&&!0===e._isBigNumber){h.s=e.s,!e.c||e.e>N?h.c=h.e=null:e.e<E?h.c=[h.e=0]:(h.e=e.e,h.c=e.c.slice());return}if((c="number"==typeof e)&&0*e==0){if(h.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,u=e;u>=10;u/=10,l++);l>N?h.c=h.e=null:(h.e=l,h.c=[e]);return}f=String(e)}else{if(!r.test(f=String(e)))return S(h,f,c);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(l=f.indexOf("."))>-1&&(f=f.replace(".","")),(u=f.search(/e/i))>0?(l<0&&(l=u),l+=+f.slice(u+1),f=f.substring(0,u)):l<0&&(l=f.length)}else{if(d(t,2,j.length,"Base"),10==t&&z)return W(h=new B(e),M+h.e+1,C);if(f=String(e),c="number"==typeof e){if(0*e!=0)return S(h,f,c,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,B.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(a+e)}else h.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=j.slice(0,t),l=u=0,p=f.length;u<p;u++)if(0>n.indexOf(o=f.charAt(u))){if("."==o){if(u>l){l=p;continue}}else if(!s&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){s=!0,u=-1,l=0;continue}return S(h,String(e),c,t)}c=!1,(l=(f=w(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):l=f.length}for(u=0;48===f.charCodeAt(u);u++);for(p=f.length;48===f.charCodeAt(--p););if(f=f.slice(u,++p)){if(p-=u,c&&B.DEBUG&&p>15&&(e>0x1fffffffffffff||e!==i(e)))throw Error(a+h.s*e);if((l=l-u-1)>N)h.c=h.e=null;else if(l<E)h.c=[h.e=0];else{if(h.e=l,h.c=[],u=(l+1)%14,l<0&&(u+=14),u<p){for(u&&h.c.push(+f.slice(0,u)),p-=14;u<p;)h.c.push(+f.slice(u,u+=14));u=14-(f=f.slice(u)).length}else u-=p;for(;u--;f+="0");h.c.push(+f)}}else h.c=[h.e=0]}function L(e,t,r,n){var i,o,a,s,l;if(null==r?r=C:d(r,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)l=u(e.c),l=1==n||2==n&&(a<=$||a>=O)?f(l,a):h(l,a,"0");else if(o=(e=W(new B(e),t,r)).e,s=(l=u(e.c)).length,1==n||2==n&&(t<=o||o<=$)){for(;s<t;l+="0",s++);l=f(l,o)}else if(t-=a,l=h(l,o,"0"),o+1>s){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function D(e,t){for(var r,n,i=1,o=new B(e[0]);i<e.length;i++)(n=new B(e[i])).s&&(r=c(o,n))!==t&&(0!==r||o.s!==t)||(o=n);return o}function F(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)>N?e.c=e.e=null:r<E?e.c=[e.e=0]:(e.e=r,e.c=t),e}function W(e,t,r,o){var a,l,u,c,d,p,f,h=e.c;if(h){t:{for(a=1,c=h[0];c>=10;c/=10,a++);if((l=t-a)<0)l+=14,u=t,f=i((d=h[p=0])/s[a-u-1]%10);else if((p=n((l+1)/14))>=h.length)if(o){for(;h.length<=p;h.push(0));d=f=0,a=1,l%=14,u=l-14+1}else break t;else{for(a=1,d=c=h[p];c>=10;c/=10,a++);l%=14,f=(u=l-14+a)<0?0:i(d/s[a-u-1]%10)}if(o=o||t<0||null!=h[p+1]||(u<0?d:d%s[a-u-1]),o=r<4?(f||o)&&(0==r||r==(e.s<0?3:2)):f>5||5==f&&(4==r||o||6==r&&(l>0?u>0?d/s[a-u]:0:h[p-1])%10&1||r==(e.s<0?8:7)),t<1||!h[0])return h.length=0,o?(t-=e.e+1,h[0]=s[(14-t%14)%14],e.e=-t||0):h[0]=e.e=0,e;if(0==l?(h.length=p,c=1,p--):(h.length=p+1,c=s[14-l],h[p]=u>0?i(d/s[a-u]%s[u])*c:0),o)for(;;)if(0==p){for(l=1,u=h[0];u>=10;u/=10,l++);for(u=h[0]+=c,c=1;u>=10;u/=10,c++);l!=c&&(e.e++,1e14==h[0]&&(h[0]=1));break}else{if(h[p]+=c,1e14!=h[p])break;h[p--]=0,c=1}for(l=h.length;0===h[--l];h.pop());}e.e>N?e.c=e.e=null:e.e<E&&(e.c=[e.e=0])}return e}function Z(e){var t,r=e.e;return null===r?e.toString():(t=u(e.c),t=r<=$||r>=O?f(t,r):h(t,r,"0"),e.s<0?"-"+t:t)}return B.clone=e,B.ROUND_UP=0,B.ROUND_DOWN=1,B.ROUND_CEIL=2,B.ROUND_FLOOR=3,B.ROUND_HALF_UP=4,B.ROUND_HALF_DOWN=5,B.ROUND_HALF_EVEN=6,B.ROUND_HALF_CEIL=7,B.ROUND_HALF_FLOOR=8,B.EUCLID=9,B.config=B.set=function(e){var t,r;if(null!=e)if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(d(r=e[t],0,1e9,t),M=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(d(r=e[t],0,8,t),C=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(d(r[0],-1e9,0,t),d(r[1],0,1e9,t),$=r[0],O=r[1]):(d(r,-1e9,1e9,t),$=-(O=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)d(r[0],-1e9,-1,t),d(r[1],1,1e9,t),E=r[0],N=r[1];else if(d(r,-1e9,1e9,t),r)E=-(N=r<0?-r:r);else throw Error(o+t+" cannot be zero: "+r);if(e.hasOwnProperty(t="CRYPTO"))if(!!(r=e[t])===r)if(r)if("u">typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))R=r;else throw R=!r,Error(o+"crypto unavailable");else R=r;else throw Error(o+t+" not true or false: "+r);if(e.hasOwnProperty(t="MODULO_MODE")&&(d(r=e[t],0,9,t),T=r),e.hasOwnProperty(t="POW_PRECISION")&&(d(r=e[t],0,1e9,t),I=r),e.hasOwnProperty(t="FORMAT"))if("object"==typeof(r=e[t]))P=r;else throw Error(o+t+" not an object: "+r);if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(o+t+" invalid: "+r);z="0123456789"==r.slice(0,10),j=r}}else throw Error(o+"Object expected: "+e);return{DECIMAL_PLACES:M,ROUNDING_MODE:C,EXPONENTIAL_AT:[$,O],RANGE:[E,N],CRYPTO:R,MODULO_MODE:T,POW_PRECISION:I,FORMAT:P,ALPHABET:j}},B.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!B.DEBUG)return!0;var t,r,n=e.c,a=e.e,s=e.s;t:if("[object Array]"==({}).toString.call(n)){if((1===s||-1===s)&&a>=-1e9&&a<=1e9&&a===i(a)){if(0===n[0]){if(0===a&&1===n.length)return!0;break t}if((t=(a+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 t;if(0!==r)return!0}}}else if(null===n&&null===a&&(null===s||1===s||-1===s))return!0;throw Error(o+"Invalid BigNumber: "+e)},B.maximum=B.max=function(){return D(arguments,-1)},B.minimum=B.min=function(){return D(arguments,1)},m=0x20000000000000*Math.random()&2097151?function(){return i(0x20000000000000*Math.random())}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)},B.random=function(e){var t,r,a,l,u,c=0,p=[],f=new B(k);if(null==e?e=M:d(e,0,1e9),l=n(e/14),R)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(l*=2));c<l;)(u=131072*t[c]+(t[c+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(p.push(u%1e14),c+=2);c=l/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(l*=7);c<l;)(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):(p.push(u%1e14),c+=7);c=l/7}else throw R=!1,Error(o+"crypto unavailable");if(!R)for(;c<l;)(u=m())<9e15&&(p[c++]=u%1e14);for(l=p[--c],e%=14,l&&e&&(u=s[14-e],p[c]=i(l/u)*u);0===p[c];p.pop(),c--);if(c<0)p=[a=0];else{for(a=-1;0===p[0];p.splice(0,1),a-=14);for(c=1,u=p[0];u>=10;u/=10,c++);c<14&&(a-=14-c)}return f.e=a,f.c=p,f},B.sum=function(){for(var e=1,t=arguments,r=new B(t[0]);e<t.length;)r=r.plus(t[e++]);return r},w=function(){var e="0123456789";function t(e,t,r,n){for(var i,o,a=[0],s=0,l=e.length;s<l;){for(o=a.length;o--;a[o]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(r,n,i,o,a){var s,l,c,d,p,f,m,g,y=r.indexOf("."),v=M,b=C;for(y>=0&&(d=I,I=0,r=r.replace(".",""),f=(g=new B(n)).pow(r.length-y),I=d,g.c=t(h(u(f.c),f.e,"0"),10,i,e),g.e=g.c.length),c=d=(m=t(r,n,i,a?(s=j,e):(s=e,j))).length;0==m[--d];m.pop());if(!m[0])return s.charAt(0);if(y<0?--c:(f.c=m,f.e=c,f.s=o,m=(f=A(f,g,v,b,i)).c,p=f.r,c=f.e),y=m[l=c+v+1],d=i/2,p=p||l<0||null!=m[l+1],p=b<4?(null!=y||p)&&(0==b||b==(f.s<0?3:2)):y>d||y==d&&(4==b||p||6==b&&1&m[l-1]||b==(f.s<0?8:7)),l<1||!m[0])r=p?h(s.charAt(1),-v,s.charAt(0)):s.charAt(0);else{if(m.length=l,p)for(--i;++m[--l]>i;)m[l]=0,l||(++c,m=[1].concat(m));for(d=m.length;!m[--d];);for(y=0,r="";y<=d;r+=s.charAt(m[y++]));r=h(r,c,s.charAt(0))}return r}}(),A=function(){function e(e,t,r){var n,i,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)n=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+n%1e7*1e7+s)/r|0)+(n/1e7|0)+c*a,e[l]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}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,o,a,s,u){var c,d,p,f,h,m,g,y,v,b,x,A,w,S,_,k,M,C=n.s==o.s?1:-1,$=n.c,O=o.c;if(!$||!$[0]||!O||!O[0])return new B(!n.s||!o.s||($?O&&$[0]==O[0]:!O)?NaN:$&&0==$[0]||!O?0*C:C/0);for(v=(y=new B(C)).c=[],C=a+(d=n.e-o.e)+1,u||(u=1e14,d=l(n.e/14)-l(o.e/14),C=C/14|0),p=0;O[p]==($[p]||0);p++);if(O[p]>($[p]||0)&&d--,C<0)v.push(1),f=!0;else{for(S=$.length,k=O.length,p=0,C+=2,(h=i(u/(O[0]+1)))>1&&(O=e(O,h,u),$=e($,h,u),k=O.length,S=$.length),w=k,x=(b=$.slice(0,k)).length;x<k;b[x++]=0);M=[0].concat(M=O.slice()),_=O[0],O[1]>=u/2&&_++;do{if(h=0,(c=t(O,b,k,x))<0){if(A=b[0],k!=x&&(A=A*u+(b[1]||0)),(h=i(A/_))>1)for(h>=u&&(h=u-1),g=(m=e(O,h,u)).length,x=b.length;1==t(m,b,g,x);)h--,r(m,k<g?M:O,g,u),g=m.length,c=1;else 0==h&&(c=h=1),g=(m=O.slice()).length;if(g<x&&(m=[0].concat(m)),r(b,m,x,u),x=b.length,-1==c)for(;1>t(O,b,k,x);)h++,r(b,k<x?M:O,x,u),x=b.length}else 0===c&&(h++,b=[0]);v[p++]=h,b[0]?b[x++]=$[w]||0:(b=[$[w]],x=1)}while((w++<S||null!=b[0])&&C--);f=null!=b[0],v[0]||v.splice(0,1)}if(1e14==u){for(p=1,C=v[0];C>=10;C/=10,p++);W(y,a+(y.e=p+14*d-1)+1,s,f)}else y.e=d,y.r=+f;return y}}(),g=/^(-?)0([xbo])(?=\w[\w.]*$)/i,y=/^([^.]+)\.$/,v=/^\.([^.]+)$/,b=/^-?(Infinity|NaN)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,S=function(e,t,r,n){var i,a=r?t:t.replace(x,"");if(b.test(a))e.s=isNaN(a)?null:a<0?-1:1;else{if(!r&&(a=a.replace(g,function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t}),n&&(i=n,a=a.replace(y,"$1").replace(v,"0.$1")),t!=a))return new B(a,i);if(B.DEBUG)throw Error(o+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},_.absoluteValue=_.abs=function(){var e=new B(this);return e.s<0&&(e.s=1),e},_.comparedTo=function(e,t){return c(this,new B(e,t))},_.decimalPlaces=_.dp=function(e,t){var r,n,i;if(null!=e)return d(e,0,1e9),null==t?t=C:d(t,0,8),W(new B(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-l(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},_.dividedBy=_.div=function(e,t){return A(this,new B(e,t),M,C)},_.dividedToIntegerBy=_.idiv=function(e,t){return A(this,new B(e,t),0,1)},_.exponentiatedBy=_.pow=function(e,t){var r,a,s,l,u,c,d,f,h,m=this;if((e=new B(e)).c&&!e.isInteger())throw Error(o+"Exponent not an integer: "+Z(e));if(null!=t&&(t=new B(t)),c=e.e>14,!m.c||!m.c[0]||1==m.c[0]&&!m.e&&1==m.c.length||!e.c||!e.c[0])return h=new B(Math.pow(+Z(m),c?e.s*(2-p(e)):+Z(e))),t?h.mod(t):h;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new B(NaN);(a=!d&&m.isInteger()&&t.isInteger())&&(m=m.mod(t))}else{if(e.e>9&&(m.e>0||m.e<-1||(0==m.e?m.c[0]>1||c&&m.c[1]>=24e7:m.c[0]<8e13||c&&m.c[0]<=9999975e7)))return l=m.s<0&&p(e)?-0:0,m.e>-1&&(l=1/l),new B(d?1/l:l);I&&(l=n(I/14+2))}for(c?(r=new B(.5),d&&(e.s=1),f=p(e)):f=(s=Math.abs(+Z(e)))%2,h=new B(k);;){if(f){if(!(h=h.times(m)).c)break;l?h.c.length>l&&(h.c.length=l):a&&(h=h.mod(t))}if(s){if(0===(s=i(s/2)))break;f=s%2}else if(W(e=e.times(r),e.e+1,1),e.e>14)f=p(e);else{if(0==(s=+Z(e)))break;f=s%2}m=m.times(m),l?m.c&&m.c.length>l&&(m.c.length=l):a&&(m=m.mod(t))}return a?h:(d&&(h=k.div(h)),t?h.mod(t):l?W(h,I,C,u):h)},_.integerValue=function(e){var t=new B(this);return null==e?e=C:d(e,0,8),W(t,t.e+1,e)},_.isEqualTo=_.eq=function(e,t){return 0===c(this,new B(e,t))},_.isFinite=function(){return!!this.c},_.isGreaterThan=_.gt=function(e,t){return c(this,new B(e,t))>0},_.isGreaterThanOrEqualTo=_.gte=function(e,t){return 1===(t=c(this,new B(e,t)))||0===t},_.isInteger=function(){return!!this.c&&l(this.e/14)>this.c.length-2},_.isLessThan=_.lt=function(e,t){return 0>c(this,new B(e,t))},_.isLessThanOrEqualTo=_.lte=function(e,t){return -1===(t=c(this,new B(e,t)))||0===t},_.isNaN=function(){return!this.s},_.isNegative=function(){return this.s<0},_.isPositive=function(){return this.s>0},_.isZero=function(){return!!this.c&&0==this.c[0]},_.minus=function(e,t){var r,n,i,o,a=this.s;if(t=(e=new B(e,t)).s,!a||!t)return new B(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,u=e.e/14,c=this.c,d=e.c;if(!s||!u){if(!c||!d)return c?(e.s=-t,e):new B(d?this:NaN);if(!c[0]||!d[0])return d[0]?(e.s=-t,e):new B(c[0]?this:3==C?-0:0)}if(s=l(s),u=l(u),c=c.slice(),a=s-u){for((o=a<0)?(a=-a,i=c):(u=s,i=d),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=c.length)<(t=d.length))?a:t,a=t=0;t<n;t++)if(c[t]!=d[t]){o=c[t]<d[t];break}if(o&&(i=c,c=d,d=i,e.s=-e.s),(t=(n=d.length)-(r=c.length))>0)for(;t--;c[r++]=0);for(t=1e14-1;n>a;){if(c[--n]<d[n]){for(r=n;r&&!c[--r];c[r]=t);--c[r],c[n]+=1e14}c[n]-=d[n]}for(;0==c[0];c.splice(0,1),--u);return c[0]?F(e,c,u):(e.s=3==C?-1:1,e.c=[e.e=0],e)},_.modulo=_.mod=function(e,t){var r,n;return(e=new B(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==T?(n=e.s,e.s=1,r=A(this,e,0,3),e.s=n,r.s*=n):r=A(this,e,0,T),(e=this.minus(r.times(e))).c[0]||1!=T||(e.s=this.s),e):new B(this):new B(NaN)},_.multipliedBy=_.times=function(e,t){var r,n,i,o,a,s,u,c,d,p,f,h,m,g=this.c,y=(e=new B(e,t)).c;if(!g||!y||!g[0]||!y[0])return this.s&&e.s&&(!g||g[0]||y)&&(!y||y[0]||g)?(e.s*=this.s,g&&y?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(n=l(this.e/14)+l(e.e/14),e.s*=this.s,(u=g.length)<(p=y.length)&&(m=g,g=y,y=m,i=u,u=p,p=i),i=u+p,m=[];i--;m.push(0));for(i=p;--i>=0;){for(r=0,f=y[i]%1e7,h=y[i]/1e7|0,o=i+(a=u);o>i;)s=h*(c=g[--a]%1e7)+(d=g[a]/1e7|0)*f,r=((c=f*c+s%1e7*1e7+m[o]+r)/1e14|0)+(s/1e7|0)+h*d,m[o--]=c%1e14;m[o]=r}return r?++n:m.splice(0,1),F(e,m,n)},_.negated=function(){var e=new B(this);return e.s=-e.s||null,e},_.plus=function(e,t){var r,n=this.s;if(t=(e=new B(e,t)).s,!n||!t)return new B(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new B(n/0);if(!a[0]||!s[0])return s[0]?e:new B(a[0]?this:0*n)}if(i=l(i),o=l(o),a=a.slice(),n=i-o){for(n>0?(o=i,r=s):(n=-n,r=a),r.reverse();n--;r.push(0));r.reverse()}for((n=a.length)-(t=s.length)<0&&(r=s,s=a,a=r,t=n),n=0;t;)n=(a[--t]=a[t]+s[t]+n)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return n&&(a=[n].concat(a),++o),F(e,a,o)},_.precision=_.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return d(e,1,1e9),null==t?t=C:d(t,0,8),W(new B(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},_.shiftedBy=function(e){return d(e,-0x1fffffffffffff,0x1fffffffffffff),this.times("1e"+e)},_.squareRoot=_.sqrt=function(){var e,t,r,n,i,o=this.c,a=this.s,s=this.e,c=M+4,d=new B("0.5");if(1!==a||!o||!o[0])return new B(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+Z(this)))||a==1/0?(((t=u(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=l((s+1)/2)-(s<0||s%2),r=new B(t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new B(a+""),r.c[0]){for((a=(s=r.e)+c)<3&&(a=0);;)if(i=r,r=d.times(i.plus(A(this,i,c,1))),u(i.c).slice(0,a)===(t=u(r.c)).slice(0,a)){if(r.e<s&&--a,"9999"!=(t=t.slice(a-3,a+1))&&(n||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(W(r,r.e+M+2,1),e=!r.times(r).eq(this));break}if(!n&&(W(i,i.e+M+2,0),i.times(i).eq(this))){r=i;break}c+=4,a+=4,n=1}}return W(r,r.e+M+1,C,e)},_.toExponential=function(e,t){return null!=e&&(d(e,0,1e9),e++),L(this,e,t,1)},_.toFixed=function(e,t){return null!=e&&(d(e,0,1e9),e=e+this.e+1),L(this,e,t)},_.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=P;else if("object"!=typeof r)throw Error(o+"Argument not an object: "+r);if(n=this.toFixed(e,t),this.c){var i,a=n.split("."),s=+r.groupSize,l=+r.secondaryGroupSize,u=r.groupSeparator||"",c=a[0],d=a[1],p=this.s<0,f=p?c.slice(1):c,h=f.length;if(l&&(i=s,s=l,l=i,h-=i),s>0&&h>0){for(i=h%s||s,c=f.substr(0,i);i<h;i+=s)c+=u+f.substr(i,s);l>0&&(c+=u+f.slice(i)),p&&(c="-"+c)}n=d?c+(r.decimalSeparator||"")+((l=+r.fractionGroupSize)?d.replace(RegExp("\\d{"+l+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):c}return(r.prefix||"")+n+(r.suffix||"")},_.toFraction=function(e){var t,r,n,i,a,l,c,d,p,f,h,m,g=this.c;if(null!=e&&(!(c=new B(e)).isInteger()&&(c.c||1!==c.s)||c.lt(k)))throw Error(o+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+Z(c));if(!g)return new B(this);for(t=new B(k),p=r=new B(k),n=d=new B(k),m=u(g),a=t.e=m.length-this.e-1,t.c[0]=s[(l=a%14)<0?14+l:l],e=!e||c.comparedTo(t)>0?a>0?t:p:c,l=N,N=1/0,c=new B(m),d.c[0]=0;f=A(c,t,0,1),1!=(i=r.plus(f.times(n))).comparedTo(e);)r=n,n=i,p=d.plus(f.times(i=p)),d=i,t=c.minus(f.times(i=t)),c=i;return i=A(e.minus(r),n,0,1),d=d.plus(i.times(p)),r=r.plus(i.times(n)),d.s=p.s=this.s,a*=2,h=1>A(p,n,a,C).minus(this).abs().comparedTo(A(d,r,a,C).minus(this).abs())?[p,n]:[d,r],N=l,h},_.toNumber=function(){return+Z(this)},_.toPrecision=function(e,t){return null!=e&&d(e,1,1e9),L(this,e,t,2)},_.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<=$||i>=O?f(u(r.c),i):h(u(r.c),i,"0"):10===e&&z?t=h(u((r=W(new B(r),M+i+1,C)).c),r.e,"0"):(d(e,2,j.length,"Base"),t=w(h(u(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},_.valueOf=_.toJSON=function(){return Z(this)},_._isBigNumber=!0,null!=t&&B.set(t),B}()).default=t.BigNumber=t,g.exports?g.exports=t:(e||(e="u">typeof self&&self?self:window),e.BigNumber=t)})(d);var y=g.exports;let v=m(),b=f(),x={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:w,decimalSuffixes:S}=v.currentBytes(),_={scale:1024,suffixes:S,marker:"bd"},k={scale:1024,suffixes:w,marker:"b"},M={scale:1e3,suffixes:S,marker:"d"};function C(e,t,r){let n=t[0],i=Math.abs(e);if(i>=r){for(let o=1;o<t.length;++o){let a=Math.pow(r,o),s=Math.pow(r,o+1);if(i>=a&&i<s){n=t[o],e/=a;break}}n===t[0]&&(e/=Math.pow(r,t.length-1),n=t[t.length-1])}return{value:e,suffix:n}}function $(e){let t="";for(let r=0;r<e;r++)t+="0";return t}function O({instance:e,providedFormat:t,state:r=v,decimalSeparator:n,defaults:i=r.currentDefaults()}){var o,a,s,l,u;let c,d,p,f,h,m,g,b=e._value;if(0===b&&r.hasZeroFormat())return r.getZeroFormat();if(!isFinite(b))return b.toString();let w=Object.assign({},A,i,t),S=w.totalLength,_=S?0:w.characteristic,k=w.optionalCharacteristic,M=w.forceAverage,C=w.lowPrecision,E=!!S||!!M||w.average,N=S?-1:E&&void 0===t.mantissa?0:w.mantissa,R=!S&&(void 0===t.optionalMantissa?-1===N:w.optionalMantissa),T=w.trimMantissa,I=w.thousandSeparated,P=w.spaceSeparated,j=w.negative,z=w.forceSign,B=w.exponential,L=w.roundingFunction,D="";if(E){let e=function({value:e,forceAverage:t,lowPrecision:r=!0,abbreviations:n,spaceSeparated:i=!1,totalLength:o=0,roundingFunction:a=Math.round}){let s="",l=Math.abs(e),u=-1;if(t&&n[t]&&x[t]?(s=n[t],e/=x[t]):l>=x.trillion||r&&1===a(l/x.trillion)?(s=n.trillion,e/=x.trillion):l<x.trillion&&l>=x.billion||r&&1===a(l/x.billion)?(s=n.billion,e/=x.billion):l<x.billion&&l>=x.million||r&&1===a(l/x.million)?(s=n.million,e/=x.million):(l<x.million&&l>=x.thousand||r&&1===a(l/x.thousand))&&(s=n.thousand,e/=x.thousand),s&&(s=(i?" ":"")+s),o){let t=e<0,r=e.toString().split(".")[0];u=Math.max(o-(t?r.length-1:r.length),0)}return{value:e,abbreviation:s,mantissaPrecision:u}}({value:b,forceAverage:M,lowPrecision:C,abbreviations:r.currentAbbreviations(),spaceSeparated:P,roundingFunction:L,totalLength:S});b=e.value,D+=e.abbreviation,S&&(N=e.mantissaPrecision)}if(B){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=e.value,D=e.abbreviation+D}let F=function(e,t,r,n,i,o){if(-1===n)return e;let a=function(e,t,r=Math.round){return -1!==e.toString().indexOf("e")?function(e,t){let r=e.toString(),[n,i]=r.split("e"),[o,a=""]=n.split(".");if(+i>0)r=o+a+$(i-a.length);else{let e=".";e=0>+o?`-0${e}`:`0${e}`;let n=($(-i-1)+Math.abs(o)+a).substr(0,t);n.length<t&&(n+=$(t-n.length)),r=e+n}return+i>0&&t>0&&(r+=`.${$(t)}`),r}(e,t):new y(r(+`${e}e+${t}`)/Math.pow(10,t)).toFixed(t)}(t,n,o),[s,l=""]=a.toString().split(".");if(l.match(/^0+$/)&&(r||i))return s;let u=l.match(/0+$/);return i&&u?`${s}.${l.toString().slice(0,u.index)}`:a.toString()}(b.toString(),b,R,N,T,L);return o=F=function(e,t,r,n){let i=e,[o,a]=i.toString().split(".");if(o.match(/^-?0$/)&&r)return a?`${o.replace("0","")}.${a}`:o.replace("0","");let s=t<0&&0===o.indexOf("-");if(s&&(o=o.slice(1),i=i.slice(1)),o.length<n){let e=n-o.length;for(let t=0;t<e;t++)i=`0${i}`}return s&&(i=`-${i}`),i.toString()}(F,b,k,_),a=b,s=n,d=(c=r.currentDelimiters()).thousands,s=s||c.decimal,p=c.thousandsSize||3,h=(f=o.toString()).split(".")[0],m=f.split(".")[1],g=a<0&&0===h.indexOf("-"),I&&(g&&(h=h.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})(h.length,p).forEach((e,t)=>{h=h.slice(0,e+t)+d+h.slice(e+t)}),g&&(h=`-${h}`)),F=f=m?h+s+m:h,(E||B)&&(F+=D),(z||b<0)&&(l=F,F=0===(u=b)?l:0==+l?l.replace("-",""):u>0?`+${l}`:"sign"===j?l:`(${l.replace("-","")})`),F}function E(e,t){if(!e)return t;let r=Object.keys(e);return 1===r.length&&"output"===r[0]?t:e}function N(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 R=m(),T=f(),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&&D.registerLanguage(t)})}},P=p(),j={format:(...e)=>(function(e,t={},r){if("string"==typeof t&&(t=h(t)),!b.validateFormat(t))return"ERROR: invalid format";let n=t.prefix||"",i=t.postfix||"",o=function(e,t,r){var n,i,o;switch(t.output){case"currency":let a,s,l,u,c,d,p,f,h,m;return n=t=E(t,v.currentCurrencyDefaultFormat()),a=v.currentCurrency(),l=Object.assign({},A,s=Object.assign({},n)),c="",d=!!l.totalLength||!!l.forceAverage||l.average,p=s.currencyPosition||a.position,f=s.currencySymbol||a.symbol,h=void 0!==l.spaceSeparatedCurrency?l.spaceSeparatedCurrency:l.spaceSeparated,void 0===s.lowPrecision&&(s.lowPrecision=!1),h&&(c=" "),"infix"===p&&(u=c+f+c),m=O({instance:e,providedFormat:s,state:v,decimalSeparator:u}),"prefix"===p&&(m=e._value<0&&"sign"===l.negative?`-${c}${f}${m.slice(1)}`:e._value>0&&l.forceSign?`+${c}${f}${m.slice(1)}`:f+c+m),p&&"postfix"!==p||(m=m+(c=!l.spaceSeparatedAbbreviation&&d?"":c)+f),m;case"percent":let g,y,b;return i=t=E(t,v.currentPercentageDefaultFormat()),g=i.prefixSymbol,y=O({instance:r(100*e._value),providedFormat:i,state:v}),b=Object.assign({},A,i),g?`%${b.spaceSeparated?" ":""}${y}`:`${y}${b.spaceSeparated?" ":""}%`;case"byte":return function(e,t,r,n){let i=t.base||"binary",o=Object.assign({},A,t),{binarySuffixes:a,decimalSuffixes:s}=r.currentBytes(),l={general:{scale:1024,suffixes:s||S,marker:"bd"},binary:{scale:1024,suffixes:a||w,marker:"b"},decimal:{scale:1e3,suffixes:s||S,marker:"d"}}[i],{value:u,suffix:c}=C(e._value,l.suffixes,l.scale),d=O({instance:n(u),providedFormat:t,state:r,defaults:r.currentByteDefaultFormat()});return`${d}${o.spaceSeparated?" ":""}${c}`}(e,t=E(t,v.currentByteDefaultFormat()),v,r);case"time":let x,_,k;return t=E(t,v.currentTimeDefaultFormat()),x=Math.floor(e._value/60/60),_=Math.floor((e._value-60*x*60)/60),k=Math.round(e._value-60*x*60-60*_),`${x}:${_<10?"0":""}${_}:${k<10?"0":""}${k}`;case"ordinal":let M,$,N,R;return o=t=E(t,v.currentOrdinalDefaultFormat()),M=v.currentOrdinal(),$=Object.assign({},A,o),N=O({instance:e,providedFormat:o,state:v}),R=M(e._value),`${N}${$.spaceSeparated?" ":""}${R}`;default:return O({instance:e,providedFormat:t,numbro:r})}}(e,t,r);return(o=n+o)+i})(...e,D),getByteUnit:(...e)=>(function(e){return C(e._value,_.suffixes,_.scale).suffix})(...e),getBinaryByteUnit:(...e)=>(function(e){return C(e._value,k.suffixes,k.scale).suffix})(...e),getDecimalByteUnit:(...e)=>(function(e){return C(e._value,M.suffixes,M.scale).suffix})(...e),formatOrDefault:E},z={add:(e,t)=>{let r,n;return r=new y(e._value),n=t,D.isNumbro(t)&&(n=t._value),n=new y(n),e._value=r.plus(n).toNumber(),e},subtract:(e,t)=>N(e,t,D),multiply:(e,t)=>{let r,n;return r=new y(e._value),n=t,D.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,D.isNumbro(t)&&(n=t._value),n=new y(n),e._value=r.dividedBy(n).toNumber(),e},set:(e,t)=>{let r;return r=t,D.isNumbro(t)&&(r=t._value),e._value=r,e},difference:(e,t)=>{let r;return N(r=D(e._value),t,D),Math.abs(r._value)},BigNumber:y};class B{constructor(e){this._value=e}clone(){return D(this._value)}format(e={}){return j.format(this,e)}formatCurrency(e){return"string"==typeof e&&(e=h(e)),(e=j.formatOrDefault(e,R.currentCurrencyDefaultFormat())).output="currency",j.format(this,e)}formatTime(e={}){return e.output="time",j.format(this,e)}binaryByteUnits(){return j.getBinaryByteUnit(this)}decimalByteUnits(){return j.getDecimalByteUnit(this)}byteUnits(){return j.getByteUnit(this)}difference(e){return z.difference(this,e)}add(e){return z.add(this,e)}subtract(e){return z.subtract(this,e)}multiply(e){return z.multiply(this,e)}divide(e){return z.divide(this,e)}set(e){return z.set(this,L(e))}value(){return this._value}valueOf(){return this._value}}function L(e){let t=e;return D.isNumbro(e)?t=e._value:"string"==typeof e?t=D.unformat(e):isNaN(e)&&(t=NaN),t}function D(e){return new B(L(e))}D.version="2.5.0",D.isNumbro=function(e){return e instanceof B},D.language=R.currentLanguage,D.registerLanguage=R.registerLanguage,D.setLanguage=R.setLanguage,D.languages=R.languages,D.languageData=R.languageData,D.zeroFormat=R.setZeroFormat,D.defaultFormat=R.currentDefaults,D.setDefaults=R.setDefaults,D.defaultCurrencyFormat=R.currentCurrencyDefaultFormat,D.validate=T.validate,D.loadLanguagesInNode=I.loadLanguagesInNode,D.unformat=P.unformat,D.BigNumber=z.BigNumber;var F=D&&D.__esModule&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D},40362(e,t,r){"use strict";var n=r(56441);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}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:o,resetWarningCache:i};return r.PropTypes=r,r}},62688(e,t,r){e.exports=r(40362)()},56441(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98489(e,t){"use strict";var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===o||e===c||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===l||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||void 0!==e.getModuleId)||!1}},46477(e,t,r){"use strict";r.d(t,{Ay:()=>v});var n=r(49257),i=r(7490),o=r(70451),a=r.n(o),s=r(20231),l=r.n(s),u=r(33477),c=r(64863),d="unmounted",p="exited",f="entering",h="entered",m="exiting",g=function(e){function t(t,r){var n,i=e.call(this,t,r)||this,o=r&&!r.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?o?(n=p,i.appearStatus=f):n=h:n=t.unmountOnExit||t.mountOnEnter?d:p,i.state={status:n},i.nextCallback=null,i}(0,i.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===d?{status:p}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==f&&r!==h&&(t=f):(r===f||r===h)&&(t=m)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:l().findDOMNode(this);r&&(0,c.F)(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:d})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[l().findDOMNode(this),n],o=i[0],a=i[1],s=this.getTimeouts(),u=n?s.appear:s.enter;(e||r)&&1?(this.props.onEnter(o,a),this.safeSetState({status:f},function(){t.props.onEntering(o,a),t.onTransitionEnd(u,function(){t.safeSetState({status:h},function(){t.props.onEntered(o,a)})})})):this.safeSetState({status:h},function(){t.props.onEntered(o)})},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:l().findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:m},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:p},function(){e.props.onExited(n)})})})):this.safeSetState({status:p},function(){e.props.onExited(n)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:l().findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!r||n)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)},r.render=function(){var e=this.state.status;if(e===d)return null;var t=this.props,r=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,n.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a().createElement(u.A.Provider,{value:null},"function"==typeof r?r(e,i):a().cloneElement(a().Children.only(r),i))},t}(a().Component);function y(){}g.contextType=u.A,g.propTypes={},g.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:y,onEntering:y,onEntered:y,onExit:y,onExiting:y,onExited:y},g.UNMOUNTED=d,g.EXITED=p,g.ENTERING=f,g.ENTERED=h,g.EXITING=m;let v=g},44394(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(49257),i=r(68102),o=r(7490),a=r(70451),s=r.n(a),l=r(33477);function u(e,t){var r=Object.create(null);return e&&a.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=t&&(0,a.isValidElement)(e)?t(e):e}),r}function c(e,t,r){return null!=r[t]?r[t]:e.props[t]}var d=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},p=function(e){function t(t,r){var n=e.call(this,t,r)||this,i=n.handleExited.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}(0,o.A)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,i=t.children,o=t.handleExited;return{children:t.firstRender?u(e.children,function(t){return(0,a.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:c(t,"appear",e),enter:c(t,"enter",e),exit:c(t,"exit",e)})}):(Object.keys(n=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(n=0;n<i[l].length;n++){var u=i[l][n];s[i[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<o.length;n++)s[o[n]]=r(o[n]);return s}(i,r=u(e.children))).forEach(function(t){var s=n[t];if((0,a.isValidElement)(s)){var l=t in i,u=t in r,d=i[t],p=(0,a.isValidElement)(d)&&!d.props.in;u&&(!l||p)?n[t]=(0,a.cloneElement)(s,{onExited:o.bind(null,s),in:!0,exit:c(s,"exit",e),enter:c(s,"enter",e)}):u||!l||p?u&&l&&(0,a.isValidElement)(d)&&(n[t]=(0,a.cloneElement)(s,{onExited:o.bind(null,s),in:d.props.in,exit:c(s,"exit",e),enter:c(s,"enter",e)})):n[t]=(0,a.cloneElement)(s,{in:!1})}}),n),firstRender:!1}},r.handleExited=function(e,t){var r=u(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=(0,i.A)({},t.children);return delete r[e.key],{children:r}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,i=(0,n.A)(e,["component","childFactory"]),o=this.state.contextValue,a=d(this.state.children).map(r);return(delete i.appear,delete i.enter,delete i.exit,null===t)?s().createElement(l.A.Provider,{value:o},a):s().createElement(l.A.Provider,{value:o},s().createElement(t,i,a))},t}(s().Component);p.propTypes={},p.defaultProps={component:"div",childFactory:function(e){return e}};let f=p},33477(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(70451);let i=r.n(n)().createContext(null)},64863(e,t,r){"use strict";r.d(t,{F:()=>n});var n=function(e){return e.scrollTop}},23420(e){function t(){}t.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function i(){n.off(e,i),t.apply(r,arguments)}return i._=t,this.on(e,i,r)},emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,i=r.length;n<i;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],i=[];if(n&&t)for(var o=0,a=n.length;o<a;o++)n[o].fn!==t&&n[o].fn._!==t&&i.push(n[o]);return i.length?r[e]=i:delete r[e],this}},e.exports=t,e.exports.TinyEmitter=t},42915(e){"use strict";var t;t=function(){function e(){return!0}function t(){return!1}function r(){}return function n(){var i=[{name:"number",test:function(e){return"number"==typeof e}},{name:"string",test:function(e){return"string"==typeof e}},{name:"boolean",test:function(e){return"boolean"==typeof e}},{name:"Function",test:function(e){return"function"==typeof e}},{name:"Array",test:Array.isArray},{name:"Date",test:function(e){return e instanceof Date}},{name:"RegExp",test:function(e){return e instanceof RegExp}},{name:"Object",test:function(e){return"object"==typeof e&&null!==e&&e.constructor===Object}},{name:"null",test:function(e){return null===e}},{name:"undefined",test:function(e){return void 0===e}}],o={name:"any",test:e},a=[],s=[],l={types:i,conversions:s,ignore:a};function u(e){var t=j(l.types,function(t){return t.name===e});if(t)return t;if("any"===e)return o;var r=j(l.types,function(t){return t.name.toLowerCase()===e.toLowerCase()});throw TypeError('Unknown type "'+e+'"'+(r?'. Did you mean "'+r.name+'"?':""))}function c(e){return e===o?999:l.types.indexOf(e)}function d(e){var t=j(l.types,function(t){return t.test(e)});if(t)return t.name;throw TypeError("Value has unknown type. Value: "+e)}function p(e){return e.map(function(e){var t=e.types.map(v);return(e.restParam?"...":"")+t.join("|")}).join(",")}function f(e){var t=I(e);return!!t&&t.restParam}function h(e){return e.types.some(function(e){return null!=e.conversion})}function m(t){if(!t||0===t.types.length)return e;if(1===t.types.length)return u(t.types[0].name).test;if(2===t.types.length){var r=u(t.types[0].name).test,n=u(t.types[1].name).test;return function(e){return r(e)||n(e)}}var i=t.types.map(function(e){return u(e.name).test});return function(e){for(var t=0;t<i.length;t++)if(i[t](e))return!0;return!1}}function g(e,t){return t<e.params.length?e.params[t]:f(e.params)?I(e.params):null}function y(e,t,r){var n=g(e,t);return(n?r?n.types.filter(b):n.types:[]).map(v)}function v(e){return e.name}function b(e){return null===e.conversion||void 0===e.conversion}function x(e,t){var r=function(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return Object.keys(t)}(z(e,function(e){return y(e,t,!1)}));return -1!==r.indexOf("any")?["any"]:r}function A(e,t,r){var n,i,o,a=e||"unnamed",s=r;for(o=0;o<t.length;o++){var l=s.filter(function(e){var r=m(g(e,o));return(o<e.params.length||f(e.params))&&r(t[o])});if(0===l.length){if((i=x(s,o)).length>0){var u=d(t[o]);return(n=TypeError("Unexpected type of argument in function "+a+" (expected: "+i.join(" or ")+", actual: "+u+", index: "+o+")")).data={category:"wrongType",fn:a,index:o,actual:u,expected:i},n}}else s=l}var c=s.map(function(e){return f(e.params)?1/0:e.params.length});if(t.length<Math.min.apply(null,c))return(n=TypeError("Too few arguments in function "+a+" (expected: "+(i=x(s,o)).join(" or ")+", index: "+t.length+")")).data={category:"tooFewArgs",fn:a,index:t.length,expected:i},n;var p=Math.max.apply(null,c);return t.length>p?(n=TypeError("Too many arguments in function "+a+" (expected: "+p+", actual: "+t.length+")")).data={category:"tooManyArgs",fn:a,index:t.length,expectedLength:p}:(n=TypeError('Arguments of type "'+t.join(", ")+'" do not match any of the defined signatures of function '+a+".")).data={category:"mismatch",actual:t.map(d)},n}function w(e){for(var t=999,r=0;r<e.types.length;r++)b(e.types[r])&&(t=Math.min(t,e.types[r].typeIndex));return t}function S(e){for(var t=999,r=0;r<e.types.length;r++)b(e.types[r])||(t=Math.min(t,e.types[r].conversionIndex));return t}function _(e,t){var r,n,i=Math.min(e.params.length,t.params.length);if(0!=(n=e.params.some(h)-t.params.some(h)))return n;for(r=0;r<i;r++)if(0!=(n=h(e.params[r])-h(t.params[r])))return n;for(r=0;r<i;r++)if(0!==(n=function(e,t){var r;return 0!=(r=e.restParam-t.restParam)||0!=(r=h(e)-h(t))||0!=(r=w(e)-w(t))?r:S(e)-S(t)}(e.params[r],t.params[r])))return n;return e.params.length-t.params.length}function k(e){var t,r,n,i,o=[],a=[];switch(e.types.forEach(function(e){e.conversion&&(o.push(u(e.conversion.from).test),a.push(e.conversion.convert))}),a.length){case 0:return function(e){return e};case 1:return t=o[0],n=a[0],function(e){return t(e)?n(e):e};case 2:return t=o[0],r=o[1],n=a[0],i=a[1],function(e){return t(e)?n(e):r(e)?i(e):e};default:return function(e){for(var t=0;t<a.length;t++)if(o[t](e))return a[t](e);return e}}}function M(e,t){return function e(r,n,i){if(!(n<r.length))return[i.map(function(e,t){return{types:e,restParam:t===r.length-1&&f(r)}})];var o,a=r[n],s=t?a.types.filter(b):a.types;if(a.restParam){var l=s.filter(b);o=l.length<s.length?[l,s]:[s]}else o=s.map(function(e){return[e]});return z(o,function(t){return e(r,n+1,i.concat([t]))})}(e,0,[])}function C(e,n){if(0===Object.keys(n).length)throw SyntaxError("No signatures provided");var i,o=[];Object.keys(n).map(function(e){var t,r,i;return t=n[e],r=l.conversions,i=[],(""!==e.trim()&&(i=e.split(",").map(E).map(function(e,t,n){var i,o,a,s,l,d,p,f,h=(i=r,o=l=((s=0===e.indexOf("..."))?e.length>3?e.slice(3):"any":e).split("|").map(E).filter(N).filter(O),a={},i.forEach(function(e){-1!==o.indexOf(e.from)||-1===o.indexOf(e.to)||a[e.from]||(a[e.from]=e)}),d=Object.keys(a).map(function(e){return a[e]}),p=l.map(function(e){var t=u(e);return{name:e,typeIndex:c(t),test:t.test,conversion:null,conversionIndex:-1}}),f=d.map(function(e){var t=u(e.from);return{name:e.from,typeIndex:c(t),test:t.test,conversion:e,conversionIndex:r.indexOf(e)}}),{types:p.concat(f),restParam:s});if(h.restParam&&t!==n.length-1)throw SyntaxError('Unexpected rest parameter "'+e+'": only allowed for the last parameter');return h})),i.some(T))?null:{params:i,fn:t}}).filter(R).forEach(function(e){var t=j(o,function(t){return function(e,t){for(var r=Math.max(e.params.length,t.params.length),n=0;n<r;n++)if(!function(e,t){for(var r,n=0;n<e.length;n++)if(r=e[n],-1!==t.indexOf(r))return!0;return!1}(y(e,n,!0),y(t,n,!0)))return!1;var i=e.params.length,o=t.params.length,a=f(e.params),s=f(t.params);return a?s?i===o:o>=i:s?i>=o:i===o}(t,e)});if(t)throw TypeError('Conflicting signatures "'+p(t.params)+'" and "'+p(e.params)+'".');o.push(e)});var a=z(o,function(e){return(e?M(e.params,!1):[]).map(function(t){return{params:t,fn:e.fn}})}).filter(R);a.sort(_);var s=a[0]&&a[0].params.length<=2&&!f(a[0].params),d=a[1]&&a[1].params.length<=2&&!f(a[1].params),g=a[2]&&a[2].params.length<=2&&!f(a[2].params),v=a[3]&&a[3].params.length<=2&&!f(a[3].params),b=a[4]&&a[4].params.length<=2&&!f(a[4].params),x=a[5]&&a[5].params.length<=2&&!f(a[5].params),A=a.map(function(e){return function(e){var t,r,n;if(f(e)){var i,o=(t=(i=e).slice(0,i.length-1).map(m)).length,a=m(I(e)),s=function(e){for(var t=o;t<e.length;t++)if(!a(e[t]))return!1;return!0};return function(e){for(var r=0;r<t.length;r++)if(!t[r](e[r]))return!1;return s(e)&&e.length>=o+1}}return 0===e.length?function(e){return 0===e.length}:1===e.length?(r=m(e[0]),function(e){return r(e[0])&&1===e.length}):2===e.length?(r=m(e[0]),n=m(e[1]),function(e){return r(e[0])&&n(e[1])&&2===e.length}):(t=e.map(m),function(e){for(var r=0;r<t.length;r++)if(!t[r](e[r]))return!1;return e.length===t.length})}(e.params)}),w=s?m(a[0].params[0]):t,S=d?m(a[1].params[0]):t,C=g?m(a[2].params[0]):t,$=v?m(a[3].params[0]):t,B=b?m(a[4].params[0]):t,L=x?m(a[5].params[0]):t,D=s?m(a[0].params[1]):t,F=d?m(a[1].params[1]):t,W=g?m(a[2].params[1]):t,Z=v?m(a[3].params[1]):t,q=b?m(a[4].params[1]):t,V=x?m(a[5].params[1]):t,H=a.map(function(e){return function(e,t){var r=t;if(e.some(h)){var n=f(e),i=e.map(k);r=function(){for(var e=[],r=n?arguments.length-1:arguments.length,o=0;o<r;o++)e[o]=i[o](arguments[o]);return n&&(e[r]=arguments[r].map(i[r])),t.apply(this,e)}}var o=r;if(f(e)){var a=e.length-1;o=function(){return r.apply(this,P(arguments,0,a).concat([P(arguments,a)]))}}return o}(e.params,e.fn)}),U=s?H[0]:r,Y=d?H[1]:r,K=g?H[2]:r,X=v?H[3]:r,G=b?H[4]:r,Q=x?H[5]:r,J=s?a[0].params.length:-1,ee=d?a[1].params.length:-1,et=g?a[2].params.length:-1,er=v?a[3].params.length:-1,en=b?a[4].params.length:-1,ei=x?a[5].params.length:-1,eo=6*!!(s&&d&&g&&v&&b&&x),ea=a.length,es=function(){for(var t=eo;t<ea;t++)if(A[t](arguments))return H[t].apply(this,arguments);return l.onMismatch(e,arguments,a)},el=function e(t,r){return arguments.length===J&&w(t)&&D(r)?U.apply(e,arguments):arguments.length===ee&&S(t)&&F(r)?Y.apply(e,arguments):arguments.length===et&&C(t)&&W(r)?K.apply(e,arguments):arguments.length===er&&$(t)&&Z(r)?X.apply(e,arguments):arguments.length===en&&B(t)&&q(r)?G.apply(e,arguments):arguments.length===ei&&L(t)&&V(r)?Q.apply(e,arguments):es.apply(e,arguments)};try{Object.defineProperty(el,"name",{value:e})}catch(e){}return i={},a.forEach(function(e){e.params.some(h)||M(e.params,!0).forEach(function(t){i[p(t)]=e.fn})}),el.signatures=i,el}function $(e,t,r){throw A(e,t,r)}function O(e){return -1===l.ignore.indexOf(e)}function E(e){return e.trim()}function N(e){return!!e}function R(e){return null!==e}function T(e){return 0===e.types.length}function I(e){return e[e.length-1]}function P(e,t,r){return Array.prototype.slice.call(e,t,r)}function j(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function z(e,t){return Array.prototype.concat.apply([],e.map(t))}function B(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(("object"==typeof n.signatures||"string"==typeof n.signature)&&""!==n.name){if(""===t)t=n.name;else if(t!==n.name){var i=Error("Function names do not match (expected: "+t+", actual: "+n.name+")");throw i.data={actual:n.name,expected:t},i}}}return t}function L(e){var t,r={};function n(e,n){if(r.hasOwnProperty(e)&&n!==r[e])throw(t=Error('Signature "'+e+'" is defined twice')).data={signature:e},t}for(var i=0;i<e.length;i++){var o=e[i];if("object"==typeof o.signatures)for(var a in o.signatures)o.signatures.hasOwnProperty(a)&&(n(a,o.signatures[a]),r[a]=o.signatures[a]);else if("string"==typeof o.signature)n(o.signature,o),r[o.signature]=o;else throw(t=TypeError("Function is no typed-function (index: "+i+")")).data={index:i},t}return r}return(l=C("typed",{"string, Object":C,Object:function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return C(B(t),e)},"...Function":function(e){return C(B(e),L(e))},"string, ...Function":function(e,t){return C(e,L(t))}})).create=n,l.types=i,l.conversions=s,l.ignore=a,l.onMismatch=$,l.throwMismatchError=$,l.createError=A,l.convert=function(e,t){var r=d(e);if(t===r)return e;for(var n=0;n<l.conversions.length;n++){var i=l.conversions[n];if(i.from===r&&i.to===t)return i.convert(e)}throw Error("Cannot convert from "+r+" to "+t)},l.find=function(e,t){if(!e.signatures)throw TypeError("Function is no typed-function");if("string"==typeof t){r=t.split(",");for(var r,n=0;n<r.length;n++)r[n]=r[n].trim()}else if(Array.isArray(t))r=t;else throw TypeError("String array or a comma separated string expected");var i=r.join(","),o=e.signatures[i];if(o)return o;throw TypeError("Signature not found (signature: "+(e.name||"unnamed")+"("+r.join(", ")+"))")},l.addType=function(e,t){if(!e||"string"!=typeof e.name||"function"!=typeof e.test)throw TypeError("Object with properties {name: string, test: function} expected");if(!1!==t){for(var r=0;r<l.types.length;r++)if("Object"===l.types[r].name)return void l.types.splice(r,0,e)}l.types.push(e)},l.addConversion=function(e){if(!e||"string"!=typeof e.from||"string"!=typeof e.to||"function"!=typeof e.convert)throw TypeError("Object with properties {from: string, to: string, convert: function} expected");l.conversions.push(e)},l}()},"function"==typeof define&&define.amd?define([],t):e.exports=t()},85180(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(70451);function i(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:"contentBoxSize"===t?e.contentRect["inlineSize"===r?"width":"height"]:void 0}function o(e){void 0===e&&(e={});var t,r,o,a,s,l,u=e.onResize,c=(0,n.useRef)(void 0);c.current=u;var d=e.round||Math.round,p=(0,n.useRef)(),f=(0,n.useState)({width:void 0,height:void 0}),h=f[0],m=f[1],g=(0,n.useRef)(!1);(0,n.useEffect)(function(){return g.current=!1,function(){g.current=!0}},[]);var y=(0,n.useRef)({width:void 0,height:void 0}),v=(t=(0,n.useCallback)(function(t){return p.current&&p.current.box===e.box&&p.current.round===d||(p.current={box:e.box,round:d,instance:new ResizeObserver(function(t){var r=t[0],n="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",o=i(r,n,"inlineSize"),a=i(r,n,"blockSize"),s=o?d(o):void 0,l=a?d(a):void 0;if(y.current.width!==s||y.current.height!==l){var u={width:s,height:l};y.current.width=s,y.current.height=l,c.current?c.current(u):g.current||m(u)}})}),p.current.instance.observe(t,{box:e.box}),function(){p.current&&p.current.instance.unobserve(t)}},[e.box,d]),r=e.ref,o=(0,n.useRef)(null),(a=(0,n.useRef)(null)).current=r,s=(0,n.useRef)(null),(0,n.useEffect)(function(){l()}),l=(0,n.useCallback)(function(){var e=s.current,r=a.current,n=e||(r?r instanceof Element?r:r.current:null);o.current&&o.current.element===n&&o.current.subscriber===t||(o.current&&o.current.cleanup&&o.current.cleanup(),o.current={element:n,subscriber:t,cleanup:n?t(n):void 0})},[t]),(0,n.useEffect)(function(){return function(){o.current&&o.current.cleanup&&(o.current.cleanup(),o.current=null)}},[]),(0,n.useCallback)(function(e){s.current=e,l()},[l]));return(0,n.useMemo)(function(){return{ref:v,width:h.width,height:h.height}},[v,h.width,h.height])}},68102(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}r.d(t,{A:()=>n})},7490(e,t,r){"use strict";function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}r.d(t,{A:()=>i})},49257(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}r.d(t,{A:()=>n})},11750(e,t,r){"use strict";r.d(t,{A:()=>n});let n=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n}},38662(e,t,r){"use strict";r.d(t,{CN:()=>w,jM:()=>Z,lE:()=>o});var n,i=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),a=Symbol.for("immer-state");function s(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var l=Object.getPrototypeOf;function u(e){return!!e&&!!e[a]}function c(e){return!!e&&(f(e)||Array.isArray(e)||!!e[o]||!!e.constructor?.[o]||v(e)||b(e))}var d=Object.prototype.constructor.toString(),p=new WeakMap;function f(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if("function"!=typeof r)return!1;let n=p.get(r);return void 0===n&&(n=Function.toString.call(r),p.set(r,n)),n===d}function h(e,t,r=!0){0===m(e)?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function m(e){let t=e[a];return t?t.type_:Array.isArray(e)?1:v(e)?2:3*!!b(e)}function g(e,t){return 2===m(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function y(e,t,r){let n=m(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function v(e){return e instanceof Map}function b(e){return e instanceof Set}function x(e){return e.copy_||e.base_}function A(e,t){if(v(e))return new Map(e);if(b(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=f(e);if(!0!==t&&("class_only"!==t||r)){let t=l(e);return null!==t&&r?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[a];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(l(e),t)}}function w(e,t=!1){return _(e)||u(e)||!c(e)||(m(e)>1&&Object.defineProperties(e,{set:S,add:S,clear:S,delete:S}),Object.freeze(e),t&&Object.values(e).forEach(e=>w(e,!0))),e}var S={value:function(){s(2)}};function _(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var k={};function M(e){let t=k[e];return t||s(0,e),t}function C(e,t){t&&(M("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function $(e){O(e),e.drafts_.forEach(N),e.drafts_=null}function O(e){e===n&&(n=e.parent_)}function E(e){return n={drafts_:[],parent_:n,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function N(e){let t=e[a];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function R(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return void 0!==e&&e!==r?(r[a].modified_&&($(t),s(4)),c(e)&&(e=T(t,e),t.parent_||P(t,e)),t.patches_&&M("Patches").generateReplacementPatches_(r[a].base_,e,t.patches_,t.inversePatches_)):e=T(t,r,[]),$(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==i?e:void 0}function T(e,t,r){if(_(t))return t;let n=e.immer_.shouldUseStrictIteration(),i=t[a];if(!i)return h(t,(n,o)=>I(e,i,t,n,o,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return P(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;let t=i.copy_,o=t,a=!1;3===i.type_&&(o=new Set(t),t.clear(),a=!0),h(o,(n,o)=>I(e,i,t,n,o,r,a),n),P(e,t,!1),r&&e.patches_&&M("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function I(e,t,r,n,i,o,a){if(null==i||"object"!=typeof i&&!a)return;let s=_(i);if(!s||a){if(u(i)){let a=T(e,i,o&&t&&3!==t.type_&&!g(t.assigned_,n)?o.concat(n):void 0);if(y(r,n,a),!u(a))return;e.canAutoFreeze_=!1}else a&&r.add(i);if(c(i)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&s)return;T(e,i),(!t||!t.scope_.parent_)&&"symbol"!=typeof n&&(v(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&P(e,i)}}}function P(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&w(t,r)}var j={get(e,t){if(t===a)return e;let r=x(e);if(!g(r,t)){var n;let i;return n=e,(i=L(r,t))?"value"in i?i.value:i.get?.call(n.draft_):void 0}let i=r[t];return e.finalized_||!c(i)?i:i===B(e.base_,t)?(F(e),e.copy_[t]=W(i,e)):i},has:(e,t)=>t in x(e),ownKeys:e=>Reflect.ownKeys(x(e)),set(e,t,r){let n=L(x(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=B(x(e),t),i=n?.[a];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||g(e.base_,t)))return!0;F(e),D(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==B(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,F(e),D(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=x(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){s(11)},getPrototypeOf:e=>l(e.base_),setPrototypeOf(){s(12)}},z={};function B(e,t){let r=e[a];return(r?x(r):e)[t]}function L(e,t){if(!(t in e))return;let r=l(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=l(r)}}function D(e){!e.modified_&&(e.modified_=!0,e.parent_&&D(e.parent_))}function F(e){e.copy_||(e.copy_=A(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function W(e,t){let r=v(e)?M("MapSet").proxyMap_(e,t):b(e)?M("MapSet").proxySet_(e,t):function(e,t){let r=Array.isArray(e),i={type_:+!!r,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=i,a=j;r&&(o=[i],a=z);let{revoke:s,proxy:l}=Proxy.revocable(o,a);return i.draft_=l,i.revoke_=s,l}(e,t);return(t?t.scope_:n).drafts_.push(r),r}h(j,(e,t)=>{z[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),z.deleteProperty=function(e,t){return z.set.call(this,e,t,void 0)},z.set=function(e,t,r){return j.set.call(this,e[0],t,r,e[0])};var Z=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,r)=>{let n;if("function"==typeof e&&"function"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}if("function"!=typeof t&&s(6),void 0!==r&&"function"!=typeof r&&s(7),c(e)){let i=E(this),o=W(e,void 0),a=!0;try{n=t(o),a=!1}finally{a?$(i):O(i)}return C(i,r),R(n,i)}if(e&&"object"==typeof e)s(1,e);else{if(void 0===(n=t(e))&&(n=e),n===i&&(n=void 0),this.autoFreeze_&&w(n,!0),r){let t=[],i=[];M("Patches").generateReplacementPatches_(e,n,t,i),r(t,i)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return"function"==typeof e?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){var t;c(e)||s(8),u(e)&&(u(t=e)||s(10,t),e=function e(t){let r;if(!c(t)||_(t))return t;let n=t[a],i=!0;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=A(t,n.scope_.immer_.useStrictShallowCopy_),i=n.scope_.immer_.shouldUseStrictIteration()}else r=A(t,!0);return h(r,(t,n)=>{y(r,t,e(n))},i),n&&(n.finalized_=!1),r}(t));let r=E(this),n=W(e,void 0);return n[a].isManual_=!0,O(r),n}finishDraft(e,t){let r=e&&e[a];r&&r.isManual_||s(9);let{scope_:n}=r;return C(n,t),R(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=M("Patches").applyPatches_;return u(e)?n(e,t):this.produce(e,e=>n(e,t))}}().produce},18615(e,t,r){"use strict";r.d(t,{v:()=>g});var n=r(68102),i=r(32718),o=r(23420),a=r(46797),s=r(1207),l=r(49204);function u(e,t,r,n){if(!(this instanceof u))throw SyntaxError("Constructor must be called with the new operator");this.fn=e,this.count=t,this.min=r,this.max=n,this.message="Wrong number of arguments in function "+e+" ("+t+" provided, "+r+(null!=n?"-"+n:"")+" expected)",this.stack=Error().stack}u.prototype=Error(),u.prototype.constructor=Error,u.prototype.name="ArgumentsError",u.prototype.isArgumentsError=!0;var c={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null},d=["Matrix","Array"],p=["number","BigNumber","Fraction"];function f(e,t,r){var n;void 0!==e[t]&&(n=e[t],-1===r.indexOf(n))&&console.warn('Warning: Unknown value "'+e[t]+'" for configuration option "'+t+'". Available options: '+r.map(e=>JSON.stringify(e)).join(", ")+".")}var h=r(15562),m=r(16086);function g(e,t){var r,y,v=(0,n.A)({},c,t);if("function"!=typeof Object.create)throw Error("ES5 not supported by this JavaScript engine. Please load the es5-shim and es5-sham library for compatibility.");var b=((r={isNumber:a.Et,isComplex:a.Zd,isBigNumber:a.C4,isFraction:a.fU,isUnit:a.vO,isString:a.Kg,isArray:a.cy,isMatrix:a.OA,isCollection:a.P3,isDenseMatrix:a.zR,isSparseMatrix:a.AF,isRange:a._Z,isIndex:a.nw,isBoolean:a.Lm,isResultSet:a.eW,isHelp:a.gS,isFunction:a.Tn,isDate:a.$P,isRegExp:a.gd,isObject:a.Gv,isNull:a.kZ,isUndefined:a.b0,isAccessorNode:a.AS,isArrayNode:a.gO,isAssignmentNode:a.qM,isBlockNode:a.CD,isConditionalNode:a.PO,isConstantNode:a.BA,isFunctionAssignmentNode:a.m2,isFunctionNode:a.Px,isIndexNode:a.$I,isNode:a.Ll,isObjectNode:a.GJ,isOperatorNode:a.$$,isParenthesisNode:a.tv,isRangeNode:a.Ye,isSymbolNode:a.li,isChain:a.o_}).on=(y=new o).on.bind(y),r.off=y.off.bind(y),r.once=y.once.bind(y),r.emit=y.emit.bind(y),r);b.config=function(e,t){function r(r){if(!r)return(0,i.s8)(e,i.o8);var n=(0,i.s8)(e,i.o8);f(r,"matrix",d),f(r,"number",p),(0,i.zw)(e,r);var o=(0,i.s8)(e,i.o8);return t("config",o,n,(0,i.s8)(r,i.o8)),o}return r.MATRIX_OPTIONS=d,r.NUMBER_OPTIONS=p,Object.keys(c).forEach(t=>{Object.defineProperty(r,t,{get:()=>e[t],enumerable:!0,configurable:!0})}),r}(v,b.emit),b.expression={transform:{},mathWithTransform:{config:b.config}};var x={},A=function(e,t,r){function n(e,r){r&&"function"==typeof r.transform?(t.expression.transform[e]=r.transform,c(e)&&(t.expression.mathWithTransform[e]=r.transform)):(delete t.expression.transform[e],c(e)&&(t.expression.mathWithTransform[e]=r))}function o(e){return"function"==typeof e&&"object"==typeof e.signatures}function c(e){return!(0,i.mQ)(p,e)}function d(e){return void 0!==e&&void 0!==e.meta&&!0===e.meta.isTransformFunction}var p={expression:!0,type:!0,docs:!0,error:!0,json:!0,chain:!0};return function(f,h){var m=arguments.length;if(1!==m&&2!==m)throw new u("import",m,1,2);h||(h={});var g={};for(var y in!function e(t,r,n){if(Array.isArray(r))r.forEach(r=>e(t,r));else if("object"==typeof r)for(var o in r)(0,i.mQ)(r,o)&&e(t,r[o],o);else if((0,s.T$)(r)||void 0!==n){var a=(0,s.T$)(r)?d(r)?r.fn+".transform":r.fn:n;if((0,i.mQ)(t,a)&&t[a]!==r&&!h.silent)throw Error('Cannot import "'+a+'" twice');t[a]=r}else if(!h.silent)throw TypeError("Factory, Object, or Array expected")}(g,f),g)if((0,i.mQ)(g,y)){var v,b=g[y];if((0,s.T$)(b))!function(n,a){var u,f,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.fn;if((0,l.gR)(h,"."))throw Error("Factory name should not contain a nested path. Name: "+JSON.stringify(h));var m=d(n)?t.expression.transform:t,g=h in t.expression.transform,y=(0,i.mQ)(m,h)?m[h]:void 0,v=function(){var r={};n.dependencies.map(s.Py).forEach(e=>{if((0,l.gR)(e,"."))throw Error("Factory dependency should not contain a nested path. Name: "+JSON.stringify(e));"math"===e?r.math=t:"mathWithTransform"===e?r.mathWithTransform=t.expression.mathWithTransform:"classes"===e?r.classes=t:r[e]=t[e]});var i=n(r);if(i&&"function"==typeof i.transform)throw Error('Transforms cannot be attached to factory functions. Please create a separate function for it with exports.path="expression.transform"');if(void 0===y||a.override)return i;if(o(y)&&o(i))return e(y,i);if(a.silent)return y;throw Error('Cannot import "'+h+'": already exists')};n.meta&&!1===n.meta.lazy?m[h]=v():(0,i.RZ)(m,h,v),y&&g?(u=h,delete t.expression.transform[u],c(u)?t.expression.mathWithTransform[u]=t[u]:delete t.expression.mathWithTransform[u]):!d(n)&&(-1!==(f=n).fn.indexOf(".")||(0,i.mQ)(p,f.fn)||f.meta&&f.meta.isClass)||(0,i.RZ)(t.expression.mathWithTransform,h,()=>m[h]),r[h]=n,t.emit("import",h,v)}(b,h);else{if("function"==typeof(v=b)||"number"==typeof v||"string"==typeof v||"boolean"==typeof v||null===v||(0,a.vO)(v)||(0,a.Zd)(v)||(0,a.C4)(v)||(0,a.fU)(v)||(0,a.OA)(v)||Array.isArray(v))!function(i,a,s){var l;if(s.wrap&&"function"==typeof a&&(a=function(e){var r=function(){for(var r=[],n=0,i=arguments.length;n<i;n++){var o=arguments[n];r[n]=o&&o.valueOf()}return e.apply(t,r)};return e.transform&&(r.transform=e.transform),r}(a)),"function"==typeof(l=a)&&"string"==typeof l.signature&&(a=e(i,{[a.signature]:a})),o(t[i])&&o(a)){a=s.override?e(i,a.signatures):e(t[i],a),t[i]=a,delete r[i],n(i,a),t.emit("import",i,function(){return a});return}if(void 0===t[i]||s.override){t[i]=a,delete r[i],n(i,a),t.emit("import",i,function(){return a});return}if(!s.silent)throw Error('Cannot import "'+i+'": already exists')}(y,b,h);else if(!h.silent)throw TypeError("Factory, Object, or Array expected")}}}}(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return b.typed.apply(b.typed,t)},b,x);return b.import=A,b.on("config",()=>{(0,i.zu)(x).forEach(e=>{e&&e.meta&&e.meta.recreateOnConfigChange&&A(e,{override:!0})})}),b.create=g.bind(null,e),b.factory=s.P9,b.import((0,i.zu)((0,i.rU)(e))),b.ArgumentsError=u,b.DimensionError=h.h,b.IndexError=m.d,b}},95343(e,t,r){"use strict";r.d(t,{P:()=>eP});var n,i,o="0123456789abcdef",a="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",s="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",l={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},u=!0,c="[DecimalError] ",d=c+"Invalid argument: ",p=c+"Precision limit exceeded",f=c+"crypto unavailable",h="[object Decimal]",m=Math.floor,g=Math.pow,y=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,v=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,b=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,x=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,A=a.length-1,w=s.length-1,S={toStringTag:h};function _(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(o+=P(r)),o+=n;(r=7-(n=(a=e[t])+"").length)&&(o+=P(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function k(e,t,r){if(e!==~~e||e<t||e>r)throw Error(d+e)}function M(e,t,r,n){var i,o,a,s;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),o=g(10,7-t),s=e[i]%o|0,null==n?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),a=r<4&&99999==s||r>3&&49999==s||5e4==s||0==s):a=(r<4&&s+1==o||r>3&&s+1==o/2)&&(e[i+1]/o/100|0)==g(10,t-2)-1||(s==o/2||0==s)&&(e[i+1]/o/100|0)==0:t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),a=(n||r<4)&&9999==s||!n&&r>3&&4999==s):a=((n||r<4)&&s+1==o||!n&&r>3&&s+1==o/2)&&(e[i+1]/o/1e3|0)==g(10,t-3)-1,a}function C(e,t,r){for(var n,i,a=[0],s=0,l=e.length;s<l;){for(i=a.length;i--;)a[i]*=t;for(a[0]+=o.indexOf(e.charAt(s++)),n=0;n<a.length;n++)a[n]>r-1&&(void 0===a[n+1]&&(a[n+1]=0),a[n+1]+=a[n]/r|0,a[n]%=r)}return a.reverse()}S.absoluteValue=S.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),O(e)},S.ceil=function(){return O(new this.constructor(this),this.e+1,2)},S.clampedTo=S.clamp=function(e,t){var r=this.constructor;if(e=new r(e),t=new r(t),!e.s||!t.s)return new r(NaN);if(e.gt(t))throw Error(d+t);return 0>this.cmp(e)?e:this.cmp(t)>0?t:new r(this)},S.comparedTo=S.cmp=function(e){var t,r,n,i,o=this.d,a=(e=new this.constructor(e)).d,s=this.s,l=e.s;if(!o||!a)return s&&l?s!==l?s:o===a?0:!o^s<0?1:-1:NaN;if(!o[0]||!a[0])return o[0]?s:a[0]?-l:0;if(s!==l)return s;if(this.e!==e.e)return this.e>e.e^s<0?1:-1;for(t=0,r=(n=o.length)<(i=a.length)?n:i;t<r;++t)if(o[t]!==a[t])return o[t]>a[t]^s<0?1:-1;return n===i?0:n>i^s<0?1:-1},S.cosine=S.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n,i;if(t.isZero())return t;(n=t.d.length)<32?i=(1/q(4,r=Math.ceil(n/3))).toString():(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=Z(e,1,t.times(i),new e(1));for(var o=r;o--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=r,t}(n,V(n,r)),n.precision=e,n.rounding=t,O(2==i||3==i?r.neg():r,e,t,!0)):new n(1):new n(NaN)},S.cubeRoot=S.cbrt=function(){var e,t,r,n,i,o,a,s,l,c,d=this.constructor;if(!this.isFinite()||this.isZero())return new d(this);for(u=!1,(o=this.s*g(this.s*this,1/3))&&Math.abs(o)!=1/0?n=new d(o.toString()):(r=_(this.d),(o=((e=this.e)-r.length+1)%3)&&(r+=1==o||-2==o?"0":"00"),o=g(r,1/3),e=m((e+1)/3)-(e%3==(e<0?-1:2)),(n=new d(r=o==1/0?"5e"+e:(r=o.toExponential()).slice(0,r.indexOf("e")+1)+e)).s=this.s),a=(e=d.precision)+3;;)if(n=$((c=(l=(s=n).times(s).times(s)).plus(this)).plus(this).times(s),c.plus(l),a+2,1),_(s.d).slice(0,a)===(r=_(n.d)).slice(0,a)){if("9999"!=(r=r.slice(a-3,a+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(O(n,e+1,1),t=!n.times(n).times(n).eq(this));break}if(!i&&(O(s,e+1,0),s.times(s).times(s).eq(this))){n=s;break}a+=4,i=1}return u=!0,O(n,e,d.rounding,t)},S.decimalPlaces=S.dp=function(){var e,t=this.d,r=NaN;if(t){if(r=((e=t.length-1)-m(this.e/7))*7,e=t[e])for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r},S.dividedBy=S.div=function(e){return $(this,new this.constructor(e))},S.dividedToIntegerBy=S.divToInt=function(e){var t=this.constructor;return O($(this,new t(e),0,1,1),t.precision,t.rounding)},S.equals=S.eq=function(e){return 0===this.cmp(e)},S.floor=function(){return O(new this.constructor(this),this.e+1,3)},S.greaterThan=S.gt=function(e){return this.cmp(e)>0},S.greaterThanOrEqualTo=S.gte=function(e){var t=this.cmp(e);return 1==t||0===t},S.hyperbolicCosine=S.cosh=function(){var e,t,r,n,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;r=a.precision,n=a.rounding,a.precision=r+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?t=(1/q(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),o=Z(a,1,o.times(t),new a(1),!0);for(var l,u=e,c=new a(8);u--;)l=o.times(o),o=s.minus(l.times(c.minus(l.times(c))));return O(o,a.precision=r,a.rounding=n,!0)},S.hyperbolicSine=S.sinh=function(){var e,t,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,(n=i.d.length)<3)i=Z(o,2,i,i,!0);else{e=(e=1.4*Math.sqrt(n))>16?16:0|e,i=Z(o,2,i=i.times(1/q(5,e)),i,!0);for(var a,s=new o(5),l=new o(16),u=new o(20);e--;)a=i.times(i),i=i.times(s.plus(a.times(l.times(a).plus(u))))}return o.precision=t,o.rounding=r,O(i,t,r,!0)},S.hyperbolicTangent=S.tanh=function(){var e,t,r=this.constructor;return this.isFinite()?this.isZero()?new r(this):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,$(this.sinh(),this.cosh(),r.precision=e,r.rounding=t)):new r(this.s)},S.inverseCosine=S.acos=function(){var e=this,t=e.constructor,r=e.abs().cmp(1),n=t.precision,i=t.rounding;return -1!==r?0===r?e.isNeg()?T(t,n,i):new t(0):new t(NaN):e.isZero()?T(t,n+4,i).times(.5):(t.precision=n+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=n,t.rounding=i,e.times(2))},S.inverseHyperbolicCosine=S.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,u=!1,r=r.times(r).minus(1).sqrt().plus(r),u=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)},S.inverseHyperbolicSine=S.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,u=!1,r=r.times(r).plus(1).sqrt().plus(r),u=!0,n.precision=e,n.rounding=t,r.ln())},S.inverseHyperbolicTangent=S.atanh=function(){var e,t,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,Math.max(n=i.sd(),e)<-(2*i.e)-1)?O(new o(i),e,t,!0):(o.precision=r=n-i.e,i=$(i.plus(1),new o(1).minus(i),r+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5)):new o(NaN)},S.inverseSine=S.asin=function(){var e,t,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),r=o.precision,n=o.rounding,-1!==t)?0===t?((e=T(o,r+4,n).times(.5)).s=i.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2))},S.inverseTangent=S.atan=function(){var e,t,r,n,i,o,a,s,l,c=this,d=c.constructor,p=d.precision,f=d.rounding;if(c.isFinite()){if(c.isZero())return new d(c);else if(c.abs().eq(1)&&p+4<=w)return(a=T(d,p+4,f).times(.25)).s=c.s,a}else{if(!c.s)return new d(NaN);if(p+4<=w)return(a=T(d,p+4,f).times(.5)).s=c.s,a}for(d.precision=s=p+10,d.rounding=1,e=r=Math.min(28,s/7+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(u=!1,t=Math.ceil(s/7),n=1,l=c.times(c),a=new d(c),i=c;-1!==e;)if(i=i.times(l),o=a.minus(i.div(n+=2)),i=i.times(l),void 0!==(a=o.plus(i.div(n+=2))).d[t])for(e=t;a.d[e]===o.d[e]&&e--;);return r&&(a=a.times(2<<r-1)),u=!0,O(a,d.precision=p,d.rounding=f,!0)},S.isFinite=function(){return!!this.d},S.isInteger=S.isInt=function(){return!!this.d&&m(this.e/7)>this.d.length-2},S.isNaN=function(){return!this.s},S.isNegative=S.isNeg=function(){return this.s<0},S.isPositive=S.isPos=function(){return this.s>0},S.isZero=function(){return!!this.d&&0===this.d[0]},S.lessThan=S.lt=function(e){return 0>this.cmp(e)},S.lessThanOrEqualTo=S.lte=function(e){return 1>this.cmp(e)},S.logarithm=S.log=function(e){var t,r,n,i,o,a,s,l=this.constructor,c=l.precision,d=l.rounding;if(null==e)e=new l(10),t=!0;else{if(r=(e=new l(e)).d,e.s<0||!r||!r[0]||e.eq(1))return new l(NaN);t=e.eq(10)}if(r=this.d,this.s<0||!r||!r[0]||this.eq(1))return new l(r&&!r[0]?-1/0:1!=this.s?NaN:r?0:1/0);if(t)if(r.length>1)i=!0;else{for(n=r[0];n%10==0;)n/=10;i=1!==n}if(u=!1,M((s=$(o=D(this,a=c+5),t?R(l,a+10):D(e,a),a,1)).d,n=c,d))do if(a+=10,s=$(o=D(this,a),t?R(l,a+10):D(e,a),a,1),!i){+_(s.d).slice(n+1,n+15)+1==1e14&&(s=O(s,c+1,0));break}while(M(s.d,n+=10,d));return u=!0,O(s,c,d)},S.minus=S.sub=function(e){var t,r,n,i,o,a,s,l,c,d,p,f,h=this.constructor;if(e=new h(e),!this.d||!e.d)return this.s&&e.s?this.d?e.s=-e.s:e=new h(e.d||this.s!==e.s?this:NaN):e=new h(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.plus(e);if(c=this.d,f=e.d,s=h.precision,l=h.rounding,!c[0]||!f[0]){if(f[0])e.s=-e.s;else{if(!c[0])return new h(3===l?-0:0);e=new h(this)}return u?O(e,s,l):e}if(r=m(e.e/7),d=m(this.e/7),c=c.slice(),o=d-r){for((p=o<0)?(t=c,o=-o,a=f.length):(t=f,r=d,a=c.length),o>(n=Math.max(Math.ceil(s/7),a)+2)&&(o=n,t.length=1),t.reverse(),n=o;n--;)t.push(0);t.reverse()}else{for((p=(n=c.length)<(a=f.length))&&(a=n),n=0;n<a;n++)if(c[n]!=f[n]){p=c[n]<f[n];break}o=0}for(p&&(t=c,c=f,f=t,e.s=-e.s),a=c.length,n=f.length-a;n>0;--n)c[a++]=0;for(n=f.length;n>o;){if(c[--n]<f[n]){for(i=n;i&&0===c[--i];)c[i]=1e7-1;--c[i],c[n]+=1e7}c[n]-=f[n]}for(;0===c[--a];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(e.d=c,e.e=N(c,r),u?O(e,s,l):e):new h(3===l?-0:0)},S.modulo=S.mod=function(e){var t,r=this.constructor;return(e=new r(e),this.d&&e.s&&(!e.d||e.d[0]))?e.d&&(!this.d||this.d[0])?(u=!1,9==r.modulo?(t=$(this,e.abs(),0,3,1),t.s*=e.s):t=$(this,e,0,r.modulo,1),t=t.times(e),u=!0,this.minus(t)):O(new r(this),r.precision,r.rounding):new r(NaN)},S.naturalExponential=S.exp=function(){return L(this)},S.naturalLogarithm=S.ln=function(){return D(this)},S.negated=S.neg=function(){var e=new this.constructor(this);return e.s=-e.s,O(e)},S.plus=S.add=function(e){var t,r,n,i,o,a,s,l,c,d,p=this.constructor;if(e=new p(e),!this.d||!e.d)return this.s&&e.s?this.d||(e=new p(e.d||this.s===e.s?this:NaN)):e=new p(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.minus(e);if(c=this.d,d=e.d,s=p.precision,l=p.rounding,!c[0]||!d[0])return d[0]||(e=new p(this)),u?O(e,s,l):e;if(o=m(this.e/7),n=m(e.e/7),c=c.slice(),i=o-n){for(i<0?(r=c,i=-i,a=d.length):(r=d,n=o,a=c.length),i>(a=(o=Math.ceil(s/7))>a?o+1:a+1)&&(i=a,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((a=c.length)-(i=d.length)<0&&(i=a,r=d,d=c,c=r),t=0;i;)t=(c[--i]=c[i]+d[i]+t)/1e7|0,c[i]%=1e7;for(t&&(c.unshift(t),++n),a=c.length;0==c[--a];)c.pop();return e.d=c,e.e=N(c,n),u?O(e,s,l):e},S.precision=S.sd=function(e){var t;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(d+e);return this.d?(t=I(this.d),e&&this.e+1>t&&(t=this.e+1)):t=NaN,t},S.round=function(){var e=this.constructor;return O(new e(this),this.e+1,e.rounding)},S.sine=S.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:Z(e,2,t,t);r=(r=1.4*Math.sqrt(n))>16?16:0|r,t=Z(e,2,t=t.times(1/q(5,r)),t);for(var i,o=new e(5),a=new e(16),s=new e(20);r--;)i=t.times(t),t=t.times(o.plus(i.times(a.times(i).minus(s))));return t}(n,V(n,r)),n.precision=e,n.rounding=t,O(i>2?r.neg():r,e,t,!0)):new n(NaN)},S.squareRoot=S.sqrt=function(){var e,t,r,n,i,o,a=this.d,s=this.e,l=this.s,c=this.constructor;if(1!==l||!a||!a[0])return new c(!l||l<0&&(!a||a[0])?NaN:a?this:1/0);for(u=!1,0==(l=Math.sqrt(+this))||l==1/0?(((t=_(a)).length+s)%2==0&&(t+="0"),l=Math.sqrt(t),s=m((s+1)/2)-(s<0||s%2),n=new c(t=l==1/0?"5e"+s:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+s)):n=new c(l.toString()),r=(s=c.precision)+3;;)if(n=(o=n).plus($(this,o,r+2,1)).times(.5),_(o.d).slice(0,r)===(t=_(n.d)).slice(0,r)){if("9999"!=(t=t.slice(r-3,r+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(O(n,s+1,1),e=!n.times(n).eq(this));break}if(!i&&(O(o,s+1,0),o.times(o).eq(this))){n=o;break}r+=4,i=1}return u=!0,O(n,s,c.rounding,e)},S.tangent=S.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,(r=r.sin()).s=1,r=$(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,O(2==i||4==i?r.neg():r,e,t,!0)):new n(NaN)},S.times=S.mul=function(e){var t,r,n,i,o,a,s,l,c,d=this.constructor,p=this.d,f=(e=new d(e)).d;if(e.s*=this.s,!p||!p[0]||!f||!f[0])return new d(!e.s||p&&!p[0]&&!f||f&&!f[0]&&!p?NaN:!p||!f?e.s/0:0*e.s);for(r=m(this.e/7)+m(e.e/7),(l=p.length)<(c=f.length)&&(o=p,p=f,f=o,a=l,l=c,c=a),o=[],n=a=l+c;n--;)o.push(0);for(n=c;--n>=0;){for(t=0,i=l+n;i>n;)s=o[i]+f[n]*p[i-n-1]+t,o[i--]=s%1e7|0,t=s/1e7|0;o[i]=(o[i]+t)%1e7|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=N(o,r),u?O(e,d.precision,d.rounding):e},S.toBinary=function(e,t){return H(this,2,e,t)},S.toDecimalPlaces=S.toDP=function(e,t){var r=this,n=r.constructor;return(r=new n(r),void 0===e)?r:(k(e,0,1e9),void 0===t?t=n.rounding:k(t,0,8),O(r,e+r.e+1,t))},S.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=E(n,!0):(k(e,0,1e9),void 0===t?t=i.rounding:k(t,0,8),r=E(n=O(new i(n),e+1,t),!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r},S.toFixed=function(e,t){var r,n,i=this.constructor;return void 0===e?r=E(this):(k(e,0,1e9),void 0===t?t=i.rounding:k(t,0,8),r=E(n=O(new i(this),e+this.e+1,t),!1,e+n.e+1)),this.isNeg()&&!this.isZero()?"-"+r:r},S.toFraction=function(e){var t,r,n,i,o,a,s,l,c,p,f,h,m=this.d,y=this.constructor;if(!m)return new y(this);if(c=r=new y(1),n=l=new y(0),a=(o=(t=new y(n)).e=I(m)-this.e-1)%7,t.d[0]=g(10,a<0?7+a:a),null==e)e=o>0?t:c;else{if(!(s=new y(e)).isInt()||s.lt(c))throw Error(d+s);e=s.gt(t)?o>0?t:c:s}for(u=!1,s=new y(_(m)),p=y.precision,y.precision=o=7*m.length*2;f=$(s,t,0,1,1),1!=(i=r.plus(f.times(n))).cmp(e);)r=n,n=i,i=c,c=l.plus(f.times(i)),l=i,i=t,t=s.minus(f.times(i)),s=i;return i=$(e.minus(r),n,0,1,1),l=l.plus(i.times(c)),r=r.plus(i.times(n)),l.s=c.s=this.s,h=1>$(c,n,o,1).minus(this).abs().cmp($(l,r,o,1).minus(this).abs())?[c,n]:[l,r],y.precision=p,u=!0,h},S.toHexadecimal=S.toHex=function(e,t){return H(this,16,e,t)},S.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),null==e){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),void 0===t?t=n.rounding:k(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(u=!1,r=$(r,e,0,t,1).times(e),u=!0,O(r)):(e.s=r.s,r=e),r},S.toNumber=function(){return+this},S.toOctal=function(e,t){return H(this,8,e,t)},S.toPower=S.pow=function(e){var t,r,n,i,o,a,s=this,l=s.constructor,c=+(e=new l(e));if(!s.d||!e.d||!s.d[0]||!e.d[0])return new l(g(+s,c));if((s=new l(s)).eq(1))return s;if(n=l.precision,o=l.rounding,e.eq(1))return O(s,n,o);if((t=m(e.e/7))>=e.d.length-1&&(r=c<0?-c:c)<=0x1fffffffffffff)return i=j(l,s,r,n),e.s<0?new l(1).div(i):O(i,n,o);if((a=s.s)<0){if(t<e.d.length-1)return new l(NaN);if((1&e.d[t])==0&&(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(t=0!=(r=g(+s,c))&&isFinite(r)?new l(r+"").e:m(c*(Math.log("0."+_(s.d))/Math.LN10+s.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?a/0:0):(u=!1,l.rounding=s.s=1,r=Math.min(12,(t+"").length),(i=L(e.times(D(s,n+r)),n)).d&&M((i=O(i,n+5,1)).d,n,o)&&(t=n+10,+_((i=O(L(e.times(D(s,t+r)),t),t+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=O(i,n+1,0))),i.s=a,u=!0,l.rounding=o,O(i,n,o))},S.toPrecision=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=E(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(k(e,1,1e9),void 0===t?t=i.rounding:k(t,0,8),r=E(n=O(new i(n),e,t),e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r},S.toSignificantDigits=S.toSD=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(k(e,1,1e9),void 0===t?t=r.rounding:k(t,0,8)),O(new r(this),e,t)},S.toString=function(){var e=this.constructor,t=E(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()&&!this.isZero()?"-"+t:t},S.truncated=S.trunc=function(){return O(new this.constructor(this),this.e+1,1)},S.valueOf=S.toJSON=function(){var e=this.constructor,t=E(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()?"-"+t:t};var $=function(){function e(e,t,r){var n,i=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+i,e[o]=n%r|0,i=n/r|0;return i&&e.unshift(i),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}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.shift()}return function(i,o,a,s,l,u){var c,d,p,f,h,g,y,v,b,x,A,w,S,_,k,M,C,$,E,N,R=i.constructor,T=i.s==o.s?1:-1,I=i.d,P=o.d;if(!I||!I[0]||!P||!P[0])return new R(!i.s||!o.s||(I?P&&I[0]==P[0]:!P)?NaN:I&&0==I[0]||!P?0*T:T/0);for(u?(h=1,d=i.e-o.e):(u=1e7,h=7,d=m(i.e/h)-m(o.e/h)),E=P.length,C=I.length,x=(b=new R(T)).d=[],p=0;P[p]==(I[p]||0);p++);if(P[p]>(I[p]||0)&&d--,null==a?(_=a=R.precision,s=R.rounding):_=l?a+(i.e-o.e)+1:a,_<0)x.push(1),g=!0;else{if(_=_/h+2|0,p=0,1==E){for(f=0,P=P[0],_++;(p<C||f)&&_--;p++)k=f*u+(I[p]||0),x[p]=k/P|0,f=k%P|0;g=f||p<C}else{for((f=u/(P[0]+1)|0)>1&&(P=e(P,f,u),I=e(I,f,u),E=P.length,C=I.length),M=E,w=(A=I.slice(0,E)).length;w<E;)A[w++]=0;(N=P.slice()).unshift(0),$=P[0],P[1]>=u/2&&++$;do f=0,(c=t(P,A,E,w))<0?(S=A[0],E!=w&&(S=S*u+(A[1]||0)),(f=S/$|0)>1?(f>=u&&(f=u-1),v=(y=e(P,f,u)).length,w=A.length,1==(c=t(y,A,v,w))&&(f--,r(y,E<v?N:P,v,u))):(0==f&&(c=f=1),y=P.slice()),(v=y.length)<w&&y.unshift(0),r(A,y,w,u),-1==c&&(w=A.length,(c=t(P,A,E,w))<1&&(f++,r(A,E<w?N:P,w,u))),w=A.length):0===c&&(f++,A=[0]),x[p++]=f,c&&A[0]?A[w++]=I[M]||0:(A=[I[M]],w=1);while((M++<C||void 0!==A[0])&&_--);g=void 0!==A[0]}x[0]||x.shift()}if(1==h)b.e=d,n=g;else{for(p=1,f=x[0];f>=10;f/=10)p++;b.e=p+d*h-1,O(b,l?a+b.e+1:a,s,g)}return b}}();function O(e,t,r,n){var i,o,a,s,l,c,d,p,f,h=e.constructor;t:if(null!=t){if(!(p=e.d))return e;for(i=1,s=p[0];s>=10;s/=10)i++;if((o=t-i)<0)o+=7,a=t,l=(d=p[f=0])/g(10,i-a-1)%10|0;else if((f=Math.ceil((o+1)/7))>=(s=p.length))if(n){for(;s++<=f;)p.push(0);d=l=0,i=1,o%=7,a=o-7+1}else break t;else{for(i=1,d=s=p[f];s>=10;s/=10)i++;o%=7,l=(a=o-7+i)<0?0:d/g(10,i-a-1)%10|0}if(n=n||t<0||void 0!==p[f+1]||(a<0?d:d%g(10,i-a-1)),c=r<4?(l||n)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||n||6==r&&(o>0?a>0?d/g(10,i-a):0:p[f-1])%10&1||r==(e.s<0?8:7)),t<1||!p[0])return p.length=0,c?(t-=e.e+1,p[0]=g(10,(7-t%7)%7),e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=f,s=1,f--):(p.length=f+1,s=g(10,7-o),p[f]=a>0?(d/g(10,i-a)%g(10,a)|0)*s:0),c)for(;;)if(0==f){for(o=1,a=p[0];a>=10;a/=10)o++;for(a=p[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(e.e++,1e7==p[0]&&(p[0]=1));break}else{if(p[f]+=s,1e7!=p[f])break;p[f--]=0,s=1}for(o=p.length;0===p[--o];)p.pop()}return u&&(e.e>h.maxE?(e.d=null,e.e=NaN):e.e<h.minE&&(e.e=0,e.d=[0])),e}function E(e,t,r){if(!e.isFinite())return F(e);var n,i=e.e,o=_(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+P(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+P(-i-1)+o,r&&(n=r-a)>0&&(o+=P(n))):i>=a?(o+=P(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+P(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=P(n))),o}function N(e,t){var r=e[0];for(t*=7;r>=10;r/=10)t++;return t}function R(e,t,r){if(t>A)throw u=!0,r&&(e.precision=r),Error(p);return O(new e(a),t,1,!0)}function T(e,t,r){if(t>w)throw Error(p);return O(new e(s),t,r,!0)}function I(e){var t=e.length-1,r=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function P(e){for(var t="";e--;)t+="0";return t}function j(e,t,r,n){var i,o=new e(1),a=Math.ceil(n/7+4);for(u=!1;;){if(r%2&&U((o=o.times(t)).d,a)&&(i=!0),0===(r=m(r/2))){r=o.d.length-1,i&&0===o.d[r]&&++o.d[r];break}U((t=t.times(t)).d,a)}return u=!0,o}function z(e){return 1&e.d[e.d.length-1]}function B(e,t,r){for(var n,i,o=new e(t[0]),a=0;++a<t.length;){if(!(i=new e(t[a])).s){o=i;break}((n=o.cmp(i))===r||0===n&&o.s===r)&&(o=i)}return o}function L(e,t){var r,n,i,o,a,s,l,c=0,d=0,p=0,f=e.constructor,h=f.rounding,m=f.precision;if(!e.d||!e.d[0]||e.e>17)return new f(e.d?!e.d[0]?1:e.s<0?0:1/0:e.s?e.s<0?0:e:0/0);for(null==t?(u=!1,l=m):l=t,s=new f(.03125);e.e>-2;)e=e.times(s),p+=5;for(l+=n=Math.log(g(2,p))/Math.LN10*2+5|0,r=o=a=new f(1),f.precision=l;;){if(o=O(o.times(e),l,1),r=r.times(++d),_((s=a.plus($(o,r,l,1))).d).slice(0,l)===_(a.d).slice(0,l)){for(i=p;i--;)a=O(a.times(a),l,1);if(null!=t)return f.precision=m,a;if(!(c<3&&M(a.d,l-n,h,c)))return O(a,f.precision=m,h,u=!0);f.precision=l+=10,r=o=s=new f(1),d=0,c++}a=s}}function D(e,t){var r,n,i,o,a,s,l,c,d,p,f,h=1,m=e,g=m.d,y=m.constructor,v=y.rounding,b=y.precision;if(m.s<0||!g||!g[0]||!m.e&&1==g[0]&&1==g.length)return new y(g&&!g[0]?-1/0:1!=m.s?NaN:g?0:m);if(null==t?(u=!1,d=b):d=t,y.precision=d+=10,n=(r=_(g)).charAt(0),!(15e14>Math.abs(o=m.e)))return c=R(y,d+2,b).times(o+""),m=D(new y(n+"."+r.slice(1)),d-10).plus(c),y.precision=b,null==t?O(m,b,v,u=!0):m;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=_((m=m.times(e)).d)).charAt(0),h++;for(o=m.e,n>1?(m=new y("0."+r),o++):m=new y(n+"."+r.slice(1)),p=m,l=a=m=$(m.minus(1),m.plus(1),d,1),f=O(m.times(m),d,1),i=3;;){if(a=O(a.times(f),d,1),_((c=l.plus($(a,new y(i),d,1))).d).slice(0,d)===_(l.d).slice(0,d)){if(l=l.times(2),0!==o&&(l=l.plus(R(y,d+2,b).times(o+""))),l=$(l,new y(h),d,1),null!=t)return y.precision=b,l;if(!M(l.d,d-10,v,s))return O(l,y.precision=b,v,u=!0);y.precision=d+=10,c=a=m=$(p.minus(1),p.plus(1),d,1),f=O(m.times(m),d,1),i=s=1}l=c,i+=2}}function F(e){return String(e.s*e.s/0)}function W(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);n++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(n,i)){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";e.d.push(+t),u&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function Z(e,t,r,n,i){var o,a,s,l,c=e.precision,d=Math.ceil(c/7);for(u=!1,l=r.times(r),s=new e(n);;){if(a=$(s.times(l),new e(t++*t++),c,1),s=i?n.plus(a):n.minus(a),n=$(a.times(l),new e(t++*t++),c,1),void 0!==(a=s.plus(n)).d[d]){for(o=d;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=n,n=a,a=o}return u=!0,a.d.length=d+1,a}function q(e,t){for(var r=e;--t;)r*=e;return r}function V(e,t){var r,n=t.s<0,o=T(e,e.precision,1),a=o.times(.5);if((t=t.abs()).lte(a))return i=n?4:1,t;if((r=t.divToInt(o)).isZero())i=n?3:2;else{if((t=t.minus(r.times(o))).lte(a))return i=z(r)?n?2:3:n?4:1,t;i=z(r)?n?1:4:n?3:2}return t.minus(o).abs()}function H(e,t,r,i){var a,s,l,u,c,d,p,f,h,m=e.constructor,g=void 0!==r;if(g?(k(r,1,1e9),void 0===i?i=m.rounding:k(i,0,8)):(r=m.precision,i=m.rounding),e.isFinite()){for(l=(p=E(e)).indexOf("."),g?(a=2,16==t?r=4*r-3:8==t&&(r=3*r-2)):a=t,l>=0&&(p=p.replace(".",""),(h=new m(1)).e=p.length-l,h.d=C(E(h),10,a),h.e=h.d.length),s=c=(f=C(p,10,a)).length;0==f[--c];)f.pop();if(f[0]){if(l<0?s--:((e=new m(e)).d=f,e.e=s,f=(e=$(e,h,r,i,0,a)).d,s=e.e,d=n),l=f[r],u=a/2,d=d||void 0!==f[r+1],d=i<4?(void 0!==l||d)&&(0===i||i===(e.s<0?3:2)):l>u||l===u&&(4===i||d||6===i&&1&f[r-1]||i===(e.s<0?8:7)),f.length=r,d)for(;++f[--r]>a-1;)f[r]=0,r||(++s,f.unshift(1));for(c=f.length;!f[c-1];--c);for(l=0,p="";l<c;l++)p+=o.charAt(f[l]);if(g){if(c>1)if(16==t||8==t){for(l=16==t?4:3,--c;c%l;c++)p+="0";for(c=(f=C(p,a,t)).length;!f[c-1];--c);for(l=1,p="1.";l<c;l++)p+=o.charAt(f[l])}else p=p.charAt(0)+"."+p.slice(1);p=p+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)p="0"+p;p="0."+p}else if(++s>c)for(s-=c;s--;)p+="0";else s<c&&(p=p.slice(0,s)+"."+p.slice(s))}else p=g?"0p+0":"0";p=(16==t?"0x":2==t?"0b":8==t?"0o":"")+p}else p=F(e);return e.s<0?"-"+p:p}function U(e,t){if(e.length>t)return e.length=t,!0}function Y(e){return new this(e).abs()}function K(e){return new this(e).acos()}function X(e){return new this(e).acosh()}function G(e,t){return new this(e).plus(t)}function Q(e){return new this(e).asin()}function J(e){return new this(e).asinh()}function ee(e){return new this(e).atan()}function et(e){return new this(e).atanh()}function er(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,o=n+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(r=t.s<0?T(this,n,i):new this(0)).s=e.s:!e.d||t.isZero()?(r=T(this,o,1).times(.5)).s=e.s:t.s<0?(this.precision=o,this.rounding=1,r=this.atan($(e,t,o,1)),t=T(this,o,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan($(e,t,o,1)):(r=T(this,o,1).times(t.s>0?.25:.75)).s=e.s:r=new this(NaN),r}function en(e){return new this(e).cbrt()}function ei(e){return O(e=new this(e),e.e+1,2)}function eo(e,t,r){return new this(e).clamp(t,r)}function ea(e){if(!e||"object"!=typeof e)throw Error(c+"Object expected");var t,r,n,i=!0===e.defaults,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(t=0;t<o.length;t+=3)if(r=o[t],i&&(this[r]=l[r]),void 0!==(n=e[r]))if(m(n)===n&&n>=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(d+r+": "+n);if(r="crypto",i&&(this[r]=l[r]),void 0!==(n=e[r]))if(!0===n||!1===n||0===n||1===n)if(n)if("u">typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(f);else this[r]=!1;else throw Error(d+r+": "+n);return this}function es(e){return new this(e).cos()}function el(e){return new this(e).cosh()}function eu(e,t){return new this(e).div(t)}function ec(e){return new this(e).exp()}function ed(e){return O(e=new this(e),e.e+1,3)}function ep(){var e,t,r=new this(0);for(e=0,u=!1;e<arguments.length;)if(t=new this(arguments[e++]),t.d)r.d&&(r=r.plus(t.times(t)));else{if(t.s)return u=!0,new this(1/0);r=t}return u=!0,r.sqrt()}function ef(e){return e instanceof eI||e&&e.toStringTag===h||!1}function eh(e){return new this(e).ln()}function em(e,t){return new this(e).log(t)}function eg(e){return new this(e).log(2)}function ey(e){return new this(e).log(10)}function ev(){return B(this,arguments,-1)}function eb(){return B(this,arguments,1)}function ex(e,t){return new this(e).mod(t)}function eA(e,t){return new this(e).mul(t)}function ew(e,t){return new this(e).pow(t)}function eS(e){var t,r,n,i,o=0,a=new this(1),s=[];if(void 0===e?e=this.precision:k(e,1,1e9),n=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(n));o<n;)(i=t[o])>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);o<n;)(i=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((127&t[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,o):(s.push(i%1e7),o+=4);o=n/4}else throw Error(f);else for(;o<n;)s[o++]=1e7*Math.random()|0;for(n=s[--o],e%=7,n&&e&&(i=g(10,7-e),s[o]=(n/i|0)*i);0===s[o];o--)s.pop();if(o<0)r=0,s=[0];else{for(r=-1;0===s[0];r-=7)s.shift();for(n=1,i=s[0];i>=10;i/=10)n++;n<7&&(r-=7-n)}return a.e=r,a.d=s,a}function e_(e){return O(e=new this(e),e.e+1,this.rounding)}function ek(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function eM(e){return new this(e).sin()}function eC(e){return new this(e).sinh()}function e$(e){return new this(e).sqrt()}function eO(e,t){return new this(e).sub(t)}function eE(){var e=0,t=arguments,r=new this(t[0]);for(u=!1;r.s&&++e<t.length;)r=r.plus(t[e]);return u=!0,O(r,this.precision,this.rounding)}function eN(e){return new this(e).tan()}function eR(e){return new this(e).tanh()}function eT(e){return O(e=new this(e),e.e+1,1)}S[Symbol.for("nodejs.util.inspect.custom")]=S.toString,S[Symbol.toStringTag]="Decimal";var eI=S.constructor=function e(t){var r,n,i;function o(e){var t,r,n;if(!(this instanceof o))return new o(e);if(this.constructor=o,ef(e)){this.s=e.s,u?!e.d||e.e>o.maxE?(this.e=NaN,this.d=null):e.e<o.minE?(this.e=0,this.d=[0]):(this.e=e.e,this.d=e.d.slice()):(this.e=e.e,this.d=e.d?e.d.slice():e.d);return}if("number"==(n=typeof e)){if(0===e){this.s=1/e<0?-1:1,this.e=0,this.d=[0];return}if(e<0?(e=-e,this.s=-1):this.s=1,e===~~e&&e<1e7){for(t=0,r=e;r>=10;r/=10)t++;u?t>o.maxE?(this.e=NaN,this.d=null):t<o.minE?(this.e=0,this.d=[0]):(this.e=t,this.d=[e]):(this.e=t,this.d=[e]);return}if(0*e!=0){e||(this.s=NaN),this.e=NaN,this.d=null;return}return W(this,e.toString())}if("string"===n)return 45===(r=e.charCodeAt(0))?(e=e.slice(1),this.s=-1):(43===r&&(e=e.slice(1)),this.s=1),x.test(e)?W(this,e):function(e,t){var r,n,i,o,a,s,l,c,p;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),x.test(t))return W(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(v.test(t))r=16,t=t.toLowerCase();else if(y.test(t))r=2;else if(b.test(t))r=8;else throw Error(d+t);for((o=t.search(/p/i))>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),a=(o=t.indexOf("."))>=0,n=e.constructor,a&&(o=(s=(t=t.replace(".","")).length)-o,i=j(n,new n(r),o,2*o)),o=p=(c=C(t,r,1e7)).length-1;0===c[o];--o)c.pop();return o<0?new n(0*e.s):(e.e=N(c,p),e.d=c,u=!1,a&&(e=$(e,i,4*s)),l&&(e=e.times(54>Math.abs(l)?g(2,l):eI.pow(2,l))),u=!0,e)}(this,e);if("bigint"===n)return e<0?(e=-e,this.s=-1):this.s=1,W(this,e.toString());throw Error(d+e)}if(o.prototype=S,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=ea,o.clone=e,o.isDecimal=ef,o.abs=Y,o.acos=K,o.acosh=X,o.add=G,o.asin=Q,o.asinh=J,o.atan=ee,o.atanh=et,o.atan2=er,o.cbrt=en,o.ceil=ei,o.clamp=eo,o.cos=es,o.cosh=el,o.div=eu,o.exp=ec,o.floor=ed,o.hypot=ep,o.ln=eh,o.log=em,o.log10=ey,o.log2=eg,o.max=ev,o.min=eb,o.mod=ex,o.mul=eA,o.pow=ew,o.random=eS,o.round=e_,o.sign=ek,o.sin=eM,o.sinh=eC,o.sqrt=e$,o.sub=eO,o.sum=eE,o.tan=eN,o.tanh=eR,o.trunc=eT,void 0===t&&(t={}),t&&!0!==t.defaults)for(r=0,i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return o.config(t),o}(l);a=new eI(a),s=new eI(s);var eP={createBigNumberClass:(0,r(1207).P9)("BigNumber",["?on","config"],e=>{var{on:t,config:r}=e,n=eI.clone({precision:r.precision,modulo:eI.EUCLID});return n.prototype=Object.create(n.prototype),n.prototype.type="BigNumber",n.prototype.isBigNumber=!0,n.prototype.toJSON=function(){return{mathjs:"BigNumber",value:this.toString()}},n.fromJSON=function(e){return new n(e.value)},t&&t("config",function(e,t){e.precision!==t.precision&&n.config({precision:e.precision})}),n},{isClass:!0})}},80185(e,t,r){"use strict";r.d(t,{k:()=>d});var n=r(27340),i=r(46797),o=r(49204),a=r(93988),s=r(55624),l=r(32718),u=r(15562),c=(0,r(1207).P9)("DenseMatrix",["Matrix"],e=>{var{Matrix:t}=e;function r(e,t){if(!(this instanceof r))throw SyntaxError("Constructor must be called with the new operator");if(t&&!(0,i.Kg)(t))throw Error("Invalid datatype: "+t);if((0,i.OA)(e))"DenseMatrix"===e.type?(this._data=(0,l.o8)(e._data),this._size=(0,l.o8)(e._size)):(this._data=e.toArray(),this._size=e.size()),this._datatype=t||e._datatype;else if(e&&(0,i.cy)(e.data)&&(0,i.cy)(e.size))this._data=e.data,this._size=e.size,(0,o.tf)(this._data,this._size),this._datatype=t||e.datatype;else if((0,i.cy)(e))this._data=function e(t){for(var r=0,n=t.length;r<n;r++){var o=t[r];(0,i.cy)(o)?t[r]=e(o):o&&!0===o.isMatrix&&(t[r]=e(o.valueOf()))}return t}(e),this._size=(0,o.LO)(this._data),(0,o.tf)(this._data,this._size),this._datatype=t;else if(e)throw TypeError("Unsupported type of data ("+(0,i.QP)(e)+")");else this._data=[],this._size=[0],this._datatype=t}function n(e,t,r){if(0===t.length){for(var n=e._data;(0,i.cy)(n);)n=n[0];return n}return e._size=t.slice(0),e._data=(0,o.XR)(e._data,e._size,r),e}function c(e,t,r){for(var i=e._size.slice(0),o=!1;i.length<t.length;)i.push(0),o=!0;for(var a=0,s=t.length;a<s;a++)t[a]>i[a]&&(i[a]=t[a],o=!0);o&&n(e,i,r)}return r.prototype=new t,r.prototype.createDenseMatrix=function(e,t){return new r(e,t)},r.prototype.type="DenseMatrix",r.prototype.isDenseMatrix=!0,r.prototype.getDataType=function(){return(0,o.ig)(this._data,i.QP)},r.prototype.storage=function(){return"dense"},r.prototype.datatype=function(){return this._datatype},r.prototype.create=function(e,t){return new r(e,t)},r.prototype.subset=function(e,t,n){switch(arguments.length){case 1:return function(e,t){if(!(0,i.nw)(t))throw TypeError("Invalid index");if(t.isScalar())return e.get(t.min());var n=t.size();if(n.length!==e._size.length)throw new u.h(n.length,e._size.length);for(var a=t.min(),s=t.max(),l=0,c=e._size.length;l<c;l++)(0,o.r7)(a[l],e._size[l]),(0,o.r7)(s[l],e._size[l]);return new r(function e(t,r,n,i){var a=i===n-1,s=r.dimension(i);return a?s.map(function(e){return(0,o.r7)(e,t.length),t[e]}).valueOf():s.map(function(a){return(0,o.r7)(a,t.length),e(t[a],r,n,i+1)}).valueOf()}(e._data,t,n.length,0),e._datatype)}(this,e);case 2:case 3:return function(e,t,r,n){if(!t||!0!==t.isIndex)throw TypeError("Invalid index");var a,s=t.size(),d=t.isScalar();if((0,i.OA)(r)?(a=r.size(),r=r.valueOf()):a=(0,o.LO)(r),d){if(0!==a.length)throw TypeError("Scalar expected");e.set(t.min(),r,n)}else{if(s.length<e._size.length)throw new u.h(s.length,e._size.length,"<");if(a.length<s.length){for(var p=0,f=0;1===s[p]&&1===a[p];)p++;for(;1===s[p];)f++,p++;r=(0,o.iD)(r,s.length,f,a)}if(!(0,l.QO)(s,a))throw new u.h(s,a,">");c(e,t.max().map(function(e){return e+1}),n);var h=s.length;!function e(t,r,n,i,a){var s=a===i-1,l=r.dimension(a);s?l.forEach(function(e,r){(0,o.r7)(e),t[e]=n[r[0]]}):l.forEach(function(s,l){(0,o.r7)(s),e(t[s],r,n[l[0]],i,a+1)})}(e._data,t,r,h,0)}return e}(this,e,t,n);default:throw SyntaxError("Wrong number of arguments")}},r.prototype.get=function(e){if(!(0,i.cy)(e))throw TypeError("Array expected");if(e.length!==this._size.length)throw new u.h(e.length,this._size.length);for(var t=0;t<e.length;t++)(0,o.r7)(e[t],this._size[t]);for(var r=this._data,n=0,a=e.length;n<a;n++){var s=e[n];(0,o.r7)(s,r.length),r=r[s]}return r},r.prototype.set=function(e,t,r){if(!(0,i.cy)(e))throw TypeError("Array expected");if(e.length<this._size.length)throw new u.h(e.length,this._size.length,"<");c(this,e.map(function(e){return e+1}),r);var n,a,s,l=this._data;for(n=0,a=e.length-1;n<a;n++)s=e[n],(0,o.r7)(s,l.length),l=l[s];return s=e[e.length-1],(0,o.r7)(s,l.length),l[s]=t,this},r.prototype.resize=function(e,t,r){if(!(0,i.P3)(e))throw TypeError("Array or Matrix expected");var o=e.valueOf().map(e=>Array.isArray(e)&&1===e.length?e[0]:e);return n(r?this.clone():this,o,t)},r.prototype.reshape=function(e,t){var r=t?this.clone():this;r._data=(0,o.tQ)(r._data,e);var n=r._size.reduce((e,t)=>e*t);return r._size=(0,o.cs)(e,n),r},r.prototype.clone=function(){return new r({data:(0,l.o8)(this._data),size:(0,l.o8)(this._size),datatype:this._datatype})},r.prototype.size=function(){return this._size.slice(0)},r.prototype.map=function(e){var t=this,n=function r(n,o){return(0,i.cy)(n)?n.map(function(e,t){return r(e,o.concat(t))}):e(n,o,t)}(this._data,[]),a=void 0!==this._datatype?(0,o.ig)(n,i.QP):void 0;return new r(n,a)},r.prototype.forEach=function(e){var t=this;!function r(n,o){(0,i.cy)(n)?n.forEach(function(e,t){r(e,o.concat(t))}):e(n,o,t)}(this._data,[])},r.prototype[Symbol.iterator]=function*(){var e=function* e(t,r){if((0,i.cy)(t))for(var n=0;n<t.length;n++)yield*e(t[n],r.concat(n));else yield{value:t,index:r}};yield*e(this._data,[])},r.prototype.rows=function(){var e=[];if(2!==this.size().length)throw TypeError("Rows can only be returned for a 2D matrix.");for(var t of this._data)e.push(new r([t],this._datatype));return e},r.prototype.columns=function(){var e=this,t=[],n=this.size();if(2!==n.length)throw TypeError("Rows can only be returned for a 2D matrix.");for(var i=this._data,o=function(n){var o=i.map(e=>[e[n]]);t.push(new r(o,e._datatype))},a=0;a<n[1];a++)o(a);return t},r.prototype.toArray=function(){return(0,l.o8)(this._data)},r.prototype.valueOf=function(){return this._data},r.prototype.format=function(e){return(0,a.GP)(this._data,e)},r.prototype.toString=function(){return(0,a.GP)(this._data)},r.prototype.toJSON=function(){return{mathjs:"DenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},r.prototype.diagonal=function(e){if(e){if((0,i.C4)(e)&&(e=e.toNumber()),!(0,i.Et)(e)||!(0,s.YN)(e))throw TypeError("The parameter k must be an integer number")}else e=0;for(var t=e>0?e:0,n=e<0?-e:0,o=Math.min(this._size[0]-n,this._size[1]-t),a=[],l=0;l<o;l++)a[l]=this._data[l+n][l+t];return new r({data:a,size:[o],datatype:this._datatype})},r.diagonal=function(e,t,n,a){if(!(0,i.cy)(e))throw TypeError("Array expected, size parameter");if(2!==e.length)throw Error("Only two dimensions matrix are supported");if(e=e.map(function(e){if((0,i.C4)(e)&&(e=e.toNumber()),!(0,i.Et)(e)||!(0,s.YN)(e)||e<1)throw Error("Size values must be positive integers");return e}),n){if((0,i.C4)(n)&&(n=n.toNumber()),!(0,i.Et)(n)||!(0,s.YN)(n))throw TypeError("The parameter k must be an integer number")}else n=0;var l,u=n>0?n:0,c=n<0?-n:0,d=e[0],p=e[1],f=Math.min(d-c,p-u);if((0,i.cy)(t)){if(t.length!==f)throw Error("Invalid value array length");l=function(e){return t[e]}}else if((0,i.OA)(t)){var h=t.size();if(1!==h.length||h[0]!==f)throw Error("Invalid matrix length");l=function(e){return t.get([e])}}else l=function(){return t};a||(a=(0,i.C4)(l(0))?l(0).mul(0):0);var m=[];if(e.length>0){m=(0,o.XR)(m,e,a);for(var g=0;g<f;g++)m[g+c][g+u]=l(g)}return new r({data:m,size:[d,p]})},r.fromJSON=function(e){return new r(e)},r.prototype.swapRows=function(e,t){if(!(0,i.Et)(e)||!(0,s.YN)(e)||!(0,i.Et)(t)||!(0,s.YN)(t))throw Error("Row index must be positive integers");if(2!==this._size.length)throw Error("Only two dimensional matrix is supported");return(0,o.r7)(e,this._size[0]),(0,o.r7)(t,this._size[0]),r._swapRows(e,t,this._data),this},r._swapRows=function(e,t,r){var n=r[e];r[e]=r[t],r[t]=n},r},{isClass:!0}),d={MatrixDependencies:n.t,createDenseMatrixClass:c}},53684(e,t,r){"use strict";r.d(t,{u:()=>l});var n=r(45588),i=r(55624),o=r(1207),a="equalScalar",s=(0,o.P9)(a,["typed","config"],e=>{var{typed:t,config:r}=e;return t(a,{"boolean, boolean":function(e,t){return e===t},"number, number":function(e,t){return(0,i.q8)(e,t,r.epsilon)},"BigNumber, BigNumber":function(e,t){return e.eq(t)||function(e,t,r){if(null==r)return e.eq(t);if(e.eq(t))return!0;if(e.isNaN()||t.isNaN())return!1;if(e.isFinite()&&t.isFinite()){var n=e.minus(t).abs();if(n.isZero())return!0;var i=e.constructor.max(e.abs(),t.abs());return n.lte(i.times(r))}return!1}(e,t,r.epsilon)},"Fraction, Fraction":function(e,t){return e.equals(t)},"Complex, Complex":function(e,t){var n;return n=r.epsilon,(0,i.q8)(e.re,t.re,n)&&(0,i.q8)(e.im,t.im,n)},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw Error("Cannot compare units with different base");return this(e.value,t.value)}})});(0,o.P9)(a,["typed","config"],e=>{var{typed:t,config:r}=e;return t(a,{"number, number":function(e,t){return(0,i.q8)(e,t,r.epsilon)}})});var l={typedDependencies:n.U,createEqualScalar:s}},91165(e,t,r){"use strict";r.d(t,{_:()=>y});var n=r(95343),i=r(80185),o=r(53684),a=r(43163),s=r(45588),l=r(1207),u=r(15562),c=(0,l.P9)("algorithm01",["typed"],e=>{var{typed:t}=e;return function(e,r,n,i){var o,a,s=e._data,l=e._size,c=e._datatype,d=r._values,p=r._index,f=r._ptr,h=r._size,m=r._datatype;if(l.length!==h.length)throw new u.h(l.length,h.length);if(l[0]!==h[0]||l[1]!==h[1])throw RangeError("Dimension mismatch. Matrix A ("+l+") must match Matrix B ("+h+")");if(!d)throw Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var g=l[0],y=l[1],v="string"==typeof c&&c===m?c:void 0,b=v?t.find(n,[v,v]):n,x=[];for(o=0;o<g;o++)x[o]=[];var A=[],w=[];for(a=0;a<y;a++){for(var S=a+1,_=f[a],k=f[a+1],M=_;M<k;M++)A[o=p[M]]=i?b(d[M],s[o][a]):b(s[o][a],d[M]),w[o]=S;for(o=0;o<g;o++)w[o]===S?x[o][a]=A[o]:x[o][a]=s[o][a]}return e.createDenseMatrix({data:x,size:[g,y],datatype:v})}}),d=(0,l.P9)("algorithm04",["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return function(e,n,i){var o,a,s,l,c,d,p=e._values,f=e._index,h=e._ptr,m=e._size,g=e._datatype,y=n._values,v=n._index,b=n._ptr,x=n._size,A=n._datatype;if(m.length!==x.length)throw new u.h(m.length,x.length);if(m[0]!==x[0]||m[1]!==x[1])throw RangeError("Dimension mismatch. Matrix A ("+m+") must match Matrix B ("+x+")");var w=m[0],S=m[1],_=r,k=0,M=i;"string"==typeof g&&g===A&&(o=g,_=t.find(r,[o,o]),k=t.convert(0,o),M=t.find(i,[o,o]));var C=p&&y?[]:void 0,$=[],O=[],E=p&&y?[]:void 0,N=p&&y?[]:void 0,R=[],T=[];for(s=0;s<S;s++){O[s]=$.length;var I=s+1;for(c=h[s],d=h[s+1],l=c;l<d;l++)a=f[l],$.push(a),R[a]=I,E&&(E[a]=p[l]);for(c=b[s],d=b[s+1],l=c;l<d;l++)if(R[a=v[l]]===I){if(E){var P=M(E[a],y[l]);_(P,k)?R[a]=null:E[a]=P}}else $.push(a),T[a]=I,N&&(N[a]=y[l]);if(E&&N)for(l=O[s];l<$.length;)R[a=$[l]]===I?(C[l]=E[a],l++):T[a]===I?(C[l]=N[a],l++):$.splice(l,1)}return O[S]=$.length,e.createSparseMatrix({values:C,index:$,ptr:O,size:[w,S],datatype:o})}}),p=(0,l.P9)("algorithm10",["typed","DenseMatrix"],e=>{var{typed:t,DenseMatrix:r}=e;return function(e,n,i,o){var a,s=e._values,l=e._index,u=e._ptr,c=e._size,d=e._datatype;if(!s)throw Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var p=c[0],f=c[1],h=i;"string"==typeof d&&(a=d,n=t.convert(n,a),h=t.find(i,[a,a]));for(var m=[],g=[],y=[],v=0;v<f;v++){for(var b=v+1,x=u[v],A=u[v+1],w=x;w<A;w++){var S=l[w];g[S]=s[w],y[S]=b}for(var _=0;_<p;_++)0===v&&(m[_]=[]),y[_]===b?m[_][v]=o?h(n,g[_]):h(g[_],n):m[_][v]=n}return new r({data:m,size:[p,f],datatype:a})}}),f=(0,l.P9)("algorithm13",["typed"],e=>{var{typed:t}=e;return function(e,r,n){var i,o=e._data,a=e._size,s=e._datatype,l=r._data,c=r._size,d=r._datatype,p=[];if(a.length!==c.length)throw new u.h(a.length,c.length);for(var f=0;f<a.length;f++){if(a[f]!==c[f])throw RangeError("Dimension mismatch. Matrix A ("+a+") must match Matrix B ("+c+")");p[f]=a[f]}var h=n;"string"==typeof s&&s===d&&(i=s,h=t.find(n,[i,i]));var m=p.length>0?function e(t,r,n,i,o,a){var s=[];if(r===n.length-1)for(var l=0;l<i;l++)s[l]=t(o[l],a[l]);else for(var u=0;u<i;u++)s[u]=e(t,r+1,n,n[r+1],o[u],a[u]);return s}(h,0,p,p[0],o,l):[];return e.createDenseMatrix({data:m,size:p,datatype:i})}}),h=r(77666),m=r(34046),g=(0,l.P9)("gcd",["typed","matrix","equalScalar","BigNumber","DenseMatrix"],e=>{var{typed:t,matrix:r,equalScalar:n,BigNumber:i,DenseMatrix:o}=e,a=c({typed:t}),s=d({typed:t,equalScalar:n}),l=p({typed:t,DenseMatrix:o}),u=f({typed:t}),g=(0,h.f)({typed:t});return t("gcd",{"number, number":m.aU,"BigNumber, BigNumber":function(e,t){if(!e.isInt()||!t.isInt())throw Error("Parameters in function gcd must be integer numbers");for(var r=new i(0);!t.isZero();){var n=e.mod(t);e=t,t=n}return e.lt(r)?e.neg():e},"Fraction, Fraction":function(e,t){return e.gcd(t)},"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, number | BigNumber":function(e,t){return l(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return g(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return l(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return g(t,e,this,!0)},"Array, number | BigNumber":function(e,t){return g(r(e),t,this,!1).valueOf()},"number | BigNumber, Array":function(e,t){return g(r(t),e,this,!0).valueOf()},"Array | Matrix | number | BigNumber, Array | Matrix | number | BigNumber, ...Array | Matrix | number | BigNumber":function(e,t,r){for(var n=this(e,t),i=0;i<r.length;i++)n=this(n,r[i]);return n}})}),y={BigNumberDependencies:n.P,DenseMatrixDependencies:i.k,equalScalarDependencies:o.u,matrixDependencies:a.p,typedDependencies:s.U,createGcd:g}},43163(e,t,r){"use strict";r.d(t,{p:()=>v});var n=r(80185),i=r(27340),o=r(53684),a=r(45588),s=r(46797),l=r(55624),u=r(93988),c=r(32718),d=r(49204),p=r(1207),f=r(15562),h=(0,p.P9)("SparseMatrix",["typed","equalScalar","Matrix"],e=>{var{typed:t,equalScalar:r,Matrix:n}=e;function i(e,t){if(!(this instanceof i))throw SyntaxError("Constructor must be called with the new operator");if(t&&!(0,s.Kg)(t))throw Error("Invalid datatype: "+t);if((0,s.OA)(e)){var r,n,a;r=this,n=e,a=t,"SparseMatrix"===n.type?(r._values=n._values?(0,c.o8)(n._values):void 0,r._index=(0,c.o8)(n._index),r._ptr=(0,c.o8)(n._ptr),r._size=(0,c.o8)(n._size),r._datatype=a||n._datatype):o(r,n.valueOf(),a||n._datatype)}else if(e&&(0,s.cy)(e.index)&&(0,s.cy)(e.ptr)&&(0,s.cy)(e.size))this._values=e.values,this._index=e.index,this._ptr=e.ptr,this._size=e.size,this._datatype=t||e.datatype;else if((0,s.cy)(e))o(this,e,t);else if(e)throw TypeError("Unsupported type of data ("+(0,s.QP)(e)+")");else this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=t}function o(e,n,i){e._values=[],e._index=[],e._ptr=[],e._datatype=i;var o=n.length,a=0,l=r,u=0;if((0,s.Kg)(i)&&(l=t.find(r,[i,i])||r,u=t.convert(0,i)),o>0){var c=0;do{e._ptr.push(e._index.length);for(var d=0;d<o;d++){var p=n[d];if((0,s.cy)(p)){if(0===c&&a<p.length&&(a=p.length),c<p.length){var f=p[c];l(f,u)||(e._values.push(f),e._index.push(d))}}else 0===c&&a<1&&(a=1),l(p,u)||(e._values.push(p),e._index.push(d))}c++}while(c<a)}e._ptr.push(e._index.length),e._size=[o,a]}function a(e,t,r,n){if(r-t==0)return r;for(var i=t;i<r;i++)if(n[i]===e)return i;return t}function p(e,t,r,n,i,o,a){i.splice(e,0,n),o.splice(e,0,t);for(var s=r+1;s<a.length;s++)a[s]++}function h(e,n,i,o){var a,l,u,c=o||0,d=r,p=0;(0,s.Kg)(e._datatype)&&(d=t.find(r,[e._datatype,e._datatype])||r,p=t.convert(0,e._datatype),c=t.convert(c,e._datatype));var f=!d(c,p),h=e._size[0],m=e._size[1];if(i>m){for(l=m;l<i;l++)if(e._ptr[l]=e._values.length,f)for(a=0;a<h;a++)e._values.push(c),e._index.push(a);e._ptr[i]=e._values.length}else i<m&&(e._ptr.splice(i+1,m-i),e._values.splice(e._ptr[i],e._values.length),e._index.splice(e._ptr[i],e._index.length));if(m=i,n>h){if(f){var g=0;for(l=0;l<m;l++){e._ptr[l]=e._ptr[l]+g,u=e._ptr[l+1]+g;var y=0;for(a=h;a<n;a++,y++)e._values.splice(u+y,0,c),e._index.splice(u+y,0,a),g++}e._ptr[m]=e._values.length}}else if(n<h){var v=0;for(l=0;l<m;l++){e._ptr[l]=e._ptr[l]-v;var b=e._ptr[l],x=e._ptr[l+1]-v;for(u=b;u<x;u++)(a=e._index[u])>n-1&&(e._values.splice(u,1),e._index.splice(u,1),v++)}e._ptr[l]=e._values.length}return e._size[0]=n,e._size[1]=i,e}function m(e,t,r,n,i){var o,a,s=n[0],l=n[1],u=[];for(o=0;o<s;o++)for(a=0,u[o]=[];a<l;a++)u[o][a]=0;for(a=0;a<l;a++)for(var d=r[a],p=r[a+1],f=d;f<p;f++)u[o=t[f]][a]=e?i?(0,c.o8)(e[f]):e[f]:1;return u}return i.prototype=new n,i.prototype.createSparseMatrix=function(e,t){return new i(e,t)},i.prototype.type="SparseMatrix",i.prototype.isSparseMatrix=!0,i.prototype.getDataType=function(){return(0,d.ig)(this._values,s.QP)},i.prototype.storage=function(){return"sparse"},i.prototype.datatype=function(){return this._datatype},i.prototype.create=function(e,t){return new i(e,t)},i.prototype.density=function(){var e=this._size[0],t=this._size[1];return 0!==e&&0!==t?this._index.length/(e*t):0},i.prototype.subset=function(e,t,r){if(!this._values)throw Error("Cannot invoke subset on a Pattern only matrix");switch(arguments.length){case 1:return function(e,t){if(!(0,s.nw)(t))throw TypeError("Invalid index");if(t.isScalar())return e.get(t.min());var r,n,o,a,l=t.size();if(l.length!==e._size.length)throw new f.h(l.length,e._size.length);var u=t.min(),c=t.max();for(r=0,n=e._size.length;r<n;r++)(0,d.r7)(u[r],e._size[r]),(0,d.r7)(c[r],e._size[r]);var p=e._values,h=e._index,m=e._ptr,g=t.dimension(0),y=t.dimension(1),v=[],b=[];g.forEach(function(e,t){b[e]=t[0],v[e]=!0});var x=p?[]:void 0,A=[],w=[];return y.forEach(function(e){for(w.push(A.length),o=m[e],a=m[e+1];o<a;o++)!0===v[r=h[o]]&&(A.push(b[r]),x&&x.push(p[o]))}),w.push(A.length),new i({values:x,index:A,ptr:w,size:l,datatype:e._datatype})}(this,e);case 2:case 3:return function(e,t,r,n){if(!t||!0!==t.isIndex)throw TypeError("Invalid index");var i,o=t.size(),a=t.isScalar();if((0,s.OA)(r)?(i=r.size(),r=r.toArray()):i=(0,d.LO)(r),a){if(0!==i.length)throw TypeError("Scalar expected");e.set(t.min(),r,n)}else{if(1!==o.length&&2!==o.length)throw new f.h(o.length,e._size.length,"<");if(i.length<o.length){for(var l=0,u=0;1===o[l]&&1===i[l];)l++;for(;1===o[l];)u++,l++;r=(0,d.iD)(r,o.length,u,i)}if(!(0,c.QO)(o,i))throw new f.h(o,i,">");if(1===o.length)t.dimension(0).forEach(function(t,i){(0,d.r7)(t),e.set([t,0],r[i[0]],n)});else{var p=t.dimension(0),h=t.dimension(1);p.forEach(function(t,i){(0,d.r7)(t),h.forEach(function(o,a){(0,d.r7)(o),e.set([t,o],r[i[0]][a[0]],n)})})}}return e}(this,e,t,r);default:throw SyntaxError("Wrong number of arguments")}},i.prototype.get=function(e){if(!(0,s.cy)(e))throw TypeError("Array expected");if(e.length!==this._size.length)throw new f.h(e.length,this._size.length);if(!this._values)throw Error("Cannot invoke get on a Pattern only matrix");var t=e[0],r=e[1];(0,d.r7)(t,this._size[0]),(0,d.r7)(r,this._size[1]);var n=a(t,this._ptr[r],this._ptr[r+1],this._index);return n<this._ptr[r+1]&&this._index[n]===t?this._values[n]:0},i.prototype.set=function(e,n,i){if(!(0,s.cy)(e))throw TypeError("Array expected");if(e.length!==this._size.length)throw new f.h(e.length,this._size.length);if(!this._values)throw Error("Cannot invoke set on a Pattern only matrix");var o=e[0],l=e[1],u=this._size[0],c=this._size[1],m=r,g=0;(0,s.Kg)(this._datatype)&&(m=t.find(r,[this._datatype,this._datatype])||r,g=t.convert(0,this._datatype)),(o>u-1||l>c-1)&&(h(this,Math.max(o+1,u),Math.max(l+1,c),i),u=this._size[0],c=this._size[1]),(0,d.r7)(o,u),(0,d.r7)(l,c);var y=a(o,this._ptr[l],this._ptr[l+1],this._index);return y<this._ptr[l+1]&&this._index[y]===o?m(n,g)?function(e,t,r,n,i){r.splice(e,1),n.splice(e,1);for(var o=t+1;o<i.length;o++)i[o]--}(y,l,this._values,this._index,this._ptr):this._values[y]=n:p(y,o,l,n,this._values,this._index,this._ptr),this},i.prototype.resize=function(e,t,r){if(!(0,s.P3)(e))throw TypeError("Array or Matrix expected");var n=e.valueOf().map(e=>Array.isArray(e)&&1===e.length?e[0]:e);if(2!==n.length)throw Error("Only two dimensions matrix are supported");return n.forEach(function(e){if(!(0,s.Et)(e)||!(0,l.YN)(e)||e<0)throw TypeError("Invalid size, must contain positive integers (size: "+(0,u.GP)(n)+")")}),h(r?this.clone():this,n[0],n[1],t)},i.prototype.reshape=function(e,t){if(!(0,s.cy)(e))throw TypeError("Array expected");if(2!==e.length)throw Error("Sparse matrices can only be reshaped in two dimensions");e.forEach(function(t){if(!(0,s.Et)(t)||!(0,l.YN)(t)||t<=-2||0===t)throw TypeError("Invalid size, must contain positive integers or -1 (size: "+(0,u.GP)(e)+")")});var r=this._size[0]*this._size[1],n=(e=(0,d.cs)(e,r))[0]*e[1];if(r!==n)throw Error("Reshaping sparse matrix will result in the wrong number of elements");var i=t?this.clone():this;if(this._size[0]===e[0]&&this._size[1]===e[1])return i;for(var o=[],c=0;c<i._ptr.length;c++)for(var f=0;f<i._ptr[c+1]-i._ptr[c];f++)o.push(c);for(var h=i._values.slice(),m=i._index.slice(),g=0;g<i._index.length;g++){var y=m[g],v=o[g],b=y*i._size[1]+v;o[g]=b%e[1],m[g]=Math.floor(b/e[1])}i._values.length=0,i._index.length=0,i._ptr.length=e[1]+1,i._size=e.slice();for(var x=0;x<i._ptr.length;x++)i._ptr[x]=0;for(var A=0;A<h.length;A++){var w=m[A],S=o[A],_=h[A];p(a(w,i._ptr[S],i._ptr[S+1],i._index),w,S,_,i._values,i._index,i._ptr)}return i},i.prototype.clone=function(){return new i({values:this._values?(0,c.o8)(this._values):void 0,index:(0,c.o8)(this._index),ptr:(0,c.o8)(this._ptr),size:(0,c.o8)(this._size),datatype:this._datatype})},i.prototype.size=function(){return this._size.slice(0)},i.prototype.map=function(e,n){if(!this._values)throw Error("Cannot invoke map on a Pattern only matrix");var o=this;return function(e,n,o,a,l){var u=[],c=[],d=[],p=r,f=0;(0,s.Kg)(e._datatype)&&(p=t.find(r,[e._datatype,e._datatype])||r,f=t.convert(0,e._datatype));for(var h=function(e,t,r){e=a(e,t,r),p(e,f)||(u.push(e),c.push(t))},m=0;m<=o;m++){d.push(u.length);var g=e._ptr[m],y=e._ptr[m+1];if(l)for(var v=g;v<y;v++){var b=e._index[v];b>=0&&b<=n&&h(e._values[v],b-0,m-0)}else{for(var x={},A=g;A<y;A++)x[e._index[A]]=e._values[A];for(var w=0;w<=n;w++)h(w in x?x[w]:0,w-0,m-0)}}return d.push(u.length),new i({values:u,index:c,ptr:d,size:[n-0+1,o-0+1]})}(this,this._size[0]-1,this._size[1]-1,function(t,r,n){return e(t,[r,n],o)},n)},i.prototype.forEach=function(e,t){if(!this._values)throw Error("Cannot invoke forEach on a Pattern only matrix");for(var r=this._size[0],n=this._size[1],i=0;i<n;i++){var o=this._ptr[i],a=this._ptr[i+1];if(t)for(var s=o;s<a;s++){var l=this._index[s];e(this._values[s],[l,i],this)}else{for(var u={},c=o;c<a;c++)u[this._index[c]]=this._values[c];for(var d=0;d<r;d++)e(d in u?u[d]:0,[d,i],this)}}},i.prototype[Symbol.iterator]=function*(){if(!this._values)throw Error("Cannot iterate a Pattern only matrix");for(var e=this._size[1],t=0;t<e;t++)for(var r=this._ptr[t],n=this._ptr[t+1],i=r;i<n;i++){var o=this._index[i];yield{value:this._values[i],index:[o,t]}}},i.prototype.toArray=function(){return m(this._values,this._index,this._ptr,this._size,!0)},i.prototype.valueOf=function(){return m(this._values,this._index,this._ptr,this._size,!1)},i.prototype.format=function(e){for(var t=this._size[0],r=this._size[1],n=this.density(),i="Sparse Matrix ["+(0,u.GP)(t,e)+" x "+(0,u.GP)(r,e)+"] density: "+(0,u.GP)(n,e)+"\n",o=0;o<r;o++)for(var a=this._ptr[o],s=this._ptr[o+1],l=a;l<s;l++){var c=this._index[l];i+="\n ("+(0,u.GP)(c,e)+", "+(0,u.GP)(o,e)+") ==> "+(this._values?(0,u.GP)(this._values[l],e):"X")}return i},i.prototype.toString=function(){return(0,u.GP)(this.toArray())},i.prototype.toJSON=function(){return{mathjs:"SparseMatrix",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},i.prototype.diagonal=function(e){if(e){if((0,s.C4)(e)&&(e=e.toNumber()),!(0,s.Et)(e)||!(0,l.YN)(e))throw TypeError("The parameter k must be an integer number")}else e=0;var t=e>0?e:0,r=e<0?-e:0,n=this._size[0],o=this._size[1],a=Math.min(n-r,o-t),u=[],c=[],d=[];d[0]=0;for(var p=t;p<o&&u.length<a;p++)for(var f=this._ptr[p],h=this._ptr[p+1],m=f;m<h;m++){var g=this._index[m];if(g===p-t+r){u.push(this._values[m]),c[u.length-1]=g-r;break}}return d.push(u.length),new i({values:u,index:c,ptr:d,size:[a,1]})},i.fromJSON=function(e){return new i(e)},i.diagonal=function(e,n,o,a,u){if(!(0,s.cy)(e))throw TypeError("Array expected, size parameter");if(2!==e.length)throw Error("Only two dimensions matrix are supported");if(e=e.map(function(e){if((0,s.C4)(e)&&(e=e.toNumber()),!(0,s.Et)(e)||!(0,l.YN)(e)||e<1)throw Error("Size values must be positive integers");return e}),o){if((0,s.C4)(o)&&(o=o.toNumber()),!(0,s.Et)(o)||!(0,l.YN)(o))throw TypeError("The parameter k must be an integer number")}else o=0;var c,d=r,p=0;(0,s.Kg)(u)&&(d=t.find(r,[u,u])||r,p=t.convert(0,u));var f=o>0?o:0,h=o<0?-o:0,m=e[0],g=e[1],y=Math.min(m-h,g-f);if((0,s.cy)(n)){if(n.length!==y)throw Error("Invalid value array length");c=function(e){return n[e]}}else if((0,s.OA)(n)){var v=n.size();if(1!==v.length||v[0]!==y)throw Error("Invalid matrix length");c=function(e){return n.get([e])}}else c=function(){return n};for(var b=[],x=[],A=[],w=0;w<g;w++){A.push(b.length);var S=w-f;if(S>=0&&S<y){var _=c(S);d(_,p)||(x.push(S+h),b.push(_))}}return A.push(b.length),new i({values:b,index:x,ptr:A,size:[m,g]})},i.prototype.swapRows=function(e,t){if(!(0,s.Et)(e)||!(0,l.YN)(e)||!(0,s.Et)(t)||!(0,l.YN)(t))throw Error("Row index must be positive integers");if(2!==this._size.length)throw Error("Only two dimensional matrix is supported");return(0,d.r7)(e,this._size[0]),(0,d.r7)(t,this._size[0]),i._swapRows(e,t,this._size[1],this._values,this._index,this._ptr),this},i._forEachRow=function(e,t,r,n,i){for(var o=n[e],a=n[e+1],s=o;s<a;s++)i(r[s],t[s])},i._swapRows=function(e,t,r,n,i,o){for(var s=0;s<r;s++){var l=o[s],u=o[s+1],c=a(e,l,u,i),d=a(t,l,u,i);if(c<u&&d<u&&i[c]===e&&i[d]===t){if(n){var p=n[c];n[c]=n[d],n[d]=p}continue}if(c<u&&i[c]===e&&(d>=u||i[d]!==t)){var f=n?n[c]:void 0;i.splice(d,0,t),n&&n.splice(d,0,f),i.splice(d<=c?c+1:c,1),n&&n.splice(d<=c?c+1:c,1);continue}if(d<u&&i[d]===t&&(c>=u||i[c]!==e)){var h=n?n[d]:void 0;i.splice(c,0,e),n&&n.splice(c,0,h),i.splice(c<=d?d+1:d,1),n&&n.splice(c<=d?d+1:d,1)}}},i},{isClass:!0}),m={MatrixDependencies:i.t,equalScalarDependencies:o.u,typedDependencies:a.U,createSparseMatrixClass:h},g="matrix",y=(0,p.P9)(g,["typed","Matrix","DenseMatrix","SparseMatrix"],e=>{var{typed:t,Matrix:r,DenseMatrix:n,SparseMatrix:i}=e;return t(g,{"":function(){return o([])},string:function(e){return o([],e)},"string, string":function(e,t){return o([],e,t)},Array:function(e){return o(e)},Matrix:function(e){return o(e,e.storage())},"Array | Matrix, string":o,"Array | Matrix, string, string":o});function o(e,t,r){if("dense"===t||"default"===t||void 0===t)return new n(e,r);if("sparse"===t)return new i(e,r);throw TypeError("Unknown matrix type "+JSON.stringify(t)+".")}}),v={DenseMatrixDependencies:n.k,MatrixDependencies:i.t,SparseMatrixDependencies:m,typedDependencies:a.U,createMatrix:y}},27340(e,t,r){"use strict";r.d(t,{t:()=>n});var n={createMatrixClass:(0,r(1207).P9)("Matrix",[],()=>{function e(){if(!(this instanceof e))throw SyntaxError("Constructor must be called with the new operator")}return e.prototype.type="Matrix",e.prototype.isMatrix=!0,e.prototype.storage=function(){throw Error("Cannot invoke storage on a Matrix interface")},e.prototype.datatype=function(){throw Error("Cannot invoke datatype on a Matrix interface")},e.prototype.create=function(e,t){throw Error("Cannot invoke create on a Matrix interface")},e.prototype.subset=function(e,t,r){throw Error("Cannot invoke subset on a Matrix interface")},e.prototype.get=function(e){throw Error("Cannot invoke get on a Matrix interface")},e.prototype.set=function(e,t,r){throw Error("Cannot invoke set on a Matrix interface")},e.prototype.resize=function(e,t){throw Error("Cannot invoke resize on a Matrix interface")},e.prototype.reshape=function(e,t){throw Error("Cannot invoke reshape on a Matrix interface")},e.prototype.clone=function(){throw Error("Cannot invoke clone on a Matrix interface")},e.prototype.size=function(){throw Error("Cannot invoke size on a Matrix interface")},e.prototype.map=function(e,t){throw Error("Cannot invoke map on a Matrix interface")},e.prototype.forEach=function(e){throw Error("Cannot invoke forEach on a Matrix interface")},e.prototype[Symbol.iterator]=function(){throw Error("Cannot iterate a Matrix interface")},e.prototype.toArray=function(){throw Error("Cannot invoke toArray on a Matrix interface")},e.prototype.valueOf=function(){throw Error("Cannot invoke valueOf on a Matrix interface")},e.prototype.format=function(e){throw Error("Cannot invoke format on a Matrix interface")},e.prototype.toString=function(){throw Error("Cannot invoke toString on a Matrix interface")},e},{isClass:!0})}},45588(e,t,r){"use strict";r.d(t,{U:()=>F});var n=r(95343);let i=Math.cosh||function(e){return 1e-9>Math.abs(e)?1-e:(Math.exp(e)+Math.exp(-e))*.5},o=Math.sinh||function(e){return 1e-9>Math.abs(e)?e:(Math.exp(e)-Math.exp(-e))*.5},a=function(e,t){return((e=Math.abs(e))<(t=Math.abs(t))&&([e,t]=[t,e]),e<1e8)?Math.sqrt(e*e+t*t):(t/=e,e*Math.sqrt(1+t*t))},s=function(){throw SyntaxError("Invalid Param")};function l(e,t){let r=Math.abs(e),n=Math.abs(t);return 0===e?Math.log(n):0===t?Math.log(r):r<3e3&&n<3e3?.5*Math.log(e*e+t*t):.5*Math.log((e*=.5)*e+(t*=.5)*t)+Math.LN2}let u={re:0,im:0},c=function(e,t){if(null==e)u.re=u.im=0;else if(void 0!==t)u.re=e,u.im=t;else switch(typeof e){case"object":if("im"in e&&"re"in e)u.re=e.re,u.im=e.im;else if("abs"in e&&"arg"in e){if(!isFinite(e.abs)&&isFinite(e.arg))return d.INFINITY;u.re=e.abs*Math.cos(e.arg),u.im=e.abs*Math.sin(e.arg)}else if("r"in e&&"phi"in e){if(!isFinite(e.r)&&isFinite(e.phi))return d.INFINITY;u.re=e.r*Math.cos(e.phi),u.im=e.r*Math.sin(e.phi)}else 2===e.length?(u.re=e[0],u.im=e[1]):s();break;case"string":u.im=u.re=0;let r=e.replace(/_/g,"").match(/\d+\.?\d*e[+-]?\d+|\d+\.?\d*|\.\d+|./g),n=1,i=0;null===r&&s();for(let e=0;e<r.length;e++){let t=r[e];" "===t||" "===t||"\n"===t||("+"===t?n++:"-"===t?i++:("i"===t||"I"===t?(n+i===0&&s()," "===r[e+1]||isNaN(r[e+1])?u.im+=parseFloat((i%2?"-":"")+"1"):(u.im+=parseFloat((i%2?"-":"")+r[e+1]),e++)):((n+i===0||isNaN(t))&&s(),"i"===r[e+1]||"I"===r[e+1]?(u.im+=parseFloat((i%2?"-":"")+t),e++):u.re+=parseFloat((i%2?"-":"")+t)),n=i=0))}n+i>0&&s();break;case"number":u.im=0,u.re=e;break;default:s()}return isNaN(u.re)||isNaN(u.im),u};function d(e,t){if(!(this instanceof d))return new d(e,t);let r=c(e,t);this.re=r.re,this.im=r.im}d.prototype={re:0,im:0,sign:function(){let e=a(this.re,this.im);return new d(this.re/e,this.im/e)},add:function(e,t){let r=c(e,t),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im));return n||i?n&&i?d.NAN:d.INFINITY:new d(this.re+r.re,this.im+r.im)},sub:function(e,t){let r=c(e,t),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im));return n||i?n&&i?d.NAN:d.INFINITY:new d(this.re-r.re,this.im-r.im)},mul:function(e,t){let r=c(e,t),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im)),o=0===this.re&&0===this.im,a=0===r.re&&0===r.im;return n&&a||i&&o?d.NAN:n||i?d.INFINITY:0===r.im&&0===this.im?new d(this.re*r.re,0):new d(this.re*r.re-this.im*r.im,this.re*r.im+this.im*r.re)},div:function(e,t){let r=c(e,t),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im)),o=0===this.re&&0===this.im,a=0===r.re&&0===r.im;if(o&&a||n&&i)return d.NAN;if(a||n)return d.INFINITY;if(o||i)return d.ZERO;if(0===r.im)return new d(this.re/r.re,this.im/r.re);if(Math.abs(r.re)<Math.abs(r.im)){let e=r.re/r.im,t=r.re*e+r.im;return new d((this.re*e+this.im)/t,(this.im*e-this.re)/t)}{let e=r.im/r.re,t=r.im*e+r.re;return new d((this.re+this.im*e)/t,(this.im-this.re*e)/t)}},pow:function(e,t){let r=c(e,t),n=0===this.re&&0===this.im;if(0===r.re&&0===r.im)return d.ONE;if(0===r.im){if(0===this.im&&this.re>0)return new d(Math.pow(this.re,r.re),0);else if(0===this.re)switch((r.re%4+4)%4){case 0:return new d(Math.pow(this.im,r.re),0);case 1:return new d(0,Math.pow(this.im,r.re));case 2:return new d(-Math.pow(this.im,r.re),0);case 3:return new d(0,-Math.pow(this.im,r.re))}}if(n&&r.re>0)return d.ZERO;let i=Math.atan2(this.im,this.re),o=l(this.re,this.im),a=Math.exp(r.re*o-r.im*i),s=r.im*o+r.re*i;return new d(a*Math.cos(s),a*Math.sin(s))},sqrt:function(){let e=this.re,t=this.im;if(0===t)if(e>=0)return new d(Math.sqrt(e),0);else return new d(0,Math.sqrt(-e));let r=Math.sqrt(.5*(a(e,t)+Math.abs(e))),n=Math.abs(t)/(2*r);return e>=0?new d(r,t<0?-n:n):new d(n,t<0?-r:r)},exp:function(){let e=Math.exp(this.re);return 0===this.im?new d(e,0):new d(e*Math.cos(this.im),e*Math.sin(this.im))},expm1:function(){let e,t=this.re,r=this.im;return new d(Math.expm1(t)*Math.cos(r)+-2*(e=Math.sin(.5*r))*e,Math.exp(t)*Math.sin(r))},log:function(){let e=this.re,t=this.im;return 0===t&&e>0?new d(Math.log(e),0):new d(l(e,t),Math.atan2(t,e))},abs:function(){return a(this.re,this.im)},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){let e=this.re,t=this.im;return new d(Math.sin(e)*i(t),Math.cos(e)*o(t))},cos:function(){let e=this.re,t=this.im;return new d(Math.cos(e)*i(t),-Math.sin(e)*o(t))},tan:function(){let e=2*this.re,t=2*this.im,r=Math.cos(e)+i(t);return new d(Math.sin(e)/r,o(t)/r)},cot:function(){let e=2*this.re,t=2*this.im,r=Math.cos(e)-i(t);return new d(-Math.sin(e)/r,o(t)/r)},sec:function(){let e=this.re,t=this.im,r=.5*i(2*t)+.5*Math.cos(2*e);return new d(Math.cos(e)*i(t)/r,Math.sin(e)*o(t)/r)},csc:function(){let e=this.re,t=this.im,r=.5*i(2*t)-.5*Math.cos(2*e);return new d(Math.sin(e)*i(t)/r,-Math.cos(e)*o(t)/r)},asin:function(){let e=this.re,t=this.im,r=new d(t*t-e*e+1,-2*e*t).sqrt(),n=new d(r.re-t,r.im+e).log();return new d(n.im,-n.re)},acos:function(){let e=this.re,t=this.im,r=new d(t*t-e*e+1,-2*e*t).sqrt(),n=new d(r.re-t,r.im+e).log();return new d(Math.PI/2-n.im,n.re)},atan:function(){let e=this.re,t=this.im;if(0===e){if(1===t)return new d(0,1/0);if(-1===t)return new d(0,-1/0)}let r=e*e+(1-t)*(1-t),n=new d((1-t*t-e*e)/r,-2*e/r).log();return new d(-.5*n.im,.5*n.re)},acot:function(){let e=this.re,t=this.im;if(0===t)return new d(Math.atan2(1,e),0);let r=e*e+t*t;return 0!==r?new d(e/r,-t/r).atan():new d(0!==e?e/0:0,0!==t?-t/0:0).atan()},asec:function(){let e=this.re,t=this.im;if(0===e&&0===t)return new d(0,1/0);let r=e*e+t*t;return 0!==r?new d(e/r,-t/r).acos():new d(0!==e?e/0:0,0!==t?-t/0:0).acos()},acsc:function(){let e=this.re,t=this.im;if(0===e&&0===t)return new d(Math.PI/2,1/0);let r=e*e+t*t;return 0!==r?new d(e/r,-t/r).asin():new d(0!==e?e/0:0,0!==t?-t/0:0).asin()},sinh:function(){let e=this.re,t=this.im;return new d(o(e)*Math.cos(t),i(e)*Math.sin(t))},cosh:function(){let e=this.re,t=this.im;return new d(i(e)*Math.cos(t),o(e)*Math.sin(t))},tanh:function(){let e=2*this.re,t=2*this.im,r=i(e)+Math.cos(t);return new d(o(e)/r,Math.sin(t)/r)},coth:function(){let e=2*this.re,t=2*this.im,r=i(e)-Math.cos(t);return new d(o(e)/r,-Math.sin(t)/r)},csch:function(){let e=this.re,t=this.im,r=Math.cos(2*t)-i(2*e);return new d(-2*o(e)*Math.cos(t)/r,2*i(e)*Math.sin(t)/r)},sech:function(){let e=this.re,t=this.im,r=Math.cos(2*t)+i(2*e);return new d(2*i(e)*Math.cos(t)/r,-2*o(e)*Math.sin(t)/r)},asinh:function(){let e=this.re,t=this.im;if(0===t){if(0===e)return new d(0,0);let t=Math.abs(e),r=Math.log(t+Math.sqrt(t*t+1));return new d(e<0?-r:r,0)}let r=new d(e*e-t*t+1,2*e*t).sqrt();return new d(e+r.re,t+r.im).log()},acosh:function(){let e=this.re,t=this.im;if(0===t){if(e>1)return new d(Math.log(e+Math.sqrt(e-1)*Math.sqrt(e+1)),0);if(e<-1){let t=Math.sqrt(e*e-1);return new d(Math.log(-e+t),Math.PI)}return new d(0,Math.acos(e))}let r=new d(e-1,t).sqrt(),n=new d(e+1,t).sqrt();return new d(e+r.re*n.re-r.im*n.im,t+r.re*n.im+r.im*n.re).log()},atanh:function(){let e=this.re,t=this.im;if(0===t)return 0===e?new d(0,0):1===e?new d(1/0,0):-1===e?new d(-1/0,0):-1<e&&e<1?new d(.5*Math.log((1+e)/(1-e)),0):e>1?new d(.5*Math.log((e+1)/(e-1)),-Math.PI/2):new d(.5*Math.log(-((1+e)/(1-e))),Math.PI/2);let r=1-e,n=1+e,i=r*r+t*t;if(0===i)return new d(-1!==e?e/0:0,0!==t?t/0:0);let o=(n*r-t*t)/i,a=(t*r+n*t)/i;return new d(l(o,a)/2,Math.atan2(a,o)/2)},acoth:function(){let e=this.re,t=this.im;if(0===e&&0===t)return new d(0,Math.PI/2);let r=e*e+t*t;return 0!==r?new d(e/r,-t/r).atanh():new d(0!==e?e/0:0,0!==t?-t/0:0).atanh()},acsch:function(){let e=this.re,t=this.im;if(0===t){if(0===e)return new d(1/0,0);let t=1/e;return new d(Math.log(t+Math.sqrt(t*t+1)),0)}let r=e*e+t*t;return 0!==r?new d(e/r,-t/r).asinh():new d(0!==e?e/0:0,0!==t?-t/0:0).asinh()},asech:function(){let e=this.re,t=this.im;if(this.isZero())return d.INFINITY;let r=e*e+t*t;return 0!==r?new d(e/r,-t/r).acosh():new d(0!==e?e/0:0,0!==t?-t/0:0).acosh()},inverse:function(){if(this.isZero())return d.INFINITY;if(this.isInfinite())return d.ZERO;let e=this.re,t=this.im,r=e*e+t*t;return new d(e/r,-t/r)},conjugate:function(){return new d(this.re,-this.im)},neg:function(){return new d(-this.re,-this.im)},ceil:function(e){return e=Math.pow(10,e||0),new d(Math.ceil(this.re*e)/e,Math.ceil(this.im*e)/e)},floor:function(e){return e=Math.pow(10,e||0),new d(Math.floor(this.re*e)/e,Math.floor(this.im*e)/e)},round:function(e){return e=Math.pow(10,e||0),new d(Math.round(this.re*e)/e,Math.round(this.im*e)/e)},equals:function(e,t){let r=c(e,t);return Math.abs(r.re-this.re)<=d.EPSILON&&Math.abs(r.im-this.im)<=d.EPSILON},clone:function(){return new d(this.re,this.im)},toString:function(){let e=this.re,t=this.im,r="";return this.isNaN()?"NaN":this.isInfinite()?"Infinity":(Math.abs(e)<d.EPSILON&&(e=0),Math.abs(t)<d.EPSILON&&(t=0),0===t)?r+e:(0!==e?(r+=e,r+=" ",t<0?(t=-t,r+="-"):r+="+",r+=" "):t<0&&(t=-t,r+="-"),1!==t&&(r+=t),r+"i")},toVector:function(){return[this.re,this.im]},valueOf:function(){return 0===this.im?this.re:null},isNaN:function(){return isNaN(this.re)||isNaN(this.im)},isZero:function(){return 0===this.im&&0===this.re},isFinite:function(){return isFinite(this.re)&&isFinite(this.im)},isInfinite:function(){return!this.isFinite()}},d.ZERO=new d(0,0),d.ONE=new d(1,0),d.I=new d(0,1),d.PI=new d(Math.PI,0),d.E=new d(Math.E,0),d.INFINITY=new d(1/0,1/0),d.NAN=new d(NaN,NaN),d.EPSILON=1e-15;var p=r(55624),f=r(46797),h=r(1207),m=(0,h.P9)("Complex",[],()=>(d.prototype.type="Complex",d.prototype.isComplex=!0,d.prototype.toJSON=function(){return{mathjs:"Complex",re:this.re,im:this.im}},d.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},d.prototype.format=function(e){var t=this.im,r=this.re,n=(0,p.GP)(this.re,e),i=(0,p.GP)(this.im,e),o=(0,f.Et)(e)?e:e?e.precision:null;if(null!==o){var a=Math.pow(10,-o);Math.abs(r/t)<a&&(r=0),Math.abs(t/r)<a&&(t=0)}return 0===t?n:0===r?1===t?"i":-1===t?"-i":i+"i":t<0?-1===t?n+" - i":n+" - "+i.substring(1)+"i":1===t?n+" + i":n+" + "+i+"i"},d.fromPolar=function(e){switch(arguments.length){case 1:var t=arguments[0];if("object"==typeof t)return d(t);throw TypeError("Input has to be an object with r and phi keys.");case 2:var r=arguments[0],n=arguments[1];if((0,f.Et)(r)){if((0,f.vO)(n)&&n.hasBase("ANGLE")&&(n=n.toNumber("rad")),(0,f.Et)(n))return new d({r,phi:n});throw TypeError("Phi is not a number nor an angle unit.")}throw TypeError("Radius r is not a number.");default:throw SyntaxError("Wrong number of arguments in function fromPolar")}},d.prototype.valueOf=d.prototype.toString,d.fromJSON=function(e){return new d(e)},d.compare=function(e,t){return e.re>t.re?1:e.re<t.re?-1:e.im>t.im?1:e.im<t.im?-1:0},d),{isClass:!0}),g=r(80185),y={s:1,n:0,d:1};function v(e,t){if(isNaN(e=parseInt(e,10)))throw k();return e*t}function b(e,t){if(0===t)throw _();var r=Object.create(S.prototype);r.s=e<0?-1:1;var n=w(e=e<0?-e:e,t);return r.n=e/n,r.d=t/n,r}function x(e){for(var t={},r=e,n=2,i=4;i<=r;){for(;r%n==0;)r/=n,t[n]=(t[n]||0)+1;i+=1+2*n++}return r!==e?r>1&&(t[r]=(t[r]||0)+1):t[e]=(t[e]||0)+1,t}var A=function(e,t){var r,n=0,i=1,o=1,a=0,s=0,l=0,u=1,c=1,d=0,p=1,f=1,h=1;if(null==e);else if(void 0!==t){if(o=(n=e)*(i=t),n%1!=0||i%1!=0)throw M()}else switch(typeof e){case"object":if("d"in e&&"n"in e)n=e.n,i=e.d,"s"in e&&(n*=e.s);else if(0 in e)n=e[0],1 in e&&(i=e[1]);else throw k();o=n*i;break;case"number":if(e<0&&(o=e,e=-e),e%1==0)n=e;else if(e>0){for(e>=1&&(c=Math.pow(10,Math.floor(1+Math.log(e)/Math.LN10)),e/=c);p<=1e7&&h<=1e7;){if(e===(r=(d+f)/(p+h))){p+h<=1e7?(n=d+f,i=p+h):h>p?(n=f,i=h):(n=d,i=p);break}e>r?(d+=f,p+=h):(f+=d,h+=p),p>1e7?(n=f,i=h):(n=d,i=p)}n*=c}else(isNaN(e)||isNaN(t))&&(i=n=NaN);break;case"string":if(null===(p=e.match(/\d+|./g)))throw k();if("-"===p[d]?(o=-1,d++):"+"===p[d]&&d++,p.length===d+1?s=v(p[d++],o):"."===p[d+1]||"."===p[d]?("."!==p[d]&&(a=v(p[d++],o)),(++d+1===p.length||"("===p[d+1]&&")"===p[d+3]||"'"===p[d+1]&&"'"===p[d+3])&&(s=v(p[d],o),u=Math.pow(10,p[d].length),d++),("("===p[d]&&")"===p[d+2]||"'"===p[d]&&"'"===p[d+2])&&(l=v(p[d+1],o),c=Math.pow(10,p[d+1].length)-1,d+=3)):"/"===p[d+1]||":"===p[d+1]?(s=v(p[d],o),u=v(p[d+2],1),d+=3):"/"===p[d+3]&&" "===p[d+1]&&(a=v(p[d],o),s=v(p[d+2],o),u=v(p[d+4],1),d+=5),p.length<=d){o=n=l+(i=u*c)*a+c*s;break}default:throw k()}if(0===i)throw _();y.s=o<0?-1:1,y.n=Math.abs(n),y.d=Math.abs(i)};function w(e,t){if(!e)return t;if(!t)return e;for(;;){if(!(e%=t))return t;if(!(t%=e))return e}}function S(e,t){if(A(e,t),!(this instanceof S))return b(y.s*y.n,y.d);e=w(y.d,y.n),this.s=y.s,this.n=y.n/e,this.d=y.d/e}var _=function(){return Error("Division by Zero")},k=function(){return Error("Invalid argument")},M=function(){return Error("Parameters must be integer")};S.prototype={s:1,n:0,d:1,abs:function(){return b(this.n,this.d)},neg:function(){return b(-this.s*this.n,this.d)},add:function(e,t){return A(e,t),b(this.s*this.n*y.d+y.s*this.d*y.n,this.d*y.d)},sub:function(e,t){return A(e,t),b(this.s*this.n*y.d-y.s*this.d*y.n,this.d*y.d)},mul:function(e,t){return A(e,t),b(this.s*y.s*this.n*y.n,this.d*y.d)},div:function(e,t){return A(e,t),b(this.s*y.s*this.n*y.d,this.d*y.n)},clone:function(){return b(this.s*this.n,this.d)},mod:function(e,t){if(isNaN(this.n)||isNaN(this.d))return new S(NaN);if(void 0===e)return b(this.s*this.n%this.d,1);if(A(e,t),0===y.n&&0===this.d)throw _();return b(this.s*(y.d*this.n)%(y.n*this.d),y.d*this.d)},gcd:function(e,t){return A(e,t),b(w(y.n,this.n)*w(y.d,this.d),y.d*this.d)},lcm:function(e,t){return(A(e,t),0===y.n&&0===this.n)?b(0,1):b(y.n*this.n,w(y.n,this.n)*w(y.d,this.d))},ceil:function(e){return(e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d))?new S(NaN):b(Math.ceil(e*this.s*this.n/this.d),e)},floor:function(e){return(e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d))?new S(NaN):b(Math.floor(e*this.s*this.n/this.d),e)},round:function(e){return(e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d))?new S(NaN):b(Math.round(e*this.s*this.n/this.d),e)},roundTo:function(e,t){return A(e,t),b(this.s*Math.round(this.n*y.d/(this.d*y.n))*y.n,y.d)},inverse:function(){return b(this.s*this.d,this.n)},pow:function(e,t){if(A(e,t),1===y.d)if(y.s<0)return b(Math.pow(this.s*this.d,y.n),Math.pow(this.n,y.n));else return b(Math.pow(this.s*this.n,y.n),Math.pow(this.d,y.n));if(this.s<0)return null;var r=x(this.n),n=x(this.d),i=1,o=1;for(var a in r)if("1"!==a){if("0"===a){i=0;break}if(r[a]*=y.n,r[a]%y.d!=0)return null;r[a]/=y.d,i*=Math.pow(a,r[a])}for(var a in n)if("1"!==a){if(n[a]*=y.n,n[a]%y.d!=0)return null;n[a]/=y.d,o*=Math.pow(a,n[a])}return y.s<0?b(o,i):b(i,o)},equals:function(e,t){return A(e,t),this.s*this.n*y.d==y.s*y.n*this.d},compare:function(e,t){A(e,t);var r=this.s*this.n*y.d-y.s*y.n*this.d;return(0<r)-(r<0)},simplify:function(e){if(isNaN(this.n)||isNaN(this.d))return this;e=e||.001;for(var t=this.abs(),r=t.toContinued(),n=1;n<r.length;n++){for(var i=b(r[n-1],1),o=n-2;o>=0;o--)i=i.inverse().add(r[o]);if(Math.abs(i.sub(t).valueOf())<e)return i.mul(this.s)}return this},divisible:function(e,t){return A(e,t),!(!(y.n*this.d)||this.n*y.d%(y.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(e){var t,r="",n=this.n,i=this.d;return this.s<0&&(r+="-"),1===i?r+=n:(e&&(t=Math.floor(n/i))>0&&(r+=t,r+=" ",n%=i),r+=n,r+="/",r+=i),r},toLatex:function(e){var t,r="",n=this.n,i=this.d;return this.s<0&&(r+="-"),1===i?r+=n:(e&&(t=Math.floor(n/i))>0&&(r+=t,n%=i),r+="\\frac{",r+=n,r+="}{",r+=i,r+="}"),r},toContinued:function(){var e,t=this.n,r=this.d,n=[];if(isNaN(t)||isNaN(r))return n;do n.push(Math.floor(t/r)),e=t%r,t=r,r=e;while(1!==t);return n},toString:function(e){var t=this.n,r=this.d;if(isNaN(t)||isNaN(r))return"NaN";e=e||15;var n=function(e){for(;e%2==0;e/=2);for(;e%5==0;e/=5);if(1===e)return 0;for(var t=10%e,r=1;1!==t;r++)if(t=10*t%e,r>2e3)return 0;return r}(r),i=function(e,t){for(var r=1,n=function(e,t,r){for(var n=1;t>0;e=e*e%r,t>>=1)1&t&&(n=n*e%r);return n}(10,t,e),i=0;i<300;i++){if(r===n)return i;r=10*r%e,n=10*n%e}return 0}(r,n),o=this.s<0?"-":"";if(o+=t/r|0,t%=r,(t*=10)&&(o+="."),n){for(var a=i;a--;)o+=t/r|0,t%=r,t*=10;o+="(";for(var a=n;a--;)o+=t/r|0,t%=r,t*=10;o+=")"}else for(var a=e;t&&a--;)o+=t/r|0,t%=r,t*=10;return o}};var C=(0,h.P9)("Fraction",[],()=>(S.prototype.type="Fraction",S.prototype.isFraction=!0,S.prototype.toJSON=function(){return{mathjs:"Fraction",n:this.s*this.n,d:this.d}},S.fromJSON=function(e){return new S(e)},S),{isClass:!0}),$=r(42915),O=r(32718);function E(e,t){return!!e&&"object"==typeof e&&(!!(0,O.mQ)(R,t)||!(t in Object.prototype)&&!(t in Function.prototype))}function N(e){return"object"==typeof e&&e&&e.constructor===Object}var R={length:!0,name:!0},T={toString:!0,valueOf:!0,toLocaleString:!0};class I{constructor(e){this.wrappedObject=e}keys(){return Object.keys(this.wrappedObject)}get(e){var t,r,n=this.wrappedObject;if(N(n)&&E(n,e))return n[e];if("function"==typeof n[e]&&(t=n,r=e,!(null==t||"function"!=typeof t[r]||(0,O.mQ)(t,r)&&Object.getPrototypeOf&&r in Object.getPrototypeOf(t))&&((0,O.mQ)(T,r)||!(r in Object.prototype)&&!(r in Function.prototype))))throw Error('Cannot access method "'+e+'" as a property');throw Error('No access to property "'+e+'"')}set(e,t){return!function(e,t,r){if(N(e)&&E(e,t))return e[t]=r;throw Error('No access to property "'+t+'"')}(this.wrappedObject,e,t),this}has(e){return e in this.wrappedObject}}function P(e){return!!e&&(e instanceof Map||e instanceof I||"function"==typeof e.set&&"function"==typeof e.get&&"function"==typeof e.keys&&"function"==typeof e.has)}var j=function(){return j=$.create,$},z=(0,h.P9)("typed",["?BigNumber","?Complex","?DenseMatrix","?Fraction"],function(e){var{BigNumber:t,Complex:r,DenseMatrix:n,Fraction:i}=e,o=j();return o.types=[{name:"number",test:f.Et},{name:"Complex",test:f.Zd},{name:"BigNumber",test:f.C4},{name:"Fraction",test:f.fU},{name:"Unit",test:f.vO},{name:"string",test:f.Kg},{name:"Chain",test:f.o_},{name:"Array",test:f.cy},{name:"Matrix",test:f.OA},{name:"DenseMatrix",test:f.zR},{name:"SparseMatrix",test:f.AF},{name:"Range",test:f._Z},{name:"Index",test:f.nw},{name:"boolean",test:f.Lm},{name:"ResultSet",test:f.eW},{name:"Help",test:f.gS},{name:"function",test:f.Tn},{name:"Date",test:f.$P},{name:"RegExp",test:f.gd},{name:"null",test:f.kZ},{name:"undefined",test:f.b0},{name:"AccessorNode",test:f.AS},{name:"ArrayNode",test:f.gO},{name:"AssignmentNode",test:f.qM},{name:"BlockNode",test:f.CD},{name:"ConditionalNode",test:f.PO},{name:"ConstantNode",test:f.BA},{name:"FunctionNode",test:f.Px},{name:"FunctionAssignmentNode",test:f.m2},{name:"IndexNode",test:f.$I},{name:"Node",test:f.Ll},{name:"ObjectNode",test:f.GJ},{name:"OperatorNode",test:f.$$},{name:"ParenthesisNode",test:f.tv},{name:"RangeNode",test:f.Ye},{name:"SymbolNode",test:f.li},{name:"Map",test:P},{name:"Object",test:f.Gv}],o.conversions=[{from:"number",to:"BigNumber",convert:function(e){if(t||B(e),(0,p.vm)(e)>15)throw TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+e+"). Use function bignumber(x) to convert to BigNumber.");return new t(e)}},{from:"number",to:"Complex",convert:function(e){return r||L(e),new r(e,0)}},{from:"number",to:"string",convert:function(e){return e+""}},{from:"BigNumber",to:"Complex",convert:function(e){return r||L(e),new r(e.toNumber(),0)}},{from:"Fraction",to:"BigNumber",convert:function(e){throw TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(e){return r||L(e),new r(e.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(e){i||D(e);var t=new i(e);if(t.valueOf()!==e)throw TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+e+"). Use function fraction(x) to convert to Fraction.");return t}},{from:"string",to:"number",convert:function(e){var t=Number(e);if(isNaN(t))throw Error('Cannot convert "'+e+'" to a number');return t}},{from:"string",to:"BigNumber",convert:function(e){t||B(e);try{return new t(e)}catch(t){throw Error('Cannot convert "'+e+'" to BigNumber')}}},{from:"string",to:"Fraction",convert:function(e){i||D(e);try{return new i(e)}catch(t){throw Error('Cannot convert "'+e+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(e){r||L(e);try{return new r(e)}catch(t){throw Error('Cannot convert "'+e+'" to Complex')}}},{from:"boolean",to:"number",convert:function(e){return+e}},{from:"boolean",to:"BigNumber",convert:function(e){return t||B(e),new t(+e)}},{from:"boolean",to:"Fraction",convert:function(e){return i||D(e),new i(+e)}},{from:"boolean",to:"string",convert:function(e){return String(e)}},{from:"Array",to:"Matrix",convert:function(e){return n||function(){throw Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}(),new n(e)}},{from:"Matrix",to:"Array",convert:function(e){return e.valueOf()}}],o});function B(e){throw Error("Cannot convert value ".concat(e," into a BigNumber: no class 'BigNumber' provided"))}function L(e){throw Error("Cannot convert value ".concat(e," into a Complex number: no class 'Complex' provided"))}function D(e){throw Error("Cannot convert value ".concat(e," into a Fraction, no class 'Fraction' provided."))}var F={BigNumberDependencies:n.P,ComplexDependencies:{createComplexClass:m},DenseMatrixDependencies:g.k,FractionDependencies:{createFractionClass:C},createTyped:z}},15562(e,t,r){"use strict";function n(e,t,r){if(!(this instanceof n))throw SyntaxError("Constructor must be called with the new operator");this.actual=e,this.expected=t,this.relation=r,this.message="Dimension mismatch ("+(Array.isArray(e)?"["+e.join(", ")+"]":e)+" "+(this.relation||"!=")+" "+(Array.isArray(t)?"["+t.join(", ")+"]":t)+")",this.stack=Error().stack}r.d(t,{h:()=>n}),n.prototype=RangeError(),n.prototype.constructor=RangeError,n.prototype.name="DimensionError",n.prototype.isDimensionError=!0},16086(e,t,r){"use strict";function n(e,t,r){if(!(this instanceof n))throw SyntaxError("Constructor must be called with the new operator");this.index=e,arguments.length<3?(this.min=0,this.max=t):(this.min=t,this.max=r),void 0!==this.min&&this.index<this.min?this.message="Index out of range ("+this.index+" < "+this.min+")":void 0!==this.max&&this.index>=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=Error().stack}r.d(t,{d:()=>n}),n.prototype=RangeError(),n.prototype.constructor=RangeError,n.prototype.name="IndexError",n.prototype.isIndexError=!0},34046(e,t,r){"use strict";r.d(t,{Wf:()=>o,aU:()=>i});var n=r(55624);function i(e,t){var r;if(!(0,n.YN)(e)||!(0,n.YN)(t))throw Error("Parameters in function gcd must be integer numbers");for(;0!==t;)r=e%t,e=t,t=r;return e<0?-e:e}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(0,n.YN)(t)||t<0||t>15)throw Error("Number of decimals in function round must be an integer from 0 to 15 inclusive");return parseFloat((0,n.Mg)(e,t))}i.signature="number, number"},77666(e,t,r){"use strict";r.d(t,{f:()=>o});var n=r(1207),i=r(32718),o=(0,n.P9)("algorithm14",["typed"],e=>{var{typed:t}=e;return function(e,r,n,o){var a,s=e._data,l=e._size,u=e._datatype,c=n;"string"==typeof u&&(a=u,r=t.convert(r,a),c=t.find(n,[a,a]));var d=l.length>0?function e(t,r,n,i,o,a,s){var l=[];if(r===n.length-1)for(var u=0;u<i;u++)l[u]=s?t(a,o[u]):t(o[u],a);else for(var c=0;c<i;c++)l[c]=e(t,r+1,n,n[r+1],o[c],a,s);return l}(c,0,l,l[0],s,r,o):[];return e.createDenseMatrix({data:d,size:(0,i.o8)(l),datatype:a})}})},49204(e,t,r){"use strict";r.d(t,{LO:()=>l,XR:()=>d,cs:()=>f,gR:()=>g,iD:()=>m,ig:()=>function e(t,r){for(var n,i=0,o=0;o<t.length;o++){var a=t[o],s=Array.isArray(a);if(0===o&&s&&(i=a.length),s&&a.length!==i)return;var l=s?e(a,r):r(a);if(void 0===n)n=l;else if(n!==l)return"mixed"}return n},r7:()=>c,tQ:()=>p,tf:()=>u});var n=r(55624),i=r(46797),o=r(93988),a=r(15562),s=r(16086);function l(e){for(var t=[];Array.isArray(e);)t.push(e.length),e=e[0];return t}function u(e,t){if(0===t.length){if(Array.isArray(e))throw new a.h(e.length,0)}else!function e(t,r,n){var i,o=t.length;if(o!==r[n])throw new a.h(o,r[n]);if(n<r.length-1){var s=n+1;for(i=0;i<o;i++){if(!Array.isArray(t[i]))throw new a.h(r.length-1,r.length,"<");e(t[i],r,s)}}else for(i=0;i<o;i++)if(Array.isArray(t[i]))throw new a.h(r.length+1,r.length,">")}(e,t,0)}function c(e,t){if(!(0,i.Et)(e)||!(0,n.YN)(e))throw TypeError("Index must be an integer (value: "+e+")");if(e<0||"number"==typeof t&&e>=t)throw new s.d(e,t)}function d(e,t,r){if(!Array.isArray(e)||!Array.isArray(t))throw TypeError("Array expected");if(0===t.length)throw Error("Resizing to scalar is not supported");return t.forEach(function(e){if(!(0,i.Et)(e)||!(0,n.YN)(e)||e<0)throw TypeError("Invalid size, must contain positive integers (size: "+(0,o.GP)(t)+")")}),function e(t,r,n,i){var o,a,s=t.length,l=r[n],u=Math.min(s,l);if(t.length=l,n<r.length-1){var c=n+1;for(o=0;o<u;o++)Array.isArray(a=t[o])||(a=[a],t[o]=a),e(a,r,c,i);for(o=u;o<l;o++)a=[],t[o]=a,e(a,r,c,i)}else{for(o=0;o<u;o++)for(;Array.isArray(t[o]);)t[o]=t[o][0];for(o=u;o<l;o++)t[o]=i}}(e,t,0,void 0!==r?r:0),e}function p(e,t){var r=function(e){if(!Array.isArray(e))return e;var t=[];return e.forEach(function e(r){Array.isArray(r)?r.forEach(e):t.push(r)}),t}(e),n=r.length;if(!Array.isArray(e)||!Array.isArray(t))throw TypeError("Array expected");if(0===t.length)throw new a.h(0,n,"!=");var i=h(t=f(t,n));if(n!==i)throw new a.h(i,n,"!=");try{return function(e,t){for(var r,n=e,i=t.length-1;i>0;i--){var o=t[i];r=[];for(var a=n.length/o,s=0;s<a;s++)r.push(n.slice(s*o,(s+1)*o));n=r}return n}(r,t)}catch(e){if(e instanceof a.h)throw new a.h(i,n,"!=");throw e}}function f(e,t){var r=h(e),n=e.slice(),i=e.indexOf(-1);if(e.indexOf(-1,i+1)>=0)throw Error("More than one wildcard in sizes");if(i>=0)if(t%r==0)n[i]=-t/r;else throw Error("Could not replace wildcard, since "+t+" is no multiple of "+-r);return n}function h(e){return e.reduce((e,t)=>e*t,1)}function m(e,t,r,n){var i=n||l(e);if(r)for(var o=0;o<r;o++)e=[e],i.unshift(1);for(e=function e(t,r,n){var i,o;if(Array.isArray(t)){var a=n+1;for(i=0,o=t.length;i<o;i++)t[i]=e(t[i],r,a)}else for(var s=n;s<r;s++)t=[t];return t}(e,t,0);i.length<t;)i.push(1);return e}function g(e,t){return -1!==e.indexOf(t)}},1207(e,t,r){"use strict";r.d(t,{P9:()=>i,Py:()=>a,T$:()=>o});var n=r(32718);function i(e,t,r,i){function o(i){var o=(0,n.K)(i,t.map(a));return function(e,t,r){if(!t.filter(e=>{var t;return!((t=e)&&"?"===t[0])}).every(e=>void 0!==r[e])){var n=t.filter(e=>void 0===r[e]);throw Error('Cannot create function "'.concat(e,'", ')+"some dependencies are missing: ".concat(n.map(e=>'"'.concat(e,'"')).join(", "),"."))}}(e,t,i),r(o)}return o.isFactory=!0,o.fn=e,o.dependencies=t.slice().sort(),i&&(o.meta=i),o}function o(e){return"function"==typeof e&&"string"==typeof e.fn&&Array.isArray(e.dependencies)}function a(e){return e&&"?"===e[0]?e.slice(1):e}},46797(e,t,r){"use strict";function n(e){return"number"==typeof e}function i(e){return!!e&&"object"==typeof e&&"function"==typeof e.constructor&&(!0===e.isBigNumber&&"object"==typeof e.constructor.prototype&&!0===e.constructor.prototype.isBigNumber||"function"==typeof e.constructor.isDecimal&&!0===e.constructor.isDecimal(e))}function o(e){return e&&"object"==typeof e&&!0===Object.getPrototypeOf(e).isComplex||!1}function a(e){return e&&"object"==typeof e&&!0===Object.getPrototypeOf(e).isFraction||!1}function s(e){return e&&!0===e.constructor.prototype.isUnit||!1}function l(e){return"string"==typeof e}r.d(t,{$$:()=>j,$I:()=>T,$P:()=>x,AF:()=>f,AS:()=>k,BA:()=>E,C4:()=>i,CD:()=>$,Et:()=>n,GJ:()=>P,Gv:()=>w,Kg:()=>l,Ll:()=>I,Lm:()=>g,OA:()=>c,P3:()=>d,PO:()=>O,Px:()=>R,QP:()=>F,Tn:()=>b,Ye:()=>B,Zd:()=>o,_Z:()=>h,b0:()=>_,cy:()=>u,eW:()=>y,fU:()=>a,gO:()=>M,gS:()=>v,gd:()=>A,kZ:()=>S,li:()=>L,m2:()=>N,nw:()=>m,o_:()=>D,qM:()=>C,tv:()=>z,vO:()=>s,zR:()=>p});var u=Array.isArray;function c(e){return e&&!0===e.constructor.prototype.isMatrix||!1}function d(e){return Array.isArray(e)||c(e)}function p(e){return e&&e.isDenseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function f(e){return e&&e.isSparseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function h(e){return e&&!0===e.constructor.prototype.isRange||!1}function m(e){return e&&!0===e.constructor.prototype.isIndex||!1}function g(e){return"boolean"==typeof e}function y(e){return e&&!0===e.constructor.prototype.isResultSet||!1}function v(e){return e&&!0===e.constructor.prototype.isHelp||!1}function b(e){return"function"==typeof e}function x(e){return e instanceof Date}function A(e){return e instanceof RegExp}function w(e){return!!(e&&"object"==typeof e&&e.constructor===Object&&!o(e)&&!a(e))}function S(e){return null===e}function _(e){return void 0===e}function k(e){return e&&!0===e.isAccessorNode&&!0===e.constructor.prototype.isNode||!1}function M(e){return e&&!0===e.isArrayNode&&!0===e.constructor.prototype.isNode||!1}function C(e){return e&&!0===e.isAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function $(e){return e&&!0===e.isBlockNode&&!0===e.constructor.prototype.isNode||!1}function O(e){return e&&!0===e.isConditionalNode&&!0===e.constructor.prototype.isNode||!1}function E(e){return e&&!0===e.isConstantNode&&!0===e.constructor.prototype.isNode||!1}function N(e){return e&&!0===e.isFunctionAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function R(e){return e&&!0===e.isFunctionNode&&!0===e.constructor.prototype.isNode||!1}function T(e){return e&&!0===e.isIndexNode&&!0===e.constructor.prototype.isNode||!1}function I(e){return e&&!0===e.isNode&&!0===e.constructor.prototype.isNode||!1}function P(e){return e&&!0===e.isObjectNode&&!0===e.constructor.prototype.isNode||!1}function j(e){return e&&!0===e.isOperatorNode&&!0===e.constructor.prototype.isNode||!1}function z(e){return e&&!0===e.isParenthesisNode&&!0===e.constructor.prototype.isNode||!1}function B(e){return e&&!0===e.isRangeNode&&!0===e.constructor.prototype.isNode||!1}function L(e){return e&&!0===e.isSymbolNode&&!0===e.constructor.prototype.isNode||!1}function D(e){return e&&!0===e.constructor.prototype.isChain||!1}function F(e){var t=typeof e;return"object"===t?null===e?"null":Array.isArray(e)?"Array":e instanceof Date?"Date":e instanceof RegExp?"RegExp":i(e)?"BigNumber":o(e)?"Complex":a(e)?"Fraction":c(e)?"Matrix":s(e)?"Unit":m(e)?"Index":h(e)?"Range":y(e)?"ResultSet":I(e)?e.type:D(e)?"Chain":v(e)?"Help":"Object":"function"===t?"Function":t}},55624(e,t,r){"use strict";r.d(t,{GP:()=>p,IY:()=>c,Kk:()=>l,Mg:()=>h,YL:()=>s,YN:()=>i,_S:()=>o,_n:()=>u,p6:()=>a,q8:()=>x,vm:()=>v});var n=r(46797);function i(e){return"boolean"==typeof e||!!isFinite(e)&&e===Math.round(e)}var o=Math.sign||function(e){return e>0?1:e<0?-1:0},a=Math.log2||function(e){return Math.log(e)/Math.LN2},s=Math.log10||function(e){return Math.log(e)/Math.LN10},l=Math.log1p||function(e){return Math.log(e+1)},u=Math.cbrt||function(e){if(0===e)return e;var t,r=e<0;return r&&(e=-e),isFinite(e)?(t=Math.exp(Math.log(e)/3),t=(e/(t*t)+2*t)/3):t=e,r?-t:t},c=Math.expm1||function(e){return e>=2e-4||e<=-2e-4?Math.exp(e)-1:e+e*e/2+e*e*e/6};function d(e,t,r){var n="";if(r){if(r<1)throw Error("size must be in greater than 0");if(!i(r))throw Error("size must be an integer");if(e>2**(r-1)-1||e<-(2**(r-1)))throw Error("Value must be in range [-2^".concat(r-1,", 2^").concat(r-1,"-1]"));if(!i(e))throw Error("Value must be an integer");e<0&&(e+=2**r),n="i".concat(r)}var o="";return e<0&&(e=-e,o="-"),"".concat(o).concat({2:"0b",8:"0o",16:"0x"}[t]).concat(e.toString(t)).concat(n)}function p(e,t){if("function"==typeof t)return t(e);if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(isNaN(e))return"NaN";var r,i,o="auto";if(t&&(t.notation&&(o=t.notation),(0,n.Et)(t)?r=t:(0,n.Et)(t.precision)&&(r=t.precision),t.wordSize)&&"number"!=typeof(i=t.wordSize))throw Error('Option "wordSize" must be a number');switch(o){case"fixed":return h(e,r);case"exponential":return m(e,r);case"engineering":return function(e,t){if(isNaN(e)||!isFinite(e))return String(e);var r=g(f(e),t),i=r.exponent,o=r.coefficients,a=i%3==0?i:i<0?i-3-i%3:i-i%3;if((0,n.Et)(t))for(;t>o.length||i-a+1>o.length;)o.push(0);else for(var s=Math.abs(i-a)-(o.length-1),l=0;l<s;l++)o.push(0);for(var u=Math.abs(i-a),c=1;u>0;)c++,u--;var d=o.slice(c).join(""),p=(0,n.Et)(t)&&d.length||d.match(/[1-9]/)?"."+d:"",h=o.slice(0,c).join("")+p+"e"+(i>=0?"+":"")+a.toString();return r.sign+h}(e,r);case"bin":return d(e,2,i);case"oct":return d(e,8,i);case"hex":return d(e,16,i);case"auto":return(function(e,t,r){if(isNaN(e)||!isFinite(e))return String(e);var n=r&&void 0!==r.lowerExp?r.lowerExp:-3,i=r&&void 0!==r.upperExp?r.upperExp:5,o=f(e),a=t?g(o,t):o;if(a.exponent<n||a.exponent>=i)return m(e,t);var s=a.coefficients,l=a.exponent;s.length<t&&(s=s.concat(y(t-s.length))),s=s.concat(y(l-s.length+1+(s.length<t?t-s.length:0))),s=y(-l).concat(s);var u=l>0?l:0;return u<s.length-1&&s.splice(u+1,0,"."),a.sign+s.join("")})(e,r,t&&t).replace(/((\.\d*?)(0+))($|e)/,function(){var e=arguments[2],t=arguments[4];return"."!==e?e+t:t});default:throw Error('Unknown notation "'+o+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function f(e){var t=String(e).toLowerCase().match(/^(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!t)throw SyntaxError("Invalid number "+e);var r=t[1],n=t[2],i=parseFloat(t[4]||"0"),o=n.indexOf(".");i+=-1!==o?o-1:n.length-1;var a=n.replace(".","").replace(/^0*/,function(e){return i-=e.length,""}).replace(/0*$/,"").split("").map(function(e){return parseInt(e)});return 0===a.length&&(a.push(0),i++),{sign:r,coefficients:a,exponent:i}}function h(e,t){if(isNaN(e)||!isFinite(e))return String(e);var r=f(e),n="number"==typeof t?g(r,r.exponent+1+t):r,i=n.coefficients,o=n.exponent+1,a=o+(t||0);return i.length<a&&(i=i.concat(y(a-i.length))),o<0&&(i=y(-o+1).concat(i),o=1),o<i.length&&i.splice(o,0,0===o?"0.":"."),n.sign+i.join("")}function m(e,t){if(isNaN(e)||!isFinite(e))return String(e);var r=f(e),n=t?g(r,t):r,i=n.coefficients,o=n.exponent;i.length<t&&(i=i.concat(y(t-i.length)));var a=i.shift();return n.sign+a+(i.length>0?"."+i.join(""):"")+"e"+(o>=0?"+":"")+o}function g(e,t){for(var r={sign:e.sign,coefficients:e.coefficients,exponent:e.exponent},n=r.coefficients;t<=0;)n.unshift(0),r.exponent++,t++;if(n.length>t&&n.splice(t,n.length-t)[0]>=5){var i=t-1;for(n[i]++;10===n[i];)n.pop(),0===i&&(n.unshift(0),r.exponent++,i++),i--,n[i]++}return r}function y(e){for(var t=[],r=0;r<e;r++)t.push(0);return t}function v(e){return e.toExponential().replace(/e.*$/,"").replace(/^0\.?0*|\./,"").length}var b=Number.EPSILON||2220446049250313e-31;function x(e,t,r){if(null==r)return e===t;if(e===t)return!0;if(isNaN(e)||isNaN(t))return!1;if(isFinite(e)&&isFinite(t)){var n=Math.abs(e-t);return n<b||n<=Math.max(Math.abs(e),Math.abs(t))*r}return!1}},32718(e,t,r){"use strict";r.d(t,{K:()=>u,Mx:()=>l,QO:()=>function e(t,r){var n,i,o;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(i=0,o=t.length;i<o;i++)if(!e(t[i],r[i]))return!1;return!0}if("function"==typeof t)return t===r;if(!(t instanceof Object))return t===r;if(Array.isArray(r)||!(r instanceof Object))return!1;for(n in t)if(!(n in r)||!e(t[n],r[n]))return!1;for(n in r)if(!(n in t))return!1;return!0},RZ:()=>a,mQ:()=>s,o8:()=>function e(t){var r=typeof t;if("number"===r||"string"===r||"boolean"===r||null==t)return t;if("function"==typeof t.clone)return t.clone();if(Array.isArray(t))return t.map(function(t){return e(t)});if(t instanceof Date)return new Date(t.valueOf());if((0,n.C4)(t))return t;if(t instanceof RegExp)throw TypeError("Cannot clone "+t);return i(t,e)},rU:()=>o,s8:()=>i,zu:()=>c,zw:()=>function e(t,r){if(Array.isArray(r))throw TypeError("Arrays are not supported by deepExtend");for(var n in r)if(s(r,n)&&!(n in Object.prototype)&&!(n in Function.prototype))if(r[n]&&r[n].constructor===Object)void 0===t[n]&&(t[n]={}),t[n]&&t[n].constructor===Object?e(t[n],r[n]):t[n]=r[n];else if(Array.isArray(r[n]))throw TypeError("Arrays are not supported by deepExtend");else t[n]=r[n];return t}});var n=r(46797);function i(e,t){var r={};for(var n in e)s(e,n)&&(r[n]=t(e[n]));return r}function o(e){var t={};return function e(t,r){for(var n in t)if(s(t,n)){var i=t[n];"object"==typeof i&&null!==i?e(i,r):r[n]=i}}(e,t),t}function a(e,t,r){var n,i=!0;Object.defineProperty(e,t,{get:function(){return i&&(n=r(),i=!1),n},set:function(e){n=e,i=!1},configurable:!0,enumerable:!0})}function s(e,t){return e&&Object.hasOwnProperty.call(e,t)}function l(e){return e&&"function"==typeof e.factory}function u(e,t){for(var r={},n=0;n<t.length;n++){var i=t[n],o=e[i];void 0!==o&&(r[i]=o)}return r}function c(e){return Object.keys(e).map(t=>e[t])}},93988(e,t,r){"use strict";r.d(t,{GP:()=>function e(t,r){var s=function(t,r){var s;if("number"==typeof t)return(0,i.GP)(t,r);if((0,n.C4)(t))return function(e,t){if("function"==typeof t)return t(e);if(!e.isFinite())return e.isNaN()?"NaN":e.gt(0)?"Infinity":"-Infinity";var r="auto";if(void 0!==t&&(t.notation&&(r=t.notation),"number"==typeof t?f=t:t.precision&&(f=t.precision),t.wordSize)&&"number"!=typeof(h=t.wordSize))throw Error('Option "wordSize" must be a number');switch(r){case"fixed":return n=e,i=f,n.toFixed(i);case"exponential":return a(e,f);case"engineering":return s=e,l=f,c=(u=s.e)%3==0?u:u<0?u-3-u%3:u-u%3,-1!==(p=(d=s.mul(Math.pow(10,-c))).toPrecision(l)).indexOf("e")&&(p=d.toString()),p+"e"+(u>=0?"+":"")+c.toString();case"bin":return o(e,2,h);case"oct":return o(e,8,h);case"hex":return o(e,16,h);case"auto":var n,i,s,l,u,c,d,p,f,h,m=t&&void 0!==t.lowerExp?t.lowerExp:-3,g=t&&void 0!==t.upperExp?t.upperExp:5;if(e.isZero())return"0";var y=e.toSignificantDigits(f),v=y.e;return(v>=m&&v<g?y.toFixed():a(e,f)).replace(/((\.\d*?)(0+))($|e)/,function(){var e=arguments[2],t=arguments[4];return"."!==e?e+t:t});default:throw Error('Unknown notation "'+r+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}(t,r);if((s=t)&&"object"==typeof s&&"number"==typeof s.s&&"number"==typeof s.n&&"number"==typeof s.d)if(!r||"decimal"!==r.fraction)return t.s*t.n+"/"+t.d;else return t.toString();if(Array.isArray(t))return function t(r,n){if(!Array.isArray(r))return e(r,n);for(var i="[",o=r.length,a=0;a<o;a++)0!==a&&(i+=", "),i+=t(r[a],n);return i+"]"}(t,r);if((0,n.Kg)(t))return'"'+t+'"';if("function"==typeof t)return t.syntax?String(t.syntax):"function";if(t&&"object"==typeof t)if("function"==typeof t.format)return t.format(r);else return t&&t.toString(r)!==({}).toString()?t.toString(r):"{"+Object.keys(t).map(n=>'"'+n+'": '+e(t[n],r)).join(", ")+"}";return String(t)}(t,r);return r&&"object"==typeof r&&"truncate"in r&&s.length>r.truncate?s.substring(0,r.truncate-3)+"...":s}});var n=r(46797),i=r(55624);function o(e,t,r){var n=new e.constructor(2),o="";if(r){if(r<1)throw Error("size must be in greater than 0");if(!(0,i.YN)(r))throw Error("size must be an integer");if(e.greaterThan(n.pow(r-1).sub(1))||e.lessThan(n.pow(r-1).mul(-1)))throw Error("Value must be in range [-2^".concat(r-1,", 2^").concat(r-1,"-1]"));if(!e.isInteger())throw Error("Value must be an integer");e.lessThan(0)&&(e=e.add(n.pow(r))),o="i".concat(r)}switch(t){case 2:return"".concat(e.toBinary()).concat(o);case 8:return"".concat(e.toOctal()).concat(o);case 16:return"".concat(e.toHexadecimal()).concat(o);default:throw Error("Base ".concat(t," not supported "))}}function a(e,t){return void 0!==t?e.toExponential(t-1):e.toExponential()}},37830(e,t,r){"use strict";r.d(t,{G:()=>o,eq:()=>i});var n=r(86045);let i=n.ZS.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class o extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof o))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,n.ZS.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}o.create=e=>new o(e)},86045(e,t,r){"use strict";var n,i,o;r.d(t,{CR:()=>s,ZS:()=>n,Zp:()=>a}),(o=n||(n={})).assertEqual=e=>{},o.assertIs=function(e){},o.assertNever=function(e){throw Error()},o.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},o.getValidEnumValues=e=>{let t=o.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let n of t)r[n]=e[n];return o.objectValues(r)},o.objectValues=e=>o.objectKeys(e).map(function(t){return e[t]}),o.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},o.find=(e,t)=>{for(let r of e)if(t(r))return r},o.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,o.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},o.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(i||(i={})).mergeShapes=(e,t)=>({...e,...t});let a=n.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),s=e=>{switch(typeof e){case"undefined":return a.undefined;case"string":return a.string;case"number":return Number.isNaN(e)?a.nan:a.number;case"boolean":return a.boolean;case"function":return a.function;case"bigint":return a.bigint;case"symbol":return a.symbol;case"object":if(Array.isArray(e))return a.array;if(null===e)return a.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return a.promise;if("u">typeof Map&&e instanceof Map)return a.map;if("u">typeof Set&&e instanceof Set)return a.set;if("u">typeof Date&&e instanceof Date)return a.date;return a.object;default:return a.unknown}}},59140(e,t,r){"use strict";let n;r.d(t,{k5:()=>eT,gM:()=>eE,bz:()=>eM,g1:()=>eN,zM:()=>ek,ai:()=>e_,Ik:()=>e$,YO:()=>eC,Yj:()=>eS,eu:()=>eR,KC:()=>eO});var i,o,a,s,l=r(37830),u=r(86045);let c=(e,t)=>{let r;switch(e.code){case l.eq.invalid_type:r=e.received===u.Zp.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case l.eq.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,u.ZS.jsonStringifyReplacer)}`;break;case l.eq.unrecognized_keys:r=`Unrecognized key(s) in object: ${u.ZS.joinValues(e.keys,", ")}`;break;case l.eq.invalid_union:r="Invalid input";break;case l.eq.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${u.ZS.joinValues(e.options)}`;break;case l.eq.invalid_enum_value:r=`Invalid enum value. Expected ${u.ZS.joinValues(e.options)}, received '${e.received}'`;break;case l.eq.invalid_arguments:r="Invalid function arguments";break;case l.eq.invalid_return_type:r="Invalid function return type";break;case l.eq.invalid_date:r="Invalid date";break;case l.eq.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:u.ZS.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case l.eq.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case l.eq.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case l.eq.custom:r="Invalid input";break;case l.eq.invalid_intersection_types:r="Intersection results could not be merged";break;case l.eq.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case l.eq.not_finite:r="Number must be finite";break;default:r=t.defaultError,u.ZS.assertNever(e)}return{message:r}};(i=a||(a={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},i.toString=e=>"string"==typeof e?e:e?.message;let d=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,o=[...r,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}};function p(e,t){let r=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,c,void 0].filter(e=>!!e)});e.common.issues.push(r)}class f{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return h;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return f.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return h;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let h=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),g=e=>({status:"valid",value:e}),y=e=>"u">typeof Promise&&e instanceof Promise;class v{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let b=(e,t)=>{if("valid"===t.status)return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new l.G(e.common.issues);return this._error=t,this._error}}};function x(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:o}=e;return"invalid_enum_value"===t.code?{message:o??i.defaultError}:void 0===i.data?{message:o??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:o??r??i.defaultError}},description:i}}class A{get description(){return this._def.description}_getType(e){return(0,u.CR)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,u.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new f,ctx:{common:e.parent.common,data:e.data,parsedType:(0,u.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(y(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,u.CR)(e)},n=this._parseSync({data:e,path:r.path,parent:r});return b(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,u.CR)(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return"valid"===r.status?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,u.CR)(e)},n=this._parse({data:e,path:r.path,parent:r});return b(r,await (y(n)?n:Promise.resolve(n)))}refine(e,t){return this._refinement((r,n)=>{let i=e(r),o=()=>n.addIssue({code:l.eq.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(r):t});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(o(),!1)):!!i||(o(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new eh({schema:this,typeName:s.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return em.create(this,this._def)}nullable(){return eg.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return G.create(this)}promise(){return ef.create(this,this._def)}or(e){return J.create([this,e],this._def)}and(e){return er.create(this,e,this._def)}transform(e){return new eh({...x(this._def),schema:this,typeName:s.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ey({...x(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:s.ZodDefault})}brand(){return new ex({typeName:s.ZodBranded,type:this,...x(this._def)})}catch(e){return new ev({...x(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:s.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eA.create(this,e)}readonly(){return ew.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let w=/^c[^\s-]{8,}$/i,S=/^[0-9a-z]+$/,_=/^[0-9A-HJKMNP-TV-Z]{26}$/i,k=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,M=/^[a-z0-9_-]{21}$/i,C=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,$=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,O=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,E=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,N=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,R=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,T=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,I=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,P=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,j="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",z=RegExp(`^${j}$`);function B(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}class L extends A{_parse(e){var t,r,i,o;let a;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==u.Zp.string){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.string,received:t.parsedType}),h}let s=new f;for(let c of this._def.checks)if("min"===c.kind)e.data.length<c.value&&(p(a=this._getOrReturnCtx(e,a),{code:l.eq.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),s.dirty());else if("max"===c.kind)e.data.length>c.value&&(p(a=this._getOrReturnCtx(e,a),{code:l.eq.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),s.dirty());else if("length"===c.kind){let t=e.data.length>c.value,r=e.data.length<c.value;(t||r)&&(a=this._getOrReturnCtx(e,a),t?p(a,{code:l.eq.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}):r&&p(a,{code:l.eq.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}),s.dirty())}else if("email"===c.kind)O.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"email",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("emoji"===c.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"emoji",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("uuid"===c.kind)k.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"uuid",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("nanoid"===c.kind)M.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"nanoid",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("cuid"===c.kind)w.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"cuid",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("cuid2"===c.kind)S.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"cuid2",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("ulid"===c.kind)_.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"ulid",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("url"===c.kind)try{new URL(e.data)}catch{p(a=this._getOrReturnCtx(e,a),{validation:"url",code:l.eq.invalid_string,message:c.message}),s.dirty()}else"regex"===c.kind?(c.regex.lastIndex=0,c.regex.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"regex",code:l.eq.invalid_string,message:c.message}),s.dirty())):"trim"===c.kind?e.data=e.data.trim():"includes"===c.kind?e.data.includes(c.value,c.position)||(p(a=this._getOrReturnCtx(e,a),{code:l.eq.invalid_string,validation:{includes:c.value,position:c.position},message:c.message}),s.dirty()):"toLowerCase"===c.kind?e.data=e.data.toLowerCase():"toUpperCase"===c.kind?e.data=e.data.toUpperCase():"startsWith"===c.kind?e.data.startsWith(c.value)||(p(a=this._getOrReturnCtx(e,a),{code:l.eq.invalid_string,validation:{startsWith:c.value},message:c.message}),s.dirty()):"endsWith"===c.kind?e.data.endsWith(c.value)||(p(a=this._getOrReturnCtx(e,a),{code:l.eq.invalid_string,validation:{endsWith:c.value},message:c.message}),s.dirty()):"datetime"===c.kind?(function(e){let t=`${j}T${B(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)})(c).test(e.data)||(p(a=this._getOrReturnCtx(e,a),{code:l.eq.invalid_string,validation:"datetime",message:c.message}),s.dirty()):"date"===c.kind?z.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{code:l.eq.invalid_string,validation:"date",message:c.message}),s.dirty()):"time"===c.kind?RegExp(`^${B(c)}$`).test(e.data)||(p(a=this._getOrReturnCtx(e,a),{code:l.eq.invalid_string,validation:"time",message:c.message}),s.dirty()):"duration"===c.kind?$.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"duration",code:l.eq.invalid_string,message:c.message}),s.dirty()):"ip"===c.kind?(t=e.data,!(("v4"===(r=c.version)||!r)&&E.test(t)||("v6"===r||!r)&&R.test(t))&&1&&(p(a=this._getOrReturnCtx(e,a),{validation:"ip",code:l.eq.invalid_string,message:c.message}),s.dirty())):"jwt"===c.kind?!function(e,t){if(!C.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,c.alg)&&(p(a=this._getOrReturnCtx(e,a),{validation:"jwt",code:l.eq.invalid_string,message:c.message}),s.dirty()):"cidr"===c.kind?(i=e.data,!(("v4"===(o=c.version)||!o)&&N.test(i)||("v6"===o||!o)&&T.test(i))&&1&&(p(a=this._getOrReturnCtx(e,a),{validation:"cidr",code:l.eq.invalid_string,message:c.message}),s.dirty())):"base64"===c.kind?I.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"base64",code:l.eq.invalid_string,message:c.message}),s.dirty()):"base64url"===c.kind?P.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"base64url",code:l.eq.invalid_string,message:c.message}),s.dirty()):u.ZS.assertNever(c);return{status:s.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:l.eq.invalid_string,...a.errToObj(r)})}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...a.errToObj(e)})}url(e){return this._addCheck({kind:"url",...a.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...a.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...a.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...a.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...a.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...a.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...a.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...a.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...a.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...a.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...a.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...a.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...a.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...a.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...a.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...a.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...a.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...a.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...a.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...a.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...a.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...a.errToObj(t)})}nonempty(e){return this.min(1,a.errToObj(e))}trim(){return new L({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new L({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new L({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}L.create=e=>new L({checks:[],typeName:s.ZodString,coerce:e?.coerce??!1,...x(e)});class D extends A{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==u.Zp.number){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.number,received:t.parsedType}),h}let r=new f;for(let n of this._def.checks)"int"===n.kind?u.ZS.isInteger(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:l.eq.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:l.eq.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:l.eq.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:l.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:l.eq.not_finite,message:n.message}),r.dirty()):u.ZS.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,a.toString(t))}gt(e,t){return this.setLimit("min",e,!1,a.toString(t))}lte(e,t){return this.setLimit("max",e,!0,a.toString(t))}lt(e,t){return this.setLimit("max",e,!1,a.toString(t))}setLimit(e,t,r,n){return new D({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:a.toString(n)}]})}_addCheck(e){return new D({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:a.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:a.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:a.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:a.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:a.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:a.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:a.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:a.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:a.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&u.ZS.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}D.create=e=>new D({checks:[],typeName:s.ZodNumber,coerce:e?.coerce||!1,...x(e)});class F extends A{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==u.Zp.bigint)return this._getInvalidInput(e);let r=new f;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:l.eq.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:l.eq.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(p(t=this._getOrReturnCtx(e,t),{code:l.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):u.ZS.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.bigint,received:t.parsedType}),h}gte(e,t){return this.setLimit("min",e,!0,a.toString(t))}gt(e,t){return this.setLimit("min",e,!1,a.toString(t))}lte(e,t){return this.setLimit("max",e,!0,a.toString(t))}lt(e,t){return this.setLimit("max",e,!1,a.toString(t))}setLimit(e,t,r,n){return new F({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:a.toString(n)}]})}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:a.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:a.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:a.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:a.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:a.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}F.create=e=>new F({checks:[],typeName:s.ZodBigInt,coerce:e?.coerce??!1,...x(e)});class W extends A{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==u.Zp.boolean){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.boolean,received:t.parsedType}),h}return g(e.data)}}W.create=e=>new W({typeName:s.ZodBoolean,coerce:e?.coerce||!1,...x(e)});class Z extends A{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==u.Zp.date){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.date,received:t.parsedType}),h}if(Number.isNaN(e.data.getTime()))return p(this._getOrReturnCtx(e),{code:l.eq.invalid_date}),h;let r=new f;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(p(t=this._getOrReturnCtx(e,t),{code:l.eq.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(p(t=this._getOrReturnCtx(e,t),{code:l.eq.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):u.ZS.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:a.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:a.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Z.create=e=>new Z({checks:[],coerce:e?.coerce||!1,typeName:s.ZodDate,...x(e)});class q extends A{_parse(e){if(this._getType(e)!==u.Zp.symbol){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.symbol,received:t.parsedType}),h}return g(e.data)}}q.create=e=>new q({typeName:s.ZodSymbol,...x(e)});class V extends A{_parse(e){if(this._getType(e)!==u.Zp.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.undefined,received:t.parsedType}),h}return g(e.data)}}V.create=e=>new V({typeName:s.ZodUndefined,...x(e)});class H extends A{_parse(e){if(this._getType(e)!==u.Zp.null){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.null,received:t.parsedType}),h}return g(e.data)}}H.create=e=>new H({typeName:s.ZodNull,...x(e)});class U extends A{constructor(){super(...arguments),this._any=!0}_parse(e){return g(e.data)}}U.create=e=>new U({typeName:s.ZodAny,...x(e)});class Y extends A{constructor(){super(...arguments),this._unknown=!0}_parse(e){return g(e.data)}}Y.create=e=>new Y({typeName:s.ZodUnknown,...x(e)});class K extends A{_parse(e){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.never,received:t.parsedType}),h}}K.create=e=>new K({typeName:s.ZodNever,...x(e)});class X extends A{_parse(e){if(this._getType(e)!==u.Zp.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.void,received:t.parsedType}),h}return g(e.data)}}X.create=e=>new X({typeName:s.ZodVoid,...x(e)});class G extends A{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==u.Zp.array)return p(t,{code:l.eq.invalid_type,expected:u.Zp.array,received:t.parsedType}),h;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(p(t,{code:e?l.eq.too_big:l.eq.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(p(t,{code:l.eq.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(p(t,{code:l.eq.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new v(t,e,t.path,r)))).then(e=>f.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new v(t,e,t.path,r)));return f.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new G({...this._def,minLength:{value:e,message:a.toString(t)}})}max(e,t){return new G({...this._def,maxLength:{value:e,message:a.toString(t)}})}length(e,t){return new G({...this._def,exactLength:{value:e,message:a.toString(t)}})}nonempty(e){return this.min(1,e)}}G.create=(e,t)=>new G({type:e,minLength:null,maxLength:null,exactLength:null,typeName:s.ZodArray,...x(t)});class Q extends A{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=u.ZS.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==u.Zp.object){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.object,received:t.parsedType}),h}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof K&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||o.push(e);let a=[];for(let e of i){let t=n[e],i=r.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new v(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof K){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)a.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(p(r,{code:l.eq.unrecognized_keys,keys:o}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new v(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of a){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>f.mergeObjectSync(t,e)):f.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return a.errToObj,new Q({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:a.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new Q({...this._def,unknownKeys:"strip"})}passthrough(){return new Q({...this._def,unknownKeys:"passthrough"})}extend(e){return new Q({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Q({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:s.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Q({...this._def,catchall:e})}pick(e){let t={};for(let r of u.ZS.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new Q({...this._def,shape:()=>t})}omit(e){let t={};for(let r of u.ZS.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new Q({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof Q){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=em.create(e(i))}return new Q({...t._def,shape:()=>r})}if(t instanceof G)return new G({...t._def,type:e(t.element)});if(t instanceof em)return em.create(e(t.unwrap()));if(t instanceof eg)return eg.create(e(t.unwrap()));if(t instanceof en)return en.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let r of u.ZS.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new Q({...this._def,shape:()=>t})}required(e){let t={};for(let r of u.ZS.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof em;)e=e._def.innerType;t[r]=e}return new Q({...this._def,shape:()=>t})}keyof(){return ec(u.ZS.objectKeys(this.shape))}}Q.create=(e,t)=>new Q({shape:()=>e,unknownKeys:"strip",catchall:K.create(),typeName:s.ZodObject,...x(t)}),Q.strictCreate=(e,t)=>new Q({shape:()=>e,unknownKeys:"strict",catchall:K.create(),typeName:s.ZodObject,...x(t)}),Q.lazycreate=(e,t)=>new Q({shape:e,unknownKeys:"strip",catchall:K.create(),typeName:s.ZodObject,...x(t)});class J extends A{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new l.G(e.ctx.common.issues));return p(t,{code:l.eq.invalid_union,unionErrors:r}),h});{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new l.G(e));return p(t,{code:l.eq.invalid_union,unionErrors:i}),h}}get options(){return this._def.options}}J.create=(e,t)=>new J({options:e,typeName:s.ZodUnion,...x(t)});let ee=e=>{if(e instanceof el)return ee(e.schema);if(e instanceof eh)return ee(e.innerType());if(e instanceof eu)return[e.value];if(e instanceof ed)return e.options;if(e instanceof ep)return u.ZS.objectValues(e.enum);else if(e instanceof ey)return ee(e._def.innerType);else if(e instanceof V)return[void 0];else if(e instanceof H)return[null];else if(e instanceof em)return[void 0,...ee(e.unwrap())];else if(e instanceof eg)return[null,...ee(e.unwrap())];else if(e instanceof ex)return ee(e.unwrap());else if(e instanceof ew)return ee(e.unwrap());else if(e instanceof ev)return ee(e._def.innerType);else return[]};class et extends A{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.Zp.object)return p(t,{code:l.eq.invalid_type,expected:u.Zp.object,received:t.parsedType}),h;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(p(t,{code:l.eq.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=ee(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new et({typeName:s.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...x(r)})}}class er extends A{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if("aborted"===e.status||"aborted"===n.status)return h;let i=function e(t,r){let n=(0,u.CR)(t),i=(0,u.CR)(r);if(t===r)return{valid:!0,data:t};if(n===u.Zp.object&&i===u.Zp.object){let n=u.ZS.objectKeys(r),i=u.ZS.objectKeys(t).filter(e=>-1!==n.indexOf(e)),o={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};o[n]=i.data}return{valid:!0,data:o}}if(n===u.Zp.array&&i===u.Zp.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let o=e(t[i],r[i]);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}if(n===u.Zp.date&&i===u.Zp.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,n.value);return i.valid?(("dirty"===e.status||"dirty"===n.status)&&t.dirty(),{status:t.value,value:i.data}):(p(r,{code:l.eq.invalid_intersection_types}),h)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}er.create=(e,t,r)=>new er({left:e,right:t,typeName:s.ZodIntersection,...x(r)});class en extends A{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==u.Zp.array)return p(r,{code:l.eq.invalid_type,expected:u.Zp.array,received:r.parsedType}),h;if(r.data.length<this._def.items.length)return p(r,{code:l.eq.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),h;!this._def.rest&&r.data.length>this._def.items.length&&(p(r,{code:l.eq.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new v(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>f.mergeArray(t,e)):f.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new en({...this._def,rest:e})}}en.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new en({items:e,typeName:s.ZodTuple,rest:null,...x(t)})};class ei extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==u.Zp.object)return p(r,{code:l.eq.invalid_type,expected:u.Zp.object,received:r.parsedType}),h;let n=[],i=this._def.keyType,o=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new v(r,e,r.path,e)),value:o._parse(new v(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?f.mergeObjectAsync(t,n):f.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new ei(t instanceof A?{keyType:e,valueType:t,typeName:s.ZodRecord,...x(r)}:{keyType:L.create(),valueType:e,typeName:s.ZodRecord,...x(t)})}}class eo extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==u.Zp.map)return p(r,{code:l.eq.invalid_type,expected:u.Zp.map,received:r.parsedType}),h;let n=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([e,t],o)=>({key:n._parse(new v(r,e,r.path,[o,"key"])),value:i._parse(new v(r,t,r.path,[o,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return h;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of o){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return h;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}eo.create=(e,t,r)=>new eo({valueType:t,keyType:e,typeName:s.ZodMap,...x(r)});class ea extends A{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==u.Zp.set)return p(r,{code:l.eq.invalid_type,expected:u.Zp.set,received:r.parsedType}),h;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(p(r,{code:l.eq.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(p(r,{code:l.eq.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function o(e){let r=new Set;for(let n of e){if("aborted"===n.status)return h;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let a=[...r.data.values()].map((e,t)=>i._parse(new v(r,e,r.path,t)));return r.common.async?Promise.all(a).then(e=>o(e)):o(a)}min(e,t){return new ea({...this._def,minSize:{value:e,message:a.toString(t)}})}max(e,t){return new ea({...this._def,maxSize:{value:e,message:a.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ea.create=(e,t)=>new ea({valueType:e,minSize:null,maxSize:null,typeName:s.ZodSet,...x(t)});class es extends A{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.Zp.function)return p(t,{code:l.eq.invalid_type,expected:u.Zp.function,received:t.parsedType}),h;function r(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c,c].filter(e=>!!e),issueData:{code:l.eq.invalid_arguments,argumentsError:r}})}function n(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c,c].filter(e=>!!e),issueData:{code:l.eq.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof ef){let e=this;return g(async function(...t){let a=new l.G([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw a.addIssue(r(t,e)),a}),u=await Reflect.apply(o,this,s);return await e._def.returns._def.type.parseAsync(u,i).catch(e=>{throw a.addIssue(n(u,e)),a})})}{let e=this;return g(function(...t){let a=e._def.args.safeParse(t,i);if(!a.success)throw new l.G([r(t,a.error)]);let s=Reflect.apply(o,this,a.data),u=e._def.returns.safeParse(s,i);if(!u.success)throw new l.G([n(s,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new es({...this._def,args:en.create(e).rest(Y.create())})}returns(e){return new es({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new es({args:e||en.create([]).rest(Y.create()),returns:t||Y.create(),typeName:s.ZodFunction,...x(r)})}}class el extends A{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}el.create=(e,t)=>new el({getter:e,typeName:s.ZodLazy,...x(t)});class eu extends A{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:l.eq.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ec(e,t){return new ed({values:e,typeName:s.ZodEnum,...x(t)})}eu.create=(e,t)=>new eu({value:e,typeName:s.ZodLiteral,...x(t)});class ed extends A{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return p(t,{expected:u.ZS.joinValues(r),received:t.parsedType,code:l.eq.invalid_type}),h}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return p(t,{received:t.data,code:l.eq.invalid_enum_value,options:r}),h}return g(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ed.create(e,{...this._def,...t})}exclude(e,t=this._def){return ed.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}ed.create=ec;class ep extends A{_parse(e){let t=u.ZS.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==u.Zp.string&&r.parsedType!==u.Zp.number){let e=u.ZS.objectValues(t);return p(r,{expected:u.ZS.joinValues(e),received:r.parsedType,code:l.eq.invalid_type}),h}if(this._cache||(this._cache=new Set(u.ZS.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=u.ZS.objectValues(t);return p(r,{received:r.data,code:l.eq.invalid_enum_value,options:e}),h}return g(e.data)}get enum(){return this._def.values}}ep.create=(e,t)=>new ep({values:e,typeName:s.ZodNativeEnum,...x(t)});class ef extends A{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==u.Zp.promise&&!1===t.common.async?(p(t,{code:l.eq.invalid_type,expected:u.Zp.promise,received:t.parsedType}),h):g((t.parsedType===u.Zp.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ef.create=(e,t)=>new ef({type:e,typeName:s.ZodPromise,...x(t)});class eh extends A{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===s.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{p(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return h;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n});{if("aborted"===t.value)return h;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?h:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?h:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>"valid"!==e.status?h:Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if("valid"!==e.status)return h;let o=n.transform(e.value,i);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}u.ZS.assertNever(n)}}eh.create=(e,t,r)=>new eh({schema:e,typeName:s.ZodEffects,effect:t,...x(r)}),eh.createWithPreprocess=(e,t,r)=>new eh({schema:t,effect:{type:"preprocess",transform:e},typeName:s.ZodEffects,...x(r)});class em extends A{_parse(e){return this._getType(e)===u.Zp.undefined?g(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}em.create=(e,t)=>new em({innerType:e,typeName:s.ZodOptional,...x(t)});class eg extends A{_parse(e){return this._getType(e)===u.Zp.null?g(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eg.create=(e,t)=>new eg({innerType:e,typeName:s.ZodNullable,...x(t)});class ey extends A{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===u.Zp.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ey.create=(e,t)=>new ey({innerType:e,typeName:s.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...x(t)});class ev extends A{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return y(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l.G(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new l.G(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:s.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...x(t)});class eb extends A{_parse(e){if(this._getType(e)!==u.Zp.nan){let t=this._getOrReturnCtx(e);return p(t,{code:l.eq.invalid_type,expected:u.Zp.nan,received:t.parsedType}),h}return{status:"valid",value:e.data}}}eb.create=e=>new eb({typeName:s.ZodNaN,...x(e)}),Symbol("zod_brand");class ex extends A{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eA extends A{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eA({in:e,out:t,typeName:s.ZodPipeline})}}class ew extends A{_parse(e){let t=this._def.innerType._parse(e),r=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return y(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}ew.create=(e,t)=>new ew({innerType:e,typeName:s.ZodReadonly,...x(t)}),Q.lazycreate,(o=s||(s={})).ZodString="ZodString",o.ZodNumber="ZodNumber",o.ZodNaN="ZodNaN",o.ZodBigInt="ZodBigInt",o.ZodBoolean="ZodBoolean",o.ZodDate="ZodDate",o.ZodSymbol="ZodSymbol",o.ZodUndefined="ZodUndefined",o.ZodNull="ZodNull",o.ZodAny="ZodAny",o.ZodUnknown="ZodUnknown",o.ZodNever="ZodNever",o.ZodVoid="ZodVoid",o.ZodArray="ZodArray",o.ZodObject="ZodObject",o.ZodUnion="ZodUnion",o.ZodDiscriminatedUnion="ZodDiscriminatedUnion",o.ZodIntersection="ZodIntersection",o.ZodTuple="ZodTuple",o.ZodRecord="ZodRecord",o.ZodMap="ZodMap",o.ZodSet="ZodSet",o.ZodFunction="ZodFunction",o.ZodLazy="ZodLazy",o.ZodLiteral="ZodLiteral",o.ZodEnum="ZodEnum",o.ZodEffects="ZodEffects",o.ZodNativeEnum="ZodNativeEnum",o.ZodOptional="ZodOptional",o.ZodNullable="ZodNullable",o.ZodDefault="ZodDefault",o.ZodCatch="ZodCatch",o.ZodPromise="ZodPromise",o.ZodBranded="ZodBranded",o.ZodPipeline="ZodPipeline",o.ZodReadonly="ZodReadonly";let eS=L.create,e_=D.create;eb.create,F.create;let ek=W.create;Z.create,q.create,V.create,H.create;let eM=U.create;Y.create,K.create,X.create;let eC=G.create,e$=Q.create;Q.strictCreate;let eO=J.create,eE=et.create;er.create,en.create;let eN=ei.create;eo.create,ea.create,es.create,el.create;let eR=eu.create,eT=ed.create;ep.create,ef.create,eh.create,em.create,eg.create,eh.createWithPreprocess,eA.create}}]);