@scmlatam/web-ui 0.1.42 → 0.1.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./main-CJg_Pr5D.js";
1
+ import { _ as f } from "./main-iQdm4CIU.js";
2
2
  const o = {
3
3
  config: {
4
4
  isInitialized: !1
@@ -34622,13 +34622,19 @@ function IV(e, { relative: t } = {}) {
34622
34622
  return ap(s.pathname, a) != null || ap(s.pathname, i) != null;
34623
34623
  }
34624
34624
  const S1 = ({ name: e, items: t, setState: n }) => {
34625
- const r = ou(), s = pr();
34625
+ const r = ou(), s = pr(), i = new URLSearchParams(s.search);
34626
34626
  return /* @__PURE__ */ w(rt, { size: 12, children: /* @__PURE__ */ w(
34627
34627
  as,
34628
34628
  {
34629
34629
  dense: !0,
34630
34630
  sx: {
34631
- width: "100%"
34631
+ width: "100%",
34632
+ "& .Mui-selected": {
34633
+ bgcolor: "#5B5157 !important"
34634
+ },
34635
+ "& .hover": {
34636
+ bgcolor: "#513D42 !important"
34637
+ }
34632
34638
  },
34633
34639
  component: "nav",
34634
34640
  subheader: e && /* @__PURE__ */ w(
@@ -34640,7 +34646,7 @@ const S1 = ({ name: e, items: t, setState: n }) => {
34640
34646
  children: e.toUpperCase()
34641
34647
  }
34642
34648
  ),
34643
- children: t.map((i, a) => /* @__PURE__ */ re(
34649
+ children: t.map((a, l) => /* @__PURE__ */ re(
34644
34650
  Ei,
34645
34651
  {
34646
34652
  sx: {
@@ -34652,15 +34658,15 @@ const S1 = ({ name: e, items: t, setState: n }) => {
34652
34658
  }
34653
34659
  },
34654
34660
  onClick: () => {
34655
- i.subgroups.length > 0 ? (n("expanded"), r(i.path + i.subgroups[0].path)) : (r(i.path), n("open"));
34661
+ a.subgroups.length > 0 ? (n("expanded"), r(a.path)) : (n("open"), r(`${a.path}&view=${a.view}`));
34656
34662
  },
34657
- selected: s.pathname === i.path || s.pathname.startsWith(i.path),
34663
+ selected: `${s.pathname}?module=${i.get("module")}` === a.path,
34658
34664
  children: [
34659
- /* @__PURE__ */ w(Ti, { children: i.icon }),
34665
+ /* @__PURE__ */ w(Ti, { children: a.icon }),
34660
34666
  /* @__PURE__ */ w(
34661
34667
  Ar,
34662
34668
  {
34663
- primary: i.title,
34669
+ primary: a.title,
34664
34670
  slotProps: {
34665
34671
  primary: {
34666
34672
  sx: { color: "#FFFFFF" }
@@ -34668,24 +34674,30 @@ const S1 = ({ name: e, items: t, setState: n }) => {
34668
34674
  }
34669
34675
  }
34670
34676
  ),
34671
- i.subgroups.length > 0 && /* @__PURE__ */ w(t7, {})
34677
+ a.subgroups.length > 0 && /* @__PURE__ */ w(t7, {})
34672
34678
  ]
34673
34679
  },
34674
- a
34680
+ l
34675
34681
  ))
34676
34682
  }
34677
34683
  ) });
34678
- }, OV = ({ items: e }) => {
34679
- const t = ou(), n = pr();
34684
+ }, OV = ({ items: e, setState: t }) => {
34685
+ const n = ou(), r = pr(), s = new URLSearchParams(r.search);
34680
34686
  return /* @__PURE__ */ w(rt, { size: 12, children: /* @__PURE__ */ w(
34681
34687
  as,
34682
34688
  {
34683
34689
  dense: !0,
34684
34690
  sx: {
34685
- width: "100%"
34691
+ width: "100%",
34692
+ "& .Mui-selected": {
34693
+ bgcolor: "#5B5157 !important"
34694
+ },
34695
+ "& .hover": {
34696
+ bgcolor: "#513D42 !important"
34697
+ }
34686
34698
  },
34687
34699
  component: "nav",
34688
- children: e.map((r, s) => /* @__PURE__ */ w(
34700
+ children: e.map((i, a) => /* @__PURE__ */ w(
34689
34701
  Ei,
34690
34702
  {
34691
34703
  sx: {
@@ -34693,35 +34705,43 @@ const S1 = ({ name: e, items: t, setState: n }) => {
34693
34705
  minHeight: "56px"
34694
34706
  },
34695
34707
  onClick: () => {
34696
- t(r.path);
34708
+ i.subgroups.length > 0 ? t("expanded") : n(`${i.path}&view=${i.view}`);
34697
34709
  },
34698
- selected: n.pathname === r.path,
34699
- children: /* @__PURE__ */ w(Ti, { children: r.icon })
34710
+ selected: `${r.pathname}?module=${s.get("module")}` === i.path,
34711
+ children: /* @__PURE__ */ w(Ti, { children: i.icon })
34700
34712
  },
34701
- s
34713
+ a
34702
34714
  ))
34703
34715
  }
34704
34716
  ) });
34705
34717
  }, MV = ({ items: e }) => {
34706
- const t = pr(), n = ou();
34718
+ const t = pr(), n = ou(), r = new URLSearchParams(t.search);
34707
34719
  return /* @__PURE__ */ w(rt, { size: 12, children: /* @__PURE__ */ w(
34708
34720
  as,
34709
34721
  {
34710
34722
  dense: !0,
34711
34723
  sx: {
34712
- width: "100%"
34724
+ width: "100%",
34725
+ "& .Mui-selected": {
34726
+ bgcolor: "#5B5157 !important"
34727
+ },
34728
+ "& .hover": {
34729
+ bgcolor: "#513D42 !important"
34730
+ }
34713
34731
  },
34714
34732
  component: "nav",
34715
- children: e.map((r, s) => /* @__PURE__ */ w(
34733
+ children: e.map((s, i) => /* @__PURE__ */ w(
34716
34734
  Ei,
34717
34735
  {
34718
34736
  sx: {
34719
34737
  borderRadius: "20px"
34720
34738
  },
34721
34739
  onClick: () => {
34722
- n(t.pathname + r.path);
34740
+ n(
34741
+ `${t.pathname}?module=${r.get("module")}${s.path}`
34742
+ );
34723
34743
  },
34724
- selected: t.pathname + r.path === t.pathname + t.search,
34744
+ selected: `&view=${r.get("view")}` === s.path,
34725
34745
  children: /* @__PURE__ */ w(
34726
34746
  Ar,
34727
34747
  {
@@ -34730,81 +34750,56 @@ const S1 = ({ name: e, items: t, setState: n }) => {
34730
34750
  sx: { color: "#FFFFFF" }
34731
34751
  }
34732
34752
  },
34733
- primary: r.title
34753
+ primary: s.title
34734
34754
  }
34735
34755
  )
34736
34756
  },
34737
- s
34757
+ i
34738
34758
  ))
34739
34759
  }
34740
34760
  ) });
34741
34761
  }, DV = ({ state: e, setState: t, groups: n }) => {
34742
34762
  const r = n.map(
34743
- (i) => i.items.map((a) => ({
34744
- title: a.title,
34745
- color: a.color,
34746
- icon: a.icon,
34747
- path: a.path,
34748
- subgroups: a.subgroups
34763
+ (a) => a.items.map((l) => ({
34764
+ title: l.title,
34765
+ color: l.color,
34766
+ icon: l.icon,
34767
+ path: l.path,
34768
+ view: l.view,
34769
+ subgroups: l.subgroups
34749
34770
  }))
34750
- ).flat(), s = pr();
34771
+ ).flat(), s = pr(), i = new URLSearchParams(s.search);
34751
34772
  switch (e) {
34752
34773
  case "close":
34753
- return /* @__PURE__ */ w(
34754
- rt,
34755
- {
34756
- sx: { height: "calc(100vh - 160px)" },
34757
- container: !0,
34758
- spacing: 2,
34759
- children: /* @__PURE__ */ w(OV, { items: r })
34760
- }
34761
- );
34774
+ return /* @__PURE__ */ w(rt, { sx: { height: "calc(100vh - 160px)" }, container: !0, spacing: 2, children: /* @__PURE__ */ w(OV, { items: r, setState: t }) });
34762
34775
  case "open":
34763
- return /* @__PURE__ */ w(
34764
- rt,
34776
+ return /* @__PURE__ */ w(rt, { sx: { height: "calc(100vh - 160px)" }, container: !0, spacing: 2, children: /* @__PURE__ */ w(rt, { size: 12, children: n.map((a, l) => /* @__PURE__ */ w(
34777
+ S1,
34765
34778
  {
34766
- sx: { height: "calc(100vh - 160px)" },
34767
- container: !0,
34768
- spacing: 2,
34769
- children: /* @__PURE__ */ w(rt, { size: 12, children: n.map((i, a) => /* @__PURE__ */ w(
34770
- S1,
34771
- {
34772
- name: i.name,
34773
- items: i.items,
34774
- setState: t
34775
- },
34776
- a
34777
- )) })
34778
- }
34779
- );
34779
+ name: a.name,
34780
+ items: a.items,
34781
+ setState: t
34782
+ },
34783
+ l
34784
+ )) }) });
34780
34785
  case "expanded":
34781
- return /* @__PURE__ */ re(
34782
- rt,
34783
- {
34784
- sx: { height: "calc(100vh - 160px)" },
34785
- container: !0,
34786
- spacing: 2,
34787
- children: [
34788
- /* @__PURE__ */ w(rt, { size: 6, children: n.map((i, a) => /* @__PURE__ */ w(
34789
- S1,
34790
- {
34791
- name: i.name,
34792
- items: i.items,
34793
- setState: t
34794
- },
34795
- a
34796
- )) }),
34797
- /* @__PURE__ */ w(rt, { size: 6, children: /* @__PURE__ */ w(
34798
- MV,
34799
- {
34800
- items: r.find(
34801
- (i) => i.path === s.pathname
34802
- )?.subgroups || []
34803
- }
34804
- ) })
34805
- ]
34806
- }
34807
- );
34786
+ return /* @__PURE__ */ re(rt, { sx: { height: "calc(100vh - 160px)" }, container: !0, spacing: 2, children: [
34787
+ /* @__PURE__ */ w(rt, { size: 6, children: n.map((a, l) => /* @__PURE__ */ w(
34788
+ S1,
34789
+ {
34790
+ name: a.name,
34791
+ items: a.items,
34792
+ setState: t
34793
+ },
34794
+ l
34795
+ )) }),
34796
+ /* @__PURE__ */ w(rt, { size: 6, children: /* @__PURE__ */ w(
34797
+ MV,
34798
+ {
34799
+ items: r.find((a) => a.path === `${s.pathname}?module=${i.get("module")}`)?.subgroups || []
34800
+ }
34801
+ ) })
34802
+ ] });
34808
34803
  }
34809
34804
  }, kV = ({ state: e, logout: t }) => {
34810
34805
  switch (e) {
@@ -59387,7 +59382,7 @@ async function mZ(e) {
59387
59382
  return;
59388
59383
  const {
59389
59384
  default: t
59390
- } = await import("./get-context-2X9BkEgr.js"), n = await t();
59385
+ } = await import("./get-context-DAp5TFqK.js"), n = await t();
59391
59386
  if (!e || !hZ(n))
59392
59387
  return;
59393
59388
  const r = x({}, e, {
@@ -73449,7 +73444,7 @@ const _re = ({
73449
73444
  }
73450
73445
  }
73451
73446
  });
73452
- return console.log("white", a), /* @__PURE__ */ w(X2, { theme: f, children: /* @__PURE__ */ w(
73447
+ return /* @__PURE__ */ w(X2, { theme: f, children: /* @__PURE__ */ w(
73453
73448
  rh,
73454
73449
  {
73455
73450
  label: e,
package/dist/web-ui.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as o, b as s, c as r, F as t, G as b, a as m, T as C, d as T, u as d } from "./main-CJg_Pr5D.js";
1
+ import { C as o, b as s, c as r, F as t, G as b, a as m, T as C, d as T, u as d } from "./main-iQdm4CIU.js";
2
2
  export {
3
3
  o as Core,
4
4
  s as CoreContext,
@@ -363,7 +363,7 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:mr(18,`(${t})`));return
363
363
  * @license MIT
364
364
  */var t2="popstate";function XV(e={}){function t(r,s){let{pathname:i,search:a,hash:l}=r.location;return Cm("",{pathname:i,search:a,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Cc(s)}return QV(t,n,null,e)}function bn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function _r(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ZV(){return Math.random().toString(36).substring(2,10)}function n2(e,t){return{usr:e.state,key:e.key,idx:t}}function Cm(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?$a(t):t,state:n,key:t&&t.key||r||ZV()}}function Cc({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function $a(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function QV(e,t,n,r={}){let{window:s=document.defaultView,v5Compat:i=!1}=r,a=s.history,l="POP",c=null,u=d();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function d(){return(a.state||{idx:null}).idx}function p(){l="POP";let b=d(),C=b==null?null:b-u;u=b,c&&c({action:l,location:m.location,delta:C})}function h(b,C){l="PUSH";let w=Cm(m.location,b,C);u=d()+1;let S=n2(w,u),E=m.createHref(w);try{a.pushState(S,"",E)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;s.location.assign(E)}i&&c&&c({action:l,location:m.location,delta:1})}function g(b,C){l="REPLACE";let w=Cm(m.location,b,C);u=d();let S=n2(w,u),E=m.createHref(w);a.replaceState(S,"",E),i&&c&&c({action:l,location:m.location,delta:0})}function y(b){return JV(b)}let m={get action(){return l},get location(){return e(s,a)},listen(b){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(t2,p),c=b,()=>{s.removeEventListener(t2,p),c=null}},createHref(b){return t(s,b)},createURL:y,encodeLocation(b){let C=y(b);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:h,replace:g,go(b){return a.go(b)}};return m}function JV(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),bn(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Cc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function o2(e,t,n="/"){return e7(e,t,n,!1)}function e7(e,t,n,r){let s=typeof t=="string"?$a(t):t,i=ns(s.pathname||"/",n);if(i==null)return null;let a=r2(e);t7(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let u=p7(i);l=u7(a[c],u,r)}return l}function r2(e,t=[],n=[],r="",s=!1){let i=(a,l,c=s,u)=>{let d={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&c)return;bn(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let p=os([r,d.relativePath]),h=n.concat(d);a.children&&a.children.length>0&&(bn(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),r2(a.children,t,h,p,c)),!(a.path==null&&!a.index)&&t.push({path:p,score:l7(p,a.index),routesMeta:h})};return e.forEach((a,l)=>{if(a.path===""||!a.path?.includes("?"))i(a,l);else for(let c of s2(a.path))i(a,l,!0,c)}),t}function s2(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let a=s2(r.join("/")),l=[];return l.push(...a.map(c=>c===""?i:[i,c].join("/"))),s&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function t7(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:c7(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var n7=/^:[\w-]+$/,o7=3,r7=2,s7=1,i7=10,a7=-2,i2=e=>e==="*";function l7(e,t){let n=e.split("/"),r=n.length;return n.some(i2)&&(r+=a7),t&&(r+=r7),n.filter(s=>!i2(s)).reduce((s,i)=>s+(n7.test(i)?o7:i===""?s7:i7),r)}function c7(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function u7(e,t,n=!1){let{routesMeta:r}=e,s={},i="/",a=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",p=hp({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),h=c.route;if(!p&&u&&n&&!r[r.length-1].route.index&&(p=hp({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!p)return null;Object.assign(s,p.params),a.push({params:s,pathname:os([i,p.pathname]),pathnameBase:m7(os([i,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(i=os([i,p.pathnameBase]))}return a}function hp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=d7(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],a=i.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:r.reduce((u,{paramName:d,isOptional:p},h)=>{if(d==="*"){let y=l[h]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const g=l[h];return p&&!g?u[d]=void 0:u[d]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function d7(e,t=!1,n=!0){_r(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function p7(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return _r(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ns(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function f7(e,t="/"){let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?$a(e):e;return{pathname:n?n.startsWith("/")?n:h7(n,t):t,search:b7(r),hash:y7(s)}}function h7(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function wm(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function g7(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function a2(e){let t=g7(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function l2(e,t,n,r=!1){let s;typeof e=="string"?s=$a(e):(s={...e},bn(!s.pathname||!s.pathname.includes("?"),wm("?","pathname","search",s)),bn(!s.pathname||!s.pathname.includes("#"),wm("#","pathname","hash",s)),bn(!s.search||!s.search.includes("#"),wm("#","search","hash",s)));let i=e===""||s.pathname==="",a=i?"/":s.pathname,l;if(a==null)l=n;else{let p=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),p-=1;s.pathname=h.join("/")}l=p>=0?t[p]:"/"}let c=f7(s,l),u=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}var os=e=>e.join("/").replace(/\/\/+/g,"/"),m7=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),b7=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,y7=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function v7(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var c2=["POST","PUT","PATCH","DELETE"];new Set(c2);var C7=["GET",...c2];new Set(C7);var Ra=f.createContext(null);Ra.displayName="DataRouter";var gp=f.createContext(null);gp.displayName="DataRouterState",f.createContext(!1);var u2=f.createContext({isTransitioning:!1});u2.displayName="ViewTransition";var w7=f.createContext(new Map);w7.displayName="Fetchers";var S7=f.createContext(null);S7.displayName="Await";var Hr=f.createContext(null);Hr.displayName="Navigation";var wc=f.createContext(null);wc.displayName="Location";var rs=f.createContext({outlet:null,matches:[],isDataRoute:!1});rs.displayName="Route";var Sm=f.createContext(null);Sm.displayName="RouteError";function x7(e,{relative:t}={}){bn(Sc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=f.useContext(Hr),{hash:s,pathname:i,search:a}=Pc(e,{relative:t}),l=i;return n!=="/"&&(l=i==="/"?n:os([n,i])),r.createHref({pathname:l,search:a,hash:s})}function Sc(){return f.useContext(wc)!=null}function ur(){return bn(Sc(),"useLocation() may be used only in the context of a <Router> component."),f.useContext(wc).location}var d2="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function p2(e){f.useContext(Hr).static||f.useLayoutEffect(e)}function xc(){let{isDataRoute:e}=f.useContext(rs);return e?L7():P7()}function P7(){bn(Sc(),"useNavigate() may be used only in the context of a <Router> component.");let e=f.useContext(Ra),{basename:t,navigator:n}=f.useContext(Hr),{matches:r}=f.useContext(rs),{pathname:s}=ur(),i=JSON.stringify(a2(r)),a=f.useRef(!1);return p2(()=>{a.current=!0}),f.useCallback((c,u={})=>{if(_r(a.current,d2),!a.current)return;if(typeof c=="number"){n.go(c);return}let d=l2(c,JSON.parse(i),s,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:os([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,i,s,e])}f.createContext(null);function Pc(e,{relative:t}={}){let{matches:n}=f.useContext(rs),{pathname:r}=ur(),s=JSON.stringify(a2(n));return f.useMemo(()=>l2(e,JSON.parse(s),r,t==="path"),[e,s,r,t])}function E7(e,t){return f2(e,t)}function f2(e,t,n,r,s){bn(Sc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=f.useContext(Hr),{matches:a}=f.useContext(rs),l=a[a.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",p=l&&l.route;{let w=p&&p.path||"";g2(u,!p||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
365
365
 
366
- Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let h=ur(),g;if(t){let w=typeof t=="string"?$a(t):t;bn(d==="/"||w.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${w.pathname}" was given in the \`location\` prop.`),g=w}else g=h;let y=g.pathname||"/",m=y;if(d!=="/"){let w=d.replace(/^\//,"").split("/");m="/"+y.replace(/^\//,"").split("/").slice(w.length).join("/")}let b=o2(e,{pathname:m});_r(p||b!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),_r(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=k7(b&&b.map(w=>Object.assign({},w,{params:Object.assign({},c,w.params),pathname:os([d,i.encodeLocation?i.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?d:os([d,i.encodeLocation?i.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),a,n,r,s);return t&&C?f.createElement(wc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},C):C}function T7(){let e=R7(),t=v7(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=f.createElement(f.Fragment,null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:i},"ErrorBoundary")," or"," ",f.createElement("code",{style:i},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:s},n):null,a)}var I7=f.createElement(T7,null),O7=class extends f.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?f.createElement(rs.Provider,{value:this.props.routeContext},f.createElement(Sm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function M7({routeContext:e,match:t,children:n}){let r=f.useContext(Ra);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement(rs.Provider,{value:e},n)}function k7(e,t=[],n=null,r=null,s=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n?.errors;if(a!=null){let u=i.findIndex(d=>d.route.id&&a?.[d.route.id]!==void 0);bn(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let l=!1,c=-1;if(n)for(let u=0;u<i.length;u++){let d=i[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:p,errors:h}=n,g=d.route.loader&&!p.hasOwnProperty(d.route.id)&&(!h||h[d.route.id]===void 0);if(d.route.lazy||g){l=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((u,d,p)=>{let h,g=!1,y=null,m=null;n&&(h=a&&d.route.id?a[d.route.id]:void 0,y=d.route.errorElement||I7,l&&(c<0&&p===0?(g2("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,m=null):c===p&&(g=!0,m=d.route.hydrateFallbackElement||null)));let b=t.concat(i.slice(0,p+1)),C=()=>{let w;return h?w=y:g?w=m:d.route.Component?w=f.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=u,f.createElement(M7,{match:d,routeContext:{outlet:u,matches:b,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?f.createElement(O7,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:C(),routeContext:{outlet:null,matches:b,isDataRoute:!0},unstable_onError:r}):C()},null)}function xm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function D7(e){let t=f.useContext(Ra);return bn(t,xm(e)),t}function F7(e){let t=f.useContext(gp);return bn(t,xm(e)),t}function N7(e){let t=f.useContext(rs);return bn(t,xm(e)),t}function Pm(e){let t=N7(e),n=t.matches[t.matches.length-1];return bn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function $7(){return Pm("useRouteId")}function R7(){let e=f.useContext(Sm),t=F7("useRouteError"),n=Pm("useRouteError");return e!==void 0?e:t.errors?.[n]}function L7(){let{router:e}=D7("useNavigate"),t=Pm("useNavigate"),n=f.useRef(!1);return p2(()=>{n.current=!0}),f.useCallback(async(s,i={})=>{_r(n.current,d2),n.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:t,...i}))},[e,t])}var h2={};function g2(e,t,n){!t&&!h2[e]&&(h2[e]=!0,_r(!1,n))}f.memo(A7);function A7({routes:e,future:t,state:n,unstable_onError:r}){return f2(e,void 0,n,r,t)}function Em(e){bn(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function V7({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:s,static:i=!1}){bn(!Sc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),l=f.useMemo(()=>({basename:a,navigator:s,static:i,future:{}}),[a,s,i]);typeof n=="string"&&(n=$a(n));let{pathname:c="/",search:u="",hash:d="",state:p=null,key:h="default"}=n,g=f.useMemo(()=>{let y=ns(c,a);return y==null?null:{location:{pathname:y,search:u,hash:d,state:p,key:h},navigationType:r}},[a,c,u,d,p,h,r]);return _r(g!=null,`<Router basename="${a}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:f.createElement(Hr.Provider,{value:l},f.createElement(wc.Provider,{children:t,value:g}))}function B7({children:e,location:t}){return E7(Tm(e),t)}function Tm(e,t=[]){let n=[];return f.Children.forEach(e,(r,s)=>{if(!f.isValidElement(r))return;let i=[...t,s];if(r.type===f.Fragment){n.push.apply(n,Tm(r.props.children,i));return}bn(r.type===Em,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),bn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Tm(r.props.children,i)),n.push(a)}),n}var mp="get",bp="application/x-www-form-urlencoded";function yp(e){return e!=null&&typeof e.tagName=="string"}function _7(e){return yp(e)&&e.tagName.toLowerCase()==="button"}function H7(e){return yp(e)&&e.tagName.toLowerCase()==="form"}function z7(e){return yp(e)&&e.tagName.toLowerCase()==="input"}function j7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function G7(e,t){return e.button===0&&(!t||t==="_self")&&!j7(e)}var vp=null;function W7(){if(vp===null)try{new FormData(document.createElement("form"),0),vp=!1}catch{vp=!0}return vp}var U7=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Im(e){return e!=null&&!U7.has(e)?(_r(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${bp}"`),null):e}function q7(e,t){let n,r,s,i,a;if(H7(e)){let l=e.getAttribute("action");r=l?ns(l,t):null,n=e.getAttribute("method")||mp,s=Im(e.getAttribute("enctype"))||bp,i=new FormData(e)}else if(_7(e)||z7(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||l.getAttribute("action");if(r=c?ns(c,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||mp,s=Im(e.getAttribute("formenctype"))||Im(l.getAttribute("enctype"))||bp,i=new FormData(l,e),!W7()){let{name:u,type:d,value:p}=e;if(d==="image"){let h=u?`${u}.`:"";i.append(`${h}x`,"0"),i.append(`${h}y`,"0")}else u&&i.append(u,p)}}else{if(yp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=mp,r=null,s=bp,a=e}return i&&s==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:s,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Om(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Y7(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&ns(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function K7(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function X7(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Z7(e,t,n){let r=await Promise.all(e.map(async s=>{let i=t.routes[s.route.id];if(i){let a=await K7(i,n);return a.links?a.links():[]}return[]}));return tB(r.flat(1).filter(X7).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function m2(e,t,n,r,s,i){let a=(c,u)=>n[u]?c.route.id!==n[u].route.id:!0,l=(c,u)=>n[u].pathname!==c.pathname||n[u].route.path?.endsWith("*")&&n[u].params["*"]!==c.params["*"];return i==="assets"?t.filter((c,u)=>a(c,u)||l(c,u)):i==="data"?t.filter((c,u)=>{let d=r.routes[c.route.id];if(!d||!d.hasLoader)return!1;if(a(c,u)||l(c,u))return!0;if(c.route.shouldRevalidate){let p=c.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function Q7(e,t,{includeHydrateFallback:n}={}){return J7(e.map(r=>{let s=t.routes[r.route.id];if(!s)return[];let i=[s.module];return s.clientActionModule&&(i=i.concat(s.clientActionModule)),s.clientLoaderModule&&(i=i.concat(s.clientLoaderModule)),n&&s.hydrateFallbackModule&&(i=i.concat(s.hydrateFallbackModule)),s.imports&&(i=i.concat(s.imports)),i}).flat(1))}function J7(e){return[...new Set(e)]}function eB(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function tB(e,t){let n=new Set;return new Set(t),e.reduce((r,s)=>{let i=JSON.stringify(eB(s));return n.has(i)||(n.add(i),r.push({key:i,link:s})),r},[])}function b2(){let e=f.useContext(Ra);return Om(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function nB(){let e=f.useContext(gp);return Om(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Mm=f.createContext(void 0);Mm.displayName="FrameworkContext";function y2(){let e=f.useContext(Mm);return Om(e,"You must render this element inside a <HydratedRouter> element"),e}function oB(e,t){let n=f.useContext(Mm),[r,s]=f.useState(!1),[i,a]=f.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:p}=t,h=f.useRef(null);f.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let m=C=>{C.forEach(w=>{a(w.isIntersecting)})},b=new IntersectionObserver(m,{threshold:.5});return h.current&&b.observe(h.current),()=>{b.disconnect()}}},[e]),f.useEffect(()=>{if(r){let m=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(m)}}},[r]);let g=()=>{s(!0)},y=()=>{s(!1),a(!1)};return n?e!=="intent"?[i,h,{}]:[i,h,{onFocus:Ec(l,g),onBlur:Ec(c,y),onMouseEnter:Ec(u,g),onMouseLeave:Ec(d,y),onTouchStart:Ec(p,g)}]:[!1,h,{}]}function Ec(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function rB({page:e,...t}){let{router:n}=b2(),r=f.useMemo(()=>o2(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?f.createElement(iB,{page:e,matches:r,...t}):null}function sB(e){let{manifest:t,routeModules:n}=y2(),[r,s]=f.useState([]);return f.useEffect(()=>{let i=!1;return Z7(e,t,n).then(a=>{i||s(a)}),()=>{i=!0}},[e,t,n]),r}function iB({page:e,matches:t,...n}){let r=ur(),{manifest:s,routeModules:i}=y2(),{basename:a}=b2(),{loaderData:l,matches:c}=nB(),u=f.useMemo(()=>m2(e,t,c,s,r,"data"),[e,t,c,s,r]),d=f.useMemo(()=>m2(e,t,c,s,r,"assets"),[e,t,c,s,r]),p=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let y=new Set,m=!1;if(t.forEach(C=>{let w=s.routes[C.route.id];!w||!w.hasLoader||(!u.some(S=>S.route.id===C.route.id)&&C.route.id in l&&i[C.route.id]?.shouldRevalidate||w.hasClientLoader?m=!0:y.add(C.route.id))}),y.size===0)return[];let b=Y7(e,a,"data");return m&&y.size>0&&b.searchParams.set("_routes",t.filter(C=>y.has(C.route.id)).map(C=>C.route.id).join(",")),[b.pathname+b.search]},[a,l,r,s,u,t,e,i]),h=f.useMemo(()=>Q7(d,s),[d,s]),g=sB(d);return f.createElement(f.Fragment,null,p.map(y=>f.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),h.map(y=>f.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),g.map(({key:y,link:m})=>f.createElement("link",{key:y,nonce:n.nonce,...m})))}function aB(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var v2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{v2&&(window.__reactRouterVersion="7.9.4")}catch{}function lB({basename:e,children:t,window:n}){let r=f.useRef();r.current==null&&(r.current=XV({window:n,v5Compat:!0}));let s=r.current,[i,a]=f.useState({action:s.action,location:s.location}),l=f.useCallback(c=>{f.startTransition(()=>a(c))},[a]);return f.useLayoutEffect(()=>s.listen(l),[s,l]),f.createElement(V7,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:s})}var C2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,w2=f.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:s,reloadDocument:i,replace:a,state:l,target:c,to:u,preventScrollReset:d,viewTransition:p,...h},g){let{basename:y}=f.useContext(Hr),m=typeof u=="string"&&C2.test(u),b,C=!1;if(typeof u=="string"&&m&&(b=u,v2))try{let O=new URL(window.location.href),F=u.startsWith("//")?new URL(O.protocol+u):new URL(u),D=ns(F.pathname,y);F.origin===O.origin&&D!=null?u=D+F.search+F.hash:C=!0}catch{_r(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let w=x7(u,{relative:s}),[S,E,P]=oB(r,h),k=pB(u,{replace:a,state:l,target:c,preventScrollReset:d,relative:s,viewTransition:p});function M(O){t&&t(O),O.defaultPrevented||k(O)}let I=f.createElement("a",{...h,...P,href:b||w,onClick:C||i?t:M,ref:aB(g,E),target:c,"data-discover":!m&&n==="render"?"true":void 0});return S&&!m?f.createElement(f.Fragment,null,I,f.createElement(rB,{page:w})):I});w2.displayName="Link";var cB=f.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:s=!1,style:i,to:a,viewTransition:l,children:c,...u},d){let p=Pc(a,{relative:u.relative}),h=ur(),g=f.useContext(gp),{navigator:y,basename:m}=f.useContext(Hr),b=g!=null&&bB(p)&&l===!0,C=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,w=h.pathname,S=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;n||(w=w.toLowerCase(),S=S?S.toLowerCase():null,C=C.toLowerCase()),S&&m&&(S=ns(S,m)||S);const E=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let P=w===C||!s&&w.startsWith(C)&&w.charAt(E)==="/",k=S!=null&&(S===C||!s&&S.startsWith(C)&&S.charAt(C.length)==="/"),M={isActive:P,isPending:k,isTransitioning:b},I=P?t:void 0,O;typeof r=="function"?O=r(M):O=[r,P?"active":null,k?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let F=typeof i=="function"?i(M):i;return f.createElement(w2,{...u,"aria-current":I,className:O,ref:d,style:F,to:a,viewTransition:l},typeof c=="function"?c(M):c)});cB.displayName="NavLink";var uB=f.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:s,state:i,method:a=mp,action:l,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:p,...h},g)=>{let y=gB(),m=mB(l,{relative:u}),b=a.toLowerCase()==="get"?"get":"post",C=typeof l=="string"&&C2.test(l),w=S=>{if(c&&c(S),S.defaultPrevented)return;S.preventDefault();let E=S.nativeEvent.submitter,P=E?.getAttribute("formmethod")||a;y(E||S.currentTarget,{fetcherKey:t,method:P,navigate:n,replace:s,state:i,relative:u,preventScrollReset:d,viewTransition:p})};return f.createElement("form",{ref:g,method:b,action:m,onSubmit:r?c:w,...h,"data-discover":!C&&e==="render"?"true":void 0})});uB.displayName="Form";function dB(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function S2(e){let t=f.useContext(Ra);return bn(t,dB(e)),t}function pB(e,{target:t,replace:n,state:r,preventScrollReset:s,relative:i,viewTransition:a}={}){let l=xc(),c=ur(),u=Pc(e,{relative:i});return f.useCallback(d=>{if(G7(d,t)){d.preventDefault();let p=n!==void 0?n:Cc(c)===Cc(u);l(e,{replace:p,state:r,preventScrollReset:s,relative:i,viewTransition:a})}},[c,l,u,n,r,t,e,s,i,a])}var fB=0,hB=()=>`__${String(++fB)}__`;function gB(){let{router:e}=S2("useSubmit"),{basename:t}=f.useContext(Hr),n=$7();return f.useCallback(async(r,s={})=>{let{action:i,method:a,encType:l,formData:c,body:u}=q7(r,t);if(s.navigate===!1){let d=s.fetcherKey||hB();await e.fetch(d,n,s.action||i,{preventScrollReset:s.preventScrollReset,formData:c,body:u,formMethod:s.method||a,formEncType:s.encType||l,flushSync:s.flushSync})}else await e.navigate(s.action||i,{preventScrollReset:s.preventScrollReset,formData:c,body:u,formMethod:s.method||a,formEncType:s.encType||l,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,t,n])}function mB(e,{relative:t}={}){let{basename:n}=f.useContext(Hr),r=f.useContext(rs);bn(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),i={...Pc(e||".",{relative:t})},a=ur();if(e==null){i.search=a.search;let l=new URLSearchParams(i.search),c=l.getAll("index");if(c.some(d=>d==="")){l.delete("index"),c.filter(p=>p).forEach(p=>l.append("index",p));let d=l.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&s.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:os([n,i.pathname])),Cc(i)}function bB(e,{relative:t}={}){let n=f.useContext(u2);bn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=S2("useViewTransitionState"),s=Pc(e,{relative:t});if(!n.isTransitioning)return!1;let i=ns(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=ns(n.nextLocation.pathname,r)||n.nextLocation.pathname;return hp(s.pathname,a)!=null||hp(s.pathname,i)!=null}const x2=({name:e,items:t,setState:n})=>{const r=xc(),s=ur();return v.jsx(ot,{size:12,children:v.jsx(es,{dense:!0,sx:{width:"100%"},component:"nav",subheader:e&&v.jsx(sc,{sx:{bgcolor:"transparent"},component:"div",id:"nested-list-subheader",children:e.toUpperCase()}),children:t.map((i,a)=>v.jsxs(mi,{sx:{borderRadius:"20px",minHeight:"56px",color:"#FFFFFF","& .MuiListItemText-primary":{color:"#FFFFFF"}},onClick:()=>{i.subgroups.length>0?(n("expanded"),r(i.path+i.subgroups[0].path)):(r(i.path),n("open"))},selected:s.pathname===i.path||s.pathname.startsWith(i.path),children:[v.jsx(bi,{children:i.icon}),v.jsx(Vr,{primary:i.title,slotProps:{primary:{sx:{color:"#FFFFFF"}}}}),i.subgroups.length>0&&v.jsx(WV,{})]},a))})})},yB=({items:e})=>{const t=xc(),n=ur();return v.jsx(ot,{size:12,children:v.jsx(es,{dense:!0,sx:{width:"100%"},component:"nav",children:e.map((r,s)=>v.jsx(mi,{sx:{borderRadius:"20px",minHeight:"56px"},onClick:()=>{t(r.path)},selected:n.pathname===r.path,children:v.jsx(bi,{children:r.icon})},s))})})},vB=({items:e})=>{const t=ur(),n=xc();return v.jsx(ot,{size:12,children:v.jsx(es,{dense:!0,sx:{width:"100%"},component:"nav",children:e.map((r,s)=>v.jsx(mi,{sx:{borderRadius:"20px"},onClick:()=>{n(t.pathname+r.path)},selected:t.pathname+r.path===t.pathname+t.search,children:v.jsx(Vr,{slotProps:{primary:{sx:{color:"#FFFFFF"}}},primary:r.title})},s))})})},CB=({state:e,setState:t,groups:n})=>{const r=n.map(i=>i.items.map(a=>({title:a.title,color:a.color,icon:a.icon,path:a.path,subgroups:a.subgroups}))).flat(),s=ur();switch(e){case"close":return v.jsx(ot,{sx:{height:"calc(100vh - 160px)"},container:!0,spacing:2,children:v.jsx(yB,{items:r})});case"open":return v.jsx(ot,{sx:{height:"calc(100vh - 160px)"},container:!0,spacing:2,children:v.jsx(ot,{size:12,children:n.map((i,a)=>v.jsx(x2,{name:i.name,items:i.items,setState:t},a))})});case"expanded":return v.jsxs(ot,{sx:{height:"calc(100vh - 160px)"},container:!0,spacing:2,children:[v.jsx(ot,{size:6,children:n.map((i,a)=>v.jsx(x2,{name:i.name,items:i.items,setState:t},a))}),v.jsx(ot,{size:6,children:v.jsx(vB,{items:r.find(i=>i.path===s.pathname)?.subgroups||[]})})]})}},wB=({state:e,logout:t})=>{switch(e){case"close":return v.jsx(ot,{container:!0,spacing:2,children:v.jsx(ot,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},size:12,children:v.jsx(Dn,{sx:{height:"56px",borderRadius:"20px",bottom:"20px","&:focus":{outline:"none"},"&:focus-visible":{outline:"none"}},onClick:t,children:v.jsx(vm,{size:28,color:"#9a28e6"})})})});case"open":return v.jsx(ot,{container:!0,spacing:2,children:v.jsx(ot,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},size:12,children:v.jsx(Vn,{sx:{width:"100%",height:"56px",borderRadius:"20px",bottom:"20px",color:"#FFFFFF","&:focus":{outline:"none"},"&:focus-visible":{outline:"none"}},size:"small",startIcon:v.jsx(vm,{size:28,color:"#9a28e6"}),onClick:t,children:"Cerrar sesión"})})});case"expanded":return v.jsxs(ot,{container:!0,spacing:2,children:[v.jsx(ot,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},size:6,children:v.jsx(Vn,{sx:{width:"100%",height:"56px",borderRadius:"20px",bottom:"20px",color:"#FFFFFF","&:focus":{outline:"none"},"&:focus-visible":{outline:"none"}},color:"inherit",size:"small",startIcon:v.jsx(vm,{size:28,color:"#9D11F2"}),onClick:t,children:v.jsx("span",{style:{textTransform:"none"},children:"Cerrar sesión"})})}),v.jsx(ot,{size:6})]})}},SB=({items:e,logout:t,state:n,setState:r,getWidth:s})=>v.jsxs(Gn,{sx:{padding:"20px",height:"calc(100vh - 40px)",width:s(n),bgcolor:i=>i.palette.background.paper,borderRadius:5,border:i=>`1px solid ${i.palette.background.default}`,overflow:"hidden"},children:[v.jsx(KV,{state:n,setState:r}),v.jsx(CB,{state:n,setState:r,groups:e}),v.jsx(wB,{state:n,logout:t})]}),xB=()=>{const[e,t]=ge.useState("open");return{state:e,setState:t,getWidth:r=>{switch(r){case"close":return"105px";case"open":return"230px";case"expanded":return"435px";default:return"230px"}}}},PB=({routes:e})=>{const t=ur(),n=xc();return v.jsxs(B7,{children:[e.map((r,s)=>v.jsx(Em,{path:r.path,element:ge.cloneElement(r.element,{location:t,navigate:n})},s)),v.jsx(Em,{path:"*",element:v.jsx("div",{children:"404 - Page Not Found"})})]})},EB=({username:e,options:t})=>{const[n,r]=ge.useState(!1);return v.jsxs(Ow,{sx:{width:"260px",height:n?"auto":"56px",position:"absolute",top:20,right:20,zIndex:1e3,bgcolor:"white",padding:0,boxShadow:"none",borderRadius:"20px"},children:[v.jsx(kw,{sx:{padding:"8px 20px"},avatar:v.jsx(Fd,{sx:{width:40,height:40,bgcolor:"#9D11F2"},children:e.charAt(0)}),title:e,slotProps:{title:{fontSize:"18px",fontStyle:"normal",fontWeight:"500",lineHeight:"22px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",maxWidth:"150px"}},action:t.length>0&&v.jsx(v.Fragment,{children:v.jsx(Dn,{sx:{color:"black"},children:n?v.jsx(YV,{color:"black",size:30,onClick:()=>r(!1)}):v.jsx(qV,{color:"black",size:30,onClick:()=>r(!0)})})})}),n&&v.jsx(Mw,{sx:{paddingY:"0px"},children:v.jsx(es,{children:t.map((s,i)=>v.jsxs(mi,{sx:{borderRadius:"20px"},onClick:s.onClick,children:[v.jsx(bi,{children:s.icon}),v.jsx(Vr,{primary:s.label,slotProps:{primary:{fontSize:"18px",fontStyle:"normal",fontWeight:"400",lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"170px"}}})]},i))})})]})},TB=({getWidth:e,state:t,routes:n,account:r})=>v.jsxs(Gn,{sx:{width:`calc(100vw - ${e(t)} - 60px)`,height:"calc(100vh - 40px)"},children:[v.jsx(Gn,{sx:{height:"10%"},children:v.jsx(EB,{username:r.username,avatarUrl:r.avatarUrl,options:r.options})}),v.jsx(Gn,{sx:{height:"90%"},children:v.jsx(PB,{routes:n})})]}),IB=({logout:e,sidebarItems:t,routes:n,account:r})=>{const{state:s,setState:i,getWidth:a}=xB();return v.jsxs(Gn,{sx:{p:"20px",display:"grid",gridTemplateColumns:"auto 1fr",gap:"20px"},children:[v.jsx(SB,{items:t,logout:e,state:s,setState:i,getWidth:a}),v.jsx(TB,{state:s,getWidth:a,routes:n,account:r})]})};function P2(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<e.length;t++)e[t]&&(n=P2(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function xi(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=P2(e))&&(r&&(r+=" "),r+=t);return r}let OB={data:""},MB=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||OB,kB=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,DB=/\/\*[^]*?\*\/| +/g,E2=/\n+/g,Pi=(e,t)=>{let n="",r="",s="";for(let i in e){let a=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+a+";":r+=i[1]=="f"?Pi(a,i):i+"{"+Pi(a,i[1]=="k"?"":t)+"}":typeof a=="object"?r+=Pi(a,t?t.replace(/([^,])+/g,l=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,l):l?l+" "+c:c)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=Pi.p?Pi.p(i,a):i+":"+a+";")}return n+(t&&s?t+"{"+s+"}":s)+r},ss={},T2=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+T2(e[n]);return t}return e},FB=(e,t,n,r,s)=>{let i=T2(e),a=ss[i]||(ss[i]=(c=>{let u=0,d=11;for(;u<c.length;)d=101*d+c.charCodeAt(u++)>>>0;return"go"+d})(i));if(!ss[a]){let c=i!==e?e:(u=>{let d,p,h=[{}];for(;d=kB.exec(u.replace(DB,""));)d[4]?h.shift():d[3]?(p=d[3].replace(E2," ").trim(),h.unshift(h[0][p]=h[0][p]||{})):h[0][d[1]]=d[2].replace(E2," ").trim();return h[0]})(e);ss[a]=Pi(s?{["@keyframes "+a]:c}:c,n?"":"."+a)}let l=n&&ss.g?ss.g:null;return n&&(ss.g=ss[a]),((c,u,d,p)=>{p?u.data=u.data.replace(p,c):u.data.indexOf(c)===-1&&(u.data=d?c+u.data:u.data+c)})(ss[a],t,r,l),a},NB=(e,t,n)=>e.reduce((r,s,i)=>{let a=t[i];if(a&&a.call){let l=a(n),c=l&&l.props&&l.props.className||/^go/.test(l)&&l;a=c?"."+c:l&&typeof l=="object"?l.props?"":Pi(l,""):l===!1?"":l}return r+s+(a??"")},"");function km(e){let t=this||{},n=e.call?e(t.p):e;return FB(n.unshift?n.raw?NB(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,MB(t.target),t.g,t.o,t.k)}km.bind({g:1}),km.bind({k:1});function $B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function I2(e,t,n){return t&&$B(e.prototype,t),e}function tn(){return tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tn.apply(this,arguments)}function O2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Tc(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function M2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var k2=function(){return""},D2=ge.createContext({enqueueSnackbar:k2,closeSnackbar:k2}),Ei={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},F2=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Dm=function(t){return""+F2(t.vertical)+F2(t.horizontal)},Cp=function(t){return!!t||t===0},wp="unmounted",La="exited",Aa="entering",Ic="entered",N2="exiting",Fm=function(e){O2(t,e);function t(r){var s;s=e.call(this,r)||this;var i=r.appear,a;return s.appearStatus=null,r.in?i?(a=La,s.appearStatus=Aa):a=Ic:r.unmountOnExit||r.mountOnEnter?a=wp:a=La,s.state={status:a},s.nextCallback=null,s}t.getDerivedStateFromProps=function(s,i){var a=s.in;return a&&i.status===wp?{status:La}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var i=null;if(s!==this.props){var a=this.state.status;this.props.in?a!==Aa&&a!==Ic&&(i=Aa):(a===Aa||a===Ic)&&(i=N2)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,i=s,a=s;return s!=null&&typeof s!="number"&&typeof s!="string"&&(a=s.exit,i=s.enter),{exit:a,enter:i}},n.updateStatus=function(s,i){s===void 0&&(s=!1),i!==null?(this.cancelNextCallback(),i===Aa?this.performEnter(s):this.performExit()):this.props.unmountOnExit&&this.state.status===La&&this.setState({status:wp})},n.performEnter=function(s){var i=this,a=this.props.enter,l=s,c=this.getTimeouts();if(!s&&!a){this.safeSetState({status:Ic},function(){i.props.onEntered&&i.props.onEntered(i.node,l)});return}this.props.onEnter&&this.props.onEnter(this.node,l),this.safeSetState({status:Aa},function(){i.props.onEntering&&i.props.onEntering(i.node,l),i.onTransitionEnd(c.enter,function(){i.safeSetState({status:Ic},function(){i.props.onEntered&&i.props.onEntered(i.node,l)})})})},n.performExit=function(){var s=this,i=this.props.exit,a=this.getTimeouts();if(!i){this.safeSetState({status:La},function(){s.props.onExited&&s.props.onExited(s.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:N2},function(){s.props.onExiting&&s.props.onExiting(s.node),s.onTransitionEnd(a.exit,function(){s.safeSetState({status:La},function(){s.props.onExited&&s.props.onExited(s.node)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,i){i=this.setNextCallback(i),this.setState(s,i)},n.setNextCallback=function(s){var i=this,a=!0;return this.nextCallback=function(){a&&(a=!1,i.nextCallback=null,s())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(s,i){this.setNextCallback(i);var a=s==null&&!this.props.addEndListener;if(!this.node||a){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===wp)return null;var i=this.props,a=i.children,l=Tc(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(s,l)},I2(t,[{key:"node",get:function(){var s,i=(s=this.props.nodeRef)===null||s===void 0?void 0:s.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),t}(ge.Component);function Va(){}Fm.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Va,onEntering:Va,onEntered:Va,onExit:Va,onExiting:Va,onExited:Va};function $2(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Nm(e,t){return ge.useMemo(function(){return e==null&&t==null?null:function(n){$2(e,n),$2(t,n)}},[e,t])}function Sp(e){var t=e.timeout,n=e.style,r=n===void 0?{}:n,s=e.mode;return{duration:typeof t=="object"?t[s]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var $m={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},R2=function(t){t.scrollTop=t.scrollTop},L2=function(t){return Math.round(t)+"ms"};function Ba(e,t){e===void 0&&(e=["all"]);var n=t||{},r=n.duration,s=r===void 0?300:r,i=n.easing,a=i===void 0?$m.easeInOut:i,l=n.delay,c=l===void 0?0:l,u=Array.isArray(e)?e:[e];return u.map(function(d){var p=typeof s=="string"?s:L2(s),h=typeof c=="string"?c:L2(c);return d+" "+p+" "+a+" "+h}).join(",")}function RB(e){return e&&e.ownerDocument||document}function A2(e){var t=RB(e);return t.defaultView||window}function LB(e,t){t===void 0&&(t=166);var n;function r(){for(var s=this,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];var c=function(){e.apply(s,a)};clearTimeout(n),n=setTimeout(c,t)}return r.clear=function(){clearTimeout(n)},r}function AB(e,t){var n=t.getBoundingClientRect(),r=A2(t),s;if(t.fakeTransform)s=t.fakeTransform;else{var i=r.getComputedStyle(t);s=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){var c=s.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+a-n.left)+"px)";case"right":return"translateX(-"+(n.left+n.width-a)+"px)";case"up":return"translateY("+(r.innerHeight+l-n.top)+"px)";default:return"translateY(-"+(n.top+n.height-l)+"px)"}}function xp(e,t){if(t){var n=AB(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var V2=ge.forwardRef(function(e,t){var n=e.children,r=e.direction,s=r===void 0?"down":r,i=e.in,a=e.style,l=e.timeout,c=l===void 0?0:l,u=e.onEnter,d=e.onEntered,p=e.onExit,h=e.onExited,g=Tc(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),y=ge.useRef(null),m=Nm(n.ref,y),b=Nm(m,t),C=function(M,I){xp(s,M),R2(M),u&&u(M,I)},w=function(M){var I=a?.transitionTimingFunction||$m.easeOut,O=Sp({timeout:c,mode:"enter",style:tn({},a,{transitionTimingFunction:I})});M.style.webkitTransition=Ba("-webkit-transform",O),M.style.transition=Ba("transform",O),M.style.webkitTransform="none",M.style.transform="none"},S=function(M){var I=a?.transitionTimingFunction||$m.sharp,O=Sp({timeout:c,mode:"exit",style:tn({},a,{transitionTimingFunction:I})});M.style.webkitTransition=Ba("-webkit-transform",O),M.style.transition=Ba("transform",O),xp(s,M),p&&p(M)},E=function(M){M.style.webkitTransition="",M.style.transition="",h&&h(M)},P=ge.useCallback(function(){y.current&&xp(s,y.current)},[s]);return ge.useEffect(function(){if(!(i||s==="down"||s==="right")){var k=LB(function(){y.current&&xp(s,y.current)}),M=A2(y.current);return M.addEventListener("resize",k),function(){k.clear(),M.removeEventListener("resize",k)}}},[s,i]),ge.useEffect(function(){i||P()},[i,P]),ge.createElement(Fm,Object.assign({appear:!0,nodeRef:y,onEnter:C,onEntered:d,onEntering:w,onExit:S,onExited:E,in:i,timeout:c},g),function(k,M){return ge.cloneElement(n,tn({ref:b,style:tn({visibility:k==="exited"&&!i?"hidden":void 0},a,{},n.props.style)},M))})});V2.displayName="Slide";var Pp=function(t){return ge.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},VB=function(){return ge.createElement(Pp,null,ge.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
366
+ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let h=ur(),g;if(t){let w=typeof t=="string"?$a(t):t;bn(d==="/"||w.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${w.pathname}" was given in the \`location\` prop.`),g=w}else g=h;let y=g.pathname||"/",m=y;if(d!=="/"){let w=d.replace(/^\//,"").split("/");m="/"+y.replace(/^\//,"").split("/").slice(w.length).join("/")}let b=o2(e,{pathname:m});_r(p||b!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),_r(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=k7(b&&b.map(w=>Object.assign({},w,{params:Object.assign({},c,w.params),pathname:os([d,i.encodeLocation?i.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?d:os([d,i.encodeLocation?i.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),a,n,r,s);return t&&C?f.createElement(wc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},C):C}function T7(){let e=R7(),t=v7(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=f.createElement(f.Fragment,null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:i},"ErrorBoundary")," or"," ",f.createElement("code",{style:i},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:s},n):null,a)}var I7=f.createElement(T7,null),O7=class extends f.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?f.createElement(rs.Provider,{value:this.props.routeContext},f.createElement(Sm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function M7({routeContext:e,match:t,children:n}){let r=f.useContext(Ra);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement(rs.Provider,{value:e},n)}function k7(e,t=[],n=null,r=null,s=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n?.errors;if(a!=null){let u=i.findIndex(d=>d.route.id&&a?.[d.route.id]!==void 0);bn(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let l=!1,c=-1;if(n)for(let u=0;u<i.length;u++){let d=i[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:p,errors:h}=n,g=d.route.loader&&!p.hasOwnProperty(d.route.id)&&(!h||h[d.route.id]===void 0);if(d.route.lazy||g){l=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((u,d,p)=>{let h,g=!1,y=null,m=null;n&&(h=a&&d.route.id?a[d.route.id]:void 0,y=d.route.errorElement||I7,l&&(c<0&&p===0?(g2("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,m=null):c===p&&(g=!0,m=d.route.hydrateFallbackElement||null)));let b=t.concat(i.slice(0,p+1)),C=()=>{let w;return h?w=y:g?w=m:d.route.Component?w=f.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=u,f.createElement(M7,{match:d,routeContext:{outlet:u,matches:b,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?f.createElement(O7,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:C(),routeContext:{outlet:null,matches:b,isDataRoute:!0},unstable_onError:r}):C()},null)}function xm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function D7(e){let t=f.useContext(Ra);return bn(t,xm(e)),t}function F7(e){let t=f.useContext(gp);return bn(t,xm(e)),t}function N7(e){let t=f.useContext(rs);return bn(t,xm(e)),t}function Pm(e){let t=N7(e),n=t.matches[t.matches.length-1];return bn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function $7(){return Pm("useRouteId")}function R7(){let e=f.useContext(Sm),t=F7("useRouteError"),n=Pm("useRouteError");return e!==void 0?e:t.errors?.[n]}function L7(){let{router:e}=D7("useNavigate"),t=Pm("useNavigate"),n=f.useRef(!1);return p2(()=>{n.current=!0}),f.useCallback(async(s,i={})=>{_r(n.current,d2),n.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:t,...i}))},[e,t])}var h2={};function g2(e,t,n){!t&&!h2[e]&&(h2[e]=!0,_r(!1,n))}f.memo(A7);function A7({routes:e,future:t,state:n,unstable_onError:r}){return f2(e,void 0,n,r,t)}function Em(e){bn(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function V7({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:s,static:i=!1}){bn(!Sc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),l=f.useMemo(()=>({basename:a,navigator:s,static:i,future:{}}),[a,s,i]);typeof n=="string"&&(n=$a(n));let{pathname:c="/",search:u="",hash:d="",state:p=null,key:h="default"}=n,g=f.useMemo(()=>{let y=ns(c,a);return y==null?null:{location:{pathname:y,search:u,hash:d,state:p,key:h},navigationType:r}},[a,c,u,d,p,h,r]);return _r(g!=null,`<Router basename="${a}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:f.createElement(Hr.Provider,{value:l},f.createElement(wc.Provider,{children:t,value:g}))}function B7({children:e,location:t}){return E7(Tm(e),t)}function Tm(e,t=[]){let n=[];return f.Children.forEach(e,(r,s)=>{if(!f.isValidElement(r))return;let i=[...t,s];if(r.type===f.Fragment){n.push.apply(n,Tm(r.props.children,i));return}bn(r.type===Em,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),bn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Tm(r.props.children,i)),n.push(a)}),n}var mp="get",bp="application/x-www-form-urlencoded";function yp(e){return e!=null&&typeof e.tagName=="string"}function _7(e){return yp(e)&&e.tagName.toLowerCase()==="button"}function H7(e){return yp(e)&&e.tagName.toLowerCase()==="form"}function z7(e){return yp(e)&&e.tagName.toLowerCase()==="input"}function j7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function G7(e,t){return e.button===0&&(!t||t==="_self")&&!j7(e)}var vp=null;function W7(){if(vp===null)try{new FormData(document.createElement("form"),0),vp=!1}catch{vp=!0}return vp}var U7=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Im(e){return e!=null&&!U7.has(e)?(_r(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${bp}"`),null):e}function q7(e,t){let n,r,s,i,a;if(H7(e)){let l=e.getAttribute("action");r=l?ns(l,t):null,n=e.getAttribute("method")||mp,s=Im(e.getAttribute("enctype"))||bp,i=new FormData(e)}else if(_7(e)||z7(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||l.getAttribute("action");if(r=c?ns(c,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||mp,s=Im(e.getAttribute("formenctype"))||Im(l.getAttribute("enctype"))||bp,i=new FormData(l,e),!W7()){let{name:u,type:d,value:p}=e;if(d==="image"){let h=u?`${u}.`:"";i.append(`${h}x`,"0"),i.append(`${h}y`,"0")}else u&&i.append(u,p)}}else{if(yp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=mp,r=null,s=bp,a=e}return i&&s==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:s,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Om(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Y7(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&ns(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function K7(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function X7(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Z7(e,t,n){let r=await Promise.all(e.map(async s=>{let i=t.routes[s.route.id];if(i){let a=await K7(i,n);return a.links?a.links():[]}return[]}));return tB(r.flat(1).filter(X7).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function m2(e,t,n,r,s,i){let a=(c,u)=>n[u]?c.route.id!==n[u].route.id:!0,l=(c,u)=>n[u].pathname!==c.pathname||n[u].route.path?.endsWith("*")&&n[u].params["*"]!==c.params["*"];return i==="assets"?t.filter((c,u)=>a(c,u)||l(c,u)):i==="data"?t.filter((c,u)=>{let d=r.routes[c.route.id];if(!d||!d.hasLoader)return!1;if(a(c,u)||l(c,u))return!0;if(c.route.shouldRevalidate){let p=c.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function Q7(e,t,{includeHydrateFallback:n}={}){return J7(e.map(r=>{let s=t.routes[r.route.id];if(!s)return[];let i=[s.module];return s.clientActionModule&&(i=i.concat(s.clientActionModule)),s.clientLoaderModule&&(i=i.concat(s.clientLoaderModule)),n&&s.hydrateFallbackModule&&(i=i.concat(s.hydrateFallbackModule)),s.imports&&(i=i.concat(s.imports)),i}).flat(1))}function J7(e){return[...new Set(e)]}function eB(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function tB(e,t){let n=new Set;return new Set(t),e.reduce((r,s)=>{let i=JSON.stringify(eB(s));return n.has(i)||(n.add(i),r.push({key:i,link:s})),r},[])}function b2(){let e=f.useContext(Ra);return Om(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function nB(){let e=f.useContext(gp);return Om(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Mm=f.createContext(void 0);Mm.displayName="FrameworkContext";function y2(){let e=f.useContext(Mm);return Om(e,"You must render this element inside a <HydratedRouter> element"),e}function oB(e,t){let n=f.useContext(Mm),[r,s]=f.useState(!1),[i,a]=f.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:p}=t,h=f.useRef(null);f.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let m=C=>{C.forEach(w=>{a(w.isIntersecting)})},b=new IntersectionObserver(m,{threshold:.5});return h.current&&b.observe(h.current),()=>{b.disconnect()}}},[e]),f.useEffect(()=>{if(r){let m=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(m)}}},[r]);let g=()=>{s(!0)},y=()=>{s(!1),a(!1)};return n?e!=="intent"?[i,h,{}]:[i,h,{onFocus:Ec(l,g),onBlur:Ec(c,y),onMouseEnter:Ec(u,g),onMouseLeave:Ec(d,y),onTouchStart:Ec(p,g)}]:[!1,h,{}]}function Ec(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function rB({page:e,...t}){let{router:n}=b2(),r=f.useMemo(()=>o2(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?f.createElement(iB,{page:e,matches:r,...t}):null}function sB(e){let{manifest:t,routeModules:n}=y2(),[r,s]=f.useState([]);return f.useEffect(()=>{let i=!1;return Z7(e,t,n).then(a=>{i||s(a)}),()=>{i=!0}},[e,t,n]),r}function iB({page:e,matches:t,...n}){let r=ur(),{manifest:s,routeModules:i}=y2(),{basename:a}=b2(),{loaderData:l,matches:c}=nB(),u=f.useMemo(()=>m2(e,t,c,s,r,"data"),[e,t,c,s,r]),d=f.useMemo(()=>m2(e,t,c,s,r,"assets"),[e,t,c,s,r]),p=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let y=new Set,m=!1;if(t.forEach(C=>{let w=s.routes[C.route.id];!w||!w.hasLoader||(!u.some(S=>S.route.id===C.route.id)&&C.route.id in l&&i[C.route.id]?.shouldRevalidate||w.hasClientLoader?m=!0:y.add(C.route.id))}),y.size===0)return[];let b=Y7(e,a,"data");return m&&y.size>0&&b.searchParams.set("_routes",t.filter(C=>y.has(C.route.id)).map(C=>C.route.id).join(",")),[b.pathname+b.search]},[a,l,r,s,u,t,e,i]),h=f.useMemo(()=>Q7(d,s),[d,s]),g=sB(d);return f.createElement(f.Fragment,null,p.map(y=>f.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),h.map(y=>f.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),g.map(({key:y,link:m})=>f.createElement("link",{key:y,nonce:n.nonce,...m})))}function aB(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var v2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{v2&&(window.__reactRouterVersion="7.9.4")}catch{}function lB({basename:e,children:t,window:n}){let r=f.useRef();r.current==null&&(r.current=XV({window:n,v5Compat:!0}));let s=r.current,[i,a]=f.useState({action:s.action,location:s.location}),l=f.useCallback(c=>{f.startTransition(()=>a(c))},[a]);return f.useLayoutEffect(()=>s.listen(l),[s,l]),f.createElement(V7,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:s})}var C2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,w2=f.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:s,reloadDocument:i,replace:a,state:l,target:c,to:u,preventScrollReset:d,viewTransition:p,...h},g){let{basename:y}=f.useContext(Hr),m=typeof u=="string"&&C2.test(u),b,C=!1;if(typeof u=="string"&&m&&(b=u,v2))try{let O=new URL(window.location.href),F=u.startsWith("//")?new URL(O.protocol+u):new URL(u),D=ns(F.pathname,y);F.origin===O.origin&&D!=null?u=D+F.search+F.hash:C=!0}catch{_r(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let w=x7(u,{relative:s}),[S,E,P]=oB(r,h),k=pB(u,{replace:a,state:l,target:c,preventScrollReset:d,relative:s,viewTransition:p});function M(O){t&&t(O),O.defaultPrevented||k(O)}let I=f.createElement("a",{...h,...P,href:b||w,onClick:C||i?t:M,ref:aB(g,E),target:c,"data-discover":!m&&n==="render"?"true":void 0});return S&&!m?f.createElement(f.Fragment,null,I,f.createElement(rB,{page:w})):I});w2.displayName="Link";var cB=f.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:s=!1,style:i,to:a,viewTransition:l,children:c,...u},d){let p=Pc(a,{relative:u.relative}),h=ur(),g=f.useContext(gp),{navigator:y,basename:m}=f.useContext(Hr),b=g!=null&&bB(p)&&l===!0,C=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,w=h.pathname,S=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;n||(w=w.toLowerCase(),S=S?S.toLowerCase():null,C=C.toLowerCase()),S&&m&&(S=ns(S,m)||S);const E=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let P=w===C||!s&&w.startsWith(C)&&w.charAt(E)==="/",k=S!=null&&(S===C||!s&&S.startsWith(C)&&S.charAt(C.length)==="/"),M={isActive:P,isPending:k,isTransitioning:b},I=P?t:void 0,O;typeof r=="function"?O=r(M):O=[r,P?"active":null,k?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let F=typeof i=="function"?i(M):i;return f.createElement(w2,{...u,"aria-current":I,className:O,ref:d,style:F,to:a,viewTransition:l},typeof c=="function"?c(M):c)});cB.displayName="NavLink";var uB=f.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:s,state:i,method:a=mp,action:l,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:p,...h},g)=>{let y=gB(),m=mB(l,{relative:u}),b=a.toLowerCase()==="get"?"get":"post",C=typeof l=="string"&&C2.test(l),w=S=>{if(c&&c(S),S.defaultPrevented)return;S.preventDefault();let E=S.nativeEvent.submitter,P=E?.getAttribute("formmethod")||a;y(E||S.currentTarget,{fetcherKey:t,method:P,navigate:n,replace:s,state:i,relative:u,preventScrollReset:d,viewTransition:p})};return f.createElement("form",{ref:g,method:b,action:m,onSubmit:r?c:w,...h,"data-discover":!C&&e==="render"?"true":void 0})});uB.displayName="Form";function dB(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function S2(e){let t=f.useContext(Ra);return bn(t,dB(e)),t}function pB(e,{target:t,replace:n,state:r,preventScrollReset:s,relative:i,viewTransition:a}={}){let l=xc(),c=ur(),u=Pc(e,{relative:i});return f.useCallback(d=>{if(G7(d,t)){d.preventDefault();let p=n!==void 0?n:Cc(c)===Cc(u);l(e,{replace:p,state:r,preventScrollReset:s,relative:i,viewTransition:a})}},[c,l,u,n,r,t,e,s,i,a])}var fB=0,hB=()=>`__${String(++fB)}__`;function gB(){let{router:e}=S2("useSubmit"),{basename:t}=f.useContext(Hr),n=$7();return f.useCallback(async(r,s={})=>{let{action:i,method:a,encType:l,formData:c,body:u}=q7(r,t);if(s.navigate===!1){let d=s.fetcherKey||hB();await e.fetch(d,n,s.action||i,{preventScrollReset:s.preventScrollReset,formData:c,body:u,formMethod:s.method||a,formEncType:s.encType||l,flushSync:s.flushSync})}else await e.navigate(s.action||i,{preventScrollReset:s.preventScrollReset,formData:c,body:u,formMethod:s.method||a,formEncType:s.encType||l,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,t,n])}function mB(e,{relative:t}={}){let{basename:n}=f.useContext(Hr),r=f.useContext(rs);bn(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),i={...Pc(e||".",{relative:t})},a=ur();if(e==null){i.search=a.search;let l=new URLSearchParams(i.search),c=l.getAll("index");if(c.some(d=>d==="")){l.delete("index"),c.filter(p=>p).forEach(p=>l.append("index",p));let d=l.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&s.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:os([n,i.pathname])),Cc(i)}function bB(e,{relative:t}={}){let n=f.useContext(u2);bn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=S2("useViewTransitionState"),s=Pc(e,{relative:t});if(!n.isTransitioning)return!1;let i=ns(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=ns(n.nextLocation.pathname,r)||n.nextLocation.pathname;return hp(s.pathname,a)!=null||hp(s.pathname,i)!=null}const x2=({name:e,items:t,setState:n})=>{const r=xc(),s=ur(),i=new URLSearchParams(s.search);return v.jsx(ot,{size:12,children:v.jsx(es,{dense:!0,sx:{width:"100%","& .Mui-selected":{bgcolor:"#5B5157 !important"},"& .hover":{bgcolor:"#513D42 !important"}},component:"nav",subheader:e&&v.jsx(sc,{sx:{bgcolor:"transparent"},component:"div",id:"nested-list-subheader",children:e.toUpperCase()}),children:t.map((a,l)=>v.jsxs(mi,{sx:{borderRadius:"20px",minHeight:"56px",color:"#FFFFFF","& .MuiListItemText-primary":{color:"#FFFFFF"}},onClick:()=>{a.subgroups.length>0?(n("expanded"),r(a.path)):(n("open"),r(`${a.path}&view=${a.view}`))},selected:`${s.pathname}?module=${i.get("module")}`===a.path,children:[v.jsx(bi,{children:a.icon}),v.jsx(Vr,{primary:a.title,slotProps:{primary:{sx:{color:"#FFFFFF"}}}}),a.subgroups.length>0&&v.jsx(WV,{})]},l))})})},yB=({items:e,setState:t})=>{const n=xc(),r=ur(),s=new URLSearchParams(r.search);return v.jsx(ot,{size:12,children:v.jsx(es,{dense:!0,sx:{width:"100%","& .Mui-selected":{bgcolor:"#5B5157 !important"},"& .hover":{bgcolor:"#513D42 !important"}},component:"nav",children:e.map((i,a)=>v.jsx(mi,{sx:{borderRadius:"20px",minHeight:"56px"},onClick:()=>{i.subgroups.length>0?t("expanded"):n(`${i.path}&view=${i.view}`)},selected:`${r.pathname}?module=${s.get("module")}`===i.path,children:v.jsx(bi,{children:i.icon})},a))})})},vB=({items:e})=>{const t=ur(),n=xc(),r=new URLSearchParams(t.search);return v.jsx(ot,{size:12,children:v.jsx(es,{dense:!0,sx:{width:"100%","& .Mui-selected":{bgcolor:"#5B5157 !important"},"& .hover":{bgcolor:"#513D42 !important"}},component:"nav",children:e.map((s,i)=>v.jsx(mi,{sx:{borderRadius:"20px"},onClick:()=>{n(`${t.pathname}?module=${r.get("module")}${s.path}`)},selected:`&view=${r.get("view")}`===s.path,children:v.jsx(Vr,{slotProps:{primary:{sx:{color:"#FFFFFF"}}},primary:s.title})},i))})})},CB=({state:e,setState:t,groups:n})=>{const r=n.map(a=>a.items.map(l=>({title:l.title,color:l.color,icon:l.icon,path:l.path,view:l.view,subgroups:l.subgroups}))).flat(),s=ur(),i=new URLSearchParams(s.search);switch(e){case"close":return v.jsx(ot,{sx:{height:"calc(100vh - 160px)"},container:!0,spacing:2,children:v.jsx(yB,{items:r,setState:t})});case"open":return v.jsx(ot,{sx:{height:"calc(100vh - 160px)"},container:!0,spacing:2,children:v.jsx(ot,{size:12,children:n.map((a,l)=>v.jsx(x2,{name:a.name,items:a.items,setState:t},l))})});case"expanded":return v.jsxs(ot,{sx:{height:"calc(100vh - 160px)"},container:!0,spacing:2,children:[v.jsx(ot,{size:6,children:n.map((a,l)=>v.jsx(x2,{name:a.name,items:a.items,setState:t},l))}),v.jsx(ot,{size:6,children:v.jsx(vB,{items:r.find(a=>a.path===`${s.pathname}?module=${i.get("module")}`)?.subgroups||[]})})]})}},wB=({state:e,logout:t})=>{switch(e){case"close":return v.jsx(ot,{container:!0,spacing:2,children:v.jsx(ot,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},size:12,children:v.jsx(Dn,{sx:{height:"56px",borderRadius:"20px",bottom:"20px","&:focus":{outline:"none"},"&:focus-visible":{outline:"none"}},onClick:t,children:v.jsx(vm,{size:28,color:"#9a28e6"})})})});case"open":return v.jsx(ot,{container:!0,spacing:2,children:v.jsx(ot,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},size:12,children:v.jsx(Vn,{sx:{width:"100%",height:"56px",borderRadius:"20px",bottom:"20px",color:"#FFFFFF","&:focus":{outline:"none"},"&:focus-visible":{outline:"none"}},size:"small",startIcon:v.jsx(vm,{size:28,color:"#9a28e6"}),onClick:t,children:"Cerrar sesión"})})});case"expanded":return v.jsxs(ot,{container:!0,spacing:2,children:[v.jsx(ot,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},size:6,children:v.jsx(Vn,{sx:{width:"100%",height:"56px",borderRadius:"20px",bottom:"20px",color:"#FFFFFF","&:focus":{outline:"none"},"&:focus-visible":{outline:"none"}},color:"inherit",size:"small",startIcon:v.jsx(vm,{size:28,color:"#9D11F2"}),onClick:t,children:v.jsx("span",{style:{textTransform:"none"},children:"Cerrar sesión"})})}),v.jsx(ot,{size:6})]})}},SB=({items:e,logout:t,state:n,setState:r,getWidth:s})=>v.jsxs(Gn,{sx:{padding:"20px",height:"calc(100vh - 40px)",width:s(n),bgcolor:i=>i.palette.background.paper,borderRadius:5,border:i=>`1px solid ${i.palette.background.default}`,overflow:"hidden"},children:[v.jsx(KV,{state:n,setState:r}),v.jsx(CB,{state:n,setState:r,groups:e}),v.jsx(wB,{state:n,logout:t})]}),xB=()=>{const[e,t]=ge.useState("open");return{state:e,setState:t,getWidth:r=>{switch(r){case"close":return"105px";case"open":return"230px";case"expanded":return"435px";default:return"230px"}}}},PB=({routes:e})=>{const t=ur(),n=xc();return v.jsxs(B7,{children:[e.map((r,s)=>v.jsx(Em,{path:r.path,element:ge.cloneElement(r.element,{location:t,navigate:n})},s)),v.jsx(Em,{path:"*",element:v.jsx("div",{children:"404 - Page Not Found"})})]})},EB=({username:e,options:t})=>{const[n,r]=ge.useState(!1);return v.jsxs(Ow,{sx:{width:"260px",height:n?"auto":"56px",position:"absolute",top:20,right:20,zIndex:1e3,bgcolor:"white",padding:0,boxShadow:"none",borderRadius:"20px"},children:[v.jsx(kw,{sx:{padding:"8px 20px"},avatar:v.jsx(Fd,{sx:{width:40,height:40,bgcolor:"#9D11F2"},children:e.charAt(0)}),title:e,slotProps:{title:{fontSize:"18px",fontStyle:"normal",fontWeight:"500",lineHeight:"22px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",maxWidth:"150px"}},action:t.length>0&&v.jsx(v.Fragment,{children:v.jsx(Dn,{sx:{color:"black"},children:n?v.jsx(YV,{color:"black",size:30,onClick:()=>r(!1)}):v.jsx(qV,{color:"black",size:30,onClick:()=>r(!0)})})})}),n&&v.jsx(Mw,{sx:{paddingY:"0px"},children:v.jsx(es,{children:t.map((s,i)=>v.jsxs(mi,{sx:{borderRadius:"20px"},onClick:s.onClick,children:[v.jsx(bi,{children:s.icon}),v.jsx(Vr,{primary:s.label,slotProps:{primary:{fontSize:"18px",fontStyle:"normal",fontWeight:"400",lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"170px"}}})]},i))})})]})},TB=({getWidth:e,state:t,routes:n,account:r})=>v.jsxs(Gn,{sx:{width:`calc(100vw - ${e(t)} - 60px)`,height:"calc(100vh - 40px)"},children:[v.jsx(Gn,{sx:{height:"10%"},children:v.jsx(EB,{username:r.username,avatarUrl:r.avatarUrl,options:r.options})}),v.jsx(Gn,{sx:{height:"90%"},children:v.jsx(PB,{routes:n})})]}),IB=({logout:e,sidebarItems:t,routes:n,account:r})=>{const{state:s,setState:i,getWidth:a}=xB();return v.jsxs(Gn,{sx:{p:"20px",display:"grid",gridTemplateColumns:"auto 1fr",gap:"20px"},children:[v.jsx(SB,{items:t,logout:e,state:s,setState:i,getWidth:a}),v.jsx(TB,{state:s,getWidth:a,routes:n,account:r})]})};function P2(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<e.length;t++)e[t]&&(n=P2(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function xi(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=P2(e))&&(r&&(r+=" "),r+=t);return r}let OB={data:""},MB=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||OB,kB=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,DB=/\/\*[^]*?\*\/| +/g,E2=/\n+/g,Pi=(e,t)=>{let n="",r="",s="";for(let i in e){let a=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+a+";":r+=i[1]=="f"?Pi(a,i):i+"{"+Pi(a,i[1]=="k"?"":t)+"}":typeof a=="object"?r+=Pi(a,t?t.replace(/([^,])+/g,l=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,l):l?l+" "+c:c)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=Pi.p?Pi.p(i,a):i+":"+a+";")}return n+(t&&s?t+"{"+s+"}":s)+r},ss={},T2=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+T2(e[n]);return t}return e},FB=(e,t,n,r,s)=>{let i=T2(e),a=ss[i]||(ss[i]=(c=>{let u=0,d=11;for(;u<c.length;)d=101*d+c.charCodeAt(u++)>>>0;return"go"+d})(i));if(!ss[a]){let c=i!==e?e:(u=>{let d,p,h=[{}];for(;d=kB.exec(u.replace(DB,""));)d[4]?h.shift():d[3]?(p=d[3].replace(E2," ").trim(),h.unshift(h[0][p]=h[0][p]||{})):h[0][d[1]]=d[2].replace(E2," ").trim();return h[0]})(e);ss[a]=Pi(s?{["@keyframes "+a]:c}:c,n?"":"."+a)}let l=n&&ss.g?ss.g:null;return n&&(ss.g=ss[a]),((c,u,d,p)=>{p?u.data=u.data.replace(p,c):u.data.indexOf(c)===-1&&(u.data=d?c+u.data:u.data+c)})(ss[a],t,r,l),a},NB=(e,t,n)=>e.reduce((r,s,i)=>{let a=t[i];if(a&&a.call){let l=a(n),c=l&&l.props&&l.props.className||/^go/.test(l)&&l;a=c?"."+c:l&&typeof l=="object"?l.props?"":Pi(l,""):l===!1?"":l}return r+s+(a??"")},"");function km(e){let t=this||{},n=e.call?e(t.p):e;return FB(n.unshift?n.raw?NB(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,MB(t.target),t.g,t.o,t.k)}km.bind({g:1}),km.bind({k:1});function $B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function I2(e,t,n){return t&&$B(e.prototype,t),e}function tn(){return tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tn.apply(this,arguments)}function O2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Tc(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function M2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var k2=function(){return""},D2=ge.createContext({enqueueSnackbar:k2,closeSnackbar:k2}),Ei={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},F2=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Dm=function(t){return""+F2(t.vertical)+F2(t.horizontal)},Cp=function(t){return!!t||t===0},wp="unmounted",La="exited",Aa="entering",Ic="entered",N2="exiting",Fm=function(e){O2(t,e);function t(r){var s;s=e.call(this,r)||this;var i=r.appear,a;return s.appearStatus=null,r.in?i?(a=La,s.appearStatus=Aa):a=Ic:r.unmountOnExit||r.mountOnEnter?a=wp:a=La,s.state={status:a},s.nextCallback=null,s}t.getDerivedStateFromProps=function(s,i){var a=s.in;return a&&i.status===wp?{status:La}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var i=null;if(s!==this.props){var a=this.state.status;this.props.in?a!==Aa&&a!==Ic&&(i=Aa):(a===Aa||a===Ic)&&(i=N2)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,i=s,a=s;return s!=null&&typeof s!="number"&&typeof s!="string"&&(a=s.exit,i=s.enter),{exit:a,enter:i}},n.updateStatus=function(s,i){s===void 0&&(s=!1),i!==null?(this.cancelNextCallback(),i===Aa?this.performEnter(s):this.performExit()):this.props.unmountOnExit&&this.state.status===La&&this.setState({status:wp})},n.performEnter=function(s){var i=this,a=this.props.enter,l=s,c=this.getTimeouts();if(!s&&!a){this.safeSetState({status:Ic},function(){i.props.onEntered&&i.props.onEntered(i.node,l)});return}this.props.onEnter&&this.props.onEnter(this.node,l),this.safeSetState({status:Aa},function(){i.props.onEntering&&i.props.onEntering(i.node,l),i.onTransitionEnd(c.enter,function(){i.safeSetState({status:Ic},function(){i.props.onEntered&&i.props.onEntered(i.node,l)})})})},n.performExit=function(){var s=this,i=this.props.exit,a=this.getTimeouts();if(!i){this.safeSetState({status:La},function(){s.props.onExited&&s.props.onExited(s.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:N2},function(){s.props.onExiting&&s.props.onExiting(s.node),s.onTransitionEnd(a.exit,function(){s.safeSetState({status:La},function(){s.props.onExited&&s.props.onExited(s.node)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,i){i=this.setNextCallback(i),this.setState(s,i)},n.setNextCallback=function(s){var i=this,a=!0;return this.nextCallback=function(){a&&(a=!1,i.nextCallback=null,s())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(s,i){this.setNextCallback(i);var a=s==null&&!this.props.addEndListener;if(!this.node||a){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===wp)return null;var i=this.props,a=i.children,l=Tc(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(s,l)},I2(t,[{key:"node",get:function(){var s,i=(s=this.props.nodeRef)===null||s===void 0?void 0:s.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),t}(ge.Component);function Va(){}Fm.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Va,onEntering:Va,onEntered:Va,onExit:Va,onExiting:Va,onExited:Va};function $2(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Nm(e,t){return ge.useMemo(function(){return e==null&&t==null?null:function(n){$2(e,n),$2(t,n)}},[e,t])}function Sp(e){var t=e.timeout,n=e.style,r=n===void 0?{}:n,s=e.mode;return{duration:typeof t=="object"?t[s]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var $m={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},R2=function(t){t.scrollTop=t.scrollTop},L2=function(t){return Math.round(t)+"ms"};function Ba(e,t){e===void 0&&(e=["all"]);var n=t||{},r=n.duration,s=r===void 0?300:r,i=n.easing,a=i===void 0?$m.easeInOut:i,l=n.delay,c=l===void 0?0:l,u=Array.isArray(e)?e:[e];return u.map(function(d){var p=typeof s=="string"?s:L2(s),h=typeof c=="string"?c:L2(c);return d+" "+p+" "+a+" "+h}).join(",")}function RB(e){return e&&e.ownerDocument||document}function A2(e){var t=RB(e);return t.defaultView||window}function LB(e,t){t===void 0&&(t=166);var n;function r(){for(var s=this,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];var c=function(){e.apply(s,a)};clearTimeout(n),n=setTimeout(c,t)}return r.clear=function(){clearTimeout(n)},r}function AB(e,t){var n=t.getBoundingClientRect(),r=A2(t),s;if(t.fakeTransform)s=t.fakeTransform;else{var i=r.getComputedStyle(t);s=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){var c=s.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+a-n.left)+"px)";case"right":return"translateX(-"+(n.left+n.width-a)+"px)";case"up":return"translateY("+(r.innerHeight+l-n.top)+"px)";default:return"translateY(-"+(n.top+n.height-l)+"px)"}}function xp(e,t){if(t){var n=AB(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var V2=ge.forwardRef(function(e,t){var n=e.children,r=e.direction,s=r===void 0?"down":r,i=e.in,a=e.style,l=e.timeout,c=l===void 0?0:l,u=e.onEnter,d=e.onEntered,p=e.onExit,h=e.onExited,g=Tc(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),y=ge.useRef(null),m=Nm(n.ref,y),b=Nm(m,t),C=function(M,I){xp(s,M),R2(M),u&&u(M,I)},w=function(M){var I=a?.transitionTimingFunction||$m.easeOut,O=Sp({timeout:c,mode:"enter",style:tn({},a,{transitionTimingFunction:I})});M.style.webkitTransition=Ba("-webkit-transform",O),M.style.transition=Ba("transform",O),M.style.webkitTransform="none",M.style.transform="none"},S=function(M){var I=a?.transitionTimingFunction||$m.sharp,O=Sp({timeout:c,mode:"exit",style:tn({},a,{transitionTimingFunction:I})});M.style.webkitTransition=Ba("-webkit-transform",O),M.style.transition=Ba("transform",O),xp(s,M),p&&p(M)},E=function(M){M.style.webkitTransition="",M.style.transition="",h&&h(M)},P=ge.useCallback(function(){y.current&&xp(s,y.current)},[s]);return ge.useEffect(function(){if(!(i||s==="down"||s==="right")){var k=LB(function(){y.current&&xp(s,y.current)}),M=A2(y.current);return M.addEventListener("resize",k),function(){k.clear(),M.removeEventListener("resize",k)}}},[s,i]),ge.useEffect(function(){i||P()},[i,P]),ge.createElement(Fm,Object.assign({appear:!0,nodeRef:y,onEnter:C,onEntered:d,onEntering:w,onExit:S,onExited:E,in:i,timeout:c},g),function(k,M){return ge.cloneElement(n,tn({ref:b,style:tn({visibility:k==="exited"&&!i?"hidden":void 0},a,{},n.props.style)},M))})});V2.displayName="Slide";var Pp=function(t){return ge.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},VB=function(){return ge.createElement(Pp,null,ge.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
367
367
  10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},BB=function(){return ge.createElement(Pp,null,ge.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},_B=function(){return ge.createElement(Pp,null,ge.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
368
368
  6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
369
369
  13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},HB=function(){return ge.createElement(Pp,null,ge.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
@@ -523,7 +523,7 @@ return result$$;`.replaceAll("$$",String(CE)));return CE+=1,(c,u)=>a(i,c,u)},wE=
523
523
  `)))}}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const s=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let a=s.length-1;a>=0;a-=1){const l=s[a];r.highPriority.has(l)&&l.apply(this,n)}for(let a=0;a<i.length;a+=1){const l=i[a];r.regular.has(l)&&l.apply(this,n)}}once(t,n){const r=this;this.on(t,function s(...i){r.removeListener(t,s),n.apply(r,i)})}}const zO=Symbol("mui.api_private"),Sne=e=>e.isPropagationStopped!==void 0;let jO=0;function xne(e){const t=e.current?.[zO];if(t)return t;const n={},r={state:n,store:Gc.create(n),instanceId:{id:jO}};return jO+=1,r.getPublicApi=()=>e.current,r.register=(s,i)=>{Object.keys(i).forEach(a=>{const l=i[a],c=r[a];if(c?.spying===!0?c.target=l:r[a]=l,s==="public"){const u=e.current,d=u[a];d?.spying===!0?d.target=l:u[a]=l}})},r.register("private",{caches:{},eventManager:new HO}),r}function Pne(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[zO]:e.current}}function Ene(e,t){const n=f.useRef(null),r=f.useRef(null);r.current||(r.current=xne(n)),n.current||(n.current=Pne(r));const s=f.useCallback((...a)=>{const[l,c,u={}]=a;if(u.defaultMuiPrevented=!1,Sne(u)&&u.isPropagationStopped())return;const d=t.signature===So.DataGridPro||t.signature===So.DataGridPremium?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(l,c,u,d)},[r,t.signature]),i=f.useCallback((a,l,c)=>{r.current.eventManager.on(a,l,c);const u=r.current;return()=>{u.eventManager.removeListener(a,l)}},[r]);return Je(r,{subscribeEvent:i,publishEvent:s},"public"),e&&!e.current?.state&&(e.current=n.current),f.useImperativeHandle(e,()=>n.current,[n]),f.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const Tne=(e,t)=>x({},e,{headerFiltering:{enabled:t.headerFilters??!1,editing:null,menuOpen:null}}),Ine=(e,t)=>{const n=On(e,"useGridHeaderFiltering"),r=f.useCallback(p=>{e.current.setState(h=>t.signature==="DataGrid"?h:x({},h,{headerFiltering:{enabled:t.headerFilters??!1,editing:p.editing??null,menuOpen:p.menuOpen??null}}))},[e,t.signature,t.headerFilters]),s=f.useCallback(p=>{n.debug(`Starting edit mode on header filter for field: ${p}`),e.current.setHeaderFilterState({editing:p})},[e,n]),i=f.useCallback(()=>{n.debug("Stopping edit mode on header filter"),e.current.setHeaderFilterState({editing:null})},[e,n]),a=f.useCallback(p=>{n.debug(`Opening header filter menu for field: ${p}`),e.current.setHeaderFilterState({menuOpen:p})},[e,n]),l=f.useCallback(()=>{n.debug("Hiding header filter menu for active field");let p=e.current.state.headerFiltering.menuOpen;if(p){const h=Ur(e),g=zo(e),y=fr(e);if(h[p]||(p=y[0]),g[p]===!1){const m=y.filter(C=>C===p?!0:g[C]!==!1),b=m.indexOf(p);p=m[b+1]||m[b-1]}e.current.setHeaderFilterState({menuOpen:null}),e.current.setColumnHeaderFilterFocus(p)}},[e,n]),c={setHeaderFilterState:r};Je(e,{startHeaderFilterEditMode:s,stopHeaderFilterEditMode:i,showHeaderFilterMenu:a,hideHeaderFilterMenu:l},"public"),Je(e,c,"private");const d=f.useRef(!0);f.useEffect(()=>{d.current?d.current=!1:e.current.setHeaderFilterState({enabled:t.headerFilters??!1})},[e,t.headerFilters])},One=(e,t)=>{const n=ae(e,an),r=u0(e),s=t.rowsLoadingMode==="client"&&!!t.onRowsScrollEnd,i=he(()=>{const a=e.current.getViewportPageSize(),l={visibleColumns:n,viewportPageSize:a,visibleRowsCount:r.rows.length};e.current.publishEvent("rowsScrollEnd",l)});Tt(e,"rowsScrollEnd",t.onRowsScrollEnd),xe(e,"rowsScrollEndIntersection",no(s,i))},Mne=Gt(e=>e.columnReorder),GO=Ne(Mne,e=>e.dragCol),WO="left",UO="right",kne=(e,t)=>e.x<=t.x?UO:WO,Dne=(e,t)=>e.x!==t.x||e.y!==t.y,Fne=e=>{const{classes:t}=e;return de({columnHeaderDragging:["columnHeader--dragging"]},et,t)},Nne=e=>x({},e,{columnReorder:{dragCol:""}}),$ne=(e,t)=>{const n=On(e,"useGridColumnReorder"),r=f.useRef(null),s=f.useRef({x:0,y:0}),i=f.useRef(null),a=f.useRef({}),l=f.useRef(void 0),c={classes:t.classes},u=Fne(c),d=pn();f.useEffect(()=>()=>{clearTimeout(l.current)},[]);const p=f.useCallback((m,b)=>{const C=GO(e);if(!(t.disableColumnReorder||!C)){if(n.debug("End dragging col"),b.preventDefault(),b.stopPropagation(),clearTimeout(l.current),r.current.classList.contains(u.columnHeaderDragging)&&r.current.classList.remove(u.columnHeaderDragging),r.current=null,b.dataTransfer.dropEffect==="none"&&!t.keepColumnPositionIfDraggedOutside)e.current.setColumnIndex(C,i.current),i.current=null;else{const w={column:e.current.getColumn(C),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(C),oldIndex:i.current};e.current.publishEvent("columnOrderChange",w)}e.current.setState(w=>x({},w,{columnReorder:x({},w.columnReorder,{dragCol:""})}))}},[e,t.disableColumnReorder,t.keepColumnPositionIfDraggedOutside,n,u.columnHeaderDragging]),h=f.useCallback((m,b)=>{if(t.disableColumnReorder||m.colDef.disableReorder)return;n.debug(`Start dragging col ${m.field}`),b.stopPropagation(),r.current=b.currentTarget,r.current.classList.add(u.columnHeaderDragging);const C=I=>{r.current.removeEventListener("dragend",C),e.current.publishEvent("columnHeaderDragEndNative",m,I)};r.current.addEventListener("dragend",C),b.dataTransfer&&(b.dataTransfer.effectAllowed="move"),e.current.setState(I=>x({},I,{columnReorder:x({},I.columnReorder,{dragCol:m.field})})),l.current=setTimeout(()=>{r.current.classList.remove(u.columnHeaderDragging)}),i.current=e.current.getColumnIndex(m.field,!1);const w=e.current.getColumnGroupPath(m.field),S=i.current,E=e.current.getAllColumns(),P=e.current.getAllGroupDetails(),k=I=>{const O=E[I].field;return e.current.getColumnGroupPath(O)};let M=null;w.forEach(I=>{P[I]?.freeReordering||(S>0&&k(S-1).includes(I)||S+1<E.length&&k(S+1).includes(I))&&(M=I)}),a.current={};for(let I=0;I<E.length;I+=1){const O=I<=S?I-1:I,F=I<S?I:I+1;if(M!==null){let D=!1;(O>=0&&k(O).includes(M)||F<E.length&&k(F).includes(M))&&(D=!0),D||(a.current[I]=!0)}O>=0&&F<E.length&&k(F).forEach(D=>{k(O).includes(D)&&(w.includes(D)||P[D]?.freeReordering||(a.current[I]=!0))})}},[t.disableColumnReorder,u.columnHeaderDragging,n,e]),g=f.useCallback((m,b)=>{b.preventDefault(),b.stopPropagation()},[]),y=f.useCallback((m,b)=>{const C=GO(e);if(!C)return;n.debug(`Dragging over col ${m.field}`),b.preventDefault(),b.stopPropagation();const w={x:b.clientX,y:b.clientY};if(m.field!==C&&Dne(s.current,w)){const S=e.current.getColumnIndex(m.field,!1),E=e.current.getColumnIndex(m.field,!0),P=e.current.getColumn(m.field),k=e.current.getColumnIndex(C,!1),M=e.current.getVisibleColumns(),I=e.current.getAllColumns(),O=kne(s.current,w),F=O===WO&&(d?k<S:S<k),D=O===UO&&(d?S<k:k<S);if(F||D){let T,L=0;if(P.disableReorder?F?T=E>0&&!M[E-1].disableReorder:T=E<M.length-1&&!M[E+1].disableReorder:T=!0,a.current[S]){let $,N=S+L;if(F)for($=E>0?M[E-1].field:null;N>0&&I[N].field!==$&&a.current[N];)L-=1,N=S+L;else for($=E+1<M.length?M[E+1].field:null;N<I.length-1&&I[N].field!==$&&a.current[N];)L+=1,N=S+L;(a.current[N]||I[N].field===$)&&(T=!1)}e.current.unstable_applyPipeProcessors("canBeReordered",T,{targetIndex:E})&&e.current.setColumnIndex(C,S+L)}s.current=w}},[e,n,d]);f.useEffect(()=>{if(!t.keepColumnPositionIfDraggedOutside)return()=>{};const m=jt(e.current.rootElementRef.current),b=C=>{C.dataTransfer&&(C.preventDefault(),C.dataTransfer.dropEffect="move")};return m.addEventListener("dragover",b),()=>{m.removeEventListener("dragover",b)}},[e,t.keepColumnPositionIfDraggedOutside]),xe(e,"columnHeaderDragStart",h),xe(e,"columnHeaderDragEnter",g),xe(e,"columnHeaderDragOver",y),xe(e,"columnHeaderDragEndNative",p),xe(e,"cellDragEnter",g),xe(e,"cellDragOver",y),Tt(e,"columnOrderChange",t.onColumnOrderChange)},qO=x({},xo,{type:"custom",sortable:!1,filterable:!1,disableColumnMenu:!0,disableReorder:!0,align:"left",width:200,valueGetter:(e,t,n,r)=>{const s=jo(r,t),i=Bn(r,s);return i?.type==="group"||i?.type==="leaf"?i.groupingKey:void 0}}),qf={field:ey,editable:!1,groupable:!1},Rne=(e,t)=>{const n=f.useCallback((r,s)=>{if(e.current.getCellParams(r.id,r.field).colDef.field===ey&&(s.key===" "||s.key==="Enter")&&!s.shiftKey){if(r.rowNode.type!=="group")return;if(t.dataSource&&!r.rowNode.childrenExpanded){e.current.dataSource.fetchRows(r.id);return}e.current.setRowChildrenExpansion(r.id,!r.rowNode.childrenExpanded)}},[e,t.dataSource]);xe(e,"cellKeyDown",n)};let Jn=function(e){return e.Default="tree-data",e.DataSource="tree-data-source",e}({});const Lne=e=>{const{apiRef:t,rowTree:n,disableChildrenFiltering:r,isRowMatchingFilters:s}=e,i={},a={},l={},c={},u={passingFilterItems:null,passingQuickFilterValues:null},d=(h,g,y)=>{const m=r&&h.depth>0;let b;if(m)b=null;else if(!s||h.type==="footer")b=!0;else{const E=t.current.getRow(h.id);s(E,void 0,u),b=xE([u.passingFilterItems],[u.passingQuickFilterValues],e.filterModel,e.filterValueGetter,e.apiRef,c)}let C=0,w=0;h.type==="group"&&h.children.forEach(E=>{const P=n[E],k=d(P,b??g,y&&!!h.childrenExpanded);w+=k,k>0&&(C+=1)});let S;switch(b){case!0:{S=!0;break}case!1:{S=w>0;break}default:{S=g;break}}return S||(i[h.id]=!1),S?(a[h.id]=C,l[h.id]=w,h.type==="footer"?w:w+1):0},p=Object.values(n);for(let h=0;h<p.length;h+=1){const g=p[h];g.depth===0&&d(g,!0,!0)}return{filteredRowsLookup:i,filteredChildrenCountLookup:a,filteredDescendantCountLookup:l}},Io=ke,D0=Qe,Ane=e=>{const{classes:t}=e;return de({root:["treeDataGroupingCell"],toggle:["treeDataGroupingCellToggle"]},et,t)};function YO(e){const{id:t,field:n,formattedValue:r,rowNode:s,hideDescendantCount:i,offsetMultiplier:a=2}=e,l=Io(),c=D0(),u=Ane(l),p=ae(c,_U)[s.id]??0,h=s.childrenExpanded?l.slots.treeDataCollapseIcon:l.slots.treeDataExpandIcon,g=y=>{c.current.setRowChildrenExpansion(t,!s.childrenExpanded),c.current.setCellFocus(t,n),y.stopPropagation()};return v.jsxs("div",{className:u.root,style:{marginLeft:Te.spacing(s.depth*a)},children:[v.jsx("div",{className:u.toggle,children:p>0&&v.jsx(l.slots.baseIconButton,x({size:"small",onClick:g,tabIndex:-1,"aria-label":s.childrenExpanded?c.current.getLocaleText("treeDataCollapse"):c.current.getLocaleText("treeDataExpand")},l?.slotProps?.baseIconButton,{children:v.jsx(h,{fontSize:"inherit"})}))}),v.jsxs("span",{children:[r===void 0?s.groupingKey:r,!i&&p>0?` (${p})`:""]})]})}process.env.NODE_ENV!=="production"&&(YO.propTypes={api:o.object.isRequired,cellMode:o.oneOf(["edit","view"]).isRequired,colDef:o.object.isRequired,field:o.string.isRequired,focusElementRef:o.oneOfType([o.func,o.shape({current:o.shape({focus:o.func.isRequired})})]),formattedValue:o.any,hasFocus:o.bool.isRequired,hideDescendantCount:o.bool,id:o.oneOfType([o.number,o.string]).isRequired,isEditable:o.bool,offsetMultiplier:o.number,row:o.any.isRequired,rowNode:o.object.isRequired,tabIndex:o.oneOf([-1,0]).isRequired,value:o.any});function KO(e){const{colDef:t,onClick:n}=e,r=D0(),s=Io(),i=pn(),a=f.useCallback(p=>h=>{r.current.pinColumn(t.field,p),n(h)},[r,t.field,n]),l=p=>{r.current.unpinColumn(t.field),n(p)},c=v.jsx(s.slots.baseMenuItem,{onClick:a(In.LEFT),iconStart:v.jsx(s.slots.columnMenuPinLeftIcon,{fontSize:"small"}),children:r.current.getLocaleText("pinToLeft")}),u=v.jsx(s.slots.baseMenuItem,{onClick:a(In.RIGHT),iconStart:v.jsx(s.slots.columnMenuPinRightIcon,{fontSize:"small"}),children:r.current.getLocaleText("pinToRight")});if(!t)return null;const d=r.current.isColumnPinned(t.field);if(d){const p=d===In.RIGHT?In.LEFT:In.RIGHT,h=p===In.RIGHT?"pinToRight":"pinToLeft",g=d===In.RIGHT?s.slots.columnMenuPinLeftIcon:s.slots.columnMenuPinRightIcon;return v.jsxs(f.Fragment,{children:[v.jsx(s.slots.baseMenuItem,{onClick:a(p),iconStart:v.jsx(g,{fontSize:"small"}),children:r.current.getLocaleText(h)}),v.jsx(s.slots.baseMenuItem,{onClick:l,iconStart:v.jsx("span",{}),children:r.current.getLocaleText("unpin")})]})}return i?v.jsxs(f.Fragment,{children:[u,c]}):v.jsxs(f.Fragment,{children:[c,u]})}process.env.NODE_ENV!=="production"&&(KO.propTypes={colDef:o.object.isRequired,onClick:o.func.isRequired});const F0=Gt(e=>e.detailPanel),Us=Ne(F0,e=>e.expandedRowIds),N0=Ne(F0,e=>e.contentCache),$0=xt(F0,e=>e.heightCache),Vne=e=>{const{classes:t,isExpanded:n}=e;return de({root:["detailPanelToggleCell",n&&"detailPanelToggleCell--expanded"]},et,t)},Bne=Ne(Us,(e,t)=>e.has(t));function XO(e){const{id:t,row:n,api:r}=e,s=r.getRowId(n),i=ae({current:r},Bne,s),a=Io(),l=D0(),c={classes:a.classes,isExpanded:i},u=Vne(c),d=ae(l,N0),p=f.isValidElement(d[t]),h=i?a.slots.detailPanelCollapseIcon:a.slots.detailPanelExpandIcon;return v.jsx(a.slots.baseIconButton,x({size:"small",tabIndex:-1,disabled:!p,className:u.root,"aria-expanded":i,"aria-label":i?l.current.getLocaleText("collapseDetailPanel"):l.current.getLocaleText("expandDetailPanel")},a.slotProps?.baseIconButton,{children:v.jsx(h,{fontSize:"inherit"})}))}process.env.NODE_ENV!=="production"&&(XO.propTypes={api:o.object.isRequired,cellMode:o.oneOf(["edit","view"]).isRequired,colDef:o.object.isRequired,field:o.string.isRequired,focusElementRef:o.oneOfType([o.func,o.shape({current:o.shape({focus:o.func.isRequired})})]),formattedValue:o.any,hasFocus:o.bool.isRequired,id:o.oneOfType([o.number,o.string]).isRequired,isEditable:o.bool,row:o.any.isRequired,rowNode:o.object.isRequired,tabIndex:o.oneOf([-1,0]).isRequired,value:o.any});const _ne=e=>{const{isDraggable:t,classes:n}=e;return de({root:["rowReorderCell",t&&"rowReorderCell--draggable"],placeholder:["rowReorderCellPlaceholder"],icon:["rowReorderIcon"]},et,n)},Hne=yt("svg",{name:"MuiDataGrid",slot:"RowReorderIcon"})({color:Te.colors.foreground.muted});function ZO(e){const t=Qe(),n=Io(),r=ae(t,Un),s=ae(t,Mn),i=e.row.__reorder__||(e.rowNode.type==="group"?e.rowNode.groupingKey??e.id:e.id),a=f.useRef(null),l=f.useRef(null),c=f.useMemo(()=>!!n.rowReordering&&!r.length&&!n.treeData&&Object.keys(s).length===0,[n.rowReordering,r,n.treeData,s]),u={isDraggable:c,classes:n.classes},d=_ne(u),p=f.useCallback((C,w)=>S=>{hl(S)||t.current.getRow(e.id)&&(t.current.publishEvent(C,t.current.getRowParams(e.id),S),w&&w(S))},[t,e.id]),h=f.useCallback(()=>{t.current.rootElementRef?.current?.classList.add(j["root--disableUserSelection"])},[t]),g=f.useCallback(()=>{t.current.rootElementRef?.current?.classList.remove(j["root--disableUserSelection"])},[t]),y=f.useCallback(C=>{g(),t.current.getRow(e.id)&&t.current.publishEvent("rowDragEnd",t.current.getRowParams(e.id),C),l.current.removeEventListener("dragend",y),l.current=null},[t,e.id,g]),m=f.useCallback(C=>{a.current&&(p("rowDragStart")(C),a.current.addEventListener("dragend",y),l.current=a.current)},[p,y]),b=c?{onDragStart:m,onDragOver:p("rowDragOver"),onMouseDown:h,onMouseUp:g}:null;return e.rowNode.type==="footer"?null:v.jsxs("div",x({ref:a,className:d.root,draggable:c},b,{children:[v.jsx(Hne,{as:n.slots.rowReorderIcon,ownerState:u,className:d.icon,fontSize:"small"}),v.jsx("div",{className:d.placeholder,children:i})]}))}process.env.NODE_ENV!=="production"&&(ZO.propTypes={api:o.object.isRequired,cellMode:o.oneOf(["edit","view"]).isRequired,colDef:o.object.isRequired,field:o.string.isRequired,focusElementRef:o.oneOfType([o.func,o.shape({current:o.shape({focus:o.func.isRequired})})]),formattedValue:o.any,hasFocus:o.bool.isRequired,id:o.oneOfType([o.number,o.string]).isRequired,isEditable:o.bool,row:o.any.isRequired,rowNode:o.object.isRequired,tabIndex:o.oneOf([-1,0]).isRequired,value:o.any});const QO=e=>e.rowNode.type==="footer"||e.rowNode.type==="pinnedRow"?null:v.jsx(ZO,x({},e));process.env.NODE_ENV!=="production"&&(QO.displayName="renderRowReorderCell");const zne=Wt(v.jsx("g",{transform:"rotate(-30 15 10)",children:v.jsx("path",{d:"M16,9V4l1,0c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H7C6.45,2,6,2.45,6,3v0 c0,0.55,0.45,1,1,1l1,0v5c0,1.66-1.34,3-3,3h0v2h5.97v7l1,1l1-1v-7H19v-2h0C17.34,12,16,10.66,16,9z",fillRule:"evenodd"})}),"PushPinRight"),jne=Wt(v.jsx("g",{transform:"rotate(30 8 12)",children:v.jsx("path",{d:"M16,9V4l1,0c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H7C6.45,2,6,2.45,6,3v0 c0,0.55,0.45,1,1,1l1,0v5c0,1.66-1.34,3-3,3h0v2h5.97v7l1,1l1-1v-7H19v-2h0C17.34,12,16,10.66,16,9z",fillRule:"evenodd"})}),"PushPinLeft"),Gne=["operators","item","field","buttonRef","headerFilterMenuRef","disabled","showClearItem","clearFilterItem"];function JO(e){const{operators:t,item:n,field:r,buttonRef:s,headerFilterMenuRef:i,disabled:a=!1,showClearItem:l,clearFilterItem:c}=e,u=re(e,Gne),d=at(),p=at(),h=Io(),g=Qe(),m=!!(ae(g,hy)===r&&i.current),b=S=>{i.current=S.currentTarget,g.current.showHeaderFilterMenu(r)};if(!h.slots.headerFilterMenu)return null;const C=g.current.getLocaleText("filterPanelOperator"),w=C?String(C):void 0;return v.jsxs(f.Fragment,{children:[v.jsx(h.slots.baseIconButton,x({id:d,ref:s,"aria-label":w,title:w,"aria-controls":p,"aria-expanded":m?"true":void 0,"aria-haspopup":"true",tabIndex:-1,size:"small",onClick:b,disabled:a},h.slotProps?.baseIconButton,{children:v.jsx(h.slots.baseBadge,{color:"primary",variant:"dot",badgeContent:l?1:0,children:v.jsx(h.slots.openFilterButtonIcon,{fontSize:"inherit"})})})),v.jsx(h.slots.headerFilterMenu,x({field:r,open:m,item:n,target:i.current,operators:t,labelledBy:d,id:p,clearFilterItem:c,showClearItem:l},u))]})}process.env.NODE_ENV!=="production"&&(JO.propTypes={applyFilterChanges:o.func.isRequired,buttonRef:Ft,clearFilterItem:o.func,disabled:o.bool,field:o.string.isRequired,headerFilterMenuRef:o.shape({current:o.object}).isRequired,item:o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any}).isRequired,operators:o.arrayOf(o.shape({getApplyFilterFn:o.func.isRequired,getValueAsString:o.func,headerLabel:o.string,InputComponent:o.elementType,InputComponentProps:o.shape({apiRef:o.shape({current:o.object.isRequired}),applyValue:o.func,className:o.string,clearButton:o.node,disabled:o.bool,focusElementRef:o.oneOfType([o.func,o.shape({current:o.any.isRequired})]),headerFilterMenu:o.node,inputRef:o.oneOfType([o.func,o.shape({current:(e,t)=>e[t]==null?null:typeof e[t]!="object"||e[t].nodeType!==1?new Error(`Expected prop '${t}' to be of type Element`):null})]),isFilterActive:o.bool,item:o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any}),onBlur:o.func,onFocus:o.func,slotProps:o.object,tabIndex:o.number}),label:o.string,requiresFilterValue:o.bool,value:o.string.isRequired})).isRequired,showClearItem:o.bool});function Wne(e){const t=Io();return v.jsx(t.slots.baseIconButton,x({tabIndex:-1,"aria-label":"Clear filter",size:"small"},t.slotProps?.baseIconButton,e,{children:v.jsx(t.slots.columnMenuClearIcon,{fontSize:"inherit"})}))}const Une=["colIndex","height","hasFocus","width","headerClassName","colDef","item","headerFilterMenuRef","InputComponentProps","showClearIcon","pinnedPosition","pinnedOffset","style","showLeftBorder","showRightBorder"],qne=Z(to,{name:"MuiDataGrid",slot:"ColumnHeaderFilterInput"})({flex:1,marginRight:Te.spacing(.5),marginBottom:Te.spacing(-.25),'& input[type="number"], & input[type="date"], & input[type="datetime-local"]':{'&[value=""]:not(:focus)':{color:"transparent"}},[`& .${jn.input}`]:{fontSize:"14px"},[`.${j["root--densityCompact"]} & .${jn.input}`]:{paddingTop:Te.spacing(.5),paddingBottom:Te.spacing(.5),height:23}}),Yne=Z("span",{name:"MuiDataGrid",slot:"ColumnHeaderFilterOperatorLabel"})({flex:1,marginRight:Te.spacing(.5),color:Te.colors.foreground.muted,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}),Kne=e=>{const{colDef:t,classes:n,showRightBorder:r,showLeftBorder:s,pinnedPosition:i}=e,a={root:["columnHeader","columnHeader--filter",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight","withBorderColor",r&&"columnHeader--withRightBorder",s&&"columnHeader--withLeftBorder",i===ct.LEFT&&"columnHeader--pinnedLeft",i===ct.RIGHT&&"columnHeader--pinnedRight"],input:["columnHeaderFilterInput"],operatorLabel:["columnHeaderFilterOperatorLabel"]};return de(a,et,n)},Xne={string:to,number:to,date:ls,dateTime:ls,boolean:ty,singleSelect:Of,actions:null,custom:null},R0=Ue((e,t)=>{const{colIndex:n,height:r,hasFocus:s,width:i,headerClassName:a,colDef:l,item:c,headerFilterMenuRef:u,InputComponentProps:d,showClearIcon:p=!1,pinnedPosition:h,pinnedOffset:g,style:y,showLeftBorder:m,showRightBorder:b}=e,C=re(e,Une),w=Kn(),S=pn(),E=ae(w,Qa),P=Io(),k=f.useRef(null),M=nt(t,k),I=f.useRef(null),O=f.useRef(null),D=ae(w,lT)===l.field,L=ae(w,hy)===l.field,V=f.useMemo(()=>l.filterOperators?l.filterOperators.filter(ne=>ne.value!=="isAnyOf"):[],[l.filterOperators]),$=ae(w,ln),N=ae(w,bE),A=f.useMemo(()=>{if(!$?.items.length)return!1;const ne=$.items.find(ce=>ce.field===l.field);return ne?!N[ne.field]:!1},[l.field,$,N]),_=f.useMemo(()=>V.find(ne=>ne.value===c.operator)??V[0],[c.operator,V]),H=l.filterable||A?_.InputComponent??Xne[l.type]:null,R=f.useCallback(()=>{w.current.deleteFilterItem(c)},[w,c]);let B;l.renderHeaderFilter&&(B=l.renderHeaderFilter(x({},e,{inputRef:I}))),f.useLayoutEffect(()=>{if(s&&!L){let ne=k.current.querySelector('[tabindex="0"]');D&&H&&(ne=I.current),(ne||k.current)?.focus(),w.current.columnHeadersContainerRef.current&&(w.current.columnHeadersContainerRef.current.scrollLeft=0)}},[H,w,s,D,L]);const z=f.useCallback(ne=>{if(!(L||Xc(ne.key)||A))switch(ne.key){case"Escape":D&&w.current.stopHeaderFilterEditMode();break;case"Enter":if(D&&!ne.defaultPrevented){w.current.stopHeaderFilterEditMode();break}if(ne.metaKey||ne.ctrlKey){u.current=O.current,w.current.showHeaderFilterMenu(l.field);break}w.current.startHeaderFilterEditMode(l.field);break;case"Tab":{if(D){const ce=E[n+(ne.shiftKey?-1:1)]??null;ce&&(w.current.startHeaderFilterEditMode(ce),w.current.setColumnHeaderFilterFocus(ce,ne))}break}default:if(D||ne.metaKey||ne.ctrlKey||ne.altKey||ne.shiftKey)break;w.current.startHeaderFilterEditMode(l.field);break}},[w,l.field,n,E,u,D,A,L]),G=f.useCallback((ne,ce)=>ee=>{w.current.publishEvent(ne,w.current.getColumnHeaderParams(l.field),ee),ce&&ce(ee)},[w,l.field]),Y=f.useCallback(ne=>{s||(I.current?.contains?.(ne.target)&&I.current.focus(),w.current.setColumnHeaderFilterFocus(l.field,ne))},[w,l.field,s]),X=f.useMemo(()=>({onKeyDown:G("headerFilterKeyDown",z),onClick:G("headerFilterClick"),onMouseDown:G("headerFilterMouseDown",Y),onBlur:G("headerFilterBlur")}),[Y,z,G]),W=x({},P,{pinnedPosition:h,colDef:l,showLeftBorder:m,showRightBorder:b}),Q=Kne(W),te=_.headerLabel??w.current.getLocaleText(`headerFilterOperator${le(c.operator)}`),J=_.requiresFilterValue===!1,q=c?.value!==void 0||J,K=q||s,U=v.jsx(JO,{operators:V,item:c,field:l.field,disabled:A,applyFilterChanges:w.current.upsertFilterItem,headerFilterMenuRef:u,buttonRef:O,showClearItem:!p&&q,clearFilterItem:R}),ie=p&&q?v.jsx(Wne,{onClick:R,disabled:A}):null;return v.jsxs("div",x({className:se(Q.root,a),style:au(x({height:r,width:i},y),S,h,g),role:"columnheader","aria-colindex":n+1,"aria-label":B==null?l.headerName??l.field:void 0},C,X,{ref:M,children:[B,B===void 0?v.jsxs(f.Fragment,{children:[J?v.jsxs(f.Fragment,{children:[v.jsx(Yne,{className:Q.operatorLabel,children:te}),ie,U]}):null,H&&!J?v.jsx(qne,x({as:H,className:Q.input,apiRef:w,item:c,inputRef:I,applyValue:w.current.upsertFilterItem,onFocus:()=>w.current.startHeaderFilterEditMode(l.field),onBlur:ne=>{w.current.stopHeaderFilterEditMode(),ne.relatedTarget?.className.includes("columnHeader")||w.current.setState(ce=>x({},ce,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},isFilterActive:K,headerFilterMenu:U,clearButton:ie,disabled:A||J,tabIndex:-1,slotProps:{root:{size:"small",label:le(te),placeholder:""}}},J?{value:""}:{},_?.InputComponentProps,d)):null]}):null]}))});process.env.NODE_ENV!=="production"&&(R0.displayName="GridHeaderFilterCell"),process.env.NODE_ENV!=="production"&&(R0.propTypes={colDef:o.object.isRequired,colIndex:o.number.isRequired,hasFocus:o.bool,headerClassName:o.oneOfType([o.func,o.string]),headerFilterMenuRef:o.shape({current:o.object}).isRequired,height:o.number.isRequired,InputComponentProps:o.shape({apiRef:o.shape({current:o.object.isRequired}),applyValue:o.func,className:o.string,clearButton:o.node,disabled:o.bool,focusElementRef:o.oneOfType([o.func,o.shape({current:o.any.isRequired})]),headerFilterMenu:o.node,inputRef:o.oneOfType([o.func,o.shape({current:(e,t)=>e[t]==null?null:typeof e[t]!="object"||e[t].nodeType!==1?new Error(`Expected prop '${t}' to be of type Element`):null})]),isFilterActive:o.bool,item:o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any}),onBlur:o.func,onFocus:o.func,slotProps:o.object,tabIndex:o.number}),item:o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any}).isRequired,pinnedOffset:o.number,pinnedPosition:o.oneOf([0,1,2,3]),showClearIcon:o.bool,showLeftBorder:o.bool.isRequired,showRightBorder:o.bool.isRequired,sortIndex:o.number,style:o.object,tabIndex:o.oneOf([-1,0]).isRequired,width:o.number.isRequired});const Zne=Sr(R0);function eM({open:e,field:t,target:n,applyFilterChanges:r,operators:s,item:i,id:a,labelledBy:l,showClearItem:c,clearFilterItem:u}){const d=Qe(),p=ke(),h=f.useCallback(()=>{d.current.hideHeaderFilterMenu()},[d]);return n?v.jsx(el,{position:"bottom-end",open:e,target:n,onClose:h,children:v.jsxs(p.slots.baseMenuList,{"aria-labelledby":l,id:a,children:[c&&[v.jsx(p.slots.baseMenuItem,{iconStart:v.jsx(p.slots.columnMenuClearIcon,{fontSize:"small"}),onClick:()=>{u(),h()},children:d.current.getLocaleText("headerFilterClear")},"filter-menu-clear-filter"),v.jsx(p.slots.baseDivider,{},"filter-menu-divider")],s.map(g=>{const y=g.value===i.operator,m=g?.headerLabel??d.current.getLocaleText(`headerFilterOperator${le(g.value)}`);return v.jsx(p.slots.baseMenuItem,{iconStart:y?v.jsx(p.slots.menuItemCheckIcon,{fontSize:"small"}):v.jsx("span",{}),onClick:()=>{r(x({},i,{operator:g.value})),h()},autoFocus:y?e:!1,children:m},`${t}-${g.value}`)})]})}):null}process.env.NODE_ENV!=="production"&&(eM.propTypes={applyFilterChanges:o.func.isRequired,clearFilterItem:o.func.isRequired,field:o.string.isRequired,id:o.string,item:o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any}).isRequired,labelledBy:o.string,open:o.bool.isRequired,operators:o.arrayOf(o.shape({getApplyFilterFn:o.func.isRequired,getValueAsString:o.func,headerLabel:o.string,InputComponent:o.elementType,InputComponentProps:o.shape({apiRef:o.shape({current:o.object.isRequired}),applyValue:o.func,className:o.string,clearButton:o.node,disabled:o.bool,focusElementRef:o.oneOfType([o.func,o.shape({current:o.any.isRequired})]),headerFilterMenu:o.node,inputRef:o.oneOfType([o.func,o.shape({current:(e,t)=>e[t]==null?null:typeof e[t]!="object"||e[t].nodeType!==1?new Error(`Expected prop '${t}' to be of type Element`):null})]),isFilterActive:o.bool,item:o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any}),onBlur:o.func,onFocus:o.func,slotProps:o.object,tabIndex:o.number}),label:o.string,requiresFilterValue:o.bool,value:o.string.isRequired})).isRequired,showClearItem:o.bool.isRequired,target:Jo});const tM=e=>`auto-generated-row-${e.map(n=>`${n.field}/${n.key}`).join("-")}`,nM=({id:e,tree:t})=>{const n=[];let r=t[e];for(;r.id!==rt;)n.push({field:r.type==="leaf"?null:r.groupingField,key:r.groupingKey}),r=t[r.parent];return n.reverse(),n},oM=(e,t,n,r,s)=>{if(n!==void 0&&e.depth>=n)return!1;let i;return e.id===rt?i=!0:r?i=r(e):i=t===-1||t>e.depth||(s??!1),i},rM=(e,t,n,r,s)=>{const i=oM(e,t,n,r,s);return e.childrenExpanded=i,e},Yf=(e,t,n,r)=>{t[e.id]=e,n[e.depth]=(n[e.depth]??0)+1;const s=t[e.parent];if(e.type==="group"||e.type==="leaf"){const i=e.groupingField??"__no_field__",a=e.groupingKey??"__no_key__",l=s.childrenFromPath?.[i];r!==null&&r[s.id]===t[s.id]?s.children=[...s.children,e.id]:s.children.push(e.id),l==null?s.childrenFromPath[i]={[a.toString()]:e.id}:l[a.toString()]=e.id}else e.type==="footer"&&(s.footerId=e.id)},L0=({node:e,tree:t,treeDepths:n})=>{delete t[e.id];const r=e.depth,s=n[r];s===1?delete n[r]:n[r]=s-1;const i=t[e.parent];if(e.type==="footer")t[i.id]=x({},i,{footerId:null});else{const a=e.groupingField??"__no_field__",l=e.groupingKey??"__no_key__",c=i.children.filter(d=>d!==e.id),u=i.childrenFromPath;delete u[a][l.toString()],t[i.id]=x({},i,{children:c,childrenFromPath:u})}},sM=({node:e,updatedNode:t,previousTree:n,tree:r,treeDepths:s})=>{e.children.forEach(a=>{r[a]=x({},r[a],{parent:t.id})}),L0({node:e,tree:r,treeDepths:s});const i=x({},e,t);Yf(i,r,s,n)},iM=({tree:e,filteredRowsLookup:t})=>{if(!t)return{};const n={},r=(i,a)=>{const l=t[i.id]!==!1;i.type==="group"&&i.children.forEach(u=>{const d=e[u];r(d,a&&!!i.childrenExpanded)});const c=l&&a;if(c||(n[i.id]=c),i.type==="group"&&i.footerId!=null){const u=l&&a&&!!i.childrenExpanded;u||(n[i.footerId]=u)}},s=Object.values(e);for(let i=0;i<s.length;i+=1){const a=s[i];a.depth===0&&r(a,!0)}return n},A0=({id:e,path:t,previousTree:n,tree:r,treeDepths:s,onDuplicatePath:i,isGroupExpandedByDefault:a,defaultGroupingExpansionDepth:l,serverChildrenCount:c,groupsToFetch:u,maxDepth:d})=>{let p=rt;for(let h=0;h<t.length;h+=1){const{key:g,field:y}=t[h],m=y??"__no_field__",b=g??"__no_key__",C=r[p].childrenFromPath?.[m]?.[b.toString()];if(h===t.length-1)if(C==null){let w;c!==void 0&&c!==0?(w={type:"group",id:e,parent:p,path:t.map(E=>E.key),depth:h,isAutoGenerated:!1,groupingKey:g,groupingField:y,children:[],childrenFromPath:{},childrenExpanded:!1,serverChildrenCount:c},oM(w,l,d,a)&&u?.add(e)):w={type:"leaf",id:e,depth:h,parent:p,groupingKey:g},Yf(w,r,s,n)}else{const w=r[C];w.type==="group"&&w.isAutoGenerated?sM({tree:r,previousTree:n,treeDepths:s,node:w,updatedNode:{id:e,isAutoGenerated:!1}}):i?.(C,e,t)}else if(C==null){const w=tM(t.slice(0,h+1));Yf(rM({type:"group",id:w,parent:p,depth:h,isAutoGenerated:!0,groupingKey:g,groupingField:y,children:[],childrenFromPath:{},childrenExpanded:!1},l,d,a,n?.[w]?.childrenExpanded),r,s,n),p=w}else{const w=r[C];if(w.type!=="group"){const S={type:"group",id:w.id,parent:w.parent,depth:w.depth,isAutoGenerated:!1,groupingKey:g,groupingField:y,children:[],childrenFromPath:{},childrenExpanded:!1};r[C]=rM(S,l,d,a,n?.[w.id]?.childrenExpanded)}p=w.id}}},aM=e=>{const t=[],n={[rt]:VP()},r={},s=new Set;for(let i=0;i<e.nodes.length;i+=1){const a=e.nodes[i];t.push(a.id),A0({tree:n,previousTree:e.previousTree,id:a.id,path:a.path,serverChildrenCount:a.serverChildrenCount,onDuplicatePath:e.onDuplicatePath,treeDepths:r,isGroupExpandedByDefault:e.isGroupExpandedByDefault,defaultGroupingExpansionDepth:e.defaultGroupingExpansionDepth,groupsToFetch:s,maxDepth:e.maxDepth})}return{tree:n,treeDepths:r,groupingName:e.groupingName,dataRowIds:t,groupsToFetch:Array.from(s)}};let lM=class{constructor(t,n){this.next=n,this.data=t}insertAfter(t){if(!t.first||!t.last)return;const n=this.next;this.next=t.first,t.last.next=n}};class vu{constructor(t,n){this.first=t,this.last=n}data(){const t=[];return this.forEach(n=>{t.push(n.data)}),t}forEach(t){let n=this.first;for(;n!==null;)t(n),n=n.next}static from(t){if(t.length===0)return new vu(null,null);let n=0;const r=new lM(t[n],null);let s=r;for(;n+1<t.length;){n+=1;const i=new lM(t[n],null);s.next=i,s=i}return new vu(r,s)}}const Qne=e=>{const{rowTree:t,disableChildrenSorting:n,sortRowList:r}=e,s=new Map,i=l=>{const c=!!r&&(!n||l.depth===-1);let u;if(c){for(let d=0;d<l.children.length;d+=1){const p=t[l.children[d]];p.type==="group"&&i(p)}u=r(l.children.map(d=>t[d]))}else{for(let d=0;d<l.children.length;d+=1){const p=t[l.children[d]];p.type==="group"&&i(p)}u=[...l.children]}l.footerId!=null&&u.push(l.footerId),s.set(l.id,u)};i(t[rt]);const a=vu.from(s.get(rt));return a.forEach(l=>{const c=s.get(l.data);c?.length&&l.insertAfter(vu.from(c))}),a.data()},Jne=["getColumnsToRender","getPinnedCellOffset","renderContext","leftRenderContext","rightRenderContext","pinnedColumns","visibleColumns","columnPositions"],eoe=e=>{const{classes:t}=e;return f.useMemo(()=>de({headerFilterRow:["headerFilterRow"]},et,t),[t])},toe=e=>{const t=Kn(),{headerGroupingMaxDepth:n,hasOtherElementInTabSequence:r}=e,s=ae(t,eq),i=BO(x({},e,{hasOtherElementInTabSequence:r||s!==null})),{getColumnsToRender:a,getPinnedCellOffset:l,renderContext:c,leftRenderContext:u,rightRenderContext:d,pinnedColumns:p,visibleColumns:h,columnPositions:g}=i,y=re(i,Jne),m=f.useRef(null);t.current.register("private",{headerFiltersElementRef:m});const b=f.useRef(null),C=Io(),w=eoe(C),S=!C.headerFilters,E=ae(t,ln),P=ae(t,Wc),k=ae(t,Bb),M=ae(t,CW),I=ae(t,_b),O=ae(t,JU),F=f.useRef(Object.create(null)).current,D=f.useCallback(V=>{const $=E?.items.find(_=>_.field===V.field&&_.operator!=="isAnyOf");if($!=null)return $;const N=F[V.field];if(N!=null)return N;const A=Gy(V);return F[V.field]=A,A},[E]),T=V=>{const{renderedColumns:$,firstColumnToRender:N}=a(V),A=[];for(let _=0;_<$.length;_+=1){const H=$[_],R=N+_,B=O?.field===H.field,z=R===0,Y=s?.field===H.field||z&&!e.hasOtherElementInTabSequence?0:-1,X=typeof H.headerClassName=="function"?H.headerClassName({field:H.field,colDef:H}):H.headerClassName,W=D(H),Q=V?.position,te=l(Q,H.computedWidth,R,g,P,I),J=_,q=$.length,K=du(Q,J,C.showColumnVerticalBorder,C.pinnedColumnsSectionSeparator),U=uu(Q,J,q,C.showColumnVerticalBorder,k,C.pinnedColumnsSectionSeparator);A.push(v.jsx(C.slots.headerFilterCell,x({colIndex:R,height:M,width:H.computedWidth,colDef:H,hasFocus:B,tabIndex:Y,headerFilterMenuRef:b,headerClassName:X,"data-field":H.field,item:W,pinnedPosition:Q,pinnedOffset:te,showLeftBorder:K,showRightBorder:U},C.slotProps?.headerFilterCell),`${H.field}-filter`))}return y.getFillers(V,A,0,!0)},L=()=>S?null:v.jsxs(O0,{ref:m,className:w.headerFilterRow,role:"row","aria-rowindex":n+2,ownerState:C,children:[u&&T({position:ct.LEFT,renderContext:u,maxLastColumn:u.lastColumnIndex}),T({renderContext:c,maxLastColumn:h.length-p.right.length}),d&&T({position:ct.RIGHT,renderContext:d,maxLastColumn:d.lastColumnIndex})]});return process.env.NODE_ENV!=="production"&&(L.displayName="getColumnFiltersRow"),x({},y,{getColumnFiltersRow:L})},noe=["style","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],ooe=Z("div")({flex:1,backgroundColor:Te.header.background.base}),V0=Ue(function(t,n){const{className:r,visibleColumns:s,sortColumnLookup:i,filterColumnLookup:a,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:c,columnHeaderFocus:u,columnGroupHeaderFocus:d,headerGroupingMaxDepth:p,columnMenuState:h,columnVisibility:g,columnGroupsHeaderStructure:y,hasOtherElementInTabSequence:m}=t,b=re(t,noe),{getInnerProps:C,getColumnHeadersRow:w,getColumnFiltersRow:S,getColumnGroupHeadersRows:E}=toe({visibleColumns:s,sortColumnLookup:i,filterColumnLookup:a,columnHeaderTabIndexState:l,hasOtherElementInTabSequence:m,columnGroupHeaderTabIndexState:c,columnHeaderFocus:u,columnGroupHeaderFocus:d,headerGroupingMaxDepth:p,columnMenuState:h,columnVisibility:g,columnGroupsHeaderStructure:y});return v.jsxs(M0,x({className:r},b,C(),{ref:n,children:[E(),w(),S(),v.jsx(ooe,{})]}))});process.env.NODE_ENV!=="production"&&(V0.displayName="GridColumnHeaders"),process.env.NODE_ENV!=="production"&&(V0.propTypes={columnGroupHeaderFocus:o.shape({depth:o.number.isRequired,field:o.string.isRequired}),columnGroupHeaderTabIndexState:o.shape({depth:o.number.isRequired,field:o.string.isRequired}),columnGroupsHeaderStructure:o.arrayOf(o.arrayOf(o.shape({columnFields:o.arrayOf(o.string).isRequired,groupId:o.string}))).isRequired,columnHeaderFocus:o.shape({field:o.string.isRequired}),columnHeaderTabIndexState:o.shape({field:o.string.isRequired}),columnMenuState:o.shape({field:o.string,open:o.bool.isRequired}).isRequired,columnVisibility:o.object.isRequired,filterColumnLookup:o.object.isRequired,hasOtherElementInTabSequence:o.bool.isRequired,headerGroupingMaxDepth:o.number.isRequired,sortColumnLookup:o.object.isRequired,visibleColumns:o.arrayOf(o.object).isRequired});const roe=x({},xI,{columnMenuPinningItem:KO}),soe=x({},PI,{columnMenuPinningItem:{displayOrder:15}}),cM=Ue(function(t,n){return v.jsx(Vf,x({},t,{defaultSlots:roe,defaultSlotProps:soe,ref:n}))});process.env.NODE_ENV!=="production"&&(cM.displayName="GridProColumnMenu");const Cu=Kn,ioe=x({},xo,{type:"custom",field:oo,editable:!1,sortable:!1,filterable:!1,resizable:!1,aggregable:!1,chartable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,align:"left",width:40,valueGetter:(e,t,n,r)=>{const s=jo(r,t);return Us(r).has(s)},rowSpanValueGetter:(e,t,n,r)=>jo(r,t),renderCell:e=>v.jsx(XO,x({},e)),renderHeader:({colDef:e})=>v.jsx("div",{"aria-label":e.headerName})}),aoe=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test",loe=()=>{};function coe(e,t,n){const r=f.useRef(null);r.current=t,pt(()=>{if(n===!1||typeof ResizeObserver>"u")return loe;let s=0;const i=e.current,a=new ResizeObserver(l=>{aoe?s=requestAnimationFrame(()=>{r.current(l)}):r.current(l)});return i&&a.observe(i),()=>{s&&cancelAnimationFrame(s),a.disconnect()}},[e,n])}const uoe=Z("div",{name:"MuiDataGrid",slot:"DetailPanel"})({width:"calc(var(--DataGrid-rowWidth) - var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",backgroundColor:Te.colors.background.base,overflow:"auto"});function doe(e){const{rowId:t,height:n,className:r,children:s}=e,i=Cu(),a=f.useRef(null),c=Io(),u=n==="auto",d=Bn(i,t);return f.useLayoutEffect(()=>{u&&typeof ResizeObserver>"u"&&i.current.storeDetailPanelHeight(t,a.current.clientHeight)},[i,u,t]),coe(a,p=>{const[h]=p,g=h.borderBoxSize&&h.borderBoxSize.length>0?h.borderBoxSize[0].blockSize:h.contentRect.height;i.current.storeDetailPanelHeight(t,g)},u),d?.type==="skeletonRow"?null:v.jsx(uoe,{ref:a,ownerState:c,role:"presentation",style:{height:n},className:r,children:s})}const poe=()=>de({detailPanel:["detailPanel"]},et,{});function foe(e){return Io().getDetailPanelContent?f.createElement(hoe,e):null}function hoe({virtualScroller:e}){const t=Cu(),n=poe(),{setPanels:r}=e,s=ae(t,Us),i=ae(t,N0),a=ae(t,$0),l=f.useCallback(c=>{const u=i[c],p=t.current.getRowIndexRelativeToVisibleRows(c)!==void 0;if(!f.isValidElement(u)||!p)return null;const h=a[c],g=h.autoHeight?"auto":h.height;return v.jsx(doe,{rowId:c,height:g,className:n.detailPanel,children:u},`panel-${c}`)},[t,n.detailPanel,a,i]);return f.useEffect(()=>{const c=new Map;for(const u of s)c.set(u,l(u));r(c)},[s,r,l]),null}const goe=()=>de({root:["pinnedRows"]},et,{});function moe({position:e,virtualScroller:t}){const n=goe(),r=Kn(),i=ae(r,Ri)[e],{getRows:a}=t,l=f.useMemo(()=>({firstRowIndex:0,lastRowIndex:i.length,firstColumnIndex:-1,lastColumnIndex:-1}),[i]);if(i.length===0)return null;const c=a({position:e,rows:i,renderContext:l},sn(r));return v.jsx("div",{className:se(n.root,j[`pinnedRows--${e}`]),role:"presentation",children:c})}const boe=x({},{columnMenuPinRightIcon:zne,columnMenuPinLeftIcon:jne}),yoe=x({},wne,boe,{columnMenu:cM,columnHeaders:V0,detailPanels:foe,headerFilterCell:Zne,headerFilterMenu:eM,pinnedRows:moe}),voe=()=>{const e=ree(),n=Io().treeData?{role:"treegrid"}:{};return x({},e,n)},Coe=e=>{const t=Cu(),n=Io(),r=see(),s=ae(t,Sf),i=ae(t,BU),a=ae(t,HU);return f.useCallback((l,c)=>{const u=r(l,c);if(!l||!(n.treeData||e)||l.type==="footer"||l.type==="pinnedRow")return u;u["aria-level"]=l.depth+1;const d=i[l.id]??0;return l.type==="group"&&d>0&&(u["aria-expanded"]=!!l.childrenExpanded),l.parent!==null&&(u["aria-setsize"]=l.parent===rt?s:i[l.parent],u["aria-posinset"]=a[l.id]),u},[n.treeData,e,s,i,a,r])},woe=(e,t,n)=>{n.current.caches.columnPinning={orderedFieldsBeforePinningColumns:null};let r;return t.pinnedColumns?r=t.pinnedColumns:t.initialState?.pinnedColumns?r=t.initialState.pinnedColumns:r={},x({},e,{pinnedColumns:r})},Soe=(e,t)=>{const n=ae(e,Bi),r=f.useCallback((m,b)=>{const C=Ja(e);if(!b.colIndex||C.left.length===0&&C.right.length===0)return m;const w=an(e),S=Wc(e),E=_s(e),P=e.current.virtualScrollerRef.current.clientWidth,k=Math.abs(e.current.virtualScrollerRef.current.scrollLeft),M=w[b.colIndex].computedWidth,I=E[b.colIndex],O=E[C.left.length],F=S-E[E.length-C.right.length],D=I+M;if(D-(P-F)>k){const T=D-(P-F);return x({},m,{left:T})}if(I<k+O){const T=I-O;return x({},m,{left:T})}return m},[e]),s=f.useCallback((m,b)=>t.disableColumnPinning||b.pinnable===!1?m:[...m,"columnMenuPinningItem"],[t.disableColumnPinning]),i=f.useCallback((m,{targetIndex:b})=>{const C=Ja(e);if(C.left.length===0&&C.right.length===0)return m;if(C.left.length>0&&b<C.left.length)return!1;if(C.right.length>0){const S=an(e).length-C.right.length;return b>=S?!1:m}return m},[e]),a=f.useCallback((m,b)=>{const C=Bi(e);return!b.exportOnlyDirtyModels||t.pinnedColumns!=null||t.initialState?.pinnedColumns!=null||(C.left??[]).length>0||(C.right??[]).length>0?x({},m,{pinnedColumns:C}):m},[e,t.pinnedColumns,t.initialState?.pinnedColumns]),l=f.useCallback((m,b)=>{const C=b.stateToRestore.pinnedColumns;return C!=null&&uM(e,C),m},[e]);gt(e,"scrollToIndexes",r),gt(e,"columnMenu",s),gt(e,"canBeReordered",i),gt(e,"exportState",a),gt(e,"restoreState",l),e.current.registerControlState({stateId:"pinnedColumns",propModel:t.pinnedColumns,propOnChange:t.onPinnedColumnsChange,stateSelector:Bi,changeEvent:"pinnedColumnsChange"});const c=f.useCallback((m,b)=>{if(e.current.isColumnPinned(m)===b)return;const C=b===In.RIGHT?In.LEFT:In.RIGHT,w={[b]:[...n[b]||[],m],[C]:(n[C]||[]).filter(S=>S!==m)};e.current.setPinnedColumns(w)},[e,n]),u=f.useCallback(m=>{e.current.setPinnedColumns({left:(n.left||[]).filter(b=>b!==m),right:(n.right||[]).filter(b=>b!==m)})},[e,n.left,n.right]),d=f.useCallback(()=>Bi(e),[e]),p=f.useCallback(m=>{uM(e,m),e.current.requestPipeProcessorsApplication("hydrateColumns")},[e]),h=f.useCallback(m=>(n.left||[]).includes(m)?In.LEFT:(n.right||[]).includes(m)?In.RIGHT:!1,[n.left,n.right]);Je(e,{pinColumn:c,unpinColumn:u,getPinnedColumns:d,setPinnedColumns:p,isColumnPinned:h},"public"),xe(e,"columnOrderChange",m=>{if(!e.current.caches.columnPinning.orderedFieldsBeforePinningColumns)return;const{column:b,targetIndex:C,oldIndex:w}=m,S=C>w?1:-1,P=fr(e)[C-S],k=[...e.current.caches.columnPinning.orderedFieldsBeforePinningColumns];let M=k.findIndex(F=>F===b.field),I=M+S;const O=k.findIndex(F=>F===P);for(;S>0?M<O:M>O;){for(;e.current.isColumnPinned(k[I]);)I+=S;const F=k[M];k[M]=k[I],k[I]=F,M=I,I=M+S}e.current.caches.columnPinning.orderedFieldsBeforePinningColumns=k}),f.useEffect(()=>{t.pinnedColumns&&e.current.setPinnedColumns(t.pinnedColumns)},[e,t.pinnedColumns])};function uM(e,t){e.current.setState(n=>x({},n,{pinnedColumns:t}))}const xoe=(e,t)=>{const{disableColumnPinning:n}=t,r=f.useRef([]),s=f.useCallback(a=>{if(a.orderedFields.length===0||n)return a;const l=e.current.state;e.current.state=x({},l,{columns:a});const c=cU(e);e.current.state=l;const u=c.left,d=c.right;let p;const h=[...u,...d],{orderedFieldsBeforePinningColumns:g}=e.current.caches.columnPinning;if(g){p=new Array(a.orderedFields.length).fill(null);const m=[...p],b=[...a.orderedFields];r.current.forEach(w=>{if(!h.includes(w)&&a.lookup[w]){const S=g.indexOf(w);p[S]=w,m[S]=w,b.splice(b.indexOf(w),1)}}),h.forEach(w=>{let S=g.indexOf(w);if((S===-1||S>=m.length)&&(S=a.orderedFields.indexOf(w)),m[S]!==null)for(S=0;m[S]!==null;)S+=1;p[S]=w,m[S]=w,b.splice(b.indexOf(w),1)});let C=0;b.forEach(w=>{for(;m[C]!==null;)C+=1;m[C]=w,p[C]=w}),e.current.caches.columnPinning.orderedFieldsBeforePinningColumns=m}else p=[...a.orderedFields],e.current.caches.columnPinning.orderedFieldsBeforePinningColumns=[...a.orderedFields];r.current=h;const y=p.filter(m=>!u.includes(m)&&!d.includes(m));return x({},a,{orderedFields:[...u,...y,...d]})},[e,n]);gt(e,"hydrateColumns",s);const i=f.useCallback((a,l)=>e.current.isColumnPinned(l),[e]);gt(e,"isColumnPinned",i)};function Poe(e){const t={},n=Object.values(e);for(let r=0;r<n.length;r+=1){const s=n[r];t[s.id]=s.serverChildrenCount??0}return{filteredRowsLookup:hf.filteredRowsLookup,filteredChildrenCountLookup:t,filteredDescendantCountLookup:hf.filteredDescendantCountLookup}}function Eoe(e){return Ai(e,rt,!1)}function Toe(e,t){return t.updates.type!=="full"||!t.previousTree?.[e]||t.previousTree[e].depth<1||!("path"in t.previousTree[e])?[]:t.previousTree[e].path||[]}const Kf=Gt(e=>e.dataSource);Ne(Kf,e=>e.loading);const Ioe=Ne(Kf,(e,t)=>e.loading[t]??!1),Ooe=Ne(Kf,e=>e.errors),Moe=Ne(Kf,(e,t)=>e.errors[t]),dM=e=>{const{classes:t}=e;return de({root:["treeDataGroupingCell"],toggle:["treeDataGroupingCellToggle"],loadingContainer:["treeDataGroupingCellLoadingContainer"]},et,t)};function koe(e){const t=Cu(),n=Io(),r=dM(n),{rowNode:s,id:i,field:a,descendantCount:l}=e,c=ae(t,Ioe,i),u=ae(t,Moe,i),d=h=>{s.childrenExpanded?(t.current.setRowChildrenExpansion(i,!1),t.current.removeChildrenRows(i)):t.current.dataSource.fetchRows(i),t.current.setCellFocus(i,a),h.stopPropagation()},p=s.childrenExpanded?n.slots.treeDataCollapseIcon:n.slots.treeDataExpandIcon;return c?v.jsx("div",{className:r.loadingContainer,children:v.jsx(n.slots.baseCircularProgress,{size:"1rem",color:"inherit"})}):l===-1||l>0?v.jsx(n.slots.baseIconButton,x({size:"small",onClick:d,tabIndex:-1,"aria-label":s.childrenExpanded?t.current.getLocaleText("treeDataCollapse"):t.current.getLocaleText("treeDataExpand")},n?.slotProps?.baseIconButton,{children:v.jsx(n.slots.baseTooltip,{title:u?.message??null,children:v.jsx(n.slots.baseBadge,{variant:"dot",color:"error",invisible:!u,children:v.jsx(p,{fontSize:"inherit"})})})})):null}function Doe(e){const{id:t,field:n,formattedValue:r,rowNode:s,hideDescendantCount:i,offsetMultiplier:a=2}=e,l=Io(),c=Cu(),u=ae(c,PW,t),d=dM(l);let p=0;return u&&(p=l.dataSource?.getChildrenCount?.(u)??0),v.jsxs("div",{className:d.root,style:{marginLeft:Te.spacing(s.depth*a)},children:[v.jsx("div",{className:d.toggle,children:v.jsx(koe,{id:t,field:n,rowNode:s,row:u,descendantCount:p})}),v.jsxs("span",{children:[r===void 0?s.groupingKey:r,!i&&p>0?` (${p})`:""]})]})}const Foe=["hideDescendantCount"],Noe=(e,t)=>{const n=f.useCallback(()=>{e.current.setStrategyAvailability(To.RowTree,Jn.DataSource,t.treeData&&t.dataSource?()=>!0:()=>!1)},[e,t.treeData,t.dataSource]),r=f.useCallback(()=>{const u=t.groupingColDef;let d;if(typeof u=="function"){const m={groupingName:Jn.DataSource,fields:[]};d=u(m)}else d=u;const p=d??{},{hideDescendantCount:h}=p,g=re(p,Foe),y=x({},qO,{renderCell:m=>v.jsx(Doe,x({},m,{hideDescendantCount:h})),headerName:e.current.getLocaleText("treeDataGroupingHeaderName")});return x({},y,g,qf)},[e,t.groupingColDef]),s=f.useCallback(u=>{if(!t.dataSource)return u;const d=qf.field,p=t.treeData,h=u.lookup[d];if(p){const g=r();h&&(g.width=h.width,g.flex=h.flex),u.lookup[d]=g,h==null&&(u.orderedFields=[d,...u.orderedFields])}else!p&&h&&(delete u.lookup[d],u.orderedFields=u.orderedFields.filter(g=>g!==d));return u},[t.treeData,t.dataSource,r]),i=f.useCallback(u=>{const d=t.dataSource?.getGroupKey;if(!d)throw new Error("MUI X: No `getGroupKey` method provided with the dataSource.");const p=t.dataSource?.getChildrenCount;if(!p)throw new Error("MUI X: No `getChildrenCount` method provided with the dataSource.");const h=y=>{const m=u.updates.groupKeys??Toe(y,u),b=p(u.dataRowIdToModelLookup[y]);return{id:y,path:[...m,d(u.dataRowIdToModelLookup[y])].map(C=>({key:C,field:null})),serverChildrenCount:b}},g=(y,m,b)=>{throw new Error(["MUI X: The values returned by `getGroupKey` for all the sibling rows should be unique.",`The rows with id #${y} and #${m} have the same.`,`Path: ${JSON.stringify(b.map(C=>C.key))}.`].join(`
524
524
  `))};return u.updates.type==="full"?aM({previousTree:u.previousTree,nodes:u.updates.rows.map(h),defaultGroupingExpansionDepth:t.defaultGroupingExpansionDepth,isGroupExpandedByDefault:t.isGroupExpandedByDefault,groupingName:Jn.DataSource,onDuplicatePath:g}):SM({nodes:{inserted:u.updates.actions.insert.map(h),modified:u.updates.actions.modify.map(h),removed:u.updates.actions.remove},previousTree:u.previousTree,previousGroupsToFetch:u.previousGroupsToFetch,previousTreeDepth:u.previousTreeDepths,defaultGroupingExpansionDepth:t.defaultGroupingExpansionDepth,isGroupExpandedByDefault:t.isGroupExpandedByDefault,groupingName:Jn.DataSource})},[t.dataSource,t.defaultGroupingExpansionDepth,t.isGroupExpandedByDefault]),a=f.useCallback(()=>{const u=sn(e);return Poe(u)},[e]),l=f.useCallback(()=>{const u=sn(e);return Eoe(u)},[e]);gt(e,"hydrateColumns",s),po(e,Jn.DataSource,"rowTreeCreation",i),po(e,Jn.DataSource,"filtering",a),po(e,Jn.DataSource,"sorting",l),po(e,Jn.DataSource,"visibleRowsLookupCreation",iM),cs(()=>{n()});const c=f.useRef(!0);f.useEffect(()=>{c.current?c.current=!1:n()},[n])},$oe=new Set,Roe=(e,t)=>x({},e,{detailPanel:{heightCache:{},expandedRowIds:t.detailPanelExpandedRowIds??t.initialState?.detailPanel?.expandedRowIds??$oe}});function pM(e,t,n,r){if(typeof t!="function")return{};const s=As(e),i={},a={};for(let l=0;l<s.length;l+=1){const c=s[l],u=e.current.getRowParams(c),d=t(u);if(i[c]=d,d==null)continue;const p=n(u),h=p==="auto";a[c]={autoHeight:h,height:h?r[c]?.height:p}}return{contentCache:i,heightCache:a}}const Loe=(e,t)=>{const n=ae(e,N0),r=f.useCallback((w,S)=>{if(w.field!==oo||t.getDetailPanelContent==null)return;const E=n[w.id];f.isValidElement(E)&&S.target!==S.currentTarget&&e.current.toggleDetailPanel(w.id)},[e,n,t.getDetailPanelContent]),s=f.useCallback((w,S)=>{t.getDetailPanelContent!=null&&w.field===oo&&S.key===" "&&e.current.toggleDetailPanel(w.id)},[e,t.getDetailPanelContent]);xe(e,"cellClick",r),xe(e,"cellKeyDown",s),e.current.registerControlState({stateId:"detailPanels",propModel:t.detailPanelExpandedRowIds,propOnChange:t.onDetailPanelExpandedRowIdsChange,stateSelector:Us,changeEvent:"detailPanelsExpandedRowIdsChange"});const i=f.useCallback(w=>{if(t.getDetailPanelContent==null)return;const S=n[w];if(!f.isValidElement(S))return;const E=e.current.getExpandedDetailPanels(),P=new Set(E);E.has(w)?P.delete(w):P.add(w),e.current.setExpandedDetailPanels(P)},[e,n,t.getDetailPanelContent]),a=f.useCallback(()=>Us(e),[e]),l=f.useCallback(w=>{e.current.setState(S=>x({},S,{detailPanel:x({},S.detailPanel,{expandedRowIds:w})})),e.current.requestPipeProcessorsApplication("rowHeight")},[e]),c=f.useCallback((w,S)=>{const E=$0(e);!E[w]||E[w].height===S||(e.current.setState(P=>x({},P,{detailPanel:x({},P.detailPanel,{heightCache:x({},E,{[w]:x({},E[w],{height:S})})})})),e.current.requestPipeProcessorsApplication("rowHeight"))},[e]),u={toggleDetailPanel:i,getExpandedDetailPanels:a,setExpandedDetailPanels:l},d={storeDetailPanelHeight:c};Je(e,u,"public"),Je(e,d,"private"),f.useEffect(()=>{t.detailPanelExpandedRowIds&&Us(e)!==t.detailPanelExpandedRowIds&&e.current.setExpandedDetailPanels(t.detailPanelExpandedRowIds)},[e,t.detailPanelExpandedRowIds]);const p=f.useCallback(()=>{t.getDetailPanelContent&&e.current.setState(w=>x({},w,{detailPanel:x({},w.detailPanel,pM(e,t.getDetailPanelContent,t.getDetailPanelHeight,w.detailPanel.heightCache))}))},[e,t.getDetailPanelContent,t.getDetailPanelHeight]);xe(e,"sortedRowsSet",p);const h=f.useRef(void 0),g=f.useRef(void 0),y=f.useCallback(()=>{t.getDetailPanelContent===h.current&&t.getDetailPanelHeight===g.current||(e.current.setState(w=>x({},w,{detailPanel:x({},w.detailPanel,pM(e,t.getDetailPanelContent,t.getDetailPanelHeight,w.detailPanel.heightCache))})),h.current=t.getDetailPanelContent,g.current=t.getDetailPanelHeight)},[e,t.getDetailPanelContent,t.getDetailPanelHeight]),m=f.useCallback((w,S)=>{const E=Us(e);if(!E||!E.has(S.id))return w.detail=0,w;y();const P=$0(e);return w.detail=P[S.id]?.height??0,w},[e,y]),b=t.getDetailPanelContent!==void 0;gt(e,"rowHeight",m,b);const C=f.useRef(!0);C.current&&y(),f.useEffect(()=>{C.current||y(),C.current=!1},[e,y])},Aoe=(e,t)=>{const n=f.useCallback(s=>{const i=x({},ioe,{headerName:e.current.getLocaleText("detailPanelToggle")}),a=!!t.getDetailPanelContent,l=s.lookup[oo]!=null;return a&&!l?(s.lookup[oo]=i,s.orderedFields=[oo,...s.orderedFields]):!a&&l?(delete s.lookup[oo],s.orderedFields=s.orderedFields.filter(c=>c!==oo)):a&&l&&(s.lookup[oo]=x({},i,s.lookup[oo]),t.columns.some(c=>c.field===oo)||(s.orderedFields=[oo,...s.orderedFields.filter(c=>c!==oo)])),s},[e,t.columns,t.getDetailPanelContent]),r=f.useCallback((s,i)=>t.getDetailPanelContent==null||!Us(e).has(i)?s:[...s,j["row--detailPanelExpanded"]],[e,t.getDetailPanelContent]);gt(e,"hydrateColumns",n),gt(e,"rowClassName",r)},B0=x({},xo,{type:"custom",field:"__reorder__",sortable:!1,filterable:!1,width:50,align:"center",headerAlign:"center",disableColumnMenu:!0,disableExport:!0,disableReorder:!0,resizable:!1,aggregable:!1,chartable:!1,renderHeader:()=>" ",renderCell:QO,rowSpanValueGetter:(e,t,n,r)=>jo(r,t)}),fM={previousTargetId:null,dragDirection:null,previousDropPosition:null},Voe=e=>{const{classes:t}=e;return de({rowDragging:["row--dragging"],rowDropAbove:["row--dropAbove"],rowDropBelow:["row--dropBelow"],rowBeingDragged:["row--beingDragged"]},et,t)},Boe=e=>x({},e,{rowReorder:{isActive:!1}}),_oe=(e,t)=>{const n=On(e,"useGridRowReorder"),r=ae(e,Un),s=f.useRef(null),i=f.useRef(null),a=f.useRef(void 0),l=f.useRef(null),c={classes:t.classes},u=Voe(c),[d,p]=f.useState(""),h=ae(e,GU),g=f.useRef(""),y=Sn(),m=f.useRef(fM),b=f.useRef({targetRowId:null,targetRowIndex:null,dropPosition:null});f.useEffect(()=>()=>{clearTimeout(a.current)},[]);const C=f.useMemo(()=>!t.rowReordering||!!r.length||t.treeData,[t.rowReordering,r,t.treeData]),w=f.useCallback((F,D)=>{if(l.current&&(l.current.classList.remove(u.rowDropAbove,u.rowDropBelow),l.current=null),F!==void 0&&D!==null){const T=e.current.rootElementRef?.current?.querySelector(`[data-id="${F}"]`);T&&(T.classList.add(D==="above"?u.rowDropAbove:u.rowDropBelow),l.current=T)}},[e,u]),S=f.useCallback((F,D)=>{if(F){const T=e.current.rootElementRef?.current?.querySelector(`[data-id="${F}"]`);T&&(D?T.classList.add(u.rowBeingDragged):T.classList.remove(u.rowBeingDragged))}},[e,u.rowBeingDragged]),E=f.useCallback(F=>{const D=e.current.rootElementRef?.current;if(!D)return;const T=D.querySelectorAll("[data-id]");if(!T.length)return;const L=Array.from(T),V=new Map;L.forEach($=>{const N=$.getAttribute("data-id");N&&V.set(N,$.getBoundingClientRect())}),F(),requestAnimationFrame(()=>{const $=D.querySelectorAll("[data-id]"),N=[];$.forEach(A=>{const _=A.getAttribute("data-id");if(!_)return;const H=V.get(_);if(!H)return;const R=A.getBoundingClientRect(),B=H.top-R.top;if(Math.abs(B)>1){const z=A.animate([{transform:`translateY(${B}px)`},{transform:"translateY(0)"}],{duration:200,easing:"ease-in-out",fill:"forwards"});N.push(z)}}),N.length>0&&Promise.allSettled(N.map(A=>A.finished)).then(()=>{})})},[e]),P=f.useCallback((F,D)=>{const T=Mn(e);D.dataTransfer.effectAllowed="copy",!(C||Object.keys(T).length!==0)&&(g.current&&(y.clear(),g.current=""),n.debug(`Start dragging row ${F.id}`),D.stopPropagation(),e.current.setRowDragActive(!0),s.current=D.currentTarget,s.current.classList.add(u.rowDragging),p(F.id),S(F.id,!0),a.current=setTimeout(()=>{s.current.classList.remove(u.rowDragging)}),i.current=h[F.id],e.current.setCellFocus(F.id,B0.field))},[e,C,n,u.rowDragging,S,h,y]),k=f.useCallback((F,D)=>{if(d==="")return;const T=Bn(e,F.id),L=Bn(e,d);if(!L||!T||T.type==="footer"||T.type==="pinnedRow"||!D.target)return;const V=D.target.getBoundingClientRect(),$=Math.floor(D.clientY-V.top),N=Math.floor(V.height/2);if(n.debug(`Dragging over row ${F.id}`),D.preventDefault(),D.stopPropagation(),g.current&&g.current!==F.id&&(y.clear(),g.current=""),T.type==="group"&&T.depth<L.depth&&!T.childrenExpanded&&!g.current){y.start(500,()=>{const B=Bn(e,F.id);e.current.setRowChildrenExpansion(F.id,!B.childrenExpanded)}),g.current=F.id;return}const A=h[F.id],_=h[d],H=$<N?"above":"below",R={dragDirection:A<_?"up":"down",previousTargetId:F.id,previousDropPosition:H};if(m.current.previousTargetId!==F.id||m.current.previousDropPosition!==H){const B=A===_,z=H==="above"&&A===_+1||H==="below"&&A===_-1;e.current.unstable_applyPipeProcessors("getRowReorderTargetIndex",-1,{sourceRowId:d,targetRowId:F.id,dropPosition:H,dragDirection:R.dragDirection})!==-1||z||B?(b.current={targetRowId:F.id,targetRowIndex:A,dropPosition:H},w(F.id,H)):(b.current={targetRowId:null,targetRowIndex:null,dropPosition:null},w(null,null)),m.current=R}b.current.targetRowId===null?D.dataTransfer.dropEffect="none":D.dataTransfer.dropEffect="copy"},[d,e,n,y,h,w]),M=f.useCallback((F,D)=>{const T=Mn(e);if(d===""||C||Object.keys(T).length!==0)return;g.current&&(y.clear(),g.current=""),n.debug("End dragging row"),D.preventDefault(),D.stopPropagation(),clearTimeout(a.current),s.current=null;const L=m.current.dragDirection;if(m.current=fM,w(null,null),S(d,!1),e.current.setRowDragActive(!1),!D.dataTransfer||D.dataTransfer.dropEffect==="none"){b.current={targetRowId:null,targetRowIndex:null,dropPosition:null},i.current=null,p("");return}if(b.current.targetRowIndex!==null&&b.current.targetRowId!==null){const V=i.current,$=b.current.targetRowIndex,N=e.current.unstable_applyPipeProcessors("getRowReorderTargetIndex",$,{sourceRowId:d,targetRowId:b.current.targetRowId,dropPosition:b.current.dropPosition,dragDirection:L});N!==-1&&E(()=>{e.current.setRowIndex(d,N);const A={row:e.current.getRow(d),targetIndex:N,oldIndex:V};e.current.publishEvent("rowOrderChange",A)})}b.current={targetRowId:null,targetRowIndex:null,dropPosition:null},p("")},[e,d,C,n,w,S,y,E]),I=f.useCallback((F,{sourceRowId:D,targetRowId:T,dropPosition:L,dragDirection:V})=>{if(Ya(e)>1)return F;const $=h[T],N=h[D];if(L==="above"&&$===N+1||L==="below"&&$===N-1||N===$)return-1;let _;return V==="up"?_=L==="above"?$:$+1:_=L==="above"?$-1:$,_},[e,h]);gt(e,"getRowReorderTargetIndex",I),xe(e,"rowDragStart",P),xe(e,"rowDragOver",k),xe(e,"rowDragEnd",M),xe(e,"cellDragOver",k),Tt(e,"rowOrderChange",t.onRowOrderChange);const O=f.useCallback(F=>{e.current.setState(D=>x({},D,{rowReorder:x({},D.rowReorder,{isActive:F})}))},[e]);Je(e,{setRowDragActive:O},"private")},Hoe=e=>{const{classes:t}=e;return f.useMemo(()=>de({rowReorderCellContainer:["rowReorderCellContainer"],columnHeaderReorder:["columnHeaderReorder"]},et,t),[t])},zoe=(e,t)=>{const n={classes:t.classes},r=Hoe(n),s=f.useCallback(i=>{const a=x({},B0,{cellClassName:r.rowReorderCellContainer,headerClassName:r.columnHeaderReorder,headerName:e.current.getLocaleText("rowReorderingHeaderName")}),l=t.rowReordering,c=i.lookup[a.field]!=null;return l&&!c?(i.lookup[a.field]=a,i.orderedFields=[a.field,...i.orderedFields]):!l&&c?(delete i.lookup[a.field],i.orderedFields=i.orderedFields.filter(u=>u!==a.field)):l&&c&&(i.lookup[a.field]=x({},a,i.lookup[a.field]),t.columns.some(u=>u.field===B0.field)||(i.orderedFields=[a.field,...i.orderedFields.filter(u=>u!==a.field)])),i},[e,r,t.columns,t.rowReordering]);gt(e,"hydrateColumns",s)};function hM(e,t){const n={topIds:[],bottomIds:[],idLookup:{}};return e?.top?.forEach(r=>{const s=Ka(r,t);n.topIds.push(s),n.idLookup[s]=r}),e?.bottom?.forEach(r=>{const s=Ka(r,t);n.bottomIds.push(s),n.idLookup[s]=r}),n}const joe=(e,t,n)=>(n.current.caches.pinnedRows=hM(t.pinnedRows,t.getRowId),x({},e,{rows:x({},e.rows,{additionalRowGroups:x({},e.rows?.additionalRowGroups,{pinnedRows:{top:[],bottom:[]}})})})),Goe=(e,t)=>{const n=f.useCallback(s=>{e.current.caches.pinnedRows=hM(s,t.getRowId),e.current.requestPipeProcessorsApplication("hydrateRows")},[e,t.getRowId]);Je(e,{unstable_setPinnedRows:n},"public");const r=f.useRef(!0);f.useEffect(()=>{if(r.current){r.current=!1;return}e.current.unstable_setPinnedRows(t.pinnedRows)},[e,t.pinnedRows])};function gM({groupingParams:e,rowModel:t,rowId:n,position:r,apiRef:s,isAutoGenerated:i}){const a=x({},e.dataRowIdToModelLookup),l=x({},e.tree),c=x({},e.treeDepths);Yf({type:"pinnedRow",id:n,depth:0,parent:rt,isAutoGenerated:i},l,c,null),a[n]=t,s.current.caches.rows.dataRowIdToModelLookup[n]=x({},t);const d=e.additionalRowGroups?.pinnedRows||{},p={id:n,model:t};return e.additionalRowGroups?.pinnedRows?.[r]?.includes(p)?x({},e,{dataRowIdToModelLookup:a,tree:l,treeDepths:c}):x({},e,{dataRowIdToModelLookup:a,tree:l,treeDepths:c,additionalRowGroups:x({},e.additionalRowGroups,{pinnedRows:x({},d,{[r]:[...d[r]||[],p]})})})}const Woe=e=>{const t=f.useRef(null),n=f.useCallback(r=>{const s=e.current.caches.pinnedRows||{},i=t.current;t.current=s;let a=x({},r,{additionalRowGroups:x({},r.additionalRowGroups,{pinnedRows:{}})});if(i){const l=c=>{a.tree[c]?.type==="pinnedRow"&&(delete a.tree[c],delete a.dataRowIdToModelLookup[c],delete e.current.caches.rows.dataRowIdToModelLookup[c])};i.topIds?.forEach(l),i.bottomIds?.forEach(l)}if(s.topIds?.forEach(l=>{a=gM({groupingParams:a,rowModel:s.idLookup[l],rowId:l,position:"top",apiRef:e,isAutoGenerated:!1})}),s.bottomIds?.forEach(l=>{a=gM({groupingParams:a,rowModel:s.idLookup[l],rowId:l,position:"bottom",apiRef:e,isAutoGenerated:!1})}),s.bottomIds?.length||s.topIds?.length){const l=u=>!(a.tree[u]&&a.tree[u].type==="pinnedRow"),c=a.tree[rt];a.tree[rt]=x({},c,{children:c.children.filter(l)}),a.dataRowIds=a.dataRowIds.filter(l)}return a},[e]);gt(e,"hydrateRows",n)},mM=({apiRef:e,visibleRows:t,range:n})=>{let{firstRowIndex:r,lastRowIndex:s}=n;const i=t.slice(n.firstRowIndex,n.lastRowIndex);let a=0,l=i.length-1,c=!1;for(;!c&&r<s;){const u=Bn(e,i[a].id)?.type==="skeletonRow",d=Bn(e,i[l].id)?.type==="skeletonRow";u&&d&&(c=!0),u||(a+=1,r+=1),d||(l-=1,s-=1)}return c?{firstRowIndex:r,lastRowIndex:s}:void 0},Uoe=(e,t)=>{const n=ae(e,Un),r=ae(e,ln),s=f.useRef({firstRowToRender:0,lastRowToRender:0}),i=t.rowsLoadingMode!=="server",a=f.useCallback(u=>{if(i)return;const d={firstRowToRender:u.firstRowIndex,lastRowToRender:u.lastRowIndex,sortModel:n,filterModel:r};if(!(s.current.firstRowToRender===u.firstRowIndex&&s.current.lastRowToRender===u.lastRowIndex)){if(s.current={firstRowToRender:u.firstRowIndex,lastRowToRender:u.lastRowIndex},n.length===0&&r.items.length===0){const p=Gs(e,{pagination:t.pagination,paginationMode:t.paginationMode}),h=mM({apiRef:e,visibleRows:p.rows,range:{firstRowIndex:u.firstRowIndex,lastRowIndex:u.lastRowIndex}});if(!h)return;d.firstRowToRender=h.firstRowIndex,d.lastRowToRender=h.lastRowIndex}e.current.publishEvent("fetchRows",d)}},[e,i,t.pagination,t.paginationMode,n,r]),l=f.useCallback(u=>{if(i)return;e.current.requestPipeProcessorsApplication("hydrateRows");const d=iu(e),p={firstRowToRender:d.firstRowIndex,lastRowToRender:d.lastRowIndex,sortModel:u,filterModel:r};e.current.publishEvent("fetchRows",p)},[e,i,r]),c=f.useCallback(u=>{if(i)return;e.current.requestPipeProcessorsApplication("hydrateRows");const d=iu(e),p={firstRowToRender:d.firstRowIndex,lastRowToRender:d.lastRowIndex,sortModel:n,filterModel:u};e.current.publishEvent("fetchRows",p)},[e,i,n]);xe(e,"renderedRowsIntervalChange",a),xe(e,"sortModelChange",l),xe(e,"filterModelChange",c),Tt(e,"fetchRows",t.onFetchRows)},bM="auto-generated-skeleton-row-root",qoe=e=>`${bM}-${e}`,Yoe=(e,t)=>{const n=f.useCallback(r=>{const s=r.tree[rt];if(t.rowsLoadingMode!=="server"||!t.rowCount||s.children.length>=t.rowCount)return r;const i=x({},r.tree),a=[...s.children];for(let l=0;l<t.rowCount-s.children.length;l+=1){const c=qoe(l);a.push(c);const u={type:"skeletonRow",id:c,parent:rt,depth:0};i[c]=u}return i[rt]=x({},s,{children:a}),x({},r,{tree:i})},[t.rowCount,t.rowsLoadingMode]);gt(e,"hydrateRows",n)};var Ki=function(e){return e[e.VIEWPORT=0]="VIEWPORT",e[e.SCROLL_END=1]="SCROLL_END",e}(Ki||{});const Koe={firstRowToRender:0,lastRowToRender:0},yM=e=>`${bM}-${e}`,Xoe=(e,t)=>{const n=f.useCallback(()=>{e.current.setStrategyAvailability(To.DataSource,Go.LazyLoading,t.dataSource&&t.lazyLoading?()=>!0:()=>!1)},[e,t.lazyLoading,t.dataSource]),[r,s]=f.useState(!1),i=f.useRef(Koe),a=f.useRef(0),l=f.useRef(null),c=f.useRef(!1),u=f.useRef(null),d=f.useCallback(D=>{e.current.dataSource.fetchRows(rt,D)},[e]),p=f.useMemo(()=>Ts(d,0),[d]),h=f.useCallback(D=>{if(typeof D.start!="number")return D;const T=yn(e);return x({},D,{start:D.start-D.start%T.pageSize,end:D.end+T.pageSize-D.end%T.pageSize-1})},[e]),g=f.useCallback(()=>{e.current.setLoading(!0),e.current.dataSource.cache.clear(),c.current=!0,a.current=0;const D=yn(e),T=Un(e),L=ln(e),V={start:0,end:D.pageSize-1,sortModel:T,filterModel:L};d(V)},[e,d]),y=f.useCallback((D,T)=>{if(D===Ki.VIEWPORT&&T===Ki.SCROLL_END){g();return}const $=[...e.current.state.rows.tree[rt].children],N=e.current.state.pagination.rowCount;$.length>N&&g()},[e,g]),m=f.useCallback(()=>{const D=e.current.state.rows.tree,T=D[rt],L=[...T.children],V=e.current.state.pagination.rowCount,$=L.length;if($===0)return;const N=h({start:i.current.firstRowToRender,end:i.current.lastRowToRender});let A=!1;const _=i.current.firstRowToRender===0&&i.current.lastRowToRender===0;for(let H=0;H<$&&!_;H+=1){if(N.start<=H&&H<=N.end||D[L[H]]?.type==="skeletonRow"||D[L[H]]?.id===u.current)continue;const R=D[L[H]].id,B={type:"skeletonRow",id:R,parent:rt,depth:0};D[R]=B,A=!0}if(l.current===Ki.VIEWPORT)for(let H=0;H<V-$;H+=1){const R=yM(H+$);L.push(R);const B={type:"skeletonRow",id:R,parent:rt,depth:0};D[R]=B,A=!0}A&&(D[rt]=x({},T,{children:L}),e.current.setState(H=>x({},H,{rows:x({},H.rows,{tree:D})}),"addSkeletonRows"))},[e,h]),b=f.useCallback(D=>{const T=D===-1?Ki.SCROLL_END:Ki.VIEWPORT;l.current!==null&&y(l.current,T),l.current!==T&&(l.current=T)},[y]),C=f.useCallback(D=>{if("error"in D)return;const{response:T,fetchParams:L}=D,V=e.current.state.pagination.rowCount,$=e.current.state.rows.tree,N=e.current.state.rows.dataRowIdToModelLookup;if((T.rowCount!==void 0||V===void 0)&&e.current.setRowCount(T.rowCount===void 0?-1:T.rowCount),c.current&&D.fetchParams.start===0)e.current.scroll({top:0}),e.current.setRows(T.rows);else{const A=$[rt],_=[...A.children],H=ry(e),R=typeof L.start=="string"?Math.max(H.indexOf(L.start),0):L.start;let B=0;T.rows.forEach(z=>{const G=jo(e,z);if($[G]||N[G]){const Y=_.indexOf(G);if(Y!==-1){const X=yM(Y);_[Y]=X,$[X]={type:"skeletonRow",id:X,parent:rt,depth:0}}delete $[G],delete N[G],B+=1}}),B>0&&($[rt]=x({},A,{children:_}),e.current.setState(z=>x({},z,{rows:x({},z.rows,{tree:$,dataRowIdToModelLookup:N})}))),e.current.unstable_replaceRows(R,T.rows)}c.current=!1,l.current===null&&b(e.current.state.pagination.rowCount),m(),e.current.setLoading(!1),e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:D.fetchParams,response:T},!1),e.current.requestPipeProcessorsApplication("hydrateRows")},[e,b,m]),w=f.useCallback(()=>{c.current||l.current===null||(b(e.current.state.pagination.rowCount),m(),e.current.requestPipeProcessorsApplication("hydrateRows"))},[e,b,m]),S=he(()=>{if(c.current||l.current!==Ki.SCROLL_END)return;const D=iu(e);if(a.current>=D.lastRowIndex)return;a.current=D.lastRowIndex;const T=yn(e),L=Un(e),V=ln(e),$={start:D.lastRowIndex,end:D.lastRowIndex+T.pageSize-1,sortModel:L,filterModel:V};e.current.setLoading(!0),d(h($))}),E=f.useCallback(D=>{if(c.current)return;const T=Un(e),L=ln(e),V={start:D.firstRowIndex,end:D.lastRowIndex-1,sortModel:T,filterModel:L};if(i.current.firstRowToRender===D.firstRowIndex&&i.current.lastRowToRender===D.lastRowIndex)return;i.current={firstRowToRender:D.firstRowIndex,lastRowToRender:D.lastRowIndex};const $=Gs(e),N=mM({apiRef:e,visibleRows:$.rows,range:{firstRowIndex:D.firstRowIndex,lastRowIndex:D.lastRowIndex-1}});N&&(V.start=N.firstRowIndex,V.end=N.lastRowIndex,d(h(V)))},[e,h,d]),P=f.useMemo(()=>wT(E,t.lazyLoadingRequestThrottleMs),[t.lazyLoadingRequestThrottleMs,E]);f.useEffect(()=>()=>{P.clear()},[P]);const k=f.useCallback(D=>{c.current=!0,P.clear(),a.current=0;const T=yn(e),L=ln(e),V={start:0,end:T.pageSize-1,sortModel:D,filterModel:L};e.current.setLoading(!0),p(V)},[e,p,P]),M=f.useCallback(D=>{c.current=!0,P.clear(),a.current=0;const T=yn(e),L=Un(e),V={start:0,end:T.pageSize-1,sortModel:L,filterModel:D};e.current.setLoading(!0),p(V)},[e,p,P]),I=f.useCallback(D=>{u.current=D.id},[]),O=f.useCallback(()=>{u.current=null},[]),F=f.useCallback(()=>{s(e.current.getActiveStrategy(To.DataSource)===Go.LazyLoading)},[e]);po(e,Go.LazyLoading,"dataSourceRowsUpdate",C),xe(e,"strategyAvailabilityChange",F),xe(e,"rowCountChange",no(r,w)),xe(e,"rowsScrollEndIntersection",no(r,S)),xe(e,"renderedRowsIntervalChange",no(r,P)),xe(e,"sortModelChange",no(r,k)),xe(e,"filterModelChange",no(r,M)),xe(e,"rowDragStart",no(r,I)),xe(e,"rowDragEnd",no(r,O)),f.useEffect(()=>{n()},[n])},Zoe=yt("div")({position:"sticky",left:0,width:0,height:0}),Qoe=(e,t)=>{const n=ae(e,rn).isReady,r=f.useRef(null),s=Sn(),i=f.useRef(null),a=t.rowsLoadingMode==="client"&&!!t.onRowsScrollEnd,l=t.dataSource&&t.lazyLoading,c=a||l,u=he(([y])=>{const m=y.intersectionRatio;y.isIntersecting&&m===1&&(r.current?.disconnect(),i.current=null,e.current.publishEvent("rowsScrollEndIntersection"))});f.useEffect(()=>{const y=e.current.virtualScrollerRef.current;if(!c||!n||!y)return;r.current?.disconnect();const m=$P(e),b=t.scrollEndThreshold-m;r.current=new IntersectionObserver(u,{threshold:1,root:y,rootMargin:`0px 0px ${b}px 0px`}),i.current&&r.current.observe(i.current)},[e,n,u,c,t.scrollEndThreshold]);const d=y=>{i.current!==y&&(r.current?.disconnect(),i.current=y,i.current&&r.current?.observe(i.current))},p=f.useCallback(y=>{c&&s.start(0,()=>d(y))},[c,s]),g={getInfiniteLoadingTriggerElement:f.useCallback(({lastRowId:y})=>c?v.jsx(Zoe,{ref:p,role:"presentation"},`trigger-${y}`):null,[c,p])};Je(e,g,"private")},Joe=1/0;let wu=function(e){return e[e.QUEUED=0]="QUEUED",e[e.PENDING=1]="PENDING",e[e.SETTLED=2]="SETTLED",e[e.UNKNOWN=3]="UNKNOWN",e}({});class ere{pendingRequests=new Set;queuedRequests=new Set;settledRequests=new Set;constructor(t,n=Joe){this.api=t.current,this.maxConcurrentRequests=n}processQueue=async()=>{if(this.queuedRequests.size===0||this.pendingRequests.size>=this.maxConcurrentRequests)return;const t=Math.min(this.maxConcurrentRequests-this.pendingRequests.size,this.queuedRequests.size);if(t===0)return;const n=Array.from(this.queuedRequests);for(let r=0;r<t;r+=1){const s=n[r];this.queuedRequests.delete(s),this.pendingRequests.add(s),this.api.fetchRowChildren(s)}};queue=async t=>{const n={};t.forEach(r=>{this.queuedRequests.add(r),n[r]=!0}),this.api.setState(r=>x({},r,{dataSource:x({},r.dataSource,{loading:x({},r.dataSource.loading,n)})})),this.processQueue()};setRequestSettled=t=>{this.pendingRequests.delete(t),this.settledRequests.add(t),this.processQueue()};clear=()=>{this.queuedRequests.clear(),Array.from(this.pendingRequests).forEach(t=>this.clearPendingRequest(t))};clearPendingRequest=t=>{this.api.dataSource.setChildrenLoading(t,!1),this.pendingRequests.delete(t),this.processQueue()};getRequestStatus=t=>this.pendingRequests.has(t)?wu.PENDING:this.queuedRequests.has(t)?wu.QUEUED:this.settledRequests.has(t)?wu.SETTLED:wu.UNKNOWN;getActiveRequestsCount=()=>this.pendingRequests.size+this.queuedRequests.size}const tre=(e,t)=>{let r=e[t].parent;const s=[];for(;r&&r!==rt;){const i=e[r];s.push(i.groupingKey??""),r=i.parent}return s.reverse()},_0={loading:{},errors:{}},nre=(e,t,n={})=>{const r=ae(e,RP),s=bo(()=>new ere(e)).current,i=f.useRef(0),a=f.useCallback(()=>(s.clear(),i.current=0,e.current.state.dataSource!==_0&&e.current.resetDataSourceState(),null),[e,s]),l=f.useCallback((I,O)=>{O&&!Po(O,I.previousRow)&&e.current.dataSource.cache.clear();const F=tre(sn(e),I.rowId);e.current.updateNestedRows([O],F)},[e]),{api:c,debouncedFetchRows:u,strategyProcessor:d,events:p,cacheChunkManager:h,cache:g}=ane(e,t,x({fetchRowChildren:s.queue,clearDataSourceState:a,handleEditRow:l},n)),y=f.useCallback(()=>{const I=t.treeData?Go.GroupedData:Go.Default;e.current.setStrategyAvailability(To.DataSource,I,t.dataSource&&!t.lazyLoading?()=>!0:()=>!1)},[e,t.dataSource,t.lazyLoading,t.treeData]),m=t.onDataSourceError,b=f.useCallback(async I=>{const O=e.current.unstable_applyPipeProcessors("getRowsParams",{});if(!t.treeData&&(O.groupFields?.length??0)===0){s.clearPendingRequest(I);return}const F=t.dataSource?.getRows;if(!F){s.clearPendingRequest(I);return}const D=e.current.getRowNode(I);if(!D){s.clearPendingRequest(I);return}const T=x({},LO(e),O,{groupKeys:D.path}),V=h.getCacheKeys(T).map(A=>g.get(A)),$=V.some(A=>A===void 0)?void 0:Uf.mergeResponses(V);if($!==void 0){const A=$.rows;s.setRequestSettled(I),e.current.updateNestedRows(A,D.path),$.rowCount!==void 0&&e.current.setRowCount($.rowCount),e.current.setRowChildrenExpansion(I,!0),e.current.dataSource.setChildrenLoading(I,!1);return}(Ooe(e)[I]??null)&&e.current.dataSource.setChildrenFetchError(I,null);try{const A=await F(T);if(!e.current.getRowNode(I)){s.clearPendingRequest(I);return}if(s.getRequestStatus(I)===wu.UNKNOWN){e.current.dataSource.setChildrenLoading(I,!1);return}s.setRequestSettled(I),h.splitResponse(T,A).forEach((R,B)=>{g.set(B,R)}),A.rowCount!==void 0&&e.current.setRowCount(A.rowCount);const H=[];A.rows.forEach(R=>{const B=jo(e,R);Bn(e,B)&&H.push({id:B,_action:"delete"})}),H.length>0&&e.current.updateNestedRows(H,D.path),e.current.updateNestedRows(A.rows,D.path),e.current.setRowChildrenExpansion(I,!0)}catch(A){const _=A;e.current.dataSource.setChildrenFetchError(I,_),typeof m=="function"?m(new $T({message:_.message,params:T,cause:_})):process.env.NODE_ENV!=="production"&&Wn(["MUI X: A call to `dataSource.getRows()` threw an error which was not handled because `onDataSourceError()` is missing.","To handle the error pass a callback to the `onDataSourceError` prop, for example `<DataGrid onDataSourceError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/server-side-data/#error-handling."],"error")}finally{e.current.dataSource.setChildrenLoading(I,!1),s.setRequestSettled(I)}},[s,h,g,m,e,t.treeData,t.dataSource?.getRows]),C=f.useCallback((I,O)=>{e.current.setState(F=>{if(!F.dataSource.loading[I]&&O===!1)return F;const D=x({},F.dataSource.loading);return O===!1?delete D[I]:D[I]=O,x({},F,{dataSource:x({},F.dataSource,{loading:D})})})},[e]),w=f.useCallback((I,O)=>{e.current.setState(F=>{const D=x({},F.dataSource.errors);return O===null&&D[I]!==void 0?delete D[I]:D[I]=O,x({},F,{dataSource:x({},F.dataSource,{errors:D})})})},[e]),S=f.useCallback(()=>{e.current.setState(I=>x({},I,{dataSource:_0}))},[e]),E=f.useCallback(I=>{const O=Bn(e,I);if(!O||O.type!=="group"||O.children.length===0)return;const F=[],D=T=>{const L=Bn(e,T);L&&(L.type==="group"&&L.children.length>0&&L.children.forEach(D),F.push({id:T,_action:"delete"}))};O.children.forEach(D),F.length>0&&e.current.updateNestedRows(F,O.path)},[e]),P=f.useCallback(I=>{if("error"in I){e.current.setRows([]);return}const{response:O,options:{keepChildrenExpanded:F}}=I;if(O.rowCount!==void 0&&e.current.setRowCount(O.rowCount),F===!1)e.current.setRows(O.rows);else{const D=sn(e),T=new Set(Ai(D,rt,!1,!0));O.rows.forEach(V=>{T.delete(jo(e,V))});const L=[];T.size>0&&T.forEach(V=>{const $=Ai(D,V,!1,!1);for(let N=$.length-1;N>=0;N-=1)L.push({id:$[N],_action:"delete"});L.push({id:V,_action:"delete"})}),e.current.updateRows(O.rows.concat(L))}e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:I.fetchParams,response:O},!0)},[e]),k={dataSource:x({},c.public.dataSource,{setChildrenLoading:C,setChildrenFetchError:w})},M={fetchRowChildren:b,resetDataSourceState:S,removeChildrenRows:E};return f.useEffect(()=>{if(r&&r.length&&i.current<r.length){const I=r.slice(i.current);s.queue(I),i.current=r.length}},[e,s,r]),{api:{public:k,private:M},debouncedFetchRows:u,flatTreeStrategyProcessor:d,groupedDataStrategyProcessor:{strategyName:Go.GroupedData,group:"dataSourceRowsUpdate",processor:P},events:p,setStrategyAvailability:y,cacheChunkManager:h,cache:g}};function ore(e){return JSON.stringify([e.filterModel,e.sortModel,e.groupKeys,e.start,e.end])}const rre=e=>x({},e,{dataSource:_0}),sre={cacheOptions:{getKey:ore}},ire=(e,t)=>{const{api:n,flatTreeStrategyProcessor:r,groupedDataStrategyProcessor:s,events:i,setStrategyAvailability:a}=nre(e,t,sre);Je(e,n.public,"public"),Je(e,n.private,"private"),po(e,r.strategyName,r.group,r.processor),po(e,s.strategyName,s.group,s.processor),Object.entries(i).forEach(([l,c])=>{xe(e,l,c)}),f.useEffect(()=>{a()},[a])},are=[...lK,e=>e.pagination&&e.hideFooterRowCount&&"MUI X: The `hideFooterRowCount` prop has no effect when the pagination is enabled."||void 0,e=>e.treeData&&e.filterMode==="server"&&!e.dataSource&&'MUI X: The `filterMode="server"` prop is not available when the `treeData` is enabled.'||void 0,e=>!e.pagination&&e.checkboxSelectionVisibleOnly&&"MUI X: The `checkboxSelectionVisibleOnly` prop has no effect when the pagination is not enabled."||void 0,e=>e.signature!==So.DataGrid&&e.paginationMode==="client"&&e.rowsLoadingMode!=="server"&&Yb(e.rowCount)&&'MUI X: Usage of the `rowCount` prop with client side pagination (`paginationMode="client"`) has no effect. `rowCount` is only meant to be used with `paginationMode="server"`.'||void 0,e=>e.signature!==So.DataGrid&&(e.rowsLoadingMode==="server"||e.onRowsScrollEnd)&&e.lazyLoading&&'MUI X: Usage of the client side lazy loading (`rowsLoadingMode="server"` or `onRowsScrollEnd=...`) cannot be used together with server side lazy loading `lazyLoading="true"`.'||void 0];let lre=function(e){return e.Default="grouping-columns",e.DataSource="grouping-columns-data-source",e}({});const vM=({node:e,tree:t,treeDepths:n})=>{L0({node:e,tree:t,treeDepths:n}),e.type==="group"&&e.footerId!=null&&L0({node:t[e.footerId],tree:t,treeDepths:n})},CM=({node:e,tree:t,treeDepths:n})=>{vM({node:e,tree:t,treeDepths:n});const r=t[e.parent];r.id!==rt&&r.children.length===0&&(r.isAutoGenerated?CM({node:r,tree:t,treeDepths:n}):t[r.id]={type:"leaf",id:r.id,depth:r.depth,parent:r.parent,groupingKey:r.groupingKey})},cre=({node:e,tree:t,treeDepths:n})=>{sM({previousTree:null,tree:t,treeDepths:n,node:e,updatedNode:{id:tM(nM({id:e.id,tree:t})),isAutoGenerated:!0}})},wM=({id:e,tree:t,treeDepths:n,groupingName:r})=>{const s=t[e];s.type==="group"&&s.children.length>0?cre({node:s,tree:t,treeDepths:n}):r===Jn.Default||r===lre.Default?CM({node:s,tree:t,treeDepths:n}):vM({node:s,tree:t,treeDepths:n})},SM=e=>{const t=x({},e.previousTree),n=x({},e.previousTreeDepth),r=e.previousGroupsToFetch?new Set([...e.previousGroupsToFetch]):new Set([]);for(let i=0;i<e.nodes.inserted.length;i+=1){const{id:a,path:l,serverChildrenCount:c}=e.nodes.inserted[i];A0({previousTree:e.previousTree,tree:t,treeDepths:n,id:a,path:l,serverChildrenCount:c,onDuplicatePath:e.onDuplicatePath,isGroupExpandedByDefault:e.isGroupExpandedByDefault,defaultGroupingExpansionDepth:e.defaultGroupingExpansionDepth,groupsToFetch:r,maxDepth:e.maxDepth})}for(let i=0;i<e.nodes.removed.length;i+=1){const a=e.nodes.removed[i];wM({tree:t,treeDepths:n,id:a,groupingName:e.groupingName})}for(let i=0;i<e.nodes.modified.length;i+=1){const{id:a,path:l,serverChildrenCount:c}=e.nodes.modified[i],u=nM({tree:t,id:a});Po(u,l)||(wM({tree:t,treeDepths:n,id:a,groupingName:e.groupingName}),A0({previousTree:e.previousTree,tree:t,treeDepths:n,id:a,path:l,serverChildrenCount:c,onDuplicatePath:e.onDuplicatePath,isGroupExpandedByDefault:e.isGroupExpandedByDefault,defaultGroupingExpansionDepth:e.defaultGroupingExpansionDepth,groupsToFetch:r,maxDepth:e.maxDepth}))}const s=Ai(t,rt,!0);return{tree:t,treeDepths:n,groupingName:e.groupingName,dataRowIds:s,groupsToFetch:Array.from(r)}},ure=["hideDescendantCount"],dre=(e,t)=>{const n=f.useCallback(()=>{e.current.setStrategyAvailability(To.RowTree,Jn.Default,t.treeData&&!t.dataSource?()=>!0:()=>!1)},[e,t.treeData,t.dataSource]),r=f.useCallback(()=>{const u=t.groupingColDef;let d;if(typeof u=="function"){const m={groupingName:Jn.Default,fields:[]};d=u(m)}else d=u;const p=d??{},{hideDescendantCount:h}=p,g=re(p,ure),y=x({},qO,{renderCell:m=>v.jsx(YO,x({},m,{hideDescendantCount:h})),headerName:e.current.getLocaleText("treeDataGroupingHeaderName")});return x({},y,g,qf)},[e,t.groupingColDef]),s=f.useCallback(u=>{if(t.dataSource)return u;const d=qf.field,p=t.treeData,h=u.lookup[d];if(p){const g=r();h&&(g.width=h.width,g.flex=h.flex),u.lookup[d]=g,h==null&&(u.orderedFields=[d,...u.orderedFields])}else!p&&h&&(delete u.lookup[d],u.orderedFields=u.orderedFields.filter(g=>g!==d));return u},[t.treeData,t.dataSource,r]),i=f.useCallback(u=>{if(!t.getTreeDataPath)throw new Error("MUI X: No getTreeDataPath given.");const d=h=>({id:h,path:t.getTreeDataPath(u.dataRowIdToModelLookup[h]).map(g=>({key:g,field:null}))}),p=(h,g,y)=>{throw new Error(["MUI X: The path returned by `getTreeDataPath` should be unique.",`The rows with id #${h} and #${g} have the same.`,`Path: ${JSON.stringify(y.map(m=>m.key))}.`].join(`
525
525
  `))};return u.updates.type==="full"?aM({previousTree:u.previousTree,nodes:u.updates.rows.map(d),defaultGroupingExpansionDepth:t.defaultGroupingExpansionDepth,isGroupExpandedByDefault:t.isGroupExpandedByDefault,groupingName:Jn.Default,onDuplicatePath:p}):SM({nodes:{inserted:u.updates.actions.insert.map(d),modified:u.updates.actions.modify.map(d),removed:u.updates.actions.remove},previousTree:u.previousTree,previousTreeDepth:u.previousTreeDepths,defaultGroupingExpansionDepth:t.defaultGroupingExpansionDepth,isGroupExpandedByDefault:t.isGroupExpandedByDefault,groupingName:Jn.Default})},[t.getTreeDataPath,t.defaultGroupingExpansionDepth,t.isGroupExpandedByDefault]),a=f.useCallback(u=>{const d=sn(e);return Lne({rowTree:d,isRowMatchingFilters:u.isRowMatchingFilters,disableChildrenFiltering:t.disableChildrenFiltering,filterModel:u.filterModel,filterValueGetter:u.filterValueGetter,apiRef:e})},[e,t.disableChildrenFiltering]),l=f.useCallback(u=>{const d=sn(e);return Qne({rowTree:d,sortRowList:u.sortRowList,disableChildrenSorting:t.disableChildrenSorting})},[e,t.disableChildrenSorting]);gt(e,"hydrateColumns",s),po(e,Jn.Default,"rowTreeCreation",i),po(e,Jn.Default,"filtering",a),po(e,Jn.Default,"sorting",l),po(e,Jn.Default,"visibleRowsLookupCreation",iM),cs(()=>{n()});const c=f.useRef(!0);f.useEffect(()=>{c.current?c.current=!1:n()},[n])},pre=(e,t,n)=>{Cee(e,t),Aoe(e,t),dre(e,t),Noe(e,t),Ete(e,t),Yoe(e,t),Woe(e),zoe(e,t),xoe(e,t),Cte(e),cn(yee,e,t),cn(Tne,e,t),cn(Ste,e,t),cn(Boe,e,t),cn(Roe,e,t),cn(woe,e,t),cn($ee,e,t),cn(joe,e,t),cn(gte,e,t),cn(ote,e,t),cn(fte,e,t),cn(Xee,e,t),cn(Tte,e,t),cn(ste,e,t),cn(Uee,e,t),cn(tne,e,t),cn(Aee,e,t),cn(Nne,e,t),cn(Xte,e,t),cn(Fee,e,t),cn(Hte,e,t),cn(VY,e,t),cn(rre,e,t),cn(Dte,e,t),cn(Lte,e,t),cn(one,e,t),Tee(e,t),Ine(e,t),Rne(e,t),ete(e,t),xte(e,t),Soe(e,t),Goe(e,t),Ree(e,t),mte(e,t,n),nne(e,t),wte(e,t,n),Loe(e,t),Bte(e),zte(e,t),hte(e,t),Zee(e,t),ite(e,t),Kee(e,t,n),Ite(e,t),Vee(e,t),$ne(e,t),Qte(e,t),rte(e,t),Ate(e),_oe(e,t),Ote(e,t),One(e,t),Uoe(e,t),Xoe(e,t),Qoe(e,t),Nee(e),_ee(e,t),Wee(e,t),Dee(e,t),Nte(e,t),Mte(e,t),Vte(e),BY(e,t),ire(e,t),rne(e,t),f.useEffect(()=>{e.current.runAppliersForPendingProcessors()})},fre=e=>x({signature:"DataGridPro"},e.dataSource?{filterMode:"server",sortingMode:"server",paginationMode:"server"}:{}),hre=x({},b0,{autosizeOnMount:!1,defaultGroupingExpansionDepth:0,disableAutosize:!1,disableChildrenFiltering:!1,disableChildrenSorting:!1,disableColumnPinning:!1,getDetailPanelHeight:()=>500,headerFilters:!1,keepColumnPositionIfDraggedOutside:!1,rowSelectionPropagation:WU,rowReordering:!1,rowsLoadingMode:"client",scrollEndThreshold:80,treeData:!1,lazyLoading:!1,lazyLoadingRequestThrottleMs:500,listView:!1,multipleColumnsSortingMode:"withModifierKey",pinnedColumnsSectionSeparator:"border-and-shadow",pinnedRowsSectionSeparator:"border-and-shadow"}),gre=yoe,mre=e=>{const t=No(),n=f.useMemo(()=>US({props:e,theme:t,name:"MuiDataGrid"}),[t,e]),r=f.useMemo(()=>x({},FW,n.localeText),[n.localeText]),s=f.useMemo(()=>aK({defaultSlots:gre,slots:n.slots}),[n.slots]);return f.useMemo(()=>x({},hre,n,{localeText:r,slots:s},fre(n)),[n,r,s])},xM={hooks:{useCSSVariables:lJ,useGridAriaAttributes:voe,useGridRowAriaAttributes:Coe,useGridRowsOverridableMethods:iee,useGridParamsOverridableMethods:aee,useCellAggregationResult:()=>null,useFilterValueGetter:e=>e.current.getRowValue}},PM="MTc2MTE3NzYwMDAwMA==",bre=v.jsx(qI,{packageName:"x-data-grid-pro",releaseInfo:PM}),H0=Ue(function(t,n){const r=mre(t),s=Ene(r.apiRef,r);return pre(s,r,xM),pu("x-data-grid-pro",PM),process.env.NODE_ENV!=="production"&&cK(r,are),v.jsx(SQ,{privateApiRef:s,configuration:xM,props:r,children:v.jsx(LK,x({className:r.className,style:r.style,sx:r.sx},r.slotProps?.root,{ref:n,children:bre}))})});process.env.NODE_ENV!=="production"&&(H0.displayName="DataGridProRaw");const EM=f.memo(H0);process.env.NODE_ENV!=="production"&&(EM.displayName="DataGridPro"),H0.propTypes={apiRef:o.shape({current:o.object}),"aria-label":o.string,"aria-labelledby":o.string,autoHeight:o.bool,autoPageSize:o.bool,autosizeOnMount:o.bool,autosizeOptions:o.shape({columns:o.arrayOf(o.string),disableColumnVirtualization:o.bool,expand:o.bool,includeHeaders:o.bool,includeOutliers:o.bool,outliersFactor:o.number}),cellModesModel:o.object,checkboxSelection:o.bool,checkboxSelectionVisibleOnly:o.bool,classes:o.object,className:o.string,clipboardCopyCellDelimiter:o.string,columnBufferPx:o.number,columnFilterDebounceMs:o.number,columnGroupHeaderHeight:o.number,columnGroupingModel:o.arrayOf(o.object),columnHeaderHeight:o.number,columns:o.arrayOf(o.object).isRequired,columnVisibilityModel:o.object,dataSource:o.shape({getChildrenCount:o.func,getGroupKey:o.func,getRows:o.func.isRequired,updateRow:o.func}),dataSourceCache:o.shape({clear:o.func.isRequired,get:o.func.isRequired,set:o.func.isRequired}),defaultGroupingExpansionDepth:o.number,density:o.oneOf(["comfortable","compact","standard"]),detailPanelExpandedRowIds:o.instanceOf(Set),disableAutosize:o.bool,disableChildrenFiltering:o.bool,disableChildrenSorting:o.bool,disableColumnFilter:o.bool,disableColumnMenu:o.bool,disableColumnPinning:o.bool,disableColumnReorder:o.bool,disableColumnResize:o.bool,disableColumnSelector:o.bool,disableColumnSorting:o.bool,disableDensitySelector:o.bool,disableEval:o.bool,disableMultipleColumnsFiltering:o.bool,disableMultipleColumnsSorting:o.bool,disableMultipleRowSelection:o.bool,disableRowSelectionExcludeModel:o.bool,disableRowSelectionOnClick:o.bool,disableVirtualization:o.bool,editMode:o.oneOf(["cell","row"]),estimatedRowCount:o.number,experimentalFeatures:o.shape({warnIfFocusStateIsNotSynced:o.bool}),filterDebounceMs:o.number,filterMode:o.oneOf(["client","server"]),filterModel:o.shape({items:o.arrayOf(o.shape({field:o.string.isRequired,id:o.oneOfType([o.number,o.string]),operator:o.string.isRequired,value:o.any})).isRequired,logicOperator:o.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:o.bool,quickFilterLogicOperator:o.oneOf(["and","or"]),quickFilterValues:o.array}),getCellClassName:o.func,getDetailPanelContent:o.func,getDetailPanelHeight:o.func,getEstimatedRowHeight:o.func,getRowClassName:o.func,getRowHeight:o.func,getRowId:o.func,getRowSpacing:o.func,getTreeDataPath:o.func,groupingColDef:o.oneOfType([o.func,o.object]),headerFilterHeight:o.number,headerFilters:o.bool,hideFooter:o.bool,hideFooterPagination:o.bool,hideFooterRowCount:o.bool,hideFooterSelectedRowCount:o.bool,ignoreDiacritics:o.bool,ignoreValueFormatterDuringExport:o.oneOfType([o.shape({clipboardExport:o.bool,csvExport:o.bool}),o.bool]),initialState:o.object,isCellEditable:o.func,isGroupExpandedByDefault:o.func,isRowSelectable:o.func,keepColumnPositionIfDraggedOutside:o.bool,keepNonExistentRowsSelected:o.bool,label:o.string,lazyLoading:o.bool,lazyLoadingRequestThrottleMs:o.number,listView:o.bool,listViewColumn:o.shape({align:o.oneOf(["center","left","right"]),cellClassName:o.oneOfType([o.func,o.string]),display:o.oneOf(["flex","text"]),field:o.string.isRequired,renderCell:o.func}),loading:o.bool,localeText:o.object,logger:o.shape({debug:o.func.isRequired,error:o.func.isRequired,info:o.func.isRequired,warn:o.func.isRequired}),logLevel:o.oneOf(["debug","error","info","warn",!1]),multipleColumnsSortingMode:o.oneOf(["always","withModifierKey"]),nonce:o.string,onCellClick:o.func,onCellDoubleClick:o.func,onCellEditStart:o.func,onCellEditStop:o.func,onCellKeyDown:o.func,onCellModesModelChange:o.func,onClipboardCopy:o.func,onColumnHeaderClick:o.func,onColumnHeaderContextMenu:o.func,onColumnHeaderDoubleClick:o.func,onColumnHeaderEnter:o.func,onColumnHeaderLeave:o.func,onColumnHeaderOut:o.func,onColumnHeaderOver:o.func,onColumnOrderChange:o.func,onColumnResize:o.func,onColumnVisibilityModelChange:o.func,onColumnWidthChange:o.func,onDataSourceError:o.func,onDensityChange:o.func,onDetailPanelExpandedRowIdsChange:o.func,onFetchRows:o.func,onFilterModelChange:o.func,onMenuClose:o.func,onMenuOpen:o.func,onPaginationMetaChange:o.func,onPaginationModelChange:o.func,onPinnedColumnsChange:o.func,onPreferencePanelClose:o.func,onPreferencePanelOpen:o.func,onProcessRowUpdateError:o.func,onResize:o.func,onRowClick:o.func,onRowCountChange:o.func,onRowDoubleClick:o.func,onRowEditStart:o.func,onRowEditStop:o.func,onRowModesModelChange:o.func,onRowOrderChange:o.func,onRowSelectionModelChange:o.func,onRowsScrollEnd:o.func,onSortModelChange:o.func,onStateChange:o.func,pageSizeOptions:o.arrayOf(o.oneOfType([o.number,o.shape({label:o.string.isRequired,value:o.number.isRequired})]).isRequired),pagination:o.bool,paginationMeta:o.shape({hasNextPage:o.bool}),paginationMode:o.oneOf(["client","server"]),paginationModel:o.shape({page:o.number.isRequired,pageSize:o.number.isRequired}),pinnedColumns:o.object,pinnedColumnsSectionSeparator:o.oneOf(["border-and-shadow","border","shadow"]),pinnedRows:o.shape({bottom:o.arrayOf(o.object),top:o.arrayOf(o.object)}),pinnedRowsSectionSeparator:o.oneOf(["border-and-shadow","border"]),processRowUpdate:o.func,resizeThrottleMs:o.number,rowBufferPx:o.number,rowCount:o.number,rowHeight:o.number,rowModesModel:o.object,rowReordering:o.bool,rows:o.arrayOf(o.object),rowSelection:o.bool,rowSelectionModel:o.shape({ids:o.instanceOf(Set).isRequired,type:o.oneOf(["exclude","include"]).isRequired}),rowSelectionPropagation:o.shape({descendants:o.bool,parents:o.bool}),rowsLoadingMode:o.oneOf(["client","server"]),rowSpacingType:o.oneOf(["border","margin"]),rowSpanning:o.bool,scrollbarSize:o.number,scrollEndThreshold:o.number,showCellVerticalBorder:o.bool,showColumnVerticalBorder:o.bool,showToolbar:o.bool,slotProps:o.object,slots:o.object,sortingMode:o.oneOf(["client","server"]),sortingOrder:o.arrayOf(o.oneOf(["asc","desc"])),sortModel:o.arrayOf(o.shape({field:o.string.isRequired,sort:o.oneOf(["asc","desc"])})),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),throttleRowsMs:o.number,treeData:o.bool,virtualizeColumnsWithAutoRowHeight:o.bool};const yre=oee,vre=({contextMenu:e,setContextMenu:t,options:n,checked:r})=>v.jsxs(v.Fragment,{children:[v.jsx(Hd,{open:e!==null,onClose:()=>t(null),anchorReference:"anchorPosition",anchorPosition:e!==null?{top:e.mouseY,left:e.mouseX}:void 0,slots:{transition:Jr},slotProps:{paper:{sx:{bgcolor:"white",borderRadius:"12px"},elevation:1}},sx:{cursor:"pointer"},children:n.filter(s=>!s.hide).map((s,i)=>v.jsxs(Gn,{children:[i!==0&&n[i-1].group!==s.group?v.jsx(uc,{}):null,v.jsxs(sr,{onClick:s.click,disabled:s.disabled,children:[v.jsx(bi,{sx:{color:a=>a.palette["gr-grey"].main},children:s.icon}),v.jsx(Vr,{sx:{color:a=>a.palette["gr-grey"].main},children:s.name}),s.selected?v.jsxs(Ot,{sx:{pl:3,color:a=>a.palette["gr-grey"].main},variant:"body2",children:["selecionados",":",r.length]}):null,s.onlyOne?v.jsx(Ot,{sx:{pl:3,color:a=>a.palette["gr-grey"].main},variant:"body2",children:"solo uno"}):null]},i)]},i))}),n.filter(s=>!s.hide).map((s,i)=>v.jsx(Gn,{children:s.dialog},i))]}),z0=mt(v.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),Cre=({label:e,value:t,setValue:n,values:r,placeholder:s,disabled:i,fullWidth:a,white:l})=>{const c=u=>v.jsx(z0,{...u,sx:{color:l?"black !important":"white !important",...u.sx}});return v.jsx(v.Fragment,{children:v.jsxs(fi,{fullWidth:a,focused:!0,children:[v.jsx(gi,{id:`filter-table-label-${e}`,sx:{color:l?"black":"white",position:"absolute","&.Mui-focused":{color:l?"black":"white"},'&[data-shrink="false"]':{transform:"translateY(12px) translateX(12px)"}},children:e}),v.jsxs(Ds,{labelId:`filter-table-label-${e}`,id:`filter-${e}`,value:t,label:e,onChange:u=>n(u.target.value),color:"gr-yellow",sx:{color:l?"black":"white"},IconComponent:c,MenuProps:{PaperProps:{style:{maxHeight:"500px",borderBottomLeftRadius:"32px",borderBottomRightRadius:"32px",borderTopLeftRadius:"0px",borderTopRightRadius:"0px"}},MenuListProps:{sx:{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main,"& .MuiMenuItem-root":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main,color:l?"black":"white","&:hover":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main},"&.Mui-selected":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main},"&.Mui-focusVisible":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main}}}}},displayEmpty:!0,disabled:i,children:[v.jsx(sr,{sx:{mt:2},disabled:!0,value:"",children:v.jsx("em",{children:s})}),r.map(u=>v.jsx(sr,{value:u.value,children:u.label},u.value))]})]})})},wre=({label:e,value:t,setValue:n,values:r,placeholder:s,disabled:i,fullWidth:a,white:l})=>{const c=u=>v.jsx(z0,{...u,sx:{color:l?"black !important":"white !important",...u.sx}});return v.jsx(v.Fragment,{children:v.jsxs(fi,{fullWidth:a,focused:!0,children:[v.jsx(gi,{id:`filter-table-label-${e}`,sx:{color:l?"black":"white",position:"absolute","&.Mui-focused":{color:l?"black":"white"},'&[data-shrink="false"]':{transform:"translateY(12px) translateX(12px)"}},children:e}),v.jsxs(Ds,{labelId:`filter-table-label-${e}`,id:`filter-${e}`,value:t,label:e,onChange:u=>{const{target:{value:d}}=u;n(typeof d=="string"?d.split(","):d)},color:"gr-yellow",sx:{color:l?"black":"white"},IconComponent:c,MenuProps:{PaperProps:{style:{maxHeight:"500px",borderBottomLeftRadius:"32px",borderBottomRightRadius:"32px",borderTopLeftRadius:"0px",borderTopRightRadius:"0px"}},MenuListProps:{sx:{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main,"& .MuiMenuItem-root":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main,color:l?"black":"white","&:hover":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main},"&.Mui-selected":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main},"&.Mui-focusVisible":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main}}}}},renderValue:u=>r.filter(d=>u.includes(d.value)).map(d=>d.label).join(", "),displayEmpty:!0,disabled:i,multiple:!0,children:[v.jsx(sr,{disabled:!0,value:"",children:v.jsx("em",{children:s})}),r.map(u=>v.jsxs(sr,{value:u.value,children:[v.jsx(Ta,{checked:t.includes(u.value)}),v.jsx(Vr,{slotProps:{primary:{sx:{color:"#FFFFFF"}}},primary:u.label})]},u.value))]})]})})},Xf=e=>{const t=[],n=[];return e.forEach(r=>{r.dateName==="start"?t.push(r):n.push(r)}),{startDate:t,endDate:n}},Sre=e=>e.map((t,n)=>n===e.length-1?x({},t,{separator:null}):t);function TM(e){return e.fieldType??"multi-input"}const xre=["value","referenceDate"],Su={emptyValue:[null,null],getTodayValue:(e,t,n)=>[Fp(e,t,n),Fp(e,t,n)],getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=re(e,xre);const s=r.adapter.isValid(t[0]),i=r.adapter.isValid(t[1]);if(s&&i)return t;const a=n??xx(r),l=Array.isArray(a)?a[0]:a,c=Array.isArray(a)?a[1]:a;return[s?t[0]:l,i?t[1]:c]},cleanValue:(e,t)=>t.map(n=>J2(e,n)),areValuesEqual:(e,t,n)=>Dp(e,t[0],n[0])&&Dp(e,t[1],n[1]),isSameError:(e,t)=>t!==null&&e[1]===t[1]&&e[0]===t[0],hasError:e=>e[0]!=null||e[1]!=null,defaultErrorState:[null,null],getTimezone:(e,t)=>{const n=e.isValid(t[0])?e.getTimezone(t[0]):null,r=e.isValid(t[1])?e.getTimezone(t[1]):null;if(n!=null&&r!=null&&n!==r)throw new Error("MUI X: The timezone of the start and the end date should be the same.");return n??r},setTimezone:(e,t,n)=>[n[0]==null?null:e.setTimezone(n[0],t),n[1]==null?null:e.setTimezone(n[1],t)]},Pre=({dateSeparator:e="–"})=>({updateReferenceValue:(t,n,r)=>{const s=t.isValid(n[0]),i=t.isValid(n[1]);return!s&&!i?r:s&&i?n:s?[n[0],r[0]]:[r[1],n[1]]},getSectionsFromValue:([t,n],r)=>{const s=(i,a)=>{const l=r(i);return l.map((c,u)=>u===l.length-1&&a==="start"?x({},c,{dateName:a,endSeparator:`${c.endSeparator} ${e} `}):x({},c,{dateName:a}))};return[...s(t,"start"),...s(n,"end")]},getV7HiddenInputValueFromSections:t=>{const n=Xf(t);return ix([...n.startDate,...n.endDate])},getV6InputValueFromSections:(t,n,r)=>{const s=Xf(t);return ax([...s.startDate,...s.endDate],n,r)},parseValueStr:(t,n,r)=>{const[s,i]=t.split(e);return[s,i].map((a,l)=>a==null?null:r(a.trim(),n[l]))},getDateFromSection:(t,n)=>t[Zf(n)],getDateSectionsFromValue:(t,n)=>{const r=Xf(t);return Zf(n)===0?Sre(r.startDate):r.endDate},updateDateInValue:(t,n,r)=>Zf(n)===0?[r,t[1]]:[t[0],r],clearDateSections:(t,n)=>{const r=Xf(t);return Zf(n)===0?[...r.startDate.map(s=>x({},s,{value:""})),...r.endDate]:[...r.startDate,...r.endDate.map(s=>x({},s,{value:""}))]}});function Zf(e){return e==null||e.dateName==="start"?0:1}const yl=(e,t)=>e.isValid(t[0])&&e.isValid(t[1])&&!e.isBefore(t[1],t[0]),j0=(e,t,n)=>yl(e,n)&&e.isWithinRange(t,n),Qf=(e,t,n)=>yl(e,n)&&e.isSameDay(t,n[0]),xu=(e,t,n)=>yl(e,n)&&e.isSameDay(t,n[1]),Ere=(e,t,n)=>yl(e,t)?`${e.format(t[0],n)} - ${e.format(t[1],n)}`:null,Tre=["shouldDisableDate"],Jf=({adapter:e,value:t,timezone:n,props:r})=>{const[s,i]=t,{shouldDisableDate:a}=r,l=re(r,Tre),c=[Rs({adapter:e,value:s,timezone:n,props:x({},l,{shouldDisableDate:u=>!!a?.(u,"start")})}),Rs({adapter:e,value:i,timezone:n,props:x({},l,{shouldDisableDate:u=>!!a?.(u,"end")})})];return c[0]||c[1]?c:s===null||i===null?[null,null]:yl(e,t)?[null,null]:["invalidRange","invalidRange"]};Jf.valueManager=Su;function Ire(e={}){const{enableAccessibleFieldDOMStructure:t=!0,dateSeparator:n}=e;return f.useMemo(()=>({valueType:"date",validator:Jf,internal_valueManager:Su,internal_fieldValueManager:Pre({dateSeparator:n}),internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:Mre,internal_useOpenPickerButtonAriaLabel:Ore}),[t,n])}function Ore(e){const t=vt(),n=Co();return f.useMemo(()=>n.openRangePickerDialogue(Ere(t,e,"fullDate")),[e,n,t])}function Mre(e){const t=vt(),n=Ls(e);return f.useMemo(()=>x({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}const kre=e=>{const t=Ire(e);return Vp({manager:t,props:e})},Dre=["slots","slotProps"],vl=f.forwardRef(function(t,n){const r=It({props:t,name:"MuiSingleInputDateRangeField"}),{slots:s,slotProps:i}=r,a=re(r,Dre),l=qp({slotProps:i,ref:n,externalForwardedProps:a}),c=kre(l);return v.jsx(Yp,{slots:s,slotProps:i,inputRef:a.inputRef,children:v.jsx(Up,{fieldResponse:c,defaultOpenPickerIcon:L_})})});process.env.NODE_ENV!=="production"&&(vl.displayName="SingleInputDateRangeField"),vl.fieldType="single-input",process.env.NODE_ENV!=="production"&&(vl.propTypes={autoFocus:o.bool,className:o.string,clearable:o.bool,clearButtonPosition:o.oneOf(["end","start"]),color:o.oneOf(["error","info","primary","secondary","success","warning"]),component:o.elementType,dateSeparator:o.string,defaultValue:o.arrayOf(o.object),disabled:o.bool,disableFuture:o.bool,disablePast:o.bool,enableAccessibleFieldDOMStructure:o.bool,focused:o.bool,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,hiddenLabel:o.bool,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Ft,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxDate:o.object,minDate:o.object,name:o.string,onBlur:o.func,onChange:o.func,onClear:o.func,onError:o.func,onFocus:o.func,onSelectedSectionsChange:o.func,readOnly:o.bool,referenceDate:o.oneOfType([o.arrayOf(o.object),o.object]),required:o.bool,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldRespectLeadingZeros:o.bool,size:o.oneOf(["medium","small"]),slotProps:o.object,slots:o.object,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,unstableFieldRef:o.oneOfType([o.func,o.object]),value:o.arrayOf(o.object),variant:o.oneOf(["filled","outlined","standard"])});const Fre=({label:e,value:t,setValue:n,disabled:r,fullWidth:s})=>{const{format:i}=ge.useContext(Br);return v.jsx(v.Fragment,{children:v.jsx(Fc,{dateAdapter:CP,children:v.jsx(vl,{label:e,value:t,onChange:a=>{n(a)},InputProps:{sx:{borderRadius:"16px"}},size:"small",color:"gr-yellow",slotProps:{textField:{InputLabelProps:{sx:{color:"white !important"}}}},focused:!0,format:i,disabled:r,fullWidth:s})})})};function Nre(e){return Oe("MuiDateRangePickerToolbar",e)}Me("MuiDateRangePickerToolbar",["root","container"]);const Pu=f.createContext(null);process.env.NODE_ENV!=="production"&&(Pu.displayName="PickerRangePositionContext");function $re(){const e=f.useContext(Pu);if(e==null)throw new Error(["MUI X: The `usePickerRangePositionContext` can only be called in components that are used inside a picker component"].join(`
526
- `));return e}function Rre(){return f.useContext(Pu)}const Lre=["toolbarFormat","className","classes"],Are=e=>de({root:["root"],container:["container"]},Nre,e),Vre=Z(Tb,{name:"MuiDateRangePickerToolbar",slot:"Root"})({}),Bre=Z("div",{name:"MuiDateRangePickerToolbar",slot:"Container"})({display:"flex"}),G0=f.forwardRef(function(t,n){const r=vt(),s=It({props:t,name:"MuiDateRangePickerToolbar"}),{toolbarFormat:i,className:a,classes:l}=s,c=re(s,Lre),{value:u}=Mi(),d=Co(),p=Eb(),{rangePosition:h,setRangePosition:g}=$re(),y=Are(l),m=i??r.formats.shortDate,b=(C,w)=>r.isValid(C)?r.formatByString(C,m):w;return v.jsx(Vre,x({},c,{toolbarTitle:d.dateRangePickerToolbarTitle,className:se(y.root,a),ownerState:p,ref:n,children:v.jsxs(Bre,{className:y.container,children:[v.jsx(kb,{variant:u[0]==null?"h6":"h5",value:b(u[0],d.start),selected:h==="start",onClick:()=>g("start")}),v.jsxs(Ot,{variant:"h5",children:[" ","–"," "]}),v.jsx(kb,{variant:u[1]==null?"h6":"h5",value:b(u[1],d.end),selected:h==="end",onClick:()=>g("end")})]})}))});process.env.NODE_ENV!=="production"&&(G0.displayName="DateRangePickerToolbar"),process.env.NODE_ENV!=="production"&&(G0.propTypes={classes:o.object,className:o.string,hidden:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleId:o.string,toolbarFormat:o.string,toolbarPlaceholder:o.node});function IM(e,t){const n=It({props:e,name:t}),r=Ls(n),s=f.useMemo(()=>n.localeText?.toolbarTitle==null?n.localeText:x({},n.localeText,{dateRangePickerToolbarTitle:n.localeText.toolbarTitle}),[n.localeText]);return x({},n,r,{localeText:s,slots:x({toolbar:G0},n.slots)})}const _re=e=>Oe("MuiDateRangeCalendar",e),OM=Me("MuiDateRangeCalendar",["root","monthContainer","dayDragging"]);function MM(e,t){return Array.isArray(e)?t==="start"?e[0]:e[1]:e}function W0({adapter:e,range:t,newDate:n,rangePosition:r,allowRangeFlip:s=!1,shouldMergeDateAndTime:i=!1,referenceDate:a}){const l=e.isValid(t[0])?t[0]:null,c=e.isValid(t[1])?t[1]:null;i&&n&&(l&&r==="start"&&(n=Ii(e,n,l)),c&&r==="end"&&(n=Ii(e,n,c)));const u=a&&n&&i?Ii(e,n,MM(a,r)):n;if(r==="start"){const p=s?{nextSelection:"start",newRange:[c,u]}:{nextSelection:"end",newRange:[u,null]};return c&&e.isAfter(u,c)?p:{nextSelection:"end",newRange:[u,c]}}const d=s?{nextSelection:"end",newRange:[u,l]}:{nextSelection:"end",newRange:[u,null]};return l&&e.isBeforeDay(u,l)?d:{nextSelection:"start",newRange:[l,u]}}function Hre(e){if(e.newDate==null)return[null,null];const[t,n]=e.range,{newRange:r}=W0(e);if(!t||!n)return r;const[s,i]=r;return e.rangePosition==="end"?[n,i]:[s,t]}function zre(e){return Oe("MuiDateRangePickerDay",e)}const fn=Me("MuiDateRangePickerDay",["root","rangeIntervalDayHighlight","rangeIntervalDayHighlightStart","rangeIntervalDayHighlightEnd","rangeIntervalPreview","rangeIntervalDayPreview","rangeIntervalDayPreviewStart","rangeIntervalDayPreviewEnd","outsideCurrentMonth","startOfMonth","endOfMonth","firstVisibleCell","lastVisibleCell","hiddenDayFiller","day","dayOutsideRangeInterval","dayInsideRangeInterval","notSelectedDate"]),jre=["className","classes","isEndOfHighlighting","isEndOfPreviewing","isHighlighting","isPreviewing","isStartOfHighlighting","isStartOfPreviewing","isVisuallySelected","sx","draggable","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],Gre=(e,t)=>{const{isDaySelected:n,isDayOutsideMonth:r,isDaySelectionStart:s,isDaySelectionEnd:i,isDayInsideSelection:a,isDayPreviewStart:l,isDayPreviewEnd:c,isDayPreviewed:u,isDayStartOfMonth:d,isDayEndOfMonth:p,isDayFirstVisibleCell:h,isDayLastVisibleCell:g,isDayFillerCell:y}=t;return de({root:["root",n&&"rangeIntervalDayHighlight",s&&"rangeIntervalDayHighlightStart",i&&"rangeIntervalDayHighlightEnd",r&&"outsideCurrentMonth",d&&"startOfMonth",p&&"endOfMonth",h&&"firstVisibleCell",g&&"lastVisibleCell",y&&"hiddenDayFiller"],rangeIntervalPreview:["rangeIntervalPreview",u&&"rangeIntervalDayPreview",(l||d)&&"rangeIntervalDayPreviewStart",(c||p)&&"rangeIntervalDayPreviewEnd"],day:["day",!n&&"notSelectedDate",!n&&"dayOutsideRangeInterval",!a&&"dayInsideRangeInterval"]},zre,e)},eh={borderTopRightRadius:"50%",borderBottomRightRadius:"50%"},th={borderTopLeftRadius:"50%",borderBottomLeftRadius:"50%"},Wre=Z("div",{name:"MuiDateRangePickerDay",slot:"Root",overridesResolver:(e,t)=>[{[`&.${fn.rangeIntervalDayHighlight}`]:t.rangeIntervalDayHighlight},{[`&.${fn.rangeIntervalDayHighlightStart}`]:t.rangeIntervalDayHighlightStart},{[`&.${fn.rangeIntervalDayHighlightEnd}`]:t.rangeIntervalDayHighlightEnd},{[`&.${fn.firstVisibleCell}`]:t.firstVisibleCell},{[`&.${fn.lastVisibleCell}`]:t.lastVisibleCell},{[`&.${fn.startOfMonth}`]:t.startOfMonth},{[`&.${fn.endOfMonth}`]:t.endOfMonth},{[`&.${fn.outsideCurrentMonth}`]:t.outsideCurrentMonth},{[`&.${fn.hiddenDayFiller}`]:t.hiddenDayFiller},t.root]})(({theme:e})=>({variants:[{props:{isDayFillerCell:!1},style:{[`&:first-of-type .${fn.rangeIntervalDayPreview}`]:x({},th,{borderLeftColor:(e.vars||e).palette.divider}),[`&:last-of-type .${fn.rangeIntervalDayPreview}`]:x({},eh,{borderRightColor:(e.vars||e).palette.divider})}},{props:{isDayFillerCell:!1,isDaySelected:!0},style:{borderRadius:0,color:(e.vars||e).palette.primary.contrastText,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:zn(e.palette.primary.main,e.palette.action.focusOpacity),"&:first-of-type":th,"&:last-of-type":eh}},{props:({ownerState:{isDayFillerCell:t,isDaySelectionStart:n,isDayFirstVisibleCell:r}})=>!t&&(n||r),style:x({},th,{paddingLeft:0})},{props:({ownerState:{isDayFillerCell:t,isDaySelectionEnd:n,isDayLastVisibleCell:r}})=>!t&&(n||r),style:x({},eh,{paddingRight:0})}]})),Ure=Z("div",{name:"MuiDateRangePickerDay",slot:"RangeIntervalPreview",overridesResolver:(e,t)=>[{[`&.${fn.rangeIntervalDayPreview}`]:t.rangeIntervalDayPreview},{[`&.${fn.rangeIntervalDayPreviewStart}`]:t.rangeIntervalDayPreviewStart},{[`&.${fn.rangeIntervalDayPreviewEnd}`]:t.rangeIntervalDayPreviewEnd},t.rangeIntervalPreview]})(({theme:e})=>({border:"2px solid transparent",variants:[{props:{isDayPreviewed:!0,isDayFillerCell:!1},style:{borderRadius:0,border:`2px dashed ${(e.vars||e).palette.divider}`,borderLeftColor:"transparent",borderRightColor:"transparent"}},{props:({ownerState:{isDayPreviewed:t,isDayFillerCell:n,isDayPreviewStart:r,isDayFirstVisibleCell:s}})=>t&&!n&&(r||s),style:x({borderLeftColor:(e.vars||e).palette.divider},th)},{props:({ownerState:{isDayPreviewed:t,isDayFillerCell:n,isDayPreviewEnd:r,isDayLastVisibleCell:s}})=>t&&!n&&(r||s),style:x({borderRightColor:(e.vars||e).palette.divider},eh)}]})),qre=Z(db,{name:"MuiDateRangePickerDay",slot:"Day",overridesResolver:(e,t)=>[{[`&.${fn.dayInsideRangeInterval}`]:t.dayInsideRangeInterval},{[`&.${fn.dayOutsideRangeInterval}`]:t.dayOutsideRangeInterval},{[`&.${fn.notSelectedDate}`]:t.notSelectedDate},t.day]})({transform:"scale(1.1)","& > *":{transform:"scale(0.9)"},variants:[{props:{draggable:!0},style:{cursor:"grab",touchAction:"none"}}]}),U0=f.forwardRef(function(t,n){const r=It({props:t,name:"MuiDateRangePickerDay"}),{className:s,classes:i,isEndOfHighlighting:a,isEndOfPreviewing:l,isHighlighting:c,isPreviewing:u,isStartOfHighlighting:d,isStartOfPreviewing:p,isVisuallySelected:h,sx:g,draggable:y,isFirstVisibleCell:m,isLastVisibleCell:b,day:C,selected:w,disabled:S,today:E,outsideCurrentMonth:P,disableMargin:k,disableHighlightToday:M,showDaysOutsideCurrentMonth:I}=r,O=re(r,jre);pu("x-date-pickers-pro","MTc2MTE3NzYwMDAwMA==");const F=vt(),D=cb({day:C,selected:w,disabled:S,today:E,outsideCurrentMonth:P,disableMargin:k,disableHighlightToday:M,showDaysOutsideCurrentMonth:I}),T=x({},D,{isDaySelectionStart:d,isDaySelectionEnd:a,isDayInsideSelection:c&&!d&&!a,isDaySelected:c,isDayPreviewed:u,isDayPreviewStart:p,isDayPreviewEnd:l,isDayInsidePreview:u&&!p&&!l,isDayStartOfMonth:F.isSameDay(C,F.startOfMonth(C)),isDayEndOfMonth:F.isSameDay(C,F.endOfMonth(C)),isDayFirstVisibleCell:m,isDayLastVisibleCell:b,isDayFillerCell:P&&!I}),L=Gre(i,T);return v.jsx(Wre,{className:se(L.root,s),ownerState:T,sx:g,children:v.jsx(Ure,{className:L.rangeIntervalPreview,ownerState:T,children:v.jsx(qre,x({},O,{ref:n,day:C,selected:h,disabled:S,today:E,outsideCurrentMonth:P,disableMargin:!0,disableHighlightToday:M,showDaysOutsideCurrentMonth:I,className:L.day,ownerState:T,draggable:y,isFirstVisibleCell:m,isLastVisibleCell:b}))})})});process.env.NODE_ENV!=="production"&&(U0.displayName="DateRangePickerDayRaw"),process.env.NODE_ENV!=="production"&&(U0.propTypes={action:o.oneOfType([o.func,o.shape({current:o.shape({focusVisible:o.func.isRequired})})]),centerRipple:o.bool,classes:o.object,className:o.string,component:o.elementType,day:o.object.isRequired,disabled:o.bool,disableHighlightToday:o.bool,disableMargin:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,draggable:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,isAnimating:o.bool,isEndOfHighlighting:o.bool.isRequired,isEndOfPreviewing:o.bool.isRequired,isFirstVisibleCell:o.bool.isRequired,isHighlighting:o.bool.isRequired,isLastVisibleCell:o.bool.isRequired,isPreviewing:o.bool.isRequired,isStartOfHighlighting:o.bool.isRequired,isStartOfPreviewing:o.bool.isRequired,isVisuallySelected:o.bool,onDaySelect:o.func.isRequired,onFocusVisible:o.func,onMouseEnter:o.func,outsideCurrentMonth:o.bool.isRequired,selected:o.bool,showDaysOutsideCurrentMonth:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,today:o.bool,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})])});const kM=f.memo(U0);process.env.NODE_ENV!=="production"&&(kM.displayName="DateRangePickerDay");const Cl=(e,t,n)=>{const r=e.dataset.timestamp;if(!r)return null;const s=+r;return t.date(new Date(s).toISOString(),n)},Yre=e=>e.target.dataset.timestamp===e.dataTransfer.getData("draggingDate"),DM=e=>e&&(e instanceof HTMLButtonElement&&!e.disabled?e:e.children.length?DM(e.children[0]):null),q0=(e,t)=>{if(e.changedTouches?.length===1&&e.touches.length<=1){const n=document.elementFromPoint(e.changedTouches[0].clientX,e.changedTouches[0].clientY),r=DM(n);return t&&r===e.changedTouches[0].target?null:r}return null},Kre=({adapter:e,setRangeDragDay:t,setIsDragging:n,isDragging:r,onDatePositionChange:s,onDrop:i,disableDragEditing:a,dateRange:l,timezone:c})=>{const u=f.useRef(null);f.useEffect(()=>{u.current=document.createElement("img"),u.current.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},[]);const d=E=>{if(E==null)return!1;const P=!a&&!!l[0]&&!!l[1],k=Qf(e,E,l),M=xu(e,E,l);return P&&(k||M)},p=he(E=>{const P=Cl(E.target,e,c);if(!d(P))return;E.stopPropagation(),u.current&&E.dataTransfer.setDragImage(u.current,0,0),t(P),E.dataTransfer.effectAllowed="move",n(!0);const k=E.target.dataset;k.timestamp&&E.dataTransfer.setData("draggingDate",k.timestamp),k.position&&s(k.position)}),h=he(E=>{const P=q0(E);if(!P)return;const k=Cl(P,e,c);d(k)&&t(k)}),g=he(E=>{r&&(E.preventDefault(),E.stopPropagation(),E.dataTransfer.dropEffect="move",t(Cl(E.target,e,c)))}),y=he(E=>{const P=q0(E);if(!P)return;const k=Cl(P,e,c);if(k&&t(k),!(P===E.changedTouches[0].target)||!d(k))return;n(!0);const O=E.target.dataset;O.position&&s(O.position)}),m=he(E=>{r&&(E.preventDefault(),E.stopPropagation())}),b=he(E=>{r&&(E.preventDefault(),E.stopPropagation(),E.dataTransfer.dropEffect="move")}),C=he(E=>{if(!r)return;t(null),n(!1);const P=q0(E,!0);if(!P)return;P.focus();const k=Cl(P,e,c);k&&i(k)}),w=he(E=>{r&&(E.preventDefault(),E.stopPropagation(),n(!1),t(null))}),S=he(E=>{if(!r||(E.preventDefault(),E.stopPropagation(),n(!1),t(null),E.currentTarget.focus(),Yre(E)))return;const P=Cl(E.target,e,c);P&&i(P)});return{onDragStart:p,onDragEnter:g,onDragLeave:m,onDragOver:b,onDragEnd:w,onDrop:S,onTouchStart:h,onTouchMove:y,onTouchEnd:C}},Xre=({disableDragEditing:e,adapter:t,onDatePositionChange:n,onDrop:r,dateRange:s,timezone:i})=>{const[a,l]=f.useState(!1),[c,u]=f.useState(null),d=he(g=>{t.isEqual(g,c)||u(g)}),p=f.useMemo(()=>{const[g,y]=s;if(c){if(g&&t.isBefore(c,g))return"start";if(y&&t.isAfter(c,y))return"end"}return null},[s,c,t]),h=Kre({adapter:t,onDatePositionChange:n,onDrop:r,setIsDragging:l,isDragging:a,setRangeDragDay:d,disableDragEditing:e,dateRange:s,timezone:i});return f.useMemo(()=>x({isDragging:a,rangeDragDay:c,draggingDatePosition:p},e?{}:h),[a,c,p,e,h])},Y0=e=>{const[t,n]=mo({name:"useRangePosition",state:"rangePosition",controlled:e.rangePosition,default:e.defaultRangePosition??"start"}),r=he(s=>{n(s),e.onRangePositionChange?.(s)});return{rangePosition:t,setRangePosition:r}},Zre=40,Qre=["calendars","month","monthIndex","labelId"],Jre=["format","slots","slotProps","currentMonth","onMonthChange","disableFuture","disablePast","minDate","maxDate","timezone","reduceAnimations","views","view"],ese=Z(ob)({padding:"12px 16px 4px 16px",display:"flex",alignItems:"center",justifyContent:"space-between"}),K0=f.forwardRef(function(t,n){const r=vt(),s=Co(),{calendars:i,month:a,monthIndex:l,labelId:c}=t,u=re(t,Qre),{format:d,slots:p,slotProps:h,currentMonth:g,onMonthChange:y,disableFuture:m,disablePast:b,minDate:C,maxDate:w,timezone:S}=u,E=re(u,Jre),P=wx(g,{disableFuture:m,maxDate:w,timezone:S}),k=Sx(g,{disablePast:b,minDate:C,timezone:S});if(i===1)return v.jsx(Qp,x({},u,{labelId:c,ref:n}));const M=()=>y(r.addMonths(g,1)),I=()=>y(r.addMonths(g,-1));return v.jsx(ese,x({},E,{ref:n,onGoToPrevious:I,onGoToNext:M,isPreviousHidden:l!==0,isPreviousDisabled:k,previousLabel:s.previousMonth,isNextHidden:l!==i-1,isNextDisabled:P,nextLabel:s.nextMonth,slots:p,slotProps:h,labelId:c,children:r.formatByString(a,d??`${r.formats.month} ${r.formats.year}`)}))});process.env.NODE_ENV!=="production"&&(K0.displayName="PickersRangeCalendarHeader"),process.env.NODE_ENV!=="production"&&(K0.propTypes={calendars:o.oneOf([1,2,3]).isRequired,classes:o.object,className:o.string,currentMonth:o.object.isRequired,disabled:o.bool,disableFuture:o.bool,disablePast:o.bool,format:o.string,labelId:o.string,maxDate:o.object.isRequired,minDate:o.object.isRequired,month:o.object.isRequired,monthIndex:o.number.isRequired,onMonthChange:o.func.isRequired,onViewChange:o.func,reduceAnimations:o.bool.isRequired,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string.isRequired,view:o.oneOf(["day","month","year"]).isRequired,views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired).isRequired});const tse=Me("MuiDateRangePickerDay2",["root","dayOutsideMonth","today","disabled","fillerCell","previewStart","previewEnd","insidePreviewing","selectionStart","selectionEnd","insideSelection","startOfWeek","endOfWeek","startOfMonth","endOfMonth","previewed","selected","draggable"]),nse=["value","defaultValue","referenceDate","onChange","className","classes","disableFuture","disablePast","minDate","maxDate","shouldDisableDate","reduceAnimations","onMonthChange","rangePosition","defaultRangePosition","onRangePositionChange","calendars","currentMonthCalendarPosition","slots","slotProps","loading","renderLoading","disableHighlightToday","focusedView","onFocusedViewChange","readOnly","disabled","showDaysOutsideCurrentMonth","dayOfWeekFormatter","disableAutoMonthSwitching","autoFocus","fixedWeekNumber","disableDragEditing","displayWeekNumber","timezone","availableRangePositions","views","view","openTo","onViewChange"],ose=["isDragging","rangeDragDay","draggingDatePosition"],rse="MTc2MTE3NzYwMDAwMA==",sse=Z("div",{name:"MuiDateRangeCalendar",slot:"Root"})({display:"flex",flexDirection:"row"}),ise=Z("div",{name:"MuiDateRangeCalendar",slot:"Container",overridesResolver:(e,t)=>t.monthContainer})(({theme:e})=>({"&:not(:last-of-type)":{borderRight:`1px solid ${(e.vars||e).palette.divider}`}})),ase=(Zre+Lc*2)*6,lse=Z(qx)(({theme:e})=>({minWidth:312,minHeight:ase,[`&.${OM.dayDragging}`]:{[`& .${tse.root}, & .${fn.day}`]:{cursor:"grabbing"},[`& .${fn.root}:not(.${fn.rangeIntervalDayHighlightStart}):not(.${fn.rangeIntervalDayHighlightEnd}) .${fn.day}:not(.${fn.notSelectedDate})`]:{opacity:.6}},[`&:not(.${OM.dayDragging}) .${fn.dayOutsideRangeInterval}`]:{"@media (pointer: fine)":{"&:hover":{border:`1px solid ${(e.vars||e).palette.grey[500]}`}}}}));function cse(e,t){const n=It({props:e,name:t}),r=xb(n.reduceAnimations),s=Ls(n);return x({},n,s,{renderLoading:n.renderLoading??(()=>v.jsx("span",{children:"..."})),reduceAnimations:r,loading:e.loading??!1,openTo:n.openTo??"day",views:n.views??["day"],calendars:n.calendars??2,disableDragEditing:n.disableDragEditing??!1,availableRangePositions:n.availableRangePositions??["start","end"]})}const use=(e,t)=>{const n={root:["root"],monthContainer:["monthContainer"],dayCalendar:[t.isDraggingDay&&"dayDragging"]};return de(n,_re,e)},nh=f.forwardRef(function(t,n){const r=cse(t,"MuiDateRangeCalendar"),s=qd(lb,{defaultMatches:!1}),{value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minDate:g,maxDate:y,shouldDisableDate:m,reduceAnimations:b,onMonthChange:C,rangePosition:w,defaultRangePosition:S,onRangePositionChange:E,calendars:P,currentMonthCalendarPosition:k=1,slots:M,slotProps:I,loading:O,renderLoading:F,disableHighlightToday:D,focusedView:T,onFocusedViewChange:L,readOnly:V,disabled:$,showDaysOutsideCurrentMonth:N,dayOfWeekFormatter:A,disableAutoMonthSwitching:_,autoFocus:H,fixedWeekNumber:R,disableDragEditing:B,displayWeekNumber:z,timezone:G,availableRangePositions:Y,views:X,view:W,openTo:Q,onViewChange:te}=r,J=re(r,nse),q=Rre(),{value:K,handleValueChange:U,timezone:ie}=Ha({name:"DateRangeCalendar",timezone:G,value:i,referenceDate:l,defaultValue:a,onChange:c,valueManager:Su}),{view:ne,setFocusedView:ce,focusedView:ee,setValueAndGoToNextView:me}=sb({view:W,views:X,openTo:Q,onChange:U,onViewChange:te,autoFocus:H,focusedView:T,onFocusedViewChange:L}),oe=vt(),Ie=at(),{rangePosition:fe,setRangePosition:Ee}=Y0({rangePosition:w??q?.rangePosition,defaultRangePosition:S,onRangePositionChange:E??q?.setRangePosition}),ue=he(st=>{fe!==st&&Ee(st)}),Re=he((st,$t,Yt=!1)=>{const{nextSelection:Et,newRange:Zt}=W0({newDate:st,adapter:oe,range:K,rangePosition:fe,allowRangeFlip:Yt,shouldMergeDateAndTime:!0,referenceDate:l}),Mo=Y.includes(Et);Mo&&Ee(Et);const ea=fe==="end"&&yl(oe,Zt);me(Zt,ea||!Mo?"finish":"partial",ne)}),$e=he(st=>{Re(st,void 0,!0)}),Le=B||$||V,De=f.useMemo(()=>[oe.isValid(K[0])?oe.startOfDay(K[0]):K[0],oe.isValid(K[1])?oe.endOfDay(K[1]):K[1]],[K,oe]),Ge=Xre({disableDragEditing:Le,onDrop:$e,onDatePositionChange:ue,adapter:oe,dateRange:De,timezone:ie}),{isDragging:Ke,rangeDragDay:be,draggingDatePosition:Se}=Ge,pe=re(Ge,ose),{ownerState:ze}=Yn(),qe=x({},ze,{isDraggingDay:Ke}),Fe=use(d,qe),Ye=f.useMemo(()=>{if(!De[0]||!De[1]||!be)return[null,null];const st=W0({adapter:oe,range:De,newDate:be,rangePosition:fe,allowRangeFlip:!0}).newRange;return st[0]!==null&&st[1]!==null?[oe.startOfDay(st[0]),oe.endOfDay(st[1])]:st},[fe,be,oe,De]),Pe=f.useMemo(()=>{if(m)return st=>m(st,Se||fe)},[m,fe,Se]),{calendarState:we,setVisibleDate:Ze,onMonthSwitchingAnimationEnd:Ct}=Gx({value:K[0]||K[1],referenceDate:MM(l,fe),disableFuture:p,disablePast:h,maxDate:y,minDate:g,onMonthChange:C,reduceAnimations:b,shouldDisableDate:Pe,timezone:ie,getCurrentMonthFromVisibleDate:(st,$t)=>{const Yt=oe.addMonths($t,1-k),Et=oe.endOfMonth(oe.addMonths(Yt,P-1));return oe.isWithinRange(st,[Yt,Et])?$t:oe.isAfter(st,Et)?oe.startOfMonth(oe.addMonths(st,k-1)):oe.startOfMonth(oe.addMonths(st,k-P))}}),Vt=M?.calendarHeader??K0,un=tt({elementType:Vt,externalSlotProps:I?.calendarHeader,additionalProps:{calendars:P,views:["day"],view:"day",currentMonth:we.currentMonth,onMonthChange:st=>Ze({target:st,reason:"header-navigation"}),minDate:g,maxDate:y,disabled:$,disablePast:h,disableFuture:p,reduceAnimations:b,timezone:ie,slots:M,slotProps:I},ownerState:qe}),Pt=f.useRef(null);f.useEffect(()=>{const st=fe==="start"?K[0]:K[1];if(!oe.isValid(st))return;const $t=fe==="start"?Pt.current?.[0]:Pt.current?.[1];if(Pt.current=K,_&&$t&&oe.isEqual($t,st))return;const Yt=P-k,Et=oe.getMonth(we.currentMonth),Zt=oe.getMonth(st);if(!oe.isSameYear(we.currentMonth,st)||Zt<Et||Zt>Et+Yt){const Mo=fe==="start"?st:oe.addMonths(st,-Yt);Ze({target:Mo,reason:"controlled-value-change"})}},[fe,K]);const Rn={disablePast:h,disableFuture:p,maxDate:y,minDate:g},gn={disableHighlightToday:D,readOnly:V,disabled:$},[_n,Xn]=f.useState(null),He=f.useMemo(()=>({onMouseLeave:()=>Xn(null)}),[]),Dt=Hre({adapter:oe,range:De,newDate:_n,rangePosition:fe}),Ae=he((st,$t)=>{let Yt;De[0]==null&&De[1]==null||j0(oe,$t,De)?Yt=null:Yt=$t,Dp(oe,Yt,_n)||Xn(Yt)}),Xe=x({day:kM},M),ut=x({},I,{day:st=>{const{day:$t,isDaySelected:Yt}=st,Et=Qf(oe,$t,De),Zt=xu(oe,$t,De),ea=!Le&&De[0]&&De[1]&&(Et||Zt);let ms;Et?ms="start":Zt&&(ms="end");const ta=Ke?Qf(oe,$t,Ye):Et,Ce=Ke?xu(oe,$t,Ye):Zt;return x({isPreviewing:s?j0(oe,$t,Dt):!1,isStartOfPreviewing:s?Qf(oe,$t,Dt):!1,isEndOfPreviewing:s?xu(oe,$t,Dt):!1,isHighlighting:j0(oe,$t,Ke?Ye:De),isStartOfHighlighting:ta,isEndOfHighlighting:Ke?xu(oe,$t,Ye):Zt,onMouseEnter:s?Ae:void 0,isVisuallySelected:Yt||Ke&&(ta||Ce),"data-position":ms},pe,{draggable:ea?!0:void 0},qn(I?.day,st)??{})}}),dt=f.useMemo(()=>Array.from({length:P}).map((st,$t)=>$t),[P]),Nt=f.useMemo(()=>{process.env.NODE_ENV!=="production"&&(k>P||k<1)&&Wn(["MUI X: The `currentMonthCalendarPosition` prop must be an integer between `1` and the amount of calendars rendered.","For example if you have 2 calendars rendered, it should be equal to either 1 or 2."]);const st=oe.addMonths(we.currentMonth,1-k);return Array.from({length:P}).map(($t,Yt)=>oe.addMonths(st,Yt))},[oe,we.currentMonth,P,k]),ro=ee!==null,ho=f.useRef(ne);return f.useEffect(()=>{ho.current!==ne&&(ee===ho.current&&ce(ne,!0),ho.current=ne)},[ee,ce,ne]),v.jsxs(sse,x({ref:n,className:se(Fe.root,u),ownerState:qe},J,{children:[v.jsx(qI,{packageName:"x-date-pickers-pro",releaseInfo:rse}),dt.map(st=>{const $t=Nt[st],Yt=`${Ie}-grid-${st}-label`;return v.jsxs(ise,{className:Fe.monthContainer,children:[v.jsx(Vt,x({},un,{month:$t,monthIndex:st,labelId:Yt})),v.jsx(lse,x({className:Fe.dayCalendar},we,Rn,gn,{onMonthSwitchingAnimationEnd:Ct,onFocusedDayChange:Et=>Ze({target:Et,reason:"cell-interaction"}),reduceAnimations:b,selectedDays:K,onSelectedDaysChange:Re,currentMonth:$t,TransitionProps:He,shouldDisableDate:Pe,hasFocus:ro,onFocusedViewChange:Et=>ce("day",Et),showDaysOutsideCurrentMonth:P===1&&N,dayOfWeekFormatter:A,loading:O,renderLoading:F,slots:Xe,slotProps:ut,fixedWeekNumber:R,displayWeekNumber:z,timezone:ie,gridLabelId:Yt}))]},st)})]}))});process.env.NODE_ENV!=="production"&&(nh.displayName="DateRangeCalendar"),process.env.NODE_ENV!=="production"&&(nh.propTypes={autoFocus:o.bool,availableRangePositions:o.arrayOf(o.oneOf(["end","start"]).isRequired),calendars:o.oneOf([1,2,3]),classes:o.object,className:o.string,currentMonthCalendarPosition:o.oneOf([1,2,3]),dayOfWeekFormatter:o.func,defaultRangePosition:o.oneOf(["end","start"]),defaultValue:o.arrayOf(o.object),disableAutoMonthSwitching:o.bool,disabled:o.bool,disableDragEditing:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,fixedWeekNumber:o.number,focusedView:o.oneOf(["day"]),loading:o.bool,maxDate:o.object,minDate:o.object,onChange:o.func,onFocusedViewChange:o.func,onMonthChange:o.func,onRangePositionChange:o.func,onViewChange:o.func,openTo:o.oneOf(["day"]),rangePosition:o.oneOf(["end","start"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.oneOfType([o.arrayOf(o.object.isRequired),o.object]),renderLoading:o.func,shouldDisableDate:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.arrayOf(o.object),view:o.oneOf(["day"]),views:o.arrayOf(o.oneOf(["day"]))});const X0=({views:e,view:t,onViewChange:n,focusedView:r,onFocusedViewChange:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minDate:g,maxDate:y,shouldDisableDate:m,reduceAnimations:b,onMonthChange:C,calendars:w,currentMonthCalendarPosition:S,slots:E,slotProps:P,loading:k,renderLoading:M,disableHighlightToday:I,readOnly:O,disabled:F,showDaysOutsideCurrentMonth:D,dayOfWeekFormatter:T,disableAutoMonthSwitching:L,sx:V,autoFocus:$,fixedWeekNumber:N,disableDragEditing:A,displayWeekNumber:_,timezone:H,availableRangePositions:R})=>v.jsx(nh,{view:t,views:e,onViewChange:n,focusedView:r&&Wm(r)?r:null,onFocusedViewChange:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minDate:g,maxDate:y,shouldDisableDate:m,reduceAnimations:b,onMonthChange:C,calendars:w,currentMonthCalendarPosition:S,slots:E,slotProps:P,loading:k,renderLoading:M,disableHighlightToday:I,readOnly:O,disabled:F,showDaysOutsideCurrentMonth:D,dayOfWeekFormatter:T,disableAutoMonthSwitching:L,sx:V,autoFocus:$,fixedWeekNumber:N,disableDragEditing:A,displayWeekNumber:_,timezone:H,availableRangePositions:R});process.env.NODE_ENV!=="production"&&(X0.displayName="renderDateRangeViewCalendar");function FM(e){const{steps:t,rangePositionResponse:n}=e;return Cx({steps:t,isViewMatchingStep:(r,s)=>s.rangePosition!==n.rangePosition?!1:s.views==null||s.views.includes(r),onStepChange:({step:r,defaultView:s,setView:i,view:a,views:l})=>{r.rangePosition!==n.rangePosition&&n.setRangePosition(r.rangePosition);const c=r.views==null?s:r.views.find(u=>l.includes(u));c!==a&&i(c)}})}const dse=["props","steps"],pse=["ownerState"],fse=e=>{let{props:t,steps:n}=e,r=re(e,dse);pu("x-date-pickers-pro","MTc2MTE3NzYwMDAwMA==");const{slots:s,slotProps:i,inputRef:a,localeText:l}=t,u=TM(s.field)==="single-input",d=u?"dialog":"tooltip",p=Y0(t),h=FM({steps:n,rangePositionResponse:p}),{providerProps:g,renderCurrentView:y,ownerState:m}=Jp(x({},r,{props:t,variant:"desktop",autoFocusView:d==="dialog",viewContainerRole:d,localeText:l,getStepNavigation:h,onPopperExited:he(()=>p.setRangePosition(t.defaultRangePosition??"start"))})),b=s.field,C=tt({elementType:b,externalSlotProps:i?.field,ownerState:m,additionalProps:{"data-active-range-position":g.contextValue.open?p.rangePosition:void 0}}),w=re(C,pse),S=s?.layout??Ua,E=()=>v.jsx(Rp,x({},g,{children:v.jsxs(Pu.Provider,{value:p,children:[v.jsx(b,x({},w,{slots:s,slotProps:i},u&&{inputRef:a})),v.jsx(rP,{slots:s,slotProps:i,children:v.jsx(S,x({},i?.layout,{slots:s,slotProps:i,children:y()}))})]})}));return process.env.NODE_ENV!=="production"&&(E.displayName="renderPicker"),{renderPicker:E}},Z0=f.forwardRef(function(t,n){const r=vt(),s=IM(t,"MuiDesktopDateRangePicker"),i=x({day:X0},s.viewRenderers),a=x({},s,{closeOnSelect:s.closeOnSelect??!0,viewRenderers:i,format:s.format??r.formats.keyboardDate,calendars:s.calendars??2,views:["day"],openTo:"day",slots:x({field:vl},s.slots),slotProps:x({},s.slotProps,{field:c=>x({},qn(s.slotProps?.field,c),Mp(s)),toolbar:x({hidden:!0},s.slotProps?.toolbar)})}),{renderPicker:l}=fse({ref:n,props:a,valueManager:Su,valueType:"date",validator:Jf,steps:null});return l()});process.env.NODE_ENV!=="production"&&(Z0.displayName="DesktopDateRangePicker"),Z0.propTypes={autoFocus:o.bool,calendars:o.oneOf([1,2,3]),className:o.string,closeOnSelect:o.bool,currentMonthCalendarPosition:o.oneOf([1,2,3]),dayOfWeekFormatter:o.func,defaultRangePosition:o.oneOf(["end","start"]),defaultValue:o.arrayOf(o.object),disableAutoMonthSwitching:o.bool,disabled:o.bool,disableDragEditing:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Ft,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onRangePositionChange:o.func,onSelectedSectionsChange:o.func,open:o.bool,rangePosition:o.oneOf(["end","start"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.oneOfType([o.arrayOf(o.object),o.object]),renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.arrayOf(o.object),viewRenderers:o.shape({day:o.func})};const hse=["props","steps"],gse=["ownerState"],mse=e=>{let{props:t,steps:n}=e,r=re(e,hse);pu("x-date-pickers-pro","MTc2MTE3NzYwMDAwMA==");const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=TM(s.field),d=u==="single-input",p=Y0(t),h=Co(),g=FM({steps:n,rangePositionResponse:p}),{providerProps:y,renderCurrentView:m,ownerState:b}=Jp(x({},r,{props:t,variant:"mobile",autoFocusView:!0,viewContainerRole:"dialog",localeText:c,getStepNavigation:g,onPopperExited:he(()=>p.setRangePosition(t.defaultRangePosition??"start"))})),C=y.privateContextValue.labelId,w=i?.toolbar?.hidden??!1,S=s.field,E=tt({elementType:S,externalSlotProps:i?.field,additionalProps:x({},d&&w&&{id:C}),ownerState:b}),P=re(E,gse),k=s?.layout??Ua,M=x({},h,c);let I=r.valueType==="date-time"?`${C}-start-toolbar ${C}-end-toolbar`:C;if(w){const D=[];u==="multi-input"?(M.start&&D.push(`${C}-start-label`),M.end&&D.push(`${C}-end-label`)):a!=null&&D.push(`${C}-label`),I=D.length>0?D.join(" "):void 0}const O=x({},i,{toolbar:x({},i?.toolbar,{titleId:C}),mobilePaper:x({"aria-labelledby":I},i?.mobilePaper)},u==="multi-input"&&{textField:D=>x({},qn(i?.textField,D),{id:`${C}-${D.position}`})}),F=()=>v.jsx(Rp,x({},y,{children:v.jsxs(Pu.Provider,{value:p,children:[v.jsx(S,x({},P,{slots:s,slotProps:O},d&&{inputRef:l})),v.jsx(pP,{slots:s,slotProps:O,children:v.jsx(k,x({},O?.layout,{slots:s,slotProps:O,children:m()}))})]})}));return process.env.NODE_ENV!=="production"&&(F.displayName="renderPicker"),{renderPicker:F}},Q0=f.forwardRef(function(t,n){const r=vt(),s=IM(t,"MuiMobileDateRangePicker"),i=x({day:X0},s.viewRenderers),a=x({},s,{viewRenderers:i,format:s.format??r.formats.keyboardDate,calendars:1,currentMonthCalendarPosition:1,views:["day"],openTo:"day",slots:x({field:vl},s.slots),slotProps:x({},s.slotProps,{field:c=>x({},qn(s.slotProps?.field,c),Mp(s)),toolbar:x({hidden:!1},s.slotProps?.toolbar)})}),{renderPicker:l}=mse({ref:n,props:a,valueManager:Su,valueType:"date",validator:Jf,steps:null});return l()});process.env.NODE_ENV!=="production"&&(Q0.displayName="MobileDateRangePicker"),Q0.propTypes={autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,currentMonthCalendarPosition:o.oneOf([1,2,3]),dayOfWeekFormatter:o.func,defaultRangePosition:o.oneOf(["end","start"]),defaultValue:o.arrayOf(o.object),disableAutoMonthSwitching:o.bool,disabled:o.bool,disableDragEditing:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Ft,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onRangePositionChange:o.func,onSelectedSectionsChange:o.func,open:o.bool,rangePosition:o.oneOf(["end","start"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.oneOfType([o.arrayOf(o.object),o.object]),renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.arrayOf(o.object),viewRenderers:o.shape({day:o.func})};const bse=["desktopModeMediaQuery"],oh=f.forwardRef(function(t,n){const r=It({props:t,name:"MuiDateRangePicker"}),{desktopModeMediaQuery:s=lb}=r,i=re(r,bse);return qd(s,{defaultMatches:!0})?v.jsx(Z0,x({ref:n},i)):v.jsx(Q0,x({ref:n},i))});process.env.NODE_ENV!=="production"&&(oh.displayName="DateRangePicker"),process.env.NODE_ENV!=="production"&&(oh.propTypes={autoFocus:o.bool,calendars:o.oneOf([1,2,3]),className:o.string,closeOnSelect:o.bool,currentMonthCalendarPosition:o.oneOf([1,2,3]),dayOfWeekFormatter:o.func,defaultRangePosition:o.oneOf(["end","start"]),defaultValue:o.arrayOf(o.object),desktopModeMediaQuery:o.string,disableAutoMonthSwitching:o.bool,disabled:o.bool,disableDragEditing:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Ft,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onRangePositionChange:o.func,onSelectedSectionsChange:o.func,open:o.bool,rangePosition:o.oneOf(["end","start"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.oneOfType([o.arrayOf(o.object),o.object]),renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.arrayOf(o.object),viewRenderers:o.shape({day:o.func})});const yse=({label:e,initialValue:t,value:n,setValue:r,calendars:s,disabled:i,white:a,fullWidth:l})=>{const{format:c,rangeShortcut:u}=ge.useContext(Br),d=No(),p=oi({...d,palette:{...d.palette,primary:{main:"#9D9A95"}}});return console.log("white",a),v.jsx(S1,{theme:p,children:v.jsx(oh,{label:e,defaultValue:t,value:n,onChange:h=>r(h),disabled:i,format:c,calendars:s,slotProps:{shortcuts:{items:u},textField:{variant:"outlined",size:"small",fullWidth:l,color:"gr-yellow",focused:!0,sx:{"& .MuiInputLabel-root":{color:a?"black !important":"white !important"},"& .MuiInputLabel-root.Mui-focused":{color:a?"black !important":"white !important"},"& .MuiGrid-root":{marginBottom:"0px !important"}},slotProps:{input:{sx:{borderRadius:"16px",color:a?"black !important":"white !important","& .MuiIconButton-root .MuiSvgIcon-root":{color:a?"black !important":"white !important"}}}}},popper:{sx:{"& .MuiChip-root":{bgcolor:h=>a?h.palette["gr-grey"].light:h.palette["gr-grey"].main},"& .MuiChip-label":{color:a?"black !important":"white !important"},"& .MuiChip-root:hover":{bgcolor:h=>h.palette["gr-grey"].dark},"& .MuiDayCalendar-weekDayLabel":{color:h=>a?h.palette["gr-base-dark"].main:"white !important"},"& .MuiPickersCalendarHeader-label":{color:a?"black !important":"white !important"},"& .MuiYearCalendar-button":{color:h=>h.palette["gr-base-dark"].main},"& .MuiButtonBase-root":{color:h=>a?h.palette["gr-base-dark"].main:"white !important"},"& .MuiPickersArrowSwitcher-root":{color:h=>h.palette["gr-base-dark"].main},"& .Mui-selected, & .MuiPickersDay-root.Mui-selected":{bgcolor:h=>`${h.palette["gr-yellow"].main} !important`,color:a?"black !important":"white !important"},"& .MuiYearCalendar-yearButton.Mui-selected":{bgcolor:h=>`${h.palette["gr-yellow"].main} !important`,color:"black !important"},"& .MuiPaper-root":{bgcolor:h=>a?h.palette["gr-grey"].light:"black !important",borderRadius:"20px"},"& .MuiPickersDay-root":{color:h=>h.palette["gr-base-dark"].main}}}}})})},vse=({label:e,initialValue:t,value:n,setValue:r,disabled:s,white:i,fullWidth:a})=>{const{format:l,singleShortcut:c}=ge.useContext(Br);return v.jsx(v.Fragment,{children:v.jsx(ef,{label:e,defaultValue:t,value:n,onChange:u=>r(u),disabled:s,format:l,slotProps:{shortcuts:{items:c},textField:{variant:"outlined",size:"small",fullWidth:a,color:"gr-yellow",focused:!0,slotProps:{input:{sx:{borderRadius:"16px",color:i?"black !important":"white !important","& .MuiIconButton-root .MuiSvgIcon-root":{color:i?"black !important":"white !important"}}}}},popper:{sx:{"& .MuiChip-root":{bgcolor:u=>u.palette["gr-grey"].light},"& .MuiChip-root:hover":{bgcolor:u=>u.palette["gr-grey"].dark},"& .MuiDayCalendar-weekDayLabel":{color:u=>u.palette["gr-base-dark"].main},"& .MuiYearCalendar-button":{color:u=>u.palette["gr-base-dark"].main},"& .MuiButtonBase-root":{color:u=>u.palette["gr-base-dark"].main},"& .Mui-selected, & .MuiPickersDay-root.Mui-selected":{bgcolor:u=>`${u.palette["gr-yellow"].main} !important`,color:"black !important"},"& .MuiYearCalendar-yearButton.Mui-selected":{bgcolor:u=>`${u.palette["gr-yellow"].main} !important`,color:"black !important"},"& .MuiPaper-root":{bgcolor:i?"white":"black",borderRadius:"20px"},"& .MuiPickersDay-root":{color:u=>u.palette["gr-base-dark"].main}}}}})})},Cse=e=>{const{name:t={title:"",ncolumn:0},fields:n=[],actions:r={ncolumn:1,buttons:[]}}=e,s=(i,a)=>{switch(i.element){case"SelectField":return v.jsx(ot,{size:i.ncolumn,children:v.jsx(Cre,{label:i.label,placeholder:i.placeholder,value:i.value,setValue:i.setValue,values:i.values,disabled:i.disable,fullWidth:!0,white:!1})},a);case"MultiSelectField":return v.jsx(ot,{size:i.ncolumn,children:v.jsx(wre,{label:i.label,placeholder:i.placeholder,value:i.value,setValue:i.setValue,values:i.values,disabled:i.disable,fullWidth:!0,white:!1})},a);case"DateRangeField":return v.jsx(ot,{size:i.ncolumn,children:v.jsx(Fre,{label:i.label,value:i.value,setValue:i.setValue,disabled:i.disable,fullWidth:!0})},a);case"DatePickerField":return v.jsx(v.Fragment,{children:v.jsx(ot,{size:i.ncolumn,children:v.jsx(vse,{label:i.label,initialValue:i.initialValue,value:i.value,setValue:i.setValue,disabled:i.disable,fullWidth:!0,white:!1})},a)});case"DateRangePickerField":return v.jsx(v.Fragment,{children:v.jsx(ot,{size:i.ncolumn,children:v.jsx(yse,{label:i.label,initialValue:i.initialValue,value:i.value,setValue:i.setValue,calendars:i.calendars,disabled:i.disable,fullWidth:!0,white:!1})},a)});default:return v.jsx(v.Fragment,{})}};return v.jsx(v.Fragment,{children:v.jsx(Gn,{sx:{bgcolor:i=>i.palette.background.paper,height:"70px",borderTopLeftRadius:"20px",borderTopRightRadius:"20px",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",padding:"20px",gap:"20px"},children:v.jsxs(ot,{container:!0,spacing:2,sx:{flexGrow:1},children:[t.title&&v.jsx(ot,{size:t.ncolumn,sx:{display:"flex",alignItems:"center"},children:v.jsx(Ot,{variant:"h4",color:"white",children:t.title})}),n.map((i,a)=>s(i,a)),r&&r.buttons.length>0&&v.jsx(ot,{size:r.ncolumn,sx:{display:"flex",justifyContent:"flex-end"},children:v.jsx(Iw,{variant:"outlined",fullWidth:!0,sx:{"& .MuiButton-root":{borderRadius:"20px"}},children:r.buttons.map((i,a)=>v.jsx(Vn,{variant:i.variant,color:"gr-yellow",sx:i.sx,onClick:i.onClick,disableElevation:!0,children:i.icon?i.icon:v.jsx("span",{style:{marginTop:"2px"},children:i.text})},a))})})]})})})},wse=mt(v.jsx("path",{d:"M4.25 5.61C6.57 8.59 10 13 10 13v5c0 1.1.9 2 2 2s2-.9 2-2v-5s3.43-4.41 5.75-7.39c.51-.66.04-1.61-.8-1.61H5.04c-.83 0-1.3.95-.79 1.61"}),"FilterAltRounded"),Sse=e=>v.jsxs(v.Fragment,{children:[v.jsx(EM,{...e,apiRef:e.apiRef,showToolbar:e.toolbar!==void 0,headerFilters:e.headerFilters,slots:{toolbar:Cse,headerFilterMenu:null},slotProps:{toolbar:{...e.toolbar},baseTextField:{color:e.toolbar!==void 0?"primary":"error",slotProps:{input:{endAdornment:v.jsx(Ma,{sx:{color:t=>e.toolbar!==void 0?t.palette["gr-grey"].main:t.palette["gr-grey"].light},position:"end",children:v.jsx(wse,{})})}}}},sx:{border:"none",color:"black",borderTopLeftRadius:e.toolbar?"0px":"20px !important",borderTopRightRadius:e.toolbar?"0px":"20px !important","--DataGrid-t-color-background-base":"transparent !important","& .MuiDataGrid-columnHeaderCheckbox":{backgroundColor:"white"},"& .MuiDataGrid-filterForm .MuiInputBase-root":{backgroundColor:"#F3F2F2"},"& .MuiDataGrid-columnHeader":{backgroundColor:e.toolbar?"white":"transparent",color:e.toolbar?"black":"white",borderBottom:e.headerFilters?"none !important":t=>`${t.palette.primary.main} 1px solid !important`},"& .MuiDataGrid-headerFilterRow":{bgcolor:e.toolbar?"white !important":"transparent !important",borderBottom:t=>`${t.palette.primary.main} 1px solid !important`},"& .MuiDataGrid-virtualScroller":{bgcolor:"white",borderBottomLeftRadius:"20px",borderBottomRightRadius:"20px"},"& .MuiDataGrid-columnHeaderTitleContainer":{"& .MuiCheckbox-root":{color:t=>e.toolbar!==void 0?t.palette.background.paper:t.palette["gr-grey"].light}},"& .MuiDataGrid-iconButtonContainer":{"& .MuiIconButton-root":{color:t=>e.toolbar!==void 0?t.palette["gr-grey"].main:t.palette["gr-grey"].light}},"& .MuiDataGrid-checkboxInput":{color:t=>t.palette.background.paper},"& .MuiDataGrid-footerContainer":{borderTop:"none",fontWeight:"500",display:"flex",justifyContent:"center",alignItems:"center"},"& .MuiIconButton-root":{color:t=>t.palette.background.paper,"&.Mui-disabled":{color:"#888",backgroundColor:"#eee",opacity:.7}},"& .MuiDataGrid-row":{minHeight:64,maxHeight:"none"},"& .MuiDataGrid-cell":{minHeight:64,maxHeight:"none",display:"flex",alignItems:"center"},"& .MuiDataGrid-cell--editing":{backgroundColor:"white !important",color:"black !important"},"& .MuiDataGrid-cell--editing input":{color:"black !important",backgroundColor:"white !important"}},loading:e.loading,checkboxSelection:e.checkboxSelection,pagination:!0,autoPageSize:!0,paginationModel:e.paginationModel,onPaginationModelChange:e.setPaginationModel,onRowSelectionModelChange:e.setRowSelectionModel,rowSelectionModel:e.rowSelectionModel,disableRowSelectionOnClick:e.disableRowSelectionOnClick,getRowHeight:()=>"auto",onCellEditStop:e.onCellEditStop}),v.jsx(vre,{contextMenu:e.contextMenu,setContextMenu:e.setContextMenu,options:e.options,checked:e.rowSelectionModel})]}),xse=()=>{const e=yre(),[t,n]=ge.useState(!1),[r,s]=ge.useState([]),[i,a]=ge.useState({pageSize:25,page:0}),[l,c]=ge.useState({type:"include",ids:new Set}),[u,d]=ge.useState(null);return{apiRef:e,rows:r,setRows:s,loading:t,setLoading:n,paginationModel:i,setPaginationModel:a,rowSelectionModel:l,setRowSelectionModel:c,contextMenu:u,setContextMenu:d}},NM=mt(v.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel"),Pse=mt(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),Ese=mt(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),Tse=mt(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),Ise=()=>{const{enqueueSnackbar:e}=a_(),t=r=>{K2(r)};return{showAlert:(r,s)=>e(s,{variant:r,content:(a,l)=>v.jsx(Sg,{sx:{borderRadius:"24px",bgcolor:"#fff",boxShadow:3,color:c=>c.palette["gr-base-dark"].main},severity:r,iconMapping:{error:v.jsx(NM,{}),info:v.jsx(Tse,{}),success:v.jsx(Pse,{}),warning:v.jsx(Ese,{}),default:v.jsx(Ca,{color:"gr-blue",size:20})},onClose:()=>t(a),children:l},a)}),closeAlert:t}};var Eu={exports:{}},J0={},rh={exports:{}},$M;function Ose(){if($M)return rh.exports;$M=1;function e(n){var r,s,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var a=n.length;for(r=0;r<a;r++)n[r]&&(s=e(n[r]))&&(i&&(i+=" "),i+=s)}else for(s in n)n[s]&&(i&&(i+=" "),i+=s);return i}function t(){for(var n,r,s=0,i="",a=arguments.length;s<a;s++)(n=arguments[s])&&(r=e(n))&&(i&&(i+=" "),i+=r);return i}return rh.exports=t,rh.exports.clsx=t,rh.exports}var Nn={},qs={},RM;function sh(){if(RM)return qs;RM=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.dontSetMe=s,qs.findInArray=e,qs.int=r,qs.isFunction=t,qs.isNum=n;function e(i,a){for(let l=0,c=i.length;l<c;l++)if(a.apply(a,[i[l],l,i]))return i[l]}function t(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Function]"}function n(i){return typeof i=="number"&&!isNaN(i)}function r(i){return parseInt(i,10)}function s(i,a,l){if(i[a])return new Error(`Invalid prop ${a} passed to ${l} - do not set this, set it on the child.`)}return qs}var Ys={},LM;function Mse(){if(LM)return Ys;LM=1,Object.defineProperty(Ys,"__esModule",{value:!0}),Ys.browserPrefixToKey=n,Ys.browserPrefixToStyle=r,Ys.default=void 0,Ys.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const a=window.document?.documentElement?.style;if(!a||i in a)return"";for(let l=0;l<e.length;l++)if(n(i,e[l])in a)return e[l];return""}function n(i,a){return a?`${a}${s(i)}`:i}function r(i,a){return a?`-${a.toLowerCase()}-${i}`:i}function s(i){let a="",l=!0;for(let c=0;c<i.length;c++)l?(a+=i[c].toUpperCase(),l=!1):i[c]==="-"?l=!0:a+=i[c];return a}return Ys.default=t(),Ys}var AM;function ev(){if(AM)return Nn;AM=1,Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.addClassName=P,Nn.addEvent=a,Nn.addUserSelectStyles=w,Nn.createCSSTransform=g,Nn.createSVGTransform=y,Nn.getTouch=b,Nn.getTouchIdentifier=C,Nn.getTranslation=m,Nn.innerHeight=d,Nn.innerWidth=p,Nn.matchesSelector=s,Nn.matchesSelectorAndParentsTo=i,Nn.offsetXYFromParent=h,Nn.outerHeight=c,Nn.outerWidth=u,Nn.removeClassName=k,Nn.removeEvent=l,Nn.scheduleRemoveUserSelectStyles=S;var e=sh(),t=n(Mse());function n(M,I){if(typeof WeakMap=="function")var O=new WeakMap,F=new WeakMap;return(n=function(D,T){if(!T&&D&&D.__esModule)return D;var L,V,$={__proto__:null,default:D};if(D===null||typeof D!="object"&&typeof D!="function")return $;if(L=T?F:O){if(L.has(D))return L.get(D);L.set(D,$)}for(const N in D)N!=="default"&&{}.hasOwnProperty.call(D,N)&&((V=(L=Object.defineProperty)&&Object.getOwnPropertyDescriptor(D,N))&&(V.get||V.set)?L($,N,V):$[N]=D[N]);return $})(M,I)}let r="";function s(M,I){return r||(r=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(O){return(0,e.isFunction)(M[O])})),(0,e.isFunction)(M[r])?M[r](I):!1}function i(M,I,O){let F=M;do{if(s(F,I))return!0;if(F===O)return!1;F=F.parentNode}while(F);return!1}function a(M,I,O,F){if(!M)return;const D={capture:!0,...F};M.addEventListener?M.addEventListener(I,O,D):M.attachEvent?M.attachEvent("on"+I,O):M["on"+I]=O}function l(M,I,O,F){if(!M)return;const D={capture:!0,...F};M.removeEventListener?M.removeEventListener(I,O,D):M.detachEvent?M.detachEvent("on"+I,O):M["on"+I]=null}function c(M){let I=M.clientHeight;const O=M.ownerDocument.defaultView.getComputedStyle(M);return I+=(0,e.int)(O.borderTopWidth),I+=(0,e.int)(O.borderBottomWidth),I}function u(M){let I=M.clientWidth;const O=M.ownerDocument.defaultView.getComputedStyle(M);return I+=(0,e.int)(O.borderLeftWidth),I+=(0,e.int)(O.borderRightWidth),I}function d(M){let I=M.clientHeight;const O=M.ownerDocument.defaultView.getComputedStyle(M);return I-=(0,e.int)(O.paddingTop),I-=(0,e.int)(O.paddingBottom),I}function p(M){let I=M.clientWidth;const O=M.ownerDocument.defaultView.getComputedStyle(M);return I-=(0,e.int)(O.paddingLeft),I-=(0,e.int)(O.paddingRight),I}function h(M,I,O){const D=I===I.ownerDocument.body?{left:0,top:0}:I.getBoundingClientRect(),T=(M.clientX+I.scrollLeft-D.left)/O,L=(M.clientY+I.scrollTop-D.top)/O;return{x:T,y:L}}function g(M,I){const O=m(M,I,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:O}}function y(M,I){return m(M,I,"")}function m(M,I,O){let{x:F,y:D}=M,T=`translate(${F}${O},${D}${O})`;if(I){const L=`${typeof I.x=="string"?I.x:I.x+O}`,V=`${typeof I.y=="string"?I.y:I.y+O}`;T=`translate(${L}, ${V})`+T}return T}function b(M,I){return M.targetTouches&&(0,e.findInArray)(M.targetTouches,O=>I===O.identifier)||M.changedTouches&&(0,e.findInArray)(M.changedTouches,O=>I===O.identifier)}function C(M){if(M.targetTouches&&M.targetTouches[0])return M.targetTouches[0].identifier;if(M.changedTouches&&M.changedTouches[0])return M.changedTouches[0].identifier}function w(M){if(!M)return;let I=M.getElementById("react-draggable-style-el");I||(I=M.createElement("style"),I.type="text/css",I.id="react-draggable-style-el",I.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
526
+ `));return e}function Rre(){return f.useContext(Pu)}const Lre=["toolbarFormat","className","classes"],Are=e=>de({root:["root"],container:["container"]},Nre,e),Vre=Z(Tb,{name:"MuiDateRangePickerToolbar",slot:"Root"})({}),Bre=Z("div",{name:"MuiDateRangePickerToolbar",slot:"Container"})({display:"flex"}),G0=f.forwardRef(function(t,n){const r=vt(),s=It({props:t,name:"MuiDateRangePickerToolbar"}),{toolbarFormat:i,className:a,classes:l}=s,c=re(s,Lre),{value:u}=Mi(),d=Co(),p=Eb(),{rangePosition:h,setRangePosition:g}=$re(),y=Are(l),m=i??r.formats.shortDate,b=(C,w)=>r.isValid(C)?r.formatByString(C,m):w;return v.jsx(Vre,x({},c,{toolbarTitle:d.dateRangePickerToolbarTitle,className:se(y.root,a),ownerState:p,ref:n,children:v.jsxs(Bre,{className:y.container,children:[v.jsx(kb,{variant:u[0]==null?"h6":"h5",value:b(u[0],d.start),selected:h==="start",onClick:()=>g("start")}),v.jsxs(Ot,{variant:"h5",children:[" ","–"," "]}),v.jsx(kb,{variant:u[1]==null?"h6":"h5",value:b(u[1],d.end),selected:h==="end",onClick:()=>g("end")})]})}))});process.env.NODE_ENV!=="production"&&(G0.displayName="DateRangePickerToolbar"),process.env.NODE_ENV!=="production"&&(G0.propTypes={classes:o.object,className:o.string,hidden:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleId:o.string,toolbarFormat:o.string,toolbarPlaceholder:o.node});function IM(e,t){const n=It({props:e,name:t}),r=Ls(n),s=f.useMemo(()=>n.localeText?.toolbarTitle==null?n.localeText:x({},n.localeText,{dateRangePickerToolbarTitle:n.localeText.toolbarTitle}),[n.localeText]);return x({},n,r,{localeText:s,slots:x({toolbar:G0},n.slots)})}const _re=e=>Oe("MuiDateRangeCalendar",e),OM=Me("MuiDateRangeCalendar",["root","monthContainer","dayDragging"]);function MM(e,t){return Array.isArray(e)?t==="start"?e[0]:e[1]:e}function W0({adapter:e,range:t,newDate:n,rangePosition:r,allowRangeFlip:s=!1,shouldMergeDateAndTime:i=!1,referenceDate:a}){const l=e.isValid(t[0])?t[0]:null,c=e.isValid(t[1])?t[1]:null;i&&n&&(l&&r==="start"&&(n=Ii(e,n,l)),c&&r==="end"&&(n=Ii(e,n,c)));const u=a&&n&&i?Ii(e,n,MM(a,r)):n;if(r==="start"){const p=s?{nextSelection:"start",newRange:[c,u]}:{nextSelection:"end",newRange:[u,null]};return c&&e.isAfter(u,c)?p:{nextSelection:"end",newRange:[u,c]}}const d=s?{nextSelection:"end",newRange:[u,l]}:{nextSelection:"end",newRange:[u,null]};return l&&e.isBeforeDay(u,l)?d:{nextSelection:"start",newRange:[l,u]}}function Hre(e){if(e.newDate==null)return[null,null];const[t,n]=e.range,{newRange:r}=W0(e);if(!t||!n)return r;const[s,i]=r;return e.rangePosition==="end"?[n,i]:[s,t]}function zre(e){return Oe("MuiDateRangePickerDay",e)}const fn=Me("MuiDateRangePickerDay",["root","rangeIntervalDayHighlight","rangeIntervalDayHighlightStart","rangeIntervalDayHighlightEnd","rangeIntervalPreview","rangeIntervalDayPreview","rangeIntervalDayPreviewStart","rangeIntervalDayPreviewEnd","outsideCurrentMonth","startOfMonth","endOfMonth","firstVisibleCell","lastVisibleCell","hiddenDayFiller","day","dayOutsideRangeInterval","dayInsideRangeInterval","notSelectedDate"]),jre=["className","classes","isEndOfHighlighting","isEndOfPreviewing","isHighlighting","isPreviewing","isStartOfHighlighting","isStartOfPreviewing","isVisuallySelected","sx","draggable","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],Gre=(e,t)=>{const{isDaySelected:n,isDayOutsideMonth:r,isDaySelectionStart:s,isDaySelectionEnd:i,isDayInsideSelection:a,isDayPreviewStart:l,isDayPreviewEnd:c,isDayPreviewed:u,isDayStartOfMonth:d,isDayEndOfMonth:p,isDayFirstVisibleCell:h,isDayLastVisibleCell:g,isDayFillerCell:y}=t;return de({root:["root",n&&"rangeIntervalDayHighlight",s&&"rangeIntervalDayHighlightStart",i&&"rangeIntervalDayHighlightEnd",r&&"outsideCurrentMonth",d&&"startOfMonth",p&&"endOfMonth",h&&"firstVisibleCell",g&&"lastVisibleCell",y&&"hiddenDayFiller"],rangeIntervalPreview:["rangeIntervalPreview",u&&"rangeIntervalDayPreview",(l||d)&&"rangeIntervalDayPreviewStart",(c||p)&&"rangeIntervalDayPreviewEnd"],day:["day",!n&&"notSelectedDate",!n&&"dayOutsideRangeInterval",!a&&"dayInsideRangeInterval"]},zre,e)},eh={borderTopRightRadius:"50%",borderBottomRightRadius:"50%"},th={borderTopLeftRadius:"50%",borderBottomLeftRadius:"50%"},Wre=Z("div",{name:"MuiDateRangePickerDay",slot:"Root",overridesResolver:(e,t)=>[{[`&.${fn.rangeIntervalDayHighlight}`]:t.rangeIntervalDayHighlight},{[`&.${fn.rangeIntervalDayHighlightStart}`]:t.rangeIntervalDayHighlightStart},{[`&.${fn.rangeIntervalDayHighlightEnd}`]:t.rangeIntervalDayHighlightEnd},{[`&.${fn.firstVisibleCell}`]:t.firstVisibleCell},{[`&.${fn.lastVisibleCell}`]:t.lastVisibleCell},{[`&.${fn.startOfMonth}`]:t.startOfMonth},{[`&.${fn.endOfMonth}`]:t.endOfMonth},{[`&.${fn.outsideCurrentMonth}`]:t.outsideCurrentMonth},{[`&.${fn.hiddenDayFiller}`]:t.hiddenDayFiller},t.root]})(({theme:e})=>({variants:[{props:{isDayFillerCell:!1},style:{[`&:first-of-type .${fn.rangeIntervalDayPreview}`]:x({},th,{borderLeftColor:(e.vars||e).palette.divider}),[`&:last-of-type .${fn.rangeIntervalDayPreview}`]:x({},eh,{borderRightColor:(e.vars||e).palette.divider})}},{props:{isDayFillerCell:!1,isDaySelected:!0},style:{borderRadius:0,color:(e.vars||e).palette.primary.contrastText,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:zn(e.palette.primary.main,e.palette.action.focusOpacity),"&:first-of-type":th,"&:last-of-type":eh}},{props:({ownerState:{isDayFillerCell:t,isDaySelectionStart:n,isDayFirstVisibleCell:r}})=>!t&&(n||r),style:x({},th,{paddingLeft:0})},{props:({ownerState:{isDayFillerCell:t,isDaySelectionEnd:n,isDayLastVisibleCell:r}})=>!t&&(n||r),style:x({},eh,{paddingRight:0})}]})),Ure=Z("div",{name:"MuiDateRangePickerDay",slot:"RangeIntervalPreview",overridesResolver:(e,t)=>[{[`&.${fn.rangeIntervalDayPreview}`]:t.rangeIntervalDayPreview},{[`&.${fn.rangeIntervalDayPreviewStart}`]:t.rangeIntervalDayPreviewStart},{[`&.${fn.rangeIntervalDayPreviewEnd}`]:t.rangeIntervalDayPreviewEnd},t.rangeIntervalPreview]})(({theme:e})=>({border:"2px solid transparent",variants:[{props:{isDayPreviewed:!0,isDayFillerCell:!1},style:{borderRadius:0,border:`2px dashed ${(e.vars||e).palette.divider}`,borderLeftColor:"transparent",borderRightColor:"transparent"}},{props:({ownerState:{isDayPreviewed:t,isDayFillerCell:n,isDayPreviewStart:r,isDayFirstVisibleCell:s}})=>t&&!n&&(r||s),style:x({borderLeftColor:(e.vars||e).palette.divider},th)},{props:({ownerState:{isDayPreviewed:t,isDayFillerCell:n,isDayPreviewEnd:r,isDayLastVisibleCell:s}})=>t&&!n&&(r||s),style:x({borderRightColor:(e.vars||e).palette.divider},eh)}]})),qre=Z(db,{name:"MuiDateRangePickerDay",slot:"Day",overridesResolver:(e,t)=>[{[`&.${fn.dayInsideRangeInterval}`]:t.dayInsideRangeInterval},{[`&.${fn.dayOutsideRangeInterval}`]:t.dayOutsideRangeInterval},{[`&.${fn.notSelectedDate}`]:t.notSelectedDate},t.day]})({transform:"scale(1.1)","& > *":{transform:"scale(0.9)"},variants:[{props:{draggable:!0},style:{cursor:"grab",touchAction:"none"}}]}),U0=f.forwardRef(function(t,n){const r=It({props:t,name:"MuiDateRangePickerDay"}),{className:s,classes:i,isEndOfHighlighting:a,isEndOfPreviewing:l,isHighlighting:c,isPreviewing:u,isStartOfHighlighting:d,isStartOfPreviewing:p,isVisuallySelected:h,sx:g,draggable:y,isFirstVisibleCell:m,isLastVisibleCell:b,day:C,selected:w,disabled:S,today:E,outsideCurrentMonth:P,disableMargin:k,disableHighlightToday:M,showDaysOutsideCurrentMonth:I}=r,O=re(r,jre);pu("x-date-pickers-pro","MTc2MTE3NzYwMDAwMA==");const F=vt(),D=cb({day:C,selected:w,disabled:S,today:E,outsideCurrentMonth:P,disableMargin:k,disableHighlightToday:M,showDaysOutsideCurrentMonth:I}),T=x({},D,{isDaySelectionStart:d,isDaySelectionEnd:a,isDayInsideSelection:c&&!d&&!a,isDaySelected:c,isDayPreviewed:u,isDayPreviewStart:p,isDayPreviewEnd:l,isDayInsidePreview:u&&!p&&!l,isDayStartOfMonth:F.isSameDay(C,F.startOfMonth(C)),isDayEndOfMonth:F.isSameDay(C,F.endOfMonth(C)),isDayFirstVisibleCell:m,isDayLastVisibleCell:b,isDayFillerCell:P&&!I}),L=Gre(i,T);return v.jsx(Wre,{className:se(L.root,s),ownerState:T,sx:g,children:v.jsx(Ure,{className:L.rangeIntervalPreview,ownerState:T,children:v.jsx(qre,x({},O,{ref:n,day:C,selected:h,disabled:S,today:E,outsideCurrentMonth:P,disableMargin:!0,disableHighlightToday:M,showDaysOutsideCurrentMonth:I,className:L.day,ownerState:T,draggable:y,isFirstVisibleCell:m,isLastVisibleCell:b}))})})});process.env.NODE_ENV!=="production"&&(U0.displayName="DateRangePickerDayRaw"),process.env.NODE_ENV!=="production"&&(U0.propTypes={action:o.oneOfType([o.func,o.shape({current:o.shape({focusVisible:o.func.isRequired})})]),centerRipple:o.bool,classes:o.object,className:o.string,component:o.elementType,day:o.object.isRequired,disabled:o.bool,disableHighlightToday:o.bool,disableMargin:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,draggable:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,isAnimating:o.bool,isEndOfHighlighting:o.bool.isRequired,isEndOfPreviewing:o.bool.isRequired,isFirstVisibleCell:o.bool.isRequired,isHighlighting:o.bool.isRequired,isLastVisibleCell:o.bool.isRequired,isPreviewing:o.bool.isRequired,isStartOfHighlighting:o.bool.isRequired,isStartOfPreviewing:o.bool.isRequired,isVisuallySelected:o.bool,onDaySelect:o.func.isRequired,onFocusVisible:o.func,onMouseEnter:o.func,outsideCurrentMonth:o.bool.isRequired,selected:o.bool,showDaysOutsideCurrentMonth:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,today:o.bool,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})])});const kM=f.memo(U0);process.env.NODE_ENV!=="production"&&(kM.displayName="DateRangePickerDay");const Cl=(e,t,n)=>{const r=e.dataset.timestamp;if(!r)return null;const s=+r;return t.date(new Date(s).toISOString(),n)},Yre=e=>e.target.dataset.timestamp===e.dataTransfer.getData("draggingDate"),DM=e=>e&&(e instanceof HTMLButtonElement&&!e.disabled?e:e.children.length?DM(e.children[0]):null),q0=(e,t)=>{if(e.changedTouches?.length===1&&e.touches.length<=1){const n=document.elementFromPoint(e.changedTouches[0].clientX,e.changedTouches[0].clientY),r=DM(n);return t&&r===e.changedTouches[0].target?null:r}return null},Kre=({adapter:e,setRangeDragDay:t,setIsDragging:n,isDragging:r,onDatePositionChange:s,onDrop:i,disableDragEditing:a,dateRange:l,timezone:c})=>{const u=f.useRef(null);f.useEffect(()=>{u.current=document.createElement("img"),u.current.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},[]);const d=E=>{if(E==null)return!1;const P=!a&&!!l[0]&&!!l[1],k=Qf(e,E,l),M=xu(e,E,l);return P&&(k||M)},p=he(E=>{const P=Cl(E.target,e,c);if(!d(P))return;E.stopPropagation(),u.current&&E.dataTransfer.setDragImage(u.current,0,0),t(P),E.dataTransfer.effectAllowed="move",n(!0);const k=E.target.dataset;k.timestamp&&E.dataTransfer.setData("draggingDate",k.timestamp),k.position&&s(k.position)}),h=he(E=>{const P=q0(E);if(!P)return;const k=Cl(P,e,c);d(k)&&t(k)}),g=he(E=>{r&&(E.preventDefault(),E.stopPropagation(),E.dataTransfer.dropEffect="move",t(Cl(E.target,e,c)))}),y=he(E=>{const P=q0(E);if(!P)return;const k=Cl(P,e,c);if(k&&t(k),!(P===E.changedTouches[0].target)||!d(k))return;n(!0);const O=E.target.dataset;O.position&&s(O.position)}),m=he(E=>{r&&(E.preventDefault(),E.stopPropagation())}),b=he(E=>{r&&(E.preventDefault(),E.stopPropagation(),E.dataTransfer.dropEffect="move")}),C=he(E=>{if(!r)return;t(null),n(!1);const P=q0(E,!0);if(!P)return;P.focus();const k=Cl(P,e,c);k&&i(k)}),w=he(E=>{r&&(E.preventDefault(),E.stopPropagation(),n(!1),t(null))}),S=he(E=>{if(!r||(E.preventDefault(),E.stopPropagation(),n(!1),t(null),E.currentTarget.focus(),Yre(E)))return;const P=Cl(E.target,e,c);P&&i(P)});return{onDragStart:p,onDragEnter:g,onDragLeave:m,onDragOver:b,onDragEnd:w,onDrop:S,onTouchStart:h,onTouchMove:y,onTouchEnd:C}},Xre=({disableDragEditing:e,adapter:t,onDatePositionChange:n,onDrop:r,dateRange:s,timezone:i})=>{const[a,l]=f.useState(!1),[c,u]=f.useState(null),d=he(g=>{t.isEqual(g,c)||u(g)}),p=f.useMemo(()=>{const[g,y]=s;if(c){if(g&&t.isBefore(c,g))return"start";if(y&&t.isAfter(c,y))return"end"}return null},[s,c,t]),h=Kre({adapter:t,onDatePositionChange:n,onDrop:r,setIsDragging:l,isDragging:a,setRangeDragDay:d,disableDragEditing:e,dateRange:s,timezone:i});return f.useMemo(()=>x({isDragging:a,rangeDragDay:c,draggingDatePosition:p},e?{}:h),[a,c,p,e,h])},Y0=e=>{const[t,n]=mo({name:"useRangePosition",state:"rangePosition",controlled:e.rangePosition,default:e.defaultRangePosition??"start"}),r=he(s=>{n(s),e.onRangePositionChange?.(s)});return{rangePosition:t,setRangePosition:r}},Zre=40,Qre=["calendars","month","monthIndex","labelId"],Jre=["format","slots","slotProps","currentMonth","onMonthChange","disableFuture","disablePast","minDate","maxDate","timezone","reduceAnimations","views","view"],ese=Z(ob)({padding:"12px 16px 4px 16px",display:"flex",alignItems:"center",justifyContent:"space-between"}),K0=f.forwardRef(function(t,n){const r=vt(),s=Co(),{calendars:i,month:a,monthIndex:l,labelId:c}=t,u=re(t,Qre),{format:d,slots:p,slotProps:h,currentMonth:g,onMonthChange:y,disableFuture:m,disablePast:b,minDate:C,maxDate:w,timezone:S}=u,E=re(u,Jre),P=wx(g,{disableFuture:m,maxDate:w,timezone:S}),k=Sx(g,{disablePast:b,minDate:C,timezone:S});if(i===1)return v.jsx(Qp,x({},u,{labelId:c,ref:n}));const M=()=>y(r.addMonths(g,1)),I=()=>y(r.addMonths(g,-1));return v.jsx(ese,x({},E,{ref:n,onGoToPrevious:I,onGoToNext:M,isPreviousHidden:l!==0,isPreviousDisabled:k,previousLabel:s.previousMonth,isNextHidden:l!==i-1,isNextDisabled:P,nextLabel:s.nextMonth,slots:p,slotProps:h,labelId:c,children:r.formatByString(a,d??`${r.formats.month} ${r.formats.year}`)}))});process.env.NODE_ENV!=="production"&&(K0.displayName="PickersRangeCalendarHeader"),process.env.NODE_ENV!=="production"&&(K0.propTypes={calendars:o.oneOf([1,2,3]).isRequired,classes:o.object,className:o.string,currentMonth:o.object.isRequired,disabled:o.bool,disableFuture:o.bool,disablePast:o.bool,format:o.string,labelId:o.string,maxDate:o.object.isRequired,minDate:o.object.isRequired,month:o.object.isRequired,monthIndex:o.number.isRequired,onMonthChange:o.func.isRequired,onViewChange:o.func,reduceAnimations:o.bool.isRequired,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string.isRequired,view:o.oneOf(["day","month","year"]).isRequired,views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired).isRequired});const tse=Me("MuiDateRangePickerDay2",["root","dayOutsideMonth","today","disabled","fillerCell","previewStart","previewEnd","insidePreviewing","selectionStart","selectionEnd","insideSelection","startOfWeek","endOfWeek","startOfMonth","endOfMonth","previewed","selected","draggable"]),nse=["value","defaultValue","referenceDate","onChange","className","classes","disableFuture","disablePast","minDate","maxDate","shouldDisableDate","reduceAnimations","onMonthChange","rangePosition","defaultRangePosition","onRangePositionChange","calendars","currentMonthCalendarPosition","slots","slotProps","loading","renderLoading","disableHighlightToday","focusedView","onFocusedViewChange","readOnly","disabled","showDaysOutsideCurrentMonth","dayOfWeekFormatter","disableAutoMonthSwitching","autoFocus","fixedWeekNumber","disableDragEditing","displayWeekNumber","timezone","availableRangePositions","views","view","openTo","onViewChange"],ose=["isDragging","rangeDragDay","draggingDatePosition"],rse="MTc2MTE3NzYwMDAwMA==",sse=Z("div",{name:"MuiDateRangeCalendar",slot:"Root"})({display:"flex",flexDirection:"row"}),ise=Z("div",{name:"MuiDateRangeCalendar",slot:"Container",overridesResolver:(e,t)=>t.monthContainer})(({theme:e})=>({"&:not(:last-of-type)":{borderRight:`1px solid ${(e.vars||e).palette.divider}`}})),ase=(Zre+Lc*2)*6,lse=Z(qx)(({theme:e})=>({minWidth:312,minHeight:ase,[`&.${OM.dayDragging}`]:{[`& .${tse.root}, & .${fn.day}`]:{cursor:"grabbing"},[`& .${fn.root}:not(.${fn.rangeIntervalDayHighlightStart}):not(.${fn.rangeIntervalDayHighlightEnd}) .${fn.day}:not(.${fn.notSelectedDate})`]:{opacity:.6}},[`&:not(.${OM.dayDragging}) .${fn.dayOutsideRangeInterval}`]:{"@media (pointer: fine)":{"&:hover":{border:`1px solid ${(e.vars||e).palette.grey[500]}`}}}}));function cse(e,t){const n=It({props:e,name:t}),r=xb(n.reduceAnimations),s=Ls(n);return x({},n,s,{renderLoading:n.renderLoading??(()=>v.jsx("span",{children:"..."})),reduceAnimations:r,loading:e.loading??!1,openTo:n.openTo??"day",views:n.views??["day"],calendars:n.calendars??2,disableDragEditing:n.disableDragEditing??!1,availableRangePositions:n.availableRangePositions??["start","end"]})}const use=(e,t)=>{const n={root:["root"],monthContainer:["monthContainer"],dayCalendar:[t.isDraggingDay&&"dayDragging"]};return de(n,_re,e)},nh=f.forwardRef(function(t,n){const r=cse(t,"MuiDateRangeCalendar"),s=qd(lb,{defaultMatches:!1}),{value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minDate:g,maxDate:y,shouldDisableDate:m,reduceAnimations:b,onMonthChange:C,rangePosition:w,defaultRangePosition:S,onRangePositionChange:E,calendars:P,currentMonthCalendarPosition:k=1,slots:M,slotProps:I,loading:O,renderLoading:F,disableHighlightToday:D,focusedView:T,onFocusedViewChange:L,readOnly:V,disabled:$,showDaysOutsideCurrentMonth:N,dayOfWeekFormatter:A,disableAutoMonthSwitching:_,autoFocus:H,fixedWeekNumber:R,disableDragEditing:B,displayWeekNumber:z,timezone:G,availableRangePositions:Y,views:X,view:W,openTo:Q,onViewChange:te}=r,J=re(r,nse),q=Rre(),{value:K,handleValueChange:U,timezone:ie}=Ha({name:"DateRangeCalendar",timezone:G,value:i,referenceDate:l,defaultValue:a,onChange:c,valueManager:Su}),{view:ne,setFocusedView:ce,focusedView:ee,setValueAndGoToNextView:me}=sb({view:W,views:X,openTo:Q,onChange:U,onViewChange:te,autoFocus:H,focusedView:T,onFocusedViewChange:L}),oe=vt(),Ie=at(),{rangePosition:fe,setRangePosition:Ee}=Y0({rangePosition:w??q?.rangePosition,defaultRangePosition:S,onRangePositionChange:E??q?.setRangePosition}),ue=he(st=>{fe!==st&&Ee(st)}),Re=he((st,$t,Yt=!1)=>{const{nextSelection:Et,newRange:Zt}=W0({newDate:st,adapter:oe,range:K,rangePosition:fe,allowRangeFlip:Yt,shouldMergeDateAndTime:!0,referenceDate:l}),Mo=Y.includes(Et);Mo&&Ee(Et);const ea=fe==="end"&&yl(oe,Zt);me(Zt,ea||!Mo?"finish":"partial",ne)}),$e=he(st=>{Re(st,void 0,!0)}),Le=B||$||V,De=f.useMemo(()=>[oe.isValid(K[0])?oe.startOfDay(K[0]):K[0],oe.isValid(K[1])?oe.endOfDay(K[1]):K[1]],[K,oe]),Ge=Xre({disableDragEditing:Le,onDrop:$e,onDatePositionChange:ue,adapter:oe,dateRange:De,timezone:ie}),{isDragging:Ke,rangeDragDay:be,draggingDatePosition:Se}=Ge,pe=re(Ge,ose),{ownerState:ze}=Yn(),qe=x({},ze,{isDraggingDay:Ke}),Fe=use(d,qe),Ye=f.useMemo(()=>{if(!De[0]||!De[1]||!be)return[null,null];const st=W0({adapter:oe,range:De,newDate:be,rangePosition:fe,allowRangeFlip:!0}).newRange;return st[0]!==null&&st[1]!==null?[oe.startOfDay(st[0]),oe.endOfDay(st[1])]:st},[fe,be,oe,De]),Pe=f.useMemo(()=>{if(m)return st=>m(st,Se||fe)},[m,fe,Se]),{calendarState:we,setVisibleDate:Ze,onMonthSwitchingAnimationEnd:Ct}=Gx({value:K[0]||K[1],referenceDate:MM(l,fe),disableFuture:p,disablePast:h,maxDate:y,minDate:g,onMonthChange:C,reduceAnimations:b,shouldDisableDate:Pe,timezone:ie,getCurrentMonthFromVisibleDate:(st,$t)=>{const Yt=oe.addMonths($t,1-k),Et=oe.endOfMonth(oe.addMonths(Yt,P-1));return oe.isWithinRange(st,[Yt,Et])?$t:oe.isAfter(st,Et)?oe.startOfMonth(oe.addMonths(st,k-1)):oe.startOfMonth(oe.addMonths(st,k-P))}}),Vt=M?.calendarHeader??K0,un=tt({elementType:Vt,externalSlotProps:I?.calendarHeader,additionalProps:{calendars:P,views:["day"],view:"day",currentMonth:we.currentMonth,onMonthChange:st=>Ze({target:st,reason:"header-navigation"}),minDate:g,maxDate:y,disabled:$,disablePast:h,disableFuture:p,reduceAnimations:b,timezone:ie,slots:M,slotProps:I},ownerState:qe}),Pt=f.useRef(null);f.useEffect(()=>{const st=fe==="start"?K[0]:K[1];if(!oe.isValid(st))return;const $t=fe==="start"?Pt.current?.[0]:Pt.current?.[1];if(Pt.current=K,_&&$t&&oe.isEqual($t,st))return;const Yt=P-k,Et=oe.getMonth(we.currentMonth),Zt=oe.getMonth(st);if(!oe.isSameYear(we.currentMonth,st)||Zt<Et||Zt>Et+Yt){const Mo=fe==="start"?st:oe.addMonths(st,-Yt);Ze({target:Mo,reason:"controlled-value-change"})}},[fe,K]);const Rn={disablePast:h,disableFuture:p,maxDate:y,minDate:g},gn={disableHighlightToday:D,readOnly:V,disabled:$},[_n,Xn]=f.useState(null),He=f.useMemo(()=>({onMouseLeave:()=>Xn(null)}),[]),Dt=Hre({adapter:oe,range:De,newDate:_n,rangePosition:fe}),Ae=he((st,$t)=>{let Yt;De[0]==null&&De[1]==null||j0(oe,$t,De)?Yt=null:Yt=$t,Dp(oe,Yt,_n)||Xn(Yt)}),Xe=x({day:kM},M),ut=x({},I,{day:st=>{const{day:$t,isDaySelected:Yt}=st,Et=Qf(oe,$t,De),Zt=xu(oe,$t,De),ea=!Le&&De[0]&&De[1]&&(Et||Zt);let ms;Et?ms="start":Zt&&(ms="end");const ta=Ke?Qf(oe,$t,Ye):Et,Ce=Ke?xu(oe,$t,Ye):Zt;return x({isPreviewing:s?j0(oe,$t,Dt):!1,isStartOfPreviewing:s?Qf(oe,$t,Dt):!1,isEndOfPreviewing:s?xu(oe,$t,Dt):!1,isHighlighting:j0(oe,$t,Ke?Ye:De),isStartOfHighlighting:ta,isEndOfHighlighting:Ke?xu(oe,$t,Ye):Zt,onMouseEnter:s?Ae:void 0,isVisuallySelected:Yt||Ke&&(ta||Ce),"data-position":ms},pe,{draggable:ea?!0:void 0},qn(I?.day,st)??{})}}),dt=f.useMemo(()=>Array.from({length:P}).map((st,$t)=>$t),[P]),Nt=f.useMemo(()=>{process.env.NODE_ENV!=="production"&&(k>P||k<1)&&Wn(["MUI X: The `currentMonthCalendarPosition` prop must be an integer between `1` and the amount of calendars rendered.","For example if you have 2 calendars rendered, it should be equal to either 1 or 2."]);const st=oe.addMonths(we.currentMonth,1-k);return Array.from({length:P}).map(($t,Yt)=>oe.addMonths(st,Yt))},[oe,we.currentMonth,P,k]),ro=ee!==null,ho=f.useRef(ne);return f.useEffect(()=>{ho.current!==ne&&(ee===ho.current&&ce(ne,!0),ho.current=ne)},[ee,ce,ne]),v.jsxs(sse,x({ref:n,className:se(Fe.root,u),ownerState:qe},J,{children:[v.jsx(qI,{packageName:"x-date-pickers-pro",releaseInfo:rse}),dt.map(st=>{const $t=Nt[st],Yt=`${Ie}-grid-${st}-label`;return v.jsxs(ise,{className:Fe.monthContainer,children:[v.jsx(Vt,x({},un,{month:$t,monthIndex:st,labelId:Yt})),v.jsx(lse,x({className:Fe.dayCalendar},we,Rn,gn,{onMonthSwitchingAnimationEnd:Ct,onFocusedDayChange:Et=>Ze({target:Et,reason:"cell-interaction"}),reduceAnimations:b,selectedDays:K,onSelectedDaysChange:Re,currentMonth:$t,TransitionProps:He,shouldDisableDate:Pe,hasFocus:ro,onFocusedViewChange:Et=>ce("day",Et),showDaysOutsideCurrentMonth:P===1&&N,dayOfWeekFormatter:A,loading:O,renderLoading:F,slots:Xe,slotProps:ut,fixedWeekNumber:R,displayWeekNumber:z,timezone:ie,gridLabelId:Yt}))]},st)})]}))});process.env.NODE_ENV!=="production"&&(nh.displayName="DateRangeCalendar"),process.env.NODE_ENV!=="production"&&(nh.propTypes={autoFocus:o.bool,availableRangePositions:o.arrayOf(o.oneOf(["end","start"]).isRequired),calendars:o.oneOf([1,2,3]),classes:o.object,className:o.string,currentMonthCalendarPosition:o.oneOf([1,2,3]),dayOfWeekFormatter:o.func,defaultRangePosition:o.oneOf(["end","start"]),defaultValue:o.arrayOf(o.object),disableAutoMonthSwitching:o.bool,disabled:o.bool,disableDragEditing:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,fixedWeekNumber:o.number,focusedView:o.oneOf(["day"]),loading:o.bool,maxDate:o.object,minDate:o.object,onChange:o.func,onFocusedViewChange:o.func,onMonthChange:o.func,onRangePositionChange:o.func,onViewChange:o.func,openTo:o.oneOf(["day"]),rangePosition:o.oneOf(["end","start"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.oneOfType([o.arrayOf(o.object.isRequired),o.object]),renderLoading:o.func,shouldDisableDate:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.arrayOf(o.object),view:o.oneOf(["day"]),views:o.arrayOf(o.oneOf(["day"]))});const X0=({views:e,view:t,onViewChange:n,focusedView:r,onFocusedViewChange:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minDate:g,maxDate:y,shouldDisableDate:m,reduceAnimations:b,onMonthChange:C,calendars:w,currentMonthCalendarPosition:S,slots:E,slotProps:P,loading:k,renderLoading:M,disableHighlightToday:I,readOnly:O,disabled:F,showDaysOutsideCurrentMonth:D,dayOfWeekFormatter:T,disableAutoMonthSwitching:L,sx:V,autoFocus:$,fixedWeekNumber:N,disableDragEditing:A,displayWeekNumber:_,timezone:H,availableRangePositions:R})=>v.jsx(nh,{view:t,views:e,onViewChange:n,focusedView:r&&Wm(r)?r:null,onFocusedViewChange:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:h,minDate:g,maxDate:y,shouldDisableDate:m,reduceAnimations:b,onMonthChange:C,calendars:w,currentMonthCalendarPosition:S,slots:E,slotProps:P,loading:k,renderLoading:M,disableHighlightToday:I,readOnly:O,disabled:F,showDaysOutsideCurrentMonth:D,dayOfWeekFormatter:T,disableAutoMonthSwitching:L,sx:V,autoFocus:$,fixedWeekNumber:N,disableDragEditing:A,displayWeekNumber:_,timezone:H,availableRangePositions:R});process.env.NODE_ENV!=="production"&&(X0.displayName="renderDateRangeViewCalendar");function FM(e){const{steps:t,rangePositionResponse:n}=e;return Cx({steps:t,isViewMatchingStep:(r,s)=>s.rangePosition!==n.rangePosition?!1:s.views==null||s.views.includes(r),onStepChange:({step:r,defaultView:s,setView:i,view:a,views:l})=>{r.rangePosition!==n.rangePosition&&n.setRangePosition(r.rangePosition);const c=r.views==null?s:r.views.find(u=>l.includes(u));c!==a&&i(c)}})}const dse=["props","steps"],pse=["ownerState"],fse=e=>{let{props:t,steps:n}=e,r=re(e,dse);pu("x-date-pickers-pro","MTc2MTE3NzYwMDAwMA==");const{slots:s,slotProps:i,inputRef:a,localeText:l}=t,u=TM(s.field)==="single-input",d=u?"dialog":"tooltip",p=Y0(t),h=FM({steps:n,rangePositionResponse:p}),{providerProps:g,renderCurrentView:y,ownerState:m}=Jp(x({},r,{props:t,variant:"desktop",autoFocusView:d==="dialog",viewContainerRole:d,localeText:l,getStepNavigation:h,onPopperExited:he(()=>p.setRangePosition(t.defaultRangePosition??"start"))})),b=s.field,C=tt({elementType:b,externalSlotProps:i?.field,ownerState:m,additionalProps:{"data-active-range-position":g.contextValue.open?p.rangePosition:void 0}}),w=re(C,pse),S=s?.layout??Ua,E=()=>v.jsx(Rp,x({},g,{children:v.jsxs(Pu.Provider,{value:p,children:[v.jsx(b,x({},w,{slots:s,slotProps:i},u&&{inputRef:a})),v.jsx(rP,{slots:s,slotProps:i,children:v.jsx(S,x({},i?.layout,{slots:s,slotProps:i,children:y()}))})]})}));return process.env.NODE_ENV!=="production"&&(E.displayName="renderPicker"),{renderPicker:E}},Z0=f.forwardRef(function(t,n){const r=vt(),s=IM(t,"MuiDesktopDateRangePicker"),i=x({day:X0},s.viewRenderers),a=x({},s,{closeOnSelect:s.closeOnSelect??!0,viewRenderers:i,format:s.format??r.formats.keyboardDate,calendars:s.calendars??2,views:["day"],openTo:"day",slots:x({field:vl},s.slots),slotProps:x({},s.slotProps,{field:c=>x({},qn(s.slotProps?.field,c),Mp(s)),toolbar:x({hidden:!0},s.slotProps?.toolbar)})}),{renderPicker:l}=fse({ref:n,props:a,valueManager:Su,valueType:"date",validator:Jf,steps:null});return l()});process.env.NODE_ENV!=="production"&&(Z0.displayName="DesktopDateRangePicker"),Z0.propTypes={autoFocus:o.bool,calendars:o.oneOf([1,2,3]),className:o.string,closeOnSelect:o.bool,currentMonthCalendarPosition:o.oneOf([1,2,3]),dayOfWeekFormatter:o.func,defaultRangePosition:o.oneOf(["end","start"]),defaultValue:o.arrayOf(o.object),disableAutoMonthSwitching:o.bool,disabled:o.bool,disableDragEditing:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Ft,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onRangePositionChange:o.func,onSelectedSectionsChange:o.func,open:o.bool,rangePosition:o.oneOf(["end","start"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.oneOfType([o.arrayOf(o.object),o.object]),renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.arrayOf(o.object),viewRenderers:o.shape({day:o.func})};const hse=["props","steps"],gse=["ownerState"],mse=e=>{let{props:t,steps:n}=e,r=re(e,hse);pu("x-date-pickers-pro","MTc2MTE3NzYwMDAwMA==");const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=TM(s.field),d=u==="single-input",p=Y0(t),h=Co(),g=FM({steps:n,rangePositionResponse:p}),{providerProps:y,renderCurrentView:m,ownerState:b}=Jp(x({},r,{props:t,variant:"mobile",autoFocusView:!0,viewContainerRole:"dialog",localeText:c,getStepNavigation:g,onPopperExited:he(()=>p.setRangePosition(t.defaultRangePosition??"start"))})),C=y.privateContextValue.labelId,w=i?.toolbar?.hidden??!1,S=s.field,E=tt({elementType:S,externalSlotProps:i?.field,additionalProps:x({},d&&w&&{id:C}),ownerState:b}),P=re(E,gse),k=s?.layout??Ua,M=x({},h,c);let I=r.valueType==="date-time"?`${C}-start-toolbar ${C}-end-toolbar`:C;if(w){const D=[];u==="multi-input"?(M.start&&D.push(`${C}-start-label`),M.end&&D.push(`${C}-end-label`)):a!=null&&D.push(`${C}-label`),I=D.length>0?D.join(" "):void 0}const O=x({},i,{toolbar:x({},i?.toolbar,{titleId:C}),mobilePaper:x({"aria-labelledby":I},i?.mobilePaper)},u==="multi-input"&&{textField:D=>x({},qn(i?.textField,D),{id:`${C}-${D.position}`})}),F=()=>v.jsx(Rp,x({},y,{children:v.jsxs(Pu.Provider,{value:p,children:[v.jsx(S,x({},P,{slots:s,slotProps:O},d&&{inputRef:l})),v.jsx(pP,{slots:s,slotProps:O,children:v.jsx(k,x({},O?.layout,{slots:s,slotProps:O,children:m()}))})]})}));return process.env.NODE_ENV!=="production"&&(F.displayName="renderPicker"),{renderPicker:F}},Q0=f.forwardRef(function(t,n){const r=vt(),s=IM(t,"MuiMobileDateRangePicker"),i=x({day:X0},s.viewRenderers),a=x({},s,{viewRenderers:i,format:s.format??r.formats.keyboardDate,calendars:1,currentMonthCalendarPosition:1,views:["day"],openTo:"day",slots:x({field:vl},s.slots),slotProps:x({},s.slotProps,{field:c=>x({},qn(s.slotProps?.field,c),Mp(s)),toolbar:x({hidden:!1},s.slotProps?.toolbar)})}),{renderPicker:l}=mse({ref:n,props:a,valueManager:Su,valueType:"date",validator:Jf,steps:null});return l()});process.env.NODE_ENV!=="production"&&(Q0.displayName="MobileDateRangePicker"),Q0.propTypes={autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,currentMonthCalendarPosition:o.oneOf([1,2,3]),dayOfWeekFormatter:o.func,defaultRangePosition:o.oneOf(["end","start"]),defaultValue:o.arrayOf(o.object),disableAutoMonthSwitching:o.bool,disabled:o.bool,disableDragEditing:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Ft,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onRangePositionChange:o.func,onSelectedSectionsChange:o.func,open:o.bool,rangePosition:o.oneOf(["end","start"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.oneOfType([o.arrayOf(o.object),o.object]),renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.arrayOf(o.object),viewRenderers:o.shape({day:o.func})};const bse=["desktopModeMediaQuery"],oh=f.forwardRef(function(t,n){const r=It({props:t,name:"MuiDateRangePicker"}),{desktopModeMediaQuery:s=lb}=r,i=re(r,bse);return qd(s,{defaultMatches:!0})?v.jsx(Z0,x({ref:n},i)):v.jsx(Q0,x({ref:n},i))});process.env.NODE_ENV!=="production"&&(oh.displayName="DateRangePicker"),process.env.NODE_ENV!=="production"&&(oh.propTypes={autoFocus:o.bool,calendars:o.oneOf([1,2,3]),className:o.string,closeOnSelect:o.bool,currentMonthCalendarPosition:o.oneOf([1,2,3]),dayOfWeekFormatter:o.func,defaultRangePosition:o.oneOf(["end","start"]),defaultValue:o.arrayOf(o.object),desktopModeMediaQuery:o.string,disableAutoMonthSwitching:o.bool,disabled:o.bool,disableDragEditing:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Ft,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onRangePositionChange:o.func,onSelectedSectionsChange:o.func,open:o.bool,rangePosition:o.oneOf(["end","start"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.oneOfType([o.arrayOf(o.object),o.object]),renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.arrayOf(o.object),viewRenderers:o.shape({day:o.func})});const yse=({label:e,initialValue:t,value:n,setValue:r,calendars:s,disabled:i,white:a,fullWidth:l})=>{const{format:c,rangeShortcut:u}=ge.useContext(Br),d=No(),p=oi({...d,palette:{...d.palette,primary:{main:"#9D9A95"}}});return v.jsx(S1,{theme:p,children:v.jsx(oh,{label:e,defaultValue:t,value:n,onChange:h=>r(h),disabled:i,format:c,calendars:s,slotProps:{shortcuts:{items:u},textField:{variant:"outlined",size:"small",fullWidth:l,color:"gr-yellow",focused:!0,sx:{"& .MuiInputLabel-root":{color:a?"black !important":"white !important"},"& .MuiInputLabel-root.Mui-focused":{color:a?"black !important":"white !important"},"& .MuiGrid-root":{marginBottom:"0px !important"}},slotProps:{input:{sx:{borderRadius:"16px",color:a?"black !important":"white !important","& .MuiIconButton-root .MuiSvgIcon-root":{color:a?"black !important":"white !important"}}}}},popper:{sx:{"& .MuiChip-root":{bgcolor:h=>a?h.palette["gr-grey"].light:h.palette["gr-grey"].main},"& .MuiChip-label":{color:a?"black !important":"white !important"},"& .MuiChip-root:hover":{bgcolor:h=>h.palette["gr-grey"].dark},"& .MuiDayCalendar-weekDayLabel":{color:h=>a?h.palette["gr-base-dark"].main:"white !important"},"& .MuiPickersCalendarHeader-label":{color:a?"black !important":"white !important"},"& .MuiYearCalendar-button":{color:h=>h.palette["gr-base-dark"].main},"& .MuiButtonBase-root":{color:h=>a?h.palette["gr-base-dark"].main:"white !important"},"& .MuiPickersArrowSwitcher-root":{color:h=>h.palette["gr-base-dark"].main},"& .Mui-selected, & .MuiPickersDay-root.Mui-selected":{bgcolor:h=>`${h.palette["gr-yellow"].main} !important`,color:a?"black !important":"white !important"},"& .MuiYearCalendar-yearButton.Mui-selected":{bgcolor:h=>`${h.palette["gr-yellow"].main} !important`,color:"black !important"},"& .MuiPaper-root":{bgcolor:h=>a?h.palette["gr-grey"].light:"black !important",borderRadius:"20px"},"& .MuiPickersDay-root":{color:h=>h.palette["gr-base-dark"].main}}}}})})},vse=({label:e,initialValue:t,value:n,setValue:r,disabled:s,white:i,fullWidth:a})=>{const{format:l,singleShortcut:c}=ge.useContext(Br);return v.jsx(v.Fragment,{children:v.jsx(ef,{label:e,defaultValue:t,value:n,onChange:u=>r(u),disabled:s,format:l,slotProps:{shortcuts:{items:c},textField:{variant:"outlined",size:"small",fullWidth:a,color:"gr-yellow",focused:!0,slotProps:{input:{sx:{borderRadius:"16px",color:i?"black !important":"white !important","& .MuiIconButton-root .MuiSvgIcon-root":{color:i?"black !important":"white !important"}}}}},popper:{sx:{"& .MuiChip-root":{bgcolor:u=>u.palette["gr-grey"].light},"& .MuiChip-root:hover":{bgcolor:u=>u.palette["gr-grey"].dark},"& .MuiDayCalendar-weekDayLabel":{color:u=>u.palette["gr-base-dark"].main},"& .MuiYearCalendar-button":{color:u=>u.palette["gr-base-dark"].main},"& .MuiButtonBase-root":{color:u=>u.palette["gr-base-dark"].main},"& .Mui-selected, & .MuiPickersDay-root.Mui-selected":{bgcolor:u=>`${u.palette["gr-yellow"].main} !important`,color:"black !important"},"& .MuiYearCalendar-yearButton.Mui-selected":{bgcolor:u=>`${u.palette["gr-yellow"].main} !important`,color:"black !important"},"& .MuiPaper-root":{bgcolor:i?"white":"black",borderRadius:"20px"},"& .MuiPickersDay-root":{color:u=>u.palette["gr-base-dark"].main}}}}})})},Cse=e=>{const{name:t={title:"",ncolumn:0},fields:n=[],actions:r={ncolumn:1,buttons:[]}}=e,s=(i,a)=>{switch(i.element){case"SelectField":return v.jsx(ot,{size:i.ncolumn,children:v.jsx(Cre,{label:i.label,placeholder:i.placeholder,value:i.value,setValue:i.setValue,values:i.values,disabled:i.disable,fullWidth:!0,white:!1})},a);case"MultiSelectField":return v.jsx(ot,{size:i.ncolumn,children:v.jsx(wre,{label:i.label,placeholder:i.placeholder,value:i.value,setValue:i.setValue,values:i.values,disabled:i.disable,fullWidth:!0,white:!1})},a);case"DateRangeField":return v.jsx(ot,{size:i.ncolumn,children:v.jsx(Fre,{label:i.label,value:i.value,setValue:i.setValue,disabled:i.disable,fullWidth:!0})},a);case"DatePickerField":return v.jsx(v.Fragment,{children:v.jsx(ot,{size:i.ncolumn,children:v.jsx(vse,{label:i.label,initialValue:i.initialValue,value:i.value,setValue:i.setValue,disabled:i.disable,fullWidth:!0,white:!1})},a)});case"DateRangePickerField":return v.jsx(v.Fragment,{children:v.jsx(ot,{size:i.ncolumn,children:v.jsx(yse,{label:i.label,initialValue:i.initialValue,value:i.value,setValue:i.setValue,calendars:i.calendars,disabled:i.disable,fullWidth:!0,white:!1})},a)});default:return v.jsx(v.Fragment,{})}};return v.jsx(v.Fragment,{children:v.jsx(Gn,{sx:{bgcolor:i=>i.palette.background.paper,height:"70px",borderTopLeftRadius:"20px",borderTopRightRadius:"20px",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",padding:"20px",gap:"20px"},children:v.jsxs(ot,{container:!0,spacing:2,sx:{flexGrow:1},children:[t.title&&v.jsx(ot,{size:t.ncolumn,sx:{display:"flex",alignItems:"center"},children:v.jsx(Ot,{variant:"h4",color:"white",children:t.title})}),n.map((i,a)=>s(i,a)),r&&r.buttons.length>0&&v.jsx(ot,{size:r.ncolumn,sx:{display:"flex",justifyContent:"flex-end"},children:v.jsx(Iw,{variant:"outlined",fullWidth:!0,sx:{"& .MuiButton-root":{borderRadius:"20px"}},children:r.buttons.map((i,a)=>v.jsx(Vn,{variant:i.variant,color:"gr-yellow",sx:i.sx,onClick:i.onClick,disableElevation:!0,children:i.icon?i.icon:v.jsx("span",{style:{marginTop:"2px"},children:i.text})},a))})})]})})})},wse=mt(v.jsx("path",{d:"M4.25 5.61C6.57 8.59 10 13 10 13v5c0 1.1.9 2 2 2s2-.9 2-2v-5s3.43-4.41 5.75-7.39c.51-.66.04-1.61-.8-1.61H5.04c-.83 0-1.3.95-.79 1.61"}),"FilterAltRounded"),Sse=e=>v.jsxs(v.Fragment,{children:[v.jsx(EM,{...e,apiRef:e.apiRef,showToolbar:e.toolbar!==void 0,headerFilters:e.headerFilters,slots:{toolbar:Cse,headerFilterMenu:null},slotProps:{toolbar:{...e.toolbar},baseTextField:{color:e.toolbar!==void 0?"primary":"error",slotProps:{input:{endAdornment:v.jsx(Ma,{sx:{color:t=>e.toolbar!==void 0?t.palette["gr-grey"].main:t.palette["gr-grey"].light},position:"end",children:v.jsx(wse,{})})}}}},sx:{border:"none",color:"black",borderTopLeftRadius:e.toolbar?"0px":"20px !important",borderTopRightRadius:e.toolbar?"0px":"20px !important","--DataGrid-t-color-background-base":"transparent !important","& .MuiDataGrid-columnHeaderCheckbox":{backgroundColor:"white"},"& .MuiDataGrid-filterForm .MuiInputBase-root":{backgroundColor:"#F3F2F2"},"& .MuiDataGrid-columnHeader":{backgroundColor:e.toolbar?"white":"transparent",color:e.toolbar?"black":"white",borderBottom:e.headerFilters?"none !important":t=>`${t.palette.primary.main} 1px solid !important`},"& .MuiDataGrid-headerFilterRow":{bgcolor:e.toolbar?"white !important":"transparent !important",borderBottom:t=>`${t.palette.primary.main} 1px solid !important`},"& .MuiDataGrid-virtualScroller":{bgcolor:"white",borderBottomLeftRadius:"20px",borderBottomRightRadius:"20px"},"& .MuiDataGrid-columnHeaderTitleContainer":{"& .MuiCheckbox-root":{color:t=>e.toolbar!==void 0?t.palette.background.paper:t.palette["gr-grey"].light}},"& .MuiDataGrid-iconButtonContainer":{"& .MuiIconButton-root":{color:t=>e.toolbar!==void 0?t.palette["gr-grey"].main:t.palette["gr-grey"].light}},"& .MuiDataGrid-checkboxInput":{color:t=>t.palette.background.paper},"& .MuiDataGrid-footerContainer":{borderTop:"none",fontWeight:"500",display:"flex",justifyContent:"center",alignItems:"center"},"& .MuiIconButton-root":{color:t=>t.palette.background.paper,"&.Mui-disabled":{color:"#888",backgroundColor:"#eee",opacity:.7}},"& .MuiDataGrid-row":{minHeight:64,maxHeight:"none"},"& .MuiDataGrid-cell":{minHeight:64,maxHeight:"none",display:"flex",alignItems:"center"},"& .MuiDataGrid-cell--editing":{backgroundColor:"white !important",color:"black !important"},"& .MuiDataGrid-cell--editing input":{color:"black !important",backgroundColor:"white !important"}},loading:e.loading,checkboxSelection:e.checkboxSelection,pagination:!0,autoPageSize:!0,paginationModel:e.paginationModel,onPaginationModelChange:e.setPaginationModel,onRowSelectionModelChange:e.setRowSelectionModel,rowSelectionModel:e.rowSelectionModel,disableRowSelectionOnClick:e.disableRowSelectionOnClick,getRowHeight:()=>"auto",onCellEditStop:e.onCellEditStop}),v.jsx(vre,{contextMenu:e.contextMenu,setContextMenu:e.setContextMenu,options:e.options,checked:e.rowSelectionModel})]}),xse=()=>{const e=yre(),[t,n]=ge.useState(!1),[r,s]=ge.useState([]),[i,a]=ge.useState({pageSize:25,page:0}),[l,c]=ge.useState({type:"include",ids:new Set}),[u,d]=ge.useState(null);return{apiRef:e,rows:r,setRows:s,loading:t,setLoading:n,paginationModel:i,setPaginationModel:a,rowSelectionModel:l,setRowSelectionModel:c,contextMenu:u,setContextMenu:d}},NM=mt(v.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel"),Pse=mt(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),Ese=mt(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),Tse=mt(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),Ise=()=>{const{enqueueSnackbar:e}=a_(),t=r=>{K2(r)};return{showAlert:(r,s)=>e(s,{variant:r,content:(a,l)=>v.jsx(Sg,{sx:{borderRadius:"24px",bgcolor:"#fff",boxShadow:3,color:c=>c.palette["gr-base-dark"].main},severity:r,iconMapping:{error:v.jsx(NM,{}),info:v.jsx(Tse,{}),success:v.jsx(Pse,{}),warning:v.jsx(Ese,{}),default:v.jsx(Ca,{color:"gr-blue",size:20})},onClose:()=>t(a),children:l},a)}),closeAlert:t}};var Eu={exports:{}},J0={},rh={exports:{}},$M;function Ose(){if($M)return rh.exports;$M=1;function e(n){var r,s,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var a=n.length;for(r=0;r<a;r++)n[r]&&(s=e(n[r]))&&(i&&(i+=" "),i+=s)}else for(s in n)n[s]&&(i&&(i+=" "),i+=s);return i}function t(){for(var n,r,s=0,i="",a=arguments.length;s<a;s++)(n=arguments[s])&&(r=e(n))&&(i&&(i+=" "),i+=r);return i}return rh.exports=t,rh.exports.clsx=t,rh.exports}var Nn={},qs={},RM;function sh(){if(RM)return qs;RM=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.dontSetMe=s,qs.findInArray=e,qs.int=r,qs.isFunction=t,qs.isNum=n;function e(i,a){for(let l=0,c=i.length;l<c;l++)if(a.apply(a,[i[l],l,i]))return i[l]}function t(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Function]"}function n(i){return typeof i=="number"&&!isNaN(i)}function r(i){return parseInt(i,10)}function s(i,a,l){if(i[a])return new Error(`Invalid prop ${a} passed to ${l} - do not set this, set it on the child.`)}return qs}var Ys={},LM;function Mse(){if(LM)return Ys;LM=1,Object.defineProperty(Ys,"__esModule",{value:!0}),Ys.browserPrefixToKey=n,Ys.browserPrefixToStyle=r,Ys.default=void 0,Ys.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const a=window.document?.documentElement?.style;if(!a||i in a)return"";for(let l=0;l<e.length;l++)if(n(i,e[l])in a)return e[l];return""}function n(i,a){return a?`${a}${s(i)}`:i}function r(i,a){return a?`-${a.toLowerCase()}-${i}`:i}function s(i){let a="",l=!0;for(let c=0;c<i.length;c++)l?(a+=i[c].toUpperCase(),l=!1):i[c]==="-"?l=!0:a+=i[c];return a}return Ys.default=t(),Ys}var AM;function ev(){if(AM)return Nn;AM=1,Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.addClassName=P,Nn.addEvent=a,Nn.addUserSelectStyles=w,Nn.createCSSTransform=g,Nn.createSVGTransform=y,Nn.getTouch=b,Nn.getTouchIdentifier=C,Nn.getTranslation=m,Nn.innerHeight=d,Nn.innerWidth=p,Nn.matchesSelector=s,Nn.matchesSelectorAndParentsTo=i,Nn.offsetXYFromParent=h,Nn.outerHeight=c,Nn.outerWidth=u,Nn.removeClassName=k,Nn.removeEvent=l,Nn.scheduleRemoveUserSelectStyles=S;var e=sh(),t=n(Mse());function n(M,I){if(typeof WeakMap=="function")var O=new WeakMap,F=new WeakMap;return(n=function(D,T){if(!T&&D&&D.__esModule)return D;var L,V,$={__proto__:null,default:D};if(D===null||typeof D!="object"&&typeof D!="function")return $;if(L=T?F:O){if(L.has(D))return L.get(D);L.set(D,$)}for(const N in D)N!=="default"&&{}.hasOwnProperty.call(D,N)&&((V=(L=Object.defineProperty)&&Object.getOwnPropertyDescriptor(D,N))&&(V.get||V.set)?L($,N,V):$[N]=D[N]);return $})(M,I)}let r="";function s(M,I){return r||(r=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(O){return(0,e.isFunction)(M[O])})),(0,e.isFunction)(M[r])?M[r](I):!1}function i(M,I,O){let F=M;do{if(s(F,I))return!0;if(F===O)return!1;F=F.parentNode}while(F);return!1}function a(M,I,O,F){if(!M)return;const D={capture:!0,...F};M.addEventListener?M.addEventListener(I,O,D):M.attachEvent?M.attachEvent("on"+I,O):M["on"+I]=O}function l(M,I,O,F){if(!M)return;const D={capture:!0,...F};M.removeEventListener?M.removeEventListener(I,O,D):M.detachEvent?M.detachEvent("on"+I,O):M["on"+I]=null}function c(M){let I=M.clientHeight;const O=M.ownerDocument.defaultView.getComputedStyle(M);return I+=(0,e.int)(O.borderTopWidth),I+=(0,e.int)(O.borderBottomWidth),I}function u(M){let I=M.clientWidth;const O=M.ownerDocument.defaultView.getComputedStyle(M);return I+=(0,e.int)(O.borderLeftWidth),I+=(0,e.int)(O.borderRightWidth),I}function d(M){let I=M.clientHeight;const O=M.ownerDocument.defaultView.getComputedStyle(M);return I-=(0,e.int)(O.paddingTop),I-=(0,e.int)(O.paddingBottom),I}function p(M){let I=M.clientWidth;const O=M.ownerDocument.defaultView.getComputedStyle(M);return I-=(0,e.int)(O.paddingLeft),I-=(0,e.int)(O.paddingRight),I}function h(M,I,O){const D=I===I.ownerDocument.body?{left:0,top:0}:I.getBoundingClientRect(),T=(M.clientX+I.scrollLeft-D.left)/O,L=(M.clientY+I.scrollTop-D.top)/O;return{x:T,y:L}}function g(M,I){const O=m(M,I,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:O}}function y(M,I){return m(M,I,"")}function m(M,I,O){let{x:F,y:D}=M,T=`translate(${F}${O},${D}${O})`;if(I){const L=`${typeof I.x=="string"?I.x:I.x+O}`,V=`${typeof I.y=="string"?I.y:I.y+O}`;T=`translate(${L}, ${V})`+T}return T}function b(M,I){return M.targetTouches&&(0,e.findInArray)(M.targetTouches,O=>I===O.identifier)||M.changedTouches&&(0,e.findInArray)(M.changedTouches,O=>I===O.identifier)}function C(M){if(M.targetTouches&&M.targetTouches[0])return M.targetTouches[0].identifier;if(M.changedTouches&&M.changedTouches[0])return M.changedTouches[0].identifier}function w(M){if(!M)return;let I=M.getElementById("react-draggable-style-el");I||(I=M.createElement("style"),I.type="text/css",I.id="react-draggable-style-el",I.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
527
527
  `,I.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
528
528
  `,M.getElementsByTagName("head")[0].appendChild(I)),M.body&&P(M.body,"react-draggable-transparent-selection")}function S(M){window.requestAnimationFrame?window.requestAnimationFrame(()=>{E(M)}):E(M)}function E(M){if(M)try{if(M.body&&k(M.body,"react-draggable-transparent-selection"),M.selection)M.selection.empty();else{const I=(M.defaultView||window).getSelection();I&&I.type!=="Caret"&&I.removeAllRanges()}}catch{}}function P(M,I){M.classList?M.classList.add(I):M.className.match(new RegExp(`(?:^|\\s)${I}(?!\\S)`))||(M.className+=` ${I}`)}function k(M,I){M.classList?M.classList.remove(I):M.className=M.className.replace(new RegExp(`(?:^|\\s)${I}(?!\\S)`,"g"),"")}return Nn}var Yr={},VM;function BM(){if(VM)return Yr;VM=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.canDragX=s,Yr.canDragY=i,Yr.createCoreData=l,Yr.createDraggableData=c,Yr.getBoundPosition=n,Yr.getControlPosition=a,Yr.snapToGrid=r;var e=sh(),t=ev();function n(p,h,g){if(!p.props.bounds)return[h,g];let{bounds:y}=p.props;y=typeof y=="string"?y:u(y);const m=d(p);if(typeof y=="string"){const{ownerDocument:b}=m,C=b.defaultView;let w;if(y==="parent"?w=m.parentNode:w=m.getRootNode().querySelector(y),!(w instanceof C.HTMLElement))throw new Error('Bounds selector "'+y+'" could not find an element.');const S=w,E=C.getComputedStyle(m),P=C.getComputedStyle(S);y={left:-m.offsetLeft+(0,e.int)(P.paddingLeft)+(0,e.int)(E.marginLeft),top:-m.offsetTop+(0,e.int)(P.paddingTop)+(0,e.int)(E.marginTop),right:(0,t.innerWidth)(S)-(0,t.outerWidth)(m)-m.offsetLeft+(0,e.int)(P.paddingRight)-(0,e.int)(E.marginRight),bottom:(0,t.innerHeight)(S)-(0,t.outerHeight)(m)-m.offsetTop+(0,e.int)(P.paddingBottom)-(0,e.int)(E.marginBottom)}}return(0,e.isNum)(y.right)&&(h=Math.min(h,y.right)),(0,e.isNum)(y.bottom)&&(g=Math.min(g,y.bottom)),(0,e.isNum)(y.left)&&(h=Math.max(h,y.left)),(0,e.isNum)(y.top)&&(g=Math.max(g,y.top)),[h,g]}function r(p,h,g){const y=Math.round(h/p[0])*p[0],m=Math.round(g/p[1])*p[1];return[y,m]}function s(p){return p.props.axis==="both"||p.props.axis==="x"}function i(p){return p.props.axis==="both"||p.props.axis==="y"}function a(p,h,g){const y=typeof h=="number"?(0,t.getTouch)(p,h):null;if(typeof h=="number"&&!y)return null;const m=d(g),b=g.props.offsetParent||m.offsetParent||m.ownerDocument.body;return(0,t.offsetXYFromParent)(y||p,b,g.props.scale)}function l(p,h,g){const y=!(0,e.isNum)(p.lastX),m=d(p);return y?{node:m,deltaX:0,deltaY:0,lastX:h,lastY:g,x:h,y:g}:{node:m,deltaX:h-p.lastX,deltaY:g-p.lastY,lastX:p.lastX,lastY:p.lastY,x:h,y:g}}function c(p,h){const g=p.props.scale;return{node:h.node,x:p.state.x+h.deltaX/g,y:p.state.y+h.deltaY/g,deltaX:h.deltaX/g,deltaY:h.deltaY/g,lastX:p.state.x,lastY:p.state.y}}function u(p){return{left:p.left,top:p.top,right:p.right,bottom:p.bottom}}function d(p){const h=p.findDOMNode();if(!h)throw new Error("<DraggableCore>: Unmounted during event!");return h}return Yr}var Tu={},ih={},_M;function HM(){if(_M)return ih;_M=1,Object.defineProperty(ih,"__esModule",{value:!0}),ih.default=e;function e(){}return ih}var zM;function kse(){if(zM)return Tu;zM=1,Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.default=void 0;var e=c(ge),t=l(_h()),n=l(bs),r=ev(),s=BM(),i=sh(),a=l(HM());function l(m){return m&&m.__esModule?m:{default:m}}function c(m,b){if(typeof WeakMap=="function")var C=new WeakMap,w=new WeakMap;return(c=function(S,E){if(!E&&S&&S.__esModule)return S;var P,k,M={__proto__:null,default:S};if(S===null||typeof S!="object"&&typeof S!="function")return M;if(P=E?w:C){if(P.has(S))return P.get(S);P.set(S,M)}for(const I in S)I!=="default"&&{}.hasOwnProperty.call(S,I)&&((k=(P=Object.defineProperty)&&Object.getOwnPropertyDescriptor(S,I))&&(k.get||k.set)?P(M,I,k):M[I]=S[I]);return M})(m,b)}function u(m,b,C){return(b=d(b))in m?Object.defineProperty(m,b,{value:C,enumerable:!0,configurable:!0,writable:!0}):m[b]=C,m}function d(m){var b=p(m,"string");return typeof b=="symbol"?b:b+""}function p(m,b){if(typeof m!="object"||!m)return m;var C=m[Symbol.toPrimitive];if(C!==void 0){var w=C.call(m,b);if(typeof w!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(m)}const h={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let g=h.mouse,y=class extends e.Component{constructor(){super(...arguments),u(this,"dragging",!1),u(this,"lastX",NaN),u(this,"lastY",NaN),u(this,"touchIdentifier",null),u(this,"mounted",!1),u(this,"handleDragStart",b=>{if(this.props.onMouseDown(b),!this.props.allowAnyClick&&typeof b.button=="number"&&b.button!==0)return!1;const C=this.findDOMNode();if(!C||!C.ownerDocument||!C.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:w}=C;if(this.props.disabled||!(b.target instanceof w.defaultView.Node)||this.props.handle&&!(0,r.matchesSelectorAndParentsTo)(b.target,this.props.handle,C)||this.props.cancel&&(0,r.matchesSelectorAndParentsTo)(b.target,this.props.cancel,C))return;b.type==="touchstart"&&!this.props.allowMobileScroll&&b.preventDefault();const S=(0,r.getTouchIdentifier)(b);this.touchIdentifier=S;const E=(0,s.getControlPosition)(b,S,this);if(E==null)return;const{x:P,y:k}=E,M=(0,s.createCoreData)(this,P,k);(0,a.default)("DraggableCore: handleDragStart: %j",M),(0,a.default)("calling",this.props.onStart),!(this.props.onStart(b,M)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,r.addUserSelectStyles)(w),this.dragging=!0,this.lastX=P,this.lastY=k,(0,r.addEvent)(w,g.move,this.handleDrag),(0,r.addEvent)(w,g.stop,this.handleDragStop))}),u(this,"handleDrag",b=>{const C=(0,s.getControlPosition)(b,this.touchIdentifier,this);if(C==null)return;let{x:w,y:S}=C;if(Array.isArray(this.props.grid)){let k=w-this.lastX,M=S-this.lastY;if([k,M]=(0,s.snapToGrid)(this.props.grid,k,M),!k&&!M)return;w=this.lastX+k,S=this.lastY+M}const E=(0,s.createCoreData)(this,w,S);if((0,a.default)("DraggableCore: handleDrag: %j",E),this.props.onDrag(b,E)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const M=document.createEvent("MouseEvents");M.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(M)}return}this.lastX=w,this.lastY=S}),u(this,"handleDragStop",b=>{if(!this.dragging)return;const C=(0,s.getControlPosition)(b,this.touchIdentifier,this);if(C==null)return;let{x:w,y:S}=C;if(Array.isArray(this.props.grid)){let M=w-this.lastX||0,I=S-this.lastY||0;[M,I]=(0,s.snapToGrid)(this.props.grid,M,I),w=this.lastX+M,S=this.lastY+I}const E=(0,s.createCoreData)(this,w,S);if(this.props.onStop(b,E)===!1||this.mounted===!1)return!1;const k=this.findDOMNode();k&&this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)(k.ownerDocument),(0,a.default)("DraggableCore: handleDragStop: %j",E),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,k&&((0,a.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)(k.ownerDocument,g.move,this.handleDrag),(0,r.removeEvent)(k.ownerDocument,g.stop,this.handleDragStop))}),u(this,"onMouseDown",b=>(g=h.mouse,this.handleDragStart(b))),u(this,"onMouseUp",b=>(g=h.mouse,this.handleDragStop(b))),u(this,"onTouchStart",b=>(g=h.touch,this.handleDragStart(b))),u(this,"onTouchEnd",b=>(g=h.touch,this.handleDragStop(b)))}componentDidMount(){this.mounted=!0;const b=this.findDOMNode();b&&(0,r.addEvent)(b,h.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const b=this.findDOMNode();if(b){const{ownerDocument:C}=b;(0,r.removeEvent)(C,h.mouse.move,this.handleDrag),(0,r.removeEvent)(C,h.touch.move,this.handleDrag),(0,r.removeEvent)(C,h.mouse.stop,this.handleDragStop),(0,r.removeEvent)(C,h.touch.stop,this.handleDragStop),(0,r.removeEvent)(b,h.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)(C)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Tu.default=y,u(y,"displayName","DraggableCore"),u(y,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(m,b){if(m[b]&&m[b].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),u(y,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Tu}var jM;function Dse(){return jM||(jM=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var t=p(ge),n=d(_h()),r=d(bs),s=Ose(),i=ev(),a=BM(),l=sh(),c=d(kse()),u=d(HM());function d(C){return C&&C.__esModule?C:{default:C}}function p(C,w){if(typeof WeakMap=="function")var S=new WeakMap,E=new WeakMap;return(p=function(P,k){if(!k&&P&&P.__esModule)return P;var M,I,O={__proto__:null,default:P};if(P===null||typeof P!="object"&&typeof P!="function")return O;if(M=k?E:S){if(M.has(P))return M.get(P);M.set(P,O)}for(const F in P)F!=="default"&&{}.hasOwnProperty.call(P,F)&&((I=(M=Object.defineProperty)&&Object.getOwnPropertyDescriptor(P,F))&&(I.get||I.set)?M(O,F,I):O[F]=P[F]);return O})(C,w)}function h(){return h=Object.assign?Object.assign.bind():function(C){for(var w=1;w<arguments.length;w++){var S=arguments[w];for(var E in S)({}).hasOwnProperty.call(S,E)&&(C[E]=S[E])}return C},h.apply(null,arguments)}function g(C,w,S){return(w=y(w))in C?Object.defineProperty(C,w,{value:S,enumerable:!0,configurable:!0,writable:!0}):C[w]=S,C}function y(C){var w=m(C,"string");return typeof w=="symbol"?w:w+""}function m(C,w){if(typeof C!="object"||!C)return C;var S=C[Symbol.toPrimitive];if(S!==void 0){var E=S.call(C,w);if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(w==="string"?String:Number)(C)}class b extends t.Component{static getDerivedStateFromProps(w,S){let{position:E}=w,{prevPropsPosition:P}=S;return E&&(!P||E.x!==P.x||E.y!==P.y)?((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:E,prevPropsPosition:P}),{x:E.x,y:E.y,prevPropsPosition:{...E}}):null}constructor(w){super(w),g(this,"onDragStart",(S,E)=>{if((0,u.default)("Draggable: onDragStart: %j",E),this.props.onStart(S,(0,a.createDraggableData)(this,E))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),g(this,"onDrag",(S,E)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",E);const P=(0,a.createDraggableData)(this,E),k={x:P.x,y:P.y,slackX:0,slackY:0};if(this.props.bounds){const{x:I,y:O}=k;k.x+=this.state.slackX,k.y+=this.state.slackY;const[F,D]=(0,a.getBoundPosition)(this,k.x,k.y);k.x=F,k.y=D,k.slackX=this.state.slackX+(I-k.x),k.slackY=this.state.slackY+(O-k.y),P.x=k.x,P.y=k.y,P.deltaX=k.x-this.state.x,P.deltaY=k.y-this.state.y}if(this.props.onDrag(S,P)===!1)return!1;this.setState(k)}),g(this,"onDragStop",(S,E)=>{if(!this.state.dragging||this.props.onStop(S,(0,a.createDraggableData)(this,E))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",E);const k={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:I,y:O}=this.props.position;k.x=I,k.y=O}this.setState(k)}),this.state={dragging:!1,dragged:!1,x:w.position?w.position.x:w.defaultPosition.x,y:w.position?w.position.y:w.defaultPosition.y,prevPropsPosition:{...w.position},slackX:0,slackY:0,isElementSVG:!1},w.position&&!(w.onDrag||w.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??r.default.findDOMNode(this)}render(){const{axis:w,bounds:S,children:E,defaultPosition:P,defaultClassName:k,defaultClassNameDragging:M,defaultClassNameDragged:I,position:O,positionOffset:F,scale:D,...T}=this.props;let L={},V=null;const N=!!!O||this.state.dragging,A=O||P,_={x:(0,a.canDragX)(this)&&N?this.state.x:A.x,y:(0,a.canDragY)(this)&&N?this.state.y:A.y};this.state.isElementSVG?V=(0,i.createSVGTransform)(_,F):L=(0,i.createCSSTransform)(_,F);const H=(0,s.clsx)(E.props.className||"",k,{[M]:this.state.dragging,[I]:this.state.dragged});return t.createElement(c.default,h({},T,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(E),{className:H,style:{...E.props.style,...L},transform:V}))}}e.default=b,g(b,"displayName","Draggable"),g(b,"propTypes",{...c.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),g(b,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(J0)),J0}var GM;function Fse(){if(GM)return Eu.exports;GM=1;const{default:e,DraggableCore:t}=Dse();return Eu.exports=e,Eu.exports.default=e,Eu.exports.DraggableCore=t,Eu.exports}var Nse=Fse();const $se=ys(Nse),Rse=mt(v.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),Lse=mt(v.jsx("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"}),"Event"),Ase=({label:e,initialValue:t,value:n,setValue:r,disabled:s,fullWidth:i,white:a})=>{const{format:l}=ge.useContext(Br);return v.jsx(v.Fragment,{children:v.jsx(Cb,{label:e,defaultValue:t,value:n,onChange:c=>{r(c)},InputProps:{sx:{borderRadius:"16px",color:a?"black !important":"white !important"}},size:"small",color:"gr-yellow",slotProps:{textField:{InputLabelProps:{sx:{color:a?"black !important":"white !important"}}}},focused:!0,format:l,disabled:s,fullWidth:i,endAdornment:v.jsx(Ma,{position:"end",sx:{color:a?"black":"white"},children:v.jsx(Lse,{})})})})},Vse=mt(v.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),Bse=({label:e,placeholder:t,values:n,value:r,setValue:s,white:i})=>{const[a,l]=ge.useState(!1);return v.jsx(v.Fragment,{children:v.jsx(Ng,{multiple:!0,options:n,getOptionLabel:c=>c.label,value:n.filter(c=>r.includes(c.value)),onChange:(c,u)=>{s(u.map(d=>d.value))},onOpen:()=>l(!0),onClose:()=>l(!1),renderInput:c=>v.jsx(Fs,{...c,variant:"outlined",label:e,placeholder:t,sx:{backgroundColor:u=>i?"white":u.palette["gr-base-dark"].main,borderTopLeftRadius:"18px",borderTopRightRadius:"18px",borderBottomLeftRadius:a?"0px":"18px",borderBottomRightRadius:a?"0px":"18px",color:i?"black !important":"white !important","& .MuiChip-root":{maxWidth:"100px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& .MuiAutocomplete-tag":{maxHeight:"32px",overflow:"hidden",display:"inline-flex",flexWrap:"nowrap"},"& .MuiAutocomplete-inputRoot":{flexWrap:"nowrap"}},slotProps:{inputLabel:{sx:{color:i?"black !important":"white !important"}}},color:"gr-yellow",focused:!0}),popupIcon:v.jsx(Vse,{sx:{color:i?"black":"white"}}),slotProps:{paper:{sx:{maxHeight:"500px",borderBottomLeftRadius:"32px",borderBottomRightRadius:"32px",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",backgroundColor:c=>i?"white":c.palette["gr-base-dark"].main,color:i?"black":"white"}},chip:{sx:{bgcolor:c=>i?`${c.palette["gr-grey"].light} !important`:`${c.palette["gr-grey"].main} !important`,color:i?"black":"white"},size:"small",deleteIcon:v.jsx(NM,{sx:{color:i?"black !important":"white !important"}})}},limitTags:2,size:"small"})})},_se=({label:e,value:t,setValue:n,values:r,placeholder:s,disabled:i,fullWidth:a,white:l})=>{const c=u=>v.jsx(z0,{...u,sx:{color:l?"black !important":"white !important",...u.sx}});return v.jsx(v.Fragment,{children:v.jsxs(fi,{fullWidth:a,focused:!0,children:[v.jsx(gi,{id:`filter-table-label-${e}`,sx:{color:l?"black":"white",position:"absolute","&.Mui-focused":{color:l?"black":"white"},'&[data-shrink="false"]':{transform:"translateY(12px) translateX(12px)"}},children:e}),v.jsxs(Ds,{labelId:`filter-table-label-${e}`,id:`filter-${e}`,value:t,label:e,onChange:u=>n(u.target.value),color:"gr-yellow",sx:{color:l?"black":"white"},IconComponent:c,MenuProps:{PaperProps:{style:{maxHeight:"500px",borderBottomLeftRadius:"32px",borderBottomRightRadius:"32px",borderTopLeftRadius:"0px",borderTopRightRadius:"0px"}},MenuListProps:{sx:{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main,"& .MuiMenuItem-root":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main,color:l?"black":"white","&:hover":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main},"&.Mui-selected":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main},"&.Mui-focusVisible":{backgroundColor:u=>l?"white":u.palette["gr-base-dark"].main}}}}},displayEmpty:!0,disabled:i,children:[v.jsx(sr,{sx:{mt:2},disabled:!0,value:"",children:v.jsx("em",{children:s})}),r.map(u=>v.jsx(sr,{value:u.value,children:u.label},u.value))]})]})})};function WM(e){return It}function Hse(e){return Oe("MuiSimpleTreeView",e)}Me("MuiSimpleTreeView",["root","item","itemContent","itemGroupTransition","itemIconContainer","itemLabel","itemCheckbox"]);const UM={};function Iu(e,t){const n=f.useRef(UM);return n.current===UM&&(n.current=e(t)),n}function ah(e,t,n,r){const s=Iu(zse).current;return jse(s,e,t,n,r)&&Gse(s,[e,t,n,r]),s.callback}function zse(){return{callback:null,cleanup:null,refs:[]}}function jse(e,t,n,r,s){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==s}function Gse(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let s=0;s<t.length;s+=1){const i=t[s];if(i!=null)switch(typeof i){case"function":{const a=i(n);typeof a=="function"&&(r[s]=a);break}case"object":{i.current=n;break}}}e.cleanup=()=>{for(let s=0;s<t.length;s+=1){const i=t[s];if(i!=null)switch(typeof i){case"function":{const a=r[s];typeof a=="function"?a():i(null);break}case"object":{i.current=null;break}}}}}}}const Wse=e=>e.isPropagationStopped!==void 0,qM=()=>{const[e]=f.useState(()=>new HO),t=f.useCallback((...r)=>{const[s,i,a={}]=r;a.defaultMuiPrevented=!1,!(Wse(a)&&a.isPropagationStopped())&&e.emit(s,i,a)},[e]),n=f.useCallback((r,s)=>(e.on(r,s),()=>{e.removeListener(r,s)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};qM.params={};const YM=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};YM.params={};const Ou={treeId:wt(e=>e.id.treeId)};let KM=0;const Use=()=>(KM+=1,`mui-tree-view-${KM}`),lh=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,tv=({params:e,store:t})=>{f.useEffect(()=>{const r=t.state.id;e.id===r.providedTreeId&&r.treeId!==void 0||t.set("id",x({},r,{treeId:e.id??Use()}))},[t,e.id]);const n=Mt(t,Ou.treeId);return{getRootProps:()=>({id:n})}};tv.params={id:!0},tv.getInitialState=({id:e})=>({id:{treeId:void 0,providedTreeId:e}});const qse=[qM,YM,tv],Yse=["apiRef"],Kse=e=>{let{props:{apiRef:t},plugins:n}=e,r=re(e.props,Yse);const s=f.useMemo(()=>{const l={};return n.forEach(c=>{Object.assign(l,c.params)}),l},[n]),{forwardedProps:i,pluginParams:a}=f.useMemo(()=>{const l={},c={};Object.keys(r).forEach(d=>{const p=r[d];s[d]?l[d]=p:c[d]=p});const u=n.reduce((d,p)=>p.applyDefaultValuesToParams?p.applyDefaultValuesToParams({params:d}):d,l);return{forwardedProps:c,pluginParams:u}},[n,r,s]);return{forwardedProps:i,pluginParams:a,apiRef:t}},Xse=e=>{const{plugins:t,instance:n,publicAPI:r,store:s,rootRef:i}=e,a=f.useCallback(u=>{let d=null,p=null;const h=[],g={};t.forEach(b=>{if(!b.itemPlugin)return;const C=b.itemPlugin({props:u,rootRef:d,contentRef:p});C?.rootRef&&(d=C.rootRef),C?.contentRef&&(p=C.contentRef),C?.propsEnhancers&&(h.push(C.propsEnhancers),Object.keys(C.propsEnhancers).forEach(w=>{g[w]=!0}))});const y=b=>C=>{const w={};return h.forEach(S=>{const E=S[b];E!=null&&Object.assign(w,E(C))}),w},m=Object.fromEntries(Object.keys(g).map(b=>[b,y(b)]));return{contentRef:p,rootRef:d,propsEnhancers:m}},[t]),l=f.useCallback(({itemId:u,children:d,idAttribute:p})=>{let h=d;for(let g=t.length-1;g>=0;g-=1){const y=t[g];y.wrapItem&&(h=y.wrapItem({instance:n,itemId:u,children:h,idAttribute:p}))}return h},[t,n]),c=f.useCallback(({children:u})=>{let d=u;for(let p=t.length-1;p>=0;p-=1){const h=t[p];h.wrapRoot&&(d=h.wrapRoot({children:d}))}return d},[t]);return f.useMemo(()=>({runItemPlugins:a,wrapItem:l,wrapRoot:c,instance:n,publicAPI:r,store:s,rootRef:i}),[a,l,c,n,r,s,i])};function Zse(e){return e.current==null&&(e.current={}),e}function Qse(e){const t=f.useRef({});return e?Zse(e):t}const Jse=({plugins:e,rootRef:t,props:n})=>{const r=f.useMemo(()=>[...qse,...e],[e]),{pluginParams:s,forwardedProps:i,apiRef:a}=Kse({plugins:r,props:n}),l=Iu(()=>({})).current,c=Qse(a),u=f.useRef(null),d=ah(u,t),p=Iu(()=>{const b={};for(const C of r)C.getInitialState&&Object.assign(b,C.getInitialState(s));return new Gc(b)}).current,h=Xse({plugins:r,instance:l,publicAPI:c.current,store:p,rootRef:u}),g=[],y=b=>{const C=b({instance:l,params:s,rootRef:u,plugins:r,store:p});C.getRootProps&&g.push(C.getRootProps),C.publicAPI&&Object.assign(c.current,C.publicAPI),C.instance&&Object.assign(l,C.instance)};return r.forEach(y),{getRootProps:(b={})=>{const C=x({role:"tree"},i,b,{ref:d});return g.forEach(w=>{Object.assign(C,w(b))}),C},rootRef:d,contextValue:h}},nv=f.createContext(null);process.env.NODE_ENV!=="production"&&(nv.displayName="TreeViewContext");const Xi=()=>{const e=f.useContext(nv);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(`
529
529
  `));return e},ov=f.createContext({classes:{},slots:{},slotProps:{}});process.env.NODE_ENV!=="production"&&(ov.displayName="TreeViewStyleContext");const XM=()=>f.useContext(ov),rv={};function eie(e){const{contextValue:t,classes:n=rv,slots:r=rv,slotProps:s=rv,children:i}=e,a=f.useMemo(()=>({classes:n,slots:{collapseIcon:r.collapseIcon,expandIcon:r.expandIcon,endIcon:r.endIcon},slotProps:{collapseIcon:s.collapseIcon,expandIcon:s.expandIcon,endIcon:s.endIcon}}),[n,r.collapseIcon,r.expandIcon,r.endIcon,s.collapseIcon,s.expandIcon,s.endIcon]);return v.jsx(nv.Provider,{value:t,children:v.jsx(ov.Provider,{value:a,children:t.wrapRoot({children:i})})})}const sv=f[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],tie=sv&&sv!==f.useLayoutEffect?sv:e=>e();function Oo(e){const t=Iu(nie).current;return t.next=e,tie(t.effect),t.trampoline}function nie(){const e={next:void 0,callback:oie,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function oie(){if(process.env.NODE_ENV!=="production")throw new Error("Base UI: Cannot call an event handler while rendering.")}const Mr="__TREE_VIEW_ROOT_PARENT_ID__",ZM=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},ch=(e,t)=>{if(t==null)return!1;let n=e[t];if(!n)return!1;if(n.disabled)return!0;for(;n.parentId!=null;){if(n=e[n.parentId],!n)return!1;if(n.disabled)return!0}return!1};function QM(e){const{config:t,items:n,disabledItemsFocusable:r}=e,s={},i={},a={},l={};function c(u,d,p){const h=d??Mr,{metaLookup:g,modelLookup:y,orderedChildrenIds:m,childrenIndexes:b,itemsChildren:C}=JM({config:t,items:u,parentId:d,depth:p,isItemExpandable:(w,S)=>!!S&&S.length>0,otherItemsMetaLookup:s});Object.assign(s,g),Object.assign(i,y),a[h]=m,l[h]=b;for(const w of C)c(w.children||[],w.id,p+1)}return c(n,null,0),{disabledItemsFocusable:r,itemMetaLookup:s,itemModelLookup:i,itemOrderedChildrenIdsLookup:a,itemChildrenIndexesLookup:l,domStructure:"nested"}}function JM(e){const{config:t,items:n,parentId:r,depth:s,isItemExpandable:i,otherItemsMetaLookup:a}=e,l={},c={},u=[],d=[],p=h=>{const g=t.getItemId?t.getItemId(h):h.id;rie({id:g,parentId:r,item:h,itemMetaLookup:a,siblingsMetaLookup:l});const y=t.getItemLabel?t.getItemLabel(h):h.label;if(y==null)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(h)].join(`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scmlatam/web-ui",
3
3
  "private": false,
4
- "version": "0.1.42",
4
+ "version": "0.1.44",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -53,10 +53,10 @@
53
53
  "@types/node": "^24.9.1",
54
54
  "@types/react": "^19.2.2",
55
55
  "@types/react-dom": "^19.2.2",
56
- "@vitejs/plugin-react": "^5.0.4",
56
+ "@vitejs/plugin-react": "^5.1.0",
57
57
  "ajv": "^8.17.1",
58
58
  "eslint": "^9.38.0",
59
- "eslint-plugin-react-hooks": "^7.0.0",
59
+ "eslint-plugin-react-hooks": "^7.0.1",
60
60
  "eslint-plugin-react-refresh": "^0.4.24",
61
61
  "globals": "^16.4.0",
62
62
  "typescript": "~5.9.3",