diff --git a/view/assets/AddOutlined-d979d573.js b/view/assets/AddOutlined-654406e2.js similarity index 95% rename from view/assets/AddOutlined-d979d573.js rename to view/assets/AddOutlined-654406e2.js index d6391ba9..a6fc49bb 100644 --- a/view/assets/AddOutlined-d979d573.js +++ b/view/assets/AddOutlined-654406e2.js @@ -1 +1 @@ -import{i as t,d as i,j as g,D as u}from"./index-cb8d8b59.js";import{B as f}from"./DeleteOutlineOutlined-2068af5e.js";import{r as m,i as h}from"./createSvgIcon-b45af2a3.js";import{j as b}from"./reactDnd-72acd3f4.js";const T=t("div",{target:"e1m1j6jk11"})("overflow-x:hidden;border-radius:3px;background:",({theme:e})=>e.background,";color:",({theme:e})=>e.contrast,";width:100%;height:100%;overflow-y:auto;display:flex;flex:1;flex-direction:column;height:100%;align-items:center;.cont{max-width:1440px;padding:10px;margin:10px;width:100%;background:",({theme:e})=>e.shadow,";display:flex;flex-direction:column;flex:1;overflow-x:hidden;}.ds-header{padding:10px;padding-bottom:20px;font-size:24px;display:flex;margin:10px;justify-content:space-between;align-items:center;padding-left:0px;.logo{margin-right:10px;}}.ds-cont{margin-bottom:10px;border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;color:",({theme:e})=>e.contrast,";}.ds-item{padding:10px;border-radius:3px 3px 0px 0px;padding-bottom:14px;display:flex;color:",({theme:e})=>e.contrast,";.logo{padding:10px;padding-right:20px;padding-left:0px;}.ds-text{display:flex;flex-direction:column;flex:1;}.ds-type{font-size:18px;padding:10px;padding-left:0px;color:",({theme:e})=>e.contrast,";}small{font-size:12px;}.setting-icon{justify-self:flex-end;cursor:pointer;}.ds-settings{background:",({theme:e})=>e.background,";}}.plugins-cont{display:flex;flex:1;margin:0px 10px;flex-direction:column;padding:10px 20px;border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;height:fit-content;.title{font-size:14px;padding:10px 0px;}}"),y=t("div",{target:"e1m1j6jk10"})("color:",({theme:e})=>e.contrast,";display:flex;align-items:center;font-size:12px;padding:0px 10px;white-space:nowrap;",e=>e.width!==null?`width:${e.width}px;`:""," border-radius:3px 0px 0px 3px;display:flex;align-items:center;height:28px;"),j=t("input",{target:"e1m1j6jk9"})("display:flex;flex:1;background:",({theme:e})=>e.deep,";color:",({theme:e})=>e.contrast,";border:1px solid ",e=>e.error?"#b62c14":e.theme.accentNeutral,";border-radius:3px;justify-self:flex-end;height:26px;padding-left:8px;"),E=t("textarea",{target:"e1m1j6jk8"})("display:flex;flex:1;background:",({theme:e})=>e.deep,";color:",({theme:e})=>e.contrast,";border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;justify-self:flex-end;padding-left:8px;"),w=t("div",{target:"e1m1j6jk7"})("display:flex;flex-direction:row;margin-top:5px;align-items:center;",e=>e!=null&&e.width&&(e==null?void 0:e.width)==="normal"?"":"flex:1;","select{background:",({theme:e})=>e.deep,";color:",({theme:e})=>e.contrast,";border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;font-size:12px;height:30px;display:flex;align-items:center;padding:1px 2px 1px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;option{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}"),L=t("div",{target:"e1m1j6jk6"})({name:"1uek1ww",styles:"display:flex;margin:15px 0px;margin-left:14px;flex-wrap:wrap;align-items:center;flex:1;&.internal{max-width:400px;}"}),P=t("div",{target:"e1m1j6jk4"})({name:"e23o9g",styles:"padding:10px"}),q=t("div",{target:"e1m1j6jk3"})("margin:10px 0px;padding-bottom:10px;border-bottom:1px solid ",({theme:e})=>e.background,";"),B=t("div",{target:"e1m1j6jk2"})("padding:10px;border-bottom:1px solid ",({theme:e})=>e.shadow,";border-radius:3px;display:flex;flex:1;align-items:center;justify-content:space-between;.edit-buttons{display:flex;align-items:center;&:disabled{display:none;}}"),F=t("div",{target:"e1m1j6jk1"})("background:",({theme:e})=>e.deep,";padding:10px;border-radius:0px 0px 3px 3px;border-top:1px solid ",({theme:e})=>e.accentNeutral,";"),M=t(f,{target:"e1m1j6jk0"})("background:",e=>e.primary?e.theme.primary:e.theme.neutral,";border:1px solid ",({theme:e})=>e.accentNeutral,";color:",e=>e.primary?e.theme.maxContrast:e.theme.contrast,";margin-left:5px;transition:0.25s all;justify-content:center;padding:3px 12px;height:28px;display:flex;&:hover{background:",({theme:e})=>e.primaryLight,";color:",e=>e.primary?e.theme.contrast:e.theme.maxContrast,";}&:disabled{background:",({theme:e})=>e.neutral,";border:1px solid ",({theme:e})=>e.accentNeutral,";cursor:not-allowed;color:",({theme:e})=>e.contrast,";}@media screen and (max-width: 1070px){display:flex;margin:0;}"),v="/assets/metrics_icon-9cba0731.png",n="/assets/logs_icon-972f9506.png",k="/assets/traces_icon-a9ed0318.png",_={metrics_icon:v,logs_icon:n,traces_icon:k},G=({icon:e,style:a})=>i("img",{height:"40px",className:"logo",style:a,src:_[e]||n,alt:e}),H=e=>{const{value:a,label:d,onChange:o,locked:l,type:s,placeholder:p,error:x,labelWidth:c}=e;return g(w,{children:[i(y,{width:c||null,children:d}),i(j,{className:"ds-input",disabled:l,error:x||!1,onChange:o,type:s,value:u.sanitize(a),placeholder:p})]})},U=e=>a=>{a({type:"SET_DATA_SOURCES",dataSources:e})};var r={},S=h;Object.defineProperty(r,"__esModule",{value:!0});var N=r.default=void 0,C=S(m()),D=b,I=(0,C.default)((0,D.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"AddOutlined");N=r.default=I;export{M as D,H as F,w as I,y as L,T as P,B as S,E as T,L as a,q as b,P as c,N as d,G as e,F as f,U as s}; +import{i as t,d as i,j as g,D as u}from"./index-bc3ec90a.js";import{B as f}from"./DeleteOutlineOutlined-d455761f.js";import{r as m,i as h}from"./createSvgIcon-e78f4b10.js";import{j as b}from"./reactDnd-dc8b0776.js";const T=t("div",{target:"e1m1j6jk11"})("overflow-x:hidden;border-radius:3px;background:",({theme:e})=>e.background,";color:",({theme:e})=>e.contrast,";width:100%;height:100%;overflow-y:auto;display:flex;flex:1;flex-direction:column;height:100%;align-items:center;.cont{max-width:1440px;padding:10px;margin:10px;width:100%;background:",({theme:e})=>e.shadow,";display:flex;flex-direction:column;flex:1;overflow-x:hidden;}.ds-header{padding:10px;padding-bottom:20px;font-size:24px;display:flex;margin:10px;justify-content:space-between;align-items:center;padding-left:0px;.logo{margin-right:10px;}}.ds-cont{margin-bottom:10px;border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;color:",({theme:e})=>e.contrast,";}.ds-item{padding:10px;border-radius:3px 3px 0px 0px;padding-bottom:14px;display:flex;color:",({theme:e})=>e.contrast,";.logo{padding:10px;padding-right:20px;padding-left:0px;}.ds-text{display:flex;flex-direction:column;flex:1;}.ds-type{font-size:18px;padding:10px;padding-left:0px;color:",({theme:e})=>e.contrast,";}small{font-size:12px;}.setting-icon{justify-self:flex-end;cursor:pointer;}.ds-settings{background:",({theme:e})=>e.background,";}}.plugins-cont{display:flex;flex:1;margin:0px 10px;flex-direction:column;padding:10px 20px;border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;height:fit-content;.title{font-size:14px;padding:10px 0px;}}"),y=t("div",{target:"e1m1j6jk10"})("color:",({theme:e})=>e.contrast,";display:flex;align-items:center;font-size:12px;padding:0px 10px;white-space:nowrap;",e=>e.width!==null?`width:${e.width}px;`:""," border-radius:3px 0px 0px 3px;display:flex;align-items:center;height:28px;"),j=t("input",{target:"e1m1j6jk9"})("display:flex;flex:1;background:",({theme:e})=>e.deep,";color:",({theme:e})=>e.contrast,";border:1px solid ",e=>e.error?"#b62c14":e.theme.accentNeutral,";border-radius:3px;justify-self:flex-end;height:26px;padding-left:8px;"),E=t("textarea",{target:"e1m1j6jk8"})("display:flex;flex:1;background:",({theme:e})=>e.deep,";color:",({theme:e})=>e.contrast,";border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;justify-self:flex-end;padding-left:8px;"),w=t("div",{target:"e1m1j6jk7"})("display:flex;flex-direction:row;margin-top:5px;align-items:center;",e=>e!=null&&e.width&&(e==null?void 0:e.width)==="normal"?"":"flex:1;","select{background:",({theme:e})=>e.deep,";color:",({theme:e})=>e.contrast,";border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;font-size:12px;height:30px;display:flex;align-items:center;padding:1px 2px 1px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;option{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}"),L=t("div",{target:"e1m1j6jk6"})({name:"1uek1ww",styles:"display:flex;margin:15px 0px;margin-left:14px;flex-wrap:wrap;align-items:center;flex:1;&.internal{max-width:400px;}"}),P=t("div",{target:"e1m1j6jk4"})({name:"e23o9g",styles:"padding:10px"}),q=t("div",{target:"e1m1j6jk3"})("margin:10px 0px;padding-bottom:10px;border-bottom:1px solid ",({theme:e})=>e.background,";"),B=t("div",{target:"e1m1j6jk2"})("padding:10px;border-bottom:1px solid ",({theme:e})=>e.shadow,";border-radius:3px;display:flex;flex:1;align-items:center;justify-content:space-between;.edit-buttons{display:flex;align-items:center;&:disabled{display:none;}}"),F=t("div",{target:"e1m1j6jk1"})("background:",({theme:e})=>e.deep,";padding:10px;border-radius:0px 0px 3px 3px;border-top:1px solid ",({theme:e})=>e.accentNeutral,";"),M=t(f,{target:"e1m1j6jk0"})("background:",e=>e.primary?e.theme.primary:e.theme.neutral,";border:1px solid ",({theme:e})=>e.accentNeutral,";color:",e=>e.primary?e.theme.maxContrast:e.theme.contrast,";margin-left:5px;transition:0.25s all;justify-content:center;padding:3px 12px;height:28px;display:flex;&:hover{background:",({theme:e})=>e.primaryLight,";color:",e=>e.primary?e.theme.contrast:e.theme.maxContrast,";}&:disabled{background:",({theme:e})=>e.neutral,";border:1px solid ",({theme:e})=>e.accentNeutral,";cursor:not-allowed;color:",({theme:e})=>e.contrast,";}@media screen and (max-width: 1070px){display:flex;margin:0;}"),v="/assets/metrics_icon-9cba0731.png",n="/assets/logs_icon-972f9506.png",k="/assets/traces_icon-a9ed0318.png",_={metrics_icon:v,logs_icon:n,traces_icon:k},G=({icon:e,style:a})=>i("img",{height:"40px",className:"logo",style:a,src:_[e]||n,alt:e}),H=e=>{const{value:a,label:d,onChange:o,locked:l,type:s,placeholder:p,error:x,labelWidth:c}=e;return g(w,{children:[i(y,{width:c||null,children:d}),i(j,{className:"ds-input",disabled:l,error:x||!1,onChange:o,type:s,value:u.sanitize(a),placeholder:p})]})},U=e=>a=>{a({type:"SET_DATA_SOURCES",dataSources:e})};var r={},S=h;Object.defineProperty(r,"__esModule",{value:!0});var N=r.default=void 0,C=S(m()),D=b,I=(0,C.default)((0,D.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"AddOutlined");N=r.default=I;export{M as D,H as F,w as I,y as L,T as P,B as S,E as T,L as a,q as b,P as c,N as d,G as e,F as f,U as s}; diff --git a/view/assets/App-78490b7d.js b/view/assets/App-78490b7d.js new file mode 100644 index 00000000..870f6d0c --- /dev/null +++ b/view/assets/App-78490b7d.js @@ -0,0 +1 @@ +import{s as H,a as Q,u as Y,c as J,b as X,l as Z,j as d,d as i,e as j,f as y,F as O,g as T,h as P,N as ee}from"./index-bc3ec90a.js";import{g as te,d as re,M as g,s as ie,a as L,n as A,T as ae,B as oe,b as ne,F as se,c as le,e as ce,P as de,S as pe}from"./consts-7d32bda4.js";import{r as x,R as ue}from"./react-432945ee.js";import{r as b,i as $}from"./createSvgIcon-e78f4b10.js";import{j as v}from"./reactDnd-dc8b0776.js";import{a as u,d as he,m as E,q as V,u as w,L as _,O as ve}from"./vendor-3db6068a.js";import"./reactSelect-db5d744f.js";import"./memoize-acaceb73.js";import"./PluginManagerFactory-e4944f23.js";import"./DeleteOutlineOutlined-d455761f.js";const fe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],ge=e=>{const{absolute:t,children:r,classes:o,flexItem:n,light:s,orientation:l,textAlign:a,variant:p}=e;return X({root:["root",t&&"absolute",p,s&&"light",l==="vertical"&&"vertical",n&&"flexItem",r&&"withChildren",r&&l==="vertical"&&"withChildrenVertical",a==="right"&&l!=="vertical"&&"textAlignRight",a==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},te,o)},me=H("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>u({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Q(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>u({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>u({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>u({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>u({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),xe=H("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>u({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),B=x.forwardRef(function(t,r){const o=Y({props:t,name:"MuiDivider"}),{absolute:n=!1,children:s,className:l,component:a=s?"div":"hr",flexItem:p=!1,light:f=!1,orientation:m="horizontal",role:c=a!=="hr"?"separator":void 0,textAlign:S="center",variant:h="fullWidth"}=o,K=he(o,fe),C=u({},o,{absolute:n,component:a,flexItem:p,light:f,orientation:m,role:c,textAlign:S,variant:h}),D=ge(C);return v.jsx(me,u({as:a,className:J(D.root,l),role:c,ref:r,ownerState:C},K,{children:s?v.jsx(xe,{className:D.wrapper,ownerState:C,children:s}):null}))});B.muiSkipListHighlight=!0;const I=B;var N={},be=$;Object.defineProperty(N,"__esModule",{value:!0});var U=N.default=void 0,$e=be(b()),_e=v,Se=(0,$e.default)((0,_e.jsx)("path",{d:"M19.3 16.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S11 12 11 14.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l3.2 3.2 1.4-1.4-3.2-3.2zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12 20v2C6.48 22 2 17.52 2 12S6.48 2 12 2c4.84 0 8.87 3.44 9.8 8h-2.07c-.64-2.46-2.4-4.47-4.73-5.41V5c0 1.1-.9 2-2 2h-2v2c0 .55-.45 1-1 1H8v2h2v3H9l-4.79-4.79C4.08 10.79 4 11.38 4 12c0 4.41 3.59 8 8 8z"}),"TravelExplore");U=N.default=Se;var R={},Ce=$;Object.defineProperty(R,"__esModule",{value:!0});var q=R.default=void 0,we=Ce(b()),ye=v,Ne=(0,we.default)((0,ye.jsx)("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"}),"Extension");q=R.default=Ne;var k={},Re=$;Object.defineProperty(k,"__esModule",{value:!0});var W=k.default=void 0,ke=Re(b()),Me=v,ze=(0,ke.default)((0,Me.jsx)("path",{d:"M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"}),"PersonOutlineOutlined");W=k.default=ze;var M={},De=$;Object.defineProperty(M,"__esModule",{value:!0});var F=M.default=void 0,je=De(b()),Le=v,Ae=(0,je.default)((0,Le.jsx)("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"}),"Storage");F=M.default=Ae;function Ie(e){const{c:t}=e,r=E(),o=Z(),n="Link Copied To Clipboard";function s(){r(ie(!0)),setTimeout(()=>{var l;if(navigator!=null&&navigator.clipboard&&window.isSecureContext)(l=navigator==null?void 0:navigator.clipboard)==null||l.writeText(window.location.href).then(function(){const a=o.add({data:window.location.href,description:"From Shared URL"},10);r(L(a)),r(j({type:A.success,message:n}))},function(a){console.log("error on copy",a)});else{let a=document.createElement("textarea");return a.value=window.location.href,a.style.position="fixed",a.style.left="-999999px",a.style.top="-999999px",document.body.appendChild(a),a.focus(),a.select(),new Promise((p,f)=>{const m=o.add({data:window.location.href,description:"From Shared URL"},10);r(L(m)),document.execCommand("copy")?p():f(),a.remove(),r(j({type:A.success,message:n}))})}},200)}return d(g,{onClick:s,disabled:!1,style:{fontSize:"12px"},children:[" ",i(re,{fontSize:"small",className:t}),i("span",{children:"Copy Link"})]})}var z={},He=$;Object.defineProperty(z,"__esModule",{value:!0});var G=z.default=void 0,Oe=He(b()),Te=v,Pe=(0,Oe.default)((0,Te.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");G=z.default=Pe;const Ee=e=>({color:`${e.contrast}`,overflow:"visible",fontSize:"12px",background:`${e.shadow}`,border:`1px solid ${e.accentNeutral}`,mt:1.5,"& .MuiAvatar-root":{width:32,height:32,ml:-.5,mr:1},"&:before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,borderLeft:`1px solid ${e.accentNeutral}`,borderTop:`1px solid ${e.accentNeutral}`,bgcolor:`${e.shadow}`,transform:"translateY(-50%) rotate(45deg)",zIndex:0},"& .icon":{fontSize:"16px",marginRight:"4px",color:`${e.contrast}`},"& .item":{fontSize:"12px",color:`${e.contrast}`}}),Ve=e=>({display:"flex",justifyContent:"center",alignItems:"center",marginLeft:2,paddingLeft:0,cursor:"pointer",paddingRight:0,width:"30px",height:"30px",background:"none",borderRadius:"3px",color:`${e.accentNeutral}`,border:`1px solid ${e.accentNeutral}`});function Be(){const{key:e}=V(),t=w(h=>h.showDataSourceSetting),r=w(h=>h.currentUser.role),o=E(),n=y(),[s,l]=ue.useState(null),a=x.useMemo(()=>!!s,[s]),[p,f]=x.useState(r||"superAdmin");x.useEffect(()=>{f(r)},[r]),x.useEffect(()=>{c()},[e]);const m=h=>{l(()=>h.currentTarget)},c=()=>{l(()=>{})},S=()=>{c(),o(ce(!0))};return d(O,{children:[i(oe,{sx:{display:"flex",alignItems:"center",textAlign:"center"},children:i(ae,{title:"Settings",children:i("button",{onClick:m,style:Ve(n),"aria-controls":a?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":a?"true":void 0,children:i(G,{style:{width:"14px",height:"14px"}})})})}),d(ne,{id:"account-menu",anchorEl:s,open:a,onClose:c,onClick:c,PaperProps:{elevation:0,sx:Ee(n)},TransitionComponent:se,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},children:[i(Ie,{c:"icon"}),i(I,{}),d(g,{onClick:S,className:"item",children:[i(le,{className:"icon"})," General Settings"]}),i(I,{}),i(_,{to:"/",children:d(g,{className:"item",onClick:c,children:[i(U,{className:"icon"}),"Search"]})}),i(_,{to:"/plugins",children:d(g,{className:"item",onClick:c,children:[i(q,{className:"icon"}),"Plugins"]})}),i(_,{to:"/users",children:d(g,{className:"item",onClick:c,children:[i(W,{className:"icon"}),"Users"]})}),t&&(p==="admin"||p==="superAdmin")&&i(_,{to:"datasources",children:d(g,{className:"item",onClick:c,children:[i(F,{className:"icon"}),"Datasources"]})})]})]})}const Ue="/assets/qryn-logo-cd0b42d9.png",qe=()=>{const r=V().pathname.split("/").map((o,n)=>o===""&&n===0?{name:"home",link:"/"}:{name:`/${o}`,link:o});return i(O,{children:r.map(({name:o,link:n},s)=>i("a",{href:n,className:"bread-link",children:o},s))})},We=e=>P("background:",e.shadow,";height:30px;padding:4px;display:flex;align-items:center;border-bottom:1px solid ",e.accentNeutral,";.logo-section{margin:0;.version{color:",e.contrast,";font-size:10px;margin-left:5px;}.path{color:",e.contrast,";margin-left:20px;flex:1;font-weight:bold;text-transform:uppercase;font-size:11px;letter-spacing:1px;.bread-link{cursor:pointer;&:hover{color:",e.primary,";}}}}",""),Fe=()=>{const e=y();return d("div",{className:T(We(e)),children:[d("div",{className:"logo-section",children:[i("img",{src:Ue,alt:"Qryn View",height:"24px",className:"logo"}),i("p",{className:"version",children:"0.27.3"}),i("p",{className:"path",children:i(qe,{})})]}),i(de,{section:"Status Bar",localProps:e}),i(Be,{})]})},Ge=e=>P("background:",e.background,";display:flex;flex-direction:column;height:100vh;flex:1;","");function at(){const e=y(),t=w(r=>r.settingsDialogOpen);return d("div",{className:T(Ge(e)),children:[i(Fe,{}),i(ve,{}),i(ee,{}),i(pe,{open:t})]})}export{Ge as MainAppStyles,at as default}; diff --git a/view/assets/App-b0375afd.js b/view/assets/App-b0375afd.js deleted file mode 100644 index 7b9faf14..00000000 --- a/view/assets/App-b0375afd.js +++ /dev/null @@ -1 +0,0 @@ -import{s as I,a as K,u as Q,c as Y,b as J,l as X,j as p,d as i,e as D,f as w,F as H,g as O,h as P,N as Z}from"./index-cb8d8b59.js";import{g as ee,d as te,M as g,s as re,a as j,n as L,T as ie,B as ae,b as oe,F as ne,c as se,e as le,P as ce,S as de}from"./consts-e7fba829.js";import{r as _,R as pe}from"./react-432945ee.js";import{r as m,i as x}from"./createSvgIcon-b45af2a3.js";import{j as v}from"./reactDnd-72acd3f4.js";import{a as u,d as ue,m as T,u as C,L as $,q as he,O as ve}from"./vendor-6029fc34.js";import"./reactSelect-75171a09.js";import"./memoize-acaceb73.js";import"./PluginManagerFactory-a0a578f6.js";import"./DeleteOutlineOutlined-2068af5e.js";const fe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],ge=e=>{const{absolute:t,children:r,classes:o,flexItem:n,light:l,orientation:s,textAlign:a,variant:h}=e;return J({root:["root",t&&"absolute",h,l&&"light",s==="vertical"&&"vertical",n&&"flexItem",r&&"withChildren",r&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},ee,o)},me=I("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>u({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:K(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>u({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>u({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>u({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>u({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),xe=I("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>u({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),V=_.forwardRef(function(t,r){const o=Q({props:t,name:"MuiDivider"}),{absolute:n=!1,children:l,className:s,component:a=l?"div":"hr",flexItem:h=!1,light:f=!1,orientation:c="horizontal",role:b=a!=="hr"?"separator":void 0,textAlign:d="center",variant:F="fullWidth"}=o,G=ue(o,fe),S=u({},o,{absolute:n,component:a,flexItem:h,light:f,orientation:c,role:b,textAlign:d,variant:F}),z=ge(S);return v.jsx(me,u({as:a,className:Y(z.root,s),role:b,ref:r,ownerState:S},G,{children:l?v.jsx(xe,{className:z.wrapper,ownerState:S,children:l}):null}))});V.muiSkipListHighlight=!0;const A=V;var y={},be=x;Object.defineProperty(y,"__esModule",{value:!0});var E=y.default=void 0,$e=be(m()),_e=v,Se=(0,$e.default)((0,_e.jsx)("path",{d:"M19.3 16.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S11 12 11 14.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l3.2 3.2 1.4-1.4-3.2-3.2zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12 20v2C6.48 22 2 17.52 2 12S6.48 2 12 2c4.84 0 8.87 3.44 9.8 8h-2.07c-.64-2.46-2.4-4.47-4.73-5.41V5c0 1.1-.9 2-2 2h-2v2c0 .55-.45 1-1 1H8v2h2v3H9l-4.79-4.79C4.08 10.79 4 11.38 4 12c0 4.41 3.59 8 8 8z"}),"TravelExplore");E=y.default=Se;var N={},Ce=x;Object.defineProperty(N,"__esModule",{value:!0});var B=N.default=void 0,we=Ce(m()),ye=v,Ne=(0,we.default)((0,ye.jsx)("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"}),"Extension");B=N.default=Ne;var R={},Re=x;Object.defineProperty(R,"__esModule",{value:!0});var U=R.default=void 0,Me=Re(m()),ke=v,ze=(0,Me.default)((0,ke.jsx)("path",{d:"M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"}),"PersonOutlineOutlined");U=R.default=ze;var M={},De=x;Object.defineProperty(M,"__esModule",{value:!0});var q=M.default=void 0,je=De(m()),Le=v,Ae=(0,je.default)((0,Le.jsx)("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"}),"Storage");q=M.default=Ae;function Ie(e){const{c:t}=e,r=T(),o=X(),n="Link Copied To Clipboard";function l(){r(re(!0)),setTimeout(()=>{var s;if(navigator!=null&&navigator.clipboard&&window.isSecureContext)(s=navigator==null?void 0:navigator.clipboard)==null||s.writeText(window.location.href).then(function(){const a=o.add({data:window.location.href,description:"From Shared URL"},10);r(j(a)),r(D({type:L.success,message:n}))},function(a){console.log("error on copy",a)});else{let a=document.createElement("textarea");return a.value=window.location.href,a.style.position="fixed",a.style.left="-999999px",a.style.top="-999999px",document.body.appendChild(a),a.focus(),a.select(),new Promise((h,f)=>{const c=o.add({data:window.location.href,description:"From Shared URL"},10);r(j(c)),document.execCommand("copy")?h():f(),a.remove(),r(D({type:L.success,message:n}))})}},200)}return p(g,{onClick:l,disabled:!1,style:{fontSize:"12px"},children:[" ",i(te,{fontSize:"small",className:t}),i("span",{children:"Copy Link"})]})}var k={},He=x;Object.defineProperty(k,"__esModule",{value:!0});var W=k.default=void 0,Oe=He(m()),Pe=v,Te=(0,Oe.default)((0,Pe.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");W=k.default=Te;const Ve=e=>({color:`${e.contrast}`,overflow:"visible",fontSize:"12px",background:`${e.shadow}`,border:`1px solid ${e.accentNeutral}`,mt:1.5,"& .MuiAvatar-root":{width:32,height:32,ml:-.5,mr:1},"&:before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,borderLeft:`1px solid ${e.accentNeutral}`,borderTop:`1px solid ${e.accentNeutral}`,bgcolor:`${e.shadow}`,transform:"translateY(-50%) rotate(45deg)",zIndex:0},"& .icon":{fontSize:"16px",marginRight:"4px",color:`${e.contrast}`},"& .item":{fontSize:"12px",color:`${e.contrast}`}}),Ee=e=>({display:"flex",justifyContent:"center",alignItems:"center",marginLeft:2,paddingLeft:0,cursor:"pointer",paddingRight:0,width:"30px",height:"30px",background:"none",borderRadius:"3px",color:`${e.accentNeutral}`,border:`1px solid ${e.accentNeutral}`});function Be(){const e=C(d=>d.showDataSourceSetting),t=C(d=>d.currentUser.role),r=T(),o=w(),[n,l]=pe.useState(null),s=_.useMemo(()=>!!n,[n]),[a,h]=_.useState(t||"superAdmin");_.useEffect(()=>{h(t)},[t]);const f=d=>{l(()=>d.currentTarget)},c=d=>{d.stopPropagation(),l(()=>{})},b=d=>{c(d),r(le(!0))};return p(H,{children:[i(ae,{sx:{display:"flex",alignItems:"center",textAlign:"center"},children:i(ie,{title:"Settings",children:i("button",{onClick:f,style:Ee(o),"aria-controls":s?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,children:i(W,{style:{width:"14px",height:"14px"}})})})}),p(oe,{id:"account-menu",anchorEl:n,open:s,onClose:c,onClick:c,PaperProps:{elevation:0,sx:Ve(o)},TransitionComponent:ne,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},children:[i(Ie,{c:"icon"}),i(A,{}),p(g,{onClick:b,className:"item",children:[i(se,{className:"icon"})," General Settings"]}),i(A,{}),i($,{to:"/",children:p(g,{className:"item",onClick:c,children:[i(E,{className:"icon"}),"Search"]})}),i($,{to:"/plugins",children:p(g,{className:"item",onClick:c,children:[i(B,{className:"icon"}),"Plugins"]})}),i($,{to:"/users",children:p(g,{className:"item",onClick:c,children:[i(U,{className:"icon"}),"Users"]})}),e&&(a==="admin"||a==="superAdmin")&&i($,{to:"datasources",children:p(g,{className:"item",onClick:c,children:[i(q,{className:"icon"}),"Datasources"]})})]})]})}const Ue="/assets/qryn-logo-cd0b42d9.png",qe=()=>{const r=he().pathname.split("/").map((o,n)=>o===""&&n===0?{name:"home",link:"/"}:{name:`/${o}`,link:o});return i(H,{children:r.map(({name:o,link:n},l)=>i("a",{href:n,className:"bread-link",children:o},l))})},We=e=>P("background:",e.shadow,";height:30px;padding:4px;display:flex;align-items:center;border-bottom:1px solid ",e.accentNeutral,";.logo-section{margin:0;.version{color:",e.contrast,";font-size:10px;margin-left:5px;}.path{color:",e.contrast,";margin-left:20px;flex:1;font-weight:bold;text-transform:uppercase;font-size:11px;letter-spacing:1px;.bread-link{cursor:pointer;&:hover{color:",e.primary,";}}}}",""),Fe=()=>{const e=w();return p("div",{className:O(We(e)),children:[p("div",{className:"logo-section",children:[i("img",{src:Ue,alt:"Qryn View",height:"24px",className:"logo"}),i("p",{className:"version",children:"0.25.1"}),i("p",{className:"path",children:i(qe,{})})]}),i(ce,{section:"Status Bar",localProps:e}),i(Be,{})]})},Ge=e=>P("background:",e.background,";display:flex;flex-direction:column;height:100vh;flex:1;","");function at(){const e=w(),t=C(r=>r.settingsDialogOpen);return p("div",{className:O(Ge(e)),children:[i(Fe,{}),i(ve,{}),i(Z,{}),i(de,{open:t})]})}export{Ge as MainAppStyles,at as default}; diff --git a/view/assets/DataSources-df7c6cd8.js b/view/assets/DataSources-953654f5.js similarity index 97% rename from view/assets/DataSources-df7c6cd8.js rename to view/assets/DataSources-953654f5.js index 5acfba2d..329a3d5f 100644 --- a/view/assets/DataSources-df7c6cd8.js +++ b/view/assets/DataSources-953654f5.js @@ -1 +1 @@ -var de=Object.defineProperty;var ue=(t,a,s)=>a in t?de(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s;var I=(t,a,s)=>(ue(t,typeof a!="symbol"?a+"":a,s),s);import{d as e,j as h,g as J,D as w,h as T,F as P,f as $,Q as he,i as pe,e as fe}from"./index-cb8d8b59.js";import{r as O}from"./react-432945ee.js";import{m as _,u as A,n as Z,r as ge,L as me,s as Se,v as ve,w as ye,p as xe,R as Ce}from"./vendor-6029fc34.js";import{D as ke,L as U,I as H,d as we,S as Ne,a as E,F,s as z,b as be,c as V,T as Oe,e as ee,f as De,P as Le}from"./AddOutlined-d979d573.js";import{d as te,s as ze}from"./DeleteOutlineOutlined-2068af5e.js";import{S as M,r as B,i as Q}from"./createSvgIcon-b45af2a3.js";import{j as G}from"./reactDnd-72acd3f4.js";import{b as ae}from"./reactSelect-75171a09.js";import"./memoize-acaceb73.js";const j=t=>{const{value:a,onClick:s,primary:c,title:l}=t;return e(ke,{title:l,onClick:s,primary:c,children:a})},Ae=t=>T("display:flex;flex:",t?1:0,";",""),ne=({value:t,locked:a,onChange:s,opts:c,label:l,labelWidth:f,name:S,fullWidth:C,width:v})=>{const[y,x]=O.useState(""),N=O.useRef(null),k=O.useMemo(()=>typeof c[0]=="string"?c.map(u=>({value:u,name:u})):c,[c]);return O.useEffect(()=>{var m,n;const u=(m=k==null?void 0:k.find(r=>r.name===t))==null?void 0:m.value;u&&((n=N==null?void 0:N.current)==null?void 0:n.value)!==u&&(x(u),N.current.value=u)},[t]),h(H,{width:v,children:[(l==null?void 0:l.length)>0&&e(U,{width:f||null,children:l}),e("select",{ref:N,className:J(Ae(C)),disabled:a,defaultValue:w.sanitize(y),onChange:u=>s(u,S),children:k==null?void 0:k.map((u,m)=>e("option",{value:w.sanitize(u.value),children:u.name},m))})]})},se=t=>{const{value:a,onChange:s,locked:c,label:l}=t;return h(H,{children:[e(U,{children:l}),e(M,{disabled:c,size:"small",checked:a,onChange:s})]})};var W={},Ie=Q;Object.defineProperty(W,"__esModule",{value:!0});var ie=W.default=void 0,Je=Ie(B()),Fe=G,Te=(0,Je.default)((0,Fe.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"CachedOutlined");ie=W.default=Te;var K={},_e=Q;Object.defineProperty(K,"__esModule",{value:!0});var re=K.default=void 0,Ee=_e(B()),Re=G,je=(0,Ee.default)((0,Re.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");re=K.default=je;const le=t=>a=>{a({type:"SET_IS_DATASOURCE_SAVED",isDsSaved:t})};var X={},Pe=Q;Object.defineProperty(X,"__esModule",{value:!0});var oe=X.default=void 0,$e=Pe(B()),Me=G,Ue=(0,$e.default)((0,Me.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");oe=X.default=Ue;const ce=T({name:"vtwnvy",styles:"height:12px!important;width:12px!important;color:white;margin:0px 4px"}),He=t=>T("display:flex;align-items:center;background:",t.primary,";color:white;font-size:11px;padding:4px;border-radius:3px;margin-right:10px;cursor:pointer;span{margin-right:4px;font-weight:bold;}",""),qe=T({name:"1t9g6tg",styles:"display:flex;align-items:center;background:#b62c14;color:white;font-size:12px;padding:4px;border-radius:3px;margin-right:10px;cursor:pointer;span{margin-right:4px;font-weight:bold;}"}),Ve=T({name:"9hkg7e",styles:"display:flex;align-items:center;font-size:12px;&.loading-icon{height:14px;width:14px;}"}),Be=({setIsSaved:t})=>{const a=$();return h("div",{className:J(He(a)),onClick:s=>t(!1),children:[e(re,{className:J(ce)})," ",e("span",{children:"Saved"})]})},Y=({errorText:t})=>h("div",{className:J(qe),children:[e(oe,{className:J(ce)})," ",e("span",{children:t})]});function q(t){const{onClickAdd:a,isAdd:s,title:c,isEditing:l,fieldErrors:f}=t,S=_(),[C,v]=O.useState(!1);return O.useEffect(()=>(l&&(setTimeout(()=>{v(!0),S(le(!0))},800),v(!1)),v(!1),()=>{v(!1)}),[l]),h(Ne,{children:[c,h("div",{className:"edit-buttons",children:[l&&h("div",{className:Ve,children:[e(ie,{style:{height:"13px",width:"13px"}})," ","Saving ..."]}),(f==null?void 0:f.protocol)&&e(Y,{errorText:"Insecure Mixed Content. Mixing HTTP and HTTPS is insecure and is not supported."}),(f==null?void 0:f.url)&&e(Y,{errorText:"Please complete API URL"}),C&&e(Be,{setIsSaved:v}),s&&e(P,{children:e(we,{fontSize:"small",style:{cursor:"pointer",display:"flex"},onClick:a})})]})]})}const Qe=t=>{const a=_(),s=A(u=>u.dataSources),[c,l]=O.useState(!1),{headers:f,id:S}=t,[C,v]=O.useState((t==null?void 0:t.cors)||!1),y=u=>{const m=u.target.checked,n=s.map(r=>(r.id===S&&(r.cors=m),r));v(()=>m),localStorage.setItem("dataSources",JSON.stringify(n)),a(z(n))},x=(u,m,n)=>{l(()=>!0);const r=u.target.value,g=(s.find(p=>p.id===S).headers||[]).map(p=>(p.id===m&&(p[n]=r),p)),o=s.map(p=>(p.id===S&&(p.headers=[...g]),p));localStorage.setItem("dataSources",JSON.stringify(o)),a(z(o)),setTimeout(()=>{l(()=>!1)},800)},N=u=>{u.preventDefault();const m=s==null?void 0:s.find(i=>i.id===S),n=m.headers,r=JSON.parse(JSON.stringify([...s]));if(f.length>0){const i={...n[n.length-1],id:Z()},d={...m,headers:[...m.headers,i]},g=r==null?void 0:r.map(o=>o.id===S?{...d}:o);localStorage.setItem("dataSources",JSON.stringify(g)),a(z(g))}},k=(u,m)=>{const n=s==null?void 0:s.find(o=>o.id===S),i=[...f].filter(o=>o.id!==m),d={...n,headers:[...i]},g=s==null?void 0:s.map(o=>o.id===S?{...d}:o);localStorage.setItem("dataSources",JSON.stringify(g)),a(z(g))};return e("div",{className:"",children:f&&h(P,{children:[e(q,{title:"Custom HTTP Headers",isEdit:!1,isAdd:!0,isEditing:c,onClickAdd:N}),h(E,{children:[e(U,{children:"Use CORS"})," ",e(M,{size:"small",checked:C,onChange:y})]}),f==null?void 0:f.map((u,m)=>e(E,{children:h(H,{children:[e(F,{label:"header",value:w.sanitize(u.header),onChange:n=>x(n,u.id,"header")}),e(F,{label:"value",value:w.sanitize(u.value),onChange:n=>x(n,u.id,"value")}),e(te,{onClick:n=>k(n,u.id),style:{cursor:"pointer",marginLeft:"10px"},fontSize:"small"})]})},m))]})})};function Ge(t){console.log(t);const a=ge(),s=$(),c=A(y=>y.urlLocation),l=_(),{title:f}=t,S=A(y=>y.isDsSaved),C=O.useMemo(()=>S?"Save":"Back",[S]),v=()=>{let y=(c==null?void 0:c.length)>0;l(le(!1)),a((y||C==="Back")&&f!=="DataSources"?-1:"/")};return h("div",{className:"ds-header",children:[e("div",{style:{display:"flex",alignItems:"center"},children:h("div",{style:{display:"flex",flexDirection:"column"},children:[h("div",{style:{display:"flex"},children:[e(he,{}),e("h1",{children:f})]}),h("p",{style:{color:s.contrast,fontSize:"10px",marginTop:"5px",marginLeft:"10px",opacity:".5"},children:["v","0.25.1"]})]})}),e(j,{value:w.sanitize(C),onClick:v,editing:!0,primary:S})]})}const We=t=>{const{id:a,name:s,regex:c,urlLabel:l,internalLink:f,linkType:S,locked:C,dataSourceId:v,fieldEditing:y}=t,x=_(),N=A(i=>i.dataSources),k=O.useMemo(()=>N.map(i=>({name:i.name,value:i.id})),[N]),u=(i,d)=>{y();const g=JSON.parse(JSON.stringify(N)),L=g.find(b=>b.id===v).linkedFields.map(b=>b.id===a?{...b,[i]:d}:b);return g.map(b=>b.id===v?{...b,linkedFields:L}:b)},m=i=>{y();const d=JSON.parse(JSON.stringify(N)),p=d.find(b=>b.id===v).linkedFields.filter(b=>b.id!==a),L=d.map(b=>b.id===v?{...b,linkedFields:[...p]}:b);localStorage.setItem("dataSources",JSON.stringify(L)),x(z(L))},n=(i,d)=>{y();const g=i.target.value,o=u(d,g);localStorage.setItem("dataSources",JSON.stringify(o)),x(z(o))},r=(i,d)=>{y();const g=!!i.target.checked,o=u(d,g);localStorage.setItem("dataSources",JSON.stringify(o)),x(z(o))};return h(be,{children:[h(E,{children:[e(F,{value:w.sanitize(s),label:"Name",onChange:i=>n(i,"name")}),e(F,{value:w.sanitize(c),label:"Regex",onChange:i=>n(i,"regex")}),e(F,{value:w.sanitize(l),label:"URL Label",onChange:i=>n(i,"urlLabel")}),e(te,{onClick:m,fontSize:"small",style:{marginLeft:"10px",cursor:"pointer",display:C?"none":"inline-block"}})]}),h(E,{className:"internal",children:[e(se,{value:f,label:"Internal Link",onChange:i=>r(i,"internalLink")}),e(ne,{label:"",value:w.sanitize(S),opts:k,selectType:"linkedField",onChange:i=>n(i,"linkID")})]})]})};class Ke{constructor(){I(this,"id");I(this,"dataSource");I(this,"ds_id");I(this,"name");I(this,"regex");I(this,"query");I(this,"urlLabel");I(this,"url");I(this,"internalLink");I(this,"linkType");this.id=Z(),this.dataSource="Logs",this.ds_id="logs",this.name="traceID",this.regex='^.*?"traceID" ="(w+)".*$/',this.query="${__value.raw}",this.urlLabel="",this.url="",this.internalLink=!0,this.linkType="Traces"}create(){const{id:a,dataSource:s,ds_id:c,name:l,regex:f,query:S,urlLabel:C,url:v,internalLink:y,linkType:x}=this;return{id:a,dataSource:s,ds_id:c,name:l,regex:f,query:S,urlLabel:C,url:v,internalLink:y,linkType:x}}}const Xe=t=>{const{linkedFields:a,name:s,id:c}=t,l=A(x=>x.dataSources),f=_(),[S,C]=O.useState(!1),v=()=>{const x=new Ke;x.dataSource=s,x.create();const k=[...JSON.parse(JSON.stringify(a)),{...x}],u=JSON.parse(JSON.stringify(l)),m=u==null?void 0:u.map(n=>n.id===c?{...n,linkedFields:k}:n);localStorage.setItem("dataSources",JSON.stringify(m)),f(z(m))},y=()=>{C(()=>!0),setTimeout(()=>{C(()=>!1)},800)};return(a==null?void 0:a.length)>0?h(P,{children:[e(q,{title:"Linked Fields",isEdit:!0,isAdd:!0,onClickAdd:v,isEditing:S}),e(V,{children:a==null?void 0:a.map((x,N)=>e(We,{...x,dataSourceId:c,locked:!1,fieldEditing:y},N))})]}):null};function Ye(t){const{value:a,label:s,onChange:c,placeholder:l}=t;return h(H,{children:[e(U,{children:s}),e(Oe,{className:"ds-input",onChange:c,placeholder:l,value:w.sanitize(a)})]})}function Ze(t){const{auth:a,id:s}=t,c=_(),l=A(n=>n.dataSources),[f,S]=O.useState([]),[C,v]=O.useState(!1),y=O.useMemo(()=>{var n;return(n=Object.entries(a))==null?void 0:n.map(([r,i])=>({name:r,...i})).filter(r=>r.name!=="fields")},[a]),x=O.useMemo(()=>{var n;return(n=Object.entries(a))==null?void 0:n.map(([r,i])=>({name:r,...i})).find(r=>r.name==="fields")},[a]),N=(n,r)=>{const i=JSON.parse(JSON.stringify(a));i[r].value=n;const g=JSON.parse(JSON.stringify(l)).map(o=>o.id===s?{...o,auth:{...i}}:o);return localStorage.setItem("dataSources",JSON.stringify(g)),c(z(g)),g};O.useEffect(()=>{var r,i;const n=(i=(r=y.filter(d=>d.form_type==="switch"&&!!(d!=null&&d.value)))==null?void 0:r.filter(d=>!!d.withFields))==null?void 0:i.map(d=>d.name);S(n)},[y,S]);const k=(n,r)=>{v(()=>!0);const i=n.target.value;N(i,r),setTimeout(()=>{v(()=>!1)},800)},u=(n,r)=>{v(()=>!0);const i=n.target.checked;N(i,r),setTimeout(()=>{v(()=>!1)},800)},m=(n,r,i)=>{var b;v(()=>!0);const d=n.target.value,g=JSON.parse(JSON.stringify(a)),o={...g,fields:{...g.fields,[i]:(b=g==null?void 0:g.fields[i])==null?void 0:b.map(D=>D.name===r?(D.value=d,{...D}):D)}},p=JSON.parse(JSON.stringify([...l])),L=p==null?void 0:p.map(D=>(D.id===s&&(D.auth=o),D));localStorage.setItem("dataSources",JSON.stringify(L)),c(z(L)),setTimeout(()=>{v(()=>!1)},600)};return h(P,{children:[e(q,{title:"HTTP Auth Fields",isEditing:C,isEdit:!1,isAdd:!1}),h(V,{children:[y&&y.map((n,r)=>n.form_type==="select"?e(ne,{value:w.sanitize(n.value),name:w.sanitize(n.name),onChange:i=>k(i,n.name),locked:!1,opts:n.options,label:n.label},r):n.form_type==="switch"?e(se,{label:n.label,value:n.value,onChange:i=>u(i,n.name)},r):null),e(E,{children:f&&f.map((n,r)=>{var i;return e(E,{children:x[n]&&((i=x[n])==null?void 0:i.map((d,g)=>d.form_type==="input"||d.form_type==="password"?e(F,{onChange:o=>m(o,d.name,n),type:d.form_type,value:w.sanitize(d.value),label:d.label,placeholder:d.placeholder},g):d.form_type==="textarea"?e(Ye,{onChange:o=>m(o,d.name,n),value:w.sanitize(d.value),label:d.label,placeholder:d.placeholder},g):null))},r)})})]})]})}const et=pe("div",{target:"emiacor0"})("position:absolute;left:0;top:0;background:",({theme:t})=>t.background,";display:flex;flex-direction:culumn;justify-content:center;color:",({theme:t})=>t.contrast,";flex:1;height:100%;width:100%;.body-cont{max-width:1440px;padding:10px;margin:10px;border-radius:3px;flex:1;background:",({theme:t})=>t.shadow,";overflow-y:auto;overflow-x:hidden;}.ds-header{padding:10px;padding-bottom:20px;font-size:24px;flex:1;display:flex;width:100%;justify-content:space-between;align-items:center;padding-left:0px;.logo{margin-right:10px;}}.ds-cont{margin-bottom:10px;border:1px solid ",({theme:t})=>t.accentNeutral,";border-radius:3px;overflow-y:auto;}.ds-item{padding:10px;border-radius:3px 3px 0px 0px;padding-bottom:14px;display:flex;.logo{padding:10px;padding-right:20px;padding-left:0px;}.ds-text{display:flex;flex-direction:column;flex:1;}.ds-type{font-size:18px;padding:10px;padding-left:0px;color:",({theme:t})=>t.contrast,";}small{font-size:12px;}.setting-icon{justify-self:flex-end;cursor:pointer;}.ds-settings{background:",({theme:t})=>t.background,";}}");function tt(){const t=A(({dataSources:a})=>a);return(t==null?void 0:t.length)>0?e("div",{style:{margin:"10px"},children:t.map((a,s)=>{const{icon:c,id:l,name:f,type:S,url:C}=a;return e("div",{className:"ds-cont",children:e(me,{to:l,children:h("div",{className:"ds-item",children:[e(ee,{icon:c}),h("div",{className:"ds-text",children:[e("div",{className:"ds-type",children:f}),h("span",{children:[h("small",{children:[S," | "," "]}),e("small",{style:{userSelect:"all"},children:C})]})]})]})})},s)})}):e("div",{children:e("h1",{children:"No Data Sources Found."})})}const at=t=>{const{headers:a,id:s,linkedFields:c,name:l,url:f,cors:S}=t,C=_(),v=A(({dataSources:r})=>r),[y,x]=O.useState({url:!1,protocol:!1}),N=(r,i)=>{let d=i;r==="url"&&(d=i.replace(/\/$/,""));const g=JSON.parse(JSON.stringify(v));return g.forEach(o=>{o.id===s&&(o[r]=d)}),g},[k,u]=O.useState(!1),m=r=>{try{const i=window.location.protocol,d=new URL(r).protocol;return{value:i===d,error:""}}catch{return{value:!1,error:"url"}}},n=(r,i)=>{u(()=>!0);const d=r.target.value;if(i==="url"){const o=m(d);if((o==null?void 0:o.error)==="url"&&x(p=>({...p,url:!0})),!(o!=null&&o.value)&&(o==null?void 0:o.error)===""&&x(p=>({...p,protocol:!0})),(o==null?void 0:o.error)===""&&(o!=null&&o.value)){x(L=>({...L,protocol:!1,url:!1}));const p=N(i,d);localStorage.setItem("dataSources",JSON.stringify(p)),C(z(p)),setTimeout(()=>{u(()=>!1)},800)}}const g=N(i,d);localStorage.setItem("dataSources",JSON.stringify(g)),C(z(g)),setTimeout(()=>{u(()=>!1)},800)};return h(De,{children:[e(q,{isEditing:k,isEdit:!0,isAdd:!1,title:"DataSource Settings",fieldErrors:y}),e(V,{children:h(E,{children:[e(F,{value:w.sanitize(l),label:"Name",onChange:r=>n(r,"name")}),e(F,{value:w.sanitize(f),label:"URL",error:y.url||y.protocol,onChange:r=>n(r,"url")})]})}),e(Ze,{...t}),e(Qe,{cors:S,headers:a,id:s}),e(Xe,{...t,linkedFields:c})]})},nt=T({name:"9rq8lq",styles:"display:flex;align-items:center;justify-content:space-between;margin-right:20px"});function st(t,a,s){let c={},l=s&&s!==""&&a&&a!=="",f=l?`${btoa(a)}:${btoa(s)}`:"",S=JSON.parse(JSON.stringify(t));return l&&f&&(c.auth=f),c.url=S,JSON.stringify(c)}function it(t){const{url:a,auth:{basicAuth:s,fields:{basicAuth:[c,l]}}}=t,[f,S]=ve(["qryn-dev-cookie","qryn-settings"]),C=_(),v=A(k=>k.dataSources),y=()=>{const k=[...v],u=JSON.parse(JSON.stringify(k)),m=u==null?void 0:u.map(n=>({...n,url:w.sanitize(a),auth:{...n.auth,basicAuth:{...n.auth.basicAuth,value:s.value},fields:{...n.auth.fields,basicAuth:[...n.auth.fields.basicAuth].map(r=>r.name==="user"?{...r,value:w.sanitize(c.value)}:r.name==="password"?{...r,value:w.sanitize(l.value)}:r)}}}));localStorage.setItem("dataSources",JSON.stringify(m)),C(z(m)),C(fe({type:"success",message:"Set same URL and Basic Auth for All Data Sources"}))};function x(){const k=new Date;new Date().setDate(k.getDate()+1);try{S("qryn-settings",st(a,c.value,l.value),{path:"/"})}catch(m){console.log(m)}}function N(){const{headers:k,id:u,name:m,linkedFields:n}=t,r=k==null?void 0:k.map(({header:o,value:p})=>({[o]:p})),d=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify({id:u,name:m,headers:r,linkedFields:n}))}`,g=document.createElement("a");g.href=d,g.download=`${m}_${u}.json`,g.click()}return h("div",{className:"ds-cont",children:[h("div",{className:J(nt),children:[e(rt,{...t}),h("div",{style:{display:"flex",alignItems:"center"},children:[e(j,{title:"Download Datasource settings as JSON",value:w.sanitize("Download JSON"),onClick:N,primary:!0}),e(j,{title:"Set Cookie with name: qryn-settings",value:w.sanitize("Save Cookie"),onClick:x,primary:!0}),e(j,{title:"Use same URL and Basic Auth for all Data Sources",value:w.sanitize("Use For All"),onClick:y,primary:!0})]})]}),e("div",{className:"ds-settings",children:e(at,{...t})})]})}const rt=t=>{const{icon:a,name:s,type:c,url:l}=t;return h("div",{className:"ds-item",children:[e(ee,{icon:a}),h("div",{className:"ds-text",children:[e("div",{className:"ds-type",children:s}),h("small",{children:[w.sanitize(c)," | ",w.sanitize(l)]})]})]})};function lt(){let{id:t}=Se();const a=$(),s=A(l=>l.dataSources),c=O.useMemo(()=>!s||s.length===0?{}:s.find(l=>l.id===t)||{},[t,s]);return e(ae,{theme:a,children:e(et,{children:h("div",{className:"body-cont",children:[e(Ge,{title:"DataSource Settings",datasource:c}),e("div",{className:"datasource-body",children:e(it,{...c})})]})})})}const ot=t=>T("display:flex;flex-direction:column;flex:1;flex-wrap:wrap;width:400px;border:1px solid ",t.accentNeutral,";padding:5px;border-radius:3px;margin-left:10px;",""),ct=T({name:"1reekiy",styles:"display:flex;padding:4px 12px;font-size:14px;border-radius:4px;white-space:nowrap;align-items:center;justify-content:space-between"}),dt=T({name:"t10jb8",styles:"margin:5px"}),ut=T({name:"1wnuhlc",styles:"margin-left:20px;display:flex;align-items:center;span{font-size:12px;}"}),ht=T({name:"17moij0",styles:"align-items:center;width:100%;display:flex;margin-top:10px;justify-content:space-between;flex:1"}),pt=t=>{const[a,s]=O.useState(""),[c,l]=O.useState(""),[f,S]=O.useState(""),[C,v]=O.useState(!1),[y,x]=O.useState(!1),N=A(p=>p.dataSources),k=_(),u="Save",m=$(),n=p=>{var D;const b=(((D=p==null?void 0:p.target)==null?void 0:D.value)||"").replace(/\/$/,"");s(()=>b)},r=p=>{l(()=>p.target.value)},i=p=>{S(()=>p.target.value)},d=p=>{v(()=>p.target.checked)},g=p=>{x(()=>p.target.checked)},o=p=>{const L=JSON.parse(JSON.stringify(N)),b=L==null?void 0:L.map(D=>({...D,url:a,auth:{...D.auth,basicAuth:{...D.auth.basicAuth,value:y},fields:{...D.auth.fields,basicAuth:[...D.auth.fields.basicAuth].map(R=>R.name==="user"?{...R,value:c}:R.name==="password"?{...R,value:f}:R)}}}));localStorage.setItem("dataSources",JSON.stringify(b)),k(z(b))};return h("div",{className:J(ot(m)),children:[h("div",{className:J(ct),children:["Use one setting for all Data Sources",e(M,{checked:C,size:"small",onChange:d})]}),C&&h("div",{className:J(dt),children:[e(F,{value:w.sanitize(a),label:"url",onChange:n,placeholder:"http://qryn.dev"}),y&&h(P,{children:[e(F,{value:w.sanitize(c),label:"user",onChange:r,placeholder:"default"}),e(F,{value:w.sanitize(f),label:"password",onChange:i,type:"password",placeholder:""})]}),h("div",{className:J(ht),children:[h("div",{className:J(ut),children:[e("span",{children:"Use Basic Auth"})," ",e(M,{checked:y,size:"small",onChange:g})," "]}),e(j,{value:w.sanitize(u),onClick:o,editing:!1,primary:!0})]})]})]})};function Nt(t){const a=t.replace(/#/,""),s=decodeURIComponent(a),c=new URLSearchParams(s);for(let[l,f]of c)(l==="left"||l==="right")&&JSON.parse(f)}function bt(){const t=ye.useMediaQuery({query:"(prefers-color-scheme: dark)"}),a=_(),s=$(),c=A(l=>l.autoTheme);return O.useEffect(()=>{if(c){const l=t?"dark":"light";a(ze(l)),localStorage.setItem("theme",JSON.stringify({theme:l,auto:c}))}},[t,c,a]),h(ae,{theme:s,children:[e(Le,{children:h("div",{className:"cont",children:[e(tt,{}),e("div",{style:{display:"flex",flex:1},children:e("div",{style:{height:"40px"},children:e(pt,{})})})]})}),e(Ce,{children:e(xe,{path:":id",element:e(lt,{})})})]})}export{bt as default,Nt as getURlParams}; +var de=Object.defineProperty;var ue=(t,a,s)=>a in t?de(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s;var I=(t,a,s)=>(ue(t,typeof a!="symbol"?a+"":a,s),s);import{d as e,j as h,g as J,D as w,h as T,F as P,f as $,Q as he,i as pe,e as fe}from"./index-bc3ec90a.js";import{r as O}from"./react-432945ee.js";import{m as _,u as A,n as Z,r as ge,L as me,s as Se,v as ve,w as ye,p as xe,R as Ce}from"./vendor-3db6068a.js";import{D as ke,L as U,I as H,d as we,S as Ne,a as E,F,s as z,b as be,c as V,T as Oe,e as ee,f as De,P as Le}from"./AddOutlined-654406e2.js";import{d as te,s as ze}from"./DeleteOutlineOutlined-d455761f.js";import{S as M,r as B,i as Q}from"./createSvgIcon-e78f4b10.js";import{j as G}from"./reactDnd-dc8b0776.js";import{b as ae}from"./reactSelect-db5d744f.js";import"./memoize-acaceb73.js";const j=t=>{const{value:a,onClick:s,primary:c,title:l}=t;return e(ke,{title:l,onClick:s,primary:c,children:a})},Ae=t=>T("display:flex;flex:",t?1:0,";",""),ne=({value:t,locked:a,onChange:s,opts:c,label:l,labelWidth:f,name:S,fullWidth:C,width:v})=>{const[y,x]=O.useState(""),N=O.useRef(null),k=O.useMemo(()=>typeof c[0]=="string"?c.map(u=>({value:u,name:u})):c,[c]);return O.useEffect(()=>{var m,n;const u=(m=k==null?void 0:k.find(r=>r.name===t))==null?void 0:m.value;u&&((n=N==null?void 0:N.current)==null?void 0:n.value)!==u&&(x(u),N.current.value=u)},[t]),h(H,{width:v,children:[(l==null?void 0:l.length)>0&&e(U,{width:f||null,children:l}),e("select",{ref:N,className:J(Ae(C)),disabled:a,defaultValue:w.sanitize(y),onChange:u=>s(u,S),children:k==null?void 0:k.map((u,m)=>e("option",{value:w.sanitize(u.value),children:u.name},m))})]})},se=t=>{const{value:a,onChange:s,locked:c,label:l}=t;return h(H,{children:[e(U,{children:l}),e(M,{disabled:c,size:"small",checked:a,onChange:s})]})};var W={},Ie=Q;Object.defineProperty(W,"__esModule",{value:!0});var ie=W.default=void 0,Je=Ie(B()),Fe=G,Te=(0,Je.default)((0,Fe.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"CachedOutlined");ie=W.default=Te;var K={},_e=Q;Object.defineProperty(K,"__esModule",{value:!0});var re=K.default=void 0,Ee=_e(B()),Re=G,je=(0,Ee.default)((0,Re.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");re=K.default=je;const le=t=>a=>{a({type:"SET_IS_DATASOURCE_SAVED",isDsSaved:t})};var X={},Pe=Q;Object.defineProperty(X,"__esModule",{value:!0});var oe=X.default=void 0,$e=Pe(B()),Me=G,Ue=(0,$e.default)((0,Me.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");oe=X.default=Ue;const ce=T({name:"vtwnvy",styles:"height:12px!important;width:12px!important;color:white;margin:0px 4px"}),He=t=>T("display:flex;align-items:center;background:",t.primary,";color:white;font-size:11px;padding:4px;border-radius:3px;margin-right:10px;cursor:pointer;span{margin-right:4px;font-weight:bold;}",""),qe=T({name:"1t9g6tg",styles:"display:flex;align-items:center;background:#b62c14;color:white;font-size:12px;padding:4px;border-radius:3px;margin-right:10px;cursor:pointer;span{margin-right:4px;font-weight:bold;}"}),Ve=T({name:"9hkg7e",styles:"display:flex;align-items:center;font-size:12px;&.loading-icon{height:14px;width:14px;}"}),Be=({setIsSaved:t})=>{const a=$();return h("div",{className:J(He(a)),onClick:s=>t(!1),children:[e(re,{className:J(ce)})," ",e("span",{children:"Saved"})]})},Y=({errorText:t})=>h("div",{className:J(qe),children:[e(oe,{className:J(ce)})," ",e("span",{children:t})]});function q(t){const{onClickAdd:a,isAdd:s,title:c,isEditing:l,fieldErrors:f}=t,S=_(),[C,v]=O.useState(!1);return O.useEffect(()=>(l&&(setTimeout(()=>{v(!0),S(le(!0))},800),v(!1)),v(!1),()=>{v(!1)}),[l]),h(Ne,{children:[c,h("div",{className:"edit-buttons",children:[l&&h("div",{className:Ve,children:[e(ie,{style:{height:"13px",width:"13px"}})," ","Saving ..."]}),(f==null?void 0:f.protocol)&&e(Y,{errorText:"Insecure Mixed Content. Mixing HTTP and HTTPS is insecure and is not supported."}),(f==null?void 0:f.url)&&e(Y,{errorText:"Please complete API URL"}),C&&e(Be,{setIsSaved:v}),s&&e(P,{children:e(we,{fontSize:"small",style:{cursor:"pointer",display:"flex"},onClick:a})})]})]})}const Qe=t=>{const a=_(),s=A(u=>u.dataSources),[c,l]=O.useState(!1),{headers:f,id:S}=t,[C,v]=O.useState((t==null?void 0:t.cors)||!1),y=u=>{const m=u.target.checked,n=s.map(r=>(r.id===S&&(r.cors=m),r));v(()=>m),localStorage.setItem("dataSources",JSON.stringify(n)),a(z(n))},x=(u,m,n)=>{l(()=>!0);const r=u.target.value,g=(s.find(p=>p.id===S).headers||[]).map(p=>(p.id===m&&(p[n]=r),p)),o=s.map(p=>(p.id===S&&(p.headers=[...g]),p));localStorage.setItem("dataSources",JSON.stringify(o)),a(z(o)),setTimeout(()=>{l(()=>!1)},800)},N=u=>{u.preventDefault();const m=s==null?void 0:s.find(i=>i.id===S),n=m.headers,r=JSON.parse(JSON.stringify([...s]));if(f.length>0){const i={...n[n.length-1],id:Z()},d={...m,headers:[...m.headers,i]},g=r==null?void 0:r.map(o=>o.id===S?{...d}:o);localStorage.setItem("dataSources",JSON.stringify(g)),a(z(g))}},k=(u,m)=>{const n=s==null?void 0:s.find(o=>o.id===S),i=[...f].filter(o=>o.id!==m),d={...n,headers:[...i]},g=s==null?void 0:s.map(o=>o.id===S?{...d}:o);localStorage.setItem("dataSources",JSON.stringify(g)),a(z(g))};return e("div",{className:"",children:f&&h(P,{children:[e(q,{title:"Custom HTTP Headers",isEdit:!1,isAdd:!0,isEditing:c,onClickAdd:N}),h(E,{children:[e(U,{children:"Use CORS"})," ",e(M,{size:"small",checked:C,onChange:y})]}),f==null?void 0:f.map((u,m)=>e(E,{children:h(H,{children:[e(F,{label:"header",value:w.sanitize(u.header),onChange:n=>x(n,u.id,"header")}),e(F,{label:"value",value:w.sanitize(u.value),onChange:n=>x(n,u.id,"value")}),e(te,{onClick:n=>k(n,u.id),style:{cursor:"pointer",marginLeft:"10px"},fontSize:"small"})]})},m))]})})};function Ge(t){console.log(t);const a=ge(),s=$(),c=A(y=>y.urlLocation),l=_(),{title:f}=t,S=A(y=>y.isDsSaved),C=O.useMemo(()=>S?"Save":"Back",[S]),v=()=>{let y=(c==null?void 0:c.length)>0;l(le(!1)),a((y||C==="Back")&&f!=="DataSources"?-1:"/")};return h("div",{className:"ds-header",children:[e("div",{style:{display:"flex",alignItems:"center"},children:h("div",{style:{display:"flex",flexDirection:"column"},children:[h("div",{style:{display:"flex"},children:[e(he,{}),e("h1",{children:f})]}),h("p",{style:{color:s.contrast,fontSize:"10px",marginTop:"5px",marginLeft:"10px",opacity:".5"},children:["v","0.27.3"]})]})}),e(j,{value:w.sanitize(C),onClick:v,editing:!0,primary:S})]})}const We=t=>{const{id:a,name:s,regex:c,urlLabel:l,internalLink:f,linkType:S,locked:C,dataSourceId:v,fieldEditing:y}=t,x=_(),N=A(i=>i.dataSources),k=O.useMemo(()=>N.map(i=>({name:i.name,value:i.id})),[N]),u=(i,d)=>{y();const g=JSON.parse(JSON.stringify(N)),L=g.find(b=>b.id===v).linkedFields.map(b=>b.id===a?{...b,[i]:d}:b);return g.map(b=>b.id===v?{...b,linkedFields:L}:b)},m=i=>{y();const d=JSON.parse(JSON.stringify(N)),p=d.find(b=>b.id===v).linkedFields.filter(b=>b.id!==a),L=d.map(b=>b.id===v?{...b,linkedFields:[...p]}:b);localStorage.setItem("dataSources",JSON.stringify(L)),x(z(L))},n=(i,d)=>{y();const g=i.target.value,o=u(d,g);localStorage.setItem("dataSources",JSON.stringify(o)),x(z(o))},r=(i,d)=>{y();const g=!!i.target.checked,o=u(d,g);localStorage.setItem("dataSources",JSON.stringify(o)),x(z(o))};return h(be,{children:[h(E,{children:[e(F,{value:w.sanitize(s),label:"Name",onChange:i=>n(i,"name")}),e(F,{value:w.sanitize(c),label:"Regex",onChange:i=>n(i,"regex")}),e(F,{value:w.sanitize(l),label:"URL Label",onChange:i=>n(i,"urlLabel")}),e(te,{onClick:m,fontSize:"small",style:{marginLeft:"10px",cursor:"pointer",display:C?"none":"inline-block"}})]}),h(E,{className:"internal",children:[e(se,{value:f,label:"Internal Link",onChange:i=>r(i,"internalLink")}),e(ne,{label:"",value:w.sanitize(S),opts:k,selectType:"linkedField",onChange:i=>n(i,"linkID")})]})]})};class Ke{constructor(){I(this,"id");I(this,"dataSource");I(this,"ds_id");I(this,"name");I(this,"regex");I(this,"query");I(this,"urlLabel");I(this,"url");I(this,"internalLink");I(this,"linkType");this.id=Z(),this.dataSource="Logs",this.ds_id="logs",this.name="traceID",this.regex='^.*?"traceID" ="(w+)".*$/',this.query="${__value.raw}",this.urlLabel="",this.url="",this.internalLink=!0,this.linkType="Traces"}create(){const{id:a,dataSource:s,ds_id:c,name:l,regex:f,query:S,urlLabel:C,url:v,internalLink:y,linkType:x}=this;return{id:a,dataSource:s,ds_id:c,name:l,regex:f,query:S,urlLabel:C,url:v,internalLink:y,linkType:x}}}const Xe=t=>{const{linkedFields:a,name:s,id:c}=t,l=A(x=>x.dataSources),f=_(),[S,C]=O.useState(!1),v=()=>{const x=new Ke;x.dataSource=s,x.create();const k=[...JSON.parse(JSON.stringify(a)),{...x}],u=JSON.parse(JSON.stringify(l)),m=u==null?void 0:u.map(n=>n.id===c?{...n,linkedFields:k}:n);localStorage.setItem("dataSources",JSON.stringify(m)),f(z(m))},y=()=>{C(()=>!0),setTimeout(()=>{C(()=>!1)},800)};return(a==null?void 0:a.length)>0?h(P,{children:[e(q,{title:"Linked Fields",isEdit:!0,isAdd:!0,onClickAdd:v,isEditing:S}),e(V,{children:a==null?void 0:a.map((x,N)=>e(We,{...x,dataSourceId:c,locked:!1,fieldEditing:y},N))})]}):null};function Ye(t){const{value:a,label:s,onChange:c,placeholder:l}=t;return h(H,{children:[e(U,{children:s}),e(Oe,{className:"ds-input",onChange:c,placeholder:l,value:w.sanitize(a)})]})}function Ze(t){const{auth:a,id:s}=t,c=_(),l=A(n=>n.dataSources),[f,S]=O.useState([]),[C,v]=O.useState(!1),y=O.useMemo(()=>{var n;return(n=Object.entries(a))==null?void 0:n.map(([r,i])=>({name:r,...i})).filter(r=>r.name!=="fields")},[a]),x=O.useMemo(()=>{var n;return(n=Object.entries(a))==null?void 0:n.map(([r,i])=>({name:r,...i})).find(r=>r.name==="fields")},[a]),N=(n,r)=>{const i=JSON.parse(JSON.stringify(a));i[r].value=n;const g=JSON.parse(JSON.stringify(l)).map(o=>o.id===s?{...o,auth:{...i}}:o);return localStorage.setItem("dataSources",JSON.stringify(g)),c(z(g)),g};O.useEffect(()=>{var r,i;const n=(i=(r=y.filter(d=>d.form_type==="switch"&&!!(d!=null&&d.value)))==null?void 0:r.filter(d=>!!d.withFields))==null?void 0:i.map(d=>d.name);S(n)},[y,S]);const k=(n,r)=>{v(()=>!0);const i=n.target.value;N(i,r),setTimeout(()=>{v(()=>!1)},800)},u=(n,r)=>{v(()=>!0);const i=n.target.checked;N(i,r),setTimeout(()=>{v(()=>!1)},800)},m=(n,r,i)=>{var b;v(()=>!0);const d=n.target.value,g=JSON.parse(JSON.stringify(a)),o={...g,fields:{...g.fields,[i]:(b=g==null?void 0:g.fields[i])==null?void 0:b.map(D=>D.name===r?(D.value=d,{...D}):D)}},p=JSON.parse(JSON.stringify([...l])),L=p==null?void 0:p.map(D=>(D.id===s&&(D.auth=o),D));localStorage.setItem("dataSources",JSON.stringify(L)),c(z(L)),setTimeout(()=>{v(()=>!1)},600)};return h(P,{children:[e(q,{title:"HTTP Auth Fields",isEditing:C,isEdit:!1,isAdd:!1}),h(V,{children:[y&&y.map((n,r)=>n.form_type==="select"?e(ne,{value:w.sanitize(n.value),name:w.sanitize(n.name),onChange:i=>k(i,n.name),locked:!1,opts:n.options,label:n.label},r):n.form_type==="switch"?e(se,{label:n.label,value:n.value,onChange:i=>u(i,n.name)},r):null),e(E,{children:f&&f.map((n,r)=>{var i;return e(E,{children:x[n]&&((i=x[n])==null?void 0:i.map((d,g)=>d.form_type==="input"||d.form_type==="password"?e(F,{onChange:o=>m(o,d.name,n),type:d.form_type,value:w.sanitize(d.value),label:d.label,placeholder:d.placeholder},g):d.form_type==="textarea"?e(Ye,{onChange:o=>m(o,d.name,n),value:w.sanitize(d.value),label:d.label,placeholder:d.placeholder},g):null))},r)})})]})]})}const et=pe("div",{target:"emiacor0"})("position:absolute;left:0;top:0;background:",({theme:t})=>t.background,";display:flex;flex-direction:culumn;justify-content:center;color:",({theme:t})=>t.contrast,";flex:1;height:100%;width:100%;.body-cont{max-width:1440px;padding:10px;margin:10px;border-radius:3px;flex:1;background:",({theme:t})=>t.shadow,";overflow-y:auto;overflow-x:hidden;}.ds-header{padding:10px;padding-bottom:20px;font-size:24px;flex:1;display:flex;width:100%;justify-content:space-between;align-items:center;padding-left:0px;.logo{margin-right:10px;}}.ds-cont{margin-bottom:10px;border:1px solid ",({theme:t})=>t.accentNeutral,";border-radius:3px;overflow-y:auto;}.ds-item{padding:10px;border-radius:3px 3px 0px 0px;padding-bottom:14px;display:flex;.logo{padding:10px;padding-right:20px;padding-left:0px;}.ds-text{display:flex;flex-direction:column;flex:1;}.ds-type{font-size:18px;padding:10px;padding-left:0px;color:",({theme:t})=>t.contrast,";}small{font-size:12px;}.setting-icon{justify-self:flex-end;cursor:pointer;}.ds-settings{background:",({theme:t})=>t.background,";}}");function tt(){const t=A(({dataSources:a})=>a);return(t==null?void 0:t.length)>0?e("div",{style:{margin:"10px"},children:t.map((a,s)=>{const{icon:c,id:l,name:f,type:S,url:C}=a;return e("div",{className:"ds-cont",children:e(me,{to:l,children:h("div",{className:"ds-item",children:[e(ee,{icon:c}),h("div",{className:"ds-text",children:[e("div",{className:"ds-type",children:f}),h("span",{children:[h("small",{children:[S," | "," "]}),e("small",{style:{userSelect:"all"},children:C})]})]})]})})},s)})}):e("div",{children:e("h1",{children:"No Data Sources Found."})})}const at=t=>{const{headers:a,id:s,linkedFields:c,name:l,url:f,cors:S}=t,C=_(),v=A(({dataSources:r})=>r),[y,x]=O.useState({url:!1,protocol:!1}),N=(r,i)=>{let d=i;r==="url"&&(d=i.replace(/\/$/,""));const g=JSON.parse(JSON.stringify(v));return g.forEach(o=>{o.id===s&&(o[r]=d)}),g},[k,u]=O.useState(!1),m=r=>{try{const i=window.location.protocol,d=new URL(r).protocol;return{value:i===d,error:""}}catch{return{value:!1,error:"url"}}},n=(r,i)=>{u(()=>!0);const d=r.target.value;if(i==="url"){const o=m(d);if((o==null?void 0:o.error)==="url"&&x(p=>({...p,url:!0})),!(o!=null&&o.value)&&(o==null?void 0:o.error)===""&&x(p=>({...p,protocol:!0})),(o==null?void 0:o.error)===""&&(o!=null&&o.value)){x(L=>({...L,protocol:!1,url:!1}));const p=N(i,d);localStorage.setItem("dataSources",JSON.stringify(p)),C(z(p)),setTimeout(()=>{u(()=>!1)},800)}}const g=N(i,d);localStorage.setItem("dataSources",JSON.stringify(g)),C(z(g)),setTimeout(()=>{u(()=>!1)},800)};return h(De,{children:[e(q,{isEditing:k,isEdit:!0,isAdd:!1,title:"DataSource Settings",fieldErrors:y}),e(V,{children:h(E,{children:[e(F,{value:w.sanitize(l),label:"Name",onChange:r=>n(r,"name")}),e(F,{value:w.sanitize(f),label:"URL",error:y.url||y.protocol,onChange:r=>n(r,"url")})]})}),e(Ze,{...t}),e(Qe,{cors:S,headers:a,id:s}),e(Xe,{...t,linkedFields:c})]})},nt=T({name:"9rq8lq",styles:"display:flex;align-items:center;justify-content:space-between;margin-right:20px"});function st(t,a,s){let c={},l=s&&s!==""&&a&&a!=="",f=l?`${btoa(a)}:${btoa(s)}`:"",S=JSON.parse(JSON.stringify(t));return l&&f&&(c.auth=f),c.url=S,JSON.stringify(c)}function it(t){const{url:a,auth:{basicAuth:s,fields:{basicAuth:[c,l]}}}=t,[f,S]=ve(["qryn-dev-cookie","qryn-settings"]),C=_(),v=A(k=>k.dataSources),y=()=>{const k=[...v],u=JSON.parse(JSON.stringify(k)),m=u==null?void 0:u.map(n=>({...n,url:w.sanitize(a),auth:{...n.auth,basicAuth:{...n.auth.basicAuth,value:s.value},fields:{...n.auth.fields,basicAuth:[...n.auth.fields.basicAuth].map(r=>r.name==="user"?{...r,value:w.sanitize(c.value)}:r.name==="password"?{...r,value:w.sanitize(l.value)}:r)}}}));localStorage.setItem("dataSources",JSON.stringify(m)),C(z(m)),C(fe({type:"success",message:"Set same URL and Basic Auth for All Data Sources"}))};function x(){const k=new Date;new Date().setDate(k.getDate()+1);try{S("qryn-settings",st(a,c.value,l.value),{path:"/"})}catch(m){console.log(m)}}function N(){const{headers:k,id:u,name:m,linkedFields:n}=t,r=k==null?void 0:k.map(({header:o,value:p})=>({[o]:p})),d=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify({id:u,name:m,headers:r,linkedFields:n}))}`,g=document.createElement("a");g.href=d,g.download=`${m}_${u}.json`,g.click()}return h("div",{className:"ds-cont",children:[h("div",{className:J(nt),children:[e(rt,{...t}),h("div",{style:{display:"flex",alignItems:"center"},children:[e(j,{title:"Download Datasource settings as JSON",value:w.sanitize("Download JSON"),onClick:N,primary:!0}),e(j,{title:"Set Cookie with name: qryn-settings",value:w.sanitize("Save Cookie"),onClick:x,primary:!0}),e(j,{title:"Use same URL and Basic Auth for all Data Sources",value:w.sanitize("Use For All"),onClick:y,primary:!0})]})]}),e("div",{className:"ds-settings",children:e(at,{...t})})]})}const rt=t=>{const{icon:a,name:s,type:c,url:l}=t;return h("div",{className:"ds-item",children:[e(ee,{icon:a}),h("div",{className:"ds-text",children:[e("div",{className:"ds-type",children:s}),h("small",{children:[w.sanitize(c)," | ",w.sanitize(l)]})]})]})};function lt(){let{id:t}=Se();const a=$(),s=A(l=>l.dataSources),c=O.useMemo(()=>!s||s.length===0?{}:s.find(l=>l.id===t)||{},[t,s]);return e(ae,{theme:a,children:e(et,{children:h("div",{className:"body-cont",children:[e(Ge,{title:"DataSource Settings",datasource:c}),e("div",{className:"datasource-body",children:e(it,{...c})})]})})})}const ot=t=>T("display:flex;flex-direction:column;flex:1;flex-wrap:wrap;width:400px;border:1px solid ",t.accentNeutral,";padding:5px;border-radius:3px;margin-left:10px;",""),ct=T({name:"1reekiy",styles:"display:flex;padding:4px 12px;font-size:14px;border-radius:4px;white-space:nowrap;align-items:center;justify-content:space-between"}),dt=T({name:"t10jb8",styles:"margin:5px"}),ut=T({name:"1wnuhlc",styles:"margin-left:20px;display:flex;align-items:center;span{font-size:12px;}"}),ht=T({name:"17moij0",styles:"align-items:center;width:100%;display:flex;margin-top:10px;justify-content:space-between;flex:1"}),pt=t=>{const[a,s]=O.useState(""),[c,l]=O.useState(""),[f,S]=O.useState(""),[C,v]=O.useState(!1),[y,x]=O.useState(!1),N=A(p=>p.dataSources),k=_(),u="Save",m=$(),n=p=>{var D;const b=(((D=p==null?void 0:p.target)==null?void 0:D.value)||"").replace(/\/$/,"");s(()=>b)},r=p=>{l(()=>p.target.value)},i=p=>{S(()=>p.target.value)},d=p=>{v(()=>p.target.checked)},g=p=>{x(()=>p.target.checked)},o=p=>{const L=JSON.parse(JSON.stringify(N)),b=L==null?void 0:L.map(D=>({...D,url:a,auth:{...D.auth,basicAuth:{...D.auth.basicAuth,value:y},fields:{...D.auth.fields,basicAuth:[...D.auth.fields.basicAuth].map(R=>R.name==="user"?{...R,value:c}:R.name==="password"?{...R,value:f}:R)}}}));localStorage.setItem("dataSources",JSON.stringify(b)),k(z(b))};return h("div",{className:J(ot(m)),children:[h("div",{className:J(ct),children:["Use one setting for all Data Sources",e(M,{checked:C,size:"small",onChange:d})]}),C&&h("div",{className:J(dt),children:[e(F,{value:w.sanitize(a),label:"url",onChange:n,placeholder:"http://qryn.dev"}),y&&h(P,{children:[e(F,{value:w.sanitize(c),label:"user",onChange:r,placeholder:"default"}),e(F,{value:w.sanitize(f),label:"password",onChange:i,type:"password",placeholder:""})]}),h("div",{className:J(ht),children:[h("div",{className:J(ut),children:[e("span",{children:"Use Basic Auth"})," ",e(M,{checked:y,size:"small",onChange:g})," "]}),e(j,{value:w.sanitize(u),onClick:o,editing:!1,primary:!0})]})]})]})};function Nt(t){const a=t.replace(/#/,""),s=decodeURIComponent(a),c=new URLSearchParams(s);for(let[l,f]of c)(l==="left"||l==="right")&&JSON.parse(f)}function bt(){const t=ye.useMediaQuery({query:"(prefers-color-scheme: dark)"}),a=_(),s=$(),c=A(l=>l.autoTheme);return O.useEffect(()=>{if(c){const l=t?"dark":"light";a(ze(l)),localStorage.setItem("theme",JSON.stringify({theme:l,auto:c}))}},[t,c,a]),h(ae,{theme:s,children:[e(Le,{children:h("div",{className:"cont",children:[e(tt,{}),e("div",{style:{display:"flex",flex:1},children:e("div",{style:{height:"40px"},children:e(pt,{})})})]})}),e(Ce,{children:e(xe,{path:":id",element:e(lt,{})})})]})}export{bt as default,Nt as getURlParams}; diff --git a/view/assets/DeleteOutlineOutlined-2068af5e.js b/view/assets/DeleteOutlineOutlined-d455761f.js similarity index 73% rename from view/assets/DeleteOutlineOutlined-2068af5e.js rename to view/assets/DeleteOutlineOutlined-d455761f.js index 02d20631..f1781e9f 100644 --- a/view/assets/DeleteOutlineOutlined-2068af5e.js +++ b/view/assets/DeleteOutlineOutlined-d455761f.js @@ -1 +1 @@ -import{i as a}from"./index-cb8d8b59.js";import{r as i,i as n}from"./createSvgIcon-b45af2a3.js";import{j as o}from"./reactDnd-72acd3f4.js";const v=t=>r=>{r({type:"SET_THEME",theme:t})},x=a("button",{target:"e18y13m91"})({name:"1cyd9nz",styles:"padding:3px 12px;font-size:12px;line-height:20px;cursor:pointer;user-select:none;border:none;border-radius:3px;font-weight:500;white-space:nowrap;display:flex;align-items:center"});var e={},s=n;Object.defineProperty(e,"__esModule",{value:!0});var l=e.default=void 0,u=s(i()),p=o,d=(0,u.default)((0,p.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4h-3.5z"}),"DeleteOutlineOutlined");l=e.default=d;export{x as B,l as d,v as s}; +import{i as a}from"./index-bc3ec90a.js";import{r as i,i as n}from"./createSvgIcon-e78f4b10.js";import{j as o}from"./reactDnd-dc8b0776.js";const v=t=>r=>{r({type:"SET_THEME",theme:t})},x=a("button",{target:"e18y13m91"})({name:"1cyd9nz",styles:"padding:3px 12px;font-size:12px;line-height:20px;cursor:pointer;user-select:none;border:none;border-radius:3px;font-weight:500;white-space:nowrap;display:flex;align-items:center"});var e={},s=n;Object.defineProperty(e,"__esModule",{value:!0});var l=e.default=void 0,u=s(i()),p=o,d=(0,u.default)((0,p.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4h-3.5z"}),"DeleteOutlineOutlined");l=e.default=d;export{x as B,l as d,v as s}; diff --git a/view/assets/Main-68e3709c.js b/view/assets/Main-e9bf08d1.js similarity index 98% rename from view/assets/Main-68e3709c.js rename to view/assets/Main-e9bf08d1.js index caf2c50d..5c3e66f0 100644 --- a/view/assets/Main-68e3709c.js +++ b/view/assets/Main-e9bf08d1.js @@ -1,4 +1,4 @@ -import{k as Fa,m as Va,n as $a,o as Rt,r as Oe,p as Ua,q as Ga,t as Ka,c as $2,v as oz,b as We,w as he,x as Ye,s as g2,B as Qa,y as lc,z as H1,a as ut,A as Ja,u as ge,C as zb,D as e2,E as o2,G as y1,d as O,g as D0,H as Ac,I as dc,h as i0,f as Q0,j as D,i as g0,J as Ya,K as EM,P as uc,F as q1,L as qc,l as fc,e as D2,M as Za,O as nb,R as eO,S as tO}from"./index-cb8d8b59.js";import{a as h1,d as Re,m as _1,u as w0,q as Ze,x as pM,y as it,z as Mz,A as bz,D as kM,E as _M,F as IM,G as zM,H as oO,I as MO,J as ke,K as Ve,M as cb,Q as bO,S as q2,T as pO,U as Wc,V as hc,W as rb,X as qt,Y as pz,Z as gc,$ as H2,n as U2,o as W2,a0 as zO,a1 as nO,a2 as cO,a3 as rO,a4 as iO,a5 as aO,j as C2,a6 as OO,w as h2,a7 as Vt,a8 as zz,a9 as nz,aa as sO,ab as lO,ac as AO,ad as ib,ae as dO,af as cz,v as rz,r as uO}from"./vendor-6029fc34.js";import{r as q,c as ab,g as et,R as n2,e as qO,b as mt}from"./react-432945ee.js";import{f as Rc,h as co,u as Ob,s as fO,i as WO,T as X1,C as hO,D as sb,j as lb,k as gO,l as RO,m as mO,o as LO,p as NO,q as vO,r as BO,E as yO,t as Ab,v as TO,w as mc,x as b1,b as SO,y as at,M as DM,z as xO,A as Lc,G as _e,H as XO,I as wO,J as CO,K as EO,L as Ie,N as kO,R as Nc,O as ae,d as _O,Q as vc,U as Bc,V as yc,W as db,X as St,Y as IO,Z as DO,_ as Tc,$ as iz,n as ee,a as to,a0 as Sc,a1 as PO,a2 as HO,a3 as jO,a4 as xc,a5 as Xc,a6 as wc,a7 as PM,a8 as Cc,P as xt,a9 as FO,aa as VO,ab as az,S as $O,ac as UO,ad as Oz}from"./consts-e7fba829.js";import{s as Ec,B as ub}from"./DeleteOutlineOutlined-2068af5e.js";import{l as D1}from"./lodash-fd695a79.js";import{a as GO,u as kc,r as L1,i as N1,S as f2}from"./createSvgIcon-b45af2a3.js";import{j as K0,u as KO,b as QO,H as JO,D as YO}from"./reactDnd-72acd3f4.js";import{k as _c,d as Ic,s as ZO,i as e3,g as t3,_ as o3,b as f1,S as qb,e as Dc,j as Xt,f as Pc}from"./reactSelect-75171a09.js";import{r as M3,f as sz,u as b3,g as p3,a as z3,b as n3,c as c3,d as r3,e as i3,h as a3,i as O3}from"./reactTable-9f941ddf.js";import{m as tt,d as s3,a as l3,u as lz}from"./memoize-acaceb73.js";import{w as A3,a as d3,T as u3,S as q3,E as f3,c as W3}from"./slate-25e47886.js";import{F as $t,d as wt,s as ro,e as fb}from"./AddOutlined-d979d573.js";import{P as h3,u as g3,L as Az}from"./PluginManagerFactory-a0a578f6.js";import{s as R3}from"./actions-2742fbfc.js";const Wb=e=>t=>{t({type:"SET_START_TIME",start:e})},hb=e=>t=>{t({type:"SET_STOP_TIME",stop:e})},m3=e=>t=>{t({type:"SET_QUERY_STEP",step:e})},dz=e=>t=>{t({type:"SET_RANGE_OPEN",rangeOpen:e})},gb=e=>t=>{t({type:"SET_TIME_RANGE_LABEL",label:e})},Hc=e=>t=>{t({type:"SET_QUERY_TIME",time:e})},oo=e=>t=>{t({type:"SET_QUERY_HISTORY",queryHistory:e})},jc=e=>t=>{t({type:"SET_HISTORY_OPEN",historyOpen:e})};function L3(e){return function(t){t({type:"SET_FROM_TIME",toTime:e})}}function N3(e){return function(t){t({type:"SET_TO_TIME"})}}const Ae=e=>t=>{t({type:"SET_IS_EMPTY_VIEW",isEmptyView:e})};function v3(e){return function(t){t({type:"SET_RESPONSE_TYPE",responseType:e})}}const J1=e=>t=>{t({type:"SET_RIGHT_PANEL",right:e})},c2=e=>t=>{t({type:"SET_LEFT_PANEL",left:e})},me=e=>t=>{t({type:"SET_RIGHT_DATAVIEW",rightDataView:e})},Le=e=>t=>{t({type:"SET_LEFT_DATAVIEW",leftDataView:e})},B3=e=>t=>{t({type:"SET_SPLIT_VIEW",isSplit:e})},y3=Fa(),T3=y3,S3=["component","direction","spacing","divider","children","className","useFlexGap"],x3=Va(),X3=T3("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function w3(e){return $a({props:e,name:"MuiStack",defaultTheme:x3})}function C3(e,t){const o=q.Children.toArray(e).filter(Boolean);return o.reduce((M,b,p)=>(M.push(b),p({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],k3=({ownerState:e,theme:t})=>{let o=h1({display:"flex",flexDirection:"column"},Rt({theme:t},Oe({values:e.direction,breakpoints:t.breakpoints.values}),M=>({flexDirection:M})));if(e.spacing){const M=Ua(t),b=Object.keys(t.breakpoints.values).reduce((r,s)=>((typeof e.spacing=="object"&&e.spacing[s]!=null||typeof e.direction=="object"&&e.direction[s]!=null)&&(r[s]=!0),r),{}),p=Oe({values:e.direction,base:b}),n=Oe({values:e.spacing,base:b});typeof p=="object"&&Object.keys(p).forEach((r,s,i)=>{if(!p[r]){const h=s>0?p[i[s-1]]:"column";p[r]=h}}),o=Ga(o,Rt({theme:t},n,(r,s)=>e.useFlexGap?{gap:oz(M,r)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${E3(s?p[s]:e.direction)}`]:oz(M,r)}}))}return o=Ka(t.breakpoints,o),o};function _3(e={}){const{createStyledComponent:t=X3,useThemeProps:o=w3,componentName:M="MuiStack"}=e,b=()=>We({root:["root"]},r=>he(M,r),{}),p=t(k3);return q.forwardRef(function(r,s){const i=o(r),A=Rc(i),{component:h="div",direction:g="column",spacing:d=0,divider:m,children:L,className:R,useFlexGap:W=!1}=A,S=Re(A,S3),N={direction:g,spacing:d,useFlexGap:W},x=b();return K0.jsx(p,h1({as:h,ownerState:N,ref:s,className:$2(x.root,R)},S,{children:m?C3(L,m):L}))})}function Fc({props:e,states:t,muiFormControl:o}){return t.reduce((M,b)=>(M[b]=e[b],o&&typeof e[b]>"u"&&(M[b]=o[b]),M),{})}function I3(e){return he("MuiButton",e)}const D3=Ye("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Ut=D3,P3=q.createContext({}),H3=P3,j3=q.createContext(void 0),F3=j3,V3=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],$3=e=>{const{color:t,disableElevation:o,fullWidth:M,size:b,variant:p,classes:n}=e,c={root:["root",p,`${p}${H1(t)}`,`size${H1(b)}`,`${p}Size${H1(b)}`,t==="inherit"&&"colorInherit",o&&"disableElevation",M&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${H1(b)}`],endIcon:["endIcon",`iconSize${H1(b)}`]},r=We(c,I3,n);return h1({},n,r)},Vc=e=>h1({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),U3=g2(Qa,{shouldForwardProp:e=>lc(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`${o.variant}${H1(o.color)}`],t[`size${H1(o.size)}`],t[`${o.variant}Size${H1(o.size)}`],o.color==="inherit"&&t.colorInherit,o.disableElevation&&t.disableElevation,o.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var o,M;const b=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],p=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return h1({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":h1({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ut(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ut(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ut(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:p,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":h1({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ut.focusVisible}`]:h1({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ut.disabled}`]:h1({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${ut(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(o=(M=e.palette).getContrastText)==null?void 0:o.call(M,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:b,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ut.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ut.disabled}`]:{boxShadow:"none"}}),G3=g2("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.startIcon,t[`iconSize${H1(o.size)}`]]}})(({ownerState:e})=>h1({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Vc(e))),K3=g2("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.endIcon,t[`iconSize${H1(o.size)}`]]}})(({ownerState:e})=>h1({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Vc(e))),Q3=q.forwardRef(function(t,o){const M=q.useContext(H3),b=q.useContext(F3),p=Ja(M,t),n=ge({props:p,name:"MuiButton"}),{children:c,color:r="primary",component:s="button",className:i,disabled:A=!1,disableElevation:h=!1,disableFocusRipple:g=!1,endIcon:d,focusVisibleClassName:m,fullWidth:L=!1,size:R="medium",startIcon:W,type:S,variant:N="text"}=n,x=Re(n,V3),w=h1({},n,{color:r,component:s,disabled:A,disableElevation:h,disableFocusRipple:g,fullWidth:L,size:R,type:S,variant:N}),l=$3(w),v=W&&K0.jsx(G3,{className:l.startIcon,ownerState:w,children:W}),B=d&&K0.jsx(K3,{className:l.endIcon,ownerState:w,children:d}),C=b||"";return K0.jsxs(U3,h1({ownerState:w,className:$2(M.className,l.root,i,C),component:s,disabled:A,focusRipple:!g,focusVisibleClassName:$2(l.focusVisible,m),ref:o,type:S},x,{classes:l,children:[v,c,B]}))}),$c=Q3,J3=zb(K0.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Y3=zb(K0.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Z3=zb(K0.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function es(e){return he("MuiCheckbox",e)}const ts=Ye("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),nM=ts,os=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Ms=e=>{const{classes:t,indeterminate:o,color:M,size:b}=e,p={root:["root",o&&"indeterminate",`color${H1(M)}`,`size${H1(b)}`]},n=We(p,es,t);return h1({},t,n)},bs=g2(GO,{shouldForwardProp:e=>lc(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.indeterminate&&t.indeterminate,t[`size${H1(o.size)}`],o.color!=="default"&&t[`color${H1(o.color)}`]]}})(({theme:e,ownerState:t})=>h1({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ut(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${nM.checked}, &.${nM.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${nM.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),ps=K0.jsx(Y3,{}),zs=K0.jsx(J3,{}),ns=K0.jsx(Z3,{}),cs=q.forwardRef(function(t,o){var M,b;const p=ge({props:t,name:"MuiCheckbox"}),{checkedIcon:n=ps,color:c="primary",icon:r=zs,indeterminate:s=!1,indeterminateIcon:i=ns,inputProps:A,size:h="medium",className:g}=p,d=Re(p,os),m=s?i:r,L=s?i:n,R=h1({},p,{color:c,indeterminate:s,size:h}),W=Ms(R);return K0.jsx(bs,h1({type:"checkbox",inputProps:h1({"data-indeterminate":s},A),icon:q.cloneElement(m,{fontSize:(M=m.props.fontSize)!=null?M:h}),checkedIcon:q.cloneElement(L,{fontSize:(b=L.props.fontSize)!=null?b:h}),ownerState:R,ref:o,className:$2(W.root,g)},d,{classes:W}))}),rs=cs;function is(e){return he("MuiCircularProgress",e)}Ye("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const as=["className","color","disableShrink","size","style","thickness","value","variant"];let Ro=e=>e,uz,qz,fz,Wz;const Y2=44,Os=_c(uz||(uz=Ro` +import{k as Fa,m as Va,n as $a,o as Rt,r as Oe,p as Ua,q as Ga,t as Ka,c as $2,v as oz,b as We,w as he,x as Ye,s as g2,B as Qa,y as lc,z as H1,a as ut,A as Ja,u as ge,C as zb,D as e2,E as o2,G as y1,d as O,g as D0,H as Ac,I as dc,h as i0,f as Q0,j as D,i as g0,J as Ya,K as EM,P as uc,F as q1,L as qc,l as fc,e as D2,M as Za,O as nb,R as eO,S as tO}from"./index-bc3ec90a.js";import{a as h1,d as Re,m as _1,u as w0,q as Ze,x as pM,y as it,z as Mz,A as bz,B as kM,D as _M,E as IM,F as zM,G as oO,I as MO,J as ke,K as Ve,M as cb,Q as bO,S as q2,T as pO,U as Wc,V as hc,W as rb,X as qt,Y as pz,Z as gc,$ as H2,n as U2,o as W2,a0 as zO,a1 as nO,a2 as cO,a3 as rO,a4 as iO,a5 as aO,j as C2,a6 as OO,w as h2,a7 as Vt,a8 as zz,a9 as nz,aa as sO,ab as lO,ac as AO,ad as ib,ae as dO,af as cz,v as rz,r as uO}from"./vendor-3db6068a.js";import{r as q,c as ab,g as et,R as n2,e as qO,b as mt}from"./react-432945ee.js";import{f as Rc,h as co,u as Ob,s as fO,i as WO,T as X1,C as hO,D as sb,j as lb,k as gO,l as RO,m as mO,o as LO,p as NO,q as vO,r as BO,E as yO,t as Ab,v as TO,w as mc,x as b1,b as SO,y as at,M as DM,z as xO,A as Lc,G as _e,H as XO,I as wO,J as CO,K as EO,L as Ie,N as kO,R as Nc,O as ae,d as _O,Q as vc,U as Bc,V as yc,W as db,X as St,Y as IO,Z as DO,_ as Tc,$ as iz,n as ee,a as to,a0 as Sc,a1 as PO,a2 as HO,a3 as jO,a4 as xc,a5 as Xc,a6 as wc,a7 as PM,a8 as Cc,P as xt,a9 as FO,aa as VO,ab as az,S as $O,ac as UO,ad as Oz}from"./consts-7d32bda4.js";import{s as Ec,B as ub}from"./DeleteOutlineOutlined-d455761f.js";import{l as D1}from"./lodash-fd695a79.js";import{a as GO,u as kc,r as L1,i as N1,S as f2}from"./createSvgIcon-e78f4b10.js";import{j as K0,u as KO,b as QO,H as JO,D as YO}from"./reactDnd-dc8b0776.js";import{k as _c,d as Ic,s as ZO,i as e3,g as t3,_ as o3,b as f1,S as qb,e as Dc,j as Xt,f as Pc}from"./reactSelect-db5d744f.js";import{r as M3,f as sz,u as b3,g as p3,a as z3,b as n3,c as c3,d as r3,e as i3,h as a3,i as O3}from"./reactTable-9f941ddf.js";import{m as tt,d as s3,a as l3,u as lz}from"./memoize-acaceb73.js";import{w as A3,a as d3,T as u3,S as q3,E as f3,c as W3}from"./slate-25e47886.js";import{F as $t,d as wt,s as ro,e as fb}from"./AddOutlined-654406e2.js";import{P as h3,u as g3,L as Az}from"./PluginManagerFactory-e4944f23.js";import{s as R3}from"./actions-2742fbfc.js";const Wb=e=>t=>{t({type:"SET_START_TIME",start:e})},hb=e=>t=>{t({type:"SET_STOP_TIME",stop:e})},m3=e=>t=>{t({type:"SET_QUERY_STEP",step:e})},dz=e=>t=>{t({type:"SET_RANGE_OPEN",rangeOpen:e})},gb=e=>t=>{t({type:"SET_TIME_RANGE_LABEL",label:e})},Hc=e=>t=>{t({type:"SET_QUERY_TIME",time:e})},oo=e=>t=>{t({type:"SET_QUERY_HISTORY",queryHistory:e})},jc=e=>t=>{t({type:"SET_HISTORY_OPEN",historyOpen:e})};function L3(e){return function(t){t({type:"SET_FROM_TIME",toTime:e})}}function N3(e){return function(t){t({type:"SET_TO_TIME"})}}const Ae=e=>t=>{t({type:"SET_IS_EMPTY_VIEW",isEmptyView:e})};function v3(e){return function(t){t({type:"SET_RESPONSE_TYPE",responseType:e})}}const J1=e=>t=>{t({type:"SET_RIGHT_PANEL",right:e})},c2=e=>t=>{t({type:"SET_LEFT_PANEL",left:e})},me=e=>t=>{t({type:"SET_RIGHT_DATAVIEW",rightDataView:e})},Le=e=>t=>{t({type:"SET_LEFT_DATAVIEW",leftDataView:e})},B3=e=>t=>{t({type:"SET_SPLIT_VIEW",isSplit:e})},y3=Fa(),T3=y3,S3=["component","direction","spacing","divider","children","className","useFlexGap"],x3=Va(),X3=T3("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function w3(e){return $a({props:e,name:"MuiStack",defaultTheme:x3})}function C3(e,t){const o=q.Children.toArray(e).filter(Boolean);return o.reduce((M,b,p)=>(M.push(b),p({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],k3=({ownerState:e,theme:t})=>{let o=h1({display:"flex",flexDirection:"column"},Rt({theme:t},Oe({values:e.direction,breakpoints:t.breakpoints.values}),M=>({flexDirection:M})));if(e.spacing){const M=Ua(t),b=Object.keys(t.breakpoints.values).reduce((r,s)=>((typeof e.spacing=="object"&&e.spacing[s]!=null||typeof e.direction=="object"&&e.direction[s]!=null)&&(r[s]=!0),r),{}),p=Oe({values:e.direction,base:b}),n=Oe({values:e.spacing,base:b});typeof p=="object"&&Object.keys(p).forEach((r,s,i)=>{if(!p[r]){const h=s>0?p[i[s-1]]:"column";p[r]=h}}),o=Ga(o,Rt({theme:t},n,(r,s)=>e.useFlexGap?{gap:oz(M,r)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${E3(s?p[s]:e.direction)}`]:oz(M,r)}}))}return o=Ka(t.breakpoints,o),o};function _3(e={}){const{createStyledComponent:t=X3,useThemeProps:o=w3,componentName:M="MuiStack"}=e,b=()=>We({root:["root"]},r=>he(M,r),{}),p=t(k3);return q.forwardRef(function(r,s){const i=o(r),A=Rc(i),{component:h="div",direction:g="column",spacing:d=0,divider:m,children:L,className:R,useFlexGap:W=!1}=A,S=Re(A,S3),N={direction:g,spacing:d,useFlexGap:W},x=b();return K0.jsx(p,h1({as:h,ownerState:N,ref:s,className:$2(x.root,R)},S,{children:m?C3(L,m):L}))})}function Fc({props:e,states:t,muiFormControl:o}){return t.reduce((M,b)=>(M[b]=e[b],o&&typeof e[b]>"u"&&(M[b]=o[b]),M),{})}function I3(e){return he("MuiButton",e)}const D3=Ye("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Ut=D3,P3=q.createContext({}),H3=P3,j3=q.createContext(void 0),F3=j3,V3=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],$3=e=>{const{color:t,disableElevation:o,fullWidth:M,size:b,variant:p,classes:n}=e,c={root:["root",p,`${p}${H1(t)}`,`size${H1(b)}`,`${p}Size${H1(b)}`,t==="inherit"&&"colorInherit",o&&"disableElevation",M&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${H1(b)}`],endIcon:["endIcon",`iconSize${H1(b)}`]},r=We(c,I3,n);return h1({},n,r)},Vc=e=>h1({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),U3=g2(Qa,{shouldForwardProp:e=>lc(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`${o.variant}${H1(o.color)}`],t[`size${H1(o.size)}`],t[`${o.variant}Size${H1(o.size)}`],o.color==="inherit"&&t.colorInherit,o.disableElevation&&t.disableElevation,o.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var o,M;const b=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],p=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return h1({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":h1({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ut(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ut(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ut(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:p,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":h1({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ut.focusVisible}`]:h1({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ut.disabled}`]:h1({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${ut(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(o=(M=e.palette).getContrastText)==null?void 0:o.call(M,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:b,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ut.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ut.disabled}`]:{boxShadow:"none"}}),G3=g2("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.startIcon,t[`iconSize${H1(o.size)}`]]}})(({ownerState:e})=>h1({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Vc(e))),K3=g2("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.endIcon,t[`iconSize${H1(o.size)}`]]}})(({ownerState:e})=>h1({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Vc(e))),Q3=q.forwardRef(function(t,o){const M=q.useContext(H3),b=q.useContext(F3),p=Ja(M,t),n=ge({props:p,name:"MuiButton"}),{children:c,color:r="primary",component:s="button",className:i,disabled:A=!1,disableElevation:h=!1,disableFocusRipple:g=!1,endIcon:d,focusVisibleClassName:m,fullWidth:L=!1,size:R="medium",startIcon:W,type:S,variant:N="text"}=n,x=Re(n,V3),w=h1({},n,{color:r,component:s,disabled:A,disableElevation:h,disableFocusRipple:g,fullWidth:L,size:R,type:S,variant:N}),l=$3(w),v=W&&K0.jsx(G3,{className:l.startIcon,ownerState:w,children:W}),B=d&&K0.jsx(K3,{className:l.endIcon,ownerState:w,children:d}),C=b||"";return K0.jsxs(U3,h1({ownerState:w,className:$2(M.className,l.root,i,C),component:s,disabled:A,focusRipple:!g,focusVisibleClassName:$2(l.focusVisible,m),ref:o,type:S},x,{classes:l,children:[v,c,B]}))}),$c=Q3,J3=zb(K0.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Y3=zb(K0.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Z3=zb(K0.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function es(e){return he("MuiCheckbox",e)}const ts=Ye("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),nM=ts,os=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Ms=e=>{const{classes:t,indeterminate:o,color:M,size:b}=e,p={root:["root",o&&"indeterminate",`color${H1(M)}`,`size${H1(b)}`]},n=We(p,es,t);return h1({},t,n)},bs=g2(GO,{shouldForwardProp:e=>lc(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.indeterminate&&t.indeterminate,t[`size${H1(o.size)}`],o.color!=="default"&&t[`color${H1(o.color)}`]]}})(({theme:e,ownerState:t})=>h1({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ut(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${nM.checked}, &.${nM.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${nM.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),ps=K0.jsx(Y3,{}),zs=K0.jsx(J3,{}),ns=K0.jsx(Z3,{}),cs=q.forwardRef(function(t,o){var M,b;const p=ge({props:t,name:"MuiCheckbox"}),{checkedIcon:n=ps,color:c="primary",icon:r=zs,indeterminate:s=!1,indeterminateIcon:i=ns,inputProps:A,size:h="medium",className:g}=p,d=Re(p,os),m=s?i:r,L=s?i:n,R=h1({},p,{color:c,indeterminate:s,size:h}),W=Ms(R);return K0.jsx(bs,h1({type:"checkbox",inputProps:h1({"data-indeterminate":s},A),icon:q.cloneElement(m,{fontSize:(M=m.props.fontSize)!=null?M:h}),checkedIcon:q.cloneElement(L,{fontSize:(b=L.props.fontSize)!=null?b:h}),ownerState:R,ref:o,className:$2(W.root,g)},d,{classes:W}))}),rs=cs;function is(e){return he("MuiCircularProgress",e)}Ye("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const as=["className","color","disableShrink","size","style","thickness","value","variant"];let Ro=e=>e,uz,qz,fz,Wz;const Y2=44,Os=_c(uz||(uz=Ro` 0% { transform: rotate(0deg); } @@ -25,7 +25,7 @@ import{k as Fa,m as Va,n as $a,o as Rt,r as Oe,p as Ua,q as Ga,t as Ka,c as $2,v animation: ${0} 1.4s linear infinite; `),Os)),ds=g2("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),us=g2("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.circle,t[`circle${H1(o.variant)}`],o.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>h1({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Ic(Wz||(Wz=Ro` animation: ${0} 1.4s ease-in-out infinite; - `),ss)),qs=q.forwardRef(function(t,o){const M=ge({props:t,name:"MuiCircularProgress"}),{className:b,color:p="primary",disableShrink:n=!1,size:c=40,style:r,thickness:s=3.6,value:i=0,variant:A="indeterminate"}=M,h=Re(M,as),g=h1({},M,{color:p,disableShrink:n,size:c,thickness:s,value:i,variant:A}),d=ls(g),m={},L={},R={};if(A==="determinate"){const W=2*Math.PI*((Y2-s)/2);m.strokeDasharray=W.toFixed(3),R["aria-valuenow"]=Math.round(i),m.strokeDashoffset=`${((100-i)/100*W).toFixed(3)}px`,L.transform="rotate(-90deg)"}return K0.jsx(As,h1({className:$2(d.root,b),style:h1({width:c,height:c},L,r),ownerState:g,ref:o,role:"progressbar"},R,h,{children:K0.jsx(ds,{className:d.svg,ownerState:g,viewBox:`${Y2/2} ${Y2/2} ${Y2} ${Y2}`,children:K0.jsx(us,{className:d.circle,style:m,ownerState:g,cx:Y2,cy:Y2,r:(Y2-s)/2,fill:"none",strokeWidth:s})})}))}),fs=qs,Ws=_3({createStyledComponent:g2("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ge({props:e,name:"MuiStack"})}),hs=Ws;function gs(e){return he("MuiFormControlLabel",e)}const Rs=Ye("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ft=Rs,ms=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Ls=e=>{const{classes:t,disabled:o,labelPlacement:M,error:b,required:p}=e,n={root:["root",o&&"disabled",`labelPlacement${H1(M)}`,b&&"error",p&&"required"],label:["label",o&&"disabled"],asterisk:["asterisk",b&&"error"]};return We(n,gs,t)},Ns=g2("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${ft.label}`]:t.label},t.root,t[`labelPlacement${H1(o.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>h1({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ft.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${ft.label}`]:{[`&.${ft.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),vs=g2("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ft.error}`]:{color:(e.vars||e).palette.error.main}})),Bs=q.forwardRef(function(t,o){var M,b;const p=ge({props:t,name:"MuiFormControlLabel"}),{className:n,componentsProps:c={},control:r,disabled:s,disableTypography:i,label:A,labelPlacement:h="end",required:g,slotProps:d={}}=p,m=Re(p,ms),L=kc(),R=(M=s??r.props.disabled)!=null?M:L==null?void 0:L.disabled,W=g??r.props.required,S={disabled:R,required:W};["checked","name","onChange","value","inputRef"].forEach(B=>{typeof r.props[B]>"u"&&typeof p[B]<"u"&&(S[B]=p[B])});const N=Fc({props:p,muiFormControl:L,states:["error"]}),x=h1({},p,{disabled:R,labelPlacement:h,required:W,error:N.error}),w=Ls(x),l=(b=d.typography)!=null?b:c.typography;let v=A;return v!=null&&v.type!==co&&!i&&(v=K0.jsx(co,h1({component:"span"},l,{className:$2(w.label,l==null?void 0:l.className),children:v}))),K0.jsxs(Ns,h1({className:$2(w.root,n),ownerState:x,ref:o},m,{children:[q.cloneElement(r,S),W?K0.jsxs(hs,{display:"block",children:[v,K0.jsxs(vs,{ownerState:x,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):v]}))}),ys=Bs;function Ts(e){return he("MuiFormGroup",e)}Ye("MuiFormGroup",["root","row","error"]);const Ss=["className","row"],xs=e=>{const{classes:t,row:o,error:M}=e;return We({root:["root",o&&"row",M&&"error"]},Ts,t)},Xs=g2("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.row&&t.row]}})(({ownerState:e})=>h1({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),ws=q.forwardRef(function(t,o){const M=ge({props:t,name:"MuiFormGroup"}),{className:b,row:p=!1}=M,n=Re(M,Ss),c=kc(),r=Fc({props:M,muiFormControl:c,states:["error"]}),s=h1({},M,{row:p,error:r.error}),i=xs(s);return K0.jsx(Xs,h1({className:$2(i.root,b),ownerState:s,ref:o},n))}),Cs=ws,Es=q.createContext(),hz=Es;function ks(e){return he("MuiGrid",e)}const _s=[0,1,2,3,4,5,6,7,8,9,10],Is=["column-reverse","column","row-reverse","row"],Ds=["nowrap","wrap-reverse","wrap"],Ot=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Lt=Ye("MuiGrid",["root","container","item","zeroMinWidth",..._s.map(e=>`spacing-xs-${e}`),...Is.map(e=>`direction-xs-${e}`),...Ds.map(e=>`wrap-xs-${e}`),...Ot.map(e=>`grid-xs-${e}`),...Ot.map(e=>`grid-sm-${e}`),...Ot.map(e=>`grid-md-${e}`),...Ot.map(e=>`grid-lg-${e}`),...Ot.map(e=>`grid-xl-${e}`)]),Ps=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Pe(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Hs({theme:e,ownerState:t}){let o;return e.breakpoints.keys.reduce((M,b)=>{let p={};if(t[b]&&(o=t[b]),!o)return M;if(o===!0)p={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(o==="auto")p={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const n=Oe({values:t.columns,breakpoints:e.breakpoints.values}),c=typeof n=="object"?n[b]:n;if(c==null)return M;const r=`${Math.round(o/c*1e8)/1e6}%`;let s={};if(t.container&&t.item&&t.columnSpacing!==0){const i=e.spacing(t.columnSpacing);if(i!=="0px"){const A=`calc(${r} + ${Pe(i)})`;s={flexBasis:A,maxWidth:A}}}p=h1({flexBasis:r,flexGrow:0,maxWidth:r},s)}return e.breakpoints.values[b]===0?Object.assign(M,p):M[e.breakpoints.up(b)]=p,M},{})}function js({theme:e,ownerState:t}){const o=Oe({values:t.direction,breakpoints:e.breakpoints.values});return Rt({theme:e},o,M=>{const b={flexDirection:M};return M.indexOf("column")===0&&(b[`& > .${Lt.item}`]={maxWidth:"none"}),b})}function Uc({breakpoints:e,values:t}){let o="";Object.keys(t).forEach(b=>{o===""&&t[b]!==0&&(o=b)});const M=Object.keys(e).sort((b,p)=>e[b]-e[p]);return M.slice(0,M.indexOf(o))}function Fs({theme:e,ownerState:t}){const{container:o,rowSpacing:M}=t;let b={};if(o&&M!==0){const p=Oe({values:M,breakpoints:e.breakpoints.values});let n;typeof p=="object"&&(n=Uc({breakpoints:e.breakpoints.values,values:p})),b=Rt({theme:e},p,(c,r)=>{var s;const i=e.spacing(c);return i!=="0px"?{marginTop:`-${Pe(i)}`,[`& > .${Lt.item}`]:{paddingTop:Pe(i)}}:(s=n)!=null&&s.includes(r)?{}:{marginTop:0,[`& > .${Lt.item}`]:{paddingTop:0}}})}return b}function Vs({theme:e,ownerState:t}){const{container:o,columnSpacing:M}=t;let b={};if(o&&M!==0){const p=Oe({values:M,breakpoints:e.breakpoints.values});let n;typeof p=="object"&&(n=Uc({breakpoints:e.breakpoints.values,values:p})),b=Rt({theme:e},p,(c,r)=>{var s;const i=e.spacing(c);return i!=="0px"?{width:`calc(100% + ${Pe(i)})`,marginLeft:`-${Pe(i)}`,[`& > .${Lt.item}`]:{paddingLeft:Pe(i)}}:(s=n)!=null&&s.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${Lt.item}`]:{paddingLeft:0}}})}return b}function $s(e,t,o={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[o[`spacing-xs-${String(e)}`]];const M=[];return t.forEach(b=>{const p=e[b];Number(p)>0&&M.push(o[`spacing-${b}-${String(p)}`])}),M}const Us=g2("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{container:M,direction:b,item:p,spacing:n,wrap:c,zeroMinWidth:r,breakpoints:s}=o;let i=[];M&&(i=$s(n,s,t));const A=[];return s.forEach(h=>{const g=o[h];g&&A.push(t[`grid-${h}-${String(g)}`])}),[t.root,M&&t.container,p&&t.item,r&&t.zeroMinWidth,...i,b!=="row"&&t[`direction-xs-${String(b)}`],c!=="wrap"&&t[`wrap-xs-${String(c)}`],...A]}})(({ownerState:e})=>h1({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),js,Fs,Vs,Hs);function Gs(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const o=[];return t.forEach(M=>{const b=e[M];if(Number(b)>0){const p=`spacing-${M}-${String(b)}`;o.push(p)}}),o}const Ks=e=>{const{classes:t,container:o,direction:M,item:b,spacing:p,wrap:n,zeroMinWidth:c,breakpoints:r}=e;let s=[];o&&(s=Gs(p,r));const i=[];r.forEach(h=>{const g=e[h];g&&i.push(`grid-${h}-${String(g)}`)});const A={root:["root",o&&"container",b&&"item",c&&"zeroMinWidth",...s,M!=="row"&&`direction-xs-${String(M)}`,n!=="wrap"&&`wrap-xs-${String(n)}`,...i]};return We(A,ks,t)},Qs=q.forwardRef(function(t,o){const M=ge({props:t,name:"MuiGrid"}),{breakpoints:b}=Ob(),p=Rc(M),{className:n,columns:c,columnSpacing:r,component:s="div",container:i=!1,direction:A="row",item:h=!1,rowSpacing:g,spacing:d=0,wrap:m="wrap",zeroMinWidth:L=!1}=p,R=Re(p,Ps),W=g||d,S=r||d,N=q.useContext(hz),x=i?c||12:N,w={},l=h1({},R);b.keys.forEach(C=>{R[C]!=null&&(w[C]=R[C],delete l[C])});const v=h1({},p,{columns:x,container:i,direction:A,item:h,rowSpacing:W,columnSpacing:S,wrap:m,zeroMinWidth:L,spacing:d},w,{breakpoints:b.keys}),B=Ks(v);return K0.jsx(hz.Provider,{value:x,children:K0.jsx(Us,h1({ownerState:v,className:$2(B.root,n),as:s,ref:o},l))})}),z2=Qs;const Js=e=>t=>{t({type:"SET_IS_EMBED",isEmbed:e})},Ys=e=>t=>{t({type:"SET_URL_LOCATION",urlLocation:e})},Zs=e=>t=>{t({type:"SET_URL_QUERY_PARAMS",urlQueryParams:e})},$e=e=>t=>{t({type:"SET_SPLIT_VIEW",isSplit:e})},Gt=["step","theme","time"],el=["label"],cM=["left","right"],Kt=["start","stop"],Qt=["isSubmit","isSplit","autoTheme","isEmbed"];function tl(){const e=q.useMemo(()=>window.matchMedia("(prefers-color-scheme: light)").matches,[]),t=_1(),o=w0(({urlQueryParams:v})=>v),M=w0(({start:v})=>v),b=w0(({stop:v})=>v),p=w0(({label:v})=>v),n=w0(({from:v})=>v),c=w0(({to:v})=>v),r=w0(({step:v})=>v),s=w0(({isSubmit:v})=>v),i=w0(({isEmbed:v})=>v),A=w0(({time:v})=>v),h=w0(({left:v})=>v),g=w0(({right:v})=>v),d=w0(({theme:v})=>v),m=w0(({autoTheme:v})=>v),L=w0(({isSplit:v})=>v),[R,W]=q.useState(e?"light":d);q.useEffect(()=>{W(d)},[d]);const S={start:M,step:r,stop:b,label:p,from:n,to:c,time:A,isSubmit:s,isEmbed:i,theme:d,autoTheme:m,left:h,right:g,isSplit:L},N={start:Wb,step:m3,stop:hb,label:gb,from:L3,to:N3,time:Hc,isSubmit:fO,isEmbed:Js,theme:Ec,left:c2,right:J1,isSplit:$e,autoTheme:WO},x=v=>(v==null?void 0:v.getTime())+"000000",w=(v,B)=>{try{let C=JSON.parse(v);return C&&C!==void 0?C:B}catch{return B}},{hash:l}=Ze();q.useEffect(()=>{const v=new URLSearchParams(l.replace(/#/,""));if(l.length>0){const B=o;for(let[C,k]of v.entries())B[C]=k;Object.keys(B).length>0&&(t(Zs({...o,startParams:B})),t(Ys(l)),Object.keys(B).forEach(C=>{if((Gt.includes(C)||el.includes(C))&&B[C]!=="")t(N[C](e2.sanitize(B[C])));else if(C==="theme")t(N[C](e2.sanitize(R)));else if(Kt.includes(C)&&B[C]!==""){const k=B[C]/1e6,_=new Date(o2(k).format("YYYY-MM-DDTHH:mm:ss.SSSZ"));t(N[C](_))}else if(Qt.includes(C))try{const k=w(B[C],!1);t(N[C](k))}catch(k){console.log(k)}else if(cM.includes(C))try{const k=w(decodeURIComponent(B[C]),[]);(k==null?void 0:k.length)>0&&t(N[C](k))}catch(k){console.log(k)}}))}else Gt.concat(Kt).concat(Qt).concat(cM).forEach(C=>{var k,_;if(Gt.includes(C))v.set(C,e2.sanitize((k=S[C])==null?void 0:k.toString()));else if(C==="theme")v.set(C,e2.sanitize(R.toString()));else if(Kt.includes(C)){const I=((_=S[C])==null?void 0:_.getTime())*1e6;v.set(C,e2.sanitize(I.toString()))}else if(Qt.includes(C))try{v.set(C,w(S[C],!1))}catch(I){console.log(I)}else if(cM.includes(C))try{const I=JSON.stringify(S[C]);v.set(C,I)}catch(I){console.log(I)}}),window.location.hash=v},[]),q.useEffect(()=>{if(l.length>0){const v=new URLSearchParams(l.replace(/#/,""));let B={};for(let[C,k]of v.entries())B[C]=k;Object.keys(S).forEach(C=>{if(Gt.includes(C)&&B[C]!==S[C]){const k=e2.sanitize(S[C].toString().trim());v.set(C,k)}else if(Kt.includes(C)&&B[C]!==x(S[C])){const k=x(S[C]);v.set(C,e2.sanitize(k))}else if(Qt.includes(C)&&B[C]!==S[C])try{v.set(C,w(S[C],!1))}catch(k){console.error(k)}else if(C==="left"){const k=JSON.stringify(h);v.set("left",k)}else if(C==="right"){const k=JSON.stringify(g);v.set("right",k)}}),window.location.hash=v}},[S])}function ol(e,t,o){const{queryUrl:M,encodedQuery:b,limit:p,parsedTime:n,queryStep:c,direction:r,time:s}=t;return e==="metrics"||e==="logs"?o==="instant"?`${M}/query?query=${b}&limit=${p}&time=${s}&direction=${r}`:`${M}/query_range?query=${b}&limit=${p}${n}${c}&direction=${r}`:e==="flux"?`${M}`:e==="traces"?o==="trace-search"?`${M}${n}`:`${M}`:""}function Ml(e,t,o){return ol(e,o,t)}function bl(e,t){var M;const o=((M=Object.keys(t))==null?void 0:M.length)>0?t:void 0;return e==="flux"?{method:"POST",headers:o||{Accept:"application/csv","Content-Type":"application/vnd.flux"}}:{method:"GET",headers:o||{"Content-Type":"application/json"}}}const pl=(e,t)=>Array.from({length:Math.ceil(e.length/t)},(o,M)=>e.slice(M*t,M*t+t)),rM=(...e)=>e.filter(t=>t).join(" "),zl=e=>{const t=_M(oO(e)),o=IM(MO(e)),M=[];for(let b=t;ke(b,o);)M.push(b),b=kM(b,1);return M},nl=({dateStart:e},t)=>e&&Ve(t,e),cl=({dateEnd:e},t)=>e&&Ve(t,e),rl=({dateStart:e,dateEnd:t},o)=>e&&t&&(cb(o,{start:e,end:t})||Ve(o,e)||Ve(o,t)),il=({dateStart:e,dateEnd:t})=>e&&t?Ve(e,t):!1,mo=e=>Rb(new Date).find(t=>t.label===e),gz=(e,t)=>{if(e instanceof Date){const o=bO(e);if(q2(o))return o}if(e instanceof String){const o=pO(e.toString());if(q2(o))return o}else return t},al=(e,t)=>{var M,b;const o=Math.floor(t/2);return(b=(M=Array(t))==null?void 0:M.fill(0))==null?void 0:b.map((p,n)=>(e==null?void 0:e.getFullYear())-o+n)},Rz=(e,t)=>{const{dateStart:o,dateEnd:M,label:b}=e,{dateStart:p,dateEnd:n,label:c}=t;return b===c?!0:o&&p&&M&&n?pz(o,p)&&pz(M,n):!1},Ol=(e,t,o)=>{let{dateStart:M,dateEnd:b}=e;if(M&&b){const p=Wc([M,t]),n=hc([b,o]);return[p,rb(p,n)?qt(p,1):n]}else return[M,b]},Rb=e=>[{label:"Last 5 minutes",dateStart:pM(e,-5),dateEnd:e},{label:"Last 15 minutes",dateStart:pM(e,-15),dateEnd:e},{label:"Last 30 minutes",dateStart:pM(e,-30),dateEnd:e},{label:"Last 1 hour",dateStart:it(e,-1),dateEnd:e},{label:"Last 3 hours",dateStart:it(e,-3),dateEnd:e},{label:"Last 6 hours",dateStart:it(e,-6),dateEnd:e},{label:"Last 12 hours",dateStart:it(e,-12),dateEnd:e},{label:"Last 24 hours",dateStart:it(e,-24),dateEnd:e},{label:"Today",dateStart:Mz(e),dateEnd:bz(e)},{label:"Yesterday",dateStart:Mz(kM(e,-1)),dateEnd:bz(kM(e,-1))},{label:"This Week",dateStart:_M(e),dateEnd:IM(e)},{label:"Last Week",dateStart:_M(zM(e,-1)),dateEnd:IM(zM(e,-1))},{label:"Last 7 Days",dateStart:zM(e,-1),dateEnd:e}];Rb(new Date);function sl(e){return e/1e6}function te(e){return new Date(e).getTime()+"000000"}function De(e){let t=new Date(e);return Math.round(t.getTime()/1e3)}const ll=e=>e||parseInt(new Date().getTime()+"000000"),Al=(e,t)=>{let o=mo(e);const{dateStart:M,dateEnd:b}=o;let p,n;return t==="metrics"?(p=De(M),n=De(b)):(p=parseInt(te(M)),n=parseInt(te(b))),{pStart:p,pStop:n,dateStart:M,dateEnd:b}};function mb(e,t,o){const{time:M,from:b,to:p}=y1.getState(),n=y1.getState()[o],c=n==null?void 0:n.find(N=>N.id===t),r=c.start,s=c.stop,i=ll(M),A=c.label,h=r,g=s;let d=0,m=0;if(mo(A)){const{pStart:N,pStop:x}=Al(A,e);e==="traces"?(d=Math.round(N/1e9),m=Math.round(x/1e9)):(d=N,m=x)}else e==="metrics"?(d=De(h),m=De(g)):e==="logs"?(d=parseInt(te(h)),m=parseInt(te(g))):e==="traces"?(d=De(h),m=De(g)):(d=parseInt(te(h)),m=parseInt(te(g)));const L="&start="+(b||d)+"&end="+(p||m),R=parseInt(b||d);return{tDiff:(parseInt(p||m)-R)/(e==="metrics"?1:1e6),time:i,parsedTime:L}}function dl(e,t,o,M,b,p="",n,c,r,s,i){const A=y1.getState(),{isSplit:h}=A,g=h?2:1,d=window.innerWidth,{parsedTime:m,time:L}=mb(e,s,i),R=p;let W=0;r>0?W=r:W=d/Math.round(d/M*10/g),W===0&&(W=1);const S=`&step=${W}`,N=`${encodeURIComponent(t)}`;let x="";switch(e){case"logs":x=`${R}/loki/api/v1`;break;case"metrics":x=`${R}/api/v1`;break;case"flux":x=`${R}/api/v2/query`;break;case"traces":x=n==="trace-search"?`${c}`:`${R}/api/traces/${t}/json`;break;default:x=`${R}/loki/api/v1`}return{queryUrl:x,encodedQuery:N,parsedTime:m,time:L,queryStep:S,limit:o,direction:b,queryType:n}}async function HM(e){e(Ae(!0))}function Gc(e){let t=[];try{for(let o of e){let M=Object.keys(o.metric);for(let b in M)t.includes(M[b])||t.push(M[b])}}catch(o){console.log(o)}return t}function jM(e){let t=[];try{for(let o of e){let M=Object.keys(o);for(let b of M)t.includes(b)||t.push(b)}}catch(o){console.log(o)}return t}function Mo(e,t="logs"){if(t==="flux"||t==="traces")try{return e}catch(o){console.log(o)}else{const o=Gc(e);try{let M=[];const b=e.length,p=o.length;for(let c=0;cc.time)}catch(M){console.log(M)}}}const ul={locale:"en",long:{year:{previous:"last year",current:"this year",next:"next year",past:{one:"{0} year ago",other:"{0} years ago"},future:{one:"in {0} year",other:"in {0} years"}},quarter:{previous:"last quarter",current:"this quarter",next:"next quarter",past:{one:"{0} quarter ago",other:"{0} quarters ago"},future:{one:"in {0} quarter",other:"in {0} quarters"}},month:{previous:"last month",current:"this month",next:"next month",past:{one:"{0} month ago",other:"{0} months ago"},future:{one:"in {0} month",other:"in {0} months"}},week:{previous:"last week",current:"this week",next:"next week",past:{one:"{0} week ago",other:"{0} weeks ago"},future:{one:"in {0} week",other:"in {0} weeks"}},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:{one:"{0} hour ago",other:"{0} hours ago"},future:{one:"in {0} hour",other:"in {0} hours"}},minute:{current:"this minute",past:{one:"{0} minute ago",other:"{0} minutes ago"},future:{one:"in {0} minute",other:"in {0} minutes"}},second:{current:"now",past:{one:"{0} second ago",other:"{0} seconds ago"},future:{one:"in {0} second",other:"in {0} seconds"}}},short:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0} yr. ago",future:"in {0} yr."},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},future:{one:"in {0} qtr.",other:"in {0} qtrs."}},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0} mo. ago",future:"in {0} mo."},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0} wk. ago",future:"in {0} wk."},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:"{0} hr. ago",future:"in {0} hr."},minute:{current:"this minute",past:"{0} min. ago",future:"in {0} min."},second:{current:"now",past:"{0} sec. ago",future:"in {0} sec."}},narrow:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0}y ago",future:"in {0}y"},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:"{0}q ago",future:"in {0}q"},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0}mo ago",future:"in {0}mo"},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0}w ago",future:"in {0}w"},day:{previous:"yesterday",current:"today",next:"tomorrow",past:"{0}d ago",future:"in {0}d"},hour:{current:"this hour",past:"{0}h ago",future:"in {0}h"},minute:{current:"this minute",past:"{0}m ago",future:"in {0}m"},second:{current:"now",past:"{0}s ago",future:"in {0}s"}},now:{now:{current:"now",future:"in a moment",past:"just now"}},mini:{year:"{0}yr",month:"{0}mo",week:"{0}wk",day:"{0}d",hour:"{0}h",minute:"{0}m",second:"{0}s",now:"now"},"short-time":{year:"{0} yr.",month:"{0} mo.",week:"{0} wk.",day:{one:"{0} day",other:"{0} days"},hour:"{0} hr.",minute:"{0} min.",second:"{0} sec."},"long-time":{year:{one:"{0} year",other:"{0} years"},month:{one:"{0} month",other:"{0} months"},week:{one:"{0} week",other:"{0} weeks"},day:{one:"{0} day",other:"{0} days"},hour:{one:"{0} hour",other:"{0} hours"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} second",other:"{0} seconds"}}},ql=()=>y1.getState().theme==="light"?Ac:dc,fl=e=>i0("border:none;background:none;color:",e.primaryLight,";cursor:pointer;&:hover{text-decoration:underline;}","");gc.addDefaultLocale(ul);function Wl(e){return o2(parseInt(e.getValue()+"000")).format("YYYY-MM-DDTHH:mm:ss.SSZ")}function hl(e){return e.getValue()+" ms"}function gl(e){return new gc("en-US").format(e.getValue()/1e6)}function Rl(e,t){const o=y1.dispatch,M=y1.getState()[e.panel],b=y1.getState().right,p=window.innerWidth<=1013,n=M.find(s=>s.id===e.id);e.panel==="left"&&!p&&o($e(!0));let c=JSON.parse(JSON.stringify(b));const r=JSON.parse(JSON.stringify(n));try{const s={...c[0],id:c[0].id,idRef:"Trace "+t,panel:"right",queryType:"range",dataSourceType:"traces",dataSourceId:e.dataSourceId,dataSourceURL:e.url,expr:t,limit:100,step:100,tableView:!1,chartView:!1,isShowTs:!1,isBuilder:!1,isLogsVolume:!1,browserOpen:!1,open:!0,labels:[],values:[],direction:"backwards"};o(J1([s])),o(w2("traces",t,"range",r.limit||100,"right",s.id,"backwards",e.dataSourceId,e.url))}catch(s){console.log(s)}}function ml(e){return o2(e.getValue()).format("YYYY-MM-DDTHH:mm:ss.SSZ")}function Ll(e,t="logs",o,M={}){var n,c;const b=(c=(n=y1.getState())==null?void 0:n[M.panel])==null?void 0:c.find(r=>r.id===M.id);b&&(M.dataSourceId=b.dataSourceId,M.url=b.dataSourceURL);const p=ql();return e.length>0&&t==="traces"?e==null?void 0:e.map(r=>r.accessorKey==="durationMs"?{header:"Duration Ms",accessorKey:r.accessorKey,cell:s=>hl(s)}:r.accessorKey==="startTimeUnixNano"?{header:"Start Time",accessorKey:r.accessorKey,cell:s=>gl(s)}:r.accessorKey==="traceID"||r.accessorKey==="traceId"?{header:"Trace Id",accessorKey:r.accessorKey,cell:s=>O("button",{onClick:i=>Rl(M,s.getValue()),className:D0(fl(p)),children:s.getValue()})}:r.accessorKey==="rootServiceName"?{header:"Service Name",accessorKey:r.accessorKey,cell:s=>s.getValue()}:r.accessorKey==="rootTraceName"?{header:"Trace Name",accessorKey:r.accessorKey,cell:s=>s.getValue()}:r):e.length>0&&t==="flux"?e==null?void 0:e.map(r=>r.accessorKey===o||r.accessorKey==="_time"?{header:"Time",accessorKey:r.accessorKey,cell:s=>ml(s)}:r):e.length>0?[{header:"Time",accessorKey:"time",cell:r=>Wl(r)},...e,{header:"Value",accessorKey:"value"}]:[]}function bo(e,t="logs",o,M={}){const b=e==null?void 0:e.map(n=>({header:n,accessorKey:n,id:n,cell:c=>c.getValue()}));return Ll(b,t,o,M)}function iM(e){return e==="left"?{state:"leftDataView",action:Le}:{state:"rightDataView",action:me}}function Kc(e){var i,A,h,g,d,m;const{result:t,debugMode:o,dispatch:M,panel:b,id:p,type:n,dsType:c,raw:r}=e;let s={panel:b,id:p,type:n};if(n==="traces")try{const L=jM(t),R=W=>{const S=W[0],N=Object.entries(S);if(N){const x=N.find(([w,l])=>H2(l));return(x==null?void 0:x[0])||null}};if(L.length>0){const W=R(t),N=bo(L,n,W,{panel:b,id:p,type:n}),x=Mo(t,n),w={columnsData:N,dataRows:x,panel:b,id:p};if((N==null?void 0:N.length)>0&&(x==null?void 0:x.length)>0){const l={id:p,type:"vector",raw:r,dsType:c,data:{tableData:w},tableData:w,total:((i=w==null?void 0:w.dataRows)==null?void 0:i.length)||0},v=iM(b),{action:B,state:C}=v,k=(A=y1.getState())==null?void 0:A[C];if(k.some(_=>_.id===l.id)){let _=[];M(B([])),_=[...k.filter(Q=>Q.id!==l.id),{...l}],M(B(_))}else{let _=[...k,l];M(B(_))}}}}catch(L){console.log(L)}else if(n==="flux")try{const L=jM(t),R=W=>{const S=W[0],N=Object.entries(S);if(N){const x=N.find(([w,l])=>H2(l));return(x==null?void 0:x[0])||null}};if(L.length>0){const W=R(t),S=bo(L,n,W,s),N=Mo(t,n),x={columnsData:S,dataRows:N,panel:b,id:p};if((S==null?void 0:S.length)>0&&(N==null?void 0:N.length)>0){const w={id:p,type:"vector",data:{tableData:x},raw:r,dsType:c,tableData:x,total:((h=x==null?void 0:x.dataRows)==null?void 0:h.length)||0},l=iM(b),{action:v,state:B}=l,C=(g=y1.getState())==null?void 0:g[B];if(C.some(k=>k.id===w.id)){let k=[];M(v([])),k=[...C.filter(I=>I.id!==w.id),{...w}],M(v(k))}else{let k=[...C,w];M(v(k))}}}}catch(L){console.log(L)}else try{const L=Gc(t);if(L.length>0){const R=bo(L,n,null,s),W=Mo(t),S={columnsData:R,dataRows:W,panel:b,id:p};if(R.length>0&&W.length>0){const N={id:p,type:"vector",data:{tableData:S},raw:r,dsType:c,tableData:S||{},total:((d=S==null?void 0:S.dataRows)==null?void 0:d.length)||0},x=iM(b),{action:w,state:l}=x,v=(m=y1.getState())==null?void 0:m[l];if(v.some(B=>B.id===N.id)){let B=[];M(w([])),B=[...v.filter(k=>k.id!==N.id),{...N}],M(w(B))}else{let B=[...v,N];M(w(B))}}}}catch(L){o&&console.log("🚧 getData / getting an error from rendering vector type streams"),console.log(L)}}function Qc(e){return(e==null?void 0:e.map(t=>({...t,id:U2()})))||[]}function Nl(e){return o2(e.getValue()*1e3).format("YYYY-MM-DDTHH:mm:ss.SSZ")}function vl(e){return e.map(({metric:t,values:o})=>({metric:JSON.stringify(t),rows:o.map(([M,b])=>({time:M,metric:JSON.stringify(t),value:b})),get rowsLength(){var M;return(M=this.rows)==null?void 0:M.length},get title(){return`'${this.metric}' (${this.rowsLength})`}}))}function Bl(e){const t=[{header:"Time",accessorKey:"time",cell:p=>Nl(p)},{header:"Metric",accessorKey:"metric"},{header:"Value",accessorKey:"value"}],o=vl(e);let M=[];for(let p of o)M.push(p.rows);const b=D1.sortBy(M.flat(),p=>p.time);return{columnsData:t,dataRows:b,total:b.length}}function yl(e){return e==="left"?{state:"leftDataView",action:Le}:{state:"rightDataView",action:me}}function mz(e){var A;const{result:t,debugMode:o,dispatch:M,panel:b,id:p,raw:n,dsType:c,isLogsVolume:r}=e,s=Bl(t),i=yl(b);try{const h=Qc(t),g={id:p,type:"matrix",tableData:s,data:h,dsType:c,raw:n,total:(h==null?void 0:h.length)||0},{action:d,state:m}=i,L=(A=y1.getState())==null?void 0:A[m];if(L.some(R=>R.id===g.id)){let R=[];if(r){R=[...L];let W=R.map(S=>S.id===p?{...S,logsVolumeData:h,total:h.length}:S);M(d([])),M(d(W))}else M(d([])),R=[...L.filter(S=>S.id!==g.id),{...g}],M(d(R))}else{let R=[...L,g];M(d(R))}}catch(h){o&&console.log("🚧 getData / getting an error from rendering matrix type streams"),console.log(h)}}const Tl=e=>t=>{t({type:"SET_LOGS",logs:e})};function Sl(e){return o2(parseInt(e.getValue())/1e6).format("YYYY-MM-DDTHH:mm:ss.SSZ")}function xl(e){return e==null?void 0:e.map(({stream:t,values:o})=>({stream:`${JSON.stringify(t)}`,rows:o==null?void 0:o.map(([M,b])=>({time:M,stream:JSON.stringify(t),log:b})),get rowsLength(){var M;return((M=this==null?void 0:this.rows)==null?void 0:M.length)||0}}))}function Lz(e){return O("span",{title:e.getValue(),children:e.getValue()})}function Xl(e){const t=[{id:"time",header:"Time",accessorKey:"time",cell:p=>Sl(p)},{id:"stream",header:"Stream",accessorKey:"stream",cell:p=>Lz(p)},{id:"log",accessorKey:"log",header:"Log",cell:p=>Lz(p)}],o=xl(e),M=(o==null?void 0:o.length)||0;let b=[];if(M>0)for(let p of o)b.push(p.rows);return{columnsData:t,dataRows:D1.sortBy(b.flat(),p=>p.time),length:M}}function wl(e){return e==="left"?{state:"leftDataView",action:Le}:{state:"rightDataView",action:me}}function Nz(e){var W,S;const{result:t,raw:o,time:M,debugMode:b,queryType:p,panel:n,id:c,dispatch:r,dsType:s,direction:i,isLogsVolume:A}=e,h=Ul(t,i),g=wl(n),d=Xl(t),m=Jc(h,i);function L(N){return[].concat.apply([],N).filter(function(x,w,l){return l.indexOf(x)===w})}let R={id:c,type:"stream",tableData:{},data:[{}],raw:"[]",labels:[],total:0,isLogsVolume:A,dsType:s};if(m)try{Fl(r(Tl(m||[]))).then(()=>{m.length===0&&(b&&console.log("🚧 getData / getting no messages sorted"),r(Ae(!0))),r(Ae(!1))});const N=Array.from(new Set(m==null?void 0:m.map(B=>Object.keys(B.tags)))),x=L(N);R={id:c,type:"stream",dsType:s,tableData:d,data:m,isLogsVolume:A,raw:o,labels:[...x],total:(m==null?void 0:m.length)||0};const{action:w,state:l}=g,v=(W=y1.getState())==null?void 0:W[l];if(v.some(B=>B.id===R.id)){let B=[];if(A){B=[...v];let C=B.map(k=>{var _;if(k.id===c){let I=[];return k!=null&&k.logsVolumeData&&((_=k.logsVolumeData)==null?void 0:_.length)>0&&(I=[...k.logsVolumeData]),{...{...R},logsVolumeData:I}}else return k});r(w([])),r(w(C))}else{let C=[];r(w([])),C=[...v.filter(_=>_.id!==R.id),{...R}],r(w(C))}}else{let B=[...v,R];r(w(B))}p==="instant"&&r(Hc(M))}catch(N){console.log(N)}else{const{action:N,state:x}=g,w=(S=y1.getState())==null?void 0:S[x];if(w.some(l=>l.id===R.id)){let l=[];r(N([])),l=[...(w==null?void 0:w.filter(B=>B.id!==R.id))||[],{...R}],r(N(l))}else{let l=[...w,R];r(N(l))}}}function Cl(e){return e==="left"?{state:"leftDataView",action:Le}:{state:"rightDataView",action:me}}async function El(e){var i,A;const{result:t,debugMode:o,dispatch:M,panel:b,id:p,type:n,dsType:c,queryType:r,raw:s}=e;if(r==="trace-search")await Kc(e);else try{const h={id:p,type:n,dsType:c,tableData:{},data:t,raw:s,labels:[],open:!0,total:(i=t==null?void 0:t.resourceSpans)==null?void 0:i.length},g=Cl(b),{action:d,state:m}=g,L=(A=y1.getState())==null?void 0:A[m];if(L.some(R=>R.id===h.id)){let R=[];M(d([])),R=[...L.filter(S=>S.id!==h.id),{...h}],M(d(R))}else{let R=[...L,h];M(d(R))}}catch(h){o&&console.log(" 🚧 getData / getting an error from rendering Traces type streams",h),console.log(h)}}function kl(e){return o2(e.getValue()).format("YYYY-MM-DDTHH:mm:ss.SSZ")}function _l(e){return[{metric:{__name__:"Flux"},values:e.map(o=>Object.values(o).map((M,b)=>isNaN(+M)?null:(M instanceof Date?M.getTime()/1e3:M)+(b===0?0:"")).filter(M=>!!M))}]}function Il(e){return e.map(({metric:t,values:o})=>({metric:JSON.stringify(t),rows:o.map(([M,b])=>({time:M,metric:JSON.stringify(t),value:b})),get rowsLength(){var M;return(M=this.rows)==null?void 0:M.length},get title(){return`'${this.metric}' (${this.rowsLength})`}}))}function vz(e){return O("span",{title:e.getValue(),children:e.getValue()})}function Dl(e){const t=[{accessorKey:"time",header:()=>O("span",{children:"Time"}),cell:p=>kl(p)},{header:"Metric",cell:p=>vz(p),accessorKey:"metric"},{header:"Value",accessorKey:"value",cell:p=>vz(p)}],o=Il(e);let M=[];for(let p of o)M.push(p.rows);const b=D1.sortBy(M.flat(),p=>p.time);return{columnsData:t,dataRows:b,total:b.length}}function Pl(e){return e==="left"?{state:"leftDataView",action:Le}:{state:"rightDataView",action:me}}function Hl(e){const{result:t,panel:o,id:M,type:b}=e,p={panel:o,id:M,type:b},n=jM(e.result),r=(h=>{const g=h[0],d=Object.entries(g);if(d){const m=d.find(([L,R])=>H2(R));return(m==null?void 0:m[0])||null}})(t),s=bo(n,b,r,p),i=Mo(t,b),A={columnsData:s,dataRows:i,panel:o,id:M};if((s==null?void 0:s.length)>0&&(i==null?void 0:i.length)>0)return A}function jl(e){var i;let{result:t,debugMode:o,dispatch:M,panel:b,id:p,raw:n,dsType:c}=e;t=_l(t);const r=Dl(t),s=Pl(b);try{const A=Qc(t),h=Hl(e),d={id:p,type:"vector",tableData:r,data:{chartData:A,tableData:h},dsType:c,raw:n,total:(A==null?void 0:A.length)||0},{action:m,state:L}=s,R=(i=y1.getState())==null?void 0:i[L];if(R.some(W=>W.id===d.id)){let W=[];M(m([])),W=[...R.filter(N=>N.id!==d.id),{...d}],M(m(W))}else{let W=[...R,d];M(m(W))}}catch(A){o&&console.log("🚧 getData / getting an error from rendering Flux type streams"),console.error(A)}}const{debugMode:Lb}=y1.getState();async function Fl(e){return await e}function Jc(e,t){return t==="forward"?Vl(e):$l(e)}function Vl(e){const t=performance.now(),o=e==null?void 0:e.sort((b,p)=>b.timestamp-p.timestamp),M=performance.now()-t;return Lb&&console.log("🚧 getData / sorting logs took: ",M," ms"),o}function $l(e){const t=performance.now(),o=e==null?void 0:e.sort((b,p)=>p.timestamp-b.timestamp),M=performance.now()-t;return Lb&&console.log("🚧 getData / sorting logs took: ",M," ms"),o}function Ul(e,t="backwards"){const o=performance.now();let M=[];e==null||e.forEach(p=>{p.values.forEach(([n,c],r)=>{M.push({type:"stream",timestamp:sl(n),text:c,tags:p.stream||{},isShowTs:!0,isBuilder:!1,showLabels:!1,id:U2()})})});const b=performance.now()-o;return Lb&&console.log("🚧 getData / mapping logs took: ",b," ms"),Jc(M,t)}async function we(e){const{type:t}=e;switch(t){case"streams":await Nz(e);break;case"vector":await Kc(e);break;case"matrix":await mz(e);break;case"scalar":await mz(e);break;case"flux":await jl(e);break;case"traces":await El(e);break;default:await Nz(e)}}var Yc={exports:{}};/* @license + `),ss)),qs=q.forwardRef(function(t,o){const M=ge({props:t,name:"MuiCircularProgress"}),{className:b,color:p="primary",disableShrink:n=!1,size:c=40,style:r,thickness:s=3.6,value:i=0,variant:A="indeterminate"}=M,h=Re(M,as),g=h1({},M,{color:p,disableShrink:n,size:c,thickness:s,value:i,variant:A}),d=ls(g),m={},L={},R={};if(A==="determinate"){const W=2*Math.PI*((Y2-s)/2);m.strokeDasharray=W.toFixed(3),R["aria-valuenow"]=Math.round(i),m.strokeDashoffset=`${((100-i)/100*W).toFixed(3)}px`,L.transform="rotate(-90deg)"}return K0.jsx(As,h1({className:$2(d.root,b),style:h1({width:c,height:c},L,r),ownerState:g,ref:o,role:"progressbar"},R,h,{children:K0.jsx(ds,{className:d.svg,ownerState:g,viewBox:`${Y2/2} ${Y2/2} ${Y2} ${Y2}`,children:K0.jsx(us,{className:d.circle,style:m,ownerState:g,cx:Y2,cy:Y2,r:(Y2-s)/2,fill:"none",strokeWidth:s})})}))}),fs=qs,Ws=_3({createStyledComponent:g2("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ge({props:e,name:"MuiStack"})}),hs=Ws;function gs(e){return he("MuiFormControlLabel",e)}const Rs=Ye("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ft=Rs,ms=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Ls=e=>{const{classes:t,disabled:o,labelPlacement:M,error:b,required:p}=e,n={root:["root",o&&"disabled",`labelPlacement${H1(M)}`,b&&"error",p&&"required"],label:["label",o&&"disabled"],asterisk:["asterisk",b&&"error"]};return We(n,gs,t)},Ns=g2("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${ft.label}`]:t.label},t.root,t[`labelPlacement${H1(o.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>h1({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ft.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${ft.label}`]:{[`&.${ft.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),vs=g2("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ft.error}`]:{color:(e.vars||e).palette.error.main}})),Bs=q.forwardRef(function(t,o){var M,b;const p=ge({props:t,name:"MuiFormControlLabel"}),{className:n,componentsProps:c={},control:r,disabled:s,disableTypography:i,label:A,labelPlacement:h="end",required:g,slotProps:d={}}=p,m=Re(p,ms),L=kc(),R=(M=s??r.props.disabled)!=null?M:L==null?void 0:L.disabled,W=g??r.props.required,S={disabled:R,required:W};["checked","name","onChange","value","inputRef"].forEach(B=>{typeof r.props[B]>"u"&&typeof p[B]<"u"&&(S[B]=p[B])});const N=Fc({props:p,muiFormControl:L,states:["error"]}),x=h1({},p,{disabled:R,labelPlacement:h,required:W,error:N.error}),w=Ls(x),l=(b=d.typography)!=null?b:c.typography;let v=A;return v!=null&&v.type!==co&&!i&&(v=K0.jsx(co,h1({component:"span"},l,{className:$2(w.label,l==null?void 0:l.className),children:v}))),K0.jsxs(Ns,h1({className:$2(w.root,n),ownerState:x,ref:o},m,{children:[q.cloneElement(r,S),W?K0.jsxs(hs,{display:"block",children:[v,K0.jsxs(vs,{ownerState:x,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):v]}))}),ys=Bs;function Ts(e){return he("MuiFormGroup",e)}Ye("MuiFormGroup",["root","row","error"]);const Ss=["className","row"],xs=e=>{const{classes:t,row:o,error:M}=e;return We({root:["root",o&&"row",M&&"error"]},Ts,t)},Xs=g2("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.row&&t.row]}})(({ownerState:e})=>h1({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),ws=q.forwardRef(function(t,o){const M=ge({props:t,name:"MuiFormGroup"}),{className:b,row:p=!1}=M,n=Re(M,Ss),c=kc(),r=Fc({props:M,muiFormControl:c,states:["error"]}),s=h1({},M,{row:p,error:r.error}),i=xs(s);return K0.jsx(Xs,h1({className:$2(i.root,b),ownerState:s,ref:o},n))}),Cs=ws,Es=q.createContext(),hz=Es;function ks(e){return he("MuiGrid",e)}const _s=[0,1,2,3,4,5,6,7,8,9,10],Is=["column-reverse","column","row-reverse","row"],Ds=["nowrap","wrap-reverse","wrap"],Ot=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Lt=Ye("MuiGrid",["root","container","item","zeroMinWidth",..._s.map(e=>`spacing-xs-${e}`),...Is.map(e=>`direction-xs-${e}`),...Ds.map(e=>`wrap-xs-${e}`),...Ot.map(e=>`grid-xs-${e}`),...Ot.map(e=>`grid-sm-${e}`),...Ot.map(e=>`grid-md-${e}`),...Ot.map(e=>`grid-lg-${e}`),...Ot.map(e=>`grid-xl-${e}`)]),Ps=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Pe(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Hs({theme:e,ownerState:t}){let o;return e.breakpoints.keys.reduce((M,b)=>{let p={};if(t[b]&&(o=t[b]),!o)return M;if(o===!0)p={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(o==="auto")p={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const n=Oe({values:t.columns,breakpoints:e.breakpoints.values}),c=typeof n=="object"?n[b]:n;if(c==null)return M;const r=`${Math.round(o/c*1e8)/1e6}%`;let s={};if(t.container&&t.item&&t.columnSpacing!==0){const i=e.spacing(t.columnSpacing);if(i!=="0px"){const A=`calc(${r} + ${Pe(i)})`;s={flexBasis:A,maxWidth:A}}}p=h1({flexBasis:r,flexGrow:0,maxWidth:r},s)}return e.breakpoints.values[b]===0?Object.assign(M,p):M[e.breakpoints.up(b)]=p,M},{})}function js({theme:e,ownerState:t}){const o=Oe({values:t.direction,breakpoints:e.breakpoints.values});return Rt({theme:e},o,M=>{const b={flexDirection:M};return M.indexOf("column")===0&&(b[`& > .${Lt.item}`]={maxWidth:"none"}),b})}function Uc({breakpoints:e,values:t}){let o="";Object.keys(t).forEach(b=>{o===""&&t[b]!==0&&(o=b)});const M=Object.keys(e).sort((b,p)=>e[b]-e[p]);return M.slice(0,M.indexOf(o))}function Fs({theme:e,ownerState:t}){const{container:o,rowSpacing:M}=t;let b={};if(o&&M!==0){const p=Oe({values:M,breakpoints:e.breakpoints.values});let n;typeof p=="object"&&(n=Uc({breakpoints:e.breakpoints.values,values:p})),b=Rt({theme:e},p,(c,r)=>{var s;const i=e.spacing(c);return i!=="0px"?{marginTop:`-${Pe(i)}`,[`& > .${Lt.item}`]:{paddingTop:Pe(i)}}:(s=n)!=null&&s.includes(r)?{}:{marginTop:0,[`& > .${Lt.item}`]:{paddingTop:0}}})}return b}function Vs({theme:e,ownerState:t}){const{container:o,columnSpacing:M}=t;let b={};if(o&&M!==0){const p=Oe({values:M,breakpoints:e.breakpoints.values});let n;typeof p=="object"&&(n=Uc({breakpoints:e.breakpoints.values,values:p})),b=Rt({theme:e},p,(c,r)=>{var s;const i=e.spacing(c);return i!=="0px"?{width:`calc(100% + ${Pe(i)})`,marginLeft:`-${Pe(i)}`,[`& > .${Lt.item}`]:{paddingLeft:Pe(i)}}:(s=n)!=null&&s.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${Lt.item}`]:{paddingLeft:0}}})}return b}function $s(e,t,o={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[o[`spacing-xs-${String(e)}`]];const M=[];return t.forEach(b=>{const p=e[b];Number(p)>0&&M.push(o[`spacing-${b}-${String(p)}`])}),M}const Us=g2("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{container:M,direction:b,item:p,spacing:n,wrap:c,zeroMinWidth:r,breakpoints:s}=o;let i=[];M&&(i=$s(n,s,t));const A=[];return s.forEach(h=>{const g=o[h];g&&A.push(t[`grid-${h}-${String(g)}`])}),[t.root,M&&t.container,p&&t.item,r&&t.zeroMinWidth,...i,b!=="row"&&t[`direction-xs-${String(b)}`],c!=="wrap"&&t[`wrap-xs-${String(c)}`],...A]}})(({ownerState:e})=>h1({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),js,Fs,Vs,Hs);function Gs(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const o=[];return t.forEach(M=>{const b=e[M];if(Number(b)>0){const p=`spacing-${M}-${String(b)}`;o.push(p)}}),o}const Ks=e=>{const{classes:t,container:o,direction:M,item:b,spacing:p,wrap:n,zeroMinWidth:c,breakpoints:r}=e;let s=[];o&&(s=Gs(p,r));const i=[];r.forEach(h=>{const g=e[h];g&&i.push(`grid-${h}-${String(g)}`)});const A={root:["root",o&&"container",b&&"item",c&&"zeroMinWidth",...s,M!=="row"&&`direction-xs-${String(M)}`,n!=="wrap"&&`wrap-xs-${String(n)}`,...i]};return We(A,ks,t)},Qs=q.forwardRef(function(t,o){const M=ge({props:t,name:"MuiGrid"}),{breakpoints:b}=Ob(),p=Rc(M),{className:n,columns:c,columnSpacing:r,component:s="div",container:i=!1,direction:A="row",item:h=!1,rowSpacing:g,spacing:d=0,wrap:m="wrap",zeroMinWidth:L=!1}=p,R=Re(p,Ps),W=g||d,S=r||d,N=q.useContext(hz),x=i?c||12:N,w={},l=h1({},R);b.keys.forEach(C=>{R[C]!=null&&(w[C]=R[C],delete l[C])});const v=h1({},p,{columns:x,container:i,direction:A,item:h,rowSpacing:W,columnSpacing:S,wrap:m,zeroMinWidth:L,spacing:d},w,{breakpoints:b.keys}),B=Ks(v);return K0.jsx(hz.Provider,{value:x,children:K0.jsx(Us,h1({ownerState:v,className:$2(B.root,n),as:s,ref:o},l))})}),z2=Qs;const Js=e=>t=>{t({type:"SET_IS_EMBED",isEmbed:e})},Ys=e=>t=>{t({type:"SET_URL_LOCATION",urlLocation:e})},Zs=e=>t=>{t({type:"SET_URL_QUERY_PARAMS",urlQueryParams:e})},$e=e=>t=>{t({type:"SET_SPLIT_VIEW",isSplit:e})},Gt=["step","theme","time"],el=["label"],cM=["left","right"],Kt=["start","stop"],Qt=["isSubmit","isSplit","autoTheme","isEmbed"];function tl(){const e=q.useMemo(()=>window.matchMedia("(prefers-color-scheme: light)").matches,[]),t=_1(),o=w0(({urlQueryParams:v})=>v),M=w0(({start:v})=>v),b=w0(({stop:v})=>v),p=w0(({label:v})=>v),n=w0(({from:v})=>v),c=w0(({to:v})=>v),r=w0(({step:v})=>v),s=w0(({isSubmit:v})=>v),i=w0(({isEmbed:v})=>v),A=w0(({time:v})=>v),h=w0(({left:v})=>v),g=w0(({right:v})=>v),d=w0(({theme:v})=>v),m=w0(({autoTheme:v})=>v),L=w0(({isSplit:v})=>v),[R,W]=q.useState(e?"light":d);q.useEffect(()=>{W(d)},[d]);const S={start:M,step:r,stop:b,label:p,from:n,to:c,time:A,isSubmit:s,isEmbed:i,theme:d,autoTheme:m,left:h,right:g,isSplit:L},N={start:Wb,step:m3,stop:hb,label:gb,from:L3,to:N3,time:Hc,isSubmit:fO,isEmbed:Js,theme:Ec,left:c2,right:J1,isSplit:$e,autoTheme:WO},x=v=>(v==null?void 0:v.getTime())+"000000",w=(v,B)=>{try{let C=JSON.parse(v);return C&&C!==void 0?C:B}catch{return B}},{hash:l}=Ze();q.useEffect(()=>{const v=new URLSearchParams(l.replace(/#/,""));if(l.length>0){const B=o;for(let[C,k]of v.entries())B[C]=k;Object.keys(B).length>0&&(t(Zs({...o,startParams:B})),t(Ys(l)),Object.keys(B).forEach(C=>{if((Gt.includes(C)||el.includes(C))&&B[C]!=="")t(N[C](e2.sanitize(B[C])));else if(C==="theme")t(N[C](e2.sanitize(R)));else if(Kt.includes(C)&&B[C]!==""){const k=B[C]/1e6,_=new Date(o2(k).format("YYYY-MM-DDTHH:mm:ss.SSSZ"));t(N[C](_))}else if(Qt.includes(C))try{const k=w(B[C],!1);t(N[C](k))}catch(k){console.log(k)}else if(cM.includes(C))try{const k=w(decodeURIComponent(B[C]),[]);(k==null?void 0:k.length)>0&&t(N[C](k))}catch(k){console.log(k)}}))}else Gt.concat(Kt).concat(Qt).concat(cM).forEach(C=>{var k,_;if(Gt.includes(C))v.set(C,e2.sanitize((k=S[C])==null?void 0:k.toString()));else if(C==="theme")v.set(C,e2.sanitize(R.toString()));else if(Kt.includes(C)){const I=((_=S[C])==null?void 0:_.getTime())*1e6;v.set(C,e2.sanitize(I.toString()))}else if(Qt.includes(C))try{v.set(C,w(S[C],!1))}catch(I){console.log(I)}else if(cM.includes(C))try{const I=JSON.stringify(S[C]);v.set(C,I)}catch(I){console.log(I)}}),window.location.hash=`/search/#${v}`},[]),q.useEffect(()=>{if(l.length>0){const v=new URLSearchParams(l.replace(/#/,""));let B={};for(let[C,k]of v.entries())B[C]=k;Object.keys(S).forEach(C=>{if(Gt.includes(C)&&B[C]!==S[C]){const k=e2.sanitize(S[C].toString().trim());v.set(C,k)}else if(Kt.includes(C)&&B[C]!==x(S[C])){const k=x(S[C]);v.set(C,e2.sanitize(k))}else if(Qt.includes(C)&&B[C]!==S[C])try{v.set(C,w(S[C],!1))}catch(k){console.error(k)}else if(C==="left"){const k=JSON.stringify(h);v.set("left",k)}else if(C==="right"){const k=JSON.stringify(g);v.set("right",k)}}),window.location.hash=`/search/#${v}`}},[S])}function ol(e,t,o){const{queryUrl:M,encodedQuery:b,limit:p,parsedTime:n,queryStep:c,direction:r,time:s}=t;return e==="metrics"||e==="logs"?o==="instant"?`${M}/query?query=${b}&limit=${p}&time=${s}&direction=${r}`:`${M}/query_range?query=${b}&limit=${p}${n}${c}&direction=${r}`:e==="flux"?`${M}`:e==="traces"?o==="trace-search"?`${M}${n}`:`${M}`:""}function Ml(e,t,o){return ol(e,o,t)}function bl(e,t){var M;const o=((M=Object.keys(t))==null?void 0:M.length)>0?t:void 0;return e==="flux"?{method:"POST",headers:o||{Accept:"application/csv","Content-Type":"application/vnd.flux"}}:{method:"GET",headers:o||{"Content-Type":"application/json"}}}const pl=(e,t)=>Array.from({length:Math.ceil(e.length/t)},(o,M)=>e.slice(M*t,M*t+t)),rM=(...e)=>e.filter(t=>t).join(" "),zl=e=>{const t=_M(oO(e)),o=IM(MO(e)),M=[];for(let b=t;ke(b,o);)M.push(b),b=kM(b,1);return M},nl=({dateStart:e},t)=>e&&Ve(t,e),cl=({dateEnd:e},t)=>e&&Ve(t,e),rl=({dateStart:e,dateEnd:t},o)=>e&&t&&(cb(o,{start:e,end:t})||Ve(o,e)||Ve(o,t)),il=({dateStart:e,dateEnd:t})=>e&&t?Ve(e,t):!1,mo=e=>Rb(new Date).find(t=>t.label===e),gz=(e,t)=>{if(e instanceof Date){const o=bO(e);if(q2(o))return o}if(e instanceof String){const o=pO(e.toString());if(q2(o))return o}else return t},al=(e,t)=>{var M,b;const o=Math.floor(t/2);return(b=(M=Array(t))==null?void 0:M.fill(0))==null?void 0:b.map((p,n)=>(e==null?void 0:e.getFullYear())-o+n)},Rz=(e,t)=>{const{dateStart:o,dateEnd:M,label:b}=e,{dateStart:p,dateEnd:n,label:c}=t;return b===c?!0:o&&p&&M&&n?pz(o,p)&&pz(M,n):!1},Ol=(e,t,o)=>{let{dateStart:M,dateEnd:b}=e;if(M&&b){const p=Wc([M,t]),n=hc([b,o]);return[p,rb(p,n)?qt(p,1):n]}else return[M,b]},Rb=e=>[{label:"Last 5 minutes",dateStart:pM(e,-5),dateEnd:e},{label:"Last 15 minutes",dateStart:pM(e,-15),dateEnd:e},{label:"Last 30 minutes",dateStart:pM(e,-30),dateEnd:e},{label:"Last 1 hour",dateStart:it(e,-1),dateEnd:e},{label:"Last 3 hours",dateStart:it(e,-3),dateEnd:e},{label:"Last 6 hours",dateStart:it(e,-6),dateEnd:e},{label:"Last 12 hours",dateStart:it(e,-12),dateEnd:e},{label:"Last 24 hours",dateStart:it(e,-24),dateEnd:e},{label:"Today",dateStart:Mz(e),dateEnd:bz(e)},{label:"Yesterday",dateStart:Mz(kM(e,-1)),dateEnd:bz(kM(e,-1))},{label:"This Week",dateStart:_M(e),dateEnd:IM(e)},{label:"Last Week",dateStart:_M(zM(e,-1)),dateEnd:IM(zM(e,-1))},{label:"Last 7 Days",dateStart:zM(e,-1),dateEnd:e}];Rb(new Date);function sl(e){return e/1e6}function te(e){return new Date(e).getTime()+"000000"}function De(e){let t=new Date(e);return Math.round(t.getTime()/1e3)}const ll=e=>e||parseInt(new Date().getTime()+"000000"),Al=(e,t)=>{let o=mo(e);const{dateStart:M,dateEnd:b}=o;let p,n;return t==="metrics"?(p=De(M),n=De(b)):(p=parseInt(te(M)),n=parseInt(te(b))),{pStart:p,pStop:n,dateStart:M,dateEnd:b}};function mb(e,t,o){const{time:M,from:b,to:p}=y1.getState(),n=y1.getState()[o],c=n==null?void 0:n.find(N=>N.id===t),r=c.start,s=c.stop,i=ll(M),A=c.label,h=r,g=s;let d=0,m=0;if(mo(A)){const{pStart:N,pStop:x}=Al(A,e);e==="traces"?(d=Math.round(N/1e9),m=Math.round(x/1e9)):(d=N,m=x)}else e==="metrics"?(d=De(h),m=De(g)):e==="logs"?(d=parseInt(te(h)),m=parseInt(te(g))):e==="traces"?(d=De(h),m=De(g)):(d=parseInt(te(h)),m=parseInt(te(g)));const L="&start="+(b||d)+"&end="+(p||m),R=parseInt(b||d);return{tDiff:(parseInt(p||m)-R)/(e==="metrics"?1:1e6),time:i,parsedTime:L}}function dl(e,t,o,M,b,p="",n,c,r,s,i){const A=y1.getState(),{isSplit:h}=A,g=h?2:1,d=window.innerWidth,{parsedTime:m,time:L}=mb(e,s,i),R=p;let W=0;r>0?W=r:W=d/Math.round(d/M*10/g),W===0&&(W=1);const S=`&step=${W}`,N=`${encodeURIComponent(t)}`;let x="";switch(e){case"logs":x=`${R}/loki/api/v1`;break;case"metrics":x=`${R}/api/v1`;break;case"flux":x=`${R}/api/v2/query`;break;case"traces":x=n==="trace-search"?`${c}`:`${R}/api/traces/${t}/json`;break;default:x=`${R}/loki/api/v1`}return{queryUrl:x,encodedQuery:N,parsedTime:m,time:L,queryStep:S,limit:o,direction:b,queryType:n}}async function HM(e){e(Ae(!0))}function Gc(e){let t=[];try{for(let o of e){let M=Object.keys(o.metric);for(let b in M)t.includes(M[b])||t.push(M[b])}}catch(o){console.log(o)}return t}function jM(e){let t=[];try{for(let o of e){let M=Object.keys(o);for(let b of M)t.includes(b)||t.push(b)}}catch(o){console.log(o)}return t}function Mo(e,t="logs"){if(t==="flux"||t==="traces")try{return e}catch(o){console.log(o)}else{const o=Gc(e);try{let M=[];const b=e.length,p=o.length;for(let c=0;cc.time)}catch(M){console.log(M)}}}const ul={locale:"en",long:{year:{previous:"last year",current:"this year",next:"next year",past:{one:"{0} year ago",other:"{0} years ago"},future:{one:"in {0} year",other:"in {0} years"}},quarter:{previous:"last quarter",current:"this quarter",next:"next quarter",past:{one:"{0} quarter ago",other:"{0} quarters ago"},future:{one:"in {0} quarter",other:"in {0} quarters"}},month:{previous:"last month",current:"this month",next:"next month",past:{one:"{0} month ago",other:"{0} months ago"},future:{one:"in {0} month",other:"in {0} months"}},week:{previous:"last week",current:"this week",next:"next week",past:{one:"{0} week ago",other:"{0} weeks ago"},future:{one:"in {0} week",other:"in {0} weeks"}},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:{one:"{0} hour ago",other:"{0} hours ago"},future:{one:"in {0} hour",other:"in {0} hours"}},minute:{current:"this minute",past:{one:"{0} minute ago",other:"{0} minutes ago"},future:{one:"in {0} minute",other:"in {0} minutes"}},second:{current:"now",past:{one:"{0} second ago",other:"{0} seconds ago"},future:{one:"in {0} second",other:"in {0} seconds"}}},short:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0} yr. ago",future:"in {0} yr."},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},future:{one:"in {0} qtr.",other:"in {0} qtrs."}},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0} mo. ago",future:"in {0} mo."},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0} wk. ago",future:"in {0} wk."},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:"{0} hr. ago",future:"in {0} hr."},minute:{current:"this minute",past:"{0} min. ago",future:"in {0} min."},second:{current:"now",past:"{0} sec. ago",future:"in {0} sec."}},narrow:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0}y ago",future:"in {0}y"},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:"{0}q ago",future:"in {0}q"},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0}mo ago",future:"in {0}mo"},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0}w ago",future:"in {0}w"},day:{previous:"yesterday",current:"today",next:"tomorrow",past:"{0}d ago",future:"in {0}d"},hour:{current:"this hour",past:"{0}h ago",future:"in {0}h"},minute:{current:"this minute",past:"{0}m ago",future:"in {0}m"},second:{current:"now",past:"{0}s ago",future:"in {0}s"}},now:{now:{current:"now",future:"in a moment",past:"just now"}},mini:{year:"{0}yr",month:"{0}mo",week:"{0}wk",day:"{0}d",hour:"{0}h",minute:"{0}m",second:"{0}s",now:"now"},"short-time":{year:"{0} yr.",month:"{0} mo.",week:"{0} wk.",day:{one:"{0} day",other:"{0} days"},hour:"{0} hr.",minute:"{0} min.",second:"{0} sec."},"long-time":{year:{one:"{0} year",other:"{0} years"},month:{one:"{0} month",other:"{0} months"},week:{one:"{0} week",other:"{0} weeks"},day:{one:"{0} day",other:"{0} days"},hour:{one:"{0} hour",other:"{0} hours"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} second",other:"{0} seconds"}}},ql=()=>y1.getState().theme==="light"?Ac:dc,fl=e=>i0("border:none;background:none;color:",e.primaryLight,";cursor:pointer;&:hover{text-decoration:underline;}","");gc.addDefaultLocale(ul);function Wl(e){return o2(parseInt(e.getValue()+"000")).format("YYYY-MM-DDTHH:mm:ss.SSZ")}function hl(e){return e.getValue()+" ms"}function gl(e){return new gc("en-US").format(e.getValue()/1e6)}function Rl(e,t){const o=y1.dispatch,M=y1.getState()[e.panel],b=y1.getState().right,p=window.innerWidth<=1013,n=M.find(s=>s.id===e.id);e.panel==="left"&&!p&&o($e(!0));let c=JSON.parse(JSON.stringify(b));const r=JSON.parse(JSON.stringify(n));try{const s={...c[0],id:c[0].id,idRef:"Trace "+t,panel:"right",queryType:"range",dataSourceType:"traces",dataSourceId:e.dataSourceId,dataSourceURL:e.url,expr:t,limit:100,step:100,tableView:!1,chartView:!1,isShowTs:!1,isBuilder:!1,isLogsVolume:!1,browserOpen:!1,open:!0,labels:[],values:[],direction:"backwards"};o(J1([s])),o(w2("traces",t,"range",r.limit||100,"right",s.id,"backwards",e.dataSourceId,e.url))}catch(s){console.log(s)}}function ml(e){return o2(e.getValue()).format("YYYY-MM-DDTHH:mm:ss.SSZ")}function Ll(e,t="logs",o,M={}){var n,c;const b=(c=(n=y1.getState())==null?void 0:n[M.panel])==null?void 0:c.find(r=>r.id===M.id);b&&(M.dataSourceId=b.dataSourceId,M.url=b.dataSourceURL);const p=ql();return e.length>0&&t==="traces"?e==null?void 0:e.map(r=>r.accessorKey==="durationMs"?{header:"Duration Ms",accessorKey:r.accessorKey,cell:s=>hl(s)}:r.accessorKey==="startTimeUnixNano"?{header:"Start Time",accessorKey:r.accessorKey,cell:s=>gl(s)}:r.accessorKey==="traceID"||r.accessorKey==="traceId"?{header:"Trace Id",accessorKey:r.accessorKey,cell:s=>O("button",{onClick:i=>Rl(M,s.getValue()),className:D0(fl(p)),children:s.getValue()})}:r.accessorKey==="rootServiceName"?{header:"Service Name",accessorKey:r.accessorKey,cell:s=>s.getValue()}:r.accessorKey==="rootTraceName"?{header:"Trace Name",accessorKey:r.accessorKey,cell:s=>s.getValue()}:r):e.length>0&&t==="flux"?e==null?void 0:e.map(r=>r.accessorKey===o||r.accessorKey==="_time"?{header:"Time",accessorKey:r.accessorKey,cell:s=>ml(s)}:r):e.length>0?[{header:"Time",accessorKey:"time",cell:r=>Wl(r)},...e,{header:"Value",accessorKey:"value"}]:[]}function bo(e,t="logs",o,M={}){const b=e==null?void 0:e.map(n=>({header:n,accessorKey:n,id:n,cell:c=>c.getValue()}));return Ll(b,t,o,M)}function iM(e){return e==="left"?{state:"leftDataView",action:Le}:{state:"rightDataView",action:me}}function Kc(e){var i,A,h,g,d,m;const{result:t,debugMode:o,dispatch:M,panel:b,id:p,type:n,dsType:c,raw:r}=e;let s={panel:b,id:p,type:n};if(n==="traces")try{const L=jM(t),R=W=>{const S=W[0],N=Object.entries(S);if(N){const x=N.find(([w,l])=>H2(l));return(x==null?void 0:x[0])||null}};if(L.length>0){const W=R(t),N=bo(L,n,W,{panel:b,id:p,type:n}),x=Mo(t,n),w={columnsData:N,dataRows:x,panel:b,id:p};if((N==null?void 0:N.length)>0&&(x==null?void 0:x.length)>0){const l={id:p,type:"vector",raw:r,dsType:c,data:{tableData:w},tableData:w,total:((i=w==null?void 0:w.dataRows)==null?void 0:i.length)||0},v=iM(b),{action:B,state:C}=v,k=(A=y1.getState())==null?void 0:A[C];if(k.some(_=>_.id===l.id)){let _=[];M(B([])),_=[...k.filter(Q=>Q.id!==l.id),{...l}],M(B(_))}else{let _=[...k,l];M(B(_))}}}}catch(L){console.log(L)}else if(n==="flux")try{const L=jM(t),R=W=>{const S=W[0],N=Object.entries(S);if(N){const x=N.find(([w,l])=>H2(l));return(x==null?void 0:x[0])||null}};if(L.length>0){const W=R(t),S=bo(L,n,W,s),N=Mo(t,n),x={columnsData:S,dataRows:N,panel:b,id:p};if((S==null?void 0:S.length)>0&&(N==null?void 0:N.length)>0){const w={id:p,type:"vector",data:{tableData:x},raw:r,dsType:c,tableData:x,total:((h=x==null?void 0:x.dataRows)==null?void 0:h.length)||0},l=iM(b),{action:v,state:B}=l,C=(g=y1.getState())==null?void 0:g[B];if(C.some(k=>k.id===w.id)){let k=[];M(v([])),k=[...C.filter(I=>I.id!==w.id),{...w}],M(v(k))}else{let k=[...C,w];M(v(k))}}}}catch(L){console.log(L)}else try{const L=Gc(t);if(L.length>0){const R=bo(L,n,null,s),W=Mo(t),S={columnsData:R,dataRows:W,panel:b,id:p};if(R.length>0&&W.length>0){const N={id:p,type:"vector",data:{tableData:S},raw:r,dsType:c,tableData:S||{},total:((d=S==null?void 0:S.dataRows)==null?void 0:d.length)||0},x=iM(b),{action:w,state:l}=x,v=(m=y1.getState())==null?void 0:m[l];if(v.some(B=>B.id===N.id)){let B=[];M(w([])),B=[...v.filter(k=>k.id!==N.id),{...N}],M(w(B))}else{let B=[...v,N];M(w(B))}}}}catch(L){o&&console.log("🚧 getData / getting an error from rendering vector type streams"),console.log(L)}}function Qc(e){return(e==null?void 0:e.map(t=>({...t,id:U2()})))||[]}function Nl(e){return o2(e.getValue()*1e3).format("YYYY-MM-DDTHH:mm:ss.SSZ")}function vl(e){return e.map(({metric:t,values:o})=>({metric:JSON.stringify(t),rows:o.map(([M,b])=>({time:M,metric:JSON.stringify(t),value:b})),get rowsLength(){var M;return(M=this.rows)==null?void 0:M.length},get title(){return`'${this.metric}' (${this.rowsLength})`}}))}function Bl(e){const t=[{header:"Time",accessorKey:"time",cell:p=>Nl(p)},{header:"Metric",accessorKey:"metric"},{header:"Value",accessorKey:"value"}],o=vl(e);let M=[];for(let p of o)M.push(p.rows);const b=D1.sortBy(M.flat(),p=>p.time);return{columnsData:t,dataRows:b,total:b.length}}function yl(e){return e==="left"?{state:"leftDataView",action:Le}:{state:"rightDataView",action:me}}function mz(e){var A;const{result:t,debugMode:o,dispatch:M,panel:b,id:p,raw:n,dsType:c,isLogsVolume:r}=e,s=Bl(t),i=yl(b);try{const h=Qc(t),g={id:p,type:"matrix",tableData:s,data:h,dsType:c,raw:n,total:(h==null?void 0:h.length)||0},{action:d,state:m}=i,L=(A=y1.getState())==null?void 0:A[m];if(L.some(R=>R.id===g.id)){let R=[];if(r){R=[...L];let W=R.map(S=>S.id===p?{...S,logsVolumeData:h,total:h.length}:S);M(d([])),M(d(W))}else M(d([])),R=[...L.filter(S=>S.id!==g.id),{...g}],M(d(R))}else{let R=[...L,g];M(d(R))}}catch(h){o&&console.log("🚧 getData / getting an error from rendering matrix type streams"),console.log(h)}}const Tl=e=>t=>{t({type:"SET_LOGS",logs:e})};function Sl(e){return o2(parseInt(e.getValue())/1e6).format("YYYY-MM-DDTHH:mm:ss.SSZ")}function xl(e){return e==null?void 0:e.map(({stream:t,values:o})=>({stream:`${JSON.stringify(t)}`,rows:o==null?void 0:o.map(([M,b])=>({time:M,stream:JSON.stringify(t),log:b})),get rowsLength(){var M;return((M=this==null?void 0:this.rows)==null?void 0:M.length)||0}}))}function Lz(e){return O("span",{title:e.getValue(),children:e.getValue()})}function Xl(e){const t=[{id:"time",header:"Time",accessorKey:"time",cell:p=>Sl(p)},{id:"stream",header:"Stream",accessorKey:"stream",cell:p=>Lz(p)},{id:"log",accessorKey:"log",header:"Log",cell:p=>Lz(p)}],o=xl(e),M=(o==null?void 0:o.length)||0;let b=[];if(M>0)for(let p of o)b.push(p.rows);return{columnsData:t,dataRows:D1.sortBy(b.flat(),p=>p.time),length:M}}function wl(e){return e==="left"?{state:"leftDataView",action:Le}:{state:"rightDataView",action:me}}function Nz(e){var W,S;const{result:t,raw:o,time:M,debugMode:b,queryType:p,panel:n,id:c,dispatch:r,dsType:s,direction:i,isLogsVolume:A}=e,h=Ul(t,i),g=wl(n),d=Xl(t),m=Jc(h,i);function L(N){return[].concat.apply([],N).filter(function(x,w,l){return l.indexOf(x)===w})}let R={id:c,type:"stream",tableData:{},data:[{}],raw:"[]",labels:[],total:0,isLogsVolume:A,dsType:s};if(m)try{Fl(r(Tl(m||[]))).then(()=>{m.length===0&&(b&&console.log("🚧 getData / getting no messages sorted"),r(Ae(!0))),r(Ae(!1))});const N=Array.from(new Set(m==null?void 0:m.map(B=>Object.keys(B.tags)))),x=L(N);R={id:c,type:"stream",dsType:s,tableData:d,data:m,isLogsVolume:A,raw:o,labels:[...x],total:(m==null?void 0:m.length)||0};const{action:w,state:l}=g,v=(W=y1.getState())==null?void 0:W[l];if(v.some(B=>B.id===R.id)){let B=[];if(A){B=[...v];let C=B.map(k=>{var _;if(k.id===c){let I=[];return k!=null&&k.logsVolumeData&&((_=k.logsVolumeData)==null?void 0:_.length)>0&&(I=[...k.logsVolumeData]),{...{...R},logsVolumeData:I}}else return k});r(w([])),r(w(C))}else{let C=[];r(w([])),C=[...v.filter(_=>_.id!==R.id),{...R}],r(w(C))}}else{let B=[...v,R];r(w(B))}p==="instant"&&r(Hc(M))}catch(N){console.log(N)}else{const{action:N,state:x}=g,w=(S=y1.getState())==null?void 0:S[x];if(w.some(l=>l.id===R.id)){let l=[];r(N([])),l=[...(w==null?void 0:w.filter(B=>B.id!==R.id))||[],{...R}],r(N(l))}else{let l=[...w,R];r(N(l))}}}function Cl(e){return e==="left"?{state:"leftDataView",action:Le}:{state:"rightDataView",action:me}}async function El(e){var i,A;const{result:t,debugMode:o,dispatch:M,panel:b,id:p,type:n,dsType:c,queryType:r,raw:s}=e;if(r==="trace-search")await Kc(e);else try{const h={id:p,type:n,dsType:c,tableData:{},data:t,raw:s,labels:[],open:!0,total:(i=t==null?void 0:t.resourceSpans)==null?void 0:i.length},g=Cl(b),{action:d,state:m}=g,L=(A=y1.getState())==null?void 0:A[m];if(L.some(R=>R.id===h.id)){let R=[];M(d([])),R=[...L.filter(S=>S.id!==h.id),{...h}],M(d(R))}else{let R=[...L,h];M(d(R))}}catch(h){o&&console.log(" 🚧 getData / getting an error from rendering Traces type streams",h),console.log(h)}}function kl(e){return o2(e.getValue()).format("YYYY-MM-DDTHH:mm:ss.SSZ")}function _l(e){return[{metric:{__name__:"Flux"},values:e.map(o=>Object.values(o).map((M,b)=>isNaN(+M)?null:(M instanceof Date?M.getTime()/1e3:M)+(b===0?0:"")).filter(M=>!!M))}]}function Il(e){return e.map(({metric:t,values:o})=>({metric:JSON.stringify(t),rows:o.map(([M,b])=>({time:M,metric:JSON.stringify(t),value:b})),get rowsLength(){var M;return(M=this.rows)==null?void 0:M.length},get title(){return`'${this.metric}' (${this.rowsLength})`}}))}function vz(e){return O("span",{title:e.getValue(),children:e.getValue()})}function Dl(e){const t=[{accessorKey:"time",header:()=>O("span",{children:"Time"}),cell:p=>kl(p)},{header:"Metric",cell:p=>vz(p),accessorKey:"metric"},{header:"Value",accessorKey:"value",cell:p=>vz(p)}],o=Il(e);let M=[];for(let p of o)M.push(p.rows);const b=D1.sortBy(M.flat(),p=>p.time);return{columnsData:t,dataRows:b,total:b.length}}function Pl(e){return e==="left"?{state:"leftDataView",action:Le}:{state:"rightDataView",action:me}}function Hl(e){const{result:t,panel:o,id:M,type:b}=e,p={panel:o,id:M,type:b},n=jM(e.result),r=(h=>{const g=h[0],d=Object.entries(g);if(d){const m=d.find(([L,R])=>H2(R));return(m==null?void 0:m[0])||null}})(t),s=bo(n,b,r,p),i=Mo(t,b),A={columnsData:s,dataRows:i,panel:o,id:M};if((s==null?void 0:s.length)>0&&(i==null?void 0:i.length)>0)return A}function jl(e){var i;let{result:t,debugMode:o,dispatch:M,panel:b,id:p,raw:n,dsType:c}=e;t=_l(t);const r=Dl(t),s=Pl(b);try{const A=Qc(t),h=Hl(e),d={id:p,type:"vector",tableData:r,data:{chartData:A,tableData:h},dsType:c,raw:n,total:(A==null?void 0:A.length)||0},{action:m,state:L}=s,R=(i=y1.getState())==null?void 0:i[L];if(R.some(W=>W.id===d.id)){let W=[];M(m([])),W=[...R.filter(N=>N.id!==d.id),{...d}],M(m(W))}else{let W=[...R,d];M(m(W))}}catch(A){o&&console.log("🚧 getData / getting an error from rendering Flux type streams"),console.error(A)}}const{debugMode:Lb}=y1.getState();async function Fl(e){return await e}function Jc(e,t){return t==="forward"?Vl(e):$l(e)}function Vl(e){const t=performance.now(),o=e==null?void 0:e.sort((b,p)=>b.timestamp-p.timestamp),M=performance.now()-t;return Lb&&console.log("🚧 getData / sorting logs took: ",M," ms"),o}function $l(e){const t=performance.now(),o=e==null?void 0:e.sort((b,p)=>p.timestamp-b.timestamp),M=performance.now()-t;return Lb&&console.log("🚧 getData / sorting logs took: ",M," ms"),o}function Ul(e,t="backwards"){const o=performance.now();let M=[];e==null||e.forEach(p=>{p.values.forEach(([n,c],r)=>{M.push({type:"stream",timestamp:sl(n),text:c,tags:p.stream||{},isShowTs:!0,isBuilder:!1,showLabels:!1,id:U2()})})});const b=performance.now()-o;return Lb&&console.log("🚧 getData / mapping logs took: ",b," ms"),Jc(M,t)}async function we(e){const{type:t}=e;switch(t){case"streams":await Nz(e);break;case"vector":await Kc(e);break;case"matrix":await mz(e);break;case"scalar":await mz(e);break;case"flux":await jl(e);break;case"traces":await El(e);break;default:await Nz(e)}}var Yc={exports:{}};/* @license Papa Parse v5.4.1 https://github.com/mholt/PapaParse diff --git a/view/assets/PluginManagerFactory-a0a578f6.js b/view/assets/PluginManagerFactory-e4944f23.js similarity index 97% rename from view/assets/PluginManagerFactory-a0a578f6.js rename to view/assets/PluginManagerFactory-e4944f23.js index e383cb5c..473daf96 100644 --- a/view/assets/PluginManagerFactory-a0a578f6.js +++ b/view/assets/PluginManagerFactory-e4944f23.js @@ -1 +1 @@ -import{r as y}from"./react-432945ee.js";import{G as x}from"./index-cb8d8b59.js";const A=s=>t=>{t({type:"SET_PLUGINS",plugins:s})},b={Main:{parent:"",children:["Status Bar","Panel"]},"Status Bar":{parent:"Main",children:[""]},Panel:{parent:"Main",children:["Queries","Data Views"]},Queries:{parent:"Panel",children:["Stats","Data Views"]},Stats:{parent:"Queries",children:[""]},"Data Views":{parent:"Panel",children:["Data View Header","View"]},"Query Item":{parent:"Queries",children:[]}};function I(){function s(){try{return JSON.parse(localStorage.getItem("plugins")||"{}")}catch{return{}}}function t(i,o){var l;let a=s();a[i]||(a[i]=[]),(l=a[i])!=null&&l.some(e=>e.name===o.name)||(a[i].push(o),localStorage.setItem("plugins",JSON.stringify(a)))}function u(i){let o=s();return o[i]?o[i]:[]}function m(i,o){var l,e;let a=s();if(a[i]&&Array.isArray(a[i])&&((l=a[i])!=null&&l.some(r=>r.name===o))){let r=(e=a[i])==null?void 0:e.filter(n=>n.name!==o);a[i]=r,localStorage.setItem("plugins",JSON.stringify(a))}}function c(i,o,a){var r;const l=s(),e=(r=l[i])==null?void 0:r.findIndex(n=>(n==null?void 0:n.name)===o);if(e>=0){const n={...l,[i]:l[i].map((g,f)=>f===e?{...g,active:a}:g)};localStorage.setItem("plugins",JSON.stringify(n))}}function P(i,o,a){var r;const l=s(),e=(r=l[i])==null?void 0:r.findIndex(n=>(n==null?void 0:n.name)===o);if(e>=0){const n={...l,[i]:l[i].map((g,f)=>f===e?{...g,visible:a}:g)};localStorage.setItem("plugins",JSON.stringify(n))}}return{getAll:s,getPluginsFromLocation:u,setPlugin:t,removePlugin:m,togglePlugin:c,togglePluginVisibility:P}}function v(){const s=I(),[t]=y.useState(s.getAll());return y.useMemo(()=>{var m;return((m=Object.keys(t))==null?void 0:m.length)>0?Object.entries(t):[]},[t])}function w(s){const t=v(),u=y.useMemo(()=>{if(t!=null&&t.some(c=>c[0]===s)){let c=t==null?void 0:t.filter(([P])=>P===s)[0][1];return c==null?void 0:c.filter(P=>P.active&&P.visible)}return[]},[t]),m=y.useMemo(()=>(u==null?void 0:u.length)>0,u);return{activeTabs:u,isActiveTabs:m}}function O(s){const t={},u=I();let m=u.getAll();function c(e){var r;t[e.section]||(t[e.section]=[]),t[e.section].push(e),x.dispatch(A(t)),(r=m[e.section])!=null&&r.some(n=>n.name===e.name)||u.setPlugin(e.section,e)}function P(e){for(let r in s)r!=="Main"&&c(e)}function i(e){var f,d;let r=u.getPluginsFromLocation(e);const n=(f=t==null?void 0:t[e])==null?void 0:f.filter((h,S)=>{var p;return((p=t[e])==null?void 0:p.findIndex(M=>M.name===h.name))===S});let g=[];if((n==null?void 0:n.length)>0)for(let h of r){let S=(d=n==null?void 0:n.find)==null?void 0:d.call(n,p=>p.name===h.name);h.active&&g.push(S)}return g||[]}function o(e,r){var f;const n=(f=t==null?void 0:t[e])==null?void 0:f.filter((d,h)=>{var S;return((S=t[e])==null?void 0:S.findIndex(p=>p.name===d.name))===h});return(n==null?void 0:n.find(d=>(d==null?void 0:d.name)===r))||{}}function a(e,r,n){u.togglePlugin(e,r,n)}function l(){const e=[];for(let r in s)r!=="Main"&&e.push(...i(r));return e}return{registerPlugin:c,registerPluginGlobally:P,getAllPlugins:l,getPlugins:i,getPlugin:o,togglePlugin:a}}const L=O(b);function J(s){s.forEach(t=>{t.visible&&L.registerPlugin(t)})}export{I as L,L as P,J as i,w as u}; +import{r as y}from"./react-432945ee.js";import{G as x}from"./index-bc3ec90a.js";const A=s=>t=>{t({type:"SET_PLUGINS",plugins:s})},b={Main:{parent:"",children:["Status Bar","Panel"]},"Status Bar":{parent:"Main",children:[""]},Panel:{parent:"Main",children:["Queries","Data Views"]},Queries:{parent:"Panel",children:["Stats","Data Views"]},Stats:{parent:"Queries",children:[""]},"Data Views":{parent:"Panel",children:["Data View Header","View"]},"Query Item":{parent:"Queries",children:[]}};function I(){function s(){try{return JSON.parse(localStorage.getItem("plugins")||"{}")}catch{return{}}}function t(i,o){var l;let a=s();a[i]||(a[i]=[]),(l=a[i])!=null&&l.some(e=>e.name===o.name)||(a[i].push(o),localStorage.setItem("plugins",JSON.stringify(a)))}function u(i){let o=s();return o[i]?o[i]:[]}function m(i,o){var l,e;let a=s();if(a[i]&&Array.isArray(a[i])&&((l=a[i])!=null&&l.some(r=>r.name===o))){let r=(e=a[i])==null?void 0:e.filter(n=>n.name!==o);a[i]=r,localStorage.setItem("plugins",JSON.stringify(a))}}function c(i,o,a){var r;const l=s(),e=(r=l[i])==null?void 0:r.findIndex(n=>(n==null?void 0:n.name)===o);if(e>=0){const n={...l,[i]:l[i].map((g,f)=>f===e?{...g,active:a}:g)};localStorage.setItem("plugins",JSON.stringify(n))}}function P(i,o,a){var r;const l=s(),e=(r=l[i])==null?void 0:r.findIndex(n=>(n==null?void 0:n.name)===o);if(e>=0){const n={...l,[i]:l[i].map((g,f)=>f===e?{...g,visible:a}:g)};localStorage.setItem("plugins",JSON.stringify(n))}}return{getAll:s,getPluginsFromLocation:u,setPlugin:t,removePlugin:m,togglePlugin:c,togglePluginVisibility:P}}function v(){const s=I(),[t]=y.useState(s.getAll());return y.useMemo(()=>{var m;return((m=Object.keys(t))==null?void 0:m.length)>0?Object.entries(t):[]},[t])}function w(s){const t=v(),u=y.useMemo(()=>{if(t!=null&&t.some(c=>c[0]===s)){let c=t==null?void 0:t.filter(([P])=>P===s)[0][1];return c==null?void 0:c.filter(P=>P.active&&P.visible)}return[]},[t]),m=y.useMemo(()=>(u==null?void 0:u.length)>0,u);return{activeTabs:u,isActiveTabs:m}}function O(s){const t={},u=I();let m=u.getAll();function c(e){var r;t[e.section]||(t[e.section]=[]),t[e.section].push(e),x.dispatch(A(t)),(r=m[e.section])!=null&&r.some(n=>n.name===e.name)||u.setPlugin(e.section,e)}function P(e){for(let r in s)r!=="Main"&&c(e)}function i(e){var f,d;let r=u.getPluginsFromLocation(e);const n=(f=t==null?void 0:t[e])==null?void 0:f.filter((h,S)=>{var p;return((p=t[e])==null?void 0:p.findIndex(M=>M.name===h.name))===S});let g=[];if((n==null?void 0:n.length)>0)for(let h of r){let S=(d=n==null?void 0:n.find)==null?void 0:d.call(n,p=>p.name===h.name);h.active&&g.push(S)}return g||[]}function o(e,r){var f;const n=(f=t==null?void 0:t[e])==null?void 0:f.filter((d,h)=>{var S;return((S=t[e])==null?void 0:S.findIndex(p=>p.name===d.name))===h});return(n==null?void 0:n.find(d=>(d==null?void 0:d.name)===r))||{}}function a(e,r,n){u.togglePlugin(e,r,n)}function l(){const e=[];for(let r in s)r!=="Main"&&e.push(...i(r));return e}return{registerPlugin:c,registerPluginGlobally:P,getAllPlugins:l,getPlugins:i,getPlugin:o,togglePlugin:a}}const L=O(b);function J(s){s.forEach(t=>{t.visible&&L.registerPlugin(t)})}export{I as L,L as P,J as i,w as u}; diff --git a/view/assets/Plugins-6d142b76.js b/view/assets/Plugins-31974fd5.js similarity index 88% rename from view/assets/Plugins-6d142b76.js rename to view/assets/Plugins-31974fd5.js index 6644bb9b..943dd0b7 100644 --- a/view/assets/Plugins-6d142b76.js +++ b/view/assets/Plugins-31974fd5.js @@ -1 +1 @@ -import{h as p,d as s,F as x,f as g,j as u,g as m}from"./index-cb8d8b59.js";import{r as d}from"./react-432945ee.js";import{L as v}from"./PluginManagerFactory-a0a578f6.js";import{r as b,i as S,S as P}from"./createSvgIcon-b45af2a3.js";import{j}from"./reactDnd-72acd3f4.js";import{u as N}from"./vendor-6029fc34.js";import"./reactSelect-75171a09.js";import"./memoize-acaceb73.js";const _=e=>p("max-width:1440px;padding:10px;margin:10px;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;overflow-x:hidden;display:flex;flex:1;height:100%;overflow:hidden;max-width:1440px;align-self:center;.plugin-section{padding:4px;font-size:14px;color:",e.contrast,";}",""),k=e=>p("padding:10px;margin:4px;background:",e.shadow,";border:1px solid ",e.accentNeutral,";color:",e.contrast,";display:flex;align-items:flex-start;flex-direction:column;width:350px;border-radius:3px;height:fit-content;.image{display:flex;align-items:center;}.title{font-size:16px;padding:4px;align-self:flex-start;display:flex;align-items:center;width:100%;.plugin-name{flex:1;margin-left:10px;}.switch{display:flex;align-items:center;justify-self:end;}}.text{font-size:12px;padding:4px;line-height:1.5;}.icon{font-size:60px;opacity:0.25;}","");var f={},z=S;Object.defineProperty(f,"__esModule",{value:!0});var w=f.default=void 0,E=z(b()),C=j,M=(0,E.default)((0,C.jsx)("path",{d:"M10.5 4.5c.28 0 .5.22.5.5v2h6v6h2c.28 0 .5.22.5.5s-.22.5-.5.5h-2v6h-2.12c-.68-1.75-2.39-3-4.38-3s-3.7 1.25-4.38 3H4v-2.12c1.75-.68 3-2.39 3-4.38 0-1.99-1.24-3.7-2.99-4.38L4 7h6V5c0-.28.22-.5.5-.5m0-2C9.12 2.5 8 3.62 8 5H4c-1.1 0-1.99.9-1.99 2v3.8h.29c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-.3c0-1.49 1.21-2.7 2.7-2.7s2.7 1.21 2.7 2.7v.3H17c1.1 0 2-.9 2-2v-4c1.38 0 2.5-1.12 2.5-2.5S20.38 11 19 11V7c0-1.1-.9-2-2-2h-4c0-1.38-1.12-2.5-2.5-2.5z"}),"ExtensionOutlined");w=f.default=M;const O=e=>{const{name:n,active:t,section:a}=e,i=v(),[r,c]=d.useState(t),l=(o,y,h)=>{c(()=>!h),i.togglePlugin(o,y,!h)};return s(x,{children:s(P,{size:"small",checked:r,onChange:()=>l(a,n,r),inputProps:{"aria-label":"controlled"}})})},H=e=>{const{theme:n,name:t,description:a,section:i,active:r,visible:c}=e;return c?s(x,{children:u("div",{className:m(k(n)),children:[u("div",{className:"title",children:[s("div",{className:"image",children:s(w,{className:"icon"})}),u("div",{className:"plugin-name",children:[" ",t]}),s("div",{className:"switch",children:s(O,{active:r,name:t,section:i})})]}),s("div",{className:"text",children:a})]})}):s(x,{})},R=({components:e,section:n})=>{const t=N(l=>l.currentUser.role),a=d.useMemo(()=>e==null?void 0:e.filter(l=>l.roles.includes(t)),[t,e]),[i,r]=d.useState(a);d.useEffect(()=>{if(t&&e){let l=e==null?void 0:e.filter(o=>o.roles.includes(t));r(l)}},[t,e]);const c=g();return s("div",{children:(i==null?void 0:i.length)>0&&(i==null?void 0:i.map((l,o)=>s(H,{theme:c,name:l.name,active:l.active,visible:l.visible,section:n,description:l.description},o)))})};function U(){const e=g(),n=v(),[t]=d.useState(n.getAll()),a=d.useMemo(()=>{var i;return((i=Object.keys(t))==null?void 0:i.length)>0?Object.entries(t):[]},[t]);return s("div",{className:m(_(e)),children:(a==null?void 0:a.length)>0&&(a==null?void 0:a.map(([i,r],c)=>s("div",{style:{marginTop:"4px"},children:s(R,{components:r,section:i})},c)))})}export{U as default}; +import{h as p,d as s,F as x,f as g,j as u,g as m}from"./index-bc3ec90a.js";import{r as d}from"./react-432945ee.js";import{L as v}from"./PluginManagerFactory-e4944f23.js";import{r as b,i as S,S as P}from"./createSvgIcon-e78f4b10.js";import{j}from"./reactDnd-dc8b0776.js";import{u as N}from"./vendor-3db6068a.js";import"./reactSelect-db5d744f.js";import"./memoize-acaceb73.js";const _=e=>p("max-width:1440px;padding:10px;margin:10px;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;overflow-x:hidden;display:flex;flex:1;height:100%;overflow:hidden;max-width:1440px;align-self:center;.plugin-section{padding:4px;font-size:14px;color:",e.contrast,";}",""),k=e=>p("padding:10px;margin:4px;background:",e.shadow,";border:1px solid ",e.accentNeutral,";color:",e.contrast,";display:flex;align-items:flex-start;flex-direction:column;width:350px;border-radius:3px;height:fit-content;.image{display:flex;align-items:center;}.title{font-size:16px;padding:4px;align-self:flex-start;display:flex;align-items:center;width:100%;.plugin-name{flex:1;margin-left:10px;}.switch{display:flex;align-items:center;justify-self:end;}}.text{font-size:12px;padding:4px;line-height:1.5;}.icon{font-size:60px;opacity:0.25;}","");var f={},z=S;Object.defineProperty(f,"__esModule",{value:!0});var w=f.default=void 0,E=z(b()),C=j,M=(0,E.default)((0,C.jsx)("path",{d:"M10.5 4.5c.28 0 .5.22.5.5v2h6v6h2c.28 0 .5.22.5.5s-.22.5-.5.5h-2v6h-2.12c-.68-1.75-2.39-3-4.38-3s-3.7 1.25-4.38 3H4v-2.12c1.75-.68 3-2.39 3-4.38 0-1.99-1.24-3.7-2.99-4.38L4 7h6V5c0-.28.22-.5.5-.5m0-2C9.12 2.5 8 3.62 8 5H4c-1.1 0-1.99.9-1.99 2v3.8h.29c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-.3c0-1.49 1.21-2.7 2.7-2.7s2.7 1.21 2.7 2.7v.3H17c1.1 0 2-.9 2-2v-4c1.38 0 2.5-1.12 2.5-2.5S20.38 11 19 11V7c0-1.1-.9-2-2-2h-4c0-1.38-1.12-2.5-2.5-2.5z"}),"ExtensionOutlined");w=f.default=M;const O=e=>{const{name:n,active:t,section:a}=e,i=v(),[r,c]=d.useState(t),l=(o,y,h)=>{c(()=>!h),i.togglePlugin(o,y,!h)};return s(x,{children:s(P,{size:"small",checked:r,onChange:()=>l(a,n,r),inputProps:{"aria-label":"controlled"}})})},H=e=>{const{theme:n,name:t,description:a,section:i,active:r,visible:c}=e;return c?s(x,{children:u("div",{className:m(k(n)),children:[u("div",{className:"title",children:[s("div",{className:"image",children:s(w,{className:"icon"})}),u("div",{className:"plugin-name",children:[" ",t]}),s("div",{className:"switch",children:s(O,{active:r,name:t,section:i})})]}),s("div",{className:"text",children:a})]})}):s(x,{})},R=({components:e,section:n})=>{const t=N(l=>l.currentUser.role),a=d.useMemo(()=>e==null?void 0:e.filter(l=>l.roles.includes(t)),[t,e]),[i,r]=d.useState(a);d.useEffect(()=>{if(t&&e){let l=e==null?void 0:e.filter(o=>o.roles.includes(t));r(l)}},[t,e]);const c=g();return s("div",{children:(i==null?void 0:i.length)>0&&(i==null?void 0:i.map((l,o)=>s(H,{theme:c,name:l.name,active:l.active,visible:l.visible,section:n,description:l.description},o)))})};function U(){const e=g(),n=v(),[t]=d.useState(n.getAll()),a=d.useMemo(()=>{var i;return((i=Object.keys(t))==null?void 0:i.length)>0?Object.entries(t):[]},[t]);return s("div",{className:m(_(e)),children:(a==null?void 0:a.length)>0&&(a==null?void 0:a.map(([i,r],c)=>s("div",{style:{marginTop:"4px"},children:s(R,{components:r,section:i})},c)))})}export{U as default}; diff --git a/view/assets/UserRoles-3675b793.js b/view/assets/UserRoles-b90d8865.js similarity index 96% rename from view/assets/UserRoles-3675b793.js rename to view/assets/UserRoles-b90d8865.js index 399b3dd1..aee1f305 100644 --- a/view/assets/UserRoles-3675b793.js +++ b/view/assets/UserRoles-b90d8865.js @@ -1 +1 @@ -import{C as F,w as q,x as T,s as D,u as Q,c as J,b as G,f as I,d as i,g as M,h as O,F as $,j as U,D as B}from"./index-cb8d8b59.js";import{r as C}from"./react-432945ee.js";import{a as k,d as H,m as K,u as V,n as z,v as W}from"./vendor-6029fc34.js";import{r as X,i as Y,S as Z}from"./createSvgIcon-b45af2a3.js";import{j as w}from"./reactDnd-72acd3f4.js";import{s as j}from"./actions-2742fbfc.js";import"./reactSelect-75171a09.js";import"./memoize-acaceb73.js";const ee=F(w.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function re(e){return q("MuiAvatar",e)}T("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const te=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],oe=e=>{const{classes:r,variant:o,colorDefault:s}=e;return G({root:["root",o,s&&"colorDefault"],img:["img"],fallback:["fallback"]},re,r)},se=D("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:o}=e;return[r.root,r[o.variant],o.colorDefault&&r.colorDefault]}})(({theme:e,ownerState:r})=>k({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},r.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},r.variant==="square"&&{borderRadius:0},r.colorDefault&&k({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),ae=D("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,r)=>r.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),ne=D(ee,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,r)=>r.fallback})({width:"75%",height:"75%"});function ie({crossOrigin:e,referrerPolicy:r,src:o,srcSet:s}){const[d,f]=C.useState(!1);return C.useEffect(()=>{if(!o&&!s)return;f(!1);let g=!0;const c=new Image;return c.onload=()=>{g&&f("loaded")},c.onerror=()=>{g&&f("error")},c.crossOrigin=e,c.referrerPolicy=r,c.src=o,s&&(c.srcset=s),()=>{g=!1}},[e,r,o,s]),d}const le=C.forwardRef(function(r,o){const s=Q({props:r,name:"MuiAvatar"}),{alt:d,children:f,className:g,component:c="div",imgProps:v,sizes:S,src:h,srcSet:p,variant:l="circular"}=s,a=H(s,te);let n=null;const u=ie(k({},v,{src:h,srcSet:p})),m=h||p,y=m&&u!=="error",R=k({},s,{colorDefault:!y,component:c,variant:l}),N=oe(R);return y?n=w.jsx(ae,k({alt:d,srcSet:p,src:h,sizes:S,ownerState:R,className:N.img},v)):f!=null?n=f:m&&d?n=d[0]:n=w.jsx(ne,{ownerState:R,className:N.fallback}),w.jsx(se,k({as:c,ownerState:R,className:J(N.root,g),ref:o},a,{children:n}))}),ce=le;var _={},de=Y;Object.defineProperty(_,"__esModule",{value:!0});var P=_.default=void 0,ue=de(X()),pe=w,fe=(0,ue.default)((0,pe.jsx)("path",{d:"M21.95 10.99c-1.79-.03-3.7-1.95-2.68-4.22-2.98 1-5.77-1.59-5.19-4.56C6.95.71 2 6.58 2 12c0 5.52 4.48 10 10 10 5.89 0 10.54-5.08 9.95-11.01zM8.5 15c-.83 0-1.5-.67-1.5-1.5S7.67 12 8.5 12s1.5.67 1.5 1.5S9.33 15 8.5 15zm2-5C9.67 10 9 9.33 9 8.5S9.67 7 10.5 7s1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5 6c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}),"Cookie");P=_.default=fe;function ge(e){return e.split(" ").map(r=>r[0].toUpperCase()).slice(0,3).join("")}const me={SUPER_ADMIN_ROLE:"superAdmin",ADMIN_ROLE:"admin",USER_ROLE:"user",GUEST_ROLE:"guest"},L="store_user",ve=()=>{let e=[];try{let r=localStorage.getItem(L);if(r&&typeof r=="string"){let o=JSON.parse(r);if(o&&(o==null?void 0:o.length)>0)return e=o,e}return e}catch(r){return console.log("Error on retrieving users from localstorage: ",r),e}},E=e=>{try{localStorage.setItem(L,JSON.stringify(e))}catch(r){console.log("Error storing users data",r)}},xe=e=>O("background:",e.background,";padding:10px;display:flex;flex:1;flex-direction:column;align-items:center;.cont{display:flex;width:100%;border-radius:3px;max-width:1280px;background:",e.shadow,";border:1px solid ",e.accentNeutral,";flex:1;flex-direction:column;}.user-row{display:flex;align-items:center;margin:5px;justify-content:space-between;border:1px solid ",e.accentNeutral,";padding:10px;border-radius:3px;height:30px;p{color:",e.contrast,";font-size:10px;letter-spacing:1px;text-transform:uppercase;display:flex;align-items:center;}.avatar{color:",e.contrast,";font-size:10px;letter-spacing:1px;display:flex;align-items:center;gap:4px;text-transform:uppercase;}select{margin-left:4px;font-size:12px;color:",e.contrast,";padding:4px;border-radius:3px;background:",e.deep,";}.user-role{display:flex;align-items:center;font-size:10px;text-transform:uppercase;color:",e.contrast,";p{margin-left:4px;}}.name-input{display:flex;align-items:center;padding:4px;border:1px solid ",e.accentNeutral,";border-radius:3px;background:",e.deep,";color:",e.contrast,";height:28px;font-size:12px;}.action-buttons{display:flex;align-items:center;gap:4px;width:80px;button{display:flex;align-items:center;flex:1;background:",e.shadow,";border:1px solid ",e.accentNeutral,";border-radius:3px;cursor:pointer;color:",e.contrast,";max-width:25px;&:hover{background:",e.background,";}.cookie-icon{font-size:15px;color:",e.contrast,";}}}}",""),he=(e,r)=>O("padding:4px;border-radius:3px;font-size:10px;text-transform:uppercase;color:",r?e.primary:e.contrast,"!important;color:",e.deep,";cursor:pointer;display:flex;align-items:center;border:1px solid transparent;&:hover{border:1px solid ",e.accentNeutral,';}&:after{content:"";margin-left:4px;display:flex;width:10px;height:10px;border-radius:3px;background:',r?e.primary:e.shadow,";border:1px solid ",e.primary,";}",""),be=({name:e})=>i(ce,{children:ge(e)}),Ue=e=>{const{user:r,onUserAdd:o,onUserChange:s,onUserRemove:d,onUserCookie:f,onUserSelect:g}=e,{name:c,role:v,active:S,id:h}=r,p=v===me.SUPER_ADMIN_ROLE,l=I(),[a,n]=C.useState(!1);return U("div",{className:"user-row",children:[a?i("p",{children:i("input",{className:"name-input",value:c,onChange:t=>{var x;let b=(x=t==null?void 0:t.target)==null?void 0:x.value;b.trim()===""&&(b=`Qryn ${v}`);let A={...r,name:B.sanitize(b)};s(t,A)},onKeyDown:t=>{t.key==="Enter"&&n(()=>!1)}})}):U("div",{onClick:()=>{p||n(t=>!t)},className:"avatar",children:[i(be,{name:c}),i("span",{children:c})]}),U("div",{className:"user-role",children:["Role:"," ",p?i("p",{children:"Super Admin"}):U("select",{onChange:t=>{var x;let b=(x=t==null?void 0:t.target)==null?void 0:x.value,A={...r,role:b};s(t,A)},defaultValue:v,children:[i("option",{value:"user",children:"User"}),i("option",{value:"admin",children:"Admin"}),i("option",{value:"guest",children:"Guest"})]})]}),U("p",{children:["Active"," ",!p&&i(Z,{checked:S,size:"small",inputProps:{"aria-label":"controlled"},onChange:t=>{var x;let b=(x=t==null?void 0:t.target)==null?void 0:x.checked,A={...r,active:b};s(t,A)}})]}),U("div",{onClick:t=>g(t,r),className:M(he(l,r.selected)),children:["Current User"," "]}),U("div",{className:"action-buttons",children:[i("button",{title:"generate cookie from user",onClick:t=>f(t,r),children:i(P,{className:"cookie-icon"})}),i("button",{title:"add user",onClick:o,children:"+"}),!p&&i("button",{title:"remove user",onClick:t=>d(t,h),children:"-"})]})]})},ye=()=>{const e=K(),r=V(l=>l.currentUser),o=C.useMemo(()=>ve(),[]),[s,d]=C.useState((o==null?void 0:o.length)>0?o:[{id:z(),name:"Qryn Admin",role:"superAdmin",active:!0,selected:!0}]),[f,g]=W(["user-cookie"]),c=()=>{d(l=>{let a=[...l,{id:z(),name:"Qryn User",role:"user",active:!0,selected:!1}];return E(a),a})},v=(l,a)=>{l.preventDefault(),d(n=>{let u=[...n],m=u==null?void 0:u.map(y=>y.id===a.id?{...a,selected:!0}:{...y,selected:!1});return E(m),m}),e(j({...a,selected:!0}))},S=(l,a)=>{l.preventDefault();const n=[...s].filter(u=>u.id!==a);d(()=>(E(n),n))},h=(l,a)=>{l.preventDefault();let n=[...s],u=n==null?void 0:n.map(m=>m.id===a.id?a:m);a.id===r.id&&e(j(a)),d(()=>u),E(u)},p=(l,a)=>{l.preventDefault();try{g("user-cookie",btoa(JSON.stringify(a)))}catch(n){console.log(n,"Error on setting user cookie")}};return i($,{children:(s==null?void 0:s.length)>0&&s.map((l,a)=>i(Ue,{user:l,onUserAdd:c,onUserChange:h,onUserRemove:S,onUserCookie:p,onUserSelect:v},a))})},De=()=>{const e=I();return i("div",{className:M(xe(e)),children:i("div",{className:"cont",children:i(ye,{})})})};export{De as default,ve as getUsersFromLocal,E as setLocalUsers}; +import{C as F,w as q,x as T,s as D,u as Q,c as J,b as G,f as I,d as i,g as M,h as O,F as $,j as U,D as B}from"./index-bc3ec90a.js";import{r as C}from"./react-432945ee.js";import{a as k,d as H,m as K,u as V,n as z,v as W}from"./vendor-3db6068a.js";import{r as X,i as Y,S as Z}from"./createSvgIcon-e78f4b10.js";import{j as w}from"./reactDnd-dc8b0776.js";import{s as j}from"./actions-2742fbfc.js";import"./reactSelect-db5d744f.js";import"./memoize-acaceb73.js";const ee=F(w.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function re(e){return q("MuiAvatar",e)}T("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const te=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],oe=e=>{const{classes:r,variant:o,colorDefault:s}=e;return G({root:["root",o,s&&"colorDefault"],img:["img"],fallback:["fallback"]},re,r)},se=D("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:o}=e;return[r.root,r[o.variant],o.colorDefault&&r.colorDefault]}})(({theme:e,ownerState:r})=>k({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},r.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},r.variant==="square"&&{borderRadius:0},r.colorDefault&&k({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),ae=D("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,r)=>r.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),ne=D(ee,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,r)=>r.fallback})({width:"75%",height:"75%"});function ie({crossOrigin:e,referrerPolicy:r,src:o,srcSet:s}){const[d,f]=C.useState(!1);return C.useEffect(()=>{if(!o&&!s)return;f(!1);let g=!0;const c=new Image;return c.onload=()=>{g&&f("loaded")},c.onerror=()=>{g&&f("error")},c.crossOrigin=e,c.referrerPolicy=r,c.src=o,s&&(c.srcset=s),()=>{g=!1}},[e,r,o,s]),d}const le=C.forwardRef(function(r,o){const s=Q({props:r,name:"MuiAvatar"}),{alt:d,children:f,className:g,component:c="div",imgProps:v,sizes:S,src:h,srcSet:p,variant:l="circular"}=s,a=H(s,te);let n=null;const u=ie(k({},v,{src:h,srcSet:p})),m=h||p,y=m&&u!=="error",R=k({},s,{colorDefault:!y,component:c,variant:l}),N=oe(R);return y?n=w.jsx(ae,k({alt:d,srcSet:p,src:h,sizes:S,ownerState:R,className:N.img},v)):f!=null?n=f:m&&d?n=d[0]:n=w.jsx(ne,{ownerState:R,className:N.fallback}),w.jsx(se,k({as:c,ownerState:R,className:J(N.root,g),ref:o},a,{children:n}))}),ce=le;var _={},de=Y;Object.defineProperty(_,"__esModule",{value:!0});var P=_.default=void 0,ue=de(X()),pe=w,fe=(0,ue.default)((0,pe.jsx)("path",{d:"M21.95 10.99c-1.79-.03-3.7-1.95-2.68-4.22-2.98 1-5.77-1.59-5.19-4.56C6.95.71 2 6.58 2 12c0 5.52 4.48 10 10 10 5.89 0 10.54-5.08 9.95-11.01zM8.5 15c-.83 0-1.5-.67-1.5-1.5S7.67 12 8.5 12s1.5.67 1.5 1.5S9.33 15 8.5 15zm2-5C9.67 10 9 9.33 9 8.5S9.67 7 10.5 7s1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5 6c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}),"Cookie");P=_.default=fe;function ge(e){return e.split(" ").map(r=>r[0].toUpperCase()).slice(0,3).join("")}const me={SUPER_ADMIN_ROLE:"superAdmin",ADMIN_ROLE:"admin",USER_ROLE:"user",GUEST_ROLE:"guest"},L="store_user",ve=()=>{let e=[];try{let r=localStorage.getItem(L);if(r&&typeof r=="string"){let o=JSON.parse(r);if(o&&(o==null?void 0:o.length)>0)return e=o,e}return e}catch(r){return console.log("Error on retrieving users from localstorage: ",r),e}},E=e=>{try{localStorage.setItem(L,JSON.stringify(e))}catch(r){console.log("Error storing users data",r)}},xe=e=>O("background:",e.background,";padding:10px;display:flex;flex:1;flex-direction:column;align-items:center;.cont{display:flex;width:100%;border-radius:3px;max-width:1280px;background:",e.shadow,";border:1px solid ",e.accentNeutral,";flex:1;flex-direction:column;}.user-row{display:flex;align-items:center;margin:5px;justify-content:space-between;border:1px solid ",e.accentNeutral,";padding:10px;border-radius:3px;height:30px;p{color:",e.contrast,";font-size:10px;letter-spacing:1px;text-transform:uppercase;display:flex;align-items:center;}.avatar{color:",e.contrast,";font-size:10px;letter-spacing:1px;display:flex;align-items:center;gap:4px;text-transform:uppercase;}select{margin-left:4px;font-size:12px;color:",e.contrast,";padding:4px;border-radius:3px;background:",e.deep,";}.user-role{display:flex;align-items:center;font-size:10px;text-transform:uppercase;color:",e.contrast,";p{margin-left:4px;}}.name-input{display:flex;align-items:center;padding:4px;border:1px solid ",e.accentNeutral,";border-radius:3px;background:",e.deep,";color:",e.contrast,";height:28px;font-size:12px;}.action-buttons{display:flex;align-items:center;gap:4px;width:80px;button{display:flex;align-items:center;flex:1;background:",e.shadow,";border:1px solid ",e.accentNeutral,";border-radius:3px;cursor:pointer;color:",e.contrast,";max-width:25px;&:hover{background:",e.background,";}.cookie-icon{font-size:15px;color:",e.contrast,";}}}}",""),he=(e,r)=>O("padding:4px;border-radius:3px;font-size:10px;text-transform:uppercase;color:",r?e.primary:e.contrast,"!important;color:",e.deep,";cursor:pointer;display:flex;align-items:center;border:1px solid transparent;&:hover{border:1px solid ",e.accentNeutral,';}&:after{content:"";margin-left:4px;display:flex;width:10px;height:10px;border-radius:3px;background:',r?e.primary:e.shadow,";border:1px solid ",e.primary,";}",""),be=({name:e})=>i(ce,{children:ge(e)}),Ue=e=>{const{user:r,onUserAdd:o,onUserChange:s,onUserRemove:d,onUserCookie:f,onUserSelect:g}=e,{name:c,role:v,active:S,id:h}=r,p=v===me.SUPER_ADMIN_ROLE,l=I(),[a,n]=C.useState(!1);return U("div",{className:"user-row",children:[a?i("p",{children:i("input",{className:"name-input",value:c,onChange:t=>{var x;let b=(x=t==null?void 0:t.target)==null?void 0:x.value;b.trim()===""&&(b=`Qryn ${v}`);let A={...r,name:B.sanitize(b)};s(t,A)},onKeyDown:t=>{t.key==="Enter"&&n(()=>!1)}})}):U("div",{onClick:()=>{p||n(t=>!t)},className:"avatar",children:[i(be,{name:c}),i("span",{children:c})]}),U("div",{className:"user-role",children:["Role:"," ",p?i("p",{children:"Super Admin"}):U("select",{onChange:t=>{var x;let b=(x=t==null?void 0:t.target)==null?void 0:x.value,A={...r,role:b};s(t,A)},defaultValue:v,children:[i("option",{value:"user",children:"User"}),i("option",{value:"admin",children:"Admin"}),i("option",{value:"guest",children:"Guest"})]})]}),U("p",{children:["Active"," ",!p&&i(Z,{checked:S,size:"small",inputProps:{"aria-label":"controlled"},onChange:t=>{var x;let b=(x=t==null?void 0:t.target)==null?void 0:x.checked,A={...r,active:b};s(t,A)}})]}),U("div",{onClick:t=>g(t,r),className:M(he(l,r.selected)),children:["Current User"," "]}),U("div",{className:"action-buttons",children:[i("button",{title:"generate cookie from user",onClick:t=>f(t,r),children:i(P,{className:"cookie-icon"})}),i("button",{title:"add user",onClick:o,children:"+"}),!p&&i("button",{title:"remove user",onClick:t=>d(t,h),children:"-"})]})]})},ye=()=>{const e=K(),r=V(l=>l.currentUser),o=C.useMemo(()=>ve(),[]),[s,d]=C.useState((o==null?void 0:o.length)>0?o:[{id:z(),name:"Qryn Admin",role:"superAdmin",active:!0,selected:!0}]),[f,g]=W(["user-cookie"]),c=()=>{d(l=>{let a=[...l,{id:z(),name:"Qryn User",role:"user",active:!0,selected:!1}];return E(a),a})},v=(l,a)=>{l.preventDefault(),d(n=>{let u=[...n],m=u==null?void 0:u.map(y=>y.id===a.id?{...a,selected:!0}:{...y,selected:!1});return E(m),m}),e(j({...a,selected:!0}))},S=(l,a)=>{l.preventDefault();const n=[...s].filter(u=>u.id!==a);d(()=>(E(n),n))},h=(l,a)=>{l.preventDefault();let n=[...s],u=n==null?void 0:n.map(m=>m.id===a.id?a:m);a.id===r.id&&e(j(a)),d(()=>u),E(u)},p=(l,a)=>{l.preventDefault();try{g("user-cookie",btoa(JSON.stringify(a)))}catch(n){console.log(n,"Error on setting user cookie")}};return i($,{children:(s==null?void 0:s.length)>0&&s.map((l,a)=>i(Ue,{user:l,onUserAdd:c,onUserChange:h,onUserRemove:S,onUserCookie:p,onUserSelect:v},a))})},De=()=>{const e=I();return i("div",{className:M(xe(e)),children:i("div",{className:"cont",children:i(ye,{})})})};export{De as default,ve as getUsersFromLocal,E as setLocalUsers}; diff --git a/view/assets/consts-e7fba829.js b/view/assets/consts-7d32bda4.js similarity index 54% rename from view/assets/consts-e7fba829.js rename to view/assets/consts-7d32bda4.js index d6d3e993..77d06ed1 100644 --- a/view/assets/consts-e7fba829.js +++ b/view/assets/consts-7d32bda4.js @@ -1,4 +1,4 @@ -var Mu=Object.defineProperty;var Tu=(e,t,n)=>t in e?Mu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Wt=(e,t,n)=>(Tu(e,typeof t!="symbol"?t+"":t,n),n);import{T as ku,U as Pu,V as $u,W as Eu,X as tl,c as ie,x as he,Y as nl,Z as rl,_ as Tr,$ as Du,a0 as Ru,a1 as ol,w as xe,s as ee,z as Re,u as Te,b as be,a2 as Me,a3 as tt,a4 as ls,a5 as dn,J as al,P as Br,y as Hr,B as Jo,a as un,a6 as sl,C as il,f as Lt,d as H,g as nt,h as Ke,j as ae,K as Nu,F as kr,G as br,e as yr,E as to,i as ce}from"./index-cb8d8b59.js";import{i as Ou,P as cs}from"./PluginManagerFactory-a0a578f6.js";import{d as re,a as x,n as Qo,K as Oe,ag as no,D as We,ah as yt,H as Ue,I as ea,z as us,X as mt,a6 as Vn,W as ta,J as ll,a9 as Oo,ai as Lu,aj as _u,G as Lo,ak as Iu,al as Au,a2 as ro,a3 as ds,am as ju,U as Fu,V as Bu,an as cl,F as ul,ao as na,E as ra,ap as Hu,aq as Wu,j as _t,$ as dl,a8 as zu,ar as Uu,u as fn,m as fl}from"./vendor-6029fc34.js";import{r as h,a as ir,R as Ct,b as Vu,c as Yu,g as Ku}from"./react-432945ee.js";import{o as _e,b as gt,c as fs,d as Jn,e as Wr,f as pl,r as ut,i as dt,S as oo}from"./createSvgIcon-b45af2a3.js";import{j as R}from"./reactDnd-72acd3f4.js";import{B as hl,s as Gu,d as Xu}from"./DeleteOutlineOutlined-2068af5e.js";import{T as qu,b as Zu,f as Ju,j as Qu}from"./reactSelect-75171a09.js";const VS=e=>t=>{t({type:"SET_IS_SUBMIT",isSubmit:e})},ed=e=>t=>{t({type:"SET_AUTO_THEME",autoTheme:e})};function ml(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let an;function gl(){if(an)return an;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),an="reverse",e.scrollLeft>0?an="default":(e.scrollLeft=1,e.scrollLeft===0&&(an="negative")),document.body.removeChild(e),an}function td(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(gl()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const nd=["sx"],rd=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:ku;return Object.keys(e).forEach(a=>{o[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function vl(e){const{sx:t}=e,n=re(e,nd),{systemProps:r,otherProps:o}=rd(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const i=t(...s);return Pu(i)?x({},r,i):r}:a=x({},r,t),x({},o,{sx:a})}const od=["className","component"];function xl(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=$u("div",{shouldForwardProp:i=>i!=="theme"&&i!=="sx"&&i!=="as"})(Eu);return h.forwardRef(function(l,c){const u=tl(n),d=vl(l),{className:f,component:p="div"}=d,m=re(d,od);return R.jsx(a,x({as:p,ref:c,className:ie(f,o?o(r):r),theme:t&&u[t]||u},m))})}const ad=he("MuiBox",["root"]),sd=ad,id=xl({defaultClassName:sd.root,generateClassName:nl.generate}),ld=id,cd=h.createContext(null),bl=cd;function yl(){return h.useContext(bl)}const ud=typeof Symbol=="function"&&Symbol.for,dd=ud?Symbol.for("mui.nested"):"__THEME_NESTED__";function fd(e,t){return typeof t=="function"?t(e):x({},e,t)}function Cl(e){const{children:t,theme:n}=e,r=yl(),o=h.useMemo(()=>{const a=r===null?n:fd(r,n);return a!=null&&(a[dd]=r!==null),a},[n,r]);return R.jsx(bl.Provider,{value:o,children:t})}const ps={};function hs(e,t,n,r=!1){return h.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const a=n(o),s=e?x({},t,{[e]:a}):a;return r?()=>s:s}return e?x({},t,{[e]:n}):x({},t,n)},[e,t,n,r])}function pd(e){const{children:t,theme:n,themeId:r}=e,o=rl(ps),a=yl()||ps,s=hs(r,o,n),i=hs(r,a,n,!0);return R.jsx(Cl,{theme:i,children:R.jsx(qu.Provider,{value:s,children:t})})}function Ge(){const e=tl(Du);return e[Tr]||e}const hd=["theme"];function md(e){let{theme:t}=e,n=re(e,hd);const r=t[Tr];return R.jsx(pd,x({},n,{themeId:r?Tr:void 0,theme:r||t}))}const ms={disabled:!1};var gd=function(t){return t.scrollTop},Fn="unmounted",Ut="exited",Vt="entering",cn="entered",_o="exiting",$t=function(e){Ru(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,i=s&&!s.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?i?(l=Ut,a.appearStatus=Vt):l=cn:r.unmountOnExit||r.mountOnEnter?l=Fn:l=Ut,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var s=o.in;return s&&a.status===Fn?{status:Ut}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Vt&&s!==cn&&(a=Vt):(s===Vt||s===cn)&&(a=_o)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,s,i;return a=s=i=o,o!=null&&typeof o!="number"&&(a=o.exit,s=o.enter,i=o.appear!==void 0?o.appear:s),{exit:a,enter:s,appear:i}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Vt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:ir.findDOMNode(this);s&&gd(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ut&&this.setState({status:Fn})},n.performEnter=function(o){var a=this,s=this.props.enter,i=this.context?this.context.isMounting:o,l=this.props.nodeRef?[i]:[ir.findDOMNode(this),i],c=l[0],u=l[1],d=this.getTimeouts(),f=i?d.appear:d.enter;if(!o&&!s||ms.disabled){this.safeSetState({status:cn},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Vt},function(){a.props.onEntering(c,u),a.onTransitionEnd(f,function(){a.safeSetState({status:cn},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,a=this.props.exit,s=this.getTimeouts(),i=this.props.nodeRef?void 0:ir.findDOMNode(this);if(!a||ms.disabled){this.safeSetState({status:Ut},function(){o.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:_o},function(){o.props.onExiting(i),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Ut},function(){o.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,s=!0;return this.nextCallback=function(i){s&&(s=!1,a.nextCallback=null,o(i))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:ir.findDOMNode(this),i=o==null&&!this.props.addEndListener;if(!s||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Fn)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var i=re(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ct.createElement(ol.Provider,{value:null},typeof s=="function"?s(o,i):Ct.cloneElement(Ct.Children.only(s),i))},t}(Ct.Component);$t.contextType=ol;$t.propTypes={};function sn(){}$t.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:sn,onEntering:sn,onEntered:sn,onExit:sn,onExiting:sn,onExited:sn};$t.UNMOUNTED=Fn;$t.EXITED=Ut;$t.ENTERING=Vt;$t.ENTERED=cn;$t.EXITING=_o;const oa=$t,aa=e=>e.scrollTop;function hn(e,t){var n,r;const{timeout:o,easing:a,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:s.transitionDelay}}function vd(e){return xe("MuiTypography",e)}he("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const xd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bd=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:s}=e,i={root:["root",a,e.align!=="inherit"&&`align${Re(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return be(i,vd,s)},yd=ee("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Re(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>x({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),gs={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Cd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},wd=e=>Cd[e]||e,Sd=h.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTypography"}),o=wd(r.color),a=vl(x({},r,{color:o})),{align:s="inherit",className:i,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:f="body1",variantMapping:p=gs}=a,m=re(a,xd),v=x({},a,{align:s,color:o,className:i,component:l,gutterBottom:c,noWrap:u,paragraph:d,variant:f,variantMapping:p}),b=l||(d?"p":p[f]||gs[f])||"span",g=bd(v);return R.jsx(yd,x({as:b,ref:n,ownerState:v,className:ie(g.root,i)},m))}),Hn=Sd;function wl(e){return typeof e=="string"}function Bn(e,t,n){return e===void 0||wl(e)?t:x({},t,{ownerState:x({},t.ownerState,n)})}const Md={disableDefaultClasses:!1},Td=h.createContext(Md);function kd(e){const{disableDefaultClasses:t}=h.useContext(Td);return n=>t?"":e(n)}function Sl(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Pd(e,t,n){return typeof e=="function"?e(t,n):e}function vs(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function $d(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const p=ie(n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),m=x({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=x({},n,o,r);return p.length>0&&(v.className=p),Object.keys(m).length>0&&(v.style=m),{props:v,internalRef:void 0}}const s=Sl(x({},o,r)),i=vs(r),l=vs(o),c=t(s),u=ie(c==null?void 0:c.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),d=x({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=x({},c,n,l,i);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}const Ed=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ve(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,s=re(e,Ed),i=a?{}:Pd(r,o),{props:l,internalRef:c}=$d(x({},s,{externalSlotProps:i})),u=Me(c,i==null?void 0:i.ref,(t=e.additionalProps)==null?void 0:t.ref);return Bn(n,x({},l,{ref:u}),o)}const Dd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Rd(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Nd(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Od(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Nd(e))}function Ld(e){const t=[],n=[];return Array.from(e.querySelectorAll(Dd)).forEach((r,o)=>{const a=Rd(r);a===-1||!Od(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function _d(){return!0}function Id(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=Ld,isEnabled:s=_d,open:i}=e,l=h.useRef(!1),c=h.useRef(null),u=h.useRef(null),d=h.useRef(null),f=h.useRef(null),p=h.useRef(!1),m=h.useRef(null),v=Me(t.ref,m),b=h.useRef(null);h.useEffect(()=>{!i||!m.current||(p.current=!n)},[n,i]),h.useEffect(()=>{if(!i||!m.current)return;const C=_e(m.current);return m.current.contains(C.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[i]),h.useEffect(()=>{if(!i||!m.current)return;const C=_e(m.current),y=E=>{b.current=E,!(r||!s()||E.key!=="Tab")&&C.activeElement===m.current&&E.shiftKey&&(l.current=!0,u.current&&u.current.focus())},T=()=>{const E=m.current;if(E===null)return;if(!C.hasFocus()||!s()||l.current){l.current=!1;return}if(E.contains(C.activeElement)||r&&C.activeElement!==c.current&&C.activeElement!==u.current)return;if(C.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let A=[];if((C.activeElement===c.current||C.activeElement===u.current)&&(A=a(m.current)),A.length>0){var I,D;const N=!!((I=b.current)!=null&&I.shiftKey&&((D=b.current)==null?void 0:D.key)==="Tab"),j=A[0],B=A[A.length-1];typeof j!="string"&&typeof B!="string"&&(N?B.focus():j.focus())}else E.focus()};C.addEventListener("focusin",T),C.addEventListener("keydown",y,!0);const P=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(P),C.removeEventListener("focusin",T),C.removeEventListener("keydown",y,!0)}},[n,r,o,s,i,a]);const g=C=>{d.current===null&&(d.current=C.relatedTarget),p.current=!0,f.current=C.target;const y=t.props.onFocus;y&&y(C)},k=C=>{d.current===null&&(d.current=C.relatedTarget),p.current=!0};return R.jsxs(h.Fragment,{children:[R.jsx("div",{tabIndex:i?0:-1,onFocus:k,ref:c,"data-testid":"sentinelStart"}),h.cloneElement(t,{ref:v,onFocus:g}),R.jsx("div",{tabIndex:i?0:-1,onFocus:k,ref:u,"data-testid":"sentinelEnd"})]})}var Ie="top",rt="bottom",ot="right",Ae="left",sa="auto",Qn=[Ie,rt,ot,Ae],mn="start",Yn="end",Ad="clippingParents",Ml="viewport",Rn="popper",jd="reference",xs=Qn.reduce(function(e,t){return e.concat([t+"-"+mn,t+"-"+Yn])},[]),Tl=[].concat(Qn,[sa]).reduce(function(e,t){return e.concat([t,t+"-"+mn,t+"-"+Yn])},[]),Fd="beforeRead",Bd="read",Hd="afterRead",Wd="beforeMain",zd="main",Ud="afterMain",Vd="beforeWrite",Yd="write",Kd="afterWrite",Gd=[Fd,Bd,Hd,Wd,zd,Ud,Vd,Yd,Kd];function vt(e){return e?(e.nodeName||"").toLowerCase():null}function Ye(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zt(e){var t=Ye(e).Element;return e instanceof t||e instanceof Element}function et(e){var t=Ye(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ia(e){if(typeof ShadowRoot>"u")return!1;var t=Ye(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Xd(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!et(a)||!vt(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(s){var i=o[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})}function qd(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=s.reduce(function(l,c){return l[c]="",l},{});!et(o)||!vt(o)||(Object.assign(o.style,i),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const Zd={name:"applyStyles",enabled:!0,phase:"write",fn:Xd,effect:qd,requires:["computeStyles"]};function pt(e){return e.split("-")[0]}var Xt=Math.max,Pr=Math.min,gn=Math.round;function Io(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function kl(){return!/^((?!chrome|android).)*safari/i.test(Io())}function vn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&et(e)&&(o=e.offsetWidth>0&&gn(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&gn(r.height)/e.offsetHeight||1);var s=Zt(e)?Ye(e):window,i=s.visualViewport,l=!kl()&&n,c=(r.left+(l&&i?i.offsetLeft:0))/o,u=(r.top+(l&&i?i.offsetTop:0))/a,d=r.width/o,f=r.height/a;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function la(e){var t=vn(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Pl(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ia(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Mt(e){return Ye(e).getComputedStyle(e)}function Jd(e){return["table","td","th"].indexOf(vt(e))>=0}function It(e){return((Zt(e)?e.ownerDocument:e.document)||window.document).documentElement}function zr(e){return vt(e)==="html"?e:e.assignedSlot||e.parentNode||(ia(e)?e.host:null)||It(e)}function bs(e){return!et(e)||Mt(e).position==="fixed"?null:e.offsetParent}function Qd(e){var t=/firefox/i.test(Io()),n=/Trident/i.test(Io());if(n&&et(e)){var r=Mt(e);if(r.position==="fixed")return null}var o=zr(e);for(ia(o)&&(o=o.host);et(o)&&["html","body"].indexOf(vt(o))<0;){var a=Mt(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function er(e){for(var t=Ye(e),n=bs(e);n&&Jd(n)&&Mt(n).position==="static";)n=bs(n);return n&&(vt(n)==="html"||vt(n)==="body"&&Mt(n).position==="static")?t:n||Qd(e)||t}function ca(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wn(e,t,n){return Xt(e,Pr(t,n))}function ef(e,t,n){var r=Wn(e,t,n);return r>n?n:r}function $l(){return{top:0,right:0,bottom:0,left:0}}function El(e){return Object.assign({},$l(),e)}function Dl(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var tf=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,El(typeof t!="number"?t:Dl(t,Qn))};function nf(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,i=pt(n.placement),l=ca(i),c=[Ae,ot].indexOf(i)>=0,u=c?"height":"width";if(!(!a||!s)){var d=tf(o.padding,n),f=la(a),p=l==="y"?Ie:Ae,m=l==="y"?rt:ot,v=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],b=s[l]-n.rects.reference[l],g=er(a),k=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,C=v/2-b/2,y=d[p],T=k-f[u]-d[m],P=k/2-f[u]/2+C,E=Wn(y,P,T),A=l;n.modifiersData[r]=(t={},t[A]=E,t.centerOffset=E-P,t)}}function rf(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Pl(t.elements.popper,o)&&(t.elements.arrow=o))}const of={name:"arrow",enabled:!0,phase:"main",fn:nf,effect:rf,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xn(e){return e.split("-")[1]}var af={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sf(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:gn(n*o)/o||0,y:gn(r*o)/o||0}}function ys(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=s.x,p=f===void 0?0:f,m=s.y,v=m===void 0?0:m,b=typeof u=="function"?u({x:p,y:v}):{x:p,y:v};p=b.x,v=b.y;var g=s.hasOwnProperty("x"),k=s.hasOwnProperty("y"),C=Ae,y=Ie,T=window;if(c){var P=er(n),E="clientHeight",A="clientWidth";if(P===Ye(n)&&(P=It(n),Mt(P).position!=="static"&&i==="absolute"&&(E="scrollHeight",A="scrollWidth")),P=P,o===Ie||(o===Ae||o===ot)&&a===Yn){y=rt;var I=d&&P===T&&T.visualViewport?T.visualViewport.height:P[E];v-=I-r.height,v*=l?1:-1}if(o===Ae||(o===Ie||o===rt)&&a===Yn){C=ot;var D=d&&P===T&&T.visualViewport?T.visualViewport.width:P[A];p-=D-r.width,p*=l?1:-1}}var N=Object.assign({position:i},c&&af),j=u===!0?sf({x:p,y:v},Ye(n)):{x:p,y:v};if(p=j.x,v=j.y,l){var B;return Object.assign({},N,(B={},B[y]=k?"0":"",B[C]=g?"0":"",B.transform=(T.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",B))}return Object.assign({},N,(t={},t[y]=k?v+"px":"",t[C]=g?p+"px":"",t.transform="",t))}function lf(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,i=n.roundOffsets,l=i===void 0?!0:i,c={placement:pt(t.placement),variation:xn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ys(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ys(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const cf={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lf,data:{}};var lr={passive:!0};function uf(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,i=s===void 0?!0:s,l=Ye(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,lr)}),i&&l.addEventListener("resize",n.update,lr),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,lr)}),i&&l.removeEventListener("resize",n.update,lr)}}const df={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:uf,data:{}};var ff={left:"right",right:"left",bottom:"top",top:"bottom"};function Cr(e){return e.replace(/left|right|bottom|top/g,function(t){return ff[t]})}var pf={start:"end",end:"start"};function Cs(e){return e.replace(/start|end/g,function(t){return pf[t]})}function ua(e){var t=Ye(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function da(e){return vn(It(e)).left+ua(e).scrollLeft}function hf(e,t){var n=Ye(e),r=It(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;var c=kl();(c||!c&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i+da(e),y:l}}function mf(e){var t,n=It(e),r=ua(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Xt(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Xt(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+da(e),l=-r.scrollTop;return Mt(o||n).direction==="rtl"&&(i+=Xt(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}function fa(e){var t=Mt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Rl(e){return["html","body","#document"].indexOf(vt(e))>=0?e.ownerDocument.body:et(e)&&fa(e)?e:Rl(zr(e))}function zn(e,t){var n;t===void 0&&(t=[]);var r=Rl(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Ye(r),s=o?[a].concat(a.visualViewport||[],fa(r)?r:[]):r,i=t.concat(s);return o?i:i.concat(zn(zr(s)))}function Ao(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function gf(e,t){var n=vn(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function ws(e,t,n){return t===Ml?Ao(hf(e,n)):Zt(t)?gf(t,n):Ao(mf(It(e)))}function vf(e){var t=zn(zr(e)),n=["absolute","fixed"].indexOf(Mt(e).position)>=0,r=n&&et(e)?er(e):e;return Zt(r)?t.filter(function(o){return Zt(o)&&Pl(o,r)&&vt(o)!=="body"}):[]}function xf(e,t,n,r){var o=t==="clippingParents"?vf(e):[].concat(t),a=[].concat(o,[n]),s=a[0],i=a.reduce(function(l,c){var u=ws(e,c,r);return l.top=Xt(u.top,l.top),l.right=Pr(u.right,l.right),l.bottom=Pr(u.bottom,l.bottom),l.left=Xt(u.left,l.left),l},ws(e,s,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Nl(e){var t=e.reference,n=e.element,r=e.placement,o=r?pt(r):null,a=r?xn(r):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(o){case Ie:l={x:s,y:t.y-n.height};break;case rt:l={x:s,y:t.y+t.height};break;case ot:l={x:t.x+t.width,y:i};break;case Ae:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var c=o?ca(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case mn:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Yn:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Kn(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,i=n.boundary,l=i===void 0?Ad:i,c=n.rootBoundary,u=c===void 0?Ml:c,d=n.elementContext,f=d===void 0?Rn:d,p=n.altBoundary,m=p===void 0?!1:p,v=n.padding,b=v===void 0?0:v,g=El(typeof b!="number"?b:Dl(b,Qn)),k=f===Rn?jd:Rn,C=e.rects.popper,y=e.elements[m?k:f],T=xf(Zt(y)?y:y.contextElement||It(e.elements.popper),l,u,s),P=vn(e.elements.reference),E=Nl({reference:P,element:C,strategy:"absolute",placement:o}),A=Ao(Object.assign({},C,E)),I=f===Rn?A:P,D={top:T.top-I.top+g.top,bottom:I.bottom-T.bottom+g.bottom,left:T.left-I.left+g.left,right:I.right-T.right+g.right},N=e.modifiersData.offset;if(f===Rn&&N){var j=N[o];Object.keys(D).forEach(function(B){var O=[ot,rt].indexOf(B)>=0?1:-1,$=[Ie,rt].indexOf(B)>=0?"y":"x";D[B]+=j[$]*O})}return D}function bf(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Tl:l,u=xn(r),d=u?i?xs:xs.filter(function(m){return xn(m)===u}):Qn,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,v){return m[v]=Kn(e,{placement:v,boundary:o,rootBoundary:a,padding:s})[pt(v)],m},{});return Object.keys(p).sort(function(m,v){return p[m]-p[v]})}function yf(e){if(pt(e)===sa)return[];var t=Cr(e);return[Cs(e),t,Cs(t)]}function Cf(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,i=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,v=n.allowedAutoPlacements,b=t.options.placement,g=pt(b),k=g===b,C=l||(k||!m?[Cr(b)]:yf(b)),y=[b].concat(C).reduce(function(te,ne){return te.concat(pt(ne)===sa?bf(t,{placement:ne,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:v}):ne)},[]),T=t.rects.reference,P=t.rects.popper,E=new Map,A=!0,I=y[0],D=0;D=0,$=O?"width":"height",S=Kn(t,{placement:N,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),w=O?B?ot:Ae:B?rt:Ie;T[$]>P[$]&&(w=Cr(w));var M=Cr(w),L=[];if(a&&L.push(S[j]<=0),i&&L.push(S[w]<=0,S[M]<=0),L.every(function(te){return te})){I=N,A=!1;break}E.set(N,L)}if(A)for(var W=m?3:1,X=function(ne){var le=y.find(function(ge){var ue=E.get(ge);if(ue)return ue.slice(0,ne).every(function(z){return z})});if(le)return I=le,"break"},J=W;J>0;J--){var oe=X(J);if(oe==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const wf={name:"flip",enabled:!0,phase:"main",fn:Cf,requiresIfExists:["offset"],data:{_skip:!1}};function Ss(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ms(e){return[Ie,ot,rt,Ae].some(function(t){return e[t]>=0})}function Sf(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=Kn(t,{elementContext:"reference"}),i=Kn(t,{altBoundary:!0}),l=Ss(s,r),c=Ss(i,o,a),u=Ms(l),d=Ms(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const Mf={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Sf};function Tf(e,t,n){var r=pt(e),o=[Ae,Ie].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],i=a[1];return s=s||0,i=(i||0)*o,[Ae,ot].indexOf(r)>=0?{x:i,y:s}:{x:s,y:i}}function kf(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=Tl.reduce(function(u,d){return u[d]=Tf(d,t.rects,a),u},{}),i=s[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const Pf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kf};function $f(e){var t=e.state,n=e.name;t.modifiersData[n]=Nl({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Ef={name:"popperOffsets",enabled:!0,phase:"read",fn:$f,data:{}};function Df(e){return e==="x"?"y":"x"}function Rf(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,i=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,v=m===void 0?0:m,b=Kn(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=pt(t.placement),k=xn(t.placement),C=!k,y=ca(g),T=Df(y),P=t.modifiersData.popperOffsets,E=t.rects.reference,A=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,D=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(P){if(a){var B,O=y==="y"?Ie:Ae,$=y==="y"?rt:ot,S=y==="y"?"height":"width",w=P[y],M=w+b[O],L=w-b[$],W=p?-A[S]/2:0,X=k===mn?E[S]:A[S],J=k===mn?-A[S]:-E[S],oe=t.elements.arrow,te=p&&oe?la(oe):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$l(),le=ne[O],ge=ne[$],ue=Wn(0,E[S],te[S]),z=C?E[S]/2-W-ue-le-D.mainAxis:X-ue-le-D.mainAxis,K=C?-E[S]/2+W+ue+ge+D.mainAxis:J+ue+ge+D.mainAxis,q=t.elements.arrow&&er(t.elements.arrow),_=q?y==="y"?q.clientTop||0:q.clientLeft||0:0,V=(B=N==null?void 0:N[y])!=null?B:0,Y=w+z-V-_,Z=w+K-V,ve=Wn(p?Pr(M,Y):M,w,p?Xt(L,Z):L);P[y]=ve,j[y]=ve-w}if(i){var me,ye=y==="x"?Ie:Ae,Ne=y==="x"?rt:ot,ke=P[T],je=T==="y"?"height":"width",Fe=ke+b[ye],Xe=ke-b[Ne],we=[Ie,Ae].indexOf(g)!==-1,xt=(me=N==null?void 0:N[T])!=null?me:0,qe=we?Fe:ke-E[je]-A[je]-xt+D.altAxis,jt=we?ke+E[je]+A[je]-xt-D.altAxis:Xe,Ft=p&&we?ef(qe,ke,jt):Wn(p?qe:Fe,ke,p?jt:Xe);P[T]=Ft,j[T]=Ft-ke}t.modifiersData[r]=j}}const Nf={name:"preventOverflow",enabled:!0,phase:"main",fn:Rf,requiresIfExists:["offset"]};function Of(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Lf(e){return e===Ye(e)||!et(e)?ua(e):Of(e)}function _f(e){var t=e.getBoundingClientRect(),n=gn(t.width)/e.offsetWidth||1,r=gn(t.height)/e.offsetHeight||1;return n!==1||r!==1}function If(e,t,n){n===void 0&&(n=!1);var r=et(t),o=et(t)&&_f(t),a=It(t),s=vn(e,o,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((vt(t)!=="body"||fa(a))&&(i=Lf(t)),et(t)?(l=vn(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=da(a))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function Af(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function jf(e){var t=Af(e);return Gd.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Ff(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Bf(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ts={placement:"bottom",modifiers:[],strategy:"absolute"};function ks(){for(var e=arguments.length,t=new Array(e),n=0;n{a||i(Uf(o)||document.body)},[o,a]),tt(()=>{if(s&&!a)return ls(n,s),()=>{ls(n,null)}},[n,s,a]),a){if(h.isValidElement(r)){const c={ref:l};return h.cloneElement(r,c)}return R.jsx(h.Fragment,{children:r})}return R.jsx(h.Fragment,{children:s&&Vu.createPortal(r,s)})});function Vf(e){return xe("MuiPopper",e)}he("MuiPopper",["root"]);const Yf=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Kf=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Gf(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function jo(e){return typeof e=="function"?e():e}function Xf(e){return e.nodeType!==void 0}const qf=()=>be({root:["root"]},kd(Vf)),Zf={},Jf=h.forwardRef(function(t,n){var r;const{anchorEl:o,children:a,direction:s,disablePortal:i,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:f,slotProps:p={},slots:m={},TransitionProps:v}=t,b=re(t,Yf),g=h.useRef(null),k=Me(g,n),C=h.useRef(null),y=Me(C,f),T=h.useRef(y);tt(()=>{T.current=y},[y]),h.useImperativeHandle(f,()=>C.current,[]);const P=Gf(u,s),[E,A]=h.useState(P),[I,D]=h.useState(jo(o));h.useEffect(()=>{C.current&&C.current.forceUpdate()}),h.useEffect(()=>{o&&D(jo(o))},[o]),tt(()=>{if(!I||!c)return;const $=M=>{A(M.placement)};let S=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:M})=>{$(M)}}];l!=null&&(S=S.concat(l)),d&&d.modifiers!=null&&(S=S.concat(d.modifiers));const w=zf(I,g.current,x({placement:P},d,{modifiers:S}));return T.current(w),()=>{w.destroy(),T.current(null)}},[I,i,l,c,d,P]);const N={placement:E};v!==null&&(N.TransitionProps=v);const j=qf(),B=(r=m.root)!=null?r:"div",O=Ve({elementType:B,externalSlotProps:p.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:k},ownerState:t,className:j.root});return R.jsx(B,x({},O,{children:typeof a=="function"?a(N):a}))}),Ll=h.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:s="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=Zf,popperRef:p,style:m,transition:v=!1,slotProps:b={},slots:g={}}=t,k=re(t,Kf),[C,y]=h.useState(!0),T=()=>{y(!1)},P=()=>{y(!0)};if(!l&&!u&&(!v||C))return null;let E;if(a)E=a;else if(r){const D=jo(r);E=D&&Xf(D)?_e(D).body:_e(null).body}const A=!u&&l&&(!v||C)?"none":void 0,I=v?{in:u,onEnter:T,onExited:P}:void 0;return R.jsx(Ol,{disablePortal:i,container:E,children:R.jsx(Jf,x({anchorEl:r,direction:s,disablePortal:i,modifiers:c,ref:n,open:v?!C:u,placement:d,popperOptions:f,popperRef:p,slotProps:b,slots:g},k,{style:x({position:"fixed",top:0,left:0,display:A},m),TransitionProps:I,children:o}))})});function Qf(e){const t=_e(e);return t.body===e?gt(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Un(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ps(e){return parseInt(gt(e).getComputedStyle(e).paddingRight,10)||0}function ep(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function $s(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,s=>{const i=a.indexOf(s)===-1,l=!ep(s);i&&l&&Un(s,o)})}function ao(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function tp(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Qf(r)){const s=ml(_e(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Ps(r)+s}px`;const i=_e(r).querySelectorAll(".mui-fixed");[].forEach.call(i,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Ps(l)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=_e(r).body;else{const s=r.parentElement,i=gt(r);a=(s==null?void 0:s.nodeName)==="HTML"&&i.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:i})=>{a?s.style.setProperty(i,a):s.style.removeProperty(i)})}}function np(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class rp{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Un(t.modalRef,!1);const o=np(n);$s(n,t.mount,t.modalRef,o,!0);const a=ao(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=ao(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=tp(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=ao(this.containers,s=>s.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Un(t.modalRef,n),$s(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&Un(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function op(e){return typeof e=="function"?e():e}function ap(e){return e?e.props.hasOwnProperty("in"):!1}const sp=new rp;function ip(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=sp,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:i,children:l,onClose:c,open:u,rootRef:d}=e,f=h.useRef({}),p=h.useRef(null),m=h.useRef(null),v=Me(m,d),[b,g]=h.useState(!u),k=ap(l);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const y=()=>_e(p.current),T=()=>(f.current.modalRef=m.current,f.current.mount=p.current,f.current),P=()=>{o.mount(T(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=dn(()=>{const S=op(t)||y().body;o.add(T(),S),m.current&&P()}),A=h.useCallback(()=>o.isTopModal(T()),[o]),I=dn(S=>{p.current=S,S&&(u&&A()?P():m.current&&Un(m.current,C))}),D=h.useCallback(()=>{o.remove(T(),C)},[C,o]);h.useEffect(()=>()=>{D()},[D]),h.useEffect(()=>{u?E():(!k||!a)&&D()},[u,D,k,a,E]);const N=S=>w=>{var M;(M=S.onKeyDown)==null||M.call(S,w),!(w.key!=="Escape"||w.which===229||!A())&&(n||(w.stopPropagation(),c&&c(w,"escapeKeyDown")))},j=S=>w=>{var M;(M=S.onClick)==null||M.call(S,w),w.target===w.currentTarget&&c&&c(w,"backdropClick")};return{getRootProps:(S={})=>{const w=Sl(e);delete w.onTransitionEnter,delete w.onTransitionExited;const M=x({},w,S);return x({role:"presentation"},M,{onKeyDown:N(M),ref:v})},getBackdropProps:(S={})=>{const w=S;return x({"aria-hidden":!0},w,{onClick:j(w),open:u})},getTransitionProps:()=>{const S=()=>{g(!1),s&&s()},w=()=>{g(!0),i&&i(),a&&D()};return{onEnter:fs(S,l==null?void 0:l.props.onEnter),onExited:fs(w,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:I,isTopModal:A,exited:b,hasTransition:k}}function lp(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,a]=h.useState(!1);return tt(()=>{n||a(!0)},[n]),h.useEffect(()=>{n&&a(!0)},[n]),R.jsx(h.Fragment,{children:o?t:r})}const cp=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],up=ee(Ll,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dp=h.forwardRef(function(t,n){var r;const o=rl(),a=Te({props:t,name:"MuiPopper"}),{anchorEl:s,component:i,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:f,modifiers:p,open:m,placement:v,popperOptions:b,popperRef:g,transition:k,slots:C,slotProps:y}=a,T=re(a,cp),P=(r=C==null?void 0:C.root)!=null?r:l==null?void 0:l.Root,E=x({anchorEl:s,container:u,disablePortal:d,keepMounted:f,modifiers:p,open:m,placement:v,popperOptions:b,popperRef:g,transition:k},T);return R.jsx(up,x({as:i,direction:o==null?void 0:o.direction,slots:{root:P},slotProps:y??c},E,{ref:n}))}),_l=dp,fp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pp={entering:{opacity:1},entered:{opacity:1}},hp=h.forwardRef(function(t,n){const r=Ge(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:i,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:v,style:b,timeout:g=o,TransitionComponent:k=oa}=t,C=re(t,fp),y=h.useRef(null),T=Me(y,i.ref,n),P=O=>$=>{if(O){const S=y.current;$===void 0?O(S):O(S,$)}},E=P(f),A=P((O,$)=>{aa(O);const S=hn({style:b,timeout:g,easing:l},{mode:"enter"});O.style.webkitTransition=r.transitions.create("opacity",S),O.style.transition=r.transitions.create("opacity",S),u&&u(O,$)}),I=P(d),D=P(v),N=P(O=>{const $=hn({style:b,timeout:g,easing:l},{mode:"exit"});O.style.webkitTransition=r.transitions.create("opacity",$),O.style.transition=r.transitions.create("opacity",$),p&&p(O)}),j=P(m),B=O=>{a&&a(y.current,O)};return R.jsx(k,x({appear:s,in:c,nodeRef:y,onEnter:A,onEntered:I,onEntering:E,onExit:N,onExited:j,onExiting:D,addEndListener:B,timeout:g},C,{children:(O,$)=>h.cloneElement(i,x({style:x({opacity:0,visibility:O==="exited"&&!c?"hidden":void 0},pp[O],b,i.props.style),ref:T},$))}))}),Il=hp;function mp(e){return xe("MuiBackdrop",e)}he("MuiBackdrop",["root","invisible"]);const gp=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],vp=e=>{const{classes:t,invisible:n}=e;return be({root:["root",n&&"invisible"]},mp,t)},xp=ee("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>x({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"},e.invisible&&{backgroundColor:"transparent"})),bp=h.forwardRef(function(t,n){var r,o,a;const s=Te({props:t,name:"MuiBackdrop"}),{children:i,className:l,component:c="div",components:u={},componentsProps:d={},invisible:f=!1,open:p,slotProps:m={},slots:v={},TransitionComponent:b=Il,transitionDuration:g}=s,k=re(s,gp),C=x({},s,{component:c,invisible:f}),y=vp(C),T=(r=m.root)!=null?r:d.root;return R.jsx(b,x({in:p,timeout:g},k,{children:R.jsx(xp,x({"aria-hidden":!0},T,{as:(o=(a=v.root)!=null?a:u.Root)!=null?o:c,className:ie(y.root,l,T==null?void 0:T.className),ownerState:x({},C,T==null?void 0:T.ownerState),classes:y,ref:n,children:i}))}))}),Al=bp,yp=he("MuiBox",["root"]),Cp=yp,wp=al(),Sp=xl({themeId:Tr,defaultTheme:wp,defaultClassName:Cp.root,generateClassName:nl.generate}),Mp=Sp;function Tp(e){return xe("MuiModal",e)}he("MuiModal",["root","hidden","backdrop"]);const kp=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Pp=e=>{const{open:t,exited:n,classes:r}=e;return be({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Tp,r)},$p=ee("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>x({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Ep=ee(Al,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Dp=h.forwardRef(function(t,n){var r,o,a,s,i,l;const c=Te({name:"MuiModal",props:t}),{BackdropComponent:u=Ep,BackdropProps:d,className:f,closeAfterTransition:p=!1,children:m,container:v,component:b,components:g={},componentsProps:k={},disableAutoFocus:C=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:T=!1,disablePortal:P=!1,disableRestoreFocus:E=!1,disableScrollLock:A=!1,hideBackdrop:I=!1,keepMounted:D=!1,onBackdropClick:N,open:j,slotProps:B,slots:O}=c,$=re(c,kp),S=x({},c,{closeAfterTransition:p,disableAutoFocus:C,disableEnforceFocus:y,disableEscapeKeyDown:T,disablePortal:P,disableRestoreFocus:E,disableScrollLock:A,hideBackdrop:I,keepMounted:D}),{getRootProps:w,getBackdropProps:M,getTransitionProps:L,portalRef:W,isTopModal:X,exited:J,hasTransition:oe}=ip(x({},S,{rootRef:n})),te=x({},S,{exited:J}),ne=Pp(te),le={};if(m.props.tabIndex===void 0&&(le.tabIndex="-1"),oe){const{onEnter:V,onExited:Y}=L();le.onEnter=V,le.onExited=Y}const ge=(r=(o=O==null?void 0:O.root)!=null?o:g.Root)!=null?r:$p,ue=(a=(s=O==null?void 0:O.backdrop)!=null?s:g.Backdrop)!=null?a:u,z=(i=B==null?void 0:B.root)!=null?i:k.root,K=(l=B==null?void 0:B.backdrop)!=null?l:k.backdrop,q=Ve({elementType:ge,externalSlotProps:z,externalForwardedProps:$,getSlotProps:w,additionalProps:{ref:n,as:b},ownerState:te,className:ie(f,z==null?void 0:z.className,ne==null?void 0:ne.root,!te.open&&te.exited&&(ne==null?void 0:ne.hidden))}),_=Ve({elementType:ue,externalSlotProps:K,additionalProps:d,getSlotProps:V=>M(x({},V,{onClick:Y=>{N&&N(Y),V!=null&&V.onClick&&V.onClick(Y)}})),className:ie(K==null?void 0:K.className,d==null?void 0:d.className,ne==null?void 0:ne.backdrop),ownerState:te});return!D&&!j&&(!oe||J)?null:R.jsx(Ol,{ref:W,container:v,disablePortal:P,children:R.jsxs(ge,x({},q,{children:[!I&&u?R.jsx(ue,x({},_)):null,R.jsx(Id,{disableEnforceFocus:y,disableAutoFocus:C,disableRestoreFocus:E,isEnabled:X,open:j,children:h.cloneElement(m,le)})]}))})}),pa=Dp;function Rp(e){return xe("MuiDialog",e)}const Np=he("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),so=Np,Op=h.createContext({}),jl=Op,Lp=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],_p=ee(Al,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Ip=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${Re(n)}`],paper:["paper",`paperScroll${Re(n)}`,`paperWidth${Re(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return be(s,Rp,t)},Ap=ee(pa,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),jp=ee("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Re(n.scroll)}`]]}})(({ownerState:e})=>x({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Fp=ee(Br,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Re(n.scroll)}`],t[`paperWidth${Re(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>x({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${so.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${so.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${so.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Bp=h.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialog"}),o=Ge(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":i,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:f=!1,fullScreen:p=!1,fullWidth:m=!1,maxWidth:v="sm",onBackdropClick:b,onClose:g,open:k,PaperComponent:C=Br,PaperProps:y={},scroll:T="paper",TransitionComponent:P=Il,transitionDuration:E=a,TransitionProps:A}=r,I=re(r,Lp),D=x({},r,{disableEscapeKeyDown:f,fullScreen:p,fullWidth:m,maxWidth:v,scroll:T}),N=Ip(D),j=h.useRef(),B=w=>{j.current=w.target===w.currentTarget},O=w=>{j.current&&(j.current=null,b&&b(w),g&&g(w,"backdropClick"))},$=Jn(i),S=h.useMemo(()=>({titleId:$}),[$]);return R.jsx(Ap,x({className:ie(N.root,d),closeAfterTransition:!0,components:{Backdrop:_p},componentsProps:{backdrop:x({transitionDuration:E,as:l},c)},disableEscapeKeyDown:f,onClose:g,open:k,ref:n,onClick:O,ownerState:D},I,{children:R.jsx(P,x({appear:!0,in:k,timeout:E,role:"presentation"},A,{children:R.jsx(jp,{className:ie(N.container),onMouseDown:B,ownerState:D,children:R.jsx(Fp,x({as:C,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":$},y,{className:ie(N.paper,y.className),ownerState:D,children:R.jsx(jl.Provider,{value:S,children:u})}))})}))}))}),Fl=Bp;function Hp(e){return xe("MuiDialogActions",e)}he("MuiDialogActions",["root","spacing"]);const Wp=["className","disableSpacing"],zp=e=>{const{classes:t,disableSpacing:n}=e;return be({root:["root",!n&&"spacing"]},Hp,t)},Up=ee("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>x({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Vp=h.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=r,s=re(r,Wp),i=x({},r,{disableSpacing:a}),l=zp(i);return R.jsx(Up,x({className:ie(l.root,o),ownerState:i,ref:n},s))}),Yp=Vp;function Kp(e){return xe("MuiDialogContent",e)}he("MuiDialogContent",["root","dividers"]);function Gp(e){return xe("MuiDialogTitle",e)}const Xp=he("MuiDialogTitle",["root"]),qp=Xp,Zp=["className","dividers"],Jp=e=>{const{classes:t,dividers:n}=e;return be({root:["root",n&&"dividers"]},Kp,t)},Qp=ee("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>x({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${qp.root} + &`]:{paddingTop:0}})),eh=h.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=r,s=re(r,Zp),i=x({},r,{dividers:a}),l=Jp(i);return R.jsx(Qp,x({className:ie(l.root,o),ownerState:i,ref:n},s))}),th=eh;function nh(e){return xe("MuiDialogContentText",e)}he("MuiDialogContentText",["root"]);const rh=["children","className"],oh=e=>{const{classes:t}=e,r=be({root:["root"]},nh,t);return x({},t,r)},ah=ee(Hn,{shouldForwardProp:e=>Hr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sh=h.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialogContentText"}),{className:o}=r,a=re(r,rh),s=oh(a);return R.jsx(ah,x({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:a,className:ie(s.root,o)},r,{classes:s}))}),ih=sh,lh=["className","id"],ch=e=>{const{classes:t}=e;return be({root:["root"]},Gp,t)},uh=ee(Hn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),dh=h.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,s=re(r,lh),i=r,l=ch(i),{titleId:c=a}=h.useContext(jl);return R.jsx(uh,x({component:"h2",className:ie(l.root,o),ownerState:i,ref:n,variant:"h6",id:a??c},s))}),fh=dh;function YS(e){return xe("MuiDivider",e)}const ph=he("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Es=ph,hh=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function mh(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),a=gt(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const c=a.getComputedStyle(t);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let i=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");i=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+i-r.left}px)`:`translateX(${a.innerWidth+i-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-i}px)`:`translateX(-${r.left+r.width-i}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function gh(e){return typeof e=="function"?e():e}function cr(e,t,n){const r=gh(n),o=mh(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const vh=h.forwardRef(function(t,n){const r=Ge(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:l,container:c,direction:u="down",easing:d=o,in:f,onEnter:p,onEntered:m,onEntering:v,onExit:b,onExited:g,onExiting:k,style:C,timeout:y=a,TransitionComponent:T=oa}=t,P=re(t,hh),E=h.useRef(null),A=Me(l.ref,E,n),I=M=>L=>{M&&(L===void 0?M(E.current):M(E.current,L))},D=I((M,L)=>{cr(u,M,c),aa(M),p&&p(M,L)}),N=I((M,L)=>{const W=hn({timeout:y,style:C,easing:d},{mode:"enter"});M.style.webkitTransition=r.transitions.create("-webkit-transform",x({},W)),M.style.transition=r.transitions.create("transform",x({},W)),M.style.webkitTransform="none",M.style.transform="none",v&&v(M,L)}),j=I(m),B=I(k),O=I(M=>{const L=hn({timeout:y,style:C,easing:d},{mode:"exit"});M.style.webkitTransition=r.transitions.create("-webkit-transform",L),M.style.transition=r.transitions.create("transform",L),cr(u,M,c),b&&b(M)}),$=I(M=>{M.style.webkitTransition="",M.style.transition="",g&&g(M)}),S=M=>{s&&s(E.current,M)},w=h.useCallback(()=>{E.current&&cr(u,E.current,c)},[u,c]);return h.useEffect(()=>{if(f||u==="down"||u==="right")return;const M=Wr(()=>{E.current&&cr(u,E.current,c)}),L=gt(E.current);return L.addEventListener("resize",M),()=>{M.clear(),L.removeEventListener("resize",M)}},[u,f,c]),h.useEffect(()=>{f||w()},[f,w]),R.jsx(T,x({nodeRef:E,onEnter:D,onEntered:j,onEntering:N,onExit:O,onExited:$,onExiting:B,addEndListener:S,appear:i,in:f,timeout:y},P,{children:(M,L)=>h.cloneElement(l,x({ref:A,style:x({visibility:M==="exited"&&!f?"hidden":void 0},C,l.props.style)},L))}))}),xh=vh;function bh(e){return xe("MuiDrawer",e)}he("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const yh=["BackdropProps"],Ch=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Bl=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},wh=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Re(n)}`,r!=="temporary"&&`paperAnchorDocked${Re(n)}`]};return be(o,bh,t)},Sh=ee(pa,{name:"MuiDrawer",slot:"Root",overridesResolver:Bl})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),Ds=ee("div",{shouldForwardProp:Hr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Bl})({flex:"0 0 auto"}),Mh=ee(Br,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Re(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Re(n.anchor)}`]]}})(({theme:e,ownerState:t})=>x({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Hl={left:"right",right:"left",top:"down",bottom:"up"};function Th(e){return["left","right"].indexOf(e)!==-1}function kh(e,t){return e.direction==="rtl"&&Th(t)?Hl[t]:t}const Ph=h.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDrawer"}),o=Ge(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:i,children:l,className:c,elevation:u=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:f}={},onClose:p,open:m=!1,PaperProps:v={},SlideProps:b,TransitionComponent:g=xh,transitionDuration:k=a,variant:C="temporary"}=r,y=re(r.ModalProps,yh),T=re(r,Ch),P=h.useRef(!1);h.useEffect(()=>{P.current=!0},[]);const E=kh(o,s),I=x({},r,{anchor:s,elevation:u,open:m,variant:C},T),D=wh(I),N=R.jsx(Mh,x({elevation:C==="temporary"?u:0,square:!0},v,{className:ie(D.paper,v.className),ownerState:I,children:l}));if(C==="permanent")return R.jsx(Ds,x({className:ie(D.root,D.docked,c),ownerState:I,ref:n},T,{children:N}));const j=R.jsx(g,x({in:m,direction:Hl[E],timeout:k,appear:P.current},b,{children:N}));return C==="persistent"?R.jsx(Ds,x({className:ie(D.root,D.docked,c),ownerState:I,ref:n},T,{children:j})):R.jsx(Sh,x({BackdropProps:x({},i,f,{transitionDuration:k}),className:ie(D.root,D.modal,c),open:m,ownerState:I,onClose:p,hideBackdrop:d,ref:n},T,y,{children:j}))}),$h=Ph,Eh=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Fo(e){return`scale(${e}, ${e**2})`}const Dh={entering:{opacity:1,transform:Fo(1)},entered:{opacity:1,transform:"none"}},io=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Wl=h.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:s,in:i,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:p,style:m,timeout:v="auto",TransitionComponent:b=oa}=t,g=re(t,Eh),k=h.useRef(),C=h.useRef(),y=Ge(),T=h.useRef(null),P=Me(T,a.ref,n),E=$=>S=>{if($){const w=T.current;S===void 0?$(w):$(w,S)}},A=E(u),I=E(($,S)=>{aa($);const{duration:w,delay:M,easing:L}=hn({style:m,timeout:v,easing:s},{mode:"enter"});let W;v==="auto"?(W=y.transitions.getAutoHeightDuration($.clientHeight),C.current=W):W=w,$.style.transition=[y.transitions.create("opacity",{duration:W,delay:M}),y.transitions.create("transform",{duration:io?W:W*.666,delay:M,easing:L})].join(","),l&&l($,S)}),D=E(c),N=E(p),j=E($=>{const{duration:S,delay:w,easing:M}=hn({style:m,timeout:v,easing:s},{mode:"exit"});let L;v==="auto"?(L=y.transitions.getAutoHeightDuration($.clientHeight),C.current=L):L=S,$.style.transition=[y.transitions.create("opacity",{duration:L,delay:w}),y.transitions.create("transform",{duration:io?L:L*.666,delay:io?w:w||L*.333,easing:M})].join(","),$.style.opacity=0,$.style.transform=Fo(.75),d&&d($)}),B=E(f),O=$=>{v==="auto"&&(k.current=setTimeout($,C.current||0)),r&&r(T.current,$)};return h.useEffect(()=>()=>{clearTimeout(k.current)},[]),R.jsx(b,x({appear:o,in:i,nodeRef:T,onEnter:I,onEntered:D,onEntering:A,onExit:j,onExited:B,onExiting:N,addEndListener:O,timeout:v==="auto"?null:v},g,{children:($,S)=>h.cloneElement(a,x({style:x({opacity:0,transform:Fo(.75),visibility:$==="exited"&&!i?"hidden":void 0},Dh[$],m,a.props.style),ref:P},S))}))});Wl.muiSupportAuto=!0;const Bo=Wl,Rh=h.createContext({}),Ho=Rh;function Nh(e){return xe("MuiList",e)}he("MuiList",["root","padding","dense","subheader"]);const Oh=["children","className","component","dense","disablePadding","subheader"],Lh=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return be({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Nh,t)},_h=ee("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>x({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Ih=h.forwardRef(function(t,n){const r=Te({props:t,name:"MuiList"}),{children:o,className:a,component:s="ul",dense:i=!1,disablePadding:l=!1,subheader:c}=r,u=re(r,Oh),d=h.useMemo(()=>({dense:i}),[i]),f=x({},r,{component:s,dense:i,disablePadding:l}),p=Lh(f);return R.jsx(Ho.Provider,{value:d,children:R.jsxs(_h,x({as:s,className:ie(p.root,a),ref:n,ownerState:f},u,{children:[c,o]}))})}),Ah=Ih,jh=he("MuiListItemIcon",["root","alignItemsFlexStart"]),Rs=jh,Fh=he("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ns=Fh,Bh=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lo(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Os(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function zl(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Nn(e,t,n,r,o,a){let s=!1,i=o(e,t,t?n:!1);for(;i;){if(i===e.firstChild){if(s)return!1;s=!0}const l=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!zl(i,a)||l)i=o(e,i,n);else return i.focus(),!0}return!1}const Hh=h.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:s,className:i,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=t,f=re(t,Bh),p=h.useRef(null),m=h.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});tt(()=>{o&&p.current.focus()},[o]),h.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,y)=>{const T=!p.current.style.width;if(C.clientHeight{const y=p.current,T=C.key,P=_e(y).activeElement;if(T==="ArrowDown")C.preventDefault(),Nn(y,P,c,l,lo);else if(T==="ArrowUp")C.preventDefault(),Nn(y,P,c,l,Os);else if(T==="Home")C.preventDefault(),Nn(y,null,c,l,lo);else if(T==="End")C.preventDefault(),Nn(y,null,c,l,Os);else if(T.length===1){const E=m.current,A=T.toLowerCase(),I=performance.now();E.keys.length>0&&(I-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&A!==E.keys[0]&&(E.repeating=!1)),E.lastTime=I,E.keys.push(A);const D=P&&!E.repeating&&zl(P,E);E.previousKeyMatched&&(D||Nn(y,P,!1,l,lo,E))?C.preventDefault():E.previousKeyMatched=!1}u&&u(C)},b=Me(p,n);let g=-1;h.Children.forEach(s,(C,y)=>{if(!h.isValidElement(C)){g===y&&(g+=1,g>=s.length&&(g=-1));return}C.props.disabled||(d==="selectedMenu"&&C.props.selected||g===-1)&&(g=y),g===y&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1))});const k=h.Children.map(s,(C,y)=>{if(y===g){const T={};return a&&(T.autoFocus=!0),C.props.tabIndex===void 0&&d==="selectedMenu"&&(T.tabIndex=0),h.cloneElement(C,T)}return C});return R.jsx(Ah,x({role:"menu",ref:b,className:i,onKeyDown:v,tabIndex:o?0:-1},f,{children:k}))}),Wh=Hh;function zh(e){return xe("MuiPopover",e)}he("MuiPopover",["root","paper"]);const Uh=["onEntering"],Vh=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Yh=["slotProps"];function Ls(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function _s(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Is(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function co(e){return typeof e=="function"?e():e}const Kh=e=>{const{classes:t}=e;return be({root:["root"],paper:["paper"]},zh,t)},Gh=ee(pa,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ul=ee(Br,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Xh=h.forwardRef(function(t,n){var r,o,a;const s=Te({props:t,name:"MuiPopover"}),{action:i,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:f,className:p,container:m,elevation:v=8,marginThreshold:b=16,open:g,PaperProps:k={},slots:C,slotProps:y,transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:P=Bo,transitionDuration:E="auto",TransitionProps:{onEntering:A}={},disableScrollLock:I=!1}=s,D=re(s.TransitionProps,Uh),N=re(s,Vh),j=(r=y==null?void 0:y.paper)!=null?r:k,B=h.useRef(),O=Me(B,j.ref),$=x({},s,{anchorOrigin:c,anchorReference:d,elevation:v,marginThreshold:b,externalPaperSlotProps:j,transformOrigin:T,TransitionComponent:P,transitionDuration:E,TransitionProps:D}),S=Kh($),w=h.useCallback(()=>{if(d==="anchorPosition")return u;const V=co(l),Z=(V&&V.nodeType===1?V:_e(B.current).body).getBoundingClientRect();return{top:Z.top+Ls(Z,c.vertical),left:Z.left+_s(Z,c.horizontal)}},[l,c.horizontal,c.vertical,u,d]),M=h.useCallback(V=>({vertical:Ls(V,T.vertical),horizontal:_s(V,T.horizontal)}),[T.horizontal,T.vertical]),L=h.useCallback(V=>{const Y={width:V.offsetWidth,height:V.offsetHeight},Z=M(Y);if(d==="none")return{top:null,left:null,transformOrigin:Is(Z)};const ve=w();let me=ve.top-Z.vertical,ye=ve.left-Z.horizontal;const Ne=me+Y.height,ke=ye+Y.width,je=gt(co(l)),Fe=je.innerHeight-b,Xe=je.innerWidth-b;if(b!==null&&meFe){const we=Ne-Fe;me-=we,Z.vertical+=we}if(b!==null&&yeXe){const we=ke-Xe;ye-=we,Z.horizontal+=we}return{top:`${Math.round(me)}px`,left:`${Math.round(ye)}px`,transformOrigin:Is(Z)}},[l,d,w,M,b]),[W,X]=h.useState(g),J=h.useCallback(()=>{const V=B.current;if(!V)return;const Y=L(V);Y.top!==null&&(V.style.top=Y.top),Y.left!==null&&(V.style.left=Y.left),V.style.transformOrigin=Y.transformOrigin,X(!0)},[L]);h.useEffect(()=>(I&&window.addEventListener("scroll",J),()=>window.removeEventListener("scroll",J)),[l,I,J]);const oe=(V,Y)=>{A&&A(V,Y),J()},te=()=>{X(!1)};h.useEffect(()=>{g&&J()}),h.useImperativeHandle(i,()=>g?{updatePosition:()=>{J()}}:null,[g,J]),h.useEffect(()=>{if(!g)return;const V=Wr(()=>{J()}),Y=gt(l);return Y.addEventListener("resize",V),()=>{V.clear(),Y.removeEventListener("resize",V)}},[l,g,J]);let ne=E;E==="auto"&&!P.muiSupportAuto&&(ne=void 0);const le=m||(l?_e(co(l)).body:void 0),ge=(o=C==null?void 0:C.root)!=null?o:Gh,ue=(a=C==null?void 0:C.paper)!=null?a:Ul,z=Ve({elementType:ue,externalSlotProps:x({},j,{style:W?j.style:x({},j.style,{opacity:0})}),additionalProps:{elevation:v,ref:O},ownerState:$,className:ie(S.paper,j==null?void 0:j.className)}),K=Ve({elementType:ge,externalSlotProps:(y==null?void 0:y.root)||{},externalForwardedProps:N,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:le,open:g},ownerState:$,className:ie(S.root,p)}),{slotProps:q}=K,_=re(K,Yh);return R.jsx(ge,x({},_,!wl(ge)&&{slotProps:q,disableScrollLock:I},{children:R.jsx(P,x({appear:!0,in:g,onEntering:oe,onExited:te,timeout:ne},D,{children:R.jsx(ue,x({},z,{children:f}))}))}))}),qh=Xh;function Zh(e){return xe("MuiMenu",e)}he("MuiMenu",["root","paper","list"]);const Jh=["onEntering"],Qh=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],em={vertical:"top",horizontal:"right"},tm={vertical:"top",horizontal:"left"},nm=e=>{const{classes:t}=e;return be({root:["root"],paper:["paper"],list:["list"]},Zh,t)},rm=ee(qh,{shouldForwardProp:e=>Hr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),om=ee(Ul,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),am=ee(Wh,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),sm=h.forwardRef(function(t,n){var r,o;const a=Te({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:i,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:f,PaperProps:p={},PopoverClasses:m,transitionDuration:v="auto",TransitionProps:{onEntering:b}={},variant:g="selectedMenu",slots:k={},slotProps:C={}}=a,y=re(a.TransitionProps,Jh),T=re(a,Qh),P=Ge(),E=P.direction==="rtl",A=x({},a,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:u,onEntering:b,PaperProps:p,transitionDuration:v,TransitionProps:y,variant:g}),I=nm(A),D=s&&!c&&f,N=h.useRef(null),j=(L,W)=>{N.current&&N.current.adjustStyleForScrollbar(L,P),b&&b(L,W)},B=L=>{L.key==="Tab"&&(L.preventDefault(),d&&d(L,"tabKeyDown"))};let O=-1;h.Children.map(i,(L,W)=>{h.isValidElement(L)&&(L.props.disabled||(g==="selectedMenu"&&L.props.selected||O===-1)&&(O=W))});const $=(r=k.paper)!=null?r:om,S=(o=C.paper)!=null?o:p,w=Ve({elementType:k.root,externalSlotProps:C.root,ownerState:A,className:[I.root,l]}),M=Ve({elementType:$,externalSlotProps:S,ownerState:A,className:I.paper});return R.jsx(rm,x({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?em:tm,slots:{paper:$,root:k.root},slotProps:{root:w,paper:M},open:f,ref:n,transitionDuration:v,TransitionProps:x({onEntering:j},y),ownerState:A},T,{classes:m,children:R.jsx(am,x({onKeyDown:B,actions:N,autoFocus:s&&(O===-1||c),autoFocusItem:D,variant:g},u,{className:ie(I.list,u.className),children:i}))}))}),Vl=sm;function im(e){return xe("MuiMenuItem",e)}const lm=he("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),On=lm,cm=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],um=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},dm=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:s}=e,l=be({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},im,s);return x({},s,l)},fm=ee(Jo,{shouldForwardProp:e=>Hr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:um})(({theme:e,ownerState:t})=>x({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${On.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:un(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${On.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:un(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${On.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:un(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:un(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${On.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${On.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Es.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Es.inset}`]:{marginLeft:52},[`& .${Ns.root}`]:{marginTop:0,marginBottom:0},[`& .${Ns.inset}`]:{paddingLeft:36},[`& .${Rs.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&x({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Rs.root} svg`]:{fontSize:"1.25rem"}}))),pm=h.forwardRef(function(t,n){const r=Te({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:s=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f}=r,p=re(r,cm),m=h.useContext(Ho),v=h.useMemo(()=>({dense:s||m.dense||!1,disableGutters:l}),[m.dense,s,l]),b=h.useRef(null);tt(()=>{o&&b.current&&b.current.focus()},[o]);const g=x({},r,{dense:v.dense,divider:i,disableGutters:l}),k=dm(r),C=Me(b,n);let y;return r.disabled||(y=d!==void 0?d:-1),R.jsx(Ho.Provider,{value:v,children:R.jsx(fm,x({ref:C,role:u,tabIndex:y,component:a,focusVisibleClassName:ie(k.focusVisible,c),className:ie(k.root,f)},p,{ownerState:g,classes:k}))})}),hm=pm;function mm(e){return xe("MuiTooltip",e)}const gm=he("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Rt=gm,vm=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function xm(e){return Math.round(e*1e5)/1e5}const bm=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Re(a.split("-")[0])}`],arrow:["arrow"]};return be(s,mm,t)},ym=ee(_l,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>x({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Rt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Rt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Rt.arrow}`]:x({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Rt.arrow}`]:x({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Cm=ee("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Re(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>x({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:un(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${xm(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Rt.popper}[data-popper-placement*="left"] &`]:x({transformOrigin:"right center"},t.isRtl?x({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):x({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Rt.popper}[data-popper-placement*="right"] &`]:x({transformOrigin:"left center"},t.isRtl?x({marginRight:"14px"},t.touch&&{marginRight:"24px"}):x({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Rt.popper}[data-popper-placement*="top"] &`]:x({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Rt.popper}[data-popper-placement*="bottom"] &`]:x({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),wm=ee("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:un(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ur=!1,uo=null,Ln={x:0,y:0};function dr(e,t){return n=>{t&&t(n),e(n)}}const Sm=h.forwardRef(function(t,n){var r,o,a,s,i,l,c,u,d,f,p,m,v,b,g,k,C,y,T;const P=Te({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:A,components:I={},componentsProps:D={},describeChild:N=!1,disableFocusListener:j=!1,disableHoverListener:B=!1,disableInteractive:O=!1,disableTouchListener:$=!1,enterDelay:S=100,enterNextDelay:w=0,enterTouchDelay:M=700,followCursor:L=!1,id:W,leaveDelay:X=0,leaveTouchDelay:J=1500,onClose:oe,onOpen:te,open:ne,placement:le="bottom",PopperComponent:ge,PopperProps:ue={},slotProps:z={},slots:K={},title:q,TransitionComponent:_=Bo,TransitionProps:V}=P,Y=re(P,vm),Z=h.isValidElement(A)?A:R.jsx("span",{children:A}),ve=Ge(),me=ve.direction==="rtl",[ye,Ne]=h.useState(),[ke,je]=h.useState(null),Fe=h.useRef(!1),Xe=O||L,we=h.useRef(),xt=h.useRef(),qe=h.useRef(),jt=h.useRef(),[Ft,Bt]=pl({controlled:ne,default:!1,name:"Tooltip",state:"open"});let Ze=Ft;const Et=Jn(W),Ht=h.useRef(),nn=h.useCallback(()=>{Ht.current!==void 0&&(document.body.style.WebkitUserSelect=Ht.current,Ht.current=void 0),clearTimeout(jt.current)},[]);h.useEffect(()=>()=>{clearTimeout(we.current),clearTimeout(xt.current),clearTimeout(qe.current),nn()},[nn]);const rn=se=>{clearTimeout(uo),ur=!0,Bt(!0),te&&!Ze&&te(se)},G=dn(se=>{clearTimeout(uo),uo=setTimeout(()=>{ur=!1},800+X),Bt(!1),oe&&Ze&&oe(se),clearTimeout(we.current),we.current=setTimeout(()=>{Fe.current=!1},ve.transitions.duration.shortest)}),Q=se=>{Fe.current&&se.type!=="touchstart"||(ye&&ye.removeAttribute("title"),clearTimeout(xt.current),clearTimeout(qe.current),S||ur&&w?xt.current=setTimeout(()=>{rn(se)},ur?w:S):rn(se))},fe=se=>{clearTimeout(xt.current),clearTimeout(qe.current),qe.current=setTimeout(()=>{G(se)},X)},{isFocusVisibleRef:de,onBlur:Se,onFocus:Ee,ref:Je}=sl(),[,Dt]=h.useState(!1),at=se=>{Se(se),de.current===!1&&(Dt(!1),fe(se))},on=se=>{ye||Ne(se.currentTarget),Ee(se),de.current===!0&&(Dt(!0),Q(se))},ts=se=>{Fe.current=!0;const Be=Z.props;Be.onTouchStart&&Be.onTouchStart(se)},ns=Q,rs=fe,mu=se=>{ts(se),clearTimeout(qe.current),clearTimeout(we.current),nn(),Ht.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",jt.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ht.current,Q(se)},M)},gu=se=>{Z.props.onTouchEnd&&Z.props.onTouchEnd(se),nn(),clearTimeout(qe.current),qe.current=setTimeout(()=>{G(se)},J)};h.useEffect(()=>{if(!Ze)return;function se(Be){(Be.key==="Escape"||Be.key==="Esc")&&G(Be)}return document.addEventListener("keydown",se),()=>{document.removeEventListener("keydown",se)}},[G,Ze]);const vu=Me(Z.ref,Je,Ne,n);!q&&q!==0&&(Ze=!1);const Jr=h.useRef(),xu=se=>{const Be=Z.props;Be.onMouseMove&&Be.onMouseMove(se),Ln={x:se.clientX,y:se.clientY},Jr.current&&Jr.current.update()},$n={},Qr=typeof q=="string";N?($n.title=!Ze&&Qr&&!B?q:null,$n["aria-describedby"]=Ze?Et:null):($n["aria-label"]=Qr?q:null,$n["aria-labelledby"]=Ze&&!Qr?Et:null);const st=x({},$n,Y,Z.props,{className:ie(Y.className,Z.props.className),onTouchStart:ts,ref:vu},L?{onMouseMove:xu}:{}),En={};$||(st.onTouchStart=mu,st.onTouchEnd=gu),B||(st.onMouseOver=dr(ns,st.onMouseOver),st.onMouseLeave=dr(rs,st.onMouseLeave),Xe||(En.onMouseOver=ns,En.onMouseLeave=rs)),j||(st.onFocus=dr(on,st.onFocus),st.onBlur=dr(at,st.onBlur),Xe||(En.onFocus=on,En.onBlur=at));const bu=h.useMemo(()=>{var se;let Be=[{name:"arrow",enabled:!!ke,options:{element:ke,padding:4}}];return(se=ue.popperOptions)!=null&&se.modifiers&&(Be=Be.concat(ue.popperOptions.modifiers)),x({},ue.popperOptions,{modifiers:Be})},[ke,ue]),Dn=x({},P,{isRtl:me,arrow:E,disableInteractive:Xe,placement:le,PopperComponentProp:ge,touch:Fe.current}),eo=bm(Dn),os=(r=(o=K.popper)!=null?o:I.Popper)!=null?r:ym,as=(a=(s=(i=K.transition)!=null?i:I.Transition)!=null?s:_)!=null?a:Bo,ss=(l=(c=K.tooltip)!=null?c:I.Tooltip)!=null?l:Cm,is=(u=(d=K.arrow)!=null?d:I.Arrow)!=null?u:wm,yu=Bn(os,x({},ue,(f=z.popper)!=null?f:D.popper,{className:ie(eo.popper,ue==null?void 0:ue.className,(p=(m=z.popper)!=null?m:D.popper)==null?void 0:p.className)}),Dn),Cu=Bn(as,x({},V,(v=z.transition)!=null?v:D.transition),Dn),wu=Bn(ss,x({},(b=z.tooltip)!=null?b:D.tooltip,{className:ie(eo.tooltip,(g=(k=z.tooltip)!=null?k:D.tooltip)==null?void 0:g.className)}),Dn),Su=Bn(is,x({},(C=z.arrow)!=null?C:D.arrow,{className:ie(eo.arrow,(y=(T=z.arrow)!=null?T:D.arrow)==null?void 0:y.className)}),Dn);return R.jsxs(h.Fragment,{children:[h.cloneElement(Z,st),R.jsx(os,x({as:ge??_l,placement:le,anchorEl:L?{getBoundingClientRect:()=>({top:Ln.y,left:Ln.x,right:Ln.x,bottom:Ln.y,width:0,height:0})}:ye,popperRef:Jr,open:ye?Ze:!1,id:Et,transition:!0},En,yu,{popperOptions:bu,children:({TransitionProps:se})=>R.jsx(as,x({timeout:ve.transitions.duration.shorter},se,Cu,{children:R.jsxs(ss,x({},wu,{children:[q,E?R.jsx(is,x({},Su,{ref:je})):null]}))}))}))]})}),ha=Sm;function Mm(e){return xe("MuiTab",e)}const Tm=he("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),zt=Tm,km=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Pm=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:s,selected:i,disabled:l}=e,c={root:["root",a&&s&&"labelIcon",`textColor${Re(n)}`,r&&"fullWidth",o&&"wrapped",i&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return be(c,Mm,t)},$m=ee(Jo,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Re(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>x({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${zt.iconWrapper}`]:x({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${zt.selected}`]:{opacity:1},[`&.${zt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${zt.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${zt.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${zt.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${zt.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Em=h.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:i,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:f,onClick:p,onFocus:m,selected:v,selectionFollowsFocus:b,textColor:g="inherit",value:k,wrapped:C=!1}=r,y=re(r,km),T=x({},r,{disabled:a,disableFocusRipple:s,selected:v,icon:!!l,iconPosition:c,label:!!d,fullWidth:i,textColor:g,wrapped:C}),P=Pm(T),E=l&&d&&h.isValidElement(l)?h.cloneElement(l,{className:ie(P.iconWrapper,l.props.className)}):l,A=D=>{!v&&f&&f(D,k),p&&p(D)},I=D=>{b&&!v&&f&&f(D,k),m&&m(D)};return R.jsxs($m,x({focusRipple:!s,className:ie(P.root,o),ref:n,role:"tab","aria-selected":v,disabled:a,onClick:A,onFocus:I,ownerState:T,tabIndex:v?0:-1},y,{children:[c==="top"||c==="start"?R.jsxs(h.Fragment,{children:[E,d]}):R.jsxs(h.Fragment,{children:[d,E]}),u]}))}),Dm=Em,Rm=il(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Nm=il(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Om(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Lm(e,t,n,r={},o=()=>{}){const{ease:a=Om,duration:s=300}=r;let i=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=f=>{if(c){o(new Error("Animation cancelled"));return}i===null&&(i=f);const p=Math.min(1,(f-i)/s);if(t[e]=a(p)*(n-l)+l,p>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(d),u)}const _m=["onChange"],Im={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Am(e){const{onChange:t}=e,n=re(e,_m),r=h.useRef(),o=h.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return tt(()=>{const s=Wr(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),i=gt(o.current);return i.addEventListener("resize",s),()=>{s.clear(),i.removeEventListener("resize",s)}},[t]),h.useEffect(()=>{a(),t(r.current)},[t]),R.jsx("div",x({style:Im,ref:o},n))}function jm(e){return xe("MuiTabScrollButton",e)}const Fm=he("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Bm=Fm,Hm=["className","slots","slotProps","direction","orientation","disabled"],Wm=e=>{const{classes:t,orientation:n,disabled:r}=e;return be({root:["root",n,r&&"disabled"]},jm,t)},zm=ee(Jo,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>x({width:40,flexShrink:0,opacity:.8,[`&.${Bm.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Um=h.forwardRef(function(t,n){var r,o;const a=Te({props:t,name:"MuiTabScrollButton"}),{className:s,slots:i={},slotProps:l={},direction:c}=a,u=re(a,Hm),f=Ge().direction==="rtl",p=x({isRtl:f},a),m=Wm(p),v=(r=i.StartScrollButtonIcon)!=null?r:Rm,b=(o=i.EndScrollButtonIcon)!=null?o:Nm,g=Ve({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),k=Ve({elementType:b,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return R.jsx(zm,x({component:"div",className:ie(m.root,s),ref:n,role:null,ownerState:p,tabIndex:null},u,{children:c==="left"?R.jsx(v,x({},g)):R.jsx(b,x({},k))}))}),Vm=Um;function Ym(e){return xe("MuiTabs",e)}const Km=he("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),fo=Km,Gm=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],As=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,js=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,fr=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=n(e,o);else{o.focus();return}}},Xm=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:s,scrollButtonsHideMobile:i,classes:l}=e;return be({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Ym,l)},qm=ee("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${fo.scrollButtons}`]:t.scrollButtons},{[`& .${fo.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>x({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${fo.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Zm=ee("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>x({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Jm=ee("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>x({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Qm=ee("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>x({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),eg=ee(Am)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Fs={},tg=h.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTabs"}),o=Ge(),a=o.direction==="rtl",{"aria-label":s,"aria-labelledby":i,action:l,centered:c=!1,children:u,className:d,component:f="div",allowScrollButtonsMobile:p=!1,indicatorColor:m="primary",onChange:v,orientation:b="horizontal",ScrollButtonComponent:g=Vm,scrollButtons:k="auto",selectionFollowsFocus:C,slots:y={},slotProps:T={},TabIndicatorProps:P={},TabScrollButtonProps:E={},textColor:A="primary",value:I,variant:D="standard",visibleScrollbar:N=!1}=r,j=re(r,Gm),B=D==="scrollable",O=b==="vertical",$=O?"scrollTop":"scrollLeft",S=O?"top":"left",w=O?"bottom":"right",M=O?"clientHeight":"clientWidth",L=O?"height":"width",W=x({},r,{component:f,allowScrollButtonsMobile:p,indicatorColor:m,orientation:b,vertical:O,scrollButtons:k,textColor:A,variant:D,visibleScrollbar:N,fixed:!B,hideScrollbar:B&&!N,scrollableX:B&&!O,scrollableY:B&&O,centered:c&&!B,scrollButtonsHideMobile:!p}),X=Xm(W),J=Ve({elementType:y.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:W}),oe=Ve({elementType:y.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:W}),[te,ne]=h.useState(!1),[le,ge]=h.useState(Fs),[ue,z]=h.useState(!1),[K,q]=h.useState(!1),[_,V]=h.useState(!1),[Y,Z]=h.useState({overflow:"hidden",scrollbarWidth:0}),ve=new Map,me=h.useRef(null),ye=h.useRef(null),Ne=()=>{const G=me.current;let Q;if(G){const de=G.getBoundingClientRect();Q={clientWidth:G.clientWidth,scrollLeft:G.scrollLeft,scrollTop:G.scrollTop,scrollLeftNormalized:td(G,o.direction),scrollWidth:G.scrollWidth,top:de.top,bottom:de.bottom,left:de.left,right:de.right}}let fe;if(G&&I!==!1){const de=ye.current.children;if(de.length>0){const Se=de[ve.get(I)];fe=Se?Se.getBoundingClientRect():null}}return{tabsMeta:Q,tabMeta:fe}},ke=dn(()=>{const{tabsMeta:G,tabMeta:Q}=Ne();let fe=0,de;if(O)de="top",Q&&G&&(fe=Q.top-G.top+G.scrollTop);else if(de=a?"right":"left",Q&&G){const Ee=a?G.scrollLeftNormalized+G.clientWidth-G.scrollWidth:G.scrollLeft;fe=(a?-1:1)*(Q[de]-G[de]+Ee)}const Se={[de]:fe,[L]:Q?Q[L]:0};if(isNaN(le[de])||isNaN(le[L]))ge(Se);else{const Ee=Math.abs(le[de]-Se[de]),Je=Math.abs(le[L]-Se[L]);(Ee>=1||Je>=1)&&ge(Se)}}),je=(G,{animation:Q=!0}={})=>{Q?Lm($,me.current,G,{duration:o.transitions.duration.standard}):me.current[$]=G},Fe=G=>{let Q=me.current[$];O?Q+=G:(Q+=G*(a?-1:1),Q*=a&&gl()==="reverse"?-1:1),je(Q)},Xe=()=>{const G=me.current[M];let Q=0;const fe=Array.from(ye.current.children);for(let de=0;deG){de===0&&(Q=G);break}Q+=Se[M]}return Q},we=()=>{Fe(-1*Xe())},xt=()=>{Fe(Xe())},qe=h.useCallback(G=>{Z({overflow:null,scrollbarWidth:G})},[]),jt=()=>{const G={};G.scrollbarSizeListener=B?R.jsx(eg,{onChange:qe,className:ie(X.scrollableX,X.hideScrollbar)}):null;const fe=B&&(k==="auto"&&(ue||K)||k===!0);return G.scrollButtonStart=fe?R.jsx(g,x({slots:{StartScrollButtonIcon:y.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:J},orientation:b,direction:a?"right":"left",onClick:we,disabled:!ue},E,{className:ie(X.scrollButtons,E.className)})):null,G.scrollButtonEnd=fe?R.jsx(g,x({slots:{EndScrollButtonIcon:y.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:oe},orientation:b,direction:a?"left":"right",onClick:xt,disabled:!K},E,{className:ie(X.scrollButtons,E.className)})):null,G},Ft=dn(G=>{const{tabsMeta:Q,tabMeta:fe}=Ne();if(!(!fe||!Q)){if(fe[S]Q[w]){const de=Q[$]+(fe[w]-Q[w]);je(de,{animation:G})}}}),Bt=dn(()=>{B&&k!==!1&&V(!_)});h.useEffect(()=>{const G=Wr(()=>{me.current&&ke()});let Q;const fe=Ee=>{Ee.forEach(Je=>{Je.removedNodes.forEach(Dt=>{var at;(at=Q)==null||at.unobserve(Dt)}),Je.addedNodes.forEach(Dt=>{var at;(at=Q)==null||at.observe(Dt)})}),G(),Bt()},de=gt(me.current);de.addEventListener("resize",G);let Se;return typeof ResizeObserver<"u"&&(Q=new ResizeObserver(G),Array.from(ye.current.children).forEach(Ee=>{Q.observe(Ee)})),typeof MutationObserver<"u"&&(Se=new MutationObserver(fe),Se.observe(ye.current,{childList:!0})),()=>{var Ee,Je;G.clear(),de.removeEventListener("resize",G),(Ee=Se)==null||Ee.disconnect(),(Je=Q)==null||Je.disconnect()}},[ke,Bt]),h.useEffect(()=>{const G=Array.from(ye.current.children),Q=G.length;if(typeof IntersectionObserver<"u"&&Q>0&&B&&k!==!1){const fe=G[0],de=G[Q-1],Se={root:me.current,threshold:.99},Ee=on=>{z(!on[0].isIntersecting)},Je=new IntersectionObserver(Ee,Se);Je.observe(fe);const Dt=on=>{q(!on[0].isIntersecting)},at=new IntersectionObserver(Dt,Se);return at.observe(de),()=>{Je.disconnect(),at.disconnect()}}},[B,k,_,u==null?void 0:u.length]),h.useEffect(()=>{ne(!0)},[]),h.useEffect(()=>{ke()}),h.useEffect(()=>{Ft(Fs!==le)},[Ft,le]),h.useImperativeHandle(l,()=>({updateIndicator:ke,updateScrollButtons:Bt}),[ke,Bt]);const Ze=R.jsx(Qm,x({},P,{className:ie(X.indicator,P.className),ownerState:W,style:x({},le,P.style)}));let Et=0;const Ht=h.Children.map(u,G=>{if(!h.isValidElement(G))return null;const Q=G.props.value===void 0?Et:G.props.value;ve.set(Q,Et);const fe=Q===I;return Et+=1,h.cloneElement(G,x({fullWidth:D==="fullWidth",indicator:fe&&!te&&Ze,selected:fe,selectionFollowsFocus:C,onChange:v,textColor:A,value:Q},Et===1&&I===!1&&!G.props.tabIndex?{tabIndex:0}:{}))}),nn=G=>{const Q=ye.current,fe=_e(Q).activeElement;if(fe.getAttribute("role")!=="tab")return;let Se=b==="horizontal"?"ArrowLeft":"ArrowUp",Ee=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&a&&(Se="ArrowRight",Ee="ArrowLeft"),G.key){case Se:G.preventDefault(),fr(Q,fe,js);break;case Ee:G.preventDefault(),fr(Q,fe,As);break;case"Home":G.preventDefault(),fr(Q,null,As);break;case"End":G.preventDefault(),fr(Q,null,js);break}},rn=jt();return R.jsxs(qm,x({className:ie(X.root,d),ownerState:W,ref:n,as:f},j,{children:[rn.scrollButtonStart,rn.scrollbarSizeListener,R.jsxs(Zm,{className:X.scroller,ownerState:W,style:{overflow:Y.overflow,[O?`margin${a?"Left":"Right"}`:"marginBottom"]:N?void 0:-Y.scrollbarWidth},ref:me,children:[R.jsx(Jm,{"aria-label":s,"aria-labelledby":i,"aria-orientation":b==="vertical"?"vertical":null,className:X.flexContainer,ownerState:W,onKeyDown:nn,ref:ye,role:"tablist",children:Ht}),te&&Ze]}),rn.scrollButtonEnd]}))}),ng=tg,rg=e=>Ke("color:",e.contrast,";background:",e.shadow,';display:flex;font-size:10px;letter-spacing:1px;font-family:"Courier New",Courier,monospace;margin:0px 10px;',""),og=()=>{const[e,t]=h.useState(new Date),n=Lt();return h.useEffect(()=>{const r=setInterval(()=>{t(new Date)},1e3);return()=>clearInterval(r)},[]),H("div",{children:H("div",{className:nt(rg(n)),children:H("p",{children:e.toLocaleString()})})})},ag={name:"Clock",section:"Status Bar",id:Qo(),Component:og,description:"A simple clock with date / time",active:!1,visible:!0,roles:["admin","user","guest","superAdmin"]};var ma={},sg=dt;Object.defineProperty(ma,"__esModule",{value:!0});var Yl=ma.default=void 0,ig=sg(ut()),lg=R,cg=(0,ig.default)((0,lg.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}),"ChevronRightOutlined");Yl=ma.default=cg;const ug=(e,t,n)=>Ke("display:flex;flex-direction:column;background:",e.shadow,";border-radius:3px;margin:0px 4px;padding:4px 6px;.title{color:theme.contrast;font-size:10px;margin-bottom:1px;}.total-num{color:",(()=>({prev:e.contrast,amount:e.primary,diff:e.contrast}))()[t],";font-size:16px;letter-spacing:1px;font-weight:bold;padding:3px 0px;:before{content:",(()=>t==="diff"&&{up:"'↑'",down:"'↓'",none:""})()[n],";font-size:14px;position:relative;font-weight:bold;color:",(()=>t==="diff"&&{up:e.accent,down:e.primary,none:e.primary})()[n],";top:-3px;margin-left:3px;}}",""),Bs={total:{text:"Total Series",value:e=>e},percent:{text:"Percentage from total",value:e=>`${String(e)}%`},previous:{text:"Previous total",value:e=>e||0},diff:{text:"Diff from previous",value:e=>`${e??0}`}},wr=({theme:e,value:t,text:n,type:r="amount",trend:o="none"})=>ae("div",{className:nt(ug(e,r,o)),children:[H("div",{className:"title",children:Bs[n].text}),H("div",{className:"total-num",children:Bs[n].value(t)})]});Qo();var ga={},dg=dt;Object.defineProperty(ga,"__esModule",{value:!0});var Kl=ga.default=void 0,fg=dg(ut()),pg=R,hg=(0,fg.default)((0,pg.jsx)("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"}),"CalendarMonthOutlined");Kl=ga.default=hg;var Gl={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Yu,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",i="minute",l="hour",c="day",u="week",d="month",f="quarter",p="year",m="date",v="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var $=["th","st","nd","rd"],S=O%100;return"["+O+($[(S-20)%10]||$[S]||$[0])+"]"}},C=function(O,$,S){var w=String(O);return!w||w.length>=$?O:""+Array($+1-w.length).join(S)+O},y={s:C,z:function(O){var $=-O.utcOffset(),S=Math.abs($),w=Math.floor(S/60),M=S%60;return($<=0?"+":"-")+C(w,2,"0")+":"+C(M,2,"0")},m:function O($,S){if($.date()1)return O(W[0])}else{var X=$.name;P[X]=$,M=X}return!w&&M&&(T=M),M||!w&&T},D=function(O,$){if(A(O))return O.clone();var S=typeof $=="object"?$:{};return S.date=O,S.args=arguments,new j(S)},N=y;N.l=I,N.i=A,N.w=function(O,$){return D(O,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var j=function(){function O(S){this.$L=I(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[E]=!0}var $=O.prototype;return $.parse=function(S){this.$d=function(w){var M=w.date,L=w.utc;if(M===null)return new Date(NaN);if(N.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var W=M.match(b);if(W){var X=W[2]-1||0,J=(W[7]||"0").substring(0,3);return L?new Date(Date.UTC(W[1],X,W[3]||1,W[4]||0,W[5]||0,W[6]||0,J)):new Date(W[1],X,W[3]||1,W[4]||0,W[5]||0,W[6]||0,J)}}return new Date(M)}(S),this.init()},$.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},$.$utils=function(){return N},$.isValid=function(){return this.$d.toString()!==v},$.isSame=function(S,w){var M=D(S);return this.startOf(w)<=M&&M<=this.endOf(w)},$.isAfter=function(S,w){return D(S)t in e?Mu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Wt=(e,t,n)=>(Tu(e,typeof t!="symbol"?t+"":t,n),n);import{T as ku,U as Pu,V as $u,W as Eu,X as tl,c as ie,x as he,Y as nl,Z as rl,_ as Tr,$ as Du,a0 as Ru,a1 as ol,w as xe,s as ee,z as Re,u as Te,b as be,a2 as Me,a3 as tt,a4 as ls,a5 as dn,J as al,P as Br,y as Hr,B as Jo,a as un,a6 as sl,C as il,f as Lt,d as H,g as nt,h as Ke,j as ae,K as Nu,F as kr,G as br,e as yr,E as to,i as ce}from"./index-bc3ec90a.js";import{i as Ou,P as cs}from"./PluginManagerFactory-e4944f23.js";import{d as re,a as x,n as Qo,K as Oe,ag as no,B as We,ah as yt,G as Ue,I as ea,z as us,X as mt,a6 as Vn,W as ta,J as ll,a9 as Oo,ai as Lu,aj as _u,F as Lo,ak as Iu,al as Au,a2 as ro,a3 as ds,am as ju,U as Fu,V as Bu,an as cl,E as ul,ao as na,D as ra,ap as Hu,aq as Wu,j as _t,$ as dl,a8 as zu,ar as Uu,u as fn,m as fl}from"./vendor-3db6068a.js";import{r as p,a as ir,R as Ct,b as Vu,c as Yu,g as Ku}from"./react-432945ee.js";import{o as _e,b as gt,c as fs,d as Jn,e as Wr,f as pl,r as ut,i as dt,S as oo}from"./createSvgIcon-e78f4b10.js";import{j as R}from"./reactDnd-dc8b0776.js";import{B as hl,s as Gu,d as Xu}from"./DeleteOutlineOutlined-d455761f.js";import{T as qu,b as Zu,f as Ju,j as Qu}from"./reactSelect-db5d744f.js";const VS=e=>t=>{t({type:"SET_IS_SUBMIT",isSubmit:e})},ed=e=>t=>{t({type:"SET_AUTO_THEME",autoTheme:e})};function ml(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let an;function gl(){if(an)return an;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),an="reverse",e.scrollLeft>0?an="default":(e.scrollLeft=1,e.scrollLeft===0&&(an="negative")),document.body.removeChild(e),an}function td(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(gl()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const nd=["sx"],rd=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:ku;return Object.keys(e).forEach(a=>{o[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function vl(e){const{sx:t}=e,n=re(e,nd),{systemProps:r,otherProps:o}=rd(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const i=t(...s);return Pu(i)?x({},r,i):r}:a=x({},r,t),x({},o,{sx:a})}const od=["className","component"];function xl(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=$u("div",{shouldForwardProp:i=>i!=="theme"&&i!=="sx"&&i!=="as"})(Eu);return p.forwardRef(function(l,c){const u=tl(n),d=vl(l),{className:f,component:h="div"}=d,m=re(d,od);return R.jsx(a,x({as:h,ref:c,className:ie(f,o?o(r):r),theme:t&&u[t]||u},m))})}const ad=he("MuiBox",["root"]),sd=ad,id=xl({defaultClassName:sd.root,generateClassName:nl.generate}),ld=id,cd=p.createContext(null),bl=cd;function yl(){return p.useContext(bl)}const ud=typeof Symbol=="function"&&Symbol.for,dd=ud?Symbol.for("mui.nested"):"__THEME_NESTED__";function fd(e,t){return typeof t=="function"?t(e):x({},e,t)}function Cl(e){const{children:t,theme:n}=e,r=yl(),o=p.useMemo(()=>{const a=r===null?n:fd(r,n);return a!=null&&(a[dd]=r!==null),a},[n,r]);return R.jsx(bl.Provider,{value:o,children:t})}const ps={};function hs(e,t,n,r=!1){return p.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const a=n(o),s=e?x({},t,{[e]:a}):a;return r?()=>s:s}return e?x({},t,{[e]:n}):x({},t,n)},[e,t,n,r])}function pd(e){const{children:t,theme:n,themeId:r}=e,o=rl(ps),a=yl()||ps,s=hs(r,o,n),i=hs(r,a,n,!0);return R.jsx(Cl,{theme:i,children:R.jsx(qu.Provider,{value:s,children:t})})}function Ge(){const e=tl(Du);return e[Tr]||e}const hd=["theme"];function md(e){let{theme:t}=e,n=re(e,hd);const r=t[Tr];return R.jsx(pd,x({},n,{themeId:r?Tr:void 0,theme:r||t}))}const ms={disabled:!1};var gd=function(t){return t.scrollTop},Fn="unmounted",Ut="exited",Vt="entering",cn="entered",_o="exiting",$t=function(e){Ru(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,i=s&&!s.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?i?(l=Ut,a.appearStatus=Vt):l=cn:r.unmountOnExit||r.mountOnEnter?l=Fn:l=Ut,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var s=o.in;return s&&a.status===Fn?{status:Ut}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Vt&&s!==cn&&(a=Vt):(s===Vt||s===cn)&&(a=_o)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,s,i;return a=s=i=o,o!=null&&typeof o!="number"&&(a=o.exit,s=o.enter,i=o.appear!==void 0?o.appear:s),{exit:a,enter:s,appear:i}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Vt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:ir.findDOMNode(this);s&&gd(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ut&&this.setState({status:Fn})},n.performEnter=function(o){var a=this,s=this.props.enter,i=this.context?this.context.isMounting:o,l=this.props.nodeRef?[i]:[ir.findDOMNode(this),i],c=l[0],u=l[1],d=this.getTimeouts(),f=i?d.appear:d.enter;if(!o&&!s||ms.disabled){this.safeSetState({status:cn},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Vt},function(){a.props.onEntering(c,u),a.onTransitionEnd(f,function(){a.safeSetState({status:cn},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,a=this.props.exit,s=this.getTimeouts(),i=this.props.nodeRef?void 0:ir.findDOMNode(this);if(!a||ms.disabled){this.safeSetState({status:Ut},function(){o.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:_o},function(){o.props.onExiting(i),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Ut},function(){o.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,s=!0;return this.nextCallback=function(i){s&&(s=!1,a.nextCallback=null,o(i))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:ir.findDOMNode(this),i=o==null&&!this.props.addEndListener;if(!s||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Fn)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var i=re(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ct.createElement(ol.Provider,{value:null},typeof s=="function"?s(o,i):Ct.cloneElement(Ct.Children.only(s),i))},t}(Ct.Component);$t.contextType=ol;$t.propTypes={};function sn(){}$t.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:sn,onEntering:sn,onEntered:sn,onExit:sn,onExiting:sn,onExited:sn};$t.UNMOUNTED=Fn;$t.EXITED=Ut;$t.ENTERING=Vt;$t.ENTERED=cn;$t.EXITING=_o;const oa=$t,aa=e=>e.scrollTop;function hn(e,t){var n,r;const{timeout:o,easing:a,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:s.transitionDelay}}function vd(e){return xe("MuiTypography",e)}he("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const xd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bd=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:s}=e,i={root:["root",a,e.align!=="inherit"&&`align${Re(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return be(i,vd,s)},yd=ee("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Re(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>x({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),gs={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Cd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},wd=e=>Cd[e]||e,Sd=p.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTypography"}),o=wd(r.color),a=vl(x({},r,{color:o})),{align:s="inherit",className:i,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:f="body1",variantMapping:h=gs}=a,m=re(a,xd),v=x({},a,{align:s,color:o,className:i,component:l,gutterBottom:c,noWrap:u,paragraph:d,variant:f,variantMapping:h}),b=l||(d?"p":h[f]||gs[f])||"span",g=bd(v);return R.jsx(yd,x({as:b,ref:n,ownerState:v,className:ie(g.root,i)},m))}),Hn=Sd;function wl(e){return typeof e=="string"}function Bn(e,t,n){return e===void 0||wl(e)?t:x({},t,{ownerState:x({},t.ownerState,n)})}const Md={disableDefaultClasses:!1},Td=p.createContext(Md);function kd(e){const{disableDefaultClasses:t}=p.useContext(Td);return n=>t?"":e(n)}function Sl(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Pd(e,t,n){return typeof e=="function"?e(t,n):e}function vs(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function $d(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const h=ie(n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),m=x({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=x({},n,o,r);return h.length>0&&(v.className=h),Object.keys(m).length>0&&(v.style=m),{props:v,internalRef:void 0}}const s=Sl(x({},o,r)),i=vs(r),l=vs(o),c=t(s),u=ie(c==null?void 0:c.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),d=x({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=x({},c,n,l,i);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}const Ed=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ve(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,s=re(e,Ed),i=a?{}:Pd(r,o),{props:l,internalRef:c}=$d(x({},s,{externalSlotProps:i})),u=Me(c,i==null?void 0:i.ref,(t=e.additionalProps)==null?void 0:t.ref);return Bn(n,x({},l,{ref:u}),o)}const Dd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Rd(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Nd(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Od(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Nd(e))}function Ld(e){const t=[],n=[];return Array.from(e.querySelectorAll(Dd)).forEach((r,o)=>{const a=Rd(r);a===-1||!Od(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function _d(){return!0}function Id(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=Ld,isEnabled:s=_d,open:i}=e,l=p.useRef(!1),c=p.useRef(null),u=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=p.useRef(!1),m=p.useRef(null),v=Me(t.ref,m),b=p.useRef(null);p.useEffect(()=>{!i||!m.current||(h.current=!n)},[n,i]),p.useEffect(()=>{if(!i||!m.current)return;const w=_e(m.current);return m.current.contains(w.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[i]),p.useEffect(()=>{if(!i||!m.current)return;const w=_e(m.current),y=E=>{b.current=E,!(r||!s()||E.key!=="Tab")&&w.activeElement===m.current&&E.shiftKey&&(l.current=!0,u.current&&u.current.focus())},T=()=>{const E=m.current;if(E===null)return;if(!w.hasFocus()||!s()||l.current){l.current=!1;return}if(E.contains(w.activeElement)||r&&w.activeElement!==c.current&&w.activeElement!==u.current)return;if(w.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!h.current)return;let A=[];if((w.activeElement===c.current||w.activeElement===u.current)&&(A=a(m.current)),A.length>0){var I,D;const N=!!((I=b.current)!=null&&I.shiftKey&&((D=b.current)==null?void 0:D.key)==="Tab"),j=A[0],F=A[A.length-1];typeof j!="string"&&typeof F!="string"&&(N?F.focus():j.focus())}else E.focus()};w.addEventListener("focusin",T),w.addEventListener("keydown",y,!0);const P=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(P),w.removeEventListener("focusin",T),w.removeEventListener("keydown",y,!0)}},[n,r,o,s,i,a]);const g=w=>{d.current===null&&(d.current=w.relatedTarget),h.current=!0,f.current=w.target;const y=t.props.onFocus;y&&y(w)},k=w=>{d.current===null&&(d.current=w.relatedTarget),h.current=!0};return R.jsxs(p.Fragment,{children:[R.jsx("div",{tabIndex:i?0:-1,onFocus:k,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:v,onFocus:g}),R.jsx("div",{tabIndex:i?0:-1,onFocus:k,ref:u,"data-testid":"sentinelEnd"})]})}var Ie="top",rt="bottom",ot="right",Ae="left",sa="auto",Qn=[Ie,rt,ot,Ae],mn="start",Yn="end",Ad="clippingParents",Ml="viewport",Rn="popper",jd="reference",xs=Qn.reduce(function(e,t){return e.concat([t+"-"+mn,t+"-"+Yn])},[]),Tl=[].concat(Qn,[sa]).reduce(function(e,t){return e.concat([t,t+"-"+mn,t+"-"+Yn])},[]),Fd="beforeRead",Bd="read",Hd="afterRead",Wd="beforeMain",zd="main",Ud="afterMain",Vd="beforeWrite",Yd="write",Kd="afterWrite",Gd=[Fd,Bd,Hd,Wd,zd,Ud,Vd,Yd,Kd];function vt(e){return e?(e.nodeName||"").toLowerCase():null}function Ye(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zt(e){var t=Ye(e).Element;return e instanceof t||e instanceof Element}function et(e){var t=Ye(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ia(e){if(typeof ShadowRoot>"u")return!1;var t=Ye(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Xd(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!et(a)||!vt(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(s){var i=o[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})}function qd(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=s.reduce(function(l,c){return l[c]="",l},{});!et(o)||!vt(o)||(Object.assign(o.style,i),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const Zd={name:"applyStyles",enabled:!0,phase:"write",fn:Xd,effect:qd,requires:["computeStyles"]};function pt(e){return e.split("-")[0]}var Xt=Math.max,Pr=Math.min,gn=Math.round;function Io(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function kl(){return!/^((?!chrome|android).)*safari/i.test(Io())}function vn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&et(e)&&(o=e.offsetWidth>0&&gn(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&gn(r.height)/e.offsetHeight||1);var s=Zt(e)?Ye(e):window,i=s.visualViewport,l=!kl()&&n,c=(r.left+(l&&i?i.offsetLeft:0))/o,u=(r.top+(l&&i?i.offsetTop:0))/a,d=r.width/o,f=r.height/a;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function la(e){var t=vn(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Pl(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ia(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Mt(e){return Ye(e).getComputedStyle(e)}function Jd(e){return["table","td","th"].indexOf(vt(e))>=0}function It(e){return((Zt(e)?e.ownerDocument:e.document)||window.document).documentElement}function zr(e){return vt(e)==="html"?e:e.assignedSlot||e.parentNode||(ia(e)?e.host:null)||It(e)}function bs(e){return!et(e)||Mt(e).position==="fixed"?null:e.offsetParent}function Qd(e){var t=/firefox/i.test(Io()),n=/Trident/i.test(Io());if(n&&et(e)){var r=Mt(e);if(r.position==="fixed")return null}var o=zr(e);for(ia(o)&&(o=o.host);et(o)&&["html","body"].indexOf(vt(o))<0;){var a=Mt(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function er(e){for(var t=Ye(e),n=bs(e);n&&Jd(n)&&Mt(n).position==="static";)n=bs(n);return n&&(vt(n)==="html"||vt(n)==="body"&&Mt(n).position==="static")?t:n||Qd(e)||t}function ca(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wn(e,t,n){return Xt(e,Pr(t,n))}function ef(e,t,n){var r=Wn(e,t,n);return r>n?n:r}function $l(){return{top:0,right:0,bottom:0,left:0}}function El(e){return Object.assign({},$l(),e)}function Dl(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var tf=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,El(typeof t!="number"?t:Dl(t,Qn))};function nf(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,i=pt(n.placement),l=ca(i),c=[Ae,ot].indexOf(i)>=0,u=c?"height":"width";if(!(!a||!s)){var d=tf(o.padding,n),f=la(a),h=l==="y"?Ie:Ae,m=l==="y"?rt:ot,v=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],b=s[l]-n.rects.reference[l],g=er(a),k=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,w=v/2-b/2,y=d[h],T=k-f[u]-d[m],P=k/2-f[u]/2+w,E=Wn(y,P,T),A=l;n.modifiersData[r]=(t={},t[A]=E,t.centerOffset=E-P,t)}}function rf(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Pl(t.elements.popper,o)&&(t.elements.arrow=o))}const of={name:"arrow",enabled:!0,phase:"main",fn:nf,effect:rf,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xn(e){return e.split("-")[1]}var af={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sf(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:gn(n*o)/o||0,y:gn(r*o)/o||0}}function ys(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=s.x,h=f===void 0?0:f,m=s.y,v=m===void 0?0:m,b=typeof u=="function"?u({x:h,y:v}):{x:h,y:v};h=b.x,v=b.y;var g=s.hasOwnProperty("x"),k=s.hasOwnProperty("y"),w=Ae,y=Ie,T=window;if(c){var P=er(n),E="clientHeight",A="clientWidth";if(P===Ye(n)&&(P=It(n),Mt(P).position!=="static"&&i==="absolute"&&(E="scrollHeight",A="scrollWidth")),P=P,o===Ie||(o===Ae||o===ot)&&a===Yn){y=rt;var I=d&&P===T&&T.visualViewport?T.visualViewport.height:P[E];v-=I-r.height,v*=l?1:-1}if(o===Ae||(o===Ie||o===rt)&&a===Yn){w=ot;var D=d&&P===T&&T.visualViewport?T.visualViewport.width:P[A];h-=D-r.width,h*=l?1:-1}}var N=Object.assign({position:i},c&&af),j=u===!0?sf({x:h,y:v},Ye(n)):{x:h,y:v};if(h=j.x,v=j.y,l){var F;return Object.assign({},N,(F={},F[y]=k?"0":"",F[w]=g?"0":"",F.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",F))}return Object.assign({},N,(t={},t[y]=k?v+"px":"",t[w]=g?h+"px":"",t.transform="",t))}function lf(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,i=n.roundOffsets,l=i===void 0?!0:i,c={placement:pt(t.placement),variation:xn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ys(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ys(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const cf={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lf,data:{}};var lr={passive:!0};function uf(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,i=s===void 0?!0:s,l=Ye(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,lr)}),i&&l.addEventListener("resize",n.update,lr),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,lr)}),i&&l.removeEventListener("resize",n.update,lr)}}const df={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:uf,data:{}};var ff={left:"right",right:"left",bottom:"top",top:"bottom"};function Cr(e){return e.replace(/left|right|bottom|top/g,function(t){return ff[t]})}var pf={start:"end",end:"start"};function Cs(e){return e.replace(/start|end/g,function(t){return pf[t]})}function ua(e){var t=Ye(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function da(e){return vn(It(e)).left+ua(e).scrollLeft}function hf(e,t){var n=Ye(e),r=It(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;var c=kl();(c||!c&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i+da(e),y:l}}function mf(e){var t,n=It(e),r=ua(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Xt(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Xt(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+da(e),l=-r.scrollTop;return Mt(o||n).direction==="rtl"&&(i+=Xt(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}function fa(e){var t=Mt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Rl(e){return["html","body","#document"].indexOf(vt(e))>=0?e.ownerDocument.body:et(e)&&fa(e)?e:Rl(zr(e))}function zn(e,t){var n;t===void 0&&(t=[]);var r=Rl(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Ye(r),s=o?[a].concat(a.visualViewport||[],fa(r)?r:[]):r,i=t.concat(s);return o?i:i.concat(zn(zr(s)))}function Ao(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function gf(e,t){var n=vn(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function ws(e,t,n){return t===Ml?Ao(hf(e,n)):Zt(t)?gf(t,n):Ao(mf(It(e)))}function vf(e){var t=zn(zr(e)),n=["absolute","fixed"].indexOf(Mt(e).position)>=0,r=n&&et(e)?er(e):e;return Zt(r)?t.filter(function(o){return Zt(o)&&Pl(o,r)&&vt(o)!=="body"}):[]}function xf(e,t,n,r){var o=t==="clippingParents"?vf(e):[].concat(t),a=[].concat(o,[n]),s=a[0],i=a.reduce(function(l,c){var u=ws(e,c,r);return l.top=Xt(u.top,l.top),l.right=Pr(u.right,l.right),l.bottom=Pr(u.bottom,l.bottom),l.left=Xt(u.left,l.left),l},ws(e,s,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Nl(e){var t=e.reference,n=e.element,r=e.placement,o=r?pt(r):null,a=r?xn(r):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(o){case Ie:l={x:s,y:t.y-n.height};break;case rt:l={x:s,y:t.y+t.height};break;case ot:l={x:t.x+t.width,y:i};break;case Ae:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var c=o?ca(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case mn:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Yn:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Kn(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,i=n.boundary,l=i===void 0?Ad:i,c=n.rootBoundary,u=c===void 0?Ml:c,d=n.elementContext,f=d===void 0?Rn:d,h=n.altBoundary,m=h===void 0?!1:h,v=n.padding,b=v===void 0?0:v,g=El(typeof b!="number"?b:Dl(b,Qn)),k=f===Rn?jd:Rn,w=e.rects.popper,y=e.elements[m?k:f],T=xf(Zt(y)?y:y.contextElement||It(e.elements.popper),l,u,s),P=vn(e.elements.reference),E=Nl({reference:P,element:w,strategy:"absolute",placement:o}),A=Ao(Object.assign({},w,E)),I=f===Rn?A:P,D={top:T.top-I.top+g.top,bottom:I.bottom-T.bottom+g.bottom,left:T.left-I.left+g.left,right:I.right-T.right+g.right},N=e.modifiersData.offset;if(f===Rn&&N){var j=N[o];Object.keys(D).forEach(function(F){var O=[ot,rt].indexOf(F)>=0?1:-1,$=[Ie,rt].indexOf(F)>=0?"y":"x";D[F]+=j[$]*O})}return D}function bf(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Tl:l,u=xn(r),d=u?i?xs:xs.filter(function(m){return xn(m)===u}):Qn,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var h=f.reduce(function(m,v){return m[v]=Kn(e,{placement:v,boundary:o,rootBoundary:a,padding:s})[pt(v)],m},{});return Object.keys(h).sort(function(m,v){return h[m]-h[v]})}function yf(e){if(pt(e)===sa)return[];var t=Cr(e);return[Cs(e),t,Cs(t)]}function Cf(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,i=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,v=n.allowedAutoPlacements,b=t.options.placement,g=pt(b),k=g===b,w=l||(k||!m?[Cr(b)]:yf(b)),y=[b].concat(w).reduce(function(te,ne){return te.concat(pt(ne)===sa?bf(t,{placement:ne,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:v}):ne)},[]),T=t.rects.reference,P=t.rects.popper,E=new Map,A=!0,I=y[0],D=0;D=0,$=O?"width":"height",S=Kn(t,{placement:N,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),C=O?F?ot:Ae:F?rt:Ie;T[$]>P[$]&&(C=Cr(C));var M=Cr(C),L=[];if(a&&L.push(S[j]<=0),i&&L.push(S[C]<=0,S[M]<=0),L.every(function(te){return te})){I=N,A=!1;break}E.set(N,L)}if(A)for(var W=m?3:1,X=function(ne){var le=y.find(function(ge){var ue=E.get(ge);if(ue)return ue.slice(0,ne).every(function(z){return z})});if(le)return I=le,"break"},J=W;J>0;J--){var oe=X(J);if(oe==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const wf={name:"flip",enabled:!0,phase:"main",fn:Cf,requiresIfExists:["offset"],data:{_skip:!1}};function Ss(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ms(e){return[Ie,ot,rt,Ae].some(function(t){return e[t]>=0})}function Sf(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=Kn(t,{elementContext:"reference"}),i=Kn(t,{altBoundary:!0}),l=Ss(s,r),c=Ss(i,o,a),u=Ms(l),d=Ms(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const Mf={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Sf};function Tf(e,t,n){var r=pt(e),o=[Ae,Ie].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],i=a[1];return s=s||0,i=(i||0)*o,[Ae,ot].indexOf(r)>=0?{x:i,y:s}:{x:s,y:i}}function kf(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=Tl.reduce(function(u,d){return u[d]=Tf(d,t.rects,a),u},{}),i=s[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const Pf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kf};function $f(e){var t=e.state,n=e.name;t.modifiersData[n]=Nl({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Ef={name:"popperOffsets",enabled:!0,phase:"read",fn:$f,data:{}};function Df(e){return e==="x"?"y":"x"}function Rf(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,i=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,m=n.tetherOffset,v=m===void 0?0:m,b=Kn(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=pt(t.placement),k=xn(t.placement),w=!k,y=ca(g),T=Df(y),P=t.modifiersData.popperOffsets,E=t.rects.reference,A=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,D=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(P){if(a){var F,O=y==="y"?Ie:Ae,$=y==="y"?rt:ot,S=y==="y"?"height":"width",C=P[y],M=C+b[O],L=C-b[$],W=h?-A[S]/2:0,X=k===mn?E[S]:A[S],J=k===mn?-A[S]:-E[S],oe=t.elements.arrow,te=h&&oe?la(oe):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$l(),le=ne[O],ge=ne[$],ue=Wn(0,E[S],te[S]),z=w?E[S]/2-W-ue-le-D.mainAxis:X-ue-le-D.mainAxis,K=w?-E[S]/2+W+ue+ge+D.mainAxis:J+ue+ge+D.mainAxis,q=t.elements.arrow&&er(t.elements.arrow),_=q?y==="y"?q.clientTop||0:q.clientLeft||0:0,V=(F=N==null?void 0:N[y])!=null?F:0,Y=C+z-V-_,Z=C+K-V,ve=Wn(h?Pr(M,Y):M,C,h?Xt(L,Z):L);P[y]=ve,j[y]=ve-C}if(i){var me,ye=y==="x"?Ie:Ae,Ne=y==="x"?rt:ot,ke=P[T],je=T==="y"?"height":"width",Fe=ke+b[ye],Xe=ke-b[Ne],we=[Ie,Ae].indexOf(g)!==-1,xt=(me=N==null?void 0:N[T])!=null?me:0,qe=we?Fe:ke-E[je]-A[je]-xt+D.altAxis,jt=we?ke+E[je]+A[je]-xt-D.altAxis:Xe,Ft=h&&we?ef(qe,ke,jt):Wn(h?qe:Fe,ke,h?jt:Xe);P[T]=Ft,j[T]=Ft-ke}t.modifiersData[r]=j}}const Nf={name:"preventOverflow",enabled:!0,phase:"main",fn:Rf,requiresIfExists:["offset"]};function Of(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Lf(e){return e===Ye(e)||!et(e)?ua(e):Of(e)}function _f(e){var t=e.getBoundingClientRect(),n=gn(t.width)/e.offsetWidth||1,r=gn(t.height)/e.offsetHeight||1;return n!==1||r!==1}function If(e,t,n){n===void 0&&(n=!1);var r=et(t),o=et(t)&&_f(t),a=It(t),s=vn(e,o,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((vt(t)!=="body"||fa(a))&&(i=Lf(t)),et(t)?(l=vn(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=da(a))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function Af(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function jf(e){var t=Af(e);return Gd.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Ff(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Bf(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ts={placement:"bottom",modifiers:[],strategy:"absolute"};function ks(){for(var e=arguments.length,t=new Array(e),n=0;n{a||i(Uf(o)||document.body)},[o,a]),tt(()=>{if(s&&!a)return ls(n,s),()=>{ls(n,null)}},[n,s,a]),a){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return R.jsx(p.Fragment,{children:r})}return R.jsx(p.Fragment,{children:s&&Vu.createPortal(r,s)})});function Vf(e){return xe("MuiPopper",e)}he("MuiPopper",["root"]);const Yf=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Kf=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Gf(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function jo(e){return typeof e=="function"?e():e}function Xf(e){return e.nodeType!==void 0}const qf=()=>be({root:["root"]},kd(Vf)),Zf={},Jf=p.forwardRef(function(t,n){var r;const{anchorEl:o,children:a,direction:s,disablePortal:i,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:f,slotProps:h={},slots:m={},TransitionProps:v}=t,b=re(t,Yf),g=p.useRef(null),k=Me(g,n),w=p.useRef(null),y=Me(w,f),T=p.useRef(y);tt(()=>{T.current=y},[y]),p.useImperativeHandle(f,()=>w.current,[]);const P=Gf(u,s),[E,A]=p.useState(P),[I,D]=p.useState(jo(o));p.useEffect(()=>{w.current&&w.current.forceUpdate()}),p.useEffect(()=>{o&&D(jo(o))},[o]),tt(()=>{if(!I||!c)return;const $=M=>{A(M.placement)};let S=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:M})=>{$(M)}}];l!=null&&(S=S.concat(l)),d&&d.modifiers!=null&&(S=S.concat(d.modifiers));const C=zf(I,g.current,x({placement:P},d,{modifiers:S}));return T.current(C),()=>{C.destroy(),T.current(null)}},[I,i,l,c,d,P]);const N={placement:E};v!==null&&(N.TransitionProps=v);const j=qf(),F=(r=m.root)!=null?r:"div",O=Ve({elementType:F,externalSlotProps:h.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:k},ownerState:t,className:j.root});return R.jsx(F,x({},O,{children:typeof a=="function"?a(N):a}))}),Ll=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:s="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=Zf,popperRef:h,style:m,transition:v=!1,slotProps:b={},slots:g={}}=t,k=re(t,Kf),[w,y]=p.useState(!0),T=()=>{y(!1)},P=()=>{y(!0)};if(!l&&!u&&(!v||w))return null;let E;if(a)E=a;else if(r){const D=jo(r);E=D&&Xf(D)?_e(D).body:_e(null).body}const A=!u&&l&&(!v||w)?"none":void 0,I=v?{in:u,onEnter:T,onExited:P}:void 0;return R.jsx(Ol,{disablePortal:i,container:E,children:R.jsx(Jf,x({anchorEl:r,direction:s,disablePortal:i,modifiers:c,ref:n,open:v?!w:u,placement:d,popperOptions:f,popperRef:h,slotProps:b,slots:g},k,{style:x({position:"fixed",top:0,left:0,display:A},m),TransitionProps:I,children:o}))})});function Qf(e){const t=_e(e);return t.body===e?gt(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Un(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ps(e){return parseInt(gt(e).getComputedStyle(e).paddingRight,10)||0}function ep(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function $s(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,s=>{const i=a.indexOf(s)===-1,l=!ep(s);i&&l&&Un(s,o)})}function ao(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function tp(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Qf(r)){const s=ml(_e(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Ps(r)+s}px`;const i=_e(r).querySelectorAll(".mui-fixed");[].forEach.call(i,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Ps(l)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=_e(r).body;else{const s=r.parentElement,i=gt(r);a=(s==null?void 0:s.nodeName)==="HTML"&&i.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:i})=>{a?s.style.setProperty(i,a):s.style.removeProperty(i)})}}function np(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class rp{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Un(t.modalRef,!1);const o=np(n);$s(n,t.mount,t.modalRef,o,!0);const a=ao(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=ao(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=tp(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=ao(this.containers,s=>s.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Un(t.modalRef,n),$s(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&Un(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function op(e){return typeof e=="function"?e():e}function ap(e){return e?e.props.hasOwnProperty("in"):!1}const sp=new rp;function ip(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=sp,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:i,children:l,onClose:c,open:u,rootRef:d}=e,f=p.useRef({}),h=p.useRef(null),m=p.useRef(null),v=Me(m,d),[b,g]=p.useState(!u),k=ap(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const y=()=>_e(h.current),T=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),P=()=>{o.mount(T(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=dn(()=>{const S=op(t)||y().body;o.add(T(),S),m.current&&P()}),A=p.useCallback(()=>o.isTopModal(T()),[o]),I=dn(S=>{h.current=S,S&&(u&&A()?P():m.current&&Un(m.current,w))}),D=p.useCallback(()=>{o.remove(T(),w)},[w,o]);p.useEffect(()=>()=>{D()},[D]),p.useEffect(()=>{u?E():(!k||!a)&&D()},[u,D,k,a,E]);const N=S=>C=>{var M;(M=S.onKeyDown)==null||M.call(S,C),!(C.key!=="Escape"||C.which===229||!A())&&(n||(C.stopPropagation(),c&&c(C,"escapeKeyDown")))},j=S=>C=>{var M;(M=S.onClick)==null||M.call(S,C),C.target===C.currentTarget&&c&&c(C,"backdropClick")};return{getRootProps:(S={})=>{const C=Sl(e);delete C.onTransitionEnter,delete C.onTransitionExited;const M=x({},C,S);return x({role:"presentation"},M,{onKeyDown:N(M),ref:v})},getBackdropProps:(S={})=>{const C=S;return x({"aria-hidden":!0},C,{onClick:j(C),open:u})},getTransitionProps:()=>{const S=()=>{g(!1),s&&s()},C=()=>{g(!0),i&&i(),a&&D()};return{onEnter:fs(S,l==null?void 0:l.props.onEnter),onExited:fs(C,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:I,isTopModal:A,exited:b,hasTransition:k}}function lp(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,a]=p.useState(!1);return tt(()=>{n||a(!0)},[n]),p.useEffect(()=>{n&&a(!0)},[n]),R.jsx(p.Fragment,{children:o?t:r})}const cp=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],up=ee(Ll,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dp=p.forwardRef(function(t,n){var r;const o=rl(),a=Te({props:t,name:"MuiPopper"}),{anchorEl:s,component:i,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:f,modifiers:h,open:m,placement:v,popperOptions:b,popperRef:g,transition:k,slots:w,slotProps:y}=a,T=re(a,cp),P=(r=w==null?void 0:w.root)!=null?r:l==null?void 0:l.Root,E=x({anchorEl:s,container:u,disablePortal:d,keepMounted:f,modifiers:h,open:m,placement:v,popperOptions:b,popperRef:g,transition:k},T);return R.jsx(up,x({as:i,direction:o==null?void 0:o.direction,slots:{root:P},slotProps:y??c},E,{ref:n}))}),_l=dp,fp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pp={entering:{opacity:1},entered:{opacity:1}},hp=p.forwardRef(function(t,n){const r=Ge(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:i,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:h,onExited:m,onExiting:v,style:b,timeout:g=o,TransitionComponent:k=oa}=t,w=re(t,fp),y=p.useRef(null),T=Me(y,i.ref,n),P=O=>$=>{if(O){const S=y.current;$===void 0?O(S):O(S,$)}},E=P(f),A=P((O,$)=>{aa(O);const S=hn({style:b,timeout:g,easing:l},{mode:"enter"});O.style.webkitTransition=r.transitions.create("opacity",S),O.style.transition=r.transitions.create("opacity",S),u&&u(O,$)}),I=P(d),D=P(v),N=P(O=>{const $=hn({style:b,timeout:g,easing:l},{mode:"exit"});O.style.webkitTransition=r.transitions.create("opacity",$),O.style.transition=r.transitions.create("opacity",$),h&&h(O)}),j=P(m),F=O=>{a&&a(y.current,O)};return R.jsx(k,x({appear:s,in:c,nodeRef:y,onEnter:A,onEntered:I,onEntering:E,onExit:N,onExited:j,onExiting:D,addEndListener:F,timeout:g},w,{children:(O,$)=>p.cloneElement(i,x({style:x({opacity:0,visibility:O==="exited"&&!c?"hidden":void 0},pp[O],b,i.props.style),ref:T},$))}))}),Il=hp;function mp(e){return xe("MuiBackdrop",e)}he("MuiBackdrop",["root","invisible"]);const gp=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],vp=e=>{const{classes:t,invisible:n}=e;return be({root:["root",n&&"invisible"]},mp,t)},xp=ee("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>x({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"},e.invisible&&{backgroundColor:"transparent"})),bp=p.forwardRef(function(t,n){var r,o,a;const s=Te({props:t,name:"MuiBackdrop"}),{children:i,className:l,component:c="div",components:u={},componentsProps:d={},invisible:f=!1,open:h,slotProps:m={},slots:v={},TransitionComponent:b=Il,transitionDuration:g}=s,k=re(s,gp),w=x({},s,{component:c,invisible:f}),y=vp(w),T=(r=m.root)!=null?r:d.root;return R.jsx(b,x({in:h,timeout:g},k,{children:R.jsx(xp,x({"aria-hidden":!0},T,{as:(o=(a=v.root)!=null?a:u.Root)!=null?o:c,className:ie(y.root,l,T==null?void 0:T.className),ownerState:x({},w,T==null?void 0:T.ownerState),classes:y,ref:n,children:i}))}))}),Al=bp,yp=he("MuiBox",["root"]),Cp=yp,wp=al(),Sp=xl({themeId:Tr,defaultTheme:wp,defaultClassName:Cp.root,generateClassName:nl.generate}),Mp=Sp;function Tp(e){return xe("MuiModal",e)}he("MuiModal",["root","hidden","backdrop"]);const kp=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Pp=e=>{const{open:t,exited:n,classes:r}=e;return be({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Tp,r)},$p=ee("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>x({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Ep=ee(Al,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Dp=p.forwardRef(function(t,n){var r,o,a,s,i,l;const c=Te({name:"MuiModal",props:t}),{BackdropComponent:u=Ep,BackdropProps:d,className:f,closeAfterTransition:h=!1,children:m,container:v,component:b,components:g={},componentsProps:k={},disableAutoFocus:w=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:T=!1,disablePortal:P=!1,disableRestoreFocus:E=!1,disableScrollLock:A=!1,hideBackdrop:I=!1,keepMounted:D=!1,onBackdropClick:N,open:j,slotProps:F,slots:O}=c,$=re(c,kp),S=x({},c,{closeAfterTransition:h,disableAutoFocus:w,disableEnforceFocus:y,disableEscapeKeyDown:T,disablePortal:P,disableRestoreFocus:E,disableScrollLock:A,hideBackdrop:I,keepMounted:D}),{getRootProps:C,getBackdropProps:M,getTransitionProps:L,portalRef:W,isTopModal:X,exited:J,hasTransition:oe}=ip(x({},S,{rootRef:n})),te=x({},S,{exited:J}),ne=Pp(te),le={};if(m.props.tabIndex===void 0&&(le.tabIndex="-1"),oe){const{onEnter:V,onExited:Y}=L();le.onEnter=V,le.onExited=Y}const ge=(r=(o=O==null?void 0:O.root)!=null?o:g.Root)!=null?r:$p,ue=(a=(s=O==null?void 0:O.backdrop)!=null?s:g.Backdrop)!=null?a:u,z=(i=F==null?void 0:F.root)!=null?i:k.root,K=(l=F==null?void 0:F.backdrop)!=null?l:k.backdrop,q=Ve({elementType:ge,externalSlotProps:z,externalForwardedProps:$,getSlotProps:C,additionalProps:{ref:n,as:b},ownerState:te,className:ie(f,z==null?void 0:z.className,ne==null?void 0:ne.root,!te.open&&te.exited&&(ne==null?void 0:ne.hidden))}),_=Ve({elementType:ue,externalSlotProps:K,additionalProps:d,getSlotProps:V=>M(x({},V,{onClick:Y=>{N&&N(Y),V!=null&&V.onClick&&V.onClick(Y)}})),className:ie(K==null?void 0:K.className,d==null?void 0:d.className,ne==null?void 0:ne.backdrop),ownerState:te});return!D&&!j&&(!oe||J)?null:R.jsx(Ol,{ref:W,container:v,disablePortal:P,children:R.jsxs(ge,x({},q,{children:[!I&&u?R.jsx(ue,x({},_)):null,R.jsx(Id,{disableEnforceFocus:y,disableAutoFocus:w,disableRestoreFocus:E,isEnabled:X,open:j,children:p.cloneElement(m,le)})]}))})}),pa=Dp;function Rp(e){return xe("MuiDialog",e)}const Np=he("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),so=Np,Op=p.createContext({}),jl=Op,Lp=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],_p=ee(Al,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Ip=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${Re(n)}`],paper:["paper",`paperScroll${Re(n)}`,`paperWidth${Re(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return be(s,Rp,t)},Ap=ee(pa,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),jp=ee("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Re(n.scroll)}`]]}})(({ownerState:e})=>x({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Fp=ee(Br,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Re(n.scroll)}`],t[`paperWidth${Re(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>x({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${so.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${so.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${so.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Bp=p.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialog"}),o=Ge(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":i,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:f=!1,fullScreen:h=!1,fullWidth:m=!1,maxWidth:v="sm",onBackdropClick:b,onClose:g,open:k,PaperComponent:w=Br,PaperProps:y={},scroll:T="paper",TransitionComponent:P=Il,transitionDuration:E=a,TransitionProps:A}=r,I=re(r,Lp),D=x({},r,{disableEscapeKeyDown:f,fullScreen:h,fullWidth:m,maxWidth:v,scroll:T}),N=Ip(D),j=p.useRef(),F=C=>{j.current=C.target===C.currentTarget},O=C=>{j.current&&(j.current=null,b&&b(C),g&&g(C,"backdropClick"))},$=Jn(i),S=p.useMemo(()=>({titleId:$}),[$]);return R.jsx(Ap,x({className:ie(N.root,d),closeAfterTransition:!0,components:{Backdrop:_p},componentsProps:{backdrop:x({transitionDuration:E,as:l},c)},disableEscapeKeyDown:f,onClose:g,open:k,ref:n,onClick:O,ownerState:D},I,{children:R.jsx(P,x({appear:!0,in:k,timeout:E,role:"presentation"},A,{children:R.jsx(jp,{className:ie(N.container),onMouseDown:F,ownerState:D,children:R.jsx(Fp,x({as:w,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":$},y,{className:ie(N.paper,y.className),ownerState:D,children:R.jsx(jl.Provider,{value:S,children:u})}))})}))}))}),Fl=Bp;function Hp(e){return xe("MuiDialogActions",e)}he("MuiDialogActions",["root","spacing"]);const Wp=["className","disableSpacing"],zp=e=>{const{classes:t,disableSpacing:n}=e;return be({root:["root",!n&&"spacing"]},Hp,t)},Up=ee("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>x({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Vp=p.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=r,s=re(r,Wp),i=x({},r,{disableSpacing:a}),l=zp(i);return R.jsx(Up,x({className:ie(l.root,o),ownerState:i,ref:n},s))}),Yp=Vp;function Kp(e){return xe("MuiDialogContent",e)}he("MuiDialogContent",["root","dividers"]);function Gp(e){return xe("MuiDialogTitle",e)}const Xp=he("MuiDialogTitle",["root"]),qp=Xp,Zp=["className","dividers"],Jp=e=>{const{classes:t,dividers:n}=e;return be({root:["root",n&&"dividers"]},Kp,t)},Qp=ee("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>x({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${qp.root} + &`]:{paddingTop:0}})),eh=p.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=r,s=re(r,Zp),i=x({},r,{dividers:a}),l=Jp(i);return R.jsx(Qp,x({className:ie(l.root,o),ownerState:i,ref:n},s))}),th=eh;function nh(e){return xe("MuiDialogContentText",e)}he("MuiDialogContentText",["root"]);const rh=["children","className"],oh=e=>{const{classes:t}=e,r=be({root:["root"]},nh,t);return x({},t,r)},ah=ee(Hn,{shouldForwardProp:e=>Hr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sh=p.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialogContentText"}),{className:o}=r,a=re(r,rh),s=oh(a);return R.jsx(ah,x({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:a,className:ie(s.root,o)},r,{classes:s}))}),ih=sh,lh=["className","id"],ch=e=>{const{classes:t}=e;return be({root:["root"]},Gp,t)},uh=ee(Hn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),dh=p.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,s=re(r,lh),i=r,l=ch(i),{titleId:c=a}=p.useContext(jl);return R.jsx(uh,x({component:"h2",className:ie(l.root,o),ownerState:i,ref:n,variant:"h6",id:a??c},s))}),fh=dh;function YS(e){return xe("MuiDivider",e)}const ph=he("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Es=ph,hh=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function mh(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),a=gt(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const c=a.getComputedStyle(t);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let i=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");i=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+i-r.left}px)`:`translateX(${a.innerWidth+i-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-i}px)`:`translateX(-${r.left+r.width-i}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function gh(e){return typeof e=="function"?e():e}function cr(e,t,n){const r=gh(n),o=mh(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const vh=p.forwardRef(function(t,n){const r=Ge(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:l,container:c,direction:u="down",easing:d=o,in:f,onEnter:h,onEntered:m,onEntering:v,onExit:b,onExited:g,onExiting:k,style:w,timeout:y=a,TransitionComponent:T=oa}=t,P=re(t,hh),E=p.useRef(null),A=Me(l.ref,E,n),I=M=>L=>{M&&(L===void 0?M(E.current):M(E.current,L))},D=I((M,L)=>{cr(u,M,c),aa(M),h&&h(M,L)}),N=I((M,L)=>{const W=hn({timeout:y,style:w,easing:d},{mode:"enter"});M.style.webkitTransition=r.transitions.create("-webkit-transform",x({},W)),M.style.transition=r.transitions.create("transform",x({},W)),M.style.webkitTransform="none",M.style.transform="none",v&&v(M,L)}),j=I(m),F=I(k),O=I(M=>{const L=hn({timeout:y,style:w,easing:d},{mode:"exit"});M.style.webkitTransition=r.transitions.create("-webkit-transform",L),M.style.transition=r.transitions.create("transform",L),cr(u,M,c),b&&b(M)}),$=I(M=>{M.style.webkitTransition="",M.style.transition="",g&&g(M)}),S=M=>{s&&s(E.current,M)},C=p.useCallback(()=>{E.current&&cr(u,E.current,c)},[u,c]);return p.useEffect(()=>{if(f||u==="down"||u==="right")return;const M=Wr(()=>{E.current&&cr(u,E.current,c)}),L=gt(E.current);return L.addEventListener("resize",M),()=>{M.clear(),L.removeEventListener("resize",M)}},[u,f,c]),p.useEffect(()=>{f||C()},[f,C]),R.jsx(T,x({nodeRef:E,onEnter:D,onEntered:j,onEntering:N,onExit:O,onExited:$,onExiting:F,addEndListener:S,appear:i,in:f,timeout:y},P,{children:(M,L)=>p.cloneElement(l,x({ref:A,style:x({visibility:M==="exited"&&!f?"hidden":void 0},w,l.props.style)},L))}))}),xh=vh;function bh(e){return xe("MuiDrawer",e)}he("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const yh=["BackdropProps"],Ch=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Bl=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},wh=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Re(n)}`,r!=="temporary"&&`paperAnchorDocked${Re(n)}`]};return be(o,bh,t)},Sh=ee(pa,{name:"MuiDrawer",slot:"Root",overridesResolver:Bl})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),Ds=ee("div",{shouldForwardProp:Hr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Bl})({flex:"0 0 auto"}),Mh=ee(Br,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Re(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Re(n.anchor)}`]]}})(({theme:e,ownerState:t})=>x({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Hl={left:"right",right:"left",top:"down",bottom:"up"};function Th(e){return["left","right"].indexOf(e)!==-1}function kh(e,t){return e.direction==="rtl"&&Th(t)?Hl[t]:t}const Ph=p.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDrawer"}),o=Ge(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:i,children:l,className:c,elevation:u=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:f}={},onClose:h,open:m=!1,PaperProps:v={},SlideProps:b,TransitionComponent:g=xh,transitionDuration:k=a,variant:w="temporary"}=r,y=re(r.ModalProps,yh),T=re(r,Ch),P=p.useRef(!1);p.useEffect(()=>{P.current=!0},[]);const E=kh(o,s),I=x({},r,{anchor:s,elevation:u,open:m,variant:w},T),D=wh(I),N=R.jsx(Mh,x({elevation:w==="temporary"?u:0,square:!0},v,{className:ie(D.paper,v.className),ownerState:I,children:l}));if(w==="permanent")return R.jsx(Ds,x({className:ie(D.root,D.docked,c),ownerState:I,ref:n},T,{children:N}));const j=R.jsx(g,x({in:m,direction:Hl[E],timeout:k,appear:P.current},b,{children:N}));return w==="persistent"?R.jsx(Ds,x({className:ie(D.root,D.docked,c),ownerState:I,ref:n},T,{children:j})):R.jsx(Sh,x({BackdropProps:x({},i,f,{transitionDuration:k}),className:ie(D.root,D.modal,c),open:m,ownerState:I,onClose:h,hideBackdrop:d,ref:n},T,y,{children:j}))}),$h=Ph,Eh=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Fo(e){return`scale(${e}, ${e**2})`}const Dh={entering:{opacity:1,transform:Fo(1)},entered:{opacity:1,transform:"none"}},io=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Wl=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:s,in:i,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:h,style:m,timeout:v="auto",TransitionComponent:b=oa}=t,g=re(t,Eh),k=p.useRef(),w=p.useRef(),y=Ge(),T=p.useRef(null),P=Me(T,a.ref,n),E=$=>S=>{if($){const C=T.current;S===void 0?$(C):$(C,S)}},A=E(u),I=E(($,S)=>{aa($);const{duration:C,delay:M,easing:L}=hn({style:m,timeout:v,easing:s},{mode:"enter"});let W;v==="auto"?(W=y.transitions.getAutoHeightDuration($.clientHeight),w.current=W):W=C,$.style.transition=[y.transitions.create("opacity",{duration:W,delay:M}),y.transitions.create("transform",{duration:io?W:W*.666,delay:M,easing:L})].join(","),l&&l($,S)}),D=E(c),N=E(h),j=E($=>{const{duration:S,delay:C,easing:M}=hn({style:m,timeout:v,easing:s},{mode:"exit"});let L;v==="auto"?(L=y.transitions.getAutoHeightDuration($.clientHeight),w.current=L):L=S,$.style.transition=[y.transitions.create("opacity",{duration:L,delay:C}),y.transitions.create("transform",{duration:io?L:L*.666,delay:io?C:C||L*.333,easing:M})].join(","),$.style.opacity=0,$.style.transform=Fo(.75),d&&d($)}),F=E(f),O=$=>{v==="auto"&&(k.current=setTimeout($,w.current||0)),r&&r(T.current,$)};return p.useEffect(()=>()=>{clearTimeout(k.current)},[]),R.jsx(b,x({appear:o,in:i,nodeRef:T,onEnter:I,onEntered:D,onEntering:A,onExit:j,onExited:F,onExiting:N,addEndListener:O,timeout:v==="auto"?null:v},g,{children:($,S)=>p.cloneElement(a,x({style:x({opacity:0,transform:Fo(.75),visibility:$==="exited"&&!i?"hidden":void 0},Dh[$],m,a.props.style),ref:P},S))}))});Wl.muiSupportAuto=!0;const Bo=Wl,Rh=p.createContext({}),Ho=Rh;function Nh(e){return xe("MuiList",e)}he("MuiList",["root","padding","dense","subheader"]);const Oh=["children","className","component","dense","disablePadding","subheader"],Lh=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return be({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Nh,t)},_h=ee("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>x({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Ih=p.forwardRef(function(t,n){const r=Te({props:t,name:"MuiList"}),{children:o,className:a,component:s="ul",dense:i=!1,disablePadding:l=!1,subheader:c}=r,u=re(r,Oh),d=p.useMemo(()=>({dense:i}),[i]),f=x({},r,{component:s,dense:i,disablePadding:l}),h=Lh(f);return R.jsx(Ho.Provider,{value:d,children:R.jsxs(_h,x({as:s,className:ie(h.root,a),ref:n,ownerState:f},u,{children:[c,o]}))})}),Ah=Ih,jh=he("MuiListItemIcon",["root","alignItemsFlexStart"]),Rs=jh,Fh=he("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ns=Fh,Bh=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lo(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Os(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function zl(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Nn(e,t,n,r,o,a){let s=!1,i=o(e,t,t?n:!1);for(;i;){if(i===e.firstChild){if(s)return!1;s=!0}const l=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!zl(i,a)||l)i=o(e,i,n);else return i.focus(),!0}return!1}const Hh=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:s,className:i,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=t,f=re(t,Bh),h=p.useRef(null),m=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});tt(()=>{o&&h.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,y)=>{const T=!h.current.style.width;if(w.clientHeight{const y=h.current,T=w.key,P=_e(y).activeElement;if(T==="ArrowDown")w.preventDefault(),Nn(y,P,c,l,lo);else if(T==="ArrowUp")w.preventDefault(),Nn(y,P,c,l,Os);else if(T==="Home")w.preventDefault(),Nn(y,null,c,l,lo);else if(T==="End")w.preventDefault(),Nn(y,null,c,l,Os);else if(T.length===1){const E=m.current,A=T.toLowerCase(),I=performance.now();E.keys.length>0&&(I-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&A!==E.keys[0]&&(E.repeating=!1)),E.lastTime=I,E.keys.push(A);const D=P&&!E.repeating&&zl(P,E);E.previousKeyMatched&&(D||Nn(y,P,!1,l,lo,E))?w.preventDefault():E.previousKeyMatched=!1}u&&u(w)},b=Me(h,n);let g=-1;p.Children.forEach(s,(w,y)=>{if(!p.isValidElement(w)){g===y&&(g+=1,g>=s.length&&(g=-1));return}w.props.disabled||(d==="selectedMenu"&&w.props.selected||g===-1)&&(g=y),g===y&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1))});const k=p.Children.map(s,(w,y)=>{if(y===g){const T={};return a&&(T.autoFocus=!0),w.props.tabIndex===void 0&&d==="selectedMenu"&&(T.tabIndex=0),p.cloneElement(w,T)}return w});return R.jsx(Ah,x({role:"menu",ref:b,className:i,onKeyDown:v,tabIndex:o?0:-1},f,{children:k}))}),Wh=Hh;function zh(e){return xe("MuiPopover",e)}he("MuiPopover",["root","paper"]);const Uh=["onEntering"],Vh=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Yh=["slotProps"];function Ls(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function _s(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Is(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function co(e){return typeof e=="function"?e():e}const Kh=e=>{const{classes:t}=e;return be({root:["root"],paper:["paper"]},zh,t)},Gh=ee(pa,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ul=ee(Br,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Xh=p.forwardRef(function(t,n){var r,o,a;const s=Te({props:t,name:"MuiPopover"}),{action:i,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:f,className:h,container:m,elevation:v=8,marginThreshold:b=16,open:g,PaperProps:k={},slots:w,slotProps:y,transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:P=Bo,transitionDuration:E="auto",TransitionProps:{onEntering:A}={},disableScrollLock:I=!1}=s,D=re(s.TransitionProps,Uh),N=re(s,Vh),j=(r=y==null?void 0:y.paper)!=null?r:k,F=p.useRef(),O=Me(F,j.ref),$=x({},s,{anchorOrigin:c,anchorReference:d,elevation:v,marginThreshold:b,externalPaperSlotProps:j,transformOrigin:T,TransitionComponent:P,transitionDuration:E,TransitionProps:D}),S=Kh($),C=p.useCallback(()=>{if(d==="anchorPosition")return u;const V=co(l),Z=(V&&V.nodeType===1?V:_e(F.current).body).getBoundingClientRect();return{top:Z.top+Ls(Z,c.vertical),left:Z.left+_s(Z,c.horizontal)}},[l,c.horizontal,c.vertical,u,d]),M=p.useCallback(V=>({vertical:Ls(V,T.vertical),horizontal:_s(V,T.horizontal)}),[T.horizontal,T.vertical]),L=p.useCallback(V=>{const Y={width:V.offsetWidth,height:V.offsetHeight},Z=M(Y);if(d==="none")return{top:null,left:null,transformOrigin:Is(Z)};const ve=C();let me=ve.top-Z.vertical,ye=ve.left-Z.horizontal;const Ne=me+Y.height,ke=ye+Y.width,je=gt(co(l)),Fe=je.innerHeight-b,Xe=je.innerWidth-b;if(b!==null&&meFe){const we=Ne-Fe;me-=we,Z.vertical+=we}if(b!==null&&yeXe){const we=ke-Xe;ye-=we,Z.horizontal+=we}return{top:`${Math.round(me)}px`,left:`${Math.round(ye)}px`,transformOrigin:Is(Z)}},[l,d,C,M,b]),[W,X]=p.useState(g),J=p.useCallback(()=>{const V=F.current;if(!V)return;const Y=L(V);Y.top!==null&&(V.style.top=Y.top),Y.left!==null&&(V.style.left=Y.left),V.style.transformOrigin=Y.transformOrigin,X(!0)},[L]);p.useEffect(()=>(I&&window.addEventListener("scroll",J),()=>window.removeEventListener("scroll",J)),[l,I,J]);const oe=(V,Y)=>{A&&A(V,Y),J()},te=()=>{X(!1)};p.useEffect(()=>{g&&J()}),p.useImperativeHandle(i,()=>g?{updatePosition:()=>{J()}}:null,[g,J]),p.useEffect(()=>{if(!g)return;const V=Wr(()=>{J()}),Y=gt(l);return Y.addEventListener("resize",V),()=>{V.clear(),Y.removeEventListener("resize",V)}},[l,g,J]);let ne=E;E==="auto"&&!P.muiSupportAuto&&(ne=void 0);const le=m||(l?_e(co(l)).body:void 0),ge=(o=w==null?void 0:w.root)!=null?o:Gh,ue=(a=w==null?void 0:w.paper)!=null?a:Ul,z=Ve({elementType:ue,externalSlotProps:x({},j,{style:W?j.style:x({},j.style,{opacity:0})}),additionalProps:{elevation:v,ref:O},ownerState:$,className:ie(S.paper,j==null?void 0:j.className)}),K=Ve({elementType:ge,externalSlotProps:(y==null?void 0:y.root)||{},externalForwardedProps:N,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:le,open:g},ownerState:$,className:ie(S.root,h)}),{slotProps:q}=K,_=re(K,Yh);return R.jsx(ge,x({},_,!wl(ge)&&{slotProps:q,disableScrollLock:I},{children:R.jsx(P,x({appear:!0,in:g,onEntering:oe,onExited:te,timeout:ne},D,{children:R.jsx(ue,x({},z,{children:f}))}))}))}),qh=Xh;function Zh(e){return xe("MuiMenu",e)}he("MuiMenu",["root","paper","list"]);const Jh=["onEntering"],Qh=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],em={vertical:"top",horizontal:"right"},tm={vertical:"top",horizontal:"left"},nm=e=>{const{classes:t}=e;return be({root:["root"],paper:["paper"],list:["list"]},Zh,t)},rm=ee(qh,{shouldForwardProp:e=>Hr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),om=ee(Ul,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),am=ee(Wh,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),sm=p.forwardRef(function(t,n){var r,o;const a=Te({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:i,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:f,PaperProps:h={},PopoverClasses:m,transitionDuration:v="auto",TransitionProps:{onEntering:b}={},variant:g="selectedMenu",slots:k={},slotProps:w={}}=a,y=re(a.TransitionProps,Jh),T=re(a,Qh),P=Ge(),E=P.direction==="rtl",A=x({},a,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:u,onEntering:b,PaperProps:h,transitionDuration:v,TransitionProps:y,variant:g}),I=nm(A),D=s&&!c&&f,N=p.useRef(null),j=(L,W)=>{N.current&&N.current.adjustStyleForScrollbar(L,P),b&&b(L,W)},F=L=>{L.key==="Tab"&&(L.preventDefault(),d&&d(L,"tabKeyDown"))};let O=-1;p.Children.map(i,(L,W)=>{p.isValidElement(L)&&(L.props.disabled||(g==="selectedMenu"&&L.props.selected||O===-1)&&(O=W))});const $=(r=k.paper)!=null?r:om,S=(o=w.paper)!=null?o:h,C=Ve({elementType:k.root,externalSlotProps:w.root,ownerState:A,className:[I.root,l]}),M=Ve({elementType:$,externalSlotProps:S,ownerState:A,className:I.paper});return R.jsx(rm,x({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?em:tm,slots:{paper:$,root:k.root},slotProps:{root:C,paper:M},open:f,ref:n,transitionDuration:v,TransitionProps:x({onEntering:j},y),ownerState:A},T,{classes:m,children:R.jsx(am,x({onKeyDown:F,actions:N,autoFocus:s&&(O===-1||c),autoFocusItem:D,variant:g},u,{className:ie(I.list,u.className),children:i}))}))}),Vl=sm;function im(e){return xe("MuiMenuItem",e)}const lm=he("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),On=lm,cm=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],um=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},dm=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:s}=e,l=be({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},im,s);return x({},s,l)},fm=ee(Jo,{shouldForwardProp:e=>Hr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:um})(({theme:e,ownerState:t})=>x({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${On.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:un(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${On.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:un(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${On.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:un(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:un(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${On.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${On.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Es.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Es.inset}`]:{marginLeft:52},[`& .${Ns.root}`]:{marginTop:0,marginBottom:0},[`& .${Ns.inset}`]:{paddingLeft:36},[`& .${Rs.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&x({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Rs.root} svg`]:{fontSize:"1.25rem"}}))),pm=p.forwardRef(function(t,n){const r=Te({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:s=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f}=r,h=re(r,cm),m=p.useContext(Ho),v=p.useMemo(()=>({dense:s||m.dense||!1,disableGutters:l}),[m.dense,s,l]),b=p.useRef(null);tt(()=>{o&&b.current&&b.current.focus()},[o]);const g=x({},r,{dense:v.dense,divider:i,disableGutters:l}),k=dm(r),w=Me(b,n);let y;return r.disabled||(y=d!==void 0?d:-1),R.jsx(Ho.Provider,{value:v,children:R.jsx(fm,x({ref:w,role:u,tabIndex:y,component:a,focusVisibleClassName:ie(k.focusVisible,c),className:ie(k.root,f)},h,{ownerState:g,classes:k}))})}),hm=pm;function mm(e){return xe("MuiTooltip",e)}const gm=he("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Rt=gm,vm=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function xm(e){return Math.round(e*1e5)/1e5}const bm=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Re(a.split("-")[0])}`],arrow:["arrow"]};return be(s,mm,t)},ym=ee(_l,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>x({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Rt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Rt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Rt.arrow}`]:x({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Rt.arrow}`]:x({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Cm=ee("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Re(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>x({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:un(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${xm(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Rt.popper}[data-popper-placement*="left"] &`]:x({transformOrigin:"right center"},t.isRtl?x({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):x({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Rt.popper}[data-popper-placement*="right"] &`]:x({transformOrigin:"left center"},t.isRtl?x({marginRight:"14px"},t.touch&&{marginRight:"24px"}):x({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Rt.popper}[data-popper-placement*="top"] &`]:x({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Rt.popper}[data-popper-placement*="bottom"] &`]:x({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),wm=ee("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:un(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ur=!1,uo=null,Ln={x:0,y:0};function dr(e,t){return n=>{t&&t(n),e(n)}}const Sm=p.forwardRef(function(t,n){var r,o,a,s,i,l,c,u,d,f,h,m,v,b,g,k,w,y,T;const P=Te({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:A,components:I={},componentsProps:D={},describeChild:N=!1,disableFocusListener:j=!1,disableHoverListener:F=!1,disableInteractive:O=!1,disableTouchListener:$=!1,enterDelay:S=100,enterNextDelay:C=0,enterTouchDelay:M=700,followCursor:L=!1,id:W,leaveDelay:X=0,leaveTouchDelay:J=1500,onClose:oe,onOpen:te,open:ne,placement:le="bottom",PopperComponent:ge,PopperProps:ue={},slotProps:z={},slots:K={},title:q,TransitionComponent:_=Bo,TransitionProps:V}=P,Y=re(P,vm),Z=p.isValidElement(A)?A:R.jsx("span",{children:A}),ve=Ge(),me=ve.direction==="rtl",[ye,Ne]=p.useState(),[ke,je]=p.useState(null),Fe=p.useRef(!1),Xe=O||L,we=p.useRef(),xt=p.useRef(),qe=p.useRef(),jt=p.useRef(),[Ft,Bt]=pl({controlled:ne,default:!1,name:"Tooltip",state:"open"});let Ze=Ft;const Et=Jn(W),Ht=p.useRef(),nn=p.useCallback(()=>{Ht.current!==void 0&&(document.body.style.WebkitUserSelect=Ht.current,Ht.current=void 0),clearTimeout(jt.current)},[]);p.useEffect(()=>()=>{clearTimeout(we.current),clearTimeout(xt.current),clearTimeout(qe.current),nn()},[nn]);const rn=se=>{clearTimeout(uo),ur=!0,Bt(!0),te&&!Ze&&te(se)},G=dn(se=>{clearTimeout(uo),uo=setTimeout(()=>{ur=!1},800+X),Bt(!1),oe&&Ze&&oe(se),clearTimeout(we.current),we.current=setTimeout(()=>{Fe.current=!1},ve.transitions.duration.shortest)}),Q=se=>{Fe.current&&se.type!=="touchstart"||(ye&&ye.removeAttribute("title"),clearTimeout(xt.current),clearTimeout(qe.current),S||ur&&C?xt.current=setTimeout(()=>{rn(se)},ur?C:S):rn(se))},fe=se=>{clearTimeout(xt.current),clearTimeout(qe.current),qe.current=setTimeout(()=>{G(se)},X)},{isFocusVisibleRef:de,onBlur:Se,onFocus:Ee,ref:Je}=sl(),[,Dt]=p.useState(!1),at=se=>{Se(se),de.current===!1&&(Dt(!1),fe(se))},on=se=>{ye||Ne(se.currentTarget),Ee(se),de.current===!0&&(Dt(!0),Q(se))},ts=se=>{Fe.current=!0;const Be=Z.props;Be.onTouchStart&&Be.onTouchStart(se)},ns=Q,rs=fe,mu=se=>{ts(se),clearTimeout(qe.current),clearTimeout(we.current),nn(),Ht.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",jt.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ht.current,Q(se)},M)},gu=se=>{Z.props.onTouchEnd&&Z.props.onTouchEnd(se),nn(),clearTimeout(qe.current),qe.current=setTimeout(()=>{G(se)},J)};p.useEffect(()=>{if(!Ze)return;function se(Be){(Be.key==="Escape"||Be.key==="Esc")&&G(Be)}return document.addEventListener("keydown",se),()=>{document.removeEventListener("keydown",se)}},[G,Ze]);const vu=Me(Z.ref,Je,Ne,n);!q&&q!==0&&(Ze=!1);const Jr=p.useRef(),xu=se=>{const Be=Z.props;Be.onMouseMove&&Be.onMouseMove(se),Ln={x:se.clientX,y:se.clientY},Jr.current&&Jr.current.update()},$n={},Qr=typeof q=="string";N?($n.title=!Ze&&Qr&&!F?q:null,$n["aria-describedby"]=Ze?Et:null):($n["aria-label"]=Qr?q:null,$n["aria-labelledby"]=Ze&&!Qr?Et:null);const st=x({},$n,Y,Z.props,{className:ie(Y.className,Z.props.className),onTouchStart:ts,ref:vu},L?{onMouseMove:xu}:{}),En={};$||(st.onTouchStart=mu,st.onTouchEnd=gu),F||(st.onMouseOver=dr(ns,st.onMouseOver),st.onMouseLeave=dr(rs,st.onMouseLeave),Xe||(En.onMouseOver=ns,En.onMouseLeave=rs)),j||(st.onFocus=dr(on,st.onFocus),st.onBlur=dr(at,st.onBlur),Xe||(En.onFocus=on,En.onBlur=at));const bu=p.useMemo(()=>{var se;let Be=[{name:"arrow",enabled:!!ke,options:{element:ke,padding:4}}];return(se=ue.popperOptions)!=null&&se.modifiers&&(Be=Be.concat(ue.popperOptions.modifiers)),x({},ue.popperOptions,{modifiers:Be})},[ke,ue]),Dn=x({},P,{isRtl:me,arrow:E,disableInteractive:Xe,placement:le,PopperComponentProp:ge,touch:Fe.current}),eo=bm(Dn),os=(r=(o=K.popper)!=null?o:I.Popper)!=null?r:ym,as=(a=(s=(i=K.transition)!=null?i:I.Transition)!=null?s:_)!=null?a:Bo,ss=(l=(c=K.tooltip)!=null?c:I.Tooltip)!=null?l:Cm,is=(u=(d=K.arrow)!=null?d:I.Arrow)!=null?u:wm,yu=Bn(os,x({},ue,(f=z.popper)!=null?f:D.popper,{className:ie(eo.popper,ue==null?void 0:ue.className,(h=(m=z.popper)!=null?m:D.popper)==null?void 0:h.className)}),Dn),Cu=Bn(as,x({},V,(v=z.transition)!=null?v:D.transition),Dn),wu=Bn(ss,x({},(b=z.tooltip)!=null?b:D.tooltip,{className:ie(eo.tooltip,(g=(k=z.tooltip)!=null?k:D.tooltip)==null?void 0:g.className)}),Dn),Su=Bn(is,x({},(w=z.arrow)!=null?w:D.arrow,{className:ie(eo.arrow,(y=(T=z.arrow)!=null?T:D.arrow)==null?void 0:y.className)}),Dn);return R.jsxs(p.Fragment,{children:[p.cloneElement(Z,st),R.jsx(os,x({as:ge??_l,placement:le,anchorEl:L?{getBoundingClientRect:()=>({top:Ln.y,left:Ln.x,right:Ln.x,bottom:Ln.y,width:0,height:0})}:ye,popperRef:Jr,open:ye?Ze:!1,id:Et,transition:!0},En,yu,{popperOptions:bu,children:({TransitionProps:se})=>R.jsx(as,x({timeout:ve.transitions.duration.shorter},se,Cu,{children:R.jsxs(ss,x({},wu,{children:[q,E?R.jsx(is,x({},Su,{ref:je})):null]}))}))}))]})}),ha=Sm;function Mm(e){return xe("MuiTab",e)}const Tm=he("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),zt=Tm,km=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Pm=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:s,selected:i,disabled:l}=e,c={root:["root",a&&s&&"labelIcon",`textColor${Re(n)}`,r&&"fullWidth",o&&"wrapped",i&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return be(c,Mm,t)},$m=ee(Jo,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Re(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>x({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${zt.iconWrapper}`]:x({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${zt.selected}`]:{opacity:1},[`&.${zt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${zt.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${zt.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${zt.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${zt.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Em=p.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:i,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:f,onClick:h,onFocus:m,selected:v,selectionFollowsFocus:b,textColor:g="inherit",value:k,wrapped:w=!1}=r,y=re(r,km),T=x({},r,{disabled:a,disableFocusRipple:s,selected:v,icon:!!l,iconPosition:c,label:!!d,fullWidth:i,textColor:g,wrapped:w}),P=Pm(T),E=l&&d&&p.isValidElement(l)?p.cloneElement(l,{className:ie(P.iconWrapper,l.props.className)}):l,A=D=>{!v&&f&&f(D,k),h&&h(D)},I=D=>{b&&!v&&f&&f(D,k),m&&m(D)};return R.jsxs($m,x({focusRipple:!s,className:ie(P.root,o),ref:n,role:"tab","aria-selected":v,disabled:a,onClick:A,onFocus:I,ownerState:T,tabIndex:v?0:-1},y,{children:[c==="top"||c==="start"?R.jsxs(p.Fragment,{children:[E,d]}):R.jsxs(p.Fragment,{children:[d,E]}),u]}))}),Dm=Em,Rm=il(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Nm=il(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Om(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Lm(e,t,n,r={},o=()=>{}){const{ease:a=Om,duration:s=300}=r;let i=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=f=>{if(c){o(new Error("Animation cancelled"));return}i===null&&(i=f);const h=Math.min(1,(f-i)/s);if(t[e]=a(h)*(n-l)+l,h>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(d),u)}const _m=["onChange"],Im={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Am(e){const{onChange:t}=e,n=re(e,_m),r=p.useRef(),o=p.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return tt(()=>{const s=Wr(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),i=gt(o.current);return i.addEventListener("resize",s),()=>{s.clear(),i.removeEventListener("resize",s)}},[t]),p.useEffect(()=>{a(),t(r.current)},[t]),R.jsx("div",x({style:Im,ref:o},n))}function jm(e){return xe("MuiTabScrollButton",e)}const Fm=he("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Bm=Fm,Hm=["className","slots","slotProps","direction","orientation","disabled"],Wm=e=>{const{classes:t,orientation:n,disabled:r}=e;return be({root:["root",n,r&&"disabled"]},jm,t)},zm=ee(Jo,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>x({width:40,flexShrink:0,opacity:.8,[`&.${Bm.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Um=p.forwardRef(function(t,n){var r,o;const a=Te({props:t,name:"MuiTabScrollButton"}),{className:s,slots:i={},slotProps:l={},direction:c}=a,u=re(a,Hm),f=Ge().direction==="rtl",h=x({isRtl:f},a),m=Wm(h),v=(r=i.StartScrollButtonIcon)!=null?r:Rm,b=(o=i.EndScrollButtonIcon)!=null?o:Nm,g=Ve({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),k=Ve({elementType:b,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return R.jsx(zm,x({component:"div",className:ie(m.root,s),ref:n,role:null,ownerState:h,tabIndex:null},u,{children:c==="left"?R.jsx(v,x({},g)):R.jsx(b,x({},k))}))}),Vm=Um;function Ym(e){return xe("MuiTabs",e)}const Km=he("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),fo=Km,Gm=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],As=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,js=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,fr=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=n(e,o);else{o.focus();return}}},Xm=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:s,scrollButtonsHideMobile:i,classes:l}=e;return be({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Ym,l)},qm=ee("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${fo.scrollButtons}`]:t.scrollButtons},{[`& .${fo.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>x({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${fo.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Zm=ee("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>x({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Jm=ee("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>x({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Qm=ee("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>x({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),eg=ee(Am)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Fs={},tg=p.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTabs"}),o=Ge(),a=o.direction==="rtl",{"aria-label":s,"aria-labelledby":i,action:l,centered:c=!1,children:u,className:d,component:f="div",allowScrollButtonsMobile:h=!1,indicatorColor:m="primary",onChange:v,orientation:b="horizontal",ScrollButtonComponent:g=Vm,scrollButtons:k="auto",selectionFollowsFocus:w,slots:y={},slotProps:T={},TabIndicatorProps:P={},TabScrollButtonProps:E={},textColor:A="primary",value:I,variant:D="standard",visibleScrollbar:N=!1}=r,j=re(r,Gm),F=D==="scrollable",O=b==="vertical",$=O?"scrollTop":"scrollLeft",S=O?"top":"left",C=O?"bottom":"right",M=O?"clientHeight":"clientWidth",L=O?"height":"width",W=x({},r,{component:f,allowScrollButtonsMobile:h,indicatorColor:m,orientation:b,vertical:O,scrollButtons:k,textColor:A,variant:D,visibleScrollbar:N,fixed:!F,hideScrollbar:F&&!N,scrollableX:F&&!O,scrollableY:F&&O,centered:c&&!F,scrollButtonsHideMobile:!h}),X=Xm(W),J=Ve({elementType:y.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:W}),oe=Ve({elementType:y.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:W}),[te,ne]=p.useState(!1),[le,ge]=p.useState(Fs),[ue,z]=p.useState(!1),[K,q]=p.useState(!1),[_,V]=p.useState(!1),[Y,Z]=p.useState({overflow:"hidden",scrollbarWidth:0}),ve=new Map,me=p.useRef(null),ye=p.useRef(null),Ne=()=>{const G=me.current;let Q;if(G){const de=G.getBoundingClientRect();Q={clientWidth:G.clientWidth,scrollLeft:G.scrollLeft,scrollTop:G.scrollTop,scrollLeftNormalized:td(G,o.direction),scrollWidth:G.scrollWidth,top:de.top,bottom:de.bottom,left:de.left,right:de.right}}let fe;if(G&&I!==!1){const de=ye.current.children;if(de.length>0){const Se=de[ve.get(I)];fe=Se?Se.getBoundingClientRect():null}}return{tabsMeta:Q,tabMeta:fe}},ke=dn(()=>{const{tabsMeta:G,tabMeta:Q}=Ne();let fe=0,de;if(O)de="top",Q&&G&&(fe=Q.top-G.top+G.scrollTop);else if(de=a?"right":"left",Q&&G){const Ee=a?G.scrollLeftNormalized+G.clientWidth-G.scrollWidth:G.scrollLeft;fe=(a?-1:1)*(Q[de]-G[de]+Ee)}const Se={[de]:fe,[L]:Q?Q[L]:0};if(isNaN(le[de])||isNaN(le[L]))ge(Se);else{const Ee=Math.abs(le[de]-Se[de]),Je=Math.abs(le[L]-Se[L]);(Ee>=1||Je>=1)&&ge(Se)}}),je=(G,{animation:Q=!0}={})=>{Q?Lm($,me.current,G,{duration:o.transitions.duration.standard}):me.current[$]=G},Fe=G=>{let Q=me.current[$];O?Q+=G:(Q+=G*(a?-1:1),Q*=a&&gl()==="reverse"?-1:1),je(Q)},Xe=()=>{const G=me.current[M];let Q=0;const fe=Array.from(ye.current.children);for(let de=0;deG){de===0&&(Q=G);break}Q+=Se[M]}return Q},we=()=>{Fe(-1*Xe())},xt=()=>{Fe(Xe())},qe=p.useCallback(G=>{Z({overflow:null,scrollbarWidth:G})},[]),jt=()=>{const G={};G.scrollbarSizeListener=F?R.jsx(eg,{onChange:qe,className:ie(X.scrollableX,X.hideScrollbar)}):null;const fe=F&&(k==="auto"&&(ue||K)||k===!0);return G.scrollButtonStart=fe?R.jsx(g,x({slots:{StartScrollButtonIcon:y.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:J},orientation:b,direction:a?"right":"left",onClick:we,disabled:!ue},E,{className:ie(X.scrollButtons,E.className)})):null,G.scrollButtonEnd=fe?R.jsx(g,x({slots:{EndScrollButtonIcon:y.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:oe},orientation:b,direction:a?"left":"right",onClick:xt,disabled:!K},E,{className:ie(X.scrollButtons,E.className)})):null,G},Ft=dn(G=>{const{tabsMeta:Q,tabMeta:fe}=Ne();if(!(!fe||!Q)){if(fe[S]Q[C]){const de=Q[$]+(fe[C]-Q[C]);je(de,{animation:G})}}}),Bt=dn(()=>{F&&k!==!1&&V(!_)});p.useEffect(()=>{const G=Wr(()=>{me.current&&ke()});let Q;const fe=Ee=>{Ee.forEach(Je=>{Je.removedNodes.forEach(Dt=>{var at;(at=Q)==null||at.unobserve(Dt)}),Je.addedNodes.forEach(Dt=>{var at;(at=Q)==null||at.observe(Dt)})}),G(),Bt()},de=gt(me.current);de.addEventListener("resize",G);let Se;return typeof ResizeObserver<"u"&&(Q=new ResizeObserver(G),Array.from(ye.current.children).forEach(Ee=>{Q.observe(Ee)})),typeof MutationObserver<"u"&&(Se=new MutationObserver(fe),Se.observe(ye.current,{childList:!0})),()=>{var Ee,Je;G.clear(),de.removeEventListener("resize",G),(Ee=Se)==null||Ee.disconnect(),(Je=Q)==null||Je.disconnect()}},[ke,Bt]),p.useEffect(()=>{const G=Array.from(ye.current.children),Q=G.length;if(typeof IntersectionObserver<"u"&&Q>0&&F&&k!==!1){const fe=G[0],de=G[Q-1],Se={root:me.current,threshold:.99},Ee=on=>{z(!on[0].isIntersecting)},Je=new IntersectionObserver(Ee,Se);Je.observe(fe);const Dt=on=>{q(!on[0].isIntersecting)},at=new IntersectionObserver(Dt,Se);return at.observe(de),()=>{Je.disconnect(),at.disconnect()}}},[F,k,_,u==null?void 0:u.length]),p.useEffect(()=>{ne(!0)},[]),p.useEffect(()=>{ke()}),p.useEffect(()=>{Ft(Fs!==le)},[Ft,le]),p.useImperativeHandle(l,()=>({updateIndicator:ke,updateScrollButtons:Bt}),[ke,Bt]);const Ze=R.jsx(Qm,x({},P,{className:ie(X.indicator,P.className),ownerState:W,style:x({},le,P.style)}));let Et=0;const Ht=p.Children.map(u,G=>{if(!p.isValidElement(G))return null;const Q=G.props.value===void 0?Et:G.props.value;ve.set(Q,Et);const fe=Q===I;return Et+=1,p.cloneElement(G,x({fullWidth:D==="fullWidth",indicator:fe&&!te&&Ze,selected:fe,selectionFollowsFocus:w,onChange:v,textColor:A,value:Q},Et===1&&I===!1&&!G.props.tabIndex?{tabIndex:0}:{}))}),nn=G=>{const Q=ye.current,fe=_e(Q).activeElement;if(fe.getAttribute("role")!=="tab")return;let Se=b==="horizontal"?"ArrowLeft":"ArrowUp",Ee=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&a&&(Se="ArrowRight",Ee="ArrowLeft"),G.key){case Se:G.preventDefault(),fr(Q,fe,js);break;case Ee:G.preventDefault(),fr(Q,fe,As);break;case"Home":G.preventDefault(),fr(Q,null,As);break;case"End":G.preventDefault(),fr(Q,null,js);break}},rn=jt();return R.jsxs(qm,x({className:ie(X.root,d),ownerState:W,ref:n,as:f},j,{children:[rn.scrollButtonStart,rn.scrollbarSizeListener,R.jsxs(Zm,{className:X.scroller,ownerState:W,style:{overflow:Y.overflow,[O?`margin${a?"Left":"Right"}`:"marginBottom"]:N?void 0:-Y.scrollbarWidth},ref:me,children:[R.jsx(Jm,{"aria-label":s,"aria-labelledby":i,"aria-orientation":b==="vertical"?"vertical":null,className:X.flexContainer,ownerState:W,onKeyDown:nn,ref:ye,role:"tablist",children:Ht}),te&&Ze]}),rn.scrollButtonEnd]}))}),ng=tg,rg=e=>Ke("color:",e.contrast,";background:",e.shadow,';display:flex;font-size:10px;letter-spacing:1px;font-family:"Courier New",Courier,monospace;margin:0px 10px;',""),og=()=>{const[e,t]=p.useState(new Date),n=Lt();return p.useEffect(()=>{const r=setInterval(()=>{t(new Date)},1e3);return()=>clearInterval(r)},[]),H("div",{children:H("div",{className:nt(rg(n)),children:H("p",{children:e.toLocaleString()})})})},ag={name:"Clock",section:"Status Bar",id:Qo(),Component:og,description:"A simple clock with date / time",active:!1,visible:!0,roles:["admin","user","guest","superAdmin"]};var ma={},sg=dt;Object.defineProperty(ma,"__esModule",{value:!0});var Yl=ma.default=void 0,ig=sg(ut()),lg=R,cg=(0,ig.default)((0,lg.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}),"ChevronRightOutlined");Yl=ma.default=cg;const ug=(e,t,n)=>Ke("display:flex;flex-direction:column;background:",e.shadow,";border-radius:3px;margin:0px 4px;padding:4px 6px;.title{color:theme.contrast;font-size:10px;margin-bottom:1px;}.total-num{color:",(()=>({prev:e.contrast,amount:e.primary,diff:e.contrast}))()[t],";font-size:16px;letter-spacing:1px;font-weight:bold;padding:3px 0px;:before{content:",(()=>t==="diff"&&{up:"'↑'",down:"'↓'",none:""})()[n],";font-size:14px;position:relative;font-weight:bold;color:",(()=>t==="diff"&&{up:e.accent,down:e.primary,none:e.primary})()[n],";top:-3px;margin-left:3px;}}",""),Bs={total:{text:"Total Series",value:e=>e},percent:{text:"Percentage from total",value:e=>`${String(e)}%`},previous:{text:"Previous total",value:e=>e||0},diff:{text:"Diff from previous",value:e=>`${e??0}`}},wr=({theme:e,value:t,text:n,type:r="amount",trend:o="none"})=>ae("div",{className:nt(ug(e,r,o)),children:[H("div",{className:"title",children:Bs[n].text}),H("div",{className:"total-num",children:Bs[n].value(t)})]});Qo();var ga={},dg=dt;Object.defineProperty(ga,"__esModule",{value:!0});var Kl=ga.default=void 0,fg=dg(ut()),pg=R,hg=(0,fg.default)((0,pg.jsx)("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"}),"CalendarMonthOutlined");Kl=ga.default=hg;var Gl={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Yu,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",i="minute",l="hour",c="day",u="week",d="month",f="quarter",h="year",m="date",v="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var $=["th","st","nd","rd"],S=O%100;return"["+O+($[(S-20)%10]||$[S]||$[0])+"]"}},w=function(O,$,S){var C=String(O);return!C||C.length>=$?O:""+Array($+1-C.length).join(S)+O},y={s:w,z:function(O){var $=-O.utcOffset(),S=Math.abs($),C=Math.floor(S/60),M=S%60;return($<=0?"+":"-")+w(C,2,"0")+":"+w(M,2,"0")},m:function O($,S){if($.date()1)return O(W[0])}else{var X=$.name;P[X]=$,M=X}return!C&&M&&(T=M),M||!C&&T},D=function(O,$){if(A(O))return O.clone();var S=typeof $=="object"?$:{};return S.date=O,S.args=arguments,new j(S)},N=y;N.l=I,N.i=A,N.w=function(O,$){return D(O,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var j=function(){function O(S){this.$L=I(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[E]=!0}var $=O.prototype;return $.parse=function(S){this.$d=function(C){var M=C.date,L=C.utc;if(M===null)return new Date(NaN);if(N.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var W=M.match(b);if(W){var X=W[2]-1||0,J=(W[7]||"0").substring(0,3);return L?new Date(Date.UTC(W[1],X,W[3]||1,W[4]||0,W[5]||0,W[6]||0,J)):new Date(W[1],X,W[3]||1,W[4]||0,W[5]||0,W[6]||0,J)}}return new Date(M)}(S),this.init()},$.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},$.$utils=function(){return N},$.isValid=function(){return this.$d.toString()!==v},$.isSame=function(S,C){var M=D(S);return this.startOf(C)<=M&&M<=this.endOf(C)},$.isAfter=function(S,C){return D(S)t in e?Mu(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Hs;function vg(){if(Hs)return _n;Hs=1;var e=Ct,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(i,l,c){var u,d={},f=null,p=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(p=l.ref);for(u in l)r.call(l,u)&&!a.hasOwnProperty(u)&&(d[u]=l[u]);if(i&&i.defaultProps)for(u in l=i.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:i,key:f,ref:p,props:d,_owner:o.current}}return _n.Fragment=n,_n.jsx=s,_n.jsxs=s,_n}ql.exports=vg();var F=ql.exports;function tr(e){return e.mode==="multiple"}function nr(e){return e.mode==="range"}function Ur(e){return e.mode==="single"}var xg={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function bg(e,t){return _t(e,"LLLL y",t)}function yg(e,t){return _t(e,"d",t)}function Cg(e,t){return _t(e,"LLLL",t)}function wg(e){return"".concat(e)}function Sg(e,t){return _t(e,"cccccc",t)}function Mg(e,t){return _t(e,"yyyy",t)}var Tg=Object.freeze({__proto__:null,formatCaption:bg,formatDay:yg,formatMonthCaption:Cg,formatWeekNumber:wg,formatWeekdayName:Sg,formatYearCaption:Mg}),kg=function(e,t,n){return _t(e,"do MMMM (EEEE)",n)},Pg=function(){return"Month: "},$g=function(){return"Go to next month"},Eg=function(){return"Go to previous month"},Dg=function(e,t){return _t(e,"cccc",t)},Rg=function(e){return"Week n. ".concat(e)},Ng=function(){return"Year: "},Og=Object.freeze({__proto__:null,labelDay:kg,labelMonthDropdown:Pg,labelNext:$g,labelPrevious:Eg,labelWeekNumber:Rg,labelWeekday:Dg,labelYearDropdown:Ng});function Lg(){var e="buttons",t=xg,n=Iu,r={},o={},a=1,s={},i=new Date;return{captionLayout:e,classNames:t,formatters:Tg,labels:Og,locale:n,modifiersClassNames:r,modifiers:o,numberOfMonths:a,styles:s,today:i,mode:"default"}}function _g(e){var t=e.fromYear,n=e.toYear,r=e.fromMonth,o=e.toMonth,a=e.fromDate,s=e.toDate;return r?a=Ue(r):t&&(a=new Date(t,0,1)),o?s=ea(o):n&&(s=new Date(n,11,31)),{fromDate:a?us(a):void 0,toDate:s?us(s):void 0}}var Zl=h.createContext(void 0);function Ig(e){var t,n=e.initialProps,r=Lg(),o=_g(n),a=o.fromDate,s=o.toDate,i=(t=n.captionLayout)!==null&&t!==void 0?t:r.captionLayout;i!=="buttons"&&(!a||!s)&&(i="buttons");var l;(Ur(n)||tr(n)||nr(n))&&(l=n.onSelect);var c=U(U(U({},r),n),{captionLayout:i,classNames:U(U({},r.classNames),n.classNames),components:U({},n.components),formatters:U(U({},r.formatters),n.formatters),fromDate:a,labels:U(U({},r.labels),n.labels),mode:n.mode||r.mode,modifiers:U(U({},r.modifiers),n.modifiers),modifiersClassNames:U(U({},r.modifiersClassNames),n.modifiersClassNames),onSelect:l,styles:U(U({},r.styles),n.styles),toDate:s});return F.jsx(Zl.Provider,U({value:c},{children:e.children}))}function Ce(){var e=h.useContext(Zl);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function Jl(e){var t=Ce(),n=t.locale,r=t.classNames,o=t.styles,a=t.formatters.formatCaption;return F.jsx("div",U({className:r.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id},{children:a(e.displayMonth,{locale:n})}))}function Ag(e){return F.jsx("svg",U({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:F.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Ql(e){var t,n,r=e.onChange,o=e.value,a=e.children,s=e.caption,i=e.className,l=e.style,c=Ce(),u=(n=(t=c.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&n!==void 0?n:Ag;return F.jsxs("div",U({className:i,style:l},{children:[F.jsx("span",U({className:c.classNames.vhidden},{children:e["aria-label"]})),F.jsx("select",U({name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:o,onChange:r},{children:a})),F.jsxs("div",U({className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true"},{children:[s,F.jsx(u,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]}))]}))}function jg(e){var t,n=Ce(),r=n.fromDate,o=n.toDate,a=n.styles,s=n.locale,i=n.formatters.formatMonthCaption,l=n.classNames,c=n.components,u=n.labels.labelMonthDropdown;if(!r)return F.jsx(F.Fragment,{});if(!o)return F.jsx(F.Fragment,{});var d=[];if(Au(r,o))for(var f=Ue(r),p=r.getMonth();p<=o.getMonth();p++)d.push(ro(f,p));else for(var f=Ue(new Date),p=0;p<=11;p++)d.push(ro(f,p));var m=function(b){var g=Number(b.target.value),k=ro(Ue(e.displayMonth),g);e.onChange(k)},v=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:Ql;return F.jsx(v,U({name:"months","aria-label":u(),className:l.dropdown_month,style:a.dropdown_month,onChange:m,value:e.displayMonth.getMonth(),caption:i(e.displayMonth,{locale:s})},{children:d.map(function(b){return F.jsx("option",U({value:b.getMonth()},{children:i(b,{locale:s})}),b.getMonth())})}))}function Fg(e){var t,n=e.displayMonth,r=Ce(),o=r.fromDate,a=r.toDate,s=r.locale,i=r.styles,l=r.classNames,c=r.components,u=r.formatters.formatYearCaption,d=r.labels.labelYearDropdown,f=[];if(!o)return F.jsx(F.Fragment,{});if(!a)return F.jsx(F.Fragment,{});for(var p=o.getFullYear(),m=a.getFullYear(),v=p;v<=m;v++)f.push(ds(ju(new Date),v));var b=function(k){var C=ds(Ue(n),Number(k.target.value));e.onChange(C)},g=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:Ql;return F.jsx(g,U({name:"years","aria-label":d(),className:l.dropdown_year,style:i.dropdown_year,onChange:b,value:n.getFullYear(),caption:u(n,{locale:s})},{children:f.map(function(k){return F.jsx("option",U({value:k.getFullYear()},{children:u(k,{locale:s})}),k.getFullYear())})}))}function Bg(e,t){var n=h.useState(e),r=n[0],o=n[1],a=t===void 0?r:t;return[a,o]}function Hg(e){var t=e.month,n=e.defaultMonth,r=e.today,o=t||n||r||new Date,a=e.toDate,s=e.fromDate,i=e.numberOfMonths,l=i===void 0?1:i;if(a&&Vn(a,o)<0){var c=-1*(l-1);o=mt(a,c)}return s&&Vn(o,s)<0&&(o=s),Ue(o)}function Wg(){var e=Ce(),t=Hg(e),n=Bg(t,e.month),r=n[0],o=n[1],a=function(s){var i;if(!e.disableNavigation){var l=Ue(s);o(l),(i=e.onMonthChange)===null||i===void 0||i.call(e,l)}};return[r,a]}function zg(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,o=Ue(e),a=Ue(mt(o,r)),s=Vn(a,o),i=[],l=0;l1&&(l||!c),d=t>1&&(c||!l),f=function(){r&&a(r)},p=function(){o&&a(o)};return F.jsx(Xg,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:d,nextMonth:o,previousMonth:r,onPreviousClick:f,onNextClick:p})}function qg(e){var t,n=Ce(),r=n.classNames,o=n.disableNavigation,a=n.styles,s=n.captionLayout,i=n.components,l=(t=i==null?void 0:i.CaptionLabel)!==null&&t!==void 0?t:Jl,c;return o?c=F.jsx(l,{id:e.id,displayMonth:e.displayMonth}):s==="dropdown"?c=F.jsx(Ws,{displayMonth:e.displayMonth,id:e.id}):s==="dropdown-buttons"?c=F.jsxs(F.Fragment,{children:[F.jsx(Ws,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),F.jsx(zs,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):c=F.jsxs(F.Fragment,{children:[F.jsx(l,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),F.jsx(zs,{displayMonth:e.displayMonth,id:e.id})]}),F.jsx("div",U({className:r.caption,style:a.caption},{children:c}))}function Zg(e){var t=Ce(),n=t.footer,r=t.styles,o=t.classNames.tfoot;return n?F.jsx("tfoot",U({className:o,style:r.tfoot},{children:F.jsx("tr",{children:F.jsx("td",U({colSpan:8},{children:n}))})})):F.jsx(F.Fragment,{})}function Jg(e,t,n){for(var r=n?na(new Date):ra(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var s=We(r,a);o.push(s)}return o}function Qg(){var e=Ce(),t=e.classNames,n=e.styles,r=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,s=e.ISOWeek,i=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,c=Jg(o,a,s);return F.jsxs("tr",U({style:n.head_row,className:t.head_row},{children:[r&&F.jsx("td",{style:n.head_cell,className:t.head_cell}),c.map(function(u,d){return F.jsx("th",U({scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":l(u,{locale:o})},{children:i(u,{locale:o})}),d)})]}))}function ev(){var e,t=Ce(),n=t.classNames,r=t.styles,o=t.components,a=(e=o==null?void 0:o.HeadRow)!==null&&e!==void 0?e:Qg;return F.jsx("thead",U({style:r.head,className:n.head},{children:F.jsx(a,{})}))}function tv(e){var t=Ce(),n=t.locale,r=t.formatters.formatDay;return F.jsx(F.Fragment,{children:r(e.date,{locale:n})})}var va=h.createContext(void 0);function nv(e){if(!tr(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return F.jsx(va.Provider,U({value:t},{children:e.children}))}return F.jsx(rv,{initialProps:e.initialProps,children:e.children})}function rv(e){var t=e.initialProps,n=e.children,r=t.selected,o=t.min,a=t.max,s=function(c,u,d){var f,p;(f=t.onDayClick)===null||f===void 0||f.call(t,c,u,d);var m=!!(u.selected&&o&&(r==null?void 0:r.length)===o);if(!m){var v=!!(!u.selected&&a&&(r==null?void 0:r.length)===a);if(!v){var b=r?Xl([],r,!0):[];if(u.selected){var g=b.findIndex(function(k){return Oe(c,k)});b.splice(g,1)}else b.push(c);(p=t.onSelect)===null||p===void 0||p.call(t,b,c,u,d)}}},i={disabled:[]};r&&i.disabled.push(function(c){var u=a&&r.length>a-1,d=r.some(function(f){return Oe(f,c)});return!!(u&&!d)});var l={selected:r,onDayClick:s,modifiers:i};return F.jsx(va.Provider,U({value:l},{children:n}))}function xa(){var e=h.useContext(va);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function ov(e,t){var n=t||{},r=n.from,o=n.to;return r&&o?Oe(o,e)&&Oe(r,e)?void 0:Oe(o,e)?{from:o,to:void 0}:Oe(r,e)?void 0:Oo(r,e)?{from:e,to:o}:{from:r,to:e}:o?Oo(e,o)?{from:o,to:e}:{from:e,to:o}:r?ll(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var ba=h.createContext(void 0);function av(e){if(!nr(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return F.jsx(ba.Provider,U({value:t},{children:e.children}))}return F.jsx(sv,{initialProps:e.initialProps,children:e.children})}function sv(e){var t=e.initialProps,n=e.children,r=t.selected,o=r||{},a=o.from,s=o.to,i=t.min,l=t.max,c=function(p,m,v){var b,g;(b=t.onDayClick)===null||b===void 0||b.call(t,p,m,v);var k=ov(p,r);(g=t.onSelect)===null||g===void 0||g.call(t,k,p,m,v)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],s?(u.range_end=[s],Oe(a,s)||(u.range_middle=[{after:a,before:s}])):u.range_end=[a]):s&&(u.range_start=[s],u.range_end=[s]),i&&(a&&!s&&u.disabled.push({after:no(a,i-1),before:We(a,i-1)}),a&&s&&u.disabled.push({after:a,before:We(a,i-1)}),!a&&s&&u.disabled.push({after:no(s,i-1),before:We(s,i-1)})),l){if(a&&!s&&(u.disabled.push({before:We(a,-l+1)}),u.disabled.push({after:We(a,l-1)})),a&&s){var d=yt(s,a)+1,f=l-d;u.disabled.push({before:no(a,f)}),u.disabled.push({after:We(s,f)})}!a&&s&&(u.disabled.push({before:We(s,-l+1)}),u.disabled.push({after:We(s,l-1)}))}return F.jsx(ba.Provider,U({value:{selected:r,onDayClick:c,modifiers:u}},{children:n}))}function ya(){var e=h.useContext(ba);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Sr(e){return Array.isArray(e)?Xl([],e,!0):e!==void 0?[e]:[]}function iv(e){var t={};return Object.entries(e).forEach(function(n){var r=n[0],o=n[1];t[r]=Sr(o)}),t}var ct;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(ct||(ct={}));var lv=ct.Selected,bt=ct.Disabled,cv=ct.Hidden,uv=ct.Today,po=ct.RangeEnd,ho=ct.RangeMiddle,mo=ct.RangeStart,dv=ct.Outside;function fv(e,t,n){var r,o=(r={},r[lv]=Sr(e.selected),r[bt]=Sr(e.disabled),r[cv]=Sr(e.hidden),r[uv]=[e.today],r[po]=[],r[ho]=[],r[mo]=[],r[dv]=[],r);return e.fromDate&&o[bt].push({before:e.fromDate}),e.toDate&&o[bt].push({after:e.toDate}),tr(e)?o[bt]=o[bt].concat(t.modifiers[bt]):nr(e)&&(o[bt]=o[bt].concat(n.modifiers[bt]),o[mo]=n.modifiers[mo],o[ho]=n.modifiers[ho],o[po]=n.modifiers[po]),o}var tc=h.createContext(void 0);function pv(e){var t=Ce(),n=xa(),r=ya(),o=fv(t,n,r),a=iv(t.modifiers),s=U(U({},o),a);return F.jsx(tc.Provider,U({value:s},{children:e.children}))}function nc(){var e=h.useContext(tc);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function hv(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function mv(e){return!!(e&&typeof e=="object"&&"from"in e)}function gv(e){return!!(e&&typeof e=="object"&&"after"in e)}function vv(e){return!!(e&&typeof e=="object"&&"before"in e)}function xv(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function bv(e,t){var n,r=t.from,o=t.to;if(r&&o){var a=yt(o,r)<0;a&&(n=[o,r],r=n[0],o=n[1]);var s=yt(e,r)>=0&&yt(o,e)>=0;return s}return o?Oe(o,e):r?Oe(r,e):!1}function yv(e){return dl(e)}function Cv(e){return Array.isArray(e)&&e.every(dl)}function wv(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(yv(n))return Oe(e,n);if(Cv(n))return n.includes(e);if(mv(n))return bv(e,n);if(xv(n))return n.dayOfWeek.includes(e.getDay());if(hv(n)){var r=yt(n.before,e),o=yt(n.after,e),a=r>0,s=o<0,i=Oo(n.before,n.after);return i?s&&a:a||s}return gv(n)?yt(e,n.after)>0:vv(n)?yt(n.before,e)>0:typeof n=="function"?n(e):!1})}function Ca(e,t,n){var r=Object.keys(t).reduce(function(a,s){var i=t[s];return wv(e,i)&&a.push(s),a},[]),o={};return r.forEach(function(a){return o[a]=!0}),n&&!ta(e,n)&&(o.outside=!0),o}function Sv(e,t){for(var n=Ue(e[0]),r=ea(e[e.length-1]),o,a,s=n;s<=r;){var i=Ca(s,t),l=!i.disabled&&!i.hidden;if(!l){s=We(s,1);continue}if(i.selected)return s;i.today&&!a&&(a=s),o||(o=s),s=We(s,1)}return a||o}var Mv=365;function rc(e,t){var n=t.moveBy,r=t.direction,o=t.context,a=t.modifiers,s=t.retry,i=s===void 0?{count:0,lastFocused:e}:s,l=o.weekStartsOn,c=o.fromDate,u=o.toDate,d=o.locale,f={day:We,week:Lo,month:mt,year:zu,startOfWeek:function(b){return o.ISOWeek?na(b):ra(b,{locale:d,weekStartsOn:l})},endOfWeek:function(b){return o.ISOWeek?cl(b):ul(b,{locale:d,weekStartsOn:l})}},p=f[n](e,r==="after"?1:-1);r==="before"&&c?p=Fu([c,p]):r==="after"&&u&&(p=Bu([u,p]));var m=!0;if(a){var v=Ca(p,a);m=!v.disabled&&!v.hidden}return m?p:i.count>Mv?i.lastFocused:rc(p,{moveBy:n,direction:r,context:o,modifiers:a,retry:U(U({},i),{count:i.count+1})})}var oc=h.createContext(void 0);function Tv(e){var t=rr(),n=nc(),r=h.useState(),o=r[0],a=r[1],s=h.useState(),i=s[0],l=s[1],c=Sv(t.displayMonths,n),u=o??(i&&t.isDateDisplayed(i))?i:c,d=function(){l(o),a(void 0)},f=function(b){a(b)},p=Ce(),m=function(b,g){if(o){var k=rc(o,{moveBy:b,direction:g,context:p,modifiers:n});Oe(o,k)||(t.goToDate(k,o),f(k))}},v={focusedDay:o,focusTarget:u,blur:d,focus:f,focusDayAfter:function(){return m("day","after")},focusDayBefore:function(){return m("day","before")},focusWeekAfter:function(){return m("week","after")},focusWeekBefore:function(){return m("week","before")},focusMonthBefore:function(){return m("month","before")},focusMonthAfter:function(){return m("month","after")},focusYearBefore:function(){return m("year","before")},focusYearAfter:function(){return m("year","after")},focusStartOfWeek:function(){return m("startOfWeek","before")},focusEndOfWeek:function(){return m("endOfWeek","after")}};return F.jsx(oc.Provider,U({value:v},{children:e.children}))}function wa(){var e=h.useContext(oc);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function kv(e,t){var n=nc(),r=Ca(e,n,t);return r}var Sa=h.createContext(void 0);function Pv(e){if(!Ur(e.initialProps)){var t={selected:void 0};return F.jsx(Sa.Provider,U({value:t},{children:e.children}))}return F.jsx($v,{initialProps:e.initialProps,children:e.children})}function $v(e){var t=e.initialProps,n=e.children,r=function(a,s,i){var l,c,u;if((l=t.onDayClick)===null||l===void 0||l.call(t,a,s,i),s.selected&&!t.required){(c=t.onSelect)===null||c===void 0||c.call(t,void 0,a,s,i);return}(u=t.onSelect)===null||u===void 0||u.call(t,a,a,s,i)},o={selected:t.selected,onDayClick:r};return F.jsx(Sa.Provider,U({value:o},{children:n}))}function ac(){var e=h.useContext(Sa);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function Ev(e,t){var n=Ce(),r=ac(),o=xa(),a=ya(),s=wa(),i=s.focusDayAfter,l=s.focusDayBefore,c=s.focusWeekAfter,u=s.focusWeekBefore,d=s.blur,f=s.focus,p=s.focusMonthBefore,m=s.focusMonthAfter,v=s.focusYearBefore,b=s.focusYearAfter,g=s.focusStartOfWeek,k=s.focusEndOfWeek,C=function(w){var M,L,W,X;Ur(n)?(M=r.onDayClick)===null||M===void 0||M.call(r,e,t,w):tr(n)?(L=o.onDayClick)===null||L===void 0||L.call(o,e,t,w):nr(n)?(W=a.onDayClick)===null||W===void 0||W.call(a,e,t,w):(X=n.onDayClick)===null||X===void 0||X.call(n,e,t,w)},y=function(w){var M;f(e),(M=n.onDayFocus)===null||M===void 0||M.call(n,e,t,w)},T=function(w){var M;d(),(M=n.onDayBlur)===null||M===void 0||M.call(n,e,t,w)},P=function(w){var M;(M=n.onDayMouseEnter)===null||M===void 0||M.call(n,e,t,w)},E=function(w){var M;(M=n.onDayMouseLeave)===null||M===void 0||M.call(n,e,t,w)},A=function(w){var M;(M=n.onDayPointerEnter)===null||M===void 0||M.call(n,e,t,w)},I=function(w){var M;(M=n.onDayPointerLeave)===null||M===void 0||M.call(n,e,t,w)},D=function(w){var M;(M=n.onDayTouchCancel)===null||M===void 0||M.call(n,e,t,w)},N=function(w){var M;(M=n.onDayTouchEnd)===null||M===void 0||M.call(n,e,t,w)},j=function(w){var M;(M=n.onDayTouchMove)===null||M===void 0||M.call(n,e,t,w)},B=function(w){var M;(M=n.onDayTouchStart)===null||M===void 0||M.call(n,e,t,w)},O=function(w){var M;(M=n.onDayKeyUp)===null||M===void 0||M.call(n,e,t,w)},$=function(w){var M;switch(w.key){case"ArrowLeft":w.preventDefault(),w.stopPropagation(),n.dir==="rtl"?i():l();break;case"ArrowRight":w.preventDefault(),w.stopPropagation(),n.dir==="rtl"?l():i();break;case"ArrowDown":w.preventDefault(),w.stopPropagation(),c();break;case"ArrowUp":w.preventDefault(),w.stopPropagation(),u();break;case"PageUp":w.preventDefault(),w.stopPropagation(),w.shiftKey?v():p();break;case"PageDown":w.preventDefault(),w.stopPropagation(),w.shiftKey?b():m();break;case"Home":w.preventDefault(),w.stopPropagation(),g();break;case"End":w.preventDefault(),w.stopPropagation(),k();break}(M=n.onDayKeyDown)===null||M===void 0||M.call(n,e,t,w)},S={onClick:C,onFocus:y,onBlur:T,onKeyDown:$,onKeyUp:O,onMouseEnter:P,onMouseLeave:E,onPointerEnter:A,onPointerLeave:I,onTouchCancel:D,onTouchEnd:N,onTouchMove:j,onTouchStart:B};return S}function Dv(){var e=Ce(),t=ac(),n=xa(),r=ya(),o=Ur(e)?t.selected:tr(e)?n.selected:nr(e)?r.selected:void 0;return o}function Rv(e){return Object.values(ct).includes(e)}function Nv(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(r){var o=e.modifiersClassNames[r];if(o)n.push(o);else if(Rv(r)){var a=e.classNames["day_".concat(r)];a&&n.push(a)}}),n}function Ov(e,t){var n=U({},e.styles.day);return Object.keys(t).forEach(function(r){var o;n=U(U({},n),(o=e.modifiersStyles)===null||o===void 0?void 0:o[r])}),n}function Lv(e,t,n){var r,o,a,s=Ce(),i=wa(),l=kv(e,t),c=Ev(e,l),u=Dv(),d=!!(s.onDayClick||s.mode!=="default");h.useEffect(function(){var P;l.outside||i.focusedDay&&d&&Oe(i.focusedDay,e)&&((P=n.current)===null||P===void 0||P.focus())},[i.focusedDay,e,n,d,l.outside]);var f=Nv(s,l).join(" "),p=Ov(s,l),m=!!(l.outside&&!s.showOutsideDays||l.hidden),v=(a=(o=s.components)===null||o===void 0?void 0:o.DayContent)!==null&&a!==void 0?a:tv,b=F.jsx(v,{date:e,displayMonth:t,activeModifiers:l}),g={style:p,className:f,children:b,role:"gridcell"},k=i.focusTarget&&Oe(i.focusTarget,e)&&!l.outside,C=i.focusedDay&&Oe(i.focusedDay,e),y=U(U(U({},g),(r={disabled:l.disabled,role:"gridcell"},r["aria-selected"]=l.selected,r.tabIndex=C||k?0:-1,r)),c),T={isButton:d,isHidden:m,activeModifiers:l,selectedDays:u,buttonProps:y,divProps:g};return T}function _v(e){var t=h.useRef(null),n=Lv(e.date,e.displayMonth,t);return n.isHidden?F.jsx("div",{role:"gridcell"}):n.isButton?F.jsx($r,U({name:"day",ref:t},n.buttonProps)):F.jsx("div",U({},n.divProps))}function Iv(e){var t=e.number,n=e.dates,r=Ce(),o=r.onWeekNumberClick,a=r.styles,s=r.classNames,i=r.locale,l=r.labels.labelWeekNumber,c=r.formatters.formatWeekNumber,u=c(Number(t),{locale:i});if(!o)return F.jsx("span",U({className:s.weeknumber,style:a.weeknumber},{children:u}));var d=l(Number(t),{locale:i}),f=function(p){o(t,n,p)};return F.jsx($r,U({name:"week-number","aria-label":d,className:s.weeknumber,style:a.weeknumber,onClick:f},{children:u}))}function Av(e){var t,n,r=Ce(),o=r.styles,a=r.classNames,s=r.showWeekNumber,i=r.components,l=(t=i==null?void 0:i.Day)!==null&&t!==void 0?t:_v,c=(n=i==null?void 0:i.WeekNumber)!==null&&n!==void 0?n:Iv,u;return s&&(u=F.jsx("td",U({className:a.cell,style:o.cell},{children:F.jsx(c,{number:e.weekNumber,dates:e.dates})}))),F.jsxs("tr",U({className:a.row,style:o.row},{children:[u,e.dates.map(function(d){return F.jsx("td",U({className:a.cell,style:o.cell,role:"presentation"},{children:F.jsx(l,{displayMonth:e.displayMonth,date:d})}),Lu(d))})]}))}function Us(e,t,n){for(var r=n!=null&&n.ISOWeek?cl(t):ul(t,n),o=n!=null&&n.ISOWeek?na(e):ra(e,n),a=yt(r,o),s=[],i=0;i<=a;i++)s.push(We(o,i));var l=s.reduce(function(c,u){var d=n!=null&&n.ISOWeek?Hu(u):Wu(u,n),f=c.find(function(p){return p.weekNumber===d});return f?(f.dates.push(u),c):(c.push({weekNumber:d,dates:[u]}),c)},[]);return l}function jv(e,t){var n=Us(Ue(e),ea(e),t);if(t!=null&&t.useFixedWeeks){var r=_u(e,t);if(r<6){var o=n[n.length-1],a=o.dates[o.dates.length-1],s=Lo(a,6-r),i=Us(Lo(a,1),s,t);n.push.apply(n,i)}}return n}function Fv(e){var t,n,r,o=Ce(),a=o.locale,s=o.classNames,i=o.styles,l=o.hideHead,c=o.fixedWeeks,u=o.components,d=o.weekStartsOn,f=o.firstWeekContainsDate,p=o.ISOWeek,m=jv(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:p,locale:a,weekStartsOn:d,firstWeekContainsDate:f}),v=(t=u==null?void 0:u.Head)!==null&&t!==void 0?t:ev,b=(n=u==null?void 0:u.Row)!==null&&n!==void 0?n:Av,g=(r=u==null?void 0:u.Footer)!==null&&r!==void 0?r:Zg;return F.jsxs("table",U({id:e.id,className:s.table,style:i.table,role:"grid","aria-labelledby":e["aria-labelledby"]},{children:[!l&&F.jsx(v,{}),F.jsx("tbody",U({className:s.tbody,style:i.tbody},{children:m.map(function(k){return F.jsx(b,{displayMonth:e.displayMonth,dates:k.dates,weekNumber:k.weekNumber},k.weekNumber)})})),F.jsx(g,{displayMonth:e.displayMonth})]}))}function Bv(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Hv=Bv()?h.useLayoutEffect:h.useEffect,go=!1,Wv=0;function Vs(){return"react-day-picker-".concat(++Wv)}function zv(e){var t,n=e??(go?Vs():null),r=h.useState(n),o=r[0],a=r[1];return Hv(function(){o===null&&a(Vs())},[]),h.useEffect(function(){go===!1&&(go=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function Uv(e){var t,n,r=Ce(),o=r.dir,a=r.classNames,s=r.styles,i=r.components,l=rr().displayMonths,c=zv(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),u=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,d=[a.month],f=s.month,p=e.displayIndex===0,m=e.displayIndex===l.length-1,v=!p&&!m;o==="rtl"&&(t=[p,m],m=t[0],p=t[1]),p&&(d.push(a.caption_start),f=U(U({},f),s.caption_start)),m&&(d.push(a.caption_end),f=U(U({},f),s.caption_end)),v&&(d.push(a.caption_between),f=U(U({},f),s.caption_between));var b=(n=i==null?void 0:i.Caption)!==null&&n!==void 0?n:qg;return F.jsxs("div",U({className:d.join(" "),style:f},{children:[F.jsx(b,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),F.jsx(Fv,{id:u,"aria-labelledby":c,displayMonth:e.displayMonth})]}),e.displayIndex)}function Vv(e){var t=Ce(),n=t.classNames,r=t.styles;return F.jsx("div",U({className:n.months,style:r.months},{children:e.children}))}function Yv(e){var t,n,r=e.initialProps,o=Ce(),a=wa(),s=rr(),i=h.useState(!1),l=i[0],c=i[1];h.useEffect(function(){o.initialFocus&&a.focusTarget&&(l||(a.focus(a.focusTarget),c(!0)))},[o.initialFocus,l,a.focus,a.focusTarget,a]);var u=[o.classNames.root,o.className];o.numberOfMonths>1&&u.push(o.classNames.multiple_months),o.showWeekNumber&&u.push(o.classNames.with_weeknumber);var d=U(U({},o.styles.root),o.style),f=Object.keys(r).filter(function(m){return m.startsWith("data-")}).reduce(function(m,v){var b;return U(U({},m),(b={},b[v]=r[v],b))},{}),p=(n=(t=r.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:Vv;return F.jsx("div",U({className:u.join(" "),style:d,dir:o.dir,id:o.id,nonce:r.nonce,title:r.title,lang:r.lang},f,{children:F.jsx(p,{children:s.displayMonths.map(function(m,v){return F.jsx(Uv,{displayIndex:v,displayMonth:m},v)})})}))}function Kv(e){var t=e.children,n=gg(e,["children"]);return F.jsx(Ig,U({initialProps:n},{children:F.jsx(Yg,{children:F.jsx(Pv,U({initialProps:n},{children:F.jsx(nv,U({initialProps:n},{children:F.jsx(av,U({initialProps:n},{children:F.jsx(pv,{children:F.jsx(Tv,{children:t})})}))}))}))})}))}function Gv(e){return F.jsx(Kv,U({},e,{children:F.jsx(Yv,{initialProps:e})}))}const bn="YYYY-MM-DD";const Ys=e=>{let t;const n=new Set,r=(l,c)=>{const u=typeof l=="function"?l(t):l;if(!Object.is(u,t)){const d=t;t=c??(typeof u!="object"||u===null)?u:Object.assign({},t,u),n.forEach(f=>f(t,d))}},o=()=>t,i={setState:r,getState:o,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{n.clear()}};return t=e(r,o,i),i},Xv=e=>e?Ys(e):Ys,{useDebugValue:qv}=Ct,{useSyncExternalStoreWithSelector:Zv}=Uu;function Jv(e,t=e.getState,n){const r=Zv(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return qv(r),r}const Ks=e=>{const t=typeof e=="function"?Xv(e):e,n=(r,o)=>Jv(t,r,o);return Object.assign(n,t),n},Qv=e=>e?Ks(e):Ks;var ex=(e=>(e.GO="GO",e.NODE="NODE",e))(ex||{});const tx=e=>Nt(e).unix(),nx=e=>Nt(e).subtract(1,"day").unix(),rx={total:{amount:0,prev:0,diff:0},date:Nt().format(bn),timeRange:{end:tx(new Date),start:nx(new Date)},responseType:"NODE",isUpdating:!1,timeSeriesSelector:"",focusLabel:"",limitEntries:10,deletedQueries:[],isLoading:!1,error:"",tsdbStatus:{}},ox={topN:10,timeSeriesSelector:"",focusLabel:""},Ot=Qv(e=>({...rx,setIsUpdating:t=>e(()=>({isUpdating:t})),setTotal:t=>e(()=>({total:t})),setTimeSeriesSelector:t=>e(()=>({timeSeriesSelector:t})),setTimeRange:t=>e(()=>({timeRange:t})),setFocusLabel:t=>e(()=>({focusLabel:t})),setLimitEntries:t=>e(()=>({limitEntries:t})),setDate:t=>e(()=>({date:t})),setDeletedQueries:t=>e(n=>({deletedQueries:[...n.deletedQueries,t]})),reset:()=>e(()=>({...ox})),setIsLoading:t=>e(()=>({isLoading:t})),setResponseType:t=>e(()=>({responseType:t})),setError:t=>e(()=>({error:t})),setTsdbStatus:t=>e(()=>({tsdbStatus:t}))})),ax=e=>({color:`${e.contrast}`,overflow:"visible",fontSize:"12px",background:`${e.shadow}`,border:`1px solid ${e.accentNeutral}`,mt:1.5,"& .MuiAvatar-root":{width:32,height:32,ml:-.5,mr:1},"&:before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,borderLeft:`1px solid ${e.accentNeutral}`,borderTop:`1px solid ${e.accentNeutral}`,bgcolor:`${e.shadow}`,transform:"translateY(-50%) rotate(45deg)",zIndex:0},"& .icon":{fontSize:"16px",marginRight:"4px",color:`${e.contrast}`},"& .item":{fontSize:"12px",color:`${e.contrast}`},".rdp-day_selected, .rdp-day_selected:focus-visible, .rdp-day_selected:hover":{background:`${e.primary}`,color:`${e.contrast}`},"& .rdp-day_selected : hover":{background:`${e.primary}`,color:`${e.contrast}`}}),vo=(e,t=!1)=>{let n=!e||e.length<1?new Date:new Date(e);if(typeof e=="string")return n;{const r=t?n.getTimezoneOffset():-n.getTimezoneOffset(),o=new Date;return o.setTime(n.getTime()+r*6e4),o}};function sx(){const e=Lt(),[t,n]=Ct.useState(null),{date:r,setDate:o}=Ot(),[a,s]=Ct.useState(new Date(r)),i=!!t;let l=H("p",{children:"Please pick a day."});a&&(l=ae("p",{children:["You picked ",_t(a,"PP"),"."]}));const c=f=>{s(()=>vo(f)),o(Nt(vo(f)).format(bn)),n(null)},u=f=>{n(f.currentTarget)},d=()=>{n(null)};return ae(kr,{children:[ae(Mp,{sx:{display:"flex",alignItems:"center",textAlign:"center"},children:[a&&H("p",{style:{fontSize:".8em"},children:Nt(a).format(bn)}),H(ha,{title:"Select Day",children:H(Nu,{onClick:u,size:"small",sx:{ml:2,color:`${e.contrast}`,background:`${e.primaryAccent}`,"&.MuiIconButton-root":{border:`1px solid ${e.primary}`,borderRadius:"3px"}},"aria-controls":i?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":i?"true":void 0,children:H(Kl,{style:{height:"16px",width:"16px"}})})})]}),H(Vl,{id:"account-menu",anchorEl:t,open:i,onClose:d,PaperProps:{elevation:0,sx:ax(e)},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:H(Gv,{mode:"single",selected:vo(a,!0),onSelect:c,footer:l})})]})}const Gs=(e,t)=>e?"{"+e+"="+JSON.stringify(t)+"}":"",ix=e=>{if((e==null?void 0:e.length)<1)return"";let t="{",n=e.length;for(let r=0;rGs("__name__",e),seriesCountByLabelName:({query:e})=>`{${e}!=""}`,seriesCountByFocusLabelValue:({query:e,focusLabel:t})=>Gs(t,e),seriesCountByLabelValuePair:({query:e})=>{let t;try{const o=localStorage.getItem("labelValuePairs");o?t=o:t=""}catch{t=""}let n="";if(t&&!t.includes(e))n=`${t} ${e}`,localStorage.setItem("labelValuePairs",n);else if(t&&t.includes(e)){let s=t.split(" ").filter(i=>i!==e).join(" ");n=s,localStorage.setItem("labelValuePairs",s)}else t===""&&(n=e,localStorage.setItem("labelValuePairs",n));let r=n.split(" ");return ix(r)},labelValueCountByLabelName:({query:e,match:t})=>t===""?`{${e}!=""}`:`${t.replace(/\}/gm,"")}, ${e}!=""}`};function lx(e){return e==null?void 0:e.sort((n,r)=>n.value-r.value)}function cx(e){return e==null?void 0:e.sort((n,r)=>r.value-n.value)}function ux(e){return e.sort((t,n)=>{const r=t.name.toUpperCase(),o=n.name.toUpperCase();return ro?1:0})}function dx(e){return e.sort((t,n)=>{const r=t.name.toUpperCase(),o=n.name.toUpperCase();return or?1:0})}function fx(e,t,n){return{name:{asc:()=>ux(e),desc:()=>dx(e)},value:{asc:()=>lx(e),desc:()=>cx(e)}}[t][n]()}const xo=(e,t)=>{const n=t.match?`&match[]=${encodeURIComponent(t.match)}`:"",r=t.focusLabel?`&focusLabel=${encodeURIComponent(t.focusLabel)}`:"";return`${e}/api/v1/status/tsdb?topN=${t.topN}&date=${t.date}${n}${r}`};function px(e,t){return`${btoa(e)}${t&&t!==""?":":""}${btoa(t)}`}const Ma={totalSeries:0,totalSeriesPrev:0,totalSeriesByAll:0,totalLabelValuePairs:0,seriesCountByMetricName:[],seriesCountByLabelName:[],seriesCountByFocusLabelValue:[],seriesCountByLabelValuePair:[],labelValueCountByLabelName:[]},hx=e=>{const t=fn(l=>l.dataSources);let n="";const{auth:r,url:o,headers:a}=t.find(l=>l.value===e);let s=a==null?void 0:a.reduce((l,c)=>Object.assign(l,{[c.header]:c.value}),{});if(r.basicAuth.value){let[l,c]=r.fields.basicAuth,u=c.value,d=l.value;n=px(d,u)}return{url:o,auth:n,headers:s}},mx=e=>({seriesCountByMetricName:"Metric names with highest number of series",seriesCountByLabelName:" Labels with the highest number of series",seriesCountByFocusLabelValue:`Values for "${e}" label with the highest number of series`,seriesCountByLabelValuePair:"Label=value pairs with the highest number of series",labelValueCountByLabelName:"Labels with the highest number of unique values"}),gx={seriesCountByMetricName:"Metric Name",seriesCountByLabelName:"Label name",seriesCountByFocusLabelValue:"Label value",seriesCountByLabelValuePair:"Label=value pair",labelValueCountByLabelName:"Label name"},vx=(e,t)=>mx(t??"metric")[Object.keys(e)[0]],xx=e=>Object.keys(e)[0],bx=e=>gx[Object.keys(e)[0]],yx=e=>e[Object.keys(e)[0]],Cx=(e,t)=>({title:vx(e,t),sectionHeaderName:xx(e),sectionHeader:bx(e),rows:yx(e)}),wx=async(e,t,n,r,o)=>{const a={}.VITE_API_DELETE_URL||e;try{r(!0);const s=a+"/loki/api/v1/delete";await fetch(s,{method:"GET",headers:{...o}}).then(i=>{(i&&(i==null?void 0:i.status)===204||(i==null?void 0:i.status)===200)&&console.log(i)})}catch(s){console.log(s),t(JSON.stringify(s))}finally{}},Sx=async(e,t,n,r,o,a,s,i,l)=>{const c={}.VITE_API_DELETE_URL||e;try{i(!0);const u=c+"/loki/api/v1/delete?query="+encodeURIComponent(t)+"&start="+r+"&end="+o;await fetch(u,{method:"POST",headers:{...l}}).then(d=>{if(d&&(d==null?void 0:d.status)===500||(d==null?void 0:d.status)===400){a(d.statusText),i(!1);let f=d.text();br.dispatch(yr({message:f,type:"error"}))}(d&&(d==null?void 0:d.status)===204||(d==null?void 0:d.status)===200)&&(i(!1),a(""),br.dispatch(yr({message:`Deleted ${n} Fingerprints from ${t}`,type:"success"})))})}catch(u){a(JSON.stringify(u)),i(!1),s(d=>[...d,t]),br.dispatch(yr({message:`${n} Fingerprints from ${t} not deleted`,type:"error"}))}finally{i(!1)}},Xs=async(e,t,n,r,o,a)=>{const{match:s}=t,i={date:t.date,topN:0,match:"",focusLabel:""},l={...t,date:Nt(t.date).subtract(1,"day").format(bn)},c=xo(e,t),u=xo(e,l),d=xo(e,i),f=[c,u,d];if(e){n(""),r(!0);try{const p=await Promise.all(f.map(g=>fetch(g,{headers:a})));if(p[0].status===400||p[0].status===500){const g=await p[0].text();n(g),r(!1),br.dispatch(yr({message:g,type:"error"}));return}const[m,v,b]=await Promise.all(p.map(g=>g.json()));if(p[0].ok){const{data:g}=b,k={...v.data},C={...m.data};C.totalSeriesByAll=g==null?void 0:g.totalSeries,C.totalSeriesPrev=k==null?void 0:k.totalSeries;const y=s==null?void 0:s.replace(/[{}"]/g,"");C.seriesCountByLabelValuePair=C.seriesCountByLabelValuePair.filter(T=>T.name!==y),Object.keys(C).forEach(T=>{const P=T,E=C[P],A=k[P];Array.isArray(E)&&Array.isArray(A)&&E.forEach(I=>{var N;const D=(N=A.find(j=>j.name===I.name))==null?void 0:N.value;I.diff=D?I.value-D:0,I.valuePrev=D||0})}),o(C),r(!1)}else n(m.error),o(Ma)}catch(p){r(!1),p instanceof Error&&n(`${p.name}: ${p.message}`)}}},Ta=(e=!1)=>{const{timeSeriesSelector:t,focusLabel:n,limitEntries:r,date:o,setDeletedQueries:a,setError:s,setIsLoading:i,setTsdbStatus:l,error:c}=Ot(),u=o||Nt().format(bn),d={match:t,focusLabel:n,topN:r,date:u},{url:f,headers:p}=hx("logs"),m=async(g,k)=>{const C=to.tz.guess(!0),y=to.tz(u,C).add(1,"day"),T=to.tz(u,C).add(2,"day"),P=y.clone().utc().startOf("day").unix(),E=T.clone().utc().startOf("day").unix();await Sx(f,g,k,P,E,s,a,i,p)},v=async()=>{await wx(f,s,a,i,p)},b=async g=>{const k=o||Nt().format(bn);let C={match:t,focusLabel:n,topN:r,date:k};g!==void 0&&(C={...C,...g}),await Xs(f,C,s,i,l,p)};return h.useEffect(()=>{e&&Xs(f,d,s,i,l,p)},[f,t,n,r,o]),h.useEffect(()=>{c&&(l(Ma),i(!1))},[c]),{handleDelete:m,handleGetDeletedFingerprints:v,handleCardinalityRequest:b}},Mx=({setHistoryItem:e})=>{const{timeSeriesSelector:t,setTimeSeriesSelector:n,focusLabel:r,setFocusLabel:o,limitEntries:a,setLimitEntries:s,reset:i,date:l}=Ot(),{total:c}=Ot(),{handleCardinalityRequest:u}=Ta(),[d,f]=h.useState(t),[p,m]=h.useState(r),[v,b]=h.useState(a);return h.useEffect(()=>{f(t)},[t]),h.useEffect(()=>{m(r)},[r]),h.useEffect(()=>{b(a)},[a]),{onTimeSeriesChange:D=>{f(()=>D.target.value)},onKeyDownTimeSeries:D=>{D.keyCode===13&&(n(d),u({match:d}),e("timeSeriesSelector",d))},onFocusLabeChange:D=>{m(()=>D.target.value)},onKeyDownFocusLabel:D=>{D.keyCode===13&&(o(p),u({focusLabel:p}),e("focusLabel",p))},onLimitEntriesChange:D=>{b(()=>D.target.value)},onKeyDownLimitEntries:D=>{D.keyCode===13&&(s(Number(v)),u({topN:v}),e("limitEntries",Number(v)))},onQueryHistoryChange:D=>{D.preventDefault(),n(D.target.innerText),u({match:D.target.innerText})},onFocusHistoryChange:D=>{D.preventDefault(),m(D.target.innerText),u({focusLabel:D.target.innerText})},onLimitHistoryChange:D=>{D.preventDefault(),b(Number(D.target.innerText)),u({topN:Number(D.target.innerText)})},query:d,focus:p,limit:v,totalSeries:c,reset:i,date:l}};var ka={},Tx=dt;Object.defineProperty(ka,"__esModule",{value:!0});var ic=ka.default=void 0,kx=Tx(ut()),Px=R,$x=(0,kx.default)((0,Px.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}),"Restore");ic=ka.default=$x;const Ex=e=>Ke("font-size:12px;line-height:20px;cursor:pointer;user-select:none;font-weight:500;white-space:nowrap;display:flex;align-items:center;background:",e.neutral,";border:1px solid ",e.accentNeutral,";color:",e.contrast,";border-radius:3px;height:26px;margin:0px 1px;padding:3px 5px;span{margin-left:5px;}svg{font-size:1.15em;margin:0px 2px;}&:hover{color:orange;}.tooltip{background-color:red;display:flex;align-items:center;justify-items:center;}",""),Dx=({theme:e,id:t,...n})=>H(Vl,{id:t,elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"left"},PaperProps:{sx:{background:e.neutral,color:e.contrast}},transformOrigin:{vertical:"bottom",horizontal:"left"},...n}),Rx=({id:e,handleClose:t,menuItems:n})=>{const r=Lt(),[o,a]=h.useState(null),s=!!o,i=c=>{a(()=>c.currentTarget)},l=c=>{a(null),c.target.innerText&&t(c)};return ae(kr,{children:[H("button",{onClick:i,id:`custom-menu-button-${e}`,className:nt(Ex(r)),"aria-controls":s?`custom-menu${e}`:void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,children:H(ic,{fontSize:"small"})}),H(Dx,{id:`custom-menu-${e}`,anchorEl:o,open:s,onClose:l,theme:r,children:n==null?void 0:n.map((c,u)=>H(hm,{sx:{"&.MuiMenuItem-root":{fontSize:12}},onClick:l,children:c},`${c}-${u} r`))})]})},bo=({name:e,value:t,label:n,size:r,inputSize:o="",type:a,onChange:s,onHistoryChange:i,onKeyDown:l,history:c,hasHistory:u})=>ae("div",{className:`form-group ${r}`,children:[H("label",{children:n}),H("input",{name:e,className:o,type:a,value:t,onKeyDown:l,onChange:s}),u&&(c==null?void 0:c.length)>0&&H(Rx,{id:e,menuItems:c,handleClose:i})]}),Nx=e=>Ke("background:",e.shadow,";padding:8px;border-radius:3px;margin:4px;margin-bottom:8px;display:flex;flex-direction:column;.form-row{display:flex;flex:1;}.form-group{display:flex;align-items:center;label{color:",e.contrast,";font-size:12px;padding:7px;background:",e.background,";border:1px solid ",e.lightNeutral,";border-radius:3px;}input,select{background:",e.deep,";border-radius:3px;padding:5px 8px;border:1px solid ",e.lightNeutral,";color:",e.contrast,";transition:0.35s all;font-family:monospace;&:focus{outline:none;border:1px solid ",e.primary,";}&.l{flex:1;}&.s{max-width:50px;}}select{padding:4px 7px;}&.l{flex:1;}}.config-actions{display:flex;align-items:center;justify-content:space-between;padding:4px 0px;.c-totals{display:flex;align-items:center;}.buttons-group{display:flex;gap:8px;align-items:center;}.query-button{height:30px;transition:0.35s all;background:",e.primaryAccent,";color:",e.contrast,";padding:4px 6px;border-radius:3px;border:1px solid ",e.primary,";cursor:pointer;display:flex;align-items:center;&:hover{background:",e.primary,";}}}",""),Ox=he("MuiButton",["root","active","disabled","focusVisible"]),Lx=Ox;function lc(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function _x(e={}){const{disabled:t=!1,focusableWhenDisabled:n,href:r,rootRef:o,tabIndex:a,to:s,type:i}=e,l=h.useRef(),[c,u]=h.useState(!1),{isFocusVisibleRef:d,onFocus:f,onBlur:p,ref:m}=sl(),[v,b]=h.useState(!1);t&&!n&&v&&b(!1),h.useEffect(()=>{d.current=v},[v,d]);const[g,k]=h.useState(""),C=$=>S=>{var w;v&&S.preventDefault(),(w=$.onMouseLeave)==null||w.call($,S)},y=$=>S=>{var w;p(S),d.current===!1&&b(!1),(w=$.onBlur)==null||w.call($,S)},T=$=>S=>{var w;if(l.current||(l.current=S.currentTarget),f(S),d.current===!0){var M;b(!0),(M=$.onFocusVisible)==null||M.call($,S)}(w=$.onFocus)==null||w.call($,S)},P=()=>{const $=l.current;return g==="BUTTON"||g==="INPUT"&&["button","submit","reset"].includes($==null?void 0:$.type)||g==="A"&&($==null?void 0:$.href)},E=$=>S=>{if(!t){var w;(w=$.onClick)==null||w.call($,S)}},A=$=>S=>{var w;t||(u(!0),document.addEventListener("mouseup",()=>{u(!1)},{once:!0})),(w=$.onMouseDown)==null||w.call($,S)},I=$=>S=>{var w;if((w=$.onKeyDown)==null||w.call($,S),!S.defaultMuiPrevented&&(S.target===S.currentTarget&&!P()&&S.key===" "&&S.preventDefault(),S.target===S.currentTarget&&S.key===" "&&!t&&u(!0),S.target===S.currentTarget&&!P()&&S.key==="Enter"&&!t)){var M;(M=$.onClick)==null||M.call($,S),S.preventDefault()}},D=$=>S=>{var w;if(S.target===S.currentTarget&&u(!1),(w=$.onKeyUp)==null||w.call($,S),S.target===S.currentTarget&&!P()&&!t&&S.key===" "&&!S.defaultMuiPrevented){var M;(M=$.onClick)==null||M.call($,S)}},N=h.useCallback($=>{var S;k((S=$==null?void 0:$.tagName)!=null?S:"")},[]),j=Me(N,o,m,l),B={};return g==="BUTTON"?(B.type=i??"button",n?B["aria-disabled"]=t:B.disabled=t):g!==""&&(!r&&!s&&(B.role="button",B.tabIndex=a??0),t&&(B["aria-disabled"]=t,B.tabIndex=n?a??0:-1)),{getRootProps:($={})=>{const S=lc(e),w=x({},S,$);return delete w.onFocusVisible,x({type:i},w,B,{onBlur:y(w),onClick:E(w),onFocus:T(w),onKeyDown:I(w),onKeyUp:D(w),onMouseDown:A(w),onMouseLeave:C(w),ref:j})},focusVisible:v,setFocusVisible:b,active:c,rootRef:j}}function Ix(e){return typeof e=="string"}function Ax(e,t,n){return e===void 0||Ix(e)?t:x({},t,{ownerState:x({},t.ownerState,n)})}function qs(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const jx={disableDefaultClasses:!1},Fx=h.createContext(jx);function Vr(e){const{disableDefaultClasses:t}=h.useContext(Fx);return n=>t?"":e(n)}function Bx(e,t){return typeof e=="function"?e(t):e}function cc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Hx(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const p=Zs(o==null?void 0:o.className,r==null?void 0:r.className,a,n==null?void 0:n.className),m=x({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=x({},n,o,r);return p.length>0&&(v.className=p),Object.keys(m).length>0&&(v.style=m),{props:v,internalRef:void 0}}const s=lc(x({},o,r)),i=Js(r),l=Js(o),c=t(s),u=Zs(c==null?void 0:c.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),d=x({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=x({},c,n,l,i);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}const Wx=["elementType","externalSlotProps","ownerState"];function Yr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,a=re(e,Wx),s=Bx(r,o),{props:i,internalRef:l}=Hx(x({},a,{externalSlotProps:s})),c=Me(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Ax(n,x({},i,{ref:c}),o)}function zx(e){return xe("MuiTab",e)}const Ux=he("MuiTab",["root","selected","disabled"]),Vx=Ux;function Yx(e){return xe("MuiTabs",e)}he("MuiTabs",["root","horizontal","vertical"]);const Kr=h.createContext(null);Kr.displayName="CompoundComponentContext";function Kx(e){const t=Array.from(e.keys()).map(n=>{const r=e.get(n);return{key:n,subitem:r}});return t.sort((n,r)=>{const o=n.subitem.ref.current,a=r.subitem.ref.current;return o===null||a===null||o===a?0:o.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(n=>[n.key,n.subitem]))}function uc(){const[e,t]=h.useState(new Map),n=h.useRef(new Set),r=h.useCallback(function(l){n.current.delete(l),t(c=>{const u=new Map(c);return u.delete(l),u})},[]),o=h.useCallback(function(l,c){let u;return typeof l=="function"?u=l(n.current):u=l,n.current.add(u),t(d=>{const f=new Map(d);return f.set(u,c),f}),{id:u,deregister:()=>r(u)}},[r]),a=h.useMemo(()=>Kx(e),[e]);return{contextValue:{getItemIndex:h.useCallback(function(l){return Array.from(a.keys()).indexOf(l)},[a]),registerItem:o,totalSubitemCount:e.size},subitems:a}}function Gx(e){const{value:t,defaultValue:n,onChange:r,orientation:o,direction:a,selectionFollowsFocus:s}=e,[i,l]=pl({controlled:t,default:n,name:"Tabs",state:"value"}),c=h.useCallback((b,g)=>{l(g),r==null||r(b,g)},[r,l]),{subitems:u,contextValue:d}=uc(),f=h.useRef(()=>{}),p=h.useCallback(b=>{var g;return(g=u.get(b))==null?void 0:g.id},[u]),m=h.useCallback(b=>f.current(b),[]),v=h.useCallback(b=>{f.current=b},[]);return{contextValue:x({direction:a,getTabId:m,getTabPanelId:p,onSelected:c,orientation:o,registerTabIdLookup:v,selectionFollowsFocus:s,value:i},d)}}const dc=h.createContext(null);function Pa(){const e=h.useContext(dc);if(e==null)throw new Error("No TabsContext provided");return e}function Xx(e){const{value:t,children:n}=e,{direction:r,getItemIndex:o,onSelected:a,orientation:s,registerItem:i,registerTabIdLookup:l,selectionFollowsFocus:c,totalSubitemCount:u,value:d,getTabId:f,getTabPanelId:p}=t,m=h.useMemo(()=>({getItemIndex:o,registerItem:i,totalSubitemCount:u}),[i,o,u]),v=h.useMemo(()=>({direction:r,getTabId:f,getTabPanelId:p,onSelected:a,orientation:s,registerTabIdLookup:l,selectionFollowsFocus:c,value:d}),[r,f,p,a,s,l,c,d]);return R.jsx(Kr.Provider,{value:m,children:R.jsx(dc.Provider,{value:v,children:n})})}const qx=["children","value","defaultValue","orientation","direction","onChange","selectionFollowsFocus","slotProps","slots"],Zx=e=>{const{orientation:t}=e;return be({root:["root",t]},Vr(Yx))},Jx=h.forwardRef(function(t,n){var r;const{children:o,orientation:a="horizontal",direction:s="ltr",slotProps:i={},slots:l={}}=t,c=re(t,qx),{contextValue:u}=Gx(t),d=x({},t,{orientation:a,direction:s}),f=Zx(d),p=(r=l.root)!=null?r:"div",m=Yr({elementType:p,externalSlotProps:i.root,externalForwardedProps:c,additionalProps:{ref:n},ownerState:d,className:f.root});return R.jsx(p,x({},m,{children:R.jsx(Xx,{value:u,children:o})}))}),Qx=Jx;function fc(e,t){const n=h.useContext(Kr);if(n===null)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:r}=n,[o,a]=h.useState(typeof e=="function"?void 0:e);return tt(()=>{const{id:s,deregister:i}=r(e,t);return a(s),i},[r,t,e]),{id:o,index:o!==void 0?n.getItemIndex(o):-1,totalItemCount:n.totalSubitemCount}}const De={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",textNavigation:"list:textNavigation"};function e0(e,t,n,r,o,a){if(n.length===0||!r&&n.every((i,l)=>o(i,l)))return-1;let s=e;for(;;){if(!a&&t==="next"&&s===n.length||!a&&t==="previous"&&s===-1)return-1;if(r?!1:o(n[s],s))s+=t==="next"?1:-1,a&&(s=(s+n.length)%n.length);else return s}}function ze(e,t,n){var r;const{items:o,isItemDisabled:a,disableListWrap:s,disabledItemsFocusable:i,itemComparer:l,focusManagement:c}=n,u=c==="DOM"?0:-1,d=o.length-1,f=e==null?-1:o.findIndex(g=>l(g,e));let p,m,v=!s;switch(t){case"reset":if(u===-1)return null;p=0,m="next",v=!1;break;case"start":p=0,m="next",v=!1;break;case"end":p=d,m="previous",v=!1;break;default:{const g=f+t;g<0?!v&&f!==-1||Math.abs(t)>1?(p=0,m="next"):(p=d,m="previous"):g>d?!v||Math.abs(t)>1?(p=d,m="previous"):(p=0,m="next"):(p=g,m=t>=0?"next":"previous")}}const b=e0(p,m,o,i,a,v);return b===-1&&e!==null&&!a(e,f)?e:(r=o[b])!=null?r:null}function t0(e,t,n,r){return n==="none"?[]:n==="single"?r(t[0],e)?t:[e]:t.some(o=>r(o,e))?t.filter(o=>!r(o,e)):[...t,e]}function pc(e,t,n){const{itemComparer:r,isItemDisabled:o,selectionMode:a,items:s}=n,{selectedValues:i}=t,l=s.findIndex(u=>r(e,u));if(o(e,l))return t;const c=t0(e,i,a,r);return x({},t,{selectedValues:c,highlightedValue:e})}function n0(e,t,n){const r=t.highlightedValue,{orientation:o,pageSize:a}=n;switch(e){case"Home":return x({},t,{highlightedValue:ze(r,"start",n)});case"End":return x({},t,{highlightedValue:ze(r,"end",n)});case"PageUp":return x({},t,{highlightedValue:ze(r,-a,n)});case"PageDown":return x({},t,{highlightedValue:ze(r,a,n)});case"ArrowUp":if(o!=="vertical")break;return x({},t,{highlightedValue:ze(r,-1,n)});case"ArrowDown":if(o!=="vertical")break;return x({},t,{highlightedValue:ze(r,1,n)});case"ArrowLeft":{if(o==="vertical")break;return x({},t,{highlightedValue:ze(r,o==="horizontal-ltr"?-1:1,n)})}case"ArrowRight":{if(o==="vertical")break;return x({},t,{highlightedValue:ze(r,o==="horizontal-ltr"?1:-1,n)})}case"Enter":case" ":return t.highlightedValue===null?t:pc(t.highlightedValue,t,n)}return t}function r0(e,t){return t.focusManagement==="DOM"?e:x({},e,{highlightedValue:null})}function o0(e,t,n){var r;const o=(r=n(e))==null?void 0:r.trim().toLowerCase();return!o||o.length===0?!1:o.indexOf(t)===0}function a0(e,t,n){const{items:r,isItemDisabled:o,disabledItemsFocusable:a,getItemAsString:s}=n,i=t.length>1;let l=i?e.highlightedValue:ze(e.highlightedValue,1,n);for(let c=0;ca(d,n.highlightedValue)))!=null?l:null}else s==="DOM"&&t.length===0&&(i=ze(null,"reset",r));const u=((o=n.selectedValues)!=null?o:[]).filter(d=>e.some(f=>a(f,d)));return x({},n,{highlightedValue:i,selectedValues:u})}function i0(e,t){return x({},e,{highlightedValue:ze(null,"reset",t)})}function hc(e,t){const{type:n,context:r}=t;switch(n){case De.keyDown:return n0(t.key,e,r);case De.itemClick:return pc(t.item,e,r);case De.blur:return r0(e,r);case De.textNavigation:return a0(e,t.searchString,r);case De.itemsChange:return s0(t.items,t.previousItems,e,r);case De.resetHighlight:return i0(e,r);default:return e}}function l0(){const e=new Map;function t(r,o){let a=e.get(r);return a?a.add(o):(a=new Set([o]),e.set(r,a)),()=>{a.delete(o),a.size===0&&e.delete(r)}}function n(r,...o){const a=e.get(r);a&&a.forEach(s=>s(...o))}return{subscribe:t,publish:n}}function c0(){const e=h.useRef();return e.current||(e.current=l0()),e.current}const Qs="select:change-selection",ei="select:change-highlight";function u0(){const e=c0(),t=h.useCallback(a=>{e.publish(Qs,a)},[e]),n=h.useCallback(a=>{e.publish(ei,a)},[e]),r=h.useCallback(a=>e.subscribe(Qs,a),[e]),o=h.useCallback(a=>e.subscribe(ei,a),[e]);return{notifySelectionChanged:t,notifyHighlightChanged:n,registerSelectionChangeHandler:r,registerHighlightChangeHandler:o}}function d0(e,t){return e===t}const yo={},ti=()=>{};function Wo(e,t){const n=x({},e);return Object.keys(t).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n}function f0(e){const{nextState:t,initialState:n,stateComparers:r,onStateChange:o,controlledProps:a,lastActionRef:s}=e,i=h.useRef(n);h.useEffect(()=>{if(s.current===null)return;const l=Wo(i.current,a);Object.keys(t).forEach(c=>{var u;const d=(u=r[c])!=null?u:d0,f=t[c],p=l[c];if(p==null&&f!=null||p!=null&&f==null||p!=null&&f!=null&&!d(f,p)){var m,v;o==null||o((m=s.current.event)!=null?m:null,c,f,(v=s.current.type)!=null?v:"",t)}}),i.current=t,s.current=null},[i,t,s,o,r,a])}function p0(e){const t=h.useRef(null),{reducer:n,initialState:r,controlledProps:o=yo,stateComparers:a=yo,onStateChange:s=ti,actionContext:i}=e,l=h.useCallback((f,p)=>{t.current=p;const m=Wo(f,o);return n(m,p)},[o,n]),[c,u]=h.useReducer(l,r),d=h.useCallback(f=>{u(x({},f,{context:i}))},[i]);return f0({nextState:c,initialState:r,stateComparers:a??yo,onStateChange:s??ti,controlledProps:o,lastActionRef:t}),[Wo(c,o),d]}function ni(e,t){const n=h.useRef(e);return h.useEffect(()=>{n.current=e},t??[e]),n}const h0=500;function m0(e){const t=h.useRef({searchString:"",lastTime:null});return h.useCallback(n=>{if(n.key.length===1&&n.key!==" "){const r=t.current,o=n.key.toLowerCase(),a=performance.now();r.searchString.length>0&&r.lastTime&&a-r.lastTime>h0?r.searchString=o:(r.searchString.length!==1||o!==r.searchString)&&(r.searchString+=o),r.lastTime=a,e(r.searchString,n)}},[e])}const ri={},g0=()=>{},v0=(e,t)=>e===t,x0=()=>!1,b0=e=>typeof e=="string"?e:String(e),y0=()=>({highlightedValue:null,selectedValues:[]});function C0(e){const{controlledProps:t=ri,disabledItemsFocusable:n=!1,disableListWrap:r=!1,focusManagement:o="activeDescendant",getInitialState:a=y0,getItemDomElement:s,getItemId:i,isItemDisabled:l=x0,rootRef:c,onStateChange:u=g0,items:d,itemComparer:f=v0,getItemAsString:p=b0,onChange:m,onHighlightChange:v,onItemsChange:b,orientation:g="vertical",pageSize:k=5,reducerActionContext:C=ri,selectionMode:y="single",stateReducer:T}=e,P=h.useRef(null),E=Me(c,P),A=h.useCallback((_,V,Y)=>{if(v==null||v(_,V,Y),o==="DOM"&&V!=null&&(Y===De.itemClick||Y===De.keyDown||Y===De.textNavigation)){var Z;s==null||(Z=s(V))==null||Z.focus()}},[s,v,o]),I=h.useMemo(()=>({highlightedValue:f,selectedValues:(_,V)=>qs(_,V,f)}),[f]),D=h.useCallback((_,V,Y,Z,ve)=>{switch(u==null||u(_,V,Y,Z,ve),V){case"highlightedValue":A(_,Y,Z);break;case"selectedValues":m==null||m(_,Y,Z);break}},[A,m,u]),N=h.useMemo(()=>({disabledItemsFocusable:n,disableListWrap:r,focusManagement:o,isItemDisabled:l,itemComparer:f,items:d,getItemAsString:p,onHighlightChange:A,orientation:g,pageSize:k,selectionMode:y,stateComparers:I}),[n,r,o,l,f,d,p,A,g,k,y,I]),j=a(),B=T??hc,O=h.useMemo(()=>x({},C,N),[C,N]),[$,S]=p0({reducer:B,actionContext:O,initialState:j,controlledProps:t,stateComparers:I,onStateChange:D}),{highlightedValue:w,selectedValues:M}=$,L=m0((_,V)=>S({type:De.textNavigation,event:V,searchString:_})),W=ni(M),X=ni(w),J=h.useRef([]);h.useEffect(()=>{qs(J.current,d,f)||(S({type:De.itemsChange,event:null,items:d,previousItems:J.current}),J.current=d,b==null||b(d))},[d,f,S,b]);const{notifySelectionChanged:oe,notifyHighlightChanged:te,registerHighlightChangeHandler:ne,registerSelectionChangeHandler:le}=u0();h.useEffect(()=>{oe(M)},[M,oe]),h.useEffect(()=>{te(w)},[w,te]);const ge=_=>V=>{var Y;if((Y=_.onKeyDown)==null||Y.call(_,V),V.defaultMuiPrevented)return;const Z=["Home","End","PageUp","PageDown"];g==="vertical"?Z.push("ArrowUp","ArrowDown"):Z.push("ArrowLeft","ArrowRight"),o==="activeDescendant"&&Z.push(" ","Enter"),Z.includes(V.key)&&V.preventDefault(),S({type:De.keyDown,key:V.key,event:V}),L(V)},ue=_=>V=>{var Y,Z;(Y=_.onBlur)==null||Y.call(_,V),!V.defaultMuiPrevented&&((Z=P.current)!=null&&Z.contains(V.relatedTarget)||S({type:De.blur,event:V}))},z=(_={})=>x({},_,{"aria-activedescendant":o==="activeDescendant"&&w!=null?i(w):void 0,onBlur:ue(_),onKeyDown:ge(_),tabIndex:o==="DOM"?-1:0,ref:E}),K=h.useCallback(_=>{var V;const Y=d.findIndex(Ne=>f(Ne,_)),Z=((V=W.current)!=null?V:[]).some(Ne=>Ne!=null&&f(_,Ne)),ve=l(_,Y),me=X.current!=null&&f(_,X.current);return{disabled:ve,focusable:o==="DOM",highlighted:me,index:Y,selected:Z}},[d,l,f,W,X,o]),q=h.useMemo(()=>({dispatch:S,getItemState:K,registerHighlightChangeHandler:ne,registerSelectionChangeHandler:le}),[S,K,ne,le]);return h.useDebugValue({state:$}),{contextValue:q,dispatch:S,getRootProps:z,rootRef:E,state:$}}function w0(){const[,e]=h.useState({});return h.useCallback(()=>{e({})},[])}const mc=h.createContext(null);function S0(e){const{handlePointerOverEvents:t=!1,item:n,rootRef:r}=e,o=h.useRef(null),a=Me(o,r),s=h.useContext(mc);if(!s)throw new Error("useListItem must be used within a ListProvider");const{dispatch:i,getItemState:l,registerHighlightChangeHandler:c,registerSelectionChangeHandler:u}=s,{highlighted:d,selected:f,focusable:p}=l(n),m=w0();tt(()=>{function C(y){(y===n&&!d||y!==n&&d)&&m()}return c(C)}),tt(()=>{function C(y){f?y.includes(n)||m():y.includes(n)&&m()}return u(C)},[u,m,f,n]);const v=h.useCallback(C=>y=>{var T;(T=C.onClick)==null||T.call(C,y),!y.defaultPrevented&&i({type:De.itemClick,item:n,event:y})},[i,n]),b=h.useCallback(C=>y=>{var T;(T=C.onMouseOver)==null||T.call(C,y),!y.defaultPrevented&&i({type:De.itemHover,item:n,event:y})},[i,n]);let g;return p&&(g=d?0:-1),{getRootProps:(C={})=>x({},C,{onClick:v(C),onPointerOver:t?b(C):void 0,ref:a,tabIndex:g}),highlighted:d,rootRef:a,selected:f}}function M0(e){return e.size}function T0(e){const{value:t,rootRef:n,disabled:r=!1,id:o}=e,a=h.useRef(null),s=Jn(o),{value:i,selectionFollowsFocus:l,getTabPanelId:c}=Pa(),u=h.useMemo(()=>({disabled:r,ref:a,id:s}),[r,a,s]),{id:d,index:f,totalItemCount:p}=fc(t??M0,u),{getRootProps:m,rootRef:v,highlighted:b,selected:g}=S0({item:d}),{getRootProps:k,rootRef:C,active:y,focusVisible:T,setFocusVisible:P}=_x({disabled:r,focusableWhenDisabled:!l,type:"button"}),E=Me(a,n,v,C),A=d!==void 0?c(d):void 0;return{getRootProps:(D={})=>{const N=x({},D,m(D)),j=x({},N,k(N));return x({},j,{role:"tab","aria-controls":A,"aria-selected":g,id:s,ref:E})},active:y,focusVisible:T,highlighted:b,index:f,rootRef:E,selected:g||d===i,setFocusVisible:P,totalTabsCount:p}}const k0=["action","children","value","disabled","onChange","onClick","onFocus","slotProps","slots"],P0=e=>{const{selected:t,disabled:n}=e;return be({root:["root",t&&"selected",n&&"disabled"]},Vr(zx))},$0=h.forwardRef(function(t,n){var r;const{children:o,disabled:a=!1,slotProps:s={},slots:i={}}=t,l=re(t,k0),c=h.useRef(),u=Me(c,n),{active:d,highlighted:f,selected:p,getRootProps:m}=T0(x({},t,{rootRef:u})),v=x({},t,{active:d,disabled:a,highlighted:f,selected:p}),b=P0(v),g=(r=i.root)!=null?r:"button",k=Yr({elementType:g,getSlotProps:m,externalSlotProps:s.root,externalForwardedProps:l,additionalProps:{ref:n},ownerState:v,className:b.root});return R.jsx(g,x({},k,{children:o}))}),E0=$0;var $a={},D0=dt;Object.defineProperty($a,"__esModule",{value:!0});var gc=$a.default=void 0,R0=D0(ut()),oi=R,N0=(0,R0.default)([(0,oi.jsx)("path",{d:"M20 3H4c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h4v2h8v-2h4c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 14H4V5h16v12z"},"0"),(0,oi.jsx)("path",{d:"M6 8.25h8v1.5H6zm10.5 1.5H18v-1.5h-1.5V7H15v4h1.5zm-6.5 2.5h8v1.5h-8zM7.5 15H9v-4H7.5v1.25H6v1.5h1.5z"},"1")],"DisplaySettings");gc=$a.default=N0;var Ea={},O0=dt;Object.defineProperty(Ea,"__esModule",{value:!0});var vc=Ea.default=void 0,L0=O0(ut()),_0=R,I0=(0,L0.default)((0,_0.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}),"History");vc=Ea.default=I0;var Da={},A0=dt;Object.defineProperty(Da,"__esModule",{value:!0});var xc=Da.default=void 0,j0=A0(ut()),F0=R,B0=(0,j0.default)((0,F0.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");xc=Da.default=B0;function H0(e){return xe("MuiTabsList",e)}he("MuiTabsList",["root","horizontal","vertical"]);const bc={valueChange:"valueChange"};function W0(e,t){if(t.type===bc.valueChange)return x({},e,{highlightedValue:t.value});const n=hc(e,t),{context:{selectionFollowsFocus:r}}=t;if(t.type===De.itemsChange){if(n.selectedValues.length>0)return x({},n,{highlightedValue:n.selectedValues[0]});ze(null,"reset",t.context)}return r&&n.highlightedValue!=null?x({},n,{selectedValues:[n.highlightedValue]}):n}function z0(e){var t;const{rootRef:n}=e,{direction:r="ltr",onSelected:o,orientation:a="horizontal",value:s,registerTabIdLookup:i,selectionFollowsFocus:l}=Pa(),{subitems:c,contextValue:u}=uc(),d=h.useCallback(D=>{var N;return(N=c.get(D))==null?void 0:N.id},[c]);i(d);const f=h.useMemo(()=>Array.from(c.keys()),[c]),p=h.useCallback(D=>{var N,j;return D==null?null:(N=(j=c.get(D))==null?void 0:j.ref.current)!=null?N:null},[c]),m=r==="rtl";let v;a==="vertical"?v="vertical":v=m?"horizontal-rtl":"horizontal-ltr";const b=h.useCallback((D,N)=>{var j;o(D,(j=N[0])!=null?j:null)},[o]),g=h.useMemo(()=>s===void 0?{}:s!=null?{selectedValues:[s]}:{selectedValues:[]},[s]),k=h.useCallback(D=>{var N,j;return(N=(j=c.get(D))==null?void 0:j.disabled)!=null?N:!1},[c]),{contextValue:C,dispatch:y,getRootProps:T,state:{highlightedValue:P,selectedValues:E},rootRef:A}=C0({controlledProps:g,disabledItemsFocusable:!l,focusManagement:"DOM",getItemDomElement:p,isItemDisabled:k,items:f,rootRef:n,onChange:b,orientation:v,reducerActionContext:h.useMemo(()=>({selectionFollowsFocus:l||!1}),[l]),selectionMode:"single",stateReducer:W0});h.useEffect(()=>{s!==void 0&&s!=null&&y({type:bc.valueChange,value:s})},[y,s]);const I=(D={})=>x({},D,T(D),{"aria-orientation":a==="vertical"?"vertical":void 0,role:"tablist"});return{contextValue:x({},u,C),dispatch:y,getRootProps:I,highlightedValue:P,isRtl:m,orientation:a,rootRef:A,selectedValue:(t=E[0])!=null?t:null}}function U0(e){const{value:t,children:n}=e,{dispatch:r,getItemIndex:o,getItemState:a,registerHighlightChangeHandler:s,registerSelectionChangeHandler:i,registerItem:l,totalSubitemCount:c}=t,u=h.useMemo(()=>({dispatch:r,getItemState:a,getItemIndex:o,registerHighlightChangeHandler:s,registerSelectionChangeHandler:i}),[r,o,a,s,i]),d=h.useMemo(()=>({getItemIndex:o,registerItem:l,totalSubitemCount:c}),[l,o,c]);return R.jsx(Kr.Provider,{value:d,children:R.jsx(mc.Provider,{value:u,children:n})})}const V0=["children","slotProps","slots"],Y0=e=>{const{orientation:t}=e;return be({root:["root",t]},Vr(H0))},K0=h.forwardRef(function(t,n){var r;const{children:o,slotProps:a={},slots:s={}}=t,i=re(t,V0),{isRtl:l,orientation:c,getRootProps:u,contextValue:d}=z0({rootRef:n}),f=x({},t,{isRtl:l,orientation:c}),p=Y0(f),m=(r=s.root)!=null?r:"div",v=Yr({elementType:m,getSlotProps:u,externalSlotProps:a.root,externalForwardedProps:i,ownerState:f,className:p.root});return R.jsx(U0,{value:d,children:R.jsx(m,x({},v,{children:o}))})}),G0=K0;function X0(e){return xe("MuiTabPanel",e)}he("MuiTabPanel",["root","hidden"]);function q0(e){return e.size}function Z0(e){const{value:t,id:n,rootRef:r}=e,o=Pa();if(o===null)throw new Error("No TabContext provided");const{value:a,getTabId:s}=o,i=Jn(n),l=h.useRef(null),c=Me(l,r),u=h.useMemo(()=>({id:i,ref:l}),[i]),{id:d}=fc(t??q0,u),f=d!==a,p=d!==void 0?s(d):void 0;return{hidden:f,getRootProps:()=>({"aria-labelledby":p??void 0,hidden:f,id:i??void 0,ref:c}),rootRef:c}}const J0=["children","value","slotProps","slots"],Q0=e=>{const{hidden:t}=e;return be({root:["root",t&&"hidden"]},Vr(X0))},eb=h.forwardRef(function(t,n){var r;const{children:o,slotProps:a={},slots:s={}}=t,i=re(t,J0),{hidden:l,getRootProps:c}=Z0(t),u=x({},t,{hidden:l}),d=Q0(u),f=(r=s.root)!=null?r:"div",p=Yr({elementType:f,getSlotProps:c,externalSlotProps:a.root,externalForwardedProps:i,additionalProps:{role:"tabpanel",ref:n},ownerState:u,className:d.root});return R.jsx(f,x({},p,{children:!l&&o}))}),tb=eb;var Ra={},nb=dt;Object.defineProperty(Ra,"__esModule",{value:!0});var yc=Ra.default=void 0,rb=nb(ut()),ob=R,ab=(0,rb.default)((0,ob.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");yc=Ra.default=ab;var Na={},sb=dt;Object.defineProperty(Na,"__esModule",{value:!0});var Cc=Na.default=void 0,ib=sb(ut()),lb=R,cb=(0,ib.default)((0,lb.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link");Cc=Na.default=cb;const ub=ce(hl,{target:"efhpvve1"})("background:",e=>e.theme.neutral,";border:1px solid ",e=>e.theme.accentNeutral,";color:",e=>e.theme.contrast,";border-radius:3px;height:26px;margin:0px 1px;padding:",e=>e.size==="small"?"3px 5px":"",";span{margin-left:5px;}svg{margin:0;padding:0;}&:hover{color:orange;}"),KS=ce(e=>H($h,{anchor:"bottom",style:{maxHeight:"250px"},variant:"persistent",...e}),{target:"e1sfd2ep24"})(({theme:e})=>({"& .MuiPaper-root":{borderTop:`1px solid ${e.accentNeutral}`}}),""),GS=ce(Qx,{target:"e1sfd2ep23"})('height:"320px";background:',({theme:e})=>e.deep,";"),XS=ce(E0,{target:"e1sfd2ep22"})("color:",({theme:e})=>e.contrast,";background:",({theme:e})=>e.neutral,";border:1px solid ",e=>e.theme.accentNeutral,";cursor:pointer;font-size:13px;background-color:transparent;padding:6px 10px;border:none;border-radius:3px 3px 0px 0px;display:flex;justify-content:center;align-items:center;border-bottom:1px solid transparent;transition:0.2s all;&:hover{background-color:",({theme:e})=>e.lightNeutral,";}&:focus{color:",({theme:e})=>e.contrast,";background:",({theme:e})=>e.neutral,";border-radius:3px 3px 0px 0px;outline-offset:2px;}&.",Vx.selected,"{border-bottom:1px solid ",({theme:e})=>e.primary,";}&.",Lx.disabled,"{opacity:0.5;cursor:not-allowed;}@media screen and (max-width: 360px){span{display:none;}padding:5px 20px;}"),qS=ce(vc,{target:"e1sfd2ep21"})({name:"1hncz6a",styles:"height:16px;width:16px;margin-right:3px"}),ZS=ce(yc,{target:"e1sfd2ep20"})({name:"1hncz6a",styles:"height:16px;width:16px;margin-right:3px"}),JS=ce(gc,{target:"e1sfd2ep19"})({name:"1hncz6a",styles:"height:16px;width:16px;margin-right:3px"}),QS=ce(Cc,{target:"e1sfd2ep18"})({name:"1hncz6a",styles:"height:16px;width:16px;margin-right:3px"}),eM=ce(xc,{target:"e1sfd2ep17"})("height:21px;width:16px;padding:0px 3px;border-radius:3px 0px 0px 3px;background:",({theme:e})=>e.deep,";"),tM=ce("div",{target:"e1sfd2ep16"})("padding:0px 15px;font-size:13px;display:flex;align-items:center;color:",({theme:e})=>e.contrast,";justify-content:space-between;background:",({theme:e})=>e.shadow,";height:37px;"),nM=ce(tb,{target:"e1sfd2ep15"})("width:100%;background:",({theme:e})=>e.shadow,";"),rM=ce(G0,{target:"e1sfd2ep14"})("min-width:320px;background:",({theme:e})=>e.shadow,";border-bottom:4px solid ",({theme:e})=>e.bgNeutral,";display:flex;align-items:center;align-content:space-between;"),oM=ce("div",{target:"e1sfd2ep13"})("display:flex;align-items:center;justify-content:center;color:",({theme:e})=>e.contrast,";font-size:14px;flex:1;padding:20px;height:50%;"),aM=ce("div",{target:"e1sfd2ep12"})("height:250px;overflow-y:auto;color:",({theme:e})=>e.contrast,";background:",({theme:e})=>e.lightActiveBg,";&.starredCont{height:210px;}&::-webkit-scrollbar{width:5px;background:",({theme:e})=>e.neutral,";}&::-webkit-scrollbar-corner{background:transparent;}&::-webkit-scrollbar-thumb{border-radius:5px;background:",({theme:e})=>e.alphaPlusNeutral,";}"),or=ce(ub,{target:"e1sfd2ep11"})("padding:3px 6px;background:",({theme:e})=>e.neutral,";border:1px solid ",e=>e.theme.accentNeutral,";border-radius:3px;border:none;color:",({theme:e})=>e.contrast,";display:flex;align-items:center;justify-content:center;margin:0px 6px;cursor:pointer;min-height:20px;"),sM=ce("div",{target:"e1sfd2ep10"})("height:100px;width:240px;display:flex;flex-direction:column;justify-content:space-between;padding:20px;background:",({theme:e})=>e.neutral,";border:1px solid ",e=>e.theme.accentNeutral,";margin:10px;border-radius:3px;& div{font-size:15px;color:",({theme:e})=>e.accent,";line-height:1.5;}& small{font-size:12px;color:",({theme:e})=>e.contrast,";line-height:1.5;margin-bottom:10px;}"),iM=ce(or,{target:"e1sfd2ep9"})("background:",({theme:e})=>e.primary,";color:",({theme:e})=>e.maxContrast,";white-space:nowrap;.open-icon{display:none;}.open-text{display:flex;font-size:12px;}@media screen and (max-width: 1070px){.open-icon{display:flex;}.open-text{display:none;}}"),lM=ce(or,{target:"e1sfd2ep8"})("font-weight:bold;padding:10px 20px;background:",({theme:e})=>e.primary,";color:",({theme:e})=>e.maxContrast,";margin:0;width:100%;white-space:nowrap;"),cM=ce(or,{target:"e1sfd2ep7"})("background:none;color:",({theme:e})=>e.contrast,";position:absolute;right:0;"),db=ce(or,{target:"e1sfd2ep6"})("background:",({theme:e})=>e.neutral,";border:1px solid ",e=>e.theme.accentNeutral,";padding:8px 16px;"),fb=ce(or,{target:"e1sfd2ep5"})("background:",({theme:e})=>e.primary,";color:",({theme:e})=>e.maxContrast,";padding:8px 16px;"),uM=ce("input",{target:"e1sfd2ep4"})("color:",({theme:e})=>e.contrast,";background:",({theme:e})=>e.deep,";border:none;height:21px;margin:0px 10px 0px 0px;padding:0px;font-size:13px;border-radius:0px 3px 3px 0px;font-family:monospace;font-size:12px;&:focus{outline:none;color:",({theme:e})=>e.primary,";}"),dM=ce("span",{target:"e1sfd2ep3"})('flex:1;font-family:monospace;display:flex;align-items:center;font-size:"13px";color:',({theme:e})=>e.contrast,";white-space:nowrap;padding:4px 0px;overflow:hidden;text-overflow:ellipsis;"),fM=ce("div",{target:"e1sfd2ep2"})("display:flex;flex:1;justify-content:space-between;.open-button{display:none;}.inline-params{align-items:center;display:",e=>e.open?"none":"grid",";flex:1;grid-template-columns:1fr 0.25fr 0.25fr auto;margin-right:5px;}.open-button{display:flex;color:",({theme:e})=>e.maxContrast,";background:none;border:none;}.block-params{display:",e=>e.open?"flex":"none",";flex-direction:column;flex:1;p{display:flex;align-items:center;flex:1;line-height:1.5;font-size:12px;font-family:monospace;span{margin-left:3px;&.key{flex:1;}&.value{flex:3;}}}}@media screen and (max-width: 1070px){.inline-params{display:none;}}"),pM=ce("div",{target:"e1sfd2ep1"})("padding:5px 0px;padding-left:10px;border:1px solid ",({theme:e})=>e.bgNeutral,";margin:5px;border-radius:3px;font-size:13px;display:flex;justify-content:space-between;align-items:center;"),hM=ce("div",{target:"e1sfd2ep0"})({name:"oylbmz",styles:"@media screen and (max-width: 1370px){display:none;}"}),pb=e=>t=>{t({type:"SET_SETTINGS_DIALOG_OPEN",settingsDialogOpen:e})};var Oa={},hb=dt;Object.defineProperty(Oa,"__esModule",{value:!0});var wc=Oa.default=void 0,mb=hb(ut()),gb=R,vb=(0,mb.default)((0,gb.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");wc=Oa.default=vb;var La={},xb=dt;Object.defineProperty(La,"__esModule",{value:!0});var Sc=La.default=void 0,bb=xb(ut()),yb=R,Cb=(0,bb.default)((0,yb.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");Sc=La.default=Cb;const Co=ce("div",{target:"er3ypqd13"})({name:"v62lug",styles:"display:flex;flex-direction:column;margin-bottom:20px"}),wb=ce("div",{target:"er3ypqd9"})("display:flex;flex:1;flex-direction:column;background:",({theme:e})=>e.shadow,";"),Sb=ce("div",{target:"er3ypqd8"})({name:"t6jzno",styles:"margin:20px;display:flex;flex-direction:column;flex:1"}),pr=ce("label",{target:"er3ypqd5"})("font-size:12px;color:",({theme:e})=>e.contrast,";margin-left:10px;"),Mb=ce("div",{target:"er3ypqd2"})("display:flex;justify-content:space-between;align-items:center;margin:10px;h3{margin-left:10px;font-size:1em;color:",({theme:e})=>e.contrast,";}"),Tb=ce(hl,{target:"er3ypqd1"})("background:none;padding:0;color:",({theme:e})=>e.contrast,";"),kb=ce("textarea",{target:"er3ypqd0"})("display:flex;flex:1;margin:5px 0px;height:150px;width:250px;font-size:10px;padding:5px 8px;border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;background:",({theme:e})=>e.deep,";color:",({theme:e})=>e.contrast,";");function Pb(e){return function(t){t({type:"SET_DEBUG_MODE",debugMode:e})}}const $b=e=>{var r,o;const n=/&(lt|gt|amp);/.test(e);return e===void 0?"":n?(o=(r=e==null?void 0:e.replaceAll(/</g,"<"))==null?void 0:r.replaceAll(/>/g,">"))==null?void 0:o.replaceAll(/&/g,"&"):e};function Eb(e){return String($b(e))}const Mc=Ke({name:"1l02985",styles:"background-color:transparent!important"});function mM({open:e}){const t=fl(),n=fn(k=>k.theme),r=fn(k=>k.autoTheme),o=fn(k=>k.debugMode),a=Lt(),[s,i]=h.useState(f(window.location.href)),[l,c]=h.useState(n),[u,d]=h.useState(r);h.useEffect(()=>{d(r)},[r,d]);function f(k){return k+"&isEmbed=true"}h.useEffect(()=>{i(f(window.location.href))},[window.location.href]),h.useEffect(()=>{c(n)},[n,c]);function p(){const k=l==="light"?"dark":"light";t(Gu(k)),c(k),localStorage.setItem("theme",JSON.stringify({theme:k,auto:u}))}const m=()=>{const k=!u;t(ed(k)),d(k),localStorage.setItem("theme",JSON.stringify({theme:n,auto:k}))};function v(){t(pb(!1))}function b(k){i(k.target.value)}function g(){t(Pb(!o)),localStorage.setItem("isDebug",JSON.stringify({isActive:!o}))}return H(Zu,{theme:a,children:H(Fl,{open:e,onClose:v,PaperProps:{classes:{root:Mc}},children:ae(wb,{children:[ae(Mb,{children:[H("h3",{children:"Settings"}),ae(Tb,{onClick:v,children:[" ",H(wc,{})," "]})]}),ae(Sb,{children:[ae(Co,{children:[ae(pr,{children:["Theme: ",n]}),H(oo,{size:"small",checked:l==="dark",onChange:p,disabled:u,inputProps:{"aria-label":"controlled"}}),ae(pr,{children:["Automatic theme detection"," ",H(ha,{title:"Theme determined by your system preferenes",children:H(Sc,{fontSize:"inherit"})})]}),H(oo,{size:"small",checked:u,onChange:m,inputProps:{"aria-label":"controlled"}})]}),ae(Co,{children:[H(pr,{children:"Set Debug Mode"}),H(oo,{size:"small",checked:o,onChange:g,inputProps:{"aria-label":"controlled"}})]}),ae(Co,{children:[H(pr,{children:"Embed View"}),H(kb,{rows:"8",value:Eb(s),onChange:b})]})]})]})})})}const Db=ce("div",{target:"e1n1tll40"})("background:",({theme:e})=>e.shadow,";#alert-dialog-title{color:",({theme:e})=>e.contrast,";span{color:",({theme:e})=>e.primary,";padding:2px 4px;border-radius:3px;font-family:monospace;}}#alert-dialog-description{color:",({theme:e})=>e.lightContrast,";font-weight:normal;em{color:",({theme:e})=>e.contrast,";font-variant:italic;}}");function Tc({clearFingerPrints:e,label:t,value:n,source:r,isLoading:o,isCustom:a=!1,query:s=""}){const[i,l]=h.useState(!1),c=Lt(),{focusLabel:u,timeSeriesSelector:d}=Ot(),f=()=>{l(!0)},p=()=>{l(!1)};async function m(){let v=s??"";a||(v=sc[r]({query:t,focusLabel:u,match:d})),await e(v),l(!1)}return H(Cl,{theme:c,children:ae("div",{children:[H(ha,{title:`Delete fingerprints for ${t!==""?t:s}`,children:H("div",{style:{display:"flex",flex:1,alignItems:"center",justifyContent:"center"},children:H(Xu,{onClick:f,style:{color:c.contrast,cursor:"pointer",fontSize:"18px"},fontSize:"small"})})}),H(Fl,{open:i,onClose:p,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",PaperProps:{classes:{root:Mc}},children:ae(Db,{children:[H(fh,{id:"alert-dialog-title",children:a?ae(kr,{children:["Are you sure you want to clear the"," ",H("span",{children:n})," fingerprints with query ",s,"?"]}):ae(kr,{children:["Are you sure you want to clear the"," ",H("span",{children:n})," fingerprints with label"," ",H("span",{children:t})," from ",H("span",{children:r}),"?"]})}),H(th,{children:ae(ih,{id:"alert-dialog-description",children:["Click ",H("em",{children:"Delete Fingerprints"})," to delete your fingerprints permanently"]})}),ae(Yp,{children:[H(db,{onClick:p,children:"Cancel"}),H(fb,{onClick:m,active:!o,autoFocus:!0,children:o?"Deleting...":"Delete Fingerprints"})]})]})})]})})}const Rb=({theme:e=Ju(),focusLabelItems:t,timeSeriesSelectorItems:n,limitEntriesItems:r,setHistoryItem:o})=>{const{onTimeSeriesChange:a,onKeyDownTimeSeries:s,onFocusLabeChange:i,onKeyDownFocusLabel:l,onLimitEntriesChange:c,onKeyDownLimitEntries:u,onQueryHistoryChange:d,onFocusHistoryChange:f,onLimitHistoryChange:p,query:m,focus:v,limit:b,totalSeries:g,reset:k,date:C}=Mx({setHistoryItem:o}),{handleCardinalityRequest:y,handleDelete:T}=Ta(!0),{setTimeSeriesSelector:P,setFocusLabel:E,setLimitEntries:A,isLoading:I}=Ot(),D=()=>{k(),localStorage.setItem("labelValuePairs",""),y({match:"",focusLabel:"",topN:b,date:C})};return ae("div",{className:nt(Nx(e)),children:[ae("div",{className:"form-row",children:[H(bo,{name:"timeSeriesSelector",value:m,label:"Time Series Selector",size:"l",inputSize:"l",type:"text",onChange:a,onKeyDown:s,onHistoryChange:d,history:n,hasHistory:n.length>0}),H(bo,{name:"focusLabel",value:v,label:"Focus Label",size:"m",inputSize:"",type:"text",onChange:i,onKeyDown:l,onHistoryChange:f,history:t,hasHistory:t.length>0}),H(bo,{name:"limitEntries",value:b,label:"Limit Entries",size:"s",inputSize:"s",type:"number",onChange:c,onKeyDown:u,onHistoryChange:p,history:r,hasHistory:r.length>0})]}),ae("div",{className:"config-actions",children:[ae("div",{className:"c-totals",children:[H(wr,{theme:e,value:g.amount,text:"total"}),H(wr,{theme:e,type:"prev",value:g.prev,text:"previous"}),H(wr,{theme:e,type:"diff",value:g.diff,trend:g.diff===0?"none":g.diff>0?"up":"down",text:"diff"})]}),ae("div",{className:"buttons-group",children:[m!==""&&H("button",{className:"query-button",children:H(Tc,{clearFingerPrints:N=>T(N,g.amount),isLoading:I,label:"",value:g.amount,source:"",isCustom:!0,query:m})}),H(sx,{}),H("button",{onClick:D,className:"query-button",children:"Reset"}),ae("button",{onClick:()=>{P(m),E(v),A(Number(b)),y({match:m,focusLabel:v,topN:b})},className:"query-button",children:[H(Yl,{fontSize:"small"}),"Execute Query"]})]})]})]})},Nb="SET_IS_CARDINALITY",ai=e=>t=>{t({type:Nb,isCardinality:e})},Ob=(e,t)=>{var b;const{focusLabel:n,timeSeriesSelector:r,setFocusLabel:o,setTimeSeriesSelector:a,setTotal:s,tsdbStatus:i,isLoading:l}=Ot(),[c,u]=h.useState({data:Ma,formattedSeries:[]}),d=(g,k)=>{const C=sc[g]({query:k,focusLabel:n,match:r});a(C),t("timeSeriesSelector",C),(g==="labelValueCountByLabelName"||g=="seriesCountByLabelName")&&(o(k),t("focusLabel",k)),g=="seriesCountByFocusLabelValue"&&o("")},f=(g,k)=>{d(k.source,k.name)},p=(g,k)=>g*100/k,m=(g,k,C)=>g.map(y=>({name:y.name||"",value:y.value||0,diff:y.diff||0,prev:y.valuePrev||0,share:p(y.value,k==null?void 0:k.totalSeries)||0,source:C,onFilter:f})),v=g=>g?Object.keys(g).filter(T=>Array.isArray(g[T])).map(T=>({[T]:m(g[T],g,T)})):[];return h.useEffect(()=>{i&&(s({amount:i.totalSeries,prev:i.totalSeriesPrev,diff:i.totalSeries-i.totalSeriesPrev}),u({data:i,formattedSeries:v(i)}))},[i]),{data:c,totalSeries:((b=c==null?void 0:c.data)==null?void 0:b.totalSeries)??0,formattedSeries:(c==null?void 0:c.formattedSeries)??[],isLoading:l}},Lb=ee(e=>H(ng,{...e,TabIndicatorProps:{children:H("span",{className:"MuiTabs-indicatorSpan"})}}))(({theme:e})=>({"& .MuiButtonBase-root-MuiTab-root":{maxHeight:"20px"},"& .MuiTabs-indicator":{display:"flex",justifyContent:"center",backgroundColor:"transparent"},"& .MuiTabs-indicatorSpan":{maxWidth:40,width:"100%",backgroundColor:e==null?void 0:e.primary}})),si=ee(e=>H(Dm,{disableRipple:!0,...e}))(({theme:e})=>({textTransform:"none",fontWeight:e.typography.fontWeightRegular,fontSize:"12px",padding:0,marginRight:"8px",color:e.lightContrast,"&.Mui-selected":{color:e.contrast},"&.Mui-focusVisible":{backgroundColor:"rgba(100, 95, 228, 0.32)"}})),_b=e=>Ke("background:",e.WidgetBg,";.MuiTabs-root{height:20px!important;min-height:20px;}.MuiButtonBase-root{min-height:0;}",""),Ib=({title:e,tabsValue:t,onTabChange:n,theme:r})=>ae("div",{className:"c-header",children:[H("div",{children:e}),H("div",{className:nt(_b(r)),children:ae(Lb,{value:t,onChange:n,children:[H(si,{label:"Table"}),H(si,{label:"Chart"})]})})]}),ii=e=>{const{neutral:t,primaryLight:n,deep:r,ultraDeep:o,primary:a,contrast:s,shadow:i}=e;return{neutral:t,primaryLight:n,deep:r,ultraDeep:o,primary:a,contrast:s,shadow:i}},Ab=e=>Ke("margin:4px;display:flex;flex-direction:column;padding:8px 4px;background:",e.shadow,";gap:4px;.c-header{display:flex;align-items:center;justify-content:space-between;font-size:14px;padding:8px 6px;border-bottom:1px solid ",e.neutral,";font-weight:bold;}.c-table{display:table;widht:100%;}",""),kc=e=>({seriesGroupContainer:nt(Ab(ii(e))),seriesGroupStyles:ii(e)}),Pc=e=>{const[t,n]=h.useState({col:"value",order:"desc"});return{sortedRows:h.useMemo(()=>{const{col:a,order:s}=t;return fx(e,a,s)},[e,t]),handleSort:a=>{n(s=>({col:a,order:s.order==="asc"?"desc":"asc"}))}}};function it(e){return function(){return e}}const jb=Math.PI,wo=2*jb;function $c(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Fb(e,t){return te?1:t>=e?0:NaN}function Bb(e){return e}function Hb(){var e=Bb,t=Fb,n=null,r=it(0),o=it(wo),a=it(0);function s(i){var l,c=(i=$c(i)).length,u,d,f=0,p=new Array(c),m=new Array(c),v=+r.apply(this,arguments),b=Math.min(wo,Math.max(-wo,o.apply(this,arguments)-v)),g,k=Math.min(Math.abs(b)/c,a.apply(this,arguments)),C=k*(b<0?-1:1),y;for(l=0;l0&&(f+=y);for(t!=null?p.sort(function(T,P){return t(m[T],m[P])}):n!=null&&p.sort(function(T,P){return n(i[T],i[P])}),l=0,d=f?(b-c*C)/f:0;l0?y*d:0)+C,m[u]={data:i[u],index:l,value:y,startAngle:v,endAngle:g,padAngle:k};return m}return s.value=function(i){return arguments.length?(e=typeof i=="function"?i:it(+i),s):e},s.sortValues=function(i){return arguments.length?(t=i,n=null,s):t},s.sort=function(i){return arguments.length?(n=i,t=null,s):n},s.startAngle=function(i){return arguments.length?(r=typeof i=="function"?i:it(+i),s):r},s.endAngle=function(i){return arguments.length?(o=typeof i=="function"?i:it(+i),s):o},s.padAngle=function(i){return arguments.length?(a=typeof i=="function"?i:it(+i),s):a},s}function yn(e,t){if((s=e.length)>1)for(var n=1,r,o,a=e[t[0]],s,i=a.length;n=0;)n[t]=t;return n}function Wb(e,t){return e[t]}function zb(e){const t=[];return t.key=e,t}function Ec(){var e=it([]),t=Cn,n=yn,r=Wb;function o(a){var s=Array.from(e.apply(this,arguments),zb),i,l=s.length,c=-1,u;for(const d of a)for(i=0,++c;i0){for(var n,r,o=0,a=e[0].length,s;o0)for(var n,r=0,o,a,s,i,l,c=e[t[0]].length;r0?(o[0]=s,o[1]=s+=a):a<0?(o[1]=i,o[0]=i+=a):(o[0]=0,o[1]=a)}function Yb(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,a=r.length;n0)||!((a=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,a,s;ra&&(a=o,n=t);return n}function Rc(e){var t=e.map(Nc);return Cn(e).sort(function(n,r){return t[n]-t[r]})}function Nc(e){for(var t=0,n=-1,r=e.length,o;++n{const{series:t,seriesOrder:n}=e,r=[],o={};return n.forEach(a=>{const{stack:s,stackOrder:i,stackOffset:l}=t[a];s===void 0?r.push({ids:[a],stackingOrder:So.none,stackingOffset:Mo.none}):o[s]===void 0?(o[s]=r.length,r.push({ids:[a],stackingOrder:So[i??"none"],stackingOffset:Mo[l??"diverging"]})):(r[o[s]].ids.push(a),i!==void 0&&(r[o[s]].stackingOrder=So[i]),l!==void 0&&(r[o[s]].stackingOffset=Mo[l]))}),r};function _a(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=x({valueFormatter:t},e[r])}),n}const Jb=(e,t)=>{const{seriesOrder:n,series:r}=e,o=Oc(e),a=t??[];n.forEach(i=>{const l=r[i].data;if(l!==void 0)l.forEach((c,u)=>{a.length<=u?a.push({[i]:c}):a[u][i]=c});else if(t===void 0)throw new Error([`MUI: bar series with id='${i}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` -`))});const s={};return o.forEach(i=>{const{ids:l,stackingOffset:c,stackingOrder:u}=i,d=Ec().keys(l.map(f=>{const p=r[f].dataKey;return r[f].data===void 0&&p!==void 0?p:f})).order(u).offset(c)(a);l.forEach((f,p)=>{const m=r[f].dataKey;s[f]=x({layout:"vertical"},r[f],{data:m?t.map(v=>v[m]):r[f].data,stackedData:d[p].map(([v,b])=>[v,b])})})}),{seriesOrder:n,stackingGroups:o,series:_a(s,i=>i.toLocaleString())}},Qb=Jb,ey=({series:e,seriesOrder:t})=>({series:_a(e,n=>`(${n.x}, ${n.y})`),seriesOrder:t}),ty=ey,ny=(e,t)=>{const{seriesOrder:n,series:r}=e,o=Oc(e),a=t??[];n.forEach(i=>{const l=r[i].data;if(l!==void 0)l.forEach((c,u)=>{a.length<=u?a.push({[i]:c}):a[u][i]=c});else if(t===void 0)throw new Error([`MUI: line series with id='${i}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` -`))});const s={};return o.forEach(i=>{const{ids:l,stackingOrder:c,stackingOffset:u}=i,d=Ec().keys(l.map(f=>{const p=r[f].dataKey;return r[f].data===void 0&&p!==void 0?p:f})).order(c).offset(u)(a);l.forEach((f,p)=>{const m=r[f].dataKey;s[f]=x({},r[f],{data:m?t.map(v=>v[m]):r[f].data,stackedData:d[p].map(([v,b])=>[v,b])})})}),{seriesOrder:n,stackingGroups:o,series:_a(s,i=>i.toLocaleString())}},ry=ny,oy=(e="none")=>{if(typeof e=="function")return e;switch(e){case"none":return null;case"desc":return(t,n)=>n-t;case"asc":return(t,n)=>t-n;default:return null}},ay=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach(o=>{var a,s,i,l;const c=Hb().startAngle(2*Math.PI*((a=n[o].startAngle)!=null?a:0)/360).endAngle(2*Math.PI*((s=n[o].endAngle)!=null?s:360)/360).padAngle(2*Math.PI*((i=n[o].paddingAngle)!=null?i:0)/360).sortValues(oy((l=n[o].sortingValues)!=null?l:"none"))(n[o].data.map(u=>u.value));r[o]=x({valueFormatter:u=>u.value.toLocaleString()},n[o],{data:n[o].data.map((u,d)=>{var f;return x({},u,{id:(f=u.id)!=null?f:`auto-generated-pie-id-${o}-${d}`},c[d])}).map(u=>{var d,f,p;return x({},u,{formattedValue:(d=(f=(p=n[o]).valueFormatter)==null?void 0:f.call(p,u))!=null?d:u.value.toLocaleString()})})})}),{seriesOrder:t,series:r}},sy=ay,iy=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];function ly(e,t,n=iy){return e.type==="pie"?x({},e,{data:e.data.map((r,o)=>x({color:n[o%n.length]},r))}):x({color:n[t%n.length]},e)}const cy=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],uy=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],dy=e=>e==="dark"?uy:cy,kn=h.createContext({}),To={bar:Qb,scatter:ty,line:ry,pie:sy},fy=(e,t,n)=>{const r={};e.forEach((a,s)=>{var i;const{id:l=`auto-generated-id-${s}`,type:c}=a;if(r[c]===void 0&&(r[c]={series:{},seriesOrder:[]}),((i=r[c])==null?void 0:i.series[l])!==void 0)throw new Error(`MUI: series' id "${l}" is not unique`);r[c].series[l]=x({id:l},ly(a,s,t)),r[c].seriesOrder.push(l)});const o={};return Object.keys(To).forEach(a=>{if(r[a]!==void 0){var s,i;o[a]=(s=(i=To[a])==null?void 0:i.call(To,r[a],n))!=null?s:r[a]}}),o};function py({series:e,dataset:t,colors:n=dy,children:r}){const o=Ge(),a=h.useMemo(()=>fy(e,typeof n=="function"?n(o.palette.mode):n,t),[e,n,o.palette.mode,t]);return R.jsx(kn.Provider,{value:a,children:r})}function Mr(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function hy(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Ia(e){let t,n,r;e.length!==2?(t=Mr,n=(i,l)=>Mr(e(i),l),r=(i,l)=>e(i)-l):(t=e===Mr||e===hy?e:my,n=e,r=e);function o(i,l,c=0,u=i.length){if(c>>1;n(i[d],l)<0?c=d+1:u=d}while(c>>1;n(i[d],l)<=0?c=d+1:u=d}while(cc&&r(i[d-1],l)>-r(i[d],l)?d-1:d}return{left:o,center:s,right:a}}function my(){return 0}function gy(e){return e===null?NaN:+e}const vy=Ia(Mr),xy=vy.right;Ia(gy).center;const by=xy;class li extends Map{constructor(t,n=wy){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(ci(this,t))}has(t){return super.has(ci(this,t))}set(t,n){return super.set(yy(this,t),n)}delete(t){return super.delete(Cy(this,t))}}function ci({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function yy({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Cy({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function wy(e){return e!==null&&typeof e=="object"?e.valueOf():e}const Sy=Math.sqrt(50),My=Math.sqrt(10),Ty=Math.sqrt(2);function Er(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),a=r/Math.pow(10,o),s=a>=Sy?10:a>=My?5:a>=Ty?2:1;let i,l,c;return o<0?(c=Math.pow(10,-o)/s,i=Math.round(e*c),l=Math.round(t*c),i/ct&&--l,c=-c):(c=Math.pow(10,o)*s,i=Math.round(e/c),l=Math.round(t/c),i*ct&&--l),l0))return[];if(e===t)return[e];const r=t=o))return[];const i=a-o+1,l=new Array(i);if(r)if(s<0)for(let c=0;c>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?hr(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?hr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=$y.exec(e))?new Le(t[1],t[2],t[3],1):(t=Ey.exec(e))?new Le(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Dy.exec(e))?hr(t[1],t[2],t[3],t[4]):(t=Ry.exec(e))?hr(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Ny.exec(e))?xi(t[1],t[2]/100,t[3]/100,1):(t=Oy.exec(e))?xi(t[1],t[2]/100,t[3]/100,t[4]):fi.hasOwnProperty(e)?mi(fi[e]):e==="transparent"?new Le(NaN,NaN,NaN,0):null}function mi(e){return new Le(e>>16&255,e>>8&255,e&255,1)}function hr(e,t,n,r){return r<=0&&(e=t=n=NaN),new Le(e,t,n,r)}function Iy(e){return e instanceof ar||(e=wn(e)),e?(e=e.rgb(),new Le(e.r,e.g,e.b,e.opacity)):new Le}function Yo(e,t,n,r){return arguments.length===1?Iy(e):new Le(e,t,n,r??1)}function Le(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Aa(Le,Yo,Ic(ar,{brighter(e){return e=e==null?Rr:Math.pow(Rr,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Gn:Math.pow(Gn,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Le(qt(this.r),qt(this.g),qt(this.b),Nr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:gi,formatHex:gi,formatHex8:Ay,formatRgb:vi,toString:vi}));function gi(){return`#${Yt(this.r)}${Yt(this.g)}${Yt(this.b)}`}function Ay(){return`#${Yt(this.r)}${Yt(this.g)}${Yt(this.b)}${Yt((isNaN(this.opacity)?1:this.opacity)*255)}`}function vi(){const e=Nr(this.opacity);return`${e===1?"rgb(":"rgba("}${qt(this.r)}, ${qt(this.g)}, ${qt(this.b)}${e===1?")":`, ${e})`}`}function Nr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function qt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Yt(e){return e=qt(e),(e<16?"0":"")+e.toString(16)}function xi(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new lt(e,t,n,r)}function Ac(e){if(e instanceof lt)return new lt(e.h,e.s,e.l,e.opacity);if(e instanceof ar||(e=wn(e)),!e)return new lt;if(e instanceof lt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,i=a-o,l=(a+o)/2;return i?(t===a?s=(n-r)/i+(n0&&l<1?0:s,new lt(s,i,l,e.opacity)}function jy(e,t,n,r){return arguments.length===1?Ac(e):new lt(e,t,n,r??1)}function lt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Aa(lt,jy,Ic(ar,{brighter(e){return e=e==null?Rr:Math.pow(Rr,e),new lt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Gn:Math.pow(Gn,e),new lt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Le(ko(e>=240?e-240:e+120,o,r),ko(e,o,r),ko(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new lt(bi(this.h),mr(this.s),mr(this.l),Nr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Nr(this.opacity);return`${e===1?"hsl(":"hsla("}${bi(this.h)}, ${mr(this.s)*100}%, ${mr(this.l)*100}%${e===1?")":`, ${e})`}`}}));function bi(e){return e=(e||0)%360,e<0?e+360:e}function mr(e){return Math.max(0,Math.min(1,e||0))}function ko(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const ja=e=>()=>e;function Fy(e,t){return function(n){return e+n*t}}function By(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Hy(e){return(e=+e)==1?jc:function(t,n){return n-t?By(t,n,e):ja(isNaN(t)?n:t)}}function jc(e,t){var n=t-e;return n?Fy(e,n):ja(isNaN(e)?t:e)}const yi=function e(t){var n=Hy(t);function r(o,a){var s=n((o=Yo(o)).r,(a=Yo(a)).r),i=n(o.g,a.g),l=n(o.b,a.b),c=jc(o.opacity,a.opacity);return function(u){return o.r=s(u),o.g=i(u),o.b=l(u),o.opacity=c(u),o+""}}return r.gamma=e,r}(1);function Wy(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(a){for(o=0;on&&(a=t.slice(n,a),i[s]?i[s]+=a:i[++s]=a),(r=r[0])===(o=o[0])?i[s]?i[s]+=o:i[++s]=o:(i[++s]=null,l.push({i:s,x:Or(r,o)})),n=Po.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function e1(e,t,n){var r=e[0],o=e[1],a=t[0],s=t[1];return o2?t1:e1,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?a:(l||(l=i(e.map(r),t,n)))(r(s(f)))}return d.invert=function(f){return s(o((c||(c=i(t,e.map(r),Or)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,Jy),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=qy,u()},d.clamp=function(f){return arguments.length?(s=f?!0:ft,u()):s!==ft},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(a=f,d):a},function(f,p){return r=f,o=p,u()}}function Fc(){return Ba()(ft,ft)}function n1(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Lr(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Sn(e){return e=Lr(Math.abs(e)),e?e[1]:NaN}function r1(e,t){return function(n,r){for(var o=n.length,a=[],s=0,i=e[0],l=0;o>0&&i>0&&(l+i+1>r&&(i=Math.max(1,r-l)),a.push(n.substring(o-=i,o+i)),!((l+=i+1)>r));)i=e[s=(s+1)%e.length];return a.reverse().join(t)}}function o1(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var a1=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function qn(e){if(!(t=a1.exec(e)))throw new Error("invalid format: "+e);var t;return new Ha({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}qn.prototype=Ha.prototype;function Ha(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Ha.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function s1(e){e:for(var t=e.length,n=1,r=-1,o;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var Bc;function i1(e,t){var n=Lr(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(Bc=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,s=r.length;return a===s?r:a>s?r+new Array(a-s+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Lr(e,Math.max(0,t+a-1))[0]}function wi(e,t){var n=Lr(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const Si={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:n1,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>wi(e*100,t),r:wi,s:i1,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Mi(e){return e}var Ti=Array.prototype.map,ki=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function l1(e){var t=e.grouping===void 0||e.thousands===void 0?Mi:r1(Ti.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Mi:o1(Ti.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",i=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=qn(d);var f=d.fill,p=d.align,m=d.sign,v=d.symbol,b=d.zero,g=d.width,k=d.comma,C=d.precision,y=d.trim,T=d.type;T==="n"?(k=!0,T="g"):Si[T]||(C===void 0&&(C=12),y=!0,T="g"),(b||f==="0"&&p==="=")&&(b=!0,f="0",p="=");var P=v==="$"?n:v==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",E=v==="$"?r:/[%p]/.test(T)?s:"",A=Si[T],I=/[defgprs%]/.test(T);C=C===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function D(N){var j=P,B=E,O,$,S;if(T==="c")B=A(N)+B,N="";else{N=+N;var w=N<0||1/N<0;if(N=isNaN(N)?l:A(Math.abs(N),C),y&&(N=s1(N)),w&&+N==0&&m!=="+"&&(w=!1),j=(w?m==="("?m:i:m==="-"||m==="("?"":m)+j,B=(T==="s"?ki[8+Bc/3]:"")+B+(w&&m==="("?")":""),I){for(O=-1,$=N.length;++O<$;)if(S=N.charCodeAt(O),48>S||S>57){B=(S===46?o+N.slice(O+1):N.slice(O))+B,N=N.slice(0,O);break}}}k&&!b&&(N=t(N,1/0));var M=j.length+N.length+B.length,L=M>1)+j+N+B+L.slice(M);break;default:N=L+j+N+B;break}return a(N)}return D.toString=function(){return d+""},D}function u(d,f){var p=c((d=qn(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(Sn(f)/3)))*3,v=Math.pow(10,-m),b=ki[8+m/3];return function(g){return p(v*g)+b}}return{format:c,formatPrefix:u}}var gr,Wa,Hc;c1({thousands:",",grouping:[3],currency:["$",""]});function c1(e){return gr=l1(e),Wa=gr.format,Hc=gr.formatPrefix,gr}function u1(e){return Math.max(0,-Sn(Math.abs(e)))}function d1(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Sn(t)/3)))*3-Sn(Math.abs(e)))}function f1(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Sn(t)-Sn(e))+1}function p1(e,t,n,r){var o=Vo(e,t,n),a;switch(r=qn(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=d1(o,s))&&(r.precision=a),Hc(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=f1(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=u1(o))&&(r.precision=a-(r.type==="%")*2);break}}return Wa(r)}function Wc(e){var t=e.domain;return e.ticks=function(n){var r=t();return zo(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return p1(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,a=r.length-1,s=r[o],i=r[a],l,c,u=10;for(i0;){if(c=Uo(s,i,n),c===l)return r[o]=s,r[a]=i,t(r);if(c>0)s=Math.floor(s/c)*c,i=Math.ceil(i/c)*c;else if(c<0)s=Math.ceil(s*c)/c,i=Math.floor(i*c)/c;else break;l=c}return e},e}function zc(){var e=Fc();return e.copy=function(){return Gr(e,zc())},Jt.apply(e,arguments),Wc(e)}function Uc(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],a=e[r],s;return aMath.pow(e,t)}function x1(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Ei(e){return(t,n)=>-e(-t,n)}function b1(e){const t=e(Pi,$i),n=t.domain;let r=10,o,a;function s(){return o=x1(r),a=v1(r),n()[0]<0?(o=Ei(o),a=Ei(a),e(h1,m1)):e(Pi,$i),t}return t.base=function(i){return arguments.length?(r=+i,s()):r},t.domain=function(i){return arguments.length?(n(i),s()):n()},t.ticks=i=>{const l=n();let c=l[0],u=l[l.length-1];const d=u0){for(;f<=p;++f)for(m=1;mu)break;g.push(v)}}else for(;f<=p;++f)for(m=r-1;m>=1;--m)if(v=f>0?m/a(-f):m*a(f),!(vu)break;g.push(v)}g.length*2{if(i==null&&(i=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=qn(l)).precision==null&&(l.trim=!0),l=Wa(l)),i===1/0)return l;const c=Math.max(1,r*i/t.ticks().length);return u=>{let d=u/a(Math.round(o(u)));return d*rn(Uc(n(),{floor:i=>a(Math.floor(o(i))),ceil:i=>a(Math.ceil(o(i)))})),t}function Vc(){const e=b1(Ba()).domain([1,10]);return e.copy=()=>Gr(e,Vc()).base(e.base()),Jt.apply(e,arguments),e}function Di(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function y1(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function C1(e){return e<0?-e*e:e*e}function w1(e){var t=e(ft,ft),n=1;function r(){return n===1?e(ft,ft):n===.5?e(y1,C1):e(Di(n),Di(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},Wc(t)}function za(){var e=w1(Ba());return e.copy=function(){return Gr(e,za()).exponent(e.exponent())},Jt.apply(e,arguments),e}function S1(){return za.apply(null,arguments).exponent(.5)}const $o=new Date,Eo=new Date;function Pe(e,t,n,r){function o(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return o.floor=a=>(e(a=new Date(+a)),a),o.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),o.round=a=>{const s=o(a),i=o.ceil(a);return a-s(t(a=new Date(+a),s==null?1:Math.floor(s)),a),o.range=(a,s,i)=>{const l=[];if(a=o.ceil(a),i=i==null?1:Math.floor(i),!(a0))return l;let c;do l.push(c=new Date(+a)),t(a,i),e(a);while(cPe(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,i)=>{if(s>=s)if(i<0)for(;++i<=0;)for(;t(s,-1),!a(s););else for(;--i>=0;)for(;t(s,1),!a(s););}),n&&(o.count=(a,s)=>($o.setTime(+a),Eo.setTime(+s),e($o),e(Eo),Math.floor(n($o,Eo))),o.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?o.filter(r?s=>r(s)%a===0:s=>o.count(0,s)%a===0):o)),o}const _r=Pe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);_r.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Pe(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):_r);_r.range;const wt=1e3,Qe=wt*60,St=Qe*60,Tt=St*24,Ua=Tt*7,Ri=Tt*30,Do=Tt*365,Kt=Pe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*wt)},(e,t)=>(t-e)/wt,e=>e.getUTCSeconds());Kt.range;const Va=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*wt)},(e,t)=>{e.setTime(+e+t*Qe)},(e,t)=>(t-e)/Qe,e=>e.getMinutes());Va.range;const Ya=Pe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Qe)},(e,t)=>(t-e)/Qe,e=>e.getUTCMinutes());Ya.range;const Ka=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*wt-e.getMinutes()*Qe)},(e,t)=>{e.setTime(+e+t*St)},(e,t)=>(t-e)/St,e=>e.getHours());Ka.range;const Ga=Pe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*St)},(e,t)=>(t-e)/St,e=>e.getUTCHours());Ga.range;const sr=Pe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Qe)/Tt,e=>e.getDate()-1);sr.range;const Xr=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Tt,e=>e.getUTCDate()-1);Xr.range;const Yc=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Tt,e=>Math.floor(e/Tt));Yc.range;function Qt(e){return Pe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Qe)/Ua)}const qr=Qt(0),Ir=Qt(1),M1=Qt(2),T1=Qt(3),Mn=Qt(4),k1=Qt(5),P1=Qt(6);qr.range;Ir.range;M1.range;T1.range;Mn.range;k1.range;P1.range;function en(e){return Pe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Ua)}const Zr=en(0),Ar=en(1),$1=en(2),E1=en(3),Tn=en(4),D1=en(5),R1=en(6);Zr.range;Ar.range;$1.range;E1.range;Tn.range;D1.range;R1.range;const Xa=Pe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Xa.range;const qa=Pe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());qa.range;const kt=Pe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());kt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});kt.range;const Pt=Pe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Pt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Pt.range;function Kc(e,t,n,r,o,a){const s=[[Kt,1,wt],[Kt,5,5*wt],[Kt,15,15*wt],[Kt,30,30*wt],[a,1,Qe],[a,5,5*Qe],[a,15,15*Qe],[a,30,30*Qe],[o,1,St],[o,3,3*St],[o,6,6*St],[o,12,12*St],[r,1,Tt],[r,2,2*Tt],[n,1,Ua],[t,1,Ri],[t,3,3*Ri],[e,1,Do]];function i(c,u,d){const f=ub).right(s,f);if(p===s.length)return e.every(Vo(c/Do,u/Do,d));if(p===0)return _r.every(Math.max(Vo(c,u,d),1));const[m,v]=s[f/s[p-1][2]53)return null;"w"in _||(_.w=1),"Z"in _?(Y=No(In(_.y,0,1)),Z=Y.getUTCDay(),Y=Z>4||Z===0?Ar.ceil(Y):Ar(Y),Y=Xr.offset(Y,(_.V-1)*7),_.y=Y.getUTCFullYear(),_.m=Y.getUTCMonth(),_.d=Y.getUTCDate()+(_.w+6)%7):(Y=Ro(In(_.y,0,1)),Z=Y.getDay(),Y=Z>4||Z===0?Ir.ceil(Y):Ir(Y),Y=sr.offset(Y,(_.V-1)*7),_.y=Y.getFullYear(),_.m=Y.getMonth(),_.d=Y.getDate()+(_.w+6)%7)}else("W"in _||"U"in _)&&("w"in _||(_.w="u"in _?_.u%7:"W"in _?1:0),Z="Z"in _?No(In(_.y,0,1)).getUTCDay():Ro(In(_.y,0,1)).getDay(),_.m=0,_.d="W"in _?(_.w+6)%7+_.W*7-(Z+5)%7:_.w+_.U*7-(Z+6)%7);return"Z"in _?(_.H+=_.Z/100|0,_.M+=_.Z%100,No(_)):Ro(_)}}function A(z,K,q,_){for(var V=0,Y=K.length,Z=q.length,ve,me;V=Z)return-1;if(ve=K.charCodeAt(V++),ve===37){if(ve=K.charAt(V++),me=T[ve in Ni?K.charAt(V++):ve],!me||(_=me(z,q,_))<0)return-1}else if(ve!=q.charCodeAt(_++))return-1}return _}function I(z,K,q){var _=c.exec(K.slice(q));return _?(z.p=u.get(_[0].toLowerCase()),q+_[0].length):-1}function D(z,K,q){var _=p.exec(K.slice(q));return _?(z.w=m.get(_[0].toLowerCase()),q+_[0].length):-1}function N(z,K,q){var _=d.exec(K.slice(q));return _?(z.w=f.get(_[0].toLowerCase()),q+_[0].length):-1}function j(z,K,q){var _=g.exec(K.slice(q));return _?(z.m=k.get(_[0].toLowerCase()),q+_[0].length):-1}function B(z,K,q){var _=v.exec(K.slice(q));return _?(z.m=b.get(_[0].toLowerCase()),q+_[0].length):-1}function O(z,K,q){return A(z,t,K,q)}function $(z,K,q){return A(z,n,K,q)}function S(z,K,q){return A(z,r,K,q)}function w(z){return s[z.getDay()]}function M(z){return a[z.getDay()]}function L(z){return l[z.getMonth()]}function W(z){return i[z.getMonth()]}function X(z){return o[+(z.getHours()>=12)]}function J(z){return 1+~~(z.getMonth()/3)}function oe(z){return s[z.getUTCDay()]}function te(z){return a[z.getUTCDay()]}function ne(z){return l[z.getUTCMonth()]}function le(z){return i[z.getUTCMonth()]}function ge(z){return o[+(z.getUTCHours()>=12)]}function ue(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var K=P(z+="",C);return K.toString=function(){return z},K},parse:function(z){var K=E(z+="",!1);return K.toString=function(){return z},K},utcFormat:function(z){var K=P(z+="",y);return K.toString=function(){return z},K},utcParse:function(z){var K=E(z+="",!0);return K.toString=function(){return z},K}}}var Ni={"-":"",_:" ",0:"0"},$e=/^\s*\d+/,A1=/^%/,j1=/[\\^$*+?|[\]().{}]/g;function pe(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a[t.toLowerCase(),n]))}function B1(e,t,n){var r=$e.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function H1(e,t,n){var r=$e.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function W1(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function z1(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function U1(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Oi(e,t,n){var r=$e.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Li(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function V1(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Y1(e,t,n){var r=$e.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function K1(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function _i(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function G1(e,t,n){var r=$e.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ii(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function X1(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function q1(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Z1(e,t,n){var r=$e.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function J1(e,t,n){var r=$e.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Q1(e,t,n){var r=A1.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function eC(e,t,n){var r=$e.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function tC(e,t,n){var r=$e.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Ai(e,t){return pe(e.getDate(),t,2)}function nC(e,t){return pe(e.getHours(),t,2)}function rC(e,t){return pe(e.getHours()%12||12,t,2)}function oC(e,t){return pe(1+sr.count(kt(e),e),t,3)}function Gc(e,t){return pe(e.getMilliseconds(),t,3)}function aC(e,t){return Gc(e,t)+"000"}function sC(e,t){return pe(e.getMonth()+1,t,2)}function iC(e,t){return pe(e.getMinutes(),t,2)}function lC(e,t){return pe(e.getSeconds(),t,2)}function cC(e){var t=e.getDay();return t===0?7:t}function uC(e,t){return pe(qr.count(kt(e)-1,e),t,2)}function Xc(e){var t=e.getDay();return t>=4||t===0?Mn(e):Mn.ceil(e)}function dC(e,t){return e=Xc(e),pe(Mn.count(kt(e),e)+(kt(e).getDay()===4),t,2)}function fC(e){return e.getDay()}function pC(e,t){return pe(Ir.count(kt(e)-1,e),t,2)}function hC(e,t){return pe(e.getFullYear()%100,t,2)}function mC(e,t){return e=Xc(e),pe(e.getFullYear()%100,t,2)}function gC(e,t){return pe(e.getFullYear()%1e4,t,4)}function vC(e,t){var n=e.getDay();return e=n>=4||n===0?Mn(e):Mn.ceil(e),pe(e.getFullYear()%1e4,t,4)}function xC(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pe(t/60|0,"0",2)+pe(t%60,"0",2)}function ji(e,t){return pe(e.getUTCDate(),t,2)}function bC(e,t){return pe(e.getUTCHours(),t,2)}function yC(e,t){return pe(e.getUTCHours()%12||12,t,2)}function CC(e,t){return pe(1+Xr.count(Pt(e),e),t,3)}function qc(e,t){return pe(e.getUTCMilliseconds(),t,3)}function wC(e,t){return qc(e,t)+"000"}function SC(e,t){return pe(e.getUTCMonth()+1,t,2)}function MC(e,t){return pe(e.getUTCMinutes(),t,2)}function TC(e,t){return pe(e.getUTCSeconds(),t,2)}function kC(e){var t=e.getUTCDay();return t===0?7:t}function PC(e,t){return pe(Zr.count(Pt(e)-1,e),t,2)}function Zc(e){var t=e.getUTCDay();return t>=4||t===0?Tn(e):Tn.ceil(e)}function $C(e,t){return e=Zc(e),pe(Tn.count(Pt(e),e)+(Pt(e).getUTCDay()===4),t,2)}function EC(e){return e.getUTCDay()}function DC(e,t){return pe(Ar.count(Pt(e)-1,e),t,2)}function RC(e,t){return pe(e.getUTCFullYear()%100,t,2)}function NC(e,t){return e=Zc(e),pe(e.getUTCFullYear()%100,t,2)}function OC(e,t){return pe(e.getUTCFullYear()%1e4,t,4)}function LC(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Tn(e):Tn.ceil(e),pe(e.getUTCFullYear()%1e4,t,4)}function _C(){return"+0000"}function Fi(){return"%"}function Bi(e){return+e}function Hi(e){return Math.floor(+e/1e3)}var ln,Jc,Qc;IC({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function IC(e){return ln=I1(e),Jc=ln.format,ln.parse,Qc=ln.utcFormat,ln.utcParse,ln}function AC(e){return new Date(e)}function jC(e){return e instanceof Date?+e:+new Date(+e)}function Za(e,t,n,r,o,a,s,i,l,c){var u=Fc(),d=u.invert,f=u.domain,p=c(".%L"),m=c(":%S"),v=c("%I:%M"),b=c("%I %p"),g=c("%a %d"),k=c("%b %d"),C=c("%B"),y=c("%Y");function T(P){return(l(P){var t,n;const{axis:r}=e,o=Math.min(...(t=r.data)!=null?t:[]),a=Math.max(...(n=r.data)!=null?n:[]);return[o,a]},tu=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||r&&t[o].yAxisKey===void 0).reduce((o,a)=>{const[s,i]=t[a].stackedData.reduce((l,c)=>[Math.min(...c,...l[0]===null?[]:[l[0]]),Math.max(...c,...l[1]===null?[]:[l[1]])],t[a].stackedData[0]);return[o[0]===null?s:Math.min(s,o[0]),o[1]===null?i:Math.max(i,o[1])]},[null,null])},HC=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?tu(e):eu(e),WC=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?eu(e):tu(e),jr=(e,t)=>e[0]===null||e[1]===null?t:t[0]===null||t[1]===null?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])],zC=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].xAxisKey===n.id||t[o].xAxisKey===void 0&&r).reduce((o,a)=>{const s=t[a].data.reduce((i,{x:l})=>jr(i,[l,l]),[null,null]);return jr(o,s)},[null,null])},UC=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||t[o].yAxisKey===void 0&&r).reduce((o,a)=>{const s=t[a].data.reduce((i,{y:l})=>jr(i,[l,l]),[null,null]);return jr(o,s)},[null,null])},VC=e=>{var t,n;const{axis:r}=e,o=Math.min(...(t=r.data)!=null?t:[]),a=Math.max(...(n=r.data)!=null?n:[]);return[o,a]},YC=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||r&&t[o].yAxisKey===void 0).reduce((o,a)=>{const i=t[a].area!==void 0?u=>u:u=>[u[1],u[1]],[l,c]=t[a].stackedData.reduce((u,d)=>{const[f,p]=i(d);return[Math.min(f,p,u[0]),Math.max(f,p,u[1])]},i(t[a].stackedData[0]));return o[0]===null||o[1]===null?[l,c]:[Math.min(l,o[0]),Math.max(c,o[1])]},[null,null])};function Fr(e){return e.scaleType==="band"}function Wi(e){return e.scaleType==="point"}function zi(e,t,n){switch(e){case"log":return Vc(t,n);case"pow":return za(t,n);case"sqrt":return S1(t,n);case"time":return FC(t,n);case"utc":return BC(t,n);default:return zc(t,n)}}const Xo="DEFAULT_X_AXIS_KEY",qo="DEFAULT_Y_AXIS_KEY",KC={top:100,bottom:50,left:50,right:50},GC=(e,t,n)=>{const r=x({},KC,n);return h.useMemo(()=>({left:r.left,top:r.top,width:Math.max(0,e-r.left-r.right),height:Math.max(0,t-r.top-r.bottom)}),[e,t,r.top,r.bottom,r.left,r.right])},XC=GC,tn=h.createContext({top:0,left:0,height:300,width:400}),Ja=h.createContext({current:null});function qC({width:e,height:t,margin:n,svgRef:r,children:o}){const a=XC(e,t,n);return R.jsx(Ja.Provider,{value:r,children:R.jsx(tn.Provider,{value:a,children:o})})}function Zn(e){return e.bandwidth!==void 0}function Ui(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:o,domain:a}=e,s=n===void 0?999:Math.floor(Math.abs(a[1]-a[0])/n),i=t===void 0?2:Math.ceil(Math.abs(a[1]-a[0])/t),l=r??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(s,Math.max(i,l))}function nu(e){const{scale:t,ticksNumber:n,valueFormatter:r}=e;return h.useMemo(()=>{if(Zn(t)){const o=t.domain();return t.bandwidth()>0?[...o.map(a=>{var s;return{formattedValue:(s=r==null?void 0:r(a))!=null?s:a,offset:t(a)-(t.step()-t.bandwidth())/2,labelOffset:t.step()/2}}),{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:o.map(a=>{var s;return{formattedValue:(s=r==null?void 0:r(a))!=null?s:a,offset:t(a),labelOffset:0}})}return t.ticks(n).map(o=>{var a;return{formattedValue:(a=r==null?void 0:r(o))!=null?a:t.tickFormat(n)(o),offset:t(o),labelOffset:0}})},[n,t,r])}const Vi=.2,ZC=.1,JC={bar:HC,scatter:zC,line:VC},QC={bar:WC,scatter:UC,line:YC},At=h.createContext({xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]});function ew({xAxis:e,yAxis:t,dataset:n,children:r}){const o=h.useContext(kn),a=h.useContext(tn),s=h.useMemo(()=>e==null?void 0:e.map(c=>{const u=c.dataKey;if(u===void 0||c.data!==void 0)return c;if(n===void 0)throw Error("MUI: x-axis uses `dataKey` but no `dataset` is provided.");return x({},c,{data:n.map(d=>d[u])})}),[e,n]),i=h.useMemo(()=>t==null?void 0:t.map(c=>{const u=c.dataKey;if(u===void 0||c.data!==void 0)return c;if(n===void 0)throw Error("MUI: y-axis uses `dataKey` but no `dataset` is provided.");return x({},c,{data:n.map(d=>d[u])})}),[t,n]),l=h.useMemo(()=>{var c,u;const d=(g,k,C,y,T)=>{var P,E;const A=y[k],I=(P=(E=o[k])==null?void 0:E.series)!=null?P:{},[D,N]=A({series:I,axis:C,isDefaultAxis:T}),[j,B]=g;return j===null||B===null?[D,N]:D===null||N===null?[j,B]:[Math.min(D,j),Math.max(N,B)]},f=(g,k,C)=>Object.keys(k).reduce((T,P)=>d(T,P,g,k,C),[null,null]),p=[...(c=s==null?void 0:s.map((g,k)=>x({id:`deaultized-x-axis-${k}`},g)))!=null?c:[],...s===void 0||s.findIndex(({id:g})=>g===Xo)===-1?[{id:Xo,scaleType:"linear"}]:[]],m={};p.forEach((g,k)=>{var C,y,T,P,E;const A=k===0,[I,D]=f(g,JC,A),N=[a.left,a.left+a.width];if(Fr(g)){var j,B;const W=(j=g.categoryGapRatio)!=null?j:Vi,X=(B=g.barGapRatio)!=null?B:ZC;m[g.id]=x({categoryGapRatio:W,barGapRatio:X},g,{scale:Dr(g.data,N).paddingInner(W).paddingOuter(W/2),ticksNumber:g.data.length})}if(Wi(g)&&(m[g.id]=x({},g,{scale:di(g.data,N),ticksNumber:g.data.length})),g.scaleType==="band"||g.scaleType==="point")return;const O=(C=g.scaleType)!=null?C:"linear",$=[(y=g.min)!=null?y:I,(T=g.max)!=null?T:D],S=Ui(x({},g,{range:N,domain:$})),w=zi(O,$,N).nice(S),M=w.domain(),L=[(P=g.min)!=null?P:M[0],(E=g.max)!=null?E:M[1]];m[g.id]=x({},g,{scaleType:O,scale:w.domain(L),ticksNumber:S})});const v=[...(u=i==null?void 0:i.map((g,k)=>x({id:`deaultized-y-axis-${k}`},g)))!=null?u:[],...i===void 0||i.findIndex(({id:g})=>g===qo)===-1?[{id:qo,scaleType:"linear"}]:[]],b={};return v.forEach((g,k)=>{var C,y,T,P,E;const A=k===0,[I,D]=f(g,QC,A),N=[a.top+a.height,a.top];if(Fr(g)){var j;const L=(j=g.categoryGapRatio)!=null?j:Vi;b[g.id]=x({categoryGapRatio:L,barGapRatio:0},g,{scale:Dr(g.data,[N[1],N[0]]).paddingInner(L).paddingOuter(L/2),ticksNumber:g.data.length})}if(Wi(g)&&(b[g.id]=x({},g,{scale:di(g.data,[N[1],N[0]]),ticksNumber:g.data.length})),g.scaleType==="band"||g.scaleType==="point")return;const B=(C=g.scaleType)!=null?C:"linear",O=[(y=g.min)!=null?y:I,(T=g.max)!=null?T:D],$=Ui(x({},g,{range:N,domain:O})),S=zi(B,O,N).nice($),w=S.domain(),M=[(P=g.min)!=null?P:w[0],(E=g.max)!=null?E:w[1]];b[g.id]=x({},g,{scaleType:B,scale:S.domain(M),ticksNumber:$})}),{xAxis:m,yAxis:b,xAxisIds:p.map(({id:g})=>g),yAxisIds:v.map(({id:g})=>g)}},[a.height,a.left,a.top,a.width,o,s,i]);return R.jsx(At.Provider,{value:l,children:r})}const Pn=h.createContext({item:null,axis:{x:null,y:null},dispatch:()=>null}),tw=(e,t)=>{switch(t.type){case"enterItem":return x({},e,{item:t.data});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:x({},e,{item:null});case"updateAxis":return x({},e,{axis:t.data});default:return e}};function nw({children:e}){const[t,n]=h.useReducer(tw,{item:null,axis:{x:null,y:null}}),r=h.useMemo(()=>x({},t,{dispatch:n}),[t]);return R.jsx(Pn.Provider,{value:r,children:e})}const Qa={highlighted:"none",faded:"none"},ru=h.createContext({item:null,scope:Qa,dispatch:()=>null}),rw=(e,t)=>{switch(t.type){case"enterItem":return x({},e,{item:t.item,scope:x({},Qa,t.scope)});case"leaveItem":return e.item===null||Object.keys(t.item).some(n=>t.item[n]!==e.item[n])?e:x({},e,{item:null});default:return e}};function ow({children:e}){const[t,n]=h.useReducer(rw,{item:null,scope:Qa}),r=h.useMemo(()=>x({},t,{dispatch:n}),[t]);return R.jsx(ru.Provider,{value:r,children:e})}const aw=e=>{const{dispatch:t}=h.useContext(Pn),{dispatch:n}=h.useContext(ru);return o=>({onMouseEnter:()=>{t({type:"enterItem",data:o}),n({type:"enterItem",item:o,scope:e})},onMouseLeave:()=>{t({type:"leaveItem",data:o}),n({type:"leaveItem",item:o})}})},sw=(e,t,n)=>{if(!(n!=null&&n.highlighted)||n.highlighted==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return r?n.highlighted==="series"?r:e.dataIndex!==void 0&&e.dataIndex===t.dataIndex:!1},iw=(e,t,n)=>{if(!(n!=null&&n.faded)||n.faded==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return n.faded==="series"?r&&e.dataIndex!==t.dataIndex:n.faded==="global"?r?e.dataIndex!==void 0&&e.dataIndex!==t.dataIndex:!0:!1},lw=["id","dataIndex","classes","color","highlightScope","slots","slotProps"];function cw(e){return xe("MuiBarElement",e)}he("MuiBarElement",["root"]);const uw=e=>{const{classes:t,id:n}=e,r={root:["root",`series-${n}`]};return be(r,cw,t)},dw=ee("rect",{name:"MuiBarElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",shapeRendering:"crispEdges",fill:e.isHighlighted?wn(e.color).brighter(.5).formatHex():e.color,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded&&.3||1}));function fw(e){var t;const{id:n,dataIndex:r,classes:o,color:a,highlightScope:s,slots:i,slotProps:l}=e,c=re(e,lw),u=aw(s),{item:d}=h.useContext(Pn),f=sw(d,{type:"bar",seriesId:n,dataIndex:r},s),p=!f&&iw(d,{type:"bar",seriesId:n,dataIndex:r},s),m={id:n,dataIndex:r,classes:o,color:a,isFaded:p,isHighlighted:f},v=uw(m),b=(t=i==null?void 0:i.bar)!=null?t:dw,g=Ve({elementType:b,externalSlotProps:l==null?void 0:l.bar,additionalProps:x({},c,u({type:"bar",seriesId:n,dataIndex:r}),{className:v.root}),ownerState:m});return R.jsx(b,x({},g))}function pw({bandWidth:e,numberOfGroups:t,gapRatio:n}){if(n===0)return{barWidth:e/t,offset:0};const r=e/(t+(t-1)*n),o=n*r;return{barWidth:r,offset:o}}function hw(e){const t=h.useContext(kn).bar,n=h.useContext(At);if(t===void 0)return null;const{series:r,stackingGroups:o}=t,{xAxis:a,yAxis:s,xAxisIds:i,yAxisIds:l}=n,c=i[0],u=l[0];return R.jsx(h.Fragment,{children:o.flatMap(({ids:d},f)=>d.flatMap(p=>{var m,v;const b=(m=r[p].xAxisKey)!=null?m:c,g=(v=r[p].yAxisKey)!=null?v:u,k=a[b],C=s[g],y=r[p].layout==="vertical";let T;if(y){if(!Fr(k))throw new Error(`Axis with id "${b}" shoud be of type "band" to display the bar series of id "${p}"`);if(a[b].data===void 0)throw new Error(`Axis with id "${b}" shoud have data property`);T=k}else{if(!Fr(C))throw new Error(`Axis with id "${g}" shoud be of type "band" to display the bar series of id "${p}"`);if(s[g].data===void 0)throw new Error(`Axis with id "${b}" shoud have data property`);T=C}const P=k.scale,E=C.scale,A=T.scale.bandwidth(),{barWidth:I,offset:D}=pw({bandWidth:A,numberOfGroups:o.length,gapRatio:T.barGapRatio}),N=f*(I+D),{stackedData:j,color:B}=r[p];return j.map((O,$)=>{var S,w;const M=Math.min(...O),L=Math.max(...O);return R.jsx(fw,x({id:p,dataIndex:$,x:y?P((S=a[b].data)==null?void 0:S[$])+N:P(M),y:y?E(L):E((w=s[g].data)==null?void 0:w[$])+N,height:y?Math.abs(E(M)-E(L)):I,width:y?I:Math.abs(P(M)-P(L)),color:B,highlightScope:r[p].highlightScope},e),`${p}-${$}`)})}))})}const mw=e=>{const t=h.useContext(Ja),{width:n,height:r,top:o,left:a}=h.useContext(tn),{xAxis:s,yAxis:i,xAxisIds:l,yAxisIds:c}=h.useContext(At),{dispatch:u}=h.useContext(Pn),d=l[0],f=c[0],p=h.useRef({x:-1,y:-1});h.useEffect(()=>{const m=t.current;if(m===null||e)return()=>{};const v=(k,C)=>{if(d===null)return null;const{scale:y,data:T}=k;if(!Zn(y)){const E=y.invert(C);if(T===void 0)return{value:E};const A=T==null?void 0:T.findIndex((I,D)=>I>E&&(D===0||Math.abs(E-I)<=Math.abs(E-T[D-1]))||I<=E&&(D===T.length-1||Math.abs(E-I)=0?T[A]:E,index:A}}const P=y.bandwidth()===0?Math.floor((C-Math.min(...y.range())+y.step()/2)/y.step()):Math.floor((C-Math.min(...y.range()))/y.step());return P<0||P>=T.length?null:{index:P,value:T[P]}},b=()=>{p.current={x:-1,y:-1},u({type:"updateAxis",data:{x:null,y:null}})},g=k=>{const C=t.current.createSVGPoint();C.x=k.clientX,C.y=k.clientY;const y=C.matrixTransform(t.current.getScreenCTM().inverse());p.current={x:y.x,y:y.y};const T=y.xa+n,P=y.yo+r;if(T||P){u({type:"updateAxis",data:{x:null,y:null}});return}const E=v(s[d],y.x),A=v(i[f],y.y);u({type:"updateAxis",data:{x:E,y:A}})};return m.addEventListener("mouseout",b),m.addEventListener("mousemove",g),()=>{m.removeEventListener("mouseout",b),m.removeEventListener("mousemove",g)}},[t,u,a,n,o,r,f,i,d,s,e])},gw=["children","width","height","viewBox","disableAxisListener","className","sx"],vw=ee("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({})),xw=h.forwardRef(function(t,n){const{children:r,width:o,height:a,viewBox:s,disableAxisListener:i=!1,sx:l}=t,c=re(t,gw),u=x({width:o,height:a,x:0,y:0},s);return mw(i),R.jsxs(vw,x({width:o,height:a,viewBox:`${u.x} ${u.y} ${u.width} ${u.height}`,ref:n,sx:[{"--ChartsLegend-itemWidth":"100px","--ChartsLegend-itemMarkSize":"20px","--ChartsLegend-rootSpacing":"5px","--ChartsLegend-labelSpacing":"5px","--ChartsLegend-rootOffsetY":"-20px"},...Array.isArray(l)?l:[l]]},c,{children:[R.jsx("title",{children:t.title}),R.jsx("desc",{children:t.desc}),r]}))}),bw=h.forwardRef(function(t,n){const{width:r,height:o,series:a,margin:s,xAxis:i,yAxis:l,colors:c,dataset:u,sx:d,title:f,desc:p,disableAxisListener:m,children:v}=t,b=h.useRef(null),g=Me(n,b);return R.jsx(qC,{width:r,height:o,margin:s,svgRef:b,children:R.jsx(py,{series:a,colors:c,dataset:u,children:R.jsx(ew,{xAxis:i,yAxis:l,dataset:u,children:R.jsx(nw,{children:R.jsx(ow,{children:R.jsx(xw,{width:r,height:o,ref:g,sx:d,title:f,desc:p,disableAxisListener:m,children:v})})})})})})}),yw=["width","height"],Cw=(e,t)=>{const n=h.useRef(null),r=h.useRef(!1),[o,a]=h.useState(0),[s,i]=h.useState(0),l=h.useCallback(()=>{const c=n==null?void 0:n.current;if(!c)return;const d=gt(c).getComputedStyle(c),f=Math.floor(parseFloat(d.height))||0,p=Math.floor(parseFloat(d.width))||0;a(p),i(f)},[]);return h.useEffect(()=>{r.current=!0},[]),tt(()=>{if(e!==void 0&&t!==void 0)return()=>{};l();const c=n.current;if(typeof ResizeObserver>"u")return()=>{};let u;const d=new ResizeObserver(()=>{u=requestAnimationFrame(()=>{l()})});return c&&d.observe(c),()=>{u&&window.cancelAnimationFrame(u),c&&d.unobserve(c)}},[l,t,e]),[n,e??o,t??s]},ww=ee("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>{var t,n;return{width:(t=e.width)!=null?t:"100%",height:(n=e.height)!=null?n:"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}}}),Sw=h.forwardRef(function(t,n){const{width:r,height:o}=t,a=re(t,yw),[s,i,l]=Cw(r,o);return R.jsx(ww,{ref:s,ownerState:{width:r,height:o},children:R.jsx(bw,x({},a,{width:i,height:l,ref:n}))})});function ou(e){return xe("MuiChartsAxis",e)}const He=he("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),au=ee("g",{name:"MuiChartsAxis",slot:"Root",overridesResolver:(e,t)=>t.root})({[`&.${He.directionY}`]:{[`.${He.tickLabel}`]:{dominantBaseline:"middle"},[`.${He.label}`]:{dominantBaseline:"auto",textAnchor:"middle"}},[`&.${He.left}`]:{[`.${He.tickLabel}`]:{dominantBaseline:"central",textAnchor:"end"}},[`&.${He.right}`]:{[`.${He.tickLabel}`]:{dominantBaseline:"central",textAnchor:"start"}},[`&.${He.bottom}`]:{[`.${He.tickLabel}, .${He.label}`]:{dominantBaseline:"hanging",textAnchor:"middle"}},[`&.${He.top}`]:{[`.${He.tickLabel}, .${He.label}`]:{dominantBaseline:"baseline",textAnchor:"middle"}}}),su=ee("line",{name:"MuiChartsAxis",slot:"Line",overridesResolver:(e,t)=>t.line})(({theme:e})=>({stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1})),iu=ee("line",{name:"MuiChartsAxis",slot:"Tick",overridesResolver:(e,t)=>t.tick})(({theme:e})=>({stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"})),lu=ee("text",{name:"MuiChartsAxis",slot:"TickLabel",overridesResolver:(e,t)=>t.tickLabel})(({theme:e})=>x({},e.typography.caption,{fill:(e.vars||e).palette.text.primary})),cu=ee("text",{name:"MuiChartsAxis",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>x({},e.typography.body1,{fill:(e.vars||e).palette.text.primary})),Mw=["scale","ticksNumber"],Tw=e=>{const{classes:t,position:n}=e;return be({root:["root","directionX",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},ou,t)},Yi={position:"bottom",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function Ki(e){var t,n,r,o;const a=Te({props:x({},Yi,e),name:"MuiChartsXAxis"}),s=h.useContext(At),i=a.axisId,{xAxis:{[i]:{scale:l,ticksNumber:c}}}=s,u=re(s.xAxis[i],Mw),d=x({},Yi,u,a),{position:f,disableLine:p,disableTicks:m,tickFontSize:v,label:b,labelFontSize:g,tickSize:k,valueFormatter:C,slots:y,slotProps:T}=d,P=Ge(),E=Tw(x({},d,{theme:P})),{left:A,top:I,width:D,height:N}=h.useContext(tn),j=m?4:k,B=nu({scale:l,ticksNumber:c,valueFormatter:C}),O=f==="bottom"?1:-1,$={x:A+D/2,y:O*(v+j+10)},S=(t=y==null?void 0:y.axisLine)!=null?t:su,w=(n=y==null?void 0:y.axisTick)!=null?n:iu,M=(r=y==null?void 0:y.axisTickLabel)!=null?r:lu,L=(o=y==null?void 0:y.axisLabel)!=null?o:cu;return R.jsxs(au,{transform:`translate(0, ${f==="bottom"?I+N:I})`,className:E.root,children:[!p&&R.jsx(S,x({x1:l.range()[0],x2:l.range()[1],className:E.line},T==null?void 0:T.axisLine)),B.map(({formattedValue:W,offset:X,labelOffset:J},oe)=>{const te=J??0,ne=O*(j+3);return R.jsxs("g",{transform:`translate(${X}, 0)`,className:E.tickContainer,children:[!m&&R.jsx(w,x({y2:O*j,className:E.tick},T==null?void 0:T.axisTick)),W!==void 0&&R.jsx(M,x({x:te,y:ne,"transform-origin":`${te}px ${ne}px`,sx:{fontSize:v},className:E.tickLabel},T==null?void 0:T.axisTickLabel,{children:W}))]},oe)}),b&&R.jsx(L,x({},$,{sx:{fontSize:g,transformOrigin:`${$.x}px ${$.y}px`},className:E.label},T==null?void 0:T.axisLabel,{children:b}))]})}const kw=["scale","ticksNumber"],Pw=e=>{const{classes:t,position:n}=e;return be({root:["root","directionY",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},ou,t)},Gi={position:"left",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function Xi(e){var t,n,r,o;const a=Te({props:x({},Gi,e),name:"MuiChartsYAxis"}),s=h.useContext(At),i=a.axisId,{yAxis:{[i]:{scale:l,ticksNumber:c}}}=s,u=re(s.yAxis[i],kw),d=x({},Gi,u,a),{position:f,disableLine:p,disableTicks:m,tickFontSize:v,label:b,labelFontSize:g,tickSize:k,valueFormatter:C,slots:y,slotProps:T}=d,P=Ge(),E=Pw(x({},d,{theme:P})),{left:A,top:I,width:D,height:N}=h.useContext(tn),j=m?4:k,B=nu({scale:l,ticksNumber:c,valueFormatter:C}),O=f==="right"?1:-1,$={x:O*(v+j+10),y:I+N/2},S=(t=y==null?void 0:y.axisLine)!=null?t:su,w=(n=y==null?void 0:y.axisTick)!=null?n:iu,M=(r=y==null?void 0:y.axisTickLabel)!=null?r:lu,L=(o=y==null?void 0:y.axisLabel)!=null?o:cu;return R.jsxs(au,{transform:`translate(${f==="right"?A+D:A}, 0)`,className:E.root,children:[!p&&R.jsx(S,x({y1:l.range()[0],y2:l.range()[1],className:E.line},T==null?void 0:T.axisLine)),B.map(({formattedValue:W,offset:X,labelOffset:J},oe)=>{const te=O*(j+2),ne=J;return R.jsxs("g",{transform:`translate(0, ${X})`,className:E.tickContainer,children:[!m&&R.jsx(w,x({x2:O*j,className:E.tick},T==null?void 0:T.axisTick)),W!==void 0&&R.jsx(M,x({x:te,y:ne,"transform-origin":`${te}px ${ne}px`,sx:{fontSize:v},className:E.tickLabel},T==null?void 0:T.axisTickLabel,{children:W.toLocaleString()}))]},oe)}),b&&R.jsx(L,x({},$,{sx:{fontSize:g,transform:`rotate(${O*90}deg)`,transformOrigin:`${$.x}px ${$.y}px`},className:E.label},T==null?void 0:T.axisLabel,{children:b}))]})}const vr=e=>e==null?null:typeof e=="object"?e.axisId:e,xr=(e,t,n)=>typeof e=="object"?x({},e,{slots:x({},t,e==null?void 0:e.slots),slotProps:x({},n,e==null?void 0:e.slotProps)}):{slots:t,slotProps:n};function $w(e){const{topAxis:t,leftAxis:n,rightAxis:r,bottomAxis:o,slots:a,slotProps:s}=e,{xAxis:i,xAxisIds:l,yAxis:c,yAxisIds:u}=h.useContext(At),d=vr(n===void 0?u[0]:n),f=vr(o===void 0?l[0]:o),p=vr(t),m=vr(r);if(p!==null&&!i[p])throw Error(`MUI: id used for top axis "${p}" is not defined`);if(d!==null&&!c[d])throw Error(`MUI: id used for left axis "${d}" is not defined`);if(m!==null&&!c[m])throw Error(`MUI: id used for right axis "${m}" is not defined`);if(f!==null&&!i[f])throw Error(`MUI: id used for bottom axis "${f}" is not defined`);const v=xr(t,a,s),b=xr(o,a,s),g=xr(n,a,s),k=xr(r,a,s);return R.jsxs(h.Fragment,{children:[p&&R.jsx(Ki,x({},v,{position:"top",axisId:p})),f&&R.jsx(Ki,x({},b,{position:"bottom",axisId:f})),d&&R.jsx(Xi,x({},g,{position:"left",axisId:d})),m&&R.jsx(Xi,x({},k,{position:"right",axisId:m}))]})}function Ew(e){if(e===null)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:t,y:n}=e;return{getBoundingClientRect:()=>({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t,toJSON:()=>JSON.stringify({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t})})}}function Dw(){const e=h.useContext(Ja),[t,n]=h.useState(null);return h.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=()=>{n(null)},a=s=>{n({x:s.clientX,y:s.clientY})};return r.addEventListener("mouseout",o),r.addEventListener("mousemove",a),()=>{r.removeEventListener("mouseout",o),r.removeEventListener("mousemove",a)}},[e]),t}function Rw(e,t){if(e==="item")return t!==null;const n=t.x!==null,r=t.y!==null;return n||r}function Nw(e){return xe("MuiChartsTooltip",e)}const qi=he("MuiChartsTooltip",["root","markCell","labelCell","valueCell"]),uu=ee("div",{name:"MuiChartsTooltip",slot:"Container"})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),border:`1px solid ${(e.vars||e).palette.divider}`,borderRadius:e.shape.borderRadius})),du=ee("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),Zo=ee("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(1)},"tr:last-of-type& td":{paddingBottom:e.spacing(1)}})),Gt=ee("td",{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${qi.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${qi.valueCell}`]:{paddingLeft:e.spacing(4),color:(e.vars||e).palette.text.primary},"td:first-of-type&":{paddingLeft:e.spacing(2)},"td:last-of-type&":{paddingRight:e.spacing(2)}})),fu=ee(ld,{name:"MuiChartsTooltip",slot:"Mark"})(({theme:e,ownerState:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",backgroundColor:t.color,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function Ow(e){const{series:t,itemData:n,sx:r,classes:o}=e;if(n.dataIndex===void 0)return null;const{displayedLabel:a,color:s}=t.type==="pie"?{color:t.data[n.dataIndex].color,displayedLabel:t.data[n.dataIndex].label}:{color:t.color,displayedLabel:t.label},i=t.valueFormatter(t.data[n.dataIndex]);return R.jsx(uu,{sx:r,className:o.root,children:R.jsx(du,{children:R.jsx("tbody",{children:R.jsxs(Zo,{children:[R.jsx(Gt,{className:o.markCell,children:R.jsx(fu,{ownerState:{color:s}})}),R.jsx(Gt,{className:o.labelCell,children:a}),R.jsx(Gt,{className:o.valueCell,children:i})]})})})})}function Lw(e){const{content:t,itemData:n,sx:r,classes:o}=e,a=h.useContext(kn)[n.type].series[n.seriesId],s=t??Ow;return R.jsx(s,{itemData:n,series:a,sx:r,classes:o})}function _w(e){var t;const{series:n,axis:r,dataIndex:o,axisValue:a,sx:s,classes:i}=e;if(o==null)return null;const l=(t=r.valueFormatter)!=null?t:c=>c.toLocaleString();return R.jsx(uu,{sx:s,className:i.root,children:R.jsxs(du,{children:[a!=null&&!r.hideTooltip&&R.jsx("thead",{children:R.jsx(Zo,{children:R.jsx(Gt,{colSpan:3,children:R.jsx(Hn,{children:l(a)})})})}),R.jsx("tbody",{children:n.map(({color:c,id:u,label:d,valueFormatter:f,data:p})=>R.jsxs(Zo,{children:[R.jsx(Gt,{className:i.markCell,children:R.jsx(fu,{ownerState:{color:c},boxShadow:1})}),R.jsx(Gt,{className:i.labelCell,children:d?R.jsx(Hn,{children:d}):null}),R.jsx(Gt,{className:i.valueCell,children:R.jsx(Hn,{children:f(p[o])})})]},u))})]})})}function Iw(e){const{content:t,axisData:n,sx:r,classes:o}=e,a=(n.x&&n.x.index)!==void 0,s=a?n.x&&n.x.index:n.y&&n.y.index,i=a?n.x&&n.x.value:n.y&&n.y.value,{xAxisIds:l,xAxis:c,yAxisIds:u,yAxis:d}=h.useContext(At),f=h.useContext(kn),p=a?l[0]:u[0],m=h.useMemo(()=>{const g=[];return Object.keys(f).filter(k=>["bar","line","scatter"].includes(k)).forEach(k=>{f[k].seriesOrder.forEach(C=>{const y=f[k].series[C],T=a?y.xAxisKey:y.yAxisKey;(T===void 0||T===p)&&g.push(f[k].series[C])})}),g},[p,a,f]),v=h.useMemo(()=>a?c[p]:d[p],[p,a,c,d]),b=t??_w;return R.jsx(b,{axisData:n,series:m,axis:v,dataIndex:s,axisValue:i,sx:r,classes:o})}const Aw=e=>{const{classes:t}=e;return be({root:["root"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},Nw,t)};function jw(e){const{trigger:t="axis",itemContent:n,axisContent:r}=e,o=Dw(),{item:a,axis:s}=h.useContext(Pn),i=t==="item"?a:s,l=Rw(t,i),c=o!==null&&l,u=Aw({classes:e.classes});return t==="none"?null:R.jsx(lp,{children:c&&R.jsx(Ll,{open:c,placement:"right-start",anchorEl:Ew(o),style:{pointerEvents:"none"},children:t==="item"?R.jsx(Lw,{itemData:i,content:n,sx:{mx:2},classes:u}):R.jsx(Iw,{axisData:i,content:r,sx:{mx:2},classes:u})})})}const Fw=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},Bw=Fw,Hw=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},Ww=Hw,zw=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},Uw=zw,Vw=e=>{const{seriesOrder:t,series:n}=e;return t.flatMap(r=>n[r].data.map(o=>({color:o.color,label:o.label,id:o.id})).filter(o=>o.label!==void 0))},Yw=Vw,Kw={bar:Bw,scatter:Ww,line:Uw,pie:Yw};function Gw(e){return Object.keys(e).flatMap(t=>Kw[t](e[t]))}function Xw(e){return xe("MuiChartsLegend",e)}he("MuiChartsLegend",["root","series","mark","label","column","row"]);const qw=e=>{const{classes:t,direction:n}=e;return be({root:["root",n],mark:["mark"],label:["label"],series:["series"]},Xw,t)};function Zw({position:e,drawingArea:t}){let n;switch(e.horizontal){case"left":n=`calc(var(--ChartsLegend-rootOffsetX, 0px) + ${t.left}px - var(--ChartsLegend-rootWidth))`;break;case"middle":n=`calc(var(--ChartsLegend-rootOffsetX, 0px) + ${t.left+t.width/2}px - 0.5 * var(--ChartsLegend-rootWidth))`;break;default:n=`calc(var(--ChartsLegend-rootOffsetX, 0px) + ${t.left+t.width}px)`;break}let r;switch(e.vertical){case"top":r=`calc(var(--ChartsLegend-rootOffsetY, 0px) + ${t.top}px - var(--ChartsLegend-rootHeight))`;break;case"middle":r=`calc(var(--ChartsLegend-rootOffsetY, 0px) + ${t.top+t.height/2}px - 0.5 * var(--ChartsLegend-rootHeight))`;break;default:r=`calc(var(--ChartsLegend-rootOffsetY, 0px) + ${t.top+t.height}px)`;break}return{transform:`translate(${n}, ${r})`}}const Jw=ee("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>{const{direction:t,drawingArea:n,offsetX:r,offsetY:o,seriesNumber:a,position:s}=e;return x({"--ChartsLegend-rootOffsetX":typeof r=="number"?`${r}px`:void 0,"--ChartsLegend-rootOffsetY":typeof o=="number"?`${o}px`:void 0,"--ChartsLegend-rootWidth":t==="row"?`calc(var(--ChartsLegend-itemWidth) * ${a} + var(--ChartsLegend-rootSpacing) * ${a-1} )`:"var(--ChartsLegend-itemWidth)","--ChartsLegend-rootHeight":t==="row"?"var(--ChartsLegend-itemMarkSize)":`calc(var(--ChartsLegend-itemMarkSize) * ${a} + var(--ChartsLegend-rootSpacing) * ${a-1} )`},Zw({position:s,drawingArea:n,offsetX:r,offsetY:o}))}),Qw=ee("g",{name:"MuiChartsLegend",slot:"ChartsSeriesLegendGroup",overridesResolver:(e,t)=>t.series})(({ownerState:e})=>{const{direction:t,seriesIndex:n}=e;return t==="row"?{transform:`translate(calc(${n} * (var(--ChartsLegend-itemWidth) + var(--ChartsLegend-rootSpacing))), 0)`}:{transform:`translate(0, calc(${n} * (var(--ChartsLegend-itemMarkSize) + var(--ChartsLegend-rootSpacing))))`}}),eS=ee("rect",{name:"MuiChartsLegend",slot:"Mark",overridesResolver:(e,t)=>t.mark})(({ownerState:e})=>({x:0,y:0,width:"var(--ChartsLegend-itemMarkSize)",height:"var(--ChartsLegend-itemMarkSize)",fill:e.color})),tS=ee("text",{name:"MuiChartsLegend",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>x({},e.typography.body1,{color:"inherit",transform:`translate( + */var Hs;function vg(){if(Hs)return _n;Hs=1;var e=Ct,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(i,l,c){var u,d={},f=null,h=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(h=l.ref);for(u in l)r.call(l,u)&&!a.hasOwnProperty(u)&&(d[u]=l[u]);if(i&&i.defaultProps)for(u in l=i.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:i,key:f,ref:h,props:d,_owner:o.current}}return _n.Fragment=n,_n.jsx=s,_n.jsxs=s,_n}ql.exports=vg();var B=ql.exports;function tr(e){return e.mode==="multiple"}function nr(e){return e.mode==="range"}function Ur(e){return e.mode==="single"}var xg={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function bg(e,t){return _t(e,"LLLL y",t)}function yg(e,t){return _t(e,"d",t)}function Cg(e,t){return _t(e,"LLLL",t)}function wg(e){return"".concat(e)}function Sg(e,t){return _t(e,"cccccc",t)}function Mg(e,t){return _t(e,"yyyy",t)}var Tg=Object.freeze({__proto__:null,formatCaption:bg,formatDay:yg,formatMonthCaption:Cg,formatWeekNumber:wg,formatWeekdayName:Sg,formatYearCaption:Mg}),kg=function(e,t,n){return _t(e,"do MMMM (EEEE)",n)},Pg=function(){return"Month: "},$g=function(){return"Go to next month"},Eg=function(){return"Go to previous month"},Dg=function(e,t){return _t(e,"cccc",t)},Rg=function(e){return"Week n. ".concat(e)},Ng=function(){return"Year: "},Og=Object.freeze({__proto__:null,labelDay:kg,labelMonthDropdown:Pg,labelNext:$g,labelPrevious:Eg,labelWeekNumber:Rg,labelWeekday:Dg,labelYearDropdown:Ng});function Lg(){var e="buttons",t=xg,n=Iu,r={},o={},a=1,s={},i=new Date;return{captionLayout:e,classNames:t,formatters:Tg,labels:Og,locale:n,modifiersClassNames:r,modifiers:o,numberOfMonths:a,styles:s,today:i,mode:"default"}}function _g(e){var t=e.fromYear,n=e.toYear,r=e.fromMonth,o=e.toMonth,a=e.fromDate,s=e.toDate;return r?a=Ue(r):t&&(a=new Date(t,0,1)),o?s=ea(o):n&&(s=new Date(n,11,31)),{fromDate:a?us(a):void 0,toDate:s?us(s):void 0}}var Zl=p.createContext(void 0);function Ig(e){var t,n=e.initialProps,r=Lg(),o=_g(n),a=o.fromDate,s=o.toDate,i=(t=n.captionLayout)!==null&&t!==void 0?t:r.captionLayout;i!=="buttons"&&(!a||!s)&&(i="buttons");var l;(Ur(n)||tr(n)||nr(n))&&(l=n.onSelect);var c=U(U(U({},r),n),{captionLayout:i,classNames:U(U({},r.classNames),n.classNames),components:U({},n.components),formatters:U(U({},r.formatters),n.formatters),fromDate:a,labels:U(U({},r.labels),n.labels),mode:n.mode||r.mode,modifiers:U(U({},r.modifiers),n.modifiers),modifiersClassNames:U(U({},r.modifiersClassNames),n.modifiersClassNames),onSelect:l,styles:U(U({},r.styles),n.styles),toDate:s});return B.jsx(Zl.Provider,U({value:c},{children:e.children}))}function Ce(){var e=p.useContext(Zl);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function Jl(e){var t=Ce(),n=t.locale,r=t.classNames,o=t.styles,a=t.formatters.formatCaption;return B.jsx("div",U({className:r.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id},{children:a(e.displayMonth,{locale:n})}))}function Ag(e){return B.jsx("svg",U({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:B.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Ql(e){var t,n,r=e.onChange,o=e.value,a=e.children,s=e.caption,i=e.className,l=e.style,c=Ce(),u=(n=(t=c.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&n!==void 0?n:Ag;return B.jsxs("div",U({className:i,style:l},{children:[B.jsx("span",U({className:c.classNames.vhidden},{children:e["aria-label"]})),B.jsx("select",U({name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:o,onChange:r},{children:a})),B.jsxs("div",U({className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true"},{children:[s,B.jsx(u,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]}))]}))}function jg(e){var t,n=Ce(),r=n.fromDate,o=n.toDate,a=n.styles,s=n.locale,i=n.formatters.formatMonthCaption,l=n.classNames,c=n.components,u=n.labels.labelMonthDropdown;if(!r)return B.jsx(B.Fragment,{});if(!o)return B.jsx(B.Fragment,{});var d=[];if(Au(r,o))for(var f=Ue(r),h=r.getMonth();h<=o.getMonth();h++)d.push(ro(f,h));else for(var f=Ue(new Date),h=0;h<=11;h++)d.push(ro(f,h));var m=function(b){var g=Number(b.target.value),k=ro(Ue(e.displayMonth),g);e.onChange(k)},v=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:Ql;return B.jsx(v,U({name:"months","aria-label":u(),className:l.dropdown_month,style:a.dropdown_month,onChange:m,value:e.displayMonth.getMonth(),caption:i(e.displayMonth,{locale:s})},{children:d.map(function(b){return B.jsx("option",U({value:b.getMonth()},{children:i(b,{locale:s})}),b.getMonth())})}))}function Fg(e){var t,n=e.displayMonth,r=Ce(),o=r.fromDate,a=r.toDate,s=r.locale,i=r.styles,l=r.classNames,c=r.components,u=r.formatters.formatYearCaption,d=r.labels.labelYearDropdown,f=[];if(!o)return B.jsx(B.Fragment,{});if(!a)return B.jsx(B.Fragment,{});for(var h=o.getFullYear(),m=a.getFullYear(),v=h;v<=m;v++)f.push(ds(ju(new Date),v));var b=function(k){var w=ds(Ue(n),Number(k.target.value));e.onChange(w)},g=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:Ql;return B.jsx(g,U({name:"years","aria-label":d(),className:l.dropdown_year,style:i.dropdown_year,onChange:b,value:n.getFullYear(),caption:u(n,{locale:s})},{children:f.map(function(k){return B.jsx("option",U({value:k.getFullYear()},{children:u(k,{locale:s})}),k.getFullYear())})}))}function Bg(e,t){var n=p.useState(e),r=n[0],o=n[1],a=t===void 0?r:t;return[a,o]}function Hg(e){var t=e.month,n=e.defaultMonth,r=e.today,o=t||n||r||new Date,a=e.toDate,s=e.fromDate,i=e.numberOfMonths,l=i===void 0?1:i;if(a&&Vn(a,o)<0){var c=-1*(l-1);o=mt(a,c)}return s&&Vn(o,s)<0&&(o=s),Ue(o)}function Wg(){var e=Ce(),t=Hg(e),n=Bg(t,e.month),r=n[0],o=n[1],a=function(s){var i;if(!e.disableNavigation){var l=Ue(s);o(l),(i=e.onMonthChange)===null||i===void 0||i.call(e,l)}};return[r,a]}function zg(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,o=Ue(e),a=Ue(mt(o,r)),s=Vn(a,o),i=[],l=0;l1&&(l||!c),d=t>1&&(c||!l),f=function(){r&&a(r)},h=function(){o&&a(o)};return B.jsx(Xg,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:d,nextMonth:o,previousMonth:r,onPreviousClick:f,onNextClick:h})}function qg(e){var t,n=Ce(),r=n.classNames,o=n.disableNavigation,a=n.styles,s=n.captionLayout,i=n.components,l=(t=i==null?void 0:i.CaptionLabel)!==null&&t!==void 0?t:Jl,c;return o?c=B.jsx(l,{id:e.id,displayMonth:e.displayMonth}):s==="dropdown"?c=B.jsx(Ws,{displayMonth:e.displayMonth,id:e.id}):s==="dropdown-buttons"?c=B.jsxs(B.Fragment,{children:[B.jsx(Ws,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),B.jsx(zs,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):c=B.jsxs(B.Fragment,{children:[B.jsx(l,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),B.jsx(zs,{displayMonth:e.displayMonth,id:e.id})]}),B.jsx("div",U({className:r.caption,style:a.caption},{children:c}))}function Zg(e){var t=Ce(),n=t.footer,r=t.styles,o=t.classNames.tfoot;return n?B.jsx("tfoot",U({className:o,style:r.tfoot},{children:B.jsx("tr",{children:B.jsx("td",U({colSpan:8},{children:n}))})})):B.jsx(B.Fragment,{})}function Jg(e,t,n){for(var r=n?na(new Date):ra(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var s=We(r,a);o.push(s)}return o}function Qg(){var e=Ce(),t=e.classNames,n=e.styles,r=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,s=e.ISOWeek,i=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,c=Jg(o,a,s);return B.jsxs("tr",U({style:n.head_row,className:t.head_row},{children:[r&&B.jsx("td",{style:n.head_cell,className:t.head_cell}),c.map(function(u,d){return B.jsx("th",U({scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":l(u,{locale:o})},{children:i(u,{locale:o})}),d)})]}))}function ev(){var e,t=Ce(),n=t.classNames,r=t.styles,o=t.components,a=(e=o==null?void 0:o.HeadRow)!==null&&e!==void 0?e:Qg;return B.jsx("thead",U({style:r.head,className:n.head},{children:B.jsx(a,{})}))}function tv(e){var t=Ce(),n=t.locale,r=t.formatters.formatDay;return B.jsx(B.Fragment,{children:r(e.date,{locale:n})})}var va=p.createContext(void 0);function nv(e){if(!tr(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return B.jsx(va.Provider,U({value:t},{children:e.children}))}return B.jsx(rv,{initialProps:e.initialProps,children:e.children})}function rv(e){var t=e.initialProps,n=e.children,r=t.selected,o=t.min,a=t.max,s=function(c,u,d){var f,h;(f=t.onDayClick)===null||f===void 0||f.call(t,c,u,d);var m=!!(u.selected&&o&&(r==null?void 0:r.length)===o);if(!m){var v=!!(!u.selected&&a&&(r==null?void 0:r.length)===a);if(!v){var b=r?Xl([],r,!0):[];if(u.selected){var g=b.findIndex(function(k){return Oe(c,k)});b.splice(g,1)}else b.push(c);(h=t.onSelect)===null||h===void 0||h.call(t,b,c,u,d)}}},i={disabled:[]};r&&i.disabled.push(function(c){var u=a&&r.length>a-1,d=r.some(function(f){return Oe(f,c)});return!!(u&&!d)});var l={selected:r,onDayClick:s,modifiers:i};return B.jsx(va.Provider,U({value:l},{children:n}))}function xa(){var e=p.useContext(va);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function ov(e,t){var n=t||{},r=n.from,o=n.to;return r&&o?Oe(o,e)&&Oe(r,e)?void 0:Oe(o,e)?{from:o,to:void 0}:Oe(r,e)?void 0:Oo(r,e)?{from:e,to:o}:{from:r,to:e}:o?Oo(e,o)?{from:o,to:e}:{from:e,to:o}:r?ll(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var ba=p.createContext(void 0);function av(e){if(!nr(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return B.jsx(ba.Provider,U({value:t},{children:e.children}))}return B.jsx(sv,{initialProps:e.initialProps,children:e.children})}function sv(e){var t=e.initialProps,n=e.children,r=t.selected,o=r||{},a=o.from,s=o.to,i=t.min,l=t.max,c=function(h,m,v){var b,g;(b=t.onDayClick)===null||b===void 0||b.call(t,h,m,v);var k=ov(h,r);(g=t.onSelect)===null||g===void 0||g.call(t,k,h,m,v)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],s?(u.range_end=[s],Oe(a,s)||(u.range_middle=[{after:a,before:s}])):u.range_end=[a]):s&&(u.range_start=[s],u.range_end=[s]),i&&(a&&!s&&u.disabled.push({after:no(a,i-1),before:We(a,i-1)}),a&&s&&u.disabled.push({after:a,before:We(a,i-1)}),!a&&s&&u.disabled.push({after:no(s,i-1),before:We(s,i-1)})),l){if(a&&!s&&(u.disabled.push({before:We(a,-l+1)}),u.disabled.push({after:We(a,l-1)})),a&&s){var d=yt(s,a)+1,f=l-d;u.disabled.push({before:no(a,f)}),u.disabled.push({after:We(s,f)})}!a&&s&&(u.disabled.push({before:We(s,-l+1)}),u.disabled.push({after:We(s,l-1)}))}return B.jsx(ba.Provider,U({value:{selected:r,onDayClick:c,modifiers:u}},{children:n}))}function ya(){var e=p.useContext(ba);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Sr(e){return Array.isArray(e)?Xl([],e,!0):e!==void 0?[e]:[]}function iv(e){var t={};return Object.entries(e).forEach(function(n){var r=n[0],o=n[1];t[r]=Sr(o)}),t}var ct;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(ct||(ct={}));var lv=ct.Selected,bt=ct.Disabled,cv=ct.Hidden,uv=ct.Today,po=ct.RangeEnd,ho=ct.RangeMiddle,mo=ct.RangeStart,dv=ct.Outside;function fv(e,t,n){var r,o=(r={},r[lv]=Sr(e.selected),r[bt]=Sr(e.disabled),r[cv]=Sr(e.hidden),r[uv]=[e.today],r[po]=[],r[ho]=[],r[mo]=[],r[dv]=[],r);return e.fromDate&&o[bt].push({before:e.fromDate}),e.toDate&&o[bt].push({after:e.toDate}),tr(e)?o[bt]=o[bt].concat(t.modifiers[bt]):nr(e)&&(o[bt]=o[bt].concat(n.modifiers[bt]),o[mo]=n.modifiers[mo],o[ho]=n.modifiers[ho],o[po]=n.modifiers[po]),o}var tc=p.createContext(void 0);function pv(e){var t=Ce(),n=xa(),r=ya(),o=fv(t,n,r),a=iv(t.modifiers),s=U(U({},o),a);return B.jsx(tc.Provider,U({value:s},{children:e.children}))}function nc(){var e=p.useContext(tc);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function hv(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function mv(e){return!!(e&&typeof e=="object"&&"from"in e)}function gv(e){return!!(e&&typeof e=="object"&&"after"in e)}function vv(e){return!!(e&&typeof e=="object"&&"before"in e)}function xv(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function bv(e,t){var n,r=t.from,o=t.to;if(r&&o){var a=yt(o,r)<0;a&&(n=[o,r],r=n[0],o=n[1]);var s=yt(e,r)>=0&&yt(o,e)>=0;return s}return o?Oe(o,e):r?Oe(r,e):!1}function yv(e){return dl(e)}function Cv(e){return Array.isArray(e)&&e.every(dl)}function wv(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(yv(n))return Oe(e,n);if(Cv(n))return n.includes(e);if(mv(n))return bv(e,n);if(xv(n))return n.dayOfWeek.includes(e.getDay());if(hv(n)){var r=yt(n.before,e),o=yt(n.after,e),a=r>0,s=o<0,i=Oo(n.before,n.after);return i?s&&a:a||s}return gv(n)?yt(e,n.after)>0:vv(n)?yt(n.before,e)>0:typeof n=="function"?n(e):!1})}function Ca(e,t,n){var r=Object.keys(t).reduce(function(a,s){var i=t[s];return wv(e,i)&&a.push(s),a},[]),o={};return r.forEach(function(a){return o[a]=!0}),n&&!ta(e,n)&&(o.outside=!0),o}function Sv(e,t){for(var n=Ue(e[0]),r=ea(e[e.length-1]),o,a,s=n;s<=r;){var i=Ca(s,t),l=!i.disabled&&!i.hidden;if(!l){s=We(s,1);continue}if(i.selected)return s;i.today&&!a&&(a=s),o||(o=s),s=We(s,1)}return a||o}var Mv=365;function rc(e,t){var n=t.moveBy,r=t.direction,o=t.context,a=t.modifiers,s=t.retry,i=s===void 0?{count:0,lastFocused:e}:s,l=o.weekStartsOn,c=o.fromDate,u=o.toDate,d=o.locale,f={day:We,week:Lo,month:mt,year:zu,startOfWeek:function(b){return o.ISOWeek?na(b):ra(b,{locale:d,weekStartsOn:l})},endOfWeek:function(b){return o.ISOWeek?cl(b):ul(b,{locale:d,weekStartsOn:l})}},h=f[n](e,r==="after"?1:-1);r==="before"&&c?h=Fu([c,h]):r==="after"&&u&&(h=Bu([u,h]));var m=!0;if(a){var v=Ca(h,a);m=!v.disabled&&!v.hidden}return m?h:i.count>Mv?i.lastFocused:rc(h,{moveBy:n,direction:r,context:o,modifiers:a,retry:U(U({},i),{count:i.count+1})})}var oc=p.createContext(void 0);function Tv(e){var t=rr(),n=nc(),r=p.useState(),o=r[0],a=r[1],s=p.useState(),i=s[0],l=s[1],c=Sv(t.displayMonths,n),u=o??(i&&t.isDateDisplayed(i))?i:c,d=function(){l(o),a(void 0)},f=function(b){a(b)},h=Ce(),m=function(b,g){if(o){var k=rc(o,{moveBy:b,direction:g,context:h,modifiers:n});Oe(o,k)||(t.goToDate(k,o),f(k))}},v={focusedDay:o,focusTarget:u,blur:d,focus:f,focusDayAfter:function(){return m("day","after")},focusDayBefore:function(){return m("day","before")},focusWeekAfter:function(){return m("week","after")},focusWeekBefore:function(){return m("week","before")},focusMonthBefore:function(){return m("month","before")},focusMonthAfter:function(){return m("month","after")},focusYearBefore:function(){return m("year","before")},focusYearAfter:function(){return m("year","after")},focusStartOfWeek:function(){return m("startOfWeek","before")},focusEndOfWeek:function(){return m("endOfWeek","after")}};return B.jsx(oc.Provider,U({value:v},{children:e.children}))}function wa(){var e=p.useContext(oc);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function kv(e,t){var n=nc(),r=Ca(e,n,t);return r}var Sa=p.createContext(void 0);function Pv(e){if(!Ur(e.initialProps)){var t={selected:void 0};return B.jsx(Sa.Provider,U({value:t},{children:e.children}))}return B.jsx($v,{initialProps:e.initialProps,children:e.children})}function $v(e){var t=e.initialProps,n=e.children,r=function(a,s,i){var l,c,u;if((l=t.onDayClick)===null||l===void 0||l.call(t,a,s,i),s.selected&&!t.required){(c=t.onSelect)===null||c===void 0||c.call(t,void 0,a,s,i);return}(u=t.onSelect)===null||u===void 0||u.call(t,a,a,s,i)},o={selected:t.selected,onDayClick:r};return B.jsx(Sa.Provider,U({value:o},{children:n}))}function ac(){var e=p.useContext(Sa);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function Ev(e,t){var n=Ce(),r=ac(),o=xa(),a=ya(),s=wa(),i=s.focusDayAfter,l=s.focusDayBefore,c=s.focusWeekAfter,u=s.focusWeekBefore,d=s.blur,f=s.focus,h=s.focusMonthBefore,m=s.focusMonthAfter,v=s.focusYearBefore,b=s.focusYearAfter,g=s.focusStartOfWeek,k=s.focusEndOfWeek,w=function(C){var M,L,W,X;Ur(n)?(M=r.onDayClick)===null||M===void 0||M.call(r,e,t,C):tr(n)?(L=o.onDayClick)===null||L===void 0||L.call(o,e,t,C):nr(n)?(W=a.onDayClick)===null||W===void 0||W.call(a,e,t,C):(X=n.onDayClick)===null||X===void 0||X.call(n,e,t,C)},y=function(C){var M;f(e),(M=n.onDayFocus)===null||M===void 0||M.call(n,e,t,C)},T=function(C){var M;d(),(M=n.onDayBlur)===null||M===void 0||M.call(n,e,t,C)},P=function(C){var M;(M=n.onDayMouseEnter)===null||M===void 0||M.call(n,e,t,C)},E=function(C){var M;(M=n.onDayMouseLeave)===null||M===void 0||M.call(n,e,t,C)},A=function(C){var M;(M=n.onDayPointerEnter)===null||M===void 0||M.call(n,e,t,C)},I=function(C){var M;(M=n.onDayPointerLeave)===null||M===void 0||M.call(n,e,t,C)},D=function(C){var M;(M=n.onDayTouchCancel)===null||M===void 0||M.call(n,e,t,C)},N=function(C){var M;(M=n.onDayTouchEnd)===null||M===void 0||M.call(n,e,t,C)},j=function(C){var M;(M=n.onDayTouchMove)===null||M===void 0||M.call(n,e,t,C)},F=function(C){var M;(M=n.onDayTouchStart)===null||M===void 0||M.call(n,e,t,C)},O=function(C){var M;(M=n.onDayKeyUp)===null||M===void 0||M.call(n,e,t,C)},$=function(C){var M;switch(C.key){case"ArrowLeft":C.preventDefault(),C.stopPropagation(),n.dir==="rtl"?i():l();break;case"ArrowRight":C.preventDefault(),C.stopPropagation(),n.dir==="rtl"?l():i();break;case"ArrowDown":C.preventDefault(),C.stopPropagation(),c();break;case"ArrowUp":C.preventDefault(),C.stopPropagation(),u();break;case"PageUp":C.preventDefault(),C.stopPropagation(),C.shiftKey?v():h();break;case"PageDown":C.preventDefault(),C.stopPropagation(),C.shiftKey?b():m();break;case"Home":C.preventDefault(),C.stopPropagation(),g();break;case"End":C.preventDefault(),C.stopPropagation(),k();break}(M=n.onDayKeyDown)===null||M===void 0||M.call(n,e,t,C)},S={onClick:w,onFocus:y,onBlur:T,onKeyDown:$,onKeyUp:O,onMouseEnter:P,onMouseLeave:E,onPointerEnter:A,onPointerLeave:I,onTouchCancel:D,onTouchEnd:N,onTouchMove:j,onTouchStart:F};return S}function Dv(){var e=Ce(),t=ac(),n=xa(),r=ya(),o=Ur(e)?t.selected:tr(e)?n.selected:nr(e)?r.selected:void 0;return o}function Rv(e){return Object.values(ct).includes(e)}function Nv(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(r){var o=e.modifiersClassNames[r];if(o)n.push(o);else if(Rv(r)){var a=e.classNames["day_".concat(r)];a&&n.push(a)}}),n}function Ov(e,t){var n=U({},e.styles.day);return Object.keys(t).forEach(function(r){var o;n=U(U({},n),(o=e.modifiersStyles)===null||o===void 0?void 0:o[r])}),n}function Lv(e,t,n){var r,o,a,s=Ce(),i=wa(),l=kv(e,t),c=Ev(e,l),u=Dv(),d=!!(s.onDayClick||s.mode!=="default");p.useEffect(function(){var P;l.outside||i.focusedDay&&d&&Oe(i.focusedDay,e)&&((P=n.current)===null||P===void 0||P.focus())},[i.focusedDay,e,n,d,l.outside]);var f=Nv(s,l).join(" "),h=Ov(s,l),m=!!(l.outside&&!s.showOutsideDays||l.hidden),v=(a=(o=s.components)===null||o===void 0?void 0:o.DayContent)!==null&&a!==void 0?a:tv,b=B.jsx(v,{date:e,displayMonth:t,activeModifiers:l}),g={style:h,className:f,children:b,role:"gridcell"},k=i.focusTarget&&Oe(i.focusTarget,e)&&!l.outside,w=i.focusedDay&&Oe(i.focusedDay,e),y=U(U(U({},g),(r={disabled:l.disabled,role:"gridcell"},r["aria-selected"]=l.selected,r.tabIndex=w||k?0:-1,r)),c),T={isButton:d,isHidden:m,activeModifiers:l,selectedDays:u,buttonProps:y,divProps:g};return T}function _v(e){var t=p.useRef(null),n=Lv(e.date,e.displayMonth,t);return n.isHidden?B.jsx("div",{role:"gridcell"}):n.isButton?B.jsx($r,U({name:"day",ref:t},n.buttonProps)):B.jsx("div",U({},n.divProps))}function Iv(e){var t=e.number,n=e.dates,r=Ce(),o=r.onWeekNumberClick,a=r.styles,s=r.classNames,i=r.locale,l=r.labels.labelWeekNumber,c=r.formatters.formatWeekNumber,u=c(Number(t),{locale:i});if(!o)return B.jsx("span",U({className:s.weeknumber,style:a.weeknumber},{children:u}));var d=l(Number(t),{locale:i}),f=function(h){o(t,n,h)};return B.jsx($r,U({name:"week-number","aria-label":d,className:s.weeknumber,style:a.weeknumber,onClick:f},{children:u}))}function Av(e){var t,n,r=Ce(),o=r.styles,a=r.classNames,s=r.showWeekNumber,i=r.components,l=(t=i==null?void 0:i.Day)!==null&&t!==void 0?t:_v,c=(n=i==null?void 0:i.WeekNumber)!==null&&n!==void 0?n:Iv,u;return s&&(u=B.jsx("td",U({className:a.cell,style:o.cell},{children:B.jsx(c,{number:e.weekNumber,dates:e.dates})}))),B.jsxs("tr",U({className:a.row,style:o.row},{children:[u,e.dates.map(function(d){return B.jsx("td",U({className:a.cell,style:o.cell,role:"presentation"},{children:B.jsx(l,{displayMonth:e.displayMonth,date:d})}),Lu(d))})]}))}function Us(e,t,n){for(var r=n!=null&&n.ISOWeek?cl(t):ul(t,n),o=n!=null&&n.ISOWeek?na(e):ra(e,n),a=yt(r,o),s=[],i=0;i<=a;i++)s.push(We(o,i));var l=s.reduce(function(c,u){var d=n!=null&&n.ISOWeek?Hu(u):Wu(u,n),f=c.find(function(h){return h.weekNumber===d});return f?(f.dates.push(u),c):(c.push({weekNumber:d,dates:[u]}),c)},[]);return l}function jv(e,t){var n=Us(Ue(e),ea(e),t);if(t!=null&&t.useFixedWeeks){var r=_u(e,t);if(r<6){var o=n[n.length-1],a=o.dates[o.dates.length-1],s=Lo(a,6-r),i=Us(Lo(a,1),s,t);n.push.apply(n,i)}}return n}function Fv(e){var t,n,r,o=Ce(),a=o.locale,s=o.classNames,i=o.styles,l=o.hideHead,c=o.fixedWeeks,u=o.components,d=o.weekStartsOn,f=o.firstWeekContainsDate,h=o.ISOWeek,m=jv(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:h,locale:a,weekStartsOn:d,firstWeekContainsDate:f}),v=(t=u==null?void 0:u.Head)!==null&&t!==void 0?t:ev,b=(n=u==null?void 0:u.Row)!==null&&n!==void 0?n:Av,g=(r=u==null?void 0:u.Footer)!==null&&r!==void 0?r:Zg;return B.jsxs("table",U({id:e.id,className:s.table,style:i.table,role:"grid","aria-labelledby":e["aria-labelledby"]},{children:[!l&&B.jsx(v,{}),B.jsx("tbody",U({className:s.tbody,style:i.tbody},{children:m.map(function(k){return B.jsx(b,{displayMonth:e.displayMonth,dates:k.dates,weekNumber:k.weekNumber},k.weekNumber)})})),B.jsx(g,{displayMonth:e.displayMonth})]}))}function Bv(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Hv=Bv()?p.useLayoutEffect:p.useEffect,go=!1,Wv=0;function Vs(){return"react-day-picker-".concat(++Wv)}function zv(e){var t,n=e??(go?Vs():null),r=p.useState(n),o=r[0],a=r[1];return Hv(function(){o===null&&a(Vs())},[]),p.useEffect(function(){go===!1&&(go=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function Uv(e){var t,n,r=Ce(),o=r.dir,a=r.classNames,s=r.styles,i=r.components,l=rr().displayMonths,c=zv(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),u=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,d=[a.month],f=s.month,h=e.displayIndex===0,m=e.displayIndex===l.length-1,v=!h&&!m;o==="rtl"&&(t=[h,m],m=t[0],h=t[1]),h&&(d.push(a.caption_start),f=U(U({},f),s.caption_start)),m&&(d.push(a.caption_end),f=U(U({},f),s.caption_end)),v&&(d.push(a.caption_between),f=U(U({},f),s.caption_between));var b=(n=i==null?void 0:i.Caption)!==null&&n!==void 0?n:qg;return B.jsxs("div",U({className:d.join(" "),style:f},{children:[B.jsx(b,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),B.jsx(Fv,{id:u,"aria-labelledby":c,displayMonth:e.displayMonth})]}),e.displayIndex)}function Vv(e){var t=Ce(),n=t.classNames,r=t.styles;return B.jsx("div",U({className:n.months,style:r.months},{children:e.children}))}function Yv(e){var t,n,r=e.initialProps,o=Ce(),a=wa(),s=rr(),i=p.useState(!1),l=i[0],c=i[1];p.useEffect(function(){o.initialFocus&&a.focusTarget&&(l||(a.focus(a.focusTarget),c(!0)))},[o.initialFocus,l,a.focus,a.focusTarget,a]);var u=[o.classNames.root,o.className];o.numberOfMonths>1&&u.push(o.classNames.multiple_months),o.showWeekNumber&&u.push(o.classNames.with_weeknumber);var d=U(U({},o.styles.root),o.style),f=Object.keys(r).filter(function(m){return m.startsWith("data-")}).reduce(function(m,v){var b;return U(U({},m),(b={},b[v]=r[v],b))},{}),h=(n=(t=r.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:Vv;return B.jsx("div",U({className:u.join(" "),style:d,dir:o.dir,id:o.id,nonce:r.nonce,title:r.title,lang:r.lang},f,{children:B.jsx(h,{children:s.displayMonths.map(function(m,v){return B.jsx(Uv,{displayIndex:v,displayMonth:m},v)})})}))}function Kv(e){var t=e.children,n=gg(e,["children"]);return B.jsx(Ig,U({initialProps:n},{children:B.jsx(Yg,{children:B.jsx(Pv,U({initialProps:n},{children:B.jsx(nv,U({initialProps:n},{children:B.jsx(av,U({initialProps:n},{children:B.jsx(pv,{children:B.jsx(Tv,{children:t})})}))}))}))})}))}function Gv(e){return B.jsx(Kv,U({},e,{children:B.jsx(Yv,{initialProps:e})}))}const bn="YYYY-MM-DD";const Ys=e=>{let t;const n=new Set,r=(l,c)=>{const u=typeof l=="function"?l(t):l;if(!Object.is(u,t)){const d=t;t=c??(typeof u!="object"||u===null)?u:Object.assign({},t,u),n.forEach(f=>f(t,d))}},o=()=>t,i={setState:r,getState:o,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{n.clear()}};return t=e(r,o,i),i},Xv=e=>e?Ys(e):Ys,{useDebugValue:qv}=Ct,{useSyncExternalStoreWithSelector:Zv}=Uu;function Jv(e,t=e.getState,n){const r=Zv(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return qv(r),r}const Ks=e=>{const t=typeof e=="function"?Xv(e):e,n=(r,o)=>Jv(t,r,o);return Object.assign(n,t),n},Qv=e=>e?Ks(e):Ks;var ex=(e=>(e.GO="GO",e.NODE="NODE",e))(ex||{});const tx=e=>Nt(e).unix(),nx=e=>Nt(e).subtract(1,"day").unix(),rx={total:{amount:0,prev:0,diff:0},date:Nt().format(bn),timeRange:{end:tx(new Date),start:nx(new Date)},responseType:"NODE",isUpdating:!1,timeSeriesSelector:"",focusLabel:"",limitEntries:10,deletedQueries:[],isLoading:!1,error:"",tsdbStatus:{}},ox={topN:10,timeSeriesSelector:"",focusLabel:""},Ot=Qv(e=>({...rx,setIsUpdating:t=>e(()=>({isUpdating:t})),setTotal:t=>e(()=>({total:t})),setTimeSeriesSelector:t=>e(()=>({timeSeriesSelector:t})),setTimeRange:t=>e(()=>({timeRange:t})),setFocusLabel:t=>e(()=>({focusLabel:t})),setLimitEntries:t=>e(()=>({limitEntries:t})),setDate:t=>e(()=>({date:t})),setDeletedQueries:t=>e(n=>({deletedQueries:[...n.deletedQueries,t]})),reset:()=>e(()=>({...ox})),setIsLoading:t=>e(()=>({isLoading:t})),setResponseType:t=>e(()=>({responseType:t})),setError:t=>e(()=>({error:t})),setTsdbStatus:t=>e(()=>({tsdbStatus:t}))})),ax=e=>({color:`${e.contrast}`,overflow:"visible",fontSize:"12px",background:`${e.shadow}`,border:`1px solid ${e.accentNeutral}`,mt:1.5,"& .MuiAvatar-root":{width:32,height:32,ml:-.5,mr:1},"&:before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,borderLeft:`1px solid ${e.accentNeutral}`,borderTop:`1px solid ${e.accentNeutral}`,bgcolor:`${e.shadow}`,transform:"translateY(-50%) rotate(45deg)",zIndex:0},"& .icon":{fontSize:"16px",marginRight:"4px",color:`${e.contrast}`},"& .item":{fontSize:"12px",color:`${e.contrast}`},".rdp-day_selected, .rdp-day_selected:focus-visible, .rdp-day_selected:hover":{background:`${e.primary}`,color:`${e.contrast}`},"& .rdp-day_selected : hover":{background:`${e.primary}`,color:`${e.contrast}`}}),vo=(e,t=!1)=>{let n=!e||e.length<1?new Date:new Date(e);if(typeof e=="string")return n;{const r=t?n.getTimezoneOffset():-n.getTimezoneOffset(),o=new Date;return o.setTime(n.getTime()+r*6e4),o}};function sx(){const e=Lt(),[t,n]=Ct.useState(null),{date:r,setDate:o}=Ot(),[a,s]=Ct.useState(new Date(r)),i=!!t;let l=H("p",{children:"Please pick a day."});a&&(l=ae("p",{children:["You picked ",_t(a,"PP"),"."]}));const c=f=>{s(()=>vo(f)),o(Nt(vo(f)).format(bn)),n(null)},u=f=>{n(f.currentTarget)},d=()=>{n(null)};return ae(kr,{children:[ae(Mp,{sx:{display:"flex",alignItems:"center",textAlign:"center"},children:[a&&H("p",{style:{fontSize:".8em"},children:Nt(a).format(bn)}),H(ha,{title:"Select Day",children:H(Nu,{onClick:u,size:"small",sx:{ml:2,color:`${e.contrast}`,background:`${e.primaryAccent}`,"&.MuiIconButton-root":{border:`1px solid ${e.primary}`,borderRadius:"3px"}},"aria-controls":i?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":i?"true":void 0,children:H(Kl,{style:{height:"16px",width:"16px"}})})})]}),H(Vl,{id:"account-menu",anchorEl:t,open:i,onClose:d,PaperProps:{elevation:0,sx:ax(e)},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:H(Gv,{mode:"single",selected:vo(a,!0),onSelect:c,footer:l})})]})}const Gs=(e,t)=>e?"{"+e+"="+JSON.stringify(t)+"}":"",ix=e=>{if((e==null?void 0:e.length)<1)return"";let t="{",n=e.length;for(let r=0;rGs("__name__",e),seriesCountByLabelName:({query:e})=>`{${e}!=""}`,seriesCountByFocusLabelValue:({query:e,focusLabel:t})=>Gs(t,e),seriesCountByLabelValuePair:({query:e})=>{let t;try{const o=localStorage.getItem("labelValuePairs");o?t=o:t=""}catch{t=""}let n="";if(t&&!t.includes(e))n=`${t} ${e}`,localStorage.setItem("labelValuePairs",n);else if(t&&t.includes(e)){let s=t.split(" ").filter(i=>i!==e).join(" ");n=s,localStorage.setItem("labelValuePairs",s)}else t===""&&(n=e,localStorage.setItem("labelValuePairs",n));let r=n.split(" ");return ix(r)},labelValueCountByLabelName:({query:e,match:t})=>t===""?`{${e}!=""}`:`${t.replace(/\}/gm,"")}, ${e}!=""}`};function lx(e){return e==null?void 0:e.sort((n,r)=>n.value-r.value)}function cx(e){return e==null?void 0:e.sort((n,r)=>r.value-n.value)}function ux(e){return e.sort((t,n)=>{const r=t.name.toUpperCase(),o=n.name.toUpperCase();return ro?1:0})}function dx(e){return e.sort((t,n)=>{const r=t.name.toUpperCase(),o=n.name.toUpperCase();return or?1:0})}function fx(e,t,n){return{name:{asc:()=>ux(e),desc:()=>dx(e)},value:{asc:()=>lx(e),desc:()=>cx(e)}}[t][n]()}const xo=(e,t)=>{const n=t.match?`&match[]=${encodeURIComponent(t.match)}`:"",r=t.focusLabel?`&focusLabel=${encodeURIComponent(t.focusLabel)}`:"";return`${e}/api/v1/status/tsdb?topN=${t.topN}&date=${t.date}${n}${r}`};function px(e,t){return`${btoa(e)}${t&&t!==""?":":""}${btoa(t)}`}const Ma={totalSeries:0,totalSeriesPrev:0,totalSeriesByAll:0,totalLabelValuePairs:0,seriesCountByMetricName:[],seriesCountByLabelName:[],seriesCountByFocusLabelValue:[],seriesCountByLabelValuePair:[],labelValueCountByLabelName:[]},hx=e=>{const t=fn(c=>c.dataSources);let n="";const{auth:r,url:o,headers:a}=t.find(c=>c.value===e);let s=a==null?void 0:a.reduce((c,u)=>Object.assign(c,{[u.header]:u.value}),{});const i=r.basicAuth.value;let l={u:"",p:""};if(i){let[c,u]=r.fields.basicAuth,d=u.value,f=c.value;l.u=c==null?void 0:c.value,l.p=u==null?void 0:u.value,n=px(f,d)}return{url:o,auth:n,user_pass:l,headers:s}},mx=e=>({seriesCountByMetricName:"Metric names with highest number of series",seriesCountByLabelName:" Labels with the highest number of series",seriesCountByFocusLabelValue:`Values for "${e}" label with the highest number of series`,seriesCountByLabelValuePair:"Label=value pairs with the highest number of series",labelValueCountByLabelName:"Labels with the highest number of unique values"}),gx={seriesCountByMetricName:"Metric Name",seriesCountByLabelName:"Label name",seriesCountByFocusLabelValue:"Label value",seriesCountByLabelValuePair:"Label=value pair",labelValueCountByLabelName:"Label name"},vx=(e,t)=>mx(t??"metric")[Object.keys(e)[0]],xx=e=>Object.keys(e)[0],bx=e=>gx[Object.keys(e)[0]],yx=e=>e[Object.keys(e)[0]],Cx=(e,t)=>({title:vx(e,t),sectionHeaderName:xx(e),sectionHeader:bx(e),rows:yx(e)}),wx=async(e,t,n,r,o,a)=>{const s={}.VITE_API_DELETE_URL||e;try{r(!0);const i=s+"/loki/api/v1/delete",{u:l,p:c}=a;await fetch(i,{method:"GET",headers:{...o,Authorization:`Basic ${btoa(l+":"+c)}`}}).then(u=>{(u&&(u==null?void 0:u.status)===204||(u==null?void 0:u.status)===200)&&console.log(u)})}catch(i){console.log(i),t(JSON.stringify(i))}finally{}},Sx=async(e,t,n,r,o,a,s,i,l,c)=>{const u={}.VITE_API_DELETE_URL||e;try{i(!0);const{u:d,p:f}=c,h=u+"/loki/api/v1/delete?query="+encodeURIComponent(t)+"&start="+r+"&end="+o;await fetch(h,{method:"POST",headers:{...l,Authorization:`Basic ${btoa(d+":"+f)}`}}).then(m=>{if(m&&(m==null?void 0:m.status)===500||(m==null?void 0:m.status)===400){a(m.statusText),i(!1);let v=m.text();br.dispatch(yr({message:v,type:"error"}))}(m&&(m==null?void 0:m.status)===204||(m==null?void 0:m.status)===200)&&(i(!1),a(""),br.dispatch(yr({message:`Deleted ${n} Fingerprints from ${t}`,type:"success"})))})}catch(d){a(JSON.stringify(d)),i(!1),s(f=>[...f,t]),br.dispatch(yr({message:`${n} Fingerprints from ${t} not deleted`,type:"error"}))}finally{i(!1)}},Xs=async(e,t,n,r,o,a,s)=>{const{match:i}=t,l={date:t.date,topN:0,match:"",focusLabel:""},c={...t,date:Nt(t.date).subtract(1,"day").format(bn)},u=xo(e,t),d=xo(e,c),f=xo(e,l),h=[u,d,f];if(e){n(""),r(!0);try{const{u:m,p:v}=s,b=await Promise.all(h.map(y=>fetch(y,{headers:{...a,Authorization:`Basic ${btoa(m+":"+v)}`}})));if(b[0].status===400||b[0].status===500){const y=await b[0].text();n(y),r(!1),br.dispatch(yr({message:y,type:"error"}));return}const[g,k,w]=await Promise.all(b.map(y=>y.json()));if(b[0].ok){const{data:y}=w,T={...k.data},P={...g.data};P.totalSeriesByAll=y==null?void 0:y.totalSeries,P.totalSeriesPrev=T==null?void 0:T.totalSeries;const E=i==null?void 0:i.replace(/[{}"]/g,"");P.seriesCountByLabelValuePair=P.seriesCountByLabelValuePair.filter(A=>A.name!==E),Object.keys(P).forEach(A=>{const I=A,D=P[I],N=T[I];Array.isArray(D)&&Array.isArray(N)&&D.forEach(j=>{var O;const F=(O=N.find($=>$.name===j.name))==null?void 0:O.value;j.diff=F?j.value-F:0,j.valuePrev=F||0})}),o(P),r(!1)}else n(g.error),o(Ma)}catch(m){r(!1),m instanceof Error&&n(`${m.name}: ${m.message}`)}}},Ta=(e=!1)=>{const{timeSeriesSelector:t,focusLabel:n,limitEntries:r,date:o,setDeletedQueries:a,setError:s,setIsLoading:i,setTsdbStatus:l,error:c}=Ot(),u=o||Nt().format(bn),d={match:t,focusLabel:n,topN:r,date:u},{url:f,headers:h,user_pass:m}=hx("logs"),v=async(k,w)=>{const y=to.tz.guess(!0),T=to.tz(u,y).add(1,"day"),P=to.tz(u,y).add(2,"day"),E=T.clone().utc().startOf("day").unix(),A=P.clone().utc().startOf("day").unix();await Sx(f,k,w,E,A,s,a,i,h,m)},b=async()=>{await wx(f,s,a,i,h,m)},g=async k=>{const w=o||Nt().format(bn);let y={match:t,focusLabel:n,topN:r,date:w};k!==void 0&&(y={...y,...k}),await Xs(f,y,s,i,l,h,m)};return p.useEffect(()=>{e&&Xs(f,d,s,i,l,h,m)},[f,t,n,r,o]),p.useEffect(()=>{c&&(l(Ma),i(!1))},[c]),{handleDelete:v,handleGetDeletedFingerprints:b,handleCardinalityRequest:g}},Mx=({setHistoryItem:e})=>{const{timeSeriesSelector:t,setTimeSeriesSelector:n,focusLabel:r,setFocusLabel:o,limitEntries:a,setLimitEntries:s,reset:i,date:l}=Ot(),{total:c}=Ot(),{handleCardinalityRequest:u}=Ta(),[d,f]=p.useState(t),[h,m]=p.useState(r),[v,b]=p.useState(a);return p.useEffect(()=>{f(t)},[t]),p.useEffect(()=>{m(r)},[r]),p.useEffect(()=>{b(a)},[a]),{onTimeSeriesChange:D=>{f(()=>D.target.value)},onKeyDownTimeSeries:D=>{D.keyCode===13&&(n(d),u({match:d}),e("timeSeriesSelector",d))},onFocusLabeChange:D=>{m(()=>D.target.value)},onKeyDownFocusLabel:D=>{D.keyCode===13&&(o(h),u({focusLabel:h}),e("focusLabel",h))},onLimitEntriesChange:D=>{b(()=>D.target.value)},onKeyDownLimitEntries:D=>{D.keyCode===13&&(s(Number(v)),u({topN:v}),e("limitEntries",Number(v)))},onQueryHistoryChange:D=>{D.preventDefault(),n(D.target.innerText),u({match:D.target.innerText})},onFocusHistoryChange:D=>{D.preventDefault(),m(D.target.innerText),u({focusLabel:D.target.innerText})},onLimitHistoryChange:D=>{D.preventDefault(),b(Number(D.target.innerText)),u({topN:Number(D.target.innerText)})},query:d,focus:h,limit:v,totalSeries:c,reset:i,date:l}};var ka={},Tx=dt;Object.defineProperty(ka,"__esModule",{value:!0});var ic=ka.default=void 0,kx=Tx(ut()),Px=R,$x=(0,kx.default)((0,Px.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}),"Restore");ic=ka.default=$x;const Ex=e=>Ke("font-size:12px;line-height:20px;cursor:pointer;user-select:none;font-weight:500;white-space:nowrap;display:flex;align-items:center;background:",e.neutral,";border:1px solid ",e.accentNeutral,";color:",e.contrast,";border-radius:3px;height:26px;margin:0px 1px;padding:3px 5px;span{margin-left:5px;}svg{font-size:1.15em;margin:0px 2px;}&:hover{color:orange;}.tooltip{background-color:red;display:flex;align-items:center;justify-items:center;}",""),Dx=({theme:e,id:t,...n})=>H(Vl,{id:t,elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"left"},PaperProps:{sx:{background:e.neutral,color:e.contrast}},transformOrigin:{vertical:"bottom",horizontal:"left"},...n}),Rx=({id:e,handleClose:t,menuItems:n})=>{const r=Lt(),[o,a]=p.useState(null),s=!!o,i=c=>{a(()=>c.currentTarget)},l=c=>{a(null),c.target.innerText&&t(c)};return ae(kr,{children:[H("button",{onClick:i,id:`custom-menu-button-${e}`,className:nt(Ex(r)),"aria-controls":s?`custom-menu${e}`:void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,children:H(ic,{fontSize:"small"})}),H(Dx,{id:`custom-menu-${e}`,anchorEl:o,open:s,onClose:l,theme:r,children:n==null?void 0:n.map((c,u)=>H(hm,{sx:{"&.MuiMenuItem-root":{fontSize:12}},onClick:l,children:c},`${c}-${u} r`))})]})},bo=({name:e,value:t,label:n,size:r,inputSize:o="",type:a,onChange:s,onHistoryChange:i,onKeyDown:l,history:c,hasHistory:u})=>ae("div",{className:`form-group ${r}`,children:[H("label",{children:n}),H("input",{name:e,className:o,type:a,value:t,onKeyDown:l,onChange:s}),u&&(c==null?void 0:c.length)>0&&H(Rx,{id:e,menuItems:c,handleClose:i})]}),Nx=e=>Ke("background:",e.shadow,";padding:8px;border-radius:3px;margin:4px;margin-bottom:8px;display:flex;flex-direction:column;.form-row{display:flex;flex:1;}.form-group{display:flex;align-items:center;label{color:",e.contrast,";font-size:12px;padding:7px;background:",e.background,";border:1px solid ",e.lightNeutral,";border-radius:3px;}input,select{background:",e.deep,";border-radius:3px;padding:5px 8px;border:1px solid ",e.lightNeutral,";color:",e.contrast,";transition:0.35s all;font-family:monospace;&:focus{outline:none;border:1px solid ",e.primary,";}&.l{flex:1;}&.s{max-width:50px;}}select{padding:4px 7px;}&.l{flex:1;}}.config-actions{display:flex;align-items:center;justify-content:space-between;padding:4px 0px;.c-totals{display:flex;align-items:center;}.buttons-group{display:flex;gap:8px;align-items:center;}.query-button{height:30px;transition:0.35s all;background:",e.primaryAccent,";color:",e.contrast,";padding:4px 6px;border-radius:3px;border:1px solid ",e.primary,";cursor:pointer;display:flex;align-items:center;&:hover{background:",e.primary,";}}}",""),Ox=he("MuiButton",["root","active","disabled","focusVisible"]),Lx=Ox;function lc(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function _x(e={}){const{disabled:t=!1,focusableWhenDisabled:n,href:r,rootRef:o,tabIndex:a,to:s,type:i}=e,l=p.useRef(),[c,u]=p.useState(!1),{isFocusVisibleRef:d,onFocus:f,onBlur:h,ref:m}=sl(),[v,b]=p.useState(!1);t&&!n&&v&&b(!1),p.useEffect(()=>{d.current=v},[v,d]);const[g,k]=p.useState(""),w=$=>S=>{var C;v&&S.preventDefault(),(C=$.onMouseLeave)==null||C.call($,S)},y=$=>S=>{var C;h(S),d.current===!1&&b(!1),(C=$.onBlur)==null||C.call($,S)},T=$=>S=>{var C;if(l.current||(l.current=S.currentTarget),f(S),d.current===!0){var M;b(!0),(M=$.onFocusVisible)==null||M.call($,S)}(C=$.onFocus)==null||C.call($,S)},P=()=>{const $=l.current;return g==="BUTTON"||g==="INPUT"&&["button","submit","reset"].includes($==null?void 0:$.type)||g==="A"&&($==null?void 0:$.href)},E=$=>S=>{if(!t){var C;(C=$.onClick)==null||C.call($,S)}},A=$=>S=>{var C;t||(u(!0),document.addEventListener("mouseup",()=>{u(!1)},{once:!0})),(C=$.onMouseDown)==null||C.call($,S)},I=$=>S=>{var C;if((C=$.onKeyDown)==null||C.call($,S),!S.defaultMuiPrevented&&(S.target===S.currentTarget&&!P()&&S.key===" "&&S.preventDefault(),S.target===S.currentTarget&&S.key===" "&&!t&&u(!0),S.target===S.currentTarget&&!P()&&S.key==="Enter"&&!t)){var M;(M=$.onClick)==null||M.call($,S),S.preventDefault()}},D=$=>S=>{var C;if(S.target===S.currentTarget&&u(!1),(C=$.onKeyUp)==null||C.call($,S),S.target===S.currentTarget&&!P()&&!t&&S.key===" "&&!S.defaultMuiPrevented){var M;(M=$.onClick)==null||M.call($,S)}},N=p.useCallback($=>{var S;k((S=$==null?void 0:$.tagName)!=null?S:"")},[]),j=Me(N,o,m,l),F={};return g==="BUTTON"?(F.type=i??"button",n?F["aria-disabled"]=t:F.disabled=t):g!==""&&(!r&&!s&&(F.role="button",F.tabIndex=a??0),t&&(F["aria-disabled"]=t,F.tabIndex=n?a??0:-1)),{getRootProps:($={})=>{const S=lc(e),C=x({},S,$);return delete C.onFocusVisible,x({type:i},C,F,{onBlur:y(C),onClick:E(C),onFocus:T(C),onKeyDown:I(C),onKeyUp:D(C),onMouseDown:A(C),onMouseLeave:w(C),ref:j})},focusVisible:v,setFocusVisible:b,active:c,rootRef:j}}function Ix(e){return typeof e=="string"}function Ax(e,t,n){return e===void 0||Ix(e)?t:x({},t,{ownerState:x({},t.ownerState,n)})}function qs(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const jx={disableDefaultClasses:!1},Fx=p.createContext(jx);function Vr(e){const{disableDefaultClasses:t}=p.useContext(Fx);return n=>t?"":e(n)}function Bx(e,t){return typeof e=="function"?e(t):e}function cc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Hx(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const h=Zs(o==null?void 0:o.className,r==null?void 0:r.className,a,n==null?void 0:n.className),m=x({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=x({},n,o,r);return h.length>0&&(v.className=h),Object.keys(m).length>0&&(v.style=m),{props:v,internalRef:void 0}}const s=lc(x({},o,r)),i=Js(r),l=Js(o),c=t(s),u=Zs(c==null?void 0:c.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),d=x({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=x({},c,n,l,i);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}const Wx=["elementType","externalSlotProps","ownerState"];function Yr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,a=re(e,Wx),s=Bx(r,o),{props:i,internalRef:l}=Hx(x({},a,{externalSlotProps:s})),c=Me(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Ax(n,x({},i,{ref:c}),o)}function zx(e){return xe("MuiTab",e)}const Ux=he("MuiTab",["root","selected","disabled"]),Vx=Ux;function Yx(e){return xe("MuiTabs",e)}he("MuiTabs",["root","horizontal","vertical"]);const Kr=p.createContext(null);Kr.displayName="CompoundComponentContext";function Kx(e){const t=Array.from(e.keys()).map(n=>{const r=e.get(n);return{key:n,subitem:r}});return t.sort((n,r)=>{const o=n.subitem.ref.current,a=r.subitem.ref.current;return o===null||a===null||o===a?0:o.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(n=>[n.key,n.subitem]))}function uc(){const[e,t]=p.useState(new Map),n=p.useRef(new Set),r=p.useCallback(function(l){n.current.delete(l),t(c=>{const u=new Map(c);return u.delete(l),u})},[]),o=p.useCallback(function(l,c){let u;return typeof l=="function"?u=l(n.current):u=l,n.current.add(u),t(d=>{const f=new Map(d);return f.set(u,c),f}),{id:u,deregister:()=>r(u)}},[r]),a=p.useMemo(()=>Kx(e),[e]);return{contextValue:{getItemIndex:p.useCallback(function(l){return Array.from(a.keys()).indexOf(l)},[a]),registerItem:o,totalSubitemCount:e.size},subitems:a}}function Gx(e){const{value:t,defaultValue:n,onChange:r,orientation:o,direction:a,selectionFollowsFocus:s}=e,[i,l]=pl({controlled:t,default:n,name:"Tabs",state:"value"}),c=p.useCallback((b,g)=>{l(g),r==null||r(b,g)},[r,l]),{subitems:u,contextValue:d}=uc(),f=p.useRef(()=>{}),h=p.useCallback(b=>{var g;return(g=u.get(b))==null?void 0:g.id},[u]),m=p.useCallback(b=>f.current(b),[]),v=p.useCallback(b=>{f.current=b},[]);return{contextValue:x({direction:a,getTabId:m,getTabPanelId:h,onSelected:c,orientation:o,registerTabIdLookup:v,selectionFollowsFocus:s,value:i},d)}}const dc=p.createContext(null);function Pa(){const e=p.useContext(dc);if(e==null)throw new Error("No TabsContext provided");return e}function Xx(e){const{value:t,children:n}=e,{direction:r,getItemIndex:o,onSelected:a,orientation:s,registerItem:i,registerTabIdLookup:l,selectionFollowsFocus:c,totalSubitemCount:u,value:d,getTabId:f,getTabPanelId:h}=t,m=p.useMemo(()=>({getItemIndex:o,registerItem:i,totalSubitemCount:u}),[i,o,u]),v=p.useMemo(()=>({direction:r,getTabId:f,getTabPanelId:h,onSelected:a,orientation:s,registerTabIdLookup:l,selectionFollowsFocus:c,value:d}),[r,f,h,a,s,l,c,d]);return R.jsx(Kr.Provider,{value:m,children:R.jsx(dc.Provider,{value:v,children:n})})}const qx=["children","value","defaultValue","orientation","direction","onChange","selectionFollowsFocus","slotProps","slots"],Zx=e=>{const{orientation:t}=e;return be({root:["root",t]},Vr(Yx))},Jx=p.forwardRef(function(t,n){var r;const{children:o,orientation:a="horizontal",direction:s="ltr",slotProps:i={},slots:l={}}=t,c=re(t,qx),{contextValue:u}=Gx(t),d=x({},t,{orientation:a,direction:s}),f=Zx(d),h=(r=l.root)!=null?r:"div",m=Yr({elementType:h,externalSlotProps:i.root,externalForwardedProps:c,additionalProps:{ref:n},ownerState:d,className:f.root});return R.jsx(h,x({},m,{children:R.jsx(Xx,{value:u,children:o})}))}),Qx=Jx;function fc(e,t){const n=p.useContext(Kr);if(n===null)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:r}=n,[o,a]=p.useState(typeof e=="function"?void 0:e);return tt(()=>{const{id:s,deregister:i}=r(e,t);return a(s),i},[r,t,e]),{id:o,index:o!==void 0?n.getItemIndex(o):-1,totalItemCount:n.totalSubitemCount}}const De={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",textNavigation:"list:textNavigation"};function e0(e,t,n,r,o,a){if(n.length===0||!r&&n.every((i,l)=>o(i,l)))return-1;let s=e;for(;;){if(!a&&t==="next"&&s===n.length||!a&&t==="previous"&&s===-1)return-1;if(r?!1:o(n[s],s))s+=t==="next"?1:-1,a&&(s=(s+n.length)%n.length);else return s}}function ze(e,t,n){var r;const{items:o,isItemDisabled:a,disableListWrap:s,disabledItemsFocusable:i,itemComparer:l,focusManagement:c}=n,u=c==="DOM"?0:-1,d=o.length-1,f=e==null?-1:o.findIndex(g=>l(g,e));let h,m,v=!s;switch(t){case"reset":if(u===-1)return null;h=0,m="next",v=!1;break;case"start":h=0,m="next",v=!1;break;case"end":h=d,m="previous",v=!1;break;default:{const g=f+t;g<0?!v&&f!==-1||Math.abs(t)>1?(h=0,m="next"):(h=d,m="previous"):g>d?!v||Math.abs(t)>1?(h=d,m="previous"):(h=0,m="next"):(h=g,m=t>=0?"next":"previous")}}const b=e0(h,m,o,i,a,v);return b===-1&&e!==null&&!a(e,f)?e:(r=o[b])!=null?r:null}function t0(e,t,n,r){return n==="none"?[]:n==="single"?r(t[0],e)?t:[e]:t.some(o=>r(o,e))?t.filter(o=>!r(o,e)):[...t,e]}function pc(e,t,n){const{itemComparer:r,isItemDisabled:o,selectionMode:a,items:s}=n,{selectedValues:i}=t,l=s.findIndex(u=>r(e,u));if(o(e,l))return t;const c=t0(e,i,a,r);return x({},t,{selectedValues:c,highlightedValue:e})}function n0(e,t,n){const r=t.highlightedValue,{orientation:o,pageSize:a}=n;switch(e){case"Home":return x({},t,{highlightedValue:ze(r,"start",n)});case"End":return x({},t,{highlightedValue:ze(r,"end",n)});case"PageUp":return x({},t,{highlightedValue:ze(r,-a,n)});case"PageDown":return x({},t,{highlightedValue:ze(r,a,n)});case"ArrowUp":if(o!=="vertical")break;return x({},t,{highlightedValue:ze(r,-1,n)});case"ArrowDown":if(o!=="vertical")break;return x({},t,{highlightedValue:ze(r,1,n)});case"ArrowLeft":{if(o==="vertical")break;return x({},t,{highlightedValue:ze(r,o==="horizontal-ltr"?-1:1,n)})}case"ArrowRight":{if(o==="vertical")break;return x({},t,{highlightedValue:ze(r,o==="horizontal-ltr"?1:-1,n)})}case"Enter":case" ":return t.highlightedValue===null?t:pc(t.highlightedValue,t,n)}return t}function r0(e,t){return t.focusManagement==="DOM"?e:x({},e,{highlightedValue:null})}function o0(e,t,n){var r;const o=(r=n(e))==null?void 0:r.trim().toLowerCase();return!o||o.length===0?!1:o.indexOf(t)===0}function a0(e,t,n){const{items:r,isItemDisabled:o,disabledItemsFocusable:a,getItemAsString:s}=n,i=t.length>1;let l=i?e.highlightedValue:ze(e.highlightedValue,1,n);for(let c=0;ca(d,n.highlightedValue)))!=null?l:null}else s==="DOM"&&t.length===0&&(i=ze(null,"reset",r));const u=((o=n.selectedValues)!=null?o:[]).filter(d=>e.some(f=>a(f,d)));return x({},n,{highlightedValue:i,selectedValues:u})}function i0(e,t){return x({},e,{highlightedValue:ze(null,"reset",t)})}function hc(e,t){const{type:n,context:r}=t;switch(n){case De.keyDown:return n0(t.key,e,r);case De.itemClick:return pc(t.item,e,r);case De.blur:return r0(e,r);case De.textNavigation:return a0(e,t.searchString,r);case De.itemsChange:return s0(t.items,t.previousItems,e,r);case De.resetHighlight:return i0(e,r);default:return e}}function l0(){const e=new Map;function t(r,o){let a=e.get(r);return a?a.add(o):(a=new Set([o]),e.set(r,a)),()=>{a.delete(o),a.size===0&&e.delete(r)}}function n(r,...o){const a=e.get(r);a&&a.forEach(s=>s(...o))}return{subscribe:t,publish:n}}function c0(){const e=p.useRef();return e.current||(e.current=l0()),e.current}const Qs="select:change-selection",ei="select:change-highlight";function u0(){const e=c0(),t=p.useCallback(a=>{e.publish(Qs,a)},[e]),n=p.useCallback(a=>{e.publish(ei,a)},[e]),r=p.useCallback(a=>e.subscribe(Qs,a),[e]),o=p.useCallback(a=>e.subscribe(ei,a),[e]);return{notifySelectionChanged:t,notifyHighlightChanged:n,registerSelectionChangeHandler:r,registerHighlightChangeHandler:o}}function d0(e,t){return e===t}const yo={},ti=()=>{};function Wo(e,t){const n=x({},e);return Object.keys(t).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n}function f0(e){const{nextState:t,initialState:n,stateComparers:r,onStateChange:o,controlledProps:a,lastActionRef:s}=e,i=p.useRef(n);p.useEffect(()=>{if(s.current===null)return;const l=Wo(i.current,a);Object.keys(t).forEach(c=>{var u;const d=(u=r[c])!=null?u:d0,f=t[c],h=l[c];if(h==null&&f!=null||h!=null&&f==null||h!=null&&f!=null&&!d(f,h)){var m,v;o==null||o((m=s.current.event)!=null?m:null,c,f,(v=s.current.type)!=null?v:"",t)}}),i.current=t,s.current=null},[i,t,s,o,r,a])}function p0(e){const t=p.useRef(null),{reducer:n,initialState:r,controlledProps:o=yo,stateComparers:a=yo,onStateChange:s=ti,actionContext:i}=e,l=p.useCallback((f,h)=>{t.current=h;const m=Wo(f,o);return n(m,h)},[o,n]),[c,u]=p.useReducer(l,r),d=p.useCallback(f=>{u(x({},f,{context:i}))},[i]);return f0({nextState:c,initialState:r,stateComparers:a??yo,onStateChange:s??ti,controlledProps:o,lastActionRef:t}),[Wo(c,o),d]}function ni(e,t){const n=p.useRef(e);return p.useEffect(()=>{n.current=e},t??[e]),n}const h0=500;function m0(e){const t=p.useRef({searchString:"",lastTime:null});return p.useCallback(n=>{if(n.key.length===1&&n.key!==" "){const r=t.current,o=n.key.toLowerCase(),a=performance.now();r.searchString.length>0&&r.lastTime&&a-r.lastTime>h0?r.searchString=o:(r.searchString.length!==1||o!==r.searchString)&&(r.searchString+=o),r.lastTime=a,e(r.searchString,n)}},[e])}const ri={},g0=()=>{},v0=(e,t)=>e===t,x0=()=>!1,b0=e=>typeof e=="string"?e:String(e),y0=()=>({highlightedValue:null,selectedValues:[]});function C0(e){const{controlledProps:t=ri,disabledItemsFocusable:n=!1,disableListWrap:r=!1,focusManagement:o="activeDescendant",getInitialState:a=y0,getItemDomElement:s,getItemId:i,isItemDisabled:l=x0,rootRef:c,onStateChange:u=g0,items:d,itemComparer:f=v0,getItemAsString:h=b0,onChange:m,onHighlightChange:v,onItemsChange:b,orientation:g="vertical",pageSize:k=5,reducerActionContext:w=ri,selectionMode:y="single",stateReducer:T}=e,P=p.useRef(null),E=Me(c,P),A=p.useCallback((_,V,Y)=>{if(v==null||v(_,V,Y),o==="DOM"&&V!=null&&(Y===De.itemClick||Y===De.keyDown||Y===De.textNavigation)){var Z;s==null||(Z=s(V))==null||Z.focus()}},[s,v,o]),I=p.useMemo(()=>({highlightedValue:f,selectedValues:(_,V)=>qs(_,V,f)}),[f]),D=p.useCallback((_,V,Y,Z,ve)=>{switch(u==null||u(_,V,Y,Z,ve),V){case"highlightedValue":A(_,Y,Z);break;case"selectedValues":m==null||m(_,Y,Z);break}},[A,m,u]),N=p.useMemo(()=>({disabledItemsFocusable:n,disableListWrap:r,focusManagement:o,isItemDisabled:l,itemComparer:f,items:d,getItemAsString:h,onHighlightChange:A,orientation:g,pageSize:k,selectionMode:y,stateComparers:I}),[n,r,o,l,f,d,h,A,g,k,y,I]),j=a(),F=T??hc,O=p.useMemo(()=>x({},w,N),[w,N]),[$,S]=p0({reducer:F,actionContext:O,initialState:j,controlledProps:t,stateComparers:I,onStateChange:D}),{highlightedValue:C,selectedValues:M}=$,L=m0((_,V)=>S({type:De.textNavigation,event:V,searchString:_})),W=ni(M),X=ni(C),J=p.useRef([]);p.useEffect(()=>{qs(J.current,d,f)||(S({type:De.itemsChange,event:null,items:d,previousItems:J.current}),J.current=d,b==null||b(d))},[d,f,S,b]);const{notifySelectionChanged:oe,notifyHighlightChanged:te,registerHighlightChangeHandler:ne,registerSelectionChangeHandler:le}=u0();p.useEffect(()=>{oe(M)},[M,oe]),p.useEffect(()=>{te(C)},[C,te]);const ge=_=>V=>{var Y;if((Y=_.onKeyDown)==null||Y.call(_,V),V.defaultMuiPrevented)return;const Z=["Home","End","PageUp","PageDown"];g==="vertical"?Z.push("ArrowUp","ArrowDown"):Z.push("ArrowLeft","ArrowRight"),o==="activeDescendant"&&Z.push(" ","Enter"),Z.includes(V.key)&&V.preventDefault(),S({type:De.keyDown,key:V.key,event:V}),L(V)},ue=_=>V=>{var Y,Z;(Y=_.onBlur)==null||Y.call(_,V),!V.defaultMuiPrevented&&((Z=P.current)!=null&&Z.contains(V.relatedTarget)||S({type:De.blur,event:V}))},z=(_={})=>x({},_,{"aria-activedescendant":o==="activeDescendant"&&C!=null?i(C):void 0,onBlur:ue(_),onKeyDown:ge(_),tabIndex:o==="DOM"?-1:0,ref:E}),K=p.useCallback(_=>{var V;const Y=d.findIndex(Ne=>f(Ne,_)),Z=((V=W.current)!=null?V:[]).some(Ne=>Ne!=null&&f(_,Ne)),ve=l(_,Y),me=X.current!=null&&f(_,X.current);return{disabled:ve,focusable:o==="DOM",highlighted:me,index:Y,selected:Z}},[d,l,f,W,X,o]),q=p.useMemo(()=>({dispatch:S,getItemState:K,registerHighlightChangeHandler:ne,registerSelectionChangeHandler:le}),[S,K,ne,le]);return p.useDebugValue({state:$}),{contextValue:q,dispatch:S,getRootProps:z,rootRef:E,state:$}}function w0(){const[,e]=p.useState({});return p.useCallback(()=>{e({})},[])}const mc=p.createContext(null);function S0(e){const{handlePointerOverEvents:t=!1,item:n,rootRef:r}=e,o=p.useRef(null),a=Me(o,r),s=p.useContext(mc);if(!s)throw new Error("useListItem must be used within a ListProvider");const{dispatch:i,getItemState:l,registerHighlightChangeHandler:c,registerSelectionChangeHandler:u}=s,{highlighted:d,selected:f,focusable:h}=l(n),m=w0();tt(()=>{function w(y){(y===n&&!d||y!==n&&d)&&m()}return c(w)}),tt(()=>{function w(y){f?y.includes(n)||m():y.includes(n)&&m()}return u(w)},[u,m,f,n]);const v=p.useCallback(w=>y=>{var T;(T=w.onClick)==null||T.call(w,y),!y.defaultPrevented&&i({type:De.itemClick,item:n,event:y})},[i,n]),b=p.useCallback(w=>y=>{var T;(T=w.onMouseOver)==null||T.call(w,y),!y.defaultPrevented&&i({type:De.itemHover,item:n,event:y})},[i,n]);let g;return h&&(g=d?0:-1),{getRootProps:(w={})=>x({},w,{onClick:v(w),onPointerOver:t?b(w):void 0,ref:a,tabIndex:g}),highlighted:d,rootRef:a,selected:f}}function M0(e){return e.size}function T0(e){const{value:t,rootRef:n,disabled:r=!1,id:o}=e,a=p.useRef(null),s=Jn(o),{value:i,selectionFollowsFocus:l,getTabPanelId:c}=Pa(),u=p.useMemo(()=>({disabled:r,ref:a,id:s}),[r,a,s]),{id:d,index:f,totalItemCount:h}=fc(t??M0,u),{getRootProps:m,rootRef:v,highlighted:b,selected:g}=S0({item:d}),{getRootProps:k,rootRef:w,active:y,focusVisible:T,setFocusVisible:P}=_x({disabled:r,focusableWhenDisabled:!l,type:"button"}),E=Me(a,n,v,w),A=d!==void 0?c(d):void 0;return{getRootProps:(D={})=>{const N=x({},D,m(D)),j=x({},N,k(N));return x({},j,{role:"tab","aria-controls":A,"aria-selected":g,id:s,ref:E})},active:y,focusVisible:T,highlighted:b,index:f,rootRef:E,selected:g||d===i,setFocusVisible:P,totalTabsCount:h}}const k0=["action","children","value","disabled","onChange","onClick","onFocus","slotProps","slots"],P0=e=>{const{selected:t,disabled:n}=e;return be({root:["root",t&&"selected",n&&"disabled"]},Vr(zx))},$0=p.forwardRef(function(t,n){var r;const{children:o,disabled:a=!1,slotProps:s={},slots:i={}}=t,l=re(t,k0),c=p.useRef(),u=Me(c,n),{active:d,highlighted:f,selected:h,getRootProps:m}=T0(x({},t,{rootRef:u})),v=x({},t,{active:d,disabled:a,highlighted:f,selected:h}),b=P0(v),g=(r=i.root)!=null?r:"button",k=Yr({elementType:g,getSlotProps:m,externalSlotProps:s.root,externalForwardedProps:l,additionalProps:{ref:n},ownerState:v,className:b.root});return R.jsx(g,x({},k,{children:o}))}),E0=$0;var $a={},D0=dt;Object.defineProperty($a,"__esModule",{value:!0});var gc=$a.default=void 0,R0=D0(ut()),oi=R,N0=(0,R0.default)([(0,oi.jsx)("path",{d:"M20 3H4c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h4v2h8v-2h4c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 14H4V5h16v12z"},"0"),(0,oi.jsx)("path",{d:"M6 8.25h8v1.5H6zm10.5 1.5H18v-1.5h-1.5V7H15v4h1.5zm-6.5 2.5h8v1.5h-8zM7.5 15H9v-4H7.5v1.25H6v1.5h1.5z"},"1")],"DisplaySettings");gc=$a.default=N0;var Ea={},O0=dt;Object.defineProperty(Ea,"__esModule",{value:!0});var vc=Ea.default=void 0,L0=O0(ut()),_0=R,I0=(0,L0.default)((0,_0.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}),"History");vc=Ea.default=I0;var Da={},A0=dt;Object.defineProperty(Da,"__esModule",{value:!0});var xc=Da.default=void 0,j0=A0(ut()),F0=R,B0=(0,j0.default)((0,F0.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");xc=Da.default=B0;function H0(e){return xe("MuiTabsList",e)}he("MuiTabsList",["root","horizontal","vertical"]);const bc={valueChange:"valueChange"};function W0(e,t){if(t.type===bc.valueChange)return x({},e,{highlightedValue:t.value});const n=hc(e,t),{context:{selectionFollowsFocus:r}}=t;if(t.type===De.itemsChange){if(n.selectedValues.length>0)return x({},n,{highlightedValue:n.selectedValues[0]});ze(null,"reset",t.context)}return r&&n.highlightedValue!=null?x({},n,{selectedValues:[n.highlightedValue]}):n}function z0(e){var t;const{rootRef:n}=e,{direction:r="ltr",onSelected:o,orientation:a="horizontal",value:s,registerTabIdLookup:i,selectionFollowsFocus:l}=Pa(),{subitems:c,contextValue:u}=uc(),d=p.useCallback(D=>{var N;return(N=c.get(D))==null?void 0:N.id},[c]);i(d);const f=p.useMemo(()=>Array.from(c.keys()),[c]),h=p.useCallback(D=>{var N,j;return D==null?null:(N=(j=c.get(D))==null?void 0:j.ref.current)!=null?N:null},[c]),m=r==="rtl";let v;a==="vertical"?v="vertical":v=m?"horizontal-rtl":"horizontal-ltr";const b=p.useCallback((D,N)=>{var j;o(D,(j=N[0])!=null?j:null)},[o]),g=p.useMemo(()=>s===void 0?{}:s!=null?{selectedValues:[s]}:{selectedValues:[]},[s]),k=p.useCallback(D=>{var N,j;return(N=(j=c.get(D))==null?void 0:j.disabled)!=null?N:!1},[c]),{contextValue:w,dispatch:y,getRootProps:T,state:{highlightedValue:P,selectedValues:E},rootRef:A}=C0({controlledProps:g,disabledItemsFocusable:!l,focusManagement:"DOM",getItemDomElement:h,isItemDisabled:k,items:f,rootRef:n,onChange:b,orientation:v,reducerActionContext:p.useMemo(()=>({selectionFollowsFocus:l||!1}),[l]),selectionMode:"single",stateReducer:W0});p.useEffect(()=>{s!==void 0&&s!=null&&y({type:bc.valueChange,value:s})},[y,s]);const I=(D={})=>x({},D,T(D),{"aria-orientation":a==="vertical"?"vertical":void 0,role:"tablist"});return{contextValue:x({},u,w),dispatch:y,getRootProps:I,highlightedValue:P,isRtl:m,orientation:a,rootRef:A,selectedValue:(t=E[0])!=null?t:null}}function U0(e){const{value:t,children:n}=e,{dispatch:r,getItemIndex:o,getItemState:a,registerHighlightChangeHandler:s,registerSelectionChangeHandler:i,registerItem:l,totalSubitemCount:c}=t,u=p.useMemo(()=>({dispatch:r,getItemState:a,getItemIndex:o,registerHighlightChangeHandler:s,registerSelectionChangeHandler:i}),[r,o,a,s,i]),d=p.useMemo(()=>({getItemIndex:o,registerItem:l,totalSubitemCount:c}),[l,o,c]);return R.jsx(Kr.Provider,{value:d,children:R.jsx(mc.Provider,{value:u,children:n})})}const V0=["children","slotProps","slots"],Y0=e=>{const{orientation:t}=e;return be({root:["root",t]},Vr(H0))},K0=p.forwardRef(function(t,n){var r;const{children:o,slotProps:a={},slots:s={}}=t,i=re(t,V0),{isRtl:l,orientation:c,getRootProps:u,contextValue:d}=z0({rootRef:n}),f=x({},t,{isRtl:l,orientation:c}),h=Y0(f),m=(r=s.root)!=null?r:"div",v=Yr({elementType:m,getSlotProps:u,externalSlotProps:a.root,externalForwardedProps:i,ownerState:f,className:h.root});return R.jsx(U0,{value:d,children:R.jsx(m,x({},v,{children:o}))})}),G0=K0;function X0(e){return xe("MuiTabPanel",e)}he("MuiTabPanel",["root","hidden"]);function q0(e){return e.size}function Z0(e){const{value:t,id:n,rootRef:r}=e,o=Pa();if(o===null)throw new Error("No TabContext provided");const{value:a,getTabId:s}=o,i=Jn(n),l=p.useRef(null),c=Me(l,r),u=p.useMemo(()=>({id:i,ref:l}),[i]),{id:d}=fc(t??q0,u),f=d!==a,h=d!==void 0?s(d):void 0;return{hidden:f,getRootProps:()=>({"aria-labelledby":h??void 0,hidden:f,id:i??void 0,ref:c}),rootRef:c}}const J0=["children","value","slotProps","slots"],Q0=e=>{const{hidden:t}=e;return be({root:["root",t&&"hidden"]},Vr(X0))},eb=p.forwardRef(function(t,n){var r;const{children:o,slotProps:a={},slots:s={}}=t,i=re(t,J0),{hidden:l,getRootProps:c}=Z0(t),u=x({},t,{hidden:l}),d=Q0(u),f=(r=s.root)!=null?r:"div",h=Yr({elementType:f,getSlotProps:c,externalSlotProps:a.root,externalForwardedProps:i,additionalProps:{role:"tabpanel",ref:n},ownerState:u,className:d.root});return R.jsx(f,x({},h,{children:!l&&o}))}),tb=eb;var Ra={},nb=dt;Object.defineProperty(Ra,"__esModule",{value:!0});var yc=Ra.default=void 0,rb=nb(ut()),ob=R,ab=(0,rb.default)((0,ob.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");yc=Ra.default=ab;var Na={},sb=dt;Object.defineProperty(Na,"__esModule",{value:!0});var Cc=Na.default=void 0,ib=sb(ut()),lb=R,cb=(0,ib.default)((0,lb.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link");Cc=Na.default=cb;const ub=ce(hl,{target:"efhpvve1"})("background:",e=>e.theme.neutral,";border:1px solid ",e=>e.theme.accentNeutral,";color:",e=>e.theme.contrast,";border-radius:3px;height:26px;margin:0px 1px;padding:",e=>e.size==="small"?"3px 5px":"",";span{margin-left:5px;}svg{margin:0;padding:0;}&:hover{color:orange;}"),KS=ce(e=>H($h,{anchor:"bottom",style:{maxHeight:"250px"},variant:"persistent",...e}),{target:"e1sfd2ep24"})(({theme:e})=>({"& .MuiPaper-root":{borderTop:`1px solid ${e.accentNeutral}`}}),""),GS=ce(Qx,{target:"e1sfd2ep23"})('height:"320px";background:',({theme:e})=>e.deep,";"),XS=ce(E0,{target:"e1sfd2ep22"})("color:",({theme:e})=>e.contrast,";background:",({theme:e})=>e.neutral,";border:1px solid ",e=>e.theme.accentNeutral,";cursor:pointer;font-size:13px;background-color:transparent;padding:6px 10px;border:none;border-radius:3px 3px 0px 0px;display:flex;justify-content:center;align-items:center;border-bottom:1px solid transparent;transition:0.2s all;&:hover{background-color:",({theme:e})=>e.lightNeutral,";}&:focus{color:",({theme:e})=>e.contrast,";background:",({theme:e})=>e.neutral,";border-radius:3px 3px 0px 0px;outline-offset:2px;}&.",Vx.selected,"{border-bottom:1px solid ",({theme:e})=>e.primary,";}&.",Lx.disabled,"{opacity:0.5;cursor:not-allowed;}@media screen and (max-width: 360px){span{display:none;}padding:5px 20px;}"),qS=ce(vc,{target:"e1sfd2ep21"})({name:"1hncz6a",styles:"height:16px;width:16px;margin-right:3px"}),ZS=ce(yc,{target:"e1sfd2ep20"})({name:"1hncz6a",styles:"height:16px;width:16px;margin-right:3px"}),JS=ce(gc,{target:"e1sfd2ep19"})({name:"1hncz6a",styles:"height:16px;width:16px;margin-right:3px"}),QS=ce(Cc,{target:"e1sfd2ep18"})({name:"1hncz6a",styles:"height:16px;width:16px;margin-right:3px"}),eM=ce(xc,{target:"e1sfd2ep17"})("height:21px;width:16px;padding:0px 3px;border-radius:3px 0px 0px 3px;background:",({theme:e})=>e.deep,";"),tM=ce("div",{target:"e1sfd2ep16"})("padding:0px 15px;font-size:13px;display:flex;align-items:center;color:",({theme:e})=>e.contrast,";justify-content:space-between;background:",({theme:e})=>e.shadow,";height:37px;"),nM=ce(tb,{target:"e1sfd2ep15"})("width:100%;background:",({theme:e})=>e.shadow,";"),rM=ce(G0,{target:"e1sfd2ep14"})("min-width:320px;background:",({theme:e})=>e.shadow,";border-bottom:4px solid ",({theme:e})=>e.bgNeutral,";display:flex;align-items:center;align-content:space-between;"),oM=ce("div",{target:"e1sfd2ep13"})("display:flex;align-items:center;justify-content:center;color:",({theme:e})=>e.contrast,";font-size:14px;flex:1;padding:20px;height:50%;"),aM=ce("div",{target:"e1sfd2ep12"})("height:250px;overflow-y:auto;color:",({theme:e})=>e.contrast,";background:",({theme:e})=>e.lightActiveBg,";&.starredCont{height:210px;}&::-webkit-scrollbar{width:5px;background:",({theme:e})=>e.neutral,";}&::-webkit-scrollbar-corner{background:transparent;}&::-webkit-scrollbar-thumb{border-radius:5px;background:",({theme:e})=>e.alphaPlusNeutral,";}"),or=ce(ub,{target:"e1sfd2ep11"})("padding:3px 6px;background:",({theme:e})=>e.neutral,";border:1px solid ",e=>e.theme.accentNeutral,";border-radius:3px;border:none;color:",({theme:e})=>e.contrast,";display:flex;align-items:center;justify-content:center;margin:0px 6px;cursor:pointer;min-height:20px;"),sM=ce("div",{target:"e1sfd2ep10"})("height:100px;width:240px;display:flex;flex-direction:column;justify-content:space-between;padding:20px;background:",({theme:e})=>e.neutral,";border:1px solid ",e=>e.theme.accentNeutral,";margin:10px;border-radius:3px;& div{font-size:15px;color:",({theme:e})=>e.accent,";line-height:1.5;}& small{font-size:12px;color:",({theme:e})=>e.contrast,";line-height:1.5;margin-bottom:10px;}"),iM=ce(or,{target:"e1sfd2ep9"})("background:",({theme:e})=>e.primary,";color:",({theme:e})=>e.maxContrast,";white-space:nowrap;.open-icon{display:none;}.open-text{display:flex;font-size:12px;}@media screen and (max-width: 1070px){.open-icon{display:flex;}.open-text{display:none;}}"),lM=ce(or,{target:"e1sfd2ep8"})("font-weight:bold;padding:10px 20px;background:",({theme:e})=>e.primary,";color:",({theme:e})=>e.maxContrast,";margin:0;width:100%;white-space:nowrap;"),cM=ce(or,{target:"e1sfd2ep7"})("background:none;color:",({theme:e})=>e.contrast,";position:absolute;right:0;"),db=ce(or,{target:"e1sfd2ep6"})("background:",({theme:e})=>e.neutral,";border:1px solid ",e=>e.theme.accentNeutral,";padding:8px 16px;"),fb=ce(or,{target:"e1sfd2ep5"})("background:",({theme:e})=>e.primary,";color:",({theme:e})=>e.maxContrast,";padding:8px 16px;"),uM=ce("input",{target:"e1sfd2ep4"})("color:",({theme:e})=>e.contrast,";background:",({theme:e})=>e.deep,";border:none;height:21px;margin:0px 10px 0px 0px;padding:0px;font-size:13px;border-radius:0px 3px 3px 0px;font-family:monospace;font-size:12px;&:focus{outline:none;color:",({theme:e})=>e.primary,";}"),dM=ce("span",{target:"e1sfd2ep3"})('flex:1;font-family:monospace;display:flex;align-items:center;font-size:"13px";color:',({theme:e})=>e.contrast,";white-space:nowrap;padding:4px 0px;overflow:hidden;text-overflow:ellipsis;"),fM=ce("div",{target:"e1sfd2ep2"})("display:flex;flex:1;justify-content:space-between;.open-button{display:none;}.inline-params{align-items:center;display:",e=>e.open?"none":"grid",";flex:1;grid-template-columns:1fr 0.25fr 0.25fr auto;margin-right:5px;}.open-button{display:flex;color:",({theme:e})=>e.maxContrast,";background:none;border:none;}.block-params{display:",e=>e.open?"flex":"none",";flex-direction:column;flex:1;p{display:flex;align-items:center;flex:1;line-height:1.5;font-size:12px;font-family:monospace;span{margin-left:3px;&.key{flex:1;}&.value{flex:3;}}}}@media screen and (max-width: 1070px){.inline-params{display:none;}}"),pM=ce("div",{target:"e1sfd2ep1"})("padding:5px 0px;padding-left:10px;border:1px solid ",({theme:e})=>e.bgNeutral,";margin:5px;border-radius:3px;font-size:13px;display:flex;justify-content:space-between;align-items:center;"),hM=ce("div",{target:"e1sfd2ep0"})({name:"oylbmz",styles:"@media screen and (max-width: 1370px){display:none;}"}),pb=e=>t=>{t({type:"SET_SETTINGS_DIALOG_OPEN",settingsDialogOpen:e})};var Oa={},hb=dt;Object.defineProperty(Oa,"__esModule",{value:!0});var wc=Oa.default=void 0,mb=hb(ut()),gb=R,vb=(0,mb.default)((0,gb.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");wc=Oa.default=vb;var La={},xb=dt;Object.defineProperty(La,"__esModule",{value:!0});var Sc=La.default=void 0,bb=xb(ut()),yb=R,Cb=(0,bb.default)((0,yb.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");Sc=La.default=Cb;const Co=ce("div",{target:"er3ypqd13"})({name:"v62lug",styles:"display:flex;flex-direction:column;margin-bottom:20px"}),wb=ce("div",{target:"er3ypqd9"})("display:flex;flex:1;flex-direction:column;background:",({theme:e})=>e.shadow,";"),Sb=ce("div",{target:"er3ypqd8"})({name:"t6jzno",styles:"margin:20px;display:flex;flex-direction:column;flex:1"}),pr=ce("label",{target:"er3ypqd5"})("font-size:12px;color:",({theme:e})=>e.contrast,";margin-left:10px;"),Mb=ce("div",{target:"er3ypqd2"})("display:flex;justify-content:space-between;align-items:center;margin:10px;h3{margin-left:10px;font-size:1em;color:",({theme:e})=>e.contrast,";}"),Tb=ce(hl,{target:"er3ypqd1"})("background:none;padding:0;color:",({theme:e})=>e.contrast,";"),kb=ce("textarea",{target:"er3ypqd0"})("display:flex;flex:1;margin:5px 0px;height:150px;width:250px;font-size:10px;padding:5px 8px;border:1px solid ",({theme:e})=>e.accentNeutral,";border-radius:3px;background:",({theme:e})=>e.deep,";color:",({theme:e})=>e.contrast,";");function Pb(e){return function(t){t({type:"SET_DEBUG_MODE",debugMode:e})}}const $b=e=>{var r,o;const n=/&(lt|gt|amp);/.test(e);return e===void 0?"":n?(o=(r=e==null?void 0:e.replaceAll(/</g,"<"))==null?void 0:r.replaceAll(/>/g,">"))==null?void 0:o.replaceAll(/&/g,"&"):e};function Eb(e){return String($b(e))}const Mc=Ke({name:"1l02985",styles:"background-color:transparent!important"});function mM({open:e}){const t=fl(),n=fn(k=>k.theme),r=fn(k=>k.autoTheme),o=fn(k=>k.debugMode),a=Lt(),[s,i]=p.useState(f(window.location.href)),[l,c]=p.useState(n),[u,d]=p.useState(r);p.useEffect(()=>{d(r)},[r,d]);function f(k){return k+"&isEmbed=true"}p.useEffect(()=>{i(f(window.location.href))},[window.location.href]),p.useEffect(()=>{c(n)},[n,c]);function h(){const k=l==="light"?"dark":"light";t(Gu(k)),c(k),localStorage.setItem("theme",JSON.stringify({theme:k,auto:u}))}const m=()=>{const k=!u;t(ed(k)),d(k),localStorage.setItem("theme",JSON.stringify({theme:n,auto:k}))};function v(){t(pb(!1))}function b(k){i(k.target.value)}function g(){t(Pb(!o)),localStorage.setItem("isDebug",JSON.stringify({isActive:!o}))}return H(Zu,{theme:a,children:H(Fl,{open:e,onClose:v,PaperProps:{classes:{root:Mc}},children:ae(wb,{children:[ae(Mb,{children:[H("h3",{children:"Settings"}),ae(Tb,{onClick:v,children:[" ",H(wc,{})," "]})]}),ae(Sb,{children:[ae(Co,{children:[ae(pr,{children:["Theme: ",n]}),H(oo,{size:"small",checked:l==="dark",onChange:h,disabled:u,inputProps:{"aria-label":"controlled"}}),ae(pr,{children:["Automatic theme detection"," ",H(ha,{title:"Theme determined by your system preferenes",children:H(Sc,{fontSize:"inherit"})})]}),H(oo,{size:"small",checked:u,onChange:m,inputProps:{"aria-label":"controlled"}})]}),ae(Co,{children:[H(pr,{children:"Set Debug Mode"}),H(oo,{size:"small",checked:o,onChange:g,inputProps:{"aria-label":"controlled"}})]}),ae(Co,{children:[H(pr,{children:"Embed View"}),H(kb,{rows:"8",value:Eb(s),onChange:b})]})]})]})})})}const Db=ce("div",{target:"e1n1tll40"})("background:",({theme:e})=>e.shadow,";#alert-dialog-title{color:",({theme:e})=>e.contrast,";span{color:",({theme:e})=>e.primary,";padding:2px 4px;border-radius:3px;font-family:monospace;}}#alert-dialog-description{color:",({theme:e})=>e.lightContrast,";font-weight:normal;em{color:",({theme:e})=>e.contrast,";font-variant:italic;}}");function Tc({clearFingerPrints:e,label:t,value:n,source:r,isLoading:o,isCustom:a=!1,query:s=""}){const[i,l]=p.useState(!1),c=Lt(),{focusLabel:u,timeSeriesSelector:d}=Ot(),f=()=>{l(!0)},h=()=>{l(!1)};async function m(){let v=s??"";a||(v=sc[r]({query:t,focusLabel:u,match:d})),await e(v),l(!1)}return H(Cl,{theme:c,children:ae("div",{children:[H(ha,{title:`Delete fingerprints for ${t!==""?t:s}`,children:H("div",{style:{display:"flex",flex:1,alignItems:"center",justifyContent:"center"},children:H(Xu,{onClick:f,style:{color:c.contrast,cursor:"pointer",fontSize:"18px"},fontSize:"small"})})}),H(Fl,{open:i,onClose:h,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",PaperProps:{classes:{root:Mc}},children:ae(Db,{children:[H(fh,{id:"alert-dialog-title",children:a?ae(kr,{children:["Are you sure you want to clear the"," ",H("span",{children:n})," fingerprints with query ",s,"?"]}):ae(kr,{children:["Are you sure you want to clear the"," ",H("span",{children:n})," fingerprints with label"," ",H("span",{children:t})," from ",H("span",{children:r}),"?"]})}),H(th,{children:ae(ih,{id:"alert-dialog-description",children:["Click ",H("em",{children:"Delete Fingerprints"})," to delete your fingerprints permanently"]})}),ae(Yp,{children:[H(db,{onClick:h,children:"Cancel"}),H(fb,{onClick:m,active:!o,autoFocus:!0,children:o?"Deleting...":"Delete Fingerprints"})]})]})})]})})}const Rb=({theme:e=Ju(),focusLabelItems:t,timeSeriesSelectorItems:n,limitEntriesItems:r,setHistoryItem:o})=>{const{onTimeSeriesChange:a,onKeyDownTimeSeries:s,onFocusLabeChange:i,onKeyDownFocusLabel:l,onLimitEntriesChange:c,onKeyDownLimitEntries:u,onQueryHistoryChange:d,onFocusHistoryChange:f,onLimitHistoryChange:h,query:m,focus:v,limit:b,totalSeries:g,reset:k,date:w}=Mx({setHistoryItem:o}),{handleCardinalityRequest:y,handleDelete:T}=Ta(!0),{setTimeSeriesSelector:P,setFocusLabel:E,setLimitEntries:A,isLoading:I}=Ot(),D=()=>{k(),localStorage.setItem("labelValuePairs",""),y({match:"",focusLabel:"",topN:b,date:w})};return ae("div",{className:nt(Nx(e)),children:[ae("div",{className:"form-row",children:[H(bo,{name:"timeSeriesSelector",value:m,label:"Time Series Selector",size:"l",inputSize:"l",type:"text",onChange:a,onKeyDown:s,onHistoryChange:d,history:n,hasHistory:n.length>0}),H(bo,{name:"focusLabel",value:v,label:"Focus Label",size:"m",inputSize:"",type:"text",onChange:i,onKeyDown:l,onHistoryChange:f,history:t,hasHistory:t.length>0}),H(bo,{name:"limitEntries",value:b,label:"Limit Entries",size:"s",inputSize:"s",type:"number",onChange:c,onKeyDown:u,onHistoryChange:h,history:r,hasHistory:r.length>0})]}),ae("div",{className:"config-actions",children:[ae("div",{className:"c-totals",children:[H(wr,{theme:e,value:g.amount,text:"total"}),H(wr,{theme:e,type:"prev",value:g.prev,text:"previous"}),H(wr,{theme:e,type:"diff",value:g.diff,trend:g.diff===0?"none":g.diff>0?"up":"down",text:"diff"})]}),ae("div",{className:"buttons-group",children:[m!==""&&H("button",{className:"query-button",children:H(Tc,{clearFingerPrints:N=>T(N,g.amount),isLoading:I,label:"",value:g.amount,source:"",isCustom:!0,query:m})}),H(sx,{}),H("button",{onClick:D,className:"query-button",children:"Reset"}),ae("button",{onClick:()=>{P(m),E(v),A(Number(b)),y({match:m,focusLabel:v,topN:b})},className:"query-button",children:[H(Yl,{fontSize:"small"}),"Execute Query"]})]})]})]})},Nb="SET_IS_CARDINALITY",ai=e=>t=>{t({type:Nb,isCardinality:e})},Ob=(e,t)=>{var b;const{focusLabel:n,timeSeriesSelector:r,setFocusLabel:o,setTimeSeriesSelector:a,setTotal:s,tsdbStatus:i,isLoading:l}=Ot(),[c,u]=p.useState({data:Ma,formattedSeries:[]}),d=(g,k)=>{const w=sc[g]({query:k,focusLabel:n,match:r});a(w),t("timeSeriesSelector",w),(g==="labelValueCountByLabelName"||g=="seriesCountByLabelName")&&(o(k),t("focusLabel",k)),g=="seriesCountByFocusLabelValue"&&o("")},f=(g,k)=>{d(k.source,k.name)},h=(g,k)=>g*100/k,m=(g,k,w)=>g.map(y=>({name:y.name||"",value:y.value||0,diff:y.diff||0,prev:y.valuePrev||0,share:h(y.value,k==null?void 0:k.totalSeries)||0,source:w,onFilter:f})),v=g=>g?Object.keys(g).filter(T=>Array.isArray(g[T])).map(T=>({[T]:m(g[T],g,T)})):[];return p.useEffect(()=>{i&&(s({amount:i.totalSeries,prev:i.totalSeriesPrev,diff:i.totalSeries-i.totalSeriesPrev}),u({data:i,formattedSeries:v(i)}))},[i]),{data:c,totalSeries:((b=c==null?void 0:c.data)==null?void 0:b.totalSeries)??0,formattedSeries:(c==null?void 0:c.formattedSeries)??[],isLoading:l}},Lb=ee(e=>H(ng,{...e,TabIndicatorProps:{children:H("span",{className:"MuiTabs-indicatorSpan"})}}))(({theme:e})=>({"& .MuiButtonBase-root-MuiTab-root":{maxHeight:"20px"},"& .MuiTabs-indicator":{display:"flex",justifyContent:"center",backgroundColor:"transparent"},"& .MuiTabs-indicatorSpan":{maxWidth:40,width:"100%",backgroundColor:e==null?void 0:e.primary}})),si=ee(e=>H(Dm,{disableRipple:!0,...e}))(({theme:e})=>({textTransform:"none",fontWeight:e.typography.fontWeightRegular,fontSize:"12px",padding:0,marginRight:"8px",color:e.lightContrast,"&.Mui-selected":{color:e.contrast},"&.Mui-focusVisible":{backgroundColor:"rgba(100, 95, 228, 0.32)"}})),_b=e=>Ke("background:",e.WidgetBg,";.MuiTabs-root{height:20px!important;min-height:20px;}.MuiButtonBase-root{min-height:0;}",""),Ib=({title:e,tabsValue:t,onTabChange:n,theme:r})=>ae("div",{className:"c-header",children:[H("div",{children:e}),H("div",{className:nt(_b(r)),children:ae(Lb,{value:t,onChange:n,children:[H(si,{label:"Table"}),H(si,{label:"Chart"})]})})]}),ii=e=>{const{neutral:t,primaryLight:n,deep:r,ultraDeep:o,primary:a,contrast:s,shadow:i}=e;return{neutral:t,primaryLight:n,deep:r,ultraDeep:o,primary:a,contrast:s,shadow:i}},Ab=e=>Ke("margin:4px;display:flex;flex-direction:column;padding:8px 4px;background:",e.shadow,";gap:4px;.c-header{display:flex;align-items:center;justify-content:space-between;font-size:14px;padding:8px 6px;border-bottom:1px solid ",e.neutral,";font-weight:bold;}.c-table{display:table;widht:100%;}",""),kc=e=>({seriesGroupContainer:nt(Ab(ii(e))),seriesGroupStyles:ii(e)}),Pc=e=>{const[t,n]=p.useState({col:"value",order:"desc"});return{sortedRows:p.useMemo(()=>{const{col:a,order:s}=t;return fx(e,a,s)},[e,t]),handleSort:a=>{n(s=>({col:a,order:s.order==="asc"?"desc":"asc"}))}}};function it(e){return function(){return e}}const jb=Math.PI,wo=2*jb;function $c(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Fb(e,t){return te?1:t>=e?0:NaN}function Bb(e){return e}function Hb(){var e=Bb,t=Fb,n=null,r=it(0),o=it(wo),a=it(0);function s(i){var l,c=(i=$c(i)).length,u,d,f=0,h=new Array(c),m=new Array(c),v=+r.apply(this,arguments),b=Math.min(wo,Math.max(-wo,o.apply(this,arguments)-v)),g,k=Math.min(Math.abs(b)/c,a.apply(this,arguments)),w=k*(b<0?-1:1),y;for(l=0;l0&&(f+=y);for(t!=null?h.sort(function(T,P){return t(m[T],m[P])}):n!=null&&h.sort(function(T,P){return n(i[T],i[P])}),l=0,d=f?(b-c*w)/f:0;l0?y*d:0)+w,m[u]={data:i[u],index:l,value:y,startAngle:v,endAngle:g,padAngle:k};return m}return s.value=function(i){return arguments.length?(e=typeof i=="function"?i:it(+i),s):e},s.sortValues=function(i){return arguments.length?(t=i,n=null,s):t},s.sort=function(i){return arguments.length?(n=i,t=null,s):n},s.startAngle=function(i){return arguments.length?(r=typeof i=="function"?i:it(+i),s):r},s.endAngle=function(i){return arguments.length?(o=typeof i=="function"?i:it(+i),s):o},s.padAngle=function(i){return arguments.length?(a=typeof i=="function"?i:it(+i),s):a},s}function yn(e,t){if((s=e.length)>1)for(var n=1,r,o,a=e[t[0]],s,i=a.length;n=0;)n[t]=t;return n}function Wb(e,t){return e[t]}function zb(e){const t=[];return t.key=e,t}function Ec(){var e=it([]),t=Cn,n=yn,r=Wb;function o(a){var s=Array.from(e.apply(this,arguments),zb),i,l=s.length,c=-1,u;for(const d of a)for(i=0,++c;i0){for(var n,r,o=0,a=e[0].length,s;o0)for(var n,r=0,o,a,s,i,l,c=e[t[0]].length;r0?(o[0]=s,o[1]=s+=a):a<0?(o[1]=i,o[0]=i+=a):(o[0]=0,o[1]=a)}function Yb(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,a=r.length;n0)||!((a=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,a,s;ra&&(a=o,n=t);return n}function Rc(e){var t=e.map(Nc);return Cn(e).sort(function(n,r){return t[n]-t[r]})}function Nc(e){for(var t=0,n=-1,r=e.length,o;++n{const{series:t,seriesOrder:n}=e,r=[],o={};return n.forEach(a=>{const{stack:s,stackOrder:i,stackOffset:l}=t[a];s===void 0?r.push({ids:[a],stackingOrder:So.none,stackingOffset:Mo.none}):o[s]===void 0?(o[s]=r.length,r.push({ids:[a],stackingOrder:So[i??"none"],stackingOffset:Mo[l??"diverging"]})):(r[o[s]].ids.push(a),i!==void 0&&(r[o[s]].stackingOrder=So[i]),l!==void 0&&(r[o[s]].stackingOffset=Mo[l]))}),r};function _a(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=x({valueFormatter:t},e[r])}),n}const Jb=(e,t)=>{const{seriesOrder:n,series:r}=e,o=Oc(e),a=t??[];n.forEach(i=>{const l=r[i].data;if(l!==void 0)l.forEach((c,u)=>{a.length<=u?a.push({[i]:c}):a[u][i]=c});else if(t===void 0)throw new Error([`MUI: bar series with id='${i}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` +`))});const s={};return o.forEach(i=>{const{ids:l,stackingOffset:c,stackingOrder:u}=i,d=Ec().keys(l.map(f=>{const h=r[f].dataKey;return r[f].data===void 0&&h!==void 0?h:f})).order(u).offset(c)(a);l.forEach((f,h)=>{const m=r[f].dataKey;s[f]=x({layout:"vertical"},r[f],{data:m?t.map(v=>v[m]):r[f].data,stackedData:d[h].map(([v,b])=>[v,b])})})}),{seriesOrder:n,stackingGroups:o,series:_a(s,i=>i.toLocaleString())}},Qb=Jb,ey=({series:e,seriesOrder:t})=>({series:_a(e,n=>`(${n.x}, ${n.y})`),seriesOrder:t}),ty=ey,ny=(e,t)=>{const{seriesOrder:n,series:r}=e,o=Oc(e),a=t??[];n.forEach(i=>{const l=r[i].data;if(l!==void 0)l.forEach((c,u)=>{a.length<=u?a.push({[i]:c}):a[u][i]=c});else if(t===void 0)throw new Error([`MUI: line series with id='${i}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` +`))});const s={};return o.forEach(i=>{const{ids:l,stackingOrder:c,stackingOffset:u}=i,d=Ec().keys(l.map(f=>{const h=r[f].dataKey;return r[f].data===void 0&&h!==void 0?h:f})).order(c).offset(u)(a);l.forEach((f,h)=>{const m=r[f].dataKey;s[f]=x({},r[f],{data:m?t.map(v=>v[m]):r[f].data,stackedData:d[h].map(([v,b])=>[v,b])})})}),{seriesOrder:n,stackingGroups:o,series:_a(s,i=>i.toLocaleString())}},ry=ny,oy=(e="none")=>{if(typeof e=="function")return e;switch(e){case"none":return null;case"desc":return(t,n)=>n-t;case"asc":return(t,n)=>t-n;default:return null}},ay=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach(o=>{var a,s,i,l;const c=Hb().startAngle(2*Math.PI*((a=n[o].startAngle)!=null?a:0)/360).endAngle(2*Math.PI*((s=n[o].endAngle)!=null?s:360)/360).padAngle(2*Math.PI*((i=n[o].paddingAngle)!=null?i:0)/360).sortValues(oy((l=n[o].sortingValues)!=null?l:"none"))(n[o].data.map(u=>u.value));r[o]=x({valueFormatter:u=>u.value.toLocaleString()},n[o],{data:n[o].data.map((u,d)=>{var f;return x({},u,{id:(f=u.id)!=null?f:`auto-generated-pie-id-${o}-${d}`},c[d])}).map(u=>{var d,f,h;return x({},u,{formattedValue:(d=(f=(h=n[o]).valueFormatter)==null?void 0:f.call(h,u))!=null?d:u.value.toLocaleString()})})})}),{seriesOrder:t,series:r}},sy=ay,iy=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];function ly(e,t,n=iy){return e.type==="pie"?x({},e,{data:e.data.map((r,o)=>x({color:n[o%n.length]},r))}):x({color:n[t%n.length]},e)}const cy=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],uy=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],dy=e=>e==="dark"?uy:cy,kn=p.createContext({}),To={bar:Qb,scatter:ty,line:ry,pie:sy},fy=(e,t,n)=>{const r={};e.forEach((a,s)=>{var i;const{id:l=`auto-generated-id-${s}`,type:c}=a;if(r[c]===void 0&&(r[c]={series:{},seriesOrder:[]}),((i=r[c])==null?void 0:i.series[l])!==void 0)throw new Error(`MUI: series' id "${l}" is not unique`);r[c].series[l]=x({id:l},ly(a,s,t)),r[c].seriesOrder.push(l)});const o={};return Object.keys(To).forEach(a=>{if(r[a]!==void 0){var s,i;o[a]=(s=(i=To[a])==null?void 0:i.call(To,r[a],n))!=null?s:r[a]}}),o};function py({series:e,dataset:t,colors:n=dy,children:r}){const o=Ge(),a=p.useMemo(()=>fy(e,typeof n=="function"?n(o.palette.mode):n,t),[e,n,o.palette.mode,t]);return R.jsx(kn.Provider,{value:a,children:r})}function Mr(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function hy(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Ia(e){let t,n,r;e.length!==2?(t=Mr,n=(i,l)=>Mr(e(i),l),r=(i,l)=>e(i)-l):(t=e===Mr||e===hy?e:my,n=e,r=e);function o(i,l,c=0,u=i.length){if(c>>1;n(i[d],l)<0?c=d+1:u=d}while(c>>1;n(i[d],l)<=0?c=d+1:u=d}while(cc&&r(i[d-1],l)>-r(i[d],l)?d-1:d}return{left:o,center:s,right:a}}function my(){return 0}function gy(e){return e===null?NaN:+e}const vy=Ia(Mr),xy=vy.right;Ia(gy).center;const by=xy;class li extends Map{constructor(t,n=wy){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(ci(this,t))}has(t){return super.has(ci(this,t))}set(t,n){return super.set(yy(this,t),n)}delete(t){return super.delete(Cy(this,t))}}function ci({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function yy({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Cy({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function wy(e){return e!==null&&typeof e=="object"?e.valueOf():e}const Sy=Math.sqrt(50),My=Math.sqrt(10),Ty=Math.sqrt(2);function Er(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),a=r/Math.pow(10,o),s=a>=Sy?10:a>=My?5:a>=Ty?2:1;let i,l,c;return o<0?(c=Math.pow(10,-o)/s,i=Math.round(e*c),l=Math.round(t*c),i/ct&&--l,c=-c):(c=Math.pow(10,o)*s,i=Math.round(e/c),l=Math.round(t/c),i*ct&&--l),l0))return[];if(e===t)return[e];const r=t=o))return[];const i=a-o+1,l=new Array(i);if(r)if(s<0)for(let c=0;c>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?hr(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?hr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=$y.exec(e))?new Le(t[1],t[2],t[3],1):(t=Ey.exec(e))?new Le(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Dy.exec(e))?hr(t[1],t[2],t[3],t[4]):(t=Ry.exec(e))?hr(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Ny.exec(e))?xi(t[1],t[2]/100,t[3]/100,1):(t=Oy.exec(e))?xi(t[1],t[2]/100,t[3]/100,t[4]):fi.hasOwnProperty(e)?mi(fi[e]):e==="transparent"?new Le(NaN,NaN,NaN,0):null}function mi(e){return new Le(e>>16&255,e>>8&255,e&255,1)}function hr(e,t,n,r){return r<=0&&(e=t=n=NaN),new Le(e,t,n,r)}function Iy(e){return e instanceof ar||(e=wn(e)),e?(e=e.rgb(),new Le(e.r,e.g,e.b,e.opacity)):new Le}function Yo(e,t,n,r){return arguments.length===1?Iy(e):new Le(e,t,n,r??1)}function Le(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Aa(Le,Yo,Ic(ar,{brighter(e){return e=e==null?Rr:Math.pow(Rr,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Gn:Math.pow(Gn,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Le(qt(this.r),qt(this.g),qt(this.b),Nr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:gi,formatHex:gi,formatHex8:Ay,formatRgb:vi,toString:vi}));function gi(){return`#${Yt(this.r)}${Yt(this.g)}${Yt(this.b)}`}function Ay(){return`#${Yt(this.r)}${Yt(this.g)}${Yt(this.b)}${Yt((isNaN(this.opacity)?1:this.opacity)*255)}`}function vi(){const e=Nr(this.opacity);return`${e===1?"rgb(":"rgba("}${qt(this.r)}, ${qt(this.g)}, ${qt(this.b)}${e===1?")":`, ${e})`}`}function Nr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function qt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Yt(e){return e=qt(e),(e<16?"0":"")+e.toString(16)}function xi(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new lt(e,t,n,r)}function Ac(e){if(e instanceof lt)return new lt(e.h,e.s,e.l,e.opacity);if(e instanceof ar||(e=wn(e)),!e)return new lt;if(e instanceof lt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,i=a-o,l=(a+o)/2;return i?(t===a?s=(n-r)/i+(n0&&l<1?0:s,new lt(s,i,l,e.opacity)}function jy(e,t,n,r){return arguments.length===1?Ac(e):new lt(e,t,n,r??1)}function lt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Aa(lt,jy,Ic(ar,{brighter(e){return e=e==null?Rr:Math.pow(Rr,e),new lt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Gn:Math.pow(Gn,e),new lt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Le(ko(e>=240?e-240:e+120,o,r),ko(e,o,r),ko(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new lt(bi(this.h),mr(this.s),mr(this.l),Nr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Nr(this.opacity);return`${e===1?"hsl(":"hsla("}${bi(this.h)}, ${mr(this.s)*100}%, ${mr(this.l)*100}%${e===1?")":`, ${e})`}`}}));function bi(e){return e=(e||0)%360,e<0?e+360:e}function mr(e){return Math.max(0,Math.min(1,e||0))}function ko(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const ja=e=>()=>e;function Fy(e,t){return function(n){return e+n*t}}function By(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Hy(e){return(e=+e)==1?jc:function(t,n){return n-t?By(t,n,e):ja(isNaN(t)?n:t)}}function jc(e,t){var n=t-e;return n?Fy(e,n):ja(isNaN(e)?t:e)}const yi=function e(t){var n=Hy(t);function r(o,a){var s=n((o=Yo(o)).r,(a=Yo(a)).r),i=n(o.g,a.g),l=n(o.b,a.b),c=jc(o.opacity,a.opacity);return function(u){return o.r=s(u),o.g=i(u),o.b=l(u),o.opacity=c(u),o+""}}return r.gamma=e,r}(1);function Wy(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(a){for(o=0;on&&(a=t.slice(n,a),i[s]?i[s]+=a:i[++s]=a),(r=r[0])===(o=o[0])?i[s]?i[s]+=o:i[++s]=o:(i[++s]=null,l.push({i:s,x:Or(r,o)})),n=Po.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function e1(e,t,n){var r=e[0],o=e[1],a=t[0],s=t[1];return o2?t1:e1,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?a:(l||(l=i(e.map(r),t,n)))(r(s(f)))}return d.invert=function(f){return s(o((c||(c=i(t,e.map(r),Or)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,Jy),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=qy,u()},d.clamp=function(f){return arguments.length?(s=f?!0:ft,u()):s!==ft},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(a=f,d):a},function(f,h){return r=f,o=h,u()}}function Fc(){return Ba()(ft,ft)}function n1(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Lr(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Sn(e){return e=Lr(Math.abs(e)),e?e[1]:NaN}function r1(e,t){return function(n,r){for(var o=n.length,a=[],s=0,i=e[0],l=0;o>0&&i>0&&(l+i+1>r&&(i=Math.max(1,r-l)),a.push(n.substring(o-=i,o+i)),!((l+=i+1)>r));)i=e[s=(s+1)%e.length];return a.reverse().join(t)}}function o1(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var a1=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function qn(e){if(!(t=a1.exec(e)))throw new Error("invalid format: "+e);var t;return new Ha({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}qn.prototype=Ha.prototype;function Ha(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Ha.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function s1(e){e:for(var t=e.length,n=1,r=-1,o;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var Bc;function i1(e,t){var n=Lr(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(Bc=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,s=r.length;return a===s?r:a>s?r+new Array(a-s+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Lr(e,Math.max(0,t+a-1))[0]}function wi(e,t){var n=Lr(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const Si={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:n1,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>wi(e*100,t),r:wi,s:i1,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Mi(e){return e}var Ti=Array.prototype.map,ki=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function l1(e){var t=e.grouping===void 0||e.thousands===void 0?Mi:r1(Ti.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Mi:o1(Ti.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",i=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=qn(d);var f=d.fill,h=d.align,m=d.sign,v=d.symbol,b=d.zero,g=d.width,k=d.comma,w=d.precision,y=d.trim,T=d.type;T==="n"?(k=!0,T="g"):Si[T]||(w===void 0&&(w=12),y=!0,T="g"),(b||f==="0"&&h==="=")&&(b=!0,f="0",h="=");var P=v==="$"?n:v==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",E=v==="$"?r:/[%p]/.test(T)?s:"",A=Si[T],I=/[defgprs%]/.test(T);w=w===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function D(N){var j=P,F=E,O,$,S;if(T==="c")F=A(N)+F,N="";else{N=+N;var C=N<0||1/N<0;if(N=isNaN(N)?l:A(Math.abs(N),w),y&&(N=s1(N)),C&&+N==0&&m!=="+"&&(C=!1),j=(C?m==="("?m:i:m==="-"||m==="("?"":m)+j,F=(T==="s"?ki[8+Bc/3]:"")+F+(C&&m==="("?")":""),I){for(O=-1,$=N.length;++O<$;)if(S=N.charCodeAt(O),48>S||S>57){F=(S===46?o+N.slice(O+1):N.slice(O))+F,N=N.slice(0,O);break}}}k&&!b&&(N=t(N,1/0));var M=j.length+N.length+F.length,L=M>1)+j+N+F+L.slice(M);break;default:N=L+j+N+F;break}return a(N)}return D.toString=function(){return d+""},D}function u(d,f){var h=c((d=qn(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(Sn(f)/3)))*3,v=Math.pow(10,-m),b=ki[8+m/3];return function(g){return h(v*g)+b}}return{format:c,formatPrefix:u}}var gr,Wa,Hc;c1({thousands:",",grouping:[3],currency:["$",""]});function c1(e){return gr=l1(e),Wa=gr.format,Hc=gr.formatPrefix,gr}function u1(e){return Math.max(0,-Sn(Math.abs(e)))}function d1(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Sn(t)/3)))*3-Sn(Math.abs(e)))}function f1(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Sn(t)-Sn(e))+1}function p1(e,t,n,r){var o=Vo(e,t,n),a;switch(r=qn(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=d1(o,s))&&(r.precision=a),Hc(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=f1(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=u1(o))&&(r.precision=a-(r.type==="%")*2);break}}return Wa(r)}function Wc(e){var t=e.domain;return e.ticks=function(n){var r=t();return zo(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return p1(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,a=r.length-1,s=r[o],i=r[a],l,c,u=10;for(i0;){if(c=Uo(s,i,n),c===l)return r[o]=s,r[a]=i,t(r);if(c>0)s=Math.floor(s/c)*c,i=Math.ceil(i/c)*c;else if(c<0)s=Math.ceil(s*c)/c,i=Math.floor(i*c)/c;else break;l=c}return e},e}function zc(){var e=Fc();return e.copy=function(){return Gr(e,zc())},Jt.apply(e,arguments),Wc(e)}function Uc(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],a=e[r],s;return aMath.pow(e,t)}function x1(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Ei(e){return(t,n)=>-e(-t,n)}function b1(e){const t=e(Pi,$i),n=t.domain;let r=10,o,a;function s(){return o=x1(r),a=v1(r),n()[0]<0?(o=Ei(o),a=Ei(a),e(h1,m1)):e(Pi,$i),t}return t.base=function(i){return arguments.length?(r=+i,s()):r},t.domain=function(i){return arguments.length?(n(i),s()):n()},t.ticks=i=>{const l=n();let c=l[0],u=l[l.length-1];const d=u0){for(;f<=h;++f)for(m=1;mu)break;g.push(v)}}else for(;f<=h;++f)for(m=r-1;m>=1;--m)if(v=f>0?m/a(-f):m*a(f),!(vu)break;g.push(v)}g.length*2{if(i==null&&(i=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=qn(l)).precision==null&&(l.trim=!0),l=Wa(l)),i===1/0)return l;const c=Math.max(1,r*i/t.ticks().length);return u=>{let d=u/a(Math.round(o(u)));return d*rn(Uc(n(),{floor:i=>a(Math.floor(o(i))),ceil:i=>a(Math.ceil(o(i)))})),t}function Vc(){const e=b1(Ba()).domain([1,10]);return e.copy=()=>Gr(e,Vc()).base(e.base()),Jt.apply(e,arguments),e}function Di(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function y1(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function C1(e){return e<0?-e*e:e*e}function w1(e){var t=e(ft,ft),n=1;function r(){return n===1?e(ft,ft):n===.5?e(y1,C1):e(Di(n),Di(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},Wc(t)}function za(){var e=w1(Ba());return e.copy=function(){return Gr(e,za()).exponent(e.exponent())},Jt.apply(e,arguments),e}function S1(){return za.apply(null,arguments).exponent(.5)}const $o=new Date,Eo=new Date;function Pe(e,t,n,r){function o(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return o.floor=a=>(e(a=new Date(+a)),a),o.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),o.round=a=>{const s=o(a),i=o.ceil(a);return a-s(t(a=new Date(+a),s==null?1:Math.floor(s)),a),o.range=(a,s,i)=>{const l=[];if(a=o.ceil(a),i=i==null?1:Math.floor(i),!(a0))return l;let c;do l.push(c=new Date(+a)),t(a,i),e(a);while(cPe(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,i)=>{if(s>=s)if(i<0)for(;++i<=0;)for(;t(s,-1),!a(s););else for(;--i>=0;)for(;t(s,1),!a(s););}),n&&(o.count=(a,s)=>($o.setTime(+a),Eo.setTime(+s),e($o),e(Eo),Math.floor(n($o,Eo))),o.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?o.filter(r?s=>r(s)%a===0:s=>o.count(0,s)%a===0):o)),o}const _r=Pe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);_r.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Pe(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):_r);_r.range;const wt=1e3,Qe=wt*60,St=Qe*60,Tt=St*24,Ua=Tt*7,Ri=Tt*30,Do=Tt*365,Kt=Pe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*wt)},(e,t)=>(t-e)/wt,e=>e.getUTCSeconds());Kt.range;const Va=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*wt)},(e,t)=>{e.setTime(+e+t*Qe)},(e,t)=>(t-e)/Qe,e=>e.getMinutes());Va.range;const Ya=Pe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Qe)},(e,t)=>(t-e)/Qe,e=>e.getUTCMinutes());Ya.range;const Ka=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*wt-e.getMinutes()*Qe)},(e,t)=>{e.setTime(+e+t*St)},(e,t)=>(t-e)/St,e=>e.getHours());Ka.range;const Ga=Pe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*St)},(e,t)=>(t-e)/St,e=>e.getUTCHours());Ga.range;const sr=Pe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Qe)/Tt,e=>e.getDate()-1);sr.range;const Xr=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Tt,e=>e.getUTCDate()-1);Xr.range;const Yc=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Tt,e=>Math.floor(e/Tt));Yc.range;function Qt(e){return Pe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Qe)/Ua)}const qr=Qt(0),Ir=Qt(1),M1=Qt(2),T1=Qt(3),Mn=Qt(4),k1=Qt(5),P1=Qt(6);qr.range;Ir.range;M1.range;T1.range;Mn.range;k1.range;P1.range;function en(e){return Pe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Ua)}const Zr=en(0),Ar=en(1),$1=en(2),E1=en(3),Tn=en(4),D1=en(5),R1=en(6);Zr.range;Ar.range;$1.range;E1.range;Tn.range;D1.range;R1.range;const Xa=Pe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Xa.range;const qa=Pe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());qa.range;const kt=Pe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());kt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});kt.range;const Pt=Pe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Pt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Pt.range;function Kc(e,t,n,r,o,a){const s=[[Kt,1,wt],[Kt,5,5*wt],[Kt,15,15*wt],[Kt,30,30*wt],[a,1,Qe],[a,5,5*Qe],[a,15,15*Qe],[a,30,30*Qe],[o,1,St],[o,3,3*St],[o,6,6*St],[o,12,12*St],[r,1,Tt],[r,2,2*Tt],[n,1,Ua],[t,1,Ri],[t,3,3*Ri],[e,1,Do]];function i(c,u,d){const f=ub).right(s,f);if(h===s.length)return e.every(Vo(c/Do,u/Do,d));if(h===0)return _r.every(Math.max(Vo(c,u,d),1));const[m,v]=s[f/s[h-1][2]53)return null;"w"in _||(_.w=1),"Z"in _?(Y=No(In(_.y,0,1)),Z=Y.getUTCDay(),Y=Z>4||Z===0?Ar.ceil(Y):Ar(Y),Y=Xr.offset(Y,(_.V-1)*7),_.y=Y.getUTCFullYear(),_.m=Y.getUTCMonth(),_.d=Y.getUTCDate()+(_.w+6)%7):(Y=Ro(In(_.y,0,1)),Z=Y.getDay(),Y=Z>4||Z===0?Ir.ceil(Y):Ir(Y),Y=sr.offset(Y,(_.V-1)*7),_.y=Y.getFullYear(),_.m=Y.getMonth(),_.d=Y.getDate()+(_.w+6)%7)}else("W"in _||"U"in _)&&("w"in _||(_.w="u"in _?_.u%7:"W"in _?1:0),Z="Z"in _?No(In(_.y,0,1)).getUTCDay():Ro(In(_.y,0,1)).getDay(),_.m=0,_.d="W"in _?(_.w+6)%7+_.W*7-(Z+5)%7:_.w+_.U*7-(Z+6)%7);return"Z"in _?(_.H+=_.Z/100|0,_.M+=_.Z%100,No(_)):Ro(_)}}function A(z,K,q,_){for(var V=0,Y=K.length,Z=q.length,ve,me;V=Z)return-1;if(ve=K.charCodeAt(V++),ve===37){if(ve=K.charAt(V++),me=T[ve in Ni?K.charAt(V++):ve],!me||(_=me(z,q,_))<0)return-1}else if(ve!=q.charCodeAt(_++))return-1}return _}function I(z,K,q){var _=c.exec(K.slice(q));return _?(z.p=u.get(_[0].toLowerCase()),q+_[0].length):-1}function D(z,K,q){var _=h.exec(K.slice(q));return _?(z.w=m.get(_[0].toLowerCase()),q+_[0].length):-1}function N(z,K,q){var _=d.exec(K.slice(q));return _?(z.w=f.get(_[0].toLowerCase()),q+_[0].length):-1}function j(z,K,q){var _=g.exec(K.slice(q));return _?(z.m=k.get(_[0].toLowerCase()),q+_[0].length):-1}function F(z,K,q){var _=v.exec(K.slice(q));return _?(z.m=b.get(_[0].toLowerCase()),q+_[0].length):-1}function O(z,K,q){return A(z,t,K,q)}function $(z,K,q){return A(z,n,K,q)}function S(z,K,q){return A(z,r,K,q)}function C(z){return s[z.getDay()]}function M(z){return a[z.getDay()]}function L(z){return l[z.getMonth()]}function W(z){return i[z.getMonth()]}function X(z){return o[+(z.getHours()>=12)]}function J(z){return 1+~~(z.getMonth()/3)}function oe(z){return s[z.getUTCDay()]}function te(z){return a[z.getUTCDay()]}function ne(z){return l[z.getUTCMonth()]}function le(z){return i[z.getUTCMonth()]}function ge(z){return o[+(z.getUTCHours()>=12)]}function ue(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var K=P(z+="",w);return K.toString=function(){return z},K},parse:function(z){var K=E(z+="",!1);return K.toString=function(){return z},K},utcFormat:function(z){var K=P(z+="",y);return K.toString=function(){return z},K},utcParse:function(z){var K=E(z+="",!0);return K.toString=function(){return z},K}}}var Ni={"-":"",_:" ",0:"0"},$e=/^\s*\d+/,A1=/^%/,j1=/[\\^$*+?|[\]().{}]/g;function pe(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a[t.toLowerCase(),n]))}function B1(e,t,n){var r=$e.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function H1(e,t,n){var r=$e.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function W1(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function z1(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function U1(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Oi(e,t,n){var r=$e.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Li(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function V1(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Y1(e,t,n){var r=$e.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function K1(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function _i(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function G1(e,t,n){var r=$e.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ii(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function X1(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function q1(e,t,n){var r=$e.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Z1(e,t,n){var r=$e.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function J1(e,t,n){var r=$e.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Q1(e,t,n){var r=A1.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function eC(e,t,n){var r=$e.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function tC(e,t,n){var r=$e.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Ai(e,t){return pe(e.getDate(),t,2)}function nC(e,t){return pe(e.getHours(),t,2)}function rC(e,t){return pe(e.getHours()%12||12,t,2)}function oC(e,t){return pe(1+sr.count(kt(e),e),t,3)}function Gc(e,t){return pe(e.getMilliseconds(),t,3)}function aC(e,t){return Gc(e,t)+"000"}function sC(e,t){return pe(e.getMonth()+1,t,2)}function iC(e,t){return pe(e.getMinutes(),t,2)}function lC(e,t){return pe(e.getSeconds(),t,2)}function cC(e){var t=e.getDay();return t===0?7:t}function uC(e,t){return pe(qr.count(kt(e)-1,e),t,2)}function Xc(e){var t=e.getDay();return t>=4||t===0?Mn(e):Mn.ceil(e)}function dC(e,t){return e=Xc(e),pe(Mn.count(kt(e),e)+(kt(e).getDay()===4),t,2)}function fC(e){return e.getDay()}function pC(e,t){return pe(Ir.count(kt(e)-1,e),t,2)}function hC(e,t){return pe(e.getFullYear()%100,t,2)}function mC(e,t){return e=Xc(e),pe(e.getFullYear()%100,t,2)}function gC(e,t){return pe(e.getFullYear()%1e4,t,4)}function vC(e,t){var n=e.getDay();return e=n>=4||n===0?Mn(e):Mn.ceil(e),pe(e.getFullYear()%1e4,t,4)}function xC(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pe(t/60|0,"0",2)+pe(t%60,"0",2)}function ji(e,t){return pe(e.getUTCDate(),t,2)}function bC(e,t){return pe(e.getUTCHours(),t,2)}function yC(e,t){return pe(e.getUTCHours()%12||12,t,2)}function CC(e,t){return pe(1+Xr.count(Pt(e),e),t,3)}function qc(e,t){return pe(e.getUTCMilliseconds(),t,3)}function wC(e,t){return qc(e,t)+"000"}function SC(e,t){return pe(e.getUTCMonth()+1,t,2)}function MC(e,t){return pe(e.getUTCMinutes(),t,2)}function TC(e,t){return pe(e.getUTCSeconds(),t,2)}function kC(e){var t=e.getUTCDay();return t===0?7:t}function PC(e,t){return pe(Zr.count(Pt(e)-1,e),t,2)}function Zc(e){var t=e.getUTCDay();return t>=4||t===0?Tn(e):Tn.ceil(e)}function $C(e,t){return e=Zc(e),pe(Tn.count(Pt(e),e)+(Pt(e).getUTCDay()===4),t,2)}function EC(e){return e.getUTCDay()}function DC(e,t){return pe(Ar.count(Pt(e)-1,e),t,2)}function RC(e,t){return pe(e.getUTCFullYear()%100,t,2)}function NC(e,t){return e=Zc(e),pe(e.getUTCFullYear()%100,t,2)}function OC(e,t){return pe(e.getUTCFullYear()%1e4,t,4)}function LC(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Tn(e):Tn.ceil(e),pe(e.getUTCFullYear()%1e4,t,4)}function _C(){return"+0000"}function Fi(){return"%"}function Bi(e){return+e}function Hi(e){return Math.floor(+e/1e3)}var ln,Jc,Qc;IC({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function IC(e){return ln=I1(e),Jc=ln.format,ln.parse,Qc=ln.utcFormat,ln.utcParse,ln}function AC(e){return new Date(e)}function jC(e){return e instanceof Date?+e:+new Date(+e)}function Za(e,t,n,r,o,a,s,i,l,c){var u=Fc(),d=u.invert,f=u.domain,h=c(".%L"),m=c(":%S"),v=c("%I:%M"),b=c("%I %p"),g=c("%a %d"),k=c("%b %d"),w=c("%B"),y=c("%Y");function T(P){return(l(P){var t,n;const{axis:r}=e,o=Math.min(...(t=r.data)!=null?t:[]),a=Math.max(...(n=r.data)!=null?n:[]);return[o,a]},tu=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||r&&t[o].yAxisKey===void 0).reduce((o,a)=>{const[s,i]=t[a].stackedData.reduce((l,c)=>[Math.min(...c,...l[0]===null?[]:[l[0]]),Math.max(...c,...l[1]===null?[]:[l[1]])],t[a].stackedData[0]);return[o[0]===null?s:Math.min(s,o[0]),o[1]===null?i:Math.max(i,o[1])]},[null,null])},HC=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?tu(e):eu(e),WC=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?eu(e):tu(e),jr=(e,t)=>e[0]===null||e[1]===null?t:t[0]===null||t[1]===null?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])],zC=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].xAxisKey===n.id||t[o].xAxisKey===void 0&&r).reduce((o,a)=>{const s=t[a].data.reduce((i,{x:l})=>jr(i,[l,l]),[null,null]);return jr(o,s)},[null,null])},UC=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||t[o].yAxisKey===void 0&&r).reduce((o,a)=>{const s=t[a].data.reduce((i,{y:l})=>jr(i,[l,l]),[null,null]);return jr(o,s)},[null,null])},VC=e=>{var t,n;const{axis:r}=e,o=Math.min(...(t=r.data)!=null?t:[]),a=Math.max(...(n=r.data)!=null?n:[]);return[o,a]},YC=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||r&&t[o].yAxisKey===void 0).reduce((o,a)=>{const i=t[a].area!==void 0?u=>u:u=>[u[1],u[1]],[l,c]=t[a].stackedData.reduce((u,d)=>{const[f,h]=i(d);return[Math.min(f,h,u[0]),Math.max(f,h,u[1])]},i(t[a].stackedData[0]));return o[0]===null||o[1]===null?[l,c]:[Math.min(l,o[0]),Math.max(c,o[1])]},[null,null])};function Fr(e){return e.scaleType==="band"}function Wi(e){return e.scaleType==="point"}function zi(e,t,n){switch(e){case"log":return Vc(t,n);case"pow":return za(t,n);case"sqrt":return S1(t,n);case"time":return FC(t,n);case"utc":return BC(t,n);default:return zc(t,n)}}const Xo="DEFAULT_X_AXIS_KEY",qo="DEFAULT_Y_AXIS_KEY",KC={top:100,bottom:50,left:50,right:50},GC=(e,t,n)=>{const r=x({},KC,n);return p.useMemo(()=>({left:r.left,top:r.top,width:Math.max(0,e-r.left-r.right),height:Math.max(0,t-r.top-r.bottom)}),[e,t,r.top,r.bottom,r.left,r.right])},XC=GC,tn=p.createContext({top:0,left:0,height:300,width:400}),Ja=p.createContext({current:null});function qC({width:e,height:t,margin:n,svgRef:r,children:o}){const a=XC(e,t,n);return R.jsx(Ja.Provider,{value:r,children:R.jsx(tn.Provider,{value:a,children:o})})}function Zn(e){return e.bandwidth!==void 0}function Ui(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:o,domain:a}=e,s=n===void 0?999:Math.floor(Math.abs(a[1]-a[0])/n),i=t===void 0?2:Math.ceil(Math.abs(a[1]-a[0])/t),l=r??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(s,Math.max(i,l))}function nu(e){const{scale:t,ticksNumber:n,valueFormatter:r}=e;return p.useMemo(()=>{if(Zn(t)){const o=t.domain();return t.bandwidth()>0?[...o.map(a=>{var s;return{formattedValue:(s=r==null?void 0:r(a))!=null?s:a,offset:t(a)-(t.step()-t.bandwidth())/2,labelOffset:t.step()/2}}),{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:o.map(a=>{var s;return{formattedValue:(s=r==null?void 0:r(a))!=null?s:a,offset:t(a),labelOffset:0}})}return t.ticks(n).map(o=>{var a;return{formattedValue:(a=r==null?void 0:r(o))!=null?a:t.tickFormat(n)(o),offset:t(o),labelOffset:0}})},[n,t,r])}const Vi=.2,ZC=.1,JC={bar:HC,scatter:zC,line:VC},QC={bar:WC,scatter:UC,line:YC},At=p.createContext({xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]});function ew({xAxis:e,yAxis:t,dataset:n,children:r}){const o=p.useContext(kn),a=p.useContext(tn),s=p.useMemo(()=>e==null?void 0:e.map(c=>{const u=c.dataKey;if(u===void 0||c.data!==void 0)return c;if(n===void 0)throw Error("MUI: x-axis uses `dataKey` but no `dataset` is provided.");return x({},c,{data:n.map(d=>d[u])})}),[e,n]),i=p.useMemo(()=>t==null?void 0:t.map(c=>{const u=c.dataKey;if(u===void 0||c.data!==void 0)return c;if(n===void 0)throw Error("MUI: y-axis uses `dataKey` but no `dataset` is provided.");return x({},c,{data:n.map(d=>d[u])})}),[t,n]),l=p.useMemo(()=>{var c,u;const d=(g,k,w,y,T)=>{var P,E;const A=y[k],I=(P=(E=o[k])==null?void 0:E.series)!=null?P:{},[D,N]=A({series:I,axis:w,isDefaultAxis:T}),[j,F]=g;return j===null||F===null?[D,N]:D===null||N===null?[j,F]:[Math.min(D,j),Math.max(N,F)]},f=(g,k,w)=>Object.keys(k).reduce((T,P)=>d(T,P,g,k,w),[null,null]),h=[...(c=s==null?void 0:s.map((g,k)=>x({id:`deaultized-x-axis-${k}`},g)))!=null?c:[],...s===void 0||s.findIndex(({id:g})=>g===Xo)===-1?[{id:Xo,scaleType:"linear"}]:[]],m={};h.forEach((g,k)=>{var w,y,T,P,E;const A=k===0,[I,D]=f(g,JC,A),N=[a.left,a.left+a.width];if(Fr(g)){var j,F;const W=(j=g.categoryGapRatio)!=null?j:Vi,X=(F=g.barGapRatio)!=null?F:ZC;m[g.id]=x({categoryGapRatio:W,barGapRatio:X},g,{scale:Dr(g.data,N).paddingInner(W).paddingOuter(W/2),ticksNumber:g.data.length})}if(Wi(g)&&(m[g.id]=x({},g,{scale:di(g.data,N),ticksNumber:g.data.length})),g.scaleType==="band"||g.scaleType==="point")return;const O=(w=g.scaleType)!=null?w:"linear",$=[(y=g.min)!=null?y:I,(T=g.max)!=null?T:D],S=Ui(x({},g,{range:N,domain:$})),C=zi(O,$,N).nice(S),M=C.domain(),L=[(P=g.min)!=null?P:M[0],(E=g.max)!=null?E:M[1]];m[g.id]=x({},g,{scaleType:O,scale:C.domain(L),ticksNumber:S})});const v=[...(u=i==null?void 0:i.map((g,k)=>x({id:`deaultized-y-axis-${k}`},g)))!=null?u:[],...i===void 0||i.findIndex(({id:g})=>g===qo)===-1?[{id:qo,scaleType:"linear"}]:[]],b={};return v.forEach((g,k)=>{var w,y,T,P,E;const A=k===0,[I,D]=f(g,QC,A),N=[a.top+a.height,a.top];if(Fr(g)){var j;const L=(j=g.categoryGapRatio)!=null?j:Vi;b[g.id]=x({categoryGapRatio:L,barGapRatio:0},g,{scale:Dr(g.data,[N[1],N[0]]).paddingInner(L).paddingOuter(L/2),ticksNumber:g.data.length})}if(Wi(g)&&(b[g.id]=x({},g,{scale:di(g.data,[N[1],N[0]]),ticksNumber:g.data.length})),g.scaleType==="band"||g.scaleType==="point")return;const F=(w=g.scaleType)!=null?w:"linear",O=[(y=g.min)!=null?y:I,(T=g.max)!=null?T:D],$=Ui(x({},g,{range:N,domain:O})),S=zi(F,O,N).nice($),C=S.domain(),M=[(P=g.min)!=null?P:C[0],(E=g.max)!=null?E:C[1]];b[g.id]=x({},g,{scaleType:F,scale:S.domain(M),ticksNumber:$})}),{xAxis:m,yAxis:b,xAxisIds:h.map(({id:g})=>g),yAxisIds:v.map(({id:g})=>g)}},[a.height,a.left,a.top,a.width,o,s,i]);return R.jsx(At.Provider,{value:l,children:r})}const Pn=p.createContext({item:null,axis:{x:null,y:null},dispatch:()=>null}),tw=(e,t)=>{switch(t.type){case"enterItem":return x({},e,{item:t.data});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:x({},e,{item:null});case"updateAxis":return x({},e,{axis:t.data});default:return e}};function nw({children:e}){const[t,n]=p.useReducer(tw,{item:null,axis:{x:null,y:null}}),r=p.useMemo(()=>x({},t,{dispatch:n}),[t]);return R.jsx(Pn.Provider,{value:r,children:e})}const Qa={highlighted:"none",faded:"none"},ru=p.createContext({item:null,scope:Qa,dispatch:()=>null}),rw=(e,t)=>{switch(t.type){case"enterItem":return x({},e,{item:t.item,scope:x({},Qa,t.scope)});case"leaveItem":return e.item===null||Object.keys(t.item).some(n=>t.item[n]!==e.item[n])?e:x({},e,{item:null});default:return e}};function ow({children:e}){const[t,n]=p.useReducer(rw,{item:null,scope:Qa}),r=p.useMemo(()=>x({},t,{dispatch:n}),[t]);return R.jsx(ru.Provider,{value:r,children:e})}const aw=e=>{const{dispatch:t}=p.useContext(Pn),{dispatch:n}=p.useContext(ru);return o=>({onMouseEnter:()=>{t({type:"enterItem",data:o}),n({type:"enterItem",item:o,scope:e})},onMouseLeave:()=>{t({type:"leaveItem",data:o}),n({type:"leaveItem",item:o})}})},sw=(e,t,n)=>{if(!(n!=null&&n.highlighted)||n.highlighted==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return r?n.highlighted==="series"?r:e.dataIndex!==void 0&&e.dataIndex===t.dataIndex:!1},iw=(e,t,n)=>{if(!(n!=null&&n.faded)||n.faded==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return n.faded==="series"?r&&e.dataIndex!==t.dataIndex:n.faded==="global"?r?e.dataIndex!==void 0&&e.dataIndex!==t.dataIndex:!0:!1},lw=["id","dataIndex","classes","color","highlightScope","slots","slotProps"];function cw(e){return xe("MuiBarElement",e)}he("MuiBarElement",["root"]);const uw=e=>{const{classes:t,id:n}=e,r={root:["root",`series-${n}`]};return be(r,cw,t)},dw=ee("rect",{name:"MuiBarElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",shapeRendering:"crispEdges",fill:e.isHighlighted?wn(e.color).brighter(.5).formatHex():e.color,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded&&.3||1}));function fw(e){var t;const{id:n,dataIndex:r,classes:o,color:a,highlightScope:s,slots:i,slotProps:l}=e,c=re(e,lw),u=aw(s),{item:d}=p.useContext(Pn),f=sw(d,{type:"bar",seriesId:n,dataIndex:r},s),h=!f&&iw(d,{type:"bar",seriesId:n,dataIndex:r},s),m={id:n,dataIndex:r,classes:o,color:a,isFaded:h,isHighlighted:f},v=uw(m),b=(t=i==null?void 0:i.bar)!=null?t:dw,g=Ve({elementType:b,externalSlotProps:l==null?void 0:l.bar,additionalProps:x({},c,u({type:"bar",seriesId:n,dataIndex:r}),{className:v.root}),ownerState:m});return R.jsx(b,x({},g))}function pw({bandWidth:e,numberOfGroups:t,gapRatio:n}){if(n===0)return{barWidth:e/t,offset:0};const r=e/(t+(t-1)*n),o=n*r;return{barWidth:r,offset:o}}function hw(e){const t=p.useContext(kn).bar,n=p.useContext(At);if(t===void 0)return null;const{series:r,stackingGroups:o}=t,{xAxis:a,yAxis:s,xAxisIds:i,yAxisIds:l}=n,c=i[0],u=l[0];return R.jsx(p.Fragment,{children:o.flatMap(({ids:d},f)=>d.flatMap(h=>{var m,v;const b=(m=r[h].xAxisKey)!=null?m:c,g=(v=r[h].yAxisKey)!=null?v:u,k=a[b],w=s[g],y=r[h].layout==="vertical";let T;if(y){if(!Fr(k))throw new Error(`Axis with id "${b}" shoud be of type "band" to display the bar series of id "${h}"`);if(a[b].data===void 0)throw new Error(`Axis with id "${b}" shoud have data property`);T=k}else{if(!Fr(w))throw new Error(`Axis with id "${g}" shoud be of type "band" to display the bar series of id "${h}"`);if(s[g].data===void 0)throw new Error(`Axis with id "${b}" shoud have data property`);T=w}const P=k.scale,E=w.scale,A=T.scale.bandwidth(),{barWidth:I,offset:D}=pw({bandWidth:A,numberOfGroups:o.length,gapRatio:T.barGapRatio}),N=f*(I+D),{stackedData:j,color:F}=r[h];return j.map((O,$)=>{var S,C;const M=Math.min(...O),L=Math.max(...O);return R.jsx(fw,x({id:h,dataIndex:$,x:y?P((S=a[b].data)==null?void 0:S[$])+N:P(M),y:y?E(L):E((C=s[g].data)==null?void 0:C[$])+N,height:y?Math.abs(E(M)-E(L)):I,width:y?I:Math.abs(P(M)-P(L)),color:F,highlightScope:r[h].highlightScope},e),`${h}-${$}`)})}))})}const mw=e=>{const t=p.useContext(Ja),{width:n,height:r,top:o,left:a}=p.useContext(tn),{xAxis:s,yAxis:i,xAxisIds:l,yAxisIds:c}=p.useContext(At),{dispatch:u}=p.useContext(Pn),d=l[0],f=c[0],h=p.useRef({x:-1,y:-1});p.useEffect(()=>{const m=t.current;if(m===null||e)return()=>{};const v=(k,w)=>{if(d===null)return null;const{scale:y,data:T}=k;if(!Zn(y)){const E=y.invert(w);if(T===void 0)return{value:E};const A=T==null?void 0:T.findIndex((I,D)=>I>E&&(D===0||Math.abs(E-I)<=Math.abs(E-T[D-1]))||I<=E&&(D===T.length-1||Math.abs(E-I)=0?T[A]:E,index:A}}const P=y.bandwidth()===0?Math.floor((w-Math.min(...y.range())+y.step()/2)/y.step()):Math.floor((w-Math.min(...y.range()))/y.step());return P<0||P>=T.length?null:{index:P,value:T[P]}},b=()=>{h.current={x:-1,y:-1},u({type:"updateAxis",data:{x:null,y:null}})},g=k=>{const w=t.current.createSVGPoint();w.x=k.clientX,w.y=k.clientY;const y=w.matrixTransform(t.current.getScreenCTM().inverse());h.current={x:y.x,y:y.y};const T=y.xa+n,P=y.yo+r;if(T||P){u({type:"updateAxis",data:{x:null,y:null}});return}const E=v(s[d],y.x),A=v(i[f],y.y);u({type:"updateAxis",data:{x:E,y:A}})};return m.addEventListener("mouseout",b),m.addEventListener("mousemove",g),()=>{m.removeEventListener("mouseout",b),m.removeEventListener("mousemove",g)}},[t,u,a,n,o,r,f,i,d,s,e])},gw=["children","width","height","viewBox","disableAxisListener","className","sx"],vw=ee("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({})),xw=p.forwardRef(function(t,n){const{children:r,width:o,height:a,viewBox:s,disableAxisListener:i=!1,sx:l}=t,c=re(t,gw),u=x({width:o,height:a,x:0,y:0},s);return mw(i),R.jsxs(vw,x({width:o,height:a,viewBox:`${u.x} ${u.y} ${u.width} ${u.height}`,ref:n,sx:[{"--ChartsLegend-itemWidth":"100px","--ChartsLegend-itemMarkSize":"20px","--ChartsLegend-rootSpacing":"5px","--ChartsLegend-labelSpacing":"5px","--ChartsLegend-rootOffsetY":"-20px"},...Array.isArray(l)?l:[l]]},c,{children:[R.jsx("title",{children:t.title}),R.jsx("desc",{children:t.desc}),r]}))}),bw=p.forwardRef(function(t,n){const{width:r,height:o,series:a,margin:s,xAxis:i,yAxis:l,colors:c,dataset:u,sx:d,title:f,desc:h,disableAxisListener:m,children:v}=t,b=p.useRef(null),g=Me(n,b);return R.jsx(qC,{width:r,height:o,margin:s,svgRef:b,children:R.jsx(py,{series:a,colors:c,dataset:u,children:R.jsx(ew,{xAxis:i,yAxis:l,dataset:u,children:R.jsx(nw,{children:R.jsx(ow,{children:R.jsx(xw,{width:r,height:o,ref:g,sx:d,title:f,desc:h,disableAxisListener:m,children:v})})})})})})}),yw=["width","height"],Cw=(e,t)=>{const n=p.useRef(null),r=p.useRef(!1),[o,a]=p.useState(0),[s,i]=p.useState(0),l=p.useCallback(()=>{const c=n==null?void 0:n.current;if(!c)return;const d=gt(c).getComputedStyle(c),f=Math.floor(parseFloat(d.height))||0,h=Math.floor(parseFloat(d.width))||0;a(h),i(f)},[]);return p.useEffect(()=>{r.current=!0},[]),tt(()=>{if(e!==void 0&&t!==void 0)return()=>{};l();const c=n.current;if(typeof ResizeObserver>"u")return()=>{};let u;const d=new ResizeObserver(()=>{u=requestAnimationFrame(()=>{l()})});return c&&d.observe(c),()=>{u&&window.cancelAnimationFrame(u),c&&d.unobserve(c)}},[l,t,e]),[n,e??o,t??s]},ww=ee("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>{var t,n;return{width:(t=e.width)!=null?t:"100%",height:(n=e.height)!=null?n:"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}}}),Sw=p.forwardRef(function(t,n){const{width:r,height:o}=t,a=re(t,yw),[s,i,l]=Cw(r,o);return R.jsx(ww,{ref:s,ownerState:{width:r,height:o},children:R.jsx(bw,x({},a,{width:i,height:l,ref:n}))})});function ou(e){return xe("MuiChartsAxis",e)}const He=he("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),au=ee("g",{name:"MuiChartsAxis",slot:"Root",overridesResolver:(e,t)=>t.root})({[`&.${He.directionY}`]:{[`.${He.tickLabel}`]:{dominantBaseline:"middle"},[`.${He.label}`]:{dominantBaseline:"auto",textAnchor:"middle"}},[`&.${He.left}`]:{[`.${He.tickLabel}`]:{dominantBaseline:"central",textAnchor:"end"}},[`&.${He.right}`]:{[`.${He.tickLabel}`]:{dominantBaseline:"central",textAnchor:"start"}},[`&.${He.bottom}`]:{[`.${He.tickLabel}, .${He.label}`]:{dominantBaseline:"hanging",textAnchor:"middle"}},[`&.${He.top}`]:{[`.${He.tickLabel}, .${He.label}`]:{dominantBaseline:"baseline",textAnchor:"middle"}}}),su=ee("line",{name:"MuiChartsAxis",slot:"Line",overridesResolver:(e,t)=>t.line})(({theme:e})=>({stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1})),iu=ee("line",{name:"MuiChartsAxis",slot:"Tick",overridesResolver:(e,t)=>t.tick})(({theme:e})=>({stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"})),lu=ee("text",{name:"MuiChartsAxis",slot:"TickLabel",overridesResolver:(e,t)=>t.tickLabel})(({theme:e})=>x({},e.typography.caption,{fill:(e.vars||e).palette.text.primary})),cu=ee("text",{name:"MuiChartsAxis",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>x({},e.typography.body1,{fill:(e.vars||e).palette.text.primary})),Mw=["scale","ticksNumber"],Tw=e=>{const{classes:t,position:n}=e;return be({root:["root","directionX",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},ou,t)},Yi={position:"bottom",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function Ki(e){var t,n,r,o;const a=Te({props:x({},Yi,e),name:"MuiChartsXAxis"}),s=p.useContext(At),i=a.axisId,{xAxis:{[i]:{scale:l,ticksNumber:c}}}=s,u=re(s.xAxis[i],Mw),d=x({},Yi,u,a),{position:f,disableLine:h,disableTicks:m,tickFontSize:v,label:b,labelFontSize:g,tickSize:k,valueFormatter:w,slots:y,slotProps:T}=d,P=Ge(),E=Tw(x({},d,{theme:P})),{left:A,top:I,width:D,height:N}=p.useContext(tn),j=m?4:k,F=nu({scale:l,ticksNumber:c,valueFormatter:w}),O=f==="bottom"?1:-1,$={x:A+D/2,y:O*(v+j+10)},S=(t=y==null?void 0:y.axisLine)!=null?t:su,C=(n=y==null?void 0:y.axisTick)!=null?n:iu,M=(r=y==null?void 0:y.axisTickLabel)!=null?r:lu,L=(o=y==null?void 0:y.axisLabel)!=null?o:cu;return R.jsxs(au,{transform:`translate(0, ${f==="bottom"?I+N:I})`,className:E.root,children:[!h&&R.jsx(S,x({x1:l.range()[0],x2:l.range()[1],className:E.line},T==null?void 0:T.axisLine)),F.map(({formattedValue:W,offset:X,labelOffset:J},oe)=>{const te=J??0,ne=O*(j+3);return R.jsxs("g",{transform:`translate(${X}, 0)`,className:E.tickContainer,children:[!m&&R.jsx(C,x({y2:O*j,className:E.tick},T==null?void 0:T.axisTick)),W!==void 0&&R.jsx(M,x({x:te,y:ne,"transform-origin":`${te}px ${ne}px`,sx:{fontSize:v},className:E.tickLabel},T==null?void 0:T.axisTickLabel,{children:W}))]},oe)}),b&&R.jsx(L,x({},$,{sx:{fontSize:g,transformOrigin:`${$.x}px ${$.y}px`},className:E.label},T==null?void 0:T.axisLabel,{children:b}))]})}const kw=["scale","ticksNumber"],Pw=e=>{const{classes:t,position:n}=e;return be({root:["root","directionY",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},ou,t)},Gi={position:"left",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function Xi(e){var t,n,r,o;const a=Te({props:x({},Gi,e),name:"MuiChartsYAxis"}),s=p.useContext(At),i=a.axisId,{yAxis:{[i]:{scale:l,ticksNumber:c}}}=s,u=re(s.yAxis[i],kw),d=x({},Gi,u,a),{position:f,disableLine:h,disableTicks:m,tickFontSize:v,label:b,labelFontSize:g,tickSize:k,valueFormatter:w,slots:y,slotProps:T}=d,P=Ge(),E=Pw(x({},d,{theme:P})),{left:A,top:I,width:D,height:N}=p.useContext(tn),j=m?4:k,F=nu({scale:l,ticksNumber:c,valueFormatter:w}),O=f==="right"?1:-1,$={x:O*(v+j+10),y:I+N/2},S=(t=y==null?void 0:y.axisLine)!=null?t:su,C=(n=y==null?void 0:y.axisTick)!=null?n:iu,M=(r=y==null?void 0:y.axisTickLabel)!=null?r:lu,L=(o=y==null?void 0:y.axisLabel)!=null?o:cu;return R.jsxs(au,{transform:`translate(${f==="right"?A+D:A}, 0)`,className:E.root,children:[!h&&R.jsx(S,x({y1:l.range()[0],y2:l.range()[1],className:E.line},T==null?void 0:T.axisLine)),F.map(({formattedValue:W,offset:X,labelOffset:J},oe)=>{const te=O*(j+2),ne=J;return R.jsxs("g",{transform:`translate(0, ${X})`,className:E.tickContainer,children:[!m&&R.jsx(C,x({x2:O*j,className:E.tick},T==null?void 0:T.axisTick)),W!==void 0&&R.jsx(M,x({x:te,y:ne,"transform-origin":`${te}px ${ne}px`,sx:{fontSize:v},className:E.tickLabel},T==null?void 0:T.axisTickLabel,{children:W.toLocaleString()}))]},oe)}),b&&R.jsx(L,x({},$,{sx:{fontSize:g,transform:`rotate(${O*90}deg)`,transformOrigin:`${$.x}px ${$.y}px`},className:E.label},T==null?void 0:T.axisLabel,{children:b}))]})}const vr=e=>e==null?null:typeof e=="object"?e.axisId:e,xr=(e,t,n)=>typeof e=="object"?x({},e,{slots:x({},t,e==null?void 0:e.slots),slotProps:x({},n,e==null?void 0:e.slotProps)}):{slots:t,slotProps:n};function $w(e){const{topAxis:t,leftAxis:n,rightAxis:r,bottomAxis:o,slots:a,slotProps:s}=e,{xAxis:i,xAxisIds:l,yAxis:c,yAxisIds:u}=p.useContext(At),d=vr(n===void 0?u[0]:n),f=vr(o===void 0?l[0]:o),h=vr(t),m=vr(r);if(h!==null&&!i[h])throw Error(`MUI: id used for top axis "${h}" is not defined`);if(d!==null&&!c[d])throw Error(`MUI: id used for left axis "${d}" is not defined`);if(m!==null&&!c[m])throw Error(`MUI: id used for right axis "${m}" is not defined`);if(f!==null&&!i[f])throw Error(`MUI: id used for bottom axis "${f}" is not defined`);const v=xr(t,a,s),b=xr(o,a,s),g=xr(n,a,s),k=xr(r,a,s);return R.jsxs(p.Fragment,{children:[h&&R.jsx(Ki,x({},v,{position:"top",axisId:h})),f&&R.jsx(Ki,x({},b,{position:"bottom",axisId:f})),d&&R.jsx(Xi,x({},g,{position:"left",axisId:d})),m&&R.jsx(Xi,x({},k,{position:"right",axisId:m}))]})}function Ew(e){if(e===null)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:t,y:n}=e;return{getBoundingClientRect:()=>({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t,toJSON:()=>JSON.stringify({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t})})}}function Dw(){const e=p.useContext(Ja),[t,n]=p.useState(null);return p.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=()=>{n(null)},a=s=>{n({x:s.clientX,y:s.clientY})};return r.addEventListener("mouseout",o),r.addEventListener("mousemove",a),()=>{r.removeEventListener("mouseout",o),r.removeEventListener("mousemove",a)}},[e]),t}function Rw(e,t){if(e==="item")return t!==null;const n=t.x!==null,r=t.y!==null;return n||r}function Nw(e){return xe("MuiChartsTooltip",e)}const qi=he("MuiChartsTooltip",["root","markCell","labelCell","valueCell"]),uu=ee("div",{name:"MuiChartsTooltip",slot:"Container"})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),border:`1px solid ${(e.vars||e).palette.divider}`,borderRadius:e.shape.borderRadius})),du=ee("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),Zo=ee("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(1)},"tr:last-of-type& td":{paddingBottom:e.spacing(1)}})),Gt=ee("td",{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${qi.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${qi.valueCell}`]:{paddingLeft:e.spacing(4),color:(e.vars||e).palette.text.primary},"td:first-of-type&":{paddingLeft:e.spacing(2)},"td:last-of-type&":{paddingRight:e.spacing(2)}})),fu=ee(ld,{name:"MuiChartsTooltip",slot:"Mark"})(({theme:e,ownerState:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",backgroundColor:t.color,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function Ow(e){const{series:t,itemData:n,sx:r,classes:o}=e;if(n.dataIndex===void 0)return null;const{displayedLabel:a,color:s}=t.type==="pie"?{color:t.data[n.dataIndex].color,displayedLabel:t.data[n.dataIndex].label}:{color:t.color,displayedLabel:t.label},i=t.valueFormatter(t.data[n.dataIndex]);return R.jsx(uu,{sx:r,className:o.root,children:R.jsx(du,{children:R.jsx("tbody",{children:R.jsxs(Zo,{children:[R.jsx(Gt,{className:o.markCell,children:R.jsx(fu,{ownerState:{color:s}})}),R.jsx(Gt,{className:o.labelCell,children:a}),R.jsx(Gt,{className:o.valueCell,children:i})]})})})})}function Lw(e){const{content:t,itemData:n,sx:r,classes:o}=e,a=p.useContext(kn)[n.type].series[n.seriesId],s=t??Ow;return R.jsx(s,{itemData:n,series:a,sx:r,classes:o})}function _w(e){var t;const{series:n,axis:r,dataIndex:o,axisValue:a,sx:s,classes:i}=e;if(o==null)return null;const l=(t=r.valueFormatter)!=null?t:c=>c.toLocaleString();return R.jsx(uu,{sx:s,className:i.root,children:R.jsxs(du,{children:[a!=null&&!r.hideTooltip&&R.jsx("thead",{children:R.jsx(Zo,{children:R.jsx(Gt,{colSpan:3,children:R.jsx(Hn,{children:l(a)})})})}),R.jsx("tbody",{children:n.map(({color:c,id:u,label:d,valueFormatter:f,data:h})=>R.jsxs(Zo,{children:[R.jsx(Gt,{className:i.markCell,children:R.jsx(fu,{ownerState:{color:c},boxShadow:1})}),R.jsx(Gt,{className:i.labelCell,children:d?R.jsx(Hn,{children:d}):null}),R.jsx(Gt,{className:i.valueCell,children:R.jsx(Hn,{children:f(h[o])})})]},u))})]})})}function Iw(e){const{content:t,axisData:n,sx:r,classes:o}=e,a=(n.x&&n.x.index)!==void 0,s=a?n.x&&n.x.index:n.y&&n.y.index,i=a?n.x&&n.x.value:n.y&&n.y.value,{xAxisIds:l,xAxis:c,yAxisIds:u,yAxis:d}=p.useContext(At),f=p.useContext(kn),h=a?l[0]:u[0],m=p.useMemo(()=>{const g=[];return Object.keys(f).filter(k=>["bar","line","scatter"].includes(k)).forEach(k=>{f[k].seriesOrder.forEach(w=>{const y=f[k].series[w],T=a?y.xAxisKey:y.yAxisKey;(T===void 0||T===h)&&g.push(f[k].series[w])})}),g},[h,a,f]),v=p.useMemo(()=>a?c[h]:d[h],[h,a,c,d]),b=t??_w;return R.jsx(b,{axisData:n,series:m,axis:v,dataIndex:s,axisValue:i,sx:r,classes:o})}const Aw=e=>{const{classes:t}=e;return be({root:["root"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},Nw,t)};function jw(e){const{trigger:t="axis",itemContent:n,axisContent:r}=e,o=Dw(),{item:a,axis:s}=p.useContext(Pn),i=t==="item"?a:s,l=Rw(t,i),c=o!==null&&l,u=Aw({classes:e.classes});return t==="none"?null:R.jsx(lp,{children:c&&R.jsx(Ll,{open:c,placement:"right-start",anchorEl:Ew(o),style:{pointerEvents:"none"},children:t==="item"?R.jsx(Lw,{itemData:i,content:n,sx:{mx:2},classes:u}):R.jsx(Iw,{axisData:i,content:r,sx:{mx:2},classes:u})})})}const Fw=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},Bw=Fw,Hw=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},Ww=Hw,zw=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},Uw=zw,Vw=e=>{const{seriesOrder:t,series:n}=e;return t.flatMap(r=>n[r].data.map(o=>({color:o.color,label:o.label,id:o.id})).filter(o=>o.label!==void 0))},Yw=Vw,Kw={bar:Bw,scatter:Ww,line:Uw,pie:Yw};function Gw(e){return Object.keys(e).flatMap(t=>Kw[t](e[t]))}function Xw(e){return xe("MuiChartsLegend",e)}he("MuiChartsLegend",["root","series","mark","label","column","row"]);const qw=e=>{const{classes:t,direction:n}=e;return be({root:["root",n],mark:["mark"],label:["label"],series:["series"]},Xw,t)};function Zw({position:e,drawingArea:t}){let n;switch(e.horizontal){case"left":n=`calc(var(--ChartsLegend-rootOffsetX, 0px) + ${t.left}px - var(--ChartsLegend-rootWidth))`;break;case"middle":n=`calc(var(--ChartsLegend-rootOffsetX, 0px) + ${t.left+t.width/2}px - 0.5 * var(--ChartsLegend-rootWidth))`;break;default:n=`calc(var(--ChartsLegend-rootOffsetX, 0px) + ${t.left+t.width}px)`;break}let r;switch(e.vertical){case"top":r=`calc(var(--ChartsLegend-rootOffsetY, 0px) + ${t.top}px - var(--ChartsLegend-rootHeight))`;break;case"middle":r=`calc(var(--ChartsLegend-rootOffsetY, 0px) + ${t.top+t.height/2}px - 0.5 * var(--ChartsLegend-rootHeight))`;break;default:r=`calc(var(--ChartsLegend-rootOffsetY, 0px) + ${t.top+t.height}px)`;break}return{transform:`translate(${n}, ${r})`}}const Jw=ee("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>{const{direction:t,drawingArea:n,offsetX:r,offsetY:o,seriesNumber:a,position:s}=e;return x({"--ChartsLegend-rootOffsetX":typeof r=="number"?`${r}px`:void 0,"--ChartsLegend-rootOffsetY":typeof o=="number"?`${o}px`:void 0,"--ChartsLegend-rootWidth":t==="row"?`calc(var(--ChartsLegend-itemWidth) * ${a} + var(--ChartsLegend-rootSpacing) * ${a-1} )`:"var(--ChartsLegend-itemWidth)","--ChartsLegend-rootHeight":t==="row"?"var(--ChartsLegend-itemMarkSize)":`calc(var(--ChartsLegend-itemMarkSize) * ${a} + var(--ChartsLegend-rootSpacing) * ${a-1} )`},Zw({position:s,drawingArea:n,offsetX:r,offsetY:o}))}),Qw=ee("g",{name:"MuiChartsLegend",slot:"ChartsSeriesLegendGroup",overridesResolver:(e,t)=>t.series})(({ownerState:e})=>{const{direction:t,seriesIndex:n}=e;return t==="row"?{transform:`translate(calc(${n} * (var(--ChartsLegend-itemWidth) + var(--ChartsLegend-rootSpacing))), 0)`}:{transform:`translate(0, calc(${n} * (var(--ChartsLegend-itemMarkSize) + var(--ChartsLegend-rootSpacing))))`}}),eS=ee("rect",{name:"MuiChartsLegend",slot:"Mark",overridesResolver:(e,t)=>t.mark})(({ownerState:e})=>({x:0,y:0,width:"var(--ChartsLegend-itemMarkSize)",height:"var(--ChartsLegend-itemMarkSize)",fill:e.color})),tS=ee("text",{name:"MuiChartsLegend",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>x({},e.typography.body1,{color:"inherit",transform:`translate( calc(var(--ChartsLegend-itemMarkSize) + var(--ChartsLegend-labelSpacing)), calc(0.5 * var(--ChartsLegend-itemMarkSize)) - )`,fill:(e.vars||e).palette.text.primary,dominantBaseline:"central"})),nS={position:{horizontal:"middle",vertical:"top"},direction:"row",markSize:20,itemWidth:100,spacing:2};function rS(e){const{hidden:t,position:n,direction:r,offset:o,series:a,seriesToDisplay:s,drawingArea:i,classes:l}=e;return t?null:R.jsx(Jw,{ownerState:{direction:r,offsetX:o==null?void 0:o.x,offsetY:o==null?void 0:o.y,seriesNumber:s.length,position:n,drawingArea:i},className:l.root,children:s.map(({id:c,label:u,color:d},f)=>R.jsxs(Qw,{ownerState:x({direction:r,seriesIndex:f},a),className:l.series,children:[R.jsx(eS,{ownerState:{color:d},className:l.mark}),R.jsx(tS,{className:l.label,children:u})]},c))})}function oS(e){var t;const n=Te({props:x({},nS,e),name:"MuiChartsLegend"}),{position:r,direction:o,offset:a,hidden:s,slots:i,slotProps:l}=n,c=Ge(),u=qw(x({},n,{theme:c})),d=h.useContext(tn),f=h.useContext(kn),p=Gw(f),m=(t=i==null?void 0:i.legend)!=null?t:rS,v=Ve({elementType:m,externalSlotProps:l==null?void 0:l.legend,additionalProps:{position:r,direction:o,offset:a,classes:u,drawingArea:d,series:f,hidden:s,seriesToDisplay:p},ownerState:{}});return R.jsx(m,x({},v))}function Zi(e){return Zn(e)?t=>e(t)+e.bandwidth()/2:t=>e(t)}function aS(e){const{x:t,y:n}=e,{xAxisIds:r,xAxis:o,yAxisIds:a,yAxis:s}=h.useContext(At),i=r[0],l=a[0],c=o[i].scale,u=s[l].scale,{axis:d}=h.useContext(Pn),f=Zi(c),p=Zi(u);return R.jsxs(h.Fragment,{children:[t==="band"&&d.x!==null&&Zn(c)&&R.jsx("path",{d:`M ${c(d.x.value)-(c.step()-c.bandwidth())/2} ${u.range()[0]} l ${c.step()} 0 l 0 ${u.range()[1]-u.range()[0]} l ${-c.step()} 0 Z`,fill:"gray",fillOpacity:.1,style:{pointerEvents:"none"}}),n==="band"&&d.y!==null&&Zn(u)&&R.jsx("path",{d:`M ${c.range()[0]} ${u(d.y.value)-(u.step()-u.bandwidth())/2} l 0 ${u.step()} l ${c.range()[1]-c.range()[0]} 0 l 0 ${-u.step()} Z`,fill:"gray",fillOpacity:.1,style:{pointerEvents:"none"}}),t==="line"&&d.x!==null&&R.jsx("path",{d:`M ${f(d.x.value)} ${u.range()[0]} L ${f(d.x.value)} ${u.range()[1]}`,stroke:"black",strokeDasharray:"5 2",style:{pointerEvents:"none"}}),n==="line"&&d.y!==null&&R.jsx("path",{d:`M ${c.range()[0]} ${p(d.y.value)} L ${c.range()[1]} ${p(d.y.value)}`,stroke:"black",strokeDasharray:"5 2",style:{pointerEvents:"none"}})]})}function sS(e){const{id:t,offset:n}=e,{left:r,top:o,width:a,height:s}=h.useContext(tn),i=x({top:0,right:0,bottom:0,left:0},n);return R.jsx("clipPath",{id:t,children:R.jsx("rect",{x:r-i.left,y:o-i.top,width:a+i.left+i.right,height:s+i.top+i.bottom})})}const Ji=h.forwardRef(function(t,n){const{xAxis:r,yAxis:o,series:a,width:s,height:i,margin:l,colors:c,dataset:u,sx:d,layout:f,tooltip:p,axisHighlight:m,legend:v,topAxis:b,leftAxis:g,rightAxis:k,bottomAxis:C,children:y,slots:T,slotProps:P}=t,A=`${Jn()}-clip-path`,I=f==="horizontal"||f===void 0&&a.some(j=>j.layout==="horizontal"),D={scaleType:"band",data:Array.from({length:Math.max(...a.map(j=>{var B,O;return((B=(O=j.data)!=null?O:u)!=null?B:[]).length}))},(j,B)=>B)},N=x({},I?{y:"band"}:{x:"band"},m);return R.jsxs(Sw,{ref:n,series:a.map(j=>x({type:"bar"},j,{layout:I?"horizontal":"vertical"})),width:s,height:i,margin:l,xAxis:r??(I?void 0:[x({id:Xo},D)]),yAxis:o??(I?[x({id:qo},D)]:void 0),colors:c,dataset:u,sx:d,disableAxisListener:(p==null?void 0:p.trigger)!=="axis"&&(m==null?void 0:m.x)==="none"&&(m==null?void 0:m.y)==="none",children:[R.jsx("g",{clipPath:`url(#${A})`,children:R.jsx(hw,{slots:T,slotProps:P})}),R.jsx($w,{topAxis:b,leftAxis:g,rightAxis:k,bottomAxis:C,slots:T,slotProps:P}),R.jsx(oS,x({},v,{slots:T,slotProps:P})),R.jsx(aS,x({},N)),R.jsx(jw,x({},p,{slots:T,slotProps:P})),R.jsx(sS,{id:A}),y]})}),iS=h.forwardRef(({chart:e="",isChartGroup:t=!1,chartData:n},r)=>{var c;const[o,a]=Ct.useState(((c=r==null?void 0:r.current)==null?void 0:c.offsetWidth)||0),s=fn(u=>u.theme),i=h.useMemo(()=>al({palette:{mode:s}}),[s]);h.useEffect(()=>{var u,d;(u=r==null?void 0:r.current)!=null&&u.offsetWidth&&a(((d=r==null?void 0:r.current)==null?void 0:d.offsetWidth)-8)},[r==null?void 0:r.current]);const l=(u,d)=>{var f,p,m;if(d&&u&&e!=="")return H(Ji,{colors:["#babc00","#ff5555"],xAxis:[{id:"barCategories",dataKey:"xAxisData",data:[...(f=d==null?void 0:d.valueTypesMapped[e])==null?void 0:f.names],scaleType:"band"}],series:[{data:[...(p=d==null?void 0:d.valueTypesMapped[e])==null?void 0:p.values],label:"current"},{data:[...(m=d==null?void 0:d.valueTypesMapped[e])==null?void 0:m.diff],label:"previous"}],margin:{bottom:60,left:60},width:o,height:300});if(d&&!u)return H(Ji,{colors:["#babc00","#ff5555"],xAxis:[{id:"barCategories",dataKey:"xAxisData",data:[...d==null?void 0:d.xAxisData],scaleType:"band"}],series:[{data:[...d==null?void 0:d.valueData],label:"current"},{data:[...d==null?void 0:d.diffData],label:"previous"}],margin:{bottom:60,left:60},width:o,height:300})};return H(md,{theme:i,children:o>0&&n&&l(t,n)})}),lS=ce("div",{target:"elsu4hb0"})({name:"wur8z8",styles:"display:flex;flex:1;flex-wrap:wrap;gap:4px"}),cS=e=>Ke("display:flex;flex:1;flex-direction:column;min-width:33%;border:1px solid ",e.neutral,";.label{display:flex;padding:6px 8px;text-align:center;}",""),Qi=({chart:e="",rows:t,theme:n,hasDiff:r=!0,chartData:o})=>{const a=h.useRef(null);return ae("div",{className:nt(cS(n)),ref:a,children:[e!==""&&H("div",{className:"label",children:e}),H(iS,{chartData:o,isChartGroup:e!=="",chart:e,rows:t,hasDiff:r,ref:a})]})},uS=(e,t,n,r)=>e.reduce((o,a,s)=>{var l;let i=(l=t[s])==null?void 0:l.split("=")[0];return o[i]===void 0&&(o[i]={},o[i].names=[],o[i].values=[],o[i].diff=[]),o[i].names.push(a),o[i].values.push(n[s]),o[i].diff.push(r[s]),o},{}),dS=e=>{const t=e==null?void 0:e.map(s=>s.name),n=e==null?void 0:e.map(s=>s.value),r=e==null?void 0:e.map(s=>s.diff<0?s.diff*-1:s.diff),o=e==null?void 0:e.map(s=>s.name.split("=")[0]),a=e==null?void 0:e.map(s=>s.name.split("=")[1]);return{xAxisData:t,valueData:n,diffData:r,labelTypes:o,valueTypes:a,valueTypesMapped:{},valueTypesKeys:[]}},fS=e=>h.useMemo(()=>{if(e&&(e==null?void 0:e.length)>0){const{xAxisData:t,valueData:n,diffData:r,labelTypes:o,valueTypes:a}=dS(e);let s={};(a==null?void 0:a[0])!==void 0&&(s=uS(a,t,n,r));let i=Object.keys(s);return{xAxisData:t,valueData:n,diffData:r,labelTypes:o,valueTypes:a,valueTypesMapped:s,valueTypesKeys:i}}return{xAxisData:[],valueData:[],diffData:[],labelTypes:[],valueTypes:[],valueTypesMapped:{},valueTypesKeys:[]}},[e]),pS=({rows:e,theme:t})=>{var r;const n=fS(e);return e.length===0?null:H(lS,{children:(n==null?void 0:n.valueTypes[0])!==void 0?(r=n==null?void 0:n.valueTypesKeys)==null?void 0:r.map((o,a)=>H(Qi,{theme:t,rows:e,chart:o,hasDiff:!1,chartData:n},a)):H(Qi,{theme:t,rows:e,chartData:n,hasDiff:!0})})},pu=e=>Ke("display:table-row;align-items:center;padding:12px 8px;border-bottom:1px solid ",e.neutral,";.cell{display:table-cell;padding:12px 0px;width:auto;border-bottom:1px solid ",e.neutral,";}.cell-name{width:60%;cursor:pointer;transition:0.25s all;&:hover{background:",e.neutral,";.c-name{color:",e.primaryLight,";}}}.cell-header{font-size:10px;letter-spacing:1px;text-transform:uppercase;padding:12px;&.center{text-align:center;}}.interactive{transition:0.25s all;&:hover{background:",e.neutral,";cursor:pointer;}}.c-name{font-size:12px;color:",e.primaryLight,";cursor:pointer;margin:0px 12px;}.c-value{color:",e.contrast,";font-size:14px;margin:0px 12px;width:auto;}.c-share-cont{align-items:center;display:flex;gap:1px;justify-content:flex-start;}.c-share{display:flex;font-size:12px;font-family:monospace;margin:0px 12px;}.c-progress{grid-gap:8px;align-items:center;display:grid;grid-template-columns:1fr auto;justify-content:center;}progress{background:",e.deep,";border-radius:3px;height:12px;border:1px solid ",e.ultraDeep,";display:flex;flex:1;}progress::-webkit-progress-bar{background-color:",e.deep,";border-radius:3px;}progress::-webkit-progress-value{background-color:",e.primary,";border-radius:3px;}progress::-moz-progress-bar{background-color:",e.primary,";border-radius:3px;}",""),hS=({theme:e,diff:t})=>ae("span",{className:"c-diff",title:`diff from previous day: ${t}`,style:{fontSize:"10px",padding:"5px",paddingBottom:"8px",color:t>0?e.accent:e.primary},children:[t===0?"":t>0?"↑":"↓",t===0?"":t," "]}),mS=({share:e})=>H("div",{className:"cell",children:H("div",{className:"c-share-cont",children:ae("div",{className:"c-progress",children:[H("progress",{value:e,max:100}),ae("span",{className:"c-share",children:[e.toFixed(2),"%"]})]})})}),gS=({name:e,value:t,diff:n,hasShare:r,share:o,theme:a,onFilter:s,source:i})=>{const{handleDelete:l}=Ta(),{isLoading:c}=Ot();return ae("div",{className:nt(pu(a)),children:[H("div",{className:"cell cell-name",onClick:u=>s(u,{name:e,value:t,source:i}),children:H("div",{className:"c-name",children:e})}),H("div",{className:" cell",children:ae("div",{className:"c-value",children:[H("span",{children:t}),H(hS,{theme:a,diff:n})]})}),r&&H(mS,{share:o}),H("div",{className:"cell",children:H(Tc,{clearFingerPrints:u=>l(u,t),isLoading:c,label:e,value:t,source:i})})]})},vS=({theme:e,name:t,headerName:n,handleSort:r})=>ae("div",{className:nt(pu(e)),children:[H("div",{onClick:()=>r("name"),className:"cell-header interactive cell",children:t}),H("div",{onClick:()=>r("value"),className:"cell-header interactive cell",children:"Number of Series"}),n!=="labelValueCountByLabelName"&&H("div",{className:"cell-header cell",children:"Share in Total"}),H("div",{className:"cell-header cell center",children:"Delete"})]}),xS=Ke({name:"pilqz3",styles:"display:flex;flex:1;align-items:center;justify-content:center;min-height:300px"}),bS=Ke({name:"1h6zx21",styles:"border:4px solid #f3f3f3;border-top:4px solid #3498db;border-radius:50%;width:20px;height:20px;margin-left:4px;animation:spin 2s linear infinite;@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"}),hu=()=>H("div",{className:nt(xS),children:H("div",{className:nt(bS)})}),yS=({rows:e,theme:t,sectionHeader:n,sectionHeaderName:r})=>{const{seriesGroupStyles:o}=kc(t),{sortedRows:a,handleSort:s}=Pc(e);return ae("div",{className:"c-table",children:[e&&H(vS,{handleSort:s,headerName:r,name:n,theme:o}),a&&(a==null?void 0:a.length)>=0?a.map((i,l)=>Qu(gS,{...i,key:l,theme:o,hasShare:r!=="labelValueCountByLabelName"})):H(hu,{})]})},CS=({title:e,rows:t,sectionHeader:n,sectionHeaderName:r})=>{const o=Lt(),{seriesGroupContainer:a}=kc(o),{sortedRows:s}=Pc(t),i=h.useRef(null),[l,c]=h.useState(0);return ae("div",{className:a,ref:i,children:[H(Ib,{theme:o,title:e,tabsValue:l,onTabChange:(d,f)=>{c(f)}}),l===0&&H(yS,{title:e,rows:s,theme:o,sectionHeader:n,sectionHeaderName:r}),l===1&&H(pS,{rows:s,theme:o})]})},wS=Ke({name:"aj5isq",styles:"display:flex;flex-direction:column;flex:1;height:100%;overflow-y:auto"}),SS=Ke({name:"1c1c0f4",styles:"display:flex;flex-direction:column;flex:1;max-height:calc(100vh - 200px)"}),MS=({formattedSeries:e,isCardinality:t,isLoading:n})=>{const r=Lt();return H("div",{className:nt(wS,t&&SS),children:n?H(hu,{}):e==null?void 0:e.map((o,a)=>H(CS,{theme:r,...Cx(o)},a))})},el="cardinalityHistory",TS=10;class kS{constructor(){Wt(this,"history",[]);Wt(this,"maxHistory");Wt(this,"setMaxHistory",t=>{this.maxHistory=t});Wt(this,"getLocalHistory",()=>{try{const t=localStorage.getItem(el);t&&typeof t=="string"&&(this.history=JSON.parse(t)||[])}catch(t){console.log("Error getting cardinality history",t)}return this.history});Wt(this,"setLocalHistoryItem",(t,n)=>{const r=this.getLocalHistory(),o=r.filter(i=>i.type!==t)||[],a=r.filter(i=>i.type===t)||[];a.length===this.maxHistory&&a.shift();const s=[...o,...a,{type:t,value:n}];localStorage.setItem(el,JSON.stringify(s))});Wt(this,"getLocalHistoryItemsFromType",t=>this.getLocalHistory().filter(o=>o.type===t));this.maxHistory=TS}}const PS=()=>{const e=new kS,t=e.getLocalHistoryItemsFromType("focusLabel"),n=e.getLocalHistoryItemsFromType("limitEntries"),r=h.useMemo(()=>t.map(l=>l.value),[t]),o=h.useMemo(()=>e.getLocalHistoryItemsFromType("timeSeriesSelector").map(c=>c.value),[e.getLocalHistoryItemsFromType("timeSeriesSelector")]),a=h.useMemo(()=>n.map(l=>l.value),[n]);return{historyManager:e,getHistory:()=>e.getLocalHistory(),setHistoryItem:(l,c)=>{e.setLocalHistoryItem(l,c)},focusLabelItems:r,timeSeriesSelectorItems:o,limitEntriesItems:a}},$S=()=>{const e=fl(),t=Lt(),n=fn(d=>d.isCardinality);h.useEffect(()=>(e(ai(!0)),()=>{e(ai(!1))}),[]);const{setHistoryItem:r,focusLabelItems:o,timeSeriesSelectorItems:a,limitEntriesItems:s,historyManager:i}=PS(),{totalSeries:l,formattedSeries:c,isLoading:u}=Ob(i,r);return ae("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[H(Rb,{theme:t,total:l,setHistoryItem:r,focusLabelItems:o,timeSeriesSelectorItems:a,limitEntriesItems:s,percent:35}),!u&&H(MS,{formattedSeries:c,isCardinality:n,isLoading:u})]})},ES={name:"Cardinal View",section:"Query Item",id:Qo(),Component:$S,description:"A cardinality view for labels",active:!1,visible:!0,roles:["admin","superAdmin"]};let DS=[ag,ES];Ou(DS);const gM=e=>{var r,o;const{section:t,localProps:n}=e;return H("div",{className:"renderer-content",children:((r=cs.getPlugins(t))==null?void 0:r.length)>0&&((o=cs.getPlugins(t))==null?void 0:o.map(({name:a,Component:s},i)=>H(s,{localProps:n,name:a},i)))})};var es={},RS=dt;Object.defineProperty(es,"__esModule",{value:!0});var NS=es.default=void 0,OS=RS(ut()),LS=R,_S=(0,OS.default)((0,LS.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy");NS=es.default=_S;const vM=e=>t=>{t({type:"SET_LINKS_HISTORY",linksHistory:e})},xM={info:"info",warning:"warning",error:"error",success:"success"};export{sM as $,rM as A,Mp as B,lM as C,Fl as D,oM as E,Il as F,XS as G,qS as H,QS as I,ZS as J,JS as K,nM as L,hm as M,GS as N,or as O,gM as P,yc as Q,dM as R,mM as S,ha as T,iM as U,pM as V,aM as W,Qx as X,eM as Y,uM as Z,tM as _,vM as a,Cc as a0,hM as a1,fM as a2,Sc as a3,Vx as a4,Lx as a5,E0 as a6,tb as a7,G0 as a8,vc as a9,Lb as aa,si as ab,Ot as ac,ex as ad,Vl as b,gc as c,NS as d,pb as e,vl as f,YS as g,Hn as h,ed as i,Mc as j,fh as k,th as l,ih as m,xM as n,Yp as o,db as p,fb as q,Cl as r,VS as s,wc as t,Ge as u,cM as v,md as w,Eb as x,ub as y,KS as z}; + )`,fill:(e.vars||e).palette.text.primary,dominantBaseline:"central"})),nS={position:{horizontal:"middle",vertical:"top"},direction:"row",markSize:20,itemWidth:100,spacing:2};function rS(e){const{hidden:t,position:n,direction:r,offset:o,series:a,seriesToDisplay:s,drawingArea:i,classes:l}=e;return t?null:R.jsx(Jw,{ownerState:{direction:r,offsetX:o==null?void 0:o.x,offsetY:o==null?void 0:o.y,seriesNumber:s.length,position:n,drawingArea:i},className:l.root,children:s.map(({id:c,label:u,color:d},f)=>R.jsxs(Qw,{ownerState:x({direction:r,seriesIndex:f},a),className:l.series,children:[R.jsx(eS,{ownerState:{color:d},className:l.mark}),R.jsx(tS,{className:l.label,children:u})]},c))})}function oS(e){var t;const n=Te({props:x({},nS,e),name:"MuiChartsLegend"}),{position:r,direction:o,offset:a,hidden:s,slots:i,slotProps:l}=n,c=Ge(),u=qw(x({},n,{theme:c})),d=p.useContext(tn),f=p.useContext(kn),h=Gw(f),m=(t=i==null?void 0:i.legend)!=null?t:rS,v=Ve({elementType:m,externalSlotProps:l==null?void 0:l.legend,additionalProps:{position:r,direction:o,offset:a,classes:u,drawingArea:d,series:f,hidden:s,seriesToDisplay:h},ownerState:{}});return R.jsx(m,x({},v))}function Zi(e){return Zn(e)?t=>e(t)+e.bandwidth()/2:t=>e(t)}function aS(e){const{x:t,y:n}=e,{xAxisIds:r,xAxis:o,yAxisIds:a,yAxis:s}=p.useContext(At),i=r[0],l=a[0],c=o[i].scale,u=s[l].scale,{axis:d}=p.useContext(Pn),f=Zi(c),h=Zi(u);return R.jsxs(p.Fragment,{children:[t==="band"&&d.x!==null&&Zn(c)&&R.jsx("path",{d:`M ${c(d.x.value)-(c.step()-c.bandwidth())/2} ${u.range()[0]} l ${c.step()} 0 l 0 ${u.range()[1]-u.range()[0]} l ${-c.step()} 0 Z`,fill:"gray",fillOpacity:.1,style:{pointerEvents:"none"}}),n==="band"&&d.y!==null&&Zn(u)&&R.jsx("path",{d:`M ${c.range()[0]} ${u(d.y.value)-(u.step()-u.bandwidth())/2} l 0 ${u.step()} l ${c.range()[1]-c.range()[0]} 0 l 0 ${-u.step()} Z`,fill:"gray",fillOpacity:.1,style:{pointerEvents:"none"}}),t==="line"&&d.x!==null&&R.jsx("path",{d:`M ${f(d.x.value)} ${u.range()[0]} L ${f(d.x.value)} ${u.range()[1]}`,stroke:"black",strokeDasharray:"5 2",style:{pointerEvents:"none"}}),n==="line"&&d.y!==null&&R.jsx("path",{d:`M ${c.range()[0]} ${h(d.y.value)} L ${c.range()[1]} ${h(d.y.value)}`,stroke:"black",strokeDasharray:"5 2",style:{pointerEvents:"none"}})]})}function sS(e){const{id:t,offset:n}=e,{left:r,top:o,width:a,height:s}=p.useContext(tn),i=x({top:0,right:0,bottom:0,left:0},n);return R.jsx("clipPath",{id:t,children:R.jsx("rect",{x:r-i.left,y:o-i.top,width:a+i.left+i.right,height:s+i.top+i.bottom})})}const Ji=p.forwardRef(function(t,n){const{xAxis:r,yAxis:o,series:a,width:s,height:i,margin:l,colors:c,dataset:u,sx:d,layout:f,tooltip:h,axisHighlight:m,legend:v,topAxis:b,leftAxis:g,rightAxis:k,bottomAxis:w,children:y,slots:T,slotProps:P}=t,A=`${Jn()}-clip-path`,I=f==="horizontal"||f===void 0&&a.some(j=>j.layout==="horizontal"),D={scaleType:"band",data:Array.from({length:Math.max(...a.map(j=>{var F,O;return((F=(O=j.data)!=null?O:u)!=null?F:[]).length}))},(j,F)=>F)},N=x({},I?{y:"band"}:{x:"band"},m);return R.jsxs(Sw,{ref:n,series:a.map(j=>x({type:"bar"},j,{layout:I?"horizontal":"vertical"})),width:s,height:i,margin:l,xAxis:r??(I?void 0:[x({id:Xo},D)]),yAxis:o??(I?[x({id:qo},D)]:void 0),colors:c,dataset:u,sx:d,disableAxisListener:(h==null?void 0:h.trigger)!=="axis"&&(m==null?void 0:m.x)==="none"&&(m==null?void 0:m.y)==="none",children:[R.jsx("g",{clipPath:`url(#${A})`,children:R.jsx(hw,{slots:T,slotProps:P})}),R.jsx($w,{topAxis:b,leftAxis:g,rightAxis:k,bottomAxis:w,slots:T,slotProps:P}),R.jsx(oS,x({},v,{slots:T,slotProps:P})),R.jsx(aS,x({},N)),R.jsx(jw,x({},h,{slots:T,slotProps:P})),R.jsx(sS,{id:A}),y]})}),iS=p.forwardRef(({chart:e="",isChartGroup:t=!1,chartData:n},r)=>{var c;const[o,a]=Ct.useState(((c=r==null?void 0:r.current)==null?void 0:c.offsetWidth)||0),s=fn(u=>u.theme),i=p.useMemo(()=>al({palette:{mode:s}}),[s]);p.useEffect(()=>{var u,d;(u=r==null?void 0:r.current)!=null&&u.offsetWidth&&a(((d=r==null?void 0:r.current)==null?void 0:d.offsetWidth)-8)},[r==null?void 0:r.current]);const l=(u,d)=>{var f,h,m;if(d&&u&&e!=="")return H(Ji,{colors:["#babc00","#ff5555"],xAxis:[{id:"barCategories",dataKey:"xAxisData",data:[...(f=d==null?void 0:d.valueTypesMapped[e])==null?void 0:f.names],scaleType:"band"}],series:[{data:[...(h=d==null?void 0:d.valueTypesMapped[e])==null?void 0:h.values],label:"current"},{data:[...(m=d==null?void 0:d.valueTypesMapped[e])==null?void 0:m.diff],label:"previous"}],margin:{bottom:60,left:60},width:o,height:300});if(d&&!u)return H(Ji,{colors:["#babc00","#ff5555"],xAxis:[{id:"barCategories",dataKey:"xAxisData",data:[...d==null?void 0:d.xAxisData],scaleType:"band"}],series:[{data:[...d==null?void 0:d.valueData],label:"current"},{data:[...d==null?void 0:d.diffData],label:"previous"}],margin:{bottom:60,left:60},width:o,height:300})};return H(md,{theme:i,children:o>0&&n&&l(t,n)})}),lS=ce("div",{target:"elsu4hb0"})({name:"wur8z8",styles:"display:flex;flex:1;flex-wrap:wrap;gap:4px"}),cS=e=>Ke("display:flex;flex:1;flex-direction:column;min-width:33%;border:1px solid ",e.neutral,";.label{display:flex;padding:6px 8px;text-align:center;}",""),Qi=({chart:e="",rows:t,theme:n,hasDiff:r=!0,chartData:o})=>{const a=p.useRef(null);return ae("div",{className:nt(cS(n)),ref:a,children:[e!==""&&H("div",{className:"label",children:e}),H(iS,{chartData:o,isChartGroup:e!=="",chart:e,rows:t,hasDiff:r,ref:a})]})},uS=(e,t,n,r)=>e.reduce((o,a,s)=>{var l;let i=(l=t[s])==null?void 0:l.split("=")[0];return o[i]===void 0&&(o[i]={},o[i].names=[],o[i].values=[],o[i].diff=[]),o[i].names.push(a),o[i].values.push(n[s]),o[i].diff.push(r[s]),o},{}),dS=e=>{const t=e==null?void 0:e.map(s=>s.name),n=e==null?void 0:e.map(s=>s.value),r=e==null?void 0:e.map(s=>s.diff<0?s.diff*-1:s.diff),o=e==null?void 0:e.map(s=>s.name.split("=")[0]),a=e==null?void 0:e.map(s=>s.name.split("=")[1]);return{xAxisData:t,valueData:n,diffData:r,labelTypes:o,valueTypes:a,valueTypesMapped:{},valueTypesKeys:[]}},fS=e=>p.useMemo(()=>{if(e&&(e==null?void 0:e.length)>0){const{xAxisData:t,valueData:n,diffData:r,labelTypes:o,valueTypes:a}=dS(e);let s={};(a==null?void 0:a[0])!==void 0&&(s=uS(a,t,n,r));let i=Object.keys(s);return{xAxisData:t,valueData:n,diffData:r,labelTypes:o,valueTypes:a,valueTypesMapped:s,valueTypesKeys:i}}return{xAxisData:[],valueData:[],diffData:[],labelTypes:[],valueTypes:[],valueTypesMapped:{},valueTypesKeys:[]}},[e]),pS=({rows:e,theme:t})=>{var r;const n=fS(e);return e.length===0?null:H(lS,{children:(n==null?void 0:n.valueTypes[0])!==void 0?(r=n==null?void 0:n.valueTypesKeys)==null?void 0:r.map((o,a)=>H(Qi,{theme:t,rows:e,chart:o,hasDiff:!1,chartData:n},a)):H(Qi,{theme:t,rows:e,chartData:n,hasDiff:!0})})},pu=e=>Ke("display:table-row;align-items:center;padding:12px 8px;border-bottom:1px solid ",e.neutral,";.cell{display:table-cell;padding:12px 0px;width:auto;border-bottom:1px solid ",e.neutral,";}.cell-name{width:60%;cursor:pointer;transition:0.25s all;&:hover{background:",e.neutral,";.c-name{color:",e.primaryLight,";}}}.cell-header{font-size:10px;letter-spacing:1px;text-transform:uppercase;padding:12px;&.center{text-align:center;}}.interactive{transition:0.25s all;&:hover{background:",e.neutral,";cursor:pointer;}}.c-name{font-size:12px;color:",e.primaryLight,";cursor:pointer;margin:0px 12px;}.c-value{color:",e.contrast,";font-size:14px;margin:0px 12px;width:auto;}.c-share-cont{align-items:center;display:flex;gap:1px;justify-content:flex-start;}.c-share{display:flex;font-size:12px;font-family:monospace;margin:0px 12px;}.c-progress{grid-gap:8px;align-items:center;display:grid;grid-template-columns:1fr auto;justify-content:center;}progress{background:",e.deep,";border-radius:3px;height:12px;border:1px solid ",e.ultraDeep,";display:flex;flex:1;}progress::-webkit-progress-bar{background-color:",e.deep,";border-radius:3px;}progress::-webkit-progress-value{background-color:",e.primary,";border-radius:3px;}progress::-moz-progress-bar{background-color:",e.primary,";border-radius:3px;}",""),hS=({theme:e,diff:t})=>ae("span",{className:"c-diff",title:`diff from previous day: ${t}`,style:{fontSize:"10px",padding:"5px",paddingBottom:"8px",color:t>0?e.accent:e.primary},children:[t===0?"":t>0?"↑":"↓",t===0?"":t," "]}),mS=({share:e})=>H("div",{className:"cell",children:H("div",{className:"c-share-cont",children:ae("div",{className:"c-progress",children:[H("progress",{value:e,max:100}),ae("span",{className:"c-share",children:[e.toFixed(2),"%"]})]})})}),gS=({name:e,value:t,diff:n,hasShare:r,share:o,theme:a,onFilter:s,source:i})=>{const{handleDelete:l}=Ta(),{isLoading:c}=Ot();return ae("div",{className:nt(pu(a)),children:[H("div",{className:"cell cell-name",onClick:u=>s(u,{name:e,value:t,source:i}),children:H("div",{className:"c-name",children:e})}),H("div",{className:" cell",children:ae("div",{className:"c-value",children:[H("span",{children:t}),H(hS,{theme:a,diff:n})]})}),r&&H(mS,{share:o}),H("div",{className:"cell",children:H(Tc,{clearFingerPrints:u=>l(u,t),isLoading:c,label:e,value:t,source:i})})]})},vS=({theme:e,name:t,headerName:n,handleSort:r})=>ae("div",{className:nt(pu(e)),children:[H("div",{onClick:()=>r("name"),className:"cell-header interactive cell",children:t}),H("div",{onClick:()=>r("value"),className:"cell-header interactive cell",children:"Number of Series"}),n!=="labelValueCountByLabelName"&&H("div",{className:"cell-header cell",children:"Share in Total"}),H("div",{className:"cell-header cell center",children:"Delete"})]}),xS=Ke({name:"pilqz3",styles:"display:flex;flex:1;align-items:center;justify-content:center;min-height:300px"}),bS=Ke({name:"1h6zx21",styles:"border:4px solid #f3f3f3;border-top:4px solid #3498db;border-radius:50%;width:20px;height:20px;margin-left:4px;animation:spin 2s linear infinite;@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"}),hu=()=>H("div",{className:nt(xS),children:H("div",{className:nt(bS)})}),yS=({rows:e,theme:t,sectionHeader:n,sectionHeaderName:r})=>{const{seriesGroupStyles:o}=kc(t),{sortedRows:a,handleSort:s}=Pc(e);return ae("div",{className:"c-table",children:[e&&H(vS,{handleSort:s,headerName:r,name:n,theme:o}),a&&(a==null?void 0:a.length)>=0?a.map((i,l)=>Qu(gS,{...i,key:l,theme:o,hasShare:r!=="labelValueCountByLabelName"})):H(hu,{})]})},CS=({title:e,rows:t,sectionHeader:n,sectionHeaderName:r})=>{const o=Lt(),{seriesGroupContainer:a}=kc(o),{sortedRows:s}=Pc(t),i=p.useRef(null),[l,c]=p.useState(0);return ae("div",{className:a,ref:i,children:[H(Ib,{theme:o,title:e,tabsValue:l,onTabChange:(d,f)=>{c(f)}}),l===0&&H(yS,{title:e,rows:s,theme:o,sectionHeader:n,sectionHeaderName:r}),l===1&&H(pS,{rows:s,theme:o})]})},wS=Ke({name:"aj5isq",styles:"display:flex;flex-direction:column;flex:1;height:100%;overflow-y:auto"}),SS=Ke({name:"1c1c0f4",styles:"display:flex;flex-direction:column;flex:1;max-height:calc(100vh - 200px)"}),MS=({formattedSeries:e,isCardinality:t,isLoading:n})=>{const r=Lt();return H("div",{className:nt(wS,t&&SS),children:n?H(hu,{}):e==null?void 0:e.map((o,a)=>H(CS,{theme:r,...Cx(o)},a))})},el="cardinalityHistory",TS=10;class kS{constructor(){Wt(this,"history",[]);Wt(this,"maxHistory");Wt(this,"setMaxHistory",t=>{this.maxHistory=t});Wt(this,"getLocalHistory",()=>{try{const t=localStorage.getItem(el);t&&typeof t=="string"&&(this.history=JSON.parse(t)||[])}catch(t){console.log("Error getting cardinality history",t)}return this.history});Wt(this,"setLocalHistoryItem",(t,n)=>{const r=this.getLocalHistory(),o=r.filter(i=>i.type!==t)||[],a=r.filter(i=>i.type===t)||[];a.length===this.maxHistory&&a.shift();const s=[...o,...a,{type:t,value:n}];localStorage.setItem(el,JSON.stringify(s))});Wt(this,"getLocalHistoryItemsFromType",t=>this.getLocalHistory().filter(o=>o.type===t));this.maxHistory=TS}}const PS=()=>{const e=new kS,t=e.getLocalHistoryItemsFromType("focusLabel"),n=e.getLocalHistoryItemsFromType("limitEntries"),r=p.useMemo(()=>t.map(l=>l.value),[t]),o=p.useMemo(()=>e.getLocalHistoryItemsFromType("timeSeriesSelector").map(c=>c.value),[e.getLocalHistoryItemsFromType("timeSeriesSelector")]),a=p.useMemo(()=>n.map(l=>l.value),[n]);return{historyManager:e,getHistory:()=>e.getLocalHistory(),setHistoryItem:(l,c)=>{e.setLocalHistoryItem(l,c)},focusLabelItems:r,timeSeriesSelectorItems:o,limitEntriesItems:a}},$S=()=>{const e=fl(),t=Lt(),n=fn(d=>d.isCardinality);p.useEffect(()=>(e(ai(!0)),()=>{e(ai(!1))}),[]);const{setHistoryItem:r,focusLabelItems:o,timeSeriesSelectorItems:a,limitEntriesItems:s,historyManager:i}=PS(),{totalSeries:l,formattedSeries:c,isLoading:u}=Ob(i,r);return ae("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[H(Rb,{theme:t,total:l,setHistoryItem:r,focusLabelItems:o,timeSeriesSelectorItems:a,limitEntriesItems:s,percent:35}),!u&&H(MS,{formattedSeries:c,isCardinality:n,isLoading:u})]})},ES={name:"Cardinal View",section:"Query Item",id:Qo(),Component:$S,description:"A cardinality view for labels",active:!1,visible:!0,roles:["admin","superAdmin"]};let DS=[ag,ES];Ou(DS);const gM=e=>{var r,o;const{section:t,localProps:n}=e;return H("div",{className:"renderer-content",children:((r=cs.getPlugins(t))==null?void 0:r.length)>0&&((o=cs.getPlugins(t))==null?void 0:o.map(({name:a,Component:s},i)=>H(s,{localProps:n,name:a},i)))})};var es={},RS=dt;Object.defineProperty(es,"__esModule",{value:!0});var NS=es.default=void 0,OS=RS(ut()),LS=R,_S=(0,OS.default)((0,LS.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy");NS=es.default=_S;const vM=e=>t=>{t({type:"SET_LINKS_HISTORY",linksHistory:e})},xM={info:"info",warning:"warning",error:"error",success:"success"};export{sM as $,rM as A,Mp as B,lM as C,Fl as D,oM as E,Il as F,XS as G,qS as H,QS as I,ZS as J,JS as K,nM as L,hm as M,GS as N,or as O,gM as P,yc as Q,dM as R,mM as S,ha as T,iM as U,pM as V,aM as W,Qx as X,eM as Y,uM as Z,tM as _,vM as a,Cc as a0,hM as a1,fM as a2,Sc as a3,Vx as a4,Lx as a5,E0 as a6,tb as a7,G0 as a8,vc as a9,Lb as aa,si as ab,Ot as ac,ex as ad,Vl as b,gc as c,NS as d,pb as e,vl as f,YS as g,Hn as h,ed as i,Mc as j,fh as k,th as l,ih as m,xM as n,Yp as o,db as p,fb as q,Cl as r,VS as s,wc as t,Ge as u,cM as v,md as w,Eb as x,ub as y,KS as z}; diff --git a/view/assets/createSvgIcon-b45af2a3.js b/view/assets/createSvgIcon-e78f4b10.js similarity index 97% rename from view/assets/createSvgIcon-b45af2a3.js rename to view/assets/createSvgIcon-e78f4b10.js index 24fa247f..371c5035 100644 --- a/view/assets/createSvgIcon-b45af2a3.js +++ b/view/assets/createSvgIcon-e78f4b10.js @@ -1 +1 @@ -import{a as c,d as T}from"./vendor-6029fc34.js";import{r as i,d as oe,e as ae}from"./react-432945ee.js";import{Y as ne,z as p,C as se,a4 as re,a3 as ce,a5 as ie,a2 as le,a6 as ue,w as j,x as q,s as w,B as de,y as pe,c as D,b as O,a as N,a7 as fe,a8 as he,u as ge}from"./index-cb8d8b59.js";import{j as v}from"./reactDnd-72acd3f4.js";function be(...e){return e.reduce((t,o)=>o==null?t:function(...n){t.apply(this,n),o.apply(this,n)},()=>{})}function me(e,t=166){let o;function a(...n){const r=()=>{e.apply(this,n)};clearTimeout(o),o=setTimeout(r,t)}return a.clear=()=>{clearTimeout(o)},a}function ve(e,t){return()=>null}function we(e,t){var o,a;return i.isValidElement(e)&&t.indexOf((o=e.type.muiName)!=null?o:(a=e.type)==null||(a=a._payload)==null||(a=a.value)==null?void 0:a.muiName)!==-1}function U(e){return e&&e.ownerDocument||document}function ke(e){return U(e).defaultView||window}function Ce(e,t){return()=>null}let P=0;function Se(e){const[t,o]=i.useState(e),a=e||t;return i.useEffect(()=>{t==null&&(P+=1,o(`mui-${P}`))},[t]),a}const E=oe["useId".toString()];function xe(e){if(E!==void 0){const t=E();return e??t}return Se(e)}function ye(e,t,o,a,n){return null}function V({controlled:e,default:t,name:o,state:a="value"}){const{current:n}=i.useRef(e!==void 0),[r,f]=i.useState(t),u=n?e:r,h=i.useCallback(m=>{n||f(m)},[]);return[u,h]}const $e={configure:e=>{ne.configure(e)}},Ie=Object.freeze(Object.defineProperty({__proto__:null,capitalize:p,createChainedFunction:be,createSvgIcon:se,debounce:me,deprecatedPropType:ve,isMuiElement:we,ownerDocument:U,ownerWindow:ke,requirePropFactory:Ce,setRef:re,unstable_ClassNameGenerator:$e,unstable_useEnhancedEffect:ce,unstable_useId:xe,unsupportedProp:ye,useControlled:V,useEventCallback:ie,useForkRef:le,useIsFocusVisible:ue},Symbol.toStringTag,{value:"Module"})),Re=i.createContext(void 0),Be=Re;function Fe(){return i.useContext(Be)}function _e(e){return j("PrivateSwitchBase",e)}q("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const ze=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Ne=e=>{const{classes:t,checked:o,disabled:a,edge:n}=e,r={root:["root",o&&"checked",a&&"disabled",n&&`edge${p(n)}`],input:["input"]};return O(r,_e,t)},Pe=w(de)(({ownerState:e})=>c({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Ee=w("input",{shouldForwardProp:pe})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Me=i.forwardRef(function(t,o){const{autoFocus:a,checked:n,checkedIcon:r,className:f,defaultChecked:u,disabled:h,disableFocusRipple:m=!1,edge:g=!1,icon:b,id:C,inputProps:A,inputRef:G,name:W,onBlur:$,onChange:I,onFocus:R,readOnly:X,required:Y=!1,tabIndex:H,type:S,value:B}=t,J=T(t,ze),[F,K]=V({controlled:n,default:!!u,name:"SwitchBase",state:"checked"}),d=Fe(),Q=l=>{R&&R(l),d&&d.onFocus&&d.onFocus(l)},Z=l=>{$&&$(l),d&&d.onBlur&&d.onBlur(l)},ee=l=>{if(l.nativeEvent.defaultPrevented)return;const z=l.target.checked;K(z),I&&I(l,z)};let k=h;d&&typeof k>"u"&&(k=d.disabled);const te=S==="checkbox"||S==="radio",x=c({},t,{checked:F,disabled:k,disableFocusRipple:m,edge:g}),_=Ne(x);return v.jsxs(Pe,c({component:"span",className:D(_.root,f),centerRipple:!0,focusRipple:!m,disabled:k,tabIndex:null,role:void 0,onFocus:Q,onBlur:Z,ownerState:x,ref:o},J,{children:[v.jsx(Ee,c({autoFocus:a,checked:n,defaultChecked:u,className:_.input,disabled:k,id:te?C:void 0,name:W,onChange:ee,readOnly:X,ref:G,required:Y,ownerState:x,tabIndex:H,type:S},S==="checkbox"&&B===void 0?{}:{value:B},A)),F?r:b]}))}),Te=Me;function je(e){return j("MuiSwitch",e)}const qe=q("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),s=qe,De=["className","color","edge","size","sx"],Oe=e=>{const{classes:t,edge:o,size:a,color:n,checked:r,disabled:f}=e,u={root:["root",o&&`edge${p(o)}`,`size${p(a)}`],switchBase:["switchBase",`color${p(n)}`,r&&"checked",f&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},h=O(u,je,t);return c({},t,h)},Ue=w("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.edge&&t[`edge${p(o.edge)}`],t[`size${p(o.size)}`]]}})(({ownerState:e})=>c({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${s.thumb}`]:{width:16,height:16},[`& .${s.switchBase}`]:{padding:4,[`&.${s.checked}`]:{transform:"translateX(16px)"}}})),Ve=w(Te,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.switchBase,{[`& .${s.input}`]:t.input},o.color!=="default"&&t[`color${p(o.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${s.checked}`]:{transform:"translateX(20px)"},[`&.${s.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${s.checked} + .${s.track}`]:{opacity:.5},[`&.${s.disabled} + .${s.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${s.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>c({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:N(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${s.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:N(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${s.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?fe(e.palette[t.color].main,.62):he(e.palette[t.color].main,.55)}`}},[`&.${s.checked} + .${s.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Le=w("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Ae=w("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Ge=i.forwardRef(function(t,o){const a=ge({props:t,name:"MuiSwitch"}),{className:n,color:r="primary",edge:f=!1,size:u="medium",sx:h}=a,m=T(a,De),g=c({},a,{color:r,edge:f,size:u}),b=Oe(g),C=v.jsx(Ae,{className:b.thumb,ownerState:g});return v.jsxs(Ue,{className:D(b.root,n),sx:h,ownerState:g,children:[v.jsx(Ve,c({type:"checkbox",icon:C,checkedIcon:C,ref:o,ownerState:g},m,{classes:c({},b,{root:b.switchBase})})),v.jsx(Le,{className:b.track,ownerState:g})]})}),Ke=Ge;var L={exports:{}};(function(e){function t(o){return o&&o.__esModule?o:{default:o}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(L);var Qe=L.exports,y={};const We=ae(Ie);var M;function Ze(){return M||(M=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=We}(y)),y}export{Ke as S,Te as a,ke as b,be as c,xe as d,me as e,V as f,Qe as i,U as o,Ze as r,Fe as u}; +import{a as c,d as T}from"./vendor-3db6068a.js";import{r as i,d as oe,e as ae}from"./react-432945ee.js";import{Y as ne,z as p,C as se,a4 as re,a3 as ce,a5 as ie,a2 as le,a6 as ue,w as j,x as q,s as w,B as de,y as pe,c as D,b as O,a as N,a7 as fe,a8 as he,u as ge}from"./index-bc3ec90a.js";import{j as v}from"./reactDnd-dc8b0776.js";function be(...e){return e.reduce((t,o)=>o==null?t:function(...n){t.apply(this,n),o.apply(this,n)},()=>{})}function me(e,t=166){let o;function a(...n){const r=()=>{e.apply(this,n)};clearTimeout(o),o=setTimeout(r,t)}return a.clear=()=>{clearTimeout(o)},a}function ve(e,t){return()=>null}function we(e,t){var o,a;return i.isValidElement(e)&&t.indexOf((o=e.type.muiName)!=null?o:(a=e.type)==null||(a=a._payload)==null||(a=a.value)==null?void 0:a.muiName)!==-1}function U(e){return e&&e.ownerDocument||document}function ke(e){return U(e).defaultView||window}function Ce(e,t){return()=>null}let P=0;function Se(e){const[t,o]=i.useState(e),a=e||t;return i.useEffect(()=>{t==null&&(P+=1,o(`mui-${P}`))},[t]),a}const E=oe["useId".toString()];function xe(e){if(E!==void 0){const t=E();return e??t}return Se(e)}function ye(e,t,o,a,n){return null}function V({controlled:e,default:t,name:o,state:a="value"}){const{current:n}=i.useRef(e!==void 0),[r,f]=i.useState(t),u=n?e:r,h=i.useCallback(m=>{n||f(m)},[]);return[u,h]}const $e={configure:e=>{ne.configure(e)}},Ie=Object.freeze(Object.defineProperty({__proto__:null,capitalize:p,createChainedFunction:be,createSvgIcon:se,debounce:me,deprecatedPropType:ve,isMuiElement:we,ownerDocument:U,ownerWindow:ke,requirePropFactory:Ce,setRef:re,unstable_ClassNameGenerator:$e,unstable_useEnhancedEffect:ce,unstable_useId:xe,unsupportedProp:ye,useControlled:V,useEventCallback:ie,useForkRef:le,useIsFocusVisible:ue},Symbol.toStringTag,{value:"Module"})),Re=i.createContext(void 0),Be=Re;function Fe(){return i.useContext(Be)}function _e(e){return j("PrivateSwitchBase",e)}q("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const ze=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Ne=e=>{const{classes:t,checked:o,disabled:a,edge:n}=e,r={root:["root",o&&"checked",a&&"disabled",n&&`edge${p(n)}`],input:["input"]};return O(r,_e,t)},Pe=w(de)(({ownerState:e})=>c({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Ee=w("input",{shouldForwardProp:pe})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Me=i.forwardRef(function(t,o){const{autoFocus:a,checked:n,checkedIcon:r,className:f,defaultChecked:u,disabled:h,disableFocusRipple:m=!1,edge:g=!1,icon:b,id:C,inputProps:A,inputRef:G,name:W,onBlur:$,onChange:I,onFocus:R,readOnly:X,required:Y=!1,tabIndex:H,type:S,value:B}=t,J=T(t,ze),[F,K]=V({controlled:n,default:!!u,name:"SwitchBase",state:"checked"}),d=Fe(),Q=l=>{R&&R(l),d&&d.onFocus&&d.onFocus(l)},Z=l=>{$&&$(l),d&&d.onBlur&&d.onBlur(l)},ee=l=>{if(l.nativeEvent.defaultPrevented)return;const z=l.target.checked;K(z),I&&I(l,z)};let k=h;d&&typeof k>"u"&&(k=d.disabled);const te=S==="checkbox"||S==="radio",x=c({},t,{checked:F,disabled:k,disableFocusRipple:m,edge:g}),_=Ne(x);return v.jsxs(Pe,c({component:"span",className:D(_.root,f),centerRipple:!0,focusRipple:!m,disabled:k,tabIndex:null,role:void 0,onFocus:Q,onBlur:Z,ownerState:x,ref:o},J,{children:[v.jsx(Ee,c({autoFocus:a,checked:n,defaultChecked:u,className:_.input,disabled:k,id:te?C:void 0,name:W,onChange:ee,readOnly:X,ref:G,required:Y,ownerState:x,tabIndex:H,type:S},S==="checkbox"&&B===void 0?{}:{value:B},A)),F?r:b]}))}),Te=Me;function je(e){return j("MuiSwitch",e)}const qe=q("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),s=qe,De=["className","color","edge","size","sx"],Oe=e=>{const{classes:t,edge:o,size:a,color:n,checked:r,disabled:f}=e,u={root:["root",o&&`edge${p(o)}`,`size${p(a)}`],switchBase:["switchBase",`color${p(n)}`,r&&"checked",f&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},h=O(u,je,t);return c({},t,h)},Ue=w("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.edge&&t[`edge${p(o.edge)}`],t[`size${p(o.size)}`]]}})(({ownerState:e})=>c({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${s.thumb}`]:{width:16,height:16},[`& .${s.switchBase}`]:{padding:4,[`&.${s.checked}`]:{transform:"translateX(16px)"}}})),Ve=w(Te,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.switchBase,{[`& .${s.input}`]:t.input},o.color!=="default"&&t[`color${p(o.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${s.checked}`]:{transform:"translateX(20px)"},[`&.${s.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${s.checked} + .${s.track}`]:{opacity:.5},[`&.${s.disabled} + .${s.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${s.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>c({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:N(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${s.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:N(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${s.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?fe(e.palette[t.color].main,.62):he(e.palette[t.color].main,.55)}`}},[`&.${s.checked} + .${s.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Le=w("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Ae=w("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Ge=i.forwardRef(function(t,o){const a=ge({props:t,name:"MuiSwitch"}),{className:n,color:r="primary",edge:f=!1,size:u="medium",sx:h}=a,m=T(a,De),g=c({},a,{color:r,edge:f,size:u}),b=Oe(g),C=v.jsx(Ae,{className:b.thumb,ownerState:g});return v.jsxs(Ue,{className:D(b.root,n),sx:h,ownerState:g,children:[v.jsx(Ve,c({type:"checkbox",icon:C,checkedIcon:C,ref:o,ownerState:g},m,{classes:c({},b,{root:b.switchBase})})),v.jsx(Le,{className:b.track,ownerState:g})]})}),Ke=Ge;var L={exports:{}};(function(e){function t(o){return o&&o.__esModule?o:{default:o}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(L);var Qe=L.exports,y={};const We=ae(Ie);var M;function Ze(){return M||(M=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=We}(y)),y}export{Ke as S,Te as a,ke as b,be as c,xe as d,me as e,V as f,Qe as i,U as o,Ze as r,Fe as u}; diff --git a/view/assets/index-cb8d8b59.js b/view/assets/index-bc3ec90a.js similarity index 98% rename from view/assets/index-cb8d8b59.js rename to view/assets/index-bc3ec90a.js index 383e2864..ea16efc1 100644 --- a/view/assets/index-cb8d8b59.js +++ b/view/assets/index-bc3ec90a.js @@ -1,4 +1,4 @@ -import{j as W,c as Xo,a as Zo}from"./reactDnd-72acd3f4.js";import{h as Ti,E as wi,c as ki,m as Jo,w as Qo,T as Ei,g as Rs,s as Jr,r as el,u as tl,i as Oi,k as As,a as rl}from"./reactSelect-75171a09.js";import{b as nl,c as sl,g as al,r as w,R as Zt}from"./react-432945ee.js";import{n as Ue,j as Ya,t as il,a as D,d as Oe,k as ol,l as ll,u as Is,m as ul,N as cl,o as dl,C as fl,B as hl,R as ml,p as Ht,P as pl}from"./vendor-6029fc34.js";import"./memoize-acaceb73.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(s){if(s.ep)return;s.ep=!0;const a=r(s);fetch(s.href,a)}})();const gl="modulepreload",yl=function(e){return"/"+e},Fa={},Er=function(t,r,n){if(!r||r.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(r.map(a=>{if(a=yl(a),a in Fa)return;Fa[a]=!0;const i=a.endsWith(".css"),o=i?'[rel="stylesheet"]':"";if(!!n)for(let d=s.length-1;d>=0;d--){const h=s[d];if(h.href===a&&(!i||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${o}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":gl,i||(c.as="script",c.crossOrigin=""),c.href=a,document.head.appendChild(c),i)return new Promise((d,h)=>{c.addEventListener("load",d),c.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t()).catch(a=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a})};var rg=W.Fragment;function q(e,t,r){return Ti.call(t,"css")?W.jsx(wi,ki(e,t),r):W.jsx(e,t,r)}function Qr(e,t,r){return Ti.call(t,"css")?W.jsxs(wi,ki(e,t),r):W.jsxs(e,t,r)}var ys={},Ua=nl;ys.createRoot=Ua.createRoot,ys.hydrateRoot=Ua.hydrateRoot;const _l=(e,t)=>{switch(t.type){case"SET_LABELS":return{...e,labels:t.labels};case"SET_LOADING":return{...e,loading:t.loading};case"SET_LOGS":return{...e,logs:t.logs};case"SET_LABEL_VALUES":return{...e,labelValues:t.labelValues};case"SET_START_TIME":return{...e,start:t.start};case"SET_STOP_TIME":return{...e,stop:t.stop};case"SET_FROM_TIME":return{...e,from:t.from};case"SET_TO_TIME":return{...e,to:t.to};case"SET_TIME_RANGE_LABEL":return{...e,label:t.label};case"SET_QUERY_LIMIT":return{...e,limit:t.limit};case"SET_RANGE_OPEN":return{...e,rangeOpen:t.rangeOpen};case"SET_BROWSER_OPEN":return{...e,labelsBrowserOpen:t.labelsBrowserOpen};case"SET_SETTINGS_MENU_OPEN":return{...e,settingsMenuOpen:t.settingsMenuOpen};case"SET_TIME_PICKER_OPEN":return{...e,timePickerOpen:t.timePickerOpen};case"SET_SETTINGS_DIALOG_OPEN":return{...e,settingsDialogOpen:t.settingsDialogOpen};case"SET_QUERY":return{...e,query:t.query};case"SET_QUERY_STEP":return{...e,step:t.step};case"SET_API_URL":return{...e,apiUrl:t.apiUrl};case"SET_API_ERRORS":return{...e,apiErrors:t.apiErrors};case"SET_URL_QUERY_PARAMS":return{...e,urlQueryParams:t.urlQueryParams};case"SET_QUERY_TYPE":return{...e,queryType:t.queryType};case"SET_URL_LOCATION":return{...e,urlLocation:t.urlLocation};case"SET_IS_SUBMIT":return{...e,isSubmit:t.isSubmit};case"SET_IS_EMBED":return{...e,isEmbed:t.isEmbed};case"SET_IS_CARDINALITY":return{...e,isCardinality:t.isCardinality};case"SET_MATRIX_DATA":return{...e,matrixData:t.matrixData};case"SET_CHART_TYPE":return{...e,chartType:t.setChartType};case"SET_QUERY_HISTORY":return{...e,queryHistory:t.queryHistory};case"SET_LINKS_HISTORY":return{...e,linksHistory:t.linksHistory};case"SET_HISTORY_OPEN":return{...e,historyOpen:t.historyOpen};case"ADD_NOTIFICATION":return{...e,notifications:t.payload};case"REMOVE_NOTIFICATION":return{...e,notifications:t.payload};case"SET_DEBUG_MODE":return{...e,debugMode:t.debugMode};case"SET_THEME":return{...e,theme:t.theme};case"SET_AUTO_THEME":return{...e,autoTheme:t.autoTheme};case"SET_TABLE_DATA":return{...e,tableData:t.tableData};case"SET_QUERY_TIME":return{...e,time:t.time};case"SET_QUERY_RESOLUTION":return{...e,queryResolution:t.queryResolution};case"SET_IS_EMPTY_VIEW":return{...e,isEmptyView:t.isEmptyView};case"SET_VECTOR_DATA":return{...e,vectorData:t.vectorData};case"SET_RESPONSE_TYPE":return{...e,responseType:t.responseType};case"SET_IS_TABLE_VIEW":return{...e,isTableView:t.isTableView};case"SET_SPLIT_VIEW":return{...e,isSplit:t.isSplit};case"SET_PANELS_DATA":return{...e,panels:t.panels};case"SET_DATA_VIEWS":return{...e,dataViews:t.dataViews};case"SET_RIGHT_DATAVIEW":return{...e,rightDataView:t.rightDataView};case"SET_LEFT_DATAVIEW":return{...e,leftDataView:t.leftDataView};case"SET_RIGHT_PANEL":return{...e,right:t.right};case"SET_LEFT_PANEL":return{...e,left:t.left};case"SET_DATA_SOURCES":return{...e,dataSources:t.dataSources};case"SET_IS_DATASOURCE_SAVED":return{...e,isDsSaved:t.isDsSaved};case"SHOW_DATA_SOURCE_SETTING":return{...e,showDataSourceSetting:t.showDataSourceSetting};case"SET_PLUGINS":return{...e,plugins:t.setPlugins};case"SET_USER_TYPE":return{...e,userType:t.userType};case"SET_CURRENT_USER":return{...e,currentUser:t.currentUser};default:return{...e}}};//! moment.js +import{j as W,c as Xo,a as Zo}from"./reactDnd-dc8b0776.js";import{h as Ti,E as wi,c as ki,m as Jo,w as Qo,T as Ei,g as Rs,s as Jr,r as el,u as tl,i as Oi,k as As,a as rl}from"./reactSelect-db5d744f.js";import{b as nl,c as sl,g as al,r as w,R as Zt}from"./react-432945ee.js";import{n as Ue,j as Ya,t as il,a as D,d as Oe,k as ol,l as ll,u as Is,m as ul,N as cl,o as dl,C as fl,H as hl,R as ml,p as Ht,P as pl}from"./vendor-3db6068a.js";import"./memoize-acaceb73.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(s){if(s.ep)return;s.ep=!0;const a=r(s);fetch(s.href,a)}})();const gl="modulepreload",yl=function(e){return"/"+e},Fa={},Er=function(t,r,n){if(!r||r.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(r.map(a=>{if(a=yl(a),a in Fa)return;Fa[a]=!0;const i=a.endsWith(".css"),o=i?'[rel="stylesheet"]':"";if(!!n)for(let d=s.length-1;d>=0;d--){const h=s[d];if(h.href===a&&(!i||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${o}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":gl,i||(c.as="script",c.crossOrigin=""),c.href=a,document.head.appendChild(c),i)return new Promise((d,h)=>{c.addEventListener("load",d),c.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t()).catch(a=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a})};var rg=W.Fragment;function q(e,t,r){return Ti.call(t,"css")?W.jsx(wi,ki(e,t),r):W.jsx(e,t,r)}function Qr(e,t,r){return Ti.call(t,"css")?W.jsxs(wi,ki(e,t),r):W.jsxs(e,t,r)}var ys={},Ua=nl;ys.createRoot=Ua.createRoot,ys.hydrateRoot=Ua.hydrateRoot;const _l=(e,t)=>{switch(t.type){case"SET_LABELS":return{...e,labels:t.labels};case"SET_LOADING":return{...e,loading:t.loading};case"SET_LOGS":return{...e,logs:t.logs};case"SET_LABEL_VALUES":return{...e,labelValues:t.labelValues};case"SET_START_TIME":return{...e,start:t.start};case"SET_STOP_TIME":return{...e,stop:t.stop};case"SET_FROM_TIME":return{...e,from:t.from};case"SET_TO_TIME":return{...e,to:t.to};case"SET_TIME_RANGE_LABEL":return{...e,label:t.label};case"SET_QUERY_LIMIT":return{...e,limit:t.limit};case"SET_RANGE_OPEN":return{...e,rangeOpen:t.rangeOpen};case"SET_BROWSER_OPEN":return{...e,labelsBrowserOpen:t.labelsBrowserOpen};case"SET_SETTINGS_MENU_OPEN":return{...e,settingsMenuOpen:t.settingsMenuOpen};case"SET_TIME_PICKER_OPEN":return{...e,timePickerOpen:t.timePickerOpen};case"SET_SETTINGS_DIALOG_OPEN":return{...e,settingsDialogOpen:t.settingsDialogOpen};case"SET_QUERY":return{...e,query:t.query};case"SET_QUERY_STEP":return{...e,step:t.step};case"SET_API_URL":return{...e,apiUrl:t.apiUrl};case"SET_API_ERRORS":return{...e,apiErrors:t.apiErrors};case"SET_URL_QUERY_PARAMS":return{...e,urlQueryParams:t.urlQueryParams};case"SET_QUERY_TYPE":return{...e,queryType:t.queryType};case"SET_URL_LOCATION":return{...e,urlLocation:t.urlLocation};case"SET_IS_SUBMIT":return{...e,isSubmit:t.isSubmit};case"SET_IS_EMBED":return{...e,isEmbed:t.isEmbed};case"SET_IS_CARDINALITY":return{...e,isCardinality:t.isCardinality};case"SET_MATRIX_DATA":return{...e,matrixData:t.matrixData};case"SET_CHART_TYPE":return{...e,chartType:t.setChartType};case"SET_QUERY_HISTORY":return{...e,queryHistory:t.queryHistory};case"SET_LINKS_HISTORY":return{...e,linksHistory:t.linksHistory};case"SET_HISTORY_OPEN":return{...e,historyOpen:t.historyOpen};case"ADD_NOTIFICATION":return{...e,notifications:t.payload};case"REMOVE_NOTIFICATION":return{...e,notifications:t.payload};case"SET_DEBUG_MODE":return{...e,debugMode:t.debugMode};case"SET_THEME":return{...e,theme:t.theme};case"SET_AUTO_THEME":return{...e,autoTheme:t.autoTheme};case"SET_TABLE_DATA":return{...e,tableData:t.tableData};case"SET_QUERY_TIME":return{...e,time:t.time};case"SET_QUERY_RESOLUTION":return{...e,queryResolution:t.queryResolution};case"SET_IS_EMPTY_VIEW":return{...e,isEmptyView:t.isEmptyView};case"SET_VECTOR_DATA":return{...e,vectorData:t.vectorData};case"SET_RESPONSE_TYPE":return{...e,responseType:t.responseType};case"SET_IS_TABLE_VIEW":return{...e,isTableView:t.isTableView};case"SET_SPLIT_VIEW":return{...e,isSplit:t.isSplit};case"SET_PANELS_DATA":return{...e,panels:t.panels};case"SET_DATA_VIEWS":return{...e,dataViews:t.dataViews};case"SET_RIGHT_DATAVIEW":return{...e,rightDataView:t.rightDataView};case"SET_LEFT_DATAVIEW":return{...e,leftDataView:t.leftDataView};case"SET_RIGHT_PANEL":return{...e,right:t.right};case"SET_LEFT_PANEL":return{...e,left:t.left};case"SET_DATA_SOURCES":return{...e,dataSources:t.dataSources};case"SET_IS_DATASOURCE_SAVED":return{...e,isDsSaved:t.isDsSaved};case"SHOW_DATA_SOURCE_SETTING":return{...e,showDataSourceSetting:t.showDataSourceSetting};case"SET_PLUGINS":return{...e,plugins:t.setPlugins};case"SET_USER_TYPE":return{...e,userType:t.userType};case"SET_CURRENT_USER":return{...e,currentUser:t.currentUser};default:return{...e}}};//! moment.js //! version : 2.29.4 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT @@ -9,7 +9,7 @@ Arguments: `+Array.prototype.slice.call(n).join("")+` `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var Wa={};function Ri(e,t){S.deprecationHandler!=null&&S.deprecationHandler(e,t),Wa[e]||(Di(t),Wa[e]=!0)}S.suppressDeprecationWarnings=!1;S.deprecationHandler=null;function Qe(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function vl(e){var t,r;for(r in e)H(e,r)&&(t=e[r],Qe(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Ss(e,t){var r=yt({},e),n;for(n in t)H(t,n)&&(Dt(e[n])&&Dt(t[n])?(r[n]={},yt(r[n],e[n]),yt(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)H(e,n)&&!H(t,n)&&Dt(e[n])&&(r[n]=yt({},r[n]));return r}function Ns(e){e!=null&&this.set(e)}var bs;Object.keys?bs=Object.keys:bs=function(e){var t,r=[];for(t in e)H(e,t)&&r.push(t);return r};var Tl={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function wl(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return Qe(n)?n.call(t,r):n}function Ze(e,t,r){var n=""+Math.abs(e),s=t-n.length,a=e>=0;return(a?r?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}var Ys=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Gr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,us={},Qt={};function O(e,t,r,n){var s=n;typeof n=="string"&&(s=function(){return this[n]()}),e&&(Qt[e]=s),t&&(Qt[t[0]]=function(){return Ze(s.apply(this,arguments),t[1],t[2])}),r&&(Qt[r]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function kl(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function El(e){var t=e.match(Ys),r,n;for(r=0,n=t.length;r=0&&Gr.test(e);)e=e.replace(Gr,n),Gr.lastIndex=0,r-=1;return e}var Ol={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function xl(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Ys).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var Ml="Invalid date";function Dl(){return this._invalidDate}var Rl="%d",Al=/\d{1,2}/;function Il(e){return this._ordinal.replace("%d",e)}var Pl={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Cl(e,t,r,n){var s=this._relativeTime[r];return Qe(s)?s(e,t,r,n):s.replace(/%d/i,e)}function Ll(e,t){var r=this._relativeTime[e>0?"future":"past"];return Qe(r)?r(t):r.replace(/%s/i,t)}var _r={};function Te(e,t){var r=e.toLowerCase();_r[r]=_r[r+"s"]=_r[t]=e}function We(e){return typeof e=="string"?_r[e]||_r[e.toLowerCase()]:void 0}function Fs(e){var t={},r,n;for(n in e)H(e,n)&&(r=We(n),r&&(t[r]=e[n]));return t}var Ii={};function we(e,t){Ii[e]=t}function Nl(e){var t=[],r;for(r in e)H(e,r)&&t.push({unit:r,priority:Ii[r]});return t.sort(function(n,s){return n.priority-s.priority}),t}function yn(e){return e%4===0&&e%100!==0||e%400===0}function Ne(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function F(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Ne(t)),r}function sr(e,t){return function(r){return r!=null?(Pi(this,e,r),S.updateOffset(this,t),this):an(this,e)}}function an(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Pi(e,t,r){e.isValid()&&!isNaN(r)&&(t==="FullYear"&&yn(e.year())&&e.month()===1&&e.date()===29?(r=F(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),wn(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}function Yl(e){return e=We(e),Qe(this[e])?this[e]():this}function Fl(e,t){if(typeof e=="object"){e=Fs(e);var r=Nl(e),n,s=r.length;for(n=0;n68?1900:2e3)};var zi=sr("FullYear",!0);function nu(){return yn(this.year())}function su(e,t,r,n,s,a,i){var o;return e<100&&e>=0?(o=new Date(e+400,t,r,n,s,a,i),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,r,n,s,a,i),o}function vr(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ln(e,t,r){var n=7+t-r,s=(7+vr(e,0,n).getUTCDay()-t)%7;return-s+n-1}function Bi(e,t,r,n,s){var a=(7+r-n)%7,i=ln(e,n,s),o=1+7*(t-1)+a+i,l,c;return o<=0?(l=e-1,c=Sr(l)+o):o>Sr(e)?(l=e+1,c=o-Sr(e)):(l=e,c=o),{year:l,dayOfYear:c}}function Tr(e,t,r){var n=ln(e.year(),t,r),s=Math.floor((e.dayOfYear()-n-1)/7)+1,a,i;return s<1?(i=e.year()-1,a=s+lt(i,t,r)):s>lt(e.year(),t,r)?(a=s-lt(e.year(),t,r),i=e.year()+1):(i=e.year(),a=s),{week:a,year:i}}function lt(e,t,r){var n=ln(e,t,r),s=ln(e+1,t,r);return(Sr(e)-n+s)/7}O("w",["ww",2],"wo","week");O("W",["WW",2],"Wo","isoWeek");Te("week","w");Te("isoWeek","W");we("week",5);we("isoWeek",5);v("w",re);v("ww",re,Ce);v("W",re);v("WW",re,Ce);Dr(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=F(e)});function au(e){return Tr(e,this._week.dow,this._week.doy).week}var iu={dow:0,doy:6};function ou(){return this._week.dow}function lu(){return this._week.doy}function uu(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function cu(e){var t=Tr(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}O("d",0,"do","day");O("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});O("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});O("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});O("e",0,0,"weekday");O("E",0,0,"isoWeekday");Te("day","d");Te("weekday","e");Te("isoWeekday","E");we("day",11);we("weekday",11);we("isoWeekday",11);v("d",re);v("e",re);v("E",re);v("dd",function(e,t){return t.weekdaysMinRegex(e)});v("ddd",function(e,t){return t.weekdaysShortRegex(e)});v("dddd",function(e,t){return t.weekdaysRegex(e)});Dr(["dd","ddd","dddd"],function(e,t,r,n){var s=r._locale.weekdaysParse(e,n,r._strict);s!=null?t.d=s:L(r).invalidWeekday=e});Dr(["d","e","E"],function(e,t,r,n){t[n]=F(e)});function du(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function fu(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ws(e,t){return e.slice(t,7).concat(e.slice(0,t))}var hu="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ji="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),mu="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),pu=Mr,gu=Mr,yu=Mr;function _u(e,t){var r=Ve(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Ws(r,this._week.dow):e?r[e.day()]:r}function Su(e){return e===!0?Ws(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function bu(e){return e===!0?Ws(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function vu(e,t,r){var n,s,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=Je([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return r?t==="dddd"?(s=ue.call(this._weekdaysParse,i),s!==-1?s:null):t==="ddd"?(s=ue.call(this._shortWeekdaysParse,i),s!==-1?s:null):(s=ue.call(this._minWeekdaysParse,i),s!==-1?s:null):t==="dddd"?(s=ue.call(this._weekdaysParse,i),s!==-1||(s=ue.call(this._shortWeekdaysParse,i),s!==-1)?s:(s=ue.call(this._minWeekdaysParse,i),s!==-1?s:null)):t==="ddd"?(s=ue.call(this._shortWeekdaysParse,i),s!==-1||(s=ue.call(this._weekdaysParse,i),s!==-1)?s:(s=ue.call(this._minWeekdaysParse,i),s!==-1?s:null)):(s=ue.call(this._minWeekdaysParse,i),s!==-1||(s=ue.call(this._weekdaysParse,i),s!==-1)?s:(s=ue.call(this._shortWeekdaysParse,i),s!==-1?s:null))}function Tu(e,t,r){var n,s,a;if(this._weekdaysParseExact)return vu.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=Je([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function wu(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=du(e,this.localeData()),this.add(e-t,"d")):t}function ku(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Eu(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=fu(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Ou(e){return this._weekdaysParseExact?(H(this,"_weekdaysRegex")||Hs.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(H(this,"_weekdaysRegex")||(this._weekdaysRegex=pu),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function xu(e){return this._weekdaysParseExact?(H(this,"_weekdaysRegex")||Hs.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(H(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=gu),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Mu(e){return this._weekdaysParseExact?(H(this,"_weekdaysRegex")||Hs.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(H(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=yu),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Hs(){function e(d,h){return h.length-d.length}var t=[],r=[],n=[],s=[],a,i,o,l,c;for(a=0;a<7;a++)i=Je([2e3,1]).day(a),o=Ie(this.weekdaysMin(i,"")),l=Ie(this.weekdaysShort(i,"")),c=Ie(this.weekdays(i,"")),t.push(o),r.push(l),n.push(c),s.push(o),s.push(l),s.push(c);t.sort(e),r.sort(e),n.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function zs(){return this.hours()%12||12}function Du(){return this.hours()||24}O("H",["HH",2],0,"hour");O("h",["hh",2],0,zs);O("k",["kk",2],0,Du);O("hmm",0,0,function(){return""+zs.apply(this)+Ze(this.minutes(),2)});O("hmmss",0,0,function(){return""+zs.apply(this)+Ze(this.minutes(),2)+Ze(this.seconds(),2)});O("Hmm",0,0,function(){return""+this.hours()+Ze(this.minutes(),2)});O("Hmmss",0,0,function(){return""+this.hours()+Ze(this.minutes(),2)+Ze(this.seconds(),2)});function Vi(e,t){O(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Vi("a",!0);Vi("A",!1);Te("hour","h");we("hour",13);function Gi(e,t){return t._meridiemParse}v("a",Gi);v("A",Gi);v("H",re);v("h",re);v("k",re);v("HH",re,Ce);v("hh",re,Ce);v("kk",re,Ce);v("hmm",Ni);v("hmmss",Yi);v("Hmm",Ni);v("Hmmss",Yi);X(["H","HH"],he);X(["k","kk"],function(e,t,r){var n=F(e);t[he]=n===24?0:n});X(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});X(["h","hh"],function(e,t,r){t[he]=F(e),L(r).bigHour=!0});X("hmm",function(e,t,r){var n=e.length-2;t[he]=F(e.substr(0,n)),t[je]=F(e.substr(n)),L(r).bigHour=!0});X("hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[he]=F(e.substr(0,n)),t[je]=F(e.substr(n,2)),t[ot]=F(e.substr(s)),L(r).bigHour=!0});X("Hmm",function(e,t,r){var n=e.length-2;t[he]=F(e.substr(0,n)),t[je]=F(e.substr(n))});X("Hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[he]=F(e.substr(0,n)),t[je]=F(e.substr(n,2)),t[ot]=F(e.substr(s))});function Ru(e){return(e+"").toLowerCase().charAt(0)==="p"}var Au=/[ap]\.?m?\.?/i,Iu=sr("Hours",!0);function Pu(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var qi={calendar:Tl,longDateFormat:Ol,invalidDate:Ml,ordinal:Rl,dayOfMonthOrdinalParse:Al,relativeTime:Pl,months:Gl,monthsShort:Fi,week:iu,weekdays:hu,weekdaysMin:mu,weekdaysShort:ji,meridiemParse:Au},se={},pr={},wr;function Cu(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r0;){if(s=kn(a.slice(0,r).join("-")),s)return s;if(n&&n.length>=r&&Cu(a,n)>=r-1)break;r--}t++}return wr}function Nu(e){return e.match("^[^/\\\\]*$")!=null}function kn(e){var t=null,r;if(se[e]===void 0&&typeof module<"u"&&module&&module.exports&&Nu(e))try{t=wr._abbr,r=require,r("./locale/"+e),St(t)}catch{se[e]=null}return se[e]}function St(e,t){var r;return e&&(De(t)?r=dt(e):r=Bs(e,t),r?wr=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),wr._abbr}function Bs(e,t){if(t!==null){var r,n=qi;if(t.abbr=e,se[e]!=null)Ri("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=se[e]._config;else if(t.parentLocale!=null)if(se[t.parentLocale]!=null)n=se[t.parentLocale]._config;else if(r=kn(t.parentLocale),r!=null)n=r._config;else return pr[t.parentLocale]||(pr[t.parentLocale]=[]),pr[t.parentLocale].push({name:e,config:t}),null;return se[e]=new Ns(Ss(n,t)),pr[e]&&pr[e].forEach(function(s){Bs(s.name,s.config)}),St(e),se[e]}else return delete se[e],null}function Yu(e,t){if(t!=null){var r,n,s=qi;se[e]!=null&&se[e].parentLocale!=null?se[e].set(Ss(se[e]._config,t)):(n=kn(e),n!=null&&(s=n._config),t=Ss(s,t),n==null&&(t.abbr=e),r=new Ns(t),r.parentLocale=se[e],se[e]=r),St(e)}else se[e]!=null&&(se[e].parentLocale!=null?(se[e]=se[e].parentLocale,e===St()&&St(e)):se[e]!=null&&delete se[e]);return se[e]}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return wr;if(!Ve(e)){if(t=kn(e),t)return t;e=[e]}return Lu(e)}function Fu(){return bs(se)}function js(e){var t,r=e._a;return r&&L(e).overflow===-2&&(t=r[it]<0||r[it]>11?it:r[Xe]<1||r[Xe]>wn(r[ve],r[it])?Xe:r[he]<0||r[he]>24||r[he]===24&&(r[je]!==0||r[ot]!==0||r[xt]!==0)?he:r[je]<0||r[je]>59?je:r[ot]<0||r[ot]>59?ot:r[xt]<0||r[xt]>999?xt:-1,L(e)._overflowDayOfYear&&(tXe)&&(t=Xe),L(e)._overflowWeeks&&t===-1&&(t=Bl),L(e)._overflowWeekday&&t===-1&&(t=jl),L(e).overflow=t),e}var Uu=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,$u=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Wu=/Z|[+-]\d\d(?::?\d\d)?/,qr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],cs=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Hu=/^\/?Date\((-?\d+)/i,zu=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Bu={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ki(e){var t,r,n=e._i,s=Uu.exec(n)||$u.exec(n),a,i,o,l,c=qr.length,d=cs.length;if(s){for(L(e).iso=!0,t=0,r=c;tSr(i)||e._dayOfYear===0)&&(L(e)._overflowDayOfYear=!0),r=vr(i,0,e._dayOfYear),e._a[it]=r.getUTCMonth(),e._a[Xe]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=s[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[he]===24&&e._a[je]===0&&e._a[ot]===0&&e._a[xt]===0&&(e._nextDay=!0,e._a[he]=0),e._d=(e._useUTC?vr:su).apply(null,n),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[he]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(L(e).weekdayMismatch=!0)}}function Ju(e){var t,r,n,s,a,i,o,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,r=Xt(t.GG,e._a[ve],Tr(te(),1,4).year),n=Xt(t.W,1),s=Xt(t.E,1),(s<1||s>7)&&(l=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,c=Tr(te(),a,i),r=Xt(t.gg,e._a[ve],c.year),n=Xt(t.w,c.week),t.d!=null?(s=t.d,(s<0||s>6)&&(l=!0)):t.e!=null?(s=t.e+a,(t.e<0||t.e>6)&&(l=!0)):s=a),n<1||n>lt(r,a,i)?L(e)._overflowWeeks=!0:l!=null?L(e)._overflowWeekday=!0:(o=Bi(r,n,s,a,i),e._a[ve]=o.year,e._dayOfYear=o.dayOfYear)}S.ISO_8601=function(){};S.RFC_2822=function(){};function Gs(e){if(e._f===S.ISO_8601){Ki(e);return}if(e._f===S.RFC_2822){Xi(e);return}e._a=[],L(e).empty=!0;var t=""+e._i,r,n,s,a,i,o=t.length,l=0,c,d;for(s=Ai(e._f,e._locale).match(Ys)||[],d=s.length,r=0;r0&&L(e).unusedInput.push(i),t=t.slice(t.indexOf(n)+n.length),l+=n.length),Qt[a]?(n?L(e).empty=!1:L(e).unusedTokens.push(a),zl(a,n,e)):e._strict&&!n&&L(e).unusedTokens.push(a);L(e).charsLeftOver=o-l,t.length>0&&L(e).unusedInput.push(t),e._a[he]<=12&&L(e).bigHour===!0&&e._a[he]>0&&(L(e).bigHour=void 0),L(e).parsedDateParts=e._a.slice(0),L(e).meridiem=e._meridiem,e._a[he]=Qu(e._locale,e._a[he],e._meridiem),c=L(e).era,c!==null&&(e._a[ve]=e._locale.erasConvertYear(c,e._a[ve])),Vs(e),js(e)}function Qu(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function ec(e){var t,r,n,s,a,i,o=!1,l=e._f.length;if(l===0){L(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;sthis?this:e:gn()});function Qi(e,t){var r,n;if(t.length===1&&Ve(t[0])&&(t=t[0]),!t.length)return te();for(r=t[0],n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function vc(){if(!De(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Ls(e,this),e=Zi(e),e._a?(t=e._isUTC?Je(e._a):te(e._a),this._isDSTShifted=this.isValid()&&fc(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Tc(){return this.isValid()?!this._isUTC:!1}function wc(){return this.isValid()?this._isUTC:!1}function to(){return this.isValid()?this._isUTC&&this._offset===0:!1}var kc=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ec=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qe(e,t){var r=e,n=null,s,a,i;return tn(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:ut(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=kc.exec(e))?(s=n[1]==="-"?-1:1,r={y:0,d:F(n[Xe])*s,h:F(n[he])*s,m:F(n[je])*s,s:F(n[ot])*s,ms:F(Ts(n[xt]*1e3))*s}):(n=Ec.exec(e))?(s=n[1]==="-"?-1:1,r={y:Ot(n[2],s),M:Ot(n[3],s),w:Ot(n[4],s),d:Ot(n[5],s),h:Ot(n[6],s),m:Ot(n[7],s),s:Ot(n[8],s)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(i=Oc(te(r.from),te(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),a=new En(r),tn(e)&&H(e,"_locale")&&(a._locale=e._locale),tn(e)&&H(e,"_isValid")&&(a._isValid=e._isValid),a}qe.fn=En.prototype;qe.invalid=dc;function Ot(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function za(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Oc(e,t){var r;return e.isValid()&&t.isValid()?(t=Ks(t,e),e.isBefore(t)?r=za(e,t):(r=za(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function ro(e,t){return function(r,n){var s,a;return n!==null&&!isNaN(+n)&&(Ri(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=r,r=n,n=a),s=qe(r,n),no(this,s,e),this}}function no(e,t,r,n){var s=t._milliseconds,a=Ts(t._days),i=Ts(t._months);e.isValid()&&(n=n??!0,i&&$i(e,an(e,"Month")+i*r),a&&Pi(e,"Date",an(e,"Date")+a*r),s&&e._d.setTime(e._d.valueOf()+s*r),n&&S.updateOffset(e,a||i))}var xc=ro(1,"add"),Mc=ro(-1,"subtract");function so(e){return typeof e=="string"||e instanceof String}function Dc(e){return Ge(e)||Or(e)||so(e)||ut(e)||Ac(e)||Rc(e)||e===null||e===void 0}function Rc(e){var t=Dt(e)&&!Ps(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,a,i=n.length;for(s=0;sr.valueOf():r.valueOf()9999?en(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Qe(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",en(r,"Z")):en(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function jc(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,s,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(r+n+s+a)}function Vc(e){e||(e=this.isUtc()?S.defaultFormatUtc:S.defaultFormat);var t=en(this,e);return this.localeData().postformat(t)}function Gc(e,t){return this.isValid()&&(Ge(e)&&e.isValid()||te(e).isValid())?qe({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function qc(e){return this.from(te(),e)}function Kc(e,t){return this.isValid()&&(Ge(e)&&e.isValid()||te(e).isValid())?qe({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Xc(e){return this.to(te(),e)}function ao(e){var t;return e===void 0?this._locale._abbr:(t=dt(e),t!=null&&(this._locale=t),this)}var io=$e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function oo(){return this._locale}var un=1e3,er=60*un,cn=60*er,lo=(365*400+97)*24*cn;function tr(e,t){return(e%t+t)%t}function uo(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-lo:new Date(e,t,r).valueOf()}function co(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-lo:Date.UTC(e,t,r)}function Zc(e){var t,r;if(e=We(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?co:uo,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tr(t+(this._isUTC?0:this.utcOffset()*er),cn);break;case"minute":t=this._d.valueOf(),t-=tr(t,er);break;case"second":t=this._d.valueOf(),t-=tr(t,un);break}return this._d.setTime(t),S.updateOffset(this,!0),this}function Jc(e){var t,r;if(e=We(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?co:uo,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=cn-tr(t+(this._isUTC?0:this.utcOffset()*er),cn)-1;break;case"minute":t=this._d.valueOf(),t+=er-tr(t,er)-1;break;case"second":t=this._d.valueOf(),t+=un-tr(t,un)-1;break}return this._d.setTime(t),S.updateOffset(this,!0),this}function Qc(){return this._d.valueOf()-(this._offset||0)*6e4}function ed(){return Math.floor(this.valueOf()/1e3)}function td(){return new Date(this.valueOf())}function rd(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function nd(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function sd(){return this.isValid()?this.toISOString():null}function ad(){return Cs(this)}function id(){return yt({},L(this))}function od(){return L(this).overflow}function ld(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}O("N",0,0,"eraAbbr");O("NN",0,0,"eraAbbr");O("NNN",0,0,"eraAbbr");O("NNNN",0,0,"eraName");O("NNNNN",0,0,"eraNarrow");O("y",["y",1],"yo","eraYear");O("y",["yy",2],0,"eraYear");O("y",["yyy",3],0,"eraYear");O("y",["yyyy",4],0,"eraYear");v("N",Xs);v("NN",Xs);v("NNN",Xs);v("NNNN",Sd);v("NNNNN",bd);X(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var s=r._locale.erasParse(e,n,r._strict);s?L(r).era=s:L(r).invalidEra=e});v("y",ar);v("yy",ar);v("yyy",ar);v("yyyy",ar);v("yo",vd);X(["y","yy","yyy","yyyy"],ve);X(["yo"],function(e,t,r,n){var s;r._locale._eraYearOrdinalRegex&&(s=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[ve]=r._locale.eraYearOrdinalParse(e,s):t[ve]=parseInt(e,10)});function ud(e,t){var r,n,s,a=this._eras||dt("en")._eras;for(r=0,n=a.length;r=0)return a[n]}function dd(e,t){var r=e.since<=e.until?1:-1;return t===void 0?S(e.since).year():S(e.since).year()+(t-e.offset)*r}function fd(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;ea&&(t=a),Md.call(this,e,t,r,n,s))}function Md(e,t,r,n,s){var a=Bi(e,t,r,n,s),i=vr(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}O("Q",0,"Qo","quarter");Te("quarter","Q");we("quarter",7);v("Q",Ci);X("Q",function(e,t){t[it]=(F(e)-1)*3});function Dd(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}O("D",["DD",2],"Do","date");Te("date","D");we("date",9);v("D",re);v("DD",re,Ce);v("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});X(["D","DD"],Xe);X("Do",function(e,t){t[Xe]=F(e.match(re)[0])});var ho=sr("Date",!0);O("DDD",["DDDD",3],"DDDo","dayOfYear");Te("dayOfYear","DDD");we("dayOfYear",4);v("DDD",Sn);v("DDDD",Li);X(["DDD","DDDD"],function(e,t,r){r._dayOfYear=F(e)});function Rd(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}O("m",["mm",2],0,"minute");Te("minute","m");we("minute",14);v("m",re);v("mm",re,Ce);X(["m","mm"],je);var Ad=sr("Minutes",!1);O("s",["ss",2],0,"second");Te("second","s");we("second",15);v("s",re);v("ss",re,Ce);X(["s","ss"],ot);var Id=sr("Seconds",!1);O("S",0,0,function(){return~~(this.millisecond()/100)});O(0,["SS",2],0,function(){return~~(this.millisecond()/10)});O(0,["SSS",3],0,"millisecond");O(0,["SSSS",4],0,function(){return this.millisecond()*10});O(0,["SSSSS",5],0,function(){return this.millisecond()*100});O(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});O(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});O(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});O(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Te("millisecond","ms");we("millisecond",16);v("S",Sn,Ci);v("SS",Sn,Ce);v("SSS",Sn,Li);var _t,mo;for(_t="SSSS";_t.length<=9;_t+="S")v(_t,ar);function Pd(e,t){t[xt]=F(("0."+e)*1e3)}for(_t="S";_t.length<=9;_t+="S")X(_t,Pd);mo=sr("Milliseconds",!1);O("z",0,0,"zoneAbbr");O("zz",0,0,"zoneName");function Cd(){return this._isUTC?"UTC":""}function Ld(){return this._isUTC?"Coordinated Universal Time":""}var p=xr.prototype;p.add=xc;p.calendar=Cc;p.clone=Lc;p.diff=Hc;p.endOf=Jc;p.format=Vc;p.from=Gc;p.fromNow=qc;p.to=Kc;p.toNow=Xc;p.get=Yl;p.invalidAt=od;p.isAfter=Nc;p.isBefore=Yc;p.isBetween=Fc;p.isSame=Uc;p.isSameOrAfter=$c;p.isSameOrBefore=Wc;p.isValid=ad;p.lang=io;p.locale=ao;p.localeData=oo;p.max=ac;p.min=sc;p.parsingFlags=id;p.set=Fl;p.startOf=Zc;p.subtract=Mc;p.toArray=rd;p.toObject=nd;p.toDate=td;p.toISOString=Bc;p.inspect=jc;typeof Symbol<"u"&&Symbol.for!=null&&(p[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});p.toJSON=sd;p.toString=zc;p.unix=ed;p.valueOf=Qc;p.creationData=ld;p.eraName=fd;p.eraNarrow=hd;p.eraAbbr=md;p.eraYear=pd;p.year=zi;p.isLeapYear=nu;p.weekYear=Td;p.isoWeekYear=wd;p.quarter=p.quarters=Dd;p.month=Wi;p.daysInMonth=eu;p.week=p.weeks=uu;p.isoWeek=p.isoWeeks=cu;p.weeksInYear=Od;p.weeksInWeekYear=xd;p.isoWeeksInYear=kd;p.isoWeeksInISOWeekYear=Ed;p.date=ho;p.day=p.days=wu;p.weekday=ku;p.isoWeekday=Eu;p.dayOfYear=Rd;p.hour=p.hours=Iu;p.minute=p.minutes=Ad;p.second=p.seconds=Id;p.millisecond=p.milliseconds=mo;p.utcOffset=mc;p.utc=gc;p.local=yc;p.parseZone=_c;p.hasAlignedHourOffset=Sc;p.isDST=bc;p.isLocal=Tc;p.isUtcOffset=wc;p.isUtc=to;p.isUTC=to;p.zoneAbbr=Cd;p.zoneName=Ld;p.dates=$e("dates accessor is deprecated. Use date instead.",ho);p.months=$e("months accessor is deprecated. Use month instead",Wi);p.years=$e("years accessor is deprecated. Use year instead",zi);p.zone=$e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",pc);p.isDSTShifted=$e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",vc);function Nd(e){return te(e*1e3)}function Yd(){return te.apply(null,arguments).parseZone()}function po(e){return e}var z=Ns.prototype;z.calendar=wl;z.longDateFormat=xl;z.invalidDate=Dl;z.ordinal=Il;z.preparse=po;z.postformat=po;z.relativeTime=Cl;z.pastFuture=Ll;z.set=vl;z.eras=ud;z.erasParse=cd;z.erasConvertYear=dd;z.erasAbbrRegex=yd;z.erasNameRegex=gd;z.erasNarrowRegex=_d;z.months=Xl;z.monthsShort=Zl;z.monthsParse=Ql;z.monthsRegex=ru;z.monthsShortRegex=tu;z.week=au;z.firstDayOfYear=lu;z.firstDayOfWeek=ou;z.weekdays=_u;z.weekdaysMin=bu;z.weekdaysShort=Su;z.weekdaysParse=Tu;z.weekdaysRegex=Ou;z.weekdaysShortRegex=xu;z.weekdaysMinRegex=Mu;z.isPM=Ru;z.meridiem=Pu;function dn(e,t,r,n){var s=dt(),a=Je().set(n,t);return s[r](a,e)}function go(e,t,r){if(ut(e)&&(t=e,e=void 0),e=e||"",t!=null)return dn(e,t,r,"month");var n,s=[];for(n=0;n<12;n++)s[n]=dn(e,n,r,"month");return s}function Js(e,t,r,n){typeof e=="boolean"?(ut(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,ut(t)&&(r=t,t=void 0),t=t||"");var s=dt(),a=e?s._week.dow:0,i,o=[];if(r!=null)return dn(t,(r+a)%7,n,"day");for(i=0;i<7;i++)o[i]=dn(t,(i+a)%7,n,"day");return o}function Fd(e,t){return go(e,t,"months")}function Ud(e,t){return go(e,t,"monthsShort")}function $d(e,t,r){return Js(e,t,r,"weekdays")}function Wd(e,t,r){return Js(e,t,r,"weekdaysShort")}function Hd(e,t,r){return Js(e,t,r,"weekdaysMin")}St("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=F(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});S.lang=$e("moment.lang is deprecated. Use moment.locale instead.",St);S.langData=$e("moment.langData is deprecated. Use moment.localeData instead.",dt);var st=Math.abs;function zd(){var e=this._data;return this._milliseconds=st(this._milliseconds),this._days=st(this._days),this._months=st(this._months),e.milliseconds=st(e.milliseconds),e.seconds=st(e.seconds),e.minutes=st(e.minutes),e.hours=st(e.hours),e.months=st(e.months),e.years=st(e.years),this}function yo(e,t,r,n){var s=qe(t,r);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function Bd(e,t){return yo(this,e,t,1)}function jd(e,t){return yo(this,e,t,-1)}function Ba(e){return e<0?Math.floor(e):Math.ceil(e)}function Vd(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,s,a,i,o,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Ba(ks(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,s=Ne(e/1e3),n.seconds=s%60,a=Ne(s/60),n.minutes=a%60,i=Ne(a/60),n.hours=i%24,t+=Ne(i/24),l=Ne(_o(t)),r+=l,t-=Ba(ks(l)),o=Ne(r/12),r%=12,n.days=t,n.months=r,n.years=o,this}function _o(e){return e*4800/146097}function ks(e){return e*146097/4800}function Gd(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=We(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+_o(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(ks(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function qd(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+F(this._months/12)*31536e6:NaN}function ft(e){return function(){return this.as(e)}}var Kd=ft("ms"),Xd=ft("s"),Zd=ft("m"),Jd=ft("h"),Qd=ft("d"),ef=ft("w"),tf=ft("M"),rf=ft("Q"),nf=ft("y");function sf(){return qe(this)}function af(e){return e=We(e),this.isValid()?this[e+"s"]():NaN}function At(e){return function(){return this.isValid()?this._data[e]:NaN}}var of=At("milliseconds"),lf=At("seconds"),uf=At("minutes"),cf=At("hours"),df=At("days"),ff=At("months"),hf=At("years");function mf(){return Ne(this.days()/7)}var at=Math.round,Jt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function pf(e,t,r,n,s){return s.relativeTime(t||1,!!r,e,n)}function gf(e,t,r,n){var s=qe(e).abs(),a=at(s.as("s")),i=at(s.as("m")),o=at(s.as("h")),l=at(s.as("d")),c=at(s.as("M")),d=at(s.as("w")),h=at(s.as("y")),f=a<=r.ss&&["s",a]||a0,f[4]=n,pf.apply(null,f)}function yf(e){return e===void 0?at:typeof e=="function"?(at=e,!0):!1}function _f(e,t){return Jt[e]===void 0?!1:t===void 0?Jt[e]:(Jt[e]=t,e==="s"&&(Jt.ss=t-1),!0)}function Sf(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=Jt,s,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},Jt,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),s=this.localeData(),a=gf(this,!r,n,s),r&&(a=s.pastFuture(+this,a)),s.postformat(a)}var ds=Math.abs;function zt(e){return(e>0)-(e<0)||+e}function xn(){if(!this.isValid())return this.localeData().invalidDate();var e=ds(this._milliseconds)/1e3,t=ds(this._days),r=ds(this._months),n,s,a,i,o=this.asSeconds(),l,c,d,h;return o?(n=Ne(e/60),s=Ne(n/60),e%=60,n%=60,a=Ne(r/12),r%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=o<0?"-":"",c=zt(this._months)!==zt(o)?"-":"",d=zt(this._days)!==zt(o)?"-":"",h=zt(this._milliseconds)!==zt(o)?"-":"",l+"P"+(a?c+a+"Y":"")+(r?c+r+"M":"")+(t?d+t+"D":"")+(s||n||e?"T":"")+(s?h+s+"H":"")+(n?h+n+"M":"")+(e?h+i+"S":"")):"P0D"}var $=En.prototype;$.isValid=cc;$.abs=zd;$.add=Bd;$.subtract=jd;$.as=Gd;$.asMilliseconds=Kd;$.asSeconds=Xd;$.asMinutes=Zd;$.asHours=Jd;$.asDays=Qd;$.asWeeks=ef;$.asMonths=tf;$.asQuarters=rf;$.asYears=nf;$.valueOf=qd;$._bubble=Vd;$.clone=sf;$.get=af;$.milliseconds=of;$.seconds=lf;$.minutes=uf;$.hours=cf;$.days=df;$.weeks=mf;$.months=ff;$.years=hf;$.humanize=Sf;$.toISOString=xn;$.toString=xn;$.toJSON=xn;$.locale=ao;$.localeData=oo;$.toIsoString=$e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",xn);$.lang=io;O("X",0,0,"unix");O("x",0,0,"valueOf");v("x",vn);v("X",$l);X("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});X("x",function(e,t,r){r._d=new Date(F(e))});//! moment.js S.version="2.29.4";Sl(te);S.fn=p;S.min=ic;S.max=oc;S.now=lc;S.utc=Je;S.unix=Nd;S.months=Fd;S.isDate=Or;S.locale=St;S.invalid=gn;S.duration=qe;S.isMoment=Ge;S.weekdays=$d;S.parseZone=Yd;S.localeData=dt;S.isDuration=tn;S.monthsShort=Ud;S.weekdaysMin=Hd;S.defineLocale=Bs;S.updateLocale=Yu;S.locales=Fu;S.weekdaysShort=Wd;S.normalizeUnits=We;S.relativeTimeRounding=yf;S.relativeTimeThreshold=_f;S.calendarFormat=Pc;S.prototype=p;S.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const ng=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),bf={}.API_URL||window.location.protocol+"//"+window.location.host,So={production:!1,environment:"dev",apiUrl:bf||"http://localhost:3100"};function vf(e){return!1}var fs={exports:{}};/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */var ja;function Va(){return ja||(ja=1,function(e,t){(function(r,n){e.exports=n()})(sl,function(){const{entries:r,setPrototypeOf:n,isFrozen:s,getPrototypeOf:a,getOwnPropertyDescriptor:i}=Object;let{freeze:o,seal:l,create:c}=Object,{apply:d,construct:h}=typeof Reflect<"u"&&Reflect;o||(o=function(R){return R}),l||(l=function(R){return R}),d||(d=function(R,V,U){return R.apply(V,U)}),h||(h=function(R,V){return new R(...V)});const f=x(Array.prototype.forEach),_=x(Array.prototype.pop),m=x(Array.prototype.push),g=x(String.prototype.toLowerCase),I=x(String.prototype.toString),Y=x(String.prototype.match),G=x(String.prototype.replace),K=x(String.prototype.indexOf),M=x(String.prototype.trim),A=x(RegExp.prototype.test),B=Q(TypeError);function x(j){return function(R){for(var V=arguments.length,U=new Array(V>1?V-1:0),fe=1;fe2&&arguments[2]!==void 0?arguments[2]:g;n&&n(j,null);let U=R.length;for(;U--;){let fe=R[U];if(typeof fe=="string"){const Be=V(fe);Be!==fe&&(s(R)||(R[U]=Be),fe=Be)}j[fe]=!0}return j}function b(j){const R=c(null);for(const[V,U]of r(j))i(j,V)!==void 0&&(R[V]=U);return R}function N(j,R){for(;j!==null;){const U=i(j,R);if(U){if(U.get)return x(U.get);if(typeof U.value=="function")return x(U.value)}j=a(j)}function V(U){return console.warn("fallback value for",U),null}return V}const Z=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ae=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),J=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),de=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ke=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),bt=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ae=o(["#text"]),Cr=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),It=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Lr=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Pt=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Un=l(/\{\{[\w\W]*|[\w\W]*\}\}/gm),tt=l(/<%[\w\W]*|[\w\W]*%>/gm),Ct=l(/\${[\w\W]*}/gm),ur=l(/^data-[\-\w.\u00B7-\uFFFF]/),$n=l(/^aria-[\-\w]+$/),Nr=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ze=l(/^(?:\w+script|data):/i),Wn=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Yr=l(/^html$/i);var Fr=Object.freeze({__proto__:null,MUSTACHE_EXPR:Un,ERB_EXPR:tt,TMPLIT_EXPR:Ct,DATA_ATTR:ur,ARIA_ATTR:$n,IS_ALLOWED_URI:Nr,IS_SCRIPT_OR_DATA:ze,ATTR_WHITESPACE:Wn,DOCTYPE_NAME:Yr});const Hn=function(){return typeof window>"u"?null:window},zn=function(R,V){if(typeof R!="object"||typeof R.createPolicy!="function")return null;let U=null;const fe="data-tt-policy-suffix";V&&V.hasAttribute(fe)&&(U=V.getAttribute(fe));const Be="dompurify"+(U?"#"+U:"");try{return R.createPolicy(Be,{createHTML(ht){return ht},createScriptURL(ht){return ht}})}catch{return console.warn("TrustedTypes policy "+Be+" could not be created."),null}};function Ur(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hn();const R=E=>Ur(E);if(R.version="3.0.6",R.removed=[],!j||!j.document||j.document.nodeType!==9)return R.isSupported=!1,R;let{document:V}=j;const U=V,fe=U.currentScript,{DocumentFragment:Be,HTMLTemplateElement:ht,Node:mt,Element:pt,NodeFilter:cr,NamedNodeMap:$r=j.NamedNodeMap||j.MozNamedAttrMap,HTMLFormElement:jn,DOMParser:P,trustedTypes:vt}=j,Lt=pt.prototype,Wr=N(Lt,"cloneNode"),da=N(Lt,"nextSibling"),Po=N(Lt,"childNodes"),Vn=N(Lt,"parentNode");if(typeof ht=="function"){const E=V.createElement("template");E.content&&E.content.ownerDocument&&(V=E.content.ownerDocument)}let Ee,dr="";const{implementation:Gn,createNodeIterator:Co,createDocumentFragment:Lo,getElementsByTagName:No}=V,{importNode:Yo}=U;let Ke={};R.isSupported=typeof r=="function"&&typeof Vn=="function"&&Gn&&Gn.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:qn,ERB_EXPR:Kn,TMPLIT_EXPR:Xn,DATA_ATTR:Fo,ARIA_ATTR:Uo,IS_SCRIPT_OR_DATA:$o,ATTR_WHITESPACE:fa}=Fr;let{IS_ALLOWED_URI:ha}=Fr,me=null;const ma=T({},[...Z,...ae,...J,...ke,...Ae]);let pe=null;const pa=T({},[...Cr,...It,...Lr,...Pt]);let le=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),fr=null,Zn=null,ga=!0,Jn=!0,ya=!1,_a=!0,Nt=!1,Tt=!1,Qn=!1,es=!1,Yt=!1,Hr=!1,zr=!1,Sa=!0,ba=!1;const Wo="user-content-";let ts=!0,hr=!1,Ft={},Ut=null;const va=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ta=null;const wa=T({},["audio","video","img","source","image","track"]);let rs=null;const ka=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Br="http://www.w3.org/1998/Math/MathML",jr="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml";let $t=rt,ns=!1,ss=null;const Ho=T({},[Br,jr,rt],I);let wt=null;const zo=["application/xhtml+xml","text/html"],Bo="text/html";let ge=null,Wt=null;const jo=V.createElement("form"),Ea=function(u){return u instanceof RegExp||u instanceof Function},as=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Wt&&Wt===u)){if((!u||typeof u!="object")&&(u={}),u=b(u),wt=zo.indexOf(u.PARSER_MEDIA_TYPE)===-1?wt=Bo:wt=u.PARSER_MEDIA_TYPE,ge=wt==="application/xhtml+xml"?I:g,me="ALLOWED_TAGS"in u?T({},u.ALLOWED_TAGS,ge):ma,pe="ALLOWED_ATTR"in u?T({},u.ALLOWED_ATTR,ge):pa,ss="ALLOWED_NAMESPACES"in u?T({},u.ALLOWED_NAMESPACES,I):Ho,rs="ADD_URI_SAFE_ATTR"in u?T(b(ka),u.ADD_URI_SAFE_ATTR,ge):ka,Ta="ADD_DATA_URI_TAGS"in u?T(b(wa),u.ADD_DATA_URI_TAGS,ge):wa,Ut="FORBID_CONTENTS"in u?T({},u.FORBID_CONTENTS,ge):va,fr="FORBID_TAGS"in u?T({},u.FORBID_TAGS,ge):{},Zn="FORBID_ATTR"in u?T({},u.FORBID_ATTR,ge):{},Ft="USE_PROFILES"in u?u.USE_PROFILES:!1,ga=u.ALLOW_ARIA_ATTR!==!1,Jn=u.ALLOW_DATA_ATTR!==!1,ya=u.ALLOW_UNKNOWN_PROTOCOLS||!1,_a=u.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Nt=u.SAFE_FOR_TEMPLATES||!1,Tt=u.WHOLE_DOCUMENT||!1,Yt=u.RETURN_DOM||!1,Hr=u.RETURN_DOM_FRAGMENT||!1,zr=u.RETURN_TRUSTED_TYPE||!1,es=u.FORCE_BODY||!1,Sa=u.SANITIZE_DOM!==!1,ba=u.SANITIZE_NAMED_PROPS||!1,ts=u.KEEP_CONTENT!==!1,hr=u.IN_PLACE||!1,ha=u.ALLOWED_URI_REGEXP||Nr,$t=u.NAMESPACE||rt,le=u.CUSTOM_ELEMENT_HANDLING||{},u.CUSTOM_ELEMENT_HANDLING&&Ea(u.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(le.tagNameCheck=u.CUSTOM_ELEMENT_HANDLING.tagNameCheck),u.CUSTOM_ELEMENT_HANDLING&&Ea(u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(le.attributeNameCheck=u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),u.CUSTOM_ELEMENT_HANDLING&&typeof u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(le.allowCustomizedBuiltInElements=u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Nt&&(Jn=!1),Hr&&(Yt=!0),Ft&&(me=T({},[...Ae]),pe=[],Ft.html===!0&&(T(me,Z),T(pe,Cr)),Ft.svg===!0&&(T(me,ae),T(pe,It),T(pe,Pt)),Ft.svgFilters===!0&&(T(me,J),T(pe,It),T(pe,Pt)),Ft.mathMl===!0&&(T(me,ke),T(pe,Lr),T(pe,Pt))),u.ADD_TAGS&&(me===ma&&(me=b(me)),T(me,u.ADD_TAGS,ge)),u.ADD_ATTR&&(pe===pa&&(pe=b(pe)),T(pe,u.ADD_ATTR,ge)),u.ADD_URI_SAFE_ATTR&&T(rs,u.ADD_URI_SAFE_ATTR,ge),u.FORBID_CONTENTS&&(Ut===va&&(Ut=b(Ut)),T(Ut,u.FORBID_CONTENTS,ge)),ts&&(me["#text"]=!0),Tt&&T(me,["html","head","body"]),me.table&&(T(me,["tbody"]),delete fr.tbody),u.TRUSTED_TYPES_POLICY){if(typeof u.TRUSTED_TYPES_POLICY.createHTML!="function")throw B('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof u.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw B('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Ee=u.TRUSTED_TYPES_POLICY,dr=Ee.createHTML("")}else Ee===void 0&&(Ee=zn(vt,fe)),Ee!==null&&typeof dr=="string"&&(dr=Ee.createHTML(""));o&&o(u),Wt=u}},Oa=T({},["mi","mo","mn","ms","mtext"]),xa=T({},["foreignobject","desc","title","annotation-xml"]),Vo=T({},["title","style","font","a","script"]),Vr=T({},ae);T(Vr,J),T(Vr,de);const is=T({},ke);T(is,bt);const Go=function(u){let y=Vn(u);(!y||!y.tagName)&&(y={namespaceURI:$t,tagName:"template"});const k=g(u.tagName),ee=g(y.tagName);return ss[u.namespaceURI]?u.namespaceURI===jr?y.namespaceURI===rt?k==="svg":y.namespaceURI===Br?k==="svg"&&(ee==="annotation-xml"||Oa[ee]):!!Vr[k]:u.namespaceURI===Br?y.namespaceURI===rt?k==="math":y.namespaceURI===jr?k==="math"&&xa[ee]:!!is[k]:u.namespaceURI===rt?y.namespaceURI===jr&&!xa[ee]||y.namespaceURI===Br&&!Oa[ee]?!1:!is[k]&&(Vo[k]||!Vr[k]):!!(wt==="application/xhtml+xml"&&ss[u.namespaceURI]):!1},kt=function(u){m(R.removed,{element:u});try{u.parentNode.removeChild(u)}catch{u.remove()}},os=function(u,y){try{m(R.removed,{attribute:y.getAttributeNode(u),from:y})}catch{m(R.removed,{attribute:null,from:y})}if(y.removeAttribute(u),u==="is"&&!pe[u])if(Yt||Hr)try{kt(y)}catch{}else try{y.setAttribute(u,"")}catch{}},Ma=function(u){let y=null,k=null;if(es)u=""+u;else{const be=Y(u,/^[\r\n\t ]+/);k=be&&be[0]}wt==="application/xhtml+xml"&&$t===rt&&(u=''+u+"");const ee=Ee?Ee.createHTML(u):u;if($t===rt)try{y=new P().parseFromString(ee,wt)}catch{}if(!y||!y.documentElement){y=Gn.createDocument($t,"template",null);try{y.documentElement.innerHTML=ns?dr:ee}catch{}}const Se=y.body||y.documentElement;return u&&k&&Se.insertBefore(V.createTextNode(k),Se.childNodes[0]||null),$t===rt?No.call(y,Tt?"html":"body")[0]:Tt?y.documentElement:Se},Da=function(u){return Co.call(u.ownerDocument||u,u,cr.SHOW_ELEMENT|cr.SHOW_COMMENT|cr.SHOW_TEXT,null)},qo=function(u){return u instanceof jn&&(typeof u.nodeName!="string"||typeof u.textContent!="string"||typeof u.removeChild!="function"||!(u.attributes instanceof $r)||typeof u.removeAttribute!="function"||typeof u.setAttribute!="function"||typeof u.namespaceURI!="string"||typeof u.insertBefore!="function"||typeof u.hasChildNodes!="function")},Ra=function(u){return typeof mt=="function"&&u instanceof mt},nt=function(u,y,k){Ke[u]&&f(Ke[u],ee=>{ee.call(R,y,k,Wt)})},Aa=function(u){let y=null;if(nt("beforeSanitizeElements",u,null),qo(u))return kt(u),!0;const k=ge(u.nodeName);if(nt("uponSanitizeElement",u,{tagName:k,allowedTags:me}),u.hasChildNodes()&&!Ra(u.firstElementChild)&&A(/<[/\w]/g,u.innerHTML)&&A(/<[/\w]/g,u.textContent))return kt(u),!0;if(!me[k]||fr[k]){if(!fr[k]&&Pa(k)&&(le.tagNameCheck instanceof RegExp&&A(le.tagNameCheck,k)||le.tagNameCheck instanceof Function&&le.tagNameCheck(k)))return!1;if(ts&&!Ut[k]){const ee=Vn(u)||u.parentNode,Se=Po(u)||u.childNodes;if(Se&&ee){const be=Se.length;for(let xe=be-1;xe>=0;--xe)ee.insertBefore(Wr(Se[xe],!0),da(u))}}return kt(u),!0}return u instanceof pt&&!Go(u)||(k==="noscript"||k==="noembed"||k==="noframes")&&A(/<\/no(script|embed|frames)/i,u.innerHTML)?(kt(u),!0):(Nt&&u.nodeType===3&&(y=u.textContent,f([qn,Kn,Xn],ee=>{y=G(y,ee," ")}),u.textContent!==y&&(m(R.removed,{element:u.cloneNode()}),u.textContent=y)),nt("afterSanitizeElements",u,null),!1)},Ia=function(u,y,k){if(Sa&&(y==="id"||y==="name")&&(k in V||k in jo))return!1;if(!(Jn&&!Zn[y]&&A(Fo,y))){if(!(ga&&A(Uo,y))){if(!pe[y]||Zn[y]){if(!(Pa(u)&&(le.tagNameCheck instanceof RegExp&&A(le.tagNameCheck,u)||le.tagNameCheck instanceof Function&&le.tagNameCheck(u))&&(le.attributeNameCheck instanceof RegExp&&A(le.attributeNameCheck,y)||le.attributeNameCheck instanceof Function&&le.attributeNameCheck(y))||y==="is"&&le.allowCustomizedBuiltInElements&&(le.tagNameCheck instanceof RegExp&&A(le.tagNameCheck,k)||le.tagNameCheck instanceof Function&&le.tagNameCheck(k))))return!1}else if(!rs[y]){if(!A(ha,G(k,fa,""))){if(!((y==="src"||y==="xlink:href"||y==="href")&&u!=="script"&&K(k,"data:")===0&&Ta[u])){if(!(ya&&!A($o,G(k,fa,"")))){if(k)return!1}}}}}}return!0},Pa=function(u){return u.indexOf("-")>0},Ca=function(u){nt("beforeSanitizeAttributes",u,null);const{attributes:y}=u;if(!y)return;const k={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};let ee=y.length;for(;ee--;){const Se=y[ee],{name:be,namespaceURI:xe,value:Et}=Se,mr=ge(be);let Me=be==="value"?Et:M(Et);if(k.attrName=mr,k.attrValue=Me,k.keepAttr=!0,k.forceKeepAttr=void 0,nt("uponSanitizeAttribute",u,k),Me=k.attrValue,k.forceKeepAttr||(os(be,u),!k.keepAttr))continue;if(!_a&&A(/\/>/i,Me)){os(be,u);continue}Nt&&f([qn,Kn,Xn],Na=>{Me=G(Me,Na," ")});const La=ge(u.nodeName);if(Ia(La,mr,Me)){if(ba&&(mr==="id"||mr==="name")&&(os(be,u),Me=Wo+Me),Ee&&typeof vt=="object"&&typeof vt.getAttributeType=="function"&&!xe)switch(vt.getAttributeType(La,mr)){case"TrustedHTML":{Me=Ee.createHTML(Me);break}case"TrustedScriptURL":{Me=Ee.createScriptURL(Me);break}}try{xe?u.setAttributeNS(xe,be,Me):u.setAttribute(be,Me),_(R.removed)}catch{}}}nt("afterSanitizeAttributes",u,null)},Ko=function E(u){let y=null;const k=Da(u);for(nt("beforeSanitizeShadowDOM",u,null);y=k.nextNode();)nt("uponSanitizeShadowNode",y,null),!Aa(y)&&(y.content instanceof Be&&E(y.content),Ca(y));nt("afterSanitizeShadowDOM",u,null)};return R.sanitize=function(E){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},y=null,k=null,ee=null,Se=null;if(ns=!E,ns&&(E=""),typeof E!="string"&&!Ra(E))if(typeof E.toString=="function"){if(E=E.toString(),typeof E!="string")throw B("dirty is not a string, aborting")}else throw B("toString is not a function");if(!R.isSupported)return E;if(Qn||as(u),R.removed=[],typeof E=="string"&&(hr=!1),hr){if(E.nodeName){const Et=ge(E.nodeName);if(!me[Et]||fr[Et])throw B("root node is forbidden and cannot be sanitized in-place")}}else if(E instanceof mt)y=Ma(""),k=y.ownerDocument.importNode(E,!0),k.nodeType===1&&k.nodeName==="BODY"||k.nodeName==="HTML"?y=k:y.appendChild(k);else{if(!Yt&&!Nt&&!Tt&&E.indexOf("<")===-1)return Ee&&zr?Ee.createHTML(E):E;if(y=Ma(E),!y)return Yt?null:zr?dr:""}y&&es&&kt(y.firstChild);const be=Da(hr?E:y);for(;ee=be.nextNode();)Aa(ee)||(ee.content instanceof Be&&Ko(ee.content),Ca(ee));if(hr)return E;if(Yt){if(Hr)for(Se=Lo.call(y.ownerDocument);y.firstChild;)Se.appendChild(y.firstChild);else Se=y;return(pe.shadowroot||pe.shadowrootmode)&&(Se=Yo.call(U,Se,!0)),Se}let xe=Tt?y.outerHTML:y.innerHTML;return Tt&&me["!doctype"]&&y.ownerDocument&&y.ownerDocument.doctype&&y.ownerDocument.doctype.name&&A(Yr,y.ownerDocument.doctype.name)&&(xe=" `+xe),Nt&&f([qn,Kn,Xn],Et=>{xe=G(xe,Et," ")}),Ee&&zr?Ee.createHTML(xe):xe},R.setConfig=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};as(E),Qn=!0},R.clearConfig=function(){Wt=null,Qn=!1},R.isValidAttribute=function(E,u,y){Wt||as({});const k=ge(E),ee=ge(u);return Ia(k,ee,y)},R.addHook=function(E,u){typeof u=="function"&&(Ke[E]=Ke[E]||[],m(Ke[E],u))},R.removeHook=function(E){if(Ke[E])return _(Ke[E])},R.removeHooks=function(E){Ke[E]&&(Ke[E]=[])},R.removeAllHooks=function(){Ke={}},R}var Bn=Ur();return Bn})}(fs)),fs.exports}var Tf=window.DOMPurify||(window.DOMPurify=Va().default||Va());const hs=al(Tf),wf=["isSubmit","isSplit","autoTheme","isEmbed"],ms={query:"",queryType:"range",start:"",time:"",to:"",stop:"",from:"",left:[{id:Ue(),idRef:"L-A",lastIdx:1,panel:"left",queryType:"range",dataSourceType:"logs",dataSourceURL:"",dataSourceId:"cHI2SqPzH_kxYRXj",limit:100,step:5,tableView:!1,chartView:!1,isShowTs:!0,isBuilder:!1,isLogsVolume:!1,browserOpen:!1,expr:"",labels:[],values:[],response:{},open:!0,start:new Date(Date.now()-5*6e4),time:"",stop:new Date(Date.now()),label:"",pickerOpen:!1}],right:[{id:Ue(),idRef:"R-A",lastIdx:1,panel:"right",queryType:"range",dataSourceType:"traces",dataSourceId:"32D16h5uYBqUUzhD",dataSourceURL:"",limit:100,step:5,tableView:!1,chartView:!1,isShowTs:!0,isBuilder:!1,isLogsVolume:!1,browserOpen:!1,expr:"",labels:[],values:[],response:{},open:!1,start:new Date(Date.now()-5*6e4),time:"",stop:new Date(Date.now()),label:"",pickerOpen:!1}],label:"",limit:100,step:5,apiUrl:"",isSubmit:!1,isEmbed:!1,autoTheme:!0,theme:"",isSplit:!1};function kf(){const e=vf(So.environment);e&&console.group("🚧 LOGIC/InitialState/FromQuery");const{hash:t}=window.location;e&&console.log("🚧 LOGIC/FromQuery Hash",t);const r=new URLSearchParams(t.replace(/#/,""));if(e&&console.log("🚧 LOGIC/urlFromHash",r,t.length),t.length>0){const n={...ms};e&&console.log("🚧 LOGIC/startParams/BeforeURLFromHash",n);for(let[s,a]of r.entries()){if(e&&console.log("🚧 LOGIC/startParams/",s,a),s==="stop"||s==="start"){const i=parseInt(hs.sanitize(a))/1e6;n[s]=new Date(S(i).format("YYYY-MM-DDTHH:mm:ss.SSSZ"))}else if(s==="left"||s==="right"){if(typeof decodeURIComponent(a)=="string")try{const o=JSON.parse(decodeURIComponent(a||"[]"));n[s]=o}catch(o){console.log(o)}}else if(wf.includes(s))try{n[s]=JSON.parse(hs.sanitize(a||"false"))}catch{console.error(s),n[s]=!1}else n[s]=a;n.theme&&localStorage.setItem("theme",hs.sanitize(JSON.stringify({theme:n.theme,auto:!!n.autoTheme})))}return n||ms}else return e&&console.groupEnd(),ms}function bo(e=null){const t="qryn-query",r=t+"-history-item",n=t+"-labels-item",s=[],a=_=>localStorage.getItem(_)||"null",i=(_,m)=>{localStorage.setItem(_,m)};return{historyStore:()=>{const _=()=>JSON.parse(a(r)),m=x=>{i(r,JSON.stringify(x))},g=()=>(i(r,JSON.stringify(s)),A()||[]),I=_(),Y=()=>I.find(({id:x})=>e.id===x),G=()=>Y()||{},K=x=>{const{id:Q}=x;let T=[];try{return T=I.map(b=>b.id===Q?{...b,...x}:b),m(T),A()}catch(b){console.log(b)}},M=(x,Q=1/0)=>{let T=_()||[];try{let N=[{id:x.id||Ue(),timestamp:x.timestamp||Date.now(),starred:x.starred||!1,data:encodeURI(x.data)||""}].concat(T).slice(0,Q);return m(N),A()}catch(b){console.log("error on add",b)}};function A(){const x=JSON.parse(localStorage.getItem(r)||"null")||[];return(x==null?void 0:x.map(Q=>({...Q,data:decodeURI(Q.data)})))||[]}return{clean:g,get:_,set:m,getById:G,update:K,add:M,remove:x=>{const Q=I.filter(({id:T})=>T!==x.id);return m(Q),A()},getAll:A}},labelsStore:()=>function(){return JSON.parse(localStorage.getItem(n)||"null")||[]},setStorageItem:i,getStorageItem:a,cleanup:s,j_parse:_=>JSON.parse(_),j_string:_=>JSON.stringify(_),l_set:(_,m)=>{localStorage.setItem(_,m)},l_get:_=>localStorage.getItem(_)}}const Ef="qryn-query",Kr=Ef+"-url-item",Of=()=>{const{l_set:e,l_get:t,j_parse:r,j_string:n}=bo(),s=()=>r(t(Kr)||"null"),a=m=>e(Kr,n(m)),i=()=>(localStorage.setItem(Kr,JSON.stringify([])),_()||[]),o=s(),l=m=>o.find(({id:g})=>m.id===g)||{},c=m=>{const{id:g}=m;let I=[];try{return I=o.map(Y=>Y.id===g?{...Y,...m}:Y),a(I),_()}catch(Y){console.log(Y)}},d=(m,g=1/0)=>{let I=s()||[];const{href:Y,url:G,type:K,queryInput:M,queryType:A,limit:B,panel:x}=m.data,{hash:Q}=window.location,T=window.location.origin,b=new URLSearchParams(Q.replace(/#/,""));let N={};b.set("isSubmit","true");for(let[J,de]of b)N[J]=de;const Z=Ya(parseInt(N.start)/1e6,"yyyy-MM-dd HH:mm:ss"),ae=Ya(parseInt(N.stop)/1e6,"yyyy-MM-dd HH:mm:ss");try{let de=[{url:G,href:Y,type:K,queryInput:M,queryType:A,limit:B,panel:x,id:m.id||Ue(),timestamp:m.timestamp||Date.now(),starred:!1,description:m.description||"",params:N||{},fromDate:Z,toDate:ae,data:`${T}/#${b.toString()}`||""}].concat(I).slice(0,g);return a(de),_()}catch(J){console.log(J)}},h=m=>{const g=o==null?void 0:o.filter(({id:I})=>I!==m.id);return a(g),_()},f=m=>{const g=m.urlParams;return`${m.origin}/#${g.toString()}`};function _(){return JSON.parse(localStorage.getItem(Kr)||"null")||[]}return{clean:i,get:s,set:a,update:c,add:d,remove:h,getAll:_,findById:l,share:f}},xf=[{header:"Content-Type",value:"application/json",id:Ue()}],Mf=[{header:"Content-Type",value:"application/json",id:Ue()}],Df=[{header:"Content-Type",value:"application/json",id:Ue()},{header:"Accept",value:"application/json",id:Ue()}],Rf=[{header:"Accept",value:"application/csv",id:Ue()},{header:"Content-Type",value:"application/vnd.flux",id:Ue()}],Af=[{id:Ue(),dataSource:"Traces",dataSourceId:"32D16h5uYBqUUzhD",ds_id:"logs",name:"traceId",regex:"traceI[d|D]=(?\\w+)",query:"${__value.raw}",urlLabel:"",internalLink:!0,linkType:"Traces"},{id:Ue(),dataSource:"Traces",dataSourceId:"32D16h5uYBqUUzhD",ds_id:"logs",name:"traceID",regex:"traceI[d|D]=(?\\w+)",query:"${__value.raw}",urlLabel:"",internalLink:!0,linkType:"Traces"}],If=[],Pf=[],Cf={basicAuth:[{name:"user",cert:"basicAuth",form_type:"input",label:"User",value:"",placeholder:"default"},{name:"password",cert:"basicAuth",form_type:"password",label:"Password",placeholder:"",value:""}]},Mn={method:{label:"Method",form_type:"select",options:["GET","POST"],value:"GET"},fields:Cf,basicAuth:{form_type:"switch",label:"Basic Auth",value:!1,withFields:!0,fields:"basicAuthUserFields"}},Lf={id:"cHI2SqPzH_kxYRXj",type:"logs",value:"logs",name:"Logs",url:"",placeholder:"http://qryn:3000",icon:"logs_icon",visType:"logs",headers:xf,linkedFields:Af,auth:Mn},Nf={id:"32D16h5uYBqUUzhD",type:"traces",value:"traces",name:"Traces",url:"",placeholder:"http://traces:3000",icon:"traces_icon",visType:"trace",headers:Df,linkedFields:If,auth:Mn},Yf={id:"XfqOurV-Tng1F0cc",type:"metrics",value:"metrics",name:"Metrics",url:"",placeholder:"http://metrics:3000",icon:"metrics_icon",visType:"chart",headers:Mf,linkedFields:Pf,auth:Mn},Ff={id:"Swjy1SzgWuDmJpUo",type:"flux",value:"flux",name:"Flux",url:"",placeholder:"http://flux:3000",icon:"flux_icon",visType:"chart",headers:Rf,linkedFields:[],auth:Mn},Uf={type:"readonly",name:"input",url:"input",visType:"select"},$f={id:"input",dataSource:"input",ds_id:"input",name:"input",regex:"input",query:"input",urlLabel:"input",internalLink:"switch",linkType:"select"},Wf={logs:$f},Hf={defaultLogsDatasourceFieldTypes:Uf},zf=[Lf,Nf,Yf,Ff],Bf=()=>(JSON.parse(localStorage.getItem("isDebug")||JSON.stringify(!1))||{isActive:!1}).isActive===!0?!0:(localStorage.setItem("isDebug",JSON.stringify({isActive:!1})),!1),jf={queryType:"range",start:"",time:"",to:"",stop:"",from:"",left:[],right:[],label:"",limit:100,step:100,apiUrl:"",isSubmit:!1,isEmbed:!1,autoTheme:!0,theme:"",isSplit:!1};function Vf(){const e=()=>{const o=localStorage.getItem("dataSources")||void 0,l=localStorage.getItem("linkedFields")||void 0;let c=!1,d=!1,h=[],f=[];if(o!==void 0){c=!0;try{h=JSON.parse(o)}catch{c=!1,h=[]}}if(l!==void 0){d=!0;try{f=JSON.parse(l)}catch{d=!1,f=[]}}return{hasDsSettings:c,hasLfSettings:d,dataSourceSettings:h,linkedFieldsSettings:f}},t=o=>{const l=JSON.parse(localStorage.getItem("dataSources")||"");return l==null?void 0:l.find(c=>c.id==="id")},r=kf()||jf,n=bo().historyStore(),s=Of(),a={debugMode:Bf()||!1,labels:[],labelValues:[],queryHistory:n.getAll()||[],linksHistory:s.getAll()||[],timeRange:[],queryType:r.queryType||"range",logs:[],matrixData:[],vectorData:{},loading:!1,queryResolution:1,start:new Date(Date.now()-5*6e4),time:r.time||"",stop:new Date(Date.now()),from:r.from||null,to:r.to||null,label:r.label,messages:[],limitLoad:!1,limit:r.limit||100,step:r.step||100,rangeOpen:!1,labelsBrowserOpen:!0,settingsMenuOpen:!1,timePickerOpen:!1,settingsDialogOpen:!1,historyOpen:!1,apiErrors:"",urlQueryParams:r||{},urlLocation:"",apiUrl:r.apiUrl||So.apiUrl||"",isSubmit:r.isSubmit||!1,isEmbed:r.isEmbed||!1,isCardinality:!1,userType:"admin",currentUser:{name:"Qryn Admin",role:"admin",id:"OoH8zZt71U70W01LcgAQs",selected:!0},left:r.left||[{id:"widYlu_fXweET5D4",idRef:"L-A",lastIdx:1,panel:"left",queryType:"range",dataSourceType:"logs",dataSourceId:"cHI2SqPzH_kxYRXj",dataSourceURL:t(),limit:100,step:100,tableView:!1,chartView:!1,isShowTs:!0,isBuilder:!1,hasStats:!1,statsData:{},browserOpen:!1,isLogsVolume:!1,expr:"",labels:[],values:[],direction:"backwards",loading:!1,open:!0,start:new Date(Date.now()-5*6e4),time:"",stop:new Date(Date.now()),label:"",pickerOpen:!1}],right:r.right||[{id:"ndFM1zV-aow5hJ0P",idRef:"R-A",lastIdx:1,panel:"right",queryType:"range",dataSourceType:"traces",dataSourceId:"32D16h5uYBqUUzhD",dataSourceURL:t(),limit:100,step:100,tableView:!1,chartView:!1,isShowTs:!0,isBuilder:!1,browserOpen:!1,isLogsVolume:!1,expr:"",labels:[],values:[],direction:"backwards",loading:!1,open:!1,start:new Date(Date.now()-5*6e4),time:"",stop:new Date(Date.now()),label:"",pickerOpen:!1}],plugins:{},leftDataView:[],rightDataView:[],dataSources:e().hasDsSettings?e().dataSourceSettings:zf,linkedFieldTypes:Wf,dataSourcesFieldTypes:Hf,linkTypes:["logs","traces","metrics","flux"],visTypes:["chart","logs","table","trace","graph"],chartType:"line",resposeType:"",notifications:[],tableData:{},isTableView:!1,autoTheme:r.autoTheme||!0,theme:r.theme||"light",isEmptyView:!1,isSplit:!1,showDataSourceSetting:!0};return a.debugMode&&console.log("🚧 LOGIC/ INITIAL STATE ::: ",a),a}const ye=Xo(_l,Vf(),Zo(il)),Gf=e=>{var o,l,c,d;const t="/loki/api/v1/label",r="/loki/api/v1/query_range",{request:n,response:s}=e,a=(l=(o=e==null?void 0:e.response)==null?void 0:o.request)==null?void 0:l.responseURL;let i=()=>{switch(a){case(a==null?void 0:a.includes(t)):return"label";case(a==null?void 0:a.includes(r)):return"query";default:return"label"}};if(s!=null&&s.statusText){const h=s==null?void 0:s.status;return{message:"API "+s.statusText+", Please adjust API URL",status:h,type:i()}}else return a&&!a.includes(window.location.protocol)?{message:"Mixed Content Error, your View should be over same protocol as your API",status:500,type:i()}:n?e.stack.includes("Network Error")?{message:"Invalid API URL, please adjust API URL",status:500,type:i()}:{message:"server time out",status:s==null?void 0:s.status,type:i()}:(c=e==null?void 0:e.stack)!=null&&c.includes("Invalid URL")?{message:"Invalid API URL, please adjust API URL",stauts:s==null?void 0:s.status,type:i()}:((d=e==null?void 0:e.response)==null?void 0:d.status)===404?{message:"Invalid API URL, please adjust API URL",status:s==null?void 0:s.status,type:i()}:{message:"something went wrong with request",status:s==null?void 0:s.status,type:i()}},Bt=e=>t=>{const r=ye.getState().notifications;r.push({message:e.message,type:e.type,visible:!0}),t({type:"ADD_NOTIFICATION",payload:[...r]})},Ga=e=>t=>{let r=ye.getState().notifications;r[e].visible=!1,t({type:"REMOVE_NOTIFICATION",payload:[...r]})};function qf(e){return function(t){t({type:"SET_API_WARNING",apiWarning:e})}}const Kf=e=>{e.interceptors.response.use(t=>t,t=>{var r;if(ye.dispatch(Bt({type:"error",message:t.message})),t.response){const n=Gf(t);((r=t==null?void 0:t.response)==null?void 0:r.status)===401||(n.status===500&&n.type==="labels"?ye.getState().notifications.length<1&&ye.getState().debugMode===!0&&ye.dispatch(Bt({type:"error",message:n.message+" for "+n.type||n.status+n.type+"Error"})):n.status===404&&n.type==="labels"?ye.getState().notifications.length<1&&ye.dispatch(Bt({type:"error",message:n.message||n.status+n.type+"Error"})):ye.getState().notifications.length<1&&ye.dispatch(Bt({type:"error",message:n.message+" for "+n.type||n.status+n.type+"Error"})))}else{const n=JSON.parse(JSON.stringify(t)),s={url:n.config.url,message:n.message,name:n.name};ye.dispatch(qf({type:"labels",message:"Labels not available"}));const{url:a}=s,i=ye.getState().apiWarning;i&&a.includes("query")&&ye.getState().notifications.length<1?(i.num++,ye.dispatch(Bt({type:"error",message:"API not found, please adjust API URL"}))):a.includes("labels")&&ye.getState().notifications.length<1&&ye.dispatch(Bt({type:"error",message:"API not found, please adjust API URL"}))}})},Xf={black:"#000",white:"#fff"},kr=Xf,Zf={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},jt=Zf,Jf={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Vt=Jf,Qf={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Gt=Qf,eh={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},qt=eh,th={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Kt=th,rh={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},yr=rh,nh={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},sh=nh;function gt(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function vo(e){if(!gt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=vo(e[r])}),t}function Fe(e,t,r={clone:!0}){const n=r.clone?D({},e):e;return gt(e)&>(t)&&Object.keys(t).forEach(s=>{s!=="__proto__"&&(gt(t[s])&&s in e&>(e[s])?n[s]=Fe(e[s],t[s],r):r.clone?n[s]=gt(t[s])?vo(t[s]):t[s]:n[s]=t[s])}),n}function nr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r{t.current=e}),w.useRef((...r)=>(0,t.current)(...r)).current}function qa(...e){return w.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{ah(r,t)})},e)}let Dn=!0,Es=!1,Ka;const lh={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function uh(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&lh[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function ch(e){e.metaKey||e.altKey||e.ctrlKey||(Dn=!0)}function ps(){Dn=!1}function dh(){this.visibilityState==="hidden"&&Es&&(Dn=!0)}function fh(e){e.addEventListener("keydown",ch,!0),e.addEventListener("mousedown",ps,!0),e.addEventListener("pointerdown",ps,!0),e.addEventListener("touchstart",ps,!0),e.addEventListener("visibilitychange",dh,!0)}function hh(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Dn||uh(t)}function mh(){const e=w.useCallback(s=>{s!=null&&fh(s.ownerDocument)},[]),t=w.useRef(!1);function r(){return t.current?(Es=!0,window.clearTimeout(Ka),Ka=window.setTimeout(()=>{Es=!1},100),t.current=!1,!0):!1}function n(s){return hh(s)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function To(e,t){const r=D({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=D({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const s=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=s:!s||!Object.keys(s)?r[n]=a:(r[n]=D({},a),Object.keys(s).forEach(i=>{r[n][i]=To(s[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Rr(e,t,r=void 0){const n={};return Object.keys(e).forEach(s=>{n[s]=e[s].reduce((a,i)=>{if(i){const o=t(i);o!==""&&a.push(o),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}const Xa=e=>e,ph=()=>{let e=Xa;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Xa}}},gh=ph(),yh=gh,_h={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 ir(e,t,r="Mui"){const n=_h[t];return n?`${r}-${n}`:`${yh.generate(e)}-${t}`}function or(e,t,r="Mui"){const n={};return t.forEach(s=>{n[s]=ir(e,s,r)}),n}const wo="$$material";var Sh=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,bh=Jo(function(e){return Sh.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),vh=bh,Th=function(t){return t!=="theme"},Za=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?vh:Th},Ja=function(t,r,n){var s;if(r){var a=r.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof s!="function"&&n&&(s=t.__emotion_forwardProp),s},wh=function(t){var r=t.cache,n=t.serialized,s=t.isStringTag;return el(r,n,s),tl(function(){return Oi(r,n,s)}),null},kh=function e(t,r){var n=t.__emotion_real===t,s=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var o=Ja(t,r,n),l=o||Za(s),c=!l("as");return function(){var d=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&h.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)h.push.apply(h,d);else{h.push(d[0][0]);for(var f=d.length,_=1;_Fn("color:",e.contrast,";font-size:1em;display:flex;align-items:center;justify-content:flex-end;margin-top:15px;letter-spacing:2px;",""),B0=()=>q(U0,{height:"200px"});function j0(){const e=L0();return q("div",{className:Zr($0(e)),children:Qr("div",{className:Zr(W0),children:[q("div",{className:Zr(H0),children:q(B0,{})}),q("div",{className:Zr(z0(e)),children:"Qryn"})]})})}function V0({children:e}){const t=Is(n=>n.currentUser.role);return w.useMemo(()=>{let n=!1,s="";try{const a=btoa("cookie-location"),i=localStorage.getItem(a),o=JSON.parse(atob(i));o&&(o!=null&&o.cookiesAvailable)?(n=o==null?void 0:o.cookiesAvailable,s="/"+(o==null?void 0:o.url)):n=!1}catch{n=!1}return{cookie:n,url:s}},[]).cookie||t!=="admin"&&t!=="superAdmin"?q(cl,{to:"/"}):e}const G0=w.lazy(()=>Er(()=>import("./App-b0375afd.js"),["assets/App-b0375afd.js","assets/consts-e7fba829.js","assets/PluginManagerFactory-a0a578f6.js","assets/react-432945ee.js","assets/vendor-6029fc34.js","assets/createSvgIcon-b45af2a3.js","assets/reactDnd-72acd3f4.js","assets/DeleteOutlineOutlined-2068af5e.js","assets/reactSelect-75171a09.js","assets/memoize-acaceb73.js","assets/consts-220d68d1.css"])),q0=w.lazy(()=>Er(()=>import("./DataSources-df7c6cd8.js"),["assets/DataSources-df7c6cd8.js","assets/react-432945ee.js","assets/vendor-6029fc34.js","assets/AddOutlined-d979d573.js","assets/DeleteOutlineOutlined-2068af5e.js","assets/createSvgIcon-b45af2a3.js","assets/reactDnd-72acd3f4.js","assets/reactSelect-75171a09.js","assets/memoize-acaceb73.js"])),vi=w.lazy(()=>Er(()=>import("./Main-68e3709c.js"),["assets/Main-68e3709c.js","assets/vendor-6029fc34.js","assets/react-432945ee.js","assets/consts-e7fba829.js","assets/PluginManagerFactory-a0a578f6.js","assets/createSvgIcon-b45af2a3.js","assets/reactDnd-72acd3f4.js","assets/DeleteOutlineOutlined-2068af5e.js","assets/reactSelect-75171a09.js","assets/memoize-acaceb73.js","assets/consts-220d68d1.css","assets/lodash-fd695a79.js","assets/reactTable-9f941ddf.js","assets/slate-25e47886.js","assets/AddOutlined-d979d573.js","assets/actions-2742fbfc.js","assets/Main-5e5e7fe0.css"])),K0=w.lazy(()=>Er(()=>import("./Plugins-6d142b76.js"),["assets/Plugins-6d142b76.js","assets/react-432945ee.js","assets/PluginManagerFactory-a0a578f6.js","assets/createSvgIcon-b45af2a3.js","assets/vendor-6029fc34.js","assets/reactDnd-72acd3f4.js","assets/reactSelect-75171a09.js","assets/memoize-acaceb73.js"])),X0=w.lazy(()=>Er(()=>import("./UserRoles-3675b793.js"),["assets/UserRoles-3675b793.js","assets/react-432945ee.js","assets/vendor-6029fc34.js","assets/createSvgIcon-b45af2a3.js","assets/reactDnd-72acd3f4.js","assets/actions-2742fbfc.js","assets/reactSelect-75171a09.js","assets/memoize-acaceb73.js"]));Kf(dl);ys.createRoot(document.getElementById("root")).render(q(Zt.StrictMode,{children:q(fl,{children:Qr(pl,{store:ye,children:[q(hl,{children:q(w.Suspense,{fallback:q(j0,{}),children:q(ml,{children:Qr(Ht,{path:"/",element:q(G0,{}),children:[q(Ht,{index:!0,element:q(vi,{})}),q(Ht,{path:"/search/*",index:!0,element:q(vi,{})}),q(Ht,{path:"/plugins",element:q(K0,{})}),q(Ht,{path:"/users",element:q(X0,{})}),q(Ht,{path:"/datasources/*",element:Qr(V0,{children:[" ",q(q0,{})]})})]})})})}),q(v0,{})]})})}));export{Ao as $,To as A,Jp as B,Pr as C,hs as D,S as E,rg as F,ye as G,A0 as H,C0 as I,oa as J,l0 as K,bo as L,ng as M,v0 as N,ig as O,Pp as P,U0 as Q,bh as R,zf as S,na as T,gt as U,Oh as V,sa as W,Em as X,yh as Y,wm as Z,wo as _,pn as a,vp as a0,di as a1,qa as a2,oh as a3,ah as a4,Xr as a5,mh as a6,Ms as a7,xs as a8,Rr as b,Re as c,q as d,Bt as e,L0 as f,Zr as g,Fn as h,kh as i,Qr as j,Nm as k,Of as l,aa as m,Fm as n,ct as o,Oo as p,Fe as q,ag as r,et as s,sg as t,lr as u,Ir as v,ir as w,or as x,mp as y,_e as z}; + );display:flex;align-items:center;justify-content:center;transition:0.5s all;animation:rotation 3s infinite linear;p{color:white;font-size:12px;}img{height:60px;}`}),z0=e=>Fn("color:",e.contrast,";font-size:1em;display:flex;align-items:center;justify-content:flex-end;margin-top:15px;letter-spacing:2px;",""),B0=()=>q(U0,{height:"200px"});function j0(){const e=L0();return q("div",{className:Zr($0(e)),children:Qr("div",{className:Zr(W0),children:[q("div",{className:Zr(H0),children:q(B0,{})}),q("div",{className:Zr(z0(e)),children:"Qryn"})]})})}function V0({children:e}){const t=Is(n=>n.currentUser.role);return w.useMemo(()=>{let n=!1,s="";try{const a=btoa("cookie-location"),i=localStorage.getItem(a),o=JSON.parse(atob(i));o&&(o!=null&&o.cookiesAvailable)?(n=o==null?void 0:o.cookiesAvailable,s="/"+(o==null?void 0:o.url)):n=!1}catch{n=!1}return{cookie:n,url:s}},[]).cookie||t!=="admin"&&t!=="superAdmin"?q(cl,{to:"/"}):e}const G0=w.lazy(()=>Er(()=>import("./App-78490b7d.js"),["assets/App-78490b7d.js","assets/consts-7d32bda4.js","assets/PluginManagerFactory-e4944f23.js","assets/react-432945ee.js","assets/vendor-3db6068a.js","assets/createSvgIcon-e78f4b10.js","assets/reactDnd-dc8b0776.js","assets/DeleteOutlineOutlined-d455761f.js","assets/reactSelect-db5d744f.js","assets/memoize-acaceb73.js","assets/consts-220d68d1.css"])),q0=w.lazy(()=>Er(()=>import("./DataSources-953654f5.js"),["assets/DataSources-953654f5.js","assets/react-432945ee.js","assets/vendor-3db6068a.js","assets/AddOutlined-654406e2.js","assets/DeleteOutlineOutlined-d455761f.js","assets/createSvgIcon-e78f4b10.js","assets/reactDnd-dc8b0776.js","assets/reactSelect-db5d744f.js","assets/memoize-acaceb73.js"])),vi=w.lazy(()=>Er(()=>import("./Main-e9bf08d1.js"),["assets/Main-e9bf08d1.js","assets/vendor-3db6068a.js","assets/react-432945ee.js","assets/consts-7d32bda4.js","assets/PluginManagerFactory-e4944f23.js","assets/createSvgIcon-e78f4b10.js","assets/reactDnd-dc8b0776.js","assets/DeleteOutlineOutlined-d455761f.js","assets/reactSelect-db5d744f.js","assets/memoize-acaceb73.js","assets/consts-220d68d1.css","assets/lodash-fd695a79.js","assets/reactTable-9f941ddf.js","assets/slate-25e47886.js","assets/AddOutlined-654406e2.js","assets/actions-2742fbfc.js","assets/Main-5e5e7fe0.css"])),K0=w.lazy(()=>Er(()=>import("./Plugins-31974fd5.js"),["assets/Plugins-31974fd5.js","assets/react-432945ee.js","assets/PluginManagerFactory-e4944f23.js","assets/createSvgIcon-e78f4b10.js","assets/vendor-3db6068a.js","assets/reactDnd-dc8b0776.js","assets/reactSelect-db5d744f.js","assets/memoize-acaceb73.js"])),X0=w.lazy(()=>Er(()=>import("./UserRoles-b90d8865.js"),["assets/UserRoles-b90d8865.js","assets/react-432945ee.js","assets/vendor-3db6068a.js","assets/createSvgIcon-e78f4b10.js","assets/reactDnd-dc8b0776.js","assets/actions-2742fbfc.js","assets/reactSelect-db5d744f.js","assets/memoize-acaceb73.js"]));Kf(dl);ys.createRoot(document.getElementById("root")).render(q(Zt.StrictMode,{children:q(fl,{children:Qr(pl,{store:ye,children:[q(hl,{basename:"/",children:q(w.Suspense,{fallback:q(j0,{}),children:q(ml,{children:Qr(Ht,{path:"/",element:q(G0,{}),children:[q(Ht,{index:!0,element:q(vi,{})}),q(Ht,{path:"/search/*",index:!0,element:q(vi,{})}),q(Ht,{path:"/plugins",element:q(K0,{})}),q(Ht,{path:"/users",element:q(X0,{})}),q(Ht,{path:"/datasources/*",element:Qr(V0,{children:[" ",q(q0,{})]})})]})})})}),q(v0,{})]})})}));export{Ao as $,To as A,Jp as B,Pr as C,hs as D,S as E,rg as F,ye as G,A0 as H,C0 as I,oa as J,l0 as K,bo as L,ng as M,v0 as N,ig as O,Pp as P,U0 as Q,bh as R,zf as S,na as T,gt as U,Oh as V,sa as W,Em as X,yh as Y,wm as Z,wo as _,pn as a,vp as a0,di as a1,qa as a2,oh as a3,ah as a4,Xr as a5,mh as a6,Ms as a7,xs as a8,Rr as b,Re as c,q as d,Bt as e,L0 as f,Zr as g,Fn as h,kh as i,Qr as j,Nm as k,Of as l,aa as m,Fm as n,ct as o,Oo as p,Fe as q,ag as r,et as s,sg as t,lr as u,Ir as v,ir as w,or as x,mp as y,_e as z}; diff --git a/view/assets/reactDnd-72acd3f4.js b/view/assets/reactDnd-dc8b0776.js similarity index 99% rename from view/assets/reactDnd-72acd3f4.js rename to view/assets/reactDnd-dc8b0776.js index 11652591..7e5fe5b7 100644 --- a/view/assets/reactDnd-72acd3f4.js +++ b/view/assets/reactDnd-dc8b0776.js @@ -1,4 +1,4 @@ -import{r as h,g as He}from"./react-432945ee.js";import{_ as je}from"./vendor-6029fc34.js";var pe={exports:{}},R={};/** +import{r as h,g as He}from"./react-432945ee.js";import{_ as je}from"./vendor-3db6068a.js";var pe={exports:{}},R={};/** * @license React * react-jsx-runtime.production.min.js * diff --git a/view/assets/reactSelect-75171a09.js b/view/assets/reactSelect-db5d744f.js similarity index 99% rename from view/assets/reactSelect-75171a09.js rename to view/assets/reactSelect-db5d744f.js index c56551ee..9364f631 100644 --- a/view/assets/reactSelect-75171a09.js +++ b/view/assets/reactSelect-db5d744f.js @@ -1,4 +1,4 @@ -import{a as O,b as Vn,c as zt,d as Pn,e as Rn,_ as Ce,f as Ln,g as Tn,h as kn,i as Bn}from"./vendor-6029fc34.js";import{_ as F}from"./reactDnd-72acd3f4.js";import{d as gt,r as h,b as $n}from"./react-432945ee.js";import{m as Hn}from"./memoize-acaceb73.js";function Nn(n){if(n.sheet)return n.sheet;for(var e=0;e0?B(de,--U):0,ce--,R===10&&(ce=1,He--),R}function W(){return R=U2||he(R)>3?"":" "}function Qn(n,e){for(;--e&&W()&&!(R<48||R>102||R>57&&R<65||R>70&&R<97););return ge(n,De()+(e<6&&Z()==32&&W()==32))}function Ze(n){for(;W();)switch(R){case n:return U;case 34:case 39:n!==34&&n!==39&&Ze(R);break;case 40:n===41&&Ze(n);break;case 92:W();break}return U}function er(n,e){for(;W()&&n+R!==47+10;)if(n+R===42+42&&Z()===47)break;return"/*"+ge(e,U-1)+"*"+$e(n===47?n:W())}function tr(n){for(;!he(Z());)W();return ge(n,U)}function nr(n){return Kt(Ae("",null,null,null,[""],n=qt(n),0,[0],n))}function Ae(n,e,r,i,t,a,u,l,o){for(var s=0,c=0,d=u,m=0,g=0,b=0,v=1,f=1,p=1,E=0,y="",D=t,A=a,x=i,C=y;f;)switch(b=E,E=W()){case 40:if(b!=108&&B(C,d-1)==58){Xe(C+=M(we(E),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:C+=we(E);break;case 9:case 10:case 13:case 32:C+=Jn(b);break;case 92:C+=Qn(De()-1,7);continue;case 47:switch(Z()){case 42:case 47:Se(rr(er(W(),De()),e,r),o);break;default:C+="/"}break;case 123*v:l[s++]=K(C)*p;case 125*v:case 59:case 0:switch(E){case 0:case 125:f=0;case 59+c:p==-1&&(C=M(C,/\f/g,"")),g>0&&K(C)-d&&Se(g>32?Et(C+";",i,r,d-1):Et(M(C," ","")+";",i,r,d-2),o);break;case 59:C+=";";default:if(Se(x=bt(C,e,r,s,c,t,l,y,D=[],A=[],d),a),E===123)if(c===0)Ae(C,e,x,x,D,a,d,l,A);else switch(m===99&&B(C,3)===110?100:m){case 100:case 108:case 109:case 115:Ae(n,x,x,i&&Se(bt(n,x,x,0,0,t,l,y,t,D=[],d),A),t,A,d,l,i?D:A);break;default:Ae(C,x,x,x,[""],A,0,l,A)}}s=c=g=0,v=p=1,y=C="",d=u;break;case 58:d=1+K(C),g=b;default:if(v<1){if(E==123)--v;else if(E==125&&v++==0&&Zn()==125)continue}switch(C+=$e(E),E*v){case 38:p=c>0?1:(C+="\f",-1);break;case 44:l[s++]=(K(C)-1)*p,p=1;break;case 64:Z()===45&&(C+=we(W())),m=Z(),c=d=K(y=C+=tr(De())),E++;break;case 45:b===45&&K(C)==2&&(v=0)}}return a}function bt(n,e,r,i,t,a,u,l,o,s,c){for(var d=t-1,m=t===0?a:[""],g=it(m),b=0,v=0,f=0;b0?m[p]+" "+E:M(E,/&\f/g,m[p])))&&(o[f++]=y);return Ne(n,e,r,t===0?nt:l,o,s,c)}function rr(n,e,r){return Ne(n,e,r,Wt,$e(Xn()),ve(n,2,-2),0)}function Et(n,e,r,i){return Ne(n,e,r,rt,ve(n,0,i),ve(n,i+1,-1),i)}function le(n,e){for(var r="",i=it(n),t=0;t6)switch(B(n,e+1)){case 109:if(B(n,e+4)!==45)break;case 102:return M(n,/(.+:)(.+)-([^]+)/,"$1"+I+"$2-$3$1"+Me+(B(n,e+3)==108?"$3":"$2-$3"))+n;case 115:return~Xe(n,"stretch")?Xt(M(n,"stretch","fill-available"),e)+n:n}break;case 4949:if(B(n,e+1)!==115)break;case 6444:switch(B(n,K(n)-3-(~Xe(n,"!important")&&10))){case 107:return M(n,":",":"+I)+n;case 101:return M(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+I+(B(n,14)===45?"inline-":"")+"box$3$1"+I+"$2$3$1"+N+"$2box$3")+n}break;case 5936:switch(B(n,e+11)){case 114:return I+n+N+M(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return I+n+N+M(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return I+n+N+M(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return I+n+N+n+n}return n}var pr=function(e,r,i,t){if(e.length>-1&&!e.return)switch(e.type){case rt:e.return=Xt(e.value,e.length);break;case jt:return le([fe(e,{value:M(e.value,"@","@"+I)})],t);case nt:if(e.length)return Kn(e.props,function(a){switch(qn(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return le([fe(e,{props:[M(a,/:(read-\w+)/,":"+Me+"$1")]})],t);case"::placeholder":return le([fe(e,{props:[M(a,/:(plac\w+)/,":"+I+"input-$1")]}),fe(e,{props:[M(a,/:(plac\w+)/,":"+Me+"$1")]}),fe(e,{props:[M(a,/:(plac\w+)/,N+"input-$1")]})],t)}return""})}},vr=[pr],hr=function(e){var r=e.key;if(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(v){var f=v.getAttribute("data-emotion");f.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var t=e.stylisPlugins||vr,a={},u,l=[];u=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var f=v.getAttribute("data-emotion").split(" "),p=1;p=4;++i,t-=4)r=n.charCodeAt(i)&255|(n.charCodeAt(++i)&255)<<8|(n.charCodeAt(++i)&255)<<16|(n.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(t){case 3:e^=(n.charCodeAt(i+2)&255)<<16;case 2:e^=(n.charCodeAt(i+1)&255)<<8;case 1:e^=n.charCodeAt(i)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Cr={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,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},Sr=/[A-Z]|^ms/g,Fr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jt=function(e){return e.charCodeAt(1)===45},Ft=function(e){return e!=null&&typeof e!="boolean"},Ue=ur(function(n){return Jt(n)?n:n.replace(Sr,"-$&").toLowerCase()}),yt=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(Fr,function(i,t,a){return X={name:t,styles:a,next:X},t})}return Cr[e]!==1&&!Jt(e)&&typeof r=="number"&&r!==0?r+"px":r};function me(n,e,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return X={name:r.name,styles:r.styles,next:X},r.name;if(r.styles!==void 0){var i=r.next;if(i!==void 0)for(;i!==void 0;)X={name:i.name,styles:i.styles,next:X},i=i.next;var t=r.styles+";";return t}return yr(n,e,r)}case"function":{if(n!==void 0){var a=X,u=r(n);return X=a,me(n,e,u)}break}}if(e==null)return r;var l=e[r];return l!==void 0?l:r}function yr(n,e,r){var i="";if(Array.isArray(r))for(var t=0;t({x:n,y:n});function Br(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function en(n){return nn(n)?(n.nodeName||"").toLowerCase():"#document"}function Y(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function tn(n){var e;return(e=(nn(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function nn(n){return n instanceof Node||n instanceof Y(n).Node}function Qe(n){return n instanceof Element||n instanceof Y(n).Element}function st(n){return n instanceof HTMLElement||n instanceof Y(n).HTMLElement}function xt(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Y(n).ShadowRoot}function rn(n){const{overflow:e,overflowX:r,overflowY:i,display:t}=lt(n);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(t)}function $r(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Hr(n){return["html","body","#document"].includes(en(n))}function lt(n){return Y(n).getComputedStyle(n)}function Nr(n){if(en(n)==="html")return n;const e=n.assignedSlot||n.parentNode||xt(n)&&n.host||tn(n);return xt(e)?e.host:e}function an(n){const e=Nr(n);return Hr(e)?n.ownerDocument?n.ownerDocument.body:n.body:st(e)&&rn(e)?e:an(e)}function Le(n,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);const t=an(n),a=t===((i=n.ownerDocument)==null?void 0:i.body),u=Y(t);return a?e.concat(u,u.visualViewport||[],rn(t)?t:[],u.frameElement&&r?Le(u.frameElement):[]):e.concat(t,Le(t,[],r))}function _r(n){const e=lt(n);let r=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const t=st(n),a=t?n.offsetWidth:r,u=t?n.offsetHeight:i,l=Pe(r)!==a||Pe(i)!==u;return l&&(r=a,i=u),{width:r,height:i,$:l}}function ct(n){return Qe(n)?n:n.contextElement}function ze(n){const e=ct(n);if(!st(e))return Re(1);const r=e.getBoundingClientRect(),{width:i,height:t,$:a}=_r(e);let u=(a?Pe(r.width):r.width)/i,l=(a?Pe(r.height):r.height)/t;return(!u||!Number.isFinite(u))&&(u=1),(!l||!Number.isFinite(l))&&(l=1),{x:u,y:l}}const Ur=Re(0);function zr(n){const e=Y(n);return!$r()||!e.visualViewport?Ur:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Wr(n,e,r){return e===void 0&&(e=!1),!r||e&&r!==Y(n)?!1:e}function Dt(n,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);const t=n.getBoundingClientRect(),a=ct(n);let u=Re(1);e&&(i?Qe(i)&&(u=ze(i)):u=ze(n));const l=Wr(a,r,i)?zr(a):Re(0);let o=(t.left+l.x)/u.x,s=(t.top+l.y)/u.y,c=t.width/u.x,d=t.height/u.y;if(a){const m=Y(a),g=i&&Qe(i)?Y(i):i;let b=m.frameElement;for(;b&&i&&g!==m;){const v=ze(b),f=b.getBoundingClientRect(),p=lt(b),E=f.left+(b.clientLeft+parseFloat(p.paddingLeft))*v.x,y=f.top+(b.clientTop+parseFloat(p.paddingTop))*v.y;o*=v.x,s*=v.y,c*=v.x,d*=v.y,o+=E,s+=y,b=Y(b).frameElement}}return Br({width:c,height:d,x:o,y:s})}function jr(n,e){let r=null,i;const t=tn(n);function a(){clearTimeout(i),r&&r.disconnect(),r=null}function u(l,o){l===void 0&&(l=!1),o===void 0&&(o=1),a();const{left:s,top:c,width:d,height:m}=n.getBoundingClientRect();if(l||e(),!d||!m)return;const g=Fe(c),b=Fe(t.clientWidth-(s+d)),v=Fe(t.clientHeight-(c+m)),f=Fe(s),E={rootMargin:-g+"px "+-b+"px "+-v+"px "+-f+"px",threshold:kr(0,Tr(1,o))||1};let y=!0;function D(A){const x=A[0].intersectionRatio;if(x!==o){if(!y)return u();x?u(!1,x):i=setTimeout(()=>{u(!1,1e-7)},100)}y=!1}try{r=new IntersectionObserver(D,{...E,root:t.ownerDocument})}catch{r=new IntersectionObserver(D,E)}r.observe(n)}return u(!0),a}function Gr(n,e,r,i){i===void 0&&(i={});const{ancestorScroll:t=!0,ancestorResize:a=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:o=!1}=i,s=ct(n),c=t||a?[...s?Le(s):[],...Le(e)]:[];c.forEach(p=>{t&&p.addEventListener("scroll",r,{passive:!0}),a&&p.addEventListener("resize",r)});const d=s&&l?jr(s,r):null;let m=-1,g=null;u&&(g=new ResizeObserver(p=>{let[E]=p;E&&E.target===s&&g&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{g&&g.observe(e)})),r()}),s&&!o&&g.observe(s),g.observe(e));let b,v=o?Dt(n):null;o&&f();function f(){const p=Dt(n);v&&(p.x!==v.x||p.y!==v.y||p.width!==v.width||p.height!==v.height)&&r(),v=p,b=requestAnimationFrame(f)}return r(),()=>{c.forEach(p=>{t&&p.removeEventListener("scroll",r),a&&p.removeEventListener("resize",r)}),d&&d(),g&&g.disconnect(),g=null,o&&cancelAnimationFrame(b)}}function Yr(n){if(Array.isArray(n))return Vn(n)}function qr(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Kr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +import{a as O,b as Vn,c as zt,d as Pn,e as Rn,_ as Ce,f as Ln,g as Tn,h as kn,i as Bn}from"./vendor-3db6068a.js";import{_ as F}from"./reactDnd-dc8b0776.js";import{d as gt,r as h,b as $n}from"./react-432945ee.js";import{m as Hn}from"./memoize-acaceb73.js";function Nn(n){if(n.sheet)return n.sheet;for(var e=0;e0?B(de,--U):0,ce--,R===10&&(ce=1,He--),R}function W(){return R=U2||he(R)>3?"":" "}function Qn(n,e){for(;--e&&W()&&!(R<48||R>102||R>57&&R<65||R>70&&R<97););return ge(n,De()+(e<6&&Z()==32&&W()==32))}function Ze(n){for(;W();)switch(R){case n:return U;case 34:case 39:n!==34&&n!==39&&Ze(R);break;case 40:n===41&&Ze(n);break;case 92:W();break}return U}function er(n,e){for(;W()&&n+R!==47+10;)if(n+R===42+42&&Z()===47)break;return"/*"+ge(e,U-1)+"*"+$e(n===47?n:W())}function tr(n){for(;!he(Z());)W();return ge(n,U)}function nr(n){return Kt(Ae("",null,null,null,[""],n=qt(n),0,[0],n))}function Ae(n,e,r,i,t,a,u,l,o){for(var s=0,c=0,d=u,m=0,g=0,b=0,v=1,f=1,p=1,E=0,y="",D=t,A=a,x=i,C=y;f;)switch(b=E,E=W()){case 40:if(b!=108&&B(C,d-1)==58){Xe(C+=M(we(E),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:C+=we(E);break;case 9:case 10:case 13:case 32:C+=Jn(b);break;case 92:C+=Qn(De()-1,7);continue;case 47:switch(Z()){case 42:case 47:Se(rr(er(W(),De()),e,r),o);break;default:C+="/"}break;case 123*v:l[s++]=K(C)*p;case 125*v:case 59:case 0:switch(E){case 0:case 125:f=0;case 59+c:p==-1&&(C=M(C,/\f/g,"")),g>0&&K(C)-d&&Se(g>32?Et(C+";",i,r,d-1):Et(M(C," ","")+";",i,r,d-2),o);break;case 59:C+=";";default:if(Se(x=bt(C,e,r,s,c,t,l,y,D=[],A=[],d),a),E===123)if(c===0)Ae(C,e,x,x,D,a,d,l,A);else switch(m===99&&B(C,3)===110?100:m){case 100:case 108:case 109:case 115:Ae(n,x,x,i&&Se(bt(n,x,x,0,0,t,l,y,t,D=[],d),A),t,A,d,l,i?D:A);break;default:Ae(C,x,x,x,[""],A,0,l,A)}}s=c=g=0,v=p=1,y=C="",d=u;break;case 58:d=1+K(C),g=b;default:if(v<1){if(E==123)--v;else if(E==125&&v++==0&&Zn()==125)continue}switch(C+=$e(E),E*v){case 38:p=c>0?1:(C+="\f",-1);break;case 44:l[s++]=(K(C)-1)*p,p=1;break;case 64:Z()===45&&(C+=we(W())),m=Z(),c=d=K(y=C+=tr(De())),E++;break;case 45:b===45&&K(C)==2&&(v=0)}}return a}function bt(n,e,r,i,t,a,u,l,o,s,c){for(var d=t-1,m=t===0?a:[""],g=it(m),b=0,v=0,f=0;b0?m[p]+" "+E:M(E,/&\f/g,m[p])))&&(o[f++]=y);return Ne(n,e,r,t===0?nt:l,o,s,c)}function rr(n,e,r){return Ne(n,e,r,Wt,$e(Xn()),ve(n,2,-2),0)}function Et(n,e,r,i){return Ne(n,e,r,rt,ve(n,0,i),ve(n,i+1,-1),i)}function le(n,e){for(var r="",i=it(n),t=0;t6)switch(B(n,e+1)){case 109:if(B(n,e+4)!==45)break;case 102:return M(n,/(.+:)(.+)-([^]+)/,"$1"+I+"$2-$3$1"+Me+(B(n,e+3)==108?"$3":"$2-$3"))+n;case 115:return~Xe(n,"stretch")?Xt(M(n,"stretch","fill-available"),e)+n:n}break;case 4949:if(B(n,e+1)!==115)break;case 6444:switch(B(n,K(n)-3-(~Xe(n,"!important")&&10))){case 107:return M(n,":",":"+I)+n;case 101:return M(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+I+(B(n,14)===45?"inline-":"")+"box$3$1"+I+"$2$3$1"+N+"$2box$3")+n}break;case 5936:switch(B(n,e+11)){case 114:return I+n+N+M(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return I+n+N+M(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return I+n+N+M(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return I+n+N+n+n}return n}var pr=function(e,r,i,t){if(e.length>-1&&!e.return)switch(e.type){case rt:e.return=Xt(e.value,e.length);break;case jt:return le([fe(e,{value:M(e.value,"@","@"+I)})],t);case nt:if(e.length)return Kn(e.props,function(a){switch(qn(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return le([fe(e,{props:[M(a,/:(read-\w+)/,":"+Me+"$1")]})],t);case"::placeholder":return le([fe(e,{props:[M(a,/:(plac\w+)/,":"+I+"input-$1")]}),fe(e,{props:[M(a,/:(plac\w+)/,":"+Me+"$1")]}),fe(e,{props:[M(a,/:(plac\w+)/,N+"input-$1")]})],t)}return""})}},vr=[pr],hr=function(e){var r=e.key;if(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(v){var f=v.getAttribute("data-emotion");f.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var t=e.stylisPlugins||vr,a={},u,l=[];u=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var f=v.getAttribute("data-emotion").split(" "),p=1;p=4;++i,t-=4)r=n.charCodeAt(i)&255|(n.charCodeAt(++i)&255)<<8|(n.charCodeAt(++i)&255)<<16|(n.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(t){case 3:e^=(n.charCodeAt(i+2)&255)<<16;case 2:e^=(n.charCodeAt(i+1)&255)<<8;case 1:e^=n.charCodeAt(i)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Cr={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,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},Sr=/[A-Z]|^ms/g,Fr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jt=function(e){return e.charCodeAt(1)===45},Ft=function(e){return e!=null&&typeof e!="boolean"},Ue=ur(function(n){return Jt(n)?n:n.replace(Sr,"-$&").toLowerCase()}),yt=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(Fr,function(i,t,a){return X={name:t,styles:a,next:X},t})}return Cr[e]!==1&&!Jt(e)&&typeof r=="number"&&r!==0?r+"px":r};function me(n,e,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return X={name:r.name,styles:r.styles,next:X},r.name;if(r.styles!==void 0){var i=r.next;if(i!==void 0)for(;i!==void 0;)X={name:i.name,styles:i.styles,next:X},i=i.next;var t=r.styles+";";return t}return yr(n,e,r)}case"function":{if(n!==void 0){var a=X,u=r(n);return X=a,me(n,e,u)}break}}if(e==null)return r;var l=e[r];return l!==void 0?l:r}function yr(n,e,r){var i="";if(Array.isArray(r))for(var t=0;t({x:n,y:n});function Br(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function en(n){return nn(n)?(n.nodeName||"").toLowerCase():"#document"}function Y(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function tn(n){var e;return(e=(nn(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function nn(n){return n instanceof Node||n instanceof Y(n).Node}function Qe(n){return n instanceof Element||n instanceof Y(n).Element}function st(n){return n instanceof HTMLElement||n instanceof Y(n).HTMLElement}function xt(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Y(n).ShadowRoot}function rn(n){const{overflow:e,overflowX:r,overflowY:i,display:t}=lt(n);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(t)}function $r(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Hr(n){return["html","body","#document"].includes(en(n))}function lt(n){return Y(n).getComputedStyle(n)}function Nr(n){if(en(n)==="html")return n;const e=n.assignedSlot||n.parentNode||xt(n)&&n.host||tn(n);return xt(e)?e.host:e}function an(n){const e=Nr(n);return Hr(e)?n.ownerDocument?n.ownerDocument.body:n.body:st(e)&&rn(e)?e:an(e)}function Le(n,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);const t=an(n),a=t===((i=n.ownerDocument)==null?void 0:i.body),u=Y(t);return a?e.concat(u,u.visualViewport||[],rn(t)?t:[],u.frameElement&&r?Le(u.frameElement):[]):e.concat(t,Le(t,[],r))}function _r(n){const e=lt(n);let r=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const t=st(n),a=t?n.offsetWidth:r,u=t?n.offsetHeight:i,l=Pe(r)!==a||Pe(i)!==u;return l&&(r=a,i=u),{width:r,height:i,$:l}}function ct(n){return Qe(n)?n:n.contextElement}function ze(n){const e=ct(n);if(!st(e))return Re(1);const r=e.getBoundingClientRect(),{width:i,height:t,$:a}=_r(e);let u=(a?Pe(r.width):r.width)/i,l=(a?Pe(r.height):r.height)/t;return(!u||!Number.isFinite(u))&&(u=1),(!l||!Number.isFinite(l))&&(l=1),{x:u,y:l}}const Ur=Re(0);function zr(n){const e=Y(n);return!$r()||!e.visualViewport?Ur:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Wr(n,e,r){return e===void 0&&(e=!1),!r||e&&r!==Y(n)?!1:e}function Dt(n,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);const t=n.getBoundingClientRect(),a=ct(n);let u=Re(1);e&&(i?Qe(i)&&(u=ze(i)):u=ze(n));const l=Wr(a,r,i)?zr(a):Re(0);let o=(t.left+l.x)/u.x,s=(t.top+l.y)/u.y,c=t.width/u.x,d=t.height/u.y;if(a){const m=Y(a),g=i&&Qe(i)?Y(i):i;let b=m.frameElement;for(;b&&i&&g!==m;){const v=ze(b),f=b.getBoundingClientRect(),p=lt(b),E=f.left+(b.clientLeft+parseFloat(p.paddingLeft))*v.x,y=f.top+(b.clientTop+parseFloat(p.paddingTop))*v.y;o*=v.x,s*=v.y,c*=v.x,d*=v.y,o+=E,s+=y,b=Y(b).frameElement}}return Br({width:c,height:d,x:o,y:s})}function jr(n,e){let r=null,i;const t=tn(n);function a(){clearTimeout(i),r&&r.disconnect(),r=null}function u(l,o){l===void 0&&(l=!1),o===void 0&&(o=1),a();const{left:s,top:c,width:d,height:m}=n.getBoundingClientRect();if(l||e(),!d||!m)return;const g=Fe(c),b=Fe(t.clientWidth-(s+d)),v=Fe(t.clientHeight-(c+m)),f=Fe(s),E={rootMargin:-g+"px "+-b+"px "+-v+"px "+-f+"px",threshold:kr(0,Tr(1,o))||1};let y=!0;function D(A){const x=A[0].intersectionRatio;if(x!==o){if(!y)return u();x?u(!1,x):i=setTimeout(()=>{u(!1,1e-7)},100)}y=!1}try{r=new IntersectionObserver(D,{...E,root:t.ownerDocument})}catch{r=new IntersectionObserver(D,E)}r.observe(n)}return u(!0),a}function Gr(n,e,r,i){i===void 0&&(i={});const{ancestorScroll:t=!0,ancestorResize:a=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:o=!1}=i,s=ct(n),c=t||a?[...s?Le(s):[],...Le(e)]:[];c.forEach(p=>{t&&p.addEventListener("scroll",r,{passive:!0}),a&&p.addEventListener("resize",r)});const d=s&&l?jr(s,r):null;let m=-1,g=null;u&&(g=new ResizeObserver(p=>{let[E]=p;E&&E.target===s&&g&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{g&&g.observe(e)})),r()}),s&&!o&&g.observe(s),g.observe(e));let b,v=o?Dt(n):null;o&&f();function f(){const p=Dt(n);v&&(p.x!==v.x||p.y!==v.y||p.width!==v.width||p.height!==v.height)&&r(),v=p,b=requestAnimationFrame(f)}return r(),()=>{c.forEach(p=>{t&&p.removeEventListener("scroll",r),a&&p.removeEventListener("resize",r)}),d&&d(),g&&g.disconnect(),g=null,o&&cancelAnimationFrame(b)}}function Yr(n){if(Array.isArray(n))return Vn(n)}function qr(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Kr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dt(n){return Yr(n)||qr(n)||zt(n)||Kr()}function Xr(n){if(Array.isArray(n))return n}function Zr(n,e){var r=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(r!=null){var i,t,a,u,l=[],o=!0,s=!1;try{if(a=(r=r.call(n)).next,e===0){if(Object(r)!==r)return;o=!1}else for(;!(o=(i=a.call(r)).done)&&(l.push(i.value),l.length!==e);o=!0);}catch(c){s=!0,t=c}finally{try{if(!o&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(s)throw t}}return l}}function Jr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ne(n,e){return Xr(n)||Zr(n,e)||zt(n,e)||Jr()}function re(n,e){if(n==null)return{};var r=Pn(n,e),i,t;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(t=0;t=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(r[i]=n[i])}return r}var Qr=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ei(n){var e=n.defaultInputValue,r=e===void 0?"":e,i=n.defaultMenuIsOpen,t=i===void 0?!1:i,a=n.defaultValue,u=a===void 0?null:a,l=n.inputValue,o=n.menuIsOpen,s=n.onChange,c=n.onInputChange,d=n.onMenuClose,m=n.onMenuOpen,g=n.value,b=re(n,Qr),v=h.useState(l!==void 0?l:r),f=ne(v,2),p=f[0],E=f[1],y=h.useState(o!==void 0?o:t),D=ne(y,2),A=D[0],x=D[1],C=h.useState(g!==void 0?g:u),w=ne(C,2),V=w[0],$=w[1],_=h.useCallback(function(j,ie){typeof s=="function"&&s(j,ie),$(j)},[s]),H=h.useCallback(function(j,ie){var ae;typeof c=="function"&&(ae=c(j,ie)),E(ae!==void 0?ae:j)},[c]),J=h.useCallback(function(){typeof m=="function"&&m(),x(!0)},[m]),Q=h.useCallback(function(){typeof d=="function"&&d(),x(!1)},[d]),k=l!==void 0?l:p,L=o!==void 0?o:A,q=g!==void 0?g:V;return F(F({},b),{},{inputValue:k,menuIsOpen:L,onChange:_,onInputChange:H,onMenuClose:Q,onMenuOpen:J,value:q})}function ti(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}var et=h.useLayoutEffect,ni=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Te=function(){};function ri(n,e){return e?e[0]==="-"?n+e:n+"__"+e:n}function ii(n,e){for(var r=arguments.length,i=new Array(r>2?r-2:0),t=2;t-1}function ai(n){return _e(n)?window.innerHeight:n.clientHeight}function un(n){return _e(n)?window.pageYOffset:n.scrollTop}function ke(n,e){if(_e(n)){window.scrollTo(0,e);return}n.scrollTop=e}function oi(n){var e=getComputedStyle(n),r=e.position==="absolute",i=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var t=n;t=t.parentElement;)if(e=getComputedStyle(t),!(r&&e.position==="static")&&i.test(e.overflow+e.overflowY+e.overflowX))return t;return document.documentElement}function ui(n,e,r,i){return r*((n=n/i-1)*n*n+1)+e}function ye(n,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Te,t=un(n),a=e-t,u=10,l=0;function o(){l+=u;var s=ui(l,t,a,r);ke(n,s),lr.bottom?ke(n,Math.min(e.offsetTop+e.clientHeight-n.offsetHeight+t,n.scrollHeight)):i.top-t1?r-1:0),t=1;t=b)return{placement:"bottom",maxHeight:e};if(V>=b&&!u)return a&&ye(o,$,H),{placement:"bottom",maxHeight:e};if(!u&&V>=i||u&&C>=i){a&&ye(o,$,H);var J=u?C-D:V-D;return{placement:"bottom",maxHeight:J}}if(t==="auto"||u){var Q=e,k=u?x:w;return k>=i&&(Q=Math.min(k-D-l,e)),{placement:"top",maxHeight:Q}}if(t==="bottom")return a&&ke(o,$),{placement:"bottom",maxHeight:e};break;case"top":if(x>=b)return{placement:"top",maxHeight:e};if(w>=b&&!u)return a&&ye(o,_,H),{placement:"top",maxHeight:e};if(!u&&w>=i||u&&x>=i){var L=e;return(!u&&w>=i||u&&x>=i)&&(L=u?x-A:w-A),a&&ye(o,_,H),{placement:"top",maxHeight:L}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(t,'".'))}return s}function bi(n){var e={bottom:"top",top:"bottom"};return n?e[n]:"bottom"}var ln=function(e){return e==="auto"?"bottom":e},Ei=function(e,r){var i,t=e.placement,a=e.theme,u=a.borderRadius,l=a.spacing,o=a.colors;return F((i={label:"menu"},Ce(i,bi(t),"100%"),Ce(i,"position","absolute"),Ce(i,"width","100%"),Ce(i,"zIndex",1),i),r?{}:{backgroundColor:o.neutral0,borderRadius:u,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},cn=h.createContext(null),Ci=function(e){var r=e.children,i=e.minMenuHeight,t=e.maxMenuHeight,a=e.menuPlacement,u=e.menuPosition,l=e.menuShouldScrollIntoView,o=e.theme,s=h.useContext(cn)||{},c=s.setPortalPlacement,d=h.useRef(null),m=h.useState(t),g=ne(m,2),b=g[0],v=g[1],f=h.useState(null),p=ne(f,2),E=p[0],y=p[1],D=o.spacing.controlHeight;return et(function(){var A=d.current;if(A){var x=u==="fixed",C=l&&!x,w=gi({maxHeight:t,menuEl:A,minHeight:i,placement:a,shouldScroll:C,isFixedPosition:x,controlHeight:D});v(w.maxHeight),y(w.placement),c==null||c(w.placement)}},[t,a,u,l,i,c,D]),r({ref:d,placerProps:F(F({},e),{},{placement:E||ln(a),maxHeight:b})})},Si=function(e){var r=e.children,i=e.innerRef,t=e.innerProps;return S("div",O({},P(e,"menu",{menu:!0}),{ref:i},t),r)},Fi=Si,yi=function(e,r){var i=e.maxHeight,t=e.theme.spacing.baseUnit;return F({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:t,paddingTop:t})},Oi=function(e){var r=e.children,i=e.innerProps,t=e.innerRef,a=e.isMulti;return S("div",O({},P(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:t},i),r)},dn=function(e,r){var i=e.theme,t=i.spacing.baseUnit,a=i.colors;return F({textAlign:"center"},r?{}:{color:a.neutral40,padding:"".concat(t*2,"px ").concat(t*3,"px")})},xi=dn,Di=dn,wi=function(e){var r=e.children,i=r===void 0?"No options":r,t=e.innerProps,a=re(e,hi);return S("div",O({},P(F(F({},a),{},{children:i,innerProps:t}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),t),i)},Ai=function(e){var r=e.children,i=r===void 0?"Loading...":r,t=e.innerProps,a=re(e,mi);return S("div",O({},P(F(F({},a),{},{children:i,innerProps:t}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),t),i)},Ii=function(e){var r=e.rect,i=e.offset,t=e.position;return{left:r.left,position:t,top:i,width:r.width,zIndex:1}},Mi=function(e){var r=e.appendTo,i=e.children,t=e.controlElement,a=e.innerProps,u=e.menuPlacement,l=e.menuPosition,o=h.useRef(null),s=h.useRef(null),c=h.useState(ln(u)),d=ne(c,2),m=d[0],g=d[1],b=h.useMemo(function(){return{setPortalPlacement:g}},[]),v=h.useState(null),f=ne(v,2),p=f[0],E=f[1],y=h.useCallback(function(){if(t){var C=si(t),w=l==="fixed"?0:window.pageYOffset,V=C[m]+w;(V!==(p==null?void 0:p.offset)||C.left!==(p==null?void 0:p.rect.left)||C.width!==(p==null?void 0:p.rect.width))&&E({offset:V,rect:C})}},[t,l,m,p==null?void 0:p.offset,p==null?void 0:p.rect.left,p==null?void 0:p.rect.width]);et(function(){y()},[y]);var D=h.useCallback(function(){typeof s.current=="function"&&(s.current(),s.current=null),t&&o.current&&(s.current=Gr(t,o.current,y,{elementResize:"ResizeObserver"in window}))},[t,y]);et(function(){D()},[D]);var A=h.useCallback(function(C){o.current=C,D()},[D]);if(!r&&l!=="fixed"||!p)return null;var x=S("div",O({ref:A},P(F(F({},e),{},{offset:p.offset,position:l,rect:p.rect}),"menuPortal",{"menu-portal":!0}),a),i);return S(cn.Provider,{value:b},r?$n.createPortal(x,r):x)},Vi=function(e){var r=e.isDisabled,i=e.isRtl;return{label:"container",direction:i?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},Pi=function(e){var r=e.children,i=e.innerProps,t=e.isDisabled,a=e.isRtl;return S("div",O({},P(e,"container",{"--is-disabled":t,"--is-rtl":a}),i),r)},Ri=function(e,r){var i=e.theme.spacing,t=e.isMulti,a=e.hasValue,u=e.selectProps.controlShouldRenderValue;return F({alignItems:"center",display:t&&a&&u?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},Li=function(e){var r=e.children,i=e.innerProps,t=e.isMulti,a=e.hasValue;return S("div",O({},P(e,"valueContainer",{"value-container":!0,"value-container--is-multi":t,"value-container--has-value":a}),i),r)},Ti=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ki=function(e){var r=e.children,i=e.innerProps;return S("div",O({},P(e,"indicatorsContainer",{indicators:!0}),i),r)},Mt,Bi=["size"],$i=["innerProps","isRtl","size"],Hi={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},fn=function(e){var r=e.size,i=re(e,Bi);return S("svg",O({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Hi},i))},ft=function(e){return S(fn,O({size:20},e),S("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},pn=function(e){return S(fn,O({size:20},e),S("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},vn=function(e,r){var i=e.isFocused,t=e.theme,a=t.spacing.baseUnit,u=t.colors;return F({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:i?u.neutral60:u.neutral20,padding:a*2,":hover":{color:i?u.neutral80:u.neutral40}})},Ni=vn,_i=function(e){var r=e.children,i=e.innerProps;return S("div",O({},P(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),r||S(pn,null))},Ui=vn,zi=function(e){var r=e.children,i=e.innerProps;return S("div",O({},P(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),r||S(ft,null))},Wi=function(e,r){var i=e.isDisabled,t=e.theme,a=t.spacing.baseUnit,u=t.colors;return F({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:i?u.neutral10:u.neutral20,marginBottom:a*2,marginTop:a*2})},ji=function(e){var r=e.innerProps;return S("span",O({},r,P(e,"indicatorSeparator",{"indicator-separator":!0})))},Gi=Lr(Mt||(Mt=ti([` 0%, 80%, 100% { opacity: 0; } diff --git a/view/assets/vendor-6029fc34.js b/view/assets/vendor-3db6068a.js similarity index 80% rename from view/assets/vendor-6029fc34.js rename to view/assets/vendor-3db6068a.js index 3b27f064..357d4625 100644 --- a/view/assets/vendor-6029fc34.js +++ b/view/assets/vendor-3db6068a.js @@ -5,11 +5,11 @@ import{r as J,g as Lr,b as Os,d as Es,c as _r}from"./react-432945ee.js";function * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ge=typeof Symbol=="function"&&Symbol.for,Qn=Ge?Symbol.for("react.element"):60103,Xn=Ge?Symbol.for("react.portal"):60106,$r=Ge?Symbol.for("react.fragment"):60107,Ur=Ge?Symbol.for("react.strict_mode"):60108,Br=Ge?Symbol.for("react.profiler"):60114,Wr=Ge?Symbol.for("react.provider"):60109,zr=Ge?Symbol.for("react.context"):60110,Zn=Ge?Symbol.for("react.async_mode"):60111,qr=Ge?Symbol.for("react.concurrent_mode"):60111,Yr=Ge?Symbol.for("react.forward_ref"):60112,Hr=Ge?Symbol.for("react.suspense"):60113,xs=Ge?Symbol.for("react.suspense_list"):60120,Vr=Ge?Symbol.for("react.memo"):60115,Kr=Ge?Symbol.for("react.lazy"):60116,_s=Ge?Symbol.for("react.block"):60121,Cs=Ge?Symbol.for("react.fundamental"):60117,Ts=Ge?Symbol.for("react.responder"):60118,Ps=Ge?Symbol.for("react.scope"):60119;function at(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Qn:switch(e=e.type,e){case Zn:case qr:case $r:case Br:case Ur:case Hr:return e;default:switch(e=e&&e.$$typeof,e){case zr:case Yr:case Kr:case Vr:case Wr:return e;default:return t}}case Xn:return t}}}function Qo(e){return at(e)===qr}Ne.AsyncMode=Zn;Ne.ConcurrentMode=qr;Ne.ContextConsumer=zr;Ne.ContextProvider=Wr;Ne.Element=Qn;Ne.ForwardRef=Yr;Ne.Fragment=$r;Ne.Lazy=Kr;Ne.Memo=Vr;Ne.Portal=Xn;Ne.Profiler=Br;Ne.StrictMode=Ur;Ne.Suspense=Hr;Ne.isAsyncMode=function(e){return Qo(e)||at(e)===Zn};Ne.isConcurrentMode=Qo;Ne.isContextConsumer=function(e){return at(e)===zr};Ne.isContextProvider=function(e){return at(e)===Wr};Ne.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Qn};Ne.isForwardRef=function(e){return at(e)===Yr};Ne.isFragment=function(e){return at(e)===$r};Ne.isLazy=function(e){return at(e)===Kr};Ne.isMemo=function(e){return at(e)===Vr};Ne.isPortal=function(e){return at(e)===Xn};Ne.isProfiler=function(e){return at(e)===Br};Ne.isStrictMode=function(e){return at(e)===Ur};Ne.isSuspense=function(e){return at(e)===Hr};Ne.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$r||e===qr||e===Br||e===Ur||e===Hr||e===xs||typeof e=="object"&&e!==null&&(e.$$typeof===Kr||e.$$typeof===Vr||e.$$typeof===Wr||e.$$typeof===zr||e.$$typeof===Yr||e.$$typeof===Cs||e.$$typeof===Ts||e.$$typeof===Ps||e.$$typeof===_s)};Ne.typeOf=at;Go.exports=Ne;var ks=Go.exports,Xo=ks,js={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},As={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Zo={};Zo[Xo.ForwardRef]=js;Zo[Xo.Memo]=As;function ei(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ms}=Object.prototype,{getPrototypeOf:ea}=Object,Jr=(e=>t=>{const r=Ms.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),vt=e=>(e=e.toLowerCase(),t=>Jr(t)===e),Gr=e=>t=>typeof t===e,{isArray:Vt}=Array,or=Gr("undefined");function Ds(e){return e!==null&&!or(e)&&e.constructor!==null&&!or(e.constructor)&&ct(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ti=vt("ArrayBuffer");function Rs(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ti(e.buffer),t}const Fs=Gr("string"),ct=Gr("function"),ri=Gr("number"),Qr=e=>e!==null&&typeof e=="object",Ns=e=>e===!0||e===!1,Or=e=>{if(Jr(e)!=="object")return!1;const t=ea(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Is=vt("Date"),Ls=vt("File"),$s=vt("Blob"),Us=vt("FileList"),Bs=e=>Qr(e)&&ct(e.pipe),Ws=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ct(e.append)&&((t=Jr(e))==="formdata"||t==="object"&&ct(e.toString)&&e.toString()==="[object FormData]"))},zs=vt("URLSearchParams"),qs=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function lr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Vt(e))for(n=0,a=e.length;n0;)if(a=r[n],t===a.toLowerCase())return a;return null}const ai=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),oi=e=>!or(e)&&e!==ai;function kn(){const{caseless:e}=oi(this)&&this||{},t={},r=(n,a)=>{const o=e&&ni(t,a)||a;Or(t[o])&&Or(n)?t[o]=kn(t[o],n):Or(n)?t[o]=kn({},n):Vt(n)?t[o]=n.slice():t[o]=n};for(let n=0,a=arguments.length;n(lr(t,(a,o)=>{r&&ct(a)?e[o]=ei(a,r):e[o]=a},{allOwnKeys:n}),e),Hs=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vs=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Ks=(e,t,r,n)=>{let a,o,i;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)i=a[o],(!n||n(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=r!==!1&&ea(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Js=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Gs=e=>{if(!e)return null;if(Vt(e))return e;let t=e.length;if(!ri(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Qs=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ea(Uint8Array)),Xs=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},Zs=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},eu=vt("HTMLFormElement"),tu=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),Ra=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ru=vt("RegExp"),ii=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};lr(r,(a,o)=>{let i;(i=t(a,o,e))!==!1&&(n[o]=i||a)}),Object.defineProperties(e,n)},nu=e=>{ii(e,(t,r)=>{if(ct(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ct(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},au=(e,t)=>{const r={},n=a=>{a.forEach(o=>{r[o]=!0})};return Vt(e)?n(e):n(String(e).split(t)),r},ou=()=>{},iu=(e,t)=>(e=+e,Number.isFinite(e)?e:t),wn="abcdefghijklmnopqrstuvwxyz",Fa="0123456789",si={DIGIT:Fa,ALPHA:wn,ALPHA_DIGIT:wn+wn.toUpperCase()+Fa},su=(e=16,t=si.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function uu(e){return!!(e&&ct(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const cu=e=>{const t=new Array(10),r=(n,a)=>{if(Qr(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const o=Vt(n)?[]:{};return lr(n,(i,s)=>{const u=r(i,a+1);!or(u)&&(o[s]=u)}),t[a]=void 0,o}}return n};return r(e,0)},lu=vt("AsyncFunction"),fu=e=>e&&(Qr(e)||ct(e))&&ct(e.then)&&ct(e.catch),H={isArray:Vt,isArrayBuffer:ti,isBuffer:Ds,isFormData:Ws,isArrayBufferView:Rs,isString:Fs,isNumber:ri,isBoolean:Ns,isObject:Qr,isPlainObject:Or,isUndefined:or,isDate:Is,isFile:Ls,isBlob:$s,isRegExp:ru,isFunction:ct,isStream:Bs,isURLSearchParams:zs,isTypedArray:Qs,isFileList:Us,forEach:lr,merge:kn,extend:Ys,trim:qs,stripBOM:Hs,inherits:Vs,toFlatObject:Ks,kindOf:Jr,kindOfTest:vt,endsWith:Js,toArray:Gs,forEachEntry:Xs,matchAll:Zs,isHTMLForm:eu,hasOwnProperty:Ra,hasOwnProp:Ra,reduceDescriptors:ii,freezeMethods:nu,toObjectSet:au,toCamelCase:tu,noop:ou,toFiniteNumber:iu,findKey:ni,global:ai,isContextDefined:oi,ALPHABET:si,generateString:su,isSpecCompliantForm:uu,toJSONObject:cu,isAsyncFn:lu,isThenable:fu};function _e(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}H.inherits(_e,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:H.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ui=_e.prototype,ci={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ci[e]={value:e}});Object.defineProperties(_e,ci);Object.defineProperty(ui,"isAxiosError",{value:!0});_e.from=(e,t,r,n,a,o)=>{const i=Object.create(ui);return H.toFlatObject(e,i,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),_e.call(i,e.message,t,r,n,a),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const du=null;function jn(e){return H.isPlainObject(e)||H.isArray(e)}function li(e){return H.endsWith(e,"[]")?e.slice(0,-2):e}function Na(e,t,r){return e?e.concat(t).map(function(a,o){return a=li(a),!r&&o?"["+a+"]":a}).join(r?".":""):t}function pu(e){return H.isArray(e)&&!e.some(jn)}const hu=H.toFlatObject(H,{},null,function(t){return/^is[A-Z]/.test(t)});function Xr(e,t,r){if(!H.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=H.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,C){return!H.isUndefined(C[h])});const n=r.metaTokens,a=r.visitor||l,o=r.dots,i=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(t);if(!H.isFunction(a))throw new TypeError("visitor must be a function");function c(b){if(b===null)return"";if(H.isDate(b))return b.toISOString();if(!u&&H.isBlob(b))throw new _e("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(b)||H.isTypedArray(b)?u&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function l(b,h,C){let j=b;if(b&&!C&&typeof b=="object"){if(H.endsWith(h,"{}"))h=n?h:h.slice(0,-2),b=JSON.stringify(b);else if(H.isArray(b)&&pu(b)||(H.isFileList(b)||H.endsWith(h,"[]"))&&(j=H.toArray(b)))return h=li(h),j.forEach(function(O,_){!(H.isUndefined(O)||O===null)&&t.append(i===!0?Na([h],_,o):i===null?h:h+"[]",c(O))}),!1}return jn(b)?!0:(t.append(Na(C,h,o),c(b)),!1)}const d=[],g=Object.assign(hu,{defaultVisitor:l,convertValue:c,isVisitable:jn});function m(b,h){if(!H.isUndefined(b)){if(d.indexOf(b)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(b),H.forEach(b,function(j,x){(!(H.isUndefined(j)||j===null)&&a.call(t,j,H.isString(x)?x.trim():x,h,g))===!0&&m(j,h?h.concat(x):[x])}),d.pop()}}if(!H.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Ia(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ta(e,t){this._pairs=[],e&&Xr(e,this,t)}const fi=ta.prototype;fi.append=function(t,r){this._pairs.push([t,r])};fi.toString=function(t){const r=t?function(n){return t.call(this,n,Ia)}:Ia;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function mu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function di(e,t,r){if(!t)return e;const n=r&&r.encode||mu,a=r&&r.serialize;let o;if(a?o=a(t,r):o=H.isURLSearchParams(t)?t.toString():new ta(t,r).toString(n),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class vu{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){H.forEach(this.handlers,function(n){n!==null&&t(n)})}}const La=vu,pi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bu=typeof URLSearchParams<"u"?URLSearchParams:ta,gu=typeof FormData<"u"?FormData:null,yu=typeof Blob<"u"?Blob:null,wu={isBrowser:!0,classes:{URLSearchParams:bu,FormData:gu,Blob:yu},protocols:["http","https","file","blob","url","data"]},hi=typeof window<"u"&&typeof document<"u",Su=(e=>hi&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Ou=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Eu=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hi,hasStandardBrowserEnv:Su,hasStandardBrowserWebWorkerEnv:Ou},Symbol.toStringTag,{value:"Module"})),mt={...Eu,...wu};function xu(e,t){return Xr(e,new mt.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,o){return mt.isNode&&H.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function _u(e){return H.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Cu(e){const t={},r=Object.keys(e);let n;const a=r.length;let o;for(n=0;n=r.length;return i=!i&&H.isArray(a)?a.length:i,u?(H.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!s):((!a[i]||!H.isObject(a[i]))&&(a[i]=[]),t(r,n,a[i],o)&&H.isArray(a[i])&&(a[i]=Cu(a[i])),!s)}if(H.isFormData(e)&&H.isFunction(e.entries)){const r={};return H.forEachEntry(e,(n,a)=>{t(_u(n),a,r,0)}),r}return null}function Tu(e,t,r){if(H.isString(e))try{return(t||JSON.parse)(e),H.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ra={transitional:pi,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,o=H.isObject(t);if(o&&H.isHTMLForm(t)&&(t=new FormData(t)),H.isFormData(t))return a&&a?JSON.stringify(mi(t)):t;if(H.isArrayBuffer(t)||H.isBuffer(t)||H.isStream(t)||H.isFile(t)||H.isBlob(t))return t;if(H.isArrayBufferView(t))return t.buffer;if(H.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return xu(t,this.formSerializer).toString();if((s=H.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Xr(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||a?(r.setContentType("application/json",!1),Tu(t)):t}],transformResponse:[function(t){const r=this.transitional||ra.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(t&&H.isString(t)&&(n&&!this.responseType||a)){const i=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?_e.from(s,_e.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mt.classes.FormData,Blob:mt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],e=>{ra.headers[e]={}});const na=ra,Pu=H.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ku=e=>{const t={};let r,n,a;return e&&e.split(` -`).forEach(function(i){a=i.indexOf(":"),r=i.substring(0,a).trim().toLowerCase(),n=i.substring(a+1).trim(),!(!r||t[r]&&Pu[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},$a=Symbol("internals");function Zt(e){return e&&String(e).trim().toLowerCase()}function Er(e){return e===!1||e==null?e:H.isArray(e)?e.map(Er):String(e)}function ju(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Au=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Sn(e,t,r,n,a){if(H.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!H.isString(t)){if(H.isString(n))return t.indexOf(n)!==-1;if(H.isRegExp(n))return n.test(t)}}function Mu(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Du(e,t){const r=H.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,o,i){return this[n].call(this,t,a,o,i)},configurable:!0})})}class Zr{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function o(s,u,c){const l=Zt(u);if(!l)throw new Error("header name must be a non-empty string");const d=H.findKey(a,l);(!d||a[d]===void 0||c===!0||c===void 0&&a[d]!==!1)&&(a[d||u]=Er(s))}const i=(s,u)=>H.forEach(s,(c,l)=>o(c,l,u));return H.isPlainObject(t)||t instanceof this.constructor?i(t,r):H.isString(t)&&(t=t.trim())&&!Au(t)?i(ku(t),r):t!=null&&o(r,t,n),this}get(t,r){if(t=Zt(t),t){const n=H.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return ju(a);if(H.isFunction(r))return r.call(this,a,n);if(H.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Zt(t),t){const n=H.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Sn(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function o(i){if(i=Zt(i),i){const s=H.findKey(n,i);s&&(!r||Sn(n,n[s],s,r))&&(delete n[s],a=!0)}}return H.isArray(t)?t.forEach(o):o(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const o=r[n];(!t||Sn(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const r=this,n={};return H.forEach(this,(a,o)=>{const i=H.findKey(n,o);if(i){r[i]=Er(a),delete r[o];return}const s=t?Mu(o):String(o).trim();s!==o&&delete r[o],r[s]=Er(a),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return H.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&H.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[$a]=this[$a]={accessors:{}}).accessors,a=this.prototype;function o(i){const s=Zt(i);n[s]||(Du(a,i),n[s]=!0)}return H.isArray(t)?t.forEach(o):o(t),this}}Zr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);H.reduceDescriptors(Zr.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});H.freezeMethods(Zr);const Ot=Zr;function On(e,t){const r=this||na,n=t||r,a=Ot.from(n.headers);let o=n.data;return H.forEach(e,function(s){o=s.call(r,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function vi(e){return!!(e&&e.__CANCEL__)}function fr(e,t,r){_e.call(this,e??"canceled",_e.ERR_CANCELED,t,r),this.name="CanceledError"}H.inherits(fr,_e,{__CANCEL__:!0});function Ru(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new _e("Request failed with status code "+r.status,[_e.ERR_BAD_REQUEST,_e.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const Fu=mt.hasStandardBrowserEnv?{write(e,t,r,n,a,o){const i=[e+"="+encodeURIComponent(t)];H.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),H.isString(n)&&i.push("path="+n),H.isString(a)&&i.push("domain="+a),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Nu(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Iu(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function bi(e,t){return e&&!Nu(t)?Iu(e,t):t}const Lu=mt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function a(o){let i=o;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(i){const s=H.isString(i)?a(i):i;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function $u(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Uu(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,o=0,i;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),l=n[o];i||(i=c),r[a]=u,n[a]=c;let d=o,g=0;for(;d!==a;)g+=r[d++],d=d%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),c-i{const o=a.loaded,i=a.lengthComputable?a.total:void 0,s=o-r,u=n(s),c=o<=i;r=o;const l={loaded:o,total:i,progress:i?o/i:void 0,bytes:s,rate:u||void 0,estimated:u&&i&&c?(i-o)/u:void 0,event:a};l[t?"download":"upload"]=!0,e(l)}}const Bu=typeof XMLHttpRequest<"u",Wu=Bu&&function(e){return new Promise(function(r,n){let a=e.data;const o=Ot.from(e.headers).normalize();let{responseType:i,withXSRFToken:s}=e,u;function c(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let l;if(H.isFormData(a)){if(mt.hasStandardBrowserEnv||mt.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((l=o.getContentType())!==!1){const[h,...C]=l?l.split(";").map(j=>j.trim()).filter(Boolean):[];o.setContentType([h||"multipart/form-data",...C].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",C=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(h+":"+C))}const g=bi(e.baseURL,e.url);d.open(e.method.toUpperCase(),di(g,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function m(){if(!d)return;const h=Ot.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),j={data:!i||i==="text"||i==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:h,config:e,request:d};Ru(function(O){r(O),c()},function(O){n(O),c()},j),d=null}if("onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(n(new _e("Request aborted",_e.ECONNABORTED,e,d)),d=null)},d.onerror=function(){n(new _e("Network Error",_e.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let C=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const j=e.transitional||pi;e.timeoutErrorMessage&&(C=e.timeoutErrorMessage),n(new _e(C,j.clarifyTimeoutError?_e.ETIMEDOUT:_e.ECONNABORTED,e,d)),d=null},mt.hasStandardBrowserEnv&&(s&&H.isFunction(s)&&(s=s(e)),s||s!==!1&&Lu(g))){const h=e.xsrfHeaderName&&e.xsrfCookieName&&Fu.read(e.xsrfCookieName);h&&o.set(e.xsrfHeaderName,h)}a===void 0&&o.setContentType(null),"setRequestHeader"in d&&H.forEach(o.toJSON(),function(C,j){d.setRequestHeader(j,C)}),H.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),i&&i!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",Ua(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Ua(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=h=>{d&&(n(!h||h.type?new fr(null,e,d):h),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const b=$u(g);if(b&&mt.protocols.indexOf(b)===-1){n(new _e("Unsupported protocol "+b+":",_e.ERR_BAD_REQUEST,e));return}d.send(a||null)})},An={http:du,xhr:Wu};H.forEach(An,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ba=e=>`- ${e}`,zu=e=>H.isFunction(e)||e===null||e===!1,gi={getAdapter:e=>{e=H.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let o=0;o`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : + */var Ge=typeof Symbol=="function"&&Symbol.for,Xn=Ge?Symbol.for("react.element"):60103,Zn=Ge?Symbol.for("react.portal"):60106,$r=Ge?Symbol.for("react.fragment"):60107,Ur=Ge?Symbol.for("react.strict_mode"):60108,Br=Ge?Symbol.for("react.profiler"):60114,Wr=Ge?Symbol.for("react.provider"):60109,zr=Ge?Symbol.for("react.context"):60110,ea=Ge?Symbol.for("react.async_mode"):60111,qr=Ge?Symbol.for("react.concurrent_mode"):60111,Yr=Ge?Symbol.for("react.forward_ref"):60112,Hr=Ge?Symbol.for("react.suspense"):60113,xs=Ge?Symbol.for("react.suspense_list"):60120,Vr=Ge?Symbol.for("react.memo"):60115,Kr=Ge?Symbol.for("react.lazy"):60116,_s=Ge?Symbol.for("react.block"):60121,Cs=Ge?Symbol.for("react.fundamental"):60117,Ts=Ge?Symbol.for("react.responder"):60118,Ps=Ge?Symbol.for("react.scope"):60119;function at(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Xn:switch(e=e.type,e){case ea:case qr:case $r:case Br:case Ur:case Hr:return e;default:switch(e=e&&e.$$typeof,e){case zr:case Yr:case Kr:case Vr:case Wr:return e;default:return t}}case Zn:return t}}}function Qo(e){return at(e)===qr}Ne.AsyncMode=ea;Ne.ConcurrentMode=qr;Ne.ContextConsumer=zr;Ne.ContextProvider=Wr;Ne.Element=Xn;Ne.ForwardRef=Yr;Ne.Fragment=$r;Ne.Lazy=Kr;Ne.Memo=Vr;Ne.Portal=Zn;Ne.Profiler=Br;Ne.StrictMode=Ur;Ne.Suspense=Hr;Ne.isAsyncMode=function(e){return Qo(e)||at(e)===ea};Ne.isConcurrentMode=Qo;Ne.isContextConsumer=function(e){return at(e)===zr};Ne.isContextProvider=function(e){return at(e)===Wr};Ne.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xn};Ne.isForwardRef=function(e){return at(e)===Yr};Ne.isFragment=function(e){return at(e)===$r};Ne.isLazy=function(e){return at(e)===Kr};Ne.isMemo=function(e){return at(e)===Vr};Ne.isPortal=function(e){return at(e)===Zn};Ne.isProfiler=function(e){return at(e)===Br};Ne.isStrictMode=function(e){return at(e)===Ur};Ne.isSuspense=function(e){return at(e)===Hr};Ne.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$r||e===qr||e===Br||e===Ur||e===Hr||e===xs||typeof e=="object"&&e!==null&&(e.$$typeof===Kr||e.$$typeof===Vr||e.$$typeof===Wr||e.$$typeof===zr||e.$$typeof===Yr||e.$$typeof===Cs||e.$$typeof===Ts||e.$$typeof===Ps||e.$$typeof===_s)};Ne.typeOf=at;Go.exports=Ne;var ks=Go.exports,Xo=ks,js={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},As={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Zo={};Zo[Xo.ForwardRef]=js;Zo[Xo.Memo]=As;function ei(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ms}=Object.prototype,{getPrototypeOf:ta}=Object,Jr=(e=>t=>{const r=Ms.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),vt=e=>(e=e.toLowerCase(),t=>Jr(t)===e),Gr=e=>t=>typeof t===e,{isArray:Kt}=Array,or=Gr("undefined");function Ds(e){return e!==null&&!or(e)&&e.constructor!==null&&!or(e.constructor)&&ct(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ti=vt("ArrayBuffer");function Rs(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ti(e.buffer),t}const Fs=Gr("string"),ct=Gr("function"),ri=Gr("number"),Qr=e=>e!==null&&typeof e=="object",Ns=e=>e===!0||e===!1,Or=e=>{if(Jr(e)!=="object")return!1;const t=ta(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Is=vt("Date"),Ls=vt("File"),$s=vt("Blob"),Us=vt("FileList"),Bs=e=>Qr(e)&&ct(e.pipe),Ws=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ct(e.append)&&((t=Jr(e))==="formdata"||t==="object"&&ct(e.toString)&&e.toString()==="[object FormData]"))},zs=vt("URLSearchParams"),qs=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function lr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Kt(e))for(n=0,a=e.length;n0;)if(a=r[n],t===a.toLowerCase())return a;return null}const ai=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),oi=e=>!or(e)&&e!==ai;function jn(){const{caseless:e}=oi(this)&&this||{},t={},r=(n,a)=>{const o=e&&ni(t,a)||a;Or(t[o])&&Or(n)?t[o]=jn(t[o],n):Or(n)?t[o]=jn({},n):Kt(n)?t[o]=n.slice():t[o]=n};for(let n=0,a=arguments.length;n(lr(t,(a,o)=>{r&&ct(a)?e[o]=ei(a,r):e[o]=a},{allOwnKeys:n}),e),Hs=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vs=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Ks=(e,t,r,n)=>{let a,o,i;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)i=a[o],(!n||n(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=r!==!1&&ta(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Js=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Gs=e=>{if(!e)return null;if(Kt(e))return e;let t=e.length;if(!ri(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Qs=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ta(Uint8Array)),Xs=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},Zs=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},eu=vt("HTMLFormElement"),tu=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),Ra=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ru=vt("RegExp"),ii=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};lr(r,(a,o)=>{let i;(i=t(a,o,e))!==!1&&(n[o]=i||a)}),Object.defineProperties(e,n)},nu=e=>{ii(e,(t,r)=>{if(ct(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ct(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},au=(e,t)=>{const r={},n=a=>{a.forEach(o=>{r[o]=!0})};return Kt(e)?n(e):n(String(e).split(t)),r},ou=()=>{},iu=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Sn="abcdefghijklmnopqrstuvwxyz",Fa="0123456789",si={DIGIT:Fa,ALPHA:Sn,ALPHA_DIGIT:Sn+Sn.toUpperCase()+Fa},su=(e=16,t=si.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function uu(e){return!!(e&&ct(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const cu=e=>{const t=new Array(10),r=(n,a)=>{if(Qr(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const o=Kt(n)?[]:{};return lr(n,(i,s)=>{const u=r(i,a+1);!or(u)&&(o[s]=u)}),t[a]=void 0,o}}return n};return r(e,0)},lu=vt("AsyncFunction"),fu=e=>e&&(Qr(e)||ct(e))&&ct(e.then)&&ct(e.catch),H={isArray:Kt,isArrayBuffer:ti,isBuffer:Ds,isFormData:Ws,isArrayBufferView:Rs,isString:Fs,isNumber:ri,isBoolean:Ns,isObject:Qr,isPlainObject:Or,isUndefined:or,isDate:Is,isFile:Ls,isBlob:$s,isRegExp:ru,isFunction:ct,isStream:Bs,isURLSearchParams:zs,isTypedArray:Qs,isFileList:Us,forEach:lr,merge:jn,extend:Ys,trim:qs,stripBOM:Hs,inherits:Vs,toFlatObject:Ks,kindOf:Jr,kindOfTest:vt,endsWith:Js,toArray:Gs,forEachEntry:Xs,matchAll:Zs,isHTMLForm:eu,hasOwnProperty:Ra,hasOwnProp:Ra,reduceDescriptors:ii,freezeMethods:nu,toObjectSet:au,toCamelCase:tu,noop:ou,toFiniteNumber:iu,findKey:ni,global:ai,isContextDefined:oi,ALPHABET:si,generateString:su,isSpecCompliantForm:uu,toJSONObject:cu,isAsyncFn:lu,isThenable:fu};function _e(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}H.inherits(_e,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:H.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ui=_e.prototype,ci={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ci[e]={value:e}});Object.defineProperties(_e,ci);Object.defineProperty(ui,"isAxiosError",{value:!0});_e.from=(e,t,r,n,a,o)=>{const i=Object.create(ui);return H.toFlatObject(e,i,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),_e.call(i,e.message,t,r,n,a),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const du=null;function An(e){return H.isPlainObject(e)||H.isArray(e)}function li(e){return H.endsWith(e,"[]")?e.slice(0,-2):e}function Na(e,t,r){return e?e.concat(t).map(function(a,o){return a=li(a),!r&&o?"["+a+"]":a}).join(r?".":""):t}function pu(e){return H.isArray(e)&&!e.some(An)}const hu=H.toFlatObject(H,{},null,function(t){return/^is[A-Z]/.test(t)});function Xr(e,t,r){if(!H.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=H.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,C){return!H.isUndefined(C[h])});const n=r.metaTokens,a=r.visitor||l,o=r.dots,i=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(t);if(!H.isFunction(a))throw new TypeError("visitor must be a function");function c(b){if(b===null)return"";if(H.isDate(b))return b.toISOString();if(!u&&H.isBlob(b))throw new _e("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(b)||H.isTypedArray(b)?u&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function l(b,h,C){let j=b;if(b&&!C&&typeof b=="object"){if(H.endsWith(h,"{}"))h=n?h:h.slice(0,-2),b=JSON.stringify(b);else if(H.isArray(b)&&pu(b)||(H.isFileList(b)||H.endsWith(h,"[]"))&&(j=H.toArray(b)))return h=li(h),j.forEach(function(O,_){!(H.isUndefined(O)||O===null)&&t.append(i===!0?Na([h],_,o):i===null?h:h+"[]",c(O))}),!1}return An(b)?!0:(t.append(Na(C,h,o),c(b)),!1)}const d=[],g=Object.assign(hu,{defaultVisitor:l,convertValue:c,isVisitable:An});function m(b,h){if(!H.isUndefined(b)){if(d.indexOf(b)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(b),H.forEach(b,function(j,x){(!(H.isUndefined(j)||j===null)&&a.call(t,j,H.isString(x)?x.trim():x,h,g))===!0&&m(j,h?h.concat(x):[x])}),d.pop()}}if(!H.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Ia(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ra(e,t){this._pairs=[],e&&Xr(e,this,t)}const fi=ra.prototype;fi.append=function(t,r){this._pairs.push([t,r])};fi.toString=function(t){const r=t?function(n){return t.call(this,n,Ia)}:Ia;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function mu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function di(e,t,r){if(!t)return e;const n=r&&r.encode||mu,a=r&&r.serialize;let o;if(a?o=a(t,r):o=H.isURLSearchParams(t)?t.toString():new ra(t,r).toString(n),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class vu{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){H.forEach(this.handlers,function(n){n!==null&&t(n)})}}const La=vu,pi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bu=typeof URLSearchParams<"u"?URLSearchParams:ra,gu=typeof FormData<"u"?FormData:null,yu=typeof Blob<"u"?Blob:null,wu={isBrowser:!0,classes:{URLSearchParams:bu,FormData:gu,Blob:yu},protocols:["http","https","file","blob","url","data"]},hi=typeof window<"u"&&typeof document<"u",Su=(e=>hi&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Ou=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Eu=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hi,hasStandardBrowserEnv:Su,hasStandardBrowserWebWorkerEnv:Ou},Symbol.toStringTag,{value:"Module"})),mt={...Eu,...wu};function xu(e,t){return Xr(e,new mt.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,o){return mt.isNode&&H.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function _u(e){return H.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Cu(e){const t={},r=Object.keys(e);let n;const a=r.length;let o;for(n=0;n=r.length;return i=!i&&H.isArray(a)?a.length:i,u?(H.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!s):((!a[i]||!H.isObject(a[i]))&&(a[i]=[]),t(r,n,a[i],o)&&H.isArray(a[i])&&(a[i]=Cu(a[i])),!s)}if(H.isFormData(e)&&H.isFunction(e.entries)){const r={};return H.forEachEntry(e,(n,a)=>{t(_u(n),a,r,0)}),r}return null}function Tu(e,t,r){if(H.isString(e))try{return(t||JSON.parse)(e),H.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const na={transitional:pi,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,o=H.isObject(t);if(o&&H.isHTMLForm(t)&&(t=new FormData(t)),H.isFormData(t))return a&&a?JSON.stringify(mi(t)):t;if(H.isArrayBuffer(t)||H.isBuffer(t)||H.isStream(t)||H.isFile(t)||H.isBlob(t))return t;if(H.isArrayBufferView(t))return t.buffer;if(H.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return xu(t,this.formSerializer).toString();if((s=H.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Xr(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||a?(r.setContentType("application/json",!1),Tu(t)):t}],transformResponse:[function(t){const r=this.transitional||na.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(t&&H.isString(t)&&(n&&!this.responseType||a)){const i=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?_e.from(s,_e.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mt.classes.FormData,Blob:mt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],e=>{na.headers[e]={}});const aa=na,Pu=H.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ku=e=>{const t={};let r,n,a;return e&&e.split(` +`).forEach(function(i){a=i.indexOf(":"),r=i.substring(0,a).trim().toLowerCase(),n=i.substring(a+1).trim(),!(!r||t[r]&&Pu[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},$a=Symbol("internals");function Zt(e){return e&&String(e).trim().toLowerCase()}function Er(e){return e===!1||e==null?e:H.isArray(e)?e.map(Er):String(e)}function ju(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Au=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function On(e,t,r,n,a){if(H.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!H.isString(t)){if(H.isString(n))return t.indexOf(n)!==-1;if(H.isRegExp(n))return n.test(t)}}function Mu(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Du(e,t){const r=H.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,o,i){return this[n].call(this,t,a,o,i)},configurable:!0})})}class Zr{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function o(s,u,c){const l=Zt(u);if(!l)throw new Error("header name must be a non-empty string");const d=H.findKey(a,l);(!d||a[d]===void 0||c===!0||c===void 0&&a[d]!==!1)&&(a[d||u]=Er(s))}const i=(s,u)=>H.forEach(s,(c,l)=>o(c,l,u));return H.isPlainObject(t)||t instanceof this.constructor?i(t,r):H.isString(t)&&(t=t.trim())&&!Au(t)?i(ku(t),r):t!=null&&o(r,t,n),this}get(t,r){if(t=Zt(t),t){const n=H.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return ju(a);if(H.isFunction(r))return r.call(this,a,n);if(H.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Zt(t),t){const n=H.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||On(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function o(i){if(i=Zt(i),i){const s=H.findKey(n,i);s&&(!r||On(n,n[s],s,r))&&(delete n[s],a=!0)}}return H.isArray(t)?t.forEach(o):o(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const o=r[n];(!t||On(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const r=this,n={};return H.forEach(this,(a,o)=>{const i=H.findKey(n,o);if(i){r[i]=Er(a),delete r[o];return}const s=t?Mu(o):String(o).trim();s!==o&&delete r[o],r[s]=Er(a),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return H.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&H.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[$a]=this[$a]={accessors:{}}).accessors,a=this.prototype;function o(i){const s=Zt(i);n[s]||(Du(a,i),n[s]=!0)}return H.isArray(t)?t.forEach(o):o(t),this}}Zr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);H.reduceDescriptors(Zr.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});H.freezeMethods(Zr);const Ot=Zr;function En(e,t){const r=this||aa,n=t||r,a=Ot.from(n.headers);let o=n.data;return H.forEach(e,function(s){o=s.call(r,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function vi(e){return!!(e&&e.__CANCEL__)}function fr(e,t,r){_e.call(this,e??"canceled",_e.ERR_CANCELED,t,r),this.name="CanceledError"}H.inherits(fr,_e,{__CANCEL__:!0});function Ru(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new _e("Request failed with status code "+r.status,[_e.ERR_BAD_REQUEST,_e.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const Fu=mt.hasStandardBrowserEnv?{write(e,t,r,n,a,o){const i=[e+"="+encodeURIComponent(t)];H.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),H.isString(n)&&i.push("path="+n),H.isString(a)&&i.push("domain="+a),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Nu(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Iu(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function bi(e,t){return e&&!Nu(t)?Iu(e,t):t}const Lu=mt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function a(o){let i=o;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(i){const s=H.isString(i)?a(i):i;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function $u(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Uu(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,o=0,i;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),l=n[o];i||(i=c),r[a]=u,n[a]=c;let d=o,g=0;for(;d!==a;)g+=r[d++],d=d%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),c-i{const o=a.loaded,i=a.lengthComputable?a.total:void 0,s=o-r,u=n(s),c=o<=i;r=o;const l={loaded:o,total:i,progress:i?o/i:void 0,bytes:s,rate:u||void 0,estimated:u&&i&&c?(i-o)/u:void 0,event:a};l[t?"download":"upload"]=!0,e(l)}}const Bu=typeof XMLHttpRequest<"u",Wu=Bu&&function(e){return new Promise(function(r,n){let a=e.data;const o=Ot.from(e.headers).normalize();let{responseType:i,withXSRFToken:s}=e,u;function c(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let l;if(H.isFormData(a)){if(mt.hasStandardBrowserEnv||mt.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((l=o.getContentType())!==!1){const[h,...C]=l?l.split(";").map(j=>j.trim()).filter(Boolean):[];o.setContentType([h||"multipart/form-data",...C].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",C=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(h+":"+C))}const g=bi(e.baseURL,e.url);d.open(e.method.toUpperCase(),di(g,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function m(){if(!d)return;const h=Ot.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),j={data:!i||i==="text"||i==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:h,config:e,request:d};Ru(function(O){r(O),c()},function(O){n(O),c()},j),d=null}if("onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(n(new _e("Request aborted",_e.ECONNABORTED,e,d)),d=null)},d.onerror=function(){n(new _e("Network Error",_e.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let C=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const j=e.transitional||pi;e.timeoutErrorMessage&&(C=e.timeoutErrorMessage),n(new _e(C,j.clarifyTimeoutError?_e.ETIMEDOUT:_e.ECONNABORTED,e,d)),d=null},mt.hasStandardBrowserEnv&&(s&&H.isFunction(s)&&(s=s(e)),s||s!==!1&&Lu(g))){const h=e.xsrfHeaderName&&e.xsrfCookieName&&Fu.read(e.xsrfCookieName);h&&o.set(e.xsrfHeaderName,h)}a===void 0&&o.setContentType(null),"setRequestHeader"in d&&H.forEach(o.toJSON(),function(C,j){d.setRequestHeader(j,C)}),H.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),i&&i!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",Ua(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Ua(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=h=>{d&&(n(!h||h.type?new fr(null,e,d):h),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const b=$u(g);if(b&&mt.protocols.indexOf(b)===-1){n(new _e("Unsupported protocol "+b+":",_e.ERR_BAD_REQUEST,e));return}d.send(a||null)})},Mn={http:du,xhr:Wu};H.forEach(Mn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ba=e=>`- ${e}`,zu=e=>H.isFunction(e)||e===null||e===!1,gi={getAdapter:e=>{e=H.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let o=0;o`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : `+o.map(Ba).join(` -`):" "+Ba(o[0]):"as no adapter specified";throw new _e("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:An};function En(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fr(null,e)}function Wa(e){return En(e),e.headers=Ot.from(e.headers),e.data=On.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gi.getAdapter(e.adapter||na.adapter)(e).then(function(n){return En(e),n.data=On.call(e,e.transformResponse,n),n.headers=Ot.from(n.headers),n},function(n){return vi(n)||(En(e),n&&n.response&&(n.response.data=On.call(e,e.transformResponse,n.response),n.response.headers=Ot.from(n.response.headers))),Promise.reject(n)})}const za=e=>e instanceof Ot?e.toJSON():e;function Yt(e,t){t=t||{};const r={};function n(c,l,d){return H.isPlainObject(c)&&H.isPlainObject(l)?H.merge.call({caseless:d},c,l):H.isPlainObject(l)?H.merge({},l):H.isArray(l)?l.slice():l}function a(c,l,d){if(H.isUndefined(l)){if(!H.isUndefined(c))return n(void 0,c,d)}else return n(c,l,d)}function o(c,l){if(!H.isUndefined(l))return n(void 0,l)}function i(c,l){if(H.isUndefined(l)){if(!H.isUndefined(c))return n(void 0,c)}else return n(void 0,l)}function s(c,l,d){if(d in t)return n(c,l);if(d in e)return n(void 0,c)}const u={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(c,l)=>a(za(c),za(l),!0)};return H.forEach(Object.keys(Object.assign({},e,t)),function(l){const d=u[l]||a,g=d(e[l],t[l],l);H.isUndefined(g)&&d!==s||(r[l]=g)}),r}const yi="1.6.2",aa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{aa[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const qa={};aa.transitional=function(t,r,n){function a(o,i){return"[Axios v"+yi+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return(o,i,s)=>{if(t===!1)throw new _e(a(i," has been removed"+(r?" in "+r:"")),_e.ERR_DEPRECATED);return r&&!qa[i]&&(qa[i]=!0,console.warn(a(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,i,s):!0}};function qu(e,t,r){if(typeof e!="object")throw new _e("options must be an object",_e.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const o=n[a],i=t[o];if(i){const s=e[o],u=s===void 0||i(s,o,e);if(u!==!0)throw new _e("option "+o+" must be "+u,_e.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new _e("Unknown option "+o,_e.ERR_BAD_OPTION)}}const Mn={assertOptions:qu,validators:aa},xt=Mn.validators;class Cr{constructor(t){this.defaults=t,this.interceptors={request:new La,response:new La}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Yt(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:o}=r;n!==void 0&&Mn.assertOptions(n,{silentJSONParsing:xt.transitional(xt.boolean),forcedJSONParsing:xt.transitional(xt.boolean),clarifyTimeoutError:xt.transitional(xt.boolean)},!1),a!=null&&(H.isFunction(a)?r.paramsSerializer={serialize:a}:Mn.assertOptions(a,{encode:xt.function,serialize:xt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=o&&H.merge(o.common,o[r.method]);o&&H.forEach(["delete","get","head","post","put","patch","common"],b=>{delete o[b]}),r.headers=Ot.concat(i,o);const s=[];let u=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(u=u&&h.synchronous,s.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let l,d=0,g;if(!u){const b=[Wa.bind(this),void 0];for(b.unshift.apply(b,s),b.push.apply(b,c),g=b.length,l=Promise.resolve(r);d{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](a);n._listeners=null}),this.promise.then=a=>{let o;const i=new Promise(s=>{n.subscribe(s),o=s}).then(a);return i.cancel=function(){n.unsubscribe(o)},i},t(function(o,i,s){n.reason||(n.reason=new fr(o,i,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new oa(function(a){t=a}),cancel:t}}}const Yu=oa;function Hu(e){return function(r){return e.apply(null,r)}}function Vu(e){return H.isObject(e)&&e.isAxiosError===!0}const Dn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Dn).forEach(([e,t])=>{Dn[t]=e});const Ku=Dn;function wi(e){const t=new xr(e),r=ei(xr.prototype.request,t);return H.extend(r,xr.prototype,t,{allOwnKeys:!0}),H.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return wi(Yt(e,a))},r}const Ke=wi(na);Ke.Axios=xr;Ke.CanceledError=fr;Ke.CancelToken=Yu;Ke.isCancel=vi;Ke.VERSION=yi;Ke.toFormData=Xr;Ke.AxiosError=_e;Ke.Cancel=Ke.CanceledError;Ke.all=function(t){return Promise.all(t)};Ke.spread=Hu;Ke.isAxiosError=Vu;Ke.mergeConfig=Yt;Ke.AxiosHeaders=Ot;Ke.formToJSON=e=>mi(H.isHTMLForm(e)?new FormData(e):e);Ke.getAdapter=gi.getAdapter;Ke.HttpStatusCode=Ku;Ke.default=Ke;const Th=Ke;function lt(e){"@babel/helpers - typeof";return lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lt(e)}function Ju(e,t){if(lt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(lt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Si(e){var t=Ju(e,"string");return lt(t)==="symbol"?t:String(t)}function Ph(e,t,r){return t=Si(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oi(e){var t=function(n){var a=n.dispatch,o=n.getState;return function(i){return function(s){return typeof s=="function"?s(a,o,e):i(s)}}};return t}var Ei=Oi();Ei.withExtraArgument=Oi;const kh=Ei;let jh=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");function xe(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function G(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function ne(e){G(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||lt(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ia(e,t){G(2,arguments);var r=ne(e),n=xe(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function sa(e,t){G(2,arguments);var r=ne(e),n=xe(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var a=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+n+1,0);var i=o.getDate();return a>=i?o:(r.setFullYear(o.getFullYear(),o.getMonth(),a),r)}function er(e,t){if(G(2,arguments),!t||lt(t)!=="object")return new Date(NaN);var r=t.years?xe(t.years):0,n=t.months?xe(t.months):0,a=t.weeks?xe(t.weeks):0,o=t.days?xe(t.days):0,i=t.hours?xe(t.hours):0,s=t.minutes?xe(t.minutes):0,u=t.seconds?xe(t.seconds):0,c=ne(e),l=n||r?sa(c,n+r*12):c,d=o||a?ia(l,o+a*7):l,g=s+i*60,m=u+g*60,b=m*1e3,h=new Date(d.getTime()+b);return h}function ua(e,t){G(2,arguments);var r=ne(e).getTime(),n=xe(t);return new Date(r+n)}var Gu=36e5;function Ah(e,t){G(2,arguments);var r=xe(t);return ua(e,r*Gu)}var Qu={};function jt(){return Qu}function Rt(e,t){var r,n,a,o,i,s,u,c;G(1,arguments);var l=jt(),d=xe((r=(n=(a=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:l.weekStartsOn)!==null&&n!==void 0?n:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=ne(e),m=g.getDay(),b=(m=a.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function Zu(e){G(1,arguments);var t=Xu(e),r=new Date(0);r.setFullYear(t,0,4),r.setHours(0,0,0,0);var n=Tr(r);return n}function ir(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Pr(e){G(1,arguments);var t=ne(e);return t.setHours(0,0,0,0),t}var ec=864e5;function tc(e,t){G(2,arguments);var r=Pr(e),n=Pr(t),a=r.getTime()-ir(r),o=n.getTime()-ir(n);return Math.round((a-o)/ec)}var rc=6e4;function Mh(e,t){G(2,arguments);var r=xe(t);return ua(e,r*rc)}function Dh(e,t){G(2,arguments);var r=xe(t),n=r*7;return ia(e,n)}function Rh(e,t){G(2,arguments);var r=xe(t);return sa(e,r*12)}function Fh(e){G(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(lt(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var r;return t.forEach(function(n){var a=ne(n);(r===void 0||ra||isNaN(a.getDate()))&&(r=a)}),r||new Date(NaN)}function zt(e,t){G(2,arguments);var r=ne(e),n=ne(t),a=r.getTime()-n.getTime();return a<0?-1:a>0?1:a}var ca=6e4,la=36e5;function nc(e,t){G(2,arguments);var r=Pr(e),n=Pr(t);return r.getTime()===n.getTime()}function ac(e){return G(1,arguments),e instanceof Date||lt(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function oc(e){if(G(1,arguments),!ac(e)&&typeof e!="number")return!1;var t=ne(e);return!isNaN(Number(t))}function ic(e,t){G(2,arguments);var r=ne(e),n=ne(t),a=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth();return a*12+o}var sc=6048e5;function uc(e,t,r){G(2,arguments);var n=Rt(e,r),a=Rt(t,r),o=n.getTime()-ir(n),i=a.getTime()-ir(a);return Math.round((o-i)/sc)}function cc(e,t){G(2,arguments);var r=ne(e),n=ne(t);return r.getFullYear()-n.getFullYear()}function Ya(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function lc(e,t){G(2,arguments);var r=ne(e),n=ne(t),a=Ya(r,n),o=Math.abs(tc(r,n));r.setDate(r.getDate()-a*o);var i=+(Ya(r,n)===-a),s=a*(o-i);return s===0?0:s}function fa(e,t){return G(2,arguments),ne(e).getTime()-ne(t).getTime()}var Ha={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},fc="trunc";function da(e){return e?Ha[e]:Ha[fc]}function dc(e,t,r){G(2,arguments);var n=fa(e,t)/la;return da(r==null?void 0:r.roundingMethod)(n)}function pc(e,t,r){G(2,arguments);var n=fa(e,t)/ca;return da(r==null?void 0:r.roundingMethod)(n)}function hc(e){G(1,arguments);var t=ne(e);return t.setHours(23,59,59,999),t}function mc(e){G(1,arguments);var t=ne(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function vc(e){G(1,arguments);var t=ne(e);return hc(t).getTime()===mc(t).getTime()}function bc(e,t){G(2,arguments);var r=ne(e),n=ne(t),a=zt(r,n),o=Math.abs(ic(r,n)),i;if(o<1)i=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-a*o);var s=zt(r,n)===-a;vc(ne(e))&&o===1&&zt(e,n)===1&&(s=!1),i=a*(o-Number(s))}return i===0?0:i}function gc(e,t,r){G(2,arguments);var n=fa(e,t)/1e3;return da(r==null?void 0:r.roundingMethod)(n)}function yc(e,t){G(2,arguments);var r=ne(e),n=ne(t),a=zt(r,n),o=Math.abs(cc(r,n));r.setFullYear(1584),n.setFullYear(1584);var i=zt(r,n)===-a,s=a*(o-Number(i));return s===0?0:s}function Va(e){G(1,arguments);var t=ne(e);return t.setSeconds(0,0),t}function wc(e){G(1,arguments);var t=ne(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Ih(e){G(1,arguments);var t=ne(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Sc(e,t){var r,n,a,o,i,s,u,c;G(1,arguments);var l=jt(),d=xe((r=(n=(a=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:l.weekStartsOn)!==null&&n!==void 0?n:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=ne(e),m=g.getDay(),b=(m=a.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function _c(e){G(1,arguments);var t=xi(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=kr(r);return n}var Cc=6048e5;function Tc(e){G(1,arguments);var t=ne(e),r=kr(t).getTime()-_c(t).getTime();return Math.round(r/Cc)+1}function jr(e,t){var r,n,a,o,i,s,u,c;G(1,arguments);var l=jt(),d=xe((r=(n=(a=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:l.weekStartsOn)!==null&&n!==void 0?n:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=ne(e),m=g.getUTCDay(),b=(m=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(d+1,0,m),b.setUTCHours(0,0,0,0);var h=jr(b,t),C=new Date(0);C.setUTCFullYear(d,0,m),C.setUTCHours(0,0,0,0);var j=jr(C,t);return l.getTime()>=h.getTime()?d+1:l.getTime()>=j.getTime()?d:d-1}function Pc(e,t){var r,n,a,o,i,s,u,c;G(1,arguments);var l=jt(),d=xe((r=(n=(a=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:l.firstWeekContainsDate)!==null&&n!==void 0?n:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1),g=_i(e,t),m=new Date(0);m.setUTCFullYear(g,0,d),m.setUTCHours(0,0,0,0);var b=jr(m,t);return b}var kc=6048e5;function jc(e,t){G(1,arguments);var r=ne(e),n=jr(r,t).getTime()-Pc(r,t).getTime();return Math.round(n/kc)+1}function Fe(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length0?n:1-n;return Fe(r==="yy"?a%100:a,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):Fe(n+1,2)},d:function(t,r){return Fe(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return Fe(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Fe(t.getUTCHours(),r.length)},m:function(t,r){return Fe(t.getUTCMinutes(),r.length)},s:function(t,r){return Fe(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,a=t.getUTCMilliseconds(),o=Math.floor(a*Math.pow(10,n-3));return Fe(o,r.length)}};const _t=Ac;var Bt={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Mc={G:function(t,r,n){var a=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var a=t.getUTCFullYear(),o=a>0?a:1-a;return n.ordinalNumber(o,{unit:"year"})}return _t.y(t,r)},Y:function(t,r,n,a){var o=_i(t,a),i=o>0?o:1-o;if(r==="YY"){var s=i%100;return Fe(s,2)}return r==="Yo"?n.ordinalNumber(i,{unit:"year"}):Fe(i,r.length)},R:function(t,r){var n=xi(t);return Fe(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return Fe(n,r.length)},Q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(a);case"QQ":return Fe(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(a);case"qq":return Fe(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,r,n){var a=t.getUTCMonth();switch(r){case"M":case"MM":return _t.M(t,r);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(t,r,n){var a=t.getUTCMonth();switch(r){case"L":return String(a+1);case"LL":return Fe(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(t,r,n,a){var o=jc(t,a);return r==="wo"?n.ordinalNumber(o,{unit:"week"}):Fe(o,r.length)},I:function(t,r,n){var a=Tc(t);return r==="Io"?n.ordinalNumber(a,{unit:"week"}):Fe(a,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):_t.d(t,r)},D:function(t,r,n){var a=xc(t);return r==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):Fe(a,r.length)},E:function(t,r,n){var a=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(t,r,n,a){var o=t.getUTCDay(),i=(o-a.weekStartsOn+8)%7||7;switch(r){case"e":return String(i);case"ee":return Fe(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,n,a){var o=t.getUTCDay(),i=(o-a.weekStartsOn+8)%7||7;switch(r){case"c":return String(i);case"cc":return Fe(i,r.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,n){var a=t.getUTCDay(),o=a===0?7:a;switch(r){case"i":return String(o);case"ii":return Fe(o,r.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(t,r,n){var a=t.getUTCHours(),o=a/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,n){var a=t.getUTCHours(),o;switch(a===12?o=Bt.noon:a===0?o=Bt.midnight:o=a/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,n){var a=t.getUTCHours(),o;switch(a>=17?o=Bt.evening:a>=12?o=Bt.afternoon:a>=4?o=Bt.morning:o=Bt.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var a=t.getUTCHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return _t.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):_t.H(t,r)},K:function(t,r,n){var a=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(a,{unit:"hour"}):Fe(a,r.length)},k:function(t,r,n){var a=t.getUTCHours();return a===0&&(a=24),r==="ko"?n.ordinalNumber(a,{unit:"hour"}):Fe(a,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):_t.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):_t.s(t,r)},S:function(t,r){return _t.S(t,r)},X:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();if(i===0)return"Z";switch(r){case"X":return Ja(i);case"XXXX":case"XX":return At(i);case"XXXXX":case"XXX":default:return At(i,":")}},x:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();switch(r){case"x":return Ja(i);case"xxxx":case"xx":return At(i);case"xxxxx":case"xxx":default:return At(i,":")}},O:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Ka(i,":");case"OOOO":default:return"GMT"+At(i,":")}},z:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Ka(i,":");case"zzzz":default:return"GMT"+At(i,":")}},t:function(t,r,n,a){var o=a._originalDate||t,i=Math.floor(o.getTime()/1e3);return Fe(i,r.length)},T:function(t,r,n,a){var o=a._originalDate||t,i=o.getTime();return Fe(i,r.length)}};function Ka(e,t){var r=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),o=n%60;if(o===0)return r+String(a);var i=t||"";return r+String(a)+i+Fe(o,2)}function Ja(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Fe(Math.abs(e)/60,2)}return At(e,t)}function At(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e),o=Fe(Math.floor(a/60),2),i=Fe(a%60,2);return n+o+r+i}const Dc=Mc;var Ga=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Ci=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},Rc=function(t,r){var n=t.match(/(P+)(p+)?/)||[],a=n[1],o=n[2];if(!o)return Ga(t,r);var i;switch(a){case"P":i=r.dateTime({width:"short"});break;case"PP":i=r.dateTime({width:"medium"});break;case"PPP":i=r.dateTime({width:"long"});break;case"PPPP":default:i=r.dateTime({width:"full"});break}return i.replace("{{date}}",Ga(a,r)).replace("{{time}}",Ci(o,r))},Fc={p:Ci,P:Rc};const Nc=Fc;var Ic=["D","DD"],Lc=["YY","YYYY"];function $c(e){return Ic.indexOf(e)!==-1}function Uc(e){return Lc.indexOf(e)!==-1}function Qa(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Bc={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Wc=function(t,r,n){var a,o=Bc[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};const zc=Wc;function xn(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var qc={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Yc={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Hc={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Vc={date:xn({formats:qc,defaultWidth:"full"}),time:xn({formats:Yc,defaultWidth:"full"}),dateTime:xn({formats:Hc,defaultWidth:"full"})};const Kc=Vc;var Jc={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Gc=function(t,r,n,a){return Jc[t]};const Qc=Gc;function tr(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=r!=null&&r.width?String(r.width):o;a=e.formattingValues[i]||e.formattingValues[o]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[u]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return a[c]}}var Xc={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Zc={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},el={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},tl={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},rl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},nl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},al=function(t,r){var n=Number(t),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},ol={ordinalNumber:al,era:tr({values:Xc,defaultWidth:"wide"}),quarter:tr({values:Zc,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:tr({values:el,defaultWidth:"wide"}),day:tr({values:tl,defaultWidth:"wide"}),dayPeriod:tr({values:rl,defaultWidth:"wide",formattingValues:nl,defaultFormattingWidth:"wide"})};const il=ol;function rr(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var i=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?ul(s,function(d){return d.test(i)}):sl(s,function(d){return d.test(i)}),c;c=e.valueCallback?e.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;var l=t.slice(i.length);return{value:c,rest:l}}}function sl(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function ul(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],o=t.match(e.parsePattern);if(!o)return null;var i=e.valueCallback?e.valueCallback(o[0]):o[0];i=r.valueCallback?r.valueCallback(i):i;var s=t.slice(a.length);return{value:i,rest:s}}}var ll=/^(\d+)(th|st|nd|rd)?/i,fl=/\d+/i,dl={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},pl={any:[/^b/i,/^(a|c)/i]},hl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ml={any:[/1/i,/2/i,/3/i,/4/i]},vl={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},bl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},gl={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},yl={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},wl={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Sl={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ol={ordinalNumber:cl({matchPattern:ll,parsePattern:fl,valueCallback:function(t){return parseInt(t,10)}}),era:rr({matchPatterns:dl,defaultMatchWidth:"wide",parsePatterns:pl,defaultParseWidth:"any"}),quarter:rr({matchPatterns:hl,defaultMatchWidth:"wide",parsePatterns:ml,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:rr({matchPatterns:vl,defaultMatchWidth:"wide",parsePatterns:bl,defaultParseWidth:"any"}),day:rr({matchPatterns:gl,defaultMatchWidth:"wide",parsePatterns:yl,defaultParseWidth:"any"}),dayPeriod:rr({matchPatterns:wl,defaultMatchWidth:"any",parsePatterns:Sl,defaultParseWidth:"any"})};const El=Ol;var xl={code:"en-US",formatDistance:zc,formatLong:Kc,formatRelative:Qc,localize:il,match:El,options:{weekStartsOn:0,firstWeekContainsDate:1}};const _l=xl;var Cl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Tl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pl=/^'([^]*?)'?$/,kl=/''/g,jl=/[a-zA-Z]/;function $h(e,t,r){var n,a,o,i,s,u,c,l,d,g,m,b,h,C,j,x,O,_;G(2,arguments);var f=String(t),T=jt(),P=(n=(a=r==null?void 0:r.locale)!==null&&a!==void 0?a:T.locale)!==null&&n!==void 0?n:_l,L=xe((o=(i=(s=(u=r==null?void 0:r.firstWeekContainsDate)!==null&&u!==void 0?u:r==null||(c=r.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&s!==void 0?s:T.firstWeekContainsDate)!==null&&i!==void 0?i:(d=T.locale)===null||d===void 0||(g=d.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var E=xe((m=(b=(h=(C=r==null?void 0:r.weekStartsOn)!==null&&C!==void 0?C:r==null||(j=r.locale)===null||j===void 0||(x=j.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&h!==void 0?h:T.weekStartsOn)!==null&&b!==void 0?b:(O=T.locale)===null||O===void 0||(_=O.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:0);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!P.localize)throw new RangeError("locale must contain localize property");if(!P.formatLong)throw new RangeError("locale must contain formatLong property");var A=ne(e);if(!oc(A))throw new RangeError("Invalid time value");var R=ir(A),$=Oc(A,R),z={firstWeekContainsDate:L,weekStartsOn:E,locale:P,_originalDate:A},re=f.match(Tl).map(function(D){var te=D[0];if(te==="p"||te==="P"){var ce=Nc[te];return ce(D,P.formatLong)}return D}).join("").match(Cl).map(function(D){if(D==="''")return"'";var te=D[0];if(te==="'")return Al(D);var ce=Dc[te];if(ce)return!(r!=null&&r.useAdditionalWeekYearTokens)&&Uc(D)&&Qa(D,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&$c(D)&&Qa(D,t,String(e)),ce($,D,P.localize,z);if(te.match(jl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");return D}).join("");return re}function Al(e){var t=e.match(Pl);return t?t[1].replace(kl,"'"):e}function Uh(e){G(1,arguments);var t=ne(e),r=t.getDate();return r}function Ml(e){G(1,arguments);var t=ne(e),r=t.getFullYear(),n=t.getMonth(),a=new Date(0);return a.setFullYear(r,n+1,0),a.setHours(0,0,0,0),a.getDate()}var Dl=6048e5;function Bh(e){G(1,arguments);var t=ne(e),r=Tr(t).getTime()-Zu(t).getTime();return Math.round(r/Dl)+1}function Wh(e){G(1,arguments);var t=ne(e),r=t.getMonth();return r}function Rl(e){G(1,arguments);var t=ne(e),r=t.getTime();return r}function zh(e){return G(1,arguments),Math.floor(Rl(e)/1e3)}function Fl(e,t){var r,n,a,o,i,s,u,c;G(1,arguments);var l=ne(e),d=l.getFullYear(),g=jt(),m=xe((r=(n=(a=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:g.firstWeekContainsDate)!==null&&n!==void 0?n:(u=g.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setFullYear(d+1,0,m),b.setHours(0,0,0,0);var h=Rt(b,t),C=new Date(0);C.setFullYear(d,0,m),C.setHours(0,0,0,0);var j=Rt(C,t);return l.getTime()>=h.getTime()?d+1:l.getTime()>=j.getTime()?d:d-1}function Nl(e,t){var r,n,a,o,i,s,u,c;G(1,arguments);var l=jt(),d=xe((r=(n=(a=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:l.firstWeekContainsDate)!==null&&n!==void 0?n:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1),g=Fl(e,t),m=new Date(0);m.setFullYear(g,0,d),m.setHours(0,0,0,0);var b=Rt(m,t);return b}var Il=6048e5;function qh(e,t){G(1,arguments);var r=ne(e),n=Rt(r,t).getTime()-Nl(r,t).getTime();return Math.round(n/Il)+1}function Ll(e){G(1,arguments);var t=ne(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function Yh(e,t){return G(1,arguments),uc(Ll(e),wc(e),t)+1}function Hh(e){return G(1,arguments),ne(e).getFullYear()}function Vh(e){G(1,arguments);var t=ne(e.start),r=ne(e.end);if(isNaN(t.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(r.getTime()))throw new RangeError("End Date is invalid");var n={};n.years=Math.abs(yc(r,t));var a=zt(r,t),o=er(t,{years:a*n.years});n.months=Math.abs(bc(r,o));var i=er(o,{months:a*n.months});n.days=Math.abs(lc(r,i));var s=er(i,{days:a*n.days});n.hours=Math.abs(dc(r,s));var u=er(s,{hours:a*n.hours});n.minutes=Math.abs(pc(r,u));var c=er(u,{minutes:a*n.minutes});return n.seconds=Math.abs(gc(r,c)),n}function Kh(e,t){G(2,arguments);var r=ne(e),n=ne(t);return r.getTime()>n.getTime()}function Jh(e,t){G(2,arguments);var r=ne(e),n=ne(t);return r.getTime()e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bl(e,t){if(t&&(lt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $l(e)}function Xh(e){var t=Ul();return function(){var n=Ar(e),a;if(t){var o=Ar(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return Bl(this,a)}}function Zh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Za(e,t){for(var r=0;r=n&&r<=a}function Wl(e,t){G(2,arguments);var r=xe(t);return ia(e,-r)}function sm(e,t){var r;G(1,arguments);var n=xe((r=t==null?void 0:t.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=Hl(e),o;if(a.date){var i=Vl(a.date,n);o=Kl(i.restDateString,i.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),u=0,c;if(a.time&&(u=Jl(a.time),isNaN(u)))return new Date(NaN);if(a.timezone){if(c=Gl(a.timezone),isNaN(c))return new Date(NaN)}else{var l=new Date(s+u),d=new Date(0);return d.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),d.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),d}return new Date(s+u+c)}var yr={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},zl=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ql=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Yl=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Hl(e){var t={},r=e.split(yr.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],yr.timeZoneDelimiter.test(t.date)&&(t.date=e.split(yr.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var a=yr.timezone.exec(n);a?(t.time=n.replace(a[1],""),t.timezone=a[1]):t.time=n}return t}function Vl(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var a=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:o===null?a:o*100,restDateString:e.slice((n[1]||n[2]).length)}}function Kl(e,t){if(t===null)return new Date(NaN);var r=e.match(zl);if(!r)return new Date(NaN);var n=!!r[4],a=nr(r[1]),o=nr(r[2])-1,i=nr(r[3]),s=nr(r[4]),u=nr(r[5])-1;if(n)return tf(t,s,u)?Ql(t,s,u):new Date(NaN);var c=new Date(0);return!Zl(t,o,i)||!ef(t,a)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(a,i)),c)}function nr(e){return e?parseInt(e):1}function Jl(e){var t=e.match(ql);if(!t)return NaN;var r=_n(t[1]),n=_n(t[2]),a=_n(t[3]);return rf(r,n,a)?r*la+n*ca+a*1e3:NaN}function _n(e){return e&&parseFloat(e.replace(",","."))||0}function Gl(e){if(e==="Z")return 0;var t=e.match(Yl);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return nf(n,a)?r*(n*la+a*ca):NaN}function Ql(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var a=n.getUTCDay()||7,o=(t-1)*7+r+1-a;return n.setUTCDate(n.getUTCDate()+o),n}var Xl=[31,null,31,30,31,30,31,31,30,31,30,31];function Ti(e){return e%400===0||e%4===0&&e%100!==0}function Zl(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(Xl[t]||(Ti(e)?29:28))}function ef(e,t){return t>=1&&t<=(Ti(e)?366:365)}function tf(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function rf(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function nf(e,t){return t>=0&&t<=59}function um(e,t){G(2,arguments);var r=ne(e),n=xe(t),a=r.getFullYear(),o=r.getDate(),i=new Date(0);i.setFullYear(a,n,15),i.setHours(0,0,0,0);var s=Ml(i);return r.setMonth(n,Math.min(o,s)),r}function cm(e,t){G(2,arguments);var r=ne(e),n=xe(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function af(e,t){G(2,arguments);var r=xe(t);return sa(e,-r)}function lm(e,t){if(G(2,arguments),!t||lt(t)!=="object")return new Date(NaN);var r=t.years?xe(t.years):0,n=t.months?xe(t.months):0,a=t.weeks?xe(t.weeks):0,o=t.days?xe(t.days):0,i=t.hours?xe(t.hours):0,s=t.minutes?xe(t.minutes):0,u=t.seconds?xe(t.seconds):0,c=af(e,n+r*12),l=Wl(c,o+a*7),d=s+i*60,g=u+d*60,m=g*1e3,b=new Date(l.getTime()-m);return b}var Pi={exports:{}},ki={};/** +`):" "+Ba(o[0]):"as no adapter specified";throw new _e("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:Mn};function xn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fr(null,e)}function Wa(e){return xn(e),e.headers=Ot.from(e.headers),e.data=En.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gi.getAdapter(e.adapter||aa.adapter)(e).then(function(n){return xn(e),n.data=En.call(e,e.transformResponse,n),n.headers=Ot.from(n.headers),n},function(n){return vi(n)||(xn(e),n&&n.response&&(n.response.data=En.call(e,e.transformResponse,n.response),n.response.headers=Ot.from(n.response.headers))),Promise.reject(n)})}const za=e=>e instanceof Ot?e.toJSON():e;function Ht(e,t){t=t||{};const r={};function n(c,l,d){return H.isPlainObject(c)&&H.isPlainObject(l)?H.merge.call({caseless:d},c,l):H.isPlainObject(l)?H.merge({},l):H.isArray(l)?l.slice():l}function a(c,l,d){if(H.isUndefined(l)){if(!H.isUndefined(c))return n(void 0,c,d)}else return n(c,l,d)}function o(c,l){if(!H.isUndefined(l))return n(void 0,l)}function i(c,l){if(H.isUndefined(l)){if(!H.isUndefined(c))return n(void 0,c)}else return n(void 0,l)}function s(c,l,d){if(d in t)return n(c,l);if(d in e)return n(void 0,c)}const u={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(c,l)=>a(za(c),za(l),!0)};return H.forEach(Object.keys(Object.assign({},e,t)),function(l){const d=u[l]||a,g=d(e[l],t[l],l);H.isUndefined(g)&&d!==s||(r[l]=g)}),r}const yi="1.6.2",oa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{oa[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const qa={};oa.transitional=function(t,r,n){function a(o,i){return"[Axios v"+yi+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return(o,i,s)=>{if(t===!1)throw new _e(a(i," has been removed"+(r?" in "+r:"")),_e.ERR_DEPRECATED);return r&&!qa[i]&&(qa[i]=!0,console.warn(a(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,i,s):!0}};function qu(e,t,r){if(typeof e!="object")throw new _e("options must be an object",_e.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const o=n[a],i=t[o];if(i){const s=e[o],u=s===void 0||i(s,o,e);if(u!==!0)throw new _e("option "+o+" must be "+u,_e.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new _e("Unknown option "+o,_e.ERR_BAD_OPTION)}}const Dn={assertOptions:qu,validators:oa},xt=Dn.validators;class Cr{constructor(t){this.defaults=t,this.interceptors={request:new La,response:new La}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ht(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:o}=r;n!==void 0&&Dn.assertOptions(n,{silentJSONParsing:xt.transitional(xt.boolean),forcedJSONParsing:xt.transitional(xt.boolean),clarifyTimeoutError:xt.transitional(xt.boolean)},!1),a!=null&&(H.isFunction(a)?r.paramsSerializer={serialize:a}:Dn.assertOptions(a,{encode:xt.function,serialize:xt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=o&&H.merge(o.common,o[r.method]);o&&H.forEach(["delete","get","head","post","put","patch","common"],b=>{delete o[b]}),r.headers=Ot.concat(i,o);const s=[];let u=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(u=u&&h.synchronous,s.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let l,d=0,g;if(!u){const b=[Wa.bind(this),void 0];for(b.unshift.apply(b,s),b.push.apply(b,c),g=b.length,l=Promise.resolve(r);d{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](a);n._listeners=null}),this.promise.then=a=>{let o;const i=new Promise(s=>{n.subscribe(s),o=s}).then(a);return i.cancel=function(){n.unsubscribe(o)},i},t(function(o,i,s){n.reason||(n.reason=new fr(o,i,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new ia(function(a){t=a}),cancel:t}}}const Yu=ia;function Hu(e){return function(r){return e.apply(null,r)}}function Vu(e){return H.isObject(e)&&e.isAxiosError===!0}const Rn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Rn).forEach(([e,t])=>{Rn[t]=e});const Ku=Rn;function wi(e){const t=new xr(e),r=ei(xr.prototype.request,t);return H.extend(r,xr.prototype,t,{allOwnKeys:!0}),H.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return wi(Ht(e,a))},r}const Ke=wi(aa);Ke.Axios=xr;Ke.CanceledError=fr;Ke.CancelToken=Yu;Ke.isCancel=vi;Ke.VERSION=yi;Ke.toFormData=Xr;Ke.AxiosError=_e;Ke.Cancel=Ke.CanceledError;Ke.all=function(t){return Promise.all(t)};Ke.spread=Hu;Ke.isAxiosError=Vu;Ke.mergeConfig=Ht;Ke.AxiosHeaders=Ot;Ke.formToJSON=e=>mi(H.isHTMLForm(e)?new FormData(e):e);Ke.getAdapter=gi.getAdapter;Ke.HttpStatusCode=Ku;Ke.default=Ke;const Th=Ke;function lt(e){"@babel/helpers - typeof";return lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lt(e)}function Ju(e,t){if(lt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(lt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Si(e){var t=Ju(e,"string");return lt(t)=="symbol"?t:String(t)}function Ph(e,t,r){return t=Si(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oi(e){var t=function(n){var a=n.dispatch,o=n.getState;return function(i){return function(s){return typeof s=="function"?s(a,o,e):i(s)}}};return t}var Ei=Oi();Ei.withExtraArgument=Oi;const kh=Ei;let jh=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");function xe(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function G(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function ne(e){G(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||lt(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function sa(e,t){G(2,arguments);var r=ne(e),n=xe(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function ua(e,t){G(2,arguments);var r=ne(e),n=xe(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var a=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+n+1,0);var i=o.getDate();return a>=i?o:(r.setFullYear(o.getFullYear(),o.getMonth(),a),r)}function er(e,t){if(G(2,arguments),!t||lt(t)!=="object")return new Date(NaN);var r=t.years?xe(t.years):0,n=t.months?xe(t.months):0,a=t.weeks?xe(t.weeks):0,o=t.days?xe(t.days):0,i=t.hours?xe(t.hours):0,s=t.minutes?xe(t.minutes):0,u=t.seconds?xe(t.seconds):0,c=ne(e),l=n||r?ua(c,n+r*12):c,d=o||a?sa(l,o+a*7):l,g=s+i*60,m=u+g*60,b=m*1e3,h=new Date(d.getTime()+b);return h}function ca(e,t){G(2,arguments);var r=ne(e).getTime(),n=xe(t);return new Date(r+n)}var Gu=36e5;function Ah(e,t){G(2,arguments);var r=xe(t);return ca(e,r*Gu)}var Qu={};function jt(){return Qu}function Rt(e,t){var r,n,a,o,i,s,u,c;G(1,arguments);var l=jt(),d=xe((r=(n=(a=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:l.weekStartsOn)!==null&&n!==void 0?n:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=ne(e),m=g.getDay(),b=(m=a.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function Zu(e){G(1,arguments);var t=Xu(e),r=new Date(0);r.setFullYear(t,0,4),r.setHours(0,0,0,0);var n=Tr(r);return n}function ir(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Pr(e){G(1,arguments);var t=ne(e);return t.setHours(0,0,0,0),t}var ec=864e5;function tc(e,t){G(2,arguments);var r=Pr(e),n=Pr(t),a=r.getTime()-ir(r),o=n.getTime()-ir(n);return Math.round((a-o)/ec)}var rc=6e4;function Mh(e,t){G(2,arguments);var r=xe(t);return ca(e,r*rc)}function Dh(e,t){G(2,arguments);var r=xe(t),n=r*7;return sa(e,n)}function Rh(e,t){G(2,arguments);var r=xe(t);return ua(e,r*12)}function Fh(e){G(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(lt(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var r;return t.forEach(function(n){var a=ne(n);(r===void 0||ra||isNaN(a.getDate()))&&(r=a)}),r||new Date(NaN)}function qt(e,t){G(2,arguments);var r=ne(e),n=ne(t),a=r.getTime()-n.getTime();return a<0?-1:a>0?1:a}var la=6e4,fa=36e5;function nc(e,t){G(2,arguments);var r=Pr(e),n=Pr(t);return r.getTime()===n.getTime()}function ac(e){return G(1,arguments),e instanceof Date||lt(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function oc(e){if(G(1,arguments),!ac(e)&&typeof e!="number")return!1;var t=ne(e);return!isNaN(Number(t))}function ic(e,t){G(2,arguments);var r=ne(e),n=ne(t),a=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth();return a*12+o}var sc=6048e5;function uc(e,t,r){G(2,arguments);var n=Rt(e,r),a=Rt(t,r),o=n.getTime()-ir(n),i=a.getTime()-ir(a);return Math.round((o-i)/sc)}function cc(e,t){G(2,arguments);var r=ne(e),n=ne(t);return r.getFullYear()-n.getFullYear()}function Ya(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function lc(e,t){G(2,arguments);var r=ne(e),n=ne(t),a=Ya(r,n),o=Math.abs(tc(r,n));r.setDate(r.getDate()-a*o);var i=+(Ya(r,n)===-a),s=a*(o-i);return s===0?0:s}function da(e,t){return G(2,arguments),ne(e).getTime()-ne(t).getTime()}var Ha={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},fc="trunc";function pa(e){return e?Ha[e]:Ha[fc]}function dc(e,t,r){G(2,arguments);var n=da(e,t)/fa;return pa(r==null?void 0:r.roundingMethod)(n)}function pc(e,t,r){G(2,arguments);var n=da(e,t)/la;return pa(r==null?void 0:r.roundingMethod)(n)}function hc(e){G(1,arguments);var t=ne(e);return t.setHours(23,59,59,999),t}function mc(e){G(1,arguments);var t=ne(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function vc(e){G(1,arguments);var t=ne(e);return hc(t).getTime()===mc(t).getTime()}function bc(e,t){G(2,arguments);var r=ne(e),n=ne(t),a=qt(r,n),o=Math.abs(ic(r,n)),i;if(o<1)i=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-a*o);var s=qt(r,n)===-a;vc(ne(e))&&o===1&&qt(e,n)===1&&(s=!1),i=a*(o-Number(s))}return i===0?0:i}function gc(e,t,r){G(2,arguments);var n=da(e,t)/1e3;return pa(r==null?void 0:r.roundingMethod)(n)}function yc(e,t){G(2,arguments);var r=ne(e),n=ne(t),a=qt(r,n),o=Math.abs(cc(r,n));r.setFullYear(1584),n.setFullYear(1584);var i=qt(r,n)===-a,s=a*(o-Number(i));return s===0?0:s}function Va(e){G(1,arguments);var t=ne(e);return t.setSeconds(0,0),t}function wc(e){G(1,arguments);var t=ne(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Ih(e){G(1,arguments);var t=ne(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Sc(e,t){var r,n,a,o,i,s,u,c;G(1,arguments);var l=jt(),d=xe((r=(n=(a=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:l.weekStartsOn)!==null&&n!==void 0?n:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=ne(e),m=g.getDay(),b=(m=a.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function _c(e){G(1,arguments);var t=xi(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=kr(r);return n}var Cc=6048e5;function Tc(e){G(1,arguments);var t=ne(e),r=kr(t).getTime()-_c(t).getTime();return Math.round(r/Cc)+1}function jr(e,t){var r,n,a,o,i,s,u,c;G(1,arguments);var l=jt(),d=xe((r=(n=(a=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:l.weekStartsOn)!==null&&n!==void 0?n:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=ne(e),m=g.getUTCDay(),b=(m=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(d+1,0,m),b.setUTCHours(0,0,0,0);var h=jr(b,t),C=new Date(0);C.setUTCFullYear(d,0,m),C.setUTCHours(0,0,0,0);var j=jr(C,t);return l.getTime()>=h.getTime()?d+1:l.getTime()>=j.getTime()?d:d-1}function Pc(e,t){var r,n,a,o,i,s,u,c;G(1,arguments);var l=jt(),d=xe((r=(n=(a=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:l.firstWeekContainsDate)!==null&&n!==void 0?n:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1),g=_i(e,t),m=new Date(0);m.setUTCFullYear(g,0,d),m.setUTCHours(0,0,0,0);var b=jr(m,t);return b}var kc=6048e5;function jc(e,t){G(1,arguments);var r=ne(e),n=jr(r,t).getTime()-Pc(r,t).getTime();return Math.round(n/kc)+1}function Fe(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length0?n:1-n;return Fe(r==="yy"?a%100:a,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):Fe(n+1,2)},d:function(t,r){return Fe(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return Fe(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Fe(t.getUTCHours(),r.length)},m:function(t,r){return Fe(t.getUTCMinutes(),r.length)},s:function(t,r){return Fe(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,a=t.getUTCMilliseconds(),o=Math.floor(a*Math.pow(10,n-3));return Fe(o,r.length)}};const _t=Ac;var Wt={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Mc={G:function(t,r,n){var a=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var a=t.getUTCFullYear(),o=a>0?a:1-a;return n.ordinalNumber(o,{unit:"year"})}return _t.y(t,r)},Y:function(t,r,n,a){var o=_i(t,a),i=o>0?o:1-o;if(r==="YY"){var s=i%100;return Fe(s,2)}return r==="Yo"?n.ordinalNumber(i,{unit:"year"}):Fe(i,r.length)},R:function(t,r){var n=xi(t);return Fe(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return Fe(n,r.length)},Q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(a);case"QQ":return Fe(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(a);case"qq":return Fe(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,r,n){var a=t.getUTCMonth();switch(r){case"M":case"MM":return _t.M(t,r);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(t,r,n){var a=t.getUTCMonth();switch(r){case"L":return String(a+1);case"LL":return Fe(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(t,r,n,a){var o=jc(t,a);return r==="wo"?n.ordinalNumber(o,{unit:"week"}):Fe(o,r.length)},I:function(t,r,n){var a=Tc(t);return r==="Io"?n.ordinalNumber(a,{unit:"week"}):Fe(a,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):_t.d(t,r)},D:function(t,r,n){var a=xc(t);return r==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):Fe(a,r.length)},E:function(t,r,n){var a=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(t,r,n,a){var o=t.getUTCDay(),i=(o-a.weekStartsOn+8)%7||7;switch(r){case"e":return String(i);case"ee":return Fe(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,n,a){var o=t.getUTCDay(),i=(o-a.weekStartsOn+8)%7||7;switch(r){case"c":return String(i);case"cc":return Fe(i,r.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,n){var a=t.getUTCDay(),o=a===0?7:a;switch(r){case"i":return String(o);case"ii":return Fe(o,r.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(t,r,n){var a=t.getUTCHours(),o=a/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,n){var a=t.getUTCHours(),o;switch(a===12?o=Wt.noon:a===0?o=Wt.midnight:o=a/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,n){var a=t.getUTCHours(),o;switch(a>=17?o=Wt.evening:a>=12?o=Wt.afternoon:a>=4?o=Wt.morning:o=Wt.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var a=t.getUTCHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return _t.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):_t.H(t,r)},K:function(t,r,n){var a=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(a,{unit:"hour"}):Fe(a,r.length)},k:function(t,r,n){var a=t.getUTCHours();return a===0&&(a=24),r==="ko"?n.ordinalNumber(a,{unit:"hour"}):Fe(a,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):_t.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):_t.s(t,r)},S:function(t,r){return _t.S(t,r)},X:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();if(i===0)return"Z";switch(r){case"X":return Ja(i);case"XXXX":case"XX":return At(i);case"XXXXX":case"XXX":default:return At(i,":")}},x:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();switch(r){case"x":return Ja(i);case"xxxx":case"xx":return At(i);case"xxxxx":case"xxx":default:return At(i,":")}},O:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Ka(i,":");case"OOOO":default:return"GMT"+At(i,":")}},z:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Ka(i,":");case"zzzz":default:return"GMT"+At(i,":")}},t:function(t,r,n,a){var o=a._originalDate||t,i=Math.floor(o.getTime()/1e3);return Fe(i,r.length)},T:function(t,r,n,a){var o=a._originalDate||t,i=o.getTime();return Fe(i,r.length)}};function Ka(e,t){var r=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),o=n%60;if(o===0)return r+String(a);var i=t||"";return r+String(a)+i+Fe(o,2)}function Ja(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Fe(Math.abs(e)/60,2)}return At(e,t)}function At(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e),o=Fe(Math.floor(a/60),2),i=Fe(a%60,2);return n+o+r+i}const Dc=Mc;var Ga=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Ci=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},Rc=function(t,r){var n=t.match(/(P+)(p+)?/)||[],a=n[1],o=n[2];if(!o)return Ga(t,r);var i;switch(a){case"P":i=r.dateTime({width:"short"});break;case"PP":i=r.dateTime({width:"medium"});break;case"PPP":i=r.dateTime({width:"long"});break;case"PPPP":default:i=r.dateTime({width:"full"});break}return i.replace("{{date}}",Ga(a,r)).replace("{{time}}",Ci(o,r))},Fc={p:Ci,P:Rc};const Nc=Fc;var Ic=["D","DD"],Lc=["YY","YYYY"];function $c(e){return Ic.indexOf(e)!==-1}function Uc(e){return Lc.indexOf(e)!==-1}function Qa(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Bc={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Wc=function(t,r,n){var a,o=Bc[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};const zc=Wc;function _n(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var qc={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Yc={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Hc={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Vc={date:_n({formats:qc,defaultWidth:"full"}),time:_n({formats:Yc,defaultWidth:"full"}),dateTime:_n({formats:Hc,defaultWidth:"full"})};const Kc=Vc;var Jc={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Gc=function(t,r,n,a){return Jc[t]};const Qc=Gc;function tr(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=r!=null&&r.width?String(r.width):o;a=e.formattingValues[i]||e.formattingValues[o]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[u]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return a[c]}}var Xc={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Zc={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},el={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},tl={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},rl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},nl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},al=function(t,r){var n=Number(t),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},ol={ordinalNumber:al,era:tr({values:Xc,defaultWidth:"wide"}),quarter:tr({values:Zc,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:tr({values:el,defaultWidth:"wide"}),day:tr({values:tl,defaultWidth:"wide"}),dayPeriod:tr({values:rl,defaultWidth:"wide",formattingValues:nl,defaultFormattingWidth:"wide"})};const il=ol;function rr(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var i=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?ul(s,function(d){return d.test(i)}):sl(s,function(d){return d.test(i)}),c;c=e.valueCallback?e.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;var l=t.slice(i.length);return{value:c,rest:l}}}function sl(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function ul(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],o=t.match(e.parsePattern);if(!o)return null;var i=e.valueCallback?e.valueCallback(o[0]):o[0];i=r.valueCallback?r.valueCallback(i):i;var s=t.slice(a.length);return{value:i,rest:s}}}var ll=/^(\d+)(th|st|nd|rd)?/i,fl=/\d+/i,dl={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},pl={any:[/^b/i,/^(a|c)/i]},hl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ml={any:[/1/i,/2/i,/3/i,/4/i]},vl={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},bl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},gl={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},yl={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},wl={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Sl={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ol={ordinalNumber:cl({matchPattern:ll,parsePattern:fl,valueCallback:function(t){return parseInt(t,10)}}),era:rr({matchPatterns:dl,defaultMatchWidth:"wide",parsePatterns:pl,defaultParseWidth:"any"}),quarter:rr({matchPatterns:hl,defaultMatchWidth:"wide",parsePatterns:ml,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:rr({matchPatterns:vl,defaultMatchWidth:"wide",parsePatterns:bl,defaultParseWidth:"any"}),day:rr({matchPatterns:gl,defaultMatchWidth:"wide",parsePatterns:yl,defaultParseWidth:"any"}),dayPeriod:rr({matchPatterns:wl,defaultMatchWidth:"any",parsePatterns:Sl,defaultParseWidth:"any"})};const El=Ol;var xl={code:"en-US",formatDistance:zc,formatLong:Kc,formatRelative:Qc,localize:il,match:El,options:{weekStartsOn:0,firstWeekContainsDate:1}};const _l=xl;var Cl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Tl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pl=/^'([^]*?)'?$/,kl=/''/g,jl=/[a-zA-Z]/;function $h(e,t,r){var n,a,o,i,s,u,c,l,d,g,m,b,h,C,j,x,O,_;G(2,arguments);var f=String(t),T=jt(),P=(n=(a=r==null?void 0:r.locale)!==null&&a!==void 0?a:T.locale)!==null&&n!==void 0?n:_l,L=xe((o=(i=(s=(u=r==null?void 0:r.firstWeekContainsDate)!==null&&u!==void 0?u:r==null||(c=r.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&s!==void 0?s:T.firstWeekContainsDate)!==null&&i!==void 0?i:(d=T.locale)===null||d===void 0||(g=d.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var E=xe((m=(b=(h=(C=r==null?void 0:r.weekStartsOn)!==null&&C!==void 0?C:r==null||(j=r.locale)===null||j===void 0||(x=j.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&h!==void 0?h:T.weekStartsOn)!==null&&b!==void 0?b:(O=T.locale)===null||O===void 0||(_=O.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:0);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!P.localize)throw new RangeError("locale must contain localize property");if(!P.formatLong)throw new RangeError("locale must contain formatLong property");var A=ne(e);if(!oc(A))throw new RangeError("Invalid time value");var R=ir(A),$=Oc(A,R),z={firstWeekContainsDate:L,weekStartsOn:E,locale:P,_originalDate:A},re=f.match(Tl).map(function(D){var te=D[0];if(te==="p"||te==="P"){var ce=Nc[te];return ce(D,P.formatLong)}return D}).join("").match(Cl).map(function(D){if(D==="''")return"'";var te=D[0];if(te==="'")return Al(D);var ce=Dc[te];if(ce)return!(r!=null&&r.useAdditionalWeekYearTokens)&&Uc(D)&&Qa(D,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&$c(D)&&Qa(D,t,String(e)),ce($,D,P.localize,z);if(te.match(jl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");return D}).join("");return re}function Al(e){var t=e.match(Pl);return t?t[1].replace(kl,"'"):e}function Uh(e){G(1,arguments);var t=ne(e),r=t.getDate();return r}function Ml(e){G(1,arguments);var t=ne(e),r=t.getFullYear(),n=t.getMonth(),a=new Date(0);return a.setFullYear(r,n+1,0),a.setHours(0,0,0,0),a.getDate()}var Dl=6048e5;function Bh(e){G(1,arguments);var t=ne(e),r=Tr(t).getTime()-Zu(t).getTime();return Math.round(r/Dl)+1}function Wh(e){G(1,arguments);var t=ne(e),r=t.getMonth();return r}function Rl(e){G(1,arguments);var t=ne(e),r=t.getTime();return r}function zh(e){return G(1,arguments),Math.floor(Rl(e)/1e3)}function Fl(e,t){var r,n,a,o,i,s,u,c;G(1,arguments);var l=ne(e),d=l.getFullYear(),g=jt(),m=xe((r=(n=(a=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:g.firstWeekContainsDate)!==null&&n!==void 0?n:(u=g.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setFullYear(d+1,0,m),b.setHours(0,0,0,0);var h=Rt(b,t),C=new Date(0);C.setFullYear(d,0,m),C.setHours(0,0,0,0);var j=Rt(C,t);return l.getTime()>=h.getTime()?d+1:l.getTime()>=j.getTime()?d:d-1}function Nl(e,t){var r,n,a,o,i,s,u,c;G(1,arguments);var l=jt(),d=xe((r=(n=(a=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:l.firstWeekContainsDate)!==null&&n!==void 0?n:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1),g=Fl(e,t),m=new Date(0);m.setFullYear(g,0,d),m.setHours(0,0,0,0);var b=Rt(m,t);return b}var Il=6048e5;function qh(e,t){G(1,arguments);var r=ne(e),n=Rt(r,t).getTime()-Nl(r,t).getTime();return Math.round(n/Il)+1}function Ll(e){G(1,arguments);var t=ne(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function Yh(e,t){return G(1,arguments),uc(Ll(e),wc(e),t)+1}function Hh(e){return G(1,arguments),ne(e).getFullYear()}function Vh(e){G(1,arguments);var t=ne(e.start),r=ne(e.end);if(isNaN(t.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(r.getTime()))throw new RangeError("End Date is invalid");var n={};n.years=Math.abs(yc(r,t));var a=qt(r,t),o=er(t,{years:a*n.years});n.months=Math.abs(bc(r,o));var i=er(o,{months:a*n.months});n.days=Math.abs(lc(r,i));var s=er(i,{days:a*n.days});n.hours=Math.abs(dc(r,s));var u=er(s,{hours:a*n.hours});n.minutes=Math.abs(pc(r,u));var c=er(u,{minutes:a*n.minutes});return n.seconds=Math.abs(gc(r,c)),n}function Kh(e,t){G(2,arguments);var r=ne(e),n=ne(t);return r.getTime()>n.getTime()}function Jh(e,t){G(2,arguments);var r=ne(e),n=ne(t);return r.getTime()e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bl(e,t){if(t&&(lt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $l(e)}function Xh(e){var t=Ul();return function(){var n=Ar(e),a;if(t){var o=Ar(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return Bl(this,a)}}function Zh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Za(e,t){for(var r=0;r=n&&r<=a}function Wl(e,t){G(2,arguments);var r=xe(t);return sa(e,-r)}function sm(e,t){var r;G(1,arguments);var n=xe((r=t==null?void 0:t.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=Hl(e),o;if(a.date){var i=Vl(a.date,n);o=Kl(i.restDateString,i.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),u=0,c;if(a.time&&(u=Jl(a.time),isNaN(u)))return new Date(NaN);if(a.timezone){if(c=Gl(a.timezone),isNaN(c))return new Date(NaN)}else{var l=new Date(s+u),d=new Date(0);return d.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),d.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),d}return new Date(s+u+c)}var yr={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},zl=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ql=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Yl=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Hl(e){var t={},r=e.split(yr.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],yr.timeZoneDelimiter.test(t.date)&&(t.date=e.split(yr.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var a=yr.timezone.exec(n);a?(t.time=n.replace(a[1],""),t.timezone=a[1]):t.time=n}return t}function Vl(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var a=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:o===null?a:o*100,restDateString:e.slice((n[1]||n[2]).length)}}function Kl(e,t){if(t===null)return new Date(NaN);var r=e.match(zl);if(!r)return new Date(NaN);var n=!!r[4],a=nr(r[1]),o=nr(r[2])-1,i=nr(r[3]),s=nr(r[4]),u=nr(r[5])-1;if(n)return tf(t,s,u)?Ql(t,s,u):new Date(NaN);var c=new Date(0);return!Zl(t,o,i)||!ef(t,a)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(a,i)),c)}function nr(e){return e?parseInt(e):1}function Jl(e){var t=e.match(ql);if(!t)return NaN;var r=Cn(t[1]),n=Cn(t[2]),a=Cn(t[3]);return rf(r,n,a)?r*fa+n*la+a*1e3:NaN}function Cn(e){return e&&parseFloat(e.replace(",","."))||0}function Gl(e){if(e==="Z")return 0;var t=e.match(Yl);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return nf(n,a)?r*(n*fa+a*la):NaN}function Ql(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var a=n.getUTCDay()||7,o=(t-1)*7+r+1-a;return n.setUTCDate(n.getUTCDate()+o),n}var Xl=[31,null,31,30,31,30,31,31,30,31,30,31];function Ti(e){return e%400===0||e%4===0&&e%100!==0}function Zl(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(Xl[t]||(Ti(e)?29:28))}function ef(e,t){return t>=1&&t<=(Ti(e)?366:365)}function tf(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function rf(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function nf(e,t){return t>=0&&t<=59}function um(e,t){G(2,arguments);var r=ne(e),n=xe(t),a=r.getFullYear(),o=r.getDate(),i=new Date(0);i.setFullYear(a,n,15),i.setHours(0,0,0,0);var s=Ml(i);return r.setMonth(n,Math.min(o,s)),r}function cm(e,t){G(2,arguments);var r=ne(e),n=xe(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function af(e,t){G(2,arguments);var r=xe(t);return ua(e,-r)}function lm(e,t){if(G(2,arguments),!t||lt(t)!=="object")return new Date(NaN);var r=t.years?xe(t.years):0,n=t.months?xe(t.months):0,a=t.weeks?xe(t.weeks):0,o=t.days?xe(t.days):0,i=t.hours?xe(t.hours):0,s=t.minutes?xe(t.minutes):0,u=t.seconds?xe(t.seconds):0,c=af(e,n+r*12),l=Wl(c,o+a*7),d=s+i*60,g=u+d*60,m=g*1e3,b=new Date(l.getTime()-m);return b}var Pi={exports:{}},ki={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -17,7 +17,7 @@ import{r as J,g as Lr,b as Os,d as Es,c as _r}from"./react-432945ee.js";function * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ht=J;function of(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sf=typeof Object.is=="function"?Object.is:of,uf=Ht.useState,cf=Ht.useEffect,lf=Ht.useLayoutEffect,ff=Ht.useDebugValue;function df(e,t){var r=t(),n=uf({inst:{value:r,getSnapshot:t}}),a=n[0].inst,o=n[1];return lf(function(){a.value=r,a.getSnapshot=t,Cn(a)&&o({inst:a})},[e,r,t]),cf(function(){return Cn(a)&&o({inst:a}),e(function(){Cn(a)&&o({inst:a})})},[e]),ff(r),r}function Cn(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sf(e,r)}catch{return!0}}function pf(e,t){return t()}var hf=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?pf:df;ki.useSyncExternalStore=Ht.useSyncExternalStore!==void 0?Ht.useSyncExternalStore:hf;Pi.exports=ki;var mf=Pi.exports,ji={exports:{}},Ai={};/** + */var Vt=J;function of(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sf=typeof Object.is=="function"?Object.is:of,uf=Vt.useState,cf=Vt.useEffect,lf=Vt.useLayoutEffect,ff=Vt.useDebugValue;function df(e,t){var r=t(),n=uf({inst:{value:r,getSnapshot:t}}),a=n[0].inst,o=n[1];return lf(function(){a.value=r,a.getSnapshot=t,Tn(a)&&o({inst:a})},[e,r,t]),cf(function(){return Tn(a)&&o({inst:a}),e(function(){Tn(a)&&o({inst:a})})},[e]),ff(r),r}function Tn(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sf(e,r)}catch{return!0}}function pf(e,t){return t()}var hf=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?pf:df;ki.useSyncExternalStore=Vt.useSyncExternalStore!==void 0?Vt.useSyncExternalStore:hf;Pi.exports=ki;var mf=Pi.exports,ji={exports:{}},Ai={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -25,7 +25,7 @@ import{r as J,g as Lr,b as Os,d as Es,c as _r}from"./react-432945ee.js";function * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var en=J,vf=mf;function bf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gf=typeof Object.is=="function"?Object.is:bf,yf=vf.useSyncExternalStore,wf=en.useRef,Sf=en.useEffect,Of=en.useMemo,Ef=en.useDebugValue;Ai.useSyncExternalStoreWithSelector=function(e,t,r,n,a){var o=wf(null);if(o.current===null){var i={hasValue:!1,value:null};o.current=i}else i=o.current;o=Of(function(){function u(m){if(!c){if(c=!0,l=m,m=n(m),a!==void 0&&i.hasValue){var b=i.value;if(a(b,m))return d=b}return d=m}if(b=d,gf(l,m))return b;var h=n(m);return a!==void 0&&a(b,h)?b:(l=m,d=h)}var c=!1,l,d,g=r===void 0?null:r;return[function(){return u(t())},g===null?void 0:function(){return u(g())}]},[t,r,n,a]);var s=yf(e,o[0],o[1]);return Sf(function(){i.hasValue=!0,i.value=s},[s]),Ef(s),s};ji.exports=Ai;var Mi=ji.exports;const fm=Lr(Mi);function xf(e){e()}let Di=xf;const _f=e=>Di=e,Cf=()=>Di,to=Symbol.for("react-redux-context"),ro=typeof globalThis<"u"?globalThis:{};function Tf(){var e;if(!J.createContext)return{};const t=(e=ro[to])!=null?e:ro[to]=new Map;let r=t.get(J.createContext);return r||(r=J.createContext(null),t.set(J.createContext,r)),r}const Pt=Tf();function pa(e=Pt){return function(){return J.useContext(e)}}const Ri=pa(),Pf=()=>{throw new Error("uSES not initialized!")};let Fi=Pf;const kf=e=>{Fi=e},jf=(e,t)=>e===t;function Af(e=Pt){const t=e===Pt?Ri:pa(e);return function(n,a={}){const{equalityFn:o=jf,stabilityCheck:i=void 0,noopCheck:s=void 0}=typeof a=="function"?{equalityFn:a}:a,{store:u,subscription:c,getServerState:l,stabilityCheck:d,noopCheck:g}=t();J.useRef(!0);const m=J.useCallback({[n.name](h){return n(h)}}[n.name],[n,d,i]),b=Fi(c.addNestedSub,u.getState,l||u.getState,m,o);return J.useDebugValue(b),b}}const dm=Af();function pm(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o=0)&&(r[a]=e[a]);return r}var $e={};/** + */var en=J,vf=mf;function bf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gf=typeof Object.is=="function"?Object.is:bf,yf=vf.useSyncExternalStore,wf=en.useRef,Sf=en.useEffect,Of=en.useMemo,Ef=en.useDebugValue;Ai.useSyncExternalStoreWithSelector=function(e,t,r,n,a){var o=wf(null);if(o.current===null){var i={hasValue:!1,value:null};o.current=i}else i=o.current;o=Of(function(){function u(m){if(!c){if(c=!0,l=m,m=n(m),a!==void 0&&i.hasValue){var b=i.value;if(a(b,m))return d=b}return d=m}if(b=d,gf(l,m))return b;var h=n(m);return a!==void 0&&a(b,h)?b:(l=m,d=h)}var c=!1,l,d,g=r===void 0?null:r;return[function(){return u(t())},g===null?void 0:function(){return u(g())}]},[t,r,n,a]);var s=yf(e,o[0],o[1]);return Sf(function(){i.hasValue=!0,i.value=s},[s]),Ef(s),s};ji.exports=Ai;var Mi=ji.exports;const fm=Lr(Mi);function xf(e){e()}let Di=xf;const _f=e=>Di=e,Cf=()=>Di,to=Symbol.for("react-redux-context"),ro=typeof globalThis<"u"?globalThis:{};function Tf(){var e;if(!J.createContext)return{};const t=(e=ro[to])!=null?e:ro[to]=new Map;let r=t.get(J.createContext);return r||(r=J.createContext(null),t.set(J.createContext,r)),r}const Pt=Tf();function ha(e=Pt){return function(){return J.useContext(e)}}const Ri=ha(),Pf=()=>{throw new Error("uSES not initialized!")};let Fi=Pf;const kf=e=>{Fi=e},jf=(e,t)=>e===t;function Af(e=Pt){const t=e===Pt?Ri:ha(e);return function(n,a={}){const{equalityFn:o=jf,stabilityCheck:i=void 0,noopCheck:s=void 0}=typeof a=="function"?{equalityFn:a}:a,{store:u,subscription:c,getServerState:l,stabilityCheck:d,noopCheck:g}=t();J.useRef(!0);const m=J.useCallback({[n.name](h){return n(h)}}[n.name],[n,d,i]),b=Fi(c.addNestedSub,u.getState,l||u.getState,m,o);return J.useDebugValue(b),b}}const dm=Af();function pm(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o=0)&&(r[a]=e[a]);return r}var $e={};/** * @license React * react-is.production.min.js * @@ -33,12 +33,12 @@ import{r as J,g as Lr,b as Os,d as Es,c as _r}from"./react-432945ee.js";function * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ha=Symbol.for("react.element"),ma=Symbol.for("react.portal"),tn=Symbol.for("react.fragment"),rn=Symbol.for("react.strict_mode"),nn=Symbol.for("react.profiler"),an=Symbol.for("react.provider"),on=Symbol.for("react.context"),Mf=Symbol.for("react.server_context"),sn=Symbol.for("react.forward_ref"),un=Symbol.for("react.suspense"),cn=Symbol.for("react.suspense_list"),ln=Symbol.for("react.memo"),fn=Symbol.for("react.lazy"),Df=Symbol.for("react.offscreen"),Ni;Ni=Symbol.for("react.module.reference");function ft(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ha:switch(e=e.type,e){case tn:case nn:case rn:case un:case cn:return e;default:switch(e=e&&e.$$typeof,e){case Mf:case on:case sn:case fn:case ln:case an:return e;default:return t}}case ma:return t}}}$e.ContextConsumer=on;$e.ContextProvider=an;$e.Element=ha;$e.ForwardRef=sn;$e.Fragment=tn;$e.Lazy=fn;$e.Memo=ln;$e.Portal=ma;$e.Profiler=nn;$e.StrictMode=rn;$e.Suspense=un;$e.SuspenseList=cn;$e.isAsyncMode=function(){return!1};$e.isConcurrentMode=function(){return!1};$e.isContextConsumer=function(e){return ft(e)===on};$e.isContextProvider=function(e){return ft(e)===an};$e.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ha};$e.isForwardRef=function(e){return ft(e)===sn};$e.isFragment=function(e){return ft(e)===tn};$e.isLazy=function(e){return ft(e)===fn};$e.isMemo=function(e){return ft(e)===ln};$e.isPortal=function(e){return ft(e)===ma};$e.isProfiler=function(e){return ft(e)===nn};$e.isStrictMode=function(e){return ft(e)===rn};$e.isSuspense=function(e){return ft(e)===un};$e.isSuspenseList=function(e){return ft(e)===cn};$e.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===tn||e===nn||e===rn||e===un||e===cn||e===Df||typeof e=="object"&&e!==null&&(e.$$typeof===fn||e.$$typeof===ln||e.$$typeof===an||e.$$typeof===on||e.$$typeof===sn||e.$$typeof===Ni||e.getModuleId!==void 0)};$e.typeOf=ft;function Rf(){const e=Cf();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],a=t;for(;a;)n.push(a),a=a.next;return n},subscribe(n){let a=!0,o=r={callback:n,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!a||t===null||(a=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const no={notify(){},get:()=>[]};function Ff(e,t){let r,n=no,a=0,o=!1;function i(h){l();const C=n.subscribe(h);let j=!1;return()=>{j||(j=!0,C(),d())}}function s(){n.notify()}function u(){b.onStateChange&&b.onStateChange()}function c(){return o}function l(){a++,r||(r=t?t.addNestedSub(u):e.subscribe(u),n=Rf())}function d(){a--,r&&a===0&&(r(),r=void 0,n.clear(),n=no)}function g(){o||(o=!0,l())}function m(){o&&(o=!1,d())}const b={addNestedSub:i,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:c,trySubscribe:g,tryUnsubscribe:m,getListeners:()=>n};return b}const Nf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",If=Nf?J.useLayoutEffect:J.useEffect;function hm({store:e,context:t,children:r,serverState:n,stabilityCheck:a="once",noopCheck:o="once"}){const i=J.useMemo(()=>{const c=Ff(e);return{store:e,subscription:c,getServerState:n?()=>n:void 0,stabilityCheck:a,noopCheck:o}},[e,n,a,o]),s=J.useMemo(()=>e.getState(),[e]);If(()=>{const{subscription:c}=i;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[i,s]);const u=t||Pt;return J.createElement(u.Provider,{value:i},r)}function Ii(e=Pt){const t=e===Pt?Ri:pa(e);return function(){const{store:n}=t();return n}}const Lf=Ii();function $f(e=Pt){const t=e===Pt?Lf:Ii(e);return function(){return t().dispatch}}const mm=$f();kf(Mi.useSyncExternalStoreWithSelector);_f(Os.unstable_batchedUpdates);/*! + */var ma=Symbol.for("react.element"),va=Symbol.for("react.portal"),tn=Symbol.for("react.fragment"),rn=Symbol.for("react.strict_mode"),nn=Symbol.for("react.profiler"),an=Symbol.for("react.provider"),on=Symbol.for("react.context"),Mf=Symbol.for("react.server_context"),sn=Symbol.for("react.forward_ref"),un=Symbol.for("react.suspense"),cn=Symbol.for("react.suspense_list"),ln=Symbol.for("react.memo"),fn=Symbol.for("react.lazy"),Df=Symbol.for("react.offscreen"),Ni;Ni=Symbol.for("react.module.reference");function ft(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ma:switch(e=e.type,e){case tn:case nn:case rn:case un:case cn:return e;default:switch(e=e&&e.$$typeof,e){case Mf:case on:case sn:case fn:case ln:case an:return e;default:return t}}case va:return t}}}$e.ContextConsumer=on;$e.ContextProvider=an;$e.Element=ma;$e.ForwardRef=sn;$e.Fragment=tn;$e.Lazy=fn;$e.Memo=ln;$e.Portal=va;$e.Profiler=nn;$e.StrictMode=rn;$e.Suspense=un;$e.SuspenseList=cn;$e.isAsyncMode=function(){return!1};$e.isConcurrentMode=function(){return!1};$e.isContextConsumer=function(e){return ft(e)===on};$e.isContextProvider=function(e){return ft(e)===an};$e.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ma};$e.isForwardRef=function(e){return ft(e)===sn};$e.isFragment=function(e){return ft(e)===tn};$e.isLazy=function(e){return ft(e)===fn};$e.isMemo=function(e){return ft(e)===ln};$e.isPortal=function(e){return ft(e)===va};$e.isProfiler=function(e){return ft(e)===nn};$e.isStrictMode=function(e){return ft(e)===rn};$e.isSuspense=function(e){return ft(e)===un};$e.isSuspenseList=function(e){return ft(e)===cn};$e.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===tn||e===nn||e===rn||e===un||e===cn||e===Df||typeof e=="object"&&e!==null&&(e.$$typeof===fn||e.$$typeof===ln||e.$$typeof===an||e.$$typeof===on||e.$$typeof===sn||e.$$typeof===Ni||e.getModuleId!==void 0)};$e.typeOf=ft;function Rf(){const e=Cf();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],a=t;for(;a;)n.push(a),a=a.next;return n},subscribe(n){let a=!0,o=r={callback:n,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!a||t===null||(a=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const no={notify(){},get:()=>[]};function Ff(e,t){let r,n=no,a=0,o=!1;function i(h){l();const C=n.subscribe(h);let j=!1;return()=>{j||(j=!0,C(),d())}}function s(){n.notify()}function u(){b.onStateChange&&b.onStateChange()}function c(){return o}function l(){a++,r||(r=t?t.addNestedSub(u):e.subscribe(u),n=Rf())}function d(){a--,r&&a===0&&(r(),r=void 0,n.clear(),n=no)}function g(){o||(o=!0,l())}function m(){o&&(o=!1,d())}const b={addNestedSub:i,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:c,trySubscribe:g,tryUnsubscribe:m,getListeners:()=>n};return b}const Nf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",If=Nf?J.useLayoutEffect:J.useEffect;function hm({store:e,context:t,children:r,serverState:n,stabilityCheck:a="once",noopCheck:o="once"}){const i=J.useMemo(()=>{const c=Ff(e);return{store:e,subscription:c,getServerState:n?()=>n:void 0,stabilityCheck:a,noopCheck:o}},[e,n,a,o]),s=J.useMemo(()=>e.getState(),[e]);If(()=>{const{subscription:c}=i;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[i,s]);const u=t||Pt;return J.createElement(u.Provider,{value:i},r)}function Ii(e=Pt){const t=e===Pt?Ri:ha(e);return function(){const{store:n}=t();return n}}const Lf=Ii();function $f(e=Pt){const t=e===Pt?Lf:Ii(e);return function(){return t().dispatch}}const mm=$f();kf(Mi.useSyncExternalStoreWithSelector);_f(Os.unstable_batchedUpdates);/*! * cookie * Copyright(c) 2012-2014 Roman Shtylman * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed - */var Li=Wf,ao=zf,Uf=decodeURIComponent,Bf=encodeURIComponent,wr=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Wf(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var r={},n=t||{},a=e.split(";"),o=n.decode||Uf,i=0;i"u"&&(t=!e||e[0]!=="{"&&e[0]!=="["&&e[0]!=='"'),!t}function oo(e,t){t===void 0&&(t={});var r=Kf(e);if(Vf(r,t.doNotParse))try{return JSON.parse(r)}catch{}return e}function Kf(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}var Mt=globalThis&&globalThis.__assign||function(){return Mt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&this.changeListeners.splice(r,1)},e}();const $i=Jf;var va=J.createContext(new $i),Gf=va.Provider;va.Consumer;const Qf=va;var Xf=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)a.hasOwnProperty(o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Zf=function(e){Xf(t,e);function t(r){var n=e.call(this,r)||this;return r.cookies?n.cookies=r.cookies:n.cookies=new $i,n}return t.prototype.render=function(){return J.createElement(Gf,{value:this.cookies},this.props.children)},t}(J.Component);const vm=Zf;function ed(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function bm(e){var t=J.useContext(Qf);if(!t)throw new Error("Missing ");var r=t.getAll(),n=J.useState(r),a=n[0],o=n[1],i=J.useRef(a);ed()&&J.useLayoutEffect(function(){function c(){var l=t.getAll();td(e||null,l,i.current)&&o(l),i.current=l}return t.addChangeListener(c),function(){t.removeChangeListener(c)}},[t]);var s=J.useMemo(function(){return t.set.bind(t)},[t]),u=J.useMemo(function(){return t.remove.bind(t)},[t]);return[a,s,u]}function td(e,t,r){if(!e)return!0;for(var n=0,a=e;n"u"&&(t=!e||e[0]!=="{"&&e[0]!=="["&&e[0]!=='"'),!t}function oo(e,t){t===void 0&&(t={});var r=Kf(e);if(Vf(r,t.doNotParse))try{return JSON.parse(r)}catch{}return e}function Kf(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}var Mt=globalThis&&globalThis.__assign||function(){return Mt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&this.changeListeners.splice(r,1)},e}();const $i=Jf;var ba=J.createContext(new $i),Gf=ba.Provider;ba.Consumer;const Qf=ba;var Xf=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)a.hasOwnProperty(o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Zf=function(e){Xf(t,e);function t(r){var n=e.call(this,r)||this;return r.cookies?n.cookies=r.cookies:n.cookies=new $i,n}return t.prototype.render=function(){return J.createElement(Gf,{value:this.cookies},this.props.children)},t}(J.Component);const vm=Zf;function ed(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function bm(e){var t=J.useContext(Qf);if(!t)throw new Error("Missing ");var r=t.getAll(),n=J.useState(r),a=n[0],o=n[1],i=J.useRef(a);ed()&&J.useLayoutEffect(function(){function c(){var l=t.getAll();td(e||null,l,i.current)&&o(l),i.current=l}return t.addChangeListener(c),function(){t.removeChangeListener(c)}},[t]);var s=J.useMemo(function(){return t.set.bind(t)},[t]),u=J.useMemo(function(){return t.remove.bind(t)},[t]);return[a,s,u]}function td(e,t,r){if(!e)return!0;for(var n=0,a=e;n"u")throw new Error(t)}function ba(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nd(){return Math.random().toString(36).substr(2,8)}function so(e,t){return{usr:e.state,key:e.key,idx:t}}function Fn(e,t,r,n){return r===void 0&&(r=null),sr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Kt(t):t,{state:r,key:t&&t.key||n||nd()})}function Mr(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Kt(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function ad(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,s=Ct.Pop,u=null,c=l();c==null&&(c=0,i.replaceState(sr({},i.state,{idx:c}),""));function l(){return(i.state||{idx:null}).idx}function d(){s=Ct.Pop;let C=l(),j=C==null?null:C-c;c=C,u&&u({action:s,location:h.location,delta:j})}function g(C,j){s=Ct.Push;let x=Fn(h.location,C,j);r&&r(x,C),c=l()+1;let O=so(x,c),_=h.createHref(x);try{i.pushState(O,"",_)}catch(f){if(f instanceof DOMException&&f.name==="DataCloneError")throw f;a.location.assign(_)}o&&u&&u({action:s,location:h.location,delta:1})}function m(C,j){s=Ct.Replace;let x=Fn(h.location,C,j);r&&r(x,C),c=l();let O=so(x,c),_=h.createHref(x);i.replaceState(O,"",_),o&&u&&u({action:s,location:h.location,delta:0})}function b(C){let j=a.location.origin!=="null"?a.location.origin:a.location.href,x=typeof C=="string"?C:Mr(C);return Ve(j,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,j)}let h={get action(){return s},get location(){return e(a,i)},listen(C){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(io,d),u=C,()=>{a.removeEventListener(io,d),u=null}},createHref(C){return t(a,C)},createURL:b,encodeLocation(C){let j=b(C);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:g,replace:m,go(C){return i.go(C)}};return h}var uo;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(uo||(uo={}));function od(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Kt(t):t,a=ga(n.pathname||"/",r);if(a==null)return null;let o=Ui(e);id(o);let i=null;for(let s=0;i==null&&s{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(Ve(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let c=Tt([n,u.relativePath]),l=r.concat(u);o.children&&o.children.length>0&&(Ve(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Ui(o.children,t,l,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:pd(c,o.index),routesMeta:l})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let u of Bi(o.path))a(o,i,u)}),t}function Bi(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=Bi(n.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),a&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function id(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:hd(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const sd=/^:\w+$/,ud=3,cd=2,ld=1,fd=10,dd=-2,co=e=>e==="*";function pd(e,t){let r=e.split("/"),n=r.length;return r.some(co)&&(n+=dd),t&&(n+=cd),r.filter(a=>!co(a)).reduce((a,o)=>a+(sd.test(o)?ud:o===""?ld:fd),n)}function hd(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function md(e,t){let{routesMeta:r}=e,n={},a="/",o=[];for(let i=0;i{let{paramName:g,isOptional:m}=l;if(g==="*"){let h=s[d]||"";i=o.slice(0,o.length-h.length).replace(/(.)\/+$/,"$1")}const b=s[d];return m&&!b?c[g]=void 0:c[g]=yd(b||"",g),c},{}),pathname:o,pathnameBase:i,pattern:e}}function bd(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),ba(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(i,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function gd(e){try{return decodeURI(e)}catch(t){return ba(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function yd(e,t){try{return decodeURIComponent(e)}catch(r){return ba(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function ga(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function wd(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?Kt(e):e;return{pathname:r?r.startsWith("/")?r:Sd(r,t):t,search:Ed(n),hash:xd(a)}}function Sd(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Tn(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function ya(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function wa(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=Kt(e):(a=sr({},e),Ve(!a.pathname||!a.pathname.includes("?"),Tn("?","pathname","search",a)),Ve(!a.pathname||!a.pathname.includes("#"),Tn("#","pathname","hash",a)),Ve(!a.search||!a.search.includes("#"),Tn("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=r;else if(n){let d=t[t.length-1].replace(/^\//,"").split("/");if(i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),d.pop();a.pathname=g.join("/")}s="/"+d.join("/")}else{let d=t.length-1;if(i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),d-=1;a.pathname=g.join("/")}s=d>=0?t[d]:"/"}let u=wd(a,s),c=i&&i!=="/"&&i.endsWith("/"),l=(o||i===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||l)&&(u.pathname+="/"),u}const Tt=e=>e.join("/").replace(/\/\/+/g,"/"),Od=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ed=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xd=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function _d(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Wi=["post","put","patch","delete"];new Set(Wi);const Cd=["get",...Wi];new Set(Cd);/** + */function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function dn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nd(){return Math.random().toString(36).substr(2,8)}function so(e,t){return{usr:e.state,key:e.key,idx:t}}function Nn(e,t,r,n){return r===void 0&&(r=null),sr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Nt(t):t,{state:r,key:t&&t.key||n||nd()})}function Mr(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Nt(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function ad(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,s=Ct.Pop,u=null,c=l();c==null&&(c=0,i.replaceState(sr({},i.state,{idx:c}),""));function l(){return(i.state||{idx:null}).idx}function d(){s=Ct.Pop;let C=l(),j=C==null?null:C-c;c=C,u&&u({action:s,location:h.location,delta:j})}function g(C,j){s=Ct.Push;let x=Nn(h.location,C,j);r&&r(x,C),c=l()+1;let O=so(x,c),_=h.createHref(x);try{i.pushState(O,"",_)}catch(f){if(f instanceof DOMException&&f.name==="DataCloneError")throw f;a.location.assign(_)}o&&u&&u({action:s,location:h.location,delta:1})}function m(C,j){s=Ct.Replace;let x=Nn(h.location,C,j);r&&r(x,C),c=l();let O=so(x,c),_=h.createHref(x);i.replaceState(O,"",_),o&&u&&u({action:s,location:h.location,delta:0})}function b(C){let j=a.location.origin!=="null"?a.location.origin:a.location.href,x=typeof C=="string"?C:Mr(C);return Ve(j,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,j)}let h={get action(){return s},get location(){return e(a,i)},listen(C){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(io,d),u=C,()=>{a.removeEventListener(io,d),u=null}},createHref(C){return t(a,C)},createURL:b,encodeLocation(C){let j=b(C);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:g,replace:m,go(C){return i.go(C)}};return h}var uo;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(uo||(uo={}));function od(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Nt(t):t,a=ga(n.pathname||"/",r);if(a==null)return null;let o=Ui(e);id(o);let i=null;for(let s=0;i==null&&s{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(Ve(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let c=Tt([n,u.relativePath]),l=r.concat(u);o.children&&o.children.length>0&&(Ve(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Ui(o.children,t,l,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:pd(c,o.index),routesMeta:l})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let u of Bi(o.path))a(o,i,u)}),t}function Bi(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=Bi(n.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),a&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function id(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:hd(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const sd=/^:\w+$/,ud=3,cd=2,ld=1,fd=10,dd=-2,co=e=>e==="*";function pd(e,t){let r=e.split("/"),n=r.length;return r.some(co)&&(n+=dd),t&&(n+=cd),r.filter(a=>!co(a)).reduce((a,o)=>a+(sd.test(o)?ud:o===""?ld:fd),n)}function hd(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function md(e,t){let{routesMeta:r}=e,n={},a="/",o=[];for(let i=0;i{let{paramName:g,isOptional:m}=l;if(g==="*"){let h=s[d]||"";i=o.slice(0,o.length-h.length).replace(/(.)\/+$/,"$1")}const b=s[d];return m&&!b?c[g]=void 0:c[g]=yd(b||"",g),c},{}),pathname:o,pathnameBase:i,pattern:e}}function bd(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),dn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(i,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function gd(e){try{return decodeURI(e)}catch(t){return dn(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function yd(e,t){try{return decodeURIComponent(e)}catch(r){return dn(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function ga(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function wd(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?Nt(e):e;return{pathname:r?r.startsWith("/")?r:Sd(r,t):t,search:Ed(n),hash:xd(a)}}function Sd(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Pn(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function ya(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function wa(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=Nt(e):(a=sr({},e),Ve(!a.pathname||!a.pathname.includes("?"),Pn("?","pathname","search",a)),Ve(!a.pathname||!a.pathname.includes("#"),Pn("#","pathname","hash",a)),Ve(!a.search||!a.search.includes("#"),Pn("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=r;else if(n){let d=t[t.length-1].replace(/^\//,"").split("/");if(i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),d.pop();a.pathname=g.join("/")}s="/"+d.join("/")}else{let d=t.length-1;if(i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),d-=1;a.pathname=g.join("/")}s=d>=0?t[d]:"/"}let u=wd(a,s),c=i&&i!=="/"&&i.endsWith("/"),l=(o||i===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||l)&&(u.pathname+="/"),u}const Tt=e=>e.join("/").replace(/\/\/+/g,"/"),Od=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ed=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xd=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function _d(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Wi=["post","put","patch","delete"];new Set(Wi);const Cd=["get",...Wi];new Set(Cd);/** * React Router v6.20.1 * * Copyright (c) Remix Software Inc. @@ -56,7 +56,7 @@ import{r as J,g as Lr,b as Os,d as Es,c as _r}from"./react-432945ee.js";function * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.pathnameBase)),i=J.useRef(!1);return qi(()=>{i.current=!0}),J.useCallback(function(u,c){if(c===void 0&&(c={}),!i.current)return;if(typeof u=="number"){r.go(u);return}let l=wa(u,JSON.parse(o),a,c.relative==="path");e==null&&t!=="/"&&(l.pathname=l.pathname==="/"?t:Tt([t,l.pathname])),(c.replace?r.replace:r.push)(l,c.state,c)},[t,r,o,a,e])}const jd=J.createContext(null);function Ad(e){let t=J.useContext(bt).outlet;return t&&J.createElement(jd.Provider,{value:e},t)}function gm(){let{matches:e}=J.useContext(bt),t=e[e.length-1];return t?t.params:{}}function Hi(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=J.useContext(bt),{pathname:a}=dr(),o=JSON.stringify(ya(n).map(i=>i.pathnameBase));return J.useMemo(()=>wa(e,JSON.parse(o),a,r==="path"),[e,o,a,r])}function Md(e,t){return Dd(e,t)}function Dd(e,t,r){Gt()||Ve(!1);let{navigator:n}=J.useContext(Jt),{matches:a}=J.useContext(bt),o=a[a.length-1],i=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let u=dr(),c;if(t){var l;let h=typeof t=="string"?Kt(t):t;s==="/"||(l=h.pathname)!=null&&l.startsWith(s)||Ve(!1),c=h}else c=u;let d=c.pathname||"/",g=s==="/"?d:d.slice(s.length)||"/",m=od(e,{pathname:g}),b=Ld(m&&m.map(h=>Object.assign({},h,{params:Object.assign({},i,h.params),pathname:Tt([s,n.encodeLocation?n.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?s:Tt([s,n.encodeLocation?n.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),a,r);return t&&b?J.createElement(dn.Provider,{value:{location:Dr({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Ct.Pop}},b):b}function Rd(){let e=Wd(),t=_d(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return J.createElement(J.Fragment,null,J.createElement("h2",null,"Unexpected Application Error!"),J.createElement("h3",{style:{fontStyle:"italic"}},t),r?J.createElement("pre",{style:a},r):null,o)}const Fd=J.createElement(Rd,null);class Nd extends J.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?J.createElement(bt.Provider,{value:this.props.routeContext},J.createElement(zi.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Id(e){let{routeContext:t,match:r,children:n}=e,a=J.useContext(Sa);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),J.createElement(bt.Provider,{value:t},n)}function Ld(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var a;if((a=r)!=null&&a.errors)e=r.matches;else return null}let o=e,i=(n=r)==null?void 0:n.errors;if(i!=null){let s=o.findIndex(u=>u.route.id&&(i==null?void 0:i[u.route.id]));s>=0||Ve(!1),o=o.slice(0,Math.min(o.length,s+1))}return o.reduceRight((s,u,c)=>{let l=u.route.id?i==null?void 0:i[u.route.id]:null,d=null;r&&(d=u.route.errorElement||Fd);let g=t.concat(o.slice(0,c+1)),m=()=>{let b;return l?b=d:u.route.Component?b=J.createElement(u.route.Component,null):u.route.element?b=u.route.element:b=s,J.createElement(Id,{match:u,routeContext:{outlet:s,matches:g,isDataRoute:r!=null},children:b})};return r&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?J.createElement(Nd,{location:r.location,revalidation:r.revalidation,component:d,error:l,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var Vi=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Vi||{}),Rr=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Rr||{});function $d(e){let t=J.useContext(Sa);return t||Ve(!1),t}function Ud(e){let t=J.useContext(Td);return t||Ve(!1),t}function Bd(e){let t=J.useContext(bt);return t||Ve(!1),t}function Ki(e){let t=Bd(),r=t.matches[t.matches.length-1];return r.route.id||Ve(!1),r.route.id}function Wd(){var e;let t=J.useContext(zi),r=Ud(Rr.UseRouteError),n=Ki(Rr.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function zd(){let{router:e}=$d(Vi.UseNavigateStable),t=Ki(Rr.UseNavigateStable),r=J.useRef(!1);return qi(()=>{r.current=!0}),J.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Dr({fromRouteId:t},o)))},[e,t])}function ym(e){let{to:t,replace:r,state:n,relative:a}=e;Gt()||Ve(!1);let{matches:o}=J.useContext(bt),{pathname:i}=dr(),s=Yi(),u=wa(t,ya(o).map(l=>l.pathnameBase),i,a==="path"),c=JSON.stringify(u);return J.useEffect(()=>s(JSON.parse(c),{replace:r,state:n,relative:a}),[s,c,a,r,n]),null}function wm(e){return Ad(e.context)}function qd(e){Ve(!1)}function Yd(e){let{basename:t="/",children:r=null,location:n,navigationType:a=Ct.Pop,navigator:o,static:i=!1}=e;Gt()&&Ve(!1);let s=t.replace(/^\/*/,"/"),u=J.useMemo(()=>({basename:s,navigator:o,static:i}),[s,o,i]);typeof n=="string"&&(n=Kt(n));let{pathname:c="/",search:l="",hash:d="",state:g=null,key:m="default"}=n,b=J.useMemo(()=>{let h=ga(c,s);return h==null?null:{location:{pathname:h,search:l,hash:d,state:g,key:m},navigationType:a}},[s,c,l,d,g,m,a]);return b==null?null:J.createElement(Jt.Provider,{value:u},J.createElement(dn.Provider,{children:r,value:b}))}function Sm(e){let{children:t,location:r}=e;return Md(Nn(t),r)}new Promise(()=>{});function Nn(e,t){t===void 0&&(t=[]);let r=[];return J.Children.forEach(e,(n,a)=>{if(!J.isValidElement(n))return;let o=[...t,a];if(n.type===J.Fragment){r.push.apply(r,Nn(n.props.children,o));return}n.type!==qd&&Ve(!1),!n.props.index||!n.props.children||Ve(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=Nn(n.props.children,o)),r.push(i)}),r}/** + */function Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.pathnameBase)),i=J.useRef(!1);return qi(()=>{i.current=!0}),J.useCallback(function(u,c){if(c===void 0&&(c={}),!i.current)return;if(typeof u=="number"){r.go(u);return}let l=wa(u,JSON.parse(o),a,c.relative==="path");e==null&&t!=="/"&&(l.pathname=l.pathname==="/"?t:Tt([t,l.pathname])),(c.replace?r.replace:r.push)(l,c.state,c)},[t,r,o,a,e])}const jd=J.createContext(null);function Ad(e){let t=J.useContext(bt).outlet;return t&&J.createElement(jd.Provider,{value:e},t)}function gm(){let{matches:e}=J.useContext(bt),t=e[e.length-1];return t?t.params:{}}function Hi(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=J.useContext(bt),{pathname:a}=dr(),o=JSON.stringify(ya(n).map(i=>i.pathnameBase));return J.useMemo(()=>wa(e,JSON.parse(o),a,r==="path"),[e,o,a,r])}function Md(e,t){return Dd(e,t)}function Dd(e,t,r){Gt()||Ve(!1);let{navigator:n}=J.useContext(Jt),{matches:a}=J.useContext(bt),o=a[a.length-1],i=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let u=dr(),c;if(t){var l;let h=typeof t=="string"?Nt(t):t;s==="/"||(l=h.pathname)!=null&&l.startsWith(s)||Ve(!1),c=h}else c=u;let d=c.pathname||"/",g=s==="/"?d:d.slice(s.length)||"/",m=od(e,{pathname:g}),b=Ld(m&&m.map(h=>Object.assign({},h,{params:Object.assign({},i,h.params),pathname:Tt([s,n.encodeLocation?n.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?s:Tt([s,n.encodeLocation?n.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),a,r);return t&&b?J.createElement(pn.Provider,{value:{location:Dr({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Ct.Pop}},b):b}function Rd(){let e=Wd(),t=_d(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return J.createElement(J.Fragment,null,J.createElement("h2",null,"Unexpected Application Error!"),J.createElement("h3",{style:{fontStyle:"italic"}},t),r?J.createElement("pre",{style:a},r):null,o)}const Fd=J.createElement(Rd,null);class Nd extends J.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?J.createElement(bt.Provider,{value:this.props.routeContext},J.createElement(zi.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Id(e){let{routeContext:t,match:r,children:n}=e,a=J.useContext(Sa);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),J.createElement(bt.Provider,{value:t},n)}function Ld(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var a;if((a=r)!=null&&a.errors)e=r.matches;else return null}let o=e,i=(n=r)==null?void 0:n.errors;if(i!=null){let s=o.findIndex(u=>u.route.id&&(i==null?void 0:i[u.route.id]));s>=0||Ve(!1),o=o.slice(0,Math.min(o.length,s+1))}return o.reduceRight((s,u,c)=>{let l=u.route.id?i==null?void 0:i[u.route.id]:null,d=null;r&&(d=u.route.errorElement||Fd);let g=t.concat(o.slice(0,c+1)),m=()=>{let b;return l?b=d:u.route.Component?b=J.createElement(u.route.Component,null):u.route.element?b=u.route.element:b=s,J.createElement(Id,{match:u,routeContext:{outlet:s,matches:g,isDataRoute:r!=null},children:b})};return r&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?J.createElement(Nd,{location:r.location,revalidation:r.revalidation,component:d,error:l,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var Vi=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Vi||{}),Rr=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Rr||{});function $d(e){let t=J.useContext(Sa);return t||Ve(!1),t}function Ud(e){let t=J.useContext(Td);return t||Ve(!1),t}function Bd(e){let t=J.useContext(bt);return t||Ve(!1),t}function Ki(e){let t=Bd(),r=t.matches[t.matches.length-1];return r.route.id||Ve(!1),r.route.id}function Wd(){var e;let t=J.useContext(zi),r=Ud(Rr.UseRouteError),n=Ki(Rr.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function zd(){let{router:e}=$d(Vi.UseNavigateStable),t=Ki(Rr.UseNavigateStable),r=J.useRef(!1);return qi(()=>{r.current=!0}),J.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Dr({fromRouteId:t},o)))},[e,t])}function ym(e){let{to:t,replace:r,state:n,relative:a}=e;Gt()||Ve(!1);let{matches:o}=J.useContext(bt),{pathname:i}=dr(),s=Yi(),u=wa(t,ya(o).map(l=>l.pathnameBase),i,a==="path"),c=JSON.stringify(u);return J.useEffect(()=>s(JSON.parse(c),{replace:r,state:n,relative:a}),[s,c,a,r,n]),null}function wm(e){return Ad(e.context)}function qd(e){Ve(!1)}function Yd(e){let{basename:t="/",children:r=null,location:n,navigationType:a=Ct.Pop,navigator:o,static:i=!1}=e;Gt()&&Ve(!1);let s=t.replace(/^\/*/,"/"),u=J.useMemo(()=>({basename:s,navigator:o,static:i}),[s,o,i]);typeof n=="string"&&(n=Nt(n));let{pathname:c="/",search:l="",hash:d="",state:g=null,key:m="default"}=n,b=J.useMemo(()=>{let h=ga(c,s);return h==null?null:{location:{pathname:h,search:l,hash:d,state:g,key:m},navigationType:a}},[s,c,l,d,g,m,a]);return b==null?null:J.createElement(Jt.Provider,{value:u},J.createElement(pn.Provider,{children:r,value:b}))}function Sm(e){let{children:t,location:r}=e;return Md(In(t),r)}new Promise(()=>{});function In(e,t){t===void 0&&(t=[]);let r=[];return J.Children.forEach(e,(n,a)=>{if(!J.isValidElement(n))return;let o=[...t,a];if(n.type===J.Fragment){r.push.apply(r,In(n.props.children,o));return}n.type!==qd&&Ve(!1),!n.props.index||!n.props.children||Ve(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=In(n.props.children,o)),r.push(i)}),r}/** * React Router DOM v6.20.1 * * Copyright (c) Remix Software Inc. @@ -65,7 +65,7 @@ import{r as J,g as Lr,b as Os,d as Es,c as _r}from"./react-432945ee.js";function * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function Vd(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Kd(e,t){return e.button===0&&(!t||t==="_self")&&!Vd(e)}const Jd=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Gd="startTransition",lo=Es[Gd];function Om(e){let{basename:t,children:r,future:n,window:a}=e,o=J.useRef();o.current==null&&(o.current=rd({window:a,v5Compat:!0}));let i=o.current,[s,u]=J.useState({action:i.action,location:i.location}),{v7_startTransition:c}=n||{},l=J.useCallback(d=>{c&&lo?lo(()=>u(d)):u(d)},[u,c]);return J.useLayoutEffect(()=>i.listen(l),[i,l]),J.createElement(Yd,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:i})}const Qd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Xd=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Em=J.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:u,to:c,preventScrollReset:l,unstable_viewTransition:d}=t,g=Hd(t,Jd),{basename:m}=J.useContext(Jt),b,h=!1;if(typeof c=="string"&&Xd.test(c)&&(b=c,Qd))try{let O=new URL(window.location.href),_=c.startsWith("//")?new URL(O.protocol+c):new URL(c),f=ga(_.pathname,m);_.origin===O.origin&&f!=null?c=f+_.search+_.hash:h=!0}catch{}let C=Pd(c,{relative:a}),j=Zd(c,{replace:i,state:s,target:u,preventScrollReset:l,relative:a,unstable_viewTransition:d});function x(O){n&&n(O),O.defaultPrevented||j(O)}return J.createElement("a",In({},g,{href:b||C,onClick:h||o?n:x,ref:r,target:u}))});var fo;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(fo||(fo={}));var po;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(po||(po={}));function Zd(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=Yi(),c=dr(),l=Hi(e,{relative:i});return J.useCallback(d=>{if(Kd(d,r)){d.preventDefault();let g=n!==void 0?n:Mr(c)===Mr(l);u(e,{replace:g,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[c,u,l,n,a,r,e,o,i,s])}var Ji={exports:{}};(function(e,t){(function(n,a){e.exports=a(J)})(_r,r=>(()=>{var n={"./node_modules/css-mediaquery/index.js":(s,u)=>{u.match=b,u.parse=h;var c=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,l=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,d=/^(?:(min|max)-)?(.+)/,g=/(em|rem|px|cm|mm|in|pt|pc)?$/,m=/(dpi|dpcm|dppx)?$/;function b(O,_){return h(O).some(function(f){var T=f.inverse,P=f.type==="all"||_.type===f.type;if(P&&T||!(P||T))return!1;var L=f.expressions.every(function(E){var A=E.feature,R=E.modifier,$=E.value,z=_[A];if(!z)return!1;switch(A){case"orientation":case"scan":return z.toLowerCase()===$.toLowerCase();case"width":case"height":case"device-width":case"device-height":$=x($),z=x(z);break;case"resolution":$=j($),z=j(z);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":$=C($),z=C(z);break;case"grid":case"color":case"color-index":case"monochrome":$=parseInt($,10)||1,z=parseInt(z,10)||0;break}switch(R){case"min":return z>=$;case"max":return z<=$;default:return z===$}});return L&&!T||!L&&T})}function h(O){return O.split(",").map(function(_){_=_.trim();var f=_.match(c),T=f[1],P=f[2],L=f[3]||"",E={};return E.inverse=!!T&&T.toLowerCase()==="not",E.type=P?P.toLowerCase():"all",L=L.match(/\([^\)]+\)/g)||[],E.expressions=L.map(function(A){var R=A.match(l),$=R[1].toLowerCase().match(d);return{modifier:$[1],feature:$[2],value:R[2]}}),E})}function C(O){var _=Number(O),f;return _||(f=O.match(/^(\d+)\s*\/\s*(\d+)$/),_=f[1]/f[2]),_}function j(O){var _=parseFloat(O),f=String(O).match(m)[1];switch(f){case"dpcm":return _/2.54;case"dppx":return _*96;default:return _}}function x(O){var _=parseFloat(O),f=String(O).match(g)[1];switch(f){case"em":return _*16;case"rem":return _*16;case"cm":return _*96/2.54;case"mm":return _*96/2.54/10;case"in":return _*96;case"pt":return _*72;case"pc":return _*72/12;default:return _}}},"./node_modules/hyphenate-style-name/index.js":(s,u,c)=>{c.r(u),c.d(u,{default:()=>h});var l=/[A-Z]/g,d=/^ms-/,g={};function m(C){return"-"+C.toLowerCase()}function b(C){if(g.hasOwnProperty(C))return g[C];var j=C.replace(l,m);return g[C]=d.test(j)?"-"+j:j}const h=b},"./node_modules/matchmediaquery/index.js":(s,u,c)=>{var l=c("./node_modules/css-mediaquery/index.js").match,d=typeof window<"u"?window.matchMedia:null;function g(b,h,C){var j=this;if(d&&!C){var x=d.call(window,b);this.matches=x.matches,this.media=x.media,x.addListener(f)}else this.matches=l(b,h),this.media=b;this.addListener=O,this.removeListener=_,this.dispose=T;function O(P){x&&x.addListener(P)}function _(P){x&&x.removeListener(P)}function f(P){j.matches=P.matches,j.media=P.media}function T(){x&&x.removeListener(f)}}function m(b,h,C){return new g(b,h,C)}s.exports=m},"./node_modules/object-assign/index.js":s=>{/* + */function Ln(){return Ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function Vd(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Kd(e,t){return e.button===0&&(!t||t==="_self")&&!Vd(e)}const Jd=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Gd="startTransition",lo=Es[Gd];function Om(e){let{basename:t,children:r,future:n,window:a}=e,o=J.useRef();o.current==null&&(o.current=rd({window:a,v5Compat:!0}));let i=o.current,[s,u]=J.useState({action:i.action,location:i.location}),{v7_startTransition:c}=n||{},l=J.useCallback(d=>{c&&lo?lo(()=>u(d)):u(d)},[u,c]);return J.useLayoutEffect(()=>i.listen(l),[i,l]),J.createElement(Yd,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:i})}const Qd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Xd=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Em=J.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:u,to:c,preventScrollReset:l,unstable_viewTransition:d}=t,g=Hd(t,Jd),{basename:m}=J.useContext(Jt),b,h=!1;if(typeof c=="string"&&Xd.test(c)&&(b=c,Qd))try{let O=new URL(window.location.href),_=c.startsWith("//")?new URL(O.protocol+c):new URL(c),f=ga(_.pathname,m);_.origin===O.origin&&f!=null?c=f+_.search+_.hash:h=!0}catch{}let C=Pd(c,{relative:a}),j=Zd(c,{replace:i,state:s,target:u,preventScrollReset:l,relative:a,unstable_viewTransition:d});function x(O){n&&n(O),O.defaultPrevented||j(O)}return J.createElement("a",Ln({},g,{href:b||C,onClick:h||o?n:x,ref:r,target:u}))});var fo;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(fo||(fo={}));var po;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(po||(po={}));function Zd(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=Yi(),c=dr(),l=Hi(e,{relative:i});return J.useCallback(d=>{if(Kd(d,r)){d.preventDefault();let g=n!==void 0?n:Mr(c)===Mr(l);u(e,{replace:g,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[c,u,l,n,a,r,e,o,i,s])}var Ji={exports:{}};(function(e,t){(function(n,a){e.exports=a(J)})(_r,r=>(()=>{var n={"./node_modules/css-mediaquery/index.js":(s,u)=>{u.match=b,u.parse=h;var c=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,l=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,d=/^(?:(min|max)-)?(.+)/,g=/(em|rem|px|cm|mm|in|pt|pc)?$/,m=/(dpi|dpcm|dppx)?$/;function b(O,_){return h(O).some(function(f){var T=f.inverse,P=f.type==="all"||_.type===f.type;if(P&&T||!(P||T))return!1;var L=f.expressions.every(function(E){var A=E.feature,R=E.modifier,$=E.value,z=_[A];if(!z)return!1;switch(A){case"orientation":case"scan":return z.toLowerCase()===$.toLowerCase();case"width":case"height":case"device-width":case"device-height":$=x($),z=x(z);break;case"resolution":$=j($),z=j(z);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":$=C($),z=C(z);break;case"grid":case"color":case"color-index":case"monochrome":$=parseInt($,10)||1,z=parseInt(z,10)||0;break}switch(R){case"min":return z>=$;case"max":return z<=$;default:return z===$}});return L&&!T||!L&&T})}function h(O){return O.split(",").map(function(_){_=_.trim();var f=_.match(c),T=f[1],P=f[2],L=f[3]||"",E={};return E.inverse=!!T&&T.toLowerCase()==="not",E.type=P?P.toLowerCase():"all",L=L.match(/\([^\)]+\)/g)||[],E.expressions=L.map(function(A){var R=A.match(l),$=R[1].toLowerCase().match(d);return{modifier:$[1],feature:$[2],value:R[2]}}),E})}function C(O){var _=Number(O),f;return _||(f=O.match(/^(\d+)\s*\/\s*(\d+)$/),_=f[1]/f[2]),_}function j(O){var _=parseFloat(O),f=String(O).match(m)[1];switch(f){case"dpcm":return _/2.54;case"dppx":return _*96;default:return _}}function x(O){var _=parseFloat(O),f=String(O).match(g)[1];switch(f){case"em":return _*16;case"rem":return _*16;case"cm":return _*96/2.54;case"mm":return _*96/2.54/10;case"in":return _*96;case"pt":return _*72;case"pc":return _*72/12;default:return _}}},"./node_modules/hyphenate-style-name/index.js":(s,u,c)=>{c.r(u),c.d(u,{default:()=>h});var l=/[A-Z]/g,d=/^ms-/,g={};function m(C){return"-"+C.toLowerCase()}function b(C){if(g.hasOwnProperty(C))return g[C];var j=C.replace(l,m);return g[C]=d.test(j)?"-"+j:j}const h=b},"./node_modules/matchmediaquery/index.js":(s,u,c)=>{var l=c("./node_modules/css-mediaquery/index.js").match,d=typeof window<"u"?window.matchMedia:null;function g(b,h,C){var j=this;if(d&&!C){var x=d.call(window,b);this.matches=x.matches,this.media=x.media,x.addListener(f)}else this.matches=l(b,h),this.media=b;this.addListener=O,this.removeListener=_,this.dispose=T;function O(P){x&&x.addListener(P)}function _(P){x&&x.removeListener(P)}function f(P){j.matches=P.matches,j.media=P.media}function T(){x&&x.removeListener(f)}}function m(b,h,C){return new g(b,h,C)}s.exports=m},"./node_modules/object-assign/index.js":s=>{/* object-assign (c) Sindre Sorhus @license MIT @@ -77,11 +77,11 @@ Valid keys: `+JSON.stringify(Object.keys(q),null," "));var je=Z(me,ge,le,ve,pe+ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(){var c=typeof Symbol=="function"&&Symbol.for,l=c?Symbol.for("react.element"):60103,d=c?Symbol.for("react.portal"):60106,g=c?Symbol.for("react.fragment"):60107,m=c?Symbol.for("react.strict_mode"):60108,b=c?Symbol.for("react.profiler"):60114,h=c?Symbol.for("react.provider"):60109,C=c?Symbol.for("react.context"):60110,j=c?Symbol.for("react.async_mode"):60111,x=c?Symbol.for("react.concurrent_mode"):60111,O=c?Symbol.for("react.forward_ref"):60112,_=c?Symbol.for("react.suspense"):60113,f=c?Symbol.for("react.suspense_list"):60120,T=c?Symbol.for("react.memo"):60115,P=c?Symbol.for("react.lazy"):60116,L=c?Symbol.for("react.block"):60121,E=c?Symbol.for("react.fundamental"):60117,A=c?Symbol.for("react.responder"):60118,R=c?Symbol.for("react.scope"):60119;function $(Z){return typeof Z=="string"||typeof Z=="function"||Z===g||Z===x||Z===b||Z===m||Z===_||Z===f||typeof Z=="object"&&Z!==null&&(Z.$$typeof===P||Z.$$typeof===T||Z.$$typeof===h||Z.$$typeof===C||Z.$$typeof===O||Z.$$typeof===E||Z.$$typeof===A||Z.$$typeof===R||Z.$$typeof===L)}function z(Z){if(typeof Z=="object"&&Z!==null){var je=Z.$$typeof;switch(je){case l:var Je=Z.type;switch(Je){case j:case x:case g:case b:case m:case _:return Je;default:var Ye=Je&&Je.$$typeof;switch(Ye){case C:case O:case P:case T:case h:return Ye;default:return je}}case d:return je}}}var re=j,D=x,te=C,ce=h,B=l,fe=O,ae=g,we=P,oe=T,Me=d,Ce=b,Ue=m,Te=_,Re=!1;function ke(Z){return Re||(Re=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),De(Z)||z(Z)===j}function De(Z){return z(Z)===x}function q(Z){return z(Z)===C}function Q(Z){return z(Z)===h}function he(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===l}function ue(Z){return z(Z)===O}function le(Z){return z(Z)===g}function ve(Z){return z(Z)===P}function pe(Z){return z(Z)===T}function me(Z){return z(Z)===d}function be(Z){return z(Z)===b}function Oe(Z){return z(Z)===m}function ge(Z){return z(Z)===_}u.AsyncMode=re,u.ConcurrentMode=D,u.ContextConsumer=te,u.ContextProvider=ce,u.Element=B,u.ForwardRef=fe,u.Fragment=ae,u.Lazy=we,u.Memo=oe,u.Portal=Me,u.Profiler=Ce,u.StrictMode=Ue,u.Suspense=Te,u.isAsyncMode=ke,u.isConcurrentMode=De,u.isContextConsumer=q,u.isContextProvider=Q,u.isElement=he,u.isForwardRef=ue,u.isFragment=le,u.isLazy=ve,u.isMemo=pe,u.isPortal=me,u.isProfiler=be,u.isStrictMode=Oe,u.isSuspense=ge,u.isValidElementType=$,u.typeOf=z})()},"./node_modules/react-is/index.js":(s,u,c)=>{s.exports=c("./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/shallow-equal/dist/index.esm.js":(s,u,c)=>{c.r(u),c.d(u,{shallowEqualArrays:()=>d,shallowEqualObjects:()=>l});function l(g,m){if(g===m)return!0;if(!g||!m)return!1;var b=Object.keys(g),h=Object.keys(m),C=b.length;if(h.length!==C)return!1;for(var j=0;j{Object.defineProperty(u,"__esModule",{value:!0});var l=c("react"),d=(0,l.createContext)(void 0);u.default=d},"./src/index.ts":function(s,u,c){var l=this&&this.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(u,"__esModule",{value:!0}),u.Context=u.toQuery=u.useMediaQuery=u.default=void 0;var d=l(c("./src/useMediaQuery.ts"));u.useMediaQuery=d.default;var g=l(c("./src/Component.ts"));u.default=g.default;var m=l(c("./src/toQuery.ts"));u.toQuery=m.default;var b=l(c("./src/Context.ts"));u.Context=b.default},"./src/mediaQuery.ts":function(s,u,c){var l=this&&this.__assign||function(){return l=Object.assign||function(_){for(var f,T=1,P=arguments.length;T{s.exports=r}},a={};function o(s){var u=a[s];if(u!==void 0)return u.exports;var c=a[s]={exports:{}};return n[s].call(c.exports,c,c.exports,o),c.exports}o.d=(s,u)=>{for(var c in u)o.o(u,c)&&!o.o(s,c)&&Object.defineProperty(s,c,{enumerable:!0,get:u[c]})},o.o=(s,u)=>Object.prototype.hasOwnProperty.call(s,u),o.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var i=o("./src/index.ts");return i})())})(Ji);var xm=Ji.exports,Gi="en",Oa={},Ln={};function Qi(){return Gi}function ep(e){Gi=e}function tp(e){return Oa[e]}function rp(e){if(!e)throw new Error("No locale data passed");Oa[e.locale]=e,Ln[e.locale.toLowerCase()]=e.locale}function ho(e){if(Oa[e])return e;if(Ln[e.toLowerCase()])return Ln[e.toLowerCase()]}function Xi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.localeMatcher||"lookup";switch(r){case"lookup":return mo(e);case"best fit":return mo(e);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(r))}}function mo(e){var t=ho(e);if(t)return t;for(var r=e.split("-");e.length>1;){r.pop(),e=r.join("-");var n=ho(e);if(n)return n}}var k={af:function(t){return t==1?"one":"other"},am:function(t){return t>=0&&t<=1?"one":"other"},ar:function(t){var r=String(t).split("."),n=Number(r[0])==t,a=n&&r[0].slice(-2);return t==0?"zero":t==1?"one":t==2?"two":a>=3&&a<=10?"few":a>=11&&a<=99?"many":"other"},ast:function(t){var r=String(t).split("."),n=!r[1];return t==1&&n?"one":"other"},be:function(t){var r=String(t).split("."),n=Number(r[0])==t,a=n&&r[0].slice(-1),o=n&&r[0].slice(-2);return a==1&&o!=11?"one":a>=2&&a<=4&&(o<12||o>14)?"few":n&&a==0||a>=5&&a<=9||o>=11&&o<=14?"many":"other"},br:function(t){var r=String(t).split("."),n=Number(r[0])==t,a=n&&r[0].slice(-1),o=n&&r[0].slice(-2),i=n&&r[0].slice(-6);return a==1&&o!=11&&o!=71&&o!=91?"one":a==2&&o!=12&&o!=72&&o!=92?"two":(a==3||a==4||a==9)&&(o<10||o>19)&&(o<70||o>79)&&(o<90||o>99)?"few":t!=0&&n&&i==0?"many":"other"},bs:function(t){var r=String(t).split("."),n=r[0],a=r[1]||"",o=!r[1],i=n.slice(-1),s=n.slice(-2),u=a.slice(-1),c=a.slice(-2);return o&&i==1&&s!=11||u==1&&c!=11?"one":o&&i>=2&&i<=4&&(s<12||s>14)||u>=2&&u<=4&&(c<12||c>14)?"few":"other"},ca:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-6);return t==1&&a?"one":n!=0&&o==0&&a?"many":"other"},ceb:function(t){var r=String(t).split("."),n=r[0],a=r[1]||"",o=!r[1],i=n.slice(-1),s=a.slice(-1);return o&&(n==1||n==2||n==3)||o&&i!=4&&i!=6&&i!=9||!o&&s!=4&&s!=6&&s!=9?"one":"other"},cs:function(t){var r=String(t).split("."),n=r[0],a=!r[1];return t==1&&a?"one":n>=2&&n<=4&&a?"few":a?"other":"many"},cy:function(t){return t==0?"zero":t==1?"one":t==2?"two":t==3?"few":t==6?"many":"other"},da:function(t){var r=String(t).split("."),n=r[0],a=Number(r[0])==t;return t==1||!a&&(n==0||n==1)?"one":"other"},dsb:function(t){var r=String(t).split("."),n=r[0],a=r[1]||"",o=!r[1],i=n.slice(-2),s=a.slice(-2);return o&&i==1||s==1?"one":o&&i==2||s==2?"two":o&&(i==3||i==4)||s==3||s==4?"few":"other"},dz:function(t){return"other"},es:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-6);return t==1?"one":n!=0&&o==0&&a?"many":"other"},ff:function(t){return t>=0&&t<2?"one":"other"},fr:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-6);return t>=0&&t<2?"one":n!=0&&o==0&&a?"many":"other"},ga:function(t){var r=String(t).split("."),n=Number(r[0])==t;return t==1?"one":t==2?"two":n&&t>=3&&t<=6?"few":n&&t>=7&&t<=10?"many":"other"},gd:function(t){var r=String(t).split("."),n=Number(r[0])==t;return t==1||t==11?"one":t==2||t==12?"two":n&&t>=3&&t<=10||n&&t>=13&&t<=19?"few":"other"},he:function(t){var r=String(t).split("."),n=r[0],a=!r[1];return n==1&&a||n==0&&!a?"one":n==2&&a?"two":"other"},is:function(t){var r=String(t).split("."),n=r[0],a=(r[1]||"").replace(/0+$/,""),o=Number(r[0])==t,i=n.slice(-1),s=n.slice(-2);return o&&i==1&&s!=11||a%10==1&&a%100!=11?"one":"other"},ksh:function(t){return t==0?"zero":t==1?"one":"other"},lt:function(t){var r=String(t).split("."),n=r[1]||"",a=Number(r[0])==t,o=a&&r[0].slice(-1),i=a&&r[0].slice(-2);return o==1&&(i<11||i>19)?"one":o>=2&&o<=9&&(i<11||i>19)?"few":n!=0?"many":"other"},lv:function(t){var r=String(t).split("."),n=r[1]||"",a=n.length,o=Number(r[0])==t,i=o&&r[0].slice(-1),s=o&&r[0].slice(-2),u=n.slice(-2),c=n.slice(-1);return o&&i==0||s>=11&&s<=19||a==2&&u>=11&&u<=19?"zero":i==1&&s!=11||a==2&&c==1&&u!=11||a!=2&&c==1?"one":"other"},mk:function(t){var r=String(t).split("."),n=r[0],a=r[1]||"",o=!r[1],i=n.slice(-1),s=n.slice(-2),u=a.slice(-1),c=a.slice(-2);return o&&i==1&&s!=11||u==1&&c!=11?"one":"other"},mt:function(t){var r=String(t).split("."),n=Number(r[0])==t,a=n&&r[0].slice(-2);return t==1?"one":t==2?"two":t==0||a>=3&&a<=10?"few":a>=11&&a<=19?"many":"other"},pa:function(t){return t==0||t==1?"one":"other"},pl:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-1),i=n.slice(-2);return t==1&&a?"one":a&&o>=2&&o<=4&&(i<12||i>14)?"few":a&&n!=1&&(o==0||o==1)||a&&o>=5&&o<=9||a&&i>=12&&i<=14?"many":"other"},pt:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-6);return n==0||n==1?"one":n!=0&&o==0&&a?"many":"other"},ro:function(t){var r=String(t).split("."),n=!r[1],a=Number(r[0])==t,o=a&&r[0].slice(-2);return t==1&&n?"one":!n||t==0||t!=1&&o>=1&&o<=19?"few":"other"},ru:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-1),i=n.slice(-2);return a&&o==1&&i!=11?"one":a&&o>=2&&o<=4&&(i<12||i>14)?"few":a&&o==0||a&&o>=5&&o<=9||a&&i>=11&&i<=14?"many":"other"},se:function(t){return t==1?"one":t==2?"two":"other"},si:function(t){var r=String(t).split("."),n=r[0],a=r[1]||"";return t==0||t==1||n==0&&a==1?"one":"other"},sl:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-2);return a&&o==1?"one":a&&o==2?"two":a&&(o==3||o==4)||!a?"few":"other"}};k.as=k.am;k.az=k.af;k.bg=k.af;k.bn=k.am;k.brx=k.af;k.ce=k.af;k.chr=k.af;k.de=k.ast;k.ee=k.af;k.el=k.af;k.en=k.ast;k.et=k.ast;k.eu=k.af;k.fa=k.am;k.fi=k.ast;k.fil=k.ceb;k.fo=k.af;k.fur=k.af;k.fy=k.ast;k.gl=k.ast;k.gu=k.am;k.ha=k.af;k.hi=k.am;k.hr=k.bs;k.hsb=k.dsb;k.hu=k.af;k.hy=k.ff;k.ia=k.ast;k.id=k.dz;k.ig=k.dz;k.it=k.ca;k.ja=k.dz;k.jgo=k.af;k.jv=k.dz;k.ka=k.af;k.kea=k.dz;k.kk=k.af;k.kl=k.af;k.km=k.dz;k.kn=k.am;k.ko=k.dz;k.ks=k.af;k.ku=k.af;k.ky=k.af;k.lb=k.af;k.lkt=k.dz;k.lo=k.dz;k.ml=k.af;k.mn=k.af;k.mr=k.af;k.ms=k.dz;k.my=k.dz;k.nb=k.af;k.ne=k.af;k.nl=k.ast;k.nn=k.af;k.no=k.af;k.or=k.af;k.pcm=k.am;k.ps=k.af;k.rm=k.af;k.sah=k.dz;k.sc=k.ast;k.sd=k.af;k.sk=k.cs;k.so=k.af;k.sq=k.af;k.sr=k.bs;k.su=k.dz;k.sv=k.ast;k.sw=k.ast;k.ta=k.af;k.te=k.af;k.th=k.dz;k.ti=k.pa;k.tk=k.af;k.to=k.dz;k.tr=k.af;k.ug=k.af;k.uk=k.ru;k.ur=k.ast;k.uz=k.af;k.vi=k.dz;k.wae=k.af;k.wo=k.dz;k.xh=k.af;k.yi=k.ast;k.yo=k.dz;k.yue=k.dz;k.zh=k.dz;k.zu=k.am;const vo=k;function bo(e){return e==="pt-PT"?e:ap(e)}var np=/^([a-z0-9]+)/i;function ap(e){var t=e.match(np);if(!t)throw new TypeError("Invalid locale: ".concat(e));return t[1]}function op(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function go(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};dp(this,e);var n=r.numeric,a=r.style,o=r.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",n!==void 0){if(mp.indexOf(n)<0)throw new RangeError('Invalid "numeric" option: '.concat(n));this.numeric=n}if(a!==void 0){if(vp.indexOf(a)<0)throw new RangeError('Invalid "style" option: '.concat(a));this.style=a}if(o!==void 0){if(bp.indexOf(o)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(o));this.localeMatcher=o}if(typeof t=="string"&&(t=[t]),t.push(Qi()),this.locale=e.supportedLocalesOf(t,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("No supported locale was found");$n.supportedLocalesOf(this.locale).length>0?this.pluralRules=new $n(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),typeof Intl<"u"&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=Xi(this.locale,{localeMatcher:this.localeMatcher})}return pp(e,[{key:"format",value:function(){var r=xo(arguments),n=So(r,2),a=n[0],o=n[1];return this.getRule(a,o).replace("{0}",this.formatNumber(Math.abs(a)))}},{key:"formatToParts",value:function(){var r=xo(arguments),n=So(r,2),a=n[0],o=n[1],i=this.getRule(a,o),s=i.indexOf("{0}");if(s<0)return[{type:"literal",value:i}];var u=[];return s>0&&u.push({type:"literal",value:i.slice(0,s)}),u=u.concat(this.formatNumberToParts(Math.abs(a)).map(function(c){return wo(wo({},c),{},{unit:o})})),s+31&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string")e=[e];else if(!Array.isArray(e))throw new TypeError('Invalid "locales" argument');return e.filter(function(r){return Xi(r,t)})};kt.addLocale=rp;kt.setDefaultLocale=ep;kt.getDefaultLocale=Qi;kt.PluralRules=$n;var Pn='Invalid "unit" argument';function gp(e){if(Un(e)==="symbol")throw new TypeError(Pn);if(typeof e!="string")throw new RangeError("".concat(Pn,": ").concat(e));if(e[e.length-1]==="s"&&(e=e.slice(0,e.length-1)),hp.indexOf(e)<0)throw new RangeError("".concat(Pn,": ").concat(e));return e}var yp='Invalid "number" argument';function wp(e){if(e=Number(e),Number.isFinite&&!Number.isFinite(e))throw new RangeError("".concat(yp,": ").concat(e));return e}function Sp(e){return 1/e===-1/0}function Op(e){return e<0||e===0&&Sp(e)}function xo(e){if(e.length<2)throw new TypeError('"unit" argument is required');return[wp(e[0]),gp(e[1])]}function Fr(e){"@babel/helpers - typeof";return Fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fr(e)}function Ep(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _o(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cp(e,t){if(e){if(typeof e=="string")return To(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return To(e,t)}}function To(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1;)if(o.pop(),a=o.join("-"),t(a))return a}throw new Error("No locale data has been registered for any of the locales: ".concat(e.join(", ")))}function Pp(){var e=(typeof Intl>"u"?"undefined":Bn(Intl))==="object";return e&&typeof Intl.DateTimeFormat=="function"}function Wn(e){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(e)}function kp(e){return Ap(e)&&(Array.isArray(e.steps)||Array.isArray(e.gradation)||Array.isArray(e.flavour)||typeof e.flavour=="string"||Array.isArray(e.labels)||typeof e.labels=="string"||Array.isArray(e.units)||typeof e.custom=="function")}var jp={}.constructor;function Ap(e){return Wn(e)!==void 0&&e!==null&&e.constructor===jp}var St=60,Nr=60*St,Dt=24*Nr,zn=7*Dt,qn=30.44*Dt,Zi=146097/400*Dt;function qt(e){switch(e){case"second":return 1;case"minute":return St;case"hour":return Nr;case"day":return Dt;case"week":return zn;case"month":return qn;case"year":return Zi}}function es(e){return e.factor!==void 0?e.factor:qt(e.unit||e.formatAs)||1}function ur(e){switch(e){case"floor":return Math.floor;default:return Math.round}}function Ea(e){switch(e){case"floor":return 1;default:return .5}}function Yn(e){"@babel/helpers - typeof";return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yn(e)}function ts(e,t){var r=t.prevStep,n=t.timestamp,a=t.now,o=t.future,i=t.round,s;return r&&(r.id||r.unit)&&(s=e["threshold_for_".concat(r.id||r.unit)]),s===void 0&&e.threshold!==void 0&&(s=e.threshold,typeof s=="function"&&(s=s(a,o))),s===void 0&&(s=e.minTime),Yn(s)==="object"&&(r&&r.id&&s[r.id]!==void 0?s=s[r.id]:s=s.default),typeof s=="function"&&(s=s(n,{future:o,getMinTimeForUnit:function(c,l){return Po(c,l||r&&r.formatAs,{round:i})}})),s===void 0&&e.test&&(e.test(n,{now:a,future:o})?s=0:s=9007199254740991),s===void 0&&(r?e.formatAs&&r.formatAs&&(s=Po(e.formatAs,r.formatAs,{round:i})):s=0),s===void 0&&console.warn("[javascript-time-ago] A step should specify `minTime`:\n"+JSON.stringify(e,null,2)),s}function Po(e,t,r){var n=r.round,a=qt(e),o;if(t==="now"?o=qt(e):o=qt(t),a!==void 0&&o!==void 0)return a-o*(1-Ea(n))}function ko(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Mp(e){for(var t=1;t0)return e[i-1]}return s}}}function rs(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=ts(e[n],Mp({prevStep:e[n-1],timestamp:r.now-t*1e3},r));return a===void 0||Math.abs(t)=0:!0})}function Ip(e,t,r){var n=r.now,a=r.round;if(qt(e)){var o=qt(e)*1e3,i=t>n,s=Math.abs(t-n),u=ur(a)(s/o)*o;return i?u>0?s-u+$p(a,o):s-u+1:-(s-u)+Lp(a,o)}}function Lp(e,t){return Ea(e)*t}function $p(e,t){return(1-Ea(e))*t+1}var Up=365*24*60*60*1e3,ns=1e3*Up;function Bp(e,t,r){var n=r.prevStep,a=r.nextStep,o=r.now,i=r.future,s=r.round,u=e.getTime?e.getTime():e,c=function(b){return Ip(b,u,{now:o,round:s})},l=zp(i?t:a,u,{future:i,now:o,round:s,prevStep:i?n:t});if(l!==void 0){var d;if(t&&(t.getTimeToNextUpdate&&(d=t.getTimeToNextUpdate(u,{getTimeToNextUpdateForUnit:c,getRoundFunction:ur,now:o,future:i,round:s})),d===void 0)){var g=t.unit||t.formatAs;g&&(d=c(g))}return d===void 0?l:Math.min(d,l)}}function Wp(e,t,r){var n=r.now,a=r.future,o=r.round,i=r.prevStep,s=ts(e,{timestamp:t,now:n,future:a,round:o,prevStep:i});if(s!==void 0)return a?t-s*1e3+1:s===0&&t===n?ns:t+s*1e3}function zp(e,t,r){var n=r.now,a=r.future,o=r.round,i=r.prevStep;if(e){var s=Wp(e,t,{now:n,future:a,round:o,prevStep:i});return s===void 0?void 0:s-n}else return a?t-n+1:ns}var as={};function Wt(e){return as[e]}function os(e){if(!e)throw new Error("[javascript-time-ago] No locale data passed.");as[e.locale]=e}const qp=[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],Hn={steps:qp,labels:"long"};function jo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ao(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. + */(function(){var c=typeof Symbol=="function"&&Symbol.for,l=c?Symbol.for("react.element"):60103,d=c?Symbol.for("react.portal"):60106,g=c?Symbol.for("react.fragment"):60107,m=c?Symbol.for("react.strict_mode"):60108,b=c?Symbol.for("react.profiler"):60114,h=c?Symbol.for("react.provider"):60109,C=c?Symbol.for("react.context"):60110,j=c?Symbol.for("react.async_mode"):60111,x=c?Symbol.for("react.concurrent_mode"):60111,O=c?Symbol.for("react.forward_ref"):60112,_=c?Symbol.for("react.suspense"):60113,f=c?Symbol.for("react.suspense_list"):60120,T=c?Symbol.for("react.memo"):60115,P=c?Symbol.for("react.lazy"):60116,L=c?Symbol.for("react.block"):60121,E=c?Symbol.for("react.fundamental"):60117,A=c?Symbol.for("react.responder"):60118,R=c?Symbol.for("react.scope"):60119;function $(Z){return typeof Z=="string"||typeof Z=="function"||Z===g||Z===x||Z===b||Z===m||Z===_||Z===f||typeof Z=="object"&&Z!==null&&(Z.$$typeof===P||Z.$$typeof===T||Z.$$typeof===h||Z.$$typeof===C||Z.$$typeof===O||Z.$$typeof===E||Z.$$typeof===A||Z.$$typeof===R||Z.$$typeof===L)}function z(Z){if(typeof Z=="object"&&Z!==null){var je=Z.$$typeof;switch(je){case l:var Je=Z.type;switch(Je){case j:case x:case g:case b:case m:case _:return Je;default:var Ye=Je&&Je.$$typeof;switch(Ye){case C:case O:case P:case T:case h:return Ye;default:return je}}case d:return je}}}var re=j,D=x,te=C,ce=h,B=l,fe=O,ae=g,we=P,oe=T,Me=d,Ce=b,Ue=m,Te=_,Re=!1;function ke(Z){return Re||(Re=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),De(Z)||z(Z)===j}function De(Z){return z(Z)===x}function q(Z){return z(Z)===C}function Q(Z){return z(Z)===h}function he(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===l}function ue(Z){return z(Z)===O}function le(Z){return z(Z)===g}function ve(Z){return z(Z)===P}function pe(Z){return z(Z)===T}function me(Z){return z(Z)===d}function be(Z){return z(Z)===b}function Oe(Z){return z(Z)===m}function ge(Z){return z(Z)===_}u.AsyncMode=re,u.ConcurrentMode=D,u.ContextConsumer=te,u.ContextProvider=ce,u.Element=B,u.ForwardRef=fe,u.Fragment=ae,u.Lazy=we,u.Memo=oe,u.Portal=Me,u.Profiler=Ce,u.StrictMode=Ue,u.Suspense=Te,u.isAsyncMode=ke,u.isConcurrentMode=De,u.isContextConsumer=q,u.isContextProvider=Q,u.isElement=he,u.isForwardRef=ue,u.isFragment=le,u.isLazy=ve,u.isMemo=pe,u.isPortal=me,u.isProfiler=be,u.isStrictMode=Oe,u.isSuspense=ge,u.isValidElementType=$,u.typeOf=z})()},"./node_modules/react-is/index.js":(s,u,c)=>{s.exports=c("./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/shallow-equal/dist/index.esm.js":(s,u,c)=>{c.r(u),c.d(u,{shallowEqualArrays:()=>d,shallowEqualObjects:()=>l});function l(g,m){if(g===m)return!0;if(!g||!m)return!1;var b=Object.keys(g),h=Object.keys(m),C=b.length;if(h.length!==C)return!1;for(var j=0;j{Object.defineProperty(u,"__esModule",{value:!0});var l=c("react"),d=(0,l.createContext)(void 0);u.default=d},"./src/index.ts":function(s,u,c){var l=this&&this.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(u,"__esModule",{value:!0}),u.Context=u.toQuery=u.useMediaQuery=u.default=void 0;var d=l(c("./src/useMediaQuery.ts"));u.useMediaQuery=d.default;var g=l(c("./src/Component.ts"));u.default=g.default;var m=l(c("./src/toQuery.ts"));u.toQuery=m.default;var b=l(c("./src/Context.ts"));u.Context=b.default},"./src/mediaQuery.ts":function(s,u,c){var l=this&&this.__assign||function(){return l=Object.assign||function(_){for(var f,T=1,P=arguments.length;T{s.exports=r}},a={};function o(s){var u=a[s];if(u!==void 0)return u.exports;var c=a[s]={exports:{}};return n[s].call(c.exports,c,c.exports,o),c.exports}o.d=(s,u)=>{for(var c in u)o.o(u,c)&&!o.o(s,c)&&Object.defineProperty(s,c,{enumerable:!0,get:u[c]})},o.o=(s,u)=>Object.prototype.hasOwnProperty.call(s,u),o.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var i=o("./src/index.ts");return i})())})(Ji);var xm=Ji.exports,Gi="en",Oa={},$n={};function Qi(){return Gi}function ep(e){Gi=e}function tp(e){return Oa[e]}function rp(e){if(!e)throw new Error("No locale data passed");Oa[e.locale]=e,$n[e.locale.toLowerCase()]=e.locale}function ho(e){if(Oa[e])return e;if($n[e.toLowerCase()])return $n[e.toLowerCase()]}function Xi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.localeMatcher||"lookup";switch(r){case"lookup":return mo(e);case"best fit":return mo(e);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(r))}}function mo(e){var t=ho(e);if(t)return t;for(var r=e.split("-");e.length>1;){r.pop(),e=r.join("-");var n=ho(e);if(n)return n}}var k={af:function(t){return t==1?"one":"other"},am:function(t){return t>=0&&t<=1?"one":"other"},ar:function(t){var r=String(t).split("."),n=Number(r[0])==t,a=n&&r[0].slice(-2);return t==0?"zero":t==1?"one":t==2?"two":a>=3&&a<=10?"few":a>=11&&a<=99?"many":"other"},ast:function(t){var r=String(t).split("."),n=!r[1];return t==1&&n?"one":"other"},be:function(t){var r=String(t).split("."),n=Number(r[0])==t,a=n&&r[0].slice(-1),o=n&&r[0].slice(-2);return a==1&&o!=11?"one":a>=2&&a<=4&&(o<12||o>14)?"few":n&&a==0||a>=5&&a<=9||o>=11&&o<=14?"many":"other"},br:function(t){var r=String(t).split("."),n=Number(r[0])==t,a=n&&r[0].slice(-1),o=n&&r[0].slice(-2),i=n&&r[0].slice(-6);return a==1&&o!=11&&o!=71&&o!=91?"one":a==2&&o!=12&&o!=72&&o!=92?"two":(a==3||a==4||a==9)&&(o<10||o>19)&&(o<70||o>79)&&(o<90||o>99)?"few":t!=0&&n&&i==0?"many":"other"},bs:function(t){var r=String(t).split("."),n=r[0],a=r[1]||"",o=!r[1],i=n.slice(-1),s=n.slice(-2),u=a.slice(-1),c=a.slice(-2);return o&&i==1&&s!=11||u==1&&c!=11?"one":o&&i>=2&&i<=4&&(s<12||s>14)||u>=2&&u<=4&&(c<12||c>14)?"few":"other"},ca:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-6);return t==1&&a?"one":n!=0&&o==0&&a?"many":"other"},ceb:function(t){var r=String(t).split("."),n=r[0],a=r[1]||"",o=!r[1],i=n.slice(-1),s=a.slice(-1);return o&&(n==1||n==2||n==3)||o&&i!=4&&i!=6&&i!=9||!o&&s!=4&&s!=6&&s!=9?"one":"other"},cs:function(t){var r=String(t).split("."),n=r[0],a=!r[1];return t==1&&a?"one":n>=2&&n<=4&&a?"few":a?"other":"many"},cy:function(t){return t==0?"zero":t==1?"one":t==2?"two":t==3?"few":t==6?"many":"other"},da:function(t){var r=String(t).split("."),n=r[0],a=Number(r[0])==t;return t==1||!a&&(n==0||n==1)?"one":"other"},dsb:function(t){var r=String(t).split("."),n=r[0],a=r[1]||"",o=!r[1],i=n.slice(-2),s=a.slice(-2);return o&&i==1||s==1?"one":o&&i==2||s==2?"two":o&&(i==3||i==4)||s==3||s==4?"few":"other"},dz:function(t){return"other"},es:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-6);return t==1?"one":n!=0&&o==0&&a?"many":"other"},ff:function(t){return t>=0&&t<2?"one":"other"},fr:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-6);return t>=0&&t<2?"one":n!=0&&o==0&&a?"many":"other"},ga:function(t){var r=String(t).split("."),n=Number(r[0])==t;return t==1?"one":t==2?"two":n&&t>=3&&t<=6?"few":n&&t>=7&&t<=10?"many":"other"},gd:function(t){var r=String(t).split("."),n=Number(r[0])==t;return t==1||t==11?"one":t==2||t==12?"two":n&&t>=3&&t<=10||n&&t>=13&&t<=19?"few":"other"},he:function(t){var r=String(t).split("."),n=r[0],a=!r[1];return n==1&&a||n==0&&!a?"one":n==2&&a?"two":"other"},is:function(t){var r=String(t).split("."),n=r[0],a=(r[1]||"").replace(/0+$/,""),o=Number(r[0])==t,i=n.slice(-1),s=n.slice(-2);return o&&i==1&&s!=11||a%10==1&&a%100!=11?"one":"other"},ksh:function(t){return t==0?"zero":t==1?"one":"other"},lt:function(t){var r=String(t).split("."),n=r[1]||"",a=Number(r[0])==t,o=a&&r[0].slice(-1),i=a&&r[0].slice(-2);return o==1&&(i<11||i>19)?"one":o>=2&&o<=9&&(i<11||i>19)?"few":n!=0?"many":"other"},lv:function(t){var r=String(t).split("."),n=r[1]||"",a=n.length,o=Number(r[0])==t,i=o&&r[0].slice(-1),s=o&&r[0].slice(-2),u=n.slice(-2),c=n.slice(-1);return o&&i==0||s>=11&&s<=19||a==2&&u>=11&&u<=19?"zero":i==1&&s!=11||a==2&&c==1&&u!=11||a!=2&&c==1?"one":"other"},mk:function(t){var r=String(t).split("."),n=r[0],a=r[1]||"",o=!r[1],i=n.slice(-1),s=n.slice(-2),u=a.slice(-1),c=a.slice(-2);return o&&i==1&&s!=11||u==1&&c!=11?"one":"other"},mt:function(t){var r=String(t).split("."),n=Number(r[0])==t,a=n&&r[0].slice(-2);return t==1?"one":t==2?"two":t==0||a>=3&&a<=10?"few":a>=11&&a<=19?"many":"other"},pa:function(t){return t==0||t==1?"one":"other"},pl:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-1),i=n.slice(-2);return t==1&&a?"one":a&&o>=2&&o<=4&&(i<12||i>14)?"few":a&&n!=1&&(o==0||o==1)||a&&o>=5&&o<=9||a&&i>=12&&i<=14?"many":"other"},pt:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-6);return n==0||n==1?"one":n!=0&&o==0&&a?"many":"other"},ro:function(t){var r=String(t).split("."),n=!r[1],a=Number(r[0])==t,o=a&&r[0].slice(-2);return t==1&&n?"one":!n||t==0||t!=1&&o>=1&&o<=19?"few":"other"},ru:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-1),i=n.slice(-2);return a&&o==1&&i!=11?"one":a&&o>=2&&o<=4&&(i<12||i>14)?"few":a&&o==0||a&&o>=5&&o<=9||a&&i>=11&&i<=14?"many":"other"},se:function(t){return t==1?"one":t==2?"two":"other"},si:function(t){var r=String(t).split("."),n=r[0],a=r[1]||"";return t==0||t==1||n==0&&a==1?"one":"other"},sl:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-2);return a&&o==1?"one":a&&o==2?"two":a&&(o==3||o==4)||!a?"few":"other"}};k.as=k.am;k.az=k.af;k.bg=k.af;k.bn=k.am;k.brx=k.af;k.ce=k.af;k.chr=k.af;k.de=k.ast;k.ee=k.af;k.el=k.af;k.en=k.ast;k.et=k.ast;k.eu=k.af;k.fa=k.am;k.fi=k.ast;k.fil=k.ceb;k.fo=k.af;k.fur=k.af;k.fy=k.ast;k.gl=k.ast;k.gu=k.am;k.ha=k.af;k.hi=k.am;k.hr=k.bs;k.hsb=k.dsb;k.hu=k.af;k.hy=k.ff;k.ia=k.ast;k.id=k.dz;k.ig=k.dz;k.it=k.ca;k.ja=k.dz;k.jgo=k.af;k.jv=k.dz;k.ka=k.af;k.kea=k.dz;k.kk=k.af;k.kl=k.af;k.km=k.dz;k.kn=k.am;k.ko=k.dz;k.ks=k.af;k.ku=k.af;k.ky=k.af;k.lb=k.af;k.lkt=k.dz;k.lo=k.dz;k.ml=k.af;k.mn=k.af;k.mr=k.af;k.ms=k.dz;k.my=k.dz;k.nb=k.af;k.ne=k.af;k.nl=k.ast;k.nn=k.af;k.no=k.af;k.or=k.af;k.pcm=k.am;k.ps=k.af;k.rm=k.af;k.sah=k.dz;k.sc=k.ast;k.sd=k.af;k.sk=k.cs;k.so=k.af;k.sq=k.af;k.sr=k.bs;k.su=k.dz;k.sv=k.ast;k.sw=k.ast;k.ta=k.af;k.te=k.af;k.th=k.dz;k.ti=k.pa;k.tk=k.af;k.to=k.dz;k.tr=k.af;k.ug=k.af;k.uk=k.ru;k.ur=k.ast;k.uz=k.af;k.vi=k.dz;k.wae=k.af;k.wo=k.dz;k.xh=k.af;k.yi=k.ast;k.yo=k.dz;k.yue=k.dz;k.zh=k.dz;k.zu=k.am;const vo=k;function bo(e){return e==="pt-PT"?e:ap(e)}var np=/^([a-z0-9]+)/i;function ap(e){var t=e.match(np);if(!t)throw new TypeError("Invalid locale: ".concat(e));return t[1]}function op(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function go(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};dp(this,e);var n=r.numeric,a=r.style,o=r.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",n!==void 0){if(mp.indexOf(n)<0)throw new RangeError('Invalid "numeric" option: '.concat(n));this.numeric=n}if(a!==void 0){if(vp.indexOf(a)<0)throw new RangeError('Invalid "style" option: '.concat(a));this.style=a}if(o!==void 0){if(bp.indexOf(o)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(o));this.localeMatcher=o}if(typeof t=="string"&&(t=[t]),t.push(Qi()),this.locale=e.supportedLocalesOf(t,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("No supported locale was found");Un.supportedLocalesOf(this.locale).length>0?this.pluralRules=new Un(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),typeof Intl<"u"&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=Xi(this.locale,{localeMatcher:this.localeMatcher})}return pp(e,[{key:"format",value:function(){var r=xo(arguments),n=So(r,2),a=n[0],o=n[1];return this.getRule(a,o).replace("{0}",this.formatNumber(Math.abs(a)))}},{key:"formatToParts",value:function(){var r=xo(arguments),n=So(r,2),a=n[0],o=n[1],i=this.getRule(a,o),s=i.indexOf("{0}");if(s<0)return[{type:"literal",value:i}];var u=[];return s>0&&u.push({type:"literal",value:i.slice(0,s)}),u=u.concat(this.formatNumberToParts(Math.abs(a)).map(function(c){return wo(wo({},c),{},{unit:o})})),s+31&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string")e=[e];else if(!Array.isArray(e))throw new TypeError('Invalid "locales" argument');return e.filter(function(r){return Xi(r,t)})};kt.addLocale=rp;kt.setDefaultLocale=ep;kt.getDefaultLocale=Qi;kt.PluralRules=Un;var kn='Invalid "unit" argument';function gp(e){if(Bn(e)==="symbol")throw new TypeError(kn);if(typeof e!="string")throw new RangeError("".concat(kn,": ").concat(e));if(e[e.length-1]==="s"&&(e=e.slice(0,e.length-1)),hp.indexOf(e)<0)throw new RangeError("".concat(kn,": ").concat(e));return e}var yp='Invalid "number" argument';function wp(e){if(e=Number(e),Number.isFinite&&!Number.isFinite(e))throw new RangeError("".concat(yp,": ").concat(e));return e}function Sp(e){return 1/e===-1/0}function Op(e){return e<0||e===0&&Sp(e)}function xo(e){if(e.length<2)throw new TypeError('"unit" argument is required');return[wp(e[0]),gp(e[1])]}function Fr(e){"@babel/helpers - typeof";return Fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fr(e)}function Ep(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _o(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cp(e,t){if(e){if(typeof e=="string")return To(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return To(e,t)}}function To(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1;)if(o.pop(),a=o.join("-"),t(a))return a}throw new Error("No locale data has been registered for any of the locales: ".concat(e.join(", ")))}function Pp(){var e=(typeof Intl>"u"?"undefined":Wn(Intl))==="object";return e&&typeof Intl.DateTimeFormat=="function"}function zn(e){"@babel/helpers - typeof";return zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zn(e)}function kp(e){return Ap(e)&&(Array.isArray(e.steps)||Array.isArray(e.gradation)||Array.isArray(e.flavour)||typeof e.flavour=="string"||Array.isArray(e.labels)||typeof e.labels=="string"||Array.isArray(e.units)||typeof e.custom=="function")}var jp={}.constructor;function Ap(e){return zn(e)!==void 0&&e!==null&&e.constructor===jp}var St=60,Nr=60*St,Dt=24*Nr,qn=7*Dt,Yn=30.44*Dt,Zi=146097/400*Dt;function Yt(e){switch(e){case"second":return 1;case"minute":return St;case"hour":return Nr;case"day":return Dt;case"week":return qn;case"month":return Yn;case"year":return Zi}}function es(e){return e.factor!==void 0?e.factor:Yt(e.unit||e.formatAs)||1}function ur(e){switch(e){case"floor":return Math.floor;default:return Math.round}}function Ea(e){switch(e){case"floor":return 1;default:return .5}}function Hn(e){"@babel/helpers - typeof";return Hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hn(e)}function ts(e,t){var r=t.prevStep,n=t.timestamp,a=t.now,o=t.future,i=t.round,s;return r&&(r.id||r.unit)&&(s=e["threshold_for_".concat(r.id||r.unit)]),s===void 0&&e.threshold!==void 0&&(s=e.threshold,typeof s=="function"&&(s=s(a,o))),s===void 0&&(s=e.minTime),Hn(s)==="object"&&(r&&r.id&&s[r.id]!==void 0?s=s[r.id]:s=s.default),typeof s=="function"&&(s=s(n,{future:o,getMinTimeForUnit:function(c,l){return Po(c,l||r&&r.formatAs,{round:i})}})),s===void 0&&e.test&&(e.test(n,{now:a,future:o})?s=0:s=9007199254740991),s===void 0&&(r?e.formatAs&&r.formatAs&&(s=Po(e.formatAs,r.formatAs,{round:i})):s=0),s===void 0&&console.warn("[javascript-time-ago] A step should specify `minTime`:\n"+JSON.stringify(e,null,2)),s}function Po(e,t,r){var n=r.round,a=Yt(e),o;if(t==="now"?o=Yt(e):o=Yt(t),a!==void 0&&o!==void 0)return a-o*(1-Ea(n))}function ko(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Mp(e){for(var t=1;t0)return e[i-1]}return s}}}function rs(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=ts(e[n],Mp({prevStep:e[n-1],timestamp:r.now-t*1e3},r));return a===void 0||Math.abs(t)=0:!0})}function Ip(e,t,r){var n=r.now,a=r.round;if(Yt(e)){var o=Yt(e)*1e3,i=t>n,s=Math.abs(t-n),u=ur(a)(s/o)*o;return i?u>0?s-u+$p(a,o):s-u+1:-(s-u)+Lp(a,o)}}function Lp(e,t){return Ea(e)*t}function $p(e,t){return(1-Ea(e))*t+1}var Up=365*24*60*60*1e3,ns=1e3*Up;function Bp(e,t,r){var n=r.prevStep,a=r.nextStep,o=r.now,i=r.future,s=r.round,u=e.getTime?e.getTime():e,c=function(b){return Ip(b,u,{now:o,round:s})},l=zp(i?t:a,u,{future:i,now:o,round:s,prevStep:i?n:t});if(l!==void 0){var d;if(t&&(t.getTimeToNextUpdate&&(d=t.getTimeToNextUpdate(u,{getTimeToNextUpdateForUnit:c,getRoundFunction:ur,now:o,future:i,round:s})),d===void 0)){var g=t.unit||t.formatAs;g&&(d=c(g))}return d===void 0?l:Math.min(d,l)}}function Wp(e,t,r){var n=r.now,a=r.future,o=r.round,i=r.prevStep,s=ts(e,{timestamp:t,now:n,future:a,round:o,prevStep:i});if(s!==void 0)return a?t-s*1e3+1:s===0&&t===n?ns:t+s*1e3}function zp(e,t,r){var n=r.now,a=r.future,o=r.round,i=r.prevStep;if(e){var s=Wp(e,t,{now:n,future:a,round:o,prevStep:i});return s===void 0?void 0:s-n}else return a?t-n+1:ns}var as={};function zt(e){return as[e]}function os(e){if(!e)throw new Error("[javascript-time-ago] No locale data passed.");as[e.locale]=e}const qp=[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],Vn={steps:qp,labels:"long"};function jo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ao(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ch(e,t){return dh(e)||fh(e,t)||us(e,t)||lh()}function lh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function us(e,t){if(e){if(typeof e=="string")return Ho(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ho(e,t)}}function Ho(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.polyfill;ph(this,e),typeof t=="string"&&(t=[t]),this.locale=Tp(t.concat(e.getDefaultLocale()),Wt),typeof Intl<"u"&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),n===!1?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=kt,this.IntlPluralRules=kt.PluralRules),this.relativeTimeFormatCache=new Co,this.pluralRulesCache=new Co}return hh(e,[{key:"format",value:function(r,n,a){a||(n&&!yh(n)?(a=n,n=void 0):a={}),n||(n=Vn),typeof n=="string"&&(n=sh(n));var o=mh(r),i=this.getLabels(n.flavour||n.labels),s=i.labels,u=i.labelsType,c;n.now!==void 0&&(c=n.now),c===void 0&&a.now!==void 0&&(c=a.now),c===void 0&&(c=Date.now());var l=(c-o)/1e3,d=a.future||l<0,g=gh(s,Wt(this.locale).now,Wt(this.locale).long,d);if(n.custom){var m=n.custom({now:c,date:new Date(o),time:o,elapsed:l,locale:this.locale});if(m!==void 0)return m}var b=bh(n.units,s,g),h=a.round||n.round,C=Rp(n.gradation||n.steps||Vn.steps,l,{now:c,units:b,round:h,future:d,getNextStep:!0}),j=ch(C,3),x=j[0],O=j[1],_=j[2],f=this.formatDateForStep(o,O,l,{labels:s,labelsType:u,nowLabel:g,now:c,future:d,round:h})||"";if(a.getTimeToNextUpdate){var T=Bp(o,O,{nextStep:_,prevStep:x,now:c,future:d,round:h});return[f,T]}return f}},{key:"formatDateForStep",value:function(r,n,a,o){var i=this,s=o.labels,u=o.labelsType,c=o.nowLabel,l=o.now,d=o.future,g=o.round;if(n){if(n.format)return n.format(r,this.locale,{formatAs:function(j,x){return i.formatValue(x,j,{labels:s,future:d})},now:l,future:d});var m=n.unit||n.formatAs;if(!m)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(n)));if(m==="now")return c;var b=Math.abs(a)/es(n);n.granularity&&(b=ur(g)(b/n.granularity)*n.granularity);var h=-1*Math.sign(a)*ur(g)(b);switch(h===0&&(d?h=0:h=-0),u){case"long":case"short":case"narrow":return this.getFormatter(u).format(h,m);default:return this.formatValue(h,m,{labels:s,future:d})}}}},{key:"formatValue",value:function(r,n,a){var o=a.labels,i=a.future;return this.getFormattingRule(o,n,r,{future:i}).replace("{0}",this.formatNumber(Math.abs(r)))}},{key:"getFormattingRule",value:function(r,n,a,o){var i=o.future;if(this.locale,r=r[n],typeof r=="string")return r;var s=a===0?i?"future":"past":a<0?"past":"future",u=r[s]||r;if(typeof u=="string")return u;var c=this.getPluralRules().select(Math.abs(a));return u[c]||u.other}},{key:"formatNumber",value:function(r){return this.numberFormat?this.numberFormat.format(r):String(r)}},{key:"getFormatter",value:function(r){return this.relativeTimeFormatCache.get(this.locale,r)||this.relativeTimeFormatCache.put(this.locale,r,new this.IntlRelativeTimeFormat(this.locale,{style:r}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];typeof r=="string"&&(r=[r]),r=r.map(function(s){switch(s){case"tiny":case"mini-time":return"mini";default:return s}}),r=r.concat("long");for(var n=Wt(this.locale),a=uh(r),o;!(o=a()).done;){var i=o.value;if(n[i])return{labelsType:i,labels:n[i]}}}}]),e}(),cs="en";Et.getDefaultLocale=function(){return cs};Et.setDefaultLocale=function(e){return cs=e};Et.addDefaultLocale=function(e){if(Ko)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");Ko=!0,Et.setDefaultLocale(e.locale),Et.addLocale(e)};var Ko;Et.addLocale=function(e){os(e),kt.addLocale(e)};Et.locale=Et.addLocale;Et.addLabels=function(e,t,r){var n=Wt(e);n||(os({locale:e}),n=Wt(e)),n[t]=r};function mh(e){if(e.constructor===Date||vh(e))return e.getTime();if(typeof e=="number")return e;throw new Error("Unsupported relative time formatter input: ".concat(Ir(e),", ").concat(e))}function vh(e){return Ir(e)==="object"&&typeof e.getTime=="function"}function bh(e,t,r){var n=Object.keys(t);return r&&n.push("now"),e&&(n=e.filter(function(a){return a==="now"||n.indexOf(a)>=0})),n}function gh(e,t,r,n){var a=e.now||t&&t.now;if(a)return typeof a=="string"?a:n?a.future:a.past;if(r&&r.second&&r.second.current)return r.second.current}function yh(e){return typeof e=="string"||kp(e)}var ls={exports:{}};(function(e,t){(function(r,n){e.exports=n(J)})(_r,function(r){return function(n){var a={};function o(i){if(a[i])return a[i].exports;var s=a[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=a,o.d=function(i,s,u){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:u})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(1&s&&(i=o(i)),8&s||4&s&&typeof i=="object"&&i&&i.__esModule)return i;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:i}),2&s&&typeof i!="string")for(var c in i)o.d(u,c,(function(l){return i[l]}).bind(null,c));return u},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=48)}([function(n,a){n.exports=r},function(n,a){var o=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=o)},function(n,a,o){var i=o(26)("wks"),s=o(17),u=o(3).Symbol,c=typeof u=="function";(n.exports=function(l){return i[l]||(i[l]=c&&u[l]||(c?u:s)("Symbol."+l))}).store=i},function(n,a){var o=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=o)},function(n,a,o){n.exports=!o(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,a){var o={}.hasOwnProperty;n.exports=function(i,s){return o.call(i,s)}},function(n,a,o){var i=o(7),s=o(16);n.exports=o(4)?function(u,c,l){return i.f(u,c,s(1,l))}:function(u,c,l){return u[c]=l,u}},function(n,a,o){var i=o(10),s=o(35),u=o(23),c=Object.defineProperty;a.f=o(4)?Object.defineProperty:function(l,d,g){if(i(l),d=u(d,!0),i(g),s)try{return c(l,d,g)}catch{}if("get"in g||"set"in g)throw TypeError("Accessors not supported!");return"value"in g&&(l[d]=g.value),l}},function(n,a){n.exports=function(o){try{return!!o()}catch{return!0}}},function(n,a,o){var i=o(40),s=o(22);n.exports=function(u){return i(s(u))}},function(n,a,o){var i=o(11);n.exports=function(s){if(!i(s))throw TypeError(s+" is not an object!");return s}},function(n,a){n.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},function(n,a){n.exports={}},function(n,a,o){var i=o(39),s=o(27);n.exports=Object.keys||function(u){return i(u,s)}},function(n,a){n.exports=!0},function(n,a,o){var i=o(3),s=o(1),u=o(53),c=o(6),l=o(5),d=function(g,m,b){var h,C,j,x=g&d.F,O=g&d.G,_=g&d.S,f=g&d.P,T=g&d.B,P=g&d.W,L=O?s:s[m]||(s[m]={}),E=L.prototype,A=O?i:_?i[m]:(i[m]||{}).prototype;for(h in O&&(b=m),b)(C=!x&&A&&A[h]!==void 0)&&l(L,h)||(j=C?A[h]:b[h],L[h]=O&&typeof A[h]!="function"?b[h]:T&&C?u(j,i):P&&A[h]==j?function(R){var $=function(z,re,D){if(this instanceof R){switch(arguments.length){case 0:return new R;case 1:return new R(z);case 2:return new R(z,re)}return new R(z,re,D)}return R.apply(this,arguments)};return $.prototype=R.prototype,$}(j):f&&typeof j=="function"?u(Function.call,j):j,f&&((L.virtual||(L.virtual={}))[h]=j,g&d.R&&E&&!E[h]&&c(E,h,j)))};d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,n.exports=d},function(n,a){n.exports=function(o,i){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:i}}},function(n,a){var o=0,i=Math.random();n.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++o+i).toString(36))}},function(n,a,o){var i=o(22);n.exports=function(s){return Object(i(s))}},function(n,a){a.f={}.propertyIsEnumerable},function(n,a,o){var i=o(52)(!0);o(34)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s,u=this._t,c=this._i;return c>=u.length?{value:void 0,done:!0}:(s=i(u,c),this._i+=s.length,{value:s,done:!1})})},function(n,a){var o=Math.ceil,i=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?i:o)(s)}},function(n,a){n.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},function(n,a,o){var i=o(11);n.exports=function(s,u){if(!i(s))return s;var c,l;if(u&&typeof(c=s.toString)=="function"&&!i(l=c.call(s))||typeof(c=s.valueOf)=="function"&&!i(l=c.call(s))||!u&&typeof(c=s.toString)=="function"&&!i(l=c.call(s)))return l;throw TypeError("Can't convert object to primitive value")}},function(n,a){var o={}.toString;n.exports=function(i){return o.call(i).slice(8,-1)}},function(n,a,o){var i=o(26)("keys"),s=o(17);n.exports=function(u){return i[u]||(i[u]=s(u))}},function(n,a,o){var i=o(1),s=o(3),u=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(n.exports=function(c,l){return u[c]||(u[c]=l!==void 0?l:{})})("versions",[]).push({version:i.version,mode:o(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,a){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,a,o){var i=o(7).f,s=o(5),u=o(2)("toStringTag");n.exports=function(c,l,d){c&&!s(c=d?c:c.prototype,u)&&i(c,u,{configurable:!0,value:l})}},function(n,a,o){o(62);for(var i=o(3),s=o(6),u=o(12),c=o(2)("toStringTag"),l="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),d=0;ddocument.F=Object<\/script>"),g.close(),d=g.F;b--;)delete d.prototype[u[b]];return d()};n.exports=Object.create||function(g,m){var b;return g!==null?(l.prototype=i(g),b=new l,l.prototype=null,b[c]=g):b=d(),m===void 0?b:s(b,m)}},function(n,a,o){var i=o(5),s=o(9),u=o(57)(!1),c=o(25)("IE_PROTO");n.exports=function(l,d){var g,m=s(l),b=0,h=[];for(g in m)g!=c&&i(m,g)&&h.push(g);for(;d.length>b;)i(m,g=d[b++])&&(~u(h,g)||h.push(g));return h}},function(n,a,o){var i=o(24);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return i(s)=="String"?s.split(""):Object(s)}},function(n,a,o){var i=o(39),s=o(27).concat("length","prototype");a.f=Object.getOwnPropertyNames||function(u){return i(u,s)}},function(n,a,o){var i=o(24),s=o(2)("toStringTag"),u=i(function(){return arguments}())=="Arguments";n.exports=function(c){var l,d,g;return c===void 0?"Undefined":c===null?"Null":typeof(d=function(m,b){try{return m[b]}catch{}}(l=Object(c),s))=="string"?d:u?i(l):(g=i(l))=="Object"&&typeof l.callee=="function"?"Arguments":g}},function(n,a){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}n.exports=o},function(n,a){var o=/-?\d+(\.\d+)?%?/g;n.exports=function(i){return i.match(o)}},function(n,a,o){Object.defineProperty(a,"__esModule",{value:!0}),a.getBase16Theme=a.createStyling=a.invertTheme=void 0;var i=C(o(49)),s=C(o(76)),u=C(o(81)),c=C(o(89)),l=C(o(93)),d=function(E){if(E&&E.__esModule)return E;var A={};if(E!=null)for(var R in E)Object.prototype.hasOwnProperty.call(E,R)&&(A[R]=E[R]);return A.default=E,A}(o(94)),g=C(o(132)),m=C(o(133)),b=C(o(138)),h=o(139);function C(E){return E&&E.__esModule?E:{default:E}}var j=d.default,x=(0,c.default)(j),O=(0,b.default)(m.default,h.rgb2yuv,function(E){var A,R=(0,u.default)(E,3),$=R[0],z=R[1],re=R[2];return[(A=$,A<.25?1:A<.5?.9-A:1.1-A),z,re]},h.yuv2rgb,g.default),_=function(E){return function(A){return{className:[A.className,E.className].filter(Boolean).join(" "),style:(0,s.default)({},A.style||{},E.style||{})}}},f=function(E,A){var R=(0,c.default)(A);for(var $ in E)R.indexOf($)===-1&&R.push($);return R.reduce(function(z,re){return z[re]=function(D,te){if(D===void 0)return te;if(te===void 0)return D;var ce=D===void 0?"undefined":(0,i.default)(D),B=te===void 0?"undefined":(0,i.default)(te);switch(ce){case"string":switch(B){case"string":return[te,D].filter(Boolean).join(" ");case"object":return _({className:D,style:te});case"function":return function(fe){for(var ae=arguments.length,we=Array(ae>1?ae-1:0),oe=1;oe1?ae-1:0),oe=1;oe1?ae-1:0),oe=1;oe1?ae-1:0),oe=1;oe1?ae-1:0),oe=1;oe2?R-2:0),z=2;z3?A-3:0),$=3;$1&&arguments[1]!==void 0?arguments[1]:{},re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=z.defaultBase16,te=D===void 0?j:D,ce=z.base16Themes,B=ce===void 0?null:ce,fe=L(re,B);fe&&(re=(0,s.default)({},fe,re));var ae=x.reduce(function(Ce,Ue){return Ce[Ue]=re[Ue]||te[Ue],Ce},{}),we=(0,c.default)(re).reduce(function(Ce,Ue){return x.indexOf(Ue)===-1&&(Ce[Ue]=re[Ue]),Ce},{}),oe=E(ae),Me=f(we,oe);return(0,l.default)(T,2).apply(void 0,[Me].concat(R))},3),a.getBase16Theme=function(E,A){if(E&&E.extend&&(E=E.extend),typeof E=="string"){var R=E.split(":"),$=(0,u.default)(R,2),z=$[0],re=$[1];E=(A||{})[z]||d[z],re==="inverted"&&(E=P(E))}return E&&E.hasOwnProperty("base00")?E:void 0})},function(n,a,o){var i,s=typeof Reflect=="object"?Reflect:null,u=s&&typeof s.apply=="function"?s.apply:function(f,T,P){return Function.prototype.apply.call(f,T,P)};i=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(f){return Object.getOwnPropertyNames(f).concat(Object.getOwnPropertySymbols(f))}:function(f){return Object.getOwnPropertyNames(f)};var c=Number.isNaN||function(f){return f!=f};function l(){l.init.call(this)}n.exports=l,n.exports.once=function(f,T){return new Promise(function(P,L){function E(R){f.removeListener(T,A),L(R)}function A(){typeof f.removeListener=="function"&&f.removeListener("error",E),P([].slice.call(arguments))}_(f,T,A,{once:!0}),T!=="error"&&function(R,$,z){typeof R.on=="function"&&_(R,"error",$,z)}(f,E,{once:!0})})},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var d=10;function g(f){if(typeof f!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof f)}function m(f){return f._maxListeners===void 0?l.defaultMaxListeners:f._maxListeners}function b(f,T,P,L){var E,A,R,$;if(g(P),(A=f._events)===void 0?(A=f._events=Object.create(null),f._eventsCount=0):(A.newListener!==void 0&&(f.emit("newListener",T,P.listener?P.listener:P),A=f._events),R=A[T]),R===void 0)R=A[T]=P,++f._eventsCount;else if(typeof R=="function"?R=A[T]=L?[P,R]:[R,P]:L?R.unshift(P):R.push(P),(E=m(f))>0&&R.length>E&&!R.warned){R.warned=!0;var z=new Error("Possible EventEmitter memory leak detected. "+R.length+" "+String(T)+" listeners added. Use emitter.setMaxListeners() to increase limit");z.name="MaxListenersExceededWarning",z.emitter=f,z.type=T,z.count=R.length,$=z,console&&console.warn&&console.warn($)}return f}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function C(f,T,P){var L={fired:!1,wrapFn:void 0,target:f,type:T,listener:P},E=h.bind(L);return E.listener=P,L.wrapFn=E,E}function j(f,T,P){var L=f._events;if(L===void 0)return[];var E=L[T];return E===void 0?[]:typeof E=="function"?P?[E.listener||E]:[E]:P?function(A){for(var R=new Array(A.length),$=0;$0&&(A=T[0]),A instanceof Error)throw A;var R=new Error("Unhandled error."+(A?" ("+A.message+")":""));throw R.context=A,R}var $=E[f];if($===void 0)return!1;if(typeof $=="function")u($,this,T);else{var z=$.length,re=O($,z);for(P=0;P=0;A--)if(P[A]===T||P[A].listener===T){R=P[A].listener,E=A;break}if(E<0)return this;E===0?P.shift():function($,z){for(;z+1<$.length;z++)$[z]=$[z+1];$.pop()}(P,E),P.length===1&&(L[f]=P[0]),L.removeListener!==void 0&&this.emit("removeListener",f,R||T)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(f){var T,P,L;if((P=this._events)===void 0)return this;if(P.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):P[f]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete P[f]),this;if(arguments.length===0){var E,A=Object.keys(P);for(L=0;L=0;L--)this.removeListener(f,T[L]);return this},l.prototype.listeners=function(f){return j(this,f,!0)},l.prototype.rawListeners=function(f){return j(this,f,!1)},l.listenerCount=function(f,T){return typeof f.listenerCount=="function"?f.listenerCount(T):x.call(f,T)},l.prototype.listenerCount=x,l.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(n,a,o){n.exports.Dispatcher=o(140)},function(n,a,o){n.exports=o(142)},function(n,a,o){a.__esModule=!0;var i=c(o(50)),s=c(o(65)),u=typeof s.default=="function"&&typeof i.default=="symbol"?function(l){return typeof l}:function(l){return l&&typeof s.default=="function"&&l.constructor===s.default&&l!==s.default.prototype?"symbol":typeof l};function c(l){return l&&l.__esModule?l:{default:l}}a.default=typeof s.default=="function"&&u(i.default)==="symbol"?function(l){return l===void 0?"undefined":u(l)}:function(l){return l&&typeof s.default=="function"&&l.constructor===s.default&&l!==s.default.prototype?"symbol":l===void 0?"undefined":u(l)}},function(n,a,o){n.exports={default:o(51),__esModule:!0}},function(n,a,o){o(20),o(29),n.exports=o(30).f("iterator")},function(n,a,o){var i=o(21),s=o(22);n.exports=function(u){return function(c,l){var d,g,m=String(s(c)),b=i(l),h=m.length;return b<0||b>=h?u?"":void 0:(d=m.charCodeAt(b))<55296||d>56319||b+1===h||(g=m.charCodeAt(b+1))<56320||g>57343?u?m.charAt(b):d:u?m.slice(b,b+2):g-56320+(d-55296<<10)+65536}}},function(n,a,o){var i=o(54);n.exports=function(s,u,c){if(i(s),u===void 0)return s;switch(c){case 1:return function(l){return s.call(u,l)};case 2:return function(l,d){return s.call(u,l,d)};case 3:return function(l,d,g){return s.call(u,l,d,g)}}return function(){return s.apply(u,arguments)}}},function(n,a){n.exports=function(o){if(typeof o!="function")throw TypeError(o+" is not a function!");return o}},function(n,a,o){var i=o(38),s=o(16),u=o(28),c={};o(6)(c,o(2)("iterator"),function(){return this}),n.exports=function(l,d,g){l.prototype=i(c,{next:s(1,g)}),u(l,d+" Iterator")}},function(n,a,o){var i=o(7),s=o(10),u=o(13);n.exports=o(4)?Object.defineProperties:function(c,l){s(c);for(var d,g=u(l),m=g.length,b=0;m>b;)i.f(c,d=g[b++],l[d]);return c}},function(n,a,o){var i=o(9),s=o(58),u=o(59);n.exports=function(c){return function(l,d,g){var m,b=i(l),h=s(b.length),C=u(g,h);if(c&&d!=d){for(;h>C;)if((m=b[C++])!=m)return!0}else for(;h>C;C++)if((c||C in b)&&b[C]===d)return c||C||0;return!c&&-1}}},function(n,a,o){var i=o(21),s=Math.min;n.exports=function(u){return u>0?s(i(u),9007199254740991):0}},function(n,a,o){var i=o(21),s=Math.max,u=Math.min;n.exports=function(c,l){return(c=i(c))<0?s(c+l,0):u(c,l)}},function(n,a,o){var i=o(3).document;n.exports=i&&i.documentElement},function(n,a,o){var i=o(5),s=o(18),u=o(25)("IE_PROTO"),c=Object.prototype;n.exports=Object.getPrototypeOf||function(l){return l=s(l),i(l,u)?l[u]:typeof l.constructor=="function"&&l instanceof l.constructor?l.constructor.prototype:l instanceof Object?c:null}},function(n,a,o){var i=o(63),s=o(64),u=o(12),c=o(9);n.exports=o(34)(Array,"Array",function(l,d){this._t=c(l),this._i=0,this._k=d},function(){var l=this._t,d=this._k,g=this._i++;return!l||g>=l.length?(this._t=void 0,s(1)):s(0,d=="keys"?g:d=="values"?l[g]:[g,l[g]])},"values"),u.Arguments=u.Array,i("keys"),i("values"),i("entries")},function(n,a){n.exports=function(){}},function(n,a){n.exports=function(o,i){return{value:i,done:!!o}}},function(n,a,o){n.exports={default:o(66),__esModule:!0}},function(n,a,o){o(67),o(73),o(74),o(75),n.exports=o(1).Symbol},function(n,a,o){var i=o(3),s=o(5),u=o(4),c=o(15),l=o(37),d=o(68).KEY,g=o(8),m=o(26),b=o(28),h=o(17),C=o(2),j=o(30),x=o(31),O=o(69),_=o(70),f=o(10),T=o(11),P=o(18),L=o(9),E=o(23),A=o(16),R=o(38),$=o(71),z=o(72),re=o(32),D=o(7),te=o(13),ce=z.f,B=D.f,fe=$.f,ae=i.Symbol,we=i.JSON,oe=we&&we.stringify,Me=C("_hidden"),Ce=C("toPrimitive"),Ue={}.propertyIsEnumerable,Te=m("symbol-registry"),Re=m("symbols"),ke=m("op-symbols"),De=Object.prototype,q=typeof ae=="function"&&!!re.f,Q=i.QObject,he=!Q||!Q.prototype||!Q.prototype.findChild,ue=u&&g(function(){return R(B({},"a",{get:function(){return B(this,"a",{value:7}).a}})).a!=7})?function(I,V,X){var de=ce(De,V);de&&delete De[V],B(I,V,X),de&&I!==De&&B(De,V,de)}:B,le=function(I){var V=Re[I]=R(ae.prototype);return V._k=I,V},ve=q&&typeof ae.iterator=="symbol"?function(I){return typeof I=="symbol"}:function(I){return I instanceof ae},pe=function(I,V,X){return I===De&&pe(ke,V,X),f(I),V=E(V,!0),f(X),s(Re,V)?(X.enumerable?(s(I,Me)&&I[Me][V]&&(I[Me][V]=!1),X=R(X,{enumerable:A(0,!1)})):(s(I,Me)||B(I,Me,A(1,{})),I[Me][V]=!0),ue(I,V,X)):B(I,V,X)},me=function(I,V){f(I);for(var X,de=O(V=L(V)),Se=0,ie=de.length;ie>Se;)pe(I,X=de[Se++],V[X]);return I},be=function(I){var V=Ue.call(this,I=E(I,!0));return!(this===De&&s(Re,I)&&!s(ke,I))&&(!(V||!s(this,I)||!s(Re,I)||s(this,Me)&&this[Me][I])||V)},Oe=function(I,V){if(I=L(I),V=E(V,!0),I!==De||!s(Re,V)||s(ke,V)){var X=ce(I,V);return!X||!s(Re,V)||s(I,Me)&&I[Me][V]||(X.enumerable=!0),X}},ge=function(I){for(var V,X=fe(L(I)),de=[],Se=0;X.length>Se;)s(Re,V=X[Se++])||V==Me||V==d||de.push(V);return de},Z=function(I){for(var V,X=I===De,de=fe(X?ke:L(I)),Se=[],ie=0;de.length>ie;)!s(Re,V=de[ie++])||X&&!s(De,V)||Se.push(Re[V]);return Se};q||(l((ae=function(){if(this instanceof ae)throw TypeError("Symbol is not a constructor!");var I=h(arguments.length>0?arguments[0]:void 0),V=function(X){this===De&&V.call(ke,X),s(this,Me)&&s(this[Me],I)&&(this[Me][I]=!1),ue(this,I,A(1,X))};return u&&he&&ue(De,I,{configurable:!0,set:V}),le(I)}).prototype,"toString",function(){return this._k}),z.f=Oe,D.f=pe,o(41).f=$.f=ge,o(19).f=be,re.f=Z,u&&!o(14)&&l(De,"propertyIsEnumerable",be,!0),j.f=function(I){return le(C(I))}),c(c.G+c.W+c.F*!q,{Symbol:ae});for(var je="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Je=0;je.length>Je;)C(je[Je++]);for(var Ye=te(C.store),Y=0;Ye.length>Y;)x(Ye[Y++]);c(c.S+c.F*!q,"Symbol",{for:function(I){return s(Te,I+="")?Te[I]:Te[I]=ae(I)},keyFor:function(I){if(!ve(I))throw TypeError(I+" is not a symbol!");for(var V in Te)if(Te[V]===I)return V},useSetter:function(){he=!0},useSimple:function(){he=!1}}),c(c.S+c.F*!q,"Object",{create:function(I,V){return V===void 0?R(I):me(R(I),V)},defineProperty:pe,defineProperties:me,getOwnPropertyDescriptor:Oe,getOwnPropertyNames:ge,getOwnPropertySymbols:Z});var N=g(function(){re.f(1)});c(c.S+c.F*N,"Object",{getOwnPropertySymbols:function(I){return re.f(P(I))}}),we&&c(c.S+c.F*(!q||g(function(){var I=ae();return oe([I])!="[null]"||oe({a:I})!="{}"||oe(Object(I))!="{}"})),"JSON",{stringify:function(I){for(var V,X,de=[I],Se=1;arguments.length>Se;)de.push(arguments[Se++]);if(X=V=de[1],(T(V)||I!==void 0)&&!ve(I))return _(V)||(V=function(ie,Ie){if(typeof X=="function"&&(Ie=X.call(this,ie,Ie)),!ve(Ie))return Ie}),de[1]=V,oe.apply(we,de)}}),ae.prototype[Ce]||o(6)(ae.prototype,Ce,ae.prototype.valueOf),b(ae,"Symbol"),b(Math,"Math",!0),b(i.JSON,"JSON",!0)},function(n,a,o){var i=o(17)("meta"),s=o(11),u=o(5),c=o(7).f,l=0,d=Object.isExtensible||function(){return!0},g=!o(8)(function(){return d(Object.preventExtensions({}))}),m=function(h){c(h,i,{value:{i:"O"+ ++l,w:{}}})},b=n.exports={KEY:i,NEED:!1,fastKey:function(h,C){if(!s(h))return typeof h=="symbol"?h:(typeof h=="string"?"S":"P")+h;if(!u(h,i)){if(!d(h))return"F";if(!C)return"E";m(h)}return h[i].i},getWeak:function(h,C){if(!u(h,i)){if(!d(h))return!0;if(!C)return!1;m(h)}return h[i].w},onFreeze:function(h){return g&&b.NEED&&d(h)&&!u(h,i)&&m(h),h}}},function(n,a,o){var i=o(13),s=o(32),u=o(19);n.exports=function(c){var l=i(c),d=s.f;if(d)for(var g,m=d(c),b=u.f,h=0;m.length>h;)b.call(c,g=m[h++])&&l.push(g);return l}},function(n,a,o){var i=o(24);n.exports=Array.isArray||function(s){return i(s)=="Array"}},function(n,a,o){var i=o(9),s=o(41).f,u={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(l){return c&&u.call(l)=="[object Window]"?function(d){try{return s(d)}catch{return c.slice()}}(l):s(i(l))}},function(n,a,o){var i=o(19),s=o(16),u=o(9),c=o(23),l=o(5),d=o(35),g=Object.getOwnPropertyDescriptor;a.f=o(4)?g:function(m,b){if(m=u(m),b=c(b,!0),d)try{return g(m,b)}catch{}if(l(m,b))return s(!i.f.call(m,b),m[b])}},function(n,a){},function(n,a,o){o(31)("asyncIterator")},function(n,a,o){o(31)("observable")},function(n,a,o){a.__esModule=!0;var i,s=o(77),u=(i=s)&&i.__esModule?i:{default:i};a.default=u.default||function(c){for(var l=1;lj;)for(var _,f=d(arguments[j++]),T=x?s(f).concat(x(f)):s(f),P=T.length,L=0;P>L;)_=T[L++],i&&!O.call(f,_)||(h[_]=f[_]);return h}:g},function(n,a,o){a.__esModule=!0;var i=u(o(82)),s=u(o(85));function u(c){return c&&c.__esModule?c:{default:c}}a.default=function(c,l){if(Array.isArray(c))return c;if((0,i.default)(Object(c)))return function(d,g){var m=[],b=!0,h=!1,C=void 0;try{for(var j,x=(0,s.default)(d);!(b=(j=x.next()).done)&&(m.push(j.value),!g||m.length!==g);b=!0);}catch(O){h=!0,C=O}finally{try{!b&&x.return&&x.return()}finally{if(h)throw C}}return m}(c,l);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,a,o){n.exports={default:o(83),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(84)},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).isIterable=function(c){var l=Object(c);return l[s]!==void 0||"@@iterator"in l||u.hasOwnProperty(i(l))}},function(n,a,o){n.exports={default:o(86),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(87)},function(n,a,o){var i=o(10),s=o(88);n.exports=o(1).getIterator=function(u){var c=s(u);if(typeof c!="function")throw TypeError(u+" is not iterable!");return i(c.call(u))}},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).getIteratorMethod=function(c){if(c!=null)return c[s]||c["@@iterator"]||u[i(c)]}},function(n,a,o){n.exports={default:o(90),__esModule:!0}},function(n,a,o){o(91),n.exports=o(1).Object.keys},function(n,a,o){var i=o(18),s=o(13);o(92)("keys",function(){return function(u){return s(i(u))}})},function(n,a,o){var i=o(15),s=o(1),u=o(8);n.exports=function(c,l){var d=(s.Object||{})[c]||Object[c],g={};g[c]=l(d),i(i.S+i.F*u(function(){d(1)}),"Object",g)}},function(n,a,o){(function(i){var s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u=/^\s+|\s+$/g,c=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,l=/\{\n\/\* \[wrapped with (.+)\] \*/,d=/,? & /,g=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,b=/^\[object .+?Constructor\]$/,h=/^0o[0-7]+$/i,C=/^(?:0|[1-9]\d*)$/,j=parseInt,x=typeof i=="object"&&i&&i.Object===Object&&i,O=typeof self=="object"&&self&&self.Object===Object&&self,_=x||O||Function("return this")();function f(Y,N,I){switch(I.length){case 0:return Y.call(N);case 1:return Y.call(N,I[0]);case 2:return Y.call(N,I[0],I[1]);case 3:return Y.call(N,I[0],I[1],I[2])}return Y.apply(N,I)}function T(Y,N){return!!(Y&&Y.length)&&function(I,V,X){if(V!=V)return function(ie,Ie,He,ze){for(var Qe=ie.length,qe=He+(ze?1:-1);ze?qe--:++qe-1}function P(Y){return Y!=Y}function L(Y,N){for(var I=Y.length,V=0;I--;)Y[I]===N&&V++;return V}function E(Y,N){for(var I=-1,V=Y.length,X=0,de=[];++I2?R:void 0);function Ue(Y){return je(Y)?we(Y):{}}function Te(Y){return!(!je(Y)||function(N){return!!te&&te in N}(Y))&&(function(N){var I=je(N)?fe.call(N):"";return I=="[object Function]"||I=="[object GeneratorFunction]"}(Y)||function(N){var I=!1;if(N!=null&&typeof N.toString!="function")try{I=!!(N+"")}catch{}return I}(Y)?ae:b).test(function(N){if(N!=null){try{return ce.call(N)}catch{}try{return N+""}catch{}}return""}(Y))}function Re(Y,N,I,V){for(var X=-1,de=Y.length,Se=I.length,ie=-1,Ie=N.length,He=oe(de-Se,0),ze=Array(Ie+He),Qe=!V;++ie1&&Be.reverse(),ze&&Ie1?"& ":"")+N[V],N=N.join(I>2?", ":" "),Y.replace(c,`{ +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function us(e,t){if(e){if(typeof e=="string")return Ho(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ho(e,t)}}function Ho(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.polyfill;ph(this,e),typeof t=="string"&&(t=[t]),this.locale=Tp(t.concat(e.getDefaultLocale()),zt),typeof Intl<"u"&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),n===!1?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=kt,this.IntlPluralRules=kt.PluralRules),this.relativeTimeFormatCache=new Co,this.pluralRulesCache=new Co}return hh(e,[{key:"format",value:function(r,n,a){a||(n&&!yh(n)?(a=n,n=void 0):a={}),n||(n=Kn),typeof n=="string"&&(n=sh(n));var o=mh(r),i=this.getLabels(n.flavour||n.labels),s=i.labels,u=i.labelsType,c;n.now!==void 0&&(c=n.now),c===void 0&&a.now!==void 0&&(c=a.now),c===void 0&&(c=Date.now());var l=(c-o)/1e3,d=a.future||l<0,g=gh(s,zt(this.locale).now,zt(this.locale).long,d);if(n.custom){var m=n.custom({now:c,date:new Date(o),time:o,elapsed:l,locale:this.locale});if(m!==void 0)return m}var b=bh(n.units,s,g),h=a.round||n.round,C=Rp(n.gradation||n.steps||Kn.steps,l,{now:c,units:b,round:h,future:d,getNextStep:!0}),j=ch(C,3),x=j[0],O=j[1],_=j[2],f=this.formatDateForStep(o,O,l,{labels:s,labelsType:u,nowLabel:g,now:c,future:d,round:h})||"";if(a.getTimeToNextUpdate){var T=Bp(o,O,{nextStep:_,prevStep:x,now:c,future:d,round:h});return[f,T]}return f}},{key:"formatDateForStep",value:function(r,n,a,o){var i=this,s=o.labels,u=o.labelsType,c=o.nowLabel,l=o.now,d=o.future,g=o.round;if(n){if(n.format)return n.format(r,this.locale,{formatAs:function(j,x){return i.formatValue(x,j,{labels:s,future:d})},now:l,future:d});var m=n.unit||n.formatAs;if(!m)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(n)));if(m==="now")return c;var b=Math.abs(a)/es(n);n.granularity&&(b=ur(g)(b/n.granularity)*n.granularity);var h=-1*Math.sign(a)*ur(g)(b);switch(h===0&&(d?h=0:h=-0),u){case"long":case"short":case"narrow":return this.getFormatter(u).format(h,m);default:return this.formatValue(h,m,{labels:s,future:d})}}}},{key:"formatValue",value:function(r,n,a){var o=a.labels,i=a.future;return this.getFormattingRule(o,n,r,{future:i}).replace("{0}",this.formatNumber(Math.abs(r)))}},{key:"getFormattingRule",value:function(r,n,a,o){var i=o.future;if(this.locale,r=r[n],typeof r=="string")return r;var s=a===0?i?"future":"past":a<0?"past":"future",u=r[s]||r;if(typeof u=="string")return u;var c=this.getPluralRules().select(Math.abs(a));return u[c]||u.other}},{key:"formatNumber",value:function(r){return this.numberFormat?this.numberFormat.format(r):String(r)}},{key:"getFormatter",value:function(r){return this.relativeTimeFormatCache.get(this.locale,r)||this.relativeTimeFormatCache.put(this.locale,r,new this.IntlRelativeTimeFormat(this.locale,{style:r}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];typeof r=="string"&&(r=[r]),r=r.map(function(s){switch(s){case"tiny":case"mini-time":return"mini";default:return s}}),r=r.concat("long");for(var n=zt(this.locale),a=uh(r),o;!(o=a()).done;){var i=o.value;if(n[i])return{labelsType:i,labels:n[i]}}}}]),e}(),cs="en";Et.getDefaultLocale=function(){return cs};Et.setDefaultLocale=function(e){return cs=e};Et.addDefaultLocale=function(e){if(Ko)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");Ko=!0,Et.setDefaultLocale(e.locale),Et.addLocale(e)};var Ko;Et.addLocale=function(e){os(e),kt.addLocale(e)};Et.locale=Et.addLocale;Et.addLabels=function(e,t,r){var n=zt(e);n||(os({locale:e}),n=zt(e)),n[t]=r};function mh(e){if(e.constructor===Date||vh(e))return e.getTime();if(typeof e=="number")return e;throw new Error("Unsupported relative time formatter input: ".concat(Ir(e),", ").concat(e))}function vh(e){return Ir(e)==="object"&&typeof e.getTime=="function"}function bh(e,t,r){var n=Object.keys(t);return r&&n.push("now"),e&&(n=e.filter(function(a){return a==="now"||n.indexOf(a)>=0})),n}function gh(e,t,r,n){var a=e.now||t&&t.now;if(a)return typeof a=="string"?a:n?a.future:a.past;if(r&&r.second&&r.second.current)return r.second.current}function yh(e){return typeof e=="string"||kp(e)}var ls={exports:{}};(function(e,t){(function(r,n){e.exports=n(J)})(_r,function(r){return function(n){var a={};function o(i){if(a[i])return a[i].exports;var s=a[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=a,o.d=function(i,s,u){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:u})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(1&s&&(i=o(i)),8&s||4&s&&typeof i=="object"&&i&&i.__esModule)return i;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:i}),2&s&&typeof i!="string")for(var c in i)o.d(u,c,(function(l){return i[l]}).bind(null,c));return u},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=48)}([function(n,a){n.exports=r},function(n,a){var o=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=o)},function(n,a,o){var i=o(26)("wks"),s=o(17),u=o(3).Symbol,c=typeof u=="function";(n.exports=function(l){return i[l]||(i[l]=c&&u[l]||(c?u:s)("Symbol."+l))}).store=i},function(n,a){var o=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=o)},function(n,a,o){n.exports=!o(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,a){var o={}.hasOwnProperty;n.exports=function(i,s){return o.call(i,s)}},function(n,a,o){var i=o(7),s=o(16);n.exports=o(4)?function(u,c,l){return i.f(u,c,s(1,l))}:function(u,c,l){return u[c]=l,u}},function(n,a,o){var i=o(10),s=o(35),u=o(23),c=Object.defineProperty;a.f=o(4)?Object.defineProperty:function(l,d,g){if(i(l),d=u(d,!0),i(g),s)try{return c(l,d,g)}catch{}if("get"in g||"set"in g)throw TypeError("Accessors not supported!");return"value"in g&&(l[d]=g.value),l}},function(n,a){n.exports=function(o){try{return!!o()}catch{return!0}}},function(n,a,o){var i=o(40),s=o(22);n.exports=function(u){return i(s(u))}},function(n,a,o){var i=o(11);n.exports=function(s){if(!i(s))throw TypeError(s+" is not an object!");return s}},function(n,a){n.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},function(n,a){n.exports={}},function(n,a,o){var i=o(39),s=o(27);n.exports=Object.keys||function(u){return i(u,s)}},function(n,a){n.exports=!0},function(n,a,o){var i=o(3),s=o(1),u=o(53),c=o(6),l=o(5),d=function(g,m,b){var h,C,j,x=g&d.F,O=g&d.G,_=g&d.S,f=g&d.P,T=g&d.B,P=g&d.W,L=O?s:s[m]||(s[m]={}),E=L.prototype,A=O?i:_?i[m]:(i[m]||{}).prototype;for(h in O&&(b=m),b)(C=!x&&A&&A[h]!==void 0)&&l(L,h)||(j=C?A[h]:b[h],L[h]=O&&typeof A[h]!="function"?b[h]:T&&C?u(j,i):P&&A[h]==j?function(R){var $=function(z,re,D){if(this instanceof R){switch(arguments.length){case 0:return new R;case 1:return new R(z);case 2:return new R(z,re)}return new R(z,re,D)}return R.apply(this,arguments)};return $.prototype=R.prototype,$}(j):f&&typeof j=="function"?u(Function.call,j):j,f&&((L.virtual||(L.virtual={}))[h]=j,g&d.R&&E&&!E[h]&&c(E,h,j)))};d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,n.exports=d},function(n,a){n.exports=function(o,i){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:i}}},function(n,a){var o=0,i=Math.random();n.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++o+i).toString(36))}},function(n,a,o){var i=o(22);n.exports=function(s){return Object(i(s))}},function(n,a){a.f={}.propertyIsEnumerable},function(n,a,o){var i=o(52)(!0);o(34)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s,u=this._t,c=this._i;return c>=u.length?{value:void 0,done:!0}:(s=i(u,c),this._i+=s.length,{value:s,done:!1})})},function(n,a){var o=Math.ceil,i=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?i:o)(s)}},function(n,a){n.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},function(n,a,o){var i=o(11);n.exports=function(s,u){if(!i(s))return s;var c,l;if(u&&typeof(c=s.toString)=="function"&&!i(l=c.call(s))||typeof(c=s.valueOf)=="function"&&!i(l=c.call(s))||!u&&typeof(c=s.toString)=="function"&&!i(l=c.call(s)))return l;throw TypeError("Can't convert object to primitive value")}},function(n,a){var o={}.toString;n.exports=function(i){return o.call(i).slice(8,-1)}},function(n,a,o){var i=o(26)("keys"),s=o(17);n.exports=function(u){return i[u]||(i[u]=s(u))}},function(n,a,o){var i=o(1),s=o(3),u=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(n.exports=function(c,l){return u[c]||(u[c]=l!==void 0?l:{})})("versions",[]).push({version:i.version,mode:o(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,a){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,a,o){var i=o(7).f,s=o(5),u=o(2)("toStringTag");n.exports=function(c,l,d){c&&!s(c=d?c:c.prototype,u)&&i(c,u,{configurable:!0,value:l})}},function(n,a,o){o(62);for(var i=o(3),s=o(6),u=o(12),c=o(2)("toStringTag"),l="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),d=0;ddocument.F=Object<\/script>"),g.close(),d=g.F;b--;)delete d.prototype[u[b]];return d()};n.exports=Object.create||function(g,m){var b;return g!==null?(l.prototype=i(g),b=new l,l.prototype=null,b[c]=g):b=d(),m===void 0?b:s(b,m)}},function(n,a,o){var i=o(5),s=o(9),u=o(57)(!1),c=o(25)("IE_PROTO");n.exports=function(l,d){var g,m=s(l),b=0,h=[];for(g in m)g!=c&&i(m,g)&&h.push(g);for(;d.length>b;)i(m,g=d[b++])&&(~u(h,g)||h.push(g));return h}},function(n,a,o){var i=o(24);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return i(s)=="String"?s.split(""):Object(s)}},function(n,a,o){var i=o(39),s=o(27).concat("length","prototype");a.f=Object.getOwnPropertyNames||function(u){return i(u,s)}},function(n,a,o){var i=o(24),s=o(2)("toStringTag"),u=i(function(){return arguments}())=="Arguments";n.exports=function(c){var l,d,g;return c===void 0?"Undefined":c===null?"Null":typeof(d=function(m,b){try{return m[b]}catch{}}(l=Object(c),s))=="string"?d:u?i(l):(g=i(l))=="Object"&&typeof l.callee=="function"?"Arguments":g}},function(n,a){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}n.exports=o},function(n,a){var o=/-?\d+(\.\d+)?%?/g;n.exports=function(i){return i.match(o)}},function(n,a,o){Object.defineProperty(a,"__esModule",{value:!0}),a.getBase16Theme=a.createStyling=a.invertTheme=void 0;var i=C(o(49)),s=C(o(76)),u=C(o(81)),c=C(o(89)),l=C(o(93)),d=function(E){if(E&&E.__esModule)return E;var A={};if(E!=null)for(var R in E)Object.prototype.hasOwnProperty.call(E,R)&&(A[R]=E[R]);return A.default=E,A}(o(94)),g=C(o(132)),m=C(o(133)),b=C(o(138)),h=o(139);function C(E){return E&&E.__esModule?E:{default:E}}var j=d.default,x=(0,c.default)(j),O=(0,b.default)(m.default,h.rgb2yuv,function(E){var A,R=(0,u.default)(E,3),$=R[0],z=R[1],re=R[2];return[(A=$,A<.25?1:A<.5?.9-A:1.1-A),z,re]},h.yuv2rgb,g.default),_=function(E){return function(A){return{className:[A.className,E.className].filter(Boolean).join(" "),style:(0,s.default)({},A.style||{},E.style||{})}}},f=function(E,A){var R=(0,c.default)(A);for(var $ in E)R.indexOf($)===-1&&R.push($);return R.reduce(function(z,re){return z[re]=function(D,te){if(D===void 0)return te;if(te===void 0)return D;var ce=D===void 0?"undefined":(0,i.default)(D),B=te===void 0?"undefined":(0,i.default)(te);switch(ce){case"string":switch(B){case"string":return[te,D].filter(Boolean).join(" ");case"object":return _({className:D,style:te});case"function":return function(fe){for(var ae=arguments.length,we=Array(ae>1?ae-1:0),oe=1;oe1?ae-1:0),oe=1;oe1?ae-1:0),oe=1;oe1?ae-1:0),oe=1;oe1?ae-1:0),oe=1;oe2?R-2:0),z=2;z3?A-3:0),$=3;$1&&arguments[1]!==void 0?arguments[1]:{},re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=z.defaultBase16,te=D===void 0?j:D,ce=z.base16Themes,B=ce===void 0?null:ce,fe=L(re,B);fe&&(re=(0,s.default)({},fe,re));var ae=x.reduce(function(Ce,Ue){return Ce[Ue]=re[Ue]||te[Ue],Ce},{}),we=(0,c.default)(re).reduce(function(Ce,Ue){return x.indexOf(Ue)===-1&&(Ce[Ue]=re[Ue]),Ce},{}),oe=E(ae),Me=f(we,oe);return(0,l.default)(T,2).apply(void 0,[Me].concat(R))},3),a.getBase16Theme=function(E,A){if(E&&E.extend&&(E=E.extend),typeof E=="string"){var R=E.split(":"),$=(0,u.default)(R,2),z=$[0],re=$[1];E=(A||{})[z]||d[z],re==="inverted"&&(E=P(E))}return E&&E.hasOwnProperty("base00")?E:void 0})},function(n,a,o){var i,s=typeof Reflect=="object"?Reflect:null,u=s&&typeof s.apply=="function"?s.apply:function(f,T,P){return Function.prototype.apply.call(f,T,P)};i=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(f){return Object.getOwnPropertyNames(f).concat(Object.getOwnPropertySymbols(f))}:function(f){return Object.getOwnPropertyNames(f)};var c=Number.isNaN||function(f){return f!=f};function l(){l.init.call(this)}n.exports=l,n.exports.once=function(f,T){return new Promise(function(P,L){function E(R){f.removeListener(T,A),L(R)}function A(){typeof f.removeListener=="function"&&f.removeListener("error",E),P([].slice.call(arguments))}_(f,T,A,{once:!0}),T!=="error"&&function(R,$,z){typeof R.on=="function"&&_(R,"error",$,z)}(f,E,{once:!0})})},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var d=10;function g(f){if(typeof f!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof f)}function m(f){return f._maxListeners===void 0?l.defaultMaxListeners:f._maxListeners}function b(f,T,P,L){var E,A,R,$;if(g(P),(A=f._events)===void 0?(A=f._events=Object.create(null),f._eventsCount=0):(A.newListener!==void 0&&(f.emit("newListener",T,P.listener?P.listener:P),A=f._events),R=A[T]),R===void 0)R=A[T]=P,++f._eventsCount;else if(typeof R=="function"?R=A[T]=L?[P,R]:[R,P]:L?R.unshift(P):R.push(P),(E=m(f))>0&&R.length>E&&!R.warned){R.warned=!0;var z=new Error("Possible EventEmitter memory leak detected. "+R.length+" "+String(T)+" listeners added. Use emitter.setMaxListeners() to increase limit");z.name="MaxListenersExceededWarning",z.emitter=f,z.type=T,z.count=R.length,$=z,console&&console.warn&&console.warn($)}return f}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function C(f,T,P){var L={fired:!1,wrapFn:void 0,target:f,type:T,listener:P},E=h.bind(L);return E.listener=P,L.wrapFn=E,E}function j(f,T,P){var L=f._events;if(L===void 0)return[];var E=L[T];return E===void 0?[]:typeof E=="function"?P?[E.listener||E]:[E]:P?function(A){for(var R=new Array(A.length),$=0;$0&&(A=T[0]),A instanceof Error)throw A;var R=new Error("Unhandled error."+(A?" ("+A.message+")":""));throw R.context=A,R}var $=E[f];if($===void 0)return!1;if(typeof $=="function")u($,this,T);else{var z=$.length,re=O($,z);for(P=0;P=0;A--)if(P[A]===T||P[A].listener===T){R=P[A].listener,E=A;break}if(E<0)return this;E===0?P.shift():function($,z){for(;z+1<$.length;z++)$[z]=$[z+1];$.pop()}(P,E),P.length===1&&(L[f]=P[0]),L.removeListener!==void 0&&this.emit("removeListener",f,R||T)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(f){var T,P,L;if((P=this._events)===void 0)return this;if(P.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):P[f]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete P[f]),this;if(arguments.length===0){var E,A=Object.keys(P);for(L=0;L=0;L--)this.removeListener(f,T[L]);return this},l.prototype.listeners=function(f){return j(this,f,!0)},l.prototype.rawListeners=function(f){return j(this,f,!1)},l.listenerCount=function(f,T){return typeof f.listenerCount=="function"?f.listenerCount(T):x.call(f,T)},l.prototype.listenerCount=x,l.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(n,a,o){n.exports.Dispatcher=o(140)},function(n,a,o){n.exports=o(142)},function(n,a,o){a.__esModule=!0;var i=c(o(50)),s=c(o(65)),u=typeof s.default=="function"&&typeof i.default=="symbol"?function(l){return typeof l}:function(l){return l&&typeof s.default=="function"&&l.constructor===s.default&&l!==s.default.prototype?"symbol":typeof l};function c(l){return l&&l.__esModule?l:{default:l}}a.default=typeof s.default=="function"&&u(i.default)==="symbol"?function(l){return l===void 0?"undefined":u(l)}:function(l){return l&&typeof s.default=="function"&&l.constructor===s.default&&l!==s.default.prototype?"symbol":l===void 0?"undefined":u(l)}},function(n,a,o){n.exports={default:o(51),__esModule:!0}},function(n,a,o){o(20),o(29),n.exports=o(30).f("iterator")},function(n,a,o){var i=o(21),s=o(22);n.exports=function(u){return function(c,l){var d,g,m=String(s(c)),b=i(l),h=m.length;return b<0||b>=h?u?"":void 0:(d=m.charCodeAt(b))<55296||d>56319||b+1===h||(g=m.charCodeAt(b+1))<56320||g>57343?u?m.charAt(b):d:u?m.slice(b,b+2):g-56320+(d-55296<<10)+65536}}},function(n,a,o){var i=o(54);n.exports=function(s,u,c){if(i(s),u===void 0)return s;switch(c){case 1:return function(l){return s.call(u,l)};case 2:return function(l,d){return s.call(u,l,d)};case 3:return function(l,d,g){return s.call(u,l,d,g)}}return function(){return s.apply(u,arguments)}}},function(n,a){n.exports=function(o){if(typeof o!="function")throw TypeError(o+" is not a function!");return o}},function(n,a,o){var i=o(38),s=o(16),u=o(28),c={};o(6)(c,o(2)("iterator"),function(){return this}),n.exports=function(l,d,g){l.prototype=i(c,{next:s(1,g)}),u(l,d+" Iterator")}},function(n,a,o){var i=o(7),s=o(10),u=o(13);n.exports=o(4)?Object.defineProperties:function(c,l){s(c);for(var d,g=u(l),m=g.length,b=0;m>b;)i.f(c,d=g[b++],l[d]);return c}},function(n,a,o){var i=o(9),s=o(58),u=o(59);n.exports=function(c){return function(l,d,g){var m,b=i(l),h=s(b.length),C=u(g,h);if(c&&d!=d){for(;h>C;)if((m=b[C++])!=m)return!0}else for(;h>C;C++)if((c||C in b)&&b[C]===d)return c||C||0;return!c&&-1}}},function(n,a,o){var i=o(21),s=Math.min;n.exports=function(u){return u>0?s(i(u),9007199254740991):0}},function(n,a,o){var i=o(21),s=Math.max,u=Math.min;n.exports=function(c,l){return(c=i(c))<0?s(c+l,0):u(c,l)}},function(n,a,o){var i=o(3).document;n.exports=i&&i.documentElement},function(n,a,o){var i=o(5),s=o(18),u=o(25)("IE_PROTO"),c=Object.prototype;n.exports=Object.getPrototypeOf||function(l){return l=s(l),i(l,u)?l[u]:typeof l.constructor=="function"&&l instanceof l.constructor?l.constructor.prototype:l instanceof Object?c:null}},function(n,a,o){var i=o(63),s=o(64),u=o(12),c=o(9);n.exports=o(34)(Array,"Array",function(l,d){this._t=c(l),this._i=0,this._k=d},function(){var l=this._t,d=this._k,g=this._i++;return!l||g>=l.length?(this._t=void 0,s(1)):s(0,d=="keys"?g:d=="values"?l[g]:[g,l[g]])},"values"),u.Arguments=u.Array,i("keys"),i("values"),i("entries")},function(n,a){n.exports=function(){}},function(n,a){n.exports=function(o,i){return{value:i,done:!!o}}},function(n,a,o){n.exports={default:o(66),__esModule:!0}},function(n,a,o){o(67),o(73),o(74),o(75),n.exports=o(1).Symbol},function(n,a,o){var i=o(3),s=o(5),u=o(4),c=o(15),l=o(37),d=o(68).KEY,g=o(8),m=o(26),b=o(28),h=o(17),C=o(2),j=o(30),x=o(31),O=o(69),_=o(70),f=o(10),T=o(11),P=o(18),L=o(9),E=o(23),A=o(16),R=o(38),$=o(71),z=o(72),re=o(32),D=o(7),te=o(13),ce=z.f,B=D.f,fe=$.f,ae=i.Symbol,we=i.JSON,oe=we&&we.stringify,Me=C("_hidden"),Ce=C("toPrimitive"),Ue={}.propertyIsEnumerable,Te=m("symbol-registry"),Re=m("symbols"),ke=m("op-symbols"),De=Object.prototype,q=typeof ae=="function"&&!!re.f,Q=i.QObject,he=!Q||!Q.prototype||!Q.prototype.findChild,ue=u&&g(function(){return R(B({},"a",{get:function(){return B(this,"a",{value:7}).a}})).a!=7})?function(I,V,X){var de=ce(De,V);de&&delete De[V],B(I,V,X),de&&I!==De&&B(De,V,de)}:B,le=function(I){var V=Re[I]=R(ae.prototype);return V._k=I,V},ve=q&&typeof ae.iterator=="symbol"?function(I){return typeof I=="symbol"}:function(I){return I instanceof ae},pe=function(I,V,X){return I===De&&pe(ke,V,X),f(I),V=E(V,!0),f(X),s(Re,V)?(X.enumerable?(s(I,Me)&&I[Me][V]&&(I[Me][V]=!1),X=R(X,{enumerable:A(0,!1)})):(s(I,Me)||B(I,Me,A(1,{})),I[Me][V]=!0),ue(I,V,X)):B(I,V,X)},me=function(I,V){f(I);for(var X,de=O(V=L(V)),Se=0,ie=de.length;ie>Se;)pe(I,X=de[Se++],V[X]);return I},be=function(I){var V=Ue.call(this,I=E(I,!0));return!(this===De&&s(Re,I)&&!s(ke,I))&&(!(V||!s(this,I)||!s(Re,I)||s(this,Me)&&this[Me][I])||V)},Oe=function(I,V){if(I=L(I),V=E(V,!0),I!==De||!s(Re,V)||s(ke,V)){var X=ce(I,V);return!X||!s(Re,V)||s(I,Me)&&I[Me][V]||(X.enumerable=!0),X}},ge=function(I){for(var V,X=fe(L(I)),de=[],Se=0;X.length>Se;)s(Re,V=X[Se++])||V==Me||V==d||de.push(V);return de},Z=function(I){for(var V,X=I===De,de=fe(X?ke:L(I)),Se=[],ie=0;de.length>ie;)!s(Re,V=de[ie++])||X&&!s(De,V)||Se.push(Re[V]);return Se};q||(l((ae=function(){if(this instanceof ae)throw TypeError("Symbol is not a constructor!");var I=h(arguments.length>0?arguments[0]:void 0),V=function(X){this===De&&V.call(ke,X),s(this,Me)&&s(this[Me],I)&&(this[Me][I]=!1),ue(this,I,A(1,X))};return u&&he&&ue(De,I,{configurable:!0,set:V}),le(I)}).prototype,"toString",function(){return this._k}),z.f=Oe,D.f=pe,o(41).f=$.f=ge,o(19).f=be,re.f=Z,u&&!o(14)&&l(De,"propertyIsEnumerable",be,!0),j.f=function(I){return le(C(I))}),c(c.G+c.W+c.F*!q,{Symbol:ae});for(var je="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Je=0;je.length>Je;)C(je[Je++]);for(var Ye=te(C.store),Y=0;Ye.length>Y;)x(Ye[Y++]);c(c.S+c.F*!q,"Symbol",{for:function(I){return s(Te,I+="")?Te[I]:Te[I]=ae(I)},keyFor:function(I){if(!ve(I))throw TypeError(I+" is not a symbol!");for(var V in Te)if(Te[V]===I)return V},useSetter:function(){he=!0},useSimple:function(){he=!1}}),c(c.S+c.F*!q,"Object",{create:function(I,V){return V===void 0?R(I):me(R(I),V)},defineProperty:pe,defineProperties:me,getOwnPropertyDescriptor:Oe,getOwnPropertyNames:ge,getOwnPropertySymbols:Z});var N=g(function(){re.f(1)});c(c.S+c.F*N,"Object",{getOwnPropertySymbols:function(I){return re.f(P(I))}}),we&&c(c.S+c.F*(!q||g(function(){var I=ae();return oe([I])!="[null]"||oe({a:I})!="{}"||oe(Object(I))!="{}"})),"JSON",{stringify:function(I){for(var V,X,de=[I],Se=1;arguments.length>Se;)de.push(arguments[Se++]);if(X=V=de[1],(T(V)||I!==void 0)&&!ve(I))return _(V)||(V=function(ie,Ie){if(typeof X=="function"&&(Ie=X.call(this,ie,Ie)),!ve(Ie))return Ie}),de[1]=V,oe.apply(we,de)}}),ae.prototype[Ce]||o(6)(ae.prototype,Ce,ae.prototype.valueOf),b(ae,"Symbol"),b(Math,"Math",!0),b(i.JSON,"JSON",!0)},function(n,a,o){var i=o(17)("meta"),s=o(11),u=o(5),c=o(7).f,l=0,d=Object.isExtensible||function(){return!0},g=!o(8)(function(){return d(Object.preventExtensions({}))}),m=function(h){c(h,i,{value:{i:"O"+ ++l,w:{}}})},b=n.exports={KEY:i,NEED:!1,fastKey:function(h,C){if(!s(h))return typeof h=="symbol"?h:(typeof h=="string"?"S":"P")+h;if(!u(h,i)){if(!d(h))return"F";if(!C)return"E";m(h)}return h[i].i},getWeak:function(h,C){if(!u(h,i)){if(!d(h))return!0;if(!C)return!1;m(h)}return h[i].w},onFreeze:function(h){return g&&b.NEED&&d(h)&&!u(h,i)&&m(h),h}}},function(n,a,o){var i=o(13),s=o(32),u=o(19);n.exports=function(c){var l=i(c),d=s.f;if(d)for(var g,m=d(c),b=u.f,h=0;m.length>h;)b.call(c,g=m[h++])&&l.push(g);return l}},function(n,a,o){var i=o(24);n.exports=Array.isArray||function(s){return i(s)=="Array"}},function(n,a,o){var i=o(9),s=o(41).f,u={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(l){return c&&u.call(l)=="[object Window]"?function(d){try{return s(d)}catch{return c.slice()}}(l):s(i(l))}},function(n,a,o){var i=o(19),s=o(16),u=o(9),c=o(23),l=o(5),d=o(35),g=Object.getOwnPropertyDescriptor;a.f=o(4)?g:function(m,b){if(m=u(m),b=c(b,!0),d)try{return g(m,b)}catch{}if(l(m,b))return s(!i.f.call(m,b),m[b])}},function(n,a){},function(n,a,o){o(31)("asyncIterator")},function(n,a,o){o(31)("observable")},function(n,a,o){a.__esModule=!0;var i,s=o(77),u=(i=s)&&i.__esModule?i:{default:i};a.default=u.default||function(c){for(var l=1;lj;)for(var _,f=d(arguments[j++]),T=x?s(f).concat(x(f)):s(f),P=T.length,L=0;P>L;)_=T[L++],i&&!O.call(f,_)||(h[_]=f[_]);return h}:g},function(n,a,o){a.__esModule=!0;var i=u(o(82)),s=u(o(85));function u(c){return c&&c.__esModule?c:{default:c}}a.default=function(c,l){if(Array.isArray(c))return c;if((0,i.default)(Object(c)))return function(d,g){var m=[],b=!0,h=!1,C=void 0;try{for(var j,x=(0,s.default)(d);!(b=(j=x.next()).done)&&(m.push(j.value),!g||m.length!==g);b=!0);}catch(O){h=!0,C=O}finally{try{!b&&x.return&&x.return()}finally{if(h)throw C}}return m}(c,l);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,a,o){n.exports={default:o(83),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(84)},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).isIterable=function(c){var l=Object(c);return l[s]!==void 0||"@@iterator"in l||u.hasOwnProperty(i(l))}},function(n,a,o){n.exports={default:o(86),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(87)},function(n,a,o){var i=o(10),s=o(88);n.exports=o(1).getIterator=function(u){var c=s(u);if(typeof c!="function")throw TypeError(u+" is not iterable!");return i(c.call(u))}},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).getIteratorMethod=function(c){if(c!=null)return c[s]||c["@@iterator"]||u[i(c)]}},function(n,a,o){n.exports={default:o(90),__esModule:!0}},function(n,a,o){o(91),n.exports=o(1).Object.keys},function(n,a,o){var i=o(18),s=o(13);o(92)("keys",function(){return function(u){return s(i(u))}})},function(n,a,o){var i=o(15),s=o(1),u=o(8);n.exports=function(c,l){var d=(s.Object||{})[c]||Object[c],g={};g[c]=l(d),i(i.S+i.F*u(function(){d(1)}),"Object",g)}},function(n,a,o){(function(i){var s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u=/^\s+|\s+$/g,c=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,l=/\{\n\/\* \[wrapped with (.+)\] \*/,d=/,? & /,g=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,b=/^\[object .+?Constructor\]$/,h=/^0o[0-7]+$/i,C=/^(?:0|[1-9]\d*)$/,j=parseInt,x=typeof i=="object"&&i&&i.Object===Object&&i,O=typeof self=="object"&&self&&self.Object===Object&&self,_=x||O||Function("return this")();function f(Y,N,I){switch(I.length){case 0:return Y.call(N);case 1:return Y.call(N,I[0]);case 2:return Y.call(N,I[0],I[1]);case 3:return Y.call(N,I[0],I[1],I[2])}return Y.apply(N,I)}function T(Y,N){return!!(Y&&Y.length)&&function(I,V,X){if(V!=V)return function(ie,Ie,He,ze){for(var Qe=ie.length,qe=He+(ze?1:-1);ze?qe--:++qe-1}function P(Y){return Y!=Y}function L(Y,N){for(var I=Y.length,V=0;I--;)Y[I]===N&&V++;return V}function E(Y,N){for(var I=-1,V=Y.length,X=0,de=[];++I2?R:void 0);function Ue(Y){return je(Y)?we(Y):{}}function Te(Y){return!(!je(Y)||function(N){return!!te&&te in N}(Y))&&(function(N){var I=je(N)?fe.call(N):"";return I=="[object Function]"||I=="[object GeneratorFunction]"}(Y)||function(N){var I=!1;if(N!=null&&typeof N.toString!="function")try{I=!!(N+"")}catch{}return I}(Y)?ae:b).test(function(N){if(N!=null){try{return ce.call(N)}catch{}try{return N+""}catch{}}return""}(Y))}function Re(Y,N,I,V){for(var X=-1,de=Y.length,Se=I.length,ie=-1,Ie=N.length,He=oe(de-Se,0),ze=Array(Ie+He),Qe=!V;++ie1&&Be.reverse(),ze&&Ie1?"& ":"")+N[V],N=N.join(I>2?", ":" "),Y.replace(c,`{ /* [wrapped with `+N+`] */ `)}function me(Y,N){return!!(N=N??9007199254740991)&&(typeof Y=="number"||C.test(Y))&&Y>-1&&Y%1==0&&Y1&&u--,l=6*u<1?i+6*(s-i)*u:2*u<1?s:3*u<2?i+(s-i)*(2/3-u)*6:i,c[b]=255*l;return c}},function(n,a,o){(function(i){var s=typeof i=="object"&&i&&i.Object===Object&&i,u=typeof self=="object"&&self&&self.Object===Object&&self,c=s||u||Function("return this")();function l(E,A,R){switch(R.length){case 0:return E.call(A);case 1:return E.call(A,R[0]);case 2:return E.call(A,R[0],R[1]);case 3:return E.call(A,R[0],R[1],R[2])}return E.apply(A,R)}function d(E,A){for(var R=-1,$=A.length,z=E.length;++R<$;)E[z+R]=A[R];return E}var g=Object.prototype,m=g.hasOwnProperty,b=g.toString,h=c.Symbol,C=g.propertyIsEnumerable,j=h?h.isConcatSpreadable:void 0,x=Math.max;function O(E){return _(E)||function(A){return function(R){return function($){return!!$&&typeof $=="object"}(R)&&function($){return $!=null&&function(z){return typeof z=="number"&&z>-1&&z%1==0&&z<=9007199254740991}($.length)&&!function(z){var re=function(D){var te=typeof D;return!!D&&(te=="object"||te=="function")}(z)?b.call(z):"";return re=="[object Function]"||re=="[object GeneratorFunction]"}($)}(R)}(A)&&m.call(A,"callee")&&(!C.call(A,"callee")||b.call(A)=="[object Arguments]")}(E)||!!(j&&E&&E[j])}var _=Array.isArray,f,T,P,L=(T=function(E){var A=(E=function $(z,re,D,te,ce){var B=-1,fe=z.length;for(D||(D=O),ce||(ce=[]);++B0&&D(ae)?re>1?$(ae,re-1,D,te,ce):d(ce,ae):te||(ce[ce.length]=ae)}return ce}(E,1)).length,R=A;for(f;R--;)if(typeof E[R]!="function")throw new TypeError("Expected a function");return function(){for(var $=0,z=A?E[$].apply(this,arguments):arguments[0];++$2?u-2:0),l=2;l"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var p,v=C(w);if(S){var y=C(this).constructor;p=Reflect.construct(v,arguments,y)}else p=v.apply(this,arguments);return x(this,p)}}o.r(a);var _=o(0),f=o.n(_);function T(){var w=this.constructor.getDerivedStateFromProps(this.props,this.state);w!=null&&this.setState(w)}function P(w){this.setState((function(S){var p=this.constructor.getDerivedStateFromProps(w,S);return p??null}).bind(this))}function L(w,S){try{var p=this.props,v=this.state;this.props=w,this.state=S,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(p,v)}finally{this.props=p,this.state=v}}function E(w){var S=w.prototype;if(!S||!S.isReactComponent)throw new Error("Can only polyfill class components");if(typeof w.getDerivedStateFromProps!="function"&&typeof S.getSnapshotBeforeUpdate!="function")return w;var p=null,v=null,y=null;if(typeof S.componentWillMount=="function"?p="componentWillMount":typeof S.UNSAFE_componentWillMount=="function"&&(p="UNSAFE_componentWillMount"),typeof S.componentWillReceiveProps=="function"?v="componentWillReceiveProps":typeof S.UNSAFE_componentWillReceiveProps=="function"&&(v="UNSAFE_componentWillReceiveProps"),typeof S.componentWillUpdate=="function"?y="componentWillUpdate":typeof S.UNSAFE_componentWillUpdate=="function"&&(y="UNSAFE_componentWillUpdate"),p!==null||v!==null||y!==null){var F=w.displayName||w.name,W=typeof w.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. @@ -93,7 +93,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho The above lifecycles should be removed. Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof w.getDerivedStateFromProps=="function"&&(S.componentWillMount=T,S.componentWillReceiveProps=P),typeof S.getSnapshotBeforeUpdate=="function"){if(typeof S.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");S.componentWillUpdate=L;var U=S.componentDidUpdate;S.componentDidUpdate=function(M,K,ee){var se=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:ee;U.call(this,M,K,se)}}return w}function A(w,S){if(w==null)return{};var p,v,y={},F=Object.keys(w);for(v=0;v=0||(y[p]=w[p]);return y}function R(w,S){if(w==null)return{};var p,v,y=A(w,S);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(w);for(v=0;v=0||Object.prototype.propertyIsEnumerable.call(w,p)&&(y[p]=w[p])}return y}function $(w){var S=function(p){return{}.toString.call(p).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(w);return S==="number"&&(S=isNaN(w)?"nan":(0|w)!=w?"float":"integer"),S}T.__suppressDeprecationWarning=!0,P.__suppressDeprecationWarning=!0,L.__suppressDeprecationWarning=!0;var z={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},re={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},D={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},te=o(45),ce=function(w){var S=function(p){return{backgroundColor:p.base00,ellipsisColor:p.base09,braceColor:p.base07,expandedIcon:p.base0D,collapsedIcon:p.base0E,keyColor:p.base07,arrayKeyColor:p.base0C,objectSize:p.base04,copyToClipboard:p.base0F,copyToClipboardCheck:p.base0D,objectBorder:p.base02,dataTypes:{boolean:p.base0E,date:p.base0D,float:p.base0B,function:p.base0D,integer:p.base0F,string:p.base09,nan:p.base08,null:p.base0A,undefined:p.base05,regexp:p.base0A,background:p.base02},editVariable:{editIcon:p.base0E,cancelIcon:p.base09,removeIcon:p.base09,addIcon:p.base0E,checkIcon:p.base0E,background:p.base01,color:p.base0A,border:p.base07},addKeyModal:{background:p.base05,border:p.base04,color:p.base0A,labelColor:p.base01},validationFailure:{background:p.base09,iconColor:p.base01,fontColor:p.base01}}}(w);return{"app-container":{fontFamily:D.globalFontFamily,cursor:D.globalCursor,backgroundColor:S.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:S.ellipsisColor,fontSize:D.ellipsisFontSize,lineHeight:D.ellipsisLineHeight,cursor:D.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:D.braceCursor,fontWeight:D.braceFontWeight,color:S.braceColor},"expanded-icon":{color:S.expandedIcon},"collapsed-icon":{color:S.collapsedIcon},colon:{display:"inline-block",margin:D.keyMargin,color:S.keyColor,verticalAlign:"top"},objectKeyVal:function(p,v){return{style:l({paddingTop:D.keyValPaddingTop,paddingRight:D.keyValPaddingRight,paddingBottom:D.keyValPaddingBottom,borderLeft:D.keyValBorderLeft+" "+S.objectBorder,":hover":{paddingLeft:v.paddingLeft-1+"px",borderLeft:D.keyValBorderHover+" "+S.objectBorder}},v)}},"object-key-val-no-border":{padding:D.keyValPadding},"pushed-content":{marginLeft:D.pushedContentMarginLeft},variableValue:function(p,v){return{style:l({display:"inline-block",paddingRight:D.variableValuePaddingRight,position:"relative"},v)}},"object-name":{display:"inline-block",color:S.keyColor,letterSpacing:D.keyLetterSpacing,fontStyle:D.keyFontStyle,verticalAlign:D.keyVerticalAlign,opacity:D.keyOpacity,":hover":{opacity:D.keyOpacityHover}},"array-key":{display:"inline-block",color:S.arrayKeyColor,letterSpacing:D.keyLetterSpacing,fontStyle:D.keyFontStyle,verticalAlign:D.keyVerticalAlign,opacity:D.keyOpacity,":hover":{opacity:D.keyOpacityHover}},"object-size":{color:S.objectSize,borderRadius:D.objectSizeBorderRadius,fontStyle:D.objectSizeFontStyle,margin:D.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:D.dataTypeFontSize,marginRight:D.dataTypeMarginRight,opacity:D.datatypeOpacity},boolean:{display:"inline-block",color:S.dataTypes.boolean},date:{display:"inline-block",color:S.dataTypes.date},"date-value":{marginLeft:D.dateValueMarginLeft},float:{display:"inline-block",color:S.dataTypes.float},function:{display:"inline-block",color:S.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:S.dataTypes.integer},string:{display:"inline-block",color:S.dataTypes.string},nan:{display:"inline-block",color:S.dataTypes.nan,fontSize:D.nanFontSize,fontWeight:D.nanFontWeight,backgroundColor:S.dataTypes.background,padding:D.nanPadding,borderRadius:D.nanBorderRadius},null:{display:"inline-block",color:S.dataTypes.null,fontSize:D.nullFontSize,fontWeight:D.nullFontWeight,backgroundColor:S.dataTypes.background,padding:D.nullPadding,borderRadius:D.nullBorderRadius},undefined:{display:"inline-block",color:S.dataTypes.undefined,fontSize:D.undefinedFontSize,padding:D.undefinedPadding,borderRadius:D.undefinedBorderRadius,backgroundColor:S.dataTypes.background},regexp:{display:"inline-block",color:S.dataTypes.regexp},"copy-to-clipboard":{cursor:D.clipboardCursor},"copy-icon":{color:S.copyToClipboard,fontSize:D.iconFontSize,marginRight:D.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:S.copyToClipboardCheck,marginLeft:D.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:D.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:D.metaDataPadding},"icon-container":{display:"inline-block",width:D.iconContainerWidth},tooltip:{padding:D.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:S.editVariable.removeIcon,cursor:D.iconCursor,fontSize:D.iconFontSize,marginRight:D.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:S.editVariable.addIcon,cursor:D.iconCursor,fontSize:D.iconFontSize,marginRight:D.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:S.editVariable.editIcon,cursor:D.iconCursor,fontSize:D.iconFontSize,marginRight:D.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:D.iconCursor,color:S.editVariable.checkIcon,fontSize:D.iconFontSize,paddingRight:D.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:D.iconCursor,color:S.editVariable.cancelIcon,fontSize:D.iconFontSize,paddingRight:D.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:D.editInputMinWidth,borderRadius:D.editInputBorderRadius,backgroundColor:S.editVariable.background,color:S.editVariable.color,padding:D.editInputPadding,marginRight:D.editInputMarginRight,fontFamily:D.editInputFontFamily},"detected-row":{paddingTop:D.detectedRowPaddingTop},"key-modal-request":{position:D.addKeyCoverPosition,top:D.addKeyCoverPositionPx,left:D.addKeyCoverPositionPx,right:D.addKeyCoverPositionPx,bottom:D.addKeyCoverPositionPx,backgroundColor:D.addKeyCoverBackground},"key-modal":{width:D.addKeyModalWidth,backgroundColor:S.addKeyModal.background,marginLeft:D.addKeyModalMargin,marginRight:D.addKeyModalMargin,padding:D.addKeyModalPadding,borderRadius:D.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:S.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:S.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:S.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:S.addKeyModal.labelColor,fontSize:D.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:S.editVariable.addIcon,fontSize:D.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:S.ellipsisColor,fontSize:D.ellipsisFontSize,lineHeight:D.ellipsisLineHeight,cursor:D.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:S.validationFailure.fontColor,backgroundColor:S.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:S.validationFailure.iconColor,fontSize:D.iconFontSize,transform:"rotate(45deg)"}}};function B(w,S,p){return w||console.error("theme has not been set"),function(v){var y=z;return v!==!1&&v!=="none"||(y=re),Object(te.createStyling)(ce,{defaultBase16:y})(v)}(w)(S,p)}var fe=function(w){h(p,w);var S=O(p);function p(){return d(this,p),S.apply(this,arguments)}return m(p,[{key:"render",value:function(){var v=this.props,y=(v.rjvId,v.type_name),F=v.displayDataTypes,W=v.theme;return F?f.a.createElement("span",Object.assign({className:"data-type-label"},B(W,"data-type-label")),y):null}}]),p}(f.a.PureComponent),ae=function(w){h(p,w);var S=O(p);function p(){return d(this,p),S.apply(this,arguments)}return m(p,[{key:"render",value:function(){var v=this.props;return f.a.createElement("div",B(v.theme,"boolean"),f.a.createElement(fe,Object.assign({type_name:"bool"},v)),v.value?"true":"false")}}]),p}(f.a.PureComponent),we=function(w){h(p,w);var S=O(p);function p(){return d(this,p),S.apply(this,arguments)}return m(p,[{key:"render",value:function(){var v=this.props;return f.a.createElement("div",B(v.theme,"date"),f.a.createElement(fe,Object.assign({type_name:"date"},v)),f.a.createElement("span",Object.assign({className:"date-value"},B(v.theme,"date-value")),v.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),p}(f.a.PureComponent),oe=function(w){h(p,w);var S=O(p);function p(){return d(this,p),S.apply(this,arguments)}return m(p,[{key:"render",value:function(){var v=this.props;return f.a.createElement("div",B(v.theme,"float"),f.a.createElement(fe,Object.assign({type_name:"float"},v)),this.props.value)}}]),p}(f.a.PureComponent);function Me(w,S){(S==null||S>w.length)&&(S=w.length);for(var p=0,v=new Array(S);p=w.length?{done:!0}:{done:!1,value:w[v++]}},e:function(M){throw M},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var F,W=!0,U=!1;return{s:function(){p=p.call(w)},n:function(){var M=p.next();return W=M.done,M},e:function(M){U=!0,F=M},f:function(){try{W||p.return==null||p.return()}finally{if(U)throw F}}}}function Te(w){return function(S){if(Array.isArray(S))return Me(S)}(w)||function(S){if(typeof Symbol<"u"&&S[Symbol.iterator]!=null||S["@@iterator"]!=null)return Array.from(S)}(w)||Ce(w)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Re=o(46),ke=new(o(47)).Dispatcher,De=new(function(w){h(p,w);var S=O(p);function p(){var v;d(this,p);for(var y=arguments.length,F=new Array(y),W=0;Wy&&(U.style.cursor="pointer",this.state.collapsed&&(W=f.a.createElement("span",null,W.substring(0,y),f.a.createElement("span",B(F,"ellipsis")," ...")))),f.a.createElement("div",B(F,"string"),f.a.createElement(fe,Object.assign({type_name:"string"},v)),f.a.createElement("span",Object.assign({className:"string-value"},U,{onClick:this.toggleCollapsed}),'"',W,'"'))}}]),p}(f.a.PureComponent),me=function(w){h(p,w);var S=O(p);function p(){return d(this,p),S.apply(this,arguments)}return m(p,[{key:"render",value:function(){return f.a.createElement("div",B(this.props.theme,"undefined"),"undefined")}}]),p}(f.a.PureComponent);function be(){return(be=Object.assign?Object.assign.bind():function(w){for(var S=1;S0?se:null,namespace:ee.splice(0,ee.length-1),existing_value:Ee,variable_removed:!1,key_name:null};$(Ee)==="object"?ke.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:Pe,data:Le}):ke.dispatch({name:"VARIABLE_ADDED",rjvId:Pe,data:l(l({},Le),{},{new_value:[].concat(Te(Ee),[null])})})}})))},v.getRemoveObject=function(U){var M=v.props,K=M.theme,ee=(M.hover,M.namespace),se=M.name,Ee=M.src,Pe=M.rjvId;if(ee.length!==1)return f.a.createElement("span",{className:"click-to-remove",style:{display:U?"inline-block":"none"}},f.a.createElement(pn,Object.assign({className:"click-to-remove-icon"},B(K,"removeVarIcon"),{onClick:function(){ke.dispatch({name:"VARIABLE_REMOVED",rjvId:Pe,data:{name:se,namespace:ee.splice(0,ee.length-1),existing_value:Ee,variable_removed:!0}})}})))},v.render=function(){var U=v.props,M=U.theme,K=U.onDelete,ee=U.onAdd,se=U.enableClipboard,Ee=U.src,Pe=U.namespace,ye=U.rowHovered;return f.a.createElement("div",Object.assign({},B(M,"object-meta-data"),{className:"object-meta-data",onClick:function(Le){Le.stopPropagation()}}),v.getObjectSize(),se?f.a.createElement(_a,{rowHovered:ye,clickCallback:se,src:Ee,theme:M,namespace:Pe}):null,ee!==!1?v.getAddAttribute(ye):null,K!==!1?v.getRemoveObject(ye):null)},v}return m(p)}(f.a.PureComponent);function Ta(w){var S=w.parent_type,p=w.namespace,v=w.quotesOnKeys,y=w.theme,F=w.jsvRoot,W=w.name,U=w.displayArrayKey,M=w.name?w.name:"";return!F||W!==!1&&W!==null?S=="array"?U?f.a.createElement("span",Object.assign({},B(y,"array-key"),{key:p}),f.a.createElement("span",{className:"array-key"},M),f.a.createElement("span",B(y,"colon"),":")):f.a.createElement("span",null):f.a.createElement("span",Object.assign({},B(y,"object-name"),{key:p}),f.a.createElement("span",{className:"object-key"},v&&f.a.createElement("span",{style:{verticalAlign:"top"}},'"'),f.a.createElement("span",null,M),v&&f.a.createElement("span",{style:{verticalAlign:"top"}},'"')),f.a.createElement("span",B(y,"colon"),":")):f.a.createElement("span",null)}function Pa(w){var S=w.theme;switch(w.iconStyle){case"triangle":return f.a.createElement(Qt,Object.assign({},B(S,"expanded-icon"),{className:"expanded-icon"}));case"square":return f.a.createElement(dt,Object.assign({},B(S,"expanded-icon"),{className:"expanded-icon"}));default:return f.a.createElement(tt,Object.assign({},B(S,"expanded-icon"),{className:"expanded-icon"}))}}function ka(w){var S=w.theme;switch(w.iconStyle){case"triangle":return f.a.createElement(pt,Object.assign({},B(S,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return f.a.createElement(st,Object.assign({},B(S,"collapsed-icon"),{className:"collapsed-icon"}));default:return f.a.createElement(yt,Object.assign({},B(S,"collapsed-icon"),{className:"collapsed-icon"}))}}var ms=["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"],ja=function(w){h(p,w);var S=O(p);function p(v){var y;return d(this,p),(y=S.call(this,v)).toggleCollapsed=function(F){var W=[];for(var U in y.state.expanded)W.push(y.state.expanded[U]);W[F]=!W[F],y.setState({expanded:W})},y.state={expanded:[]},y}return m(p,[{key:"getExpandedIcon",value:function(v){var y=this.props,F=y.theme,W=y.iconStyle;return this.state.expanded[v]?f.a.createElement(Pa,{theme:F,iconStyle:W}):f.a.createElement(ka,{theme:F,iconStyle:W})}},{key:"render",value:function(){var v=this,y=this.props,F=y.src,W=y.groupArraysAfterLength,U=(y.depth,y.name),M=y.theme,K=y.jsvRoot,ee=y.namespace,se=(y.parent_type,R(y,ms)),Ee=0,Pe=5*this.props.indentWidth;K||(Ee=5*this.props.indentWidth);var ye=W,Le=Math.ceil(F.length/ye);return f.a.createElement("div",Object.assign({className:"object-key-val"},B(M,K?"jsv-root":"objectKeyVal",{paddingLeft:Ee})),f.a.createElement(Ta,this.props),f.a.createElement("span",null,f.a.createElement(Ca,Object.assign({size:F.length},this.props))),Te(Array(Le)).map(function(We,Ae){return f.a.createElement("div",Object.assign({key:Ae,className:"object-key-val array-group"},B(M,"objectKeyVal",{marginLeft:6,paddingLeft:Pe})),f.a.createElement("span",B(M,"brace-row"),f.a.createElement("div",Object.assign({className:"icon-container"},B(M,"icon-container"),{onClick:function(rt){v.toggleCollapsed(Ae)}}),v.getExpandedIcon(Ae)),v.state.expanded[Ae]?f.a.createElement(hr,Object.assign({key:U+Ae,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:ye,index_offset:Ae*ye,src:F.slice(Ae*ye,Ae*ye+ye),namespace:ee,type:"array",parent_type:"array_group",theme:M},se)):f.a.createElement("span",Object.assign({},B(M,"brace"),{onClick:function(rt){v.toggleCollapsed(Ae)},className:"array-group-brace"}),"[",f.a.createElement("div",Object.assign({},B(M,"array-group-meta-data"),{className:"array-group-meta-data"}),f.a.createElement("span",Object.assign({className:"object-size"},B(M,"object-size")),Ae*ye," - ",Ae*ye+ye>F.length?F.length:Ae*ye+ye)),"]")))}))}}]),p}(f.a.PureComponent),vs=["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"],mn=function(w){h(p,w);var S=O(p);function p(v){var y;d(this,p),(y=S.call(this,v)).toggleCollapsed=function(){y.setState({expanded:!y.state.expanded},function(){q.set(y.props.rjvId,y.props.namespace,"expanded",y.state.expanded)})},y.getObjectContent=function(W,U,M){return f.a.createElement("div",{className:"pushed-content object-container"},f.a.createElement("div",Object.assign({className:"object-content"},B(y.props.theme,"pushed-content")),y.renderObjectContents(U,M)))},y.getEllipsis=function(){return y.state.size===0?null:f.a.createElement("div",Object.assign({},B(y.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:y.toggleCollapsed}),"...")},y.getObjectMetaData=function(W){var U=y.props,M=(U.rjvId,U.theme,y.state),K=M.size,ee=M.hovered;return f.a.createElement(Ca,Object.assign({rowHovered:ee,size:K},y.props))},y.renderObjectContents=function(W,U){var M,K=y.props,ee=K.depth,se=K.parent_type,Ee=K.index_offset,Pe=K.groupArraysAfterLength,ye=K.namespace,Le=y.state.object_type,We=[],Ae=Object.keys(W||{});return y.props.sortKeys&&Le!=="array"&&(Ae=Ae.sort()),Ae.forEach(function(rt){if(M=new bs(rt,W[rt]),se==="array_group"&&Ee&&(M.name=parseInt(M.name)+Ee),W.hasOwnProperty(rt))if(M.type==="object")We.push(f.a.createElement(hr,Object.assign({key:M.name,depth:ee+1,name:M.name,src:M.value,namespace:ye.concat(M.name),parent_type:Le},U)));else if(M.type==="array"){var wt=hr;Pe&&M.value.length>Pe&&(wt=ja),We.push(f.a.createElement(wt,Object.assign({key:M.name,depth:ee+1,name:M.name,src:M.value,namespace:ye.concat(M.name),type:"array",parent_type:Le},U)))}else We.push(f.a.createElement(hs,Object.assign({key:M.name+"_"+ye,variable:M,singleIndent:5,namespace:ye,type:y.props.type},U)))}),We};var F=p.getState(v);return y.state=l(l({},F),{},{prevProps:{}}),y}return m(p,[{key:"getBraceStart",value:function(v,y){var F=this,W=this.props,U=W.src,M=W.theme,K=W.iconStyle;if(W.parent_type==="array_group")return f.a.createElement("span",null,f.a.createElement("span",B(M,"brace"),v==="array"?"[":"{"),y?this.getObjectMetaData(U):null);var ee=y?Pa:ka;return f.a.createElement("span",null,f.a.createElement("span",Object.assign({onClick:function(se){F.toggleCollapsed()}},B(M,"brace-row")),f.a.createElement("div",Object.assign({className:"icon-container"},B(M,"icon-container")),f.a.createElement(ee,{theme:M,iconStyle:K})),f.a.createElement(Ta,this.props),f.a.createElement("span",B(M,"brace"),v==="array"?"[":"{")),y?this.getObjectMetaData(U):null)}},{key:"render",value:function(){var v=this,y=this.props,F=y.depth,W=y.src,U=(y.namespace,y.name,y.type,y.parent_type),M=y.theme,K=y.jsvRoot,ee=y.iconStyle,se=R(y,vs),Ee=this.state,Pe=Ee.object_type,ye=Ee.expanded,Le={};return K||U==="array_group"?U==="array_group"&&(Le.borderLeft=0,Le.display="inline"):Le.paddingLeft=5*this.props.indentWidth,f.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return v.setState(l(l({},v.state),{},{hovered:!0}))},onMouseLeave:function(){return v.setState(l(l({},v.state),{},{hovered:!1}))}},B(M,K?"jsv-root":"objectKeyVal",Le)),this.getBraceStart(Pe,ye),ye?this.getObjectContent(F,W,l({theme:M,iconStyle:ee},se)):this.getEllipsis(),f.a.createElement("span",{className:"brace-row"},f.a.createElement("span",{style:l(l({},B(M,"brace").style),{},{paddingLeft:ye?"3px":"0px"})},Pe==="array"?"]":"}"),ye?null:this.getObjectMetaData(W)))}}],[{key:"getDerivedStateFromProps",value:function(v,y){var F=y.prevProps;return v.src!==F.src||v.collapsed!==F.collapsed||v.name!==F.name||v.namespace!==F.namespace||v.rjvId!==F.rjvId?l(l({},p.getState(v)),{},{prevProps:v}):null}}]),p}(f.a.PureComponent);mn.getState=function(w){var S=Object.keys(w.src).length,p=(w.collapsed===!1||w.collapsed!==!0&&w.collapsed>w.depth)&&(!w.shouldCollapse||w.shouldCollapse({name:w.name,src:w.src,type:$(w.src),namespace:w.namespace})===!1)&&S!==0;return{expanded:q.get(w.rjvId,w.namespace,"expanded",p),object_type:w.type==="array"?"array":"object",parent_type:w.type==="array"?"array":"object",size:S,hovered:!1}};var bs=m(function w(S,p){d(this,w),this.name=S,this.value=p,this.type=$(p)});E(mn);var hr=mn,gs=function(w){h(p,w);var S=O(p);function p(){var v;d(this,p);for(var y=arguments.length,F=new Array(y),W=0;Wse.groupArraysAfterLength&&(Pe=ja),f.a.createElement("div",{className:"pretty-json-container object-container"},f.a.createElement("div",{className:"object-content"},f.a.createElement(Pe,Object.assign({namespace:Ee,depth:0,jsvRoot:!0},se))))},v}return m(p)}(f.a.PureComponent),ys=function(w){h(p,w);var S=O(p);function p(v){var y;return d(this,p),(y=S.call(this,v)).closeModal=function(){ke.dispatch({rjvId:y.props.rjvId,name:"RESET"})},y.submit=function(){y.props.submit(y.state.input)},y.state={input:v.input?v.input:""},y}return m(p,[{key:"render",value:function(){var v=this,y=this.props,F=y.theme,W=y.rjvId,U=y.isValid,M=this.state.input,K=U(M);return f.a.createElement("div",Object.assign({className:"key-modal-request"},B(F,"key-modal-request"),{onClick:this.closeModal}),f.a.createElement("div",Object.assign({},B(F,"key-modal"),{onClick:function(ee){ee.stopPropagation()}}),f.a.createElement("div",B(F,"key-modal-label"),"Key Name:"),f.a.createElement("div",{style:{position:"relative"}},f.a.createElement("input",Object.assign({},B(F,"key-modal-input"),{className:"key-modal-input",ref:function(ee){return ee&&ee.focus()},spellCheck:!1,value:M,placeholder:"...",onChange:function(ee){v.setState({input:ee.target.value})},onKeyPress:function(ee){K&&ee.key==="Enter"?v.submit():ee.key==="Escape"&&v.closeModal()}})),K?f.a.createElement(hn,Object.assign({},B(F,"key-modal-submit"),{className:"key-modal-submit",onClick:function(ee){return v.submit()}})):null),f.a.createElement("span",B(F,"key-modal-cancel"),f.a.createElement(xa,Object.assign({},B(F,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){ke.dispatch({rjvId:W,name:"RESET"})}})))))}}]),p}(f.a.PureComponent),ws=function(w){h(p,w);var S=O(p);function p(){var v;d(this,p);for(var y=arguments.length,F=new Array(y),W=0;W/g,">")}var xh=function(e,t){var r="",n=Oh(t),a=function(i,s,u,c){if(!i.length)return s+" "+u;var l=s+` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Re=o(46),ke=new(o(47)).Dispatcher,De=new(function(w){h(p,w);var S=O(p);function p(){var v;d(this,p);for(var y=arguments.length,F=new Array(y),W=0;Wy&&(U.style.cursor="pointer",this.state.collapsed&&(W=f.a.createElement("span",null,W.substring(0,y),f.a.createElement("span",B(F,"ellipsis")," ...")))),f.a.createElement("div",B(F,"string"),f.a.createElement(fe,Object.assign({type_name:"string"},v)),f.a.createElement("span",Object.assign({className:"string-value"},U,{onClick:this.toggleCollapsed}),'"',W,'"'))}}]),p}(f.a.PureComponent),me=function(w){h(p,w);var S=O(p);function p(){return d(this,p),S.apply(this,arguments)}return m(p,[{key:"render",value:function(){return f.a.createElement("div",B(this.props.theme,"undefined"),"undefined")}}]),p}(f.a.PureComponent);function be(){return(be=Object.assign?Object.assign.bind():function(w){for(var S=1;S0?se:null,namespace:ee.splice(0,ee.length-1),existing_value:Ee,variable_removed:!1,key_name:null};$(Ee)==="object"?ke.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:Pe,data:Le}):ke.dispatch({name:"VARIABLE_ADDED",rjvId:Pe,data:l(l({},Le),{},{new_value:[].concat(Te(Ee),[null])})})}})))},v.getRemoveObject=function(U){var M=v.props,K=M.theme,ee=(M.hover,M.namespace),se=M.name,Ee=M.src,Pe=M.rjvId;if(ee.length!==1)return f.a.createElement("span",{className:"click-to-remove",style:{display:U?"inline-block":"none"}},f.a.createElement(hn,Object.assign({className:"click-to-remove-icon"},B(K,"removeVarIcon"),{onClick:function(){ke.dispatch({name:"VARIABLE_REMOVED",rjvId:Pe,data:{name:se,namespace:ee.splice(0,ee.length-1),existing_value:Ee,variable_removed:!0}})}})))},v.render=function(){var U=v.props,M=U.theme,K=U.onDelete,ee=U.onAdd,se=U.enableClipboard,Ee=U.src,Pe=U.namespace,ye=U.rowHovered;return f.a.createElement("div",Object.assign({},B(M,"object-meta-data"),{className:"object-meta-data",onClick:function(Le){Le.stopPropagation()}}),v.getObjectSize(),se?f.a.createElement(_a,{rowHovered:ye,clickCallback:se,src:Ee,theme:M,namespace:Pe}):null,ee!==!1?v.getAddAttribute(ye):null,K!==!1?v.getRemoveObject(ye):null)},v}return m(p)}(f.a.PureComponent);function Ta(w){var S=w.parent_type,p=w.namespace,v=w.quotesOnKeys,y=w.theme,F=w.jsvRoot,W=w.name,U=w.displayArrayKey,M=w.name?w.name:"";return!F||W!==!1&&W!==null?S=="array"?U?f.a.createElement("span",Object.assign({},B(y,"array-key"),{key:p}),f.a.createElement("span",{className:"array-key"},M),f.a.createElement("span",B(y,"colon"),":")):f.a.createElement("span",null):f.a.createElement("span",Object.assign({},B(y,"object-name"),{key:p}),f.a.createElement("span",{className:"object-key"},v&&f.a.createElement("span",{style:{verticalAlign:"top"}},'"'),f.a.createElement("span",null,M),v&&f.a.createElement("span",{style:{verticalAlign:"top"}},'"')),f.a.createElement("span",B(y,"colon"),":")):f.a.createElement("span",null)}function Pa(w){var S=w.theme;switch(w.iconStyle){case"triangle":return f.a.createElement(Qt,Object.assign({},B(S,"expanded-icon"),{className:"expanded-icon"}));case"square":return f.a.createElement(dt,Object.assign({},B(S,"expanded-icon"),{className:"expanded-icon"}));default:return f.a.createElement(tt,Object.assign({},B(S,"expanded-icon"),{className:"expanded-icon"}))}}function ka(w){var S=w.theme;switch(w.iconStyle){case"triangle":return f.a.createElement(pt,Object.assign({},B(S,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return f.a.createElement(st,Object.assign({},B(S,"collapsed-icon"),{className:"collapsed-icon"}));default:return f.a.createElement(yt,Object.assign({},B(S,"collapsed-icon"),{className:"collapsed-icon"}))}}var ms=["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"],ja=function(w){h(p,w);var S=O(p);function p(v){var y;return d(this,p),(y=S.call(this,v)).toggleCollapsed=function(F){var W=[];for(var U in y.state.expanded)W.push(y.state.expanded[U]);W[F]=!W[F],y.setState({expanded:W})},y.state={expanded:[]},y}return m(p,[{key:"getExpandedIcon",value:function(v){var y=this.props,F=y.theme,W=y.iconStyle;return this.state.expanded[v]?f.a.createElement(Pa,{theme:F,iconStyle:W}):f.a.createElement(ka,{theme:F,iconStyle:W})}},{key:"render",value:function(){var v=this,y=this.props,F=y.src,W=y.groupArraysAfterLength,U=(y.depth,y.name),M=y.theme,K=y.jsvRoot,ee=y.namespace,se=(y.parent_type,R(y,ms)),Ee=0,Pe=5*this.props.indentWidth;K||(Ee=5*this.props.indentWidth);var ye=W,Le=Math.ceil(F.length/ye);return f.a.createElement("div",Object.assign({className:"object-key-val"},B(M,K?"jsv-root":"objectKeyVal",{paddingLeft:Ee})),f.a.createElement(Ta,this.props),f.a.createElement("span",null,f.a.createElement(Ca,Object.assign({size:F.length},this.props))),Te(Array(Le)).map(function(We,Ae){return f.a.createElement("div",Object.assign({key:Ae,className:"object-key-val array-group"},B(M,"objectKeyVal",{marginLeft:6,paddingLeft:Pe})),f.a.createElement("span",B(M,"brace-row"),f.a.createElement("div",Object.assign({className:"icon-container"},B(M,"icon-container"),{onClick:function(rt){v.toggleCollapsed(Ae)}}),v.getExpandedIcon(Ae)),v.state.expanded[Ae]?f.a.createElement(hr,Object.assign({key:U+Ae,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:ye,index_offset:Ae*ye,src:F.slice(Ae*ye,Ae*ye+ye),namespace:ee,type:"array",parent_type:"array_group",theme:M},se)):f.a.createElement("span",Object.assign({},B(M,"brace"),{onClick:function(rt){v.toggleCollapsed(Ae)},className:"array-group-brace"}),"[",f.a.createElement("div",Object.assign({},B(M,"array-group-meta-data"),{className:"array-group-meta-data"}),f.a.createElement("span",Object.assign({className:"object-size"},B(M,"object-size")),Ae*ye," - ",Ae*ye+ye>F.length?F.length:Ae*ye+ye)),"]")))}))}}]),p}(f.a.PureComponent),vs=["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"],vn=function(w){h(p,w);var S=O(p);function p(v){var y;d(this,p),(y=S.call(this,v)).toggleCollapsed=function(){y.setState({expanded:!y.state.expanded},function(){q.set(y.props.rjvId,y.props.namespace,"expanded",y.state.expanded)})},y.getObjectContent=function(W,U,M){return f.a.createElement("div",{className:"pushed-content object-container"},f.a.createElement("div",Object.assign({className:"object-content"},B(y.props.theme,"pushed-content")),y.renderObjectContents(U,M)))},y.getEllipsis=function(){return y.state.size===0?null:f.a.createElement("div",Object.assign({},B(y.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:y.toggleCollapsed}),"...")},y.getObjectMetaData=function(W){var U=y.props,M=(U.rjvId,U.theme,y.state),K=M.size,ee=M.hovered;return f.a.createElement(Ca,Object.assign({rowHovered:ee,size:K},y.props))},y.renderObjectContents=function(W,U){var M,K=y.props,ee=K.depth,se=K.parent_type,Ee=K.index_offset,Pe=K.groupArraysAfterLength,ye=K.namespace,Le=y.state.object_type,We=[],Ae=Object.keys(W||{});return y.props.sortKeys&&Le!=="array"&&(Ae=Ae.sort()),Ae.forEach(function(rt){if(M=new bs(rt,W[rt]),se==="array_group"&&Ee&&(M.name=parseInt(M.name)+Ee),W.hasOwnProperty(rt))if(M.type==="object")We.push(f.a.createElement(hr,Object.assign({key:M.name,depth:ee+1,name:M.name,src:M.value,namespace:ye.concat(M.name),parent_type:Le},U)));else if(M.type==="array"){var wt=hr;Pe&&M.value.length>Pe&&(wt=ja),We.push(f.a.createElement(wt,Object.assign({key:M.name,depth:ee+1,name:M.name,src:M.value,namespace:ye.concat(M.name),type:"array",parent_type:Le},U)))}else We.push(f.a.createElement(hs,Object.assign({key:M.name+"_"+ye,variable:M,singleIndent:5,namespace:ye,type:y.props.type},U)))}),We};var F=p.getState(v);return y.state=l(l({},F),{},{prevProps:{}}),y}return m(p,[{key:"getBraceStart",value:function(v,y){var F=this,W=this.props,U=W.src,M=W.theme,K=W.iconStyle;if(W.parent_type==="array_group")return f.a.createElement("span",null,f.a.createElement("span",B(M,"brace"),v==="array"?"[":"{"),y?this.getObjectMetaData(U):null);var ee=y?Pa:ka;return f.a.createElement("span",null,f.a.createElement("span",Object.assign({onClick:function(se){F.toggleCollapsed()}},B(M,"brace-row")),f.a.createElement("div",Object.assign({className:"icon-container"},B(M,"icon-container")),f.a.createElement(ee,{theme:M,iconStyle:K})),f.a.createElement(Ta,this.props),f.a.createElement("span",B(M,"brace"),v==="array"?"[":"{")),y?this.getObjectMetaData(U):null)}},{key:"render",value:function(){var v=this,y=this.props,F=y.depth,W=y.src,U=(y.namespace,y.name,y.type,y.parent_type),M=y.theme,K=y.jsvRoot,ee=y.iconStyle,se=R(y,vs),Ee=this.state,Pe=Ee.object_type,ye=Ee.expanded,Le={};return K||U==="array_group"?U==="array_group"&&(Le.borderLeft=0,Le.display="inline"):Le.paddingLeft=5*this.props.indentWidth,f.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return v.setState(l(l({},v.state),{},{hovered:!0}))},onMouseLeave:function(){return v.setState(l(l({},v.state),{},{hovered:!1}))}},B(M,K?"jsv-root":"objectKeyVal",Le)),this.getBraceStart(Pe,ye),ye?this.getObjectContent(F,W,l({theme:M,iconStyle:ee},se)):this.getEllipsis(),f.a.createElement("span",{className:"brace-row"},f.a.createElement("span",{style:l(l({},B(M,"brace").style),{},{paddingLeft:ye?"3px":"0px"})},Pe==="array"?"]":"}"),ye?null:this.getObjectMetaData(W)))}}],[{key:"getDerivedStateFromProps",value:function(v,y){var F=y.prevProps;return v.src!==F.src||v.collapsed!==F.collapsed||v.name!==F.name||v.namespace!==F.namespace||v.rjvId!==F.rjvId?l(l({},p.getState(v)),{},{prevProps:v}):null}}]),p}(f.a.PureComponent);vn.getState=function(w){var S=Object.keys(w.src).length,p=(w.collapsed===!1||w.collapsed!==!0&&w.collapsed>w.depth)&&(!w.shouldCollapse||w.shouldCollapse({name:w.name,src:w.src,type:$(w.src),namespace:w.namespace})===!1)&&S!==0;return{expanded:q.get(w.rjvId,w.namespace,"expanded",p),object_type:w.type==="array"?"array":"object",parent_type:w.type==="array"?"array":"object",size:S,hovered:!1}};var bs=m(function w(S,p){d(this,w),this.name=S,this.value=p,this.type=$(p)});E(vn);var hr=vn,gs=function(w){h(p,w);var S=O(p);function p(){var v;d(this,p);for(var y=arguments.length,F=new Array(y),W=0;Wse.groupArraysAfterLength&&(Pe=ja),f.a.createElement("div",{className:"pretty-json-container object-container"},f.a.createElement("div",{className:"object-content"},f.a.createElement(Pe,Object.assign({namespace:Ee,depth:0,jsvRoot:!0},se))))},v}return m(p)}(f.a.PureComponent),ys=function(w){h(p,w);var S=O(p);function p(v){var y;return d(this,p),(y=S.call(this,v)).closeModal=function(){ke.dispatch({rjvId:y.props.rjvId,name:"RESET"})},y.submit=function(){y.props.submit(y.state.input)},y.state={input:v.input?v.input:""},y}return m(p,[{key:"render",value:function(){var v=this,y=this.props,F=y.theme,W=y.rjvId,U=y.isValid,M=this.state.input,K=U(M);return f.a.createElement("div",Object.assign({className:"key-modal-request"},B(F,"key-modal-request"),{onClick:this.closeModal}),f.a.createElement("div",Object.assign({},B(F,"key-modal"),{onClick:function(ee){ee.stopPropagation()}}),f.a.createElement("div",B(F,"key-modal-label"),"Key Name:"),f.a.createElement("div",{style:{position:"relative"}},f.a.createElement("input",Object.assign({},B(F,"key-modal-input"),{className:"key-modal-input",ref:function(ee){return ee&&ee.focus()},spellCheck:!1,value:M,placeholder:"...",onChange:function(ee){v.setState({input:ee.target.value})},onKeyPress:function(ee){K&&ee.key==="Enter"?v.submit():ee.key==="Escape"&&v.closeModal()}})),K?f.a.createElement(mn,Object.assign({},B(F,"key-modal-submit"),{className:"key-modal-submit",onClick:function(ee){return v.submit()}})):null),f.a.createElement("span",B(F,"key-modal-cancel"),f.a.createElement(xa,Object.assign({},B(F,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){ke.dispatch({rjvId:W,name:"RESET"})}})))))}}]),p}(f.a.PureComponent),ws=function(w){h(p,w);var S=O(p);function p(){var v;d(this,p);for(var y=arguments.length,F=new Array(y),W=0;W/g,">")}var xh=function(e,t){var r="",n=Oh(t),a=function(i,s,u,c){if(!i.length)return s+" "+u;var l=s+` `;return r+=Jo,i.forEach(function(d,g){l+=r+c(d)+(g"+i+"";case"number":return""+i+"";case"date":return'"'+ar(i.toISOString())+'"';case"null":return"null";case"string":return""'+ar(i.replace(/\n/g,` `+r))+'"';case"link":return""'+ar(i)+'"';case"array":return a(i,"[","]",o);case"object":var s=Object.keys(i).filter(function(u){return i[u]!==void 0});return a(s,"{","}",function(u){return""'+ar(u)+'": '+o(i[u])})}return""}return"
"+o(e)+"
"};const Cm=Lr(xh);var fs={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** @@ -104,4 +104,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * @namespace * @public */var r=function(n){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,i={},s={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function x(O){return O instanceof u?new u(O.type,x(O.content),O.alias):Array.isArray(O)?O.map(x):O.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(f){var x=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(f.stack)||[])[1];if(x){var O=document.getElementsByTagName("script");for(var _ in O)if(O[_].src==x)return O[_]}return null}},isActive:function(x,O,_){for(var f="no-"+O;x;){var T=x.classList;if(T.contains(O))return!0;if(T.contains(f))return!1;x=x.parentElement}return!!_}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(x,O){var _=s.util.clone(s.languages[x]);for(var f in O)_[f]=O[f];return _},insertBefore:function(x,O,_,f){f=f||s.languages;var T=f[x],P={};for(var L in T)if(T.hasOwnProperty(L)){if(L==O)for(var E in _)_.hasOwnProperty(E)&&(P[E]=_[E]);_.hasOwnProperty(L)||(P[L]=T[L])}var A=f[x];return f[x]=P,s.languages.DFS(s.languages,function(R,$){$===A&&R!=x&&(this[R]=P)}),P},DFS:function x(O,_,f,T){T=T||{};var P=s.util.objId;for(var L in O)if(O.hasOwnProperty(L)){_.call(O,L,O[L],f||L);var E=O[L],A=s.util.type(E);A==="Object"&&!T[P(E)]?(T[P(E)]=!0,x(E,_,null,T)):A==="Array"&&!T[P(E)]&&(T[P(E)]=!0,x(E,_,L,T))}}},plugins:{},highlightAll:function(x,O){s.highlightAllUnder(document,x,O)},highlightAllUnder:function(x,O,_){var f={callback:_,container:x,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",f),f.elements=Array.prototype.slice.apply(f.container.querySelectorAll(f.selector)),s.hooks.run("before-all-elements-highlight",f);for(var T=0,P;P=f.elements[T++];)s.highlightElement(P,O===!0,f.callback)},highlightElement:function(x,O,_){var f=s.util.getLanguage(x),T=s.languages[f];s.util.setLanguage(x,f);var P=x.parentElement;P&&P.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(P,f);var L=x.textContent,E={element:x,language:f,grammar:T,code:L};function A($){E.highlightedCode=$,s.hooks.run("before-insert",E),E.element.innerHTML=E.highlightedCode,s.hooks.run("after-highlight",E),s.hooks.run("complete",E),_&&_.call(E.element)}if(s.hooks.run("before-sanity-check",E),P=E.element.parentElement,P&&P.nodeName.toLowerCase()==="pre"&&!P.hasAttribute("tabindex")&&P.setAttribute("tabindex","0"),!E.code){s.hooks.run("complete",E),_&&_.call(E.element);return}if(s.hooks.run("before-highlight",E),!E.grammar){A(s.util.encode(E.code));return}if(O&&n.Worker){var R=new Worker(s.filename);R.onmessage=function($){A($.data)},R.postMessage(JSON.stringify({language:E.language,code:E.code,immediateClose:!0}))}else A(s.highlight(E.code,E.grammar,E.language))},highlight:function(x,O,_){var f={code:x,grammar:O,language:_};if(s.hooks.run("before-tokenize",f),!f.grammar)throw new Error('The language "'+f.language+'" has no grammar.');return f.tokens=s.tokenize(f.code,f.grammar),s.hooks.run("after-tokenize",f),u.stringify(s.util.encode(f.tokens),f.language)},tokenize:function(x,O){var _=O.rest;if(_){for(var f in _)O[f]=_[f];delete O.rest}var T=new d;return g(T,T.head,x),l(x,T,O,T.head,0),b(T)},hooks:{all:{},add:function(x,O){var _=s.hooks.all;_[x]=_[x]||[],_[x].push(O)},run:function(x,O){var _=s.hooks.all[x];if(!(!_||!_.length))for(var f=0,T;T=_[f++];)T(O)}},Token:u};n.Prism=s;function u(x,O,_,f){this.type=x,this.content=O,this.alias=_,this.length=(f||"").length|0}u.stringify=function x(O,_){if(typeof O=="string")return O;if(Array.isArray(O)){var f="";return O.forEach(function(A){f+=x(A,_)}),f}var T={type:O.type,content:x(O.content,_),tag:"span",classes:["token",O.type],attributes:{},language:_},P=O.alias;P&&(Array.isArray(P)?Array.prototype.push.apply(T.classes,P):T.classes.push(P)),s.hooks.run("wrap",T);var L="";for(var E in T.attributes)L+=" "+E+'="'+(T.attributes[E]||"").replace(/"/g,""")+'"';return"<"+T.tag+' class="'+T.classes.join(" ")+'"'+L+">"+T.content+""};function c(x,O,_,f){x.lastIndex=O;var T=x.exec(_);if(T&&f&&T[1]){var P=T[1].length;T.index+=P,T[0]=T[0].slice(P)}return T}function l(x,O,_,f,T,P){for(var L in _)if(!(!_.hasOwnProperty(L)||!_[L])){var E=_[L];E=Array.isArray(E)?E:[E];for(var A=0;A=P.reach);fe+=B.value.length,B=B.next){var ae=B.value;if(O.length>x.length)return;if(!(ae instanceof u)){var we=1,oe;if(re){if(oe=c(ce,fe,x,z),!oe||oe.index>=x.length)break;var Te=oe.index,Me=oe.index+oe[0].length,Ce=fe;for(Ce+=B.value.length;Te>=Ce;)B=B.next,Ce+=B.value.length;if(Ce-=B.value.length,fe=Ce,B.value instanceof u)continue;for(var Ue=B;Ue!==O.tail&&(CeP.reach&&(P.reach=q);var Q=B.prev;ke&&(Q=g(O,Q,ke),fe+=ke.length),m(O,Q,we);var he=new u(L,$?s.tokenize(Re,$):Re,D,Re);if(B=g(O,Q,he),De&&g(O,B,De),we>1){var ue={cause:L+","+A,reach:q};l(x,O,_,B.prev,fe,ue),P&&ue.reach>P.reach&&(P.reach=ue.reach)}}}}}}function d(){var x={value:null,prev:null,next:null},O={value:null,prev:x,next:null};x.next=O,this.head=x,this.tail=O,this.length=0}function g(x,O,_){var f=O.next,T={value:_,prev:O,next:f};return O.next=T,f.prev=T,x.length++,T}function m(x,O,_){for(var f=O.next,T=0;T<_&&f!==x.tail;T++)f=f.next;O.next=f,f.prev=O,x.length-=T}function b(x){for(var O=[],_=x.head.next;_!==x.tail;)O.push(_.value),_=_.next;return O}if(!n.document)return n.addEventListener&&(s.disableWorkerMessageHandler||n.addEventListener("message",function(x){var O=JSON.parse(x.data),_=O.language,f=O.code,T=O.immediateClose;n.postMessage(s.highlight(f,s.languages[_],_)),T&&n.close()},!1)),s;var h=s.util.currentScript();h&&(s.filename=h.src,h.hasAttribute("data-manual")&&(s.manual=!0));function C(){s.manual||s.highlightAll()}if(!s.manual){var j=document.readyState;j==="loading"||j==="interactive"&&h&&h.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return s}(t);e.exports&&(e.exports=r),typeof _r<"u"&&(_r.Prism=r),r.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(a,o){var i={};i["language-"+o]={pattern:/(^$)/i,lookbehind:!0,inside:r.languages[o]},i.cdata=/^$/i;var s={"included-cdata":{pattern://i,inside:i}};s["language-"+o]={pattern:/[\s\S]+/,inside:r.languages[o]};var u={};u[a]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return a}),"i"),lookbehind:!0,greedy:!0,inside:s},r.languages.insertBefore("markup","cdata",u)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(n,a){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[a,"language-"+a],inside:r.languages[a]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(n){var a=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+a.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+a.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+a.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+a.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:a,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(){if(typeof r>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n="Loading…",a=function(h,C){return"✖ Error "+h+" while fetching file: "+C},o="✖ Error: File does not exist or is empty",i={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",u="loading",c="loaded",l="failed",d="pre[data-src]:not(["+s+'="'+c+'"]):not(['+s+'="'+u+'"])';function g(h,C,j){var x=new XMLHttpRequest;x.open("GET",h,!0),x.onreadystatechange=function(){x.readyState==4&&(x.status<400&&x.responseText?C(x.responseText):x.status>=400?j(a(x.status,x.statusText)):j(o))},x.send(null)}function m(h){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(h||"");if(C){var j=Number(C[1]),x=C[2],O=C[3];return x?O?[j,Number(O)]:[j,void 0]:[j,j]}}r.hooks.add("before-highlightall",function(h){h.selector+=", "+d}),r.hooks.add("before-sanity-check",function(h){var C=h.element;if(C.matches(d)){h.code="",C.setAttribute(s,u);var j=C.appendChild(document.createElement("CODE"));j.textContent=n;var x=C.getAttribute("data-src"),O=h.language;if(O==="none"){var _=(/\.(\w+)$/.exec(x)||[,"none"])[1];O=i[_]||_}r.util.setLanguage(j,O),r.util.setLanguage(C,O);var f=r.plugins.autoloader;f&&f.loadLanguages(O),g(x,function(T){C.setAttribute(s,c);var P=m(C.getAttribute("data-range"));if(P){var L=T.split(/\r\n?|\n/g),E=P[0],A=P[1]==null?L.length:P[1];E<0&&(E+=L.length),E=Math.max(0,Math.min(E-1,L.length)),A<0&&(A+=L.length),A=Math.max(0,Math.min(A,L.length)),T=L.slice(E,A).join(` -`),C.hasAttribute("data-start")||C.setAttribute("data-start",String(E+1))}j.textContent=T,r.highlightElement(j)},function(T){C.setAttribute(s,l),j.textContent=T})}}),r.plugins.fileHighlight={highlight:function(C){for(var j=(C||document).querySelectorAll(d),x=0,O;O=j[x++];)r.highlightElement(O)}};var b=!1;r.fileHighlight=function(){b||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),b=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(fs);var _h=fs.exports;const Tm=Lr(_h);export{ac as $,hc as A,Om as B,vm as C,ia as D,Rt as E,Sc as F,Dh as G,wc as H,mc as I,Jh as J,nc as K,Em as L,im as M,ym as N,wm as O,hm as P,ne as Q,Sm as R,oc as S,sm as T,Fh as U,Nh as V,rm as W,sa as X,tm as Y,Et as Z,Ph as _,Da as a,Wh as a0,Hh as a1,um as a2,cm as a3,om as a4,Uh as a5,ic as a6,nm as a7,Rh as a8,Kh as a9,Vh as aa,lm as ab,er as ac,_m as ad,Cm as ae,Tm as af,Wl as ag,tc as ah,zh as ai,Yh as aj,_l as ak,am as al,Ih as am,Lh as an,Tr as ao,Bh as ap,qh as aq,fm as ar,Xa as b,Gh as c,pm as d,lt as e,Qh as f,Xh as g,Zh as h,em as i,$h as j,Rn as k,$l as l,mm as m,jh as n,Th as o,qd as p,dr as q,Yi as r,gm as s,kh as t,dm as u,bm as v,xm as w,Mh as x,Ah as y,Pr as z}; +`),C.hasAttribute("data-start")||C.setAttribute("data-start",String(E+1))}j.textContent=T,r.highlightElement(j)},function(T){C.setAttribute(s,l),j.textContent=T})}}),r.plugins.fileHighlight={highlight:function(C){for(var j=(C||document).querySelectorAll(d),x=0,O;O=j[x++];)r.highlightElement(O)}};var b=!1;r.fileHighlight=function(){b||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),b=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(fs);var _h=fs.exports;const Tm=Lr(_h);export{ac as $,hc as A,sa as B,vm as C,Rt as D,Sc as E,Dh as F,wc as G,Om as H,mc as I,Jh as J,nc as K,Em as L,im as M,ym as N,wm as O,hm as P,ne as Q,Sm as R,oc as S,sm as T,Fh as U,Nh as V,rm as W,ua as X,tm as Y,Et as Z,Ph as _,Da as a,Wh as a0,Hh as a1,um as a2,cm as a3,om as a4,Uh as a5,ic as a6,nm as a7,Rh as a8,Kh as a9,Vh as aa,lm as ab,er as ac,_m as ad,Cm as ae,Tm as af,Wl as ag,tc as ah,zh as ai,Yh as aj,_l as ak,am as al,Ih as am,Lh as an,Tr as ao,Bh as ap,qh as aq,fm as ar,Xa as b,Gh as c,pm as d,lt as e,Qh as f,Xh as g,Zh as h,em as i,$h as j,Fn as k,$l as l,mm as m,jh as n,Th as o,qd as p,dr as q,Yi as r,gm as s,kh as t,dm as u,bm as v,xm as w,Mh as x,Ah as y,Pr as z}; diff --git a/view/index.html b/view/index.html index f805dda6..05487b5e 100644 --- a/view/index.html +++ b/view/index.html @@ -5,12 +5,12 @@ Qryn View - + - - + + - +