diff --git a/dist/assets/index-UD6scbP0.js b/dist/assets/index-DE7PX89D.js similarity index 88% rename from dist/assets/index-UD6scbP0.js rename to dist/assets/index-DE7PX89D.js index 7598340..1028667 100644 --- a/dist/assets/index-UD6scbP0.js +++ b/dist/assets/index-DE7PX89D.js @@ -1 +1 @@ -import{c as L,aK as g,bl as M,j as t,bm as v,a as N}from"./ra-CVwpGQG8.js";import{l as _,a as k,b as q}from"./utils-gzf7ZwcC.js";import{F}from"./matches-CU2r43ac.js";import{J as d,a as l}from"./react-admin-utils-BNW1vhWc.js";import{ac as O,ad as S,ae as u,af as I,ag as J,ah as f,ai as A,aj as z,ak as E,al as D,am as B,an as C,ao as H,ap as $,aq as w,ar as G,as as U,at as V,au as K,av as X,aw as Q,ax as W,ay as Y,N as Z}from"./react-admin-DmM4GJ5V.js";import{i as ee,h as te}from"./mui-D5Y1ZFJf.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const n of o)if(n.type==="childList")for(const h of n.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&a(h)}).observe(document,{childList:!0,subtree:!0});function s(o){const n={};return o.integrity&&(n.integrity=o.integrity),o.referrerPolicy&&(n.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?n.credentials="include":o.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function a(o){if(o.ep)return;o.ep=!0;const n=s(o);fetch(o.href,n)}})();var y={},b=L;y.createRoot=b.createRoot,y.hydrateRoot=b.hydrateRoot;const c=(r,e={})=>{const s="/api";return e.headers=e.headers||new Headers({Accept:"application/json"}),e.headers.set("X-GripMock-RequestInternal","92b4d5a9-c74b-4ac0-989c-717f80acba22"),M(`${s}${r}`,e)},re=(r,e)=>{const s=new F(r,{keys:Object.keys(e),includeScore:!0});for(const a of Object.values(e))console.log("$fuse",a,s.search(a));return r},se=(r,e)=>{const{fuse:s}=e;return delete e.fuse,Object.keys(e).length>0&&(r=k(r,q(e))),s!==void 0&&(r=re(r,s)),r},m=(r,e,s)=>{if(e===void 0&&s===void 0)return r;const{field:a,order:o}=s;return _(se(r,e),[a],[o.toLowerCase()])},oe={getList:async(r,e)=>{const{page:s,perPage:a}=e.pagination,{field:o,order:n}=e.sort,h={sort:JSON.stringify([o,n]),range:JSON.stringify([(s-1)*a,s*a-1]),filter:JSON.stringify(e.filter)},R=`/${r}?${g.stringify(h)}`,{json:p}=await c(R);return console.log("$list",p,e),{data:m(p,e.filter,e.sort),total:p.length}},getOne:async(r,e)=>{const{json:s}=await c(`/${r}/${e.id}`);return{data:s}},getMany:async(r,e)=>{const s={filter:JSON.stringify({ids:e.ids})},a=`/${r}?${g.stringify(s)}`,{json:o}=await c(a);return{data:m(o,e.filter,e.sort)}},getManyReference:async(r,e)=>{const s=`/${r}/${e.id}/${e.target}`,{json:a}=await c(s);return{data:m(a,e.filter,e.sort),total:a.length}},create:async(r,e)=>(await c(`/${r}`,{method:"POST",body:JSON.stringify(e.data)}),{data:e.data}),update:async(r,e)=>(await c(`/${r}`,{method:"POST",body:JSON.stringify(e.data)}),{id:e.data.id,data:e.data}),updateMany:async(r,e)=>(await c(`/${r}`,{method:"POST",body:JSON.stringify(e.data)}),{data:[]}),delete:async(r,e)=>{const s=`/${r}/batchDelete`;return await c(s,{method:"POST",body:JSON.stringify([e.id])}),{data:[]}},deleteMany:async(r,e)=>{const s=`/${r}/batchDelete`;return await c(s,{method:"POST",body:JSON.stringify(e.ids)}),{data:[]}}},ae=(r,e)=>{const s=document.createElement("a");s.setAttribute("href",encodeURI(`data:application/json;charset=utf-8,${r}`)),s.setAttribute("download",e),s.click()},ne=r=>{ae(JSON.stringify(r,null," "),"export.json")},ie=()=>t.jsx(O,{exporter:ne,children:t.jsxs(S,{rowClick:"show",children:[t.jsx(u,{source:"id",sortable:!0}),t.jsx(u,{source:"service",sortable:!0}),t.jsx(u,{source:"method",sortable:!0}),t.jsx(d,{source:"headers",sortable:!1,reactJsonOptions:{theme:i()}}),t.jsx(d,{source:"input",sortable:!1,reactJsonOptions:{theme:i()}}),t.jsx(d,{source:"output",sortable:!1,reactJsonOptions:{theme:i()}})]})}),ce=()=>t.jsx(I,{children:t.jsxs(J,{children:[t.jsx(f,{source:"service"}),t.jsx(f,{source:"method"}),t.jsx(l,{source:"headers",reactJsonOptions:{theme:i()}}),t.jsx(l,{source:"input",reactJsonOptions:{theme:i()}}),t.jsx(l,{source:"output",reactJsonOptions:{theme:i()}})]})}),ue=()=>t.jsx(A,{children:t.jsxs(J,{children:[t.jsx(f,{source:"id"}),t.jsx(f,{source:"service"}),t.jsx(f,{source:"method"}),t.jsx(l,{source:"headers",reactJsonOptions:{theme:i()}}),t.jsx(l,{source:"input",reactJsonOptions:{theme:i()}}),t.jsx(l,{source:"output",reactJsonOptions:{theme:i()}})]})}),de=()=>t.jsx(z,{children:t.jsxs(E,{children:[t.jsx(u,{source:"id",sortable:!0}),t.jsx(u,{source:"service",sortable:!0}),t.jsx(u,{source:"method",sortable:!0}),t.jsx(d,{source:"headers",sortable:!1,reactJsonOptions:{theme:i()}}),t.jsx(d,{source:"input",sortable:!1,reactJsonOptions:{theme:i()}}),t.jsx(d,{source:"output",sortable:!1,reactJsonOptions:{theme:i()}})]})}),i=()=>{const[r]=D();return r==="dark"?"monokai":"rjv-default"},le=()=>t.jsx(O,{children:t.jsxs(S,{bulkActionButtons:!1,children:[t.jsx(u,{source:"id"}),t.jsx(u,{source:"package"}),t.jsx(u,{source:"name"}),t.jsx(B,{source:"methods",sortable:!1,children:t.jsx(C,{linkType:!1,children:t.jsx(H,{source:"name"})})})]})});var x={},he=w;Object.defineProperty(x,"__esModule",{value:!0});var T=x.default=void 0,fe=he($()),pe=t;T=x.default=(0,fe.default)((0,pe.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage");var j={},me=w;Object.defineProperty(j,"__esModule",{value:!0});var P=j.default=void 0,ye=me($()),xe=t;P=j.default=(0,ye.default)((0,xe.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-1 6h2v2h-2zm0 4h2v6h-2z"}),"PrivacyTip");const je={...G,palette:{primary:ee,secondary:te,error:U,contrastThreshold:3,tonalOffset:.2}},ge=()=>t.jsxs(Q,{toolbar:t.jsx(W,{}),children:[t.jsx(Y,{}),t.jsx(Z,{flex:"-1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",variant:"h6",color:"inherit",id:"react-admin-logo",children:"GripMock UI"})]}),ve=r=>t.jsx(X,{...r,appBar:ge}),be=()=>t.jsxs(V,{disableTelemetry:!0,dataProvider:oe,layout:ve,theme:je,darkTheme:K,children:[t.jsx(v,{icon:P,name:"services",list:le}),t.jsx(v,{icon:T,name:"stubs",list:ie,edit:ue,show:de,create:ce})]});y.createRoot(document.getElementById("root")).render(t.jsx(N.StrictMode,{children:t.jsx(be,{})})); +import{c as R,aL as g,bm as M,j as t,bn as v,a as N}from"./ra-DtzM-ojY.js";import{l as _,a as k,b as q}from"./utils-iwAO8dWB.js";import{F}from"./matches-CU2r43ac.js";import{J as d,a as l}from"./react-admin-utils-BxZOIQns.js";import{ac as O,ad as S,ae as u,af as I,ag as J,ah as f,ai as A,aj as z,ak as E,al as D,am as B,an as C,ao as H,ap as $,aq as w,ar as G,as as U,at as V,au as K,av as X,aw as Q,ax as W,ay as Y,N as Z}from"./react-admin-DKy-dVED.js";import{i as ee,h as te}from"./mui-rQkuRv3u.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const n of o)if(n.type==="childList")for(const h of n.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&a(h)}).observe(document,{childList:!0,subtree:!0});function s(o){const n={};return o.integrity&&(n.integrity=o.integrity),o.referrerPolicy&&(n.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?n.credentials="include":o.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function a(o){if(o.ep)return;o.ep=!0;const n=s(o);fetch(o.href,n)}})();var y={},b=R;y.createRoot=b.createRoot,y.hydrateRoot=b.hydrateRoot;const c=(r,e={})=>{const s="/api";return e.headers=e.headers||new Headers({Accept:"application/json"}),e.headers.set("X-GripMock-RequestInternal","92b4d5a9-c74b-4ac0-989c-717f80acba22"),M(`${s}${r}`,e)},re=(r,e)=>{const s=new F(r,{keys:Object.keys(e),includeScore:!0});for(const a of Object.values(e))console.log("$fuse",a,s.search(a));return r},se=(r,e)=>{const{fuse:s}=e;return delete e.fuse,Object.keys(e).length>0&&(r=k(r,q(e))),s!==void 0&&(r=re(r,s)),r},m=(r,e,s)=>{if(e===void 0&&s===void 0)return r;const{field:a,order:o}=s;return _(se(r,e),[a],[o.toLowerCase()])},oe={getList:async(r,e)=>{const{page:s,perPage:a}=e.pagination,{field:o,order:n}=e.sort,h={sort:JSON.stringify([o,n]),range:JSON.stringify([(s-1)*a,s*a-1]),filter:JSON.stringify(e.filter)},P=`/${r}?${g.stringify(h)}`,{json:p}=await c(P);return console.log("$list",p,e),{data:m(p,e.filter,e.sort),total:p.length}},getOne:async(r,e)=>{const{json:s}=await c(`/${r}/${e.id}`);return{data:s}},getMany:async(r,e)=>{const s={filter:JSON.stringify({ids:e.ids})},a=`/${r}?${g.stringify(s)}`,{json:o}=await c(a);return{data:m(o,e.filter,e.sort)}},getManyReference:async(r,e)=>{const s=`/${r}/${e.id}/${e.target}`,{json:a}=await c(s);return{data:m(a,e.filter,e.sort),total:a.length}},create:async(r,e)=>(await c(`/${r}`,{method:"POST",body:JSON.stringify(e.data)}),{data:e.data}),update:async(r,e)=>(await c(`/${r}`,{method:"POST",body:JSON.stringify(e.data)}),{id:e.data.id,data:e.data}),updateMany:async(r,e)=>(await c(`/${r}`,{method:"POST",body:JSON.stringify(e.data)}),{data:[]}),delete:async(r,e)=>{const s=`/${r}/batchDelete`;return await c(s,{method:"POST",body:JSON.stringify([e.id])}),{data:[]}},deleteMany:async(r,e)=>{const s=`/${r}/batchDelete`;return await c(s,{method:"POST",body:JSON.stringify(e.ids)}),{data:[]}}},ae=(r,e)=>{const s=document.createElement("a");s.setAttribute("href",encodeURI(`data:application/json;charset=utf-8,${r}`)),s.setAttribute("download",e),s.click()},ne=r=>{ae(JSON.stringify(r,null," "),"export.json")},ie=()=>t.jsx(O,{exporter:ne,children:t.jsxs(S,{rowClick:"show",children:[t.jsx(u,{source:"id",sortable:!0}),t.jsx(u,{source:"service",sortable:!0}),t.jsx(u,{source:"method",sortable:!0}),t.jsx(d,{source:"headers",sortable:!1,reactJsonOptions:{theme:i()}}),t.jsx(d,{source:"input",sortable:!1,reactJsonOptions:{theme:i()}}),t.jsx(d,{source:"output",sortable:!1,reactJsonOptions:{theme:i()}})]})}),ce=()=>t.jsx(I,{children:t.jsxs(J,{children:[t.jsx(f,{source:"service"}),t.jsx(f,{source:"method"}),t.jsx(l,{source:"headers",reactJsonOptions:{theme:i()}}),t.jsx(l,{source:"input",reactJsonOptions:{theme:i()}}),t.jsx(l,{source:"output",reactJsonOptions:{theme:i()}})]})}),ue=()=>t.jsx(A,{children:t.jsxs(J,{children:[t.jsx(f,{source:"id"}),t.jsx(f,{source:"service"}),t.jsx(f,{source:"method"}),t.jsx(l,{source:"headers",reactJsonOptions:{theme:i()}}),t.jsx(l,{source:"input",reactJsonOptions:{theme:i()}}),t.jsx(l,{source:"output",reactJsonOptions:{theme:i()}})]})}),de=()=>t.jsx(z,{children:t.jsxs(E,{children:[t.jsx(u,{source:"id",sortable:!0}),t.jsx(u,{source:"service",sortable:!0}),t.jsx(u,{source:"method",sortable:!0}),t.jsx(d,{source:"headers",sortable:!1,reactJsonOptions:{theme:i()}}),t.jsx(d,{source:"input",sortable:!1,reactJsonOptions:{theme:i()}}),t.jsx(d,{source:"output",sortable:!1,reactJsonOptions:{theme:i()}})]})}),i=()=>{const[r]=D();return r==="dark"?"monokai":"rjv-default"},le=()=>t.jsx(O,{children:t.jsxs(S,{bulkActionButtons:!1,children:[t.jsx(u,{source:"id"}),t.jsx(u,{source:"package"}),t.jsx(u,{source:"name"}),t.jsx(B,{source:"methods",sortable:!1,children:t.jsx(C,{linkType:!1,children:t.jsx(H,{source:"name"})})})]})});var x={},he=w;Object.defineProperty(x,"__esModule",{value:!0});var T=x.default=void 0,fe=he($()),pe=t;T=x.default=(0,fe.default)((0,pe.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage");var j={},me=w;Object.defineProperty(j,"__esModule",{value:!0});var L=j.default=void 0,ye=me($()),xe=t;L=j.default=(0,ye.default)((0,xe.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-1 6h2v2h-2zm0 4h2v6h-2z"}),"PrivacyTip");const je={...G,palette:{primary:ee,secondary:te,error:U,contrastThreshold:3,tonalOffset:.2}},ge=()=>t.jsxs(Q,{toolbar:t.jsx(W,{}),children:[t.jsx(Y,{}),t.jsx(Z,{flex:"-1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",variant:"h6",color:"inherit",id:"react-admin-logo",children:"GripMock UI"})]}),ve=r=>t.jsx(X,{...r,appBar:ge}),be=()=>t.jsxs(V,{disableTelemetry:!0,dataProvider:oe,layout:ve,theme:je,darkTheme:K,children:[t.jsx(v,{icon:L,name:"services",list:le}),t.jsx(v,{icon:T,name:"stubs",list:ie,edit:ue,show:de,create:ce})]});y.createRoot(document.getElementById("root")).render(t.jsx(N.StrictMode,{children:t.jsx(be,{})})); diff --git a/dist/assets/mui-D5Y1ZFJf.js b/dist/assets/mui-rQkuRv3u.js similarity index 99% rename from dist/assets/mui-D5Y1ZFJf.js rename to dist/assets/mui-rQkuRv3u.js index 59ba0b9..9126241 100644 --- a/dist/assets/mui-D5Y1ZFJf.js +++ b/dist/assets/mui-rQkuRv3u.js @@ -1,4 +1,4 @@ -import{j as c,r as C}from"./ra-CVwpGQG8.js";import{c as Ge,u as Io,a as uo,b as yt,d as Ae,_ as s,s as Ct,g as oe,e as Q,f as O,h as w,i as Z,j as K,k as E,l as te,m as Co,n as we,o as jo,p as Ve,q as We,P as pt,r as po,t as be,A as Pt,v as Oo,C as $t,w as It,x as kt,T as Rt,y as Lt,z as Po,G as Tt,M as Ot,B as dt,D as ft,E as fo,S as Bt,H as Bo,J as St,K as Mt,N as gt,O as So,Q as Mo,R as wt,U as At,V as Eo,W as Nt,X as zt,Y as Fo,Z as Dt,$ as jt,a0 as Et,a1 as Ft,a2 as wo,a3 as Ht,a4 as _t,a5 as ko,a6 as Ut,a7 as Vt,a8 as Wt,a9 as Gt,aa as Kt}from"./react-admin-DmM4GJ5V.js";const Cr={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},Pr={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"},qt=Ge(c.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Ho(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Xt(e={}){const{ignoreAccents:o=!0,ignoreCase:t=!0,limit:n,matchFrom:i="any",stringify:u,trim:d=!1}=e;return(l,{inputValue:f,getOptionLabel:v})=>{let g=d?f.trim():f;t&&(g=g.toLowerCase()),o&&(g=Ho(g));const x=g?l.filter($=>{let y=(u||v)($);return t&&(y=y.toLowerCase()),o&&(y=Ho(y)),i==="start"?y.indexOf(g)===0:y.indexOf(g)>-1}):l;return typeof n=="number"?x.slice(0,n):x}}function co(e,o){for(let t=0;t{var o;return e.current!==null&&((o=e.current.parentElement)==null?void 0:o.contains(document.activeElement))};function Qt(e){const{unstable_isActiveElementInListbox:o=Jt,unstable_classNamePrefix:t="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:u=!1,blurOnSelect:d=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:f=!1,componentName:v="useAutocomplete",defaultValue:g=e.multiple?[]:null,disableClearable:x=!1,disableCloseOnSelect:$=!1,disabled:y,disabledItemsFocusable:m=!1,disableListWrap:k=!1,filterOptions:A=Yt,filterSelectedOptions:h=!1,freeSolo:P=!1,getOptionDisabled:I,getOptionKey:U,getOptionLabel:z=r=>{var a;return(a=r.label)!=null?a:r},groupBy:S,handleHomeEndKeys:F=!e.freeSolo,id:N,includeInputInList:M=!1,inputValue:V,isOptionEqualToValue:G=(r,a)=>r===a,multiple:R=!1,onChange:W,onClose:ce,onHighlightChange:ue,onInputChange:Y,onOpen:pe,open:Le,openOnFocus:re=!1,options:Ie,readOnly:Ce=!1,selectOnFocus:Te=!e.freeSolo,value:Ne}=e,se=Io(N);let ee=z;ee=r=>{const a=z(r);return typeof a!="string"?String(a):a};const ke=C.useRef(!1),Oe=C.useRef(!0),q=C.useRef(null),X=C.useRef(null),[ze,go]=C.useState(null),[ie,qe]=C.useState(-1),Ze=i?0:-1,ne=C.useRef(Ze),[L,No]=uo({controlled:Ne,default:g,name:v}),[D,Pe]=uo({controlled:V,default:"",name:v,state:"inputValue"}),[De,eo]=C.useState(!1),Be=C.useCallback((r,a)=>{if(!(R?L.length!(h&&(R?L:[L]).some(a=>a!==null&&G(r,a)))),{inputValue:no&&bo?"":D,getOptionLabel:ee}):[],me=yt({filteredOptions:H,value:L,inputValue:D});C.useEffect(()=>{const r=L!==me.value;De&&!r||P&&!r||Be(null,L)},[L,Be,De,me.value,P]);const Xe=Re&&H.length>0&&!Ce,je=Ae(r=>{r===-1?q.current.focus():ze.querySelector(`[data-tag-index="${r}"]`).focus()});C.useEffect(()=>{R&&ie>L.length-1&&(qe(-1),je(-1))},[L,R,ie,je]);function Ee(r,a){if(!X.current||r<0||r>=H.length)return-1;let b=r;for(;;){const p=X.current.querySelector(`[data-option-index="${b}"]`),T=m?!1:!p||p.disabled||p.getAttribute("aria-disabled")==="true";if(p&&p.hasAttribute("tabindex")&&!T)return b;if(a==="next"?b=(b+1)%H.length:b=(b-1+H.length)%H.length,b===r)return-1}}const xe=Ae(({event:r,index:a,reason:b="auto"})=>{if(ne.current=a,a===-1?q.current.removeAttribute("aria-activedescendant"):q.current.setAttribute("aria-activedescendant",`${se}-option-${a}`),ue&&ue(r,a===-1?null:H[a],b),!X.current)return;const p=X.current.querySelector(`[role="option"].${t}-focused`);p&&(p.classList.remove(`${t}-focused`),p.classList.remove(`${t}-focusVisible`));let T=X.current;if(X.current.getAttribute("role")!=="listbox"&&(T=X.current.parentElement.querySelector('[role="listbox"]')),!T)return;if(a===-1){T.scrollTop=0;return}const j=X.current.querySelector(`[data-option-index="${a}"]`);if(j&&(j.classList.add(`${t}-focused`),b==="keyboard"&&j.classList.add(`${t}-focusVisible`),T.scrollHeight>T.clientHeight&&b!=="mouse"&&b!=="touch")){const _=j,fe=T.clientHeight+T.scrollTop,lo=_.offsetTop+_.offsetHeight;lo>fe?T.scrollTop=lo-T.clientHeight:_.offsetTop-_.offsetHeight*(S?1.3:0){if(!le)return;const j=Ee((()=>{const _=H.length-1;if(a==="reset")return Ze;if(a==="start")return 0;if(a==="end")return _;const fe=ne.current+a;return fe<0?fe===-1&&M?-1:k&&ne.current!==-1||Math.abs(a)>1?0:_:fe>_?fe===_+1&&M?-1:k||Math.abs(a)>1?_:0:fe})(),b);if(xe({index:j,reason:p,event:r}),n&&a!=="reset")if(j===-1)q.current.value=D;else{const _=ee(H[j]);q.current.value=_,_.toLowerCase().indexOf(D.toLowerCase())===0&&D.length>0&&q.current.setSelectionRange(D.length,_.length)}}),Fe=()=>{const r=(a,b)=>{const p=a?ee(a):"",T=b?ee(b):"";return p===T};if(ne.current!==-1&&me.filteredOptions&&me.filteredOptions.length!==H.length&&me.inputValue===D&&(R?L.length===me.value.length&&me.value.every((a,b)=>ee(L[b])===ee(a)):r(me.value,L))){const a=me.filteredOptions[ne.current];if(a)return co(H,b=>ee(b)===ee(a))}return-1},Ye=C.useCallback(()=>{if(!le)return;const r=Fe();if(r!==-1){ne.current=r;return}const a=R?L[0]:L;if(H.length===0||a==null){he({diff:"reset"});return}if(X.current){if(a!=null){const b=H[ne.current];if(R&&b&&co(L,T=>G(b,T))!==-1)return;const p=co(H,T=>G(T,a));p===-1?he({diff:"reset"}):xe({index:p});return}if(ne.current>=H.length-1){xe({index:H.length-1});return}xe({index:ne.current})}},[H.length,R?!1:L,h,he,xe,le,D,R]),mo=Ae(r=>{Ct(X,r),r&&Ye()});C.useEffect(()=>{Ye()},[Ye]);const de=r=>{Re||(oo(!0),to(!0),pe&&pe(r))},$e=(r,a)=>{Re&&(oo(!1),ce&&ce(r,a))},ye=(r,a,b,p)=>{if(R){if(L.length===a.length&&L.every((T,j)=>T===a[j]))return}else if(L===a)return;W&&W(r,a,b,p),No(a)},He=C.useRef(!1),Se=(r,a,b="selectOption",p="options")=>{let T=b,j=a;if(R){j=Array.isArray(L)?L.slice():[];const _=co(j,fe=>G(a,fe));_===-1?j.push(a):p!=="freeSolo"&&(j.splice(_,1),T="removeOption")}Be(r,j),ye(r,j,T,{option:a}),!$&&(!r||!r.ctrlKey&&!r.metaKey)&&$e(r,T),(d===!0||d==="touch"&&He.current||d==="mouse"&&!He.current)&&q.current.blur()};function ao(r,a){if(r===-1)return-1;let b=r;for(;;){if(a==="next"&&b===L.length||a==="previous"&&b===-1)return-1;const p=ze.querySelector(`[data-tag-index="${b}"]`);if(!p||!p.hasAttribute("tabindex")||p.disabled||p.getAttribute("aria-disabled")==="true")b+=a==="next"?1:-1;else return b}}const ro=(r,a)=>{if(!R)return;D===""&&$e(r,"toggleInput");let b=ie;ie===-1?D===""&&a==="previous"&&(b=L.length-1):(b+=a==="next"?1:-1,b<0&&(b=0),b===L.length&&(b=-1)),b=ao(b,a),qe(b),je(b)},so=r=>{ke.current=!0,Pe(""),Y&&Y(r,"","clear"),ye(r,R?[]:null,"clear")},ho=r=>a=>{if(r.onKeyDown&&r.onKeyDown(a),!a.defaultMuiPrevented&&(ie!==-1&&["ArrowLeft","ArrowRight"].indexOf(a.key)===-1&&(qe(-1),je(-1)),a.which!==229))switch(a.key){case"Home":le&&F&&(a.preventDefault(),he({diff:"start",direction:"next",reason:"keyboard",event:a}));break;case"End":le&&F&&(a.preventDefault(),he({diff:"end",direction:"previous",reason:"keyboard",event:a}));break;case"PageUp":a.preventDefault(),he({diff:-_o,direction:"previous",reason:"keyboard",event:a}),de(a);break;case"PageDown":a.preventDefault(),he({diff:_o,direction:"next",reason:"keyboard",event:a}),de(a);break;case"ArrowDown":a.preventDefault(),he({diff:1,direction:"next",reason:"keyboard",event:a}),de(a);break;case"ArrowUp":a.preventDefault(),he({diff:-1,direction:"previous",reason:"keyboard",event:a}),de(a);break;case"ArrowLeft":ro(a,"previous");break;case"ArrowRight":ro(a,"next");break;case"Enter":if(ne.current!==-1&&le){const b=H[ne.current],p=I?I(b):!1;if(a.preventDefault(),p)return;Se(a,b,"selectOption"),n&&q.current.setSelectionRange(q.current.value.length,q.current.value.length)}else P&&D!==""&&no===!1&&(R&&a.preventDefault(),Se(a,D,"createOption","freeSolo"));break;case"Escape":le?(a.preventDefault(),a.stopPropagation(),$e(a,"escape")):f&&(D!==""||R&&L.length>0)&&(a.preventDefault(),a.stopPropagation(),so(a));break;case"Backspace":if(R&&!Ce&&D===""&&L.length>0){const b=ie===-1?L.length-1:ie,p=L.slice();p.splice(b,1),ye(a,p,"removeOption",{option:L[b]})}break;case"Delete":if(R&&!Ce&&D===""&&L.length>0&&ie!==-1){const b=ie,p=L.slice();p.splice(b,1),ye(a,p,"removeOption",{option:L[b]})}break}},zo=r=>{eo(!0),re&&!ke.current&&de(r)},_e=r=>{if(o(X)){q.current.focus();return}eo(!1),Oe.current=!0,ke.current=!1,u&&ne.current!==-1&&le?Se(r,H[ne.current],"blur"):u&&P&&D!==""?Se(r,D,"blur","freeSolo"):l&&Be(r,L),$e(r,"blur")},ae=r=>{const a=r.target.value;D!==a&&(Pe(a),to(!1),Y&&Y(r,a,"input")),a===""?!x&&!R&&ye(r,null,"clear"):de(r)},J=r=>{const a=Number(r.currentTarget.getAttribute("data-option-index"));ne.current!==a&&xe({event:r,index:a,reason:"mouse"})},ve=r=>{xe({event:r,index:Number(r.currentTarget.getAttribute("data-option-index")),reason:"touch"}),He.current=!0},Do=r=>{const a=Number(r.currentTarget.getAttribute("data-option-index"));Se(r,H[a],"selectOption"),He.current=!1},vo=r=>a=>{const b=L.slice();b.splice(r,1),ye(a,b,"removeOption",{option:L[r]})},xo=r=>{Re?$e(r,"toggleInput"):de(r)},yo=r=>{r.currentTarget.contains(r.target)&&r.target.getAttribute("id")!==se&&r.preventDefault()},io=r=>{r.currentTarget.contains(r.target)&&(q.current.focus(),Te&&Oe.current&&q.current.selectionEnd-q.current.selectionStart===0&&q.current.select(),Oe.current=!1)},Je=r=>{!y&&(D===""||!Re)&&xo(r)};let Me=P&&D.length>0;Me=Me||(R?L.length>0:L!==null);let Ue=H;return S&&(Ue=H.reduce((r,a,b)=>{const p=S(a);return r.length>0&&r[r.length-1].group===p?r[r.length-1].options.push(a):r.push({key:b,index:b,group:p,options:[a]}),r},[])),y&&De&&_e(),{getRootProps:(r={})=>s({"aria-owns":Xe?`${se}-listbox`:null},r,{onKeyDown:ho(r),onMouseDown:yo,onClick:io}),getInputLabelProps:()=>({id:`${se}-label`,htmlFor:se}),getInputProps:()=>({id:se,value:D,onBlur:_e,onFocus:zo,onChange:ae,onMouseDown:Je,"aria-activedescendant":le?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Xe?`${se}-listbox`:void 0,"aria-expanded":Xe,autoComplete:"off",ref:q,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:so}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:xo}),getTagProps:({index:r})=>s({key:r,"data-tag-index":r,tabIndex:-1},!Ce&&{onDelete:vo(r)}),getListboxProps:()=>({role:"listbox",id:`${se}-listbox`,"aria-labelledby":`${se}-label`,ref:mo,onMouseDown:r=>{r.preventDefault()}}),getOptionProps:({index:r,option:a})=>{var b;const p=(R?L:[L]).some(j=>j!=null&&G(a,j)),T=I?I(a):!1;return{key:(b=U==null?void 0:U(a))!=null?b:ee(a),tabIndex:-1,role:"option",id:`${se}-option-${r}`,onMouseMove:J,onClick:Do,onTouchStart:ve,"data-option-index":r,"aria-disabled":T,"aria-selected":p}},id:se,inputValue:D,value:L,dirty:Me,expanded:le&&ze,popupOpen:le,focused:De||ie!==-1,anchorEl:ze,setAnchorEl:go,focusedTag:ie,groupedOptions:Ue}}function Zt(e){return oe("MuiListSubheader",e)}Q("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const en=["className","color","component","disableGutters","disableSticky","inset"],on=e=>{const{classes:o,color:t,disableGutters:n,inset:i,disableSticky:u}=e,d={root:["root",t!=="default"&&`color${w(t)}`,!n&&"gutters",i&&"inset",!u&&"sticky"]};return te(d,Zt,o)},tn=O("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${w(t.color)}`],!t.disableGutters&&o.gutters,t.inset&&o.inset,!t.disableSticky&&o.sticky]}})(({theme:e,ownerState:o})=>s({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},o.color==="primary"&&{color:(e.vars||e).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),bt=C.forwardRef(function(o,t){const n=Z({props:o,name:"MuiListSubheader"}),{className:i,color:u="default",component:d="li",disableGutters:l=!1,disableSticky:f=!1,inset:v=!1}=n,g=K(n,en),x=s({},n,{color:u,component:d,disableGutters:l,disableSticky:f,inset:v}),$=on(x);return c.jsx(tn,s({as:d,className:E($.root,i),ref:t,ownerState:x},g))});bt.muiSkipListHighlight=!0;function nn(e){return oe("MuiAutocomplete",e)}const B=Q("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var Uo,Vo;const an=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],rn=["ref"],sn=["key"],ln=["key"],cn=e=>{const{classes:o,disablePortal:t,expanded:n,focused:i,fullWidth:u,hasClearIcon:d,hasPopupIcon:l,inputFocused:f,popupOpen:v,size:g}=e,x={root:["root",n&&"expanded",i&&"focused",u&&"fullWidth",d&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",f&&"inputFocused"],tag:["tag",`tagSize${w(g)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",v&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return te(x,nn,o)},un=O("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{fullWidth:n,hasClearIcon:i,hasPopupIcon:u,inputFocused:d,size:l}=t;return[{[`& .${B.tag}`]:o.tag},{[`& .${B.tag}`]:o[`tagSize${w(l)}`]},{[`& .${B.inputRoot}`]:o.inputRoot},{[`& .${B.input}`]:o.input},{[`& .${B.input}`]:d&&o.inputFocused},o.root,n&&o.fullWidth,u&&o.hasPopupIcon,i&&o.hasClearIcon]}})({[`&.${B.focused} .${B.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${B.clearIndicator}`]:{visibility:"visible"}},[`& .${B.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${B.inputRoot}`]:{[`.${B.hasPopupIcon}&, .${B.hasClearIcon}&`]:{paddingRight:30},[`.${B.hasPopupIcon}.${B.hasClearIcon}&`]:{paddingRight:56},[`& .${B.input}`]:{width:0,minWidth:30}},[`& .${Co.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Co.root}.${we.sizeSmall}`]:{[`& .${Co.input}`]:{padding:"2px 4px 3px 0"}},[`& .${jo.root}`]:{padding:9,[`.${B.hasPopupIcon}&, .${B.hasClearIcon}&`]:{paddingRight:39},[`.${B.hasPopupIcon}.${B.hasClearIcon}&`]:{paddingRight:65},[`& .${B.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${B.endAdornment}`]:{right:9}},[`& .${jo.root}.${we.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${B.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ve.root}`]:{paddingTop:19,paddingLeft:8,[`.${B.hasPopupIcon}&, .${B.hasClearIcon}&`]:{paddingRight:39},[`.${B.hasPopupIcon}.${B.hasClearIcon}&`]:{paddingRight:65},[`& .${Ve.input}`]:{padding:"7px 4px"},[`& .${B.endAdornment}`]:{right:9}},[`& .${Ve.root}.${we.sizeSmall}`]:{paddingBottom:1,[`& .${Ve.input}`]:{padding:"2.5px 4px"}},[`& .${we.hiddenLabel}`]:{paddingTop:8},[`& .${Ve.root}.${we.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${B.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ve.root}.${we.hiddenLabel}.${we.sizeSmall}`]:{[`& .${B.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${B.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${B.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${B.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${B.inputRoot}`]:{flexWrap:"wrap"}}}]}),pn=O("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),dn=O(We,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),fn=O(We,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},o)=>s({},o.popupIndicator,e.popupOpen&&o.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),gn=O(pt,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${B.option}`]:o.option},o.popper,t.disablePortal&&o.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),bn=O(po,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>s({},e.typography.body1,{overflow:"auto"})),mn=O("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),hn=O("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),vn=O("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,o)=>o.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${B.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${B.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${B.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:be(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${B.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${B.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),xn=O(bt,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),yn=O("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${B.option}`]:{paddingLeft:24}}),$r=C.forwardRef(function(o,t){var n,i,u,d;const l=Z({props:o,name:"MuiAutocomplete"}),{autoComplete:f=!1,autoHighlight:v=!1,autoSelect:g=!1,blurOnSelect:x=!1,ChipProps:$,className:y,clearIcon:m=Uo||(Uo=c.jsx(qt,{fontSize:"small"})),clearOnBlur:k=!l.freeSolo,clearOnEscape:A=!1,clearText:h="Clear",closeText:P="Close",componentsProps:I={},defaultValue:U=l.multiple?[]:null,disableClearable:z=!1,disableCloseOnSelect:S=!1,disabled:F=!1,disabledItemsFocusable:N=!1,disableListWrap:M=!1,disablePortal:V=!1,filterSelectedOptions:G=!1,forcePopupIcon:R="auto",freeSolo:W=!1,fullWidth:ce=!1,getLimitTagsText:ue=p=>`+${p}`,getOptionLabel:Y,groupBy:pe,handleHomeEndKeys:Le=!l.freeSolo,includeInputInList:re=!1,limitTags:Ie=-1,ListboxComponent:Ce="ul",ListboxProps:Te,loading:Ne=!1,loadingText:se="Loading…",multiple:ee=!1,noOptionsText:ke="No options",openOnFocus:Oe=!1,openText:q="Open",PaperComponent:X=po,PopperComponent:ze=pt,popupIcon:go=Vo||(Vo=c.jsx(Pt,{})),readOnly:ie=!1,renderGroup:qe,renderInput:Ze,renderOption:ne,renderTags:L,selectOnFocus:No=!l.freeSolo,size:D="medium",slotProps:Pe={}}=l,De=K(l,an),{getRootProps:eo,getInputProps:Be,getInputLabelProps:Re,getPopupIndicatorProps:oo,getClearProps:bo,getTagProps:to,getListboxProps:no,getOptionProps:le,value:H,dirty:me,expanded:Xe,id:je,popupOpen:Ee,focused:xe,focusedTag:he,anchorEl:Fe,setAnchorEl:Ye,inputValue:mo,groupedOptions:de}=Qt(s({},l,{componentName:"Autocomplete"})),$e=!z&&!F&&me&&!ie,ye=(!W||R===!0)&&R!==!1,{onMouseDown:He}=Be(),{ref:Se}=Te??{},ao=no(),{ref:ro}=ao,so=K(ao,rn),ho=Oo(ro,Se),_e=Y||(p=>{var T;return(T=p.label)!=null?T:p}),ae=s({},l,{disablePortal:V,expanded:Xe,focused:xe,fullWidth:ce,getOptionLabel:_e,hasClearIcon:$e,hasPopupIcon:ye,inputFocused:he===-1,popupOpen:Ee,size:D}),J=cn(ae);let ve;if(ee&&H.length>0){const p=T=>s({className:J.tag,disabled:F},to(T));L?ve=L(H,p,ae):ve=H.map((T,j)=>{const _=p({index:j}),{key:fe}=_,lo=K(_,sn);return c.jsx($t,s({label:_e(T),size:D},lo,$),fe)})}if(Ie>-1&&Array.isArray(ve)){const p=ve.length-Ie;!xe&&p>0&&(ve=ve.splice(0,Ie),ve.push(c.jsx("span",{className:J.tag,children:ue(p)},ve.length)))}const vo=qe||(p=>c.jsxs("li",{children:[c.jsx(xn,{className:J.groupLabel,ownerState:ae,component:"div",children:p.group}),c.jsx(yn,{className:J.groupUl,ownerState:ae,children:p.children})]},p.key)),yo=ne||((p,T)=>{const{key:j}=p,_=K(p,ln);return c.jsx("li",s({},_,{children:_e(T)}),j)}),io=(p,T)=>{const j=le({option:p,index:T});return yo(s({},j,{className:J.option}),p,{selected:j["aria-selected"],index:T,inputValue:mo},ae)},Je=(n=Pe.clearIndicator)!=null?n:I.clearIndicator,Me=(i=Pe.paper)!=null?i:I.paper,Ue=(u=Pe.popper)!=null?u:I.popper,r=(d=Pe.popupIndicator)!=null?d:I.popupIndicator,a=p=>c.jsx(gn,s({as:ze,disablePortal:V,style:{width:Fe?Fe.clientWidth:null},ownerState:ae,role:"presentation",anchorEl:Fe,open:Ee},Ue,{className:E(J.popper,Ue==null?void 0:Ue.className),children:c.jsx(bn,s({ownerState:ae,as:X},Me,{className:E(J.paper,Me==null?void 0:Me.className),children:p}))}));let b=null;return de.length>0?b=a(c.jsx(vn,s({as:Ce,className:J.listbox,ownerState:ae},so,Te,{ref:ho,children:de.map((p,T)=>pe?vo({key:p.key,group:p.group,children:p.options.map((j,_)=>io(j,p.index+_))}):io(p,T))}))):Ne&&de.length===0?b=a(c.jsx(mn,{className:J.loading,ownerState:ae,children:se})):de.length===0&&!W&&!Ne&&(b=a(c.jsx(hn,{className:J.noOptions,ownerState:ae,role:"presentation",onMouseDown:p=>{p.preventDefault()},children:ke}))),c.jsxs(C.Fragment,{children:[c.jsx(un,s({ref:t,className:E(J.root,y),ownerState:ae},eo(De),{children:Ze({id:je,disabled:F,fullWidth:!0,size:D==="small"?"small":void 0,InputLabelProps:Re(),InputProps:s({ref:Ye,className:J.inputRoot,startAdornment:ve,onClick:p=>{p.target===p.currentTarget&&He(p)}},($e||ye)&&{endAdornment:c.jsxs(pn,{className:J.endAdornment,ownerState:ae,children:[$e?c.jsx(dn,s({},bo(),{"aria-label":h,title:h,ownerState:ae},Je,{className:E(J.clearIndicator,Je==null?void 0:Je.className),children:m})):null,ye?c.jsx(fn,s({},oo(),{disabled:F,"aria-label":Ee?P:q,title:Ee?P:q,ownerState:ae},r,{className:E(J.popupIndicator,r==null?void 0:r.className),children:go})):null]})}),inputProps:s({className:J.input,disabled:F,readOnly:ie},Be())})})),Fe?b:null]})}),Cn=Q("MuiBox",["root"]),Pn=It(),Ir=kt({themeId:Rt,defaultTheme:Pn,defaultClassName:Cn.root,generateClassName:Lt.generate});function Wo(e){return e.substring(2).toLowerCase()}function $n(e,o){return o.documentElement.clientWidth(setTimeout(()=>{f.current=!0},0),()=>{f.current=!1}),[]);const g=Oo(o.ref,l),x=Ae(m=>{const k=v.current;v.current=!1;const A=Po(l.current);if(!f.current||!l.current||"clientX"in m&&$n(m,A))return;if(d.current){d.current=!1;return}let h;m.composedPath?h=m.composedPath().indexOf(l.current)>-1:h=!A.documentElement.contains(m.target)||l.current.contains(m.target),!h&&(t||!k)&&i(m)}),$=m=>k=>{v.current=!0;const A=o.props[m];A&&A(k)},y={ref:g};return u!==!1&&(y[u]=$(u)),C.useEffect(()=>{if(u!==!1){const m=Wo(u),k=Po(l.current),A=()=>{d.current=!0};return k.addEventListener(m,x),k.addEventListener("touchmove",A),()=>{k.removeEventListener(m,x),k.removeEventListener("touchmove",A)}}},[x,u]),n!==!1&&(y[n]=$(n)),C.useEffect(()=>{if(n!==!1){const m=Wo(n),k=Po(l.current);return k.addEventListener(m,x),()=>{k.removeEventListener(m,x)}}},[x,n]),c.jsx(C.Fragment,{children:C.cloneElement(o,y)})}const kn=(e,o)=>s({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},o&&!e.vars&&{colorScheme:e.palette.mode}),Rn=e=>s({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Ln=(e,o=!1)=>{var t;const n={};o&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([d,l])=>{var f;n[e.getColorSchemeSelector(d).replace(/\s*&/,"")]={colorScheme:(f=l.palette)==null?void 0:f.mode}});let i=s({html:kn(e,o),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:s({margin:0},Rn(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const u=(t=e.components)==null||(t=t.MuiCssBaseline)==null?void 0:t.styleOverrides;return u&&(i=[i,u]),i};function kr(e){const o=Z({props:e,name:"MuiCssBaseline"}),{children:t,enableColorScheme:n=!1}=o;return c.jsxs(C.Fragment,{children:[c.jsx(Tt,{styles:i=>Ln(i,n)}),t]})}function Tn(e){return oe("MuiDrawer",e)}Q("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const On=["BackdropProps"],Bn=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],mt=(e,o)=>{const{ownerState:t}=e;return[o.root,(t.variant==="permanent"||t.variant==="persistent")&&o.docked,o.modal]},Sn=e=>{const{classes:o,anchor:t,variant:n}=e,i={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${w(t)}`,n!=="temporary"&&`paperAnchorDocked${w(t)}`]};return te(i,Tn,o)},Mn=O(Ot,{name:"MuiDrawer",slot:"Root",overridesResolver:mt})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),Go=O("div",{shouldForwardProp:dt,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:mt})({flex:"0 0 auto"}),wn=O(po,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.paper,o[`paperAnchor${w(t.anchor)}`],t.variant!=="temporary"&&o[`paperAnchorDocked${w(t.anchor)}`]]}})(({theme:e,ownerState:o})=>s({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},o.anchor==="left"&&{left:0},o.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},o.anchor==="right"&&{right:0},o.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},o.anchor==="left"&&o.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},o.anchor==="top"&&o.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},o.anchor==="right"&&o.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},o.anchor==="bottom"&&o.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),ht={left:"right",right:"left",top:"down",bottom:"up"};function An(e){return["left","right"].indexOf(e)!==-1}function Nn({direction:e},o){return e==="rtl"&&An(o)?ht[o]:o}const Rr=C.forwardRef(function(o,t){const n=Z({props:o,name:"MuiDrawer"}),i=ft(),u=fo(),d={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:l="left",BackdropProps:f,children:v,className:g,elevation:x=16,hideBackdrop:$=!1,ModalProps:{BackdropProps:y}={},onClose:m,open:k=!1,PaperProps:A={},SlideProps:h,TransitionComponent:P=Bt,transitionDuration:I=d,variant:U="temporary"}=n,z=K(n.ModalProps,On),S=K(n,Bn),F=C.useRef(!1);C.useEffect(()=>{F.current=!0},[]);const N=Nn({direction:u?"rtl":"ltr"},l),V=s({},n,{anchor:l,elevation:x,open:k,variant:U},S),G=Sn(V),R=c.jsx(wn,s({elevation:U==="temporary"?x:0,square:!0},A,{className:E(G.paper,A.className),ownerState:V,children:v}));if(U==="permanent")return c.jsx(Go,s({className:E(G.root,G.docked,g),ownerState:V,ref:t},S,{children:R}));const W=c.jsx(P,s({in:k,direction:ht[N],timeout:I,appear:F.current},h,{children:R}));return U==="persistent"?c.jsx(Go,s({className:E(G.root,G.docked,g),ownerState:V,ref:t},S,{children:W})):c.jsx(Mn,s({BackdropProps:s({},f,y,{transitionDuration:I}),className:E(G.root,G.modal,g),open:k,ownerState:V,onClose:m,hideBackdrop:$,ref:t},S,z,{children:W}))});function zn(e){return oe("MuiFab",e)}const Ko=Q("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),Dn=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],jn=e=>{const{color:o,variant:t,classes:n,size:i}=e,u={root:["root",t,`size${w(i)}`,o==="inherit"?"colorInherit":o]},d=te(u,zn,n);return s({},n,d)},En=O(Bo,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>dt(e)||e==="classes",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[t.variant],o[`size${w(t.size)}`],t.color==="inherit"&&o.colorInherit,o[w(t.size)],o[t.color]]}})(({theme:e,ownerState:o})=>{var t,n;return s({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(t=(n=e.palette).getContrastText)==null?void 0:t.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${Ko.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},o.size==="small"&&{width:40,height:40},o.size==="medium"&&{width:48,height:48},o.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},o.variant==="extended"&&o.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},o.variant==="extended"&&o.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},o.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:o})=>s({},o.color!=="inherit"&&o.color!=="default"&&(e.vars||e).palette[o.color]!=null&&{color:(e.vars||e).palette[o.color].contrastText,backgroundColor:(e.vars||e).palette[o.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[o.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[o.color].main}}}),({theme:e})=>({[`&.${Ko.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),Lr=C.forwardRef(function(o,t){const n=Z({props:o,name:"MuiFab"}),{children:i,className:u,color:d="default",component:l="button",disabled:f=!1,disableFocusRipple:v=!1,focusVisibleClassName:g,size:x="large",variant:$="circular"}=n,y=K(n,Dn),m=s({},n,{color:d,component:l,disabled:f,disableFocusRipple:v,size:x,variant:$}),k=jn(m);return c.jsx(En,s({className:E(k.root,u),component:l,disabled:f,focusRipple:!v,focusVisibleClassName:E(k.focusVisible,g),ownerState:m,ref:t},y,{classes:k,children:i}))});function Fn(e){return oe("MuiInputAdornment",e)}const qo=Q("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Xo;const Hn=["children","className","component","disablePointerEvents","disableTypography","position","variant"],_n=(e,o)=>{const{ownerState:t}=e;return[o.root,o[`position${w(t.position)}`],t.disablePointerEvents===!0&&o.disablePointerEvents,o[t.variant]]},Un=e=>{const{classes:o,disablePointerEvents:t,hiddenLabel:n,position:i,size:u,variant:d}=e,l={root:["root",t&&"disablePointerEvents",i&&`position${w(i)}`,d,n&&"hiddenLabel",u&&`size${w(u)}`]};return te(l,Fn,o)},Vn=O("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:_n})(({theme:e,ownerState:o})=>s({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},o.variant==="filled"&&{[`&.${qo.positionStart}&:not(.${qo.hiddenLabel})`]:{marginTop:16}},o.position==="start"&&{marginRight:8},o.position==="end"&&{marginLeft:8},o.disablePointerEvents===!0&&{pointerEvents:"none"})),Tr=C.forwardRef(function(o,t){const n=Z({props:o,name:"MuiInputAdornment"}),{children:i,className:u,component:d="div",disablePointerEvents:l=!1,disableTypography:f=!1,position:v,variant:g}=n,x=K(n,Hn),$=St()||{};let y=g;g&&$.variant,$&&!y&&(y=$.variant);const m=s({},n,{hiddenLabel:$.hiddenLabel,size:$.size,disablePointerEvents:l,position:v,variant:y}),k=Un(m);return c.jsx(Mt.Provider,{value:null,children:c.jsx(Vn,s({as:d,ownerState:m,className:E(k.root,u),ref:t},x,{children:typeof i=="string"&&!f?c.jsx(gt,{color:"text.secondary",children:i}):c.jsxs(C.Fragment,{children:[v==="start"?Xo||(Xo=c.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})});function Wn(e){return oe("MuiLinearProgress",e)}Q("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Gn=["className","color","value","valueBuffer","variant"];let Ke=e=>e,Yo,Jo,Qo,Zo,et,ot;const Ro=4,Kn=So(Yo||(Yo=Ke` +import{j as c,r as C}from"./ra-DtzM-ojY.js";import{c as Ge,u as Io,a as uo,b as yt,d as Ae,_ as s,s as Ct,g as oe,e as Q,f as O,h as w,i as Z,j as K,k as E,l as te,m as Co,n as we,o as jo,p as Ve,q as We,P as pt,r as po,t as be,A as Pt,v as Oo,C as $t,w as It,x as kt,T as Rt,y as Lt,z as Po,G as Tt,M as Ot,B as dt,D as ft,E as fo,S as Bt,H as Bo,J as St,K as Mt,N as gt,O as So,Q as Mo,R as wt,U as At,V as Eo,W as Nt,X as zt,Y as Fo,Z as Dt,$ as jt,a0 as Et,a1 as Ft,a2 as wo,a3 as Ht,a4 as _t,a5 as ko,a6 as Ut,a7 as Vt,a8 as Wt,a9 as Gt,aa as Kt}from"./react-admin-DKy-dVED.js";const Cr={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},Pr={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"},qt=Ge(c.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Ho(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Xt(e={}){const{ignoreAccents:o=!0,ignoreCase:t=!0,limit:n,matchFrom:i="any",stringify:u,trim:d=!1}=e;return(l,{inputValue:f,getOptionLabel:v})=>{let g=d?f.trim():f;t&&(g=g.toLowerCase()),o&&(g=Ho(g));const x=g?l.filter($=>{let y=(u||v)($);return t&&(y=y.toLowerCase()),o&&(y=Ho(y)),i==="start"?y.indexOf(g)===0:y.indexOf(g)>-1}):l;return typeof n=="number"?x.slice(0,n):x}}function co(e,o){for(let t=0;t{var o;return e.current!==null&&((o=e.current.parentElement)==null?void 0:o.contains(document.activeElement))};function Qt(e){const{unstable_isActiveElementInListbox:o=Jt,unstable_classNamePrefix:t="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:u=!1,blurOnSelect:d=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:f=!1,componentName:v="useAutocomplete",defaultValue:g=e.multiple?[]:null,disableClearable:x=!1,disableCloseOnSelect:$=!1,disabled:y,disabledItemsFocusable:m=!1,disableListWrap:k=!1,filterOptions:A=Yt,filterSelectedOptions:h=!1,freeSolo:P=!1,getOptionDisabled:I,getOptionKey:U,getOptionLabel:z=r=>{var a;return(a=r.label)!=null?a:r},groupBy:S,handleHomeEndKeys:F=!e.freeSolo,id:N,includeInputInList:M=!1,inputValue:V,isOptionEqualToValue:G=(r,a)=>r===a,multiple:R=!1,onChange:W,onClose:ce,onHighlightChange:ue,onInputChange:Y,onOpen:pe,open:Le,openOnFocus:re=!1,options:Ie,readOnly:Ce=!1,selectOnFocus:Te=!e.freeSolo,value:Ne}=e,se=Io(N);let ee=z;ee=r=>{const a=z(r);return typeof a!="string"?String(a):a};const ke=C.useRef(!1),Oe=C.useRef(!0),q=C.useRef(null),X=C.useRef(null),[ze,go]=C.useState(null),[ie,qe]=C.useState(-1),Ze=i?0:-1,ne=C.useRef(Ze),[L,No]=uo({controlled:Ne,default:g,name:v}),[D,Pe]=uo({controlled:V,default:"",name:v,state:"inputValue"}),[De,eo]=C.useState(!1),Be=C.useCallback((r,a)=>{if(!(R?L.length!(h&&(R?L:[L]).some(a=>a!==null&&G(r,a)))),{inputValue:no&&bo?"":D,getOptionLabel:ee}):[],me=yt({filteredOptions:H,value:L,inputValue:D});C.useEffect(()=>{const r=L!==me.value;De&&!r||P&&!r||Be(null,L)},[L,Be,De,me.value,P]);const Xe=Re&&H.length>0&&!Ce,je=Ae(r=>{r===-1?q.current.focus():ze.querySelector(`[data-tag-index="${r}"]`).focus()});C.useEffect(()=>{R&&ie>L.length-1&&(qe(-1),je(-1))},[L,R,ie,je]);function Ee(r,a){if(!X.current||r<0||r>=H.length)return-1;let b=r;for(;;){const p=X.current.querySelector(`[data-option-index="${b}"]`),T=m?!1:!p||p.disabled||p.getAttribute("aria-disabled")==="true";if(p&&p.hasAttribute("tabindex")&&!T)return b;if(a==="next"?b=(b+1)%H.length:b=(b-1+H.length)%H.length,b===r)return-1}}const xe=Ae(({event:r,index:a,reason:b="auto"})=>{if(ne.current=a,a===-1?q.current.removeAttribute("aria-activedescendant"):q.current.setAttribute("aria-activedescendant",`${se}-option-${a}`),ue&&ue(r,a===-1?null:H[a],b),!X.current)return;const p=X.current.querySelector(`[role="option"].${t}-focused`);p&&(p.classList.remove(`${t}-focused`),p.classList.remove(`${t}-focusVisible`));let T=X.current;if(X.current.getAttribute("role")!=="listbox"&&(T=X.current.parentElement.querySelector('[role="listbox"]')),!T)return;if(a===-1){T.scrollTop=0;return}const j=X.current.querySelector(`[data-option-index="${a}"]`);if(j&&(j.classList.add(`${t}-focused`),b==="keyboard"&&j.classList.add(`${t}-focusVisible`),T.scrollHeight>T.clientHeight&&b!=="mouse"&&b!=="touch")){const _=j,fe=T.clientHeight+T.scrollTop,lo=_.offsetTop+_.offsetHeight;lo>fe?T.scrollTop=lo-T.clientHeight:_.offsetTop-_.offsetHeight*(S?1.3:0){if(!le)return;const j=Ee((()=>{const _=H.length-1;if(a==="reset")return Ze;if(a==="start")return 0;if(a==="end")return _;const fe=ne.current+a;return fe<0?fe===-1&&M?-1:k&&ne.current!==-1||Math.abs(a)>1?0:_:fe>_?fe===_+1&&M?-1:k||Math.abs(a)>1?_:0:fe})(),b);if(xe({index:j,reason:p,event:r}),n&&a!=="reset")if(j===-1)q.current.value=D;else{const _=ee(H[j]);q.current.value=_,_.toLowerCase().indexOf(D.toLowerCase())===0&&D.length>0&&q.current.setSelectionRange(D.length,_.length)}}),Fe=()=>{const r=(a,b)=>{const p=a?ee(a):"",T=b?ee(b):"";return p===T};if(ne.current!==-1&&me.filteredOptions&&me.filteredOptions.length!==H.length&&me.inputValue===D&&(R?L.length===me.value.length&&me.value.every((a,b)=>ee(L[b])===ee(a)):r(me.value,L))){const a=me.filteredOptions[ne.current];if(a)return co(H,b=>ee(b)===ee(a))}return-1},Ye=C.useCallback(()=>{if(!le)return;const r=Fe();if(r!==-1){ne.current=r;return}const a=R?L[0]:L;if(H.length===0||a==null){he({diff:"reset"});return}if(X.current){if(a!=null){const b=H[ne.current];if(R&&b&&co(L,T=>G(b,T))!==-1)return;const p=co(H,T=>G(T,a));p===-1?he({diff:"reset"}):xe({index:p});return}if(ne.current>=H.length-1){xe({index:H.length-1});return}xe({index:ne.current})}},[H.length,R?!1:L,h,he,xe,le,D,R]),mo=Ae(r=>{Ct(X,r),r&&Ye()});C.useEffect(()=>{Ye()},[Ye]);const de=r=>{Re||(oo(!0),to(!0),pe&&pe(r))},$e=(r,a)=>{Re&&(oo(!1),ce&&ce(r,a))},ye=(r,a,b,p)=>{if(R){if(L.length===a.length&&L.every((T,j)=>T===a[j]))return}else if(L===a)return;W&&W(r,a,b,p),No(a)},He=C.useRef(!1),Se=(r,a,b="selectOption",p="options")=>{let T=b,j=a;if(R){j=Array.isArray(L)?L.slice():[];const _=co(j,fe=>G(a,fe));_===-1?j.push(a):p!=="freeSolo"&&(j.splice(_,1),T="removeOption")}Be(r,j),ye(r,j,T,{option:a}),!$&&(!r||!r.ctrlKey&&!r.metaKey)&&$e(r,T),(d===!0||d==="touch"&&He.current||d==="mouse"&&!He.current)&&q.current.blur()};function ao(r,a){if(r===-1)return-1;let b=r;for(;;){if(a==="next"&&b===L.length||a==="previous"&&b===-1)return-1;const p=ze.querySelector(`[data-tag-index="${b}"]`);if(!p||!p.hasAttribute("tabindex")||p.disabled||p.getAttribute("aria-disabled")==="true")b+=a==="next"?1:-1;else return b}}const ro=(r,a)=>{if(!R)return;D===""&&$e(r,"toggleInput");let b=ie;ie===-1?D===""&&a==="previous"&&(b=L.length-1):(b+=a==="next"?1:-1,b<0&&(b=0),b===L.length&&(b=-1)),b=ao(b,a),qe(b),je(b)},so=r=>{ke.current=!0,Pe(""),Y&&Y(r,"","clear"),ye(r,R?[]:null,"clear")},ho=r=>a=>{if(r.onKeyDown&&r.onKeyDown(a),!a.defaultMuiPrevented&&(ie!==-1&&["ArrowLeft","ArrowRight"].indexOf(a.key)===-1&&(qe(-1),je(-1)),a.which!==229))switch(a.key){case"Home":le&&F&&(a.preventDefault(),he({diff:"start",direction:"next",reason:"keyboard",event:a}));break;case"End":le&&F&&(a.preventDefault(),he({diff:"end",direction:"previous",reason:"keyboard",event:a}));break;case"PageUp":a.preventDefault(),he({diff:-_o,direction:"previous",reason:"keyboard",event:a}),de(a);break;case"PageDown":a.preventDefault(),he({diff:_o,direction:"next",reason:"keyboard",event:a}),de(a);break;case"ArrowDown":a.preventDefault(),he({diff:1,direction:"next",reason:"keyboard",event:a}),de(a);break;case"ArrowUp":a.preventDefault(),he({diff:-1,direction:"previous",reason:"keyboard",event:a}),de(a);break;case"ArrowLeft":ro(a,"previous");break;case"ArrowRight":ro(a,"next");break;case"Enter":if(ne.current!==-1&&le){const b=H[ne.current],p=I?I(b):!1;if(a.preventDefault(),p)return;Se(a,b,"selectOption"),n&&q.current.setSelectionRange(q.current.value.length,q.current.value.length)}else P&&D!==""&&no===!1&&(R&&a.preventDefault(),Se(a,D,"createOption","freeSolo"));break;case"Escape":le?(a.preventDefault(),a.stopPropagation(),$e(a,"escape")):f&&(D!==""||R&&L.length>0)&&(a.preventDefault(),a.stopPropagation(),so(a));break;case"Backspace":if(R&&!Ce&&D===""&&L.length>0){const b=ie===-1?L.length-1:ie,p=L.slice();p.splice(b,1),ye(a,p,"removeOption",{option:L[b]})}break;case"Delete":if(R&&!Ce&&D===""&&L.length>0&&ie!==-1){const b=ie,p=L.slice();p.splice(b,1),ye(a,p,"removeOption",{option:L[b]})}break}},zo=r=>{eo(!0),re&&!ke.current&&de(r)},_e=r=>{if(o(X)){q.current.focus();return}eo(!1),Oe.current=!0,ke.current=!1,u&&ne.current!==-1&&le?Se(r,H[ne.current],"blur"):u&&P&&D!==""?Se(r,D,"blur","freeSolo"):l&&Be(r,L),$e(r,"blur")},ae=r=>{const a=r.target.value;D!==a&&(Pe(a),to(!1),Y&&Y(r,a,"input")),a===""?!x&&!R&&ye(r,null,"clear"):de(r)},J=r=>{const a=Number(r.currentTarget.getAttribute("data-option-index"));ne.current!==a&&xe({event:r,index:a,reason:"mouse"})},ve=r=>{xe({event:r,index:Number(r.currentTarget.getAttribute("data-option-index")),reason:"touch"}),He.current=!0},Do=r=>{const a=Number(r.currentTarget.getAttribute("data-option-index"));Se(r,H[a],"selectOption"),He.current=!1},vo=r=>a=>{const b=L.slice();b.splice(r,1),ye(a,b,"removeOption",{option:L[r]})},xo=r=>{Re?$e(r,"toggleInput"):de(r)},yo=r=>{r.currentTarget.contains(r.target)&&r.target.getAttribute("id")!==se&&r.preventDefault()},io=r=>{r.currentTarget.contains(r.target)&&(q.current.focus(),Te&&Oe.current&&q.current.selectionEnd-q.current.selectionStart===0&&q.current.select(),Oe.current=!1)},Je=r=>{!y&&(D===""||!Re)&&xo(r)};let Me=P&&D.length>0;Me=Me||(R?L.length>0:L!==null);let Ue=H;return S&&(Ue=H.reduce((r,a,b)=>{const p=S(a);return r.length>0&&r[r.length-1].group===p?r[r.length-1].options.push(a):r.push({key:b,index:b,group:p,options:[a]}),r},[])),y&&De&&_e(),{getRootProps:(r={})=>s({"aria-owns":Xe?`${se}-listbox`:null},r,{onKeyDown:ho(r),onMouseDown:yo,onClick:io}),getInputLabelProps:()=>({id:`${se}-label`,htmlFor:se}),getInputProps:()=>({id:se,value:D,onBlur:_e,onFocus:zo,onChange:ae,onMouseDown:Je,"aria-activedescendant":le?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Xe?`${se}-listbox`:void 0,"aria-expanded":Xe,autoComplete:"off",ref:q,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:so}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:xo}),getTagProps:({index:r})=>s({key:r,"data-tag-index":r,tabIndex:-1},!Ce&&{onDelete:vo(r)}),getListboxProps:()=>({role:"listbox",id:`${se}-listbox`,"aria-labelledby":`${se}-label`,ref:mo,onMouseDown:r=>{r.preventDefault()}}),getOptionProps:({index:r,option:a})=>{var b;const p=(R?L:[L]).some(j=>j!=null&&G(a,j)),T=I?I(a):!1;return{key:(b=U==null?void 0:U(a))!=null?b:ee(a),tabIndex:-1,role:"option",id:`${se}-option-${r}`,onMouseMove:J,onClick:Do,onTouchStart:ve,"data-option-index":r,"aria-disabled":T,"aria-selected":p}},id:se,inputValue:D,value:L,dirty:Me,expanded:le&&ze,popupOpen:le,focused:De||ie!==-1,anchorEl:ze,setAnchorEl:go,focusedTag:ie,groupedOptions:Ue}}function Zt(e){return oe("MuiListSubheader",e)}Q("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const en=["className","color","component","disableGutters","disableSticky","inset"],on=e=>{const{classes:o,color:t,disableGutters:n,inset:i,disableSticky:u}=e,d={root:["root",t!=="default"&&`color${w(t)}`,!n&&"gutters",i&&"inset",!u&&"sticky"]};return te(d,Zt,o)},tn=O("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${w(t.color)}`],!t.disableGutters&&o.gutters,t.inset&&o.inset,!t.disableSticky&&o.sticky]}})(({theme:e,ownerState:o})=>s({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},o.color==="primary"&&{color:(e.vars||e).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),bt=C.forwardRef(function(o,t){const n=Z({props:o,name:"MuiListSubheader"}),{className:i,color:u="default",component:d="li",disableGutters:l=!1,disableSticky:f=!1,inset:v=!1}=n,g=K(n,en),x=s({},n,{color:u,component:d,disableGutters:l,disableSticky:f,inset:v}),$=on(x);return c.jsx(tn,s({as:d,className:E($.root,i),ref:t,ownerState:x},g))});bt.muiSkipListHighlight=!0;function nn(e){return oe("MuiAutocomplete",e)}const B=Q("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var Uo,Vo;const an=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],rn=["ref"],sn=["key"],ln=["key"],cn=e=>{const{classes:o,disablePortal:t,expanded:n,focused:i,fullWidth:u,hasClearIcon:d,hasPopupIcon:l,inputFocused:f,popupOpen:v,size:g}=e,x={root:["root",n&&"expanded",i&&"focused",u&&"fullWidth",d&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",f&&"inputFocused"],tag:["tag",`tagSize${w(g)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",v&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return te(x,nn,o)},un=O("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{fullWidth:n,hasClearIcon:i,hasPopupIcon:u,inputFocused:d,size:l}=t;return[{[`& .${B.tag}`]:o.tag},{[`& .${B.tag}`]:o[`tagSize${w(l)}`]},{[`& .${B.inputRoot}`]:o.inputRoot},{[`& .${B.input}`]:o.input},{[`& .${B.input}`]:d&&o.inputFocused},o.root,n&&o.fullWidth,u&&o.hasPopupIcon,i&&o.hasClearIcon]}})({[`&.${B.focused} .${B.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${B.clearIndicator}`]:{visibility:"visible"}},[`& .${B.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${B.inputRoot}`]:{[`.${B.hasPopupIcon}&, .${B.hasClearIcon}&`]:{paddingRight:30},[`.${B.hasPopupIcon}.${B.hasClearIcon}&`]:{paddingRight:56},[`& .${B.input}`]:{width:0,minWidth:30}},[`& .${Co.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Co.root}.${we.sizeSmall}`]:{[`& .${Co.input}`]:{padding:"2px 4px 3px 0"}},[`& .${jo.root}`]:{padding:9,[`.${B.hasPopupIcon}&, .${B.hasClearIcon}&`]:{paddingRight:39},[`.${B.hasPopupIcon}.${B.hasClearIcon}&`]:{paddingRight:65},[`& .${B.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${B.endAdornment}`]:{right:9}},[`& .${jo.root}.${we.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${B.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ve.root}`]:{paddingTop:19,paddingLeft:8,[`.${B.hasPopupIcon}&, .${B.hasClearIcon}&`]:{paddingRight:39},[`.${B.hasPopupIcon}.${B.hasClearIcon}&`]:{paddingRight:65},[`& .${Ve.input}`]:{padding:"7px 4px"},[`& .${B.endAdornment}`]:{right:9}},[`& .${Ve.root}.${we.sizeSmall}`]:{paddingBottom:1,[`& .${Ve.input}`]:{padding:"2.5px 4px"}},[`& .${we.hiddenLabel}`]:{paddingTop:8},[`& .${Ve.root}.${we.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${B.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ve.root}.${we.hiddenLabel}.${we.sizeSmall}`]:{[`& .${B.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${B.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${B.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${B.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${B.inputRoot}`]:{flexWrap:"wrap"}}}]}),pn=O("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),dn=O(We,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),fn=O(We,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},o)=>s({},o.popupIndicator,e.popupOpen&&o.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),gn=O(pt,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${B.option}`]:o.option},o.popper,t.disablePortal&&o.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),bn=O(po,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>s({},e.typography.body1,{overflow:"auto"})),mn=O("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),hn=O("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),vn=O("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,o)=>o.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${B.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${B.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${B.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:be(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${B.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${B.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),xn=O(bt,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),yn=O("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${B.option}`]:{paddingLeft:24}}),$r=C.forwardRef(function(o,t){var n,i,u,d;const l=Z({props:o,name:"MuiAutocomplete"}),{autoComplete:f=!1,autoHighlight:v=!1,autoSelect:g=!1,blurOnSelect:x=!1,ChipProps:$,className:y,clearIcon:m=Uo||(Uo=c.jsx(qt,{fontSize:"small"})),clearOnBlur:k=!l.freeSolo,clearOnEscape:A=!1,clearText:h="Clear",closeText:P="Close",componentsProps:I={},defaultValue:U=l.multiple?[]:null,disableClearable:z=!1,disableCloseOnSelect:S=!1,disabled:F=!1,disabledItemsFocusable:N=!1,disableListWrap:M=!1,disablePortal:V=!1,filterSelectedOptions:G=!1,forcePopupIcon:R="auto",freeSolo:W=!1,fullWidth:ce=!1,getLimitTagsText:ue=p=>`+${p}`,getOptionLabel:Y,groupBy:pe,handleHomeEndKeys:Le=!l.freeSolo,includeInputInList:re=!1,limitTags:Ie=-1,ListboxComponent:Ce="ul",ListboxProps:Te,loading:Ne=!1,loadingText:se="Loading…",multiple:ee=!1,noOptionsText:ke="No options",openOnFocus:Oe=!1,openText:q="Open",PaperComponent:X=po,PopperComponent:ze=pt,popupIcon:go=Vo||(Vo=c.jsx(Pt,{})),readOnly:ie=!1,renderGroup:qe,renderInput:Ze,renderOption:ne,renderTags:L,selectOnFocus:No=!l.freeSolo,size:D="medium",slotProps:Pe={}}=l,De=K(l,an),{getRootProps:eo,getInputProps:Be,getInputLabelProps:Re,getPopupIndicatorProps:oo,getClearProps:bo,getTagProps:to,getListboxProps:no,getOptionProps:le,value:H,dirty:me,expanded:Xe,id:je,popupOpen:Ee,focused:xe,focusedTag:he,anchorEl:Fe,setAnchorEl:Ye,inputValue:mo,groupedOptions:de}=Qt(s({},l,{componentName:"Autocomplete"})),$e=!z&&!F&&me&&!ie,ye=(!W||R===!0)&&R!==!1,{onMouseDown:He}=Be(),{ref:Se}=Te??{},ao=no(),{ref:ro}=ao,so=K(ao,rn),ho=Oo(ro,Se),_e=Y||(p=>{var T;return(T=p.label)!=null?T:p}),ae=s({},l,{disablePortal:V,expanded:Xe,focused:xe,fullWidth:ce,getOptionLabel:_e,hasClearIcon:$e,hasPopupIcon:ye,inputFocused:he===-1,popupOpen:Ee,size:D}),J=cn(ae);let ve;if(ee&&H.length>0){const p=T=>s({className:J.tag,disabled:F},to(T));L?ve=L(H,p,ae):ve=H.map((T,j)=>{const _=p({index:j}),{key:fe}=_,lo=K(_,sn);return c.jsx($t,s({label:_e(T),size:D},lo,$),fe)})}if(Ie>-1&&Array.isArray(ve)){const p=ve.length-Ie;!xe&&p>0&&(ve=ve.splice(0,Ie),ve.push(c.jsx("span",{className:J.tag,children:ue(p)},ve.length)))}const vo=qe||(p=>c.jsxs("li",{children:[c.jsx(xn,{className:J.groupLabel,ownerState:ae,component:"div",children:p.group}),c.jsx(yn,{className:J.groupUl,ownerState:ae,children:p.children})]},p.key)),yo=ne||((p,T)=>{const{key:j}=p,_=K(p,ln);return c.jsx("li",s({},_,{children:_e(T)}),j)}),io=(p,T)=>{const j=le({option:p,index:T});return yo(s({},j,{className:J.option}),p,{selected:j["aria-selected"],index:T,inputValue:mo},ae)},Je=(n=Pe.clearIndicator)!=null?n:I.clearIndicator,Me=(i=Pe.paper)!=null?i:I.paper,Ue=(u=Pe.popper)!=null?u:I.popper,r=(d=Pe.popupIndicator)!=null?d:I.popupIndicator,a=p=>c.jsx(gn,s({as:ze,disablePortal:V,style:{width:Fe?Fe.clientWidth:null},ownerState:ae,role:"presentation",anchorEl:Fe,open:Ee},Ue,{className:E(J.popper,Ue==null?void 0:Ue.className),children:c.jsx(bn,s({ownerState:ae,as:X},Me,{className:E(J.paper,Me==null?void 0:Me.className),children:p}))}));let b=null;return de.length>0?b=a(c.jsx(vn,s({as:Ce,className:J.listbox,ownerState:ae},so,Te,{ref:ho,children:de.map((p,T)=>pe?vo({key:p.key,group:p.group,children:p.options.map((j,_)=>io(j,p.index+_))}):io(p,T))}))):Ne&&de.length===0?b=a(c.jsx(mn,{className:J.loading,ownerState:ae,children:se})):de.length===0&&!W&&!Ne&&(b=a(c.jsx(hn,{className:J.noOptions,ownerState:ae,role:"presentation",onMouseDown:p=>{p.preventDefault()},children:ke}))),c.jsxs(C.Fragment,{children:[c.jsx(un,s({ref:t,className:E(J.root,y),ownerState:ae},eo(De),{children:Ze({id:je,disabled:F,fullWidth:!0,size:D==="small"?"small":void 0,InputLabelProps:Re(),InputProps:s({ref:Ye,className:J.inputRoot,startAdornment:ve,onClick:p=>{p.target===p.currentTarget&&He(p)}},($e||ye)&&{endAdornment:c.jsxs(pn,{className:J.endAdornment,ownerState:ae,children:[$e?c.jsx(dn,s({},bo(),{"aria-label":h,title:h,ownerState:ae},Je,{className:E(J.clearIndicator,Je==null?void 0:Je.className),children:m})):null,ye?c.jsx(fn,s({},oo(),{disabled:F,"aria-label":Ee?P:q,title:Ee?P:q,ownerState:ae},r,{className:E(J.popupIndicator,r==null?void 0:r.className),children:go})):null]})}),inputProps:s({className:J.input,disabled:F,readOnly:ie},Be())})})),Fe?b:null]})}),Cn=Q("MuiBox",["root"]),Pn=It(),Ir=kt({themeId:Rt,defaultTheme:Pn,defaultClassName:Cn.root,generateClassName:Lt.generate});function Wo(e){return e.substring(2).toLowerCase()}function $n(e,o){return o.documentElement.clientWidth(setTimeout(()=>{f.current=!0},0),()=>{f.current=!1}),[]);const g=Oo(o.ref,l),x=Ae(m=>{const k=v.current;v.current=!1;const A=Po(l.current);if(!f.current||!l.current||"clientX"in m&&$n(m,A))return;if(d.current){d.current=!1;return}let h;m.composedPath?h=m.composedPath().indexOf(l.current)>-1:h=!A.documentElement.contains(m.target)||l.current.contains(m.target),!h&&(t||!k)&&i(m)}),$=m=>k=>{v.current=!0;const A=o.props[m];A&&A(k)},y={ref:g};return u!==!1&&(y[u]=$(u)),C.useEffect(()=>{if(u!==!1){const m=Wo(u),k=Po(l.current),A=()=>{d.current=!0};return k.addEventListener(m,x),k.addEventListener("touchmove",A),()=>{k.removeEventListener(m,x),k.removeEventListener("touchmove",A)}}},[x,u]),n!==!1&&(y[n]=$(n)),C.useEffect(()=>{if(n!==!1){const m=Wo(n),k=Po(l.current);return k.addEventListener(m,x),()=>{k.removeEventListener(m,x)}}},[x,n]),c.jsx(C.Fragment,{children:C.cloneElement(o,y)})}const kn=(e,o)=>s({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},o&&!e.vars&&{colorScheme:e.palette.mode}),Rn=e=>s({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Ln=(e,o=!1)=>{var t;const n={};o&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([d,l])=>{var f;n[e.getColorSchemeSelector(d).replace(/\s*&/,"")]={colorScheme:(f=l.palette)==null?void 0:f.mode}});let i=s({html:kn(e,o),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:s({margin:0},Rn(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const u=(t=e.components)==null||(t=t.MuiCssBaseline)==null?void 0:t.styleOverrides;return u&&(i=[i,u]),i};function kr(e){const o=Z({props:e,name:"MuiCssBaseline"}),{children:t,enableColorScheme:n=!1}=o;return c.jsxs(C.Fragment,{children:[c.jsx(Tt,{styles:i=>Ln(i,n)}),t]})}function Tn(e){return oe("MuiDrawer",e)}Q("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const On=["BackdropProps"],Bn=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],mt=(e,o)=>{const{ownerState:t}=e;return[o.root,(t.variant==="permanent"||t.variant==="persistent")&&o.docked,o.modal]},Sn=e=>{const{classes:o,anchor:t,variant:n}=e,i={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${w(t)}`,n!=="temporary"&&`paperAnchorDocked${w(t)}`]};return te(i,Tn,o)},Mn=O(Ot,{name:"MuiDrawer",slot:"Root",overridesResolver:mt})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),Go=O("div",{shouldForwardProp:dt,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:mt})({flex:"0 0 auto"}),wn=O(po,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.paper,o[`paperAnchor${w(t.anchor)}`],t.variant!=="temporary"&&o[`paperAnchorDocked${w(t.anchor)}`]]}})(({theme:e,ownerState:o})=>s({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},o.anchor==="left"&&{left:0},o.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},o.anchor==="right"&&{right:0},o.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},o.anchor==="left"&&o.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},o.anchor==="top"&&o.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},o.anchor==="right"&&o.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},o.anchor==="bottom"&&o.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),ht={left:"right",right:"left",top:"down",bottom:"up"};function An(e){return["left","right"].indexOf(e)!==-1}function Nn({direction:e},o){return e==="rtl"&&An(o)?ht[o]:o}const Rr=C.forwardRef(function(o,t){const n=Z({props:o,name:"MuiDrawer"}),i=ft(),u=fo(),d={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:l="left",BackdropProps:f,children:v,className:g,elevation:x=16,hideBackdrop:$=!1,ModalProps:{BackdropProps:y}={},onClose:m,open:k=!1,PaperProps:A={},SlideProps:h,TransitionComponent:P=Bt,transitionDuration:I=d,variant:U="temporary"}=n,z=K(n.ModalProps,On),S=K(n,Bn),F=C.useRef(!1);C.useEffect(()=>{F.current=!0},[]);const N=Nn({direction:u?"rtl":"ltr"},l),V=s({},n,{anchor:l,elevation:x,open:k,variant:U},S),G=Sn(V),R=c.jsx(wn,s({elevation:U==="temporary"?x:0,square:!0},A,{className:E(G.paper,A.className),ownerState:V,children:v}));if(U==="permanent")return c.jsx(Go,s({className:E(G.root,G.docked,g),ownerState:V,ref:t},S,{children:R}));const W=c.jsx(P,s({in:k,direction:ht[N],timeout:I,appear:F.current},h,{children:R}));return U==="persistent"?c.jsx(Go,s({className:E(G.root,G.docked,g),ownerState:V,ref:t},S,{children:W})):c.jsx(Mn,s({BackdropProps:s({},f,y,{transitionDuration:I}),className:E(G.root,G.modal,g),open:k,ownerState:V,onClose:m,hideBackdrop:$,ref:t},S,z,{children:W}))});function zn(e){return oe("MuiFab",e)}const Ko=Q("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),Dn=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],jn=e=>{const{color:o,variant:t,classes:n,size:i}=e,u={root:["root",t,`size${w(i)}`,o==="inherit"?"colorInherit":o]},d=te(u,zn,n);return s({},n,d)},En=O(Bo,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>dt(e)||e==="classes",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[t.variant],o[`size${w(t.size)}`],t.color==="inherit"&&o.colorInherit,o[w(t.size)],o[t.color]]}})(({theme:e,ownerState:o})=>{var t,n;return s({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(t=(n=e.palette).getContrastText)==null?void 0:t.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${Ko.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},o.size==="small"&&{width:40,height:40},o.size==="medium"&&{width:48,height:48},o.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},o.variant==="extended"&&o.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},o.variant==="extended"&&o.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},o.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:o})=>s({},o.color!=="inherit"&&o.color!=="default"&&(e.vars||e).palette[o.color]!=null&&{color:(e.vars||e).palette[o.color].contrastText,backgroundColor:(e.vars||e).palette[o.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[o.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[o.color].main}}}),({theme:e})=>({[`&.${Ko.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),Lr=C.forwardRef(function(o,t){const n=Z({props:o,name:"MuiFab"}),{children:i,className:u,color:d="default",component:l="button",disabled:f=!1,disableFocusRipple:v=!1,focusVisibleClassName:g,size:x="large",variant:$="circular"}=n,y=K(n,Dn),m=s({},n,{color:d,component:l,disabled:f,disableFocusRipple:v,size:x,variant:$}),k=jn(m);return c.jsx(En,s({className:E(k.root,u),component:l,disabled:f,focusRipple:!v,focusVisibleClassName:E(k.focusVisible,g),ownerState:m,ref:t},y,{classes:k,children:i}))});function Fn(e){return oe("MuiInputAdornment",e)}const qo=Q("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Xo;const Hn=["children","className","component","disablePointerEvents","disableTypography","position","variant"],_n=(e,o)=>{const{ownerState:t}=e;return[o.root,o[`position${w(t.position)}`],t.disablePointerEvents===!0&&o.disablePointerEvents,o[t.variant]]},Un=e=>{const{classes:o,disablePointerEvents:t,hiddenLabel:n,position:i,size:u,variant:d}=e,l={root:["root",t&&"disablePointerEvents",i&&`position${w(i)}`,d,n&&"hiddenLabel",u&&`size${w(u)}`]};return te(l,Fn,o)},Vn=O("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:_n})(({theme:e,ownerState:o})=>s({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},o.variant==="filled"&&{[`&.${qo.positionStart}&:not(.${qo.hiddenLabel})`]:{marginTop:16}},o.position==="start"&&{marginRight:8},o.position==="end"&&{marginLeft:8},o.disablePointerEvents===!0&&{pointerEvents:"none"})),Tr=C.forwardRef(function(o,t){const n=Z({props:o,name:"MuiInputAdornment"}),{children:i,className:u,component:d="div",disablePointerEvents:l=!1,disableTypography:f=!1,position:v,variant:g}=n,x=K(n,Hn),$=St()||{};let y=g;g&&$.variant,$&&!y&&(y=$.variant);const m=s({},n,{hiddenLabel:$.hiddenLabel,size:$.size,disablePointerEvents:l,position:v,variant:y}),k=Un(m);return c.jsx(Mt.Provider,{value:null,children:c.jsx(Vn,s({as:d,ownerState:m,className:E(k.root,u),ref:t},x,{children:typeof i=="string"&&!f?c.jsx(gt,{color:"text.secondary",children:i}):c.jsxs(C.Fragment,{children:[v==="start"?Xo||(Xo=c.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})});function Wn(e){return oe("MuiLinearProgress",e)}Q("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Gn=["className","color","value","valueBuffer","variant"];let Ke=e=>e,Yo,Jo,Qo,Zo,et,ot;const Ro=4,Kn=So(Yo||(Yo=Ke` 0% { left: -35%; right: 100%; diff --git a/dist/assets/ra-CVwpGQG8.js b/dist/assets/ra-CVwpGQG8.js deleted file mode 100644 index 5a316af..0000000 --- a/dist/assets/ra-CVwpGQG8.js +++ /dev/null @@ -1,94 +0,0 @@ -var xp=e=>{throw TypeError(e)};var Uc=(e,t,r)=>t.has(e)||xp("Cannot "+r);var R=(e,t,r)=>(Uc(e,t,"read from private field"),r?r.call(e):t.get(e)),oe=(e,t,r)=>t.has(e)?xp("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),G=(e,t,r,n)=>(Uc(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ce=(e,t,r)=>(Uc(e,t,"access private method"),r);var ns=(e,t,r,n)=>({set _(i){G(e,t,i,r)},get _(){return R(e,t,n)}});function E0(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Uo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function W6(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var x0={exports:{}},Dl={},C0={exports:{}},pe={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ju=Symbol.for("react.element"),Ub=Symbol.for("react.portal"),zb=Symbol.for("react.fragment"),Vb=Symbol.for("react.strict_mode"),Bb=Symbol.for("react.profiler"),Wb=Symbol.for("react.provider"),Hb=Symbol.for("react.context"),Qb=Symbol.for("react.forward_ref"),qb=Symbol.for("react.suspense"),Kb=Symbol.for("react.memo"),Gb=Symbol.for("react.lazy"),Cp=Symbol.iterator;function Yb(e){return e===null||typeof e!="object"?null:(e=Cp&&e[Cp]||e["@@iterator"],typeof e=="function"?e:null)}var P0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O0=Object.assign,R0={};function no(e,t,r){this.props=e,this.context=t,this.refs=R0,this.updater=r||P0}no.prototype.isReactComponent={};no.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};no.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $0(){}$0.prototype=no.prototype;function _h(e,t,r){this.props=e,this.context=t,this.refs=R0,this.updater=r||P0}var Sh=_h.prototype=new $0;Sh.constructor=_h;O0(Sh,no.prototype);Sh.isPureReactComponent=!0;var Pp=Array.isArray,k0=Object.prototype.hasOwnProperty,bh={current:null},A0={key:!0,ref:!0,__self:!0,__source:!0};function T0(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)k0.call(t,n)&&!A0.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1>>1,ue=I[ne];if(0>>1;nei(Ae,Q))gei(Re,Ae)?(I[ne]=Re,I[ge]=Q,ne=ge):(I[ne]=Ae,I[ve]=Q,ne=ve);else if(gei(Re,Q))I[ne]=Re,I[ge]=Q,ne=ge;else break e}}return K}function i(I,K){var Q=I.sortIndex-K.sortIndex;return Q!==0?Q:I.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,f=null,p=3,m=!1,w=!1,E=!1,b=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(I){for(var K=r(u);K!==null;){if(K.callback===null)n(u);else if(K.startTime<=I)n(u),K.sortIndex=K.expirationTime,t(l,K);else break;K=r(u)}}function _(I){if(E=!1,v(I),!w)if(r(l)!==null)w=!0,X(S);else{var K=r(u);K!==null&&J(_,K.startTime-I)}}function S(I,K){w=!1,E&&(E=!1,y(x),x=-1),m=!0;var Q=p;try{for(v(K),f=r(l);f!==null&&(!(f.expirationTime>K)||I&&!L());){var ne=f.callback;if(typeof ne=="function"){f.callback=null,p=f.priorityLevel;var ue=ne(f.expirationTime<=K);K=e.unstable_now(),typeof ue=="function"?f.callback=ue:f===r(l)&&n(l),v(K)}else n(l);f=r(l)}if(f!==null)var Le=!0;else{var ve=r(u);ve!==null&&J(_,ve.startTime-K),Le=!1}return Le}finally{f=null,p=Q,m=!1}}var g=!1,C=null,x=-1,P=5,O=-1;function L(){return!(e.unstable_now()-OI||125ne?(I.sortIndex=Q,t(u,I),r(l)===null&&I===r(u)&&(E?(y(x),x=-1):E=!0,J(_,Q-ne))):(I.sortIndex=ue,t(l,I),w||m||(w=!0,X(S))),I},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(I){var K=p;return function(){var Q=p;p=K;try{return I.apply(this,arguments)}finally{p=Q}}}})(I0);D0.exports=I0;var lE=D0.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var cE=h,ir=lE;function q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),If=Object.prototype.hasOwnProperty,fE=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Rp={},$p={};function dE(e){return If.call($p,e)?!0:If.call(Rp,e)?!1:fE.test(e)?$p[e]=!0:(Rp[e]=!0,!1)}function hE(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function vE(e,t,r,n){if(t===null||typeof t>"u"||hE(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function jt(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var St={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){St[e]=new jt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];St[t]=new jt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){St[e]=new jt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){St[e]=new jt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){St[e]=new jt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){St[e]=new jt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){St[e]=new jt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){St[e]=new jt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){St[e]=new jt(e,5,!1,e.toLowerCase(),null,!1,!1)});var xh=/[\-:]([a-z])/g;function Ch(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(xh,Ch);St[t]=new jt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(xh,Ch);St[t]=new jt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xh,Ch);St[t]=new jt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){St[e]=new jt(e,1,!1,e.toLowerCase(),null,!1,!1)});St.xlinkHref=new jt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){St[e]=new jt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ph(e,t,r,n){var i=St.hasOwnProperty(t)?St[t]:null;(i!==null?i.type!==0:n||!(2s||i[o]!==a[s]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{Bc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?zo(e):""}function pE(e){switch(e.tag){case 5:return zo(e.type);case 16:return zo("Lazy");case 13:return zo("Suspense");case 19:return zo("SuspenseList");case 0:case 2:case 15:return e=Wc(e.type,!1),e;case 11:return e=Wc(e.type.render,!1),e;case 1:return e=Wc(e.type,!0),e;default:return""}}function zf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case da:return"Fragment";case fa:return"Portal";case jf:return"Profiler";case Oh:return"StrictMode";case Nf:return"Suspense";case Uf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case U0:return(e.displayName||"Context")+".Consumer";case N0:return(e._context.displayName||"Context")+".Provider";case Rh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $h:return t=e.displayName||null,t!==null?t:zf(e.type)||"Memo";case Rn:t=e._payload,e=e._init;try{return zf(e(t))}catch{}}return null}function gE(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return zf(t);case 8:return t===Oh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ri(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function V0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yE(e){var t=V0(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function os(e){e._valueTracker||(e._valueTracker=yE(e))}function B0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=V0(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Bs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Vf(e,t){var r=t.checked;return Je({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ap(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ri(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function W0(e,t){t=t.checked,t!=null&&Ph(e,"checked",t,!1)}function Bf(e,t){W0(e,t);var r=ri(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Wf(e,t.type,r):t.hasOwnProperty("defaultValue")&&Wf(e,t.type,ri(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tp(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Wf(e,t,r){(t!=="number"||Bs(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Vo=Array.isArray;function Ca(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=us.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ko={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mE=["Webkit","ms","Moz","O"];Object.keys(Ko).forEach(function(e){mE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ko[t]=Ko[e]})});function K0(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ko.hasOwnProperty(e)&&Ko[e]?(""+t).trim():t+"px"}function G0(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=K0(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var wE=Je({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function qf(e,t){if(t){if(wE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function Kf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Gf=null;function kh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yf=null,Pa=null,Oa=null;function Mp(e){if(e=zu(e)){if(typeof Yf!="function")throw Error(q(280));var t=e.stateNode;t&&(t=zl(t),Yf(e.stateNode,e.type,t))}}function Y0(e){Pa?Oa?Oa.push(e):Oa=[e]:Pa=e}function J0(){if(Pa){var e=Pa,t=Oa;if(Oa=Pa=null,Mp(e),t)for(e=0;e>>=0,e===0?32:31-(kE(e)/AE|0)|0}var ss=64,ls=4194304;function Bo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function qs(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=Bo(s):(a&=o,a!==0&&(n=Bo(a)))}else o=r&~i,o!==0?n=Bo(o):a!==0&&(n=Bo(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Nu(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kr(t),e[t]=r}function ME(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Yo),Wp=" ",Hp=!1;function y1(e,t){switch(e){case"keyup":return lx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function m1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ha=!1;function fx(e,t){switch(e){case"compositionend":return m1(t);case"keypress":return t.which!==32?null:(Hp=!0,Wp);case"textInput":return e=t.data,e===Wp&&Hp?null:e;default:return null}}function dx(e,t){if(ha)return e==="compositionend"||!jh&&y1(e,t)?(e=p1(),ks=Mh=Hn=null,ha=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Gp(r)}}function b1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?b1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function E1(){for(var e=window,t=Bs();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Bs(e.document)}return t}function Nh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Sx(e){var t=E1(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&b1(r.ownerDocument.documentElement,r)){if(n!==null&&Nh(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=Yp(r,a);var o=Yp(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,va=null,rd=null,Xo=null,nd=!1;function Jp(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;nd||va==null||va!==Bs(n)||(n=va,"selectionStart"in n&&Nh(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Xo&&yu(Xo,n)||(Xo=n,n=Ys(rd,"onSelect"),0ya||(e.current=ld[ya],ld[ya]=null,ya--)}function Ue(e,t){ya++,ld[ya]=e.current,e.current=t}var ni={},Ot=oi(ni),Qt=oi(!1),Vi=ni;function Ga(e,t){var r=e.type.contextTypes;if(!r)return ni;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function qt(e){return e=e.childContextTypes,e!=null}function Xs(){We(Qt),We(Ot)}function ig(e,t,r){if(Ot.current!==ni)throw Error(q(168));Ue(Ot,t),Ue(Qt,r)}function T1(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(q(108,gE(e)||"Unknown",i));return Je({},r,n)}function Zs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ni,Vi=Ot.current,Ue(Ot,e),Ue(Qt,Qt.current),!0}function ag(e,t,r){var n=e.stateNode;if(!n)throw Error(q(169));r?(e=T1(e,t,Vi),n.__reactInternalMemoizedMergedChildContext=e,We(Qt),We(Ot),Ue(Ot,e)):We(Qt),Ue(Qt,r)}var sn=null,Vl=!1,af=!1;function F1(e){sn===null?sn=[e]:sn.push(e)}function Fx(e){Vl=!0,F1(e)}function ui(){if(!af&&sn!==null){af=!0;var e=0,t=$e;try{var r=sn;for($e=1;e>=o,i-=o,cn=1<<32-kr(t)+i|r<x?(P=C,C=null):P=C.sibling;var O=p(y,C,v[x],_);if(O===null){C===null&&(C=P);break}e&&C&&O.alternate===null&&t(y,C),d=a(O,d,x),g===null?S=O:g.sibling=O,g=O,C=P}if(x===v.length)return r(y,C),qe&&yi(y,x),S;if(C===null){for(;xx?(P=C,C=null):P=C.sibling;var L=p(y,C,O.value,_);if(L===null){C===null&&(C=P);break}e&&C&&L.alternate===null&&t(y,C),d=a(L,d,x),g===null?S=L:g.sibling=L,g=L,C=P}if(O.done)return r(y,C),qe&&yi(y,x),S;if(C===null){for(;!O.done;x++,O=v.next())O=f(y,O.value,_),O!==null&&(d=a(O,d,x),g===null?S=O:g.sibling=O,g=O);return qe&&yi(y,x),S}for(C=n(y,C);!O.done;x++,O=v.next())O=m(C,y,x,O.value,_),O!==null&&(e&&O.alternate!==null&&C.delete(O.key===null?x:O.key),d=a(O,d,x),g===null?S=O:g.sibling=O,g=O);return e&&C.forEach(function(F){return t(y,F)}),qe&&yi(y,x),S}function b(y,d,v,_){if(typeof v=="object"&&v!==null&&v.type===da&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case as:e:{for(var S=v.key,g=d;g!==null;){if(g.key===S){if(S=v.type,S===da){if(g.tag===7){r(y,g.sibling),d=i(g,v.props.children),d.return=y,y=d;break e}}else if(g.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Rn&&sg(S)===g.type){r(y,g.sibling),d=i(g,v.props),d.ref=Ao(y,g,v),d.return=y,y=d;break e}r(y,g);break}else t(y,g);g=g.sibling}v.type===da?(d=Ni(v.props.children,y.mode,_,v.key),d.return=y,y=d):(_=js(v.type,v.key,v.props,null,y.mode,_),_.ref=Ao(y,d,v),_.return=y,y=_)}return o(y);case fa:e:{for(g=v.key;d!==null;){if(d.key===g)if(d.tag===4&&d.stateNode.containerInfo===v.containerInfo&&d.stateNode.implementation===v.implementation){r(y,d.sibling),d=i(d,v.children||[]),d.return=y,y=d;break e}else{r(y,d);break}else t(y,d);d=d.sibling}d=hf(v,y.mode,_),d.return=y,y=d}return o(y);case Rn:return g=v._init,b(y,d,g(v._payload),_)}if(Vo(v))return w(y,d,v,_);if(Po(v))return E(y,d,v,_);gs(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,d!==null&&d.tag===6?(r(y,d.sibling),d=i(d,v),d.return=y,y=d):(r(y,d),d=df(v,y.mode,_),d.return=y,y=d),o(y)):r(y,d)}return b}var Ja=I1(!0),j1=I1(!1),rl=oi(null),nl=null,_a=null,Bh=null;function Wh(){Bh=_a=nl=null}function Hh(e){var t=rl.current;We(rl),e._currentValue=t}function dd(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function $a(e,t){nl=e,Bh=_a=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ht=!0),e.firstContext=null)}function yr(e){var t=e._currentValue;if(Bh!==e)if(e={context:e,memoizedValue:t,next:null},_a===null){if(nl===null)throw Error(q(308));_a=e,nl.dependencies={lanes:0,firstContext:e}}else _a=_a.next=e;return t}var Oi=null;function Qh(e){Oi===null?Oi=[e]:Oi.push(e)}function N1(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Qh(t)):(r.next=i.next,i.next=r),t.interleaved=r,wn(e,n)}function wn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var $n=!1;function qh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function U1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function vn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,be&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,wn(e,r)}return i=n.interleaved,i===null?(t.next=t,Qh(n)):(t.next=i.next,i.next=t),n.interleaved=t,wn(e,r)}function Ts(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Th(e,r)}}function lg(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function il(e,t,r,n){var i=e.updateQueue;$n=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?a=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;o=0,c=u=l=null,s=a;do{var p=s.lane,m=s.eventTime;if((n&p)===p){c!==null&&(c=c.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var w=e,E=s;switch(p=t,m=r,E.tag){case 1:if(w=E.payload,typeof w=="function"){f=w.call(m,f,p);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=E.payload,p=typeof w=="function"?w.call(m,f,p):w,p==null)break e;f=Je({},f,p);break e;case 2:$n=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else m={eventTime:m,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=m,l=f):c=c.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Hi|=o,e.lanes=o,e.memoizedState=f}}function cg(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=uf.transition;uf.transition={};try{e(!1),t()}finally{$e=r,uf.transition=n}}function nw(){return mr().memoizedState}function Ix(e,t,r){var n=ei(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},iw(e))aw(t,r);else if(r=N1(e,t,r,n),r!==null){var i=Mt();Ar(r,e,n,i),ow(r,t,n)}}function jx(e,t,r){var n=ei(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(iw(e))aw(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Tr(s,o)){var l=t.interleaved;l===null?(i.next=i,Qh(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=N1(e,t,i,n),r!==null&&(i=Mt(),Ar(r,e,n,i),ow(r,t,n))}}function iw(e){var t=e.alternate;return e===Ye||t!==null&&t===Ye}function aw(e,t){Zo=ol=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function ow(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Th(e,r)}}var ul={readContext:yr,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useInsertionEffect:bt,useLayoutEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useMutableSource:bt,useSyncExternalStore:bt,useId:bt,unstable_isNewReconciler:!1},Nx={readContext:yr,useCallback:function(e,t){return Nr().memoizedState=[e,t===void 0?null:t],e},useContext:yr,useEffect:dg,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ls(4194308,4,X1.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ls(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ls(4,2,e,t)},useMemo:function(e,t){var r=Nr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Nr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Ix.bind(null,Ye,e),[n.memoizedState,e]},useRef:function(e){var t=Nr();return e={current:e},t.memoizedState=e},useState:fg,useDebugValue:tv,useDeferredValue:function(e){return Nr().memoizedState=e},useTransition:function(){var e=fg(!1),t=e[0];return e=Dx.bind(null,e[1]),Nr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ye,i=Nr();if(qe){if(r===void 0)throw Error(q(407));r=r()}else{if(r=t(),vt===null)throw Error(q(349));Wi&30||W1(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,dg(Q1.bind(null,n,a,e),[e]),n.flags|=2048,Cu(9,H1.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Nr(),t=vt.identifierPrefix;if(qe){var r=fn,n=cn;r=(n&~(1<<32-kr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Eu++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Hr]=t,e[_u]=n,gw(e,t,!1,!1),t.stateNode=e;e:{switch(o=Kf(r,n),r){case"dialog":Ve("cancel",e),Ve("close",e),i=n;break;case"iframe":case"object":case"embed":Ve("load",e),i=n;break;case"video":case"audio":for(i=0;ieo&&(t.flags|=128,n=!0,To(a,!1),t.lanes=4194304)}else{if(!n)if(e=al(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),To(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!qe)return Et(t),null}else 2*at()-a.renderingStartTime>eo&&r!==1073741824&&(t.flags|=128,n=!0,To(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=at(),t.sibling=null,r=Ge.current,Ue(Ge,n?r&1|2:r&1),t):(Et(t),null);case 22:case 23:return uv(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?er&1073741824&&(Et(t),t.subtreeFlags&6&&(t.flags|=8192)):Et(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function qx(e,t){switch(zh(t),t.tag){case 1:return qt(t.type)&&Xs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xa(),We(Qt),We(Ot),Yh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gh(t),null;case 13:if(We(Ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));Ya()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return We(Ge),null;case 4:return Xa(),null;case 10:return Hh(t.type._context),null;case 22:case 23:return uv(),null;case 24:return null;default:return null}}var ms=!1,Pt=!1,Kx=typeof WeakSet=="function"?WeakSet:Set,Z=null;function Sa(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){tt(e,t,n)}else r.current=null}function Sd(e,t,r){try{r()}catch(n){tt(e,t,n)}}var Eg=!1;function Gx(e,t){if(id=Ks,e=E1(),Nh(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var m;f!==r||i!==0&&f.nodeType!==3||(s=o+i),f!==a||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===r&&++u===i&&(s=o),p===a&&++c===n&&(l=o),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(ad={focusedElem:e,selectionRange:r},Ks=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var E=w.memoizedProps,b=w.memoizedState,y=t.stateNode,d=y.getSnapshotBeforeUpdate(t.elementType===t.type?E:Er(t.type,E),b);y.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(_){tt(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return w=Eg,Eg=!1,w}function eu(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Sd(t,r,a)}i=i.next}while(i!==n)}}function Hl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function bd(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function ww(e){var t=e.alternate;t!==null&&(e.alternate=null,ww(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Hr],delete t[_u],delete t[sd],delete t[Ax],delete t[Tx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _w(e){return e.tag===5||e.tag===3||e.tag===4}function xg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_w(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ed(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Js));else if(n!==4&&(e=e.child,e!==null))for(Ed(e,t,r),e=e.sibling;e!==null;)Ed(e,t,r),e=e.sibling}function xd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(xd(e,t,r),e=e.sibling;e!==null;)xd(e,t,r),e=e.sibling}var wt=null,Cr=!1;function Cn(e,t,r){for(r=r.child;r!==null;)Sw(e,t,r),r=r.sibling}function Sw(e,t,r){if(qr&&typeof qr.onCommitFiberUnmount=="function")try{qr.onCommitFiberUnmount(Il,r)}catch{}switch(r.tag){case 5:Pt||Sa(r,t);case 6:var n=wt,i=Cr;wt=null,Cn(e,t,r),wt=n,Cr=i,wt!==null&&(Cr?(e=wt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):wt.removeChild(r.stateNode));break;case 18:wt!==null&&(Cr?(e=wt,r=r.stateNode,e.nodeType===8?nf(e.parentNode,r):e.nodeType===1&&nf(e,r),pu(e)):nf(wt,r.stateNode));break;case 4:n=wt,i=Cr,wt=r.stateNode.containerInfo,Cr=!0,Cn(e,t,r),wt=n,Cr=i;break;case 0:case 11:case 14:case 15:if(!Pt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Sd(r,t,o),i=i.next}while(i!==n)}Cn(e,t,r);break;case 1:if(!Pt&&(Sa(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){tt(r,t,s)}Cn(e,t,r);break;case 21:Cn(e,t,r);break;case 22:r.mode&1?(Pt=(n=Pt)||r.memoizedState!==null,Cn(e,t,r),Pt=n):Cn(e,t,r);break;default:Cn(e,t,r)}}function Cg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Kx),t.forEach(function(n){var i=iC.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function br(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=at()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Jx(n/1960))-n,10e?16:e,Qn===null)var n=!1;else{if(e=Qn,Qn=null,cl=0,be&6)throw Error(q(331));var i=be;for(be|=4,Z=e.current;Z!==null;){var a=Z,o=a.child;if(Z.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lat()-av?ji(e,0):iv|=r),Kt(e,t)}function $w(e,t){t===0&&(e.mode&1?(t=ls,ls<<=1,!(ls&130023424)&&(ls=4194304)):t=1);var r=Mt();e=wn(e,t),e!==null&&(Nu(e,t,r),Kt(e,r))}function nC(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),$w(e,r)}function iC(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(q(314))}n!==null&&n.delete(t),$w(e,r)}var kw;kw=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qt.current)Ht=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ht=!1,Hx(e,t,r);Ht=!!(e.flags&131072)}else Ht=!1,qe&&t.flags&1048576&&L1(t,tl,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ms(e,t),e=t.pendingProps;var i=Ga(t,Ot.current);$a(t,r),i=Xh(null,t,n,e,i,r);var a=Zh();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qt(n)?(a=!0,Zs(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,qh(t),i.updater=Wl,t.stateNode=i,i._reactInternals=t,vd(t,n,e,r),t=yd(null,t,n,!0,a,r)):(t.tag=0,qe&&a&&Uh(t),Tt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ms(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=oC(n),e=Er(n,e),i){case 0:t=gd(null,t,n,e,r);break e;case 1:t=_g(null,t,n,e,r);break e;case 11:t=mg(null,t,n,e,r);break e;case 14:t=wg(null,t,n,Er(n.type,e),r);break e}throw Error(q(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Er(n,i),gd(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Er(n,i),_g(e,t,n,i,r);case 3:e:{if(hw(t),e===null)throw Error(q(387));n=t.pendingProps,a=t.memoizedState,i=a.element,U1(e,t),il(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Za(Error(q(423)),t),t=Sg(e,t,n,r,i);break e}else if(n!==i){i=Za(Error(q(424)),t),t=Sg(e,t,n,r,i);break e}else for(rr=Jn(t.stateNode.containerInfo.firstChild),nr=t,qe=!0,Or=null,r=j1(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ya(),n===i){t=_n(e,t,r);break e}Tt(e,t,n,r)}t=t.child}return t;case 5:return z1(t),e===null&&fd(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,od(n,i)?o=null:a!==null&&od(n,a)&&(t.flags|=32),dw(e,t),Tt(e,t,o,r),t.child;case 6:return e===null&&fd(t),null;case 13:return vw(e,t,r);case 4:return Kh(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ja(t,null,n,r):Tt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Er(n,i),mg(e,t,n,i,r);case 7:return Tt(e,t,t.pendingProps,r),t.child;case 8:return Tt(e,t,t.pendingProps.children,r),t.child;case 12:return Tt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Ue(rl,n._currentValue),n._currentValue=o,a!==null)if(Tr(a.value,o)){if(a.children===i.children&&!Qt.current){t=_n(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=vn(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),dd(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(q(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),dd(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Tt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,$a(t,r),i=yr(i),n=n(i),t.flags|=1,Tt(e,t,n,r),t.child;case 14:return n=t.type,i=Er(n,t.pendingProps),i=Er(n.type,i),wg(e,t,n,i,r);case 15:return cw(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Er(n,i),Ms(e,t),t.tag=1,qt(n)?(e=!0,Zs(t)):e=!1,$a(t,r),uw(t,n,i),vd(t,n,i,r),yd(null,t,n,!0,e,r);case 19:return pw(e,t,r);case 22:return fw(e,t,r)}throw Error(q(156,t.tag))};function Aw(e,t){return i1(e,t)}function aC(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pr(e,t,r,n){return new aC(e,t,r,n)}function lv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oC(e){if(typeof e=="function")return lv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Rh)return 11;if(e===$h)return 14}return 2}function ti(e,t){var r=e.alternate;return r===null?(r=pr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function js(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")lv(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case da:return Ni(r.children,i,a,t);case Oh:o=8,i|=8;break;case jf:return e=pr(12,r,t,i|2),e.elementType=jf,e.lanes=a,e;case Nf:return e=pr(13,r,t,i),e.elementType=Nf,e.lanes=a,e;case Uf:return e=pr(19,r,t,i),e.elementType=Uf,e.lanes=a,e;case z0:return ql(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N0:o=10;break e;case U0:o=9;break e;case Rh:o=11;break e;case $h:o=14;break e;case Rn:o=16,n=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=pr(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Ni(e,t,r,n){return e=pr(7,e,n,t),e.lanes=r,e}function ql(e,t,r,n){return e=pr(22,e,n,t),e.elementType=z0,e.lanes=r,e.stateNode={isHidden:!1},e}function df(e,t,r){return e=pr(6,e,null,t),e.lanes=r,e}function hf(e,t,r){return t=pr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uC(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Qc(0),this.expirationTimes=Qc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qc(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function cv(e,t,r,n,i,a,o,s,l){return e=new uC(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=pr(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},qh(a),e}function sC(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Mw)}catch(e){console.error(e)}}Mw(),M0.exports=ar;var Dw=M0.exports;const hC=Dt(Dw),vC=E0({__proto__:null,default:hC},[Dw]);var vv=h.createContext(void 0);vv.displayName="AuthContext";var Xl={loginUrl:"/login",afterLoginUrl:"/"},wr=function(){return h.useContext(vv)},ea=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},qi=typeof window>"u"||"Deno"in globalThis;function fr(){}function pC(e,t){return typeof e=="function"?e(t):e}function $d(e){return typeof e=="number"&&e>=0&&e!==1/0}function Iw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Aa(e,t){return typeof e=="function"?e(t):e}function Rr(e,t){return typeof e=="function"?e(t):e}function Fg(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(n){if(t.queryHash!==pv(o,t.options))return!1}else if(!Ou(t.queryKey,o))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Lg(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(Ki(t.options.mutationKey)!==Ki(a))return!1}else if(!Ou(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function pv(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ki)(e)}function Ki(e){return JSON.stringify(e,(t,r)=>kd(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function Ou(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!Ou(e[r],t[r])):!1}function gv(e,t){if(e===t)return e;const r=Mg(e)&&Mg(t);if(r||kd(e)&&kd(t)){const n=r?e:Object.keys(e),i=n.length,a=r?t:Object.keys(t),o=a.length,s=r?[]:{};let l=0;for(let u=0;u{setTimeout(t,e)})}function Ad(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?gv(e,t):t}function yC(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function mC(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var yv=Symbol();function jw(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===yv?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Ai,Mn,Ta,d0,wC=(d0=class extends ea{constructor(){super();oe(this,Ai);oe(this,Mn);oe(this,Ta);G(this,Ta,t=>{if(!qi&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){R(this,Mn)||this.setEventListener(R(this,Ta))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Mn))==null||t.call(this),G(this,Mn,void 0))}setEventListener(t){var r;G(this,Ta,t),(r=R(this,Mn))==null||r.call(this),G(this,Mn,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){R(this,Ai)!==t&&(G(this,Ai,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof R(this,Ai)=="boolean"?R(this,Ai):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ai=new WeakMap,Mn=new WeakMap,Ta=new WeakMap,d0),mv=new wC,Fa,Dn,La,h0,_C=(h0=class extends ea{constructor(){super();oe(this,Fa,!0);oe(this,Dn);oe(this,La);G(this,La,t=>{if(!qi&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){R(this,Dn)||this.setEventListener(R(this,La))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Dn))==null||t.call(this),G(this,Dn,void 0))}setEventListener(t){var r;G(this,La,t),(r=R(this,Dn))==null||r.call(this),G(this,Dn,t(this.setOnline.bind(this)))}setOnline(t){R(this,Fa)!==t&&(G(this,Fa,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return R(this,Fa)}},Fa=new WeakMap,Dn=new WeakMap,La=new WeakMap,h0),vl=new _C;function Td(){let e,t;const r=new Promise((i,a)=>{e=i,t=a});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}function SC(e){return Math.min(1e3*2**e,3e4)}function Nw(e){return(e??"online")==="online"?vl.isOnline():!0}var Uw=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function vf(e){return e instanceof Uw}function zw(e){let t=!1,r=0,n=!1,i;const a=Td(),o=E=>{var b;n||(p(new Uw(E)),(b=e.abort)==null||b.call(e))},s=()=>{t=!0},l=()=>{t=!1},u=()=>mv.isFocused()&&(e.networkMode==="always"||vl.isOnline())&&e.canRun(),c=()=>Nw(e.networkMode)&&e.canRun(),f=E=>{var b;n||(n=!0,(b=e.onSuccess)==null||b.call(e,E),i==null||i(),a.resolve(E))},p=E=>{var b;n||(n=!0,(b=e.onError)==null||b.call(e,E),i==null||i(),a.reject(E))},m=()=>new Promise(E=>{var b;i=y=>{(n||u())&&E(y)},(b=e.onPause)==null||b.call(e)}).then(()=>{var E;i=void 0,n||(E=e.onContinue)==null||E.call(e)}),w=()=>{if(n)return;let E;const b=r===0?e.initialPromise:void 0;try{E=b??e.fn()}catch(y){E=Promise.reject(y)}Promise.resolve(E).then(f).catch(y=>{var g;if(n)return;const d=e.retry??(qi?0:3),v=e.retryDelay??SC,_=typeof v=="function"?v(r,y):v,S=d===!0||typeof d=="number"&&ru()?void 0:m()).then(()=>{t?p(y):w()})})};return{promise:a,cancel:o,continue:()=>(i==null||i(),a),cancelRetry:s,continueRetry:l,canStart:c,start:()=>(c()?w():m().then(w),a)}}function bC(){let e=[],t=0,r=s=>{s()},n=s=>{s()},i=s=>setTimeout(s,0);const a=s=>{t?e.push(s):i(()=>{r(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{n(()=>{s.forEach(l=>{r(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{i=s}}}var Ke=bC(),Ti,v0,Vw=(v0=class{constructor(){oe(this,Ti)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$d(this.gcTime)&&G(this,Ti,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(qi?1/0:5*60*1e3))}clearGcTimeout(){R(this,Ti)&&(clearTimeout(R(this,Ti)),G(this,Ti,void 0))}},Ti=new WeakMap,v0),Ma,Da,lr,xt,Tu,Fi,xr,an,p0,EC=(p0=class extends Vw{constructor(t){super();oe(this,xr);oe(this,Ma);oe(this,Da);oe(this,lr);oe(this,xt);oe(this,Tu);oe(this,Fi);G(this,Fi,!1),G(this,Tu,t.defaultOptions),this.setOptions(t.options),this.observers=[],G(this,lr,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,G(this,Ma,xC(this.options)),this.state=t.state??R(this,Ma),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=R(this,xt))==null?void 0:t.promise}setOptions(t){this.options={...R(this,Tu),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,lr).remove(this)}setData(t,r){const n=Ad(this.state.data,t,this.options);return ce(this,xr,an).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){ce(this,xr,an).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=R(this,xt))==null?void 0:n.promise;return(i=R(this,xt))==null||i.cancel(t),r?r.then(fr).catch(fr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,Ma))}isActive(){return this.observers.some(t=>Rr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===yv||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Iw(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=R(this,xt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=R(this,xt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),R(this,lr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(R(this,xt)&&(R(this,Fi)?R(this,xt).cancel({revert:!0}):R(this,xt).cancelRetry()),this.scheduleGc()),R(this,lr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ce(this,xr,an).call(this,{type:"invalidate"})}fetch(t,r){var l,u,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(R(this,xt))return R(this,xt).continueRetry(),R(this,xt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(G(this,Fi,!0),n.signal)})},a=()=>{const f=jw(this.options,r),p={queryKey:this.queryKey,meta:this.meta};return i(p),G(this,Fi,!1),this.options.persister?this.options.persister(f,p,this):f(p)},o={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(o),(l=this.options.behavior)==null||l.onFetch(o,this),G(this,Da,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=o.fetchOptions)==null?void 0:u.meta))&&ce(this,xr,an).call(this,{type:"fetch",meta:(c=o.fetchOptions)==null?void 0:c.meta});const s=f=>{var p,m,w,E;vf(f)&&f.silent||ce(this,xr,an).call(this,{type:"error",error:f}),vf(f)||((m=(p=R(this,lr).config).onError)==null||m.call(p,f,this),(E=(w=R(this,lr).config).onSettled)==null||E.call(w,this.state.data,f,this)),this.scheduleGc()};return G(this,xt,zw({initialPromise:r==null?void 0:r.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var p,m,w,E;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(b){s(b);return}(m=(p=R(this,lr).config).onSuccess)==null||m.call(p,f,this),(E=(w=R(this,lr).config).onSettled)==null||E.call(w,f,this.state.error,this),this.scheduleGc()},onError:s,onFail:(f,p)=>{ce(this,xr,an).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{ce(this,xr,an).call(this,{type:"pause"})},onContinue:()=>{ce(this,xr,an).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),R(this,xt).start()}},Ma=new WeakMap,Da=new WeakMap,lr=new WeakMap,xt=new WeakMap,Tu=new WeakMap,Fi=new WeakMap,xr=new WeakSet,an=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Bw(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return vf(i)&&i.revert&&R(this,Da)?{...R(this,Da),fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Ke.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),R(this,lr).notify({query:this,type:"updated",action:t})})},p0);function Bw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Nw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function xC(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Ur,g0,CC=(g0=class extends ea{constructor(t={}){super();oe(this,Ur);this.config=t,G(this,Ur,new Map)}build(t,r,n){const i=r.queryKey,a=r.queryHash??pv(i,r);let o=this.get(a);return o||(o=new EC({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){R(this,Ur).has(t.queryHash)||(R(this,Ur).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=R(this,Ur).get(t.queryHash);r&&(t.destroy(),r===t&&R(this,Ur).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ke.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return R(this,Ur).get(t)}getAll(){return[...R(this,Ur).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Fg(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Fg(t,n)):r}notify(t){Ke.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Ke.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ke.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ur=new WeakMap,g0),zr,kt,Li,Vr,Pn,y0,PC=(y0=class extends Vw{constructor(t){super();oe(this,Vr);oe(this,zr);oe(this,kt);oe(this,Li);this.mutationId=t.mutationId,G(this,kt,t.mutationCache),G(this,zr,[]),this.state=t.state||Ww(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){R(this,zr).includes(t)||(R(this,zr).push(t),this.clearGcTimeout(),R(this,kt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){G(this,zr,R(this,zr).filter(r=>r!==t)),this.scheduleGc(),R(this,kt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){R(this,zr).length||(this.state.status==="pending"?this.scheduleGc():R(this,kt).remove(this))}continue(){var t;return((t=R(this,Li))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,o,s,l,u,c,f,p,m,w,E,b,y,d,v,_,S,g,C;G(this,Li,zw({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(x,P)=>{ce(this,Vr,Pn).call(this,{type:"failed",failureCount:x,error:P})},onPause:()=>{ce(this,Vr,Pn).call(this,{type:"pause"})},onContinue:()=>{ce(this,Vr,Pn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,kt).canRun(this)}));const r=this.state.status==="pending",n=!R(this,Li).canStart();try{if(!r){ce(this,Vr,Pn).call(this,{type:"pending",variables:t,isPaused:n}),await((a=(i=R(this,kt).config).onMutate)==null?void 0:a.call(i,t,this));const P=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t));P!==this.state.context&&ce(this,Vr,Pn).call(this,{type:"pending",context:P,variables:t,isPaused:n})}const x=await R(this,Li).start();return await((u=(l=R(this,kt).config).onSuccess)==null?void 0:u.call(l,x,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,x,t,this.state.context)),await((m=(p=R(this,kt).config).onSettled)==null?void 0:m.call(p,x,null,this.state.variables,this.state.context,this)),await((E=(w=this.options).onSettled)==null?void 0:E.call(w,x,null,t,this.state.context)),ce(this,Vr,Pn).call(this,{type:"success",data:x}),x}catch(x){try{throw await((y=(b=R(this,kt).config).onError)==null?void 0:y.call(b,x,t,this.state.context,this)),await((v=(d=this.options).onError)==null?void 0:v.call(d,x,t,this.state.context)),await((S=(_=R(this,kt).config).onSettled)==null?void 0:S.call(_,void 0,x,this.state.variables,this.state.context,this)),await((C=(g=this.options).onSettled)==null?void 0:C.call(g,void 0,x,t,this.state.context)),x}finally{ce(this,Vr,Pn).call(this,{type:"error",error:x})}}finally{R(this,kt).runNext(this)}}},zr=new WeakMap,kt=new WeakMap,Li=new WeakMap,Vr=new WeakSet,Pn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Ke.batch(()=>{R(this,zr).forEach(n=>{n.onMutationUpdate(t)}),R(this,kt).notify({mutation:this,type:"updated",action:t})})},y0);function Ww(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xt,Fu,m0,OC=(m0=class extends ea{constructor(t={}){super();oe(this,Xt);oe(this,Fu);this.config=t,G(this,Xt,new Map),G(this,Fu,Date.now())}build(t,r,n){const i=new PC({mutationCache:this,mutationId:++ns(this,Fu)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){const r=Ss(t),n=R(this,Xt).get(r)??[];n.push(t),R(this,Xt).set(r,n),this.notify({type:"added",mutation:t})}remove(t){var n;const r=Ss(t);if(R(this,Xt).has(r)){const i=(n=R(this,Xt).get(r))==null?void 0:n.filter(a=>a!==t);i&&(i.length===0?R(this,Xt).delete(r):R(this,Xt).set(r,i))}this.notify({type:"removed",mutation:t})}canRun(t){var n;const r=(n=R(this,Xt).get(Ss(t)))==null?void 0:n.find(i=>i.state.status==="pending");return!r||r===t}runNext(t){var n;const r=(n=R(this,Xt).get(Ss(t)))==null?void 0:n.find(i=>i!==t&&i.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){Ke.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...R(this,Xt).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Lg(r,n))}findAll(t={}){return this.getAll().filter(r=>Lg(t,r))}notify(t){Ke.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Ke.batch(()=>Promise.all(t.map(r=>r.continue().catch(fr))))}},Xt=new WeakMap,Fu=new WeakMap,m0);function Ss(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Ig(e){return{onFetch:(t,r)=>{var c,f,p,m,w;const n=t.options,i=(p=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,a=((m=t.state.data)==null?void 0:m.pages)||[],o=((w=t.state.data)==null?void 0:w.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let E=!1;const b=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?E=!0:t.signal.addEventListener("abort",()=>{E=!0}),t.signal)})},y=jw(t.options,t.fetchOptions),d=async(v,_,S)=>{if(E)return Promise.reject();if(_==null&&v.pages.length)return Promise.resolve(v);const g={queryKey:t.queryKey,pageParam:_,direction:S?"backward":"forward",meta:t.options.meta};b(g);const C=await y(g),{maxPages:x}=t.options,P=S?mC:yC;return{pages:P(v.pages,C,x),pageParams:P(v.pageParams,_,x)}};if(i&&a.length){const v=i==="backward",_=v?RC:jg,S={pages:a,pageParams:o},g=_(n,S);s=await d(S,g,v)}else{const v=e??a.length;do{const _=l===0?o[0]??n.initialPageParam:jg(n,s);if(l>0&&_==null)break;s=await d(s,_),l++}while(l{var E,b;return(b=(E=t.options).persister)==null?void 0:b.call(E,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function jg(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function RC(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var et,In,jn,Ia,ja,Nn,Na,Ua,w0,$C=(w0=class{constructor(e={}){oe(this,et);oe(this,In);oe(this,jn);oe(this,Ia);oe(this,ja);oe(this,Nn);oe(this,Na);oe(this,Ua);G(this,et,e.queryCache||new CC),G(this,In,e.mutationCache||new OC),G(this,jn,e.defaultOptions||{}),G(this,Ia,new Map),G(this,ja,new Map),G(this,Nn,0)}mount(){ns(this,Nn)._++,R(this,Nn)===1&&(G(this,Na,mv.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,et).onFocus())})),G(this,Ua,vl.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,et).onOnline())})))}unmount(){var e,t;ns(this,Nn)._--,R(this,Nn)===0&&((e=R(this,Na))==null||e.call(this),G(this,Na,void 0),(t=R(this,Ua))==null||t.call(this),G(this,Ua,void 0))}isFetching(e){return R(this,et).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,In).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=R(this,et).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=R(this,et).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(Aa(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return R(this,et).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=R(this,et).get(n.queryHash),a=i==null?void 0:i.state.data,o=pC(t,a);if(o!==void 0)return R(this,et).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return Ke.batch(()=>R(this,et).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=R(this,et).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=R(this,et);Ke.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=R(this,et),n={type:"active",...e};return Ke.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=Ke.batch(()=>R(this,et).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(fr).catch(fr)}invalidateQueries(e={},t={}){return Ke.batch(()=>{if(R(this,et).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=Ke.batch(()=>R(this,et).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch(fr)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(fr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=R(this,et).build(this,t);return r.isStaleByTime(Aa(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(fr).catch(fr)}fetchInfiniteQuery(e){return e.behavior=Ig(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(fr).catch(fr)}ensureInfiniteQueryData(e){return e.behavior=Ig(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return vl.isOnline()?R(this,In).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,et)}getMutationCache(){return R(this,In)}getDefaultOptions(){return R(this,jn)}setDefaultOptions(e){G(this,jn,e)}setQueryDefaults(e,t){R(this,Ia).set(Ki(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,Ia).values()];let r={};return t.forEach(n=>{Ou(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){R(this,ja).set(Ki(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,ja).values()];let r={};return t.forEach(n=>{Ou(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,jn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pv(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===yv&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,jn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,et).clear(),R(this,In).clear()}},et=new WeakMap,In=new WeakMap,jn=new WeakMap,Ia=new WeakMap,ja=new WeakMap,Nn=new WeakMap,Na=new WeakMap,Ua=new WeakMap,w0),Ut,me,Lu,At,Mi,za,Un,Br,Mu,Va,Ba,Di,Ii,zn,Wa,Oe,Ho,Fd,Ld,Md,Dd,Id,jd,Nd,Hw,_0,wv=(_0=class extends ea{constructor(t,r){super();oe(this,Oe);oe(this,Ut);oe(this,me);oe(this,Lu);oe(this,At);oe(this,Mi);oe(this,za);oe(this,Un);oe(this,Br);oe(this,Mu);oe(this,Va);oe(this,Ba);oe(this,Di);oe(this,Ii);oe(this,zn);oe(this,Wa,new Set);this.options=r,G(this,Ut,t),G(this,Br,null),G(this,Un,Td()),this.options.experimental_prefetchInRender||R(this,Un).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,me).addObserver(this),Ng(R(this,me),this.options)?ce(this,Oe,Ho).call(this):this.updateResult(),ce(this,Oe,Dd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ud(R(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ud(R(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ce(this,Oe,Id).call(this),ce(this,Oe,jd).call(this),R(this,me).removeObserver(this)}setOptions(t,r){const n=this.options,i=R(this,me);if(this.options=R(this,Ut).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Rr(this.options.enabled,R(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ce(this,Oe,Nd).call(this),R(this,me).setOptions(this.options),n._defaulted&&!hl(this.options,n)&&R(this,Ut).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,me),observer:this});const a=this.hasListeners();a&&Ug(R(this,me),i,this.options,n)&&ce(this,Oe,Ho).call(this),this.updateResult(r),a&&(R(this,me)!==i||Rr(this.options.enabled,R(this,me))!==Rr(n.enabled,R(this,me))||Aa(this.options.staleTime,R(this,me))!==Aa(n.staleTime,R(this,me)))&&ce(this,Oe,Fd).call(this);const o=ce(this,Oe,Ld).call(this);a&&(R(this,me)!==i||Rr(this.options.enabled,R(this,me))!==Rr(n.enabled,R(this,me))||o!==R(this,zn))&&ce(this,Oe,Md).call(this,o)}getOptimisticResult(t){const r=R(this,Ut).getQueryCache().build(R(this,Ut),t),n=this.createResult(r,t);return AC(this,n)&&(G(this,At,n),G(this,za,this.options),G(this,Mi,R(this,me).state)),n}getCurrentResult(){return R(this,At)}trackResult(t,r){const n={};return Object.keys(t).forEach(i=>{Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),r==null||r(i),t[i])})}),n}trackProp(t){R(this,Wa).add(t)}getCurrentQuery(){return R(this,me)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=R(this,Ut).defaultQueryOptions(t),n=R(this,Ut).getQueryCache().build(R(this,Ut),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return ce(this,Oe,Ho).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),R(this,At)))}createResult(t,r){var x;const n=R(this,me),i=this.options,a=R(this,At),o=R(this,Mi),s=R(this,za),u=t!==n?t.state:R(this,Lu),{state:c}=t;let f={...c},p=!1,m;if(r._optimisticResults){const P=this.hasListeners(),O=!P&&Ng(t,r),L=P&&Ug(t,n,r,i);(O||L)&&(f={...f,...Bw(c.data,t.options)}),r._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:w,errorUpdatedAt:E,status:b}=f;if(r.select&&f.data!==void 0)if(a&&f.data===(o==null?void 0:o.data)&&r.select===R(this,Mu))m=R(this,Va);else try{G(this,Mu,r.select),m=r.select(f.data),m=Ad(a==null?void 0:a.data,m,r),G(this,Va,m),G(this,Br,null)}catch(P){G(this,Br,P)}else m=f.data;if(r.placeholderData!==void 0&&m===void 0&&b==="pending"){let P;if(a!=null&&a.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))P=a.data;else if(P=typeof r.placeholderData=="function"?r.placeholderData((x=R(this,Ba))==null?void 0:x.state.data,R(this,Ba)):r.placeholderData,r.select&&P!==void 0)try{P=r.select(P),G(this,Br,null)}catch(O){G(this,Br,O)}P!==void 0&&(b="success",m=Ad(a==null?void 0:a.data,P,r),p=!0)}R(this,Br)&&(w=R(this,Br),m=R(this,Va),E=Date.now(),b="error");const y=f.fetchStatus==="fetching",d=b==="pending",v=b==="error",_=d&&y,S=m!==void 0,C={status:b,fetchStatus:f.fetchStatus,isPending:d,isSuccess:b==="success",isError:v,isInitialLoading:_,isLoading:_,data:m,dataUpdatedAt:f.dataUpdatedAt,error:w,errorUpdatedAt:E,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&!d,isLoadingError:v&&!S,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:v&&S,isStale:_v(t,r),refetch:this.refetch,promise:R(this,Un)};if(this.options.experimental_prefetchInRender){const P=F=>{C.status==="error"?F.reject(C.error):C.data!==void 0&&F.resolve(C.data)},O=()=>{const F=G(this,Un,C.promise=Td());P(F)},L=R(this,Un);switch(L.status){case"pending":t.queryHash===n.queryHash&&P(L);break;case"fulfilled":(C.status==="error"||C.data!==L.value)&&O();break;case"rejected":(C.status!=="error"||C.error!==L.reason)&&O();break}}return C}updateResult(t){const r=R(this,At),n=this.createResult(R(this,me),this.options);if(G(this,Mi,R(this,me).state),G(this,za,this.options),R(this,Mi).data!==void 0&&G(this,Ba,R(this,me)),hl(n,r))return;G(this,At,n);const i={},a=()=>{if(!r)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!R(this,Wa).size)return!0;const l=new Set(s??R(this,Wa));return this.options.throwOnError&&l.add("error"),Object.keys(R(this,At)).some(u=>{const c=u;return R(this,At)[c]!==r[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),ce(this,Oe,Hw).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ce(this,Oe,Dd).call(this)}},Ut=new WeakMap,me=new WeakMap,Lu=new WeakMap,At=new WeakMap,Mi=new WeakMap,za=new WeakMap,Un=new WeakMap,Br=new WeakMap,Mu=new WeakMap,Va=new WeakMap,Ba=new WeakMap,Di=new WeakMap,Ii=new WeakMap,zn=new WeakMap,Wa=new WeakMap,Oe=new WeakSet,Ho=function(t){ce(this,Oe,Nd).call(this);let r=R(this,me).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(fr)),r},Fd=function(){ce(this,Oe,Id).call(this);const t=Aa(this.options.staleTime,R(this,me));if(qi||R(this,At).isStale||!$d(t))return;const n=Iw(R(this,At).dataUpdatedAt,t)+1;G(this,Di,setTimeout(()=>{R(this,At).isStale||this.updateResult()},n))},Ld=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,me)):this.options.refetchInterval)??!1},Md=function(t){ce(this,Oe,jd).call(this),G(this,zn,t),!(qi||Rr(this.options.enabled,R(this,me))===!1||!$d(R(this,zn))||R(this,zn)===0)&&G(this,Ii,setInterval(()=>{(this.options.refetchIntervalInBackground||mv.isFocused())&&ce(this,Oe,Ho).call(this)},R(this,zn)))},Dd=function(){ce(this,Oe,Fd).call(this),ce(this,Oe,Md).call(this,ce(this,Oe,Ld).call(this))},Id=function(){R(this,Di)&&(clearTimeout(R(this,Di)),G(this,Di,void 0))},jd=function(){R(this,Ii)&&(clearInterval(R(this,Ii)),G(this,Ii,void 0))},Nd=function(){const t=R(this,Ut).getQueryCache().build(R(this,Ut),this.options);if(t===R(this,me))return;const r=R(this,me);G(this,me,t),G(this,Lu,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},Hw=function(t){Ke.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(R(this,At))}),R(this,Ut).getQueryCache().notify({query:R(this,me),type:"observerResultsUpdated"})})},_0);function kC(e,t){return Rr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ng(e,t){return kC(e,t)||e.state.data!==void 0&&Ud(e,t,t.refetchOnMount)}function Ud(e,t,r){if(Rr(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&_v(e,t)}return!1}function Ug(e,t,r,n){return(e!==t||Rr(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&_v(e,r)}function _v(e,t){return Rr(t.enabled,e)!==!1&&e.isStaleByTime(Aa(t.staleTime,e))}function AC(e,t){return!hl(e.getCurrentResult(),t)}function zg(e,t){return e.filter(r=>!t.includes(r))}function TC(e,t,r){const n=e.slice(0);return n[t]=r,n}var Ha,cr,Qa,qa,Zt,Vn,Du,Iu,Gt,zd,Vd,Bd,Wd,S0,FC=(S0=class extends ea{constructor(t,r,n){super();oe(this,Gt);oe(this,Ha);oe(this,cr);oe(this,Qa);oe(this,qa);oe(this,Zt);oe(this,Vn);oe(this,Du);oe(this,Iu);G(this,Ha,t),G(this,qa,n),G(this,Qa,[]),G(this,Zt,[]),G(this,cr,[]),this.setQueries(r)}onSubscribe(){this.listeners.size===1&&R(this,Zt).forEach(t=>{t.subscribe(r=>{ce(this,Gt,Bd).call(this,t,r)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,R(this,Zt).forEach(t=>{t.destroy()})}setQueries(t,r,n){G(this,Qa,t),G(this,qa,r),Ke.batch(()=>{const i=R(this,Zt),a=ce(this,Gt,Vd).call(this,R(this,Qa));a.forEach(u=>u.observer.setOptions(u.defaultedQueryOptions,n));const o=a.map(u=>u.observer),s=o.map(u=>u.getCurrentResult()),l=o.some((u,c)=>u!==i[c]);i.length===o.length&&!l||(G(this,Zt,o),G(this,cr,s),this.hasListeners()&&(zg(i,o).forEach(u=>{u.destroy()}),zg(o,i).forEach(u=>{u.subscribe(c=>{ce(this,Gt,Bd).call(this,u,c)})}),ce(this,Gt,Wd).call(this)))})}getCurrentResult(){return R(this,cr)}getQueries(){return R(this,Zt).map(t=>t.getCurrentQuery())}getObservers(){return R(this,Zt)}getOptimisticResult(t,r){const n=ce(this,Gt,Vd).call(this,t),i=n.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions));return[i,a=>ce(this,Gt,zd).call(this,a??i,r),()=>n.map((a,o)=>{const s=i[o];return a.defaultedQueryOptions.notifyOnChangeProps?s:a.observer.trackResult(s,l=>{n.forEach(u=>{u.observer.trackProp(l)})})})]}},Ha=new WeakMap,cr=new WeakMap,Qa=new WeakMap,qa=new WeakMap,Zt=new WeakMap,Vn=new WeakMap,Du=new WeakMap,Iu=new WeakMap,Gt=new WeakSet,zd=function(t,r){return r?((!R(this,Vn)||R(this,cr)!==R(this,Iu)||r!==R(this,Du))&&(G(this,Du,r),G(this,Iu,R(this,cr)),G(this,Vn,gv(R(this,Vn),r(t)))),R(this,Vn)):t},Vd=function(t){const r=new Map(R(this,Zt).map(i=>[i.options.queryHash,i])),n=[];return t.forEach(i=>{const a=R(this,Ha).defaultQueryOptions(i),o=r.get(a.queryHash);if(o)n.push({defaultedQueryOptions:a,observer:o});else{const s=R(this,Zt).find(l=>l.options.queryHash===a.queryHash);n.push({defaultedQueryOptions:a,observer:s??new wv(R(this,Ha),a)})}}),n.sort((i,a)=>t.findIndex(o=>o.queryHash===i.defaultedQueryOptions.queryHash)-t.findIndex(o=>o.queryHash===a.defaultedQueryOptions.queryHash))},Bd=function(t,r){const n=R(this,Zt).indexOf(t);n!==-1&&(G(this,cr,TC(R(this,cr),n,r)),ce(this,Gt,Wd).call(this))},Wd=function(){var t;if(this.hasListeners()){const r=R(this,Vn),n=ce(this,Gt,zd).call(this,R(this,cr),(t=R(this,qa))==null?void 0:t.combine);r!==n&&Ke.batch(()=>{this.listeners.forEach(i=>{i(R(this,cr))})})}},S0),Bn,Wn,zt,ln,gn,Ns,Hd,b0,LC=(b0=class extends ea{constructor(t,r){super();oe(this,gn);oe(this,Bn);oe(this,Wn);oe(this,zt);oe(this,ln);G(this,Bn,t),this.setOptions(r),this.bindMethods(),ce(this,gn,Ns).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=R(this,Bn).defaultMutationOptions(t),hl(this.options,r)||R(this,Bn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:R(this,zt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ki(r.mutationKey)!==Ki(this.options.mutationKey)?this.reset():((n=R(this,zt))==null?void 0:n.state.status)==="pending"&&R(this,zt).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=R(this,zt))==null||t.removeObserver(this)}onMutationUpdate(t){ce(this,gn,Ns).call(this),ce(this,gn,Hd).call(this,t)}getCurrentResult(){return R(this,Wn)}reset(){var t;(t=R(this,zt))==null||t.removeObserver(this),G(this,zt,void 0),ce(this,gn,Ns).call(this),ce(this,gn,Hd).call(this)}mutate(t,r){var n;return G(this,ln,r),(n=R(this,zt))==null||n.removeObserver(this),G(this,zt,R(this,Bn).getMutationCache().build(R(this,Bn),this.options)),R(this,zt).addObserver(this),R(this,zt).execute(t)}},Bn=new WeakMap,Wn=new WeakMap,zt=new WeakMap,ln=new WeakMap,gn=new WeakSet,Ns=function(){var r;const t=((r=R(this,zt))==null?void 0:r.state)??Ww();G(this,Wn,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Hd=function(t){Ke.batch(()=>{var r,n,i,a,o,s,l,u;if(R(this,ln)&&this.hasListeners()){const c=R(this,Wn).variables,f=R(this,Wn).context;(t==null?void 0:t.type)==="success"?((n=(r=R(this,ln)).onSuccess)==null||n.call(r,t.data,c,f),(a=(i=R(this,ln)).onSettled)==null||a.call(i,t.data,null,c,f)):(t==null?void 0:t.type)==="error"&&((s=(o=R(this,ln)).onError)==null||s.call(o,t.error,c,f),(u=(l=R(this,ln)).onSettled)==null||u.call(l,void 0,t.error,c,f))}this.listeners.forEach(c=>{c(R(this,Wn))})})},b0),Qw=h.createContext(void 0),ur=e=>{const t=h.useContext(Qw);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},MC=({client:e,children:t})=>(h.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),sE.jsx(Qw.Provider,{value:e,children:t})),qw=h.createContext(!1),Kw=()=>h.useContext(qw);qw.Provider;function DC(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var IC=h.createContext(DC()),Gw=()=>h.useContext(IC);function Yw(e,t){return typeof e=="function"?e(...t):!!e}function Jw(){}var Xw=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Zw=e=>{h.useEffect(()=>{e.clearReset()},[e])},e_=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&Yw(r,[e.error,n]),t_=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},r_=(e,t)=>e.isLoading&&e.isFetching&&!t,Qd=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,pl=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function jC({queries:e,...t},r){const n=ur(),i=Kw(),a=Gw(),o=h.useMemo(()=>e.map(w=>{const E=n.defaultQueryOptions(w);return E._optimisticResults=i?"isRestoring":"optimistic",E}),[e,n,i]);o.forEach(w=>{t_(w),Xw(w,a)}),Zw(a);const[s]=h.useState(()=>new FC(n,o,t)),[l,u,c]=s.getOptimisticResult(o,t.combine);h.useSyncExternalStore(h.useCallback(w=>i?()=>{}:s.subscribe(Ke.batchCalls(w)),[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),h.useEffect(()=>{s.setQueries(o,t,{listeners:!1})},[o,t,s]);const p=l.some((w,E)=>Qd(o[E],w))?l.flatMap((w,E)=>{const b=o[E];if(b){const y=new wv(n,b);if(Qd(b,w))return pl(b,y,a);r_(w,i)&&pl(b,y,a)}return[]}):[];if(p.length>0)throw Promise.all(p);const m=l.find((w,E)=>{const b=o[E];return b&&e_({result:w,errorResetBoundary:a,throwOnError:b.throwOnError,query:n.getQueryCache().get(b.queryHash)})});if(m!=null&&m.error)throw m.error;return u(c())}function NC(e,t,r){var c,f,p,m,w;const n=ur(),i=Kw(),a=Gw(),o=n.defaultQueryOptions(e);(f=(c=n.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||f.call(c,o),o._optimisticResults=i?"isRestoring":"optimistic",t_(o),Xw(o,a),Zw(a);const s=!n.getQueryCache().get(o.queryHash),[l]=h.useState(()=>new t(n,o)),u=l.getOptimisticResult(o);if(h.useSyncExternalStore(h.useCallback(E=>{const b=i?()=>{}:l.subscribe(Ke.batchCalls(E));return l.updateResult(),b},[l,i]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),h.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),Qd(o,u))throw pl(o,l,a);if(e_({result:u,errorResetBoundary:a,throwOnError:o.throwOnError,query:n.getQueryCache().get(o.queryHash)}))throw u.error;if((m=(p=n.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||m.call(p,o,u),o.experimental_prefetchInRender&&!qi&&r_(u,i)){const E=s?pl(o,l,a):(w=n.getQueryCache().get(o.queryHash))==null?void 0:w.promise;E==null||E.catch(Jw).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?u:l.trackResult(u)}function ta(e,t){return NC(e,wv)}function Bu(e,t){const r=ur(),[n]=h.useState(()=>new LC(r,e));h.useEffect(()=>{n.setOptions(e)},[n,e]);const i=h.useSyncExternalStore(h.useCallback(o=>n.subscribe(Ke.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=h.useCallback((o,s)=>{n.mutate(o,s).catch(Jw)},[n]);if(i.error&&Yw(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}/** - * @remix-run/router v1.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Gi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function zC(){return Math.random().toString(36).substr(2,8)}function Bg(e,t){return{usr:e.state,key:e.key,idx:t}}function Ru(e,t,r,n){return r===void 0&&(r=null),Qe({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Gr(t):t,{state:r,key:t&&t.key||n||zC()})}function Yi(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Gr(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function VC(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s=it.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(Qe({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){s=it.Pop;let b=c(),y=b==null?null:b-u;u=b,l&&l({action:s,location:E.location,delta:y})}function p(b,y){s=it.Push;let d=Ru(E.location,b,y);r&&r(d,b),u=c()+1;let v=Bg(d,u),_=E.createHref(d);try{o.pushState(v,"",_)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(_)}a&&l&&l({action:s,location:E.location,delta:1})}function m(b,y){s=it.Replace;let d=Ru(E.location,b,y);r&&r(d,b),u=c();let v=Bg(d,u),_=E.createHref(d);o.replaceState(v,"",_),a&&l&&l({action:s,location:E.location,delta:0})}function w(b){let y=i.location.origin!=="null"?i.location.origin:i.location.href,d=typeof b=="string"?b:Yi(b);return d=d.replace(/ $/,"%20"),he(y,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,y)}let E={get action(){return s},get location(){return e(i,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Vg,f),l=b,()=>{i.removeEventListener(Vg,f),l=null}},createHref(b){return t(i,b)},createURL:w,encodeLocation(b){let y=w(b);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:m,go(b){return o.go(b)}};return E}var Fe;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Fe||(Fe={}));const BC=new Set(["lazy","caseSensitive","path","id","index","children"]);function WC(e){return e.index===!0}function gl(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((i,a)=>{let o=[...r,String(a)],s=typeof i.id=="string"?i.id:o.join("-");if(he(i.index!==!0||!i.children,"Cannot specify children on an index route"),he(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),WC(i)){let l=Qe({},i,t(i),{id:s});return n[s]=l,l}else{let l=Qe({},i,t(i),{id:s,children:void 0});return n[s]=l,i.children&&(l.children=gl(i.children,t,o,n)),l}})}function _i(e,t,r){return r===void 0&&(r="/"),Us(e,t,r,!1)}function Us(e,t,r,n){let i=typeof t=="string"?Gr(t):t,a=ii(i.pathname||"/",r);if(a==null)return null;let o=n_(e);QC(o);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(he(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=pn([n,l.relativePath]),c=r.concat(l);a.children&&a.children.length>0&&(he(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),n_(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:ZC(u,a.index),routesMeta:c})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of i_(a.path))i(a,o,l)}),t}function i_(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=i_(n.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function QC(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:eP(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const qC=/^:[\w-]+$/,KC=3,GC=2,YC=1,JC=10,XC=-2,Wg=e=>e==="*";function ZC(e,t){let r=e.split("/"),n=r.length;return r.some(Wg)&&(n+=XC),t&&(n+=GC),r.filter(i=>!Wg(i)).reduce((i,a)=>i+(qC.test(a)?KC:a===""?YC:JC),n)}function eP(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function tP(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,i={},a="/",o=[];for(let s=0;s{let{paramName:p,isOptional:m}=c;if(p==="*"){let E=s[f]||"";o=a.slice(0,a.length-E.length).replace(/(.)\/+$/,"$1")}const w=s[f];return m&&!w?u[p]=void 0:u[p]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function rP(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Gi(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function a_(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Gi(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ii(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function nP(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Gr(e):e;return{pathname:r?r.startsWith("/")?r:iP(r,t):t,search:oP(n),hash:uP(i)}}function iP(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function pf(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function o_(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Zl(e,t){let r=o_(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function ec(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Gr(e):(i=Qe({},e),he(!i.pathname||!i.pathname.includes("?"),pf("?","pathname","search",i)),he(!i.pathname||!i.pathname.includes("#"),pf("#","pathname","hash",i)),he(!i.search||!i.search.includes("#"),pf("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=r;else{let f=t.length-1;if(!n&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=nP(i,s),u=o&&o!=="/"&&o.endsWith("/"),c=(a||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const pn=e=>e.join("/").replace(/\/\/+/g,"/"),aP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),oP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,uP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class yl{constructor(t,r,n,i){i===void 0&&(i=!1),this.status=t,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function tc(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const u_=["post","put","patch","delete"],sP=new Set(u_),lP=["get",...u_],cP=new Set(lP),fP=new Set([301,302,303,307,308]),dP=new Set([307,308]),gf={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},hP={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ca={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Sv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vP=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),s_="remix-router-transitions";function pP(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;he(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let k=e.detectErrorBoundary;i=A=>({hasErrorBoundary:k(A)})}else i=vP;let a={},o=gl(e.routes,i,void 0,a),s,l=e.basename||"/",u=e.dataStrategy||wP,c=e.patchRoutesOnNavigation,f=Qe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,m=new Set,w=null,E=null,b=null,y=e.hydrationData!=null,d=_i(o,e.history.location,l),v=null;if(d==null&&!c){let k=Vt(404,{pathname:e.history.location.pathname}),{matches:A,route:D}=ty(o);d=A,v={[D.id]:k}}d&&!e.hydrationData&&Zu(d,o,e.history.location.pathname).active&&(d=null);let _;if(d)if(d.some(k=>k.route.lazy))_=!1;else if(!d.some(k=>k.route.loader))_=!0;else if(f.v7_partialHydration){let k=e.hydrationData?e.hydrationData.loaderData:null,A=e.hydrationData?e.hydrationData.errors:null;if(A){let D=d.findIndex(B=>A[B.route.id]!==void 0);_=d.slice(0,D+1).every(B=>!Gd(B.route,k,A))}else _=d.every(D=>!Gd(D.route,k,A))}else _=e.hydrationData!=null;else if(_=!1,d=[],f.v7_partialHydration){let k=Zu(null,o,e.history.location.pathname);k.active&&k.matches&&(d=k.matches)}let S,g={historyAction:e.history.action,location:e.history.location,matches:d,initialized:_,navigation:gf,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},C=it.Pop,x=!1,P,O=!1,L=new Map,F=null,U=!1,V=!1,N=[],X=new Set,J=new Map,I=0,K=-1,Q=new Map,ne=new Set,ue=new Map,Le=new Map,ve=new Set,Ae=new Map,ge=new Map,Re;function Ie(){if(p=e.history.listen(k=>{let{action:A,location:D,delta:B}=k;if(Re){Re(),Re=void 0;return}Gi(ge.size===0||B!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let te=_p({currentLocation:g.location,nextLocation:D,historyAction:A});if(te&&B!=null){let se=new Promise(de=>{Re=de});e.history.go(B*-1),Xu(te,{state:"blocked",location:D,proceed(){Xu(te,{state:"proceeding",proceed:void 0,reset:void 0,location:D}),se.then(()=>e.history.go(B))},reset(){let de=new Map(g.blockers);de.set(te,ca),Me({blockers:de})}});return}return gt(A,D)}),r){FP(t,L);let k=()=>LP(t,L);t.addEventListener("pagehide",k),F=()=>t.removeEventListener("pagehide",k)}return g.initialized||gt(it.Pop,g.location,{initialHydration:!0}),S}function sr(){p&&p(),F&&F(),m.clear(),P&&P.abort(),g.fetchers.forEach((k,A)=>xn(A)),g.blockers.forEach((k,A)=>wp(A))}function Xr(k){return m.add(k),()=>m.delete(k)}function Me(k,A){A===void 0&&(A={}),g=Qe({},g,k);let D=[],B=[];f.v7_fetcherPersist&&g.fetchers.forEach((te,se)=>{te.state==="idle"&&(ve.has(se)?B.push(se):D.push(se))}),[...m].forEach(te=>te(g,{deletedFetchers:B,viewTransitionOpts:A.viewTransitionOpts,flushSync:A.flushSync===!0})),f.v7_fetcherPersist&&(D.forEach(te=>g.fetchers.delete(te)),B.forEach(te=>xn(te)))}function _e(k,A,D){var B,te;let{flushSync:se}=D===void 0?{}:D,de=g.actionData!=null&&g.navigation.formMethod!=null&&Pr(g.navigation.formMethod)&&g.navigation.state==="loading"&&((B=k.state)==null?void 0:B._isRedirect)!==!0,ie;A.actionData?Object.keys(A.actionData).length>0?ie=A.actionData:ie=null:de?ie=g.actionData:ie=null;let ae=A.loaderData?Zg(g.loaderData,A.loaderData,A.matches||[],A.errors):g.loaderData,re=g.blockers;re.size>0&&(re=new Map(re),re.forEach((Se,mt)=>re.set(mt,ca)));let le=x===!0||g.navigation.formMethod!=null&&Pr(g.navigation.formMethod)&&((te=k.state)==null?void 0:te._isRedirect)!==!0;s&&(o=s,s=void 0),U||C===it.Pop||(C===it.Push?e.history.push(k,k.state):C===it.Replace&&e.history.replace(k,k.state));let ye;if(C===it.Pop){let Se=L.get(g.location.pathname);Se&&Se.has(k.pathname)?ye={currentLocation:g.location,nextLocation:k}:L.has(k.pathname)&&(ye={currentLocation:k,nextLocation:g.location})}else if(O){let Se=L.get(g.location.pathname);Se?Se.add(k.pathname):(Se=new Set([k.pathname]),L.set(g.location.pathname,Se)),ye={currentLocation:g.location,nextLocation:k}}Me(Qe({},A,{actionData:ie,loaderData:ae,historyAction:C,location:k,initialized:!0,navigation:gf,revalidation:"idle",restoreScrollPosition:bp(k,A.matches||g.matches),preventScrollReset:le,blockers:re}),{viewTransitionOpts:ye,flushSync:se===!0}),C=it.Pop,x=!1,O=!1,U=!1,V=!1,N=[]}async function pt(k,A){if(typeof k=="number"){e.history.go(k);return}let D=Kd(g.location,g.matches,l,f.v7_prependBasename,k,f.v7_relativeSplatPath,A==null?void 0:A.fromRouteId,A==null?void 0:A.relative),{path:B,submission:te,error:se}=Hg(f.v7_normalizeFormMethod,!1,D,A),de=g.location,ie=Ru(g.location,B,A&&A.state);ie=Qe({},ie,e.history.encodeLocation(ie));let ae=A&&A.replace!=null?A.replace:void 0,re=it.Push;ae===!0?re=it.Replace:ae===!1||te!=null&&Pr(te.formMethod)&&te.formAction===g.location.pathname+g.location.search&&(re=it.Replace);let le=A&&"preventScrollReset"in A?A.preventScrollReset===!0:void 0,ye=(A&&A.flushSync)===!0,Se=_p({currentLocation:de,nextLocation:ie,historyAction:re});if(Se){Xu(Se,{state:"blocked",location:ie,proceed(){Xu(Se,{state:"proceeding",proceed:void 0,reset:void 0,location:ie}),pt(k,A)},reset(){let mt=new Map(g.blockers);mt.set(Se,ca),Me({blockers:mt})}});return}return await gt(re,ie,{submission:te,pendingError:se,preventScrollReset:le,replace:A&&A.replace,enableViewTransition:A&&A.viewTransition,flushSync:ye})}function nt(){if(He(),Me({revalidation:"loading"}),g.navigation.state!=="submitting"){if(g.navigation.state==="idle"){gt(g.historyAction,g.location,{startUninterruptedRevalidation:!0});return}gt(C||g.historyAction,g.navigation.location,{overrideNavigation:g.navigation,enableViewTransition:O===!0})}}async function gt(k,A,D){P&&P.abort(),P=null,C=k,U=(D&&D.startUninterruptedRevalidation)===!0,Db(g.location,g.matches),x=(D&&D.preventScrollReset)===!0,O=(D&&D.enableViewTransition)===!0;let B=s||o,te=D&&D.overrideNavigation,se=_i(B,A,l),de=(D&&D.flushSync)===!0,ie=Zu(se,B,A.pathname);if(ie.active&&ie.matches&&(se=ie.matches),!se){let{error:je,notFoundMatches:Ce,route:Xe}=Ic(A.pathname);_e(A,{matches:Ce,loaderData:{},errors:{[Xe.id]:je}},{flushSync:de});return}if(g.initialized&&!V&&CP(g.location,A)&&!(D&&D.submission&&Pr(D.submission.formMethod))){_e(A,{matches:se},{flushSync:de});return}P=new AbortController;let ae=ua(e.history,A,P.signal,D&&D.submission),re;if(D&&D.pendingError)re=[Si(se).route.id,{type:Fe.error,error:D.pendingError}];else if(D&&D.submission&&Pr(D.submission.formMethod)){let je=await Zr(ae,A,D.submission,se,ie.active,{replace:D.replace,flushSync:de});if(je.shortCircuited)return;if(je.pendingActionResult){let[Ce,Xe]=je.pendingActionResult;if(tr(Xe)&&tc(Xe.error)&&Xe.error.status===404){P=null,_e(A,{matches:je.matches,loaderData:{},errors:{[Ce]:Xe.error}});return}}se=je.matches||se,re=je.pendingActionResult,te=yf(A,D.submission),de=!1,ie.active=!1,ae=ua(e.history,ae.url,ae.signal)}let{shortCircuited:le,matches:ye,loaderData:Se,errors:mt}=await en(ae,A,se,ie.active,te,D&&D.submission,D&&D.fetcherSubmission,D&&D.replace,D&&D.initialHydration===!0,de,re);le||(P=null,_e(A,Qe({matches:ye||se},ey(re),{loaderData:Se,errors:mt})))}async function Zr(k,A,D,B,te,se){se===void 0&&(se={}),He();let de=AP(A,D);if(Me({navigation:de},{flushSync:se.flushSync===!0}),te){let re=await es(B,A.pathname,k.signal);if(re.type==="aborted")return{shortCircuited:!0};if(re.type==="error"){let le=Si(re.partialMatches).route.id;return{matches:re.partialMatches,pendingActionResult:[le,{type:Fe.error,error:re.error}]}}else if(re.matches)B=re.matches;else{let{notFoundMatches:le,error:ye,route:Se}=Ic(A.pathname);return{matches:le,pendingActionResult:[Se.id,{type:Fe.error,error:ye}]}}}let ie,ae=Qo(B,A);if(!ae.route.action&&!ae.route.lazy)ie={type:Fe.error,error:Vt(405,{method:k.method,pathname:A.pathname,routeId:ae.route.id})};else if(ie=(await ee("action",g,k,[ae],B,null))[ae.route.id],k.signal.aborted)return{shortCircuited:!0};if($i(ie)){let re;return se&&se.replace!=null?re=se.replace:re=Yg(ie.response.headers.get("Location"),new URL(k.url),l)===g.location.pathname+g.location.search,await W(k,ie,!0,{submission:D,replace:re}),{shortCircuited:!0}}if(qn(ie))throw Vt(400,{type:"defer-action"});if(tr(ie)){let re=Si(B,ae.route.id);return(se&&se.replace)!==!0&&(C=it.Push),{matches:B,pendingActionResult:[re.route.id,ie]}}return{matches:B,pendingActionResult:[ae.route.id,ie]}}async function en(k,A,D,B,te,se,de,ie,ae,re,le){let ye=te||yf(A,se),Se=se||de||ny(ye),mt=!U&&(!f.v7_partialHydration||!ae);if(B){if(mt){let Ze=$(le);Me(Qe({navigation:ye},Ze!==void 0?{actionData:Ze}:{}),{flushSync:re})}let xe=await es(D,A.pathname,k.signal);if(xe.type==="aborted")return{shortCircuited:!0};if(xe.type==="error"){let Ze=Si(xe.partialMatches).route.id;return{matches:xe.partialMatches,loaderData:{},errors:{[Ze]:xe.error}}}else if(xe.matches)D=xe.matches;else{let{error:Ze,notFoundMatches:ia,route:Co}=Ic(A.pathname);return{matches:ia,loaderData:{},errors:{[Co.id]:Ze}}}}let je=s||o,[Ce,Xe]=qg(e.history,g,D,Se,A,f.v7_partialHydration&&ae===!0,f.v7_skipActionErrorRevalidation,V,N,X,ve,ue,ne,je,l,le);if(jc(xe=>!(D&&D.some(Ze=>Ze.route.id===xe))||Ce&&Ce.some(Ze=>Ze.route.id===xe)),K=++I,Ce.length===0&&Xe.length===0){let xe=Ju();return _e(A,Qe({matches:D,loaderData:{},errors:le&&tr(le[1])?{[le[0]]:le[1].error}:null},ey(le),xe?{fetchers:new Map(g.fetchers)}:{}),{flushSync:re}),{shortCircuited:!0}}if(mt){let xe={};if(!B){xe.navigation=ye;let Ze=$(le);Ze!==void 0&&(xe.actionData=Ze)}Xe.length>0&&(xe.fetchers=T(Xe)),Me(xe,{flushSync:re})}Xe.forEach(xe=>{Dr(xe.key),xe.controller&&J.set(xe.key,xe.controller)});let na=()=>Xe.forEach(xe=>Dr(xe.key));P&&P.signal.addEventListener("abort",na);let{loaderResults:Eo,fetcherResults:tn}=await fe(g,D,Ce,Xe,k);if(k.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",na),Xe.forEach(xe=>J.delete(xe.key));let Ir=bs(Eo);if(Ir)return await W(k,Ir.result,!0,{replace:ie}),{shortCircuited:!0};if(Ir=bs(tn),Ir)return ne.add(Ir.key),await W(k,Ir.result,!0,{replace:ie}),{shortCircuited:!0};let{loaderData:Nc,errors:xo}=Xg(g,D,Eo,le,Xe,tn,Ae);Ae.forEach((xe,Ze)=>{xe.subscribe(ia=>{(ia||xe.done)&&Ae.delete(Ze)})}),f.v7_partialHydration&&ae&&g.errors&&(xo=Qe({},g.errors,xo));let gi=Ju(),ts=bo(K),rs=gi||ts||Xe.length>0;return Qe({matches:D,loaderData:Nc,errors:xo},rs?{fetchers:new Map(g.fetchers)}:{})}function $(k){if(k&&!tr(k[1]))return{[k[0]]:k[1].data};if(g.actionData)return Object.keys(g.actionData).length===0?null:g.actionData}function T(k){return k.forEach(A=>{let D=g.fetchers.get(A.key),B=Lo(void 0,D?D.data:void 0);g.fetchers.set(A.key,B)}),new Map(g.fetchers)}function M(k,A,D,B){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Dr(k);let te=(B&&B.flushSync)===!0,se=s||o,de=Kd(g.location,g.matches,l,f.v7_prependBasename,D,f.v7_relativeSplatPath,A,B==null?void 0:B.relative),ie=_i(se,de,l),ae=Zu(ie,se,de);if(ae.active&&ae.matches&&(ie=ae.matches),!ie){yt(k,A,Vt(404,{pathname:de}),{flushSync:te});return}let{path:re,submission:le,error:ye}=Hg(f.v7_normalizeFormMethod,!0,de,B);if(ye){yt(k,A,ye,{flushSync:te});return}let Se=Qo(ie,re),mt=(B&&B.preventScrollReset)===!0;if(le&&Pr(le.formMethod)){z(k,A,re,Se,ie,ae.active,te,mt,le);return}ue.set(k,{routeId:A,path:re}),H(k,A,re,Se,ie,ae.active,te,mt,le)}async function z(k,A,D,B,te,se,de,ie,ae){He(),ue.delete(k);function re(ut){if(!ut.route.action&&!ut.route.lazy){let aa=Vt(405,{method:ae.formMethod,pathname:D,routeId:A});return yt(k,A,aa,{flushSync:de}),!0}return!1}if(!se&&re(B))return;let le=g.fetchers.get(k);Ee(k,TP(ae,le),{flushSync:de});let ye=new AbortController,Se=ua(e.history,D,ye.signal,ae);if(se){let ut=await es(te,D,Se.signal);if(ut.type==="aborted")return;if(ut.type==="error"){yt(k,A,ut.error,{flushSync:de});return}else if(ut.matches){if(te=ut.matches,B=Qo(te,D),re(B))return}else{yt(k,A,Vt(404,{pathname:D}),{flushSync:de});return}}J.set(k,ye);let mt=I,Ce=(await ee("action",g,Se,[B],te,k))[B.route.id];if(Se.signal.aborted){J.get(k)===ye&&J.delete(k);return}if(f.v7_fetcherPersist&&ve.has(k)){if($i(Ce)||tr(Ce)){Ee(k,On(void 0));return}}else{if($i(Ce))if(J.delete(k),K>mt){Ee(k,On(void 0));return}else return ne.add(k),Ee(k,Lo(ae)),W(Se,Ce,!1,{fetcherSubmission:ae,preventScrollReset:ie});if(tr(Ce)){yt(k,A,Ce.error);return}}if(qn(Ce))throw Vt(400,{type:"defer-action"});let Xe=g.navigation.location||g.location,na=ua(e.history,Xe,ye.signal),Eo=s||o,tn=g.navigation.state!=="idle"?_i(Eo,g.navigation.location,l):g.matches;he(tn,"Didn't find any matches after fetcher action");let Ir=++I;Q.set(k,Ir);let Nc=Lo(ae,Ce.data);g.fetchers.set(k,Nc);let[xo,gi]=qg(e.history,g,tn,ae,Xe,!1,f.v7_skipActionErrorRevalidation,V,N,X,ve,ue,ne,Eo,l,[B.route.id,Ce]);gi.filter(ut=>ut.key!==k).forEach(ut=>{let aa=ut.key,Ep=g.fetchers.get(aa),Nb=Lo(void 0,Ep?Ep.data:void 0);g.fetchers.set(aa,Nb),Dr(aa),ut.controller&&J.set(aa,ut.controller)}),Me({fetchers:new Map(g.fetchers)});let ts=()=>gi.forEach(ut=>Dr(ut.key));ye.signal.addEventListener("abort",ts);let{loaderResults:rs,fetcherResults:xe}=await fe(g,tn,xo,gi,na);if(ye.signal.aborted)return;ye.signal.removeEventListener("abort",ts),Q.delete(k),J.delete(k),gi.forEach(ut=>J.delete(ut.key));let Ze=bs(rs);if(Ze)return W(na,Ze.result,!1,{preventScrollReset:ie});if(Ze=bs(xe),Ze)return ne.add(Ze.key),W(na,Ze.result,!1,{preventScrollReset:ie});let{loaderData:ia,errors:Co}=Xg(g,tn,rs,void 0,gi,xe,Ae);if(g.fetchers.has(k)){let ut=On(Ce.data);g.fetchers.set(k,ut)}bo(Ir),g.navigation.state==="loading"&&Ir>K?(he(C,"Expected pending action"),P&&P.abort(),_e(g.navigation.location,{matches:tn,loaderData:ia,errors:Co,fetchers:new Map(g.fetchers)})):(Me({errors:Co,loaderData:Zg(g.loaderData,ia,tn,Co),fetchers:new Map(g.fetchers)}),V=!1)}async function H(k,A,D,B,te,se,de,ie,ae){let re=g.fetchers.get(k);Ee(k,Lo(ae,re?re.data:void 0),{flushSync:de});let le=new AbortController,ye=ua(e.history,D,le.signal);if(se){let Ce=await es(te,D,ye.signal);if(Ce.type==="aborted")return;if(Ce.type==="error"){yt(k,A,Ce.error,{flushSync:de});return}else if(Ce.matches)te=Ce.matches,B=Qo(te,D);else{yt(k,A,Vt(404,{pathname:D}),{flushSync:de});return}}J.set(k,le);let Se=I,je=(await ee("loader",g,ye,[B],te,k))[B.route.id];if(qn(je)&&(je=await bv(je,ye.signal,!0)||je),J.get(k)===le&&J.delete(k),!ye.signal.aborted){if(ve.has(k)){Ee(k,On(void 0));return}if($i(je))if(K>Se){Ee(k,On(void 0));return}else{ne.add(k),await W(ye,je,!1,{preventScrollReset:ie});return}if(tr(je)){yt(k,A,je.error);return}he(!qn(je),"Unhandled fetcher deferred data"),Ee(k,On(je.data))}}async function W(k,A,D,B){let{submission:te,fetcherSubmission:se,preventScrollReset:de,replace:ie}=B===void 0?{}:B;A.response.headers.has("X-Remix-Revalidate")&&(V=!0);let ae=A.response.headers.get("Location");he(ae,"Expected a Location header on the redirect Response"),ae=Yg(ae,new URL(k.url),l);let re=Ru(g.location,ae,{_isRedirect:!0});if(r){let Ce=!1;if(A.response.headers.has("X-Remix-Reload-Document"))Ce=!0;else if(Sv.test(ae)){const Xe=e.history.createURL(ae);Ce=Xe.origin!==t.location.origin||ii(Xe.pathname,l)==null}if(Ce){ie?t.location.replace(ae):t.location.assign(ae);return}}P=null;let le=ie===!0||A.response.headers.has("X-Remix-Replace")?it.Replace:it.Push,{formMethod:ye,formAction:Se,formEncType:mt}=g.navigation;!te&&!se&&ye&&Se&&mt&&(te=ny(g.navigation));let je=te||se;if(dP.has(A.response.status)&&je&&Pr(je.formMethod))await gt(le,re,{submission:Qe({},je,{formAction:ae}),preventScrollReset:de||x,enableViewTransition:D?O:void 0});else{let Ce=yf(re,te);await gt(le,re,{overrideNavigation:Ce,fetcherSubmission:se,preventScrollReset:de||x,enableViewTransition:D?O:void 0})}}async function ee(k,A,D,B,te,se){let de,ie={};try{de=await _P(u,k,A,D,B,te,se,a,i)}catch(ae){return B.forEach(re=>{ie[re.route.id]={type:Fe.error,error:ae}}),ie}for(let[ae,re]of Object.entries(de))if(PP(re)){let le=re.result;ie[ae]={type:Fe.redirect,response:EP(le,D,ae,te,l,f.v7_relativeSplatPath)}}else ie[ae]=await bP(re);return ie}async function fe(k,A,D,B,te){let se=k.matches,de=ee("loader",k,te,D,A,null),ie=Promise.all(B.map(async le=>{if(le.matches&&le.match&&le.controller){let Se=(await ee("loader",k,ua(e.history,le.path,le.controller.signal),[le.match],le.matches,le.key))[le.match.route.id];return{[le.key]:Se}}else return Promise.resolve({[le.key]:{type:Fe.error,error:Vt(404,{pathname:le.path})}})})),ae=await de,re=(await ie).reduce((le,ye)=>Object.assign(le,ye),{});return await Promise.all([$P(A,ae,te.signal,se,k.loaderData),kP(A,re,B)]),{loaderResults:ae,fetcherResults:re}}function He(){V=!0,N.push(...jc()),ue.forEach((k,A)=>{J.has(A)&&X.add(A),Dr(A)})}function Ee(k,A,D){D===void 0&&(D={}),g.fetchers.set(k,A),Me({fetchers:new Map(g.fetchers)},{flushSync:(D&&D.flushSync)===!0})}function yt(k,A,D,B){B===void 0&&(B={});let te=Si(g.matches,A);xn(k),Me({errors:{[te.route.id]:D},fetchers:new Map(g.fetchers)},{flushSync:(B&&B.flushSync)===!0})}function Yu(k){return f.v7_fetcherPersist&&(Le.set(k,(Le.get(k)||0)+1),ve.has(k)&&ve.delete(k)),g.fetchers.get(k)||hP}function xn(k){let A=g.fetchers.get(k);J.has(k)&&!(A&&A.state==="loading"&&Q.has(k))&&Dr(k),ue.delete(k),Q.delete(k),ne.delete(k),ve.delete(k),X.delete(k),g.fetchers.delete(k)}function _o(k){if(f.v7_fetcherPersist){let A=(Le.get(k)||0)-1;A<=0?(Le.delete(k),ve.add(k)):Le.set(k,A)}else xn(k);Me({fetchers:new Map(g.fetchers)})}function Dr(k){let A=J.get(k);A&&(A.abort(),J.delete(k))}function So(k){for(let A of k){let D=Yu(A),B=On(D.data);g.fetchers.set(A,B)}}function Ju(){let k=[],A=!1;for(let D of ne){let B=g.fetchers.get(D);he(B,"Expected fetcher: "+D),B.state==="loading"&&(ne.delete(D),k.push(D),A=!0)}return So(k),A}function bo(k){let A=[];for(let[D,B]of Q)if(B0}function Lb(k,A){let D=g.blockers.get(k)||ca;return ge.get(k)!==A&&ge.set(k,A),D}function wp(k){g.blockers.delete(k),ge.delete(k)}function Xu(k,A){let D=g.blockers.get(k)||ca;he(D.state==="unblocked"&&A.state==="blocked"||D.state==="blocked"&&A.state==="blocked"||D.state==="blocked"&&A.state==="proceeding"||D.state==="blocked"&&A.state==="unblocked"||D.state==="proceeding"&&A.state==="unblocked","Invalid blocker state transition: "+D.state+" -> "+A.state);let B=new Map(g.blockers);B.set(k,A),Me({blockers:B})}function _p(k){let{currentLocation:A,nextLocation:D,historyAction:B}=k;if(ge.size===0)return;ge.size>1&&Gi(!1,"A router only supports one blocker at a time");let te=Array.from(ge.entries()),[se,de]=te[te.length-1],ie=g.blockers.get(se);if(!(ie&&ie.state==="proceeding")&&de({currentLocation:A,nextLocation:D,historyAction:B}))return se}function Ic(k){let A=Vt(404,{pathname:k}),D=s||o,{matches:B,route:te}=ty(D);return jc(),{notFoundMatches:B,route:te,error:A}}function jc(k){let A=[];return Ae.forEach((D,B)=>{(!k||k(B))&&(D.cancel(),A.push(B),Ae.delete(B))}),A}function Mb(k,A,D){if(w=k,b=A,E=D||null,!y&&g.navigation===gf){y=!0;let B=bp(g.location,g.matches);B!=null&&Me({restoreScrollPosition:B})}return()=>{w=null,b=null,E=null}}function Sp(k,A){return E&&E(k,A.map(B=>HC(B,g.loaderData)))||k.key}function Db(k,A){if(w&&b){let D=Sp(k,A);w[D]=b()}}function bp(k,A){if(w){let D=Sp(k,A),B=w[D];if(typeof B=="number")return B}return null}function Zu(k,A,D){if(c)if(k){if(Object.keys(k[0].params).length>0)return{active:!0,matches:Us(A,D,l,!0)}}else return{active:!0,matches:Us(A,D,l,!0)||[]};return{active:!1,matches:null}}async function es(k,A,D){if(!c)return{type:"success",matches:k};let B=k;for(;;){let te=s==null,se=s||o,de=a;try{await c({path:A,matches:B,patch:(re,le)=>{D.aborted||Gg(re,le,se,de,i)}})}catch(re){return{type:"error",error:re,partialMatches:B}}finally{te&&!D.aborted&&(o=[...o])}if(D.aborted)return{type:"aborted"};let ie=_i(se,A,l);if(ie)return{type:"success",matches:ie};let ae=Us(se,A,l,!0);if(!ae||B.length===ae.length&&B.every((re,le)=>re.route.id===ae[le].route.id))return{type:"success",matches:null};B=ae}}function Ib(k){a={},s=gl(k,i,void 0,a)}function jb(k,A){let D=s==null;Gg(k,A,s||o,a,i),D&&(o=[...o],Me({}))}return S={get basename(){return l},get future(){return f},get state(){return g},get routes(){return o},get window(){return t},initialize:Ie,subscribe:Xr,enableScrollRestoration:Mb,navigate:pt,fetch:M,revalidate:nt,createHref:k=>e.history.createHref(k),encodeLocation:k=>e.history.encodeLocation(k),getFetcher:Yu,deleteFetcher:_o,dispose:sr,getBlocker:Lb,deleteBlocker:wp,patchRoutes:jb,_internalFetchControllers:J,_internalActiveDeferreds:Ae,_internalSetRoutes:Ib},S}function gP(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Kd(e,t,r,n,i,a,o,s){let l,u;if(o){l=[];for(let f of t)if(l.push(f),f.route.id===o){u=f;break}}else l=t,u=t[t.length-1];let c=ec(i||".",Zl(l,a),ii(e.pathname,r)||e.pathname,s==="path");if(i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u){let f=Ev(c.search);if(u.route.index&&!f)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&f){let p=new URLSearchParams(c.search),m=p.getAll("index");p.delete("index"),m.filter(E=>E).forEach(E=>p.append("index",E));let w=p.toString();c.search=w?"?"+w:""}}return n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:pn([r,c.pathname])),Yi(c)}function Hg(e,t,r,n){if(!n||!gP(n))return{path:r};if(n.formMethod&&!RP(n.formMethod))return{path:r,error:Vt(405,{method:n.formMethod})};let i=()=>({path:r,error:Vt(400,{type:"invalid-body"})}),a=n.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=f_(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Pr(o))return i();let p=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((m,w)=>{let[E,b]=w;return""+m+E+"="+b+` -`},""):String(n.body);return{path:r,submission:{formMethod:o,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:p}}}else if(n.formEncType==="application/json"){if(!Pr(o))return i();try{let p=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:s,formEncType:n.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}he(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=Yd(n.formData),u=n.formData;else if(n.body instanceof FormData)l=Yd(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=Jg(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=Jg(l)}catch{return i()}let c={formMethod:o,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Pr(c.formMethod))return{path:r,submission:c};let f=Gr(r);return t&&f.search&&Ev(f.search)&&l.append("index",""),f.search="?"+l,{path:Yi(f),submission:c}}function Qg(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(i=>i.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function qg(e,t,r,n,i,a,o,s,l,u,c,f,p,m,w,E){let b=E?tr(E[1])?E[1].error:E[1].data:void 0,y=e.createURL(t.location),d=e.createURL(i),v=r;a&&t.errors?v=Qg(r,Object.keys(t.errors)[0],!0):E&&tr(E[1])&&(v=Qg(r,E[0]));let _=E?E[1].statusCode:void 0,S=o&&_&&_>=400,g=v.filter((x,P)=>{let{route:O}=x;if(O.lazy)return!0;if(O.loader==null)return!1;if(a)return Gd(O,t.loaderData,t.errors);if(yP(t.loaderData,t.matches[P],x)||l.some(U=>U===x.route.id))return!0;let L=t.matches[P],F=x;return Kg(x,Qe({currentUrl:y,currentParams:L.params,nextUrl:d,nextParams:F.params},n,{actionResult:b,actionStatus:_,defaultShouldRevalidate:S?!1:s||y.pathname+y.search===d.pathname+d.search||y.search!==d.search||l_(L,F)}))}),C=[];return f.forEach((x,P)=>{if(a||!r.some(V=>V.route.id===x.routeId)||c.has(P))return;let O=_i(m,x.path,w);if(!O){C.push({key:P,routeId:x.routeId,path:x.path,matches:null,match:null,controller:null});return}let L=t.fetchers.get(P),F=Qo(O,x.path),U=!1;p.has(P)?U=!1:u.has(P)?(u.delete(P),U=!0):L&&L.state!=="idle"&&L.data===void 0?U=s:U=Kg(F,Qe({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:d,nextParams:r[r.length-1].params},n,{actionResult:b,actionStatus:_,defaultShouldRevalidate:S?!1:s})),U&&C.push({key:P,routeId:x.routeId,path:x.path,matches:O,match:F,controller:new AbortController})}),[g,C]}function Gd(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,i=r!=null&&r[e.id]!==void 0;return!n&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!i}function yP(e,t,r){let n=!t||r.route.id!==t.route.id,i=e[r.route.id]===void 0;return n||i}function l_(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Kg(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function Gg(e,t,r,n,i){var a;let o;if(e){let u=n[e];he(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),o=u.children}else o=r;let s=t.filter(u=>!o.some(c=>c_(u,c))),l=gl(s,i,[e||"_","patch",String(((a=o)==null?void 0:a.length)||"0")],n);o.push(...l)}function c_(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var i;return(i=t.children)==null?void 0:i.some(a=>c_(r,a))}):!1}async function mP(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let i=r[e.id];he(i,"No route found in manifest");let a={};for(let o in n){let l=i[o]!==void 0&&o!=="hasErrorBoundary";Gi(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!BC.has(o)&&(a[o]=n[o])}Object.assign(i,a),Object.assign(i,Qe({},t(i),{lazy:void 0}))}async function wP(e){let{matches:t}=e,r=t.filter(i=>i.shouldLoad);return(await Promise.all(r.map(i=>i.resolve()))).reduce((i,a,o)=>Object.assign(i,{[r[o].route.id]:a}),{})}async function _P(e,t,r,n,i,a,o,s,l,u){let c=a.map(m=>m.route.lazy?mP(m.route,l,s):void 0),f=a.map((m,w)=>{let E=c[w],b=i.some(d=>d.route.id===m.route.id);return Qe({},m,{shouldLoad:b,resolve:async d=>(d&&n.method==="GET"&&(m.route.lazy||m.route.loader)&&(b=!0),b?SP(t,n,m,E,d,u):Promise.resolve({type:Fe.data,result:void 0}))})}),p=await e({matches:f,request:n,params:a[0].params,fetcherKey:o,context:u});try{await Promise.all(c)}catch{}return p}async function SP(e,t,r,n,i,a){let o,s,l=u=>{let c,f=new Promise((w,E)=>c=E);s=()=>c(),t.signal.addEventListener("abort",s);let p=w=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):u({request:t,params:r.params,context:a},...w!==void 0?[w]:[]),m=(async()=>{try{return{type:"data",result:await(i?i(E=>p(E)):p())}}catch(w){return{type:"error",result:w}}})();return Promise.race([m,f])};try{let u=r.route[e];if(n)if(u){let c,[f]=await Promise.all([l(u).catch(p=>{c=p}),n]);if(c!==void 0)throw c;o=f}else if(await n,u=r.route[e],u)o=await l(u);else if(e==="action"){let c=new URL(t.url),f=c.pathname+c.search;throw Vt(405,{method:t.method,pathname:f,routeId:r.route.id})}else return{type:Fe.data,result:void 0};else if(u)o=await l(u);else{let c=new URL(t.url),f=c.pathname+c.search;throw Vt(404,{pathname:f})}he(o.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:Fe.error,result:u}}finally{s&&t.signal.removeEventListener("abort",s)}return o}async function bP(e){let{result:t,type:r}=e;if(d_(t)){let u;try{let c=t.headers.get("Content-Type");c&&/\bapplication\/json\b/.test(c)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(c){return{type:Fe.error,error:c}}return r===Fe.error?{type:Fe.error,error:new yl(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:Fe.data,data:u,statusCode:t.status,headers:t.headers}}if(r===Fe.error){if(ry(t)){var n;if(t.data instanceof Error){var i;return{type:Fe.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new yl(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:Fe.error,error:t,statusCode:tc(t)?t.status:void 0}}if(OP(t)){var a,o;return{type:Fe.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((o=t.init)==null?void 0:o.headers)&&new Headers(t.init.headers)}}if(ry(t)){var s,l;return{type:Fe.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:Fe.data,data:t}}function EP(e,t,r,n,i,a){let o=e.headers.get("Location");if(he(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!Sv.test(o)){let s=n.slice(0,n.findIndex(l=>l.route.id===r)+1);o=Kd(new URL(t.url),s,i,!0,o,a),e.headers.set("Location",o)}return e}function Yg(e,t,r){if(Sv.test(e)){let n=e,i=n.startsWith("//")?new URL(t.protocol+n):new URL(n),a=ii(i.pathname,r)!=null;if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}return e}function ua(e,t,r,n){let i=e.createURL(f_(t)).toString(),a={signal:r};if(n&&Pr(n.formMethod)){let{formMethod:o,formEncType:s}=n;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(n.json)):s==="text/plain"?a.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?a.body=Yd(n.formData):a.body=n.formData}return new Request(i,a)}function Yd(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function Jg(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function xP(e,t,r,n,i){let a={},o=null,s,l=!1,u={},c=r&&tr(r[1])?r[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let p=f.route.id,m=t[p];if(he(!$i(m),"Cannot handle redirect results in processLoaderData"),tr(m)){let w=m.error;c!==void 0&&(w=c,c=void 0),o=o||{};{let E=Si(e,p);o[E.route.id]==null&&(o[E.route.id]=w)}a[p]=void 0,l||(l=!0,s=tc(m.error)?m.error.status:500),m.headers&&(u[p]=m.headers)}else qn(m)?(n.set(p,m.deferredData),a[p]=m.deferredData.data,m.statusCode!=null&&m.statusCode!==200&&!l&&(s=m.statusCode),m.headers&&(u[p]=m.headers)):(a[p]=m.data,m.statusCode&&m.statusCode!==200&&!l&&(s=m.statusCode),m.headers&&(u[p]=m.headers))}),c!==void 0&&r&&(o={[r[0]]:c},a[r[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:u}}function Xg(e,t,r,n,i,a,o){let{loaderData:s,errors:l}=xP(t,r,n,o);return i.forEach(u=>{let{key:c,match:f,controller:p}=u,m=a[c];if(he(m,"Did not find corresponding fetcher result"),!(p&&p.signal.aborted))if(tr(m)){let w=Si(e.matches,f==null?void 0:f.route.id);l&&l[w.route.id]||(l=Qe({},l,{[w.route.id]:m.error})),e.fetchers.delete(c)}else if($i(m))he(!1,"Unhandled fetcher revalidation redirect");else if(qn(m))he(!1,"Unhandled fetcher deferred data");else{let w=On(m.data);e.fetchers.set(c,w)}}),{loaderData:s,errors:l}}function Zg(e,t,r,n){let i=Qe({},t);for(let a of r){let o=a.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(i[o]=t[o]):e[o]!==void 0&&a.route.loader&&(i[o]=e[o]),n&&n.hasOwnProperty(o))break}return i}function ey(e){return e?tr(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Si(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function ty(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Vt(e,t){let{pathname:r,routeId:n,method:i,type:a,message:o}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&r&&n?l="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",l='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",i&&r&&n?l="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new yl(e||500,s,new Error(l),!0)}function bs(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,i]=t[r];if($i(i))return{key:n,result:i}}}function f_(e){let t=typeof e=="string"?Gr(e):e;return Yi(Qe({},t,{hash:""}))}function CP(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function PP(e){return d_(e.result)&&fP.has(e.result.status)}function qn(e){return e.type===Fe.deferred}function tr(e){return e.type===Fe.error}function $i(e){return(e&&e.type)===Fe.redirect}function ry(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function OP(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function d_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function RP(e){return cP.has(e.toLowerCase())}function Pr(e){return sP.has(e.toLowerCase())}async function $P(e,t,r,n,i){let a=Object.entries(t);for(let o=0;o(p==null?void 0:p.route.id)===s);if(!u)continue;let c=n.find(p=>p.route.id===u.route.id),f=c!=null&&!l_(c,u)&&(i&&i[u.route.id])!==void 0;qn(l)&&f&&await bv(l,r,!1).then(p=>{p&&(t[s]=p)})}}async function kP(e,t,r){for(let n=0;n(u==null?void 0:u.route.id)===a)&&qn(s)&&(he(o,"Expected an AbortController for revalidating fetcher deferred result"),await bv(s,o.signal,!0).then(u=>{u&&(t[i]=u)}))}}async function bv(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:Fe.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Fe.error,error:i}}return{type:Fe.data,data:e.deferredData.data}}}function Ev(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Qo(e,t){let r=typeof t=="string"?Gr(t).search:t.search;if(e[e.length-1].route.index&&Ev(r||""))return e[e.length-1];let n=o_(e);return n[n.length-1]}function ny(e){let{formMethod:t,formAction:r,formEncType:n,text:i,formData:a,json:o}=e;if(!(!t||!r||!n)){if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}}}function yf(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function AP(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Lo(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function TP(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function On(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function FP(e,t){try{let r=e.sessionStorage.getItem(s_);if(r){let n=JSON.parse(r);for(let[i,a]of Object.entries(n||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function LP(e,t){if(t.size>0){let r={};for(let[n,i]of t)r[n]=[...i];try{e.sessionStorage.setItem(s_,JSON.stringify(r))}catch(n){Gi(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** - * React Router v6.27.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var t=1;tqd(e,a_(t)),[t,e])}function v_(e){h.useContext(si).static||h.useLayoutEffect(e)}function ci(){let{isDataRoute:e}=h.useContext(bn);return e?qP():DP()}function DP(){li()||he(!1);let e=h.useContext(Wu),{basename:t,future:r,navigator:n}=h.useContext(si),{matches:i}=h.useContext(bn),{pathname:a}=Yt(),o=JSON.stringify(Zl(i,r.v7_relativeSplatPath)),s=h.useRef(!1);return v_(()=>{s.current=!0}),h.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){n.go(u);return}let f=ec(u,JSON.parse(o),a,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:pn([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,o,a,e])}function p_(){let{matches:e}=h.useContext(bn),t=e[e.length-1];return t?t.params:{}}function g_(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=h.useContext(si),{matches:i}=h.useContext(bn),{pathname:a}=Yt(),o=JSON.stringify(Zl(i,n.v7_relativeSplatPath));return h.useMemo(()=>ec(e,JSON.parse(o),a,r==="path"),[e,o,a,r])}function IP(e,t){return y_(e,t)}function y_(e,t,r,n){li()||he(!1);let{navigator:i}=h.useContext(si),{matches:a}=h.useContext(bn),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=Yt(),c;if(t){var f;let b=typeof t=="string"?Gr(t):t;l==="/"||(f=b.pathname)!=null&&f.startsWith(l)||he(!1),c=b}else c=u;let p=c.pathname||"/",m=p;if(l!=="/"){let b=l.replace(/^\//,"").split("/");m="/"+p.replace(/^\//,"").split("/").slice(b.length).join("/")}let w=_i(e,{pathname:m}),E=VP(w&&w.map(b=>Object.assign({},b,{params:Object.assign({},s,b.params),pathname:pn([l,i.encodeLocation?i.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:pn([l,i.encodeLocation?i.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),a,r,n);return t&&E?h.createElement(rc.Provider,{value:{location:Ji({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:it.Pop}},E):E}function jP(){let e=WP(),t=tc(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),r?h.createElement("pre",{style:i},r):null,null)}const NP=h.createElement(jP,null);class UP extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?h.createElement(bn.Provider,{value:this.props.routeContext},h.createElement(h_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function zP(e){let{routeContext:t,match:r,children:n}=e,i=h.useContext(Wu);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),h.createElement(bn.Provider,{value:t},n)}function VP(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,s=(i=r)==null?void 0:i.errors;if(s!=null){let c=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||he(!1),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,f,p)=>{let m,w=!1,E=null,b=null;r&&(m=s&&f.route.id?s[f.route.id]:void 0,E=f.route.errorElement||NP,l&&(u<0&&p===0?(w=!0,b=null):u===p&&(w=!0,b=f.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,p+1)),d=()=>{let v;return m?v=E:w?v=b:f.route.Component?v=h.createElement(f.route.Component,null):f.route.element?v=f.route.element:v=c,h.createElement(zP,{match:f,routeContext:{outlet:c,matches:y,isDataRoute:r!=null},children:v})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?h.createElement(UP,{location:r.location,revalidation:r.revalidation,component:E,error:m,children:d(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):d()},null)}var Cv=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Cv||{}),$u=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}($u||{});function m_(e){let t=h.useContext(Wu);return t||he(!1),t}function w_(e){let t=h.useContext(xv);return t||he(!1),t}function BP(e){let t=h.useContext(bn);return t||he(!1),t}function __(e){let t=BP(),r=t.matches[t.matches.length-1];return r.route.id||he(!1),r.route.id}function WP(){var e;let t=h.useContext(h_),r=w_($u.UseRouteError),n=__($u.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let HP=0;function QP(e){let{router:t,basename:r}=m_(Cv.UseBlocker),n=w_($u.UseBlocker),[i,a]=h.useState(""),o=h.useCallback(s=>{if(typeof e!="function")return!!e;if(r==="/")return e(s);let{currentLocation:l,nextLocation:u,historyAction:c}=s;return e({currentLocation:Ji({},l,{pathname:ii(l.pathname,r)||l.pathname}),nextLocation:Ji({},u,{pathname:ii(u.pathname,r)||u.pathname}),historyAction:c})},[r,e]);return h.useEffect(()=>{let s=String(++HP);return a(s),()=>t.deleteBlocker(s)},[t]),h.useEffect(()=>{i!==""&&t.getBlocker(i,o)},[t,i,o]),i&&n.blockers.has(i)?n.blockers.get(i):ca}function qP(){let{router:e}=m_(Cv.UseNavigateStable),t=__($u.UseNavigateStable),r=h.useRef(!1);return v_(()=>{r.current=!0}),h.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ji({fromRouteId:t},a)))},[e,t])}function KP(e){let{to:t,replace:r,state:n,relative:i}=e;li()||he(!1);let{future:a,static:o}=h.useContext(si),{matches:s}=h.useContext(bn),{pathname:l}=Yt(),u=ci(),c=ec(t,Zl(s,a.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(c);return h.useEffect(()=>u(JSON.parse(f),{replace:r,state:n,relative:i}),[u,f,i,r,n]),null}function Ct(e){he(!1)}function GP(e){let{basename:t="/",children:r=null,location:n,navigationType:i=it.Pop,navigator:a,static:o=!1,future:s}=e;li()&&he(!1);let l=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:l,navigator:a,static:o,future:Ji({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof n=="string"&&(n=Gr(n));let{pathname:c="/",search:f="",hash:p="",state:m=null,key:w="default"}=n,E=h.useMemo(()=>{let b=ii(c,l);return b==null?null:{location:{pathname:b,search:f,hash:p,state:m,key:w},navigationType:i}},[l,c,f,p,m,w,i]);return E==null?null:h.createElement(si.Provider,{value:u},h.createElement(rc.Provider,{children:r,value:E}))}function Ea(e){let{children:t,location:r}=e;return IP(Jd(t),r)}new Promise(()=>{});function Jd(e,t){t===void 0&&(t=[]);let r=[];return h.Children.forEach(e,(n,i)=>{if(!h.isValidElement(n))return;let a=[...t,i];if(n.type===h.Fragment){r.push.apply(r,Jd(n.props.children,a));return}n.type!==Ct&&he(!1),!n.props.index||!n.props.children||he(!1);let o={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=Jd(n.props.children,a)),r.push(o)}),r}function YP(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.27.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ku(){return ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}function XP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ZP(e,t){return e.button===0&&(!t||t==="_self")&&!XP(e)}const eO=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],tO="6";try{window.__reactRouterVersion=tO}catch{}function rO(e,t){return pP({basename:t==null?void 0:t.basename,future:ku({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:UC({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||nO(),routes:e,mapRouteProperties:YP,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function nO(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=ku({},t,{errors:iO(t.errors)})),t}function iO(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,i]of t)if(i&&i.__type==="RouteErrorResponse")r[n]=new yl(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let o=new a(i.message);o.stack="",r[n]=o}catch{}}if(r[n]==null){let a=new Error(i.message);a.stack="",r[n]=a}}else r[n]=i;return r}const aO=h.createContext({isTransitioning:!1}),oO=h.createContext(new Map),uO="startTransition",iy=tE[uO],sO="flushSync",ay=vC[sO];function lO(e){iy?iy(e):e()}function Mo(e){ay?ay(e):e()}class cO{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function fO(e){let{fallbackElement:t,router:r,future:n}=e,[i,a]=h.useState(r.state),[o,s]=h.useState(),[l,u]=h.useState({isTransitioning:!1}),[c,f]=h.useState(),[p,m]=h.useState(),[w,E]=h.useState(),b=h.useRef(new Map),{v7_startTransition:y}=n||{},d=h.useCallback(x=>{y?lO(x):x()},[y]),v=h.useCallback((x,P)=>{let{deletedFetchers:O,flushSync:L,viewTransitionOpts:F}=P;O.forEach(V=>b.current.delete(V)),x.fetchers.forEach((V,N)=>{V.data!==void 0&&b.current.set(N,V.data)});let U=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!F||U){L?Mo(()=>a(x)):d(()=>a(x));return}if(L){Mo(()=>{p&&(c&&c.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let V=r.window.document.startViewTransition(()=>{Mo(()=>a(x))});V.finished.finally(()=>{Mo(()=>{f(void 0),m(void 0),s(void 0),u({isTransitioning:!1})})}),Mo(()=>m(V));return}p?(c&&c.resolve(),p.skipTransition(),E({state:x,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(s(x),u({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[r.window,p,c,b,d]);h.useLayoutEffect(()=>r.subscribe(v),[r,v]),h.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new cO)},[l]),h.useEffect(()=>{if(c&&o&&r.window){let x=o,P=c.promise,O=r.window.document.startViewTransition(async()=>{d(()=>a(x)),await P});O.finished.finally(()=>{f(void 0),m(void 0),s(void 0),u({isTransitioning:!1})}),m(O)}},[d,o,c,r.window]),h.useEffect(()=>{c&&o&&i.location.key===o.location.key&&c.resolve()},[c,p,i.location,o]),h.useEffect(()=>{!l.isTransitioning&&w&&(s(w.state),u({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),E(void 0))},[l.isTransitioning,w]),h.useEffect(()=>{},[]);let _=h.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:x=>r.navigate(x),push:(x,P,O)=>r.navigate(x,{state:P,preventScrollReset:O==null?void 0:O.preventScrollReset}),replace:(x,P,O)=>r.navigate(x,{replace:!0,state:P,preventScrollReset:O==null?void 0:O.preventScrollReset})}),[r]),S=r.basename||"/",g=h.useMemo(()=>({router:r,navigator:_,static:!1,basename:S}),[r,_,S]),C=h.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return h.createElement(h.Fragment,null,h.createElement(Wu.Provider,{value:g},h.createElement(xv.Provider,{value:i},h.createElement(oO.Provider,{value:b.current},h.createElement(aO.Provider,{value:l},h.createElement(GP,{basename:S,location:i.location,navigationType:i.historyAction,navigator:_,future:C},i.initialized||r.future.v7_partialHydration?h.createElement(dO,{routes:r.routes,future:r.future,state:i}):t))))),null)}const dO=h.memo(hO);function hO(e){let{routes:t,future:r,state:n}=e;return y_(t,void 0,n,r)}const vO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Q6=h.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:u,preventScrollReset:c,viewTransition:f}=t,p=JP(t,eO),{basename:m}=h.useContext(si),w,E=!1;if(typeof u=="string"&&pO.test(u)&&(w=u,vO))try{let v=new URL(window.location.href),_=u.startsWith("//")?new URL(v.protocol+u):new URL(u),S=ii(_.pathname,m);_.origin===v.origin&&S!=null?u=S+_.search+_.hash:E=!0}catch{}let b=MP(u,{relative:i}),y=gO(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:i,viewTransition:f});function d(v){n&&n(v),v.defaultPrevented||y(v)}return h.createElement("a",ku({},p,{href:w||b,onClick:E||a?n:d,ref:r,target:l}))});var oy;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(oy||(oy={}));var uy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(uy||(uy={}));function gO(e,t){let{target:r,replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,l=ci(),u=Yt(),c=g_(e,{relative:o});return h.useCallback(f=>{if(ZP(f,r)){f.preventDefault();let p=n!==void 0?n:Yi(u)===Yi(c);l(e,{replace:p,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[u,l,c,n,i,r,e,a,o,s])}var yO="RaStore",mO=function(){if(typeof window>"u"||window.localStorage==null)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch{return!1}},Xd=mO(),q6=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(yO).concat(t),n=r.length,i={},a=function(s,l){Object.keys(i).forEach(function(u){i[u]&&i[u].key===s&&i[u].callback(l)})},o=function(s){var l;if(((l=s.key)===null||l===void 0?void 0:l.substring(0,n))===r){var u=s.key.substring(n+1),c=s.newValue?sy(s.newValue):void 0;Object.keys(i).forEach(function(f){i[f]&&i[f].key===u&&(c===null?i[f].callback(void 0):i[f].callback(c??void 0))})}};return{setup:function(){if(Xd){var s=rn().getItem("".concat(r,".version"));if(s&&s!==e){var l=rn();Object.keys(l).forEach(function(u){u.startsWith(r)&&l.removeItem(u)})}rn().setItem("".concat(r,".version"),e),window.addEventListener("storage",o)}},teardown:function(){Xd&&window.removeEventListener("storage",o)},getItem:function(s,l){var u=rn().getItem("".concat(r,".").concat(s));return u==null?l:sy(u)},setItem:function(s,l){l===void 0?rn().removeItem("".concat(r,".").concat(s)):rn().setItem("".concat(r,".").concat(s),JSON.stringify(l)),a(s,l)},removeItem:function(s){rn().removeItem("".concat(r,".").concat(s)),a(s,void 0)},removeItems:function(s){var l=rn();Object.keys(l).forEach(function(u){if(u.startsWith("".concat(r,".").concat(s))){l.removeItem(u);var c=u.substring(n+1);a(c,void 0)}})},reset:function(){var s=rn();Object.keys(s).forEach(function(l){if(l.startsWith(r)){s.removeItem(l);var u=l.substring(n+1);a(u,void 0)}})},subscribe:function(s,l){var u=Math.random().toString();return i[u]={key:s,callback:l},function(){delete i[u]}}}},sy=function(e){try{return JSON.parse(e)}catch{return e}},wO=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,i){i.startsWith(t)&&r.valuesMap.delete(i)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),_O=new wO,rn=function(){return Xd?window.localStorage:_O},SO=typeof Uo=="object"&&Uo&&Uo.Object===Object&&Uo,S_=SO,bO=S_,EO=typeof self=="object"&&self&&self.Object===Object&&self,xO=bO||EO||Function("return this")(),Fr=xO,CO=Fr,PO=CO.Symbol,oo=PO,ly=oo,b_=Object.prototype,OO=b_.hasOwnProperty,RO=b_.toString,Do=ly?ly.toStringTag:void 0;function $O(e){var t=OO.call(e,Do),r=e[Do];try{e[Do]=void 0;var n=!0}catch{}var i=RO.call(e);return n&&(t?e[Do]=r:delete e[Do]),i}var kO=$O,AO=Object.prototype,TO=AO.toString;function FO(e){return TO.call(e)}var LO=FO,cy=oo,MO=kO,DO=LO,IO="[object Null]",jO="[object Undefined]",fy=cy?cy.toStringTag:void 0;function NO(e){return e==null?e===void 0?jO:IO:fy&&fy in Object(e)?MO(e):DO(e)}var uo=NO;function UO(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Lr=UO,zO=uo,VO=Lr,BO="[object AsyncFunction]",WO="[object Function]",HO="[object GeneratorFunction]",QO="[object Proxy]";function qO(e){if(!VO(e))return!1;var t=zO(e);return t==WO||t==HO||t==BO||t==QO}var Pv=qO,KO=Fr,GO=KO["__core-js_shared__"],YO=GO,mf=YO,dy=function(){var e=/[^.]+$/.exec(mf&&mf.keys&&mf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function JO(e){return!!dy&&dy in e}var XO=JO,ZO=Function.prototype,eR=ZO.toString;function tR(e){if(e!=null){try{return eR.call(e)}catch{}try{return e+""}catch{}}return""}var E_=tR,rR=Pv,nR=XO,iR=Lr,aR=E_,oR=/[\\^$.*+?()[\]{}|]/g,uR=/^\[object .+?Constructor\]$/,sR=Function.prototype,lR=Object.prototype,cR=sR.toString,fR=lR.hasOwnProperty,dR=RegExp("^"+cR.call(fR).replace(oR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hR(e){if(!iR(e)||nR(e))return!1;var t=rR(e)?dR:uR;return t.test(aR(e))}var vR=hR;function pR(e,t){return e==null?void 0:e[t]}var gR=pR,yR=vR,mR=gR;function wR(e,t){var r=mR(e,t);return yR(r)?r:void 0}var ra=wR,_R=ra,SR=function(){try{var e=_R(Object,"defineProperty");return e({},"",{}),e}catch{}}(),x_=SR,hy=x_;function bR(e,t,r){t=="__proto__"&&hy?hy(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Ov=bR;function ER(e,t){return e===t||e!==e&&t!==t}var so=ER,xR=Ov,CR=so,PR=Object.prototype,OR=PR.hasOwnProperty;function RR(e,t,r){var n=e[t];(!(OR.call(e,t)&&CR(n,r))||r===void 0&&!(t in e))&&xR(e,t,r)}var Rv=RR,$R=Array.isArray,Yr=$R;function kR(e){return e!=null&&typeof e=="object"}var En=kR,AR=uo,TR=En,FR="[object Symbol]";function LR(e){return typeof e=="symbol"||TR(e)&&AR(e)==FR}var nc=LR,MR=Yr,DR=nc,IR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jR=/^\w*$/;function NR(e,t){if(MR(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||DR(e)?!0:jR.test(e)||!IR.test(e)||t!=null&&e in Object(t)}var UR=NR,zR=ra,VR=zR(Object,"create"),ic=VR,vy=ic;function BR(){this.__data__=vy?vy(null):{},this.size=0}var WR=BR;function HR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var QR=HR,qR=ic,KR="__lodash_hash_undefined__",GR=Object.prototype,YR=GR.hasOwnProperty;function JR(e){var t=this.__data__;if(qR){var r=t[e];return r===KR?void 0:r}return YR.call(t,e)?t[e]:void 0}var XR=JR,ZR=ic,e$=Object.prototype,t$=e$.hasOwnProperty;function r$(e){var t=this.__data__;return ZR?t[e]!==void 0:t$.call(t,e)}var n$=r$,i$=ic,a$="__lodash_hash_undefined__";function o$(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=i$&&t===void 0?a$:t,this}var u$=o$,s$=WR,l$=QR,c$=XR,f$=n$,d$=u$;function lo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var R$=O$,$$=ac;function k$(e,t){var r=this.__data__,n=$$(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var A$=k$,T$=p$,F$=b$,L$=C$,M$=R$,D$=A$;function co(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&ei?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++ns))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var f=-1,p=!0,m=r&nT?new ZA:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e<=eF}var Iv=tF,rF=uo,nF=Iv,iF=En,aF="[object Arguments]",oF="[object Array]",uF="[object Boolean]",sF="[object Date]",lF="[object Error]",cF="[object Function]",fF="[object Map]",dF="[object Number]",hF="[object Object]",vF="[object RegExp]",pF="[object Set]",gF="[object String]",yF="[object WeakMap]",mF="[object ArrayBuffer]",wF="[object DataView]",_F="[object Float32Array]",SF="[object Float64Array]",bF="[object Int8Array]",EF="[object Int16Array]",xF="[object Int32Array]",CF="[object Uint8Array]",PF="[object Uint8ClampedArray]",OF="[object Uint16Array]",RF="[object Uint32Array]",Be={};Be[_F]=Be[SF]=Be[bF]=Be[EF]=Be[xF]=Be[CF]=Be[PF]=Be[OF]=Be[RF]=!0;Be[aF]=Be[oF]=Be[mF]=Be[uF]=Be[wF]=Be[sF]=Be[lF]=Be[cF]=Be[fF]=Be[dF]=Be[hF]=Be[vF]=Be[pF]=Be[gF]=Be[yF]=!1;function $F(e){return iF(e)&&nF(e.length)&&!!Be[rF(e)]}var kF=$F;function AF(e){return function(t){return e(t)}}var jv=AF,Sl={exports:{}};Sl.exports;(function(e,t){var r=S_,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Sl,Sl.exports);var Nv=Sl.exports,TF=kF,FF=jv,Py=Nv,Oy=Py&&Py.isTypedArray,LF=Oy?FF(Oy):TF,Uv=LF,MF=VT,DF=fc,IF=Yr,jF=dc,NF=sc,UF=Uv,zF=Object.prototype,VF=zF.hasOwnProperty;function BF(e,t){var r=IF(e),n=!r&&DF(e),i=!r&&!n&&jF(e),a=!r&&!n&&!i&&UF(e),o=r||n||i||a,s=o?MF(e.length,String):[],l=s.length;for(var u in e)(t||VF.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||NF(u,l)))&&s.push(u);return s}var N_=BF,WF=Object.prototype;function HF(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||WF;return e===r}var zv=HF;function QF(e,t){return function(r){return e(t(r))}}var U_=QF,qF=U_,KF=qF(Object.keys,Object),GF=KF,YF=zv,JF=GF,XF=Object.prototype,ZF=XF.hasOwnProperty;function e2(e){if(!YF(e))return JF(e);var t=[];for(var r in Object(e))ZF.call(e,r)&&r!="constructor"&&t.push(r);return t}var t2=e2,r2=Pv,n2=Iv;function i2(e){return e!=null&&n2(e.length)&&!r2(e)}var hc=i2,a2=N_,o2=t2,u2=hc;function s2(e){return u2(e)?a2(e):o2(e)}var Vv=s2,l2=D_,c2=Dv,f2=Vv;function d2(e){return l2(e,f2,c2)}var z_=d2,Ry=z_,h2=1,v2=Object.prototype,p2=v2.hasOwnProperty;function g2(e,t,r,n,i,a){var o=r&h2,s=Ry(e),l=s.length,u=Ry(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var p=s[f];if(!(o?p in t:p2.call(t,p)))return!1}var m=a.get(e),w=a.get(t);if(m&&w)return m==t&&w==e;var E=!0;a.set(e,t),a.set(t,e);for(var b=o;++f0){if(++t>=NM)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var BM=VM,WM=jM,HM=BM,QM=HM(WM),iS=QM,qM=rS,KM=nS,GM=iS;function YM(e,t){return GM(KM(e,t,qM),e+"")}var qv=YM,JM=so,XM=hc,ZM=sc,eD=Lr;function tD(e,t,r){if(!eD(r))return!1;var n=typeof t;return(n=="number"?XM(r)&&ZM(t,r.length):n=="string"&&t in r)?JM(r[t],e):!1}var aS=tD,rD=qv,nD=aS;function iD(e){return rD(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&nD(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++n=t||C<0||f&&x>=a}function y(){var g=bf();if(b(g))return d(g);s=setTimeout(y,E(g))}function d(g){return s=void 0,p&&n?m(g):(n=i=void 0,o)}function v(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function _(){return s===void 0?o:d(bf())}function S(){var g=bf(),C=b(g);if(n=arguments,i=this,l=g,C){if(s===void 0)return w(l);if(f)return clearTimeout(s),s=setTimeout(y,t),m(l)}return s===void 0&&(s=setTimeout(y,t)),o}return S.cancel=v,S.flush=_,S}var yN=gN;const fS=Dt(yN);var mN=function(e,t){t===void 0&&(t=250);var r=wN(e,t),n=r[0],i=r[1],a=Yt();h.useEffect(function(){var o;n!=null&&((o=a.state)===null||o===void 0?void 0:o._scrollToTop)!==!0&&(i(void 0),window.scrollTo(0,n))},[])},wN=function(e,t){t===void 0&&(t=250);var r=pi(e),n=r[0],i=r[1];return h.useEffect(function(){if(!(typeof window>"u")){var a=fS(function(){i(window.scrollY)},t);return window.addEventListener("scroll",a),function(){window.removeEventListener("scroll",a)}}},[t,i]),[n,i]},_N=function(e){var t=e.children,r=e.storeKey,n=e.debounce,i=n===void 0?250:n;return mN(r,i),t},go=function(){return h.useContext(cS)},Gv=function(){var e=go();return h.useCallback(function(t){var r=t.resource,n=t.id,i=t.type;if(["list","create","edit","show"].includes(i)&&!r)throw new Error("Cannot create a link without a resource. You must provide the resource name.");switch(i){case"list":return Wr("".concat(e,"/").concat(r));case"create":return Wr("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?Wr("".concat(e,"/").concat(r)):Wr("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?Wr("".concat(e,"/").concat(r)):Wr("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return i}},[e])},Wr=function(e){return e.replace("//","/")},dS=h.createContext(void 0),Jt=function(e){var t=h.useContext(dS);return e&&e.resource||t},Yv=h.createContext(void 0);Yv.displayName="RecordContext";var qu=function(e){var t=e.children,r=e.value;return h.createElement(Yv.Provider,{value:r},t)},fi=function(e){var t=h.useContext(Yv);return e&&e.record||t},El=function(){return El=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),gS="%[a-f0-9]{2}",sm=new RegExp("("+gS+")|([^%]+?)","gi"),lm=new RegExp("("+gS+")+","gi");function ah(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],ah(r),ah(n))}function QN(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(sm)||[],r=1;r{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},YN=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),a=0;ad==null,o=Symbol("encodeFragmentIdentifier");function s(d){switch(d.arrayFormat){case"index":return v=>(_,S)=>{const g=_.length;return S===void 0||d.skipNull&&S===null||d.skipEmptyString&&S===""?_:S===null?[..._,[c(v,d),"[",g,"]"].join("")]:[..._,[c(v,d),"[",c(g,d),"]=",c(S,d)].join("")]};case"bracket":return v=>(_,S)=>S===void 0||d.skipNull&&S===null||d.skipEmptyString&&S===""?_:S===null?[..._,[c(v,d),"[]"].join("")]:[..._,[c(v,d),"[]=",c(S,d)].join("")];case"colon-list-separator":return v=>(_,S)=>S===void 0||d.skipNull&&S===null||d.skipEmptyString&&S===""?_:S===null?[..._,[c(v,d),":list="].join("")]:[..._,[c(v,d),":list=",c(S,d)].join("")];case"comma":case"separator":case"bracket-separator":{const v=d.arrayFormat==="bracket-separator"?"[]=":"=";return _=>(S,g)=>g===void 0||d.skipNull&&g===null||d.skipEmptyString&&g===""?S:(g=g===null?"":g,S.length===0?[[c(_,d),v,c(g,d)].join("")]:[[S,c(g,d)].join(d.arrayFormatSeparator)])}default:return v=>(_,S)=>S===void 0||d.skipNull&&S===null||d.skipEmptyString&&S===""?_:S===null?[..._,c(v,d)]:[..._,[c(v,d),"=",c(S,d)].join("")]}}function l(d){let v;switch(d.arrayFormat){case"index":return(_,S,g)=>{if(v=/\[(\d*)\]$/.exec(_),_=_.replace(/\[\d*\]$/,""),!v){g[_]=S;return}g[_]===void 0&&(g[_]={}),g[_][v[1]]=S};case"bracket":return(_,S,g)=>{if(v=/(\[\])$/.exec(_),_=_.replace(/\[\]$/,""),!v){g[_]=S;return}if(g[_]===void 0){g[_]=[S];return}g[_]=[].concat(g[_],S)};case"colon-list-separator":return(_,S,g)=>{if(v=/(:list)$/.exec(_),_=_.replace(/:list$/,""),!v){g[_]=S;return}if(g[_]===void 0){g[_]=[S];return}g[_]=[].concat(g[_],S)};case"comma":case"separator":return(_,S,g)=>{const C=typeof S=="string"&&S.includes(d.arrayFormatSeparator),x=typeof S=="string"&&!C&&f(S,d).includes(d.arrayFormatSeparator);S=x?f(S,d):S;const P=C||x?S.split(d.arrayFormatSeparator).map(O=>f(O,d)):S===null?S:f(S,d);g[_]=P};case"bracket-separator":return(_,S,g)=>{const C=/(\[\])$/.test(_);if(_=_.replace(/\[\]$/,""),!C){g[_]=S&&f(S,d);return}const x=S===null?[]:S.split(d.arrayFormatSeparator).map(P=>f(P,d));if(g[_]===void 0){g[_]=x;return}g[_]=[].concat(g[_],x)};default:return(_,S,g)=>{if(g[_]===void 0){g[_]=S;return}g[_]=[].concat(g[_],S)}}}function u(d){if(typeof d!="string"||d.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(d,v){return v.encode?v.strict?t(d):encodeURIComponent(d):d}function f(d,v){return v.decode?r(d):d}function p(d){return Array.isArray(d)?d.sort():typeof d=="object"?p(Object.keys(d)).sort((v,_)=>Number(v)-Number(_)).map(v=>d[v]):d}function m(d){const v=d.indexOf("#");return v!==-1&&(d=d.slice(0,v)),d}function w(d){let v="";const _=d.indexOf("#");return _!==-1&&(v=d.slice(_)),v}function E(d){d=m(d);const v=d.indexOf("?");return v===-1?"":d.slice(v+1)}function b(d,v){return v.parseNumbers&&!Number.isNaN(Number(d))&&typeof d=="string"&&d.trim()!==""?d=Number(d):v.parseBooleans&&d!==null&&(d.toLowerCase()==="true"||d.toLowerCase()==="false")&&(d=d.toLowerCase()==="true"),d}function y(d,v){v=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},v),u(v.arrayFormatSeparator);const _=l(v),S=Object.create(null);if(typeof d!="string"||(d=d.trim().replace(/^[?#&]/,""),!d))return S;for(const g of d.split("&")){if(g==="")continue;let[C,x]=n(v.decode?g.replace(/\+/g," "):g,"=");x=x===void 0?null:["comma","separator","bracket-separator"].includes(v.arrayFormat)?x:f(x,v),_(f(C,v),x,S)}for(const g of Object.keys(S)){const C=S[g];if(typeof C=="object"&&C!==null)for(const x of Object.keys(C))C[x]=b(C[x],v);else S[g]=b(C,v)}return v.sort===!1?S:(v.sort===!0?Object.keys(S).sort():Object.keys(S).sort(v.sort)).reduce((g,C)=>{const x=S[C];return x&&typeof x=="object"&&!Array.isArray(x)?g[C]=p(x):g[C]=x,g},Object.create(null))}e.extract=E,e.parse=y,e.stringify=(d,v)=>{if(!d)return"";v=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},v),u(v.arrayFormatSeparator);const _=x=>v.skipNull&&a(d[x])||v.skipEmptyString&&d[x]==="",S=s(v),g={};for(const x of Object.keys(d))_(x)||(g[x]=d[x]);const C=Object.keys(g);return v.sort!==!1&&C.sort(v.sort),C.map(x=>{const P=d[x];return P===void 0?"":P===null?c(x,v):Array.isArray(P)?P.length===0&&v.arrayFormat==="bracket-separator"?c(x,v)+"[]":P.reduce(S(x),[]).join("&"):c(x,v)+"="+c(P,v)}).filter(x=>x.length>0).join("&")},e.parseUrl=(d,v)=>{v=Object.assign({decode:!0},v);const[_,S]=n(d,"#");return Object.assign({url:_.split("?")[0]||"",query:y(E(d),v)},v&&v.parseFragmentIdentifier&&S?{fragmentIdentifier:f(S,v)}:{})},e.stringifyUrl=(d,v)=>{v=Object.assign({encode:!0,strict:!0,[o]:!0},v);const _=m(d.url).split("?")[0]||"",S=e.extract(d.url),g=e.parse(S,{sort:!1}),C=Object.assign(g,d.query);let x=e.stringify(C,v);x&&(x=`?${x}`);let P=w(d.url);return d.fragmentIdentifier&&(P=`#${v[o]?c(d.fragmentIdentifier,v):d.fragmentIdentifier}`),`${_}${x}${P}`},e.pick=(d,v,_)=>{_=Object.assign({parseFragmentIdentifier:!0,[o]:!1},_);const{url:S,query:g,fragmentIdentifier:C}=e.parseUrl(d,_);return e.stringifyUrl({url:S,query:i(g,v),fragmentIdentifier:C},_)},e.exclude=(d,v,_)=>{const S=Array.isArray(v)?g=>!v.includes(g):(g,C)=>!v(g,C);return e.pick(d,S,_)}})(gc);var Cl=function(){return Cl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new pS(l&&l.message||a,i,l)):Promise.resolve({status:i,headers:o,body:s,json:l})})},ZN=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",i=!!Object.keys(e).length;return!t&&!r&&n&&i},yS=function(e,t){var r;return t===void 0&&(t=[]),ZN(e)?Object.assign.apply(Object,JN([{}],Object.keys(e).map(function(n){return yS(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},mS={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function a(l,u,c,f,p){if(typeof c!="function")throw new TypeError("The listener must be a function");var m=new i(c,f||l,p),w=r?r+u:u;return l._events[w]?l._events[w].fn?l._events[w]=[l._events[w],m]:l._events[w].push(m):(l._events[w]=m,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},s.prototype.listeners=function(u){var c=r?r+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var p=0,m=f.length,w=new Array(m);p0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]"u"||!e.message?t:e.message},a3=function(e){var t=e.data,r=e.queryClient,n=e.staleTime,i=n===void 0?1e3:n,a=Date.now()+i;Object.keys(t).forEach(function(o){t[o].forEach(function(l){!l||l.id==null||r.setQueryData([o,"getOne",{id:String(l.id)}],l,{updatedAt:a})});var s=t[o].map(function(l){return String(l.id)});r.setQueryData([o,"getMany",{ids:s}],t[o],{updatedAt:a})})},o3=["getList","getMany","getManyReference"],mo=function(){var e=h.useContext(Xv)||Jv,t=ur(),r=wS(),n=h.useMemo(function(){return new Proxy(e,{get:function(i,a){if(!(typeof a=="symbol"||a==="then"))return a==="supportAbortSignal"?e.supportAbortSignal:function(){for(var o=[],s=0;s0),n=we.useRef(e.isMutating()>0),i=we.useState(r.current||n.current),a=i[0],o=i[1];return we.useEffect(function(){t.current=!0;var s=e.getQueryCache().subscribe(Ke.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,o(r.current||n.current))})),l=e.getMutationCache().subscribe(Ke.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,o(r.current||n.current))}));return function(){t.current=!1,s(),l()}},[e]),a},_S=function(){var e=ur();return h.useCallback(function(){e.invalidateQueries()},[e])},oh=function(){return oh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?bS(s,t-1,r,n,i):p3(i,s):n||(i[i.length]=s)}return i}var ES=bS;function y3(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a-1}var k3=$3;function A3(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=Q3){var u=t?null:W3(e);if(u)return H3(u);o=!1,i=B3,l=new U3}else l=t?[]:s;e:for(;++n0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. -Be sure to pass the props from the parent. Example: - -const My`).concat(e,` = props => ( - <`).concat(e," {...props}> -); - -The missing props are: `).concat(i.join(", ")))},ch=function(){return ch=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0?o[u].apply(o,Io(Io([],f,!1),[c],!1)):a.apply(void 0,f)};return o.length>0?o[u].apply(o,Io(Io([],s,!1),[c],!1)):a.apply(void 0,s)}},[]),i=h.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return i},Ol=function(){return Ol=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0;Le||y(typeof I=="string"?I:I.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof I=="string"?I:I instanceof Error||typeof I=="object"&&I!==null&&I.hasOwnProperty("message")?I.message:void 0}})}},C),{returnPromise:!0,getMutateWithMiddlewares:O})),U=F[0],V=F[1].isPending,N=h.useCallback(function(I,K){K===void 0&&(K={});var Q=K.transform,ne=K.meta,ue=mm(K,["transform","meta"]);return Promise.resolve(Q?Q(I):a?a(I):I).then(function(Le){return gm(void 0,void 0,void 0,function(){var ve,Ae;return ym(this,function(ge){switch(ge.label){case 0:return ge.trys.push([0,2,,3]),[4,U(l,{data:Le,meta:ne??g},ue)];case 1:return ge.sent(),[3,3];case 2:return ve=ge.sent(),(ve instanceof pS||typeof ve=="object"&&ve!==null&&ve.hasOwnProperty("body"))&&((Ae=ve.body)===null||Ae===void 0?void 0:Ae.errors)!=null?[2,ve.body.errors]:[3,3];case 3:return[2]}})})})},[U,g,l,a]),X=Lc(),J=b("ra.page.create",{name:X(l,1)});return{isFetching:!1,isLoading:!1,isPending:r?!1:c,saving:V,defaultTitle:J,save:N,resource:l,record:v,redirect:w,registerMutationMiddleware:P,unregisterMutationMiddleware:L}},YU=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=gc.parse(r);if(n.source){if(Array.isArray(n.source)){console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`));return}return JSON.parse(n.source)}}catch{console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`))}return null},JU=function(e,t){return t?"edit":e?"show":"list"},ep=h.createContext(null);ep.displayName="CreateContext";var Rl=function(){return Rl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0;(!en||a!=="pessimistic")&&d(typeof _e=="string"?_e:_e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof _e=="string"?_e:_e instanceof Error||typeof _e=="object"&&_e!==null&&_e.hasOwnProperty("message")?_e.message:void 0}})}},F),{mutationMode:a,returnPromise:a==="pessimistic",getMutateWithMiddlewares:N})),sr=Ie[0],Xr=Ie[1].isPending,Me=h.useCallback(function(_e,pt){var nt=pt===void 0?{}:pt,gt=nt.onSuccess,Zr=nt.onError,en=nt.transform,$=nt.meta;return Promise.resolve(en?en(_e,{previousData:Re.previousData}):p?p(_e,{previousData:Re.previousData}):_e).then(function(T){return wm(void 0,void 0,void 0,function(){var M,z;return _m(this,function(H){switch(H.label){case 0:return H.trys.push([0,2,,3]),[4,sr(m,{id:g,data:T,meta:$??P},{onError:Zr,onSuccess:gt})];case 1:return H.sent(),[3,3];case 2:return M=H.sent(),((z=M.body)===null||z===void 0?void 0:z.errors)!=null?[2,M.body.errors]:[3,3];case 3:return[2]}})})})},[g,P,m,p,sr,Re.previousData]);return{defaultTitle:ge,error:K,isFetching:ne,isLoading:Q,isPending:ue,mutationMode:a,record:I,redirect:f,refetch:Le,registerMutationMiddleware:V,resource:m,save:Me,saving:Xr,unregisterMutationMiddleware:X}},t4="list",r4=function(e){var t=e.value,r=e.children;return t?h.createElement(qu,{value:t},r):r},o5=function(e){var t=fi(e),r=Jt(e),n=mp(r);return h.createElement(h.Fragment,null,n(t))},tp=h.createContext(null);tp.displayName="EditContext";var n4=function(e){var t=e.children,r=e.value;return h.createElement(tp.Provider,{value:r},h.createElement(kS,{value:AS(r)},h.createElement(qu,{value:r&&r.record},t)))},i4=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i"u"?"undefined":LS(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var i in r){var a=r[i],o=this.check(a,i,i,r);n=n.concat(o)}return n}},{key:"_handleArray",value:function(r){for(var n=this,i=[],a,o=0;o0&&!u.item&&a===void 0&&(a=u);i=i.concat(l)}}return i}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),f4=c4,d4=typeof window>"u"?Uo:window;function h4(e,t){if(e instanceof d4[t])return!0;switch(typeof e>"u"?"undefined":LS(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var Rf,bm;function v4(){return bm||(bm=1,Rf=function(t,r,n){var i=` -`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var a=new RegExp("\\"+t,"g"),o=t+t,s=t==='"'?function(l){return l.indexOf(r)>=0||l.indexOf(i)>=0||l.indexOf('"')>=0}:function(l){return l.indexOf(r)>=0||l.indexOf(i)>=0};return function(l){return n&&(l=""+l),l.replace&&(l=l.replace(a,o),(n||s(l))&&(l=t+l+t)),l}}),Rf}var p4=function(){function e(t,r){for(var n=0;n0&&(f=f.concat(Array(p).join(".").split("."))),n&&this._options.fillGaps&&(f=f.map(a)),i.push(f.join(this._options.rowDelimiter)),n=f}}catch(m){s=!0,l=m}finally{try{!o&&u.return&&u.return()}finally{if(s)throw l}}return i}},{key:"_parseArray",value:function(r,n){var i=this;this._headers=this._headers||[];var a=[],o=void 0,s=function(b){var y=i._headers.indexOf(b);return y===-1&&(i._headers.push(b),y=i._headers.indexOf(b)),y};o=function(b){var y=[],d=function(V){return y.push(V.map(function(N){return N??""}))},v=function(){return new Array(i._headers.length).fill(null)},_={},S=v(),g=!0,C=!1,x=void 0;try{for(var P=b[Symbol.iterator](),O;!(g=(O=P.next()).done);g=!0){var L=O.value,F=s(L.item);if(S[F]!=null&&(d(S),S=v()),_[F]=_[F]||0,i._options.fillTopRow&&_[F]0&&d(S),a=a.concat(i._checkRows(y))};var l=!0,u=!1,c=void 0;try{for(var f=r[Symbol.iterator](),p;!(l=(p=f.next()).done);l=!0){var m=p.value,w=i._handler.check(m,i._options.mainPathItem,m,r);o(w)}}catch(E){u=!0,c=E}finally{try{!l&&f.return&&f.return()}finally{if(u)throw c}}return!n&&i._options.includeHeaders&&a.unshift(this.headers),Em(a,i._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,i=[],a=[],o=void 0,s=[[],[]];o=function(f){var p=f.value||f.value===0?f.value.toString():n._options.undefinedString;if(p=n._escape(p),n._options.verticalOutput){var m=[f.item,p];i.push(m.join(n._options.rowDelimiter))}else s[0].push(f.item),s[1].push(p)};for(var l in r){var u="";this._options.mainPathItem&&(u=this._options.mainPathItem+this._options.headerPathString),a=this._handler.check(r[l],u+l,l,r),a.forEach(o)}return this._options.verticalOutput||(i.push(s[0].join(this._options.rowDelimiter)),i.push(s[1].join(this._options.rowDelimiter))),Em(i,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(i){return r._options.rename[r._options.headers.indexOf(i)]||i})),this._options.forceTextDelimiter&&(n=n.map(function(i){return""+r._options.textDelimiter+i+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),w4=m4,_4=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},S4=_4,Cm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pm=w4,Om=S4,b4=FS,E4=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:b4,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var i=Array.prototype.slice.call(arguments);t=i[0],r=i[1],n=i[2]}else if(arguments.length===2){var a=void 0,o=Array.prototype.slice.call(arguments);t=o[0],a=o[1],typeof a=="function"?n=a:(typeof a>"u"?"undefined":Cm(a))==="object"&&(r=a)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),l=s[0];if((typeof l>"u"?"undefined":Cm(l))==="object"){var u=Object.keys(e),c=Object.keys(l),f=c.every(function(w){return u.includes(w)});c.length>0&&f?r=l:t=l}else t=l}else return new Om(new Pm(e));var p=Object.assign({},e,r),m=new Pm(p);return t?new Promise(function(w,E){m.parse(t,function(b,y){if(n)return n(b,y);if(b)return E(b);if(E)return w(y)})}):new Om};const x4=Dt(E4);var C4=function(e,t){t===void 0&&(t="export");var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())},P4=function(e,t,r,n){return x4(e,function(i,a){return C4(a,n)})},O4=function(e,t){return Array.from(new Set(e.filter(function(r){return r[t]!=null}).map(function(r){return r[t]}).reduce(function(r,n){return r.concat(n)},[])))},l5=function(e){return function(t,r,n){return e.getMany(n,{ids:O4(t,r)}).then(function(i){var a=i.data;return a.reduce(function(o,s){return o[s.id]=s,o},{})})}},sa=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n"u"||w(function(d){if(!Array.isArray(d))return sa([],d,!0);var v=d.indexOf(y);return v>-1?sa(sa([],d.slice(0,v),!0),d.slice(v+1),!0):sa(sa([],d,!0),[y],!1)})},clearSelection:function(){E()}}},[w,E]);return[m,b]},$f=[];function kn(e){var t=h.useState(e),r=t[0],n=t[1],i=h.useRef(!1);h.useEffect(function(){return i.current=!0,function(){i.current=!1}},[]);var a=h.useCallback(function(o){if(i.current)return n(o)},[i,n]);return[r,a]}function c5(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=kn(!1),n=r[0],i=r[1];return h.useEffect(function(){i(!1);var a=setTimeout(function(){i(!0)},e);return function(){clearTimeout(a)}},[t,e,i]),n}function R4(){var e=h.useRef(!0);return h.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var dn=function(){return dn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&_(P)},[m.search]);var O=h.useCallback(function(Q){g.current&&(S.current?S.current=pm(S.current,Q):(S.current=pm(P,Q),setTimeout(function(){S.current&&(i&&!p?y(S.current):i&&p?_(S.current):w({search:"?".concat(gc.stringify(dn(dn({},S.current),{filter:JSON.stringify(S.current.filter),displayedFilters:JSON.stringify(S.current.displayedFilters)})))},{state:{_scrollToTop:Q.type===sh}}),S.current=void 0)},0)))},Rm(Rm([],C,!0),[w],!1)),L=h.useCallback(function(Q){return O({type:CS,payload:Q})},[O]),F=h.useCallback(function(Q){return O({type:sh,payload:Q})},[O]),U=h.useCallback(function(Q){return O({type:PS,payload:Q})},[O]),V=P.filter||Am,N=P.displayedFilters||Am,X=fS(function(Q,ne){O({type:lh,payload:{filter:to(Q),displayedFilters:ne}})},r),J=h.useCallback(function(Q,ne,ue){return ne===void 0&&(ne=void 0),ue===void 0&&(ue=!1),ue?X(Q,ne):O({type:lh,payload:{filter:to(Q),displayedFilters:ne}})},[O]),I=h.useCallback(function(Q){O({type:RS,payload:Q})},[O]),K=h.useCallback(function(Q,ne){O({type:OS,payload:{filterName:Q,defaultValue:ne}})},[O]);return[dn(dn({filterValues:V,requestSignature:C},P),{displayedFilters:N}),{changeParams:O,setPage:F,setPerPage:U,setSort:L,setFilters:J,hideFilter:I,showFilter:K}]},$m=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},k4=function(e){var t=e.search,r=gc.parse(t);return $m(r,"filter"),$m(r,"displayedFilters"),r},A4=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},T4=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,i=e.sort,a=e.perPage,o=Object.keys(t).length>0?t:A4(r)?dn({},r):{filter:n||{}};return o.sort||(o.sort=i.field,o.order=i.order),o.perPage==null&&(o.perPage=a),o.page==null&&(o.page=1),dn(dn({},o),{page:km(o.page,1),perPage:km(o.perPage,10)})},km=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},Am={},F4={field:"id",order:Ui},Tm={},mc=h.createContext(null);mc.displayName="ListContext";var MS=h.createContext(void 0),L4=function(e){return h.useMemo(function(){return yc(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};MS.displayName="ListFilterContext";var DS=h.createContext(void 0),M4=function(e){return h.useMemo(function(){return yc(e,["sort","setSort","resource"])},[e.sort,e.setSort])};DS.displayName="ListSortContext";var np=h.createContext(void 0);np.displayName="ListPaginationContext";var D4=function(e){return h.useMemo(function(){return yc(e,["isLoading","isPending","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.isPending,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},I4=function(e){var t=e.value,r=e.children;return h.createElement(mc.Provider,{value:t},h.createElement(MS.Provider,{value:L4(t)},h.createElement(DS.Provider,{value:M4(t)},h.createElement(np.Provider,{value:D4(t)},r))))},zi=function(){return zi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(X==null||(X==null?void 0:X.length)===0)){L.setPage(1);return}if(I!=null){var Ie=Math.ceil(I/O.perPage)||1;!ue&&O.page>Ie&&L.setPage(Ie)}},[ue,O.page,O.perPage,X,L,I]);var Ae=h.useMemo(function(){return{field:O.sort,order:O.order}},[O.sort,O.order]),ge=Lc(),Re=C("ra.page.list",{name:ge(d,2)});return{sort:Ae,data:X,meta:K,defaultTitle:Re,displayedFilters:O.displayedFilters,error:Q,exporter:l,filter:u,filterValues:O.filterValues,hideFilter:L.hideFilter,isFetching:ue,isLoading:ne,isPending:Le,onSelect:V.select,onToggleItem:V.toggle,onUnselectItems:V.clearSelection,page:O.page,perPage:O.perPage,refetch:ve,resource:d,selectedIds:U,setFilters:L.setFilters,setPage:L.setPage,setPerPage:L.setPerPage,setSort:L.setSort,showFilter:L.showFilter,total:I,hasNextPage:J?J.hasNextPage:I!=null?O.page*O.perPage1}},U4={field:"id",order:Ui},z4=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","isPending","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],f5=function(e){return Object.keys(e).filter(function(t){return!z4.includes(t)}).reduce(function(t,r){var n;return zi(zi({},t),(n={},n[r]=e[r],n))},{})},V4=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i-1?r?[]:xs(xs([],l.slice(0,u),!0),l.slice(u+1),!0):r?[t]:xs(xs([],l,!0),[t],!1)})},[a,t,r]);return[o,s]},v5=function(e,t){var r=pi("".concat(e,".datagrid.expanded"),[]),n=r[0],i=r[1],a=Array.isArray(n)?n.some(function(s){return t.some(function(l){return l==s})}):!1,o=h.useCallback(function(){var s=n.filter(function(l){return!t.some(function(u){return u==l})});i(a?s:s.concat(t))},[n,i,a,t]);return[a,o]},xa=function(){return xa=Object.assign||function(e){for(var t,r=1,n=arguments.length;rLt(H,ue.field)?ue.order==="ASC"?1:-1:Lt(z,ue.field)1,hideFilter:gt,isFetching:S,isLoading:x,isPending:L,onSelect:Re.select,onToggleItem:Re.toggle,onUnselectItems:Re.clearSelection,page:J,perPage:K,resource:"",refetch:B4,selectedIds:ge,setFilters:en,setPage:I,setPerPage:Q,setSort:ve,showFilter:Zr,total:V==null?void 0:V.total}},H4={},p5=function(){var e=h.useContext(mc);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},Q4=qv,q4=so,K4=aS,G4=po,IS=Object.prototype,Y4=IS.hasOwnProperty,J4=Q4(function(e,t){e=Object(e);var r=-1,n=t.length,i=n>2?t[2]:void 0;for(i&&K4(t[0],t[1],i)&&(n=1);++re.type==="checkbox",ki=e=>e instanceof Date,Ft=e=>e==null;const US=e=>typeof e=="object";var ot=e=>!Ft(e)&&!Array.isArray(e)&&US(e)&&!ki(e),zS=e=>ot(e)&&e.target?Ku(e.target)?e.target.checked:e.target.value:e,ez=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,VS=(e,t)=>e.has(ez(t)),tz=e=>{const t=e.constructor&&e.constructor.prototype;return ot(t)&&t.hasOwnProperty("isPrototypeOf")},ip=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Nt(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(ip&&(e instanceof Blob||e instanceof FileList))&&(r||ot(e)))if(t=r?[]:{},!r&&!tz(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=Nt(e[n]));else return e;return t}var wc=e=>Array.isArray(e)?e.filter(Boolean):[],rt=e=>e===void 0,Y=(e,t,r)=>{if(!t||!ot(e))return r;const n=wc(t.split(/[,[\].]+?/)).reduce((i,a)=>Ft(i)?i:i[a],e);return rt(n)||n===e?rt(e[t])?r:e[t]:n},dr=e=>typeof e=="boolean",ap=e=>/^\w*$/.test(e),BS=e=>wc(e.replace(/["|']|\]/g,"").split(/\.|\[/)),De=(e,t,r)=>{let n=-1;const i=ap(t)?[t]:BS(t),a=i.length,o=a-1;for(;++nwe.useContext(WS),rz=e=>{const{children:t,...r}=e;return we.createElement(WS.Provider,{value:r},t)};var HS=(e,t,r,n=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==$r.all&&(t._proxyFormState[o]=!n||$r.all),r&&(r[o]=!0),e[o]}});return i},Bt=e=>ot(e)&&!Object.keys(e).length,QS=(e,t,r,n)=>{r(e);const{name:i,...a}=e;return Bt(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!n||$r.all))},ou=e=>Array.isArray(e)?e:[e],qS=(e,t,r)=>!e||!t||e===t||ou(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function op(e){const t=we.useRef(e);t.current=e,we.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function up(e){const t=_c(),{control:r=t.control,disabled:n,name:i,exact:a}=e||{},[o,s]=we.useState(r._formState),l=we.useRef(!0),u=we.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=we.useRef(i);return c.current=i,op({disabled:n,next:f=>l.current&&qS(c.current,f.name,a)&&QS(f,u.current,r._updateFormState)&&s({...r._formState,...f}),subject:r._subjects.state}),we.useEffect(()=>(l.current=!0,u.current.isValid&&r._updateValid(!0),()=>{l.current=!1}),[r]),HS(o,r,u.current,!1)}var Qr=e=>typeof e=="string",KS=(e,t,r,n,i)=>Qr(e)?(n&&t.watch.add(e),Y(r,e,i)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),Y(r,a))):(n&&(t.watchAll=!0),r);function nz(e){const t=_c(),{control:r=t.control,name:n,defaultValue:i,disabled:a,exact:o}=e||{},s=we.useRef(n);s.current=n,op({disabled:a,subject:r._subjects.values,next:c=>{qS(s.current,c.name,o)&&u(Nt(KS(s.current,r._names,c.values||r._formValues,!1,i)))}});const[l,u]=we.useState(r._getWatch(n,i));return we.useEffect(()=>r._removeUnmounted()),l}function iz(e){const t=_c(),{name:r,disabled:n,control:i=t.control,shouldUnregister:a}=e,o=VS(i._names.array,r),s=nz({control:i,name:r,defaultValue:Y(i._formValues,r,Y(i._defaultValues,r,e.defaultValue)),exact:!0}),l=up({control:i,name:r,exact:!0}),u=we.useRef(i.register(r,{...e.rules,value:s,...dr(e.disabled)?{disabled:e.disabled}:{}}));return we.useEffect(()=>{const c=i._options.shouldUnregister||a,f=(p,m)=>{const w=Y(i._fields,p);w&&w._f&&(w._f.mount=m)};if(f(r,!0),c){const p=Nt(Y(i._options.defaultValues,r));De(i._defaultValues,r,p),rt(Y(i._formValues,r))&&De(i._formValues,r,p)}return()=>{(o?c&&!i._state.action:c)?i.unregister(r):f(r,!1)}},[r,i,o,a]),we.useEffect(()=>{Y(i._fields,r)&&i._updateDisabledField({disabled:n,fields:i._fields,name:r,value:Y(i._fields,r)._f.value})},[n,r,i]),{field:{name:r,value:s,...dr(n)||l.disabled?{disabled:l.disabled||n}:{},onChange:we.useCallback(c=>u.current.onChange({target:{value:zS(c),name:r},type:$l.CHANGE}),[r]),onBlur:we.useCallback(()=>u.current.onBlur({target:{value:Y(i._formValues,r),name:r},type:$l.BLUR}),[r,i]),ref:we.useCallback(c=>{const f=Y(i._fields,r);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})},[i._fields,r])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Y(l.errors,r)},isDirty:{enumerable:!0,get:()=>!!Y(l.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Y(l.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Y(l.validatingFields,r)},error:{enumerable:!0,get:()=>Y(l.errors,r)}})}}var az=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},Lm=e=>({isOnSubmit:!e||e===$r.onSubmit,isOnBlur:e===$r.onBlur,isOnChange:e===$r.onChange,isOnAll:e===$r.all,isOnTouch:e===$r.onTouched}),Mm=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const uu=(e,t,r,n)=>{for(const i of r||Object.keys(e)){const a=Y(e,i);if(a){const{_f:o,...s}=a;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],i)&&!n)return!0;if(o.ref&&t(o.ref,o.name)&&!n)return!0;if(uu(s,t))break}else if(ot(s)&&uu(s,t))break}}};var oz=(e,t,r)=>{const n=ou(Y(e,r));return De(n,"root",t[r]),De(e,r,n),e},sp=e=>e.type==="file",hn=e=>typeof e=="function",kl=e=>{if(!ip)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Vs=e=>Qr(e),lp=e=>e.type==="radio",Al=e=>e instanceof RegExp;const Dm={value:!1,isValid:!1},Im={value:!0,isValid:!0};var GS=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!rt(e[0].attributes.value)?rt(e[0].value)||e[0].value===""?Im:{value:e[0].value,isValid:!0}:Im:Dm}return Dm};const jm={isValid:!1,value:null};var YS=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,jm):jm;function Nm(e,t,r="validate"){if(Vs(e)||Array.isArray(e)&&e.every(Vs)||dr(e)&&!e)return{type:r,message:Vs(e)?e:"",ref:t}}var la=e=>ot(e)&&!Al(e)?e:{value:e,message:""},Um=async(e,t,r,n,i)=>{const{ref:a,refs:o,required:s,maxLength:l,minLength:u,min:c,max:f,pattern:p,validate:m,name:w,valueAsNumber:E,mount:b,disabled:y}=e._f,d=Y(t,w);if(!b||y)return{};const v=o?o[0]:a,_=F=>{n&&v.reportValidity&&(v.setCustomValidity(dr(F)?"":F||""),v.reportValidity())},S={},g=lp(a),C=Ku(a),x=g||C,P=(E||sp(a))&&rt(a.value)&&rt(d)||kl(a)&&a.value===""||d===""||Array.isArray(d)&&!d.length,O=az.bind(null,w,r,S),L=(F,U,V,N=nn.maxLength,X=nn.minLength)=>{const J=F?U:V;S[w]={type:F?N:X,message:J,ref:a,...O(F?N:X,J)}};if(i?!Array.isArray(d)||!d.length:s&&(!x&&(P||Ft(d))||dr(d)&&!d||C&&!GS(o).isValid||g&&!YS(o).isValid)){const{value:F,message:U}=Vs(s)?{value:!!s,message:s}:la(s);if(F&&(S[w]={type:nn.required,message:U,ref:v,...O(nn.required,U)},!r))return _(U),S}if(!P&&(!Ft(c)||!Ft(f))){let F,U;const V=la(f),N=la(c);if(!Ft(d)&&!isNaN(d)){const X=a.valueAsNumber||d&&+d;Ft(V.value)||(F=X>V.value),Ft(N.value)||(U=Xnew Date(new Date().toDateString()+" "+Q),I=a.type=="time",K=a.type=="week";Qr(V.value)&&d&&(F=I?J(d)>J(V.value):K?d>V.value:X>new Date(V.value)),Qr(N.value)&&d&&(U=I?J(d)+F.value,N=!Ft(U.value)&&d.length<+U.value;if((V||N)&&(L(V,F.message,U.message),!r))return _(S[w].message),S}if(p&&!P&&Qr(d)){const{value:F,message:U}=la(p);if(Al(F)&&!d.match(F)&&(S[w]={type:nn.pattern,message:U,ref:a,...O(nn.pattern,U)},!r))return _(U),S}if(m){if(hn(m)){const F=await m(d,t),U=Nm(F,v);if(U&&(S[w]={...U,...O(nn.validate,U.message)},!r))return _(U.message),S}else if(ot(m)){let F={};for(const U in m){if(!Bt(F)&&!r)break;const V=Nm(await m[U](d,t),v,U);V&&(F={...V,...O(U,V.message)},_(V.message),r&&(S[w]=F))}if(!Bt(F)&&(S[w]={ref:v,...F},!r))return S}}return _(!0),S};function uz(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},dh=e=>Ft(e)||!US(e);function Ln(e,t){if(dh(e)||dh(t))return e===t;if(ki(e)&&ki(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r){const a=e[i];if(!n.includes(i))return!1;if(i!=="ref"){const o=t[i];if(ki(a)&&ki(o)||ot(a)&&ot(o)||Array.isArray(a)&&Array.isArray(o)?!Ln(a,o):a!==o)return!1}}return!0}var JS=e=>e.type==="select-multiple",lz=e=>lp(e)||Ku(e),Af=e=>kl(e)&&e.isConnected,XS=e=>{for(const t in e)if(hn(e[t]))return!0;return!1};function Tl(e,t={}){const r=Array.isArray(e);if(ot(e)||r)for(const n in e)Array.isArray(e[n])||ot(e[n])&&!XS(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Tl(e[n],t[n])):Ft(e[n])||(t[n]=!0);return t}function ZS(e,t,r){const n=Array.isArray(e);if(ot(e)||n)for(const i in e)Array.isArray(e[i])||ot(e[i])&&!XS(e[i])?rt(t)||dh(r[i])?r[i]=Array.isArray(e[i])?Tl(e[i],[]):{...Tl(e[i])}:ZS(e[i],Ft(t)?{}:t[i],r[i]):r[i]=!Ln(e[i],t[i]);return r}var jo=(e,t)=>ZS(e,t,Tl(t)),eb=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>rt(e)?e:t?e===""?NaN:e&&+e:r&&Qr(e)?new Date(e):n?n(e):e;function Tf(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return sp(t)?t.files:lp(t)?YS(e.refs).value:JS(t)?[...t.selectedOptions].map(({value:r})=>r):Ku(t)?GS(e.refs).value:eb(rt(t.value)?e.ref.value:t.value,e)}var cz=(e,t,r,n)=>{const i={};for(const a of e){const o=Y(t,a);o&&De(i,a,o._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},No=e=>rt(e)?e:Al(e)?e.source:ot(e)?Al(e.value)?e.value.source:e.value:e;const zm="AsyncFunction";var fz=e=>(!e||!e.validate)&&!!(hn(e.validate)&&e.validate.constructor.name===zm||ot(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===zm)),dz=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Vm(e,t,r){const n=Y(e,r);if(n||ap(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const a=i.join("."),o=Y(t,a),s=Y(e,a);if(o&&!Array.isArray(o)&&r!==a)return{name:r};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:r}}var hz=(e,t,r,n,i)=>i.isOnAll?!1:!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?n.isOnChange:i.isOnChange)?e:!0,vz=(e,t)=>!wc(Y(e,t)).length&&ct(e,t);const pz={mode:$r.onSubmit,reValidateMode:$r.onChange,shouldFocusError:!0};function gz(e={}){let t={...pz,...e},r={submitCount:0,isDirty:!1,isLoading:hn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},i=ot(t.defaultValues)||ot(t.values)?Nt(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Nt(i),o={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:kf(),array:kf(),state:kf()},p=Lm(t.mode),m=Lm(t.reValidateMode),w=t.criteriaMode===$r.all,E=$=>T=>{clearTimeout(u),u=setTimeout($,T)},b=async $=>{if(!e.disabled&&(c.isValid||$)){const T=t.resolver?Bt((await x()).errors):await O(n,!0);T!==r.isValid&&f.state.next({isValid:T})}},y=($,T)=>{!e.disabled&&(c.isValidating||c.validatingFields)&&(($||Array.from(s.mount)).forEach(M=>{M&&(T?De(r.validatingFields,M,T):ct(r.validatingFields,M))}),f.state.next({validatingFields:r.validatingFields,isValidating:!Bt(r.validatingFields)}))},d=($,T=[],M,z,H=!0,W=!0)=>{if(z&&M&&!e.disabled){if(o.action=!0,W&&Array.isArray(Y(n,$))){const ee=M(Y(n,$),z.argA,z.argB);H&&De(n,$,ee)}if(W&&Array.isArray(Y(r.errors,$))){const ee=M(Y(r.errors,$),z.argA,z.argB);H&&De(r.errors,$,ee),vz(r.errors,$)}if(c.touchedFields&&W&&Array.isArray(Y(r.touchedFields,$))){const ee=M(Y(r.touchedFields,$),z.argA,z.argB);H&&De(r.touchedFields,$,ee)}c.dirtyFields&&(r.dirtyFields=jo(i,a)),f.state.next({name:$,isDirty:F($,T),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else De(a,$,T)},v=($,T)=>{De(r.errors,$,T),f.state.next({errors:r.errors})},_=$=>{r.errors=$,f.state.next({errors:r.errors,isValid:!1})},S=($,T,M,z)=>{const H=Y(n,$);if(H){const W=Y(a,$,rt(M)?Y(i,$):M);rt(W)||z&&z.defaultChecked||T?De(a,$,T?W:Tf(H._f)):N($,W),o.mount&&b()}},g=($,T,M,z,H)=>{let W=!1,ee=!1;const fe={name:$};if(!e.disabled){const He=!!(Y(n,$)&&Y(n,$)._f&&Y(n,$)._f.disabled);if(!M||z){c.isDirty&&(ee=r.isDirty,r.isDirty=fe.isDirty=F(),W=ee!==fe.isDirty);const Ee=He||Ln(Y(i,$),T);ee=!!(!He&&Y(r.dirtyFields,$)),Ee||He?ct(r.dirtyFields,$):De(r.dirtyFields,$,!0),fe.dirtyFields=r.dirtyFields,W=W||c.dirtyFields&&ee!==!Ee}if(M){const Ee=Y(r.touchedFields,$);Ee||(De(r.touchedFields,$,M),fe.touchedFields=r.touchedFields,W=W||c.touchedFields&&Ee!==M)}W&&H&&f.state.next(fe)}return W?fe:{}},C=($,T,M,z)=>{const H=Y(r.errors,$),W=c.isValid&&dr(T)&&r.isValid!==T;if(e.delayError&&M?(l=E(()=>v($,M)),l(e.delayError)):(clearTimeout(u),l=null,M?De(r.errors,$,M):ct(r.errors,$)),(M?!Ln(H,M):H)||!Bt(z)||W){const ee={...z,...W&&dr(T)?{isValid:T}:{},errors:r.errors,name:$};r={...r,...ee},f.state.next(ee)}},x=async $=>{y($,!0);const T=await t.resolver(a,t.context,cz($||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return y($),T},P=async $=>{const{errors:T}=await x($);if($)for(const M of $){const z=Y(T,M);z?De(r.errors,M,z):ct(r.errors,M)}else r.errors=T;return T},O=async($,T,M={valid:!0})=>{for(const z in $){const H=$[z];if(H){const{_f:W,...ee}=H;if(W){const fe=s.array.has(W.name),He=H._f&&fz(H._f);He&&c.validatingFields&&y([z],!0);const Ee=await Um(H,a,w,t.shouldUseNativeValidation&&!T,fe);if(He&&c.validatingFields&&y([z]),Ee[W.name]&&(M.valid=!1,T))break;!T&&(Y(Ee,W.name)?fe?oz(r.errors,Ee,W.name):De(r.errors,W.name,Ee[W.name]):ct(r.errors,W.name))}!Bt(ee)&&await O(ee,T,M)}}return M.valid},L=()=>{for(const $ of s.unMount){const T=Y(n,$);T&&(T._f.refs?T._f.refs.every(M=>!Af(M)):!Af(T._f.ref))&&ge($)}s.unMount=new Set},F=($,T)=>!e.disabled&&($&&T&&De(a,$,T),!Ln(ne(),i)),U=($,T,M)=>KS($,s,{...o.mount?a:rt(T)?i:Qr($)?{[$]:T}:T},M,T),V=$=>wc(Y(o.mount?a:i,$,e.shouldUnregister?Y(i,$,[]):[])),N=($,T,M={})=>{const z=Y(n,$);let H=T;if(z){const W=z._f;W&&(!W.disabled&&De(a,$,eb(T,W)),H=kl(W.ref)&&Ft(T)?"":T,JS(W.ref)?[...W.ref.options].forEach(ee=>ee.selected=H.includes(ee.value)):W.refs?Ku(W.ref)?W.refs.length>1?W.refs.forEach(ee=>(!ee.defaultChecked||!ee.disabled)&&(ee.checked=Array.isArray(H)?!!H.find(fe=>fe===ee.value):H===ee.value)):W.refs[0]&&(W.refs[0].checked=!!H):W.refs.forEach(ee=>ee.checked=ee.value===H):sp(W.ref)?W.ref.value="":(W.ref.value=H,W.ref.type||f.values.next({name:$,values:{...a}})))}(M.shouldDirty||M.shouldTouch)&&g($,H,M.shouldTouch,M.shouldDirty,!0),M.shouldValidate&&Q($)},X=($,T,M)=>{for(const z in T){const H=T[z],W=`${$}.${z}`,ee=Y(n,W);(s.array.has($)||ot(H)||ee&&!ee._f)&&!ki(H)?X(W,H,M):N(W,H,M)}},J=($,T,M={})=>{const z=Y(n,$),H=s.array.has($),W=Nt(T);De(a,$,W),H?(f.array.next({name:$,values:{...a}}),(c.isDirty||c.dirtyFields)&&M.shouldDirty&&f.state.next({name:$,dirtyFields:jo(i,a),isDirty:F($,W)})):z&&!z._f&&!Ft(W)?X($,W,M):N($,W,M),Mm($,s)&&f.state.next({...r}),f.values.next({name:o.mount?$:void 0,values:{...a}})},I=async $=>{o.mount=!0;const T=$.target;let M=T.name,z=!0;const H=Y(n,M),W=()=>T.type?Tf(H._f):zS($),ee=fe=>{z=Number.isNaN(fe)||ki(fe)&&isNaN(fe.getTime())||Ln(fe,Y(a,M,fe))};if(H){let fe,He;const Ee=W(),yt=$.type===$l.BLUR||$.type===$l.FOCUS_OUT,Yu=!dz(H._f)&&!t.resolver&&!Y(r.errors,M)&&!H._f.deps||hz(yt,Y(r.touchedFields,M),r.isSubmitted,m,p),xn=Mm(M,s,yt);De(a,M,Ee),yt?(H._f.onBlur&&H._f.onBlur($),l&&l(0)):H._f.onChange&&H._f.onChange($);const _o=g(M,Ee,yt,!1),Dr=!Bt(_o)||xn;if(!yt&&f.values.next({name:M,type:$.type,values:{...a}}),Yu)return c.isValid&&(e.mode==="onBlur"?yt&&b():b()),Dr&&f.state.next({name:M,...xn?{}:_o});if(!yt&&xn&&f.state.next({...r}),t.resolver){const{errors:So}=await x([M]);if(ee(Ee),z){const Ju=Vm(r.errors,n,M),bo=Vm(So,n,Ju.name||M);fe=bo.error,M=bo.name,He=Bt(So)}}else y([M],!0),fe=(await Um(H,a,w,t.shouldUseNativeValidation))[M],y([M]),ee(Ee),z&&(fe?He=!1:c.isValid&&(He=await O(n,!0)));z&&(H._f.deps&&Q(H._f.deps),C(M,He,fe,_o))}},K=($,T)=>{if(Y(r.errors,T)&&$.focus)return $.focus(),1},Q=async($,T={})=>{let M,z;const H=ou($);if(t.resolver){const W=await P(rt($)?$:H);M=Bt(W),z=$?!H.some(ee=>Y(W,ee)):M}else $?(z=(await Promise.all(H.map(async W=>{const ee=Y(n,W);return await O(ee&&ee._f?{[W]:ee}:ee)}))).every(Boolean),!(!z&&!r.isValid)&&b()):z=M=await O(n);return f.state.next({...!Qr($)||c.isValid&&M!==r.isValid?{}:{name:$},...t.resolver||!$?{isValid:M}:{},errors:r.errors}),T.shouldFocus&&!z&&uu(n,K,$?H:s.mount),z},ne=$=>{const T={...o.mount?a:i};return rt($)?T:Qr($)?Y(T,$):$.map(M=>Y(T,M))},ue=($,T)=>({invalid:!!Y((T||r).errors,$),isDirty:!!Y((T||r).dirtyFields,$),error:Y((T||r).errors,$),isValidating:!!Y(r.validatingFields,$),isTouched:!!Y((T||r).touchedFields,$)}),Le=$=>{$&&ou($).forEach(T=>ct(r.errors,T)),f.state.next({errors:$?r.errors:{}})},ve=($,T,M)=>{const z=(Y(n,$,{_f:{}})._f||{}).ref,H=Y(r.errors,$)||{},{ref:W,message:ee,type:fe,...He}=H;De(r.errors,$,{...He,...T,ref:z}),f.state.next({name:$,errors:r.errors,isValid:!1}),M&&M.shouldFocus&&z&&z.focus&&z.focus()},Ae=($,T)=>hn($)?f.values.subscribe({next:M=>$(U(void 0,T),M)}):U($,T,!0),ge=($,T={})=>{for(const M of $?ou($):s.mount)s.mount.delete(M),s.array.delete(M),T.keepValue||(ct(n,M),ct(a,M)),!T.keepError&&ct(r.errors,M),!T.keepDirty&&ct(r.dirtyFields,M),!T.keepTouched&&ct(r.touchedFields,M),!T.keepIsValidating&&ct(r.validatingFields,M),!t.shouldUnregister&&!T.keepDefaultValue&&ct(i,M);f.values.next({values:{...a}}),f.state.next({...r,...T.keepDirty?{isDirty:F()}:{}}),!T.keepIsValid&&b()},Re=({disabled:$,name:T,field:M,fields:z,value:H})=>{if(dr($)&&o.mount||$){const W=$?void 0:rt(H)?Tf(M?M._f:Y(z,T)._f):H;De(a,T,W),g(T,W,!1,!1,!0)}},Ie=($,T={})=>{let M=Y(n,$);const z=dr(T.disabled)||dr(e.disabled);return De(n,$,{...M||{},_f:{...M&&M._f?M._f:{ref:{name:$}},name:$,mount:!0,...T}}),s.mount.add($),M?Re({field:M,disabled:dr(T.disabled)?T.disabled:e.disabled,name:$,value:T.value}):S($,!0,T.value),{...z?{disabled:T.disabled||e.disabled}:{},...t.progressive?{required:!!T.required,min:No(T.min),max:No(T.max),minLength:No(T.minLength),maxLength:No(T.maxLength),pattern:No(T.pattern)}:{},name:$,onChange:I,onBlur:I,ref:H=>{if(H){Ie($,T),M=Y(n,$);const W=rt(H.value)&&H.querySelectorAll&&H.querySelectorAll("input,select,textarea")[0]||H,ee=lz(W),fe=M._f.refs||[];if(ee?fe.find(He=>He===W):W===M._f.ref)return;De(n,$,{_f:{...M._f,...ee?{refs:[...fe.filter(Af),W,...Array.isArray(Y(i,$))?[{}]:[]],ref:{type:W.type,name:$}}:{ref:W}}}),S($,!1,void 0,W)}else M=Y(n,$,{}),M._f&&(M._f.mount=!1),(t.shouldUnregister||T.shouldUnregister)&&!(VS(s.array,$)&&o.action)&&s.unMount.add($)}}},sr=()=>t.shouldFocusError&&uu(n,K,s.mount),Xr=$=>{dr($)&&(f.state.next({disabled:$}),uu(n,(T,M)=>{const z=Y(n,M);z&&(T.disabled=z._f.disabled||$,Array.isArray(z._f.refs)&&z._f.refs.forEach(H=>{H.disabled=z._f.disabled||$}))},0,!1))},Me=($,T)=>async M=>{let z;M&&(M.preventDefault&&M.preventDefault(),M.persist&&M.persist());let H=Nt(a);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:W,values:ee}=await x();r.errors=W,H=ee}else await O(n);if(ct(r.errors,"root"),Bt(r.errors)){f.state.next({errors:{}});try{await $(H,M)}catch(W){z=W}}else T&&await T({...r.errors},M),sr(),setTimeout(sr);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Bt(r.errors)&&!z,submitCount:r.submitCount+1,errors:r.errors}),z)throw z},_e=($,T={})=>{Y(n,$)&&(rt(T.defaultValue)?J($,Nt(Y(i,$))):(J($,T.defaultValue),De(i,$,Nt(T.defaultValue))),T.keepTouched||ct(r.touchedFields,$),T.keepDirty||(ct(r.dirtyFields,$),r.isDirty=T.defaultValue?F($,Nt(Y(i,$))):F()),T.keepError||(ct(r.errors,$),c.isValid&&b()),f.state.next({...r}))},pt=($,T={})=>{const M=$?Nt($):i,z=Nt(M),H=Bt($),W=H?i:z;if(T.keepDefaultValues||(i=M),!T.keepValues){if(T.keepDirtyValues){const ee=new Set([...s.mount,...Object.keys(jo(i,a))]);for(const fe of Array.from(ee))Y(r.dirtyFields,fe)?De(W,fe,Y(a,fe)):J(fe,Y(W,fe))}else{if(ip&&rt($))for(const ee of s.mount){const fe=Y(n,ee);if(fe&&fe._f){const He=Array.isArray(fe._f.refs)?fe._f.refs[0]:fe._f.ref;if(kl(He)){const Ee=He.closest("form");if(Ee){Ee.reset();break}}}}n={}}a=e.shouldUnregister?T.keepDefaultValues?Nt(i):{}:Nt(W),f.array.next({values:{...W}}),f.values.next({values:{...W}})}s={mount:T.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!c.isValid||!!T.keepIsValid||!!T.keepDirtyValues,o.watch=!!e.shouldUnregister,f.state.next({submitCount:T.keepSubmitCount?r.submitCount:0,isDirty:H?!1:T.keepDirty?r.isDirty:!!(T.keepDefaultValues&&!Ln($,i)),isSubmitted:T.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:H?{}:T.keepDirtyValues?T.keepDefaultValues&&a?jo(i,a):r.dirtyFields:T.keepDefaultValues&&$?jo(i,$):T.keepDirty?r.dirtyFields:{},touchedFields:T.keepTouched?r.touchedFields:{},errors:T.keepErrors?r.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},nt=($,T)=>pt(hn($)?$(a):$,T);return{control:{register:Ie,unregister:ge,getFieldState:ue,handleSubmit:Me,setError:ve,_executeSchema:x,_getWatch:U,_getDirty:F,_updateValid:b,_removeUnmounted:L,_updateFieldArray:d,_updateDisabledField:Re,_getFieldArray:V,_reset:pt,_resetDefaultValues:()=>hn(t.defaultValues)&&t.defaultValues().then($=>{nt($,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:$=>{r={...r,...$}},_disableForm:Xr,_subjects:f,_proxyFormState:c,_setErrors:_,get _fields(){return n},get _formValues(){return a},get _state(){return o},set _state($){o=$},get _defaultValues(){return i},get _names(){return s},set _names($){s=$},get _formState(){return r},set _formState($){r=$},get _options(){return t},set _options($){t={...t,...$}}},trigger:Q,register:Ie,handleSubmit:Me,watch:Ae,setValue:J,getValues:ne,reset:nt,resetField:_e,clearErrors:Le,unregister:ge,setError:ve,setFocus:($,T={})=>{const M=Y(n,$),z=M&&M._f;if(z){const H=z.refs?z.refs[0]:z.ref;H.focus&&(H.focus(),T.shouldSelect&&H.select())}},getFieldState:ue}}function yz(e={}){const t=we.useRef(),r=we.useRef(),[n,i]=we.useState({isDirty:!1,isValidating:!1,isLoading:hn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:hn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...gz(e),formState:n});const a=t.current.control;return a._options=e,op({subject:a._subjects.state,next:o=>{QS(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),we.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),we.useEffect(()=>{if(a._proxyFormState.isDirty){const o=a._getDirty();o!==n.isDirty&&a._subjects.state.next({isDirty:o})}},[a,n.isDirty]),we.useEffect(()=>{e.values&&!Ln(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values,i(o=>({...o}))):a._resetDefaultValues()},[e.values,a]),we.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),we.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),we.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),we.useEffect(()=>{t.current&&(t.current.watch=t.current.watch.bind({}))},[n]),t.current.formState=HS(n,a),t.current}var tb=h.createContext(void 0),hh=function(){return hh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0,l=h.useState(!1),u=l[0],c=l[1],f=!e||!s||a,p=QP(function(m){var w=m.currentLocation,E=m.nextLocation;if(f)return!1;var b=t||w.pathname,y=E.pathname.startsWith(b),d=E.pathname.startsWith("".concat(b,"/show")),v=y&&!d;return!v});h.useEffect(function(){if(p.state==="blocked"){if(f){p.proceed();return}c(!0)}},[p.state]),h.useEffect(function(){if(u){var m=window.confirm(n("ra.message.unsaved_changes"));m?p.proceed&&p.proceed():p.reset&&p.reset()}c(!1)},[u,n]),h.useEffect(function(){var m=function(w){w.preventDefault(),w.returnValue=!0};if(!f)return window.addEventListener("beforeunload",m),function(){window.removeEventListener("beforeunload",m)}},[f])},Rz=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,i=e.formControl;return Oz(r,n,i),null};function $z(e,t){var r=cD({},kz(e,t),t);return r}function kz(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var Az=function(e,t){var r=function(n,i){Object.entries(n).forEach(function(a){var o=a[0],s=a[1];if(typeof s=="object"){r(s,"".concat(i).concat(o,"."));return}t("".concat(i).concat(o),{type:"server",message:s.toString()})})};r(e,"")},Tz=function(e,t){t===void 0&&(t=!0);var r=up(e?{control:e}:void 0),n=r.submitCount,i=r.errors,a=h.useRef(n),o=Mr();h.useEffect(function(){var s,l;if(n>a.current&&t&&(a.current=n,Object.keys(i).length>0)){var u=typeof((l=(s=i.root)===null||s===void 0?void 0:s.serverError)===null||l===void 0?void 0:l.message)=="string"?i.root.serverError.message:void 0;o(u||"ra.message.invalid_form",{type:"error"})}},[i,n,o,t])},Fz=function(e,t){t===void 0&&(t={});var r={};return Object.keys(e).forEach(function(n){e[n]==null||e[n]===""?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]}),r},ph=function(){return ph=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,di=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function Nz(e){return e?e.hasOwnProperty("message"):!1}var hi=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},vi=function(e){return O_(e,function(){for(var t=[],r=0;re?hi(t,{max:e},r,n):void 0}});vi(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!di(r)&&re?hi(t,{max:e},r,n):void 0}});vi(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!di(t)&&isNaN(Number(t))?hi(e,void 0,t,r):void 0}});var Bz=O_(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!di(r)&&typeof r=="string"&&!e.test(r)?hi(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});vi(function(e){return e===void 0&&(e="ra.validation.email"),Bz(jz,e)});var Wz=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};vi(function(e,t){return t===void 0&&(t=Wz),function(r,n){return!di(r)&&e.indexOf(r)===-1?hi(t,{list:e},r,n):void 0}});var Hz=h.createContext(null),Qz=function(){var e=h.useContext(tb);return e},qz=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,i=t.defaultValue,a=t.source,o=Rb(a),s=fi(t),l=_c(),u=l.getValues,c=l.resetField,f=l.formState,p=l.reset,m=Lt(s,o),w=Lt(u(),o),E=f.dirtyFields,b=Object.keys(E).includes(o);h.useEffect(function(){if(!(i==null||w!=null||m!=null||b)){var y=o.split(".").some(function(_){return Kz.test(_)});if(y){var d=o.split(".").slice(0,-1).join("."),v=Lt(u(),d);if(v==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(i),p({},{keepValues:!0});return}c(o,{defaultValue:i})}})},Kz=/^\d+$/,Gz=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,i=n===void 0?"id":n,a=e.disableValue,o=a===void 0?"disabled":a,s=e.translateChoice,l=s===void 0?!0:s,u=_r(),c=h.useCallback(function(m){if(h.isValidElement(r))return h.createElement(qu,{value:m},r);var w=typeof r=="function"?r(m):Lt(m,r);return h.isValidElement(w)?w:l?u(String(w),{_:w}):String(w)},[r,u,l]),f=h.useCallback(function(m){return Lt(m,i)},[i]),p=h.useCallback(function(m){return Lt(m,o)},[o]);return{getChoiceText:c,getChoiceValue:f,getDisableValue:p}},Yz=function(){var e=h.useContext(Hz);return e},Jz=function(e){return e&&e.isRequired?!0:Array.isArray(e)?e.some(function(t){return t.isRequired}):!1},bi=function(){return bi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0?e.slice(0,t):e},sV=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,i=n===void 0?"id":n,a=e.text,o=a===void 0?"":a,s=e.value,l=s===void 0?null:s,u={};return ml(u,i,l),typeof r=="string"&&ml(u,r,o),u},yh=function(){return yh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0?V(N):N},{updatedAt:F}),i.setQueriesData({queryKey:[x,"getManyReference"]},function(N){return N&&N.data?{data:V(N.data),total:N.total}:N},{updatedAt:F})},_=Bu(Te(Te({mutationFn:function(C){var x=C===void 0?{}:C,P=x.resource,O=P===void 0?e:P,L=x.id,F=L===void 0?m.current.id:L,U=x.data,V=U===void 0?m.current.data:U,N=x.meta,X=N===void 0?m.current.meta:N,J=x.previousData,I=J===void 0?m.current.previousData:J;if(!O)throw new Error("useUpdate mutation requires a non-empty resource");if(F==null)throw new Error("useUpdate mutation requires a non-empty id");if(!V)throw new Error("useUpdate mutation requires a non-empty data object");return E.current(O,{id:F,data:V,previousData:I,meta:X}).then(function(K){var Q=K.data;return Q})}},f),{onMutate:function(C){return Qm(void 0,void 0,void 0,function(){var x;return qm(this,function(P){switch(P.label){case 0:return f.onMutate?[4,f.onMutate(C)]:[3,2];case 1:return x=P.sent()||{},[2,Te({snapshot:w.current},x)];case 2:return[2,{snapshot:w.current}]}})})},onError:function(C,x,P){if(x===void 0&&(x={}),(p.current==="optimistic"||p.current==="undoable")&&P.snapshot.forEach(function(O){var L=O[0],F=O[1];i.setQueryData(L,F)}),b.current)return b.current(C,x,P);if(f.onError)return f.onError(C,x,P)},onSuccess:function(C,x,P){if(x===void 0&&(x={}),p.current==="pessimistic"){var O=x.resource,L=O===void 0?e:O,F=x.id,U=F===void 0?a:F;v({resource:L,id:U,data:C}),f.onSuccess&&!d.current&&f.onSuccess(C,x,P)}},onSettled:function(C,x,P,O){if(P===void 0&&(P={}),(p.current==="optimistic"||p.current==="undoable")&&O.snapshot.forEach(function(L){var F=L[0];i.invalidateQueries({queryKey:F})}),y.current)return y.current(C,x,P,O);if(f.onSettled)return f.onSettled(C,x,P,O)}})),S=function(C,x,P){return C===void 0&&(C=e),x===void 0&&(x={}),P===void 0&&(P={}),Qm(void 0,void 0,void 0,function(){var O,L,F,U,V,N,X,J,I,K,Q,ne,ue,Le,ve;return qm(this,function(Ae){switch(Ae.label){case 0:return O=P.mutationMode,L=P.returnPromise,F=L===void 0?f.returnPromise:L,U=P.onError,V=P.onSettled,N=P.onSuccess,X=Km(P,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),c?E.current=c(n.update.bind(n)):E.current=n.update,d.current=!!N,b.current=U,y.current=V,m.current=t,O&&(p.current=O),F&&p.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),p.current==="pessimistic"?F?[2,_.mutateAsync(Te({resource:C},x),Te({onSuccess:N},X))]:[2,_.mutate(Te({resource:C},x),Te({onSuccess:N},X))]:(J=x.id,I=J===void 0?a:J,K=x.data,Q=K===void 0?o:K,ne=x.meta,ue=ne===void 0?s:ne,Le=i.getQueryData([C,"getOne",{id:String(I),meta:ue}]),ve=[[C,"getOne",{id:String(I),meta:ue}],[C,"getList"],[C,"getInfiniteList"],[C,"getMany"],[C,"getManyReference"]],w.current=ve.reduce(function(ge,Re){return ge.concat(i.getQueriesData({queryKey:Re}))},[]),[4,Promise.all(w.current.map(function(ge){var Re=ge[0];return i.cancelQueries({queryKey:Re})}))]);case 1:return Ae.sent(),v({resource:C,id:I,data:Q}),setTimeout(function(){N?N(Te(Te({},Le),Q),Te({resource:C},x),{snapshot:w.current}):f.onSuccess&&!d.current&&f.onSuccess(Te(Te({},Le),Q),Te({resource:C},x),{snapshot:w.current})},0),p.current==="optimistic"?[2,_.mutate(Te({resource:C},x))]:(Zv.once("end",function(ge){var Re=ge.isUndo;Re?w.current.forEach(function(Ie){var sr=Ie[0],Xr=Ie[1];i.setQueryData(sr,Xr)}):_.mutate(Te({resource:C},x))}),[2])}})})},g=h.useMemo(function(){return Te({isLoading:_.isPending},_)},[_]);return[ze(S),g]},Rt=function(){return Rt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0?P(O):O},{updatedAt:x}),i.setQueriesData({queryKey:[S,"getManyReference"]},function(O){if(!O||!O.data)return O;var L=P(O.data),F=L.length0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0?x(P):P},{updatedAt:C}),i.setQueriesData({queryKey:[_,"getManyReference"]},function(P){if(!P||!P.data)return P;var O=x(P.data),L=O.length0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var xi=function(){return xi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0||w.customRoutesWithLayout.length>0||w.customRoutesWithoutLayout.length>0?"ready":"empty"),m&&f(m),[2]})})};r||p()},[e,n,r,s,t,o,c]),[a,u]},PV=function(e){var t=h.useState(e),r=t[0],n=t[1],i=h.useCallback(function(a){n(function(o){return{customRoutesWithLayout:o.customRoutesWithLayout.concat(a.customRoutesWithLayout),customRoutesWithoutLayout:o.customRoutesWithoutLayout.concat(a.customRoutesWithoutLayout),resources:o.resources.concat(a.resources)}})},[]);return[r,n,i]},OV=function(e,t){var r=vS(),n=r.register,i=r.unregister;h.useEffect(function(){return e.forEach(function(a){if(typeof a.type.registerResource=="function"){var o=a.type.registerResource(a.props,t);n(o)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(a){if(typeof a.type.registerResource=="function"){var o=a.type.registerResource(a.props,t);i(o)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,i])},RV=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,i=e.customRoutesWithoutLayout;return ub(t)?"loading":r.length>0||n.length>0||i.length>0?"ready":"empty"},ub=function(e){var t=Array.isArray(e)?e:[e],r=t.filter(function(n){return typeof n=="function"});if(r.length>1)throw new Error("You can only provide one function child to AdminRouter");return r.length===0?null:r[0]},qo=function(e){var t=[],r=[],n=[];return typeof e=="function"?{customRoutesWithLayout:[],customRoutesWithoutLayout:[],resources:[]}:(h.Children.forEach(e,function(i){if(h.isValidElement(i)){if(i.type===h.Fragment){var a=qo(i.props.children);t.push.apply(t,a.customRoutesWithLayout),r.push.apply(r,a.customRoutesWithoutLayout),n.push.apply(n,a.resources)}if(i.type.raName==="CustomRoutes"){var o=i;o.props.noLayout?r.push(o.props.children):t.push(o.props.children)}else i.type.raName==="Resource"&&n.push(i)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n})},sb=h.createContext(!1),$V=sb.Provider,R5=function(){return h.useContext(sb)},Au=function(){return Au=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]"u"||typeof window.location>"u"||typeof Image>"u")){var N=new Image;N.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[f]);var V=function(N,X){return n(X)};return h.createElement(jV,{value:P},h.createElement(mV,{onError:V,fallbackRender:function(N){var X=N.error,J=N.resetErrorBoundary;return h.createElement("div",{style:{minHeight:"100vh"}},h.createElement(m,{error:X,errorInfo:r,resetErrorBoundary:J}))}},h.createElement(Ea,null,v!==!1&&v!==!0?h.createElement(Ct,{path:"/login",element:o0(v)}):null,a!==!1&&a!==!0?h.createElement(Ct,{path:"/auth-callback",element:o0(a)}):null,h.createElement(Ct,{path:"/*",element:h.createElement(DV,{catchAll:s,dashboard:u,layout:E,loading:y,requireAuth:C,ready:S,authenticationError:L,accessDenied:U},l)}))))},o0=function(e){return h.isValidElement(e)?e:h.createElement(e)},Cs=function(){return null},cb=function(e){var t=e.children,r=e.value;return r?h.createElement(dS.Provider,{value:r},t):t},Sc=function(e){var t=e.value,r=e.children;return t?h.createElement(cb,{value:t},r):r},fb={exports:{}},ke={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var fp=Symbol.for("react.element"),dp=Symbol.for("react.portal"),bc=Symbol.for("react.fragment"),Ec=Symbol.for("react.strict_mode"),xc=Symbol.for("react.profiler"),Cc=Symbol.for("react.provider"),Pc=Symbol.for("react.context"),zV=Symbol.for("react.server_context"),Oc=Symbol.for("react.forward_ref"),Rc=Symbol.for("react.suspense"),$c=Symbol.for("react.suspense_list"),kc=Symbol.for("react.memo"),Ac=Symbol.for("react.lazy"),VV=Symbol.for("react.offscreen"),db;db=Symbol.for("react.module.reference");function Sr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case fp:switch(e=e.type,e){case bc:case xc:case Ec:case Rc:case $c:return e;default:switch(e=e&&e.$$typeof,e){case zV:case Pc:case Oc:case Ac:case kc:case Cc:return e;default:return t}}case dp:return t}}}ke.ContextConsumer=Pc;ke.ContextProvider=Cc;ke.Element=fp;ke.ForwardRef=Oc;ke.Fragment=bc;ke.Lazy=Ac;ke.Memo=kc;ke.Portal=dp;ke.Profiler=xc;ke.StrictMode=Ec;ke.Suspense=Rc;ke.SuspenseList=$c;ke.isAsyncMode=function(){return!1};ke.isConcurrentMode=function(){return!1};ke.isContextConsumer=function(e){return Sr(e)===Pc};ke.isContextProvider=function(e){return Sr(e)===Cc};ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===fp};ke.isForwardRef=function(e){return Sr(e)===Oc};ke.isFragment=function(e){return Sr(e)===bc};ke.isLazy=function(e){return Sr(e)===Ac};ke.isMemo=function(e){return Sr(e)===kc};ke.isPortal=function(e){return Sr(e)===dp};ke.isProfiler=function(e){return Sr(e)===xc};ke.isStrictMode=function(e){return Sr(e)===Ec};ke.isSuspense=function(e){return Sr(e)===Rc};ke.isSuspenseList=function(e){return Sr(e)===$c};ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===bc||e===xc||e===Ec||e===Rc||e===$c||e===VV||typeof e=="object"&&e!==null&&(e.$$typeof===Ac||e.$$typeof===kc||e.$$typeof===Cc||e.$$typeof===Pc||e.$$typeof===Oc||e.$$typeof===db||e.getModuleId!==void 0)};ke.typeOf=Sr;fb.exports=ke;var BV=fb.exports,hb=function(e){var t=e.create,r=e.edit,n=e.list,i=e.name,a=e.show;return h.createElement(cb,{value:i},h.createElement(Ea,null,t&&h.createElement(Ct,{path:"create/*",element:Ps(t)}),a&&h.createElement(Ct,{path:":id/show/*",element:Ps(a)}),r&&h.createElement(Ct,{path:":id/*",element:Ps(r)}),n&&h.createElement(Ct,{path:"/*",element:h.createElement(_N,{storeKey:"".concat(i,".list.scrollPosition")},Ps(n))}),e.children))},Ps=function(e){if(h.isValidElement(e))return e;if(BV.isValidElementType(e)){var t=e;return h.createElement(t,null)}return null};hb.raName="Resource";hb.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,i=e.list,a=e.name,o=e.options,s=e.show,l=e.recordRepresentation,u=e.hasCreate,c=e.hasEdit,f=e.hasShow;return{name:a,options:o,hasList:!!i,hasCreate:!!t||!!u,hasEdit:!!r||!!c,hasShow:!!s||!!f,icon:n,recordRepresentation:l}};var hp=h.createContext(void 0),WV={getSource:function(e){return e},getLabel:function(e){return e}},HV=hp.Provider,QV=function(){var e=h.useContext(hp);return e||WV},qV=function(){return h.useContext(hp)},Pe={};/*! - * inflection - * Copyright(c) 2011 Ben Lin - * MIT Licensed - * - * @fileoverview - * A port of inflection-js to node.js module. - */Object.defineProperty(Pe,"__esModule",{value:!0});var vb=Pe.transform=Pe.ordinalize=Pe.foreignKey=Pe.classify=Pe.tableize=Pe.demodulize=Pe.titleize=Pe.dasherize=Pe.capitalize=_b=Pe.humanize=Pe.underscore=Pe.camelize=mb=Pe.inflect=ZV=Pe.singularize=Pe.pluralize=void 0;const Ll=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],j={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),databases:new RegExp("(database)s$","gi"),drives:new RegExp("(drive)s$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopuses:new RegExp("(octop|vir)uses$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons|bonus)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),drive:new RegExp("(drive)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons|bonus)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},pb=[[j.plural.men],[j.plural.people],[j.plural.children],[j.plural.tia],[j.plural.analyses],[j.plural.databases],[j.plural.drives],[j.plural.hives],[j.plural.curves],[j.plural.lrves],[j.plural.foves],[j.plural.aeiouyies],[j.plural.series],[j.plural.movies],[j.plural.xes],[j.plural.mice],[j.plural.buses],[j.plural.oes],[j.plural.shoes],[j.plural.crises],[j.plural.octopuses],[j.plural.aliases],[j.plural.summonses],[j.plural.oxen],[j.plural.matrices],[j.plural.feet],[j.plural.teeth],[j.plural.geese],[j.plural.quizzes],[j.plural.whereases],[j.plural.criteria],[j.plural.genera],[j.singular.man,"$1en"],[j.singular.person,"$1ople"],[j.singular.child,"$1ren"],[j.singular.drive,"$1s"],[j.singular.ox,"$1en"],[j.singular.axis,"$1es"],[j.singular.octopus,"$1uses"],[j.singular.alias,"$1es"],[j.singular.summons,"$1es"],[j.singular.bus,"$1ses"],[j.singular.buffalo,"$1oes"],[j.singular.tium,"$1a"],[j.singular.sis,"ses"],[j.singular.ffe,"$1$2ves"],[j.singular.hive,"$1ves"],[j.singular.aeiouyy,"$1ies"],[j.singular.matrix,"$1ices"],[j.singular.vertex,"$1ices"],[j.singular.x,"$1es"],[j.singular.mouse,"$1ice"],[j.singular.foot,"feet"],[j.singular.tooth,"teeth"],[j.singular.goose,"geese"],[j.singular.quiz,"$1zes"],[j.singular.whereas,"$1es"],[j.singular.criterion,"$1a"],[j.singular.genus,"genera"],[j.singular.s,"s"],[j.singular.common,"s"]],gb=[[j.singular.man],[j.singular.person],[j.singular.child],[j.singular.drive],[j.singular.ox],[j.singular.axis],[j.singular.octopus],[j.singular.alias],[j.singular.summons],[j.singular.bus],[j.singular.buffalo],[j.singular.tium],[j.singular.sis],[j.singular.ffe],[j.singular.hive],[j.singular.aeiouyy],[j.singular.x],[j.singular.matrix],[j.singular.mouse],[j.singular.foot],[j.singular.tooth],[j.singular.goose],[j.singular.quiz],[j.singular.whereas],[j.singular.criterion],[j.singular.genus],[j.plural.men,"$1an"],[j.plural.people,"$1rson"],[j.plural.children,"$1"],[j.plural.databases,"$1"],[j.plural.drives,"$1"],[j.plural.genera,"genus"],[j.plural.criteria,"$1on"],[j.plural.tia,"$1um"],[j.plural.analyses,"$1$2sis"],[j.plural.hives,"$1ve"],[j.plural.curves,"$1"],[j.plural.lrves,"$1f"],[j.plural.aves,"$1ve"],[j.plural.foves,"$1fe"],[j.plural.movies,"$1ovie"],[j.plural.aeiouyies,"$1y"],[j.plural.series,"$1eries"],[j.plural.xes,"$1"],[j.plural.mice,"$1ouse"],[j.plural.buses,"$1"],[j.plural.oes,"$1"],[j.plural.shoes,"$1"],[j.plural.crises,"$1is"],[j.plural.octopuses,"$1us"],[j.plural.aliases,"$1"],[j.plural.summonses,"$1"],[j.plural.oxen,"$1"],[j.plural.matrices,"$1ix"],[j.plural.vertices,"$1ex"],[j.plural.feet,"foot"],[j.plural.teeth,"tooth"],[j.plural.geese,"goose"],[j.plural.quizzes,"$1"],[j.plural.whereases,"$1"],[j.plural.ss,"ss"],[j.plural.s,""]],KV=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],GV=new RegExp("(_ids|_id)$","g"),yb=new RegExp("_","g"),YV=new RegExp("[ _]","g"),JV=new RegExp("([A-Z])","g"),XV=new RegExp("^_");function Ml(e,t,r,n){if(n)return n;if(r.includes(e.toLocaleLowerCase()))return e;for(const i of t)if(e.match(i[0]))return i[1]!==void 0?e.replace(i[0],i[1]):e;return e}function vp(e,t){return Ml(e,pb,Ll,t)}Pe.pluralize=vp;function pp(e,t){return Ml(e,gb,Ll,t)}var ZV=Pe.singularize=pp;function e6(e,t,r,n){return isNaN(t)?e:t===1?Ml(e,gb,Ll,r):Ml(e,pb,Ll,n)}var mb=Pe.inflect=e6;function gp(e,t){const r=e.split("/"),n=r.length;let i,a,o,s;for(let l=0;l"u")return[""];var o=u6(a),s=o.sourceWithoutDigits,l=o.sourceSuffix,u=vb(l.replace(/\./g," "),["underscore","humanize"]);return n?[u0(n,s),{_:u}]:r?[r,{_:u}]:[u0(i||"undefined",s),{_:u}]},u0=function(e,t){return"resources.".concat(e,".fields.").concat(t)},u6=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(a,o){s6(a)&&(n=o)});var i=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:i}},s6=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0},l6=typeof window<"u"?h.useLayoutEffect:h.useEffect,ze=function(e){var t=h.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return l6(function(){t.current=e}),h.useCallback(function(){for(var r=[],n=0;n"u"?t:p)});return function(){return f()}},[e,a,t,n,s]);var u=ze(function(c,f){var p=typeof c=="function"?c(s):c;i(e,typeof p>"u"?typeof f>"u"?t:f:p)});return[s,u]},c6=function(e){var t=cc().removeItem;return h.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},F5=function(e){var t=cc().removeItems;return h.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},f6=function(){var e=cc().reset;return e},Gu=function(){var e=wr(),t=ur(),r=f6(),n=ci(),i=h.useRef(n),a=Yt(),o=h.useRef(a),s=go(),l=Wr("".concat(s,"/").concat(Xl.loginUrl));h.useEffect(function(){o.current=a,i.current=n},[a,n]);var u=h.useCallback(function(c,f,p){return c===void 0&&(c={}),f===void 0&&(f=l),p===void 0&&(p=!0),e?e.logout(c).then(function(m){if(m===!1||f===!1){r(),t.clear();return}var w=m||f;if(w!=null&&w.startsWith("http"))return r(),t.clear(),window.location.href=w,w;var E=w.split("?"),b={pathname:E[0]},y={};return p&&o.current&&o.current.pathname&&(y={state:{nextPathname:o.current.pathname,nextSearch:o.current.search}}),E[1]&&(b.search=E[1]),i.current(b,y),r(),t.clear(),m}):(i.current({pathname:l},{state:{nextPathname:o.current&&o.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,l,t]);return u},Ci=function(){return Ci=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},l0=function(){},Ab={authenticated:!0,data:!0,dataUpdatedAt:0,error:null,errorUpdatedAt:0,errorUpdateCount:0,failureCount:0,failureReason:null,fetchStatus:"idle",isError:!1,isInitialLoading:!1,isLoading:!1,isLoadingError:!1,isFetched:!0,isFetchedAfterMount:!0,isFetching:!1,isPaused:!1,isPlaceholderData:!1,isPending:!1,isRefetchError:!1,isRefetching:!1,isStale:!1,isSuccess:!0,status:"success",refetch:function(){return Promise.resolve(Ab)}},v6=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i");var l=wo(t).isPending,u=ab(t,{enabled:!l}),c=u.permissions,f=u.isPending;if(l||f)return o?h.createElement(o,null):null;if(i)return h.createElement(i,su({permissions:c},s));if(n)return n(su({permissions:c},s));if(r)return r(su({permissions:c},s))},L5=function(){var e=wr(),t=Yt(),r=t.state,n=ci(),i=go(),a=rL().resetNotifications,o=r&&r.nextPathname,s=r&&r.nextSearch,l=Wr("".concat(i,"/").concat(Xl.afterLoginUrl)),u=h.useCallback(function(c,f){return c===void 0&&(c={}),e?e.login(c).then(function(p){if(a(),p&&p.hasOwnProperty("redirectTo"))p&&n(p.redirectTo);else{var m=f||o+s||l;n(m)}return p}):(a(),n(l),Promise.resolve())},[e,n,o,s,a,l]);return u},m6="AUTH_LOGIN",w6="AUTH_CHECK",_6="AUTH_ERROR",S6="AUTH_LOGOUT",b6="AUTH_GET_PERMISSIONS";const E6=function(e){var t=function(){for(var r=[],n=0;n0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1] component or provide a resource prop");var n=fi(e),i=!!(t!=null&&t.canAccess),a=ta(un({queryKey:["auth","canAccess",un(un({},e),{record:n,resource:r})],queryFn:function(s){var l=s.signal;return x6(void 0,void 0,void 0,function(){return C6(this,function(u){return!t||!t.canAccess?[2,!0]:[2,t.canAccess(un(un({},e),{record:n,resource:r,signal:t.supportAbortSignal?l:void 0}))]})})},enabled:i},e)),o=h.useMemo(function(){return un(un({},a),{canAccess:a.data})},[a]);return i?o:Tb},Tb={canAccess:!0,data:!0,dataUpdatedAt:0,error:null,errorUpdatedAt:0,errorUpdateCount:0,failureCount:0,failureReason:null,fetchStatus:"idle",isError:!1,isInitialLoading:!1,isLoading:!1,isLoadingError:!1,isFetched:!0,isFetchedAfterMount:!0,isFetching:!1,isPaused:!1,isPlaceholderData:!1,isPending:!1,isRefetchError:!1,isRefetching:!1,isStale:!1,isSuccess:!0,status:"success",refetch:function(){return Promise.resolve(Tb)}},O6=function(){var e=Gu();return h.useEffect(function(){e()},[e]),null},M5=function(){var e=wr(),t=Mr(),r=Gu(),n=go(),i=Wr("".concat(n,"/").concat(Xl.loginUrl)),a=h.useCallback(function(o,s,l){return o===void 0&&(o={}),s===void 0&&(s=!0),l===void 0&&(l=i),e?e.checkAuth(o).catch(function(u){if(s){r({},u&&u.redirectTo!=null?u.redirectTo:l);var c=u&&u.message===!1;!c&&t($6(u,"ra.auth.auth_check_error"),{type:"error"})}throw u}):R6()},[e,r,t,i]);return a},R6=function(){return Promise.resolve()},$6=function(e,t){return typeof e=="string"?e:typeof e>"u"||!e.message?t:e.message},lu=function(){return lu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return pi(r&&e?"".concat(r,".").concat(e):r??e,t)},z6=function(){var e=h.useContext(ib);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},V6=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n{throw TypeError(e)};var Uc=(e,t,r)=>t.has(e)||xp("Cannot "+r);var R=(e,t,r)=>(Uc(e,t,"read from private field"),r?r.call(e):t.get(e)),oe=(e,t,r)=>t.has(e)?xp("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Y=(e,t,r,n)=>(Uc(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ce=(e,t,r)=>(Uc(e,t,"access private method"),r);var ns=(e,t,r,n)=>({set _(i){Y(e,t,i,r)},get _(){return R(e,t,n)}});function x0(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Uo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function K6(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var C0={exports:{}},Dl={},P0={exports:{}},pe={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ju=Symbol.for("react.element"),Bb=Symbol.for("react.portal"),Wb=Symbol.for("react.fragment"),Hb=Symbol.for("react.strict_mode"),Qb=Symbol.for("react.profiler"),qb=Symbol.for("react.provider"),Kb=Symbol.for("react.context"),Gb=Symbol.for("react.forward_ref"),Yb=Symbol.for("react.suspense"),Jb=Symbol.for("react.memo"),Xb=Symbol.for("react.lazy"),Cp=Symbol.iterator;function Zb(e){return e===null||typeof e!="object"?null:(e=Cp&&e[Cp]||e["@@iterator"],typeof e=="function"?e:null)}var O0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R0=Object.assign,$0={};function no(e,t,r){this.props=e,this.context=t,this.refs=$0,this.updater=r||O0}no.prototype.isReactComponent={};no.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};no.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function k0(){}k0.prototype=no.prototype;function _h(e,t,r){this.props=e,this.context=t,this.refs=$0,this.updater=r||O0}var Sh=_h.prototype=new k0;Sh.constructor=_h;R0(Sh,no.prototype);Sh.isPureReactComponent=!0;var Pp=Array.isArray,A0=Object.prototype.hasOwnProperty,bh={current:null},T0={key:!0,ref:!0,__self:!0,__source:!0};function F0(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)A0.call(t,n)&&!T0.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1>>1,ue=M[Z];if(0>>1;Zi(Le,H))_ei(Re,Le)?(M[Z]=Re,M[_e]=H,Z=_e):(M[Z]=Le,M[ve]=H,Z=ve);else if(_ei(Re,H))M[Z]=Re,M[_e]=H,Z=_e;else break e}}return K}function i(M,K){var H=M.sortIndex-K.sortIndex;return H!==0?H:M.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,f=null,v=3,m=!1,w=!1,b=!1,E=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(M){for(var K=r(u);K!==null;){if(K.callback===null)n(u);else if(K.startTime<=M)n(u),K.sortIndex=K.expirationTime,t(l,K);else break;K=r(u)}}function S(M){if(b=!1,p(M),!w)if(r(l)!==null)w=!0,X(_);else{var K=r(u);K!==null&&z(S,K.startTime-M)}}function _(M,K){w=!1,b&&(b=!1,y(x),x=-1),m=!0;var H=v;try{for(p(K),f=r(l);f!==null&&(!(f.expirationTime>K)||M&&!A());){var Z=f.callback;if(typeof Z=="function"){f.callback=null,v=f.priorityLevel;var ue=Z(f.expirationTime<=K);K=e.unstable_now(),typeof ue=="function"?f.callback=ue:f===r(l)&&n(l),p(K)}else n(l);f=r(l)}if(f!==null)var Fe=!0;else{var ve=r(u);ve!==null&&z(S,ve.startTime-K),Fe=!1}return Fe}finally{f=null,v=H,m=!1}}var g=!1,O=null,x=-1,P=5,C=-1;function A(){return!(e.unstable_now()-CM||125Z?(M.sortIndex=H,t(u,M),r(l)===null&&M===r(u)&&(b?(y(x),x=-1):b=!0,z(S,H-Z))):(M.sortIndex=ue,t(l,M),w||m||(w=!0,X(_))),M},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(M){var K=v;return function(){var H=v;v=K;try{return M.apply(this,arguments)}finally{v=H}}}})(j0);I0.exports=j0;var dE=I0.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var hE=h,ar=dE;function q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),If=Object.prototype.hasOwnProperty,vE=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Rp={},$p={};function pE(e){return If.call($p,e)?!0:If.call(Rp,e)?!1:vE.test(e)?$p[e]=!0:(Rp[e]=!0,!1)}function gE(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function yE(e,t,r,n){if(t===null||typeof t>"u"||gE(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function jt(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var St={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){St[e]=new jt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];St[t]=new jt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){St[e]=new jt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){St[e]=new jt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){St[e]=new jt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){St[e]=new jt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){St[e]=new jt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){St[e]=new jt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){St[e]=new jt(e,5,!1,e.toLowerCase(),null,!1,!1)});var xh=/[\-:]([a-z])/g;function Ch(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(xh,Ch);St[t]=new jt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(xh,Ch);St[t]=new jt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xh,Ch);St[t]=new jt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){St[e]=new jt(e,1,!1,e.toLowerCase(),null,!1,!1)});St.xlinkHref=new jt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){St[e]=new jt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ph(e,t,r,n){var i=St.hasOwnProperty(t)?St[t]:null;(i!==null?i.type!==0:n||!(2s||i[o]!==a[s]){var l=` +`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{Bc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?zo(e):""}function mE(e){switch(e.tag){case 5:return zo(e.type);case 16:return zo("Lazy");case 13:return zo("Suspense");case 19:return zo("SuspenseList");case 0:case 2:case 15:return e=Wc(e.type,!1),e;case 11:return e=Wc(e.type.render,!1),e;case 1:return e=Wc(e.type,!0),e;default:return""}}function zf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case da:return"Fragment";case fa:return"Portal";case jf:return"Profiler";case Oh:return"StrictMode";case Nf:return"Suspense";case Uf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case z0:return(e.displayName||"Context")+".Consumer";case U0:return(e._context.displayName||"Context")+".Provider";case Rh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $h:return t=e.displayName||null,t!==null?t:zf(e.type)||"Memo";case Rn:t=e._payload,e=e._init;try{return zf(e(t))}catch{}}return null}function wE(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return zf(t);case 8:return t===Oh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ri(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function B0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _E(e){var t=B0(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function os(e){e._valueTracker||(e._valueTracker=_E(e))}function W0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=B0(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Bs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Vf(e,t){var r=t.checked;return Je({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ap(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ri(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function H0(e,t){t=t.checked,t!=null&&Ph(e,"checked",t,!1)}function Bf(e,t){H0(e,t);var r=ri(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Wf(e,t.type,r):t.hasOwnProperty("defaultValue")&&Wf(e,t.type,ri(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tp(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Wf(e,t,r){(t!=="number"||Bs(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Vo=Array.isArray;function Ca(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=us.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ko={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},SE=["Webkit","ms","Moz","O"];Object.keys(Ko).forEach(function(e){SE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ko[t]=Ko[e]})});function G0(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ko.hasOwnProperty(e)&&Ko[e]?(""+t).trim():t+"px"}function Y0(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=G0(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var bE=Je({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function qf(e,t){if(t){if(bE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function Kf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Gf=null;function kh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yf=null,Pa=null,Oa=null;function Mp(e){if(e=zu(e)){if(typeof Yf!="function")throw Error(q(280));var t=e.stateNode;t&&(t=zl(t),Yf(e.stateNode,e.type,t))}}function J0(e){Pa?Oa?Oa.push(e):Oa=[e]:Pa=e}function X0(){if(Pa){var e=Pa,t=Oa;if(Oa=Pa=null,Mp(e),t)for(e=0;e>>=0,e===0?32:31-(FE(e)/LE|0)|0}var ss=64,ls=4194304;function Bo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function qs(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=Bo(s):(a&=o,a!==0&&(n=Bo(a)))}else o=r&~i,o!==0?n=Bo(o):a!==0&&(n=Bo(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Nu(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kr(t),e[t]=r}function jE(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Yo),Wp=" ",Hp=!1;function m1(e,t){switch(e){case"keyup":return dx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function w1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ha=!1;function vx(e,t){switch(e){case"compositionend":return w1(t);case"keypress":return t.which!==32?null:(Hp=!0,Wp);case"textInput":return e=t.data,e===Wp&&Hp?null:e;default:return null}}function px(e,t){if(ha)return e==="compositionend"||!jh&&m1(e,t)?(e=g1(),ks=Mh=Hn=null,ha=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Gp(r)}}function E1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?E1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function x1(){for(var e=window,t=Bs();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Bs(e.document)}return t}function Nh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function xx(e){var t=x1(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&E1(r.ownerDocument.documentElement,r)){if(n!==null&&Nh(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=Yp(r,a);var o=Yp(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,va=null,rd=null,Xo=null,nd=!1;function Jp(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;nd||va==null||va!==Bs(n)||(n=va,"selectionStart"in n&&Nh(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Xo&&yu(Xo,n)||(Xo=n,n=Ys(rd,"onSelect"),0ya||(e.current=ld[ya],ld[ya]=null,ya--)}function Ue(e,t){ya++,ld[ya]=e.current,e.current=t}var ni={},Ot=oi(ni),Qt=oi(!1),Vi=ni;function Ga(e,t){var r=e.type.contextTypes;if(!r)return ni;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function qt(e){return e=e.childContextTypes,e!=null}function Xs(){We(Qt),We(Ot)}function ig(e,t,r){if(Ot.current!==ni)throw Error(q(168));Ue(Ot,t),Ue(Qt,r)}function F1(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(q(108,wE(e)||"Unknown",i));return Je({},r,n)}function Zs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ni,Vi=Ot.current,Ue(Ot,e),Ue(Qt,Qt.current),!0}function ag(e,t,r){var n=e.stateNode;if(!n)throw Error(q(169));r?(e=F1(e,t,Vi),n.__reactInternalMemoizedMergedChildContext=e,We(Qt),We(Ot),Ue(Ot,e)):We(Qt),Ue(Qt,r)}var sn=null,Vl=!1,af=!1;function L1(e){sn===null?sn=[e]:sn.push(e)}function Dx(e){Vl=!0,L1(e)}function ui(){if(!af&&sn!==null){af=!0;var e=0,t=Ae;try{var r=sn;for(Ae=1;e>=o,i-=o,cn=1<<32-kr(t)+i|r<x?(P=O,O=null):P=O.sibling;var C=v(y,O,p[x],S);if(C===null){O===null&&(O=P);break}e&&O&&C.alternate===null&&t(y,O),d=a(C,d,x),g===null?_=C:g.sibling=C,g=C,O=P}if(x===p.length)return r(y,O),qe&&yi(y,x),_;if(O===null){for(;xx?(P=O,O=null):P=O.sibling;var A=v(y,O,C.value,S);if(A===null){O===null&&(O=P);break}e&&O&&A.alternate===null&&t(y,O),d=a(A,d,x),g===null?_=A:g.sibling=A,g=A,O=P}if(C.done)return r(y,O),qe&&yi(y,x),_;if(O===null){for(;!C.done;x++,C=p.next())C=f(y,C.value,S),C!==null&&(d=a(C,d,x),g===null?_=C:g.sibling=C,g=C);return qe&&yi(y,x),_}for(O=n(y,O);!C.done;x++,C=p.next())C=m(O,y,x,C.value,S),C!==null&&(e&&C.alternate!==null&&O.delete(C.key===null?x:C.key),d=a(C,d,x),g===null?_=C:g.sibling=C,g=C);return e&&O.forEach(function(L){return t(y,L)}),qe&&yi(y,x),_}function E(y,d,p,S){if(typeof p=="object"&&p!==null&&p.type===da&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case as:e:{for(var _=p.key,g=d;g!==null;){if(g.key===_){if(_=p.type,_===da){if(g.tag===7){r(y,g.sibling),d=i(g,p.props.children),d.return=y,y=d;break e}}else if(g.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Rn&&sg(_)===g.type){r(y,g.sibling),d=i(g,p.props),d.ref=Ao(y,g,p),d.return=y,y=d;break e}r(y,g);break}else t(y,g);g=g.sibling}p.type===da?(d=Ni(p.props.children,y.mode,S,p.key),d.return=y,y=d):(S=js(p.type,p.key,p.props,null,y.mode,S),S.ref=Ao(y,d,p),S.return=y,y=S)}return o(y);case fa:e:{for(g=p.key;d!==null;){if(d.key===g)if(d.tag===4&&d.stateNode.containerInfo===p.containerInfo&&d.stateNode.implementation===p.implementation){r(y,d.sibling),d=i(d,p.children||[]),d.return=y,y=d;break e}else{r(y,d);break}else t(y,d);d=d.sibling}d=hf(p,y.mode,S),d.return=y,y=d}return o(y);case Rn:return g=p._init,E(y,d,g(p._payload),S)}if(Vo(p))return w(y,d,p,S);if(Po(p))return b(y,d,p,S);gs(y,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,d!==null&&d.tag===6?(r(y,d.sibling),d=i(d,p),d.return=y,y=d):(r(y,d),d=df(p,y.mode,S),d.return=y,y=d),o(y)):r(y,d)}return E}var Ja=j1(!0),N1=j1(!1),rl=oi(null),nl=null,_a=null,Bh=null;function Wh(){Bh=_a=nl=null}function Hh(e){var t=rl.current;We(rl),e._currentValue=t}function dd(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function $a(e,t){nl=e,Bh=_a=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ht=!0),e.firstContext=null)}function yr(e){var t=e._currentValue;if(Bh!==e)if(e={context:e,memoizedValue:t,next:null},_a===null){if(nl===null)throw Error(q(308));_a=e,nl.dependencies={lanes:0,firstContext:e}}else _a=_a.next=e;return t}var Oi=null;function Qh(e){Oi===null?Oi=[e]:Oi.push(e)}function U1(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Qh(t)):(r.next=i.next,i.next=r),t.interleaved=r,wn(e,n)}function wn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var $n=!1;function qh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function z1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function vn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,be&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,wn(e,r)}return i=n.interleaved,i===null?(t.next=t,Qh(n)):(t.next=i.next,i.next=t),n.interleaved=t,wn(e,r)}function Ts(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Th(e,r)}}function lg(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function il(e,t,r,n){var i=e.updateQueue;$n=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?a=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;o=0,c=u=l=null,s=a;do{var v=s.lane,m=s.eventTime;if((n&v)===v){c!==null&&(c=c.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var w=e,b=s;switch(v=t,m=r,b.tag){case 1:if(w=b.payload,typeof w=="function"){f=w.call(m,f,v);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=b.payload,v=typeof w=="function"?w.call(m,f,v):w,v==null)break e;f=Je({},f,v);break e;case 2:$n=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,v=i.effects,v===null?i.effects=[s]:v.push(s))}else m={eventTime:m,lane:v,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=m,l=f):c=c.next=m,o|=v;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;v=s,s=v.next,v.next=null,i.lastBaseUpdate=v,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Hi|=o,e.lanes=o,e.memoizedState=f}}function cg(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=uf.transition;uf.transition={};try{e(!1),t()}finally{Ae=r,uf.transition=n}}function iw(){return mr().memoizedState}function Ux(e,t,r){var n=ei(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},aw(e))ow(t,r);else if(r=U1(e,t,r,n),r!==null){var i=Mt();Ar(r,e,n,i),uw(r,t,n)}}function zx(e,t,r){var n=ei(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(aw(e))ow(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Tr(s,o)){var l=t.interleaved;l===null?(i.next=i,Qh(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=U1(e,t,i,n),r!==null&&(i=Mt(),Ar(r,e,n,i),uw(r,t,n))}}function aw(e){var t=e.alternate;return e===Ye||t!==null&&t===Ye}function ow(e,t){Zo=ol=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function uw(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Th(e,r)}}var ul={readContext:yr,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useInsertionEffect:bt,useLayoutEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useMutableSource:bt,useSyncExternalStore:bt,useId:bt,unstable_isNewReconciler:!1},Vx={readContext:yr,useCallback:function(e,t){return Nr().memoizedState=[e,t===void 0?null:t],e},useContext:yr,useEffect:dg,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ls(4194308,4,Z1.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ls(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ls(4,2,e,t)},useMemo:function(e,t){var r=Nr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Nr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Ux.bind(null,Ye,e),[n.memoizedState,e]},useRef:function(e){var t=Nr();return e={current:e},t.memoizedState=e},useState:fg,useDebugValue:tv,useDeferredValue:function(e){return Nr().memoizedState=e},useTransition:function(){var e=fg(!1),t=e[0];return e=Nx.bind(null,e[1]),Nr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ye,i=Nr();if(qe){if(r===void 0)throw Error(q(407));r=r()}else{if(r=t(),vt===null)throw Error(q(349));Wi&30||H1(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,dg(q1.bind(null,n,a,e),[e]),n.flags|=2048,Cu(9,Q1.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Nr(),t=vt.identifierPrefix;if(qe){var r=fn,n=cn;r=(n&~(1<<32-kr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Eu++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Hr]=t,e[_u]=n,yw(e,t,!1,!1),t.stateNode=e;e:{switch(o=Kf(r,n),r){case"dialog":Ve("cancel",e),Ve("close",e),i=n;break;case"iframe":case"object":case"embed":Ve("load",e),i=n;break;case"video":case"audio":for(i=0;ieo&&(t.flags|=128,n=!0,To(a,!1),t.lanes=4194304)}else{if(!n)if(e=al(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),To(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!qe)return Et(t),null}else 2*at()-a.renderingStartTime>eo&&r!==1073741824&&(t.flags|=128,n=!0,To(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=at(),t.sibling=null,r=Ge.current,Ue(Ge,n?r&1|2:r&1),t):(Et(t),null);case 22:case 23:return uv(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?tr&1073741824&&(Et(t),t.subtreeFlags&6&&(t.flags|=8192)):Et(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function Yx(e,t){switch(zh(t),t.tag){case 1:return qt(t.type)&&Xs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xa(),We(Qt),We(Ot),Yh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gh(t),null;case 13:if(We(Ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));Ya()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return We(Ge),null;case 4:return Xa(),null;case 10:return Hh(t.type._context),null;case 22:case 23:return uv(),null;case 24:return null;default:return null}}var ms=!1,Pt=!1,Jx=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Sa(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){tt(e,t,n)}else r.current=null}function Sd(e,t,r){try{r()}catch(n){tt(e,t,n)}}var Eg=!1;function Xx(e,t){if(id=Ks,e=x1(),Nh(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,c=0,f=e,v=null;t:for(;;){for(var m;f!==r||i!==0&&f.nodeType!==3||(s=o+i),f!==a||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(m=f.firstChild)!==null;)v=f,f=m;for(;;){if(f===e)break t;if(v===r&&++u===i&&(s=o),v===a&&++c===n&&(l=o),(m=f.nextSibling)!==null)break;f=v,v=f.parentNode}f=m}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(ad={focusedElem:e,selectionRange:r},Ks=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var b=w.memoizedProps,E=w.memoizedState,y=t.stateNode,d=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:Er(t.type,b),E);y.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(S){tt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return w=Eg,Eg=!1,w}function eu(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Sd(t,r,a)}i=i.next}while(i!==n)}}function Hl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function bd(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function _w(e){var t=e.alternate;t!==null&&(e.alternate=null,_w(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Hr],delete t[_u],delete t[sd],delete t[Lx],delete t[Mx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Sw(e){return e.tag===5||e.tag===3||e.tag===4}function xg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sw(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ed(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Js));else if(n!==4&&(e=e.child,e!==null))for(Ed(e,t,r),e=e.sibling;e!==null;)Ed(e,t,r),e=e.sibling}function xd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(xd(e,t,r),e=e.sibling;e!==null;)xd(e,t,r),e=e.sibling}var wt=null,Cr=!1;function Cn(e,t,r){for(r=r.child;r!==null;)bw(e,t,r),r=r.sibling}function bw(e,t,r){if(qr&&typeof qr.onCommitFiberUnmount=="function")try{qr.onCommitFiberUnmount(Il,r)}catch{}switch(r.tag){case 5:Pt||Sa(r,t);case 6:var n=wt,i=Cr;wt=null,Cn(e,t,r),wt=n,Cr=i,wt!==null&&(Cr?(e=wt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):wt.removeChild(r.stateNode));break;case 18:wt!==null&&(Cr?(e=wt,r=r.stateNode,e.nodeType===8?nf(e.parentNode,r):e.nodeType===1&&nf(e,r),pu(e)):nf(wt,r.stateNode));break;case 4:n=wt,i=Cr,wt=r.stateNode.containerInfo,Cr=!0,Cn(e,t,r),wt=n,Cr=i;break;case 0:case 11:case 14:case 15:if(!Pt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Sd(r,t,o),i=i.next}while(i!==n)}Cn(e,t,r);break;case 1:if(!Pt&&(Sa(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){tt(r,t,s)}Cn(e,t,r);break;case 21:Cn(e,t,r);break;case 22:r.mode&1?(Pt=(n=Pt)||r.memoizedState!==null,Cn(e,t,r),Pt=n):Cn(e,t,r);break;default:Cn(e,t,r)}}function Cg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Jx),t.forEach(function(n){var i=uC.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function br(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=at()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*eC(n/1960))-n,10e?16:e,Qn===null)var n=!1;else{if(e=Qn,Qn=null,cl=0,be&6)throw Error(q(331));var i=be;for(be|=4,ee=e.current;ee!==null;){var a=ee,o=a.child;if(ee.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lat()-av?ji(e,0):iv|=r),Kt(e,t)}function kw(e,t){t===0&&(e.mode&1?(t=ls,ls<<=1,!(ls&130023424)&&(ls=4194304)):t=1);var r=Mt();e=wn(e,t),e!==null&&(Nu(e,t,r),Kt(e,r))}function oC(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),kw(e,r)}function uC(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(q(314))}n!==null&&n.delete(t),kw(e,r)}var Aw;Aw=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qt.current)Ht=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ht=!1,Kx(e,t,r);Ht=!!(e.flags&131072)}else Ht=!1,qe&&t.flags&1048576&&M1(t,tl,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ms(e,t),e=t.pendingProps;var i=Ga(t,Ot.current);$a(t,r),i=Xh(null,t,n,e,i,r);var a=Zh();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qt(n)?(a=!0,Zs(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,qh(t),i.updater=Wl,t.stateNode=i,i._reactInternals=t,vd(t,n,e,r),t=yd(null,t,n,!0,a,r)):(t.tag=0,qe&&a&&Uh(t),Tt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ms(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=lC(n),e=Er(n,e),i){case 0:t=gd(null,t,n,e,r);break e;case 1:t=_g(null,t,n,e,r);break e;case 11:t=mg(null,t,n,e,r);break e;case 14:t=wg(null,t,n,Er(n.type,e),r);break e}throw Error(q(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Er(n,i),gd(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Er(n,i),_g(e,t,n,i,r);case 3:e:{if(vw(t),e===null)throw Error(q(387));n=t.pendingProps,a=t.memoizedState,i=a.element,z1(e,t),il(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Za(Error(q(423)),t),t=Sg(e,t,n,r,i);break e}else if(n!==i){i=Za(Error(q(424)),t),t=Sg(e,t,n,r,i);break e}else for(nr=Jn(t.stateNode.containerInfo.firstChild),ir=t,qe=!0,Or=null,r=N1(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ya(),n===i){t=_n(e,t,r);break e}Tt(e,t,n,r)}t=t.child}return t;case 5:return V1(t),e===null&&fd(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,od(n,i)?o=null:a!==null&&od(n,a)&&(t.flags|=32),hw(e,t),Tt(e,t,o,r),t.child;case 6:return e===null&&fd(t),null;case 13:return pw(e,t,r);case 4:return Kh(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ja(t,null,n,r):Tt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Er(n,i),mg(e,t,n,i,r);case 7:return Tt(e,t,t.pendingProps,r),t.child;case 8:return Tt(e,t,t.pendingProps.children,r),t.child;case 12:return Tt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Ue(rl,n._currentValue),n._currentValue=o,a!==null)if(Tr(a.value,o)){if(a.children===i.children&&!Qt.current){t=_n(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=vn(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),dd(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(q(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),dd(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Tt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,$a(t,r),i=yr(i),n=n(i),t.flags|=1,Tt(e,t,n,r),t.child;case 14:return n=t.type,i=Er(n,t.pendingProps),i=Er(n.type,i),wg(e,t,n,i,r);case 15:return fw(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Er(n,i),Ms(e,t),t.tag=1,qt(n)?(e=!0,Zs(t)):e=!1,$a(t,r),sw(t,n,i),vd(t,n,i,r),yd(null,t,n,!0,e,r);case 19:return gw(e,t,r);case 22:return dw(e,t,r)}throw Error(q(156,t.tag))};function Tw(e,t){return a1(e,t)}function sC(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pr(e,t,r,n){return new sC(e,t,r,n)}function lv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lC(e){if(typeof e=="function")return lv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Rh)return 11;if(e===$h)return 14}return 2}function ti(e,t){var r=e.alternate;return r===null?(r=pr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function js(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")lv(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case da:return Ni(r.children,i,a,t);case Oh:o=8,i|=8;break;case jf:return e=pr(12,r,t,i|2),e.elementType=jf,e.lanes=a,e;case Nf:return e=pr(13,r,t,i),e.elementType=Nf,e.lanes=a,e;case Uf:return e=pr(19,r,t,i),e.elementType=Uf,e.lanes=a,e;case V0:return ql(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U0:o=10;break e;case z0:o=9;break e;case Rh:o=11;break e;case $h:o=14;break e;case Rn:o=16,n=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=pr(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Ni(e,t,r,n){return e=pr(7,e,n,t),e.lanes=r,e}function ql(e,t,r,n){return e=pr(22,e,n,t),e.elementType=V0,e.lanes=r,e.stateNode={isHidden:!1},e}function df(e,t,r){return e=pr(6,e,null,t),e.lanes=r,e}function hf(e,t,r){return t=pr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cC(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Qc(0),this.expirationTimes=Qc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qc(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function cv(e,t,r,n,i,a,o,s,l){return e=new cC(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=pr(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},qh(a),e}function fC(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dw)}catch(e){console.error(e)}}Dw(),D0.exports=or;var Iw=D0.exports;const gC=Dt(Iw),yC=x0({__proto__:null,default:gC},[Iw]);var vv=h.createContext(void 0);vv.displayName="AuthContext";var Xl={loginUrl:"/login",afterLoginUrl:"/"},wr=function(){return h.useContext(vv)},ea=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},qi=typeof window>"u"||"Deno"in globalThis;function fr(){}function mC(e,t){return typeof e=="function"?e(t):e}function $d(e){return typeof e=="number"&&e>=0&&e!==1/0}function jw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Aa(e,t){return typeof e=="function"?e(t):e}function Rr(e,t){return typeof e=="function"?e(t):e}function Fg(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(n){if(t.queryHash!==pv(o,t.options))return!1}else if(!Ou(t.queryKey,o))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Lg(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(Ki(t.options.mutationKey)!==Ki(a))return!1}else if(!Ou(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function pv(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ki)(e)}function Ki(e){return JSON.stringify(e,(t,r)=>kd(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function Ou(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!Ou(e[r],t[r])):!1}function gv(e,t){if(e===t)return e;const r=Mg(e)&&Mg(t);if(r||kd(e)&&kd(t)){const n=r?e:Object.keys(e),i=n.length,a=r?t:Object.keys(t),o=a.length,s=r?[]:{};let l=0;for(let u=0;u{setTimeout(t,e)})}function Ad(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?gv(e,t):t}function _C(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function SC(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var yv=Symbol();function Nw(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===yv?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Ai,Mn,Ta,h0,bC=(h0=class extends ea{constructor(){super();oe(this,Ai);oe(this,Mn);oe(this,Ta);Y(this,Ta,t=>{if(!qi&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){R(this,Mn)||this.setEventListener(R(this,Ta))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Mn))==null||t.call(this),Y(this,Mn,void 0))}setEventListener(t){var r;Y(this,Ta,t),(r=R(this,Mn))==null||r.call(this),Y(this,Mn,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){R(this,Ai)!==t&&(Y(this,Ai,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof R(this,Ai)=="boolean"?R(this,Ai):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ai=new WeakMap,Mn=new WeakMap,Ta=new WeakMap,h0),mv=new bC,Fa,Dn,La,v0,EC=(v0=class extends ea{constructor(){super();oe(this,Fa,!0);oe(this,Dn);oe(this,La);Y(this,La,t=>{if(!qi&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){R(this,Dn)||this.setEventListener(R(this,La))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Dn))==null||t.call(this),Y(this,Dn,void 0))}setEventListener(t){var r;Y(this,La,t),(r=R(this,Dn))==null||r.call(this),Y(this,Dn,t(this.setOnline.bind(this)))}setOnline(t){R(this,Fa)!==t&&(Y(this,Fa,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return R(this,Fa)}},Fa=new WeakMap,Dn=new WeakMap,La=new WeakMap,v0),vl=new EC;function Td(){let e,t;const r=new Promise((i,a)=>{e=i,t=a});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}function xC(e){return Math.min(1e3*2**e,3e4)}function Uw(e){return(e??"online")==="online"?vl.isOnline():!0}var zw=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function vf(e){return e instanceof zw}function Vw(e){let t=!1,r=0,n=!1,i;const a=Td(),o=b=>{var E;n||(v(new zw(b)),(E=e.abort)==null||E.call(e))},s=()=>{t=!0},l=()=>{t=!1},u=()=>mv.isFocused()&&(e.networkMode==="always"||vl.isOnline())&&e.canRun(),c=()=>Uw(e.networkMode)&&e.canRun(),f=b=>{var E;n||(n=!0,(E=e.onSuccess)==null||E.call(e,b),i==null||i(),a.resolve(b))},v=b=>{var E;n||(n=!0,(E=e.onError)==null||E.call(e,b),i==null||i(),a.reject(b))},m=()=>new Promise(b=>{var E;i=y=>{(n||u())&&b(y)},(E=e.onPause)==null||E.call(e)}).then(()=>{var b;i=void 0,n||(b=e.onContinue)==null||b.call(e)}),w=()=>{if(n)return;let b;const E=r===0?e.initialPromise:void 0;try{b=E??e.fn()}catch(y){b=Promise.reject(y)}Promise.resolve(b).then(f).catch(y=>{var g;if(n)return;const d=e.retry??(qi?0:3),p=e.retryDelay??xC,S=typeof p=="function"?p(r,y):p,_=d===!0||typeof d=="number"&&ru()?void 0:m()).then(()=>{t?v(y):w()})})};return{promise:a,cancel:o,continue:()=>(i==null||i(),a),cancelRetry:s,continueRetry:l,canStart:c,start:()=>(c()?w():m().then(w),a)}}function CC(){let e=[],t=0,r=s=>{s()},n=s=>{s()},i=s=>setTimeout(s,0);const a=s=>{t?e.push(s):i(()=>{r(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{n(()=>{s.forEach(l=>{r(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{i=s}}}var Ke=CC(),Ti,p0,Bw=(p0=class{constructor(){oe(this,Ti)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$d(this.gcTime)&&Y(this,Ti,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(qi?1/0:5*60*1e3))}clearGcTimeout(){R(this,Ti)&&(clearTimeout(R(this,Ti)),Y(this,Ti,void 0))}},Ti=new WeakMap,p0),Ma,Da,lr,xt,Tu,Fi,xr,an,g0,PC=(g0=class extends Bw{constructor(t){super();oe(this,xr);oe(this,Ma);oe(this,Da);oe(this,lr);oe(this,xt);oe(this,Tu);oe(this,Fi);Y(this,Fi,!1),Y(this,Tu,t.defaultOptions),this.setOptions(t.options),this.observers=[],Y(this,lr,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Y(this,Ma,OC(this.options)),this.state=t.state??R(this,Ma),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=R(this,xt))==null?void 0:t.promise}setOptions(t){this.options={...R(this,Tu),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,lr).remove(this)}setData(t,r){const n=Ad(this.state.data,t,this.options);return ce(this,xr,an).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){ce(this,xr,an).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=R(this,xt))==null?void 0:n.promise;return(i=R(this,xt))==null||i.cancel(t),r?r.then(fr).catch(fr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,Ma))}isActive(){return this.observers.some(t=>Rr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===yv||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!jw(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=R(this,xt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=R(this,xt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),R(this,lr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(R(this,xt)&&(R(this,Fi)?R(this,xt).cancel({revert:!0}):R(this,xt).cancelRetry()),this.scheduleGc()),R(this,lr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ce(this,xr,an).call(this,{type:"invalidate"})}fetch(t,r){var l,u,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(R(this,xt))return R(this,xt).continueRetry(),R(this,xt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(v=>v.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(Y(this,Fi,!0),n.signal)})},a=()=>{const f=Nw(this.options,r),v={queryKey:this.queryKey,meta:this.meta};return i(v),Y(this,Fi,!1),this.options.persister?this.options.persister(f,v,this):f(v)},o={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(o),(l=this.options.behavior)==null||l.onFetch(o,this),Y(this,Da,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=o.fetchOptions)==null?void 0:u.meta))&&ce(this,xr,an).call(this,{type:"fetch",meta:(c=o.fetchOptions)==null?void 0:c.meta});const s=f=>{var v,m,w,b;vf(f)&&f.silent||ce(this,xr,an).call(this,{type:"error",error:f}),vf(f)||((m=(v=R(this,lr).config).onError)==null||m.call(v,f,this),(b=(w=R(this,lr).config).onSettled)==null||b.call(w,this.state.data,f,this)),this.scheduleGc()};return Y(this,xt,Vw({initialPromise:r==null?void 0:r.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var v,m,w,b;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(E){s(E);return}(m=(v=R(this,lr).config).onSuccess)==null||m.call(v,f,this),(b=(w=R(this,lr).config).onSettled)==null||b.call(w,f,this.state.error,this),this.scheduleGc()},onError:s,onFail:(f,v)=>{ce(this,xr,an).call(this,{type:"failed",failureCount:f,error:v})},onPause:()=>{ce(this,xr,an).call(this,{type:"pause"})},onContinue:()=>{ce(this,xr,an).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),R(this,xt).start()}},Ma=new WeakMap,Da=new WeakMap,lr=new WeakMap,xt=new WeakMap,Tu=new WeakMap,Fi=new WeakMap,xr=new WeakSet,an=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Ww(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return vf(i)&&i.revert&&R(this,Da)?{...R(this,Da),fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Ke.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),R(this,lr).notify({query:this,type:"updated",action:t})})},g0);function Ww(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Uw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function OC(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Ur,y0,RC=(y0=class extends ea{constructor(t={}){super();oe(this,Ur);this.config=t,Y(this,Ur,new Map)}build(t,r,n){const i=r.queryKey,a=r.queryHash??pv(i,r);let o=this.get(a);return o||(o=new PC({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){R(this,Ur).has(t.queryHash)||(R(this,Ur).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=R(this,Ur).get(t.queryHash);r&&(t.destroy(),r===t&&R(this,Ur).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ke.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return R(this,Ur).get(t)}getAll(){return[...R(this,Ur).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Fg(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Fg(t,n)):r}notify(t){Ke.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Ke.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ke.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ur=new WeakMap,y0),zr,kt,Li,Vr,Pn,m0,$C=(m0=class extends Bw{constructor(t){super();oe(this,Vr);oe(this,zr);oe(this,kt);oe(this,Li);this.mutationId=t.mutationId,Y(this,kt,t.mutationCache),Y(this,zr,[]),this.state=t.state||Hw(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){R(this,zr).includes(t)||(R(this,zr).push(t),this.clearGcTimeout(),R(this,kt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Y(this,zr,R(this,zr).filter(r=>r!==t)),this.scheduleGc(),R(this,kt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){R(this,zr).length||(this.state.status==="pending"?this.scheduleGc():R(this,kt).remove(this))}continue(){var t;return((t=R(this,Li))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,o,s,l,u,c,f,v,m,w,b,E,y,d,p,S,_,g,O;Y(this,Li,Vw({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(x,P)=>{ce(this,Vr,Pn).call(this,{type:"failed",failureCount:x,error:P})},onPause:()=>{ce(this,Vr,Pn).call(this,{type:"pause"})},onContinue:()=>{ce(this,Vr,Pn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,kt).canRun(this)}));const r=this.state.status==="pending",n=!R(this,Li).canStart();try{if(!r){ce(this,Vr,Pn).call(this,{type:"pending",variables:t,isPaused:n}),await((a=(i=R(this,kt).config).onMutate)==null?void 0:a.call(i,t,this));const P=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t));P!==this.state.context&&ce(this,Vr,Pn).call(this,{type:"pending",context:P,variables:t,isPaused:n})}const x=await R(this,Li).start();return await((u=(l=R(this,kt).config).onSuccess)==null?void 0:u.call(l,x,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,x,t,this.state.context)),await((m=(v=R(this,kt).config).onSettled)==null?void 0:m.call(v,x,null,this.state.variables,this.state.context,this)),await((b=(w=this.options).onSettled)==null?void 0:b.call(w,x,null,t,this.state.context)),ce(this,Vr,Pn).call(this,{type:"success",data:x}),x}catch(x){try{throw await((y=(E=R(this,kt).config).onError)==null?void 0:y.call(E,x,t,this.state.context,this)),await((p=(d=this.options).onError)==null?void 0:p.call(d,x,t,this.state.context)),await((_=(S=R(this,kt).config).onSettled)==null?void 0:_.call(S,void 0,x,this.state.variables,this.state.context,this)),await((O=(g=this.options).onSettled)==null?void 0:O.call(g,void 0,x,t,this.state.context)),x}finally{ce(this,Vr,Pn).call(this,{type:"error",error:x})}}finally{R(this,kt).runNext(this)}}},zr=new WeakMap,kt=new WeakMap,Li=new WeakMap,Vr=new WeakSet,Pn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Ke.batch(()=>{R(this,zr).forEach(n=>{n.onMutationUpdate(t)}),R(this,kt).notify({mutation:this,type:"updated",action:t})})},m0);function Hw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Zt,Fu,w0,kC=(w0=class extends ea{constructor(t={}){super();oe(this,Zt);oe(this,Fu);this.config=t,Y(this,Zt,new Map),Y(this,Fu,Date.now())}build(t,r,n){const i=new $C({mutationCache:this,mutationId:++ns(this,Fu)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){const r=Ss(t),n=R(this,Zt).get(r)??[];n.push(t),R(this,Zt).set(r,n),this.notify({type:"added",mutation:t})}remove(t){var n;const r=Ss(t);if(R(this,Zt).has(r)){const i=(n=R(this,Zt).get(r))==null?void 0:n.filter(a=>a!==t);i&&(i.length===0?R(this,Zt).delete(r):R(this,Zt).set(r,i))}this.notify({type:"removed",mutation:t})}canRun(t){var n;const r=(n=R(this,Zt).get(Ss(t)))==null?void 0:n.find(i=>i.state.status==="pending");return!r||r===t}runNext(t){var n;const r=(n=R(this,Zt).get(Ss(t)))==null?void 0:n.find(i=>i!==t&&i.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){Ke.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...R(this,Zt).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Lg(r,n))}findAll(t={}){return this.getAll().filter(r=>Lg(t,r))}notify(t){Ke.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Ke.batch(()=>Promise.all(t.map(r=>r.continue().catch(fr))))}},Zt=new WeakMap,Fu=new WeakMap,w0);function Ss(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Ig(e){return{onFetch:(t,r)=>{var c,f,v,m,w;const n=t.options,i=(v=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:v.direction,a=((m=t.state.data)==null?void 0:m.pages)||[],o=((w=t.state.data)==null?void 0:w.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let b=!1;const E=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal)})},y=Nw(t.options,t.fetchOptions),d=async(p,S,_)=>{if(b)return Promise.reject();if(S==null&&p.pages.length)return Promise.resolve(p);const g={queryKey:t.queryKey,pageParam:S,direction:_?"backward":"forward",meta:t.options.meta};E(g);const O=await y(g),{maxPages:x}=t.options,P=_?SC:_C;return{pages:P(p.pages,O,x),pageParams:P(p.pageParams,S,x)}};if(i&&a.length){const p=i==="backward",S=p?AC:jg,_={pages:a,pageParams:o},g=S(n,_);s=await d(_,g,p)}else{const p=e??a.length;do{const S=l===0?o[0]??n.initialPageParam:jg(n,s);if(l>0&&S==null)break;s=await d(s,S),l++}while(l{var b,E;return(E=(b=t.options).persister)==null?void 0:E.call(b,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function jg(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function AC(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var et,In,jn,Ia,ja,Nn,Na,Ua,_0,TC=(_0=class{constructor(e={}){oe(this,et);oe(this,In);oe(this,jn);oe(this,Ia);oe(this,ja);oe(this,Nn);oe(this,Na);oe(this,Ua);Y(this,et,e.queryCache||new RC),Y(this,In,e.mutationCache||new kC),Y(this,jn,e.defaultOptions||{}),Y(this,Ia,new Map),Y(this,ja,new Map),Y(this,Nn,0)}mount(){ns(this,Nn)._++,R(this,Nn)===1&&(Y(this,Na,mv.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,et).onFocus())})),Y(this,Ua,vl.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,et).onOnline())})))}unmount(){var e,t;ns(this,Nn)._--,R(this,Nn)===0&&((e=R(this,Na))==null||e.call(this),Y(this,Na,void 0),(t=R(this,Ua))==null||t.call(this),Y(this,Ua,void 0))}isFetching(e){return R(this,et).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,In).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=R(this,et).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=R(this,et).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(Aa(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return R(this,et).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=R(this,et).get(n.queryHash),a=i==null?void 0:i.state.data,o=mC(t,a);if(o!==void 0)return R(this,et).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return Ke.batch(()=>R(this,et).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=R(this,et).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=R(this,et);Ke.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=R(this,et),n={type:"active",...e};return Ke.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=Ke.batch(()=>R(this,et).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(fr).catch(fr)}invalidateQueries(e={},t={}){return Ke.batch(()=>{if(R(this,et).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=Ke.batch(()=>R(this,et).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch(fr)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(fr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=R(this,et).build(this,t);return r.isStaleByTime(Aa(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(fr).catch(fr)}fetchInfiniteQuery(e){return e.behavior=Ig(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(fr).catch(fr)}ensureInfiniteQueryData(e){return e.behavior=Ig(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return vl.isOnline()?R(this,In).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,et)}getMutationCache(){return R(this,In)}getDefaultOptions(){return R(this,jn)}setDefaultOptions(e){Y(this,jn,e)}setQueryDefaults(e,t){R(this,Ia).set(Ki(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,Ia).values()];let r={};return t.forEach(n=>{Ou(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){R(this,ja).set(Ki(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,ja).values()];let r={};return t.forEach(n=>{Ou(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,jn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pv(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===yv&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,jn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,et).clear(),R(this,In).clear()}},et=new WeakMap,In=new WeakMap,jn=new WeakMap,Ia=new WeakMap,ja=new WeakMap,Nn=new WeakMap,Na=new WeakMap,Ua=new WeakMap,_0),Ut,ye,Lu,At,Mi,za,Un,Br,Mu,Va,Ba,Di,Ii,zn,Wa,Oe,Ho,Fd,Ld,Md,Dd,Id,jd,Nd,Qw,S0,wv=(S0=class extends ea{constructor(t,r){super();oe(this,Oe);oe(this,Ut);oe(this,ye);oe(this,Lu);oe(this,At);oe(this,Mi);oe(this,za);oe(this,Un);oe(this,Br);oe(this,Mu);oe(this,Va);oe(this,Ba);oe(this,Di);oe(this,Ii);oe(this,zn);oe(this,Wa,new Set);this.options=r,Y(this,Ut,t),Y(this,Br,null),Y(this,Un,Td()),this.options.experimental_prefetchInRender||R(this,Un).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,ye).addObserver(this),Ng(R(this,ye),this.options)?ce(this,Oe,Ho).call(this):this.updateResult(),ce(this,Oe,Dd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ud(R(this,ye),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ud(R(this,ye),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ce(this,Oe,Id).call(this),ce(this,Oe,jd).call(this),R(this,ye).removeObserver(this)}setOptions(t,r){const n=this.options,i=R(this,ye);if(this.options=R(this,Ut).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Rr(this.options.enabled,R(this,ye))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ce(this,Oe,Nd).call(this),R(this,ye).setOptions(this.options),n._defaulted&&!hl(this.options,n)&&R(this,Ut).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,ye),observer:this});const a=this.hasListeners();a&&Ug(R(this,ye),i,this.options,n)&&ce(this,Oe,Ho).call(this),this.updateResult(r),a&&(R(this,ye)!==i||Rr(this.options.enabled,R(this,ye))!==Rr(n.enabled,R(this,ye))||Aa(this.options.staleTime,R(this,ye))!==Aa(n.staleTime,R(this,ye)))&&ce(this,Oe,Fd).call(this);const o=ce(this,Oe,Ld).call(this);a&&(R(this,ye)!==i||Rr(this.options.enabled,R(this,ye))!==Rr(n.enabled,R(this,ye))||o!==R(this,zn))&&ce(this,Oe,Md).call(this,o)}getOptimisticResult(t){const r=R(this,Ut).getQueryCache().build(R(this,Ut),t),n=this.createResult(r,t);return LC(this,n)&&(Y(this,At,n),Y(this,za,this.options),Y(this,Mi,R(this,ye).state)),n}getCurrentResult(){return R(this,At)}trackResult(t,r){const n={};return Object.keys(t).forEach(i=>{Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),r==null||r(i),t[i])})}),n}trackProp(t){R(this,Wa).add(t)}getCurrentQuery(){return R(this,ye)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=R(this,Ut).defaultQueryOptions(t),n=R(this,Ut).getQueryCache().build(R(this,Ut),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return ce(this,Oe,Ho).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),R(this,At)))}createResult(t,r){var x;const n=R(this,ye),i=this.options,a=R(this,At),o=R(this,Mi),s=R(this,za),u=t!==n?t.state:R(this,Lu),{state:c}=t;let f={...c},v=!1,m;if(r._optimisticResults){const P=this.hasListeners(),C=!P&&Ng(t,r),A=P&&Ug(t,n,r,i);(C||A)&&(f={...f,...Ww(c.data,t.options)}),r._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:w,errorUpdatedAt:b,status:E}=f;if(r.select&&f.data!==void 0)if(a&&f.data===(o==null?void 0:o.data)&&r.select===R(this,Mu))m=R(this,Va);else try{Y(this,Mu,r.select),m=r.select(f.data),m=Ad(a==null?void 0:a.data,m,r),Y(this,Va,m),Y(this,Br,null)}catch(P){Y(this,Br,P)}else m=f.data;if(r.placeholderData!==void 0&&m===void 0&&E==="pending"){let P;if(a!=null&&a.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))P=a.data;else if(P=typeof r.placeholderData=="function"?r.placeholderData((x=R(this,Ba))==null?void 0:x.state.data,R(this,Ba)):r.placeholderData,r.select&&P!==void 0)try{P=r.select(P),Y(this,Br,null)}catch(C){Y(this,Br,C)}P!==void 0&&(E="success",m=Ad(a==null?void 0:a.data,P,r),v=!0)}R(this,Br)&&(w=R(this,Br),m=R(this,Va),b=Date.now(),E="error");const y=f.fetchStatus==="fetching",d=E==="pending",p=E==="error",S=d&&y,_=m!==void 0,O={status:E,fetchStatus:f.fetchStatus,isPending:d,isSuccess:E==="success",isError:p,isInitialLoading:S,isLoading:S,data:m,dataUpdatedAt:f.dataUpdatedAt,error:w,errorUpdatedAt:b,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&!d,isLoadingError:p&&!_,isPaused:f.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:p&&_,isStale:_v(t,r),refetch:this.refetch,promise:R(this,Un)};if(this.options.experimental_prefetchInRender){const P=L=>{O.status==="error"?L.reject(O.error):O.data!==void 0&&L.resolve(O.data)},C=()=>{const L=Y(this,Un,O.promise=Td());P(L)},A=R(this,Un);switch(A.status){case"pending":t.queryHash===n.queryHash&&P(A);break;case"fulfilled":(O.status==="error"||O.data!==A.value)&&C();break;case"rejected":(O.status!=="error"||O.error!==A.reason)&&C();break}}return O}updateResult(t){const r=R(this,At),n=this.createResult(R(this,ye),this.options);if(Y(this,Mi,R(this,ye).state),Y(this,za,this.options),R(this,Mi).data!==void 0&&Y(this,Ba,R(this,ye)),hl(n,r))return;Y(this,At,n);const i={},a=()=>{if(!r)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!R(this,Wa).size)return!0;const l=new Set(s??R(this,Wa));return this.options.throwOnError&&l.add("error"),Object.keys(R(this,At)).some(u=>{const c=u;return R(this,At)[c]!==r[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),ce(this,Oe,Qw).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ce(this,Oe,Dd).call(this)}},Ut=new WeakMap,ye=new WeakMap,Lu=new WeakMap,At=new WeakMap,Mi=new WeakMap,za=new WeakMap,Un=new WeakMap,Br=new WeakMap,Mu=new WeakMap,Va=new WeakMap,Ba=new WeakMap,Di=new WeakMap,Ii=new WeakMap,zn=new WeakMap,Wa=new WeakMap,Oe=new WeakSet,Ho=function(t){ce(this,Oe,Nd).call(this);let r=R(this,ye).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(fr)),r},Fd=function(){ce(this,Oe,Id).call(this);const t=Aa(this.options.staleTime,R(this,ye));if(qi||R(this,At).isStale||!$d(t))return;const n=jw(R(this,At).dataUpdatedAt,t)+1;Y(this,Di,setTimeout(()=>{R(this,At).isStale||this.updateResult()},n))},Ld=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,ye)):this.options.refetchInterval)??!1},Md=function(t){ce(this,Oe,jd).call(this),Y(this,zn,t),!(qi||Rr(this.options.enabled,R(this,ye))===!1||!$d(R(this,zn))||R(this,zn)===0)&&Y(this,Ii,setInterval(()=>{(this.options.refetchIntervalInBackground||mv.isFocused())&&ce(this,Oe,Ho).call(this)},R(this,zn)))},Dd=function(){ce(this,Oe,Fd).call(this),ce(this,Oe,Md).call(this,ce(this,Oe,Ld).call(this))},Id=function(){R(this,Di)&&(clearTimeout(R(this,Di)),Y(this,Di,void 0))},jd=function(){R(this,Ii)&&(clearInterval(R(this,Ii)),Y(this,Ii,void 0))},Nd=function(){const t=R(this,Ut).getQueryCache().build(R(this,Ut),this.options);if(t===R(this,ye))return;const r=R(this,ye);Y(this,ye,t),Y(this,Lu,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},Qw=function(t){Ke.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(R(this,At))}),R(this,Ut).getQueryCache().notify({query:R(this,ye),type:"observerResultsUpdated"})})},S0);function FC(e,t){return Rr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ng(e,t){return FC(e,t)||e.state.data!==void 0&&Ud(e,t,t.refetchOnMount)}function Ud(e,t,r){if(Rr(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&_v(e,t)}return!1}function Ug(e,t,r,n){return(e!==t||Rr(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&_v(e,r)}function _v(e,t){return Rr(t.enabled,e)!==!1&&e.isStaleByTime(Aa(t.staleTime,e))}function LC(e,t){return!hl(e.getCurrentResult(),t)}function zg(e,t){return e.filter(r=>!t.includes(r))}function MC(e,t,r){const n=e.slice(0);return n[t]=r,n}var Ha,cr,Qa,qa,er,Vn,Du,Iu,Gt,zd,Vd,Bd,Wd,b0,DC=(b0=class extends ea{constructor(t,r,n){super();oe(this,Gt);oe(this,Ha);oe(this,cr);oe(this,Qa);oe(this,qa);oe(this,er);oe(this,Vn);oe(this,Du);oe(this,Iu);Y(this,Ha,t),Y(this,qa,n),Y(this,Qa,[]),Y(this,er,[]),Y(this,cr,[]),this.setQueries(r)}onSubscribe(){this.listeners.size===1&&R(this,er).forEach(t=>{t.subscribe(r=>{ce(this,Gt,Bd).call(this,t,r)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,R(this,er).forEach(t=>{t.destroy()})}setQueries(t,r,n){Y(this,Qa,t),Y(this,qa,r),Ke.batch(()=>{const i=R(this,er),a=ce(this,Gt,Vd).call(this,R(this,Qa));a.forEach(u=>u.observer.setOptions(u.defaultedQueryOptions,n));const o=a.map(u=>u.observer),s=o.map(u=>u.getCurrentResult()),l=o.some((u,c)=>u!==i[c]);i.length===o.length&&!l||(Y(this,er,o),Y(this,cr,s),this.hasListeners()&&(zg(i,o).forEach(u=>{u.destroy()}),zg(o,i).forEach(u=>{u.subscribe(c=>{ce(this,Gt,Bd).call(this,u,c)})}),ce(this,Gt,Wd).call(this)))})}getCurrentResult(){return R(this,cr)}getQueries(){return R(this,er).map(t=>t.getCurrentQuery())}getObservers(){return R(this,er)}getOptimisticResult(t,r){const n=ce(this,Gt,Vd).call(this,t),i=n.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions));return[i,a=>ce(this,Gt,zd).call(this,a??i,r),()=>n.map((a,o)=>{const s=i[o];return a.defaultedQueryOptions.notifyOnChangeProps?s:a.observer.trackResult(s,l=>{n.forEach(u=>{u.observer.trackProp(l)})})})]}},Ha=new WeakMap,cr=new WeakMap,Qa=new WeakMap,qa=new WeakMap,er=new WeakMap,Vn=new WeakMap,Du=new WeakMap,Iu=new WeakMap,Gt=new WeakSet,zd=function(t,r){return r?((!R(this,Vn)||R(this,cr)!==R(this,Iu)||r!==R(this,Du))&&(Y(this,Du,r),Y(this,Iu,R(this,cr)),Y(this,Vn,gv(R(this,Vn),r(t)))),R(this,Vn)):t},Vd=function(t){const r=new Map(R(this,er).map(i=>[i.options.queryHash,i])),n=[];return t.forEach(i=>{const a=R(this,Ha).defaultQueryOptions(i),o=r.get(a.queryHash);if(o)n.push({defaultedQueryOptions:a,observer:o});else{const s=R(this,er).find(l=>l.options.queryHash===a.queryHash);n.push({defaultedQueryOptions:a,observer:s??new wv(R(this,Ha),a)})}}),n.sort((i,a)=>t.findIndex(o=>o.queryHash===i.defaultedQueryOptions.queryHash)-t.findIndex(o=>o.queryHash===a.defaultedQueryOptions.queryHash))},Bd=function(t,r){const n=R(this,er).indexOf(t);n!==-1&&(Y(this,cr,MC(R(this,cr),n,r)),ce(this,Gt,Wd).call(this))},Wd=function(){var t;if(this.hasListeners()){const r=R(this,Vn),n=ce(this,Gt,zd).call(this,R(this,cr),(t=R(this,qa))==null?void 0:t.combine);r!==n&&Ke.batch(()=>{this.listeners.forEach(i=>{i(R(this,cr))})})}},b0),Bn,Wn,zt,ln,gn,Ns,Hd,E0,IC=(E0=class extends ea{constructor(t,r){super();oe(this,gn);oe(this,Bn);oe(this,Wn);oe(this,zt);oe(this,ln);Y(this,Bn,t),this.setOptions(r),this.bindMethods(),ce(this,gn,Ns).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=R(this,Bn).defaultMutationOptions(t),hl(this.options,r)||R(this,Bn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:R(this,zt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ki(r.mutationKey)!==Ki(this.options.mutationKey)?this.reset():((n=R(this,zt))==null?void 0:n.state.status)==="pending"&&R(this,zt).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=R(this,zt))==null||t.removeObserver(this)}onMutationUpdate(t){ce(this,gn,Ns).call(this),ce(this,gn,Hd).call(this,t)}getCurrentResult(){return R(this,Wn)}reset(){var t;(t=R(this,zt))==null||t.removeObserver(this),Y(this,zt,void 0),ce(this,gn,Ns).call(this),ce(this,gn,Hd).call(this)}mutate(t,r){var n;return Y(this,ln,r),(n=R(this,zt))==null||n.removeObserver(this),Y(this,zt,R(this,Bn).getMutationCache().build(R(this,Bn),this.options)),R(this,zt).addObserver(this),R(this,zt).execute(t)}},Bn=new WeakMap,Wn=new WeakMap,zt=new WeakMap,ln=new WeakMap,gn=new WeakSet,Ns=function(){var r;const t=((r=R(this,zt))==null?void 0:r.state)??Hw();Y(this,Wn,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Hd=function(t){Ke.batch(()=>{var r,n,i,a,o,s,l,u;if(R(this,ln)&&this.hasListeners()){const c=R(this,Wn).variables,f=R(this,Wn).context;(t==null?void 0:t.type)==="success"?((n=(r=R(this,ln)).onSuccess)==null||n.call(r,t.data,c,f),(a=(i=R(this,ln)).onSettled)==null||a.call(i,t.data,null,c,f)):(t==null?void 0:t.type)==="error"&&((s=(o=R(this,ln)).onError)==null||s.call(o,t.error,c,f),(u=(l=R(this,ln)).onSettled)==null||u.call(l,void 0,t.error,c,f))}this.listeners.forEach(c=>{c(R(this,Wn))})})},E0),qw=h.createContext(void 0),sr=e=>{const t=h.useContext(qw);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},jC=({client:e,children:t})=>(h.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),fE.jsx(qw.Provider,{value:e,children:t})),Kw=h.createContext(!1),Gw=()=>h.useContext(Kw);Kw.Provider;function NC(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var UC=h.createContext(NC()),Yw=()=>h.useContext(UC);function Jw(e,t){return typeof e=="function"?e(...t):!!e}function Xw(){}var Zw=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},e_=e=>{h.useEffect(()=>{e.clearReset()},[e])},t_=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&Jw(r,[e.error,n]),r_=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},n_=(e,t)=>e.isLoading&&e.isFetching&&!t,Qd=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,pl=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function zC({queries:e,...t},r){const n=sr(),i=Gw(),a=Yw(),o=h.useMemo(()=>e.map(w=>{const b=n.defaultQueryOptions(w);return b._optimisticResults=i?"isRestoring":"optimistic",b}),[e,n,i]);o.forEach(w=>{r_(w),Zw(w,a)}),e_(a);const[s]=h.useState(()=>new DC(n,o,t)),[l,u,c]=s.getOptimisticResult(o,t.combine);h.useSyncExternalStore(h.useCallback(w=>i?()=>{}:s.subscribe(Ke.batchCalls(w)),[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),h.useEffect(()=>{s.setQueries(o,t,{listeners:!1})},[o,t,s]);const v=l.some((w,b)=>Qd(o[b],w))?l.flatMap((w,b)=>{const E=o[b];if(E){const y=new wv(n,E);if(Qd(E,w))return pl(E,y,a);n_(w,i)&&pl(E,y,a)}return[]}):[];if(v.length>0)throw Promise.all(v);const m=l.find((w,b)=>{const E=o[b];return E&&t_({result:w,errorResetBoundary:a,throwOnError:E.throwOnError,query:n.getQueryCache().get(E.queryHash)})});if(m!=null&&m.error)throw m.error;return u(c())}function VC(e,t,r){var c,f,v,m,w;const n=sr(),i=Gw(),a=Yw(),o=n.defaultQueryOptions(e);(f=(c=n.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||f.call(c,o),o._optimisticResults=i?"isRestoring":"optimistic",r_(o),Zw(o,a),e_(a);const s=!n.getQueryCache().get(o.queryHash),[l]=h.useState(()=>new t(n,o)),u=l.getOptimisticResult(o);if(h.useSyncExternalStore(h.useCallback(b=>{const E=i?()=>{}:l.subscribe(Ke.batchCalls(b));return l.updateResult(),E},[l,i]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),h.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),Qd(o,u))throw pl(o,l,a);if(t_({result:u,errorResetBoundary:a,throwOnError:o.throwOnError,query:n.getQueryCache().get(o.queryHash)}))throw u.error;if((m=(v=n.getDefaultOptions().queries)==null?void 0:v._experimental_afterQuery)==null||m.call(v,o,u),o.experimental_prefetchInRender&&!qi&&n_(u,i)){const b=s?pl(o,l,a):(w=n.getQueryCache().get(o.queryHash))==null?void 0:w.promise;b==null||b.catch(Xw).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?u:l.trackResult(u)}function ta(e,t){return VC(e,wv)}function Bu(e,t){const r=sr(),[n]=h.useState(()=>new IC(r,e));h.useEffect(()=>{n.setOptions(e)},[n,e]);const i=h.useSyncExternalStore(h.useCallback(o=>n.subscribe(Ke.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=h.useCallback((o,s)=>{n.mutate(o,s).catch(Xw)},[n]);if(i.error&&Jw(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}/** + * @remix-run/router v1.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Gi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function WC(){return Math.random().toString(36).substr(2,8)}function Bg(e,t){return{usr:e.state,key:e.key,idx:t}}function Ru(e,t,r,n){return r===void 0&&(r=null),Qe({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Gr(t):t,{state:r,key:t&&t.key||n||WC()})}function Yi(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Gr(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function HC(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s=it.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(Qe({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){s=it.Pop;let E=c(),y=E==null?null:E-u;u=E,l&&l({action:s,location:b.location,delta:y})}function v(E,y){s=it.Push;let d=Ru(b.location,E,y);r&&r(d,E),u=c()+1;let p=Bg(d,u),S=b.createHref(d);try{o.pushState(p,"",S)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(S)}a&&l&&l({action:s,location:b.location,delta:1})}function m(E,y){s=it.Replace;let d=Ru(b.location,E,y);r&&r(d,E),u=c();let p=Bg(d,u),S=b.createHref(d);o.replaceState(p,"",S),a&&l&&l({action:s,location:b.location,delta:0})}function w(E){let y=i.location.origin!=="null"?i.location.origin:i.location.href,d=typeof E=="string"?E:Yi(E);return d=d.replace(/ $/,"%20"),he(y,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,y)}let b={get action(){return s},get location(){return e(i,o)},listen(E){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Vg,f),l=E,()=>{i.removeEventListener(Vg,f),l=null}},createHref(E){return t(i,E)},createURL:w,encodeLocation(E){let y=w(E);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:v,replace:m,go(E){return o.go(E)}};return b}var De;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(De||(De={}));const QC=new Set(["lazy","caseSensitive","path","id","index","children"]);function qC(e){return e.index===!0}function gl(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((i,a)=>{let o=[...r,String(a)],s=typeof i.id=="string"?i.id:o.join("-");if(he(i.index!==!0||!i.children,"Cannot specify children on an index route"),he(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),qC(i)){let l=Qe({},i,t(i),{id:s});return n[s]=l,l}else{let l=Qe({},i,t(i),{id:s,children:void 0});return n[s]=l,i.children&&(l.children=gl(i.children,t,o,n)),l}})}function _i(e,t,r){return r===void 0&&(r="/"),Us(e,t,r,!1)}function Us(e,t,r,n){let i=typeof t=="string"?Gr(t):t,a=ii(i.pathname||"/",r);if(a==null)return null;let o=i_(e);GC(o);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(he(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=pn([n,l.relativePath]),c=r.concat(l);a.children&&a.children.length>0&&(he(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),i_(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:rP(u,a.index),routesMeta:c})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of a_(a.path))i(a,o,l)}),t}function a_(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=a_(n.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function GC(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:nP(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const YC=/^:[\w-]+$/,JC=3,XC=2,ZC=1,eP=10,tP=-2,Wg=e=>e==="*";function rP(e,t){let r=e.split("/"),n=r.length;return r.some(Wg)&&(n+=tP),t&&(n+=XC),r.filter(i=>!Wg(i)).reduce((i,a)=>i+(YC.test(a)?JC:a===""?ZC:eP),n)}function nP(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function iP(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,i={},a="/",o=[];for(let s=0;s{let{paramName:v,isOptional:m}=c;if(v==="*"){let b=s[f]||"";o=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const w=s[f];return m&&!w?u[v]=void 0:u[v]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function aP(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Gi(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function o_(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Gi(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ii(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function oP(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Gr(e):e;return{pathname:r?r.startsWith("/")?r:uP(r,t):t,search:lP(n),hash:cP(i)}}function uP(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function pf(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function u_(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Zl(e,t){let r=u_(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function ec(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Gr(e):(i=Qe({},e),he(!i.pathname||!i.pathname.includes("?"),pf("?","pathname","search",i)),he(!i.pathname||!i.pathname.includes("#"),pf("#","pathname","hash",i)),he(!i.search||!i.search.includes("#"),pf("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=r;else{let f=t.length-1;if(!n&&o.startsWith("..")){let v=o.split("/");for(;v[0]==="..";)v.shift(),f-=1;i.pathname=v.join("/")}s=f>=0?t[f]:"/"}let l=oP(i,s),u=o&&o!=="/"&&o.endsWith("/"),c=(a||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const pn=e=>e.join("/").replace(/\/\/+/g,"/"),sP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),lP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,cP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class yl{constructor(t,r,n,i){i===void 0&&(i=!1),this.status=t,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function tc(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const s_=["post","put","patch","delete"],fP=new Set(s_),dP=["get",...s_],hP=new Set(dP),vP=new Set([301,302,303,307,308]),pP=new Set([307,308]),gf={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},gP={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ca={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Sv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yP=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),l_="remix-router-transitions";function mP(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;he(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let k=e.detectErrorBoundary;i=T=>({hasErrorBoundary:k(T)})}else i=yP;let a={},o=gl(e.routes,i,void 0,a),s,l=e.basename||"/",u=e.dataStrategy||bP,c=e.patchRoutesOnNavigation,f=Qe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),v=null,m=new Set,w=null,b=null,E=null,y=e.hydrationData!=null,d=_i(o,e.history.location,l),p=null;if(d==null&&!c){let k=Vt(404,{pathname:e.history.location.pathname}),{matches:T,route:I}=ty(o);d=T,p={[I.id]:k}}d&&!e.hydrationData&&Zu(d,o,e.history.location.pathname).active&&(d=null);let S;if(d)if(d.some(k=>k.route.lazy))S=!1;else if(!d.some(k=>k.route.loader))S=!0;else if(f.v7_partialHydration){let k=e.hydrationData?e.hydrationData.loaderData:null,T=e.hydrationData?e.hydrationData.errors:null;if(T){let I=d.findIndex(B=>T[B.route.id]!==void 0);S=d.slice(0,I+1).every(B=>!Gd(B.route,k,T))}else S=d.every(I=>!Gd(I.route,k,T))}else S=e.hydrationData!=null;else if(S=!1,d=[],f.v7_partialHydration){let k=Zu(null,o,e.history.location.pathname);k.active&&k.matches&&(d=k.matches)}let _,g={historyAction:e.history.action,location:e.history.location,matches:d,initialized:S,navigation:gf,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||p,fetchers:new Map,blockers:new Map},O=it.Pop,x=!1,P,C=!1,A=new Map,L=null,j=!1,U=!1,G=[],X=new Set,z=new Map,M=0,K=-1,H=new Map,Z=new Set,ue=new Map,Fe=new Map,ve=new Set,Le=new Map,_e=new Map,Re;function $e(){if(v=e.history.listen(k=>{let{action:T,location:I,delta:B}=k;if(Re){Re(),Re=void 0;return}Gi(_e.size===0||B!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let re=_p({currentLocation:g.location,nextLocation:I,historyAction:T});if(re&&B!=null){let se=new Promise(de=>{Re=de});e.history.go(B*-1),Xu(re,{state:"blocked",location:I,proceed(){Xu(re,{state:"proceeding",proceed:void 0,reset:void 0,location:I}),se.then(()=>e.history.go(B))},reset(){let de=new Map(g.blockers);de.set(re,ca),ke({blockers:de})}});return}return gt(T,I)}),r){DP(t,A);let k=()=>IP(t,A);t.addEventListener("pagehide",k),L=()=>t.removeEventListener("pagehide",k)}return g.initialized||gt(it.Pop,g.location,{initialHydration:!0}),_}function Xt(){v&&v(),L&&L(),m.clear(),P&&P.abort(),g.fetchers.forEach((k,T)=>xn(T)),g.blockers.forEach((k,T)=>wp(T))}function Xr(k){return m.add(k),()=>m.delete(k)}function ke(k,T){T===void 0&&(T={}),g=Qe({},g,k);let I=[],B=[];f.v7_fetcherPersist&&g.fetchers.forEach((re,se)=>{re.state==="idle"&&(ve.has(se)?B.push(se):I.push(se))}),[...m].forEach(re=>re(g,{deletedFetchers:B,viewTransitionOpts:T.viewTransitionOpts,flushSync:T.flushSync===!0})),f.v7_fetcherPersist&&(I.forEach(re=>g.fetchers.delete(re)),B.forEach(re=>xn(re)))}function we(k,T,I){var B,re;let{flushSync:se}=I===void 0?{}:I,de=g.actionData!=null&&g.navigation.formMethod!=null&&Pr(g.navigation.formMethod)&&g.navigation.state==="loading"&&((B=k.state)==null?void 0:B._isRedirect)!==!0,ie;T.actionData?Object.keys(T.actionData).length>0?ie=T.actionData:ie=null:de?ie=g.actionData:ie=null;let ae=T.loaderData?Zg(g.loaderData,T.loaderData,T.matches||[],T.errors):g.loaderData,ne=g.blockers;ne.size>0&&(ne=new Map(ne),ne.forEach((Se,mt)=>ne.set(mt,ca)));let le=x===!0||g.navigation.formMethod!=null&&Pr(g.navigation.formMethod)&&((re=k.state)==null?void 0:re._isRedirect)!==!0;s&&(o=s,s=void 0),j||O===it.Pop||(O===it.Push?e.history.push(k,k.state):O===it.Replace&&e.history.replace(k,k.state));let ge;if(O===it.Pop){let Se=A.get(g.location.pathname);Se&&Se.has(k.pathname)?ge={currentLocation:g.location,nextLocation:k}:A.has(k.pathname)&&(ge={currentLocation:k,nextLocation:g.location})}else if(C){let Se=A.get(g.location.pathname);Se?Se.add(k.pathname):(Se=new Set([k.pathname]),A.set(g.location.pathname,Se)),ge={currentLocation:g.location,nextLocation:k}}ke(Qe({},T,{actionData:ie,loaderData:ae,historyAction:O,location:k,initialized:!0,navigation:gf,revalidation:"idle",restoreScrollPosition:bp(k,T.matches||g.matches),preventScrollReset:le,blockers:ne}),{viewTransitionOpts:ge,flushSync:se===!0}),O=it.Pop,x=!1,C=!1,j=!1,U=!1,G=[]}async function pt(k,T){if(typeof k=="number"){e.history.go(k);return}let I=Kd(g.location,g.matches,l,f.v7_prependBasename,k,f.v7_relativeSplatPath,T==null?void 0:T.fromRouteId,T==null?void 0:T.relative),{path:B,submission:re,error:se}=Hg(f.v7_normalizeFormMethod,!1,I,T),de=g.location,ie=Ru(g.location,B,T&&T.state);ie=Qe({},ie,e.history.encodeLocation(ie));let ae=T&&T.replace!=null?T.replace:void 0,ne=it.Push;ae===!0?ne=it.Replace:ae===!1||re!=null&&Pr(re.formMethod)&&re.formAction===g.location.pathname+g.location.search&&(ne=it.Replace);let le=T&&"preventScrollReset"in T?T.preventScrollReset===!0:void 0,ge=(T&&T.flushSync)===!0,Se=_p({currentLocation:de,nextLocation:ie,historyAction:ne});if(Se){Xu(Se,{state:"blocked",location:ie,proceed(){Xu(Se,{state:"proceeding",proceed:void 0,reset:void 0,location:ie}),pt(k,T)},reset(){let mt=new Map(g.blockers);mt.set(Se,ca),ke({blockers:mt})}});return}return await gt(ne,ie,{submission:re,pendingError:se,preventScrollReset:le,replace:T&&T.replace,enableViewTransition:T&&T.viewTransition,flushSync:ge})}function nt(){if(He(),ke({revalidation:"loading"}),g.navigation.state!=="submitting"){if(g.navigation.state==="idle"){gt(g.historyAction,g.location,{startUninterruptedRevalidation:!0});return}gt(O||g.historyAction,g.navigation.location,{overrideNavigation:g.navigation,enableViewTransition:C===!0})}}async function gt(k,T,I){P&&P.abort(),P=null,O=k,j=(I&&I.startUninterruptedRevalidation)===!0,Nb(g.location,g.matches),x=(I&&I.preventScrollReset)===!0,C=(I&&I.enableViewTransition)===!0;let B=s||o,re=I&&I.overrideNavigation,se=_i(B,T,l),de=(I&&I.flushSync)===!0,ie=Zu(se,B,T.pathname);if(ie.active&&ie.matches&&(se=ie.matches),!se){let{error:je,notFoundMatches:Ce,route:Xe}=Ic(T.pathname);we(T,{matches:Ce,loaderData:{},errors:{[Xe.id]:je}},{flushSync:de});return}if(g.initialized&&!U&&RP(g.location,T)&&!(I&&I.submission&&Pr(I.submission.formMethod))){we(T,{matches:se},{flushSync:de});return}P=new AbortController;let ae=ua(e.history,T,P.signal,I&&I.submission),ne;if(I&&I.pendingError)ne=[Si(se).route.id,{type:De.error,error:I.pendingError}];else if(I&&I.submission&&Pr(I.submission.formMethod)){let je=await Zr(ae,T,I.submission,se,ie.active,{replace:I.replace,flushSync:de});if(je.shortCircuited)return;if(je.pendingActionResult){let[Ce,Xe]=je.pendingActionResult;if(rr(Xe)&&tc(Xe.error)&&Xe.error.status===404){P=null,we(T,{matches:je.matches,loaderData:{},errors:{[Ce]:Xe.error}});return}}se=je.matches||se,ne=je.pendingActionResult,re=yf(T,I.submission),de=!1,ie.active=!1,ae=ua(e.history,ae.url,ae.signal)}let{shortCircuited:le,matches:ge,loaderData:Se,errors:mt}=await en(ae,T,se,ie.active,re,I&&I.submission,I&&I.fetcherSubmission,I&&I.replace,I&&I.initialHydration===!0,de,ne);le||(P=null,we(T,Qe({matches:ge||se},ey(ne),{loaderData:Se,errors:mt})))}async function Zr(k,T,I,B,re,se){se===void 0&&(se={}),He();let de=LP(T,I);if(ke({navigation:de},{flushSync:se.flushSync===!0}),re){let ne=await es(B,T.pathname,k.signal);if(ne.type==="aborted")return{shortCircuited:!0};if(ne.type==="error"){let le=Si(ne.partialMatches).route.id;return{matches:ne.partialMatches,pendingActionResult:[le,{type:De.error,error:ne.error}]}}else if(ne.matches)B=ne.matches;else{let{notFoundMatches:le,error:ge,route:Se}=Ic(T.pathname);return{matches:le,pendingActionResult:[Se.id,{type:De.error,error:ge}]}}}let ie,ae=Qo(B,T);if(!ae.route.action&&!ae.route.lazy)ie={type:De.error,error:Vt(405,{method:k.method,pathname:T.pathname,routeId:ae.route.id})};else if(ie=(await te("action",g,k,[ae],B,null))[ae.route.id],k.signal.aborted)return{shortCircuited:!0};if($i(ie)){let ne;return se&&se.replace!=null?ne=se.replace:ne=Yg(ie.response.headers.get("Location"),new URL(k.url),l)===g.location.pathname+g.location.search,await W(k,ie,!0,{submission:I,replace:ne}),{shortCircuited:!0}}if(qn(ie))throw Vt(400,{type:"defer-action"});if(rr(ie)){let ne=Si(B,ae.route.id);return(se&&se.replace)!==!0&&(O=it.Push),{matches:B,pendingActionResult:[ne.route.id,ie]}}return{matches:B,pendingActionResult:[ae.route.id,ie]}}async function en(k,T,I,B,re,se,de,ie,ae,ne,le){let ge=re||yf(T,se),Se=se||de||ny(ge),mt=!j&&(!f.v7_partialHydration||!ae);if(B){if(mt){let Ze=$(le);ke(Qe({navigation:ge},Ze!==void 0?{actionData:Ze}:{}),{flushSync:ne})}let xe=await es(I,T.pathname,k.signal);if(xe.type==="aborted")return{shortCircuited:!0};if(xe.type==="error"){let Ze=Si(xe.partialMatches).route.id;return{matches:xe.partialMatches,loaderData:{},errors:{[Ze]:xe.error}}}else if(xe.matches)I=xe.matches;else{let{error:Ze,notFoundMatches:ia,route:Co}=Ic(T.pathname);return{matches:ia,loaderData:{},errors:{[Co.id]:Ze}}}}let je=s||o,[Ce,Xe]=qg(e.history,g,I,Se,T,f.v7_partialHydration&&ae===!0,f.v7_skipActionErrorRevalidation,U,G,X,ve,ue,Z,je,l,le);if(jc(xe=>!(I&&I.some(Ze=>Ze.route.id===xe))||Ce&&Ce.some(Ze=>Ze.route.id===xe)),K=++M,Ce.length===0&&Xe.length===0){let xe=Ju();return we(T,Qe({matches:I,loaderData:{},errors:le&&rr(le[1])?{[le[0]]:le[1].error}:null},ey(le),xe?{fetchers:new Map(g.fetchers)}:{}),{flushSync:ne}),{shortCircuited:!0}}if(mt){let xe={};if(!B){xe.navigation=ge;let Ze=$(le);Ze!==void 0&&(xe.actionData=Ze)}Xe.length>0&&(xe.fetchers=F(Xe)),ke(xe,{flushSync:ne})}Xe.forEach(xe=>{Dr(xe.key),xe.controller&&z.set(xe.key,xe.controller)});let na=()=>Xe.forEach(xe=>Dr(xe.key));P&&P.signal.addEventListener("abort",na);let{loaderResults:Eo,fetcherResults:tn}=await fe(g,I,Ce,Xe,k);if(k.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",na),Xe.forEach(xe=>z.delete(xe.key));let Ir=bs(Eo);if(Ir)return await W(k,Ir.result,!0,{replace:ie}),{shortCircuited:!0};if(Ir=bs(tn),Ir)return Z.add(Ir.key),await W(k,Ir.result,!0,{replace:ie}),{shortCircuited:!0};let{loaderData:Nc,errors:xo}=Xg(g,I,Eo,le,Xe,tn,Le);Le.forEach((xe,Ze)=>{xe.subscribe(ia=>{(ia||xe.done)&&Le.delete(Ze)})}),f.v7_partialHydration&&ae&&g.errors&&(xo=Qe({},g.errors,xo));let gi=Ju(),ts=bo(K),rs=gi||ts||Xe.length>0;return Qe({matches:I,loaderData:Nc,errors:xo},rs?{fetchers:new Map(g.fetchers)}:{})}function $(k){if(k&&!rr(k[1]))return{[k[0]]:k[1].data};if(g.actionData)return Object.keys(g.actionData).length===0?null:g.actionData}function F(k){return k.forEach(T=>{let I=g.fetchers.get(T.key),B=Lo(void 0,I?I.data:void 0);g.fetchers.set(T.key,B)}),new Map(g.fetchers)}function D(k,T,I,B){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Dr(k);let re=(B&&B.flushSync)===!0,se=s||o,de=Kd(g.location,g.matches,l,f.v7_prependBasename,I,f.v7_relativeSplatPath,T,B==null?void 0:B.relative),ie=_i(se,de,l),ae=Zu(ie,se,de);if(ae.active&&ae.matches&&(ie=ae.matches),!ie){yt(k,T,Vt(404,{pathname:de}),{flushSync:re});return}let{path:ne,submission:le,error:ge}=Hg(f.v7_normalizeFormMethod,!0,de,B);if(ge){yt(k,T,ge,{flushSync:re});return}let Se=Qo(ie,ne),mt=(B&&B.preventScrollReset)===!0;if(le&&Pr(le.formMethod)){V(k,T,ne,Se,ie,ae.active,re,mt,le);return}ue.set(k,{routeId:T,path:ne}),Q(k,T,ne,Se,ie,ae.active,re,mt,le)}async function V(k,T,I,B,re,se,de,ie,ae){He(),ue.delete(k);function ne(ut){if(!ut.route.action&&!ut.route.lazy){let aa=Vt(405,{method:ae.formMethod,pathname:I,routeId:T});return yt(k,T,aa,{flushSync:de}),!0}return!1}if(!se&&ne(B))return;let le=g.fetchers.get(k);Ee(k,MP(ae,le),{flushSync:de});let ge=new AbortController,Se=ua(e.history,I,ge.signal,ae);if(se){let ut=await es(re,I,Se.signal);if(ut.type==="aborted")return;if(ut.type==="error"){yt(k,T,ut.error,{flushSync:de});return}else if(ut.matches){if(re=ut.matches,B=Qo(re,I),ne(B))return}else{yt(k,T,Vt(404,{pathname:I}),{flushSync:de});return}}z.set(k,ge);let mt=M,Ce=(await te("action",g,Se,[B],re,k))[B.route.id];if(Se.signal.aborted){z.get(k)===ge&&z.delete(k);return}if(f.v7_fetcherPersist&&ve.has(k)){if($i(Ce)||rr(Ce)){Ee(k,On(void 0));return}}else{if($i(Ce))if(z.delete(k),K>mt){Ee(k,On(void 0));return}else return Z.add(k),Ee(k,Lo(ae)),W(Se,Ce,!1,{fetcherSubmission:ae,preventScrollReset:ie});if(rr(Ce)){yt(k,T,Ce.error);return}}if(qn(Ce))throw Vt(400,{type:"defer-action"});let Xe=g.navigation.location||g.location,na=ua(e.history,Xe,ge.signal),Eo=s||o,tn=g.navigation.state!=="idle"?_i(Eo,g.navigation.location,l):g.matches;he(tn,"Didn't find any matches after fetcher action");let Ir=++M;H.set(k,Ir);let Nc=Lo(ae,Ce.data);g.fetchers.set(k,Nc);let[xo,gi]=qg(e.history,g,tn,ae,Xe,!1,f.v7_skipActionErrorRevalidation,U,G,X,ve,ue,Z,Eo,l,[B.route.id,Ce]);gi.filter(ut=>ut.key!==k).forEach(ut=>{let aa=ut.key,Ep=g.fetchers.get(aa),Vb=Lo(void 0,Ep?Ep.data:void 0);g.fetchers.set(aa,Vb),Dr(aa),ut.controller&&z.set(aa,ut.controller)}),ke({fetchers:new Map(g.fetchers)});let ts=()=>gi.forEach(ut=>Dr(ut.key));ge.signal.addEventListener("abort",ts);let{loaderResults:rs,fetcherResults:xe}=await fe(g,tn,xo,gi,na);if(ge.signal.aborted)return;ge.signal.removeEventListener("abort",ts),H.delete(k),z.delete(k),gi.forEach(ut=>z.delete(ut.key));let Ze=bs(rs);if(Ze)return W(na,Ze.result,!1,{preventScrollReset:ie});if(Ze=bs(xe),Ze)return Z.add(Ze.key),W(na,Ze.result,!1,{preventScrollReset:ie});let{loaderData:ia,errors:Co}=Xg(g,tn,rs,void 0,gi,xe,Le);if(g.fetchers.has(k)){let ut=On(Ce.data);g.fetchers.set(k,ut)}bo(Ir),g.navigation.state==="loading"&&Ir>K?(he(O,"Expected pending action"),P&&P.abort(),we(g.navigation.location,{matches:tn,loaderData:ia,errors:Co,fetchers:new Map(g.fetchers)})):(ke({errors:Co,loaderData:Zg(g.loaderData,ia,tn,Co),fetchers:new Map(g.fetchers)}),U=!1)}async function Q(k,T,I,B,re,se,de,ie,ae){let ne=g.fetchers.get(k);Ee(k,Lo(ae,ne?ne.data:void 0),{flushSync:de});let le=new AbortController,ge=ua(e.history,I,le.signal);if(se){let Ce=await es(re,I,ge.signal);if(Ce.type==="aborted")return;if(Ce.type==="error"){yt(k,T,Ce.error,{flushSync:de});return}else if(Ce.matches)re=Ce.matches,B=Qo(re,I);else{yt(k,T,Vt(404,{pathname:I}),{flushSync:de});return}}z.set(k,le);let Se=M,je=(await te("loader",g,ge,[B],re,k))[B.route.id];if(qn(je)&&(je=await bv(je,ge.signal,!0)||je),z.get(k)===le&&z.delete(k),!ge.signal.aborted){if(ve.has(k)){Ee(k,On(void 0));return}if($i(je))if(K>Se){Ee(k,On(void 0));return}else{Z.add(k),await W(ge,je,!1,{preventScrollReset:ie});return}if(rr(je)){yt(k,T,je.error);return}he(!qn(je),"Unhandled fetcher deferred data"),Ee(k,On(je.data))}}async function W(k,T,I,B){let{submission:re,fetcherSubmission:se,preventScrollReset:de,replace:ie}=B===void 0?{}:B;T.response.headers.has("X-Remix-Revalidate")&&(U=!0);let ae=T.response.headers.get("Location");he(ae,"Expected a Location header on the redirect Response"),ae=Yg(ae,new URL(k.url),l);let ne=Ru(g.location,ae,{_isRedirect:!0});if(r){let Ce=!1;if(T.response.headers.has("X-Remix-Reload-Document"))Ce=!0;else if(Sv.test(ae)){const Xe=e.history.createURL(ae);Ce=Xe.origin!==t.location.origin||ii(Xe.pathname,l)==null}if(Ce){ie?t.location.replace(ae):t.location.assign(ae);return}}P=null;let le=ie===!0||T.response.headers.has("X-Remix-Replace")?it.Replace:it.Push,{formMethod:ge,formAction:Se,formEncType:mt}=g.navigation;!re&&!se&&ge&&Se&&mt&&(re=ny(g.navigation));let je=re||se;if(pP.has(T.response.status)&&je&&Pr(je.formMethod))await gt(le,ne,{submission:Qe({},je,{formAction:ae}),preventScrollReset:de||x,enableViewTransition:I?C:void 0});else{let Ce=yf(ne,re);await gt(le,ne,{overrideNavigation:Ce,fetcherSubmission:se,preventScrollReset:de||x,enableViewTransition:I?C:void 0})}}async function te(k,T,I,B,re,se){let de,ie={};try{de=await EP(u,k,T,I,B,re,se,a,i)}catch(ae){return B.forEach(ne=>{ie[ne.route.id]={type:De.error,error:ae}}),ie}for(let[ae,ne]of Object.entries(de))if($P(ne)){let le=ne.result;ie[ae]={type:De.redirect,response:PP(le,I,ae,re,l,f.v7_relativeSplatPath)}}else ie[ae]=await CP(ne);return ie}async function fe(k,T,I,B,re){let se=k.matches,de=te("loader",k,re,I,T,null),ie=Promise.all(B.map(async le=>{if(le.matches&&le.match&&le.controller){let Se=(await te("loader",k,ua(e.history,le.path,le.controller.signal),[le.match],le.matches,le.key))[le.match.route.id];return{[le.key]:Se}}else return Promise.resolve({[le.key]:{type:De.error,error:Vt(404,{pathname:le.path})}})})),ae=await de,ne=(await ie).reduce((le,ge)=>Object.assign(le,ge),{});return await Promise.all([TP(T,ae,re.signal,se,k.loaderData),FP(T,ne,B)]),{loaderResults:ae,fetcherResults:ne}}function He(){U=!0,G.push(...jc()),ue.forEach((k,T)=>{z.has(T)&&X.add(T),Dr(T)})}function Ee(k,T,I){I===void 0&&(I={}),g.fetchers.set(k,T),ke({fetchers:new Map(g.fetchers)},{flushSync:(I&&I.flushSync)===!0})}function yt(k,T,I,B){B===void 0&&(B={});let re=Si(g.matches,T);xn(k),ke({errors:{[re.route.id]:I},fetchers:new Map(g.fetchers)},{flushSync:(B&&B.flushSync)===!0})}function Yu(k){return f.v7_fetcherPersist&&(Fe.set(k,(Fe.get(k)||0)+1),ve.has(k)&&ve.delete(k)),g.fetchers.get(k)||gP}function xn(k){let T=g.fetchers.get(k);z.has(k)&&!(T&&T.state==="loading"&&H.has(k))&&Dr(k),ue.delete(k),H.delete(k),Z.delete(k),ve.delete(k),X.delete(k),g.fetchers.delete(k)}function _o(k){if(f.v7_fetcherPersist){let T=(Fe.get(k)||0)-1;T<=0?(Fe.delete(k),ve.add(k)):Fe.set(k,T)}else xn(k);ke({fetchers:new Map(g.fetchers)})}function Dr(k){let T=z.get(k);T&&(T.abort(),z.delete(k))}function So(k){for(let T of k){let I=Yu(T),B=On(I.data);g.fetchers.set(T,B)}}function Ju(){let k=[],T=!1;for(let I of Z){let B=g.fetchers.get(I);he(B,"Expected fetcher: "+I),B.state==="loading"&&(Z.delete(I),k.push(I),T=!0)}return So(k),T}function bo(k){let T=[];for(let[I,B]of H)if(B0}function Ib(k,T){let I=g.blockers.get(k)||ca;return _e.get(k)!==T&&_e.set(k,T),I}function wp(k){g.blockers.delete(k),_e.delete(k)}function Xu(k,T){let I=g.blockers.get(k)||ca;he(I.state==="unblocked"&&T.state==="blocked"||I.state==="blocked"&&T.state==="blocked"||I.state==="blocked"&&T.state==="proceeding"||I.state==="blocked"&&T.state==="unblocked"||I.state==="proceeding"&&T.state==="unblocked","Invalid blocker state transition: "+I.state+" -> "+T.state);let B=new Map(g.blockers);B.set(k,T),ke({blockers:B})}function _p(k){let{currentLocation:T,nextLocation:I,historyAction:B}=k;if(_e.size===0)return;_e.size>1&&Gi(!1,"A router only supports one blocker at a time");let re=Array.from(_e.entries()),[se,de]=re[re.length-1],ie=g.blockers.get(se);if(!(ie&&ie.state==="proceeding")&&de({currentLocation:T,nextLocation:I,historyAction:B}))return se}function Ic(k){let T=Vt(404,{pathname:k}),I=s||o,{matches:B,route:re}=ty(I);return jc(),{notFoundMatches:B,route:re,error:T}}function jc(k){let T=[];return Le.forEach((I,B)=>{(!k||k(B))&&(I.cancel(),T.push(B),Le.delete(B))}),T}function jb(k,T,I){if(w=k,E=T,b=I||null,!y&&g.navigation===gf){y=!0;let B=bp(g.location,g.matches);B!=null&&ke({restoreScrollPosition:B})}return()=>{w=null,E=null,b=null}}function Sp(k,T){return b&&b(k,T.map(B=>KC(B,g.loaderData)))||k.key}function Nb(k,T){if(w&&E){let I=Sp(k,T);w[I]=E()}}function bp(k,T){if(w){let I=Sp(k,T),B=w[I];if(typeof B=="number")return B}return null}function Zu(k,T,I){if(c)if(k){if(Object.keys(k[0].params).length>0)return{active:!0,matches:Us(T,I,l,!0)}}else return{active:!0,matches:Us(T,I,l,!0)||[]};return{active:!1,matches:null}}async function es(k,T,I){if(!c)return{type:"success",matches:k};let B=k;for(;;){let re=s==null,se=s||o,de=a;try{await c({path:T,matches:B,patch:(ne,le)=>{I.aborted||Gg(ne,le,se,de,i)}})}catch(ne){return{type:"error",error:ne,partialMatches:B}}finally{re&&!I.aborted&&(o=[...o])}if(I.aborted)return{type:"aborted"};let ie=_i(se,T,l);if(ie)return{type:"success",matches:ie};let ae=Us(se,T,l,!0);if(!ae||B.length===ae.length&&B.every((ne,le)=>ne.route.id===ae[le].route.id))return{type:"success",matches:null};B=ae}}function Ub(k){a={},s=gl(k,i,void 0,a)}function zb(k,T){let I=s==null;Gg(k,T,s||o,a,i),I&&(o=[...o],ke({}))}return _={get basename(){return l},get future(){return f},get state(){return g},get routes(){return o},get window(){return t},initialize:$e,subscribe:Xr,enableScrollRestoration:jb,navigate:pt,fetch:D,revalidate:nt,createHref:k=>e.history.createHref(k),encodeLocation:k=>e.history.encodeLocation(k),getFetcher:Yu,deleteFetcher:_o,dispose:Xt,getBlocker:Ib,deleteBlocker:wp,patchRoutes:zb,_internalFetchControllers:z,_internalActiveDeferreds:Le,_internalSetRoutes:Ub},_}function wP(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Kd(e,t,r,n,i,a,o,s){let l,u;if(o){l=[];for(let f of t)if(l.push(f),f.route.id===o){u=f;break}}else l=t,u=t[t.length-1];let c=ec(i||".",Zl(l,a),ii(e.pathname,r)||e.pathname,s==="path");if(i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u){let f=Ev(c.search);if(u.route.index&&!f)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&f){let v=new URLSearchParams(c.search),m=v.getAll("index");v.delete("index"),m.filter(b=>b).forEach(b=>v.append("index",b));let w=v.toString();c.search=w?"?"+w:""}}return n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:pn([r,c.pathname])),Yi(c)}function Hg(e,t,r,n){if(!n||!wP(n))return{path:r};if(n.formMethod&&!AP(n.formMethod))return{path:r,error:Vt(405,{method:n.formMethod})};let i=()=>({path:r,error:Vt(400,{type:"invalid-body"})}),a=n.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=d_(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Pr(o))return i();let v=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((m,w)=>{let[b,E]=w;return""+m+b+"="+E+` +`},""):String(n.body);return{path:r,submission:{formMethod:o,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:v}}}else if(n.formEncType==="application/json"){if(!Pr(o))return i();try{let v=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:s,formEncType:n.formEncType,formData:void 0,json:v,text:void 0}}}catch{return i()}}}he(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=Yd(n.formData),u=n.formData;else if(n.body instanceof FormData)l=Yd(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=Jg(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=Jg(l)}catch{return i()}let c={formMethod:o,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Pr(c.formMethod))return{path:r,submission:c};let f=Gr(r);return t&&f.search&&Ev(f.search)&&l.append("index",""),f.search="?"+l,{path:Yi(f),submission:c}}function Qg(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(i=>i.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function qg(e,t,r,n,i,a,o,s,l,u,c,f,v,m,w,b){let E=b?rr(b[1])?b[1].error:b[1].data:void 0,y=e.createURL(t.location),d=e.createURL(i),p=r;a&&t.errors?p=Qg(r,Object.keys(t.errors)[0],!0):b&&rr(b[1])&&(p=Qg(r,b[0]));let S=b?b[1].statusCode:void 0,_=o&&S&&S>=400,g=p.filter((x,P)=>{let{route:C}=x;if(C.lazy)return!0;if(C.loader==null)return!1;if(a)return Gd(C,t.loaderData,t.errors);if(_P(t.loaderData,t.matches[P],x)||l.some(j=>j===x.route.id))return!0;let A=t.matches[P],L=x;return Kg(x,Qe({currentUrl:y,currentParams:A.params,nextUrl:d,nextParams:L.params},n,{actionResult:E,actionStatus:S,defaultShouldRevalidate:_?!1:s||y.pathname+y.search===d.pathname+d.search||y.search!==d.search||c_(A,L)}))}),O=[];return f.forEach((x,P)=>{if(a||!r.some(U=>U.route.id===x.routeId)||c.has(P))return;let C=_i(m,x.path,w);if(!C){O.push({key:P,routeId:x.routeId,path:x.path,matches:null,match:null,controller:null});return}let A=t.fetchers.get(P),L=Qo(C,x.path),j=!1;v.has(P)?j=!1:u.has(P)?(u.delete(P),j=!0):A&&A.state!=="idle"&&A.data===void 0?j=s:j=Kg(L,Qe({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:d,nextParams:r[r.length-1].params},n,{actionResult:E,actionStatus:S,defaultShouldRevalidate:_?!1:s})),j&&O.push({key:P,routeId:x.routeId,path:x.path,matches:C,match:L,controller:new AbortController})}),[g,O]}function Gd(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,i=r!=null&&r[e.id]!==void 0;return!n&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!i}function _P(e,t,r){let n=!t||r.route.id!==t.route.id,i=e[r.route.id]===void 0;return n||i}function c_(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Kg(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function Gg(e,t,r,n,i){var a;let o;if(e){let u=n[e];he(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),o=u.children}else o=r;let s=t.filter(u=>!o.some(c=>f_(u,c))),l=gl(s,i,[e||"_","patch",String(((a=o)==null?void 0:a.length)||"0")],n);o.push(...l)}function f_(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var i;return(i=t.children)==null?void 0:i.some(a=>f_(r,a))}):!1}async function SP(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let i=r[e.id];he(i,"No route found in manifest");let a={};for(let o in n){let l=i[o]!==void 0&&o!=="hasErrorBoundary";Gi(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!QC.has(o)&&(a[o]=n[o])}Object.assign(i,a),Object.assign(i,Qe({},t(i),{lazy:void 0}))}async function bP(e){let{matches:t}=e,r=t.filter(i=>i.shouldLoad);return(await Promise.all(r.map(i=>i.resolve()))).reduce((i,a,o)=>Object.assign(i,{[r[o].route.id]:a}),{})}async function EP(e,t,r,n,i,a,o,s,l,u){let c=a.map(m=>m.route.lazy?SP(m.route,l,s):void 0),f=a.map((m,w)=>{let b=c[w],E=i.some(d=>d.route.id===m.route.id);return Qe({},m,{shouldLoad:E,resolve:async d=>(d&&n.method==="GET"&&(m.route.lazy||m.route.loader)&&(E=!0),E?xP(t,n,m,b,d,u):Promise.resolve({type:De.data,result:void 0}))})}),v=await e({matches:f,request:n,params:a[0].params,fetcherKey:o,context:u});try{await Promise.all(c)}catch{}return v}async function xP(e,t,r,n,i,a){let o,s,l=u=>{let c,f=new Promise((w,b)=>c=b);s=()=>c(),t.signal.addEventListener("abort",s);let v=w=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):u({request:t,params:r.params,context:a},...w!==void 0?[w]:[]),m=(async()=>{try{return{type:"data",result:await(i?i(b=>v(b)):v())}}catch(w){return{type:"error",result:w}}})();return Promise.race([m,f])};try{let u=r.route[e];if(n)if(u){let c,[f]=await Promise.all([l(u).catch(v=>{c=v}),n]);if(c!==void 0)throw c;o=f}else if(await n,u=r.route[e],u)o=await l(u);else if(e==="action"){let c=new URL(t.url),f=c.pathname+c.search;throw Vt(405,{method:t.method,pathname:f,routeId:r.route.id})}else return{type:De.data,result:void 0};else if(u)o=await l(u);else{let c=new URL(t.url),f=c.pathname+c.search;throw Vt(404,{pathname:f})}he(o.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:De.error,result:u}}finally{s&&t.signal.removeEventListener("abort",s)}return o}async function CP(e){let{result:t,type:r}=e;if(h_(t)){let u;try{let c=t.headers.get("Content-Type");c&&/\bapplication\/json\b/.test(c)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(c){return{type:De.error,error:c}}return r===De.error?{type:De.error,error:new yl(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:De.data,data:u,statusCode:t.status,headers:t.headers}}if(r===De.error){if(ry(t)){var n;if(t.data instanceof Error){var i;return{type:De.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new yl(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:De.error,error:t,statusCode:tc(t)?t.status:void 0}}if(kP(t)){var a,o;return{type:De.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((o=t.init)==null?void 0:o.headers)&&new Headers(t.init.headers)}}if(ry(t)){var s,l;return{type:De.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:De.data,data:t}}function PP(e,t,r,n,i,a){let o=e.headers.get("Location");if(he(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!Sv.test(o)){let s=n.slice(0,n.findIndex(l=>l.route.id===r)+1);o=Kd(new URL(t.url),s,i,!0,o,a),e.headers.set("Location",o)}return e}function Yg(e,t,r){if(Sv.test(e)){let n=e,i=n.startsWith("//")?new URL(t.protocol+n):new URL(n),a=ii(i.pathname,r)!=null;if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}return e}function ua(e,t,r,n){let i=e.createURL(d_(t)).toString(),a={signal:r};if(n&&Pr(n.formMethod)){let{formMethod:o,formEncType:s}=n;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(n.json)):s==="text/plain"?a.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?a.body=Yd(n.formData):a.body=n.formData}return new Request(i,a)}function Yd(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function Jg(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function OP(e,t,r,n,i){let a={},o=null,s,l=!1,u={},c=r&&rr(r[1])?r[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let v=f.route.id,m=t[v];if(he(!$i(m),"Cannot handle redirect results in processLoaderData"),rr(m)){let w=m.error;c!==void 0&&(w=c,c=void 0),o=o||{};{let b=Si(e,v);o[b.route.id]==null&&(o[b.route.id]=w)}a[v]=void 0,l||(l=!0,s=tc(m.error)?m.error.status:500),m.headers&&(u[v]=m.headers)}else qn(m)?(n.set(v,m.deferredData),a[v]=m.deferredData.data,m.statusCode!=null&&m.statusCode!==200&&!l&&(s=m.statusCode),m.headers&&(u[v]=m.headers)):(a[v]=m.data,m.statusCode&&m.statusCode!==200&&!l&&(s=m.statusCode),m.headers&&(u[v]=m.headers))}),c!==void 0&&r&&(o={[r[0]]:c},a[r[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:u}}function Xg(e,t,r,n,i,a,o){let{loaderData:s,errors:l}=OP(t,r,n,o);return i.forEach(u=>{let{key:c,match:f,controller:v}=u,m=a[c];if(he(m,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(rr(m)){let w=Si(e.matches,f==null?void 0:f.route.id);l&&l[w.route.id]||(l=Qe({},l,{[w.route.id]:m.error})),e.fetchers.delete(c)}else if($i(m))he(!1,"Unhandled fetcher revalidation redirect");else if(qn(m))he(!1,"Unhandled fetcher deferred data");else{let w=On(m.data);e.fetchers.set(c,w)}}),{loaderData:s,errors:l}}function Zg(e,t,r,n){let i=Qe({},t);for(let a of r){let o=a.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(i[o]=t[o]):e[o]!==void 0&&a.route.loader&&(i[o]=e[o]),n&&n.hasOwnProperty(o))break}return i}function ey(e){return e?rr(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Si(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function ty(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Vt(e,t){let{pathname:r,routeId:n,method:i,type:a,message:o}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&r&&n?l="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",l='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",i&&r&&n?l="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new yl(e||500,s,new Error(l),!0)}function bs(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,i]=t[r];if($i(i))return{key:n,result:i}}}function d_(e){let t=typeof e=="string"?Gr(e):e;return Yi(Qe({},t,{hash:""}))}function RP(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function $P(e){return h_(e.result)&&vP.has(e.result.status)}function qn(e){return e.type===De.deferred}function rr(e){return e.type===De.error}function $i(e){return(e&&e.type)===De.redirect}function ry(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function kP(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function h_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function AP(e){return hP.has(e.toLowerCase())}function Pr(e){return fP.has(e.toLowerCase())}async function TP(e,t,r,n,i){let a=Object.entries(t);for(let o=0;o(v==null?void 0:v.route.id)===s);if(!u)continue;let c=n.find(v=>v.route.id===u.route.id),f=c!=null&&!c_(c,u)&&(i&&i[u.route.id])!==void 0;qn(l)&&f&&await bv(l,r,!1).then(v=>{v&&(t[s]=v)})}}async function FP(e,t,r){for(let n=0;n(u==null?void 0:u.route.id)===a)&&qn(s)&&(he(o,"Expected an AbortController for revalidating fetcher deferred result"),await bv(s,o.signal,!0).then(u=>{u&&(t[i]=u)}))}}async function bv(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:De.data,data:e.deferredData.unwrappedData}}catch(i){return{type:De.error,error:i}}return{type:De.data,data:e.deferredData.data}}}function Ev(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Qo(e,t){let r=typeof t=="string"?Gr(t).search:t.search;if(e[e.length-1].route.index&&Ev(r||""))return e[e.length-1];let n=u_(e);return n[n.length-1]}function ny(e){let{formMethod:t,formAction:r,formEncType:n,text:i,formData:a,json:o}=e;if(!(!t||!r||!n)){if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}}}function yf(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function LP(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Lo(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function MP(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function On(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function DP(e,t){try{let r=e.sessionStorage.getItem(l_);if(r){let n=JSON.parse(r);for(let[i,a]of Object.entries(n||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function IP(e,t){if(t.size>0){let r={};for(let[n,i]of t)r[n]=[...i];try{e.sessionStorage.setItem(l_,JSON.stringify(r))}catch(n){Gi(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + * React Router v6.27.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var t=1;tqd(e,o_(t)),[t,e])}function p_(e){h.useContext(si).static||h.useLayoutEffect(e)}function ci(){let{isDataRoute:e}=h.useContext(bn);return e?YP():NP()}function NP(){li()||he(!1);let e=h.useContext(Wu),{basename:t,future:r,navigator:n}=h.useContext(si),{matches:i}=h.useContext(bn),{pathname:a}=Yt(),o=JSON.stringify(Zl(i,r.v7_relativeSplatPath)),s=h.useRef(!1);return p_(()=>{s.current=!0}),h.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){n.go(u);return}let f=ec(u,JSON.parse(o),a,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:pn([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,o,a,e])}function g_(){let{matches:e}=h.useContext(bn),t=e[e.length-1];return t?t.params:{}}function y_(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=h.useContext(si),{matches:i}=h.useContext(bn),{pathname:a}=Yt(),o=JSON.stringify(Zl(i,n.v7_relativeSplatPath));return h.useMemo(()=>ec(e,JSON.parse(o),a,r==="path"),[e,o,a,r])}function UP(e,t){return m_(e,t)}function m_(e,t,r,n){li()||he(!1);let{navigator:i}=h.useContext(si),{matches:a}=h.useContext(bn),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=Yt(),c;if(t){var f;let E=typeof t=="string"?Gr(t):t;l==="/"||(f=E.pathname)!=null&&f.startsWith(l)||he(!1),c=E}else c=u;let v=c.pathname||"/",m=v;if(l!=="/"){let E=l.replace(/^\//,"").split("/");m="/"+v.replace(/^\//,"").split("/").slice(E.length).join("/")}let w=_i(e,{pathname:m}),b=HP(w&&w.map(E=>Object.assign({},E,{params:Object.assign({},s,E.params),pathname:pn([l,i.encodeLocation?i.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?l:pn([l,i.encodeLocation?i.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),a,r,n);return t&&b?h.createElement(rc.Provider,{value:{location:Ji({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:it.Pop}},b):b}function zP(){let e=qP(),t=tc(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),r?h.createElement("pre",{style:i},r):null,null)}const VP=h.createElement(zP,null);class BP extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?h.createElement(bn.Provider,{value:this.props.routeContext},h.createElement(v_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function WP(e){let{routeContext:t,match:r,children:n}=e,i=h.useContext(Wu);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),h.createElement(bn.Provider,{value:t},n)}function HP(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,s=(i=r)==null?void 0:i.errors;if(s!=null){let c=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||he(!1),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,f,v)=>{let m,w=!1,b=null,E=null;r&&(m=s&&f.route.id?s[f.route.id]:void 0,b=f.route.errorElement||VP,l&&(u<0&&v===0?(w=!0,E=null):u===v&&(w=!0,E=f.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,v+1)),d=()=>{let p;return m?p=b:w?p=E:f.route.Component?p=h.createElement(f.route.Component,null):f.route.element?p=f.route.element:p=c,h.createElement(WP,{match:f,routeContext:{outlet:c,matches:y,isDataRoute:r!=null},children:p})};return r&&(f.route.ErrorBoundary||f.route.errorElement||v===0)?h.createElement(BP,{location:r.location,revalidation:r.revalidation,component:b,error:m,children:d(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):d()},null)}var Cv=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Cv||{}),$u=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}($u||{});function w_(e){let t=h.useContext(Wu);return t||he(!1),t}function __(e){let t=h.useContext(xv);return t||he(!1),t}function QP(e){let t=h.useContext(bn);return t||he(!1),t}function S_(e){let t=QP(),r=t.matches[t.matches.length-1];return r.route.id||he(!1),r.route.id}function qP(){var e;let t=h.useContext(v_),r=__($u.UseRouteError),n=S_($u.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let KP=0;function GP(e){let{router:t,basename:r}=w_(Cv.UseBlocker),n=__($u.UseBlocker),[i,a]=h.useState(""),o=h.useCallback(s=>{if(typeof e!="function")return!!e;if(r==="/")return e(s);let{currentLocation:l,nextLocation:u,historyAction:c}=s;return e({currentLocation:Ji({},l,{pathname:ii(l.pathname,r)||l.pathname}),nextLocation:Ji({},u,{pathname:ii(u.pathname,r)||u.pathname}),historyAction:c})},[r,e]);return h.useEffect(()=>{let s=String(++KP);return a(s),()=>t.deleteBlocker(s)},[t]),h.useEffect(()=>{i!==""&&t.getBlocker(i,o)},[t,i,o]),i&&n.blockers.has(i)?n.blockers.get(i):ca}function YP(){let{router:e}=w_(Cv.UseNavigateStable),t=S_($u.UseNavigateStable),r=h.useRef(!1);return p_(()=>{r.current=!0}),h.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ji({fromRouteId:t},a)))},[e,t])}function JP(e){let{to:t,replace:r,state:n,relative:i}=e;li()||he(!1);let{future:a,static:o}=h.useContext(si),{matches:s}=h.useContext(bn),{pathname:l}=Yt(),u=ci(),c=ec(t,Zl(s,a.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(c);return h.useEffect(()=>u(JSON.parse(f),{replace:r,state:n,relative:i}),[u,f,i,r,n]),null}function Ct(e){he(!1)}function XP(e){let{basename:t="/",children:r=null,location:n,navigationType:i=it.Pop,navigator:a,static:o=!1,future:s}=e;li()&&he(!1);let l=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:l,navigator:a,static:o,future:Ji({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof n=="string"&&(n=Gr(n));let{pathname:c="/",search:f="",hash:v="",state:m=null,key:w="default"}=n,b=h.useMemo(()=>{let E=ii(c,l);return E==null?null:{location:{pathname:E,search:f,hash:v,state:m,key:w},navigationType:i}},[l,c,f,v,m,w,i]);return b==null?null:h.createElement(si.Provider,{value:u},h.createElement(rc.Provider,{children:r,value:b}))}function Ea(e){let{children:t,location:r}=e;return UP(Jd(t),r)}new Promise(()=>{});function Jd(e,t){t===void 0&&(t=[]);let r=[];return h.Children.forEach(e,(n,i)=>{if(!h.isValidElement(n))return;let a=[...t,i];if(n.type===h.Fragment){r.push.apply(r,Jd(n.props.children,a));return}n.type!==Ct&&he(!1),!n.props.index||!n.props.children||he(!1);let o={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=Jd(n.props.children,a)),r.push(o)}),r}function ZP(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.27.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ku(){return ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}function tO(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function rO(e,t){return e.button===0&&(!t||t==="_self")&&!tO(e)}const nO=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],iO="6";try{window.__reactRouterVersion=iO}catch{}function aO(e,t){return mP({basename:t==null?void 0:t.basename,future:ku({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:BC({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||oO(),routes:e,mapRouteProperties:ZP,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function oO(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=ku({},t,{errors:uO(t.errors)})),t}function uO(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,i]of t)if(i&&i.__type==="RouteErrorResponse")r[n]=new yl(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let o=new a(i.message);o.stack="",r[n]=o}catch{}}if(r[n]==null){let a=new Error(i.message);a.stack="",r[n]=a}}else r[n]=i;return r}const sO=h.createContext({isTransitioning:!1}),lO=h.createContext(new Map),cO="startTransition",iy=iE[cO],fO="flushSync",ay=yC[fO];function dO(e){iy?iy(e):e()}function Mo(e){ay?ay(e):e()}class hO{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function vO(e){let{fallbackElement:t,router:r,future:n}=e,[i,a]=h.useState(r.state),[o,s]=h.useState(),[l,u]=h.useState({isTransitioning:!1}),[c,f]=h.useState(),[v,m]=h.useState(),[w,b]=h.useState(),E=h.useRef(new Map),{v7_startTransition:y}=n||{},d=h.useCallback(x=>{y?dO(x):x()},[y]),p=h.useCallback((x,P)=>{let{deletedFetchers:C,flushSync:A,viewTransitionOpts:L}=P;C.forEach(U=>E.current.delete(U)),x.fetchers.forEach((U,G)=>{U.data!==void 0&&E.current.set(G,U.data)});let j=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!L||j){A?Mo(()=>a(x)):d(()=>a(x));return}if(A){Mo(()=>{v&&(c&&c.resolve(),v.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:L.currentLocation,nextLocation:L.nextLocation})});let U=r.window.document.startViewTransition(()=>{Mo(()=>a(x))});U.finished.finally(()=>{Mo(()=>{f(void 0),m(void 0),s(void 0),u({isTransitioning:!1})})}),Mo(()=>m(U));return}v?(c&&c.resolve(),v.skipTransition(),b({state:x,currentLocation:L.currentLocation,nextLocation:L.nextLocation})):(s(x),u({isTransitioning:!0,flushSync:!1,currentLocation:L.currentLocation,nextLocation:L.nextLocation}))},[r.window,v,c,E,d]);h.useLayoutEffect(()=>r.subscribe(p),[r,p]),h.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new hO)},[l]),h.useEffect(()=>{if(c&&o&&r.window){let x=o,P=c.promise,C=r.window.document.startViewTransition(async()=>{d(()=>a(x)),await P});C.finished.finally(()=>{f(void 0),m(void 0),s(void 0),u({isTransitioning:!1})}),m(C)}},[d,o,c,r.window]),h.useEffect(()=>{c&&o&&i.location.key===o.location.key&&c.resolve()},[c,v,i.location,o]),h.useEffect(()=>{!l.isTransitioning&&w&&(s(w.state),u({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),b(void 0))},[l.isTransitioning,w]),h.useEffect(()=>{},[]);let S=h.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:x=>r.navigate(x),push:(x,P,C)=>r.navigate(x,{state:P,preventScrollReset:C==null?void 0:C.preventScrollReset}),replace:(x,P,C)=>r.navigate(x,{replace:!0,state:P,preventScrollReset:C==null?void 0:C.preventScrollReset})}),[r]),_=r.basename||"/",g=h.useMemo(()=>({router:r,navigator:S,static:!1,basename:_}),[r,S,_]),O=h.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return h.createElement(h.Fragment,null,h.createElement(Wu.Provider,{value:g},h.createElement(xv.Provider,{value:i},h.createElement(lO.Provider,{value:E.current},h.createElement(sO.Provider,{value:l},h.createElement(XP,{basename:_,location:i.location,navigationType:i.historyAction,navigator:S,future:O},i.initialized||r.future.v7_partialHydration?h.createElement(pO,{routes:r.routes,future:r.future,state:i}):t))))),null)}const pO=h.memo(gO);function gO(e){let{routes:t,future:r,state:n}=e;return m_(t,void 0,n,r)}const yO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",mO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Y6=h.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:u,preventScrollReset:c,viewTransition:f}=t,v=eO(t,nO),{basename:m}=h.useContext(si),w,b=!1;if(typeof u=="string"&&mO.test(u)&&(w=u,yO))try{let p=new URL(window.location.href),S=u.startsWith("//")?new URL(p.protocol+u):new URL(u),_=ii(S.pathname,m);S.origin===p.origin&&_!=null?u=_+S.search+S.hash:b=!0}catch{}let E=jP(u,{relative:i}),y=wO(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:i,viewTransition:f});function d(p){n&&n(p),p.defaultPrevented||y(p)}return h.createElement("a",ku({},v,{href:w||E,onClick:b||a?n:d,ref:r,target:l}))});var oy;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(oy||(oy={}));var uy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(uy||(uy={}));function wO(e,t){let{target:r,replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,l=ci(),u=Yt(),c=y_(e,{relative:o});return h.useCallback(f=>{if(rO(f,r)){f.preventDefault();let v=n!==void 0?n:Yi(u)===Yi(c);l(e,{replace:v,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[u,l,c,n,i,r,e,a,o,s])}var _O="RaStore",SO=function(){if(typeof window>"u"||window.localStorage==null)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch{return!1}},Xd=SO(),J6=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(_O).concat(t),n=r.length,i={},a=function(s,l){Object.keys(i).forEach(function(u){i[u]&&i[u].key===s&&i[u].callback(l)})},o=function(s){var l;if(((l=s.key)===null||l===void 0?void 0:l.substring(0,n))===r){var u=s.key.substring(n+1),c=s.newValue?sy(s.newValue):void 0;Object.keys(i).forEach(function(f){i[f]&&i[f].key===u&&(c===null?i[f].callback(void 0):i[f].callback(c??void 0))})}};return{setup:function(){if(Xd){var s=rn().getItem("".concat(r,".version"));if(s&&s!==e){var l=rn();Object.keys(l).forEach(function(u){u.startsWith(r)&&l.removeItem(u)})}rn().setItem("".concat(r,".version"),e),window.addEventListener("storage",o)}},teardown:function(){Xd&&window.removeEventListener("storage",o)},getItem:function(s,l){var u=rn().getItem("".concat(r,".").concat(s));return u==null?l:sy(u)},setItem:function(s,l){l===void 0?rn().removeItem("".concat(r,".").concat(s)):rn().setItem("".concat(r,".").concat(s),JSON.stringify(l)),a(s,l)},removeItem:function(s){rn().removeItem("".concat(r,".").concat(s)),a(s,void 0)},removeItems:function(s){var l=rn();Object.keys(l).forEach(function(u){if(u.startsWith("".concat(r,".").concat(s))){l.removeItem(u);var c=u.substring(n+1);a(c,void 0)}})},reset:function(){var s=rn();Object.keys(s).forEach(function(l){if(l.startsWith(r)){s.removeItem(l);var u=l.substring(n+1);a(u,void 0)}})},subscribe:function(s,l){var u=Math.random().toString();return i[u]={key:s,callback:l},function(){delete i[u]}}}},sy=function(e){try{return JSON.parse(e)}catch{return e}},bO=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,i){i.startsWith(t)&&r.valuesMap.delete(i)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),EO=new bO,rn=function(){return Xd?window.localStorage:EO},xO=typeof Uo=="object"&&Uo&&Uo.Object===Object&&Uo,b_=xO,CO=b_,PO=typeof self=="object"&&self&&self.Object===Object&&self,OO=CO||PO||Function("return this")(),Fr=OO,RO=Fr,$O=RO.Symbol,oo=$O,ly=oo,E_=Object.prototype,kO=E_.hasOwnProperty,AO=E_.toString,Do=ly?ly.toStringTag:void 0;function TO(e){var t=kO.call(e,Do),r=e[Do];try{e[Do]=void 0;var n=!0}catch{}var i=AO.call(e);return n&&(t?e[Do]=r:delete e[Do]),i}var FO=TO,LO=Object.prototype,MO=LO.toString;function DO(e){return MO.call(e)}var IO=DO,cy=oo,jO=FO,NO=IO,UO="[object Null]",zO="[object Undefined]",fy=cy?cy.toStringTag:void 0;function VO(e){return e==null?e===void 0?zO:UO:fy&&fy in Object(e)?jO(e):NO(e)}var uo=VO;function BO(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Lr=BO,WO=uo,HO=Lr,QO="[object AsyncFunction]",qO="[object Function]",KO="[object GeneratorFunction]",GO="[object Proxy]";function YO(e){if(!HO(e))return!1;var t=WO(e);return t==qO||t==KO||t==QO||t==GO}var Pv=YO,JO=Fr,XO=JO["__core-js_shared__"],ZO=XO,mf=ZO,dy=function(){var e=/[^.]+$/.exec(mf&&mf.keys&&mf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function eR(e){return!!dy&&dy in e}var tR=eR,rR=Function.prototype,nR=rR.toString;function iR(e){if(e!=null){try{return nR.call(e)}catch{}try{return e+""}catch{}}return""}var x_=iR,aR=Pv,oR=tR,uR=Lr,sR=x_,lR=/[\\^$.*+?()[\]{}|]/g,cR=/^\[object .+?Constructor\]$/,fR=Function.prototype,dR=Object.prototype,hR=fR.toString,vR=dR.hasOwnProperty,pR=RegExp("^"+hR.call(vR).replace(lR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gR(e){if(!uR(e)||oR(e))return!1;var t=aR(e)?pR:cR;return t.test(sR(e))}var yR=gR;function mR(e,t){return e==null?void 0:e[t]}var wR=mR,_R=yR,SR=wR;function bR(e,t){var r=SR(e,t);return _R(r)?r:void 0}var ra=bR,ER=ra,xR=function(){try{var e=ER(Object,"defineProperty");return e({},"",{}),e}catch{}}(),C_=xR,hy=C_;function CR(e,t,r){t=="__proto__"&&hy?hy(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Ov=CR;function PR(e,t){return e===t||e!==e&&t!==t}var so=PR,OR=Ov,RR=so,$R=Object.prototype,kR=$R.hasOwnProperty;function AR(e,t,r){var n=e[t];(!(kR.call(e,t)&&RR(n,r))||r===void 0&&!(t in e))&&OR(e,t,r)}var Rv=AR,TR=Array.isArray,Yr=TR;function FR(e){return e!=null&&typeof e=="object"}var En=FR,LR=uo,MR=En,DR="[object Symbol]";function IR(e){return typeof e=="symbol"||MR(e)&&LR(e)==DR}var nc=IR,jR=Yr,NR=nc,UR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zR=/^\w*$/;function VR(e,t){if(jR(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||NR(e)?!0:zR.test(e)||!UR.test(e)||t!=null&&e in Object(t)}var BR=VR,WR=ra,HR=WR(Object,"create"),ic=HR,vy=ic;function QR(){this.__data__=vy?vy(null):{},this.size=0}var qR=QR;function KR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var GR=KR,YR=ic,JR="__lodash_hash_undefined__",XR=Object.prototype,ZR=XR.hasOwnProperty;function e$(e){var t=this.__data__;if(YR){var r=t[e];return r===JR?void 0:r}return ZR.call(t,e)?t[e]:void 0}var t$=e$,r$=ic,n$=Object.prototype,i$=n$.hasOwnProperty;function a$(e){var t=this.__data__;return r$?t[e]!==void 0:i$.call(t,e)}var o$=a$,u$=ic,s$="__lodash_hash_undefined__";function l$(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=u$&&t===void 0?s$:t,this}var c$=l$,f$=qR,d$=GR,h$=t$,v$=o$,p$=c$;function lo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var A$=k$,T$=ac;function F$(e,t){var r=this.__data__,n=T$(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var L$=F$,M$=m$,D$=C$,I$=R$,j$=A$,N$=L$;function co(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&ei?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++ns))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var f=-1,v=!0,m=r&oT?new rT:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e<=nF}var Iv=iF,aF=uo,oF=Iv,uF=En,sF="[object Arguments]",lF="[object Array]",cF="[object Boolean]",fF="[object Date]",dF="[object Error]",hF="[object Function]",vF="[object Map]",pF="[object Number]",gF="[object Object]",yF="[object RegExp]",mF="[object Set]",wF="[object String]",_F="[object WeakMap]",SF="[object ArrayBuffer]",bF="[object DataView]",EF="[object Float32Array]",xF="[object Float64Array]",CF="[object Int8Array]",PF="[object Int16Array]",OF="[object Int32Array]",RF="[object Uint8Array]",$F="[object Uint8ClampedArray]",kF="[object Uint16Array]",AF="[object Uint32Array]",Be={};Be[EF]=Be[xF]=Be[CF]=Be[PF]=Be[OF]=Be[RF]=Be[$F]=Be[kF]=Be[AF]=!0;Be[sF]=Be[lF]=Be[SF]=Be[cF]=Be[bF]=Be[fF]=Be[dF]=Be[hF]=Be[vF]=Be[pF]=Be[gF]=Be[yF]=Be[mF]=Be[wF]=Be[_F]=!1;function TF(e){return uF(e)&&oF(e.length)&&!!Be[aF(e)]}var FF=TF;function LF(e){return function(t){return e(t)}}var jv=LF,Sl={exports:{}};Sl.exports;(function(e,t){var r=b_,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Sl,Sl.exports);var Nv=Sl.exports,MF=FF,DF=jv,Py=Nv,Oy=Py&&Py.isTypedArray,IF=Oy?DF(Oy):MF,Uv=IF,jF=HT,NF=fc,UF=Yr,zF=dc,VF=sc,BF=Uv,WF=Object.prototype,HF=WF.hasOwnProperty;function QF(e,t){var r=UF(e),n=!r&&NF(e),i=!r&&!n&&zF(e),a=!r&&!n&&!i&&BF(e),o=r||n||i||a,s=o?jF(e.length,String):[],l=s.length;for(var u in e)(t||HF.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||VF(u,l)))&&s.push(u);return s}var U_=QF,qF=Object.prototype;function KF(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||qF;return e===r}var zv=KF;function GF(e,t){return function(r){return e(t(r))}}var z_=GF,YF=z_,JF=YF(Object.keys,Object),XF=JF,ZF=zv,e2=XF,t2=Object.prototype,r2=t2.hasOwnProperty;function n2(e){if(!ZF(e))return e2(e);var t=[];for(var r in Object(e))r2.call(e,r)&&r!="constructor"&&t.push(r);return t}var i2=n2,a2=Pv,o2=Iv;function u2(e){return e!=null&&o2(e.length)&&!a2(e)}var hc=u2,s2=U_,l2=i2,c2=hc;function f2(e){return c2(e)?s2(e):l2(e)}var Vv=f2,d2=I_,h2=Dv,v2=Vv;function p2(e){return d2(e,v2,h2)}var V_=p2,Ry=V_,g2=1,y2=Object.prototype,m2=y2.hasOwnProperty;function w2(e,t,r,n,i,a){var o=r&g2,s=Ry(e),l=s.length,u=Ry(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var v=s[f];if(!(o?v in t:m2.call(t,v)))return!1}var m=a.get(e),w=a.get(t);if(m&&w)return m==t&&w==e;var b=!0;a.set(e,t),a.set(t,e);for(var E=o;++f0){if(++t>=VM)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var QM=HM,qM=zM,KM=QM,GM=KM(qM),aS=GM,YM=nS,JM=iS,XM=aS;function ZM(e,t){return XM(JM(e,t,YM),e+"")}var qv=ZM,eD=so,tD=hc,rD=sc,nD=Lr;function iD(e,t,r){if(!nD(r))return!1;var n=typeof t;return(n=="number"?tD(r)&&rD(t,r.length):n=="string"&&t in r)?eD(r[t],e):!1}var oS=iD,aD=qv,oD=oS;function uD(e){return aD(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&oD(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++n=t||O<0||f&&x>=a}function y(){var g=bf();if(E(g))return d(g);s=setTimeout(y,b(g))}function d(g){return s=void 0,v&&n?m(g):(n=i=void 0,o)}function p(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function S(){return s===void 0?o:d(bf())}function _(){var g=bf(),O=E(g);if(n=arguments,i=this,l=g,O){if(s===void 0)return w(l);if(f)return clearTimeout(s),s=setTimeout(y,t),m(l)}return s===void 0&&(s=setTimeout(y,t)),o}return _.cancel=p,_.flush=S,_}var _N=wN;const dS=Dt(_N);var SN=function(e,t){t===void 0&&(t=250);var r=bN(e,t),n=r[0],i=r[1],a=Yt();h.useEffect(function(){var o;n!=null&&((o=a.state)===null||o===void 0?void 0:o._scrollToTop)!==!0&&(i(void 0),window.scrollTo(0,n))},[])},bN=function(e,t){t===void 0&&(t=250);var r=pi(e),n=r[0],i=r[1];return h.useEffect(function(){if(!(typeof window>"u")){var a=dS(function(){i(window.scrollY)},t);return window.addEventListener("scroll",a),function(){window.removeEventListener("scroll",a)}}},[t,i]),[n,i]},EN=function(e){var t=e.children,r=e.storeKey,n=e.debounce,i=n===void 0?250:n;return SN(r,i),t},go=function(){return h.useContext(fS)},Gv=function(){var e=go();return h.useCallback(function(t){var r=t.resource,n=t.id,i=t.type;if(["list","create","edit","show"].includes(i)&&!r)throw new Error("Cannot create a link without a resource. You must provide the resource name.");switch(i){case"list":return Wr("".concat(e,"/").concat(r));case"create":return Wr("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?Wr("".concat(e,"/").concat(r)):Wr("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?Wr("".concat(e,"/").concat(r)):Wr("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return i}},[e])},Wr=function(e){return e.replace("//","/")},hS=h.createContext(void 0),Jt=function(e){var t=h.useContext(hS);return e&&e.resource||t},Yv=h.createContext(void 0);Yv.displayName="RecordContext";var qu=function(e){var t=e.children,r=e.value;return h.createElement(Yv.Provider,{value:r},t)},fi=function(e){var t=h.useContext(Yv);return e&&e.record||t},El=function(){return El=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),yS="%[a-f0-9]{2}",sm=new RegExp("("+yS+")|([^%]+?)","gi"),lm=new RegExp("("+yS+")+","gi");function ah(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],ah(r),ah(n))}function GN(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(sm)||[],r=1;r{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},ZN=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),a=0;ad==null,o=Symbol("encodeFragmentIdentifier");function s(d){switch(d.arrayFormat){case"index":return p=>(S,_)=>{const g=S.length;return _===void 0||d.skipNull&&_===null||d.skipEmptyString&&_===""?S:_===null?[...S,[c(p,d),"[",g,"]"].join("")]:[...S,[c(p,d),"[",c(g,d),"]=",c(_,d)].join("")]};case"bracket":return p=>(S,_)=>_===void 0||d.skipNull&&_===null||d.skipEmptyString&&_===""?S:_===null?[...S,[c(p,d),"[]"].join("")]:[...S,[c(p,d),"[]=",c(_,d)].join("")];case"colon-list-separator":return p=>(S,_)=>_===void 0||d.skipNull&&_===null||d.skipEmptyString&&_===""?S:_===null?[...S,[c(p,d),":list="].join("")]:[...S,[c(p,d),":list=",c(_,d)].join("")];case"comma":case"separator":case"bracket-separator":{const p=d.arrayFormat==="bracket-separator"?"[]=":"=";return S=>(_,g)=>g===void 0||d.skipNull&&g===null||d.skipEmptyString&&g===""?_:(g=g===null?"":g,_.length===0?[[c(S,d),p,c(g,d)].join("")]:[[_,c(g,d)].join(d.arrayFormatSeparator)])}default:return p=>(S,_)=>_===void 0||d.skipNull&&_===null||d.skipEmptyString&&_===""?S:_===null?[...S,c(p,d)]:[...S,[c(p,d),"=",c(_,d)].join("")]}}function l(d){let p;switch(d.arrayFormat){case"index":return(S,_,g)=>{if(p=/\[(\d*)\]$/.exec(S),S=S.replace(/\[\d*\]$/,""),!p){g[S]=_;return}g[S]===void 0&&(g[S]={}),g[S][p[1]]=_};case"bracket":return(S,_,g)=>{if(p=/(\[\])$/.exec(S),S=S.replace(/\[\]$/,""),!p){g[S]=_;return}if(g[S]===void 0){g[S]=[_];return}g[S]=[].concat(g[S],_)};case"colon-list-separator":return(S,_,g)=>{if(p=/(:list)$/.exec(S),S=S.replace(/:list$/,""),!p){g[S]=_;return}if(g[S]===void 0){g[S]=[_];return}g[S]=[].concat(g[S],_)};case"comma":case"separator":return(S,_,g)=>{const O=typeof _=="string"&&_.includes(d.arrayFormatSeparator),x=typeof _=="string"&&!O&&f(_,d).includes(d.arrayFormatSeparator);_=x?f(_,d):_;const P=O||x?_.split(d.arrayFormatSeparator).map(C=>f(C,d)):_===null?_:f(_,d);g[S]=P};case"bracket-separator":return(S,_,g)=>{const O=/(\[\])$/.test(S);if(S=S.replace(/\[\]$/,""),!O){g[S]=_&&f(_,d);return}const x=_===null?[]:_.split(d.arrayFormatSeparator).map(P=>f(P,d));if(g[S]===void 0){g[S]=x;return}g[S]=[].concat(g[S],x)};default:return(S,_,g)=>{if(g[S]===void 0){g[S]=_;return}g[S]=[].concat(g[S],_)}}}function u(d){if(typeof d!="string"||d.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(d,p){return p.encode?p.strict?t(d):encodeURIComponent(d):d}function f(d,p){return p.decode?r(d):d}function v(d){return Array.isArray(d)?d.sort():typeof d=="object"?v(Object.keys(d)).sort((p,S)=>Number(p)-Number(S)).map(p=>d[p]):d}function m(d){const p=d.indexOf("#");return p!==-1&&(d=d.slice(0,p)),d}function w(d){let p="";const S=d.indexOf("#");return S!==-1&&(p=d.slice(S)),p}function b(d){d=m(d);const p=d.indexOf("?");return p===-1?"":d.slice(p+1)}function E(d,p){return p.parseNumbers&&!Number.isNaN(Number(d))&&typeof d=="string"&&d.trim()!==""?d=Number(d):p.parseBooleans&&d!==null&&(d.toLowerCase()==="true"||d.toLowerCase()==="false")&&(d=d.toLowerCase()==="true"),d}function y(d,p){p=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},p),u(p.arrayFormatSeparator);const S=l(p),_=Object.create(null);if(typeof d!="string"||(d=d.trim().replace(/^[?#&]/,""),!d))return _;for(const g of d.split("&")){if(g==="")continue;let[O,x]=n(p.decode?g.replace(/\+/g," "):g,"=");x=x===void 0?null:["comma","separator","bracket-separator"].includes(p.arrayFormat)?x:f(x,p),S(f(O,p),x,_)}for(const g of Object.keys(_)){const O=_[g];if(typeof O=="object"&&O!==null)for(const x of Object.keys(O))O[x]=E(O[x],p);else _[g]=E(O,p)}return p.sort===!1?_:(p.sort===!0?Object.keys(_).sort():Object.keys(_).sort(p.sort)).reduce((g,O)=>{const x=_[O];return x&&typeof x=="object"&&!Array.isArray(x)?g[O]=v(x):g[O]=x,g},Object.create(null))}e.extract=b,e.parse=y,e.stringify=(d,p)=>{if(!d)return"";p=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},p),u(p.arrayFormatSeparator);const S=x=>p.skipNull&&a(d[x])||p.skipEmptyString&&d[x]==="",_=s(p),g={};for(const x of Object.keys(d))S(x)||(g[x]=d[x]);const O=Object.keys(g);return p.sort!==!1&&O.sort(p.sort),O.map(x=>{const P=d[x];return P===void 0?"":P===null?c(x,p):Array.isArray(P)?P.length===0&&p.arrayFormat==="bracket-separator"?c(x,p)+"[]":P.reduce(_(x),[]).join("&"):c(x,p)+"="+c(P,p)}).filter(x=>x.length>0).join("&")},e.parseUrl=(d,p)=>{p=Object.assign({decode:!0},p);const[S,_]=n(d,"#");return Object.assign({url:S.split("?")[0]||"",query:y(b(d),p)},p&&p.parseFragmentIdentifier&&_?{fragmentIdentifier:f(_,p)}:{})},e.stringifyUrl=(d,p)=>{p=Object.assign({encode:!0,strict:!0,[o]:!0},p);const S=m(d.url).split("?")[0]||"",_=e.extract(d.url),g=e.parse(_,{sort:!1}),O=Object.assign(g,d.query);let x=e.stringify(O,p);x&&(x=`?${x}`);let P=w(d.url);return d.fragmentIdentifier&&(P=`#${p[o]?c(d.fragmentIdentifier,p):d.fragmentIdentifier}`),`${S}${x}${P}`},e.pick=(d,p,S)=>{S=Object.assign({parseFragmentIdentifier:!0,[o]:!1},S);const{url:_,query:g,fragmentIdentifier:O}=e.parseUrl(d,S);return e.stringifyUrl({url:_,query:i(g,p),fragmentIdentifier:O},S)},e.exclude=(d,p,S)=>{const _=Array.isArray(p)?g=>!p.includes(g):(g,O)=>!p(g,O);return e.pick(d,_,S)}})(gc);var Cl=function(){return Cl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new gS(l&&l.message||a,i,l)):Promise.resolve({status:i,headers:o,body:s,json:l})})},r3=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",i=!!Object.keys(e).length;return!t&&!r&&n&&i},mS=function(e,t){var r;return t===void 0&&(t=[]),r3(e)?Object.assign.apply(Object,e3([{}],Object.keys(e).map(function(n){return mS(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},wS={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function a(l,u,c,f,v){if(typeof c!="function")throw new TypeError("The listener must be a function");var m=new i(c,f||l,v),w=r?r+u:u;return l._events[w]?l._events[w].fn?l._events[w]=[l._events[w],m]:l._events[w].push(m):(l._events[w]=m,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},s.prototype.listeners=function(u){var c=r?r+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var v=0,m=f.length,w=new Array(m);v0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]"u"||!e.message?t:e.message},s3=function(e){var t=e.data,r=e.queryClient,n=e.staleTime,i=n===void 0?1e3:n,a=Date.now()+i;Object.keys(t).forEach(function(o){t[o].forEach(function(l){!l||l.id==null||r.setQueryData([o,"getOne",{id:String(l.id)}],l,{updatedAt:a})});var s=t[o].map(function(l){return String(l.id)});r.setQueryData([o,"getMany",{ids:s}],t[o],{updatedAt:a})})},l3=["getList","getMany","getManyReference"],mo=function(){var e=h.useContext(Xv)||Jv,t=sr(),r=_S(),n=h.useMemo(function(){return new Proxy(e,{get:function(i,a){if(!(typeof a=="symbol"||a==="then"))return a==="supportAbortSignal"?e.supportAbortSignal:function(){for(var o=[],s=0;s0),n=me.useRef(e.isMutating()>0),i=me.useState(r.current||n.current),a=i[0],o=i[1];return me.useEffect(function(){t.current=!0;var s=e.getQueryCache().subscribe(Ke.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,o(r.current||n.current))})),l=e.getMutationCache().subscribe(Ke.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,o(r.current||n.current))}));return function(){t.current=!1,s(),l()}},[e]),a},SS=function(){var e=sr();return h.useCallback(function(){e.invalidateQueries()},[e])},oh=function(){return oh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?ES(s,t-1,r,n,i):m3(i,s):n||(i[i.length]=s)}return i}var xS=ES;function _3(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a-1}var F3=T3;function L3(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=G3){var u=t?null:q3(e);if(u)return K3(u);o=!1,i=Q3,l=new B3}else l=t?[]:s;e:for(;++n0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. +Be sure to pass the props from the parent. Example: + +const My`).concat(e,` = props => ( + <`).concat(e," {...props}> +); + +The missing props are: `).concat(i.join(", ")))},ch=function(){return ch=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0?o[u].apply(o,Io(Io([],f,!1),[c],!1)):a.apply(void 0,f)};return o.length>0?o[u].apply(o,Io(Io([],s,!1),[c],!1)):a.apply(void 0,s)}},[]),i=h.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return i},Ol=function(){return Ol=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0;Fe||y(typeof M=="string"?M:M.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof M=="string"?M:M instanceof Error||typeof M=="object"&&M!==null&&M.hasOwnProperty("message")?M.message:void 0}})}},O),{returnPromise:!0,getMutateWithMiddlewares:C})),j=L[0],U=L[1].isPending,G=h.useCallback(function(M,K){K===void 0&&(K={});var H=K.transform,Z=K.meta,ue=mm(K,["transform","meta"]);return Promise.resolve(H?H(M):a?a(M):M).then(function(Fe){return gm(void 0,void 0,void 0,function(){var ve,Le;return ym(this,function(_e){switch(_e.label){case 0:return _e.trys.push([0,2,,3]),[4,j(l,{data:Fe,meta:Z??g},ue)];case 1:return _e.sent(),[3,3];case 2:return ve=_e.sent(),(ve instanceof gS||typeof ve=="object"&&ve!==null&&ve.hasOwnProperty("body"))&&((Le=ve.body)===null||Le===void 0?void 0:Le.errors)!=null?[2,ve.body.errors]:[3,3];case 3:return[2]}})})})},[j,g,l,a]),X=Lc(),z=E("ra.page.create",{name:X(l,1)});return{isFetching:!1,isLoading:!1,isPending:r?!1:c,saving:U,defaultTitle:z,save:G,resource:l,record:p,redirect:w,registerMutationMiddleware:P,unregisterMutationMiddleware:A}},ZU=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=gc.parse(r);if(n.source){if(Array.isArray(n.source)){console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`));return}return JSON.parse(n.source)}}catch{console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`))}return null},e4=function(e,t){return t?"edit":e?"show":"list"},Zv=h.createContext(null);Zv.displayName="CreateContext";var Rl=function(){return Rl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0;(!en||a!=="pessimistic")&&d(typeof we=="string"?we:we.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof we=="string"?we:we instanceof Error||typeof we=="object"&&we!==null&&we.hasOwnProperty("message")?we.message:void 0}})}},L),{mutationMode:a,returnPromise:a==="pessimistic",getMutateWithMiddlewares:G})),Xt=$e[0],Xr=$e[1].isPending,ke=h.useCallback(function(we,pt){var nt=pt===void 0?{}:pt,gt=nt.onSuccess,Zr=nt.onError,en=nt.transform,$=nt.meta;return Promise.resolve(en?en(we,{previousData:Re.previousData}):v?v(we,{previousData:Re.previousData}):we).then(function(F){return wm(void 0,void 0,void 0,function(){var D,V;return _m(this,function(Q){switch(Q.label){case 0:return Q.trys.push([0,2,,3]),[4,Xt(m,{id:g,data:F,meta:$??P},{onError:Zr,onSuccess:gt})];case 1:return Q.sent(),[3,3];case 2:return D=Q.sent(),((V=D.body)===null||V===void 0?void 0:V.errors)!=null?[2,D.body.errors]:[3,3];case 3:return[2]}})})})},[g,P,m,v,Xt,Re.previousData]);return{defaultTitle:_e,error:K,isFetching:Z,isLoading:H,isPending:ue,mutationMode:a,record:M,redirect:f,refetch:Fe,registerMutationMiddleware:U,resource:m,save:ke,saving:Xr,unregisterMutationMiddleware:X}},i4="list",a4=function(e){var t=e.value,r=e.children;return t?h.createElement(qu,{value:t},r):r},f5=function(e){var t=fi(e),r=Jt(e),n=mp(r);return h.createElement(h.Fragment,null,n(t))},ep=h.createContext(null);ep.displayName="EditContext";var o4=function(e){var t=e.children,r=e.value;return h.createElement(ep.Provider,{value:r},h.createElement(AS,{value:TS(r)},h.createElement(qu,{value:r&&r.record},t)))},u4=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i"u"?"undefined":MS(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var i in r){var a=r[i],o=this.check(a,i,i,r);n=n.concat(o)}return n}},{key:"_handleArray",value:function(r){for(var n=this,i=[],a,o=0;o0&&!u.item&&a===void 0&&(a=u);i=i.concat(l)}}return i}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),v4=h4,p4=typeof window>"u"?Uo:window;function g4(e,t){if(e instanceof p4[t])return!0;switch(typeof e>"u"?"undefined":MS(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var Rf,bm;function y4(){return bm||(bm=1,Rf=function(t,r,n){var i=` +`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var a=new RegExp("\\"+t,"g"),o=t+t,s=t==='"'?function(l){return l.indexOf(r)>=0||l.indexOf(i)>=0||l.indexOf('"')>=0}:function(l){return l.indexOf(r)>=0||l.indexOf(i)>=0};return function(l){return n&&(l=""+l),l.replace&&(l=l.replace(a,o),(n||s(l))&&(l=t+l+t)),l}}),Rf}var m4=function(){function e(t,r){for(var n=0;n0&&(f=f.concat(Array(v).join(".").split("."))),n&&this._options.fillGaps&&(f=f.map(a)),i.push(f.join(this._options.rowDelimiter)),n=f}}catch(m){s=!0,l=m}finally{try{!o&&u.return&&u.return()}finally{if(s)throw l}}return i}},{key:"_parseArray",value:function(r,n){var i=this;this._headers=this._headers||[];var a=[],o=void 0,s=function(E){var y=i._headers.indexOf(E);return y===-1&&(i._headers.push(E),y=i._headers.indexOf(E)),y};o=function(E){var y=[],d=function(U){return y.push(U.map(function(G){return G??""}))},p=function(){return new Array(i._headers.length).fill(null)},S={},_=p(),g=!0,O=!1,x=void 0;try{for(var P=E[Symbol.iterator](),C;!(g=(C=P.next()).done);g=!0){var A=C.value,L=s(A.item);if(_[L]!=null&&(d(_),_=p()),S[L]=S[L]||0,i._options.fillTopRow&&S[L]0&&d(_),a=a.concat(i._checkRows(y))};var l=!0,u=!1,c=void 0;try{for(var f=r[Symbol.iterator](),v;!(l=(v=f.next()).done);l=!0){var m=v.value,w=i._handler.check(m,i._options.mainPathItem,m,r);o(w)}}catch(b){u=!0,c=b}finally{try{!l&&f.return&&f.return()}finally{if(u)throw c}}return!n&&i._options.includeHeaders&&a.unshift(this.headers),Em(a,i._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,i=[],a=[],o=void 0,s=[[],[]];o=function(f){var v=f.value||f.value===0?f.value.toString():n._options.undefinedString;if(v=n._escape(v),n._options.verticalOutput){var m=[f.item,v];i.push(m.join(n._options.rowDelimiter))}else s[0].push(f.item),s[1].push(v)};for(var l in r){var u="";this._options.mainPathItem&&(u=this._options.mainPathItem+this._options.headerPathString),a=this._handler.check(r[l],u+l,l,r),a.forEach(o)}return this._options.verticalOutput||(i.push(s[0].join(this._options.rowDelimiter)),i.push(s[1].join(this._options.rowDelimiter))),Em(i,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(i){return r._options.rename[r._options.headers.indexOf(i)]||i})),this._options.forceTextDelimiter&&(n=n.map(function(i){return""+r._options.textDelimiter+i+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),b4=S4,E4=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},x4=E4,Cm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pm=b4,Om=x4,C4=LS,P4=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:C4,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var i=Array.prototype.slice.call(arguments);t=i[0],r=i[1],n=i[2]}else if(arguments.length===2){var a=void 0,o=Array.prototype.slice.call(arguments);t=o[0],a=o[1],typeof a=="function"?n=a:(typeof a>"u"?"undefined":Cm(a))==="object"&&(r=a)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),l=s[0];if((typeof l>"u"?"undefined":Cm(l))==="object"){var u=Object.keys(e),c=Object.keys(l),f=c.every(function(w){return u.includes(w)});c.length>0&&f?r=l:t=l}else t=l}else return new Om(new Pm(e));var v=Object.assign({},e,r),m=new Pm(v);return t?new Promise(function(w,b){m.parse(t,function(E,y){if(n)return n(E,y);if(E)return b(E);if(b)return w(y)})}):new Om};const O4=Dt(P4);var R4=function(e,t){t===void 0&&(t="export");var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())},$4=function(e,t,r,n){return O4(e,function(i,a){return R4(a,n)})},k4=function(e,t){return Array.from(new Set(e.filter(function(r){return r[t]!=null}).map(function(r){return r[t]}).reduce(function(r,n){return r.concat(n)},[])))},v5=function(e){return function(t,r,n){return e.getMany(n,{ids:k4(t,r)}).then(function(i){var a=i.data;return a.reduce(function(o,s){return o[s.id]=s,o},{})})}},sa=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n"u"||w(function(d){if(!Array.isArray(d))return sa([],d,!0);var p=d.indexOf(y);return p>-1?sa(sa([],d.slice(0,p),!0),d.slice(p+1),!0):sa(sa([],d,!0),[y],!1)})},clearSelection:function(){b()}}},[w,b]);return[m,E]},$f=[];function kn(e){var t=h.useState(e),r=t[0],n=t[1],i=h.useRef(!1);h.useEffect(function(){return i.current=!0,function(){i.current=!1}},[]);var a=h.useCallback(function(o){if(i.current)return n(o)},[i,n]);return[r,a]}function p5(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=kn(!1),n=r[0],i=r[1];return h.useEffect(function(){i(!1);var a=setTimeout(function(){i(!0)},e);return function(){clearTimeout(a)}},[t,e,i]),n}function A4(){var e=h.useRef(!0);return h.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var dn=function(){return dn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&S(P)},[m.search]);var C=h.useCallback(function(H){g.current&&(_.current?_.current=pm(_.current,H):(_.current=pm(P,H),setTimeout(function(){_.current&&(i&&!v?y(_.current):i&&v?S(_.current):w({search:"?".concat(gc.stringify(dn(dn({},_.current),{filter:JSON.stringify(_.current.filter),displayedFilters:JSON.stringify(_.current.displayedFilters)})))},{state:{_scrollToTop:H.type===sh}}),_.current=void 0)},0)))},Rm(Rm([],O,!0),[w],!1)),A=h.useCallback(function(H){return C({type:PS,payload:H})},[C]),L=h.useCallback(function(H){return C({type:sh,payload:H})},[C]),j=h.useCallback(function(H){return C({type:OS,payload:H})},[C]),U=P.filter||Am,G=P.displayedFilters||Am,X=dS(function(H,Z){C({type:lh,payload:{filter:to(H),displayedFilters:Z}})},r),z=h.useCallback(function(H,Z,ue){return Z===void 0&&(Z=void 0),ue===void 0&&(ue=!1),ue?X(H,Z):C({type:lh,payload:{filter:to(H),displayedFilters:Z}})},[C]),M=h.useCallback(function(H){C({type:$S,payload:H})},[C]),K=h.useCallback(function(H,Z){C({type:RS,payload:{filterName:H,defaultValue:Z}})},[C]);return[dn(dn({filterValues:U,requestSignature:O},P),{displayedFilters:G}),{changeParams:C,setPage:L,setPerPage:j,setSort:A,setFilters:z,hideFilter:M,showFilter:K}]},$m=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},F4=function(e){var t=e.search,r=gc.parse(t);return $m(r,"filter"),$m(r,"displayedFilters"),r},L4=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},M4=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,i=e.sort,a=e.perPage,o=Object.keys(t).length>0?t:L4(r)?dn({},r):{filter:n||{}};return o.sort||(o.sort=i.field,o.order=i.order),o.perPage==null&&(o.perPage=a),o.page==null&&(o.page=1),dn(dn({},o),{page:km(o.page,1),perPage:km(o.perPage,10)})},km=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},Am={},D4={field:"id",order:Ui},Tm={},mc=h.createContext(null);mc.displayName="ListContext";var DS=h.createContext(void 0),I4=function(e){return h.useMemo(function(){return yc(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};DS.displayName="ListFilterContext";var IS=h.createContext(void 0),j4=function(e){return h.useMemo(function(){return yc(e,["sort","setSort","resource"])},[e.sort,e.setSort])};IS.displayName="ListSortContext";var rp=h.createContext(void 0);rp.displayName="ListPaginationContext";var N4=function(e){return h.useMemo(function(){return yc(e,["isLoading","isPending","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.isPending,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},U4=function(e){var t=e.value,r=e.children;return h.createElement(mc.Provider,{value:t},h.createElement(DS.Provider,{value:I4(t)},h.createElement(IS.Provider,{value:j4(t)},h.createElement(rp.Provider,{value:N4(t)},r))))},zi=function(){return zi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(X==null||(X==null?void 0:X.length)===0)){A.setPage(1);return}if(M!=null){var $e=Math.ceil(M/C.perPage)||1;!ue&&C.page>$e&&A.setPage($e)}},[ue,C.page,C.perPage,X,A,M]);var Le=h.useMemo(function(){return{field:C.sort,order:C.order}},[C.sort,C.order]),_e=Lc(),Re=O("ra.page.list",{name:_e(d,2)});return{sort:Le,data:X,meta:K,defaultTitle:Re,displayedFilters:C.displayedFilters,error:H,exporter:l,filter:u,filterValues:C.filterValues,hideFilter:A.hideFilter,isFetching:ue,isLoading:Z,isPending:Fe,onSelect:U.select,onToggleItem:U.toggle,onUnselectItems:U.clearSelection,page:C.page,perPage:C.perPage,refetch:ve,resource:d,selectedIds:j,setFilters:A.setFilters,setPage:A.setPage,setPerPage:A.setPerPage,setSort:A.setSort,showFilter:A.showFilter,total:M,hasNextPage:z?z.hasNextPage:M!=null?C.page*C.perPage1}},B4={field:"id",order:Ui},W4=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","isPending","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],g5=function(e){return Object.keys(e).filter(function(t){return!W4.includes(t)}).reduce(function(t,r){var n;return zi(zi({},t),(n={},n[r]=e[r],n))},{})},H4=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i-1?r?[]:xs(xs([],l.slice(0,u),!0),l.slice(u+1),!0):r?[t]:xs(xs([],l,!0),[t],!1)})},[a,t,r]);return[o,s]},w5=function(e,t){var r=pi("".concat(e,".datagrid.expanded"),[]),n=r[0],i=r[1],a=Array.isArray(n)?n.some(function(s){return t.some(function(l){return l==s})}):!1,o=h.useCallback(function(){var s=n.filter(function(l){return!t.some(function(u){return u==l})});i(a?s:s.concat(t))},[n,i,a,t]);return[a,o]},xa=function(){return xa=Object.assign||function(e){for(var t,r=1,n=arguments.length;rLt(Q,ue.field)?ue.order==="ASC"?1:-1:Lt(V,ue.field)1,hideFilter:gt,isFetching:_,isLoading:x,isPending:A,onSelect:Re.select,onToggleItem:Re.toggle,onUnselectItems:Re.clearSelection,page:z,perPage:K,resource:"",refetch:Q4,selectedIds:_e,setFilters:en,setPage:M,setPerPage:H,setSort:ve,showFilter:Zr,total:U==null?void 0:U.total}},K4={},_5=function(){var e=h.useContext(mc);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},G4=qv,Y4=so,J4=oS,X4=po,jS=Object.prototype,Z4=jS.hasOwnProperty,ez=G4(function(e,t){e=Object(e);var r=-1,n=t.length,i=n>2?t[2]:void 0;for(i&&J4(t[0],t[1],i)&&(n=1);++re.type==="checkbox",ki=e=>e instanceof Date,Ft=e=>e==null;const zS=e=>typeof e=="object";var ot=e=>!Ft(e)&&!Array.isArray(e)&&zS(e)&&!ki(e),VS=e=>ot(e)&&e.target?Ku(e.target)?e.target.checked:e.target.value:e,nz=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,BS=(e,t)=>e.has(nz(t)),iz=e=>{const t=e.constructor&&e.constructor.prototype;return ot(t)&&t.hasOwnProperty("isPrototypeOf")},np=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Nt(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(np&&(e instanceof Blob||e instanceof FileList))&&(r||ot(e)))if(t=r?[]:{},!r&&!iz(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=Nt(e[n]));else return e;return t}var wc=e=>Array.isArray(e)?e.filter(Boolean):[],rt=e=>e===void 0,J=(e,t,r)=>{if(!t||!ot(e))return r;const n=wc(t.split(/[,[\].]+?/)).reduce((i,a)=>Ft(i)?i:i[a],e);return rt(n)||n===e?rt(e[t])?r:e[t]:n},dr=e=>typeof e=="boolean",ip=e=>/^\w*$/.test(e),WS=e=>wc(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ie=(e,t,r)=>{let n=-1;const i=ip(t)?[t]:WS(t),a=i.length,o=a-1;for(;++nme.useContext(HS),az=e=>{const{children:t,...r}=e;return me.createElement(HS.Provider,{value:r},t)};var QS=(e,t,r,n=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==$r.all&&(t._proxyFormState[o]=!n||$r.all),r&&(r[o]=!0),e[o]}});return i},Bt=e=>ot(e)&&!Object.keys(e).length,qS=(e,t,r,n)=>{r(e);const{name:i,...a}=e;return Bt(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!n||$r.all))},ou=e=>Array.isArray(e)?e:[e],KS=(e,t,r)=>!e||!t||e===t||ou(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function ap(e){const t=me.useRef(e);t.current=e,me.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function op(e){const t=_c(),{control:r=t.control,disabled:n,name:i,exact:a}=e||{},[o,s]=me.useState(r._formState),l=me.useRef(!0),u=me.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=me.useRef(i);return c.current=i,ap({disabled:n,next:f=>l.current&&KS(c.current,f.name,a)&&qS(f,u.current,r._updateFormState)&&s({...r._formState,...f}),subject:r._subjects.state}),me.useEffect(()=>(l.current=!0,u.current.isValid&&r._updateValid(!0),()=>{l.current=!1}),[r]),QS(o,r,u.current,!1)}var Qr=e=>typeof e=="string",GS=(e,t,r,n,i)=>Qr(e)?(n&&t.watch.add(e),J(r,e,i)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),J(r,a))):(n&&(t.watchAll=!0),r);function oz(e){const t=_c(),{control:r=t.control,name:n,defaultValue:i,disabled:a,exact:o}=e||{},s=me.useRef(n);s.current=n,ap({disabled:a,subject:r._subjects.values,next:c=>{KS(s.current,c.name,o)&&u(Nt(GS(s.current,r._names,c.values||r._formValues,!1,i)))}});const[l,u]=me.useState(r._getWatch(n,i));return me.useEffect(()=>r._removeUnmounted()),l}function uz(e){const t=_c(),{name:r,disabled:n,control:i=t.control,shouldUnregister:a}=e,o=BS(i._names.array,r),s=oz({control:i,name:r,defaultValue:J(i._formValues,r,J(i._defaultValues,r,e.defaultValue)),exact:!0}),l=op({control:i,name:r,exact:!0}),u=me.useRef(i.register(r,{...e.rules,value:s,...dr(e.disabled)?{disabled:e.disabled}:{}}));return me.useEffect(()=>{const c=i._options.shouldUnregister||a,f=(v,m)=>{const w=J(i._fields,v);w&&w._f&&(w._f.mount=m)};if(f(r,!0),c){const v=Nt(J(i._options.defaultValues,r));Ie(i._defaultValues,r,v),rt(J(i._formValues,r))&&Ie(i._formValues,r,v)}return()=>{(o?c&&!i._state.action:c)?i.unregister(r):f(r,!1)}},[r,i,o,a]),me.useEffect(()=>{J(i._fields,r)&&i._updateDisabledField({disabled:n,fields:i._fields,name:r,value:J(i._fields,r)._f.value})},[n,r,i]),{field:{name:r,value:s,...dr(n)||l.disabled?{disabled:l.disabled||n}:{},onChange:me.useCallback(c=>u.current.onChange({target:{value:VS(c),name:r},type:$l.CHANGE}),[r]),onBlur:me.useCallback(()=>u.current.onBlur({target:{value:J(i._formValues,r),name:r},type:$l.BLUR}),[r,i]),ref:me.useCallback(c=>{const f=J(i._fields,r);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:v=>c.setCustomValidity(v),reportValidity:()=>c.reportValidity()})},[i._fields,r])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!J(l.errors,r)},isDirty:{enumerable:!0,get:()=>!!J(l.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!J(l.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!J(l.validatingFields,r)},error:{enumerable:!0,get:()=>J(l.errors,r)}})}}var sz=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},Lm=e=>({isOnSubmit:!e||e===$r.onSubmit,isOnBlur:e===$r.onBlur,isOnChange:e===$r.onChange,isOnAll:e===$r.all,isOnTouch:e===$r.onTouched}),Mm=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const uu=(e,t,r,n)=>{for(const i of r||Object.keys(e)){const a=J(e,i);if(a){const{_f:o,...s}=a;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],i)&&!n)return!0;if(o.ref&&t(o.ref,o.name)&&!n)return!0;if(uu(s,t))break}else if(ot(s)&&uu(s,t))break}}};var lz=(e,t,r)=>{const n=ou(J(e,r));return Ie(n,"root",t[r]),Ie(e,r,n),e},up=e=>e.type==="file",hn=e=>typeof e=="function",kl=e=>{if(!np)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Vs=e=>Qr(e),sp=e=>e.type==="radio",Al=e=>e instanceof RegExp;const Dm={value:!1,isValid:!1},Im={value:!0,isValid:!0};var YS=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!rt(e[0].attributes.value)?rt(e[0].value)||e[0].value===""?Im:{value:e[0].value,isValid:!0}:Im:Dm}return Dm};const jm={isValid:!1,value:null};var JS=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,jm):jm;function Nm(e,t,r="validate"){if(Vs(e)||Array.isArray(e)&&e.every(Vs)||dr(e)&&!e)return{type:r,message:Vs(e)?e:"",ref:t}}var la=e=>ot(e)&&!Al(e)?e:{value:e,message:""},Um=async(e,t,r,n,i)=>{const{ref:a,refs:o,required:s,maxLength:l,minLength:u,min:c,max:f,pattern:v,validate:m,name:w,valueAsNumber:b,mount:E,disabled:y}=e._f,d=J(t,w);if(!E||y)return{};const p=o?o[0]:a,S=L=>{n&&p.reportValidity&&(p.setCustomValidity(dr(L)?"":L||""),p.reportValidity())},_={},g=sp(a),O=Ku(a),x=g||O,P=(b||up(a))&&rt(a.value)&&rt(d)||kl(a)&&a.value===""||d===""||Array.isArray(d)&&!d.length,C=sz.bind(null,w,r,_),A=(L,j,U,G=nn.maxLength,X=nn.minLength)=>{const z=L?j:U;_[w]={type:L?G:X,message:z,ref:a,...C(L?G:X,z)}};if(i?!Array.isArray(d)||!d.length:s&&(!x&&(P||Ft(d))||dr(d)&&!d||O&&!YS(o).isValid||g&&!JS(o).isValid)){const{value:L,message:j}=Vs(s)?{value:!!s,message:s}:la(s);if(L&&(_[w]={type:nn.required,message:j,ref:p,...C(nn.required,j)},!r))return S(j),_}if(!P&&(!Ft(c)||!Ft(f))){let L,j;const U=la(f),G=la(c);if(!Ft(d)&&!isNaN(d)){const X=a.valueAsNumber||d&&+d;Ft(U.value)||(L=X>U.value),Ft(G.value)||(j=Xnew Date(new Date().toDateString()+" "+H),M=a.type=="time",K=a.type=="week";Qr(U.value)&&d&&(L=M?z(d)>z(U.value):K?d>U.value:X>new Date(U.value)),Qr(G.value)&&d&&(j=M?z(d)+L.value,G=!Ft(j.value)&&d.length<+j.value;if((U||G)&&(A(U,L.message,j.message),!r))return S(_[w].message),_}if(v&&!P&&Qr(d)){const{value:L,message:j}=la(v);if(Al(L)&&!d.match(L)&&(_[w]={type:nn.pattern,message:j,ref:a,...C(nn.pattern,j)},!r))return S(j),_}if(m){if(hn(m)){const L=await m(d,t),j=Nm(L,p);if(j&&(_[w]={...j,...C(nn.validate,j.message)},!r))return S(j.message),_}else if(ot(m)){let L={};for(const j in m){if(!Bt(L)&&!r)break;const U=Nm(await m[j](d,t),p,j);U&&(L={...U,...C(j,U.message)},S(U.message),r&&(_[w]=L))}if(!Bt(L)&&(_[w]={ref:p,...L},!r))return _}}return S(!0),_};function cz(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},dh=e=>Ft(e)||!zS(e);function Ln(e,t){if(dh(e)||dh(t))return e===t;if(ki(e)&&ki(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r){const a=e[i];if(!n.includes(i))return!1;if(i!=="ref"){const o=t[i];if(ki(a)&&ki(o)||ot(a)&&ot(o)||Array.isArray(a)&&Array.isArray(o)?!Ln(a,o):a!==o)return!1}}return!0}var XS=e=>e.type==="select-multiple",dz=e=>sp(e)||Ku(e),Af=e=>kl(e)&&e.isConnected,ZS=e=>{for(const t in e)if(hn(e[t]))return!0;return!1};function Tl(e,t={}){const r=Array.isArray(e);if(ot(e)||r)for(const n in e)Array.isArray(e[n])||ot(e[n])&&!ZS(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Tl(e[n],t[n])):Ft(e[n])||(t[n]=!0);return t}function eb(e,t,r){const n=Array.isArray(e);if(ot(e)||n)for(const i in e)Array.isArray(e[i])||ot(e[i])&&!ZS(e[i])?rt(t)||dh(r[i])?r[i]=Array.isArray(e[i])?Tl(e[i],[]):{...Tl(e[i])}:eb(e[i],Ft(t)?{}:t[i],r[i]):r[i]=!Ln(e[i],t[i]);return r}var jo=(e,t)=>eb(e,t,Tl(t)),tb=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>rt(e)?e:t?e===""?NaN:e&&+e:r&&Qr(e)?new Date(e):n?n(e):e;function Tf(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return up(t)?t.files:sp(t)?JS(e.refs).value:XS(t)?[...t.selectedOptions].map(({value:r})=>r):Ku(t)?YS(e.refs).value:tb(rt(t.value)?e.ref.value:t.value,e)}var hz=(e,t,r,n)=>{const i={};for(const a of e){const o=J(t,a);o&&Ie(i,a,o._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},No=e=>rt(e)?e:Al(e)?e.source:ot(e)?Al(e.value)?e.value.source:e.value:e;const zm="AsyncFunction";var vz=e=>(!e||!e.validate)&&!!(hn(e.validate)&&e.validate.constructor.name===zm||ot(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===zm)),pz=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Vm(e,t,r){const n=J(e,r);if(n||ip(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const a=i.join("."),o=J(t,a),s=J(e,a);if(o&&!Array.isArray(o)&&r!==a)return{name:r};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:r}}var gz=(e,t,r,n,i)=>i.isOnAll?!1:!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?n.isOnChange:i.isOnChange)?e:!0,yz=(e,t)=>!wc(J(e,t)).length&&ct(e,t);const mz={mode:$r.onSubmit,reValidateMode:$r.onChange,shouldFocusError:!0};function wz(e={}){let t={...mz,...e},r={submitCount:0,isDirty:!1,isLoading:hn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},i=ot(t.defaultValues)||ot(t.values)?Nt(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Nt(i),o={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:kf(),array:kf(),state:kf()},v=Lm(t.mode),m=Lm(t.reValidateMode),w=t.criteriaMode===$r.all,b=$=>F=>{clearTimeout(u),u=setTimeout($,F)},E=async $=>{if(!e.disabled&&(c.isValid||$)){const F=t.resolver?Bt((await x()).errors):await C(n,!0);F!==r.isValid&&f.state.next({isValid:F})}},y=($,F)=>{!e.disabled&&(c.isValidating||c.validatingFields)&&(($||Array.from(s.mount)).forEach(D=>{D&&(F?Ie(r.validatingFields,D,F):ct(r.validatingFields,D))}),f.state.next({validatingFields:r.validatingFields,isValidating:!Bt(r.validatingFields)}))},d=($,F=[],D,V,Q=!0,W=!0)=>{if(V&&D&&!e.disabled){if(o.action=!0,W&&Array.isArray(J(n,$))){const te=D(J(n,$),V.argA,V.argB);Q&&Ie(n,$,te)}if(W&&Array.isArray(J(r.errors,$))){const te=D(J(r.errors,$),V.argA,V.argB);Q&&Ie(r.errors,$,te),yz(r.errors,$)}if(c.touchedFields&&W&&Array.isArray(J(r.touchedFields,$))){const te=D(J(r.touchedFields,$),V.argA,V.argB);Q&&Ie(r.touchedFields,$,te)}c.dirtyFields&&(r.dirtyFields=jo(i,a)),f.state.next({name:$,isDirty:L($,F),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ie(a,$,F)},p=($,F)=>{Ie(r.errors,$,F),f.state.next({errors:r.errors})},S=$=>{r.errors=$,f.state.next({errors:r.errors,isValid:!1})},_=($,F,D,V)=>{const Q=J(n,$);if(Q){const W=J(a,$,rt(D)?J(i,$):D);rt(W)||V&&V.defaultChecked||F?Ie(a,$,F?W:Tf(Q._f)):G($,W),o.mount&&E()}},g=($,F,D,V,Q)=>{let W=!1,te=!1;const fe={name:$};if(!e.disabled){const He=!!(J(n,$)&&J(n,$)._f&&J(n,$)._f.disabled);if(!D||V){c.isDirty&&(te=r.isDirty,r.isDirty=fe.isDirty=L(),W=te!==fe.isDirty);const Ee=He||Ln(J(i,$),F);te=!!(!He&&J(r.dirtyFields,$)),Ee||He?ct(r.dirtyFields,$):Ie(r.dirtyFields,$,!0),fe.dirtyFields=r.dirtyFields,W=W||c.dirtyFields&&te!==!Ee}if(D){const Ee=J(r.touchedFields,$);Ee||(Ie(r.touchedFields,$,D),fe.touchedFields=r.touchedFields,W=W||c.touchedFields&&Ee!==D)}W&&Q&&f.state.next(fe)}return W?fe:{}},O=($,F,D,V)=>{const Q=J(r.errors,$),W=c.isValid&&dr(F)&&r.isValid!==F;if(e.delayError&&D?(l=b(()=>p($,D)),l(e.delayError)):(clearTimeout(u),l=null,D?Ie(r.errors,$,D):ct(r.errors,$)),(D?!Ln(Q,D):Q)||!Bt(V)||W){const te={...V,...W&&dr(F)?{isValid:F}:{},errors:r.errors,name:$};r={...r,...te},f.state.next(te)}},x=async $=>{y($,!0);const F=await t.resolver(a,t.context,hz($||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return y($),F},P=async $=>{const{errors:F}=await x($);if($)for(const D of $){const V=J(F,D);V?Ie(r.errors,D,V):ct(r.errors,D)}else r.errors=F;return F},C=async($,F,D={valid:!0})=>{for(const V in $){const Q=$[V];if(Q){const{_f:W,...te}=Q;if(W){const fe=s.array.has(W.name),He=Q._f&&vz(Q._f);He&&c.validatingFields&&y([V],!0);const Ee=await Um(Q,a,w,t.shouldUseNativeValidation&&!F,fe);if(He&&c.validatingFields&&y([V]),Ee[W.name]&&(D.valid=!1,F))break;!F&&(J(Ee,W.name)?fe?lz(r.errors,Ee,W.name):Ie(r.errors,W.name,Ee[W.name]):ct(r.errors,W.name))}!Bt(te)&&await C(te,F,D)}}return D.valid},A=()=>{for(const $ of s.unMount){const F=J(n,$);F&&(F._f.refs?F._f.refs.every(D=>!Af(D)):!Af(F._f.ref))&&_e($)}s.unMount=new Set},L=($,F)=>!e.disabled&&($&&F&&Ie(a,$,F),!Ln(Z(),i)),j=($,F,D)=>GS($,s,{...o.mount?a:rt(F)?i:Qr($)?{[$]:F}:F},D,F),U=$=>wc(J(o.mount?a:i,$,e.shouldUnregister?J(i,$,[]):[])),G=($,F,D={})=>{const V=J(n,$);let Q=F;if(V){const W=V._f;W&&(!W.disabled&&Ie(a,$,tb(F,W)),Q=kl(W.ref)&&Ft(F)?"":F,XS(W.ref)?[...W.ref.options].forEach(te=>te.selected=Q.includes(te.value)):W.refs?Ku(W.ref)?W.refs.length>1?W.refs.forEach(te=>(!te.defaultChecked||!te.disabled)&&(te.checked=Array.isArray(Q)?!!Q.find(fe=>fe===te.value):Q===te.value)):W.refs[0]&&(W.refs[0].checked=!!Q):W.refs.forEach(te=>te.checked=te.value===Q):up(W.ref)?W.ref.value="":(W.ref.value=Q,W.ref.type||f.values.next({name:$,values:{...a}})))}(D.shouldDirty||D.shouldTouch)&&g($,Q,D.shouldTouch,D.shouldDirty,!0),D.shouldValidate&&H($)},X=($,F,D)=>{for(const V in F){const Q=F[V],W=`${$}.${V}`,te=J(n,W);(s.array.has($)||ot(Q)||te&&!te._f)&&!ki(Q)?X(W,Q,D):G(W,Q,D)}},z=($,F,D={})=>{const V=J(n,$),Q=s.array.has($),W=Nt(F);Ie(a,$,W),Q?(f.array.next({name:$,values:{...a}}),(c.isDirty||c.dirtyFields)&&D.shouldDirty&&f.state.next({name:$,dirtyFields:jo(i,a),isDirty:L($,W)})):V&&!V._f&&!Ft(W)?X($,W,D):G($,W,D),Mm($,s)&&f.state.next({...r}),f.values.next({name:o.mount?$:void 0,values:{...a}})},M=async $=>{o.mount=!0;const F=$.target;let D=F.name,V=!0;const Q=J(n,D),W=()=>F.type?Tf(Q._f):VS($),te=fe=>{V=Number.isNaN(fe)||ki(fe)&&isNaN(fe.getTime())||Ln(fe,J(a,D,fe))};if(Q){let fe,He;const Ee=W(),yt=$.type===$l.BLUR||$.type===$l.FOCUS_OUT,Yu=!pz(Q._f)&&!t.resolver&&!J(r.errors,D)&&!Q._f.deps||gz(yt,J(r.touchedFields,D),r.isSubmitted,m,v),xn=Mm(D,s,yt);Ie(a,D,Ee),yt?(Q._f.onBlur&&Q._f.onBlur($),l&&l(0)):Q._f.onChange&&Q._f.onChange($);const _o=g(D,Ee,yt,!1),Dr=!Bt(_o)||xn;if(!yt&&f.values.next({name:D,type:$.type,values:{...a}}),Yu)return c.isValid&&(e.mode==="onBlur"?yt&&E():E()),Dr&&f.state.next({name:D,...xn?{}:_o});if(!yt&&xn&&f.state.next({...r}),t.resolver){const{errors:So}=await x([D]);if(te(Ee),V){const Ju=Vm(r.errors,n,D),bo=Vm(So,n,Ju.name||D);fe=bo.error,D=bo.name,He=Bt(So)}}else y([D],!0),fe=(await Um(Q,a,w,t.shouldUseNativeValidation))[D],y([D]),te(Ee),V&&(fe?He=!1:c.isValid&&(He=await C(n,!0)));V&&(Q._f.deps&&H(Q._f.deps),O(D,He,fe,_o))}},K=($,F)=>{if(J(r.errors,F)&&$.focus)return $.focus(),1},H=async($,F={})=>{let D,V;const Q=ou($);if(t.resolver){const W=await P(rt($)?$:Q);D=Bt(W),V=$?!Q.some(te=>J(W,te)):D}else $?(V=(await Promise.all(Q.map(async W=>{const te=J(n,W);return await C(te&&te._f?{[W]:te}:te)}))).every(Boolean),!(!V&&!r.isValid)&&E()):V=D=await C(n);return f.state.next({...!Qr($)||c.isValid&&D!==r.isValid?{}:{name:$},...t.resolver||!$?{isValid:D}:{},errors:r.errors}),F.shouldFocus&&!V&&uu(n,K,$?Q:s.mount),V},Z=$=>{const F={...o.mount?a:i};return rt($)?F:Qr($)?J(F,$):$.map(D=>J(F,D))},ue=($,F)=>({invalid:!!J((F||r).errors,$),isDirty:!!J((F||r).dirtyFields,$),error:J((F||r).errors,$),isValidating:!!J(r.validatingFields,$),isTouched:!!J((F||r).touchedFields,$)}),Fe=$=>{$&&ou($).forEach(F=>ct(r.errors,F)),f.state.next({errors:$?r.errors:{}})},ve=($,F,D)=>{const V=(J(n,$,{_f:{}})._f||{}).ref,Q=J(r.errors,$)||{},{ref:W,message:te,type:fe,...He}=Q;Ie(r.errors,$,{...He,...F,ref:V}),f.state.next({name:$,errors:r.errors,isValid:!1}),D&&D.shouldFocus&&V&&V.focus&&V.focus()},Le=($,F)=>hn($)?f.values.subscribe({next:D=>$(j(void 0,F),D)}):j($,F,!0),_e=($,F={})=>{for(const D of $?ou($):s.mount)s.mount.delete(D),s.array.delete(D),F.keepValue||(ct(n,D),ct(a,D)),!F.keepError&&ct(r.errors,D),!F.keepDirty&&ct(r.dirtyFields,D),!F.keepTouched&&ct(r.touchedFields,D),!F.keepIsValidating&&ct(r.validatingFields,D),!t.shouldUnregister&&!F.keepDefaultValue&&ct(i,D);f.values.next({values:{...a}}),f.state.next({...r,...F.keepDirty?{isDirty:L()}:{}}),!F.keepIsValid&&E()},Re=({disabled:$,name:F,field:D,fields:V,value:Q})=>{if(dr($)&&o.mount||$){const W=$?void 0:rt(Q)?Tf(D?D._f:J(V,F)._f):Q;Ie(a,F,W),g(F,W,!1,!1,!0)}},$e=($,F={})=>{let D=J(n,$);const V=dr(F.disabled)||dr(e.disabled);return Ie(n,$,{...D||{},_f:{...D&&D._f?D._f:{ref:{name:$}},name:$,mount:!0,...F}}),s.mount.add($),D?Re({field:D,disabled:dr(F.disabled)?F.disabled:e.disabled,name:$,value:F.value}):_($,!0,F.value),{...V?{disabled:F.disabled||e.disabled}:{},...t.progressive?{required:!!F.required,min:No(F.min),max:No(F.max),minLength:No(F.minLength),maxLength:No(F.maxLength),pattern:No(F.pattern)}:{},name:$,onChange:M,onBlur:M,ref:Q=>{if(Q){$e($,F),D=J(n,$);const W=rt(Q.value)&&Q.querySelectorAll&&Q.querySelectorAll("input,select,textarea")[0]||Q,te=dz(W),fe=D._f.refs||[];if(te?fe.find(He=>He===W):W===D._f.ref)return;Ie(n,$,{_f:{...D._f,...te?{refs:[...fe.filter(Af),W,...Array.isArray(J(i,$))?[{}]:[]],ref:{type:W.type,name:$}}:{ref:W}}}),_($,!1,void 0,W)}else D=J(n,$,{}),D._f&&(D._f.mount=!1),(t.shouldUnregister||F.shouldUnregister)&&!(BS(s.array,$)&&o.action)&&s.unMount.add($)}}},Xt=()=>t.shouldFocusError&&uu(n,K,s.mount),Xr=$=>{dr($)&&(f.state.next({disabled:$}),uu(n,(F,D)=>{const V=J(n,D);V&&(F.disabled=V._f.disabled||$,Array.isArray(V._f.refs)&&V._f.refs.forEach(Q=>{Q.disabled=V._f.disabled||$}))},0,!1))},ke=($,F)=>async D=>{let V;D&&(D.preventDefault&&D.preventDefault(),D.persist&&D.persist());let Q=Nt(a);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:W,values:te}=await x();r.errors=W,Q=te}else await C(n);if(ct(r.errors,"root"),Bt(r.errors)){f.state.next({errors:{}});try{await $(Q,D)}catch(W){V=W}}else F&&await F({...r.errors},D),Xt(),setTimeout(Xt);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Bt(r.errors)&&!V,submitCount:r.submitCount+1,errors:r.errors}),V)throw V},we=($,F={})=>{J(n,$)&&(rt(F.defaultValue)?z($,Nt(J(i,$))):(z($,F.defaultValue),Ie(i,$,Nt(F.defaultValue))),F.keepTouched||ct(r.touchedFields,$),F.keepDirty||(ct(r.dirtyFields,$),r.isDirty=F.defaultValue?L($,Nt(J(i,$))):L()),F.keepError||(ct(r.errors,$),c.isValid&&E()),f.state.next({...r}))},pt=($,F={})=>{const D=$?Nt($):i,V=Nt(D),Q=Bt($),W=Q?i:V;if(F.keepDefaultValues||(i=D),!F.keepValues){if(F.keepDirtyValues){const te=new Set([...s.mount,...Object.keys(jo(i,a))]);for(const fe of Array.from(te))J(r.dirtyFields,fe)?Ie(W,fe,J(a,fe)):z(fe,J(W,fe))}else{if(np&&rt($))for(const te of s.mount){const fe=J(n,te);if(fe&&fe._f){const He=Array.isArray(fe._f.refs)?fe._f.refs[0]:fe._f.ref;if(kl(He)){const Ee=He.closest("form");if(Ee){Ee.reset();break}}}}n={}}a=e.shouldUnregister?F.keepDefaultValues?Nt(i):{}:Nt(W),f.array.next({values:{...W}}),f.values.next({values:{...W}})}s={mount:F.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!c.isValid||!!F.keepIsValid||!!F.keepDirtyValues,o.watch=!!e.shouldUnregister,f.state.next({submitCount:F.keepSubmitCount?r.submitCount:0,isDirty:Q?!1:F.keepDirty?r.isDirty:!!(F.keepDefaultValues&&!Ln($,i)),isSubmitted:F.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:Q?{}:F.keepDirtyValues?F.keepDefaultValues&&a?jo(i,a):r.dirtyFields:F.keepDefaultValues&&$?jo(i,$):F.keepDirty?r.dirtyFields:{},touchedFields:F.keepTouched?r.touchedFields:{},errors:F.keepErrors?r.errors:{},isSubmitSuccessful:F.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},nt=($,F)=>pt(hn($)?$(a):$,F);return{control:{register:$e,unregister:_e,getFieldState:ue,handleSubmit:ke,setError:ve,_executeSchema:x,_getWatch:j,_getDirty:L,_updateValid:E,_removeUnmounted:A,_updateFieldArray:d,_updateDisabledField:Re,_getFieldArray:U,_reset:pt,_resetDefaultValues:()=>hn(t.defaultValues)&&t.defaultValues().then($=>{nt($,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:$=>{r={...r,...$}},_disableForm:Xr,_subjects:f,_proxyFormState:c,_setErrors:S,get _fields(){return n},get _formValues(){return a},get _state(){return o},set _state($){o=$},get _defaultValues(){return i},get _names(){return s},set _names($){s=$},get _formState(){return r},set _formState($){r=$},get _options(){return t},set _options($){t={...t,...$}}},trigger:H,register:$e,handleSubmit:ke,watch:Le,setValue:z,getValues:Z,reset:nt,resetField:we,clearErrors:Fe,unregister:_e,setError:ve,setFocus:($,F={})=>{const D=J(n,$),V=D&&D._f;if(V){const Q=V.refs?V.refs[0]:V.ref;Q.focus&&(Q.focus(),F.shouldSelect&&Q.select())}},getFieldState:ue}}function _z(e={}){const t=me.useRef(),r=me.useRef(),[n,i]=me.useState({isDirty:!1,isValidating:!1,isLoading:hn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:hn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...wz(e),formState:n});const a=t.current.control;return a._options=e,ap({subject:a._subjects.state,next:o=>{qS(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),me.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),me.useEffect(()=>{if(a._proxyFormState.isDirty){const o=a._getDirty();o!==n.isDirty&&a._subjects.state.next({isDirty:o})}},[a,n.isDirty]),me.useEffect(()=>{e.values&&!Ln(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values,i(o=>({...o}))):a._resetDefaultValues()},[e.values,a]),me.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),me.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),me.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),me.useEffect(()=>{t.current&&(t.current.watch=t.current.watch.bind({}))},[n]),t.current.formState=QS(n,a),t.current}var rb=h.createContext(void 0),hh=function(){return hh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0,l=h.useState(!1),u=l[0],c=l[1],f=!e||!s||a,v=GP(function(m){var w=m.currentLocation,b=m.nextLocation;if(f)return!1;var E=t||w.pathname,y=b.pathname.startsWith(E),d=b.pathname.startsWith("".concat(E,"/show")),p=y&&!d;return!p});h.useEffect(function(){if(v.state==="blocked"){if(f){v.proceed();return}c(!0)}},[v.state]),h.useEffect(function(){if(u){var m=window.confirm(n("ra.message.unsaved_changes"));m?v.proceed&&v.proceed():v.reset&&v.reset()}c(!1)},[u,n]),h.useEffect(function(){var m=function(w){w.preventDefault(),w.returnValue=!0};if(!f)return window.addEventListener("beforeunload",m),function(){window.removeEventListener("beforeunload",m)}},[f])},Az=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,i=e.formControl;return kz(r,n,i),null};function Tz(e,t){var r=hD({},Fz(e,t),t);return r}function Fz(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var Lz=function(e,t){var r=function(n,i){Object.entries(n).forEach(function(a){var o=a[0],s=a[1];if(typeof s=="object"){r(s,"".concat(i).concat(o,"."));return}t("".concat(i).concat(o),{type:"server",message:s.toString()})})};r(e,"")},Mz=function(e,t){t===void 0&&(t=!0);var r=op(e?{control:e}:void 0),n=r.submitCount,i=r.errors,a=h.useRef(n),o=Mr();h.useEffect(function(){var s,l;if(n>a.current&&t&&(a.current=n,Object.keys(i).length>0)){var u=typeof((l=(s=i.root)===null||s===void 0?void 0:s.serverError)===null||l===void 0?void 0:l.message)=="string"?i.root.serverError.message:void 0;o(u||"ra.message.invalid_form",{type:"error"})}},[i,n,o,t])},Dz=function(e,t){t===void 0&&(t={});var r={};return Object.keys(e).forEach(function(n){e[n]==null||e[n]===""?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]}),r},ph=function(){return ph=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,di=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function Vz(e){return e?e.hasOwnProperty("message"):!1}var hi=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},vi=function(e){return R_(e,function(){for(var t=[],r=0;re?hi(t,{max:e},r,n):void 0}});vi(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!di(r)&&re?hi(t,{max:e},r,n):void 0}});vi(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!di(t)&&isNaN(Number(t))?hi(e,void 0,t,r):void 0}});var Qz=R_(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!di(r)&&typeof r=="string"&&!e.test(r)?hi(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});vi(function(e){return e===void 0&&(e="ra.validation.email"),Qz(zz,e)});var qz=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};vi(function(e,t){return t===void 0&&(t=qz),function(r,n){return!di(r)&&e.indexOf(r)===-1?hi(t,{list:e},r,n):void 0}});var Kz=h.createContext(null),Gz=function(){var e=h.useContext(rb);return e},Yz=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,i=t.defaultValue,a=t.source,o=Ab(a),s=fi(t),l=_c(),u=l.getValues,c=l.resetField,f=l.formState,v=l.reset,m=Lt(s,o),w=Lt(u(),o),b=f.dirtyFields,E=Object.keys(b).includes(o);h.useEffect(function(){if(!(i==null||w!=null||m!=null||E)){var y=o.split(".").some(function(S){return Jz.test(S)});if(y){var d=o.split(".").slice(0,-1).join("."),p=Lt(u(),d);if(p==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(i),v({},{keepValues:!0});return}c(o,{defaultValue:i})}})},Jz=/^\d+$/,Xz=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,i=n===void 0?"id":n,a=e.disableValue,o=a===void 0?"disabled":a,s=e.translateChoice,l=s===void 0?!0:s,u=_r(),c=h.useCallback(function(m){if(h.isValidElement(r))return h.createElement(qu,{value:m},r);var w=typeof r=="function"?r(m):Lt(m,r);return h.isValidElement(w)?w:l?u(String(w),{_:w}):String(w)},[r,u,l]),f=h.useCallback(function(m){return Lt(m,i)},[i]),v=h.useCallback(function(m){return Lt(m,o)},[o]);return{getChoiceText:c,getChoiceValue:f,getDisableValue:v}},Zz=function(){var e=h.useContext(Kz);return e},eV=function(e){return e&&e.isRequired?!0:Array.isArray(e)?e.some(function(t){return t.isRequired}):!1},bi=function(){return bi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0?e.slice(0,t):e},fV=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,i=n===void 0?"id":n,a=e.text,o=a===void 0?"":a,s=e.value,l=s===void 0?null:s,u={};return ml(u,i,l),typeof r=="string"&&ml(u,r,o),u},yh=function(){return yh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0?X(z):z},{updatedAt:U}),i.setQueriesData({queryKey:[P,"getManyReference"]},function(z){return z&&z.data?{data:X(z.data),total:z.total}:z},{updatedAt:U})},_=Bu(Me(Me({mutationFn:function(x){var P=x===void 0?{}:x,C=P.resource,A=C===void 0?e:C,L=P.id,j=L===void 0?w.current.id:L,U=P.data,G=U===void 0?w.current.data:U,X=P.meta,z=X===void 0?w.current.meta:X,M=P.previousData,K=M===void 0?w.current.previousData:M;if(!A)throw new Error("useUpdate mutation requires a non-empty resource");if(j==null)throw new Error("useUpdate mutation requires a non-empty id");if(!G)throw new Error("useUpdate mutation requires a non-empty data object");return E.current(A,{id:j,data:G,previousData:K,meta:z}).then(function(H){var Z=H.data;return Z})}},v),{onMutate:function(x){return Qm(void 0,void 0,void 0,function(){var P;return qm(this,function(C){switch(C.label){case 0:return v.onMutate?[4,v.onMutate(x)]:[3,2];case 1:return P=C.sent()||{},[2,Me({snapshot:b.current},P)];case 2:return[2,{snapshot:b.current}]}})})},onError:function(x,P,C){if(P===void 0&&(P={}),(m.current==="optimistic"||m.current==="undoable")&&C.snapshot.forEach(function(A){var L=A[0],j=A[1];i.setQueryData(L,j)}),y.current)return y.current(x,P,C);if(v.onError)return v.onError(x,P,C)},onSuccess:function(x,P,C){var A;if(P===void 0&&(P={}),m.current==="pessimistic"){var L=P.resource,j=L===void 0?e:L,U=P.id,G=U===void 0?o:U;S({resource:j,id:G,data:x,meta:(A=v.meta)!==null&&A!==void 0?A:w.current.meta}),v.onSuccess&&!p.current&&v.onSuccess(x,P,C)}},onSettled:function(x,P,C,A){if(C===void 0&&(C={}),(m.current==="optimistic"||m.current==="undoable")&&A.snapshot.forEach(function(L){var j=L[0];i.invalidateQueries({queryKey:j})}),d.current)return d.current(x,P,C,A);if(v.onSettled)return v.onSettled(x,P,C,A)}})),g=function(x,P,C){return x===void 0&&(x=e),P===void 0&&(P={}),C===void 0&&(C={}),Qm(void 0,void 0,void 0,function(){var A,L,j,U,G,X,z,M,K,H,Z,ue,Fe,ve,Le;return qm(this,function(_e){switch(_e.label){case 0:return A=C.mutationMode,L=C.returnPromise,j=L===void 0?v.returnPromise:L,U=C.onError,G=C.onSettled,X=C.onSuccess,z=Km(C,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),f?E.current=f(n.update.bind(n)):E.current=n.update,p.current=!!X,y.current=U,d.current=G,w.current=t,A&&(m.current=A),j&&m.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),m.current==="pessimistic"?j?[2,_.mutateAsync(Me({resource:x},P),Me({onSuccess:X},z))]:[2,_.mutate(Me({resource:x},P),Me({onSuccess:X},z))]:(M=P.id,K=M===void 0?o:M,H=P.data,Z=H===void 0?s:H,ue=P.meta,Fe=ue===void 0?l:ue,ve=i.getQueryData([x,"getOne",{id:String(K),meta:Fe}]),Le=[[x,"getOne",{id:String(K),meta:Fe}],[x,"getList"],[x,"getInfiniteList"],[x,"getMany"],[x,"getManyReference"]],b.current=Le.reduce(function(Re,$e){return Re.concat(i.getQueriesData({queryKey:$e}))},[]),[4,Promise.all(b.current.map(function(Re){var $e=Re[0];return i.cancelQueries({queryKey:$e})}))]);case 1:return _e.sent(),S({resource:x,id:K,data:Z,meta:Fe}),setTimeout(function(){X?X(Me(Me({},ve),Z),Me({resource:x},P),{snapshot:b.current}):v.onSuccess&&!p.current&&v.onSuccess(Me(Me({},ve),Z),Me({resource:x},P),{snapshot:b.current})},0),m.current==="optimistic"?[2,_.mutate(Me({resource:x},P))]:(a(function(Re){var $e=Re.isUndo;$e?b.current.forEach(function(Xt){var Xr=Xt[0],ke=Xt[1];i.setQueryData(Xr,ke)}):_.mutate(Me({resource:x},P))}),[2])}})})},O=h.useMemo(function(){return Me({isLoading:_.isPending},_)},[_]);return[ze(g),O]},Rt=function(){return Rt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0?C(A):A},{updatedAt:P}),i.setQueriesData({queryKey:[g,"getManyReference"]},function(A){if(!A||!A.data)return A;var L=C(A.data),j=L.length0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0?P(C):C},{updatedAt:x}),i.setQueriesData({queryKey:[_,"getManyReference"]},function(C){if(!C||!C.data)return C;var A=P(C.data),L=A.length0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var xi=function(){return xi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0||w.customRoutesWithLayout.length>0||w.customRoutesWithoutLayout.length>0?"ready":"empty"),m&&f(m),[2]})})};r||v()},[e,n,r,s,t,o,c]),[a,u]},kV=function(e){var t=h.useState(e),r=t[0],n=t[1],i=h.useCallback(function(a){n(function(o){return{customRoutesWithLayout:o.customRoutesWithLayout.concat(a.customRoutesWithLayout),customRoutesWithoutLayout:o.customRoutesWithoutLayout.concat(a.customRoutesWithoutLayout),resources:o.resources.concat(a.resources)}})},[]);return[r,n,i]},AV=function(e,t){var r=pS(),n=r.register,i=r.unregister;h.useEffect(function(){return e.forEach(function(a){if(typeof a.type.registerResource=="function"){var o=a.type.registerResource(a.props,t);n(o)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(a){if(typeof a.type.registerResource=="function"){var o=a.type.registerResource(a.props,t);i(o)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,i])},TV=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,i=e.customRoutesWithoutLayout;return cb(t)?"loading":r.length>0||n.length>0||i.length>0?"ready":"empty"},cb=function(e){var t=Array.isArray(e)?e:[e],r=t.filter(function(n){return typeof n=="function"});if(r.length>1)throw new Error("You can only provide one function child to AdminRouter");return r.length===0?null:r[0]},qo=function(e){var t=[],r=[],n=[];return typeof e=="function"?{customRoutesWithLayout:[],customRoutesWithoutLayout:[],resources:[]}:(h.Children.forEach(e,function(i){if(h.isValidElement(i)){if(i.type===h.Fragment){var a=qo(i.props.children);t.push.apply(t,a.customRoutesWithLayout),r.push.apply(r,a.customRoutesWithoutLayout),n.push.apply(n,a.resources)}if(i.type.raName==="CustomRoutes"){var o=i;o.props.noLayout?r.push(o.props.children):t.push(o.props.children)}else i.type.raName==="Resource"&&n.push(i)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n})},fb=h.createContext(!1),FV=fb.Provider,L5=function(){return h.useContext(fb)},Au=function(){return Au=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]"u"||typeof window.location>"u"||typeof Image>"u")){var G=new Image;G.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[f]);var U=function(G,X){return n(X)};return h.createElement(VV,{value:P},h.createElement(bV,{onError:U,fallbackRender:function(G){var X=G.error,z=G.resetErrorBoundary;return h.createElement("div",{style:{minHeight:"100vh"}},h.createElement(m,{error:X,errorInfo:r,resetErrorBoundary:z}))}},h.createElement(Ea,null,p!==!1&&p!==!0?h.createElement(Ct,{path:"/login",element:u0(p)}):null,a!==!1&&a!==!0?h.createElement(Ct,{path:"/auth-callback",element:u0(a)}):null,h.createElement(Ct,{path:"/*",element:h.createElement(UV,{catchAll:s,dashboard:u,layout:b,loading:y,requireAuth:O,ready:_,authenticationError:A,accessDenied:j},l)}))))},u0=function(e){return h.isValidElement(e)?e:h.createElement(e)},Cs=function(){return null},hb=function(e){var t=e.children,r=e.value;return r?h.createElement(hS.Provider,{value:r},t):t},Sc=function(e){var t=e.value,r=e.children;return t?h.createElement(hb,{value:t},r):r},vb={exports:{}},Te={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var fp=Symbol.for("react.element"),dp=Symbol.for("react.portal"),bc=Symbol.for("react.fragment"),Ec=Symbol.for("react.strict_mode"),xc=Symbol.for("react.profiler"),Cc=Symbol.for("react.provider"),Pc=Symbol.for("react.context"),HV=Symbol.for("react.server_context"),Oc=Symbol.for("react.forward_ref"),Rc=Symbol.for("react.suspense"),$c=Symbol.for("react.suspense_list"),kc=Symbol.for("react.memo"),Ac=Symbol.for("react.lazy"),QV=Symbol.for("react.offscreen"),pb;pb=Symbol.for("react.module.reference");function Sr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case fp:switch(e=e.type,e){case bc:case xc:case Ec:case Rc:case $c:return e;default:switch(e=e&&e.$$typeof,e){case HV:case Pc:case Oc:case Ac:case kc:case Cc:return e;default:return t}}case dp:return t}}}Te.ContextConsumer=Pc;Te.ContextProvider=Cc;Te.Element=fp;Te.ForwardRef=Oc;Te.Fragment=bc;Te.Lazy=Ac;Te.Memo=kc;Te.Portal=dp;Te.Profiler=xc;Te.StrictMode=Ec;Te.Suspense=Rc;Te.SuspenseList=$c;Te.isAsyncMode=function(){return!1};Te.isConcurrentMode=function(){return!1};Te.isContextConsumer=function(e){return Sr(e)===Pc};Te.isContextProvider=function(e){return Sr(e)===Cc};Te.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===fp};Te.isForwardRef=function(e){return Sr(e)===Oc};Te.isFragment=function(e){return Sr(e)===bc};Te.isLazy=function(e){return Sr(e)===Ac};Te.isMemo=function(e){return Sr(e)===kc};Te.isPortal=function(e){return Sr(e)===dp};Te.isProfiler=function(e){return Sr(e)===xc};Te.isStrictMode=function(e){return Sr(e)===Ec};Te.isSuspense=function(e){return Sr(e)===Rc};Te.isSuspenseList=function(e){return Sr(e)===$c};Te.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===bc||e===xc||e===Ec||e===Rc||e===$c||e===QV||typeof e=="object"&&e!==null&&(e.$$typeof===Ac||e.$$typeof===kc||e.$$typeof===Cc||e.$$typeof===Pc||e.$$typeof===Oc||e.$$typeof===pb||e.getModuleId!==void 0)};Te.typeOf=Sr;vb.exports=Te;var qV=vb.exports,gb=function(e){var t=e.create,r=e.edit,n=e.list,i=e.name,a=e.show;return h.createElement(hb,{value:i},h.createElement(Ea,null,t&&h.createElement(Ct,{path:"create/*",element:Ps(t)}),a&&h.createElement(Ct,{path:":id/show/*",element:Ps(a)}),r&&h.createElement(Ct,{path:":id/*",element:Ps(r)}),n&&h.createElement(Ct,{path:"/*",element:h.createElement(EN,{storeKey:"".concat(i,".list.scrollPosition")},Ps(n))}),e.children))},Ps=function(e){if(h.isValidElement(e))return e;if(qV.isValidElementType(e)){var t=e;return h.createElement(t,null)}return null};gb.raName="Resource";gb.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,i=e.list,a=e.name,o=e.options,s=e.show,l=e.recordRepresentation,u=e.hasCreate,c=e.hasEdit,f=e.hasShow;return{name:a,options:o,hasList:!!i,hasCreate:!!t||!!u,hasEdit:!!r||!!c,hasShow:!!s||!!f,icon:n,recordRepresentation:l}};var hp=h.createContext(void 0),KV={getSource:function(e){return e},getLabel:function(e){return e}},GV=hp.Provider,YV=function(){var e=h.useContext(hp);return e||KV},JV=function(){return h.useContext(hp)},Pe={};/*! + * inflection + * Copyright(c) 2011 Ben Lin + * MIT Licensed + * + * @fileoverview + * A port of inflection-js to node.js module. + */Object.defineProperty(Pe,"__esModule",{value:!0});var yb=Pe.transform=Pe.ordinalize=Pe.foreignKey=Pe.classify=Pe.tableize=Pe.demodulize=Pe.titleize=Pe.dasherize=Pe.capitalize=Eb=Pe.humanize=Pe.underscore=Pe.camelize=Sb=Pe.inflect=n6=Pe.singularize=Pe.pluralize=void 0;const Ll=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],N={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),databases:new RegExp("(database)s$","gi"),drives:new RegExp("(drive)s$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopuses:new RegExp("(octop|vir)uses$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons|bonus)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),drive:new RegExp("(drive)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons|bonus)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},mb=[[N.plural.men],[N.plural.people],[N.plural.children],[N.plural.tia],[N.plural.analyses],[N.plural.databases],[N.plural.drives],[N.plural.hives],[N.plural.curves],[N.plural.lrves],[N.plural.foves],[N.plural.aeiouyies],[N.plural.series],[N.plural.movies],[N.plural.xes],[N.plural.mice],[N.plural.buses],[N.plural.oes],[N.plural.shoes],[N.plural.crises],[N.plural.octopuses],[N.plural.aliases],[N.plural.summonses],[N.plural.oxen],[N.plural.matrices],[N.plural.feet],[N.plural.teeth],[N.plural.geese],[N.plural.quizzes],[N.plural.whereases],[N.plural.criteria],[N.plural.genera],[N.singular.man,"$1en"],[N.singular.person,"$1ople"],[N.singular.child,"$1ren"],[N.singular.drive,"$1s"],[N.singular.ox,"$1en"],[N.singular.axis,"$1es"],[N.singular.octopus,"$1uses"],[N.singular.alias,"$1es"],[N.singular.summons,"$1es"],[N.singular.bus,"$1ses"],[N.singular.buffalo,"$1oes"],[N.singular.tium,"$1a"],[N.singular.sis,"ses"],[N.singular.ffe,"$1$2ves"],[N.singular.hive,"$1ves"],[N.singular.aeiouyy,"$1ies"],[N.singular.matrix,"$1ices"],[N.singular.vertex,"$1ices"],[N.singular.x,"$1es"],[N.singular.mouse,"$1ice"],[N.singular.foot,"feet"],[N.singular.tooth,"teeth"],[N.singular.goose,"geese"],[N.singular.quiz,"$1zes"],[N.singular.whereas,"$1es"],[N.singular.criterion,"$1a"],[N.singular.genus,"genera"],[N.singular.s,"s"],[N.singular.common,"s"]],wb=[[N.singular.man],[N.singular.person],[N.singular.child],[N.singular.drive],[N.singular.ox],[N.singular.axis],[N.singular.octopus],[N.singular.alias],[N.singular.summons],[N.singular.bus],[N.singular.buffalo],[N.singular.tium],[N.singular.sis],[N.singular.ffe],[N.singular.hive],[N.singular.aeiouyy],[N.singular.x],[N.singular.matrix],[N.singular.mouse],[N.singular.foot],[N.singular.tooth],[N.singular.goose],[N.singular.quiz],[N.singular.whereas],[N.singular.criterion],[N.singular.genus],[N.plural.men,"$1an"],[N.plural.people,"$1rson"],[N.plural.children,"$1"],[N.plural.databases,"$1"],[N.plural.drives,"$1"],[N.plural.genera,"genus"],[N.plural.criteria,"$1on"],[N.plural.tia,"$1um"],[N.plural.analyses,"$1$2sis"],[N.plural.hives,"$1ve"],[N.plural.curves,"$1"],[N.plural.lrves,"$1f"],[N.plural.aves,"$1ve"],[N.plural.foves,"$1fe"],[N.plural.movies,"$1ovie"],[N.plural.aeiouyies,"$1y"],[N.plural.series,"$1eries"],[N.plural.xes,"$1"],[N.plural.mice,"$1ouse"],[N.plural.buses,"$1"],[N.plural.oes,"$1"],[N.plural.shoes,"$1"],[N.plural.crises,"$1is"],[N.plural.octopuses,"$1us"],[N.plural.aliases,"$1"],[N.plural.summonses,"$1"],[N.plural.oxen,"$1"],[N.plural.matrices,"$1ix"],[N.plural.vertices,"$1ex"],[N.plural.feet,"foot"],[N.plural.teeth,"tooth"],[N.plural.geese,"goose"],[N.plural.quizzes,"$1"],[N.plural.whereases,"$1"],[N.plural.ss,"ss"],[N.plural.s,""]],XV=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],ZV=new RegExp("(_ids|_id)$","g"),_b=new RegExp("_","g"),e6=new RegExp("[ _]","g"),t6=new RegExp("([A-Z])","g"),r6=new RegExp("^_");function Ml(e,t,r,n){if(n)return n;if(r.includes(e.toLocaleLowerCase()))return e;for(const i of t)if(e.match(i[0]))return i[1]!==void 0?e.replace(i[0],i[1]):e;return e}function vp(e,t){return Ml(e,mb,Ll,t)}Pe.pluralize=vp;function pp(e,t){return Ml(e,wb,Ll,t)}var n6=Pe.singularize=pp;function i6(e,t,r,n){return isNaN(t)?e:t===1?Ml(e,wb,Ll,r):Ml(e,mb,Ll,n)}var Sb=Pe.inflect=i6;function gp(e,t){const r=e.split("/"),n=r.length;let i,a,o,s;for(let l=0;l"u")return[""];var o=f6(a),s=o.sourceWithoutDigits,l=o.sourceSuffix,u=yb(l.replace(/\./g," "),["underscore","humanize"]);return n?[s0(n,s),{_:u}]:r?[r,{_:u}]:[s0(i||"undefined",s),{_:u}]},s0=function(e,t){return"resources.".concat(e,".fields.").concat(t)},f6=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(a,o){d6(a)&&(n=o)});var i=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:i}},d6=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0},h6=typeof window<"u"?h.useLayoutEffect:h.useEffect,ze=function(e){var t=h.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return h6(function(){t.current=e}),h.useCallback(function(){for(var r=[],n=0;n"u"?t:v)});return function(){return f()}},[e,a,t,n,s]);var u=ze(function(c,f){var v=typeof c=="function"?c(s):c;i(e,typeof v>"u"?typeof f>"u"?t:f:v)});return[s,u]},v6=function(e){var t=cc().removeItem;return h.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},N5=function(e){var t=cc().removeItems;return h.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},p6=function(){var e=cc().reset;return e},Gu=function(){var e=wr(),t=sr(),r=p6(),n=ci(),i=h.useRef(n),a=Yt(),o=h.useRef(a),s=go(),l=Wr("".concat(s,"/").concat(Xl.loginUrl));h.useEffect(function(){o.current=a,i.current=n},[a,n]);var u=h.useCallback(function(c,f,v){return c===void 0&&(c={}),f===void 0&&(f=l),v===void 0&&(v=!0),e?e.logout(c).then(function(m){if(m===!1||f===!1){r(),t.clear();return}var w=m||f;if(w!=null&&w.startsWith("http"))return r(),t.clear(),window.location.href=w,w;var b=w.split("?"),E={pathname:b[0]},y={};return v&&o.current&&o.current.pathname&&(y={state:{nextPathname:o.current.pathname,nextSearch:o.current.search}}),b[1]&&(E.search=b[1]),i.current(E,y),r(),t.clear(),m}):(i.current({pathname:l},{state:{nextPathname:o.current&&o.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,l,t]);return u},Ci=function(){return Ci=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},c0=function(){},Lb={authenticated:!0,data:!0,dataUpdatedAt:0,error:null,errorUpdatedAt:0,errorUpdateCount:0,failureCount:0,failureReason:null,fetchStatus:"idle",isError:!1,isInitialLoading:!1,isLoading:!1,isLoadingError:!1,isFetched:!0,isFetchedAfterMount:!0,isFetching:!1,isPaused:!1,isPlaceholderData:!1,isPending:!1,isRefetchError:!1,isRefetching:!1,isStale:!1,isSuccess:!0,status:"success",refetch:function(){return Promise.resolve(Lb)}},m6=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i");var l=wo(t).isPending,u=sb(t,{enabled:!l}),c=u.permissions,f=u.isPending;if(l||f)return o?h.createElement(o,null):null;if(i)return h.createElement(i,su({permissions:c},s));if(n)return n(su({permissions:c},s));if(r)return r(su({permissions:c},s))},U5=function(){var e=wr(),t=Yt(),r=t.state,n=ci(),i=go(),a=aL().resetNotifications,o=r&&r.nextPathname,s=r&&r.nextSearch,l=Wr("".concat(i,"/").concat(Xl.afterLoginUrl)),u=h.useCallback(function(c,f){return c===void 0&&(c={}),e?e.login(c).then(function(v){if(a(),v&&v.hasOwnProperty("redirectTo"))v&&n(v.redirectTo);else{var m=f||o+s||l;n(m)}return v}):(a(),n(l),Promise.resolve())},[e,n,o,s,a,l]);return u},b6="AUTH_LOGIN",E6="AUTH_CHECK",x6="AUTH_ERROR",C6="AUTH_LOGOUT",P6="AUTH_GET_PERMISSIONS";const O6=function(e){var t=function(){for(var r=[],n=0;n0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1] component or provide a resource prop");var n=fi(e),i=!!(t!=null&&t.canAccess),a=ta(un({queryKey:["auth","canAccess",un(un({},e),{record:n,resource:r})],queryFn:function(s){var l=s.signal;return R6(void 0,void 0,void 0,function(){return $6(this,function(u){return!t||!t.canAccess?[2,!0]:[2,t.canAccess(un(un({},e),{record:n,resource:r,signal:t.supportAbortSignal?l:void 0}))]})})},enabled:i},e)),o=h.useMemo(function(){return un(un({},a),{canAccess:a.data})},[a]);return i?o:Mb},Mb={canAccess:!0,data:!0,dataUpdatedAt:0,error:null,errorUpdatedAt:0,errorUpdateCount:0,failureCount:0,failureReason:null,fetchStatus:"idle",isError:!1,isInitialLoading:!1,isLoading:!1,isLoadingError:!1,isFetched:!0,isFetchedAfterMount:!0,isFetching:!1,isPaused:!1,isPlaceholderData:!1,isPending:!1,isRefetchError:!1,isRefetching:!1,isStale:!1,isSuccess:!0,status:"success",refetch:function(){return Promise.resolve(Mb)}},A6=function(){var e=Gu();return h.useEffect(function(){e()},[e]),null},z5=function(){var e=wr(),t=Mr(),r=Gu(),n=go(),i=Wr("".concat(n,"/").concat(Xl.loginUrl)),a=h.useCallback(function(o,s,l){return o===void 0&&(o={}),s===void 0&&(s=!0),l===void 0&&(l=i),e?e.checkAuth(o).catch(function(u){if(s){r({},u&&u.redirectTo!=null?u.redirectTo:l);var c=u&&u.message===!1;!c&&t(F6(u,"ra.auth.auth_check_error"),{type:"error"})}throw u}):T6()},[e,r,t,i]);return a},T6=function(){return Promise.resolve()},F6=function(e,t){return typeof e=="string"?e:typeof e>"u"||!e.message?t:e.message},lu=function(){return lu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return pi(r&&e?"".concat(r,".").concat(e):r??e,t)},H6=function(){var e=h.useContext(ub);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},Q6=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n0?nt(Hn,--Ot):0,An--,Ge===10&&(An=1,Ki--),Ge}function St(){return Ge=Ot<_m?nt(Hn,Ot++):0,An++,Ge===10&&(An=1,Ki++),Ge}function Zt(){return nt(Hn,Ot)}function ka(){return Ot}function Uo(e,t){return To(Hn,e,t)}function Io(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Cm(e){return Ki=An=1,_m=Yt(Hn=e),Ot=0,[]}function wm(e){return Hn="",e}function Ta(e){return Om(Uo(Ot-1,Il(e===91?e+2:e===40?e+1:e)))}function c0(e){for(;(Ge=Zt())&&Ge<33;)St();return Io(e)>2||Io(Ge)>3?"":" "}function u0(e,t){for(;--t&&St()&&!(Ge<48||Ge>102||Ge>57&&Ge<65||Ge>70&&Ge<97););return Uo(e,ka()+(t<6&&Zt()==32&&St()==32))}function Il(e){for(;St();)switch(Ge){case e:return Ot;case 34:case 39:e!==34&&e!==39&&Il(Ge);break;case 40:e===41&&Il(e);break;case 92:St();break}return Ot}function d0(e,t){for(;St()&&e+Ge!==57;)if(e+Ge===84&&Zt()===47)break;return"/*"+Uo(t,Ot-1)+"*"+qi(e===47?e:St())}function f0(e){for(;!Io(Zt());)St();return Uo(e,Ot)}function p0(e){return wm(Ia("",null,null,null,[""],e=Cm(e),0,[0],e))}function Ia(e,t,r,n,o,a,i,l,u){for(var c=0,d=0,f=i,p=0,m=0,g=0,v=1,b=1,x=1,C=0,O="",h=o,_=a,E=n,w=O;b;)switch(g=C,C=St()){case 40:if(g!=108&&nt(w,f-1)==58){Tl(w+=Pe(Ta(C),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:w+=Ta(C);break;case 9:case 10:case 13:case 32:w+=c0(g);break;case 92:w+=u0(ka()-1,7);continue;case 47:switch(Zt()){case 42:case 47:ma(m0(d0(St(),ka()),t,r),u);break;default:w+="/"}break;case 123*v:l[c++]=Yt(w)*x;case 125*v:case 59:case 0:switch(C){case 0:case 125:b=0;case 59+d:x==-1&&(w=Pe(w,/\f/g,"")),m>0&&Yt(w)-f&&ma(m>32?tf(w+";",n,r,f-1):tf(Pe(w," ","")+";",n,r,f-2),u);break;case 59:w+=";";default:if(ma(E=ef(w,t,r,c,d,o,l,O,h=[],_=[],f),a),C===123)if(d===0)Ia(w,t,E,E,h,a,f,l,_);else switch(p===99&&nt(w,3)===110?100:p){case 100:case 108:case 109:case 115:Ia(e,E,E,n&&ma(ef(e,E,E,0,0,o,l,O,o,h=[],f),_),o,_,f,l,n?h:_);break;default:Ia(w,E,E,E,[""],_,0,l,_)}}c=d=m=0,v=x=1,O=w="",f=i;break;case 58:f=1+Yt(w),m=g;default:if(v<1){if(C==123)--v;else if(C==125&&v++==0&&l0()==125)continue}switch(w+=qi(C),C*v){case 38:x=d>0?1:(w+="\f",-1);break;case 44:l[c++]=(Yt(w)-1)*x,x=1;break;case 64:Zt()===45&&(w+=Ta(St())),p=Zt(),d=f=Yt(O=w+=f0(ka())),C++;break;case 45:g===45&&Yt(w)==2&&(v=0)}}return a}function ef(e,t,r,n,o,a,i,l,u,c,d){for(var f=o-1,p=o===0?a:[""],m=pu(p),g=0,v=0,b=0;g0?p[x]+" "+C:Pe(C,/&\f/g,p[x])))&&(u[b++]=O);return Gi(e,t,r,o===0?du:l,u,c,d)}function m0(e,t,r){return Gi(e,t,r,bm,qi(s0()),To(e,2,-2),0)}function tf(e,t,r,n){return Gi(e,t,r,fu,To(e,0,n),To(e,n+1,-1),n)}function yn(e,t){for(var r="",n=pu(e),o=0;o6)switch(nt(e,t+1)){case 109:if(nt(e,t+4)!==45)break;case 102:return Pe(e,/(.+:)(.+)-([^]+)/,"$1"+Ee+"$2-$3$1"+ni+(nt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Tl(e,"stretch")?Em(Pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(nt(e,t+1)!==115)break;case 6444:switch(nt(e,Yt(e)-3-(~Tl(e,"!important")&&10))){case 107:return Pe(e,":",":"+Ee)+e;case 101:return Pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ee+(nt(e,14)===45?"inline-":"")+"box$3$1"+Ee+"$2$3$1"+ct+"$2box$3")+e}break;case 5936:switch(nt(e,t+11)){case 114:return Ee+e+ct+Pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ee+e+ct+Pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ee+e+ct+Pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ee+e+ct+e+e}return e}var C0=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case fu:t.return=Em(t.value,t.length);break;case xm:return yn([io(t,{value:Pe(t.value,"@","@"+Ee)})],o);case du:if(t.length)return i0(t.props,function(a){switch(a0(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yn([io(t,{props:[Pe(a,/:(read-\w+)/,":"+ni+"$1")]})],o);case"::placeholder":return yn([io(t,{props:[Pe(a,/:(plac\w+)/,":"+Ee+"input-$1")]}),io(t,{props:[Pe(a,/:(plac\w+)/,":"+ni+"$1")]}),io(t,{props:[Pe(a,/:(plac\w+)/,ct+"input-$1")]})],o)}return""})}},w0=[C0],Pm=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var b=v.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||w0,a={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var b=v.getAttribute("data-emotion").split(" "),x=1;x=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var N0={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},F0=!1,B0=/[A-Z]|^ms/g,L0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jm=function(t){return t.charCodeAt(1)===45},nf=function(t){return t!=null&&typeof t!="boolean"},al=ym(function(e){return jm(e)?e:e.replace(B0,"-$&").toLowerCase()}),of=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(L0,function(n,o,a){return Qt={name:o,styles:a,next:Qt},o})}return N0[t]!==1&&!jm(t)&&typeof r=="number"&&r!==0?r+"px":r},D0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function jo(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Qt={name:o.name,styles:o.styles,next:Qt},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Qt={name:i.name,styles:i.styles,next:Qt},i=i.next;var l=a.styles+";";return l}return z0(e,t,r)}case"function":{if(e!==void 0){var u=Qt,c=r(e);return Qt=u,jo(e,t,c)}break}}var d=r;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function z0(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?q0:K0},uf=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},G0=!1,X0=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Tm(r,n,o),V0(function(){return Im(r,n,o)}),null},Y0=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var l=uf(t,r,n),u=l||cf(o),c=!u("as");return function(){var d=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,m=1;mt(Z0(o)?r:o):t;return S.jsx(U0,{styles:n})}function yu(e,t){return jl(e,t)}const Lm=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},e1=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Bm,StyledEngineProvider:J0,ThemeContext:qo,css:as,default:yu,internal_processStyles:Lm,keyframes:Un},Symbol.toStringTag,{value:"Module"}));function ir(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Dm(e){if(!ir(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Dm(e[r])}),t}function at(e,t,r={clone:!0}){const n=r.clone?y({},e):e;return ir(e)&&ir(t)&&Object.keys(t).forEach(o=>{ir(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ir(e[o])?n[o]=at(e[o],t[o],r):r.clone?n[o]=ir(t[o])?Dm(t[o]):t[o]:n[o]=t[o]}),n}const t1=Object.freeze(Object.defineProperty({__proto__:null,default:at,isPlainObject:ir},Symbol.toStringTag,{value:"Module"})),r1=["values","unit","step"],n1=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>y({},r,{[n.key]:n.val}),{})};function zm(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=W(e,r1),a=n1(t),i=Object.keys(a);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function c(p,m){const g=i.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:m)-n/100}${r})`}function d(p){return i.indexOf(p)+1`@media (min-width:${bu[e]}px)`};function Ut(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||df;return t.reduce((i,l,u)=>(i[a.up(a.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const a=n.breakpoints||df;return Object.keys(t).reduce((i,l)=>{if(Object.keys(a.values||bu).indexOf(l)!==-1){const u=a.up(l);i[u]=r(t[l],l)}else{const u=l;i[u]=t[u]}return i},{})}return r(t)}function Wm(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function Vm(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function a1(e,...t){const r=Wm(e),n=[r,...t].reduce((o,a)=>at(o,a),{});return Vm(Object.keys(r),n)}function i1(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a{e[o]!=null&&(r[o]=!0)}),r}function sl({values:e,breakpoints:t,base:r}){const n=r||i1(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,l,u)=>(Array.isArray(e)?(i[l]=e[u]!=null?e[u]:e[a],a=u):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[a],a=l):i[l]=e,i),{})}function z(e){if(typeof e!="string")throw new Error(cr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const s1=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"}));function is(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function oi(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=is(e,r)||n,t&&(o=t(o,n,e)),o}function Ue(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const l=i[t],u=i.theme,c=is(u,n)||{};return Ut(i,l,f=>{let p=oi(c,o,f);return f===p&&typeof f=="string"&&(p=oi(c,o,`${t}${f==="default"?"":z(f)}`,f)),r===!1?p:{[r]:p}})};return a.propTypes={},a.filterProps=[t],a}function l1(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const c1={m:"margin",p:"padding"},u1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ff={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},d1=l1(e=>{if(e.length>2)if(ff[e])e=ff[e];else return[e];const[t,r]=e.split(""),n=c1[t],o=u1[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),xu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ou=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...xu,...Ou];function Ko(e,t,r,n){var o;const a=(o=is(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function _u(e){return Ko(e,"spacing",8)}function qr(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function f1(e,t){return r=>e.reduce((n,o)=>(n[o]=qr(t,r),n),{})}function p1(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=d1(r),a=f1(o,n),i=e[r];return Ut(e,i,a)}function Hm(e,t){const r=_u(e.theme);return Object.keys(e).map(n=>p1(e,t,n,r)).reduce(yo,{})}function Fe(e){return Hm(e,xu)}Fe.propTypes={};Fe.filterProps=xu;function Be(e){return Hm(e,Ou)}Be.propTypes={};Be.filterProps=Ou;function m1(e=8){if(e.mui)return e;const t=_u({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function ss(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?yo(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function jt(e){return typeof e!="number"?e:`${e}px solid`}function Lt(e,t){return Ue({prop:e,themeKey:"borders",transform:t})}const v1=Lt("border",jt),g1=Lt("borderTop",jt),h1=Lt("borderRight",jt),y1=Lt("borderBottom",jt),b1=Lt("borderLeft",jt),x1=Lt("borderColor"),O1=Lt("borderTopColor"),_1=Lt("borderRightColor"),C1=Lt("borderBottomColor"),w1=Lt("borderLeftColor"),E1=Lt("outline",jt),P1=Lt("outlineColor"),ls=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ko(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:qr(t,n)});return Ut(e,e.borderRadius,r)}return null};ls.propTypes={};ls.filterProps=["borderRadius"];ss(v1,g1,h1,y1,b1,x1,O1,_1,C1,w1,ls,E1,P1);const cs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ko(e.theme,"spacing",8),r=n=>({gap:qr(t,n)});return Ut(e,e.gap,r)}return null};cs.propTypes={};cs.filterProps=["gap"];const us=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ko(e.theme,"spacing",8),r=n=>({columnGap:qr(t,n)});return Ut(e,e.columnGap,r)}return null};us.propTypes={};us.filterProps=["columnGap"];const ds=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ko(e.theme,"spacing",8),r=n=>({rowGap:qr(t,n)});return Ut(e,e.rowGap,r)}return null};ds.propTypes={};ds.filterProps=["rowGap"];const S1=Ue({prop:"gridColumn"}),$1=Ue({prop:"gridRow"}),R1=Ue({prop:"gridAutoFlow"}),k1=Ue({prop:"gridAutoColumns"}),T1=Ue({prop:"gridAutoRows"}),I1=Ue({prop:"gridTemplateColumns"}),j1=Ue({prop:"gridTemplateRows"}),A1=Ue({prop:"gridTemplateAreas"}),M1=Ue({prop:"gridArea"});ss(cs,us,ds,S1,$1,R1,k1,T1,I1,j1,A1,M1);function bn(e,t){return t==="grey"?t:e}const N1=Ue({prop:"color",themeKey:"palette",transform:bn}),F1=Ue({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:bn}),B1=Ue({prop:"backgroundColor",themeKey:"palette",transform:bn});ss(N1,F1,B1);function Pt(e){return e<=1&&e!==0?`${e*100}%`:e}const L1=Ue({prop:"width",transform:Pt}),Cu=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||bu[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Pt(r)}};return Ut(e,e.maxWidth,t)}return null};Cu.filterProps=["maxWidth"];const D1=Ue({prop:"minWidth",transform:Pt}),z1=Ue({prop:"height",transform:Pt}),W1=Ue({prop:"maxHeight",transform:Pt}),V1=Ue({prop:"minHeight",transform:Pt});Ue({prop:"size",cssProperty:"width",transform:Pt});Ue({prop:"size",cssProperty:"height",transform:Pt});const H1=Ue({prop:"boxSizing"});ss(L1,Cu,D1,z1,W1,V1,H1);const Go={border:{themeKey:"borders",transform:jt},borderTop:{themeKey:"borders",transform:jt},borderRight:{themeKey:"borders",transform:jt},borderBottom:{themeKey:"borders",transform:jt},borderLeft:{themeKey:"borders",transform:jt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:jt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ls},color:{themeKey:"palette",transform:bn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:bn},backgroundColor:{themeKey:"palette",transform:bn},p:{style:Be},pt:{style:Be},pr:{style:Be},pb:{style:Be},pl:{style:Be},px:{style:Be},py:{style:Be},padding:{style:Be},paddingTop:{style:Be},paddingRight:{style:Be},paddingBottom:{style:Be},paddingLeft:{style:Be},paddingX:{style:Be},paddingY:{style:Be},paddingInline:{style:Be},paddingInlineStart:{style:Be},paddingInlineEnd:{style:Be},paddingBlock:{style:Be},paddingBlockStart:{style:Be},paddingBlockEnd:{style:Be},m:{style:Fe},mt:{style:Fe},mr:{style:Fe},mb:{style:Fe},ml:{style:Fe},mx:{style:Fe},my:{style:Fe},margin:{style:Fe},marginTop:{style:Fe},marginRight:{style:Fe},marginBottom:{style:Fe},marginLeft:{style:Fe},marginX:{style:Fe},marginY:{style:Fe},marginInline:{style:Fe},marginInlineStart:{style:Fe},marginInlineEnd:{style:Fe},marginBlock:{style:Fe},marginBlockStart:{style:Fe},marginBlockEnd:{style:Fe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:cs},rowGap:{style:ds},columnGap:{style:us},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Pt},maxWidth:{style:Cu},minWidth:{transform:Pt},height:{transform:Pt},maxHeight:{transform:Pt},minHeight:{transform:Pt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function U1(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function q1(e,t){return typeof e=="function"?e(t):e}function Um(){function e(r,n,o,a){const i={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:u=r,themeKey:c,transform:d,style:f}=l;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const p=is(o,c)||{};return f?f(i):Ut(i,n,g=>{let v=oi(p,d,g);return g===v&&typeof g=="string"&&(v=oi(p,d,`${r}${g==="default"?"":z(g)}`,g)),u===!1?v:{[u]:v}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:Go;function l(u){let c=u;if(typeof u=="function")c=u(a);else if(typeof u!="object")return u;if(!c)return null;const d=Wm(a.breakpoints),f=Object.keys(d);let p=d;return Object.keys(c).forEach(m=>{const g=q1(c[m],a);if(g!=null)if(typeof g=="object")if(i[m])p=yo(p,e(m,g,a,i));else{const v=Ut({theme:a},g,b=>({[m]:b}));U1(v,g)?p[m]=t({sx:g,theme:a}):p=yo(p,v)}else p=yo(p,e(m,g,a,i))}),Vm(f,p)}return Array.isArray(o)?o.map(l):l(o)}return t}const qn=Um();qn.filterProps=["sx"];function qm(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const K1=["breakpoints","palette","spacing","shape"];function Xo(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=W(e,K1),l=zm(r),u=m1(o);let c=at({breakpoints:l,direction:"ltr",components:{},palette:y({mode:"light"},n),spacing:u,shape:y({},o1,a)},i);return c.applyStyles=qm,c=t.reduce((d,f)=>at(d,f),c),c.unstable_sxConfig=y({},Go,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return qn({sx:f,theme:this})},c}const G1=Object.freeze(Object.defineProperty({__proto__:null,default:Xo,private_createBreakpoints:zm,unstable_applyStyles:qm},Symbol.toStringTag,{value:"Module"}));function X1(e){return Object.keys(e).length===0}function wu(e=null){const t=s.useContext(qo);return!t||X1(t)?e:t}const Y1=Xo();function fs(e=Y1){return wu(e)}function Q1({styles:e,themeId:t,defaultTheme:r={}}){const n=fs(r),o=typeof e=="function"?e(t&&n[t]||n):e;return S.jsx(Bm,{styles:o})}const J1=["sx"],Z1=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Go;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function ps(e){const{sx:t}=e,r=W(e,J1),{systemProps:n,otherProps:o}=Z1(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return ir(l)?y({},n,l):n}:a=y({},n,t),y({},o,{sx:a})}const ex=Object.freeze(Object.defineProperty({__proto__:null,default:qn,extendSxProp:ps,unstable_createStyleFunctionSx:Um,unstable_defaultSxConfig:Go},Symbol.toStringTag,{value:"Module"})),pf=e=>e,tx=()=>{let e=pf;return{configure(t){e=t},generate(t){return e(t)},reset(){e=pf}}},Km=tx();function Gm(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;tl!=="theme"&&l!=="sx"&&l!=="as"})(qn);return s.forwardRef(function(u,c){const d=fs(r),f=ps(u),{className:p,component:m="div"}=f,g=W(f,rx);return S.jsx(a,y({as:m,ref:c,className:B(p,o?o(n):n),theme:t&&d[t]||d},g))})}const nx={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ie(e,t,r="Mui"){const n=nx[t];return n?`${r}-${n}`:`${Km.generate(e)}-${t}`}function se(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=ie(e,o,r)}),n}var Xm={exports:{}},Re={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Eu=Symbol.for("react.element"),Pu=Symbol.for("react.portal"),ms=Symbol.for("react.fragment"),vs=Symbol.for("react.strict_mode"),gs=Symbol.for("react.profiler"),hs=Symbol.for("react.provider"),ys=Symbol.for("react.context"),ox=Symbol.for("react.server_context"),bs=Symbol.for("react.forward_ref"),xs=Symbol.for("react.suspense"),Os=Symbol.for("react.suspense_list"),_s=Symbol.for("react.memo"),Cs=Symbol.for("react.lazy"),ax=Symbol.for("react.offscreen"),Ym;Ym=Symbol.for("react.module.reference");function Dt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Eu:switch(e=e.type,e){case ms:case gs:case vs:case xs:case Os:return e;default:switch(e=e&&e.$$typeof,e){case ox:case ys:case bs:case Cs:case _s:case hs:return e;default:return t}}case Pu:return t}}}Re.ContextConsumer=ys;Re.ContextProvider=hs;Re.Element=Eu;Re.ForwardRef=bs;Re.Fragment=ms;Re.Lazy=Cs;Re.Memo=_s;Re.Portal=Pu;Re.Profiler=gs;Re.StrictMode=vs;Re.Suspense=xs;Re.SuspenseList=Os;Re.isAsyncMode=function(){return!1};Re.isConcurrentMode=function(){return!1};Re.isContextConsumer=function(e){return Dt(e)===ys};Re.isContextProvider=function(e){return Dt(e)===hs};Re.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Eu};Re.isForwardRef=function(e){return Dt(e)===bs};Re.isFragment=function(e){return Dt(e)===ms};Re.isLazy=function(e){return Dt(e)===Cs};Re.isMemo=function(e){return Dt(e)===_s};Re.isPortal=function(e){return Dt(e)===Pu};Re.isProfiler=function(e){return Dt(e)===gs};Re.isStrictMode=function(e){return Dt(e)===vs};Re.isSuspense=function(e){return Dt(e)===xs};Re.isSuspenseList=function(e){return Dt(e)===Os};Re.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ms||e===gs||e===vs||e===xs||e===Os||e===ax||typeof e=="object"&&e!==null&&(e.$$typeof===Cs||e.$$typeof===_s||e.$$typeof===hs||e.$$typeof===ys||e.$$typeof===bs||e.$$typeof===Ym||e.getModuleId!==void 0)};Re.typeOf=Dt;Xm.exports=Re;var mf=Xm.exports;const ix=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Qm(e){const t=`${e}`.match(ix);return t&&t[1]||""}function Jm(e,t=""){return e.displayName||e.name||Qm(e)||t}function vf(e,t,r){const n=Jm(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function sx(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Jm(e,"Component");if(typeof e=="object")switch(e.$$typeof){case mf.ForwardRef:return vf(e,e.render,"ForwardRef");case mf.Memo:return vf(e,e.type,"memo");default:return}}}const lx=Object.freeze(Object.defineProperty({__proto__:null,default:sx,getFunctionName:Qm},Symbol.toStringTag,{value:"Module"})),cx=["ownerState"],ux=["variants"],dx=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function fx(e){return Object.keys(e).length===0}function px(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ll(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const mx=Xo(),vx=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function va({defaultTheme:e,theme:t,themeId:r}){return fx(t)?e:t[r]||t}function gx(e){return e?(t,r)=>r[e]:null}function ja(e,t){let{ownerState:r}=t,n=W(t,cx);const o=typeof e=="function"?e(y({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>ja(a,y({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=W(o,ux);return a.forEach(u=>{let c=!0;typeof u.props=="function"?c=u.props(y({ownerState:r},n,r)):Object.keys(u.props).forEach(d=>{(r==null?void 0:r[d])!==u.props[d]&&n[d]!==u.props[d]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof u.style=="function"?u.style(y({ownerState:r},n,r)):u.style))}),l}return o}function hx(e={}){const{themeId:t,defaultTheme:r=mx,rootShouldForwardProp:n=ll,slotShouldForwardProp:o=ll}=e,a=i=>qn(y({},i,{theme:va(y({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{Lm(i,_=>_.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:p=gx(vx(c))}=l,m=W(l,dx),g=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let b,x=ll;c==="Root"||c==="root"?x=n:c?x=o:px(i)&&(x=void 0);const C=yu(i,y({shouldForwardProp:x,label:b},m)),O=_=>typeof _=="function"&&_.__emotion_real!==_||ir(_)?E=>ja(_,y({},E,{theme:va({theme:E.theme,defaultTheme:r,themeId:t})})):_,h=(_,...E)=>{let w=O(_);const P=E?E.map(O):[];u&&p&&P.push(T=>{const A=va(y({},T,{defaultTheme:r,themeId:t}));if(!A.components||!A.components[u]||!A.components[u].styleOverrides)return null;const M=A.components[u].styleOverrides,j={};return Object.entries(M).forEach(([F,N])=>{j[F]=ja(N,y({},T,{theme:A}))}),p(T,j)}),u&&!g&&P.push(T=>{var A;const M=va(y({},T,{defaultTheme:r,themeId:t})),j=M==null||(A=M.components)==null||(A=A[u])==null?void 0:A.variants;return ja({variants:j},y({},T,{theme:M}))}),v||P.push(a);const k=P.length-E.length;if(Array.isArray(_)&&k>0){const T=new Array(k).fill("");w=[..._,...T],w.raw=[..._.raw,...T]}const $=C(w,...P);return i.muiName&&($.muiName=i.muiName),$};return C.withConfig&&(h.withConfig=C.withConfig),h}}const yx=hx();function Ao(e,t){const r=y({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=y({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=y({},a),Object.keys(o).forEach(i=>{r[n][i]=Ao(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Zm(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Ao(t.components[r].defaultProps,n)}function ev({props:e,name:t,defaultTheme:r,themeId:n}){let o=fs(r);return n&&(o=o[n]||o),Zm({theme:o,name:t,props:e})}const Mt=typeof window<"u"?s.useLayoutEffect:s.useEffect;function bx(e,t,r,n,o){const[a,i]=s.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return Mt(()=>{let l=!0;if(!r)return;const u=r(e),c=()=>{l&&i(u.matches)};return c(),u.addListener(c),()=>{l=!1,u.removeListener(c)}},[e,r]),a}const tv=s.useSyncExternalStore;function xx(e,t,r,n,o){const a=s.useCallback(()=>t,[t]),i=s.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:d}=n(e);return()=>d}return a},[a,e,n,o,r]),[l,u]=s.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const d=r(e);return[()=>d.matches,f=>(d.addListener(f),()=>{d.removeListener(f)})]},[a,r,e]);return tv(u,l,i)}function Ct(e,t={}){const r=wu(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:l=!1}=Zm({name:"MuiUseMediaQuery",props:t,theme:r});let u=typeof e=="function"?e(r):e;return u=u.replace(/^@media( ?)/m,""),(tv!==void 0?xx:bx)(u,o,a,i,l)}function rv(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Ox=Object.freeze(Object.defineProperty({__proto__:null,default:rv},Symbol.toStringTag,{value:"Module"}));function nv(e,t=0,r=1){return rv(e,t,r)}function _x(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Su(e){if(e.type)return e;if(e.charAt(0)==="#")return Su(_x(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(cr(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(cr(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}function ov(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Mo(e,t){return e=Su(e),t=nv(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ov(e)}function Cx(e,t){if(e=Su(e),t=nv(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return ov(e)}function Ml(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function ws(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function wx(e,t){return()=>null}function Aa(e,t){var r,n;return s.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function ut(e){return e&&e.ownerDocument||document}function tr(e){return ut(e).defaultView||window}function Ex(e,t){return()=>null}function ai(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let gf=0;function Px(e){const[t,r]=s.useState(e),n=e||t;return s.useEffect(()=>{t==null&&(gf+=1,r(`mui-${gf}`))},[t]),n}const hf=Rl.useId;function Yo(e){if(hf!==void 0){const t=hf();return e??t}return Px(e)}function Sx(e,t,r,n,o){return null}function No({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=s.useRef(e!==void 0),[a,i]=s.useState(t),l=o?e:a,u=s.useCallback(c=>{o||i(c)},[]);return[l,u]}function sr(e){const t=s.useRef(e);return Mt(()=>{t.current=e}),s.useRef((...r)=>(0,t.current)(...r)).current}function De(...e){return s.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{ai(r,t)})},e)}const yf={};function $x(e,t){const r=s.useRef(yf);return r.current===yf&&(r.current=e(t)),r}const Rx=[];function kx(e){s.useEffect(e,Rx)}class Qo{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Qo}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function mn(){const e=$x(Qo.create).current;return kx(e.disposeEffect),e}let Es=!0,Nl=!1;const Tx=new Qo,Ix={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function jx(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Ix[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Ax(e){e.metaKey||e.altKey||e.ctrlKey||(Es=!0)}function cl(){Es=!1}function Mx(){this.visibilityState==="hidden"&&Nl&&(Es=!0)}function Nx(e){e.addEventListener("keydown",Ax,!0),e.addEventListener("mousedown",cl,!0),e.addEventListener("pointerdown",cl,!0),e.addEventListener("touchstart",cl,!0),e.addEventListener("visibilitychange",Mx,!0)}function Fx(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Es||jx(t)}function $u(){const e=s.useCallback(o=>{o!=null&&Nx(o.ownerDocument)},[]),t=s.useRef(!1);function r(){return t.current?(Nl=!0,Tx.start(100,()=>{Nl=!1}),t.current=!1,!0):!1}function n(o){return Fx(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function av(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const h4=e=>{const t=s.useRef({});return s.useEffect(()=>{t.current=e}),t.current};function le(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const l=t(i);l!==""&&a.push(l),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}function ii(e){return typeof e=="string"}function vn(e,t,r){return e===void 0||ii(e)?t:y({},t,{ownerState:y({},t.ownerState,r)})}function iv(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function bf(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function sv(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const m=B(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),g=y({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),v=y({},r,o,n);return m.length>0&&(v.className=m),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:void 0}}const i=iv(y({},o,n)),l=bf(n),u=bf(o),c=t(i),d=B(c==null?void 0:c.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),f=y({},c==null?void 0:c.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),p=y({},c,r,u,l);return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}function lv(e,t,r){return typeof e=="function"?e(t,r):e}const Bx=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Kr(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=W(e,Bx),l=a?{}:lv(n,o),{props:u,internalRef:c}=sv(y({},i,{externalSlotProps:l})),d=De(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return vn(r,y({},u,{ref:d}),o)}const cv=s.createContext(null);function uv(){return s.useContext(cv)}const Lx=typeof Symbol=="function"&&Symbol.for,Dx=Lx?Symbol.for("mui.nested"):"__THEME_NESTED__";function zx(e,t){return typeof t=="function"?t(e):y({},e,t)}function Wx(e){const{children:t,theme:r}=e,n=uv(),o=s.useMemo(()=>{const a=n===null?r:zx(n,r);return a!=null&&(a[Dx]=n!==null),a},[r,n]);return S.jsx(cv.Provider,{value:o,children:t})}const Vx=["value"],dv=s.createContext();function Hx(e){let{value:t}=e,r=W(e,Vx);return S.jsx(dv.Provider,y({value:t??!0},r))}const fv=()=>{const e=s.useContext(dv);return e??!1},pv=s.createContext(void 0);function Ux({value:e,children:t}){return S.jsx(pv.Provider,{value:e,children:t})}function qx(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Ao(o.defaultProps,n):!o.styleOverrides&&!o.variants?Ao(o,n):n}function Kx({props:e,name:t}){const r=s.useContext(pv);return qx({props:e,name:t,theme:{components:r}})}const xf={};function Of(e,t,r,n=!1){return s.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const a=r(o),i=e?y({},t,{[e]:a}):a;return n?()=>i:i}return e?y({},t,{[e]:r}):y({},t,r)},[e,t,r,n])}function Gx(e){const{children:t,theme:r,themeId:n}=e,o=wu(xf),a=uv()||xf,i=Of(n,o,r),l=Of(n,a,r,!0),u=i.direction==="rtl";return S.jsx(Wx,{theme:l,children:S.jsx(qo.Provider,{value:i,children:S.jsx(Hx,{value:u,children:S.jsx(Ux,{value:i==null?void 0:i.components,children:t})})})})}const Xx=["component","direction","spacing","divider","children","className","useFlexGap"],Yx=Xo(),Qx=yx("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Jx(e){return ev({props:e,name:"MuiStack",defaultTheme:Yx})}function Zx(e,t){const r=s.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],tO=({ownerState:e,theme:t})=>{let r=y({display:"flex",flexDirection:"column"},Ut({theme:t},sl({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=_u(t),o=Object.keys(t.breakpoints.values).reduce((u,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(u[c]=!0),u),{}),a=sl({values:e.direction,base:o}),i=sl({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((u,c,d)=>{if(!a[u]){const p=c>0?a[d[c-1]]:"column";a[u]=p}}),r=at(r,Ut({theme:t},i,(u,c)=>e.useFlexGap?{gap:qr(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${eO(c?a[c]:e.direction)}`]:qr(n,u)}}))}return r=a1(t.breakpoints,r),r};function rO(e={}){const{createStyledComponent:t=Qx,useThemeProps:r=Jx,componentName:n="MuiStack"}=e,o=()=>le({root:["root"]},u=>ie(n,u),{}),a=t(tO);return s.forwardRef(function(u,c){const d=r(u),f=ps(d),{component:p="div",direction:m="column",spacing:g=0,divider:v,children:b,className:x,useFlexGap:C=!1}=f,O=W(f,Xx),h={direction:m,spacing:g,useFlexGap:C},_=o();return S.jsx(a,y({as:p,ownerState:h,ref:c,className:B(_.root,x)},O,{children:v?Zx(b,v):b}))})}function nO(e,t){return y({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var qe={},mv={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(mv);var pe=mv.exports;const oO=dr(Kb),aO=dr(Ox);var vv=pe;Object.defineProperty(qe,"__esModule",{value:!0});var Te=qe.alpha=Ov;qe.blend=gO;qe.colorChannel=void 0;var gv=qe.darken=ku;qe.decomposeColor=Nt;var y4=qe.emphasize=_v,iO=qe.getContrastRatio=dO;qe.getLuminance=si;qe.hexToRgb=yv;qe.hslToRgb=xv;var hv=qe.lighten=Tu;qe.private_safeAlpha=fO;qe.private_safeColorChannel=void 0;qe.private_safeDarken=pO;qe.private_safeEmphasize=vO;qe.private_safeLighten=mO;qe.recomposeColor=Kn;qe.rgbToHex=uO;var _f=vv(oO),sO=vv(aO);function Ru(e,t=0,r=1){return(0,sO.default)(e,t,r)}function yv(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function lO(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Nt(e){if(e.type)return e;if(e.charAt(0)==="#")return Nt(yv(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,_f.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,_f.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const bv=e=>{const t=Nt(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};qe.colorChannel=bv;const cO=(e,t)=>{try{return bv(e)}catch{return e}};qe.private_safeColorChannel=cO;function Kn(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function uO(e){if(e.indexOf("#")===0)return e;const{values:t}=Nt(e);return`#${t.map((r,n)=>lO(n===3?Math.round(255*r):r)).join("")}`}function xv(e){e=Nt(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(c,d=(c+r/30)%12)=>o-a*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),Kn({type:l,values:u})}function si(e){e=Nt(e);let t=e.type==="hsl"||e.type==="hsla"?Nt(xv(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function dO(e,t){const r=si(e),n=si(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Ov(e,t){return e=Nt(e),t=Ru(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Kn(e)}function fO(e,t,r){try{return Ov(e,t)}catch{return e}}function ku(e,t){if(e=Nt(e),t=Ru(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Kn(e)}function pO(e,t,r){try{return ku(e,t)}catch{return e}}function Tu(e,t){if(e=Nt(e),t=Ru(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Kn(e)}function mO(e,t,r){try{return Tu(e,t)}catch{return e}}function _v(e,t=.15){return si(e)>.5?ku(e,t):Tu(e,t)}function vO(e,t,r){try{return _v(e,t)}catch{return e}}function gO(e,t,r,n=1){const o=(u,c)=>Math.round((u**(1/n)*(1-r)+c**(1/n)*r)**n),a=Nt(e),i=Nt(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Kn({type:"rgb",values:l})}const hO=["mode","contrastThreshold","tonalOffset"],Cf={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ko.white,default:ko.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},ul={text:{primary:ko.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ko.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function wf(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=hv(e.main,o):t==="dark"&&(e.dark=gv(e.main,a)))}function yO(e="light"){return e==="dark"?{main:nn[200],light:nn[50],dark:nn[400]}:{main:nn[700],light:nn[400],dark:nn[800]}}function bO(e="light"){return e==="dark"?{main:rn[200],light:rn[50],dark:rn[400]}:{main:rn[500],light:rn[300],dark:rn[700]}}function xO(e="light"){return e==="dark"?{main:tn[500],light:tn[300],dark:tn[700]}:{main:tn[700],light:tn[400],dark:tn[800]}}function OO(e="light"){return e==="dark"?{main:on[400],light:on[300],dark:on[700]}:{main:on[700],light:on[500],dark:on[900]}}function _O(e="light"){return e==="dark"?{main:an[400],light:an[300],dark:an[700]}:{main:an[800],light:an[500],dark:an[900]}}function CO(e="light"){return e==="dark"?{main:ao[400],light:ao[300],dark:ao[700]}:{main:"#ed6c02",light:ao[500],dark:ao[900]}}function wO(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=W(e,hO),a=e.primary||yO(t),i=e.secondary||bO(t),l=e.error||xO(t),u=e.info||OO(t),c=e.success||_O(t),d=e.warning||CO(t);function f(v){return iO(v,ul.text.primary)>=r?ul.text.primary:Cf.text.primary}const p=({color:v,name:b,mainShade:x=500,lightShade:C=300,darkShade:O=700})=>{if(v=y({},v),!v.main&&v[x]&&(v.main=v[x]),!v.hasOwnProperty("main"))throw new Error(cr(11,b?` (${b})`:"",x));if(typeof v.main!="string")throw new Error(cr(12,b?` (${b})`:"",JSON.stringify(v.main)));return wf(v,"light",C,n),wf(v,"dark",O,n),v.contrastText||(v.contrastText=f(v.main)),v},m={dark:ul,light:Cf};return at(y({common:y({},ko),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:c,name:"success"}),grey:qb,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},m[t]),o)}const EO=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function PO(e){return Math.round(e*1e5)/1e5}const Ef={textTransform:"uppercase"},Pf='"Roboto", "Helvetica", "Arial", sans-serif';function SO(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Pf,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:u=700,htmlFontSize:c=16,allVariants:d,pxToRem:f}=r,p=W(r,EO),m=o/14,g=f||(x=>`${x/c*m}rem`),v=(x,C,O,h,_)=>y({fontFamily:n,fontWeight:x,fontSize:g(C),lineHeight:O},n===Pf?{letterSpacing:`${PO(h/C)}em`}:{},_,d),b={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(l,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(l,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(l,14,1.75,.4,Ef),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,Ef),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return at(y({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:u},b),p,{clone:!1})}const $O=.2,RO=.14,kO=.12;function Me(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${$O})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${RO})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${kO})`].join(",")}const TO=["none",Me(0,2,1,-1,0,1,1,0,0,1,3,0),Me(0,3,1,-2,0,2,2,0,0,1,5,0),Me(0,3,3,-2,0,3,4,0,0,1,8,0),Me(0,2,4,-1,0,4,5,0,0,1,10,0),Me(0,3,5,-1,0,5,8,0,0,1,14,0),Me(0,3,5,-1,0,6,10,0,0,1,18,0),Me(0,4,5,-2,0,7,10,1,0,2,16,1),Me(0,5,5,-3,0,8,10,1,0,3,14,2),Me(0,5,6,-3,0,9,12,1,0,3,16,2),Me(0,6,6,-3,0,10,14,1,0,4,18,3),Me(0,6,7,-4,0,11,15,1,0,4,20,3),Me(0,7,8,-4,0,12,17,2,0,5,22,4),Me(0,7,8,-4,0,13,19,2,0,5,24,4),Me(0,7,9,-4,0,14,21,2,0,5,26,4),Me(0,8,9,-5,0,15,22,2,0,6,28,5),Me(0,8,10,-5,0,16,24,2,0,6,30,5),Me(0,8,11,-5,0,17,26,2,0,6,32,5),Me(0,9,11,-5,0,18,28,2,0,7,34,6),Me(0,9,12,-6,0,19,29,2,0,7,36,6),Me(0,10,13,-6,0,20,31,3,0,8,38,7),Me(0,10,13,-6,0,21,33,3,0,8,40,7),Me(0,10,14,-6,0,22,35,3,0,8,42,7),Me(0,11,14,-7,0,23,36,3,0,9,44,8),Me(0,11,15,-7,0,24,38,3,0,9,46,8)],IO=["duration","easing","delay"],jO={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},AO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Sf(e){return`${Math.round(e)}ms`}function MO(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function NO(e){const t=y({},jO,e.easing),r=y({},AO,e.duration);return y({getAutoHeightDuration:MO,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:u=0}=a;return W(a,IO),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:Sf(i)} ${l} ${typeof u=="string"?u:Sf(u)}`).join(",")}},e,{easing:t,duration:r})}const FO={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},BO=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Fl(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=W(e,BO);if(e.vars)throw new Error(cr(18));const l=wO(n),u=Xo(e);let c=at(u,{mixins:nO(u.breakpoints,r),palette:l,shadows:TO.slice(),typography:SO(l,a),transitions:NO(o),zIndex:y({},FO)});return c=at(c,i),c=t.reduce((d,f)=>at(d,f),c),c.unstable_sxConfig=y({},Go,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return qn({sx:f,theme:this})},c}const Ps=Fl();function Yr(){const e=fs(Ps);return e[jn]||e}function LO({props:e,name:t}){return ev({props:e,name:t,defaultTheme:Ps,themeId:jn})}var Jo={},dl={exports:{}},$f;function DO(){return $f||($f=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.includes(a))continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(dl)),dl.exports}const Cv=dr(e1),zO=dr(t1),WO=dr(s1),VO=dr(lx),HO=dr(G1),UO=dr(ex);var Gn=pe;Object.defineProperty(Jo,"__esModule",{value:!0});var qO=Jo.default=a_;Jo.shouldForwardProp=Ma;Jo.systemDefaultTheme=void 0;var Tt=Gn(Fm()),Bl=Gn(DO()),Rf=ZO(Cv),KO=zO;Gn(WO);Gn(VO);var GO=Gn(HO),XO=Gn(UO);const YO=["ownerState"],QO=["variants"],JO=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function wv(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(wv=function(n){return n?r:t})(e)}function ZO(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=wv(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function e_(e){return Object.keys(e).length===0}function t_(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ma(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const r_=Jo.systemDefaultTheme=(0,GO.default)(),n_=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ga({defaultTheme:e,theme:t,themeId:r}){return e_(t)?e:t[r]||t}function o_(e){return e?(t,r)=>r[e]:null}function Na(e,t){let{ownerState:r}=t,n=(0,Bl.default)(t,YO);const o=typeof e=="function"?e((0,Tt.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Na(a,(0,Tt.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=(0,Bl.default)(o,QO);return a.forEach(u=>{let c=!0;typeof u.props=="function"?c=u.props((0,Tt.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(d=>{(r==null?void 0:r[d])!==u.props[d]&&n[d]!==u.props[d]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof u.style=="function"?u.style((0,Tt.default)({ownerState:r},n,r)):u.style))}),l}return o}function a_(e={}){const{themeId:t,defaultTheme:r=r_,rootShouldForwardProp:n=Ma,slotShouldForwardProp:o=Ma}=e,a=i=>(0,XO.default)((0,Tt.default)({},i,{theme:ga((0,Tt.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{(0,Rf.internal_processStyles)(i,_=>_.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:p=o_(n_(c))}=l,m=(0,Bl.default)(l,JO),g=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let b,x=Ma;c==="Root"||c==="root"?x=n:c?x=o:t_(i)&&(x=void 0);const C=(0,Rf.default)(i,(0,Tt.default)({shouldForwardProp:x,label:b},m)),O=_=>typeof _=="function"&&_.__emotion_real!==_||(0,KO.isPlainObject)(_)?E=>Na(_,(0,Tt.default)({},E,{theme:ga({theme:E.theme,defaultTheme:r,themeId:t})})):_,h=(_,...E)=>{let w=O(_);const P=E?E.map(O):[];u&&p&&P.push(T=>{const A=ga((0,Tt.default)({},T,{defaultTheme:r,themeId:t}));if(!A.components||!A.components[u]||!A.components[u].styleOverrides)return null;const M=A.components[u].styleOverrides,j={};return Object.entries(M).forEach(([F,N])=>{j[F]=Na(N,(0,Tt.default)({},T,{theme:A}))}),p(T,j)}),u&&!g&&P.push(T=>{var A;const M=ga((0,Tt.default)({},T,{defaultTheme:r,themeId:t})),j=M==null||(A=M.components)==null||(A=A[u])==null?void 0:A.variants;return Na({variants:j},(0,Tt.default)({},T,{theme:M}))}),v||P.push(a);const k=P.length-E.length;if(Array.isArray(_)&&k>0){const T=new Array(k).fill("");w=[..._,...T],w.raw=[..._.raw,...T]}const $=C(w,...P);return i.muiName&&($.muiName=i.muiName),$};return C.withConfig&&(h.withConfig=C.withConfig),h}}function Ev(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const mt=e=>Ev(e)&&e!=="classes",I=qO({themeId:jn,defaultTheme:Ps,rootShouldForwardProp:mt}),i_=["theme"];function s_(e){let{theme:t}=e,r=W(e,i_);const n=t[jn];return S.jsx(Gx,y({},r,{themeId:n?jn:void 0,theme:n||t}))}const kf=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function ce(e){return Kx(e)}function l_(e){return ie("MuiSvgIcon",e)}se("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const c_=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],u_=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${z(t)}`,`fontSize${z(r)}`]};return le(o,l_,n)},d_=I("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${z(r.color)}`],t[`fontSize${z(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,l,u,c,d,f,p,m,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((l=e.typography)==null||(u=l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),Ll=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,m=W(n,c_),g=s.isValidElement(o)&&o.type==="svg",v=y({},n,{color:i,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:g}),b={};d||(b.viewBox=p);const x=u_(v);return S.jsxs(d_,y({as:l,className:B(x.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},b,m,g&&o.props,{ownerState:v,children:[g?o.props.children:o,f?S.jsx("title",{children:f}):null]}))});Ll.muiName="SvgIcon";function fr(e,t){function r(n,o){return S.jsx(Ll,y({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=Ll.muiName,s.memo(s.forwardRef(r))}const f_={configure:e=>{Km.configure(e)}},p_=Object.freeze(Object.defineProperty({__proto__:null,capitalize:z,createChainedFunction:Ml,createSvgIcon:fr,debounce:ws,deprecatedPropType:wx,isMuiElement:Aa,ownerDocument:ut,ownerWindow:tr,requirePropFactory:Ex,setRef:ai,unstable_ClassNameGenerator:f_,unstable_useEnhancedEffect:Mt,unstable_useId:Yo,unsupportedProp:Sx,useControlled:No,useEventCallback:sr,useForkRef:De,useIsFocusVisible:$u},Symbol.toStringTag,{value:"Module"}));var Ie={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Iu=Symbol.for("react.element"),ju=Symbol.for("react.portal"),Ss=Symbol.for("react.fragment"),$s=Symbol.for("react.strict_mode"),Rs=Symbol.for("react.profiler"),ks=Symbol.for("react.provider"),Ts=Symbol.for("react.context"),m_=Symbol.for("react.server_context"),Is=Symbol.for("react.forward_ref"),js=Symbol.for("react.suspense"),As=Symbol.for("react.suspense_list"),Ms=Symbol.for("react.memo"),Ns=Symbol.for("react.lazy"),v_=Symbol.for("react.offscreen"),Pv;Pv=Symbol.for("react.module.reference");function zt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Iu:switch(e=e.type,e){case Ss:case Rs:case $s:case js:case As:return e;default:switch(e=e&&e.$$typeof,e){case m_:case Ts:case Is:case Ns:case Ms:case ks:return e;default:return t}}case ju:return t}}}Ie.ContextConsumer=Ts;Ie.ContextProvider=ks;Ie.Element=Iu;Ie.ForwardRef=Is;Ie.Fragment=Ss;Ie.Lazy=Ns;Ie.Memo=Ms;Ie.Portal=ju;Ie.Profiler=Rs;Ie.StrictMode=$s;Ie.Suspense=js;Ie.SuspenseList=As;Ie.isAsyncMode=function(){return!1};Ie.isConcurrentMode=function(){return!1};Ie.isContextConsumer=function(e){return zt(e)===Ts};Ie.isContextProvider=function(e){return zt(e)===ks};Ie.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Iu};Ie.isForwardRef=function(e){return zt(e)===Is};Ie.isFragment=function(e){return zt(e)===Ss};Ie.isLazy=function(e){return zt(e)===Ns};Ie.isMemo=function(e){return zt(e)===Ms};Ie.isPortal=function(e){return zt(e)===ju};Ie.isProfiler=function(e){return zt(e)===Rs};Ie.isStrictMode=function(e){return zt(e)===$s};Ie.isSuspense=function(e){return zt(e)===js};Ie.isSuspenseList=function(e){return zt(e)===As};Ie.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ss||e===Rs||e===$s||e===js||e===As||e===v_||typeof e=="object"&&e!==null&&(e.$$typeof===Ns||e.$$typeof===Ms||e.$$typeof===ks||e.$$typeof===Ts||e.$$typeof===Is||e.$$typeof===Pv||e.getModuleId!==void 0)};Ie.typeOf=zt;function Dl(e,t){return Dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Dl(e,t)}function Sv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dl(e,t)}const Tf={disabled:!1},li=Z.createContext(null);var g_=function(t){return t.scrollTop},go="unmounted",Ar="exited",Mr="entering",un="entered",zl="exiting",Kt=function(e){Sv(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=o,l=i&&!i.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?l?(u=Ar,a.appearStatus=Mr):u=un:n.unmountOnExit||n.mountOnEnter?u=go:u=Ar,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===go?{status:Ar}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Mr&&i!==un&&(a=Mr):(i===Mr||i===un)&&(a=zl)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,l;return a=i=l=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:l}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Mr){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:pa.findDOMNode(this);i&&g_(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ar&&this.setState({status:go})},r.performEnter=function(o){var a=this,i=this.props.enter,l=this.context?this.context.isMounting:o,u=this.props.nodeRef?[l]:[pa.findDOMNode(this),l],c=u[0],d=u[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!o&&!i||Tf.disabled){this.safeSetState({status:un},function(){a.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:Mr},function(){a.props.onEntering(c,d),a.onTransitionEnd(p,function(){a.safeSetState({status:un},function(){a.props.onEntered(c,d)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:pa.findDOMNode(this);if(!a||Tf.disabled){this.safeSetState({status:Ar},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:zl},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Ar},function(){o.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,a.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:pa.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=u[0],d=u[1];this.props.addEndListener(c,d)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===go)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=W(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Z.createElement(li.Provider,{value:null},typeof i=="function"?i(o,l):Z.cloneElement(Z.Children.only(i),l))},t}(Z.Component);Kt.contextType=li;Kt.propTypes={};function sn(){}Kt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:sn,onEntering:sn,onEntered:sn,onExit:sn,onExiting:sn,onExited:sn};Kt.UNMOUNTED=go;Kt.EXITED=Ar;Kt.ENTERING=Mr;Kt.ENTERED=un;Kt.EXITING=zl;function h_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Au(e,t){var r=function(a){return t&&s.isValidElement(a)?t(a):a},n=Object.create(null);return e&&s.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function y_(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var i,l={};for(var u in t){if(n[u])for(i=0;ie.scrollTop;function Mn(e,t){var r,n;const{timeout:o,easing:a,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof o=="number"?o:o[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function C_(e){return ie("MuiPaper",e)}se("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const w_=["className","component","elevation","square","variant"],E_=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return le(a,C_,o)},P_=I("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return y({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&y({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Te("#fff",kf(t.elevation))}, ${Te("#fff",kf(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),Xn=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:l=!1,variant:u="elevation"}=n,c=W(n,w_),d=y({},n,{component:a,elevation:i,square:l,variant:u}),f=E_(d);return S.jsx(P_,y({as:a,ownerState:d,className:B(f.root,o),ref:r},c))}),S_=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],$_=["component","slots","slotProps"],R_=["component"];function k_(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:l}=t,u=W(t,S_),{component:c,slots:d={[e]:void 0},slotProps:f={[e]:void 0}}=a;W(a,$_);const p=d[e]||n,m=lv(f[e],o),g=sv(y({className:r},u,{externalForwardedProps:void 0,externalSlotProps:m})),{props:{component:v},internalRef:b}=g,x=W(g.props,R_),C=De(b,m==null?void 0:m.ref,t.ref),O=i?i(x):{},h=y({},o,O),_=v,E=vn(p,y({},e==="root",!d[e]&&l,x,_&&{as:_},{ref:C}),h);return Object.keys(O).forEach(w=>{delete E[w]}),[p,E]}function T_(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:u,timeout:c}=e,[d,f]=s.useState(!1),p=B(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},g=B(r.child,d&&r.childLeaving,n&&r.childPulsate);return!l&&!d&&f(!0),s.useEffect(()=>{if(!l&&u!=null){const v=setTimeout(u,c);return()=>{clearTimeout(v)}}},[u,l,c]),S.jsx("span",{className:p,style:m,children:S.jsx("span",{className:g})})}const It=se("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),I_=["center","classes","className"];let Fs=e=>e,If,jf,Af,Mf;const Wl=550,j_=80,A_=Un(If||(If=Fs` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),M_=Un(jf||(jf=Fs` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),N_=Un(Af||(Af=Fs` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),F_=I("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),B_=I(T_,{name:"MuiTouchRipple",slot:"Ripple"})(Mf||(Mf=Fs` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),It.rippleVisible,A_,Wl,({theme:e})=>e.transitions.easing.easeInOut,It.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,It.child,It.childLeaving,M_,Wl,({theme:e})=>e.transitions.easing.easeInOut,It.childPulsate,N_,({theme:e})=>e.transitions.easing.easeInOut),L_=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=n,l=W(n,I_),[u,c]=s.useState([]),d=s.useRef(0),f=s.useRef(null);s.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=s.useRef(!1),m=mn(),g=s.useRef(null),v=s.useRef(null),b=s.useCallback(h=>{const{pulsate:_,rippleX:E,rippleY:w,rippleSize:P,cb:k}=h;c($=>[...$,S.jsx(B_,{classes:{ripple:B(a.ripple,It.ripple),rippleVisible:B(a.rippleVisible,It.rippleVisible),ripplePulsate:B(a.ripplePulsate,It.ripplePulsate),child:B(a.child,It.child),childLeaving:B(a.childLeaving,It.childLeaving),childPulsate:B(a.childPulsate,It.childPulsate)},timeout:Wl,pulsate:_,rippleX:E,rippleY:w,rippleSize:P},d.current)]),d.current+=1,f.current=k},[a]),x=s.useCallback((h={},_={},E=()=>{})=>{const{pulsate:w=!1,center:P=o||_.pulsate,fakeElement:k=!1}=_;if((h==null?void 0:h.type)==="mousedown"&&p.current){p.current=!1;return}(h==null?void 0:h.type)==="touchstart"&&(p.current=!0);const $=k?null:v.current,T=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,M,j;if(P||h===void 0||h.clientX===0&&h.clientY===0||!h.clientX&&!h.touches)A=Math.round(T.width/2),M=Math.round(T.height/2);else{const{clientX:F,clientY:N}=h.touches&&h.touches.length>0?h.touches[0]:h;A=Math.round(F-T.left),M=Math.round(N-T.top)}if(P)j=Math.sqrt((2*T.width**2+T.height**2)/3),j%2===0&&(j+=1);else{const F=Math.max(Math.abs(($?$.clientWidth:0)-A),A)*2+2,N=Math.max(Math.abs(($?$.clientHeight:0)-M),M)*2+2;j=Math.sqrt(F**2+N**2)}h!=null&&h.touches?g.current===null&&(g.current=()=>{b({pulsate:w,rippleX:A,rippleY:M,rippleSize:j,cb:E})},m.start(j_,()=>{g.current&&(g.current(),g.current=null)})):b({pulsate:w,rippleX:A,rippleY:M,rippleSize:j,cb:E})},[o,b,m]),C=s.useCallback(()=>{x({},{pulsate:!0})},[x]),O=s.useCallback((h,_)=>{if(m.clear(),(h==null?void 0:h.type)==="touchend"&&g.current){g.current(),g.current=null,m.start(0,()=>{O(h,_)});return}g.current=null,c(E=>E.length>0?E.slice(1):E),f.current=_},[m]);return s.useImperativeHandle(r,()=>({pulsate:C,start:x,stop:O}),[C,x,O]),S.jsx(F_,y({className:B(It.root,a.root,i),ref:v},l,{children:S.jsx(Mu,{component:null,exit:!0,children:u})}))});function D_(e){return ie("MuiButtonBase",e)}const z_=se("MuiButtonBase",["root","disabled","focusVisible"]),W_=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],V_=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=le({root:["root",t&&"disabled",r&&"focusVisible"]},D_,o);return r&&n&&(i.root+=` ${n}`),i},H_=I("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${z_.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Nn=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:l,component:u="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:g,onClick:v,onContextMenu:b,onDragLeave:x,onFocus:C,onFocusVisible:O,onKeyDown:h,onKeyUp:_,onMouseDown:E,onMouseLeave:w,onMouseUp:P,onTouchEnd:k,onTouchMove:$,onTouchStart:T,tabIndex:A=0,TouchRippleProps:M,touchRippleRef:j,type:F}=n,N=W(n,W_),D=s.useRef(null),R=s.useRef(null),L=De(R,j),{isFocusVisibleRef:H,onFocus:ye,onBlur:V,ref:Q}=$u(),[G,re]=s.useState(!1);c&&G&&re(!1),s.useImperativeHandle(o,()=>({focusVisible:()=>{re(!0),D.current.focus()}}),[]);const[ne,X]=s.useState(!1);s.useEffect(()=>{X(!0)},[]);const ee=ne&&!d&&!c;s.useEffect(()=>{G&&p&&!d&&ne&&R.current.pulsate()},[d,p,G,ne]);function U(Y,Ve,dt=f){return sr(vt=>(Ve&&Ve(vt),!dt&&R.current&&R.current[Y](vt),!0))}const de=U("start",E),oe=U("stop",b),xe=U("stop",x),te=U("stop",P),me=U("stop",Y=>{G&&Y.preventDefault(),w&&w(Y)}),ve=U("start",T),it=U("stop",k),Ke=U("stop",$),Ae=U("stop",Y=>{V(Y),H.current===!1&&re(!1),g&&g(Y)},!1),ze=sr(Y=>{D.current||(D.current=Y.currentTarget),ye(Y),H.current===!0&&(re(!0),O&&O(Y)),C&&C(Y)}),ke=()=>{const Y=D.current;return u&&u!=="button"&&!(Y.tagName==="A"&&Y.href)},_e=s.useRef(!1),Ye=sr(Y=>{p&&!_e.current&&G&&R.current&&Y.key===" "&&(_e.current=!0,R.current.stop(Y,()=>{R.current.start(Y)})),Y.target===Y.currentTarget&&ke()&&Y.key===" "&&Y.preventDefault(),h&&h(Y),Y.target===Y.currentTarget&&ke()&&Y.key==="Enter"&&!c&&(Y.preventDefault(),v&&v(Y))}),je=sr(Y=>{p&&Y.key===" "&&R.current&&G&&!Y.defaultPrevented&&(_e.current=!1,R.current.stop(Y,()=>{R.current.pulsate(Y)})),_&&_(Y),v&&Y.target===Y.currentTarget&&ke()&&Y.key===" "&&!Y.defaultPrevented&&v(Y)});let Oe=u;Oe==="button"&&(N.href||N.to)&&(Oe=m);const We={};Oe==="button"?(We.type=F===void 0?"button":F,We.disabled=c):(!N.href&&!N.to&&(We.role="button"),c&&(We["aria-disabled"]=c));const Qe=De(r,Q,D),tt=y({},n,{centerRipple:a,component:u,disabled:c,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:A,focusVisible:G}),ue=V_(tt);return S.jsxs(H_,y({as:Oe,className:B(ue.root,l),ownerState:tt,onBlur:Ae,onClick:v,onContextMenu:oe,onFocus:ze,onKeyDown:Ye,onKeyUp:je,onMouseDown:de,onMouseLeave:me,onMouseUp:te,onDragLeave:xe,onTouchEnd:it,onTouchMove:Ke,onTouchStart:ve,ref:Qe,tabIndex:c?-1:A,type:F},We,N,{children:[i,ee?S.jsx(L_,y({ref:L,center:a},M)):null]}))});function U_(e){return ie("MuiIconButton",e)}const q_=se("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),K_=["edge","children","className","color","disabled","disableFocusRipple","size"],G_=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${z(n)}`,o&&`edge${z(o)}`,`size${z(a)}`]};return le(i,U_,t)},X_=I(Nn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${z(r.color)}`],r.edge&&t[`edge${z(r.edge)}`],t[`size${z(r.size)}`]]}})(({theme:e,ownerState:t})=>y({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Te(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return y({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&y({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":y({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Te(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${q_.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),pt=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:l="default",disabled:u=!1,disableFocusRipple:c=!1,size:d="medium"}=n,f=W(n,K_),p=y({},n,{edge:o,color:l,disabled:u,disableFocusRipple:c,size:d}),m=G_(p);return S.jsx(X_,y({className:B(m.root,i),centerRipple:!0,focusRipple:!c,disabled:u,ref:r},f,{ownerState:p,children:a}))});function Y_(e){return ie("MuiTypography",e)}se("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Q_=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],J_=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e,l={root:["root",a,e.align!=="inherit"&&`align${z(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return le(l,Y_,i)},Z_=I("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${z(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>y({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Nf={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},eC={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},tC=e=>eC[e]||e,Le=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiTypography"}),o=tC(n.color),a=ps(y({},n,{color:o})),{align:i="inherit",className:l,component:u,gutterBottom:c=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:m=Nf}=a,g=W(a,Q_),v=y({},a,{align:i,color:o,className:l,component:u,gutterBottom:c,noWrap:d,paragraph:f,variant:p,variantMapping:m}),b=u||(f?"p":m[p]||Nf[p])||"span",x=J_(v);return S.jsx(Z_,y({as:b,ref:r,ownerState:v,className:B(x.root,l)},g))});function rC(e){return ie("MuiAppBar",e)}se("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const nC=["className","color","enableColorOnDark","position"],oC=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${z(t)}`,`position${z(r)}`]};return le(o,rC,n)},ha=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,aC=I(Xn,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${z(r.position)}`],t[`color${z(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return y({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&y({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&y({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&y({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:ha(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:ha(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:ha(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:ha(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),iC=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:l="fixed"}=n,u=W(n,nC),c=y({},n,{color:a,position:l,enableColorOnDark:i}),d=oC(c);return S.jsx(aC,y({square:!0,component:"header",ownerState:c,elevation:4,className:B(d.root,o,l==="fixed"&&"mui-fixed"),ref:r},u))});var Fu={};Object.defineProperty(Fu,"__esModule",{value:!0});var $v=Fu.default=void 0,sC=cC(s),lC=Cv;function Rv(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Rv=function(n){return n?r:t})(e)}function cC(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Rv(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function uC(e){return Object.keys(e).length===0}function dC(e=null){const t=sC.useContext(lC.ThemeContext);return!t||uC(t)?e:t}$v=Fu.default=dC;var bt="top",Ft="bottom",Bt="right",xt="left",Bu="auto",Zo=[bt,Ft,Bt,xt],Fn="start",Fo="end",fC="clippingParents",kv="viewport",so="popper",pC="reference",Ff=Zo.reduce(function(e,t){return e.concat([t+"-"+Fn,t+"-"+Fo])},[]),Tv=[].concat(Zo,[Bu]).reduce(function(e,t){return e.concat([t,t+"-"+Fn,t+"-"+Fo])},[]),mC="beforeRead",vC="read",gC="afterRead",hC="beforeMain",yC="main",bC="afterMain",xC="beforeWrite",OC="write",_C="afterWrite",CC=[mC,vC,gC,hC,yC,bC,xC,OC,_C];function rr(e){return e?(e.nodeName||"").toLowerCase():null}function $t(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gr(e){var t=$t(e).Element;return e instanceof t||e instanceof Element}function At(e){var t=$t(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Lu(e){if(typeof ShadowRoot>"u")return!1;var t=$t(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function wC(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!At(a)||!rr(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var l=o[i];l===!1?a.removeAttribute(i):a.setAttribute(i,l===!0?"":l)}))})}function EC(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=i.reduce(function(u,c){return u[c]="",u},{});!At(o)||!rr(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const PC={name:"applyStyles",enabled:!0,phase:"write",fn:wC,effect:EC,requires:["computeStyles"]};function er(e){return e.split("-")[0]}var Wr=Math.max,ci=Math.min,Bn=Math.round;function Vl(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Iv(){return!/^((?!chrome|android).)*safari/i.test(Vl())}function Ln(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&At(e)&&(o=e.offsetWidth>0&&Bn(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Bn(n.height)/e.offsetHeight||1);var i=Gr(e)?$t(e):window,l=i.visualViewport,u=!Iv()&&r,c=(n.left+(u&&l?l.offsetLeft:0))/o,d=(n.top+(u&&l?l.offsetTop:0))/a,f=n.width/o,p=n.height/a;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function Du(e){var t=Ln(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function jv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Lu(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ur(e){return $t(e).getComputedStyle(e)}function SC(e){return["table","td","th"].indexOf(rr(e))>=0}function Sr(e){return((Gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bs(e){return rr(e)==="html"?e:e.assignedSlot||e.parentNode||(Lu(e)?e.host:null)||Sr(e)}function Bf(e){return!At(e)||ur(e).position==="fixed"?null:e.offsetParent}function $C(e){var t=/firefox/i.test(Vl()),r=/Trident/i.test(Vl());if(r&&At(e)){var n=ur(e);if(n.position==="fixed")return null}var o=Bs(e);for(Lu(o)&&(o=o.host);At(o)&&["html","body"].indexOf(rr(o))<0;){var a=ur(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function ea(e){for(var t=$t(e),r=Bf(e);r&&SC(r)&&ur(r).position==="static";)r=Bf(r);return r&&(rr(r)==="html"||rr(r)==="body"&&ur(r).position==="static")?t:r||$C(e)||t}function zu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bo(e,t,r){return Wr(e,ci(t,r))}function RC(e,t,r){var n=bo(e,t,r);return n>r?r:n}function Av(){return{top:0,right:0,bottom:0,left:0}}function Mv(e){return Object.assign({},Av(),e)}function Nv(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var kC=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Mv(typeof t!="number"?t:Nv(t,Zo))};function TC(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,l=er(r.placement),u=zu(l),c=[xt,Bt].indexOf(l)>=0,d=c?"height":"width";if(!(!a||!i)){var f=kC(o.padding,r),p=Du(a),m=u==="y"?bt:xt,g=u==="y"?Ft:Bt,v=r.rects.reference[d]+r.rects.reference[u]-i[u]-r.rects.popper[d],b=i[u]-r.rects.reference[u],x=ea(a),C=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,O=v/2-b/2,h=f[m],_=C-p[d]-f[g],E=C/2-p[d]/2+O,w=bo(h,E,_),P=u;r.modifiersData[n]=(t={},t[P]=w,t.centerOffset=w-E,t)}}function IC(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||jv(t.elements.popper,o)&&(t.elements.arrow=o))}const jC={name:"arrow",enabled:!0,phase:"main",fn:TC,effect:IC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Dn(e){return e.split("-")[1]}var AC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function MC(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Bn(r*o)/o||0,y:Bn(n*o)/o||0}}function Lf(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=i.x,m=p===void 0?0:p,g=i.y,v=g===void 0?0:g,b=typeof d=="function"?d({x:m,y:v}):{x:m,y:v};m=b.x,v=b.y;var x=i.hasOwnProperty("x"),C=i.hasOwnProperty("y"),O=xt,h=bt,_=window;if(c){var E=ea(r),w="clientHeight",P="clientWidth";if(E===$t(r)&&(E=Sr(r),ur(E).position!=="static"&&l==="absolute"&&(w="scrollHeight",P="scrollWidth")),E=E,o===bt||(o===xt||o===Bt)&&a===Fo){h=Ft;var k=f&&E===_&&_.visualViewport?_.visualViewport.height:E[w];v-=k-n.height,v*=u?1:-1}if(o===xt||(o===bt||o===Ft)&&a===Fo){O=Bt;var $=f&&E===_&&_.visualViewport?_.visualViewport.width:E[P];m-=$-n.width,m*=u?1:-1}}var T=Object.assign({position:l},c&&AC),A=d===!0?MC({x:m,y:v},$t(r)):{x:m,y:v};if(m=A.x,v=A.y,u){var M;return Object.assign({},T,(M={},M[h]=C?"0":"",M[O]=x?"0":"",M.transform=(_.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",M))}return Object.assign({},T,(t={},t[h]=C?v+"px":"",t[O]=x?m+"px":"",t.transform="",t))}function NC(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,l=r.roundOffsets,u=l===void 0?!0:l,c={placement:er(t.placement),variation:Dn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Lf(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Lf(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const FC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:NC,data:{}};var ya={passive:!0};function BC(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,l=i===void 0?!0:i,u=$t(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(d){d.addEventListener("scroll",r.update,ya)}),l&&u.addEventListener("resize",r.update,ya),function(){a&&c.forEach(function(d){d.removeEventListener("scroll",r.update,ya)}),l&&u.removeEventListener("resize",r.update,ya)}}const LC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:BC,data:{}};var DC={left:"right",right:"left",bottom:"top",top:"bottom"};function Fa(e){return e.replace(/left|right|bottom|top/g,function(t){return DC[t]})}var zC={start:"end",end:"start"};function Df(e){return e.replace(/start|end/g,function(t){return zC[t]})}function Wu(e){var t=$t(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Vu(e){return Ln(Sr(e)).left+Wu(e).scrollLeft}function WC(e,t){var r=$t(e),n=Sr(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,l=0,u=0;if(o){a=o.width,i=o.height;var c=Iv();(c||!c&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:l+Vu(e),y:u}}function VC(e){var t,r=Sr(e),n=Wu(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Wr(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Wr(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+Vu(e),u=-n.scrollTop;return ur(o||r).direction==="rtl"&&(l+=Wr(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:u}}function Hu(e){var t=ur(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Fv(e){return["html","body","#document"].indexOf(rr(e))>=0?e.ownerDocument.body:At(e)&&Hu(e)?e:Fv(Bs(e))}function xo(e,t){var r;t===void 0&&(t=[]);var n=Fv(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=$t(n),i=o?[a].concat(a.visualViewport||[],Hu(n)?n:[]):n,l=t.concat(i);return o?l:l.concat(xo(Bs(i)))}function Hl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function HC(e,t){var r=Ln(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function zf(e,t,r){return t===kv?Hl(WC(e,r)):Gr(t)?HC(t,r):Hl(VC(Sr(e)))}function UC(e){var t=xo(Bs(e)),r=["absolute","fixed"].indexOf(ur(e).position)>=0,n=r&&At(e)?ea(e):e;return Gr(n)?t.filter(function(o){return Gr(o)&&jv(o,n)&&rr(o)!=="body"}):[]}function qC(e,t,r,n){var o=t==="clippingParents"?UC(e):[].concat(t),a=[].concat(o,[r]),i=a[0],l=a.reduce(function(u,c){var d=zf(e,c,n);return u.top=Wr(d.top,u.top),u.right=ci(d.right,u.right),u.bottom=ci(d.bottom,u.bottom),u.left=Wr(d.left,u.left),u},zf(e,i,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Bv(e){var t=e.reference,r=e.element,n=e.placement,o=n?er(n):null,a=n?Dn(n):null,i=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,u;switch(o){case bt:u={x:i,y:t.y-r.height};break;case Ft:u={x:i,y:t.y+t.height};break;case Bt:u={x:t.x+t.width,y:l};break;case xt:u={x:t.x-r.width,y:l};break;default:u={x:t.x,y:t.y}}var c=o?zu(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(a){case Fn:u[c]=u[c]-(t[d]/2-r[d]/2);break;case Fo:u[c]=u[c]+(t[d]/2-r[d]/2);break}}return u}function Bo(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,i=a===void 0?e.strategy:a,l=r.boundary,u=l===void 0?fC:l,c=r.rootBoundary,d=c===void 0?kv:c,f=r.elementContext,p=f===void 0?so:f,m=r.altBoundary,g=m===void 0?!1:m,v=r.padding,b=v===void 0?0:v,x=Mv(typeof b!="number"?b:Nv(b,Zo)),C=p===so?pC:so,O=e.rects.popper,h=e.elements[g?C:p],_=qC(Gr(h)?h:h.contextElement||Sr(e.elements.popper),u,d,i),E=Ln(e.elements.reference),w=Bv({reference:E,element:O,strategy:"absolute",placement:o}),P=Hl(Object.assign({},O,w)),k=p===so?P:E,$={top:_.top-k.top+x.top,bottom:k.bottom-_.bottom+x.bottom,left:_.left-k.left+x.left,right:k.right-_.right+x.right},T=e.modifiersData.offset;if(p===so&&T){var A=T[o];Object.keys($).forEach(function(M){var j=[Bt,Ft].indexOf(M)>=0?1:-1,F=[bt,Ft].indexOf(M)>=0?"y":"x";$[M]+=A[F]*j})}return $}function KC(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,l=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?Tv:u,d=Dn(n),f=d?l?Ff:Ff.filter(function(g){return Dn(g)===d}):Zo,p=f.filter(function(g){return c.indexOf(g)>=0});p.length===0&&(p=f);var m=p.reduce(function(g,v){return g[v]=Bo(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[er(v)],g},{});return Object.keys(m).sort(function(g,v){return m[g]-m[v]})}function GC(e){if(er(e)===Bu)return[];var t=Fa(e);return[Df(e),t,Df(t)]}function XC(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,l=i===void 0?!0:i,u=r.fallbackPlacements,c=r.padding,d=r.boundary,f=r.rootBoundary,p=r.altBoundary,m=r.flipVariations,g=m===void 0?!0:m,v=r.allowedAutoPlacements,b=t.options.placement,x=er(b),C=x===b,O=u||(C||!g?[Fa(b)]:GC(b)),h=[b].concat(O).reduce(function(G,re){return G.concat(er(re)===Bu?KC(t,{placement:re,boundary:d,rootBoundary:f,padding:c,flipVariations:g,allowedAutoPlacements:v}):re)},[]),_=t.rects.reference,E=t.rects.popper,w=new Map,P=!0,k=h[0],$=0;$=0,F=j?"width":"height",N=Bo(t,{placement:T,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),D=j?M?Bt:xt:M?Ft:bt;_[F]>E[F]&&(D=Fa(D));var R=Fa(D),L=[];if(a&&L.push(N[A]<=0),l&&L.push(N[D]<=0,N[R]<=0),L.every(function(G){return G})){k=T,P=!1;break}w.set(T,L)}if(P)for(var H=g?3:1,ye=function(re){var ne=h.find(function(X){var ee=w.get(X);if(ee)return ee.slice(0,re).every(function(U){return U})});if(ne)return k=ne,"break"},V=H;V>0;V--){var Q=ye(V);if(Q==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}const YC={name:"flip",enabled:!0,phase:"main",fn:XC,requiresIfExists:["offset"],data:{_skip:!1}};function Wf(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Vf(e){return[bt,Bt,Ft,xt].some(function(t){return e[t]>=0})}function QC(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Bo(t,{elementContext:"reference"}),l=Bo(t,{altBoundary:!0}),u=Wf(i,n),c=Wf(l,o,a),d=Vf(u),f=Vf(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const JC={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:QC};function ZC(e,t,r){var n=er(e),o=[xt,bt].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[xt,Bt].indexOf(n)>=0?{x:l,y:i}:{x:i,y:l}}function ew(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=Tv.reduce(function(d,f){return d[f]=ZC(f,t.rects,a),d},{}),l=i[t.placement],u=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=i}const tw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ew};function rw(e){var t=e.state,r=e.name;t.modifiersData[r]=Bv({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const nw={name:"popperOffsets",enabled:!0,phase:"read",fn:rw,data:{}};function ow(e){return e==="x"?"y":"x"}function aw(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,l=i===void 0?!1:i,u=r.boundary,c=r.rootBoundary,d=r.altBoundary,f=r.padding,p=r.tether,m=p===void 0?!0:p,g=r.tetherOffset,v=g===void 0?0:g,b=Bo(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),x=er(t.placement),C=Dn(t.placement),O=!C,h=zu(x),_=ow(h),E=t.modifiersData.popperOffsets,w=t.rects.reference,P=t.rects.popper,k=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,$=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(E){if(a){var M,j=h==="y"?bt:xt,F=h==="y"?Ft:Bt,N=h==="y"?"height":"width",D=E[h],R=D+b[j],L=D-b[F],H=m?-P[N]/2:0,ye=C===Fn?w[N]:P[N],V=C===Fn?-P[N]:-w[N],Q=t.elements.arrow,G=m&&Q?Du(Q):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Av(),ne=re[j],X=re[F],ee=bo(0,w[N],G[N]),U=O?w[N]/2-H-ee-ne-$.mainAxis:ye-ee-ne-$.mainAxis,de=O?-w[N]/2+H+ee+X+$.mainAxis:V+ee+X+$.mainAxis,oe=t.elements.arrow&&ea(t.elements.arrow),xe=oe?h==="y"?oe.clientTop||0:oe.clientLeft||0:0,te=(M=T==null?void 0:T[h])!=null?M:0,me=D+U-te-xe,ve=D+de-te,it=bo(m?ci(R,me):R,D,m?Wr(L,ve):L);E[h]=it,A[h]=it-D}if(l){var Ke,Ae=h==="x"?bt:xt,ze=h==="x"?Ft:Bt,ke=E[_],_e=_==="y"?"height":"width",Ye=ke+b[Ae],je=ke-b[ze],Oe=[bt,xt].indexOf(x)!==-1,We=(Ke=T==null?void 0:T[_])!=null?Ke:0,Qe=Oe?Ye:ke-w[_e]-P[_e]-We+$.altAxis,tt=Oe?ke+w[_e]+P[_e]-We-$.altAxis:je,ue=m&&Oe?RC(Qe,ke,tt):bo(m?Qe:Ye,ke,m?tt:je);E[_]=ue,A[_]=ue-ke}t.modifiersData[n]=A}}const iw={name:"preventOverflow",enabled:!0,phase:"main",fn:aw,requiresIfExists:["offset"]};function sw(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lw(e){return e===$t(e)||!At(e)?Wu(e):sw(e)}function cw(e){var t=e.getBoundingClientRect(),r=Bn(t.width)/e.offsetWidth||1,n=Bn(t.height)/e.offsetHeight||1;return r!==1||n!==1}function uw(e,t,r){r===void 0&&(r=!1);var n=At(t),o=At(t)&&cw(t),a=Sr(t),i=Ln(e,o,r),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((rr(t)!=="body"||Hu(a))&&(l=lw(t)),At(t)?(u=Ln(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Vu(a))),{x:i.left+l.scrollLeft-u.x,y:i.top+l.scrollTop-u.y,width:i.width,height:i.height}}function dw(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(l){if(!r.has(l)){var u=t.get(l);u&&o(u)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function fw(e){var t=dw(e);return CC.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function pw(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mw(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Hf={placement:"bottom",modifiers:[],strategy:"absolute"};function Uf(){for(var e=arguments.length,t=new Array(e),r=0;r{a||l(yw(o)||document.body)},[o,a]),Mt(()=>{if(i&&!a)return ai(r,i),()=>{ai(r,null)}},[r,i,a]),a){if(s.isValidElement(n)){const c={ref:u};return s.cloneElement(n,c)}return S.jsx(s.Fragment,{children:n})}return S.jsx(s.Fragment,{children:i&&Gp.createPortal(n,i)})});function bw(e){return ie("MuiPopper",e)}se("MuiPopper",["root"]);const xw=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ow=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function _w(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Ul(e){return typeof e=="function"?e():e}function Cw(e){return e.nodeType!==void 0}const ww=e=>{const{classes:t}=e;return le({root:["root"]},bw,t)},Ew={},Pw=s.forwardRef(function(t,r){var n;const{anchorEl:o,children:a,direction:i,disablePortal:l,modifiers:u,open:c,placement:d,popperOptions:f,popperRef:p,slotProps:m={},slots:g={},TransitionProps:v}=t,b=W(t,xw),x=s.useRef(null),C=De(x,r),O=s.useRef(null),h=De(O,p),_=s.useRef(h);Mt(()=>{_.current=h},[h]),s.useImperativeHandle(p,()=>O.current,[]);const E=_w(d,i),[w,P]=s.useState(E),[k,$]=s.useState(Ul(o));s.useEffect(()=>{O.current&&O.current.forceUpdate()}),s.useEffect(()=>{o&&$(Ul(o))},[o]),Mt(()=>{if(!k||!c)return;const F=R=>{P(R.placement)};let N=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:R})=>{F(R)}}];u!=null&&(N=N.concat(u)),f&&f.modifiers!=null&&(N=N.concat(f.modifiers));const D=hw(k,x.current,y({placement:E},f,{modifiers:N}));return _.current(D),()=>{D.destroy(),_.current(null)}},[k,l,u,c,f,E]);const T={placement:w};v!==null&&(T.TransitionProps=v);const A=ww(t),M=(n=g.root)!=null?n:"div",j=Kr({elementType:M,externalSlotProps:m.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:A.root});return S.jsx(M,y({},j,{children:typeof a=="function"?a(T):a}))}),Sw=s.forwardRef(function(t,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:l=!1,keepMounted:u=!1,modifiers:c,open:d,placement:f="bottom",popperOptions:p=Ew,popperRef:m,style:g,transition:v=!1,slotProps:b={},slots:x={}}=t,C=W(t,Ow),[O,h]=s.useState(!0),_=()=>{h(!1)},E=()=>{h(!0)};if(!u&&!d&&(!v||O))return null;let w;if(a)w=a;else if(n){const $=Ul(n);w=$&&Cw($)?ut($).body:ut(null).body}const P=!d&&u&&(!v||O)?"none":void 0,k=v?{in:d,onEnter:_,onExited:E}:void 0;return S.jsx(Lv,{disablePortal:l,container:w,children:S.jsx(Pw,y({anchorEl:n,direction:i,disablePortal:l,modifiers:c,ref:r,open:v?!O:d,placement:f,popperOptions:p,popperRef:m,slotProps:b,slots:x},C,{style:y({position:"fixed",top:0,left:0,display:P},g),TransitionProps:k,children:o}))})}),$w=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Rw=I(Sw,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dv=s.forwardRef(function(t,r){var n;const o=$v(),a=ce({props:t,name:"MuiPopper"}),{anchorEl:i,component:l,components:u,componentsProps:c,container:d,disablePortal:f,keepMounted:p,modifiers:m,open:g,placement:v,popperOptions:b,popperRef:x,transition:C,slots:O,slotProps:h}=a,_=W(a,$w),E=(n=O==null?void 0:O.root)!=null?n:u==null?void 0:u.Root,w=y({anchorEl:i,container:d,disablePortal:f,keepMounted:p,modifiers:m,open:g,placement:v,popperOptions:b,popperRef:x,transition:C},_);return S.jsx(Rw,y({as:l,direction:o==null?void 0:o.direction,slots:{root:E},slotProps:h??c},w,{ref:r}))}),kw=fr(S.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 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 12 17 15.59z"}),"Cancel");function Tw(e){return ie("MuiChip",e)}const Ce=se("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Iw=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],jw=e=>{const{classes:t,disabled:r,size:n,color:o,iconColor:a,onDelete:i,clickable:l,variant:u}=e,c={root:["root",u,r&&"disabled",`size${z(n)}`,`color${z(o)}`,l&&"clickable",l&&`clickableColor${z(o)}`,i&&"deletable",i&&`deletableColor${z(o)}`,`${u}${z(o)}`],label:["label",`label${z(n)}`],avatar:["avatar",`avatar${z(n)}`,`avatarColor${z(o)}`],icon:["icon",`icon${z(n)}`,`iconColor${z(a)}`],deleteIcon:["deleteIcon",`deleteIcon${z(n)}`,`deleteIconColor${z(o)}`,`deleteIcon${z(u)}Color${z(o)}`]};return le(c,Tw,t)},Aw=I("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:o,clickable:a,onDelete:i,size:l,variant:u}=r;return[{[`& .${Ce.avatar}`]:t.avatar},{[`& .${Ce.avatar}`]:t[`avatar${z(l)}`]},{[`& .${Ce.avatar}`]:t[`avatarColor${z(n)}`]},{[`& .${Ce.icon}`]:t.icon},{[`& .${Ce.icon}`]:t[`icon${z(l)}`]},{[`& .${Ce.icon}`]:t[`iconColor${z(o)}`]},{[`& .${Ce.deleteIcon}`]:t.deleteIcon},{[`& .${Ce.deleteIcon}`]:t[`deleteIcon${z(l)}`]},{[`& .${Ce.deleteIcon}`]:t[`deleteIconColor${z(n)}`]},{[`& .${Ce.deleteIcon}`]:t[`deleteIcon${z(u)}Color${z(n)}`]},t.root,t[`size${z(l)}`],t[`color${z(n)}`],a&&t.clickable,a&&n!=="default"&&t[`clickableColor${z(n)})`],i&&t.deletable,i&&n!=="default"&&t[`deletableColor${z(n)}`],t[u],t[`${u}${z(n)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return y({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ce.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ce.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Ce.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ce.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ce.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ce.icon}`]:y({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&y({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${Ce.deleteIcon}`]:y({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Te(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Te(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Te(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Ce.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Te(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Ce.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>y({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Te(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ce.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Te(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Ce.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>y({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ce.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ce.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ce.avatar}`]:{marginLeft:4},[`& .${Ce.avatarSmall}`]:{marginLeft:2},[`& .${Ce.icon}`]:{marginLeft:4},[`& .${Ce.iconSmall}`]:{marginLeft:2},[`& .${Ce.deleteIcon}`]:{marginRight:5},[`& .${Ce.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Te(e.palette[t.color].main,.7)}`,[`&.${Ce.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Te(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Ce.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Te(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Ce.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Te(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Mw=I("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${z(n)}`]]}})(({ownerState:e})=>y({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function qf(e){return e.key==="Backspace"||e.key==="Delete"}const Uu=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:l="default",component:u,deleteIcon:c,disabled:d=!1,icon:f,label:p,onClick:m,onDelete:g,onKeyDown:v,onKeyUp:b,size:x="medium",variant:C="filled",tabIndex:O,skipFocusWhenDisabled:h=!1}=n,_=W(n,Iw),E=s.useRef(null),w=De(E,r),P=L=>{L.stopPropagation(),g&&g(L)},k=L=>{L.currentTarget===L.target&&qf(L)&&L.preventDefault(),v&&v(L)},$=L=>{L.currentTarget===L.target&&(g&&qf(L)?g(L):L.key==="Escape"&&E.current&&E.current.blur()),b&&b(L)},T=i!==!1&&m?!0:i,A=T||g?Nn:u||"div",M=y({},n,{component:A,disabled:d,size:x,color:l,iconColor:s.isValidElement(f)&&f.props.color||l,onDelete:!!g,clickable:T,variant:C}),j=jw(M),F=A===Nn?y({component:u||"div",focusVisibleClassName:j.focusVisible},g&&{disableRipple:!0}):{};let N=null;g&&(N=c&&s.isValidElement(c)?s.cloneElement(c,{className:B(c.props.className,j.deleteIcon),onClick:P}):S.jsx(kw,{className:B(j.deleteIcon),onClick:P}));let D=null;o&&s.isValidElement(o)&&(D=s.cloneElement(o,{className:B(j.avatar,o.props.className)}));let R=null;return f&&s.isValidElement(f)&&(R=s.cloneElement(f,{className:B(j.icon,f.props.className)})),S.jsxs(Aw,y({as:A,className:B(j.root,a),disabled:T&&d?!0:void 0,onClick:m,onKeyDown:k,onKeyUp:$,ref:w,tabIndex:h&&d?-1:O,ownerState:M},F,_,{children:[D||R,S.jsx(Mw,{className:B(j.label),ownerState:M,children:p}),N]}))}),Nw=["onChange","maxRows","minRows","style","value"];function ba(e){return parseInt(e,10)||0}const Fw={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Bw(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Lw=s.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:l}=t,u=W(t,Nw),{current:c}=s.useRef(l!=null),d=s.useRef(null),f=De(r,d),p=s.useRef(null),m=s.useRef(null),g=s.useCallback(()=>{const x=d.current,O=tr(x).getComputedStyle(x);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};const h=m.current;h.style.width=O.width,h.value=x.value||t.placeholder||"x",h.value.slice(-1)===` +`&&(h.value+=" ");const _=O.boxSizing,E=ba(O.paddingBottom)+ba(O.paddingTop),w=ba(O.borderBottomWidth)+ba(O.borderTopWidth),P=h.scrollHeight;h.value="x";const k=h.scrollHeight;let $=P;a&&($=Math.max(Number(a)*k,$)),o&&($=Math.min(Number(o)*k,$)),$=Math.max($,k);const T=$+(_==="border-box"?E+w:0),A=Math.abs($-P)<=1;return{outerHeightStyle:T,overflowing:A}},[o,a,t.placeholder]),v=s.useCallback(()=>{const x=g();if(Bw(x))return;const C=x.outerHeightStyle,O=d.current;p.current!==C&&(p.current=C,O.style.height=`${C}px`),O.style.overflow=x.overflowing?"hidden":""},[g]);Mt(()=>{const x=()=>{v()};let C;const O=ws(x),h=d.current,_=tr(h);_.addEventListener("resize",O);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(x),E.observe(h)),()=>{O.clear(),cancelAnimationFrame(C),_.removeEventListener("resize",O),E&&E.disconnect()}},[g,v]),Mt(()=>{v()});const b=x=>{c||v(),n&&n(x)};return S.jsxs(s.Fragment,{children:[S.jsx("textarea",y({value:l,onChange:b,ref:f,rows:a,style:i},u)),S.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:y({},Fw.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function Yn({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const qu=s.createContext(void 0);function Qr(){return s.useContext(qu)}function Dw(e){return S.jsx(Q1,y({},e,{defaultTheme:Ps,themeId:jn}))}function Kf(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ui(e,t=!1){return e&&(Kf(e.value)&&e.value!==""||t&&Kf(e.defaultValue)&&e.defaultValue!=="")}function zw(e){return e.startAdornment}function Ww(e){return ie("MuiInputBase",e)}const zn=se("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Vw=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ls=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${z(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Ds=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Hw=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:u,hiddenLabel:c,multiline:d,readOnly:f,size:p,startAdornment:m,type:g}=e,v={root:["root",`color${z(r)}`,n&&"disabled",o&&"error",u&&"fullWidth",i&&"focused",l&&"formControl",p&&p!=="medium"&&`size${z(p)}`,d&&"multiline",m&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return le(v,Ww,t)},zs=I("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ls})(({theme:e,ownerState:t})=>y({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${zn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&y({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Ws=I("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ds})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=y({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return y({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${zn.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${zn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Uw=S.jsx(Dw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ku=s.forwardRef(function(t,r){var n;const o=ce({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:l,className:u,components:c={},componentsProps:d={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:m,endAdornment:g,fullWidth:v=!1,id:b,inputComponent:x="input",inputProps:C={},inputRef:O,maxRows:h,minRows:_,multiline:E=!1,name:w,onBlur:P,onChange:k,onClick:$,onFocus:T,onKeyDown:A,onKeyUp:M,placeholder:j,readOnly:F,renderSuffix:N,rows:D,slotProps:R={},slots:L={},startAdornment:H,type:ye="text",value:V}=o,Q=W(o,Vw),G=C.value!=null?C.value:V,{current:re}=s.useRef(G!=null),ne=s.useRef(),X=s.useCallback(ue=>{},[]),ee=De(ne,O,C.ref,X),[U,de]=s.useState(!1),oe=Qr(),xe=Yn({props:o,muiFormControl:oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});xe.focused=oe?oe.focused:U,s.useEffect(()=>{!oe&&p&&U&&(de(!1),P&&P())},[oe,p,U,P]);const te=oe&&oe.onFilled,me=oe&&oe.onEmpty,ve=s.useCallback(ue=>{ui(ue)?te&&te():me&&me()},[te,me]);Mt(()=>{re&&ve({value:G})},[G,ve,re]);const it=ue=>{if(xe.disabled){ue.stopPropagation();return}T&&T(ue),C.onFocus&&C.onFocus(ue),oe&&oe.onFocus?oe.onFocus(ue):de(!0)},Ke=ue=>{P&&P(ue),C.onBlur&&C.onBlur(ue),oe&&oe.onBlur?oe.onBlur(ue):de(!1)},Ae=(ue,...Y)=>{if(!re){const Ve=ue.target||ne.current;if(Ve==null)throw new Error(cr(1));ve({value:Ve.value})}C.onChange&&C.onChange(ue,...Y),k&&k(ue,...Y)};s.useEffect(()=>{ve(ne.current)},[]);const ze=ue=>{ne.current&&ue.currentTarget===ue.target&&ne.current.focus(),$&&$(ue)};let ke=x,_e=C;E&&ke==="input"&&(D?_e=y({type:void 0,minRows:D,maxRows:D},_e):_e=y({type:void 0,maxRows:h,minRows:_},_e),ke=Lw);const Ye=ue=>{ve(ue.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})};s.useEffect(()=>{oe&&oe.setAdornedStart(!!H)},[oe,H]);const je=y({},o,{color:xe.color||"primary",disabled:xe.disabled,endAdornment:g,error:xe.error,focused:xe.focused,formControl:oe,fullWidth:v,hiddenLabel:xe.hiddenLabel,multiline:E,size:xe.size,startAdornment:H,type:ye}),Oe=Hw(je),We=L.root||c.Root||zs,Qe=R.root||d.root||{},tt=L.input||c.Input||Ws;return _e=y({},_e,(n=R.input)!=null?n:d.input),S.jsxs(s.Fragment,{children:[!m&&Uw,S.jsxs(We,y({},Qe,!ii(We)&&{ownerState:y({},je,Qe.ownerState)},{ref:r,onClick:ze},Q,{className:B(Oe.root,Qe.className,u,F&&"MuiInputBase-readOnly"),children:[H,S.jsx(qu.Provider,{value:null,children:S.jsx(tt,y({ownerState:je,"aria-invalid":xe.error,"aria-describedby":a,autoComplete:i,autoFocus:l,defaultValue:f,disabled:xe.disabled,id:b,onAnimationStart:Ye,name:w,placeholder:j,readOnly:F,required:xe.required,rows:D,value:G,onKeyDown:A,onKeyUp:M,type:ye},_e,!ii(tt)&&{as:ke,ownerState:y({},je,_e.ownerState)},{ref:ee,className:B(Oe.input,_e.className,F&&"MuiInputBase-readOnly"),onBlur:Ke,onChange:Ae,onFocus:it}))}),g,N?N(y({},xe,{startAdornment:H})):null]}))]})});function qw(e){return ie("MuiInput",e)}const lo=y({},zn,se("MuiInput",["root","underline","input"]));function Kw(e){return ie("MuiOutlinedInput",e)}const yr=y({},zn,se("MuiOutlinedInput",["root","notchedOutline","input"]));function Gw(e){return ie("MuiFilledInput",e)}const Ir=y({},zn,se("MuiFilledInput",["root","underline","input"])),Xw=fr(S.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Yw=fr(S.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Qw(e){return ie("MuiAvatar",e)}se("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Jw=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],Zw=e=>{const{classes:t,variant:r,colorDefault:n}=e;return le({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},Qw,t)},eE=I("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:y({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:y({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),tE=I("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),rE=I(Yw,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function nE({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[o,a]=s.useState(!1);return s.useEffect(()=>{if(!r&&!n)return;a(!1);let i=!0;const l=new Image;return l.onload=()=>{i&&a("loaded")},l.onerror=()=>{i&&a("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=r,n&&(l.srcset=n),()=>{i=!1}},[e,t,r,n]),o}const ql=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:l="div",slots:u={},slotProps:c={},imgProps:d,sizes:f,src:p,srcSet:m,variant:g="circular"}=n,v=W(n,Jw);let b=null;const x=nE(y({},d,{src:p,srcSet:m})),C=p||m,O=C&&x!=="error",h=y({},n,{colorDefault:!O,component:l,variant:g}),_=Zw(h),[E,w]=k_("img",{className:_.img,elementType:tE,externalForwardedProps:{slots:u,slotProps:{img:y({},d,c.img)}},additionalProps:{alt:o,src:p,srcSet:m,sizes:f},ownerState:h});return O?b=S.jsx(E,y({},w)):a||a===0?b=a:C&&o?b=o[0]:b=S.jsx(rE,{ownerState:h,className:_.fallback}),S.jsx(eE,y({as:l,ownerState:h,className:B(_.root,i),ref:r},v,{children:b}))}),oE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],aE={entering:{opacity:1},entered:{opacity:1}},zv=s.forwardRef(function(t,r){const n=Yr(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:l,easing:u,in:c,onEnter:d,onEntered:f,onEntering:p,onExit:m,onExited:g,onExiting:v,style:b,timeout:x=o,TransitionComponent:C=Kt}=t,O=W(t,oE),h=s.useRef(null),_=De(h,l.ref,r),E=j=>F=>{if(j){const N=h.current;F===void 0?j(N):j(N,F)}},w=E(p),P=E((j,F)=>{Nu(j);const N=Mn({style:b,timeout:x,easing:u},{mode:"enter"});j.style.webkitTransition=n.transitions.create("opacity",N),j.style.transition=n.transitions.create("opacity",N),d&&d(j,F)}),k=E(f),$=E(v),T=E(j=>{const F=Mn({style:b,timeout:x,easing:u},{mode:"exit"});j.style.webkitTransition=n.transitions.create("opacity",F),j.style.transition=n.transitions.create("opacity",F),m&&m(j)}),A=E(g),M=j=>{a&&a(h.current,j)};return S.jsx(C,y({appear:i,in:c,nodeRef:h,onEnter:P,onEntered:k,onEntering:w,onExit:T,onExited:A,onExiting:$,addEndListener:M,timeout:x},O,{children:(j,F)=>s.cloneElement(l,y({style:y({opacity:0,visibility:j==="exited"&&!c?"hidden":void 0},aE[j],b,l.props.style),ref:_},F))}))});function iE(e){return ie("MuiBackdrop",e)}se("MuiBackdrop",["root","invisible"]);const sE=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],lE=e=>{const{classes:t,invisible:r}=e;return le({root:["root",r&&"invisible"]},iE,t)},cE=I("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>y({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Wv=s.forwardRef(function(t,r){var n,o,a;const i=ce({props:t,name:"MuiBackdrop"}),{children:l,className:u,component:c="div",components:d={},componentsProps:f={},invisible:p=!1,open:m,slotProps:g={},slots:v={},TransitionComponent:b=zv,transitionDuration:x}=i,C=W(i,sE),O=y({},i,{component:c,invisible:p}),h=lE(O),_=(n=g.root)!=null?n:f.root;return S.jsx(b,y({in:m,timeout:x},C,{children:S.jsx(cE,y({"aria-hidden":!0},_,{as:(o=(a=v.root)!=null?a:d.Root)!=null?o:c,className:B(h.root,u,_==null?void 0:_.className),ownerState:y({},O,_==null?void 0:_.ownerState),classes:h,ref:r,children:l}))}))});function uE(e){return ie("MuiButton",e)}const xa=se("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),dE=s.createContext({}),fE=s.createContext(void 0),pE=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],mE=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e,l={root:["root",a,`${a}${z(t)}`,`size${z(o)}`,`${a}Size${z(o)}`,`color${z(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${z(o)}`],endIcon:["icon","endIcon",`iconSize${z(o)}`]},u=le(l,uE,i);return y({},i,u)},Vv=e=>y({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),vE=I(Nn,{shouldForwardProp:e=>mt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${z(r.color)}`],t[`size${z(r.size)}`],t[`${r.variant}Size${z(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return y({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":y({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Te(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Te(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Te(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":y({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${xa.focusVisible}`]:y({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${xa.disabled}`]:y({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Te(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${xa.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${xa.disabled}`]:{boxShadow:"none"}}),gE=I("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${z(r.size)}`]]}})(({ownerState:e})=>y({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Vv(e))),hE=I("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${z(r.size)}`]]}})(({ownerState:e})=>y({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Vv(e))),_t=s.forwardRef(function(t,r){const n=s.useContext(dE),o=s.useContext(fE),a=Ao(n,t),i=ce({props:a,name:"MuiButton"}),{children:l,color:u="primary",component:c="button",className:d,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:v,fullWidth:b=!1,size:x="medium",startIcon:C,type:O,variant:h="text"}=i,_=W(i,pE),E=y({},i,{color:u,component:c,disabled:f,disableElevation:p,disableFocusRipple:m,fullWidth:b,size:x,type:O,variant:h}),w=mE(E),P=C&&S.jsx(gE,{className:w.startIcon,ownerState:E,children:C}),k=g&&S.jsx(hE,{className:w.endIcon,ownerState:E,children:g}),$=o||"";return S.jsxs(vE,y({ownerState:E,className:B(n.className,w.root,d,$),component:c,disabled:f,focusRipple:!m,focusVisibleClassName:B(w.focusVisible,v),ref:r,type:O},_,{classes:w,children:[P,l,k]}))});function yE(e){return ie("MuiCard",e)}se("MuiCard",["root"]);const bE=["className","raised"],xE=e=>{const{classes:t}=e;return le({root:["root"]},yE,t)},OE=I(Xn,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),ta=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=n,i=W(n,bE),l=y({},n,{raised:a}),u=xE(l);return S.jsx(OE,y({className:B(u.root,o),elevation:a?8:void 0,ref:r,ownerState:l},i))});function _E(e){return ie("MuiCardContent",e)}se("MuiCardContent",["root"]);const CE=["className","component"],wE=e=>{const{classes:t}=e;return le({root:["root"]},_E,t)},EE=I("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Vs=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=n,i=W(n,CE),l=y({},n,{component:a}),u=wE(l);return S.jsx(EE,y({as:a,className:B(u.root,o),ownerState:l,ref:r},i))});function PE(e){return ie("PrivateSwitchBase",e)}se("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const SE=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],$E=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${z(o)}`],input:["input"]};return le(a,PE,t)},RE=I(Nn)(({ownerState:e})=>y({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),kE=I("input",{shouldForwardProp:mt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),TE=s.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:l,disabled:u,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:p,inputProps:m,inputRef:g,name:v,onBlur:b,onChange:x,onFocus:C,readOnly:O,required:h=!1,tabIndex:_,type:E,value:w}=t,P=W(t,SE),[k,$]=No({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),T=Qr(),A=L=>{C&&C(L),T&&T.onFocus&&T.onFocus(L)},M=L=>{b&&b(L),T&&T.onBlur&&T.onBlur(L)},j=L=>{if(L.nativeEvent.defaultPrevented)return;const H=L.target.checked;$(H),x&&x(L,H)};let F=u;T&&typeof F>"u"&&(F=T.disabled);const N=E==="checkbox"||E==="radio",D=y({},t,{checked:k,disabled:F,disableFocusRipple:c,edge:d}),R=$E(D);return S.jsxs(RE,y({component:"span",className:B(R.root,i),centerRipple:!0,focusRipple:!c,disabled:F,tabIndex:null,role:void 0,onFocus:A,onBlur:M,ownerState:D,ref:r},P,{children:[S.jsx(kE,y({autoFocus:n,checked:o,defaultChecked:l,className:R.input,disabled:F,id:N?p:void 0,name:v,onChange:j,readOnly:O,ref:g,required:h,ownerState:D,tabIndex:_,type:E},E==="checkbox"&&w===void 0?{}:{value:w},m)),k?a:f]}))}),IE=fr(S.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),jE=fr(S.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),AE=fr(S.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function ME(e){return ie("MuiCheckbox",e)}const fl=se("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),NE=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],FE=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate",`color${z(n)}`,`size${z(o)}`]},i=le(a,ME,t);return y({},t,i)},BE=I(TE,{shouldForwardProp:e=>mt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${z(r.size)}`],r.color!=="default"&&t[`color${z(r.color)}`]]}})(({theme:e,ownerState:t})=>y({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Te(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${fl.checked}, &.${fl.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${fl.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),LE=S.jsx(jE,{}),DE=S.jsx(IE,{}),zE=S.jsx(AE,{}),di=s.forwardRef(function(t,r){var n,o;const a=ce({props:t,name:"MuiCheckbox"}),{checkedIcon:i=LE,color:l="primary",icon:u=DE,indeterminate:c=!1,indeterminateIcon:d=zE,inputProps:f,size:p="medium",className:m}=a,g=W(a,NE),v=c?d:u,b=c?d:i,x=y({},a,{color:l,indeterminate:c,size:p}),C=FE(x);return S.jsx(BE,y({type:"checkbox",inputProps:y({"data-indeterminate":c},f),icon:s.cloneElement(v,{fontSize:(n=v.props.fontSize)!=null?n:p}),checkedIcon:s.cloneElement(b,{fontSize:(o=b.props.fontSize)!=null?o:p}),ownerState:x,ref:r,className:B(C.root,m)},g,{classes:C}))});function WE(e){return ie("MuiCircularProgress",e)}se("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const VE=["className","color","disableShrink","size","style","thickness","value","variant"];let Hs=e=>e,Gf,Xf,Yf,Qf;const br=44,HE=Un(Gf||(Gf=Hs` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),UE=Un(Xf||(Xf=Hs` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),qE=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,`color${z(n)}`],svg:["svg"],circle:["circle",`circle${z(r)}`,o&&"circleDisableShrink"]};return le(a,WE,t)},KE=I("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${z(r.color)}`]]}})(({ownerState:e,theme:t})=>y({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&as(Yf||(Yf=Hs` + animation: ${0} 1.4s linear infinite; + `),HE)),GE=I("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),XE=I("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${z(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>y({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&as(Qf||(Qf=Hs` + animation: ${0} 1.4s ease-in-out infinite; + `),UE)),Us=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:l=40,style:u,thickness:c=3.6,value:d=0,variant:f="indeterminate"}=n,p=W(n,VE),m=y({},n,{color:a,disableShrink:i,size:l,thickness:c,value:d,variant:f}),g=qE(m),v={},b={},x={};if(f==="determinate"){const C=2*Math.PI*((br-c)/2);v.strokeDasharray=C.toFixed(3),x["aria-valuenow"]=Math.round(d),v.strokeDashoffset=`${((100-d)/100*C).toFixed(3)}px`,b.transform="rotate(-90deg)"}return S.jsx(KE,y({className:B(g.root,o),style:y({width:l,height:l},b,u),ownerState:m,ref:r,role:"progressbar"},x,p,{children:S.jsx(GE,{className:g.svg,ownerState:m,viewBox:`${br/2} ${br/2} ${br} ${br}`,children:S.jsx(XE,{className:g.circle,style:v,ownerState:m,cx:br,cy:br,r:(br-c)/2,fill:"none",strokeWidth:c})})}))});function YE(e){const t=ut(e);return t.body===e?tr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Oo(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Jf(e){return parseInt(tr(e).getComputedStyle(e).paddingRight,10)||0}function QE(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function Zf(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,i=>{const l=a.indexOf(i)===-1,u=!QE(i);l&&u&&Oo(i,o)})}function pl(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function JE(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(YE(n)){const i=av(ut(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Jf(n)+i}px`;const l=ut(n).querySelectorAll(".mui-fixed");[].forEach.call(l,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${Jf(u)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=ut(n).body;else{const i=n.parentElement,l=tr(n);a=(i==null?void 0:i.nodeName)==="HTML"&&l.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:l})=>{a?i.style.setProperty(l,a):i.style.removeProperty(l)})}}function ZE(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class eP{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Oo(t.modalRef,!1);const o=ZE(r);Zf(r,t.mount,t.modalRef,o,!0);const a=pl(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=pl(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=JE(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=pl(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Oo(t.modalRef,r),Zf(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&Oo(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const tP=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function rP(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function nP(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function oP(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||nP(e))}function aP(e){const t=[],r=[];return Array.from(e.querySelectorAll(tP)).forEach((n,o)=>{const a=rP(n);a===-1||!oP(n)||(a===0?t.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function iP(){return!0}function sP(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=aP,isEnabled:i=iP,open:l}=e,u=s.useRef(!1),c=s.useRef(null),d=s.useRef(null),f=s.useRef(null),p=s.useRef(null),m=s.useRef(!1),g=s.useRef(null),v=De(t.ref,g),b=s.useRef(null);s.useEffect(()=>{!l||!g.current||(m.current=!r)},[r,l]),s.useEffect(()=>{if(!l||!g.current)return;const O=ut(g.current);return g.current.contains(O.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),m.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[l]),s.useEffect(()=>{if(!l||!g.current)return;const O=ut(g.current),h=w=>{b.current=w,!(n||!i()||w.key!=="Tab")&&O.activeElement===g.current&&w.shiftKey&&(u.current=!0,d.current&&d.current.focus())},_=()=>{const w=g.current;if(w===null)return;if(!O.hasFocus()||!i()||u.current){u.current=!1;return}if(w.contains(O.activeElement)||n&&O.activeElement!==c.current&&O.activeElement!==d.current)return;if(O.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let P=[];if((O.activeElement===c.current||O.activeElement===d.current)&&(P=a(g.current)),P.length>0){var k,$;const T=!!((k=b.current)!=null&&k.shiftKey&&(($=b.current)==null?void 0:$.key)==="Tab"),A=P[0],M=P[P.length-1];typeof A!="string"&&typeof M!="string"&&(T?M.focus():A.focus())}else w.focus()};O.addEventListener("focusin",_),O.addEventListener("keydown",h,!0);const E=setInterval(()=>{O.activeElement&&O.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(E),O.removeEventListener("focusin",_),O.removeEventListener("keydown",h,!0)}},[r,n,o,i,l,a]);const x=O=>{f.current===null&&(f.current=O.relatedTarget),m.current=!0,p.current=O.target;const h=t.props.onFocus;h&&h(O)},C=O=>{f.current===null&&(f.current=O.relatedTarget),m.current=!0};return S.jsxs(s.Fragment,{children:[S.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:c,"data-testid":"sentinelStart"}),s.cloneElement(t,{ref:v,onFocus:x}),S.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:d,"data-testid":"sentinelEnd"})]})}function lP(e){return typeof e=="function"?e():e}function cP(e){return e?e.props.hasOwnProperty("in"):!1}const uP=new eP;function dP(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=uP,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:l,children:u,onClose:c,open:d,rootRef:f}=e,p=s.useRef({}),m=s.useRef(null),g=s.useRef(null),v=De(g,f),[b,x]=s.useState(!d),C=cP(u);let O=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(O=!1);const h=()=>ut(m.current),_=()=>(p.current.modalRef=g.current,p.current.mount=m.current,p.current),E=()=>{o.mount(_(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},w=sr(()=>{const N=lP(t)||h().body;o.add(_(),N),g.current&&E()}),P=s.useCallback(()=>o.isTopModal(_()),[o]),k=sr(N=>{m.current=N,N&&(d&&P()?E():g.current&&Oo(g.current,O))}),$=s.useCallback(()=>{o.remove(_(),O)},[O,o]);s.useEffect(()=>()=>{$()},[$]),s.useEffect(()=>{d?w():(!C||!a)&&$()},[d,$,C,a,w]);const T=N=>D=>{var R;(R=N.onKeyDown)==null||R.call(N,D),!(D.key!=="Escape"||D.which===229||!P())&&(r||(D.stopPropagation(),c&&c(D,"escapeKeyDown")))},A=N=>D=>{var R;(R=N.onClick)==null||R.call(N,D),D.target===D.currentTarget&&c&&c(D,"backdropClick")};return{getRootProps:(N={})=>{const D=iv(e);delete D.onTransitionEnter,delete D.onTransitionExited;const R=y({},D,N);return y({role:"presentation"},R,{onKeyDown:T(R),ref:v})},getBackdropProps:(N={})=>{const D=N;return y({"aria-hidden":!0},D,{onClick:A(D),open:d})},getTransitionProps:()=>{const N=()=>{x(!1),i&&i()},D=()=>{x(!0),l&&l(),a&&$()};return{onEnter:Ml(N,u==null?void 0:u.props.onEnter),onExited:Ml(D,u==null?void 0:u.props.onExited)}},rootRef:v,portalRef:k,isTopModal:P,exited:b,hasTransition:C}}function fP(e){return ie("MuiModal",e)}se("MuiModal",["root","hidden","backdrop"]);const pP=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],mP=e=>{const{open:t,exited:r,classes:n}=e;return le({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},fP,n)},vP=I("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>y({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),gP=I(Wv,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Hv=s.forwardRef(function(t,r){var n,o,a,i,l,u;const c=ce({name:"MuiModal",props:t}),{BackdropComponent:d=gP,BackdropProps:f,className:p,closeAfterTransition:m=!1,children:g,container:v,component:b,components:x={},componentsProps:C={},disableAutoFocus:O=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:_=!1,disablePortal:E=!1,disableRestoreFocus:w=!1,disableScrollLock:P=!1,hideBackdrop:k=!1,keepMounted:$=!1,onBackdropClick:T,open:A,slotProps:M,slots:j}=c,F=W(c,pP),N=y({},c,{closeAfterTransition:m,disableAutoFocus:O,disableEnforceFocus:h,disableEscapeKeyDown:_,disablePortal:E,disableRestoreFocus:w,disableScrollLock:P,hideBackdrop:k,keepMounted:$}),{getRootProps:D,getBackdropProps:R,getTransitionProps:L,portalRef:H,isTopModal:ye,exited:V,hasTransition:Q}=dP(y({},N,{rootRef:r})),G=y({},N,{exited:V}),re=mP(G),ne={};if(g.props.tabIndex===void 0&&(ne.tabIndex="-1"),Q){const{onEnter:te,onExited:me}=L();ne.onEnter=te,ne.onExited=me}const X=(n=(o=j==null?void 0:j.root)!=null?o:x.Root)!=null?n:vP,ee=(a=(i=j==null?void 0:j.backdrop)!=null?i:x.Backdrop)!=null?a:d,U=(l=M==null?void 0:M.root)!=null?l:C.root,de=(u=M==null?void 0:M.backdrop)!=null?u:C.backdrop,oe=Kr({elementType:X,externalSlotProps:U,externalForwardedProps:F,getSlotProps:D,additionalProps:{ref:r,as:b},ownerState:G,className:B(p,U==null?void 0:U.className,re==null?void 0:re.root,!G.open&&G.exited&&(re==null?void 0:re.hidden))}),xe=Kr({elementType:ee,externalSlotProps:de,additionalProps:f,getSlotProps:te=>R(y({},te,{onClick:me=>{T&&T(me),te!=null&&te.onClick&&te.onClick(me)}})),className:B(de==null?void 0:de.className,f==null?void 0:f.className,re==null?void 0:re.backdrop),ownerState:G});return!$&&!A&&(!Q||V)?null:S.jsx(Lv,{ref:H,container:v,disablePortal:E,children:S.jsxs(X,y({},oe,{children:[!k&&d?S.jsx(ee,y({},xe)):null,S.jsx(sP,{disableEnforceFocus:h,disableAutoFocus:O,disableRestoreFocus:w,isEnabled:ye,open:A,children:s.cloneElement(g,ne)})]}))})});function hP(e){return ie("MuiDialog",e)}const ml=se("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Uv=s.createContext({}),yP=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],bP=I(Wv,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),xP=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${z(r)}`],paper:["paper",`paperScroll${z(r)}`,`paperWidth${z(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return le(i,hP,t)},OP=I(Hv,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),_P=I("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${z(r.scroll)}`]]}})(({ownerState:e})=>y({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),CP=I(Xn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${z(r.scroll)}`],t[`paperWidth${z(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>y({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ml.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${ml.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ml.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Gu=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiDialog"}),o=Yr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,BackdropComponent:u,BackdropProps:c,children:d,className:f,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:g=!1,maxWidth:v="sm",onBackdropClick:b,onClick:x,onClose:C,open:O,PaperComponent:h=Xn,PaperProps:_={},scroll:E="paper",TransitionComponent:w=zv,transitionDuration:P=a,TransitionProps:k}=n,$=W(n,yP),T=y({},n,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:g,maxWidth:v,scroll:E}),A=xP(T),M=s.useRef(),j=R=>{M.current=R.target===R.currentTarget},F=R=>{x&&x(R),M.current&&(M.current=null,b&&b(R),C&&C(R,"backdropClick"))},N=Yo(l),D=s.useMemo(()=>({titleId:N}),[N]);return S.jsx(OP,y({className:B(A.root,f),closeAfterTransition:!0,components:{Backdrop:bP},componentsProps:{backdrop:y({transitionDuration:P,as:u},c)},disableEscapeKeyDown:p,onClose:C,open:O,ref:r,onClick:F,ownerState:T},$,{children:S.jsx(w,y({appear:!0,in:O,timeout:P,role:"presentation"},k,{children:S.jsx(_P,{className:B(A.container),onMouseDown:j,ownerState:T,children:S.jsx(CP,y({as:h,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":N},_,{className:B(A.paper,_.className),ownerState:T,children:S.jsx(Uv.Provider,{value:D,children:d})}))})}))}))});function wP(e){return ie("MuiDialogActions",e)}se("MuiDialogActions",["root","spacing"]);const EP=["className","disableSpacing"],PP=e=>{const{classes:t,disableSpacing:r}=e;return le({root:["root",!r&&"spacing"]},wP,t)},SP=I("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>y({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Xu=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=n,i=W(n,EP),l=y({},n,{disableSpacing:a}),u=PP(l);return S.jsx(SP,y({className:B(u.root,o),ownerState:l,ref:r},i))});function $P(e){return ie("MuiDialogContent",e)}se("MuiDialogContent",["root","dividers"]);function RP(e){return ie("MuiDialogTitle",e)}const kP=se("MuiDialogTitle",["root"]),TP=["className","dividers"],IP=e=>{const{classes:t,dividers:r}=e;return le({root:["root",r&&"dividers"]},$P,t)},jP=I("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>y({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${kP.root} + &`]:{paddingTop:0}})),Yu=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=n,i=W(n,TP),l=y({},n,{dividers:a}),u=IP(l);return S.jsx(jP,y({className:B(u.root,o),ownerState:l,ref:r},i))});function AP(e){return ie("MuiDialogContentText",e)}se("MuiDialogContentText",["root"]);const MP=["children","className"],NP=e=>{const{classes:t}=e,n=le({root:["root"]},AP,t);return y({},t,n)},FP=I(Le,{shouldForwardProp:e=>mt(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qv=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiDialogContentText"}),{className:o}=n,a=W(n,MP),i=NP(a);return S.jsx(FP,y({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:a,className:B(i.root,o)},n,{classes:i}))}),BP=["className","id"],LP=e=>{const{classes:t}=e;return le({root:["root"]},RP,t)},DP=I(Le,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Qu=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=W(n,BP),l=n,u=LP(l),{titleId:c=a}=s.useContext(Uv);return S.jsx(DP,y({component:"h2",className:B(u.root,o),ownerState:l,ref:r,variant:"h6",id:a??c},i))});function zP(e){return ie("MuiDivider",e)}const ep=se("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),WP=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],VP=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:l,variant:u}=e;return le({root:["root",t&&"absolute",u,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",l==="right"&&i!=="vertical"&&"textAlignRight",l==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},zP,n)},HP=I("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>y({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Te(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>y({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>y({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>y({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>y({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),UP=I("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>y({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Kv=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:l=a?"div":"hr",flexItem:u=!1,light:c=!1,orientation:d="horizontal",role:f=l!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=n,g=W(n,WP),v=y({},n,{absolute:o,component:l,flexItem:u,light:c,orientation:d,role:f,textAlign:p,variant:m}),b=VP(v);return S.jsx(HP,y({as:l,className:B(b.root,i),role:f,ref:r,ownerState:v},g,{children:a?S.jsx(UP,{className:b.wrapper,ownerState:v,children:a}):null}))});Kv.muiSkipListHighlight=!0;const qP=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function KP(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=tr(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const c=a.getComputedStyle(t);i=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let l=0,u=0;if(i&&i!=="none"&&typeof i=="string"){const c=i.split("(")[1].split(")")[0].split(",");l=parseInt(c[4],10),u=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+l-n.left}px)`:`translateX(${a.innerWidth+l-n.left}px)`:e==="right"?o?`translateX(-${n.right-o.left-l}px)`:`translateX(-${n.left+n.width-l}px)`:e==="up"?o?`translateY(${o.bottom+u-n.top}px)`:`translateY(${a.innerHeight+u-n.top}px)`:o?`translateY(-${n.top-o.top+n.height-u}px)`:`translateY(-${n.top+n.height-u}px)`}function GP(e){return typeof e=="function"?e():e}function Oa(e,t,r){const n=GP(r),o=KP(e,t,n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const XP=s.forwardRef(function(t,r){const n=Yr(),o={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:u,container:c,direction:d="down",easing:f=o,in:p,onEnter:m,onEntered:g,onEntering:v,onExit:b,onExited:x,onExiting:C,style:O,timeout:h=a,TransitionComponent:_=Kt}=t,E=W(t,qP),w=s.useRef(null),P=De(u.ref,w,r),k=R=>L=>{R&&(L===void 0?R(w.current):R(w.current,L))},$=k((R,L)=>{Oa(d,R,c),Nu(R),m&&m(R,L)}),T=k((R,L)=>{const H=Mn({timeout:h,style:O,easing:f},{mode:"enter"});R.style.webkitTransition=n.transitions.create("-webkit-transform",y({},H)),R.style.transition=n.transitions.create("transform",y({},H)),R.style.webkitTransform="none",R.style.transform="none",v&&v(R,L)}),A=k(g),M=k(C),j=k(R=>{const L=Mn({timeout:h,style:O,easing:f},{mode:"exit"});R.style.webkitTransition=n.transitions.create("-webkit-transform",L),R.style.transition=n.transitions.create("transform",L),Oa(d,R,c),b&&b(R)}),F=k(R=>{R.style.webkitTransition="",R.style.transition="",x&&x(R)}),N=R=>{i&&i(w.current,R)},D=s.useCallback(()=>{w.current&&Oa(d,w.current,c)},[d,c]);return s.useEffect(()=>{if(p||d==="down"||d==="right")return;const R=ws(()=>{w.current&&Oa(d,w.current,c)}),L=tr(w.current);return L.addEventListener("resize",R),()=>{R.clear(),L.removeEventListener("resize",R)}},[d,p,c]),s.useEffect(()=>{p||D()},[p,D]),S.jsx(_,y({nodeRef:w,onEnter:$,onEntered:A,onEntering:T,onExit:j,onExited:F,onExiting:M,addEndListener:N,appear:l,in:p,timeout:h},E,{children:(R,L)=>s.cloneElement(u,y({ref:P,style:y({visibility:R==="exited"&&!p?"hidden":void 0},O,u.props.style)},L))}))}),YP=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],QP=e=>{const{classes:t,disableUnderline:r}=e,o=le({root:["root",!r&&"underline"],input:["input"]},Gw,t);return y({},t,o)},JP=I(zs,{shouldForwardProp:e=>mt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Ls(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return y({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Ir.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Ir.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ir.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ir.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ir.disabled}, .${Ir.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ir.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&y({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),ZP=I(Ws,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ds})(({theme:e,ownerState:t})=>y({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Ju=s.forwardRef(function(t,r){var n,o,a,i;const l=ce({props:t,name:"MuiFilledInput"}),{components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:g={},type:v="text"}=l,b=W(l,YP),x=y({},l,{fullWidth:d,inputComponent:f,multiline:p,type:v}),C=QP(l),O={root:{ownerState:x},input:{ownerState:x}},h=m??c?at(O,m??c):O,_=(n=(o=g.root)!=null?o:u.Root)!=null?n:JP,E=(a=(i=g.input)!=null?i:u.Input)!=null?a:ZP;return S.jsx(Ku,y({slots:{root:_,input:E},componentsProps:h,fullWidth:d,inputComponent:f,multiline:p,ref:r,type:v},b,{classes:C}))});Ju.muiName="Input";function eS(e){return ie("MuiFormControl",e)}se("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const tS=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],rS=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${z(r)}`,n&&"fullWidth"]};return le(o,eS,t)},nS=I("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>y({},t.root,t[`margin${z(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>y({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),oS=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:l="div",disabled:u=!1,error:c=!1,focused:d,fullWidth:f=!1,hiddenLabel:p=!1,margin:m="none",required:g=!1,size:v="medium",variant:b="outlined"}=n,x=W(n,tS),C=y({},n,{color:i,component:l,disabled:u,error:c,fullWidth:f,hiddenLabel:p,margin:m,required:g,size:v,variant:b}),O=rS(C),[h,_]=s.useState(()=>{let M=!1;return o&&s.Children.forEach(o,j=>{if(!Aa(j,["Input","Select"]))return;const F=Aa(j,["Select"])?j.props.input:j;F&&zw(F.props)&&(M=!0)}),M}),[E,w]=s.useState(()=>{let M=!1;return o&&s.Children.forEach(o,j=>{Aa(j,["Input","Select"])&&(ui(j.props,!0)||ui(j.props.inputProps,!0))&&(M=!0)}),M}),[P,k]=s.useState(!1);u&&P&&k(!1);const $=d!==void 0&&!u?d:P;let T;const A=s.useMemo(()=>({adornedStart:h,setAdornedStart:_,color:i,disabled:u,error:c,filled:E,focused:$,fullWidth:f,hiddenLabel:p,size:v,onBlur:()=>{k(!1)},onEmpty:()=>{w(!1)},onFilled:()=>{w(!0)},onFocus:()=>{k(!0)},registerEffect:T,required:g,variant:b}),[h,i,u,c,E,$,f,p,T,g,v,b]);return S.jsx(qu.Provider,{value:A,children:S.jsx(nS,y({as:l,ownerState:C,className:B(O.root,a),ref:r},x,{children:o}))})}),qs=rO({createStyledComponent:I("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ce({props:e,name:"MuiStack"})});function aS(e){return ie("MuiFormHelperText",e)}const tp=se("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var rp;const iS=["children","className","component","disabled","error","filled","focused","margin","required","variant"],sS=e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:l,required:u}=e,c={root:["root",o&&"disabled",a&&"error",n&&`size${z(n)}`,r&&"contained",l&&"focused",i&&"filled",u&&"required"]};return le(c,aS,t)},lS=I("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${z(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>y({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${tp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${tp.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),cS=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=n,l=W(n,iS),u=Qr(),c=Yn({props:n,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),d=y({},n,{component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=sS(d);return S.jsx(lS,y({as:i,ownerState:d,className:B(f.root,a),ref:r},l,{children:o===" "?rp||(rp=S.jsx("span",{className:"notranslate",children:"​"})):o}))});function uS(e){return ie("MuiFormLabel",e)}const _o=se("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),dS=["children","className","color","component","disabled","error","filled","focused","required"],fS=e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:l}=e,u={root:["root",`color${z(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return le(u,uS,t)},pS=I("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>y({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>y({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${_o.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${_o.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${_o.error}`]:{color:(e.vars||e).palette.error.main}})),mS=I("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${_o.error}`]:{color:(e.vars||e).palette.error.main}})),vS=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=n,l=W(n,dS),u=Qr(),c=Yn({props:n,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),d=y({},n,{color:c.color||"primary",component:i,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=fS(d);return S.jsxs(pS,y({as:i,ownerState:d,className:B(f.root,a),ref:r},l,{children:[o,c.required&&S.jsxs(mS,{ownerState:d,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),gS=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Kl(e){return`scale(${e}, ${e**2})`}const hS={entering:{opacity:1,transform:Kl(1)},entered:{opacity:1,transform:"none"}},vl=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),fi=s.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:f,onExited:p,onExiting:m,style:g,timeout:v="auto",TransitionComponent:b=Kt}=t,x=W(t,gS),C=mn(),O=s.useRef(),h=Yr(),_=s.useRef(null),E=De(_,a.ref,r),w=F=>N=>{if(F){const D=_.current;N===void 0?F(D):F(D,N)}},P=w(d),k=w((F,N)=>{Nu(F);const{duration:D,delay:R,easing:L}=Mn({style:g,timeout:v,easing:i},{mode:"enter"});let H;v==="auto"?(H=h.transitions.getAutoHeightDuration(F.clientHeight),O.current=H):H=D,F.style.transition=[h.transitions.create("opacity",{duration:H,delay:R}),h.transitions.create("transform",{duration:vl?H:H*.666,delay:R,easing:L})].join(","),u&&u(F,N)}),$=w(c),T=w(m),A=w(F=>{const{duration:N,delay:D,easing:R}=Mn({style:g,timeout:v,easing:i},{mode:"exit"});let L;v==="auto"?(L=h.transitions.getAutoHeightDuration(F.clientHeight),O.current=L):L=N,F.style.transition=[h.transitions.create("opacity",{duration:L,delay:D}),h.transitions.create("transform",{duration:vl?L:L*.666,delay:vl?D:D||L*.333,easing:R})].join(","),F.style.opacity=0,F.style.transform=Kl(.75),f&&f(F)}),M=w(p),j=F=>{v==="auto"&&C.start(O.current||0,F),n&&n(_.current,F)};return S.jsx(b,y({appear:o,in:l,nodeRef:_,onEnter:k,onEntered:$,onEntering:P,onExit:A,onExited:M,onExiting:T,addEndListener:j,timeout:v==="auto"?null:v},x,{children:(F,N)=>s.cloneElement(a,y({style:y({opacity:0,transform:Kl(.75),visibility:F==="exited"&&!l?"hidden":void 0},hS[F],g,a.props.style),ref:E},N))}))});fi.muiSupportAuto=!0;const yS=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],bS=e=>{const{classes:t,disableUnderline:r}=e,o=le({root:["root",!r&&"underline"],input:["input"]},qw,t);return y({},t,o)},xS=I(zs,{shouldForwardProp:e=>mt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Ls(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),y({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${lo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${lo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${lo.disabled}, .${lo.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${lo.disabled}:before`]:{borderBottomStyle:"dotted"}})}),OS=I(Ws,{name:"MuiInput",slot:"Input",overridesResolver:Ds})({}),Zu=s.forwardRef(function(t,r){var n,o,a,i;const l=ce({props:t,name:"MuiInput"}),{disableUnderline:u,components:c={},componentsProps:d,fullWidth:f=!1,inputComponent:p="input",multiline:m=!1,slotProps:g,slots:v={},type:b="text"}=l,x=W(l,yS),C=bS(l),h={root:{ownerState:{disableUnderline:u}}},_=g??d?at(g??d,h):h,E=(n=(o=v.root)!=null?o:c.Root)!=null?n:xS,w=(a=(i=v.input)!=null?i:c.Input)!=null?a:OS;return S.jsx(Ku,y({slots:{root:E,input:w},slotProps:_,fullWidth:f,inputComponent:p,multiline:m,ref:r,type:b},x,{classes:C}))});Zu.muiName="Input";function _S(e){return ie("MuiInputLabel",e)}se("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const CS=["disableAnimation","margin","shrink","variant","className"],wS=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:l}=e,u={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${z(n)}`,i],asterisk:[l&&"asterisk"]},c=le(u,_S,t);return y({},t,c)},ES=I(vS,{shouldForwardProp:e=>mt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${_o.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>y({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&y({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&y({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&y({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),PS=s.forwardRef(function(t,r){const n=ce({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=n,l=W(n,CS),u=Qr();let c=a;typeof c>"u"&&u&&(c=u.filled||u.focused||u.adornedStart);const d=Yn({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),f=y({},n,{disableAnimation:o,formControl:u,shrink:c,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),p=wS(f);return S.jsx(ES,y({"data-shrink":c,ownerState:f,ref:r,className:B(p.root,i)},l,{classes:p}))}),Lo=s.createContext({});function SS(e){return ie("MuiList",e)}se("MuiList",["root","padding","dense","subheader"]);const $S=["children","className","component","dense","disablePadding","subheader"],RS=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return le({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},SS,t)},kS=I("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>y({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),TS=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:l=!1,disablePadding:u=!1,subheader:c}=n,d=W(n,$S),f=s.useMemo(()=>({dense:l}),[l]),p=y({},n,{component:i,dense:l,disablePadding:u}),m=RS(p);return S.jsx(Lo.Provider,{value:f,children:S.jsxs(kS,y({as:i,className:B(m.root,a),ref:r,ownerState:p},d,{children:[c,o]}))})});function IS(e){return ie("MuiListItemIcon",e)}const np=se("MuiListItemIcon",["root","alignItemsFlexStart"]),jS=["className"],AS=e=>{const{alignItems:t,classes:r}=e;return le({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},IS,r)},MS=I("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>y({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Dr=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiListItemIcon"}),{className:o}=n,a=W(n,jS),i=s.useContext(Lo),l=y({},n,{alignItems:i.alignItems}),u=AS(l);return S.jsx(MS,y({className:B(u.root,o),ownerState:l,ref:r},a))});function NS(e){return ie("MuiListItemText",e)}const pi=se("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),FS=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],BS=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return le({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},NS,t)},LS=I("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${pi.primary}`]:t.primary},{[`& .${pi.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>y({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),gn=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:l=!1,primary:u,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:f}=n,p=W(n,FS),{dense:m}=s.useContext(Lo);let g=u??o,v=d;const b=y({},n,{disableTypography:i,inset:l,primary:!!g,secondary:!!v,dense:m}),x=BS(b);return g!=null&&g.type!==Le&&!i&&(g=S.jsx(Le,y({variant:m?"body2":"body1",className:x.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:g}))),v!=null&&v.type!==Le&&!i&&(v=S.jsx(Le,y({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},f,{children:v}))),S.jsxs(LS,y({className:B(x.root,a),ownerState:b,ref:r},p,{children:[g,v]}))}),DS=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function gl(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function op(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Gv(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function co(e,t,r,n,o,a){let i=!1,l=o(e,t,t?r:!1);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const u=n?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Gv(l,a)||u)l=o(e,l,r);else return l.focus(),!0}return!1}const Xv=s.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:l,disabledItemsFocusable:u=!1,disableListWrap:c=!1,onKeyDown:d,variant:f="selectedMenu"}=t,p=W(t,DS),m=s.useRef(null),g=s.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Mt(()=>{o&&m.current.focus()},[o]),s.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(O,{direction:h})=>{const _=!m.current.style.width;if(O.clientHeight{const h=m.current,_=O.key,E=ut(h).activeElement;if(_==="ArrowDown")O.preventDefault(),co(h,E,c,u,gl);else if(_==="ArrowUp")O.preventDefault(),co(h,E,c,u,op);else if(_==="Home")O.preventDefault(),co(h,null,c,u,gl);else if(_==="End")O.preventDefault(),co(h,null,c,u,op);else if(_.length===1){const w=g.current,P=_.toLowerCase(),k=performance.now();w.keys.length>0&&(k-w.lastTime>500?(w.keys=[],w.repeating=!0,w.previousKeyMatched=!0):w.repeating&&P!==w.keys[0]&&(w.repeating=!1)),w.lastTime=k,w.keys.push(P);const $=E&&!w.repeating&&Gv(E,w);w.previousKeyMatched&&($||co(h,E,!1,u,gl,w))?O.preventDefault():w.previousKeyMatched=!1}d&&d(O)},b=De(m,r);let x=-1;s.Children.forEach(i,(O,h)=>{if(!s.isValidElement(O)){x===h&&(x+=1,x>=i.length&&(x=-1));return}O.props.disabled||(f==="selectedMenu"&&O.props.selected||x===-1)&&(x=h),x===h&&(O.props.disabled||O.props.muiSkipListHighlight||O.type.muiSkipListHighlight)&&(x+=1,x>=i.length&&(x=-1))});const C=s.Children.map(i,(O,h)=>{if(h===x){const _={};return a&&(_.autoFocus=!0),O.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),s.cloneElement(O,_)}return O});return S.jsx(TS,y({role:"menu",ref:b,className:l,onKeyDown:v,tabIndex:o?0:-1},p,{children:C}))});function zS(e){return ie("MuiPopover",e)}se("MuiPopover",["root","paper"]);const WS=["onEntering"],VS=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],HS=["slotProps"];function ap(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function ip(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function sp(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function hl(e){return typeof e=="function"?e():e}const US=e=>{const{classes:t}=e;return le({root:["root"],paper:["paper"]},zS,t)},qS=I(Hv,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yv=I(Xn,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Qv=s.forwardRef(function(t,r){var n,o,a;const i=ce({props:t,name:"MuiPopover"}),{action:l,anchorEl:u,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:p,className:m,container:g,elevation:v=8,marginThreshold:b=16,open:x,PaperProps:C={},slots:O,slotProps:h,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:E=fi,transitionDuration:w="auto",TransitionProps:{onEntering:P}={},disableScrollLock:k=!1}=i,$=W(i.TransitionProps,WS),T=W(i,VS),A=(n=h==null?void 0:h.paper)!=null?n:C,M=s.useRef(),j=De(M,A.ref),F=y({},i,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:b,externalPaperSlotProps:A,transformOrigin:_,TransitionComponent:E,transitionDuration:w,TransitionProps:$}),N=US(F),D=s.useCallback(()=>{if(f==="anchorPosition")return d;const te=hl(u),ve=(te&&te.nodeType===1?te:ut(M.current).body).getBoundingClientRect();return{top:ve.top+ap(ve,c.vertical),left:ve.left+ip(ve,c.horizontal)}},[u,c.horizontal,c.vertical,d,f]),R=s.useCallback(te=>({vertical:ap(te,_.vertical),horizontal:ip(te,_.horizontal)}),[_.horizontal,_.vertical]),L=s.useCallback(te=>{const me={width:te.offsetWidth,height:te.offsetHeight},ve=R(me);if(f==="none")return{top:null,left:null,transformOrigin:sp(ve)};const it=D();let Ke=it.top-ve.vertical,Ae=it.left-ve.horizontal;const ze=Ke+me.height,ke=Ae+me.width,_e=tr(hl(u)),Ye=_e.innerHeight-b,je=_e.innerWidth-b;if(b!==null&&KeYe){const Oe=ze-Ye;Ke-=Oe,ve.vertical+=Oe}if(b!==null&&Aeje){const Oe=ke-je;Ae-=Oe,ve.horizontal+=Oe}return{top:`${Math.round(Ke)}px`,left:`${Math.round(Ae)}px`,transformOrigin:sp(ve)}},[u,f,D,R,b]),[H,ye]=s.useState(x),V=s.useCallback(()=>{const te=M.current;if(!te)return;const me=L(te);me.top!==null&&(te.style.top=me.top),me.left!==null&&(te.style.left=me.left),te.style.transformOrigin=me.transformOrigin,ye(!0)},[L]);s.useEffect(()=>(k&&window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)),[u,k,V]);const Q=(te,me)=>{P&&P(te,me),V()},G=()=>{ye(!1)};s.useEffect(()=>{x&&V()}),s.useImperativeHandle(l,()=>x?{updatePosition:()=>{V()}}:null,[x,V]),s.useEffect(()=>{if(!x)return;const te=ws(()=>{V()}),me=tr(u);return me.addEventListener("resize",te),()=>{te.clear(),me.removeEventListener("resize",te)}},[u,x,V]);let re=w;w==="auto"&&!E.muiSupportAuto&&(re=void 0);const ne=g||(u?ut(hl(u)).body:void 0),X=(o=O==null?void 0:O.root)!=null?o:qS,ee=(a=O==null?void 0:O.paper)!=null?a:Yv,U=Kr({elementType:ee,externalSlotProps:y({},A,{style:H?A.style:y({},A.style,{opacity:0})}),additionalProps:{elevation:v,ref:j},ownerState:F,className:B(N.paper,A==null?void 0:A.className)}),de=Kr({elementType:X,externalSlotProps:(h==null?void 0:h.root)||{},externalForwardedProps:T,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:ne,open:x},ownerState:F,className:B(N.root,m)}),{slotProps:oe}=de,xe=W(de,HS);return S.jsx(X,y({},xe,!ii(X)&&{slotProps:oe,disableScrollLock:k},{children:S.jsx(E,y({appear:!0,in:x,onEntering:Q,onExited:G,timeout:re},$,{children:S.jsx(ee,y({},U,{children:p}))}))}))});function KS(e){return ie("MuiMenu",e)}se("MuiMenu",["root","paper","list"]);const GS=["onEntering"],XS=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],YS={vertical:"top",horizontal:"right"},QS={vertical:"top",horizontal:"left"},JS=e=>{const{classes:t}=e;return le({root:["root"],paper:["paper"],list:["list"]},KS,t)},ZS=I(Qv,{shouldForwardProp:e=>mt(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),e$=I(Yv,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),t$=I(Xv,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Ks=s.forwardRef(function(t,r){var n,o;const a=ce({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:l,className:u,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:f,open:p,PaperProps:m={},PopoverClasses:g,transitionDuration:v="auto",TransitionProps:{onEntering:b}={},variant:x="selectedMenu",slots:C={},slotProps:O={}}=a,h=W(a.TransitionProps,GS),_=W(a,XS),E=fv(),w=y({},a,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:d,onEntering:b,PaperProps:m,transitionDuration:v,TransitionProps:h,variant:x}),P=JS(w),k=i&&!c&&p,$=s.useRef(null),T=(R,L)=>{$.current&&$.current.adjustStyleForScrollbar(R,{direction:E?"rtl":"ltr"}),b&&b(R,L)},A=R=>{R.key==="Tab"&&(R.preventDefault(),f&&f(R,"tabKeyDown"))};let M=-1;s.Children.map(l,(R,L)=>{s.isValidElement(R)&&(R.props.disabled||(x==="selectedMenu"&&R.props.selected||M===-1)&&(M=L))});const j=(n=C.paper)!=null?n:e$,F=(o=O.paper)!=null?o:m,N=Kr({elementType:C.root,externalSlotProps:O.root,ownerState:w,className:[P.root,u]}),D=Kr({elementType:j,externalSlotProps:F,ownerState:w,className:P.paper});return S.jsx(ZS,y({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?YS:QS,slots:{paper:j,root:C.root},slotProps:{root:N,paper:D},open:p,ref:r,transitionDuration:v,TransitionProps:y({onEntering:T},h),ownerState:w},_,{classes:g,children:S.jsx(t$,y({onKeyDown:A,actions:$,autoFocus:i&&(M===-1||c),autoFocusItem:k,variant:x},d,{className:B(P.list,d.className),children:l}))}))});function r$(e){return ie("MuiMenuItem",e)}const uo=se("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),n$=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],o$=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},a$=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,u=le({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},r$,i);return y({},i,u)},i$=I(Nn,{shouldForwardProp:e=>mt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:o$})(({theme:e,ownerState:t})=>y({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${uo.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Te(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${uo.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Te(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${uo.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Te(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Te(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${uo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${uo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ep.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ep.inset}`]:{marginLeft:52},[`& .${pi.root}`]:{marginTop:0,marginBottom:0},[`& .${pi.inset}`]:{paddingLeft:36},[`& .${np.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&y({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${np.root} svg`]:{fontSize:"1.25rem"}}))),Or=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:f,className:p}=n,m=W(n,n$),g=s.useContext(Lo),v=s.useMemo(()=>({dense:i||g.dense||!1,disableGutters:u}),[g.dense,i,u]),b=s.useRef(null);Mt(()=>{o&&b.current&&b.current.focus()},[o]);const x=y({},n,{dense:v.dense,divider:l,disableGutters:u}),C=a$(n),O=De(b,r);let h;return n.disabled||(h=f!==void 0?f:-1),S.jsx(Lo.Provider,{value:v,children:S.jsx(i$,y({ref:O,role:d,tabIndex:h,component:a,focusVisibleClassName:B(C.focusVisible,c),className:B(C.root,p)},m,{ownerState:x,classes:C}))})});function s$(e){return ie("MuiNativeSelect",e)}const ed=se("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),l$=["className","disabled","error","IconComponent","inputRef","variant"],c$=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,l={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${z(r)}`,a&&"iconOpen",n&&"disabled"]};return le(l,s$,t)},Jv=({ownerState:e,theme:t})=>y({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":y({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${ed.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),u$=I("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:mt,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${ed.multiple}`]:t.multiple}]}})(Jv),Zv=({ownerState:e,theme:t})=>y({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ed.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),d$=I("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${z(r.variant)}`],r.open&&t.iconOpen]}})(Zv),f$=s.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:l,variant:u="standard"}=t,c=W(t,l$),d=y({},t,{disabled:o,variant:u,error:a}),f=c$(d);return S.jsxs(s.Fragment,{children:[S.jsx(u$,y({ownerState:d,className:B(f.select,n),disabled:o,ref:l||r},c)),t.multiple?null:S.jsx(d$,{as:i,ownerState:d,className:f.icon})]})});var lp;const p$=["children","classes","className","label","notched"],m$=I("fieldset",{shouldForwardProp:mt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),v$=I("legend",{shouldForwardProp:mt})(({ownerState:e,theme:t})=>y({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&y({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function g$(e){const{className:t,label:r,notched:n}=e,o=W(e,p$),a=r!=null&&r!=="",i=y({},e,{notched:n,withLabel:a});return S.jsx(m$,y({"aria-hidden":!0,className:t,ownerState:i},o,{children:S.jsx(v$,{ownerState:i,children:a?S.jsx("span",{children:r}):lp||(lp=S.jsx("span",{className:"notranslate",children:"​"}))})}))}const h$=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],y$=e=>{const{classes:t}=e,n=le({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Kw,t);return y({},t,n)},b$=I(zs,{shouldForwardProp:e=>mt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ls})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return y({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${yr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${yr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${yr.focused} .${yr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${yr.error} .${yr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${yr.disabled} .${yr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&y({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),x$=I(g$,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),O$=I(Ws,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ds})(({theme:e,ownerState:t})=>y({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),td=s.forwardRef(function(t,r){var n,o,a,i,l;const u=ce({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:d=!1,inputComponent:f="input",label:p,multiline:m=!1,notched:g,slots:v={},type:b="text"}=u,x=W(u,h$),C=y$(u),O=Qr(),h=Yn({props:u,muiFormControl:O,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=y({},u,{color:h.color||"primary",disabled:h.disabled,error:h.error,focused:h.focused,formControl:O,fullWidth:d,hiddenLabel:h.hiddenLabel,multiline:m,size:h.size,type:b}),E=(n=(o=v.root)!=null?o:c.Root)!=null?n:b$,w=(a=(i=v.input)!=null?i:c.Input)!=null?a:O$;return S.jsx(Ku,y({slots:{root:E,input:w},renderSuffix:P=>S.jsx(x$,{ownerState:_,className:C.notchedOutline,label:p!=null&&p!==""&&h.required?l||(l=S.jsxs(s.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:d,inputComponent:f,multiline:m,ref:r,type:b},x,{classes:y({},C,{notchedOutline:null})}))});td.muiName="Input";function _$(e){return ie("MuiSelect",e)}const fo=se("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var cp;const C$=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],w$=I("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${fo.select}`]:t.select},{[`&.${fo.select}`]:t[r.variant]},{[`&.${fo.error}`]:t.error},{[`&.${fo.multiple}`]:t.multiple}]}})(Jv,{[`&.${fo.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),E$=I("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${z(r.variant)}`],r.open&&t.iconOpen]}})(Zv),P$=I("input",{shouldForwardProp:e=>Ev(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function up(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function S$(e){return e==null||typeof e=="string"&&!e.trim()}const $$=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,l={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${z(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return le(l,_$,t)},R$=s.forwardRef(function(t,r){var n;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:l,children:u,className:c,defaultOpen:d,defaultValue:f,disabled:p,displayEmpty:m,error:g=!1,IconComponent:v,inputRef:b,labelId:x,MenuProps:C={},multiple:O,name:h,onBlur:_,onChange:E,onClose:w,onFocus:P,onOpen:k,open:$,readOnly:T,renderValue:A,SelectDisplayProps:M={},tabIndex:j,value:F,variant:N="standard"}=t,D=W(t,C$),[R,L]=No({controlled:F,default:f,name:"Select"}),[H,ye]=No({controlled:$,default:d,name:"Select"}),V=s.useRef(null),Q=s.useRef(null),[G,re]=s.useState(null),{current:ne}=s.useRef($!=null),[X,ee]=s.useState(),U=De(r,b),de=s.useCallback(q=>{Q.current=q,q&&re(q)},[]),oe=G==null?void 0:G.parentNode;s.useImperativeHandle(U,()=>({focus:()=>{Q.current.focus()},node:V.current,value:R}),[R]),s.useEffect(()=>{d&&H&&G&&!ne&&(ee(l?null:oe.clientWidth),Q.current.focus())},[G,l]),s.useEffect(()=>{i&&Q.current.focus()},[i]),s.useEffect(()=>{if(!x)return;const q=ut(Q.current).getElementById(x);if(q){const we=()=>{getSelection().isCollapsed&&Q.current.focus()};return q.addEventListener("click",we),()=>{q.removeEventListener("click",we)}}},[x]);const xe=(q,we)=>{q?k&&k(we):w&&w(we),ne||(ee(l?null:oe.clientWidth),ye(q))},te=q=>{q.button===0&&(q.preventDefault(),Q.current.focus(),xe(!0,q))},me=q=>{xe(!1,q)},ve=s.Children.toArray(u),it=q=>{const we=ve.find(Se=>Se.props.value===q.target.value);we!==void 0&&(L(we.props.value),E&&E(q,we))},Ke=q=>we=>{let Se;if(we.currentTarget.hasAttribute("tabindex")){if(O){Se=Array.isArray(R)?R.slice():[];const Je=R.indexOf(q.props.value);Je===-1?Se.push(q.props.value):Se.splice(Je,1)}else Se=q.props.value;if(q.props.onClick&&q.props.onClick(we),R!==Se&&(L(Se),E)){const Je=we.nativeEvent||we,Vt=new Je.constructor(Je.type,Je);Object.defineProperty(Vt,"target",{writable:!0,value:{value:Se,name:h}}),E(Vt,q)}O||xe(!1,we)}},Ae=q=>{T||[" ","ArrowUp","ArrowDown","Enter"].indexOf(q.key)!==-1&&(q.preventDefault(),xe(!0,q))},ze=G!==null&&H,ke=q=>{!ze&&_&&(Object.defineProperty(q,"target",{writable:!0,value:{value:R,name:h}}),_(q))};delete D["aria-invalid"];let _e,Ye;const je=[];let Oe=!1;(ui({value:R})||m)&&(A?_e=A(R):Oe=!0);const We=ve.map(q=>{if(!s.isValidElement(q))return null;let we;if(O){if(!Array.isArray(R))throw new Error(cr(2));we=R.some(Se=>up(Se,q.props.value)),we&&Oe&&je.push(q.props.children)}else we=up(R,q.props.value),we&&Oe&&(Ye=q.props.children);return s.cloneElement(q,{"aria-selected":we?"true":"false",onClick:Ke(q),onKeyUp:Se=>{Se.key===" "&&Se.preventDefault(),q.props.onKeyUp&&q.props.onKeyUp(Se)},role:"option",selected:we,value:void 0,"data-value":q.props.value})});Oe&&(O?je.length===0?_e=null:_e=je.reduce((q,we,Se)=>(q.push(we),Se{const{classes:t}=e;return t},rd={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>mt(e)&&e!=="variant",slot:"Root"},j$=I(Zu,rd)(""),A$=I(td,rd)(""),M$=I(Ju,rd)(""),eg=s.forwardRef(function(t,r){const n=ce({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:l,defaultOpen:u=!1,displayEmpty:c=!1,IconComponent:d=Xw,id:f,input:p,inputProps:m,label:g,labelId:v,MenuProps:b,multiple:x=!1,native:C=!1,onClose:O,onOpen:h,open:_,renderValue:E,SelectDisplayProps:w,variant:P="outlined"}=n,k=W(n,k$),$=C?f$:R$,T=Qr(),A=Yn({props:n,muiFormControl:T,states:["variant","error"]}),M=A.variant||P,j=y({},n,{variant:M,classes:i}),F=I$(j),N=W(F,T$),D=p||{standard:S.jsx(j$,{ownerState:j}),outlined:S.jsx(A$,{label:g,ownerState:j}),filled:S.jsx(M$,{ownerState:j})}[M],R=De(r,D.ref);return S.jsx(s.Fragment,{children:s.cloneElement(D,y({inputComponent:$,inputProps:y({children:a,error:A.error,IconComponent:d,variant:M,type:void 0,multiple:x},C?{id:f}:{autoWidth:o,defaultOpen:u,displayEmpty:c,labelId:v,MenuProps:b,onClose:O,onOpen:h,open:_,renderValue:E,SelectDisplayProps:y({id:f},w)},m,{classes:m?at(N,m.classes):N},p?p.props.inputProps:{})},(x&&C||c)&&M==="outlined"?{notched:!0}:{},{ref:R,className:B(D.props.className,l,F.root)},!p&&{variant:M},k))})});eg.muiName="Select";function N$(e){return ie("MuiTooltip",e)}const _r=se("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),F$=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function B$(e){return Math.round(e*1e5)/1e5}const L$=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:a}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${z(a.split("-")[0])}`],arrow:["arrow"]};return le(i,N$,t)},D$=I(Dv,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>y({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${_r.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${_r.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${_r.arrow}`]:y({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${_r.arrow}`]:y({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),z$=I("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${z(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>y({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Te(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${B$(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${_r.popper}[data-popper-placement*="left"] &`]:y({transformOrigin:"right center"},t.isRtl?y({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):y({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${_r.popper}[data-popper-placement*="right"] &`]:y({transformOrigin:"left center"},t.isRtl?y({marginRight:"14px"},t.touch&&{marginRight:"24px"}):y({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${_r.popper}[data-popper-placement*="top"] &`]:y({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${_r.popper}[data-popper-placement*="bottom"] &`]:y({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),W$=I("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Te(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let _a=!1;const dp=new Qo;let po={x:0,y:0};function Ca(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Jr=s.forwardRef(function(t,r){var n,o,a,i,l,u,c,d,f,p,m,g,v,b,x,C,O,h,_;const E=ce({props:t,name:"MuiTooltip"}),{arrow:w=!1,children:P,components:k={},componentsProps:$={},describeChild:T=!1,disableFocusListener:A=!1,disableHoverListener:M=!1,disableInteractive:j=!1,disableTouchListener:F=!1,enterDelay:N=100,enterNextDelay:D=0,enterTouchDelay:R=700,followCursor:L=!1,id:H,leaveDelay:ye=0,leaveTouchDelay:V=1500,onClose:Q,onOpen:G,open:re,placement:ne="bottom",PopperComponent:X,PopperProps:ee={},slotProps:U={},slots:de={},title:oe,TransitionComponent:xe=fi,TransitionProps:te}=E,me=W(E,F$),ve=s.isValidElement(P)?P:S.jsx("span",{children:P}),it=Yr(),Ke=fv(),[Ae,ze]=s.useState(),[ke,_e]=s.useState(null),Ye=s.useRef(!1),je=j||L,Oe=mn(),We=mn(),Qe=mn(),tt=mn(),[ue,Y]=No({controlled:re,default:!1,name:"Tooltip",state:"open"});let Ve=ue;const dt=Yo(H),vt=s.useRef(),q=sr(()=>{vt.current!==void 0&&(document.body.style.WebkitUserSelect=vt.current,vt.current=void 0),tt.clear()});s.useEffect(()=>q,[q]);const we=fe=>{dp.clear(),_a=!0,Y(!0),G&&!Ve&&G(fe)},Se=sr(fe=>{dp.start(800+ye,()=>{_a=!1}),Y(!1),Q&&Ve&&Q(fe),Oe.start(it.transitions.duration.shortest,()=>{Ye.current=!1})}),Je=fe=>{Ye.current&&fe.type!=="touchstart"||(Ae&&Ae.removeAttribute("title"),We.clear(),Qe.clear(),N||_a&&D?We.start(_a?D:N,()=>{we(fe)}):we(fe))},Vt=fe=>{We.clear(),Qe.start(ye,()=>{Se(fe)})},{isFocusVisibleRef:ca,onBlur:gt,onFocus:Qn,ref:ua}=$u(),[,en]=s.useState(!1),Jn=fe=>{gt(fe),ca.current===!1&&(en(!1),Vt(fe))},ht=fe=>{Ae||ze(fe.currentTarget),Qn(fe),ca.current===!0&&(en(!0),Je(fe))},kt=fe=>{Ye.current=!0;const ft=ve.props;ft.onTouchStart&&ft.onTouchStart(fe)},el=fe=>{kt(fe),Qe.clear(),Oe.clear(),q(),vt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",tt.start(R,()=>{document.body.style.WebkitUserSelect=vt.current,Je(fe)})},Zn=fe=>{ve.props.onTouchEnd&&ve.props.onTouchEnd(fe),q(),Qe.start(V,()=>{Se(fe)})};s.useEffect(()=>{if(!Ve)return;function fe(ft){(ft.key==="Escape"||ft.key==="Esc")&&Se(ft)}return document.addEventListener("keydown",fe),()=>{document.removeEventListener("keydown",fe)}},[Se,Ve]);const eo=De(ve.ref,ua,ze,r);!oe&&oe!==0&&(Ve=!1);const Gt=s.useRef(),da=fe=>{const ft=ve.props;ft.onMouseMove&&ft.onMouseMove(fe),po={x:fe.clientX,y:fe.clientY},Gt.current&&Gt.current.update()},mr={},st=typeof oe=="string";T?(mr.title=!Ve&&st&&!M?oe:null,mr["aria-describedby"]=Ve?dt:null):(mr["aria-label"]=st?oe:null,mr["aria-labelledby"]=Ve&&!st?dt:null);const lt=y({},mr,me,ve.props,{className:B(me.className,ve.props.className),onTouchStart:kt,ref:eo},L?{onMouseMove:da}:{}),Rr={};F||(lt.onTouchStart=el,lt.onTouchEnd=Zn),M||(lt.onMouseOver=Ca(Je,lt.onMouseOver),lt.onMouseLeave=Ca(Vt,lt.onMouseLeave),je||(Rr.onMouseOver=Je,Rr.onMouseLeave=Vt)),A||(lt.onFocus=Ca(ht,lt.onFocus),lt.onBlur=Ca(Jn,lt.onBlur),je||(Rr.onFocus=ht,Rr.onBlur=Jn));const kr=s.useMemo(()=>{var fe;let ft=[{name:"arrow",enabled:!!ke,options:{element:ke,padding:4}}];return(fe=ee.popperOptions)!=null&&fe.modifiers&&(ft=ft.concat(ee.popperOptions.modifiers)),y({},ee.popperOptions,{modifiers:ft})},[ke,ee]),vr=y({},E,{isRtl:Ke,arrow:w,disableInteractive:je,placement:ne,PopperComponentProp:X,touch:Ye.current}),gr=L$(vr),to=(n=(o=de.popper)!=null?o:k.Popper)!=null?n:D$,ro=(a=(i=(l=de.transition)!=null?l:k.Transition)!=null?i:xe)!=null?a:fi,fa=(u=(c=de.tooltip)!=null?c:k.Tooltip)!=null?u:z$,no=(d=(f=de.arrow)!=null?f:k.Arrow)!=null?d:W$,wt=vn(to,y({},ee,(p=U.popper)!=null?p:$.popper,{className:B(gr.popper,ee==null?void 0:ee.className,(m=(g=U.popper)!=null?g:$.popper)==null?void 0:m.className)}),vr),tl=vn(ro,y({},te,(v=U.transition)!=null?v:$.transition),vr),rl=vn(fa,y({},(b=U.tooltip)!=null?b:$.tooltip,{className:B(gr.tooltip,(x=(C=U.tooltip)!=null?C:$.tooltip)==null?void 0:x.className)}),vr),oo=vn(no,y({},(O=U.arrow)!=null?O:$.arrow,{className:B(gr.arrow,(h=(_=U.arrow)!=null?_:$.arrow)==null?void 0:h.className)}),vr);return S.jsxs(s.Fragment,{children:[s.cloneElement(ve,lt),S.jsx(to,y({as:X??Dv,placement:ne,anchorEl:L?{getBoundingClientRect:()=>({top:po.y,left:po.x,right:po.x,bottom:po.y,width:0,height:0})}:Ae,popperRef:Gt,open:Ae?Ve:!1,id:dt,transition:!0},Rr,wt,{popperOptions:kr,children:({TransitionProps:fe})=>S.jsx(ro,y({timeout:it.transitions.duration.shorter},fe,tl,{children:S.jsxs(fa,y({},rl,{children:[oe,w?S.jsx(no,y({},oo,{ref:_e})):null]}))}))}))]})}),V$=s.createContext(),H$=s.createContext();function U$(e){return ie("MuiTableCell",e)}const q$=se("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),K$=["align","className","component","padding","scope","size","sortDirection","variant"],G$=e=>{const{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:i}=e,l={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${z(n)}`,o!=="normal"&&`padding${z(o)}`,`size${z(a)}`]};return le(l,U$,t)},X$=I("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${z(r.size)}`],r.padding!=="normal"&&t[`padding${z(r.padding)}`],r.align!=="inherit"&&t[`align${z(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>y({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?hv(Te(e.palette.divider,1),.88):gv(Te(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${q$.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Et=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:l,scope:u,size:c,sortDirection:d,variant:f}=n,p=W(n,K$),m=s.useContext(V$),g=s.useContext(H$),v=g&&g.variant==="head";let b;i?b=i:b=v?"th":"td";let x=u;b==="td"?x=void 0:!x&&v&&(x="col");const C=f||g&&g.variant,O=y({},n,{align:o,component:b,padding:l||(m&&m.padding?m.padding:"normal"),size:c||(m&&m.size?m.size:"medium"),sortDirection:d,stickyHeader:C==="head"&&m&&m.stickyHeader,variant:C}),h=G$(O);let _=null;return d&&(_=d==="asc"?"ascending":"descending"),S.jsx(X$,y({as:b,ref:r,className:B(h.root,a),"aria-sort":_,scope:x,ownerState:O},p))});function Y$(e){return ie("MuiToolbar",e)}se("MuiToolbar",["root","gutters","regular","dense"]);const Q$=["className","component","disableGutters","variant"],J$=e=>{const{classes:t,disableGutters:r,variant:n}=e;return le({root:["root",!r&&"gutters",n]},Y$,t)},Z$=I("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>y({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),ra=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:l="regular"}=n,u=W(n,Q$),c=y({},n,{component:a,disableGutters:i,variant:l}),d=J$(c);return S.jsx(Z$,y({as:a,className:B(d.root,o),ref:r,ownerState:c},u))}),b4=fr(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),x4=fr(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function eR(e){return ie("MuiTextField",e)}se("MuiTextField",["root"]);const tR=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],rR={standard:Zu,filled:Ju,outlined:td},nR=e=>{const{classes:t}=e;return le({root:["root"]},eR,t)},oR=I(oS,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Gs=s.forwardRef(function(t,r){const n=ce({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:l,color:u="primary",defaultValue:c,disabled:d=!1,error:f=!1,FormHelperTextProps:p,fullWidth:m=!1,helperText:g,id:v,InputLabelProps:b,inputProps:x,InputProps:C,inputRef:O,label:h,maxRows:_,minRows:E,multiline:w=!1,name:P,onBlur:k,onChange:$,onFocus:T,placeholder:A,required:M=!1,rows:j,select:F=!1,SelectProps:N,type:D,value:R,variant:L="outlined"}=n,H=W(n,tR),ye=y({},n,{autoFocus:a,color:u,disabled:d,error:f,fullWidth:m,multiline:w,required:M,select:F,variant:L}),V=nR(ye),Q={};L==="outlined"&&(b&&typeof b.shrink<"u"&&(Q.notched=b.shrink),Q.label=h),F&&((!N||!N.native)&&(Q.id=void 0),Q["aria-describedby"]=void 0);const G=Yo(v),re=g&&G?`${G}-helper-text`:void 0,ne=h&&G?`${G}-label`:void 0,X=rR[L],ee=S.jsx(X,y({"aria-describedby":re,autoComplete:o,autoFocus:a,defaultValue:c,fullWidth:m,multiline:w,name:P,rows:j,maxRows:_,minRows:E,type:D,value:R,id:G,inputRef:O,onBlur:k,onChange:$,onFocus:T,placeholder:A,inputProps:x},Q,C));return S.jsxs(oR,y({className:B(V.root,l),disabled:d,error:f,fullWidth:m,ref:r,required:M,color:u,variant:L,ownerState:ye},H,{children:[h!=null&&h!==""&&S.jsx(PS,y({htmlFor:G,id:ne},b,{children:h})),F?S.jsx(eg,y({"aria-describedby":re,id:G,labelId:ne,value:R,input:ee},N,{children:i})):ee,g&&S.jsx(cS,y({id:re},p,{children:g}))]}))}),aR=["getTrigger","target"];function iR(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:o}=t,a=e.current;return o&&(e.current=o.pageYOffset!==void 0?o.pageYOffset:o.scrollTop),!r&&a!==void 0&&e.currentn}const sR=typeof window<"u"?window:null;function tg(e={}){const{getTrigger:t=iR,target:r=sR}=e,n=W(e,aR),o=s.useRef(),[a,i]=s.useState(()=>t(o,n));return s.useEffect(()=>{const l=()=>{i(t(o,y({target:r},n)))};return l(),r.addEventListener("scroll",l,{passive:!0}),()=>{r.removeEventListener("scroll",l,{passive:!0})}},[r,t,JSON.stringify(n)]),a}var nd={},yl={};const lR=dr(p_);var fp;function he(){return fp||(fp=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=lR}(yl)),yl}var cR=pe;Object.defineProperty(nd,"__esModule",{value:!0});var Xs=nd.default=void 0,uR=cR(he()),dR=S;Xs=nd.default=(0,uR.default)((0,dR.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var Co=function(){return Co=Object.assign||function(e){for(var t,r=1,n=arguments.length;r components should be used inside a component or provided the resource prop.");var g=Vn({action:"create",resource:m}),v=g.canAccess,b=g.isPending,x=Ho(),C=ae(),O=Ct(function(E){return E.breakpoints.down("md")}),h=sy({},bR.get(String(l)),f),_=CR(c);return!v||b?null:O?s.createElement(OR,mi({component:Ur,to:x({resource:m,type:"create"}),state:h,color:"primary",className:B(Gl.floating,t),"aria-label":a&&C(a)},p,_),n):s.createElement(_R,mi({component:Ur,to:x({resource:m,type:"create"}),state:h,className:B(Gl.root,t),label:a,variant:u},p,_),n)},bR=new Map([["true",{_scrollToTop:!0}],["false",{}]]),xR=s.createElement(ng,null),vi="RaCreateButton",Gl={root:"".concat(vi,"-root"),floating:"".concat(vi,"-floating")},OR=I(Nb,{name:vi,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["&.".concat(Gl.floating)]={color:r.palette.getContrastText(r.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3},t}),_R=I(Wt,{name:vi,overridesResolver:function(e,t){return t.root}})({});const ag=s.memo(yR,function(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&lr(e.to,t.to)&&lr(e.state,t.state)});var CR=function(e){if(e!=null){if(typeof e=="string")return{to:e};var t=e.redirect,r=e.replace,n=e.state,o=og(e,["redirect","replace","state"]);return{to:o,redirect:t,replace:r,state:n}}},ad={},wR=pe;Object.defineProperty(ad,"__esModule",{value:!0});var ig=ad.default=void 0,ER=wR(he()),PR=S;ig=ad.default=(0,ER.default)((0,PR.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"RemoveRedEye");var Xl=function(){return Xl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r components should be used inside a component or provided the resource prop.");var c=Pr(e),d=Ho(),f=Vn({action:"show",resource:u,record:c}),p=f.canAccess,m=f.isPending;return!c||!p||m?null:s.createElement(Wt,Xl({component:Ur,to:d({type:"show",resource:u,id:c.id}),state:RR[String(i)],label:o,onClick:TR},l),r)},RR={true:{_scrollToTop:!0},false:{}},kR=s.createElement(ig,null),TR=function(e){return e.stopPropagation()},IR=s.memo($R,function(e,t){return e.resource===t.resource&&(e.record&&t.record?e.record.id===t.record.id:e.record==t.record)&&e.label===t.label&&e.disabled===t.disabled}),id={},jR=pe;Object.defineProperty(id,"__esModule",{value:!0});var na=id.default=void 0,AR=jR(he()),MR=S;na=id.default=(0,AR.default)((0,MR.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var Yl=function(){return Yl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?s.createElement(BT,null):null,t&&s.createElement(x2,null),s.createElement(qR,null))},w2=s.createElement(C2,null),E2=s.createElement(fg,null),Nr="RaAppBar",zr={appBar:"".concat(Nr,"-appBar"),toolbar:"".concat(Nr,"-toolbar"),menuButton:"".concat(Nr,"-menuButton"),menuButtonIconClosed:"".concat(Nr,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(Nr,"-menuButtonIconOpen"),title:"".concat(Nr,"-title")},P2=I(iC,{name:Nr,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(zr.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(zr.menuButton)]={marginRight:"0.2em"},t["& .".concat(zr.title)]={},t}),fd={},S2=pe;Object.defineProperty(fd,"__esModule",{value:!0});var yg=fd.default=void 0,$2=S2(he()),pp=S;yg=fd.default=(0,$2.default)([(0,pp.jsx)("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22z"},"0"),(0,pp.jsx)("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")],"WarningAmber");var hi=function(){return hi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element");var u=n===!1?s.createElement(bg,yi({title:r,defaultTitle:t},o)):s.createElement(H2,yi({title:r,defaultTitle:t,preferenceKey:n},o));return s.createElement(s.Fragment,null,Gp.createPortal(u,i))},nc=function(){return nc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r components should be used inside a component or provided with a resource prop.");var a=Vn({action:"delete",resource:o}),i=a.canAccess,l=a.isPending;return!i||l?null:r==="undoable"?s.createElement(oT,Pi({},n)):s.createElement(Zk,Pi({mutationMode:r},n))},Pd={},dT=pe;Object.defineProperty(Pd,"__esModule",{value:!0});var Dg=Pd.default=void 0,fT=dT(he()),pT=S;Dg=Pd.default=(0,fT.default)((0,pT.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}),"GetApp");var bc=function(){return bc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r components should be used inside a component or provided the resource prop.");var a=Vn({action:"delete",resource:o,record:n}),i=a.canAccess,l=a.isPending,u=nm();if(!n||n.id==null||!i||l)return null;var c=t||(u!=null&&u.mutationMode?u.mutationMode:"undoable");return c==="undoable"?s.createElement(vT,$i({record:n},r)):s.createElement(yT,$i({mutationMode:c,record:n},r))},Sd={},_T=pe;Object.defineProperty(Sd,"__esModule",{value:!0});var zg=Sd.default=void 0,CT=_T(he()),wT=S;zg=Sd.default=(0,CT.default)((0,wT.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Create");var xc=function(){return xc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r components should be used inside a component or provided with a resource prop. (The component set the resource prop for all its children).");var d=Pr(e),f=Ho(),p=Vn({action:"edit",resource:c,record:d}),m=p.canAccess,g=p.isPending;return!d||!m||g?null:s.createElement(TT,xc({component:Ur,to:f({type:"edit",resource:c,id:d.id}),state:ST[String(i)],label:o,onClick:RT,className:B(kT.root,l)},u),r)},ST={true:{_scrollToTop:!0},false:{}},$T=s.createElement(zg,null),RT=function(e){return e.stopPropagation()},Wg="RaEditButton",kT={root:"".concat(Wg,"-root")},TT=I(Wt,{name:Wg,overridesResolver:function(e,t){return t.root}})({}),So=function(){return So=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]0,$=nI(b===!1||b===void 0?void 0:!b,c||!k||w||P);au(f==="submit"&&(u&&(u.onSuccess||u.onError)||p),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var T=s.useCallback(function(j){return yp(void 0,void 0,void 0,function(){var F;return bp(this,function(N){switch(N.label){case 0:return h!=null&&h.save?[4,h.save(j,$o($o({},u),{transform:p}))]:[3,2];case 1:F=N.sent(),N.label=2;case 2:return F!=null&&Ay(F,O.setError),[2]}})})},[O.setError,h,u,p]),A=s.useCallback(function(j){return yp(void 0,void 0,void 0,function(){return bp(this,function(F){switch(F.label){case 0:return l&&l(j),j.defaultPrevented?[2]:f!=="button"?[3,2]:(j.stopPropagation(),[4,O.handleSubmit(T)(j)]);case 1:F.sent(),F.label=2;case 2:return[2]}})})},[l,f,O,T]),M=i&&C(i,{_:i});return s.createElement(rI,$o({variant:g,type:f,color:r,"aria-label":M,disabled:$,onClick:A},x),P?s.createElement(Us,{sx:ZT,size:14,thickness:3,color:"inherit"}):o,M)},ZT={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},eI=s.createElement(qg,null),tI="RaSaveButton",rI=I(_t,{name:tI,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),nI=function(e,t){return typeof e>"u"?t:e},oI=function(){return Z.createElement(iI,{onClick:sI,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},aI="RaSkipNavigationButton",iI=I(Wt,{name:aI,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}}),sI=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},_c=function(){return _c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]"u")throw new Error("DatagridRow expects an id prop");var h=th(),_=ae(),E=Pr(e);if(!E)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var w=Xe(e),P=Xr(e),k=P.hasShow||P.hasEdit;if(!w)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var $=(!h||!h.isRowExpandable||h.isRowExpandable(E))&&i,T=Vy(w,f,h&&h.expandSingle),A=T[0],M=T[1],j=s.useState(function(){return Op($,o,u)}),F=j[0],N=j[1];s.useEffect(function(){var V=Op($,o,u);V!==F&&N(V)},[$,F,o,u]);var D=cu(),R=s.useCallback(function(V){M(),V.stopPropagation()},[M]),L=s.useCallback(function(V){!C||!p||(p(f,V),V.stopPropagation())},[f,p,C]),H=Hy(),ye=s.useCallback(function(V){return MI(void 0,void 0,void 0,function(){var Q;return NI(this,function(G){switch(G.label){case 0:return V.persist(),[4,H({record:E,resource:w,link:typeof m=="function"?function(re,ne){return m(re.id,ne,re)}:m})];case 1:return Q=G.sent(),m==="expand"?(R(V),[2]):m==="toggleSelection"?(L(V),[2]):Q===!1||Q==null?[2]:(D(Q,{state:{_scrollToTop:!0}}),[2])}})})},[E,w,m,D,R,L,H]);return Z.createElement(Z.Fragment,null,Z.createElement(Ro,$c({ref:t,className:B(a,(r={},r[J.expandable]=$,r[J.selectable]=C,r[J.clickableRow]=m??k,r)),key:f,style:b,hover:d,onClick:ye},O),i&&Z.createElement(Et,{padding:"none",className:J.expandIconCell},$&&Z.createElement(AI,{className:B(J.expandIcon,(n={},n[J.expanded]=A,n)),expanded:A,onClick:R,expandContentId:"".concat(f,"-expand")})),u&&Z.createElement(Et,{padding:"checkbox"},Z.createElement(di,{"aria-label":_("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(J.checkbox),checked:C&&v,onClick:L,disabled:!C})),Z.Children.map(o,function(V,Q){return s.isValidElement(V)?Z.createElement(eh,{key:"".concat(f,"-").concat(V.props.source||Q),className:B("column-".concat(V.props.source),J.rowCell),record:E,field:V,resource:w}):null})),$&&A&&Z.createElement(Ro,{key:"".concat(f,"-expand"),id:"".concat(f,"-expand"),className:J.expandedPanel},Z.createElement(Et,{colSpan:F},s.isValidElement(i)?i:s.createElement(i))))}),FI=function(e,t){e.children,e.expand;var r=Rc(e,["children","expand"]);t.children,t.expand;var n=Rc(t,["children","expand"]);return Uy(r,n)},nh=s.memo(rh,FI);nh.displayName="PureDatagridRow";var ki=function(){return ki=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=rj&&(a=tj,i=!1,t=new YI(t));e:for(;++o0&&O.length>0&&O.every(function(h){return m.includes(h)}),onChange:C,onClick:function(h){return h.stopPropagation()}})),s.Children.map(t,function(h,_){return s.isValidElement(h)?s.createElement(VI,{className:B(J.headerCell,"column-".concat(h.props.source)),sort:d,field:h,isSorting:(d==null?void 0:d.field)===(h.props.sortBy||h.props.source),key:h.props.source||_,updateSort:x||void 0}):null})))};ih.displayName="DatagridHeader";var pj=function(e){var t=e.children,r=e.value;return Z.createElement(Id.Provider,{value:r},t)},Ad={},mj=pe;Object.defineProperty(Ad,"__esModule",{value:!0});var sh=Ad.default=void 0,vj=mj(he()),gj=S;sh=Ad.default=(0,vj.default)((0,gj.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Tc=function(){return Tc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r must be used inside a component");return s.createElement(Vs,null,s.createElement(Le,{variant:"body2"},n&&o&&Object.keys(n).length>0?s.createElement(s.Fragment,null,e("ra.navigation.no_filtered_results",{resource:t,name:a(t,0),_:"No results found with the current filters."})," ",s.createElement(Wt,{onClick:function(){return o({},[])},label:e("ra.navigation.clear_filters",{_:"Clear filters"})})):e("ra.navigation.no_results",{resource:t,name:a(t,0),_:"No results found."})))},Vo=function(){return Vo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1] element instead.")})},[r]);var d=function(){if(!r)return[];var m=a.getValues();return r.filter(function(g){var v=ot(m,g.props.source);return g.props.alwaysOn||u[g.props.source]||!ch(v)})},f=s.useCallback(function(m){return c(m.currentTarget.dataset.key)},[c]),p=s.useMemo(function(){return{getSource:function(m){return m},getLabel:function(m){return"resources.".concat(o,".fields.").concat(m)}}},[o]);return s.createElement(cb,{value:p},s.createElement(Fj,Er({className:t},Aj(n),{onSubmit:jj}),d().map(function(m){return s.createElement(Pj,{key:m.key||m.props.source,filterElement:m,handleHide:f,resource:o,className:Ii.filterFormInput})}),s.createElement("div",{className:Ii.clearFix})))},jj=function(e){return e.preventDefault(),!1},Aj=function(e){e.hasCreate,e.resource;var t=Md(e,["hasCreate","resource"]);return t},Mj=function(e,t){return Er(Er({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return am(Er({},r),n.props.source,n.props.defaultValue)},{})),e)},Nj=function(e){return e.preventDefault(),e.stopPropagation(),!1},jc="RaFilterForm",Ii={clearFix:"".concat(jc,"-clearFix"),filterFormInput:"".concat(jc,"-filterFormInput")},Fj=I("form",{name:jc,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flex:"0 1 auto"},t[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(Ii.clearFix)]={clear:"right"},t["& .".concat(Ii.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),Bj=function(e,t){var r;return Object.keys(e).reduce(function(n,o){return n[o]=lh(e,o,t),n},(r=lm(t))!==null&&r!==void 0?r:{})},lh=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t]))return ot(r,t,"");if(e[t]instanceof Date)return ot(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(o,a){var i,l=lh(e[t],a,(i=(r||{})[t])!==null&&i!==void 0?i:{});return o[a]=l,o},{});return Object.keys(n).length?n:""}return ot(r,t,"")},ch=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return ch(e[t])}):!1},Nd={},Lj=pe;Object.defineProperty(Nd,"__esModule",{value:!0});var ji=Nd.default=void 0,Dj=Lj(he()),zj=S;ji=Nd.default=(0,Dj.default)((0,zj.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var Fd={},Wj=pe;Object.defineProperty(Fd,"__esModule",{value:!0});var uh=Fd.default=void 0,Vj=Wj(he()),Hj=S;uh=Fd.default=(0,Vj.default)((0,Hj.jsx)("path",{d:"M21 7h-2v2h-2V7h-2V5h2V3h2v2h2zm-2 14-7-3-7 3V5c0-1.1.9-2 2-2h7c-.63.84-1 1.87-1 3 0 2.76 2.24 5 5 5 .34 0 .68-.03 1-.1z"}),"BookmarkAdd");var Bd={},Uj=pe;Object.defineProperty(Bd,"__esModule",{value:!0});var dh=Bd.default=void 0,qj=Uj(he()),Kj=S;dh=Bd.default=(0,qj.default)((0,Kj.jsx)("path",{d:"M21 7h-6V5h6zm-2 3.9c-.32.07-.66.1-1 .1-2.76 0-5-2.24-5-5 0-1.13.37-2.16 1-3H7c-1.1 0-2 .9-2 2v16l7-3 7 3z"}),"BookmarkRemove");var Ld={},Gj=pe;Object.defineProperty(Ld,"__esModule",{value:!0});var fh=Ld.default=void 0,Xj=Gj(he()),Yj=S;fh=Ld.default=(0,Xj.default)((0,Yj.jsx)("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder");var Dd={},Qj=pe;Object.defineProperty(Dd,"__esModule",{value:!0});var ph=Dd.default=void 0,Jj=Qj(he()),Zj=S;ph=Dd.default=(0,Jj.default)((0,Zj.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var zd={},eA=pe;Object.defineProperty(zd,"__esModule",{value:!0});var mh=zd.default=void 0,tA=eA(he()),rA=S;mh=zd.default=(0,tA.default)((0,rA.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank");var Wd={},nA=pe;Object.defineProperty(Wd,"__esModule",{value:!0});var vh=Wd.default=void 0,oA=nA(he()),aA=S;vh=Wd.default=(0,oA.default)((0,aA.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox");var iA=s.forwardRef(function(e,t){var r=e.filter,n=e.onShow,o=e.onHide,a=e.autoFocus,i=e.displayed,l=Xe(e),u=s.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]),c=s.useCallback(function(){o({source:r.props.source})},[r.props.source,o]);return s.createElement(Or,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i?c:u,autoFocus:a,ref:t,disabled:r.props.disabled,role:"menuitemcheckbox","aria-checked":i},s.createElement(Dr,null,i?s.createElement(vh,{fontSize:"small"}):s.createElement(mh,{fontSize:"small"})),s.createElement(gn,null,s.createElement(Tn,{label:r.props.label,source:r.props.source,resource:l})))}),Vd=function(e){return Wi("".concat(e,".savedQueries"),[])},Hd=function(e){return Array.isArray(e)?e.filter(function(t){return sA(t)}):[]},sA=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},lA=function(e){var t=e.open,r=e.onClose,n=ae(),o=qt(),a=o.resource,i=o.filterValues,l=o.displayedFilters,u=o.sort,c=o.perPage,d=Vd(a),f=d[0],p=d[1],m=s.useState(""),g=m[0],v=m[1],b=function(O){v(O.target.value)},x=function(O){O.preventDefault(),C()},C=function(){var O={label:g,value:{filter:i,sort:u,perPage:c,displayedFilters:l}},h=Hd(f);p(h.concat(O)),v(""),r()};return s.createElement(Gu,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},s.createElement(Qu,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),s.createElement(Yu,null,s.createElement("form",{onSubmit:x},s.createElement(Gs,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:g,onChange:b}))),s.createElement(Xu,null,s.createElement(_t,{onClick:r},n("ra.action.cancel")),s.createElement(_t,{onClick:C,color:"primary"},n("ra.action.save"))))},Pp=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n must be called inside a ResourceContextProvider, or must provide a resource prop");var d=Vd(u||"")[0],f=cu(),p=qt(),m=p.displayedFilters,g=m===void 0?{}:m,v=p.filterValues,b=p.perPage,x=p.setFilters,C=p.showFilter,O=p.hideFilter,h=p.sort,_=!lr(v,{}),E=Hd(d),w=E.some(function(X){return lr(X.value,{filter:v,sort:h,perPage:b,displayedFilters:g})}),P=s.useState(!1),k=P[0],$=P[1],T=s.useRef();if(l===void 0)throw new Error("The component requires the prop to be set");var A=l.filter(function(X){return!X.props.alwaysOn}),M=s.useCallback(function(X){X.preventDefault(),$(!0),T.current=X.currentTarget},[T,$]),j=s.useCallback(function(){$(!1)},[$]),F=s.useCallback(function(X){var ee=X.source,U=X.defaultValue;C(ee,U===""?void 0:U),setTimeout(function(){var de=document.querySelector("input[name='".concat(ee,"']"));de&&de.focus()},50),$(!1)},[C,$]),N=s.useCallback(function(X){var ee=X.source;O(ee),$(!1)},[O,$]),D=s.useState(!1),R=D[0],L=D[1],H=function(){L(!1)},ye=function(){$(!1),L(!0)},V=s.useState(!1),Q=V[0],G=V[1],re=function(){G(!1)},ne=function(){$(!1),G(!0)};return A.length===0&&E.length===0&&!_?null:s.createElement(pA,Ac({className:r},dA(i)),s.createElement(Wt,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:M,variant:a,size:o},s.createElement(ph,null)),s.createElement(Ks,{open:k,anchorEl:T.current,onClose:j},A.map(function(X,ee){return s.createElement(iA,{key:X.props.source,filter:X,displayed:!!g[X.props.source],resource:u,onShow:F,onHide:N,autoFocus:ee===0})}),(_||E.length>0)&&s.createElement(Kv,null),E.map(function(X,ee){return lr(X.value,{filter:v,sort:h,perPage:b,displayedFilters:g})?s.createElement(Or,{onClick:ne,key:ee},s.createElement(Dr,null,s.createElement(dh,{fontSize:"small"})),s.createElement(gn,null,c("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:X.label}))):s.createElement(Or,{onClick:function(){var U,de;f({search:ub.stringify({filter:JSON.stringify(X.value.filter),sort:(U=X.value.sort)===null||U===void 0?void 0:U.field,order:(de=X.value.sort)===null||de===void 0?void 0:de.order,page:1,perPage:X.value.perPage,displayedFilters:JSON.stringify(X.value.displayedFilters)})}),$(!1)},key:ee},s.createElement(Dr,null,s.createElement(fh,{fontSize:"small"})),s.createElement(gn,null,X.label))}),_&&!w&&!n&&s.createElement(Or,{onClick:ye},s.createElement(Dr,null,s.createElement(uh,{fontSize:"small"})),s.createElement(gn,null,c("ra.saved_queries.new_label",{_:"Save current query..."}))),_&&s.createElement(Or,{onClick:function(){x({},{}),$(!1)}},s.createElement(Dr,null,s.createElement(ji,{fontSize:"small"})),s.createElement(gn,null,c("ra.action.remove_all_filters",{_:"Remove all filters"})))),!n&&s.createElement(s.Fragment,null,s.createElement(lA,{open:R,onClose:H}),s.createElement(cA,{open:Q,onClose:re})))},dA=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=gh(e,["displayedFilters","filterValues","showFilter"]);return t},fA="RaFilterButton",pA=I("div",{name:fA,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),mA=db,vA=cm,gA=1,hA=2;function yA(e,t,r,n){var o=r.length,a=o,i=!n;if(e==null)return!a;for(e=Object(e);o--;){var l=r[o];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++ox-1)throw new Error(v("ra.navigation.page_out_of_boundaries",{page:P+1}));m(P+1)},[x,m,v]),O=s.useCallback(function(w){g(w.target.value)},[g]),h=s.useCallback(function(w){var P=w.from,k=w.to,$=w.count;return $===-1&&c?v("ra.navigation.partial_page_range_info",{offsetBegin:P,offsetEnd:k,_:"%{from}-%{to} of more than %{to}"}):v("ra.navigation.page_range_info",{offsetBegin:P,offsetEnd:k,total:$===-1?k:$,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[v,c]),_=s.useCallback(function(w){return v("ra.navigation.".concat(w),{_:"Go to ".concat(w," page")})},[v]);if(u)return s.createElement(ra,{variant:"dense"});if(p===0||d<1||p!=null&&d>x)return a!=null,null;if(b)return s.createElement(Zd,Ai({count:p??-1,rowsPerPage:f,page:d-1,onPageChange:C,rowsPerPageOptions:fM,component:"span",labelDisplayedRows:h},In(i)));var E=n||(!u&&p!=null?iM:void 0);return s.createElement(Zd,Ai({count:p??-1,rowsPerPage:f,page:d-1,onPageChange:C,onRowsPerPageChange:O,ActionsComponent:E,nextIconButtonProps:{disabled:!c},component:"span",labelRowsPerPage:v("ra.navigation.page_rows_per_page"),labelDisplayedRows:h,getItemAriaLabel:_,rowsPerPageOptions:r},In(i)))}),dM=[5,10,25,50],fM=[],Mi=function(){return Mi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!f.message?"ra.auth.sign_in_error":f.message,{type:"error",messageArgs:{_:typeof f=="string"?f:f&&f.message?f.message:void 0}})})};return s.createElement(yM,{onSubmit:c,mode:"onChange",noValidate:!0,className:r},s.createElement(Vs,{className:Cn.content},s.createElement(Rp,{autoFocus:!0,source:"username",label:l("ra.auth.username"),autoComplete:"username",validate:Jd()}),s.createElement(Rp,{source:"password",label:l("ra.auth.password"),type:"password",autoComplete:"current-password",validate:Jd()}),s.createElement(_t,{variant:"contained",type:"submit",color:"primary",disabled:o,fullWidth:!0,className:Cn.button},o?s.createElement(Us,{className:Cn.icon,size:19,thickness:3}):l("ra.auth.sign_in"))))},qa="RaLoginForm",Cn={content:"".concat(qa,"-content"),button:"".concat(qa,"-button"),icon:"".concat(qa,"-icon")},yM=I(fm,{name:qa,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(Cn.content)]={width:300},t["& .".concat(Cn.button)]={marginTop:r.spacing(2)},t["& .".concat(Cn.icon)]={margin:r.spacing(.3)},t}),Nc=function(){return Nc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&p?jM:r;return!o||!b&&x&&c?null:s.createElement(MM,Dc({className:B("edit-page",a)},f),d!==!1&&s.createElement(Zr,{title:d,defaultTitle:v,preferenceKey:"".concat(g,".edit.title")}),C,s.createElement("div",{className:B(Pn.main,(t={},t[Pn.noActions]=!C,t))},s.createElement(l,{className:Pn.card},b?o:s.createElement(Vs,null," ")),n))},Xa="RaEdit",Pn={main:"".concat(Xa,"-main"),noActions:"".concat(Xa,"-noActions"),card:"".concat(Xa,"-card")},MM=I("div",{name:Xa,overridesResolver:function(e,t){return t.root}})((mo={},mo["& .".concat(Pn.main)]={display:"flex",alignItems:"flex-start"},mo["& .".concat(Pn.noActions)]={marginTop:"1em"},mo["& .".concat(Pn.card)]={flex:"1 1 auto"},mo)),zc=function(){return zc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&b?XM:r;return!o||!v&&c?null:s.createElement(QM,Hc({className:B("show-page",a)},f),d!==!1&&s.createElement(Zr,{title:d,defaultTitle:g,preferenceKey:"".concat(m,".show.title")}),x!==!1&&x,s.createElement("div",{className:B($n.main,(t={},t[$n.noActions]=!x,t))},s.createElement(l,{className:$n.card},o),n))},Qa="RaShow",$n={main:"".concat(Qa,"-main"),noActions:"".concat(Qa,"-noActions"),card:"".concat(Qa,"-card")},QM=I("div",{name:Qa,overridesResolver:function(e,t){return t.root}})((vo={},vo["& .".concat($n.main)]={display:"flex"},vo["& .".concat($n.noActions)]={marginTop:"1em"},vo["& .".concat($n.card)]={flex:"1 1 auto"},vo)),Uc=function(){return Uc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),dN=function(e){return e.stopPropagation()},kp=function(e){var t=e.clickable;return s.createElement(Uu,{sx:{cursor:"inherit"},size:"small",label:s.createElement(kb,null),clickable:t})},Xc=function(){return Xc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&Ip.call(t.callee)==="[object Function]"),n},El,jp;function LN(){if(jp)return El;jp=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Ih,o=Object.prototype.propertyIsEnumerable,a=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(p){var m=p.constructor;return m&&m.prototype===p},c={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!c["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{u(window[p])}catch{return!0}}catch{return!0}return!1}(),f=function(p){if(typeof window>"u"||!d)return u(p);try{return u(p)}catch{return!1}};e=function(m){var g=m!==null&&typeof m=="object",v=r.call(m)==="[object Function]",b=n(m),x=g&&r.call(m)==="[object String]",C=[];if(!g&&!v&&!b)throw new TypeError("Object.keys called on a non-object");var O=i&&v;if(x&&m.length>0&&!t.call(m,0))for(var h=0;h0)for(var _=0;_"u"||!Ze?ge:Ze(Uint8Array),Hr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ge:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ge:ArrayBuffer,"%ArrayIteratorPrototype%":ln&&Ze?Ze([][Symbol.iterator]()):ge,"%AsyncFromSyncIteratorPrototype%":ge,"%AsyncFunction%":pn,"%AsyncGenerator%":pn,"%AsyncGeneratorFunction%":pn,"%AsyncIteratorPrototype%":pn,"%Atomics%":typeof Atomics>"u"?ge:Atomics,"%BigInt%":typeof BigInt>"u"?ge:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ge:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ge:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ge:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":u5,"%eval%":eval,"%EvalError%":d5,"%Float32Array%":typeof Float32Array>"u"?ge:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ge:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ge:FinalizationRegistry,"%Function%":Mh,"%GeneratorFunction%":pn,"%Int8Array%":typeof Int8Array>"u"?ge:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ge:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ge:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ln&&Ze?Ze(Ze([][Symbol.iterator]())):ge,"%JSON%":typeof JSON=="object"?JSON:ge,"%Map%":typeof Map>"u"?ge:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ln||!Ze?ge:Ze(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ge:Promise,"%Proxy%":typeof Proxy>"u"?ge:Proxy,"%RangeError%":f5,"%ReferenceError%":p5,"%Reflect%":typeof Reflect>"u"?ge:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ge:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ln||!Ze?ge:Ze(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ge:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ln&&Ze?Ze(""[Symbol.iterator]()):ge,"%Symbol%":ln?Symbol:ge,"%SyntaxError%":Wn,"%ThrowTypeError%":v5,"%TypedArray%":h5,"%TypeError%":kn,"%Uint8Array%":typeof Uint8Array>"u"?ge:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ge:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ge:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ge:Uint32Array,"%URIError%":m5,"%WeakMap%":typeof WeakMap>"u"?ge:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ge:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ge:WeakSet};if(Ze)try{null.error}catch(e){var y5=Ze(Ze(e));Hr["%Error.prototype%"]=y5}var b5=function e(t){var r;if(t==="%AsyncFunction%")r=Sl("async function () {}");else if(t==="%GeneratorFunction%")r=Sl("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Sl("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Ze&&(r=Ze(o.prototype))}return Hr[t]=r,r},Bp={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},sa=Kd,Di=Ah,x5=sa.call(Function.call,Array.prototype.concat),O5=sa.call(Function.apply,Array.prototype.splice),Lp=sa.call(Function.call,String.prototype.replace),zi=sa.call(Function.call,String.prototype.slice),_5=sa.call(Function.call,RegExp.prototype.exec),C5=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,w5=/\\(\\)?/g,E5=function(t){var r=zi(t,0,1),n=zi(t,-1);if(r==="%"&&n!=="%")throw new Wn("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Wn("invalid intrinsic syntax, expected opening `%`");var o=[];return Lp(t,C5,function(a,i,l,u){o[o.length]=l?Lp(u,w5,"$1"):i||a}),o},P5=function(t,r){var n=t,o;if(Di(Bp,n)&&(o=Bp[n],n="%"+o[0]+"%"),Di(Hr,n)){var a=Hr[n];if(a===pn&&(a=b5(n)),typeof a>"u"&&!r)throw new kn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new Wn("intrinsic "+t+" does not exist!")},la=function(t,r){if(typeof t!="string"||t.length===0)throw new kn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new kn('"allowMissing" argument must be a boolean');if(_5(/^%?[^%]*%?$/,t)===null)throw new Wn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=E5(t),o=n.length>0?n[0]:"",a=P5("%"+o+"%",r),i=a.name,l=a.value,u=!1,c=a.alias;c&&(o=c[0],O5(n,x5([0,1],c)));for(var d=1,f=!0;d=n.length){var v=Vr(l,p);f=!!v,f&&"get"in v&&!("originalValue"in v.get)?l=v.get:l=l[p]}else f=Di(l,p),l=l[p];f&&!u&&(Hr[i]=l)}}return l},S5=la,ei=S5("%Object.defineProperty%",!0)||!1;if(ei)try{ei({},"a",{value:1})}catch{ei=!1}var Gd=ei,$5=la,ti=$5("%Object.getOwnPropertyDescriptor%",!0);if(ti)try{ti([],"length")}catch{ti=null}var Nh=ti,Dp=Gd,R5=jh,cn=ia,zp=Nh,Fh=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new cn("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new cn("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new cn("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new cn("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new cn("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new cn("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,u=!!zp&&zp(t,r);if(Dp)Dp(t,r,{configurable:i===null&&u?u.configurable:!i,enumerable:o===null&&u?u.enumerable:!o,value:n,writable:a===null&&u?u.writable:!a});else if(l||!o&&!a&&!i)t[r]=n;else throw new R5("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},nu=Gd,Bh=function(){return!!nu};Bh.hasArrayLengthDefineBug=function(){if(!nu)return null;try{return nu([],"length",{value:1}).length!==1}catch{return!0}};var Lh=Bh,k5=WN,T5=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",I5=Object.prototype.toString,j5=Array.prototype.concat,Wp=Fh,A5=function(e){return typeof e=="function"&&I5.call(e)==="[object Function]"},Dh=Lh(),M5=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!A5(n)||!n())return}Dh?Wp(e,t,r,!0):Wp(e,t,r)},zh=function(e,t){var r=arguments.length>2?arguments[2]:{},n=k5(t);T5&&(n=j5.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||B5(r)!==r)throw new Up("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in t&&Hp){var i=Hp(t,"length");i&&!i.configurable&&(o=!1),i&&!i.writable&&(a=!1)}return(o||a||!n)&&(F5?Vp(t,"length",r,!0,!0):Vp(t,"length",r)),t};(function(e){var t=Kd,r=la,n=L5,o=ia,a=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||t.call(i,a),u=Gd,c=r("%Math.max%");e.exports=function(p){if(typeof p!="function")throw new o("a function is required");var m=l(t,i,arguments);return n(m,1+c(0,p.length-(arguments.length-1)),!0)};var d=function(){return l(t,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d})(Vh);var Hh=Vh.exports,D5=ia,z5=function(t){if(t==null)throw new D5(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},Uh=la,qh=Hh,W5=qh(Uh("String.prototype.indexOf")),V5=function(t,r){var n=Uh(t,!!r);return typeof n=="function"&&W5(t,".prototype.")>-1?qh(n):n},H5=z5,Kh=V5,U5=Kh("Object.prototype.propertyIsEnumerable"),q5=Kh("Array.prototype.push"),Gh=function(t){var r=H5(t),n=[];for(var o in r)U5(r,o)&&q5(n,[o,r[o]]);return n},K5=Gh,Xh=function(){return typeof Object.entries=="function"?Object.entries:K5},G5=Xh,X5=Wh,Y5=function(){var t=G5();return X5(Object,{entries:t},{entries:function(){return Object.entries!==t}}),t},Q5=Wh,J5=Hh,Z5=Gh,Yh=Xh,e4=Y5,Qh=J5(Yh(),Object);Q5(Qh,{getPolyfill:Yh,implementation:Z5,shim:e4});var t4=Qh,Xd=t4,Jh=Ah,r4=function(t){},ou=String.prototype.replace,Zh=String.prototype.split,ri="||||",Ra=function(e){var t=e%100,r=t%10;return t!==11&&r===1?0:2<=r&&r<=4&&!(t>=12&&t<=14)?1:2},ey={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:Ra,chinese:function(){return 0},croatian:Ra,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:Ra,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2},ukrainian:Ra},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function n4(e){for(var t={},r=Xd(e),n=0;n0?nt(Hn,--Ot):0,An--,Ge===10&&(An=1,qi--),Ge}function St(){return Ge=Ot<_m?nt(Hn,Ot++):0,An++,Ge===10&&(An=1,qi++),Ge}function Zt(){return nt(Hn,Ot)}function ka(){return Ot}function Uo(e,t){return To(Hn,e,t)}function Io(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Cm(e){return qi=An=1,_m=Yt(Hn=e),Ot=0,[]}function wm(e){return Hn="",e}function Ta(e){return Om(Uo(Ot-1,Ts(e===91?e+2:e===40?e+1:e)))}function s0(e){for(;(Ge=Zt())&&Ge<33;)St();return Io(e)>2||Io(Ge)>3?"":" "}function c0(e,t){for(;--t&&St()&&!(Ge<48||Ge>102||Ge>57&&Ge<65||Ge>70&&Ge<97););return Uo(e,ka()+(t<6&&Zt()==32&&St()==32))}function Ts(e){for(;St();)switch(Ge){case e:return Ot;case 34:case 39:e!==34&&e!==39&&Ts(Ge);break;case 40:e===41&&Ts(e);break;case 92:St();break}return Ot}function u0(e,t){for(;St()&&e+Ge!==57;)if(e+Ge===84&&Zt()===47)break;return"/*"+Uo(t,Ot-1)+"*"+Ui(e===47?e:St())}function d0(e){for(;!Io(Zt());)St();return Uo(e,Ot)}function f0(e){return wm(Ia("",null,null,null,[""],e=Cm(e),0,[0],e))}function Ia(e,t,r,n,o,a,i,s,u){for(var c=0,d=0,f=i,p=0,m=0,g=0,v=1,y=1,O=1,C=0,x="",b=o,_=a,E=n,w=x;y;)switch(g=C,C=St()){case 40:if(g!=108&&nt(w,f-1)==58){ks(w+=Pe(Ta(C),"&","&\f"),"&\f")!=-1&&(O=-1);break}case 34:case 39:case 91:w+=Ta(C);break;case 9:case 10:case 13:case 32:w+=s0(g);break;case 92:w+=c0(ka()-1,7);continue;case 47:switch(Zt()){case 42:case 47:ma(p0(u0(St(),ka()),t,r),u);break;default:w+="/"}break;case 123*v:s[c++]=Yt(w)*O;case 125*v:case 59:case 0:switch(C){case 0:case 125:y=0;case 59+d:O==-1&&(w=Pe(w,/\f/g,"")),m>0&&Yt(w)-f&&ma(m>32?tf(w+";",n,r,f-1):tf(Pe(w," ","")+";",n,r,f-2),u);break;case 59:w+=";";default:if(ma(E=ef(w,t,r,c,d,o,s,x,b=[],_=[],f),a),C===123)if(d===0)Ia(w,t,E,E,b,a,f,s,_);else switch(p===99&&nt(w,3)===110?100:p){case 100:case 108:case 109:case 115:Ia(e,E,E,n&&ma(ef(e,E,E,0,0,o,s,x,o,b=[],f),_),o,_,f,s,n?b:_);break;default:Ia(w,E,E,E,[""],_,0,s,_)}}c=d=m=0,v=O=1,x=w="",f=i;break;case 58:f=1+Yt(w),m=g;default:if(v<1){if(C==123)--v;else if(C==125&&v++==0&&l0()==125)continue}switch(w+=Ui(C),C*v){case 38:O=d>0?1:(w+="\f",-1);break;case 44:s[c++]=(Yt(w)-1)*O,O=1;break;case 64:Zt()===45&&(w+=Ta(St())),p=Zt(),d=f=Yt(x=w+=d0(ka())),C++;break;case 45:g===45&&Yt(w)==2&&(v=0)}}return a}function ef(e,t,r,n,o,a,i,s,u,c,d){for(var f=o-1,p=o===0?a:[""],m=pu(p),g=0,v=0,y=0;g0?p[O]+" "+C:Pe(C,/&\f/g,p[O])))&&(u[y++]=x);return Ki(e,t,r,o===0?du:s,u,c,d)}function p0(e,t,r){return Ki(e,t,r,bm,Ui(i0()),To(e,2,-2),0)}function tf(e,t,r,n){return Ki(e,t,r,fu,To(e,0,n),To(e,n+1,-1),n)}function yn(e,t){for(var r="",n=pu(e),o=0;o6)switch(nt(e,t+1)){case 109:if(nt(e,t+4)!==45)break;case 102:return Pe(e,/(.+:)(.+)-([^]+)/,"$1"+Ee+"$2-$3$1"+ni+(nt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ks(e,"stretch")?Em(Pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(nt(e,t+1)!==115)break;case 6444:switch(nt(e,Yt(e)-3-(~ks(e,"!important")&&10))){case 107:return Pe(e,":",":"+Ee)+e;case 101:return Pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ee+(nt(e,14)===45?"inline-":"")+"box$3$1"+Ee+"$2$3$1"+ct+"$2box$3")+e}break;case 5936:switch(nt(e,t+11)){case 114:return Ee+e+ct+Pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ee+e+ct+Pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ee+e+ct+Pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ee+e+ct+e+e}return e}var _0=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case fu:t.return=Em(t.value,t.length);break;case xm:return yn([io(t,{value:Pe(t.value,"@","@"+Ee)})],o);case du:if(t.length)return a0(t.props,function(a){switch(o0(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yn([io(t,{props:[Pe(a,/:(read-\w+)/,":"+ni+"$1")]})],o);case"::placeholder":return yn([io(t,{props:[Pe(a,/:(plac\w+)/,":"+Ee+"input-$1")]}),io(t,{props:[Pe(a,/:(plac\w+)/,":"+ni+"$1")]}),io(t,{props:[Pe(a,/:(plac\w+)/,ct+"input-$1")]})],o)}return""})}},C0=[_0],Pm=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var y=v.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||C0,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var y=v.getAttribute("data-emotion").split(" "),O=1;O=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var M0={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},N0=!1,F0=/[A-Z]|^ms/g,B0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jm=function(t){return t.charCodeAt(1)===45},nf=function(t){return t!=null&&typeof t!="boolean"},os=ym(function(e){return jm(e)?e:e.replace(F0,"-$&").toLowerCase()}),of=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(B0,function(n,o,a){return Qt={name:o,styles:a,next:Qt},o})}return M0[t]!==1&&!jm(t)&&typeof r=="number"&&r!==0?r+"px":r},L0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function jo(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Qt={name:o.name,styles:o.styles,next:Qt},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Qt={name:i.name,styles:i.styles,next:Qt},i=i.next;var s=a.styles+";";return s}return D0(e,t,r)}case"function":{if(e!==void 0){var u=Qt,c=r(e);return Qt=u,jo(e,t,c)}break}}var d=r;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function D0(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?U0:q0},uf=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},K0=!1,G0=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Tm(r,n,o),W0(function(){return Im(r,n,o)}),null},X0=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var s=uf(t,r,n),u=s||cf(o),c=!u("as");return function(){var d=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,m=1;mt(J0(o)?r:o):t;return S.jsx(H0,{styles:n})}function yu(e,t){return Is(e,t)}const Lm=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Z0=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Bm,StyledEngineProvider:Q0,ThemeContext:qo,css:ol,default:yu,internal_processStyles:Lm,keyframes:Un},Symbol.toStringTag,{value:"Module"}));function ir(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Dm(e){if(!ir(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Dm(e[r])}),t}function at(e,t,r={clone:!0}){const n=r.clone?h({},e):e;return ir(e)&&ir(t)&&Object.keys(t).forEach(o=>{ir(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ir(e[o])?n[o]=at(e[o],t[o],r):r.clone?n[o]=ir(t[o])?Dm(t[o]):t[o]:n[o]=t[o]}),n}const e1=Object.freeze(Object.defineProperty({__proto__:null,default:at,isPlainObject:ir},Symbol.toStringTag,{value:"Module"})),t1=["values","unit","step"],r1=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>h({},r,{[n.key]:n.val}),{})};function zm(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=W(e,t1),a=r1(t),i=Object.keys(a);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function c(p,m){const g=i.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:m)-n/100}${r})`}function d(p){return i.indexOf(p)+1`@media (min-width:${bu[e]}px)`};function qt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||df;return t.reduce((i,s,u)=>(i[a.up(a.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const a=n.breakpoints||df;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||bu).indexOf(s)!==-1){const u=a.up(s);i[u]=r(t[s],s)}else{const u=s;i[u]=t[u]}return i},{})}return r(t)}function Wm(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function Vm(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function o1(e,...t){const r=Wm(e),n=[r,...t].reduce((o,a)=>at(o,a),{});return Vm(Object.keys(r),n)}function a1(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a{e[o]!=null&&(r[o]=!0)}),r}function is({values:e,breakpoints:t,base:r}){const n=r||a1(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,s,u)=>(Array.isArray(e)?(i[s]=e[u]!=null?e[u]:e[a],a=u):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function z(e){if(typeof e!="string")throw new Error(cr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const i1=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"}));function al(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function oi(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=al(e,r)||n,t&&(o=t(o,n,e)),o}function Ue(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],u=i.theme,c=al(u,n)||{};return qt(i,s,f=>{let p=oi(c,o,f);return f===p&&typeof f=="string"&&(p=oi(c,o,`${t}${f==="default"?"":z(f)}`,f)),r===!1?p:{[r]:p}})};return a.propTypes={},a.filterProps=[t],a}function l1(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const s1={m:"margin",p:"padding"},c1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ff={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},u1=l1(e=>{if(e.length>2)if(ff[e])e=ff[e];else return[e];const[t,r]=e.split(""),n=s1[t],o=c1[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),xu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ou=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...xu,...Ou];function Ko(e,t,r,n){var o;const a=(o=al(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function _u(e){return Ko(e,"spacing",8)}function qr(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function d1(e,t){return r=>e.reduce((n,o)=>(n[o]=qr(t,r),n),{})}function f1(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=u1(r),a=d1(o,n),i=e[r];return qt(e,i,a)}function Hm(e,t){const r=_u(e.theme);return Object.keys(e).map(n=>f1(e,t,n,r)).reduce(yo,{})}function Fe(e){return Hm(e,xu)}Fe.propTypes={};Fe.filterProps=xu;function Be(e){return Hm(e,Ou)}Be.propTypes={};Be.filterProps=Ou;function p1(e=8){if(e.mui)return e;const t=_u({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function il(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?yo(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function jt(e){return typeof e!="number"?e:`${e}px solid`}function Dt(e,t){return Ue({prop:e,themeKey:"borders",transform:t})}const m1=Dt("border",jt),v1=Dt("borderTop",jt),g1=Dt("borderRight",jt),h1=Dt("borderBottom",jt),y1=Dt("borderLeft",jt),b1=Dt("borderColor"),x1=Dt("borderTopColor"),O1=Dt("borderRightColor"),_1=Dt("borderBottomColor"),C1=Dt("borderLeftColor"),w1=Dt("outline",jt),E1=Dt("outlineColor"),ll=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ko(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:qr(t,n)});return qt(e,e.borderRadius,r)}return null};ll.propTypes={};ll.filterProps=["borderRadius"];il(m1,v1,g1,h1,y1,b1,x1,O1,_1,C1,ll,w1,E1);const sl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ko(e.theme,"spacing",8),r=n=>({gap:qr(t,n)});return qt(e,e.gap,r)}return null};sl.propTypes={};sl.filterProps=["gap"];const cl=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ko(e.theme,"spacing",8),r=n=>({columnGap:qr(t,n)});return qt(e,e.columnGap,r)}return null};cl.propTypes={};cl.filterProps=["columnGap"];const ul=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ko(e.theme,"spacing",8),r=n=>({rowGap:qr(t,n)});return qt(e,e.rowGap,r)}return null};ul.propTypes={};ul.filterProps=["rowGap"];const P1=Ue({prop:"gridColumn"}),S1=Ue({prop:"gridRow"}),$1=Ue({prop:"gridAutoFlow"}),R1=Ue({prop:"gridAutoColumns"}),k1=Ue({prop:"gridAutoRows"}),T1=Ue({prop:"gridTemplateColumns"}),I1=Ue({prop:"gridTemplateRows"}),j1=Ue({prop:"gridTemplateAreas"}),A1=Ue({prop:"gridArea"});il(sl,cl,ul,P1,S1,$1,R1,k1,T1,I1,j1,A1);function bn(e,t){return t==="grey"?t:e}const M1=Ue({prop:"color",themeKey:"palette",transform:bn}),N1=Ue({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:bn}),F1=Ue({prop:"backgroundColor",themeKey:"palette",transform:bn});il(M1,N1,F1);function Pt(e){return e<=1&&e!==0?`${e*100}%`:e}const B1=Ue({prop:"width",transform:Pt}),Cu=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||bu[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Pt(r)}};return qt(e,e.maxWidth,t)}return null};Cu.filterProps=["maxWidth"];const L1=Ue({prop:"minWidth",transform:Pt}),D1=Ue({prop:"height",transform:Pt}),z1=Ue({prop:"maxHeight",transform:Pt}),W1=Ue({prop:"minHeight",transform:Pt});Ue({prop:"size",cssProperty:"width",transform:Pt});Ue({prop:"size",cssProperty:"height",transform:Pt});const V1=Ue({prop:"boxSizing"});il(B1,Cu,L1,D1,z1,W1,V1);const Go={border:{themeKey:"borders",transform:jt},borderTop:{themeKey:"borders",transform:jt},borderRight:{themeKey:"borders",transform:jt},borderBottom:{themeKey:"borders",transform:jt},borderLeft:{themeKey:"borders",transform:jt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:jt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ll},color:{themeKey:"palette",transform:bn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:bn},backgroundColor:{themeKey:"palette",transform:bn},p:{style:Be},pt:{style:Be},pr:{style:Be},pb:{style:Be},pl:{style:Be},px:{style:Be},py:{style:Be},padding:{style:Be},paddingTop:{style:Be},paddingRight:{style:Be},paddingBottom:{style:Be},paddingLeft:{style:Be},paddingX:{style:Be},paddingY:{style:Be},paddingInline:{style:Be},paddingInlineStart:{style:Be},paddingInlineEnd:{style:Be},paddingBlock:{style:Be},paddingBlockStart:{style:Be},paddingBlockEnd:{style:Be},m:{style:Fe},mt:{style:Fe},mr:{style:Fe},mb:{style:Fe},ml:{style:Fe},mx:{style:Fe},my:{style:Fe},margin:{style:Fe},marginTop:{style:Fe},marginRight:{style:Fe},marginBottom:{style:Fe},marginLeft:{style:Fe},marginX:{style:Fe},marginY:{style:Fe},marginInline:{style:Fe},marginInlineStart:{style:Fe},marginInlineEnd:{style:Fe},marginBlock:{style:Fe},marginBlockStart:{style:Fe},marginBlockEnd:{style:Fe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:sl},rowGap:{style:ul},columnGap:{style:cl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Pt},maxWidth:{style:Cu},minWidth:{transform:Pt},height:{transform:Pt},maxHeight:{transform:Pt},minHeight:{transform:Pt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function H1(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function U1(e,t){return typeof e=="function"?e(t):e}function Um(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:c,transform:d,style:f}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const p=al(o,c)||{};return f?f(i):qt(i,n,g=>{let v=oi(p,d,g);return g===v&&typeof g=="string"&&(v=oi(p,d,`${r}${g==="default"?"":z(g)}`,g)),u===!1?v:{[u]:v}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:Go;function s(u){let c=u;if(typeof u=="function")c=u(a);else if(typeof u!="object")return u;if(!c)return null;const d=Wm(a.breakpoints),f=Object.keys(d);let p=d;return Object.keys(c).forEach(m=>{const g=U1(c[m],a);if(g!=null)if(typeof g=="object")if(i[m])p=yo(p,e(m,g,a,i));else{const v=qt({theme:a},g,y=>({[m]:y}));H1(v,g)?p[m]=t({sx:g,theme:a}):p=yo(p,v)}else p=yo(p,e(m,g,a,i))}),Vm(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const qn=Um();qn.filterProps=["sx"];function qm(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const q1=["breakpoints","palette","spacing","shape"];function Xo(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=W(e,q1),s=zm(r),u=p1(o);let c=at({breakpoints:s,direction:"ltr",components:{},palette:h({mode:"light"},n),spacing:u,shape:h({},n1,a)},i);return c.applyStyles=qm,c=t.reduce((d,f)=>at(d,f),c),c.unstable_sxConfig=h({},Go,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return qn({sx:f,theme:this})},c}const K1=Object.freeze(Object.defineProperty({__proto__:null,default:Xo,private_createBreakpoints:zm,unstable_applyStyles:qm},Symbol.toStringTag,{value:"Module"}));function G1(e){return Object.keys(e).length===0}function wu(e=null){const t=l.useContext(qo);return!t||G1(t)?e:t}const X1=Xo();function dl(e=X1){return wu(e)}function Y1({styles:e,themeId:t,defaultTheme:r={}}){const n=dl(r),o=typeof e=="function"?e(t&&n[t]||n):e;return S.jsx(Bm,{styles:o})}const Q1=["sx"],J1=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Go;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function fl(e){const{sx:t}=e,r=W(e,Q1),{systemProps:n,otherProps:o}=J1(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return ir(s)?h({},n,s):n}:a=h({},n,t),h({},o,{sx:a})}const Z1=Object.freeze(Object.defineProperty({__proto__:null,default:qn,extendSxProp:fl,unstable_createStyleFunctionSx:Um,unstable_defaultSxConfig:Go},Symbol.toStringTag,{value:"Module"})),pf=e=>e,ex=()=>{let e=pf;return{configure(t){e=t},generate(t){return e(t)},reset(){e=pf}}},Km=ex();function Gm(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(qn);return l.forwardRef(function(u,c){const d=dl(r),f=fl(u),{className:p,component:m="div"}=f,g=W(f,tx);return S.jsx(a,h({as:m,ref:c,className:B(p,o?o(n):n),theme:t&&d[t]||d},g))})}const rx={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ie(e,t,r="Mui"){const n=rx[t];return n?`${r}-${n}`:`${Km.generate(e)}-${t}`}function le(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=ie(e,o,r)}),n}var Xm={exports:{}},Re={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Eu=Symbol.for("react.element"),Pu=Symbol.for("react.portal"),pl=Symbol.for("react.fragment"),ml=Symbol.for("react.strict_mode"),vl=Symbol.for("react.profiler"),gl=Symbol.for("react.provider"),hl=Symbol.for("react.context"),nx=Symbol.for("react.server_context"),yl=Symbol.for("react.forward_ref"),bl=Symbol.for("react.suspense"),xl=Symbol.for("react.suspense_list"),Ol=Symbol.for("react.memo"),_l=Symbol.for("react.lazy"),ox=Symbol.for("react.offscreen"),Ym;Ym=Symbol.for("react.module.reference");function zt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Eu:switch(e=e.type,e){case pl:case vl:case ml:case bl:case xl:return e;default:switch(e=e&&e.$$typeof,e){case nx:case hl:case yl:case _l:case Ol:case gl:return e;default:return t}}case Pu:return t}}}Re.ContextConsumer=hl;Re.ContextProvider=gl;Re.Element=Eu;Re.ForwardRef=yl;Re.Fragment=pl;Re.Lazy=_l;Re.Memo=Ol;Re.Portal=Pu;Re.Profiler=vl;Re.StrictMode=ml;Re.Suspense=bl;Re.SuspenseList=xl;Re.isAsyncMode=function(){return!1};Re.isConcurrentMode=function(){return!1};Re.isContextConsumer=function(e){return zt(e)===hl};Re.isContextProvider=function(e){return zt(e)===gl};Re.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Eu};Re.isForwardRef=function(e){return zt(e)===yl};Re.isFragment=function(e){return zt(e)===pl};Re.isLazy=function(e){return zt(e)===_l};Re.isMemo=function(e){return zt(e)===Ol};Re.isPortal=function(e){return zt(e)===Pu};Re.isProfiler=function(e){return zt(e)===vl};Re.isStrictMode=function(e){return zt(e)===ml};Re.isSuspense=function(e){return zt(e)===bl};Re.isSuspenseList=function(e){return zt(e)===xl};Re.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===pl||e===vl||e===ml||e===bl||e===xl||e===ox||typeof e=="object"&&e!==null&&(e.$$typeof===_l||e.$$typeof===Ol||e.$$typeof===gl||e.$$typeof===hl||e.$$typeof===yl||e.$$typeof===Ym||e.getModuleId!==void 0)};Re.typeOf=zt;Xm.exports=Re;var mf=Xm.exports;const ax=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Qm(e){const t=`${e}`.match(ax);return t&&t[1]||""}function Jm(e,t=""){return e.displayName||e.name||Qm(e)||t}function vf(e,t,r){const n=Jm(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function ix(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Jm(e,"Component");if(typeof e=="object")switch(e.$$typeof){case mf.ForwardRef:return vf(e,e.render,"ForwardRef");case mf.Memo:return vf(e,e.type,"memo");default:return}}}const lx=Object.freeze(Object.defineProperty({__proto__:null,default:ix,getFunctionName:Qm},Symbol.toStringTag,{value:"Module"})),sx=["ownerState"],cx=["variants"],ux=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function dx(e){return Object.keys(e).length===0}function fx(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ls(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const px=Xo(),mx=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function va({defaultTheme:e,theme:t,themeId:r}){return dx(t)?e:t[r]||t}function vx(e){return e?(t,r)=>r[e]:null}function ja(e,t){let{ownerState:r}=t,n=W(t,sx);const o=typeof e=="function"?e(h({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>ja(a,h({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=W(o,cx);return a.forEach(u=>{let c=!0;typeof u.props=="function"?c=u.props(h({ownerState:r},n,r)):Object.keys(u.props).forEach(d=>{(r==null?void 0:r[d])!==u.props[d]&&n[d]!==u.props[d]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style(h({ownerState:r},n,r)):u.style))}),s}return o}function gx(e={}){const{themeId:t,defaultTheme:r=px,rootShouldForwardProp:n=ls,slotShouldForwardProp:o=ls}=e,a=i=>qn(h({},i,{theme:va(h({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{Lm(i,_=>_.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:p=vx(mx(c))}=s,m=W(s,ux),g=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let y,O=ls;c==="Root"||c==="root"?O=n:c?O=o:fx(i)&&(O=void 0);const C=yu(i,h({shouldForwardProp:O,label:y},m)),x=_=>typeof _=="function"&&_.__emotion_real!==_||ir(_)?E=>ja(_,h({},E,{theme:va({theme:E.theme,defaultTheme:r,themeId:t})})):_,b=(_,...E)=>{let w=x(_);const P=E?E.map(x):[];u&&p&&P.push(T=>{const j=va(h({},T,{defaultTheme:r,themeId:t}));if(!j.components||!j.components[u]||!j.components[u].styleOverrides)return null;const N=j.components[u].styleOverrides,A={};return Object.entries(N).forEach(([F,M])=>{A[F]=ja(M,h({},T,{theme:j}))}),p(T,A)}),u&&!g&&P.push(T=>{var j;const N=va(h({},T,{defaultTheme:r,themeId:t})),A=N==null||(j=N.components)==null||(j=j[u])==null?void 0:j.variants;return ja({variants:A},h({},T,{theme:N}))}),v||P.push(a);const k=P.length-E.length;if(Array.isArray(_)&&k>0){const T=new Array(k).fill("");w=[..._,...T],w.raw=[..._.raw,...T]}const $=C(w,...P);return i.muiName&&($.muiName=i.muiName),$};return C.withConfig&&(b.withConfig=C.withConfig),b}}const hx=gx();function Ao(e,t){const r=h({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=h({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=h({},a),Object.keys(o).forEach(i=>{r[n][i]=Ao(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Zm(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Ao(t.components[r].defaultProps,n)}function ev({props:e,name:t,defaultTheme:r,themeId:n}){let o=dl(r);return n&&(o=o[n]||o),Zm({theme:o,name:t,props:e})}const Mt=typeof window<"u"?l.useLayoutEffect:l.useEffect;function yx(e,t,r,n,o){const[a,i]=l.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return Mt(()=>{let s=!0;if(!r)return;const u=r(e),c=()=>{s&&i(u.matches)};return c(),u.addListener(c),()=>{s=!1,u.removeListener(c)}},[e,r]),a}const tv=l.useSyncExternalStore;function bx(e,t,r,n,o){const a=l.useCallback(()=>t,[t]),i=l.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:d}=n(e);return()=>d}return a},[a,e,n,o,r]),[s,u]=l.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const d=r(e);return[()=>d.matches,f=>(d.addListener(f),()=>{d.removeListener(f)})]},[a,r,e]);return tv(u,s,i)}function Ct(e,t={}){const r=wu(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=Zm({name:"MuiUseMediaQuery",props:t,theme:r});let u=typeof e=="function"?e(r):e;return u=u.replace(/^@media( ?)/m,""),(tv!==void 0?bx:yx)(u,o,a,i,s)}function rv(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const xx=Object.freeze(Object.defineProperty({__proto__:null,default:rv},Symbol.toStringTag,{value:"Module"}));function nv(e,t=0,r=1){return rv(e,t,r)}function Ox(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Su(e){if(e.type)return e;if(e.charAt(0)==="#")return Su(Ox(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(cr(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(cr(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}function ov(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Mo(e,t){return e=Su(e),t=nv(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ov(e)}function _x(e,t){if(e=Su(e),t=nv(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return ov(e)}function As(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Cl(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function Cx(e,t){return()=>null}function Aa(e,t){var r,n;return l.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function ut(e){return e&&e.ownerDocument||document}function tr(e){return ut(e).defaultView||window}function wx(e,t){return()=>null}function ai(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let gf=0;function Ex(e){const[t,r]=l.useState(e),n=e||t;return l.useEffect(()=>{t==null&&(gf+=1,r(`mui-${gf}`))},[t]),n}const hf=$s.useId;function Yo(e){if(hf!==void 0){const t=hf();return e??t}return Ex(e)}function Px(e,t,r,n,o){return null}function No({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=l.useRef(e!==void 0),[a,i]=l.useState(t),s=o?e:a,u=l.useCallback(c=>{o||i(c)},[]);return[s,u]}function lr(e){const t=l.useRef(e);return Mt(()=>{t.current=e}),l.useRef((...r)=>(0,t.current)(...r)).current}function De(...e){return l.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{ai(r,t)})},e)}const yf={};function Sx(e,t){const r=l.useRef(yf);return r.current===yf&&(r.current=e(t)),r}const $x=[];function Rx(e){l.useEffect(e,$x)}class Qo{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Qo}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function mn(){const e=Sx(Qo.create).current;return Rx(e.disposeEffect),e}let wl=!0,Ms=!1;const kx=new Qo,Tx={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Ix(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Tx[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function jx(e){e.metaKey||e.altKey||e.ctrlKey||(wl=!0)}function ss(){wl=!1}function Ax(){this.visibilityState==="hidden"&&Ms&&(wl=!0)}function Mx(e){e.addEventListener("keydown",jx,!0),e.addEventListener("mousedown",ss,!0),e.addEventListener("pointerdown",ss,!0),e.addEventListener("touchstart",ss,!0),e.addEventListener("visibilitychange",Ax,!0)}function Nx(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return wl||Ix(t)}function $u(){const e=l.useCallback(o=>{o!=null&&Mx(o.ownerDocument)},[]),t=l.useRef(!1);function r(){return t.current?(Ms=!0,kx.start(100,()=>{Ms=!1}),t.current=!1,!0):!1}function n(o){return Nx(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function av(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const g4=e=>{const t=l.useRef({});return l.useEffect(()=>{t.current=e}),t.current};function se(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}function ii(e){return typeof e=="string"}function vn(e,t,r){return e===void 0||ii(e)?t:h({},t,{ownerState:h({},t.ownerState,r)})}function iv(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function bf(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function lv(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const m=B(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),g=h({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),v=h({},r,o,n);return m.length>0&&(v.className=m),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:void 0}}const i=iv(h({},o,n)),s=bf(n),u=bf(o),c=t(i),d=B(c==null?void 0:c.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),f=h({},c==null?void 0:c.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),p=h({},c,r,u,s);return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}function sv(e,t,r){return typeof e=="function"?e(t,r):e}const Fx=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Kr(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=W(e,Fx),s=a?{}:sv(n,o),{props:u,internalRef:c}=lv(h({},i,{externalSlotProps:s})),d=De(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return vn(r,h({},u,{ref:d}),o)}const cv=l.createContext(null);function uv(){return l.useContext(cv)}const Bx=typeof Symbol=="function"&&Symbol.for,Lx=Bx?Symbol.for("mui.nested"):"__THEME_NESTED__";function Dx(e,t){return typeof t=="function"?t(e):h({},e,t)}function zx(e){const{children:t,theme:r}=e,n=uv(),o=l.useMemo(()=>{const a=n===null?r:Dx(n,r);return a!=null&&(a[Lx]=n!==null),a},[r,n]);return S.jsx(cv.Provider,{value:o,children:t})}const Wx=["value"],dv=l.createContext();function Vx(e){let{value:t}=e,r=W(e,Wx);return S.jsx(dv.Provider,h({value:t??!0},r))}const fv=()=>{const e=l.useContext(dv);return e??!1},pv=l.createContext(void 0);function Hx({value:e,children:t}){return S.jsx(pv.Provider,{value:e,children:t})}function Ux(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Ao(o.defaultProps,n):!o.styleOverrides&&!o.variants?Ao(o,n):n}function qx({props:e,name:t}){const r=l.useContext(pv);return Ux({props:e,name:t,theme:{components:r}})}const xf={};function Of(e,t,r,n=!1){return l.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const a=r(o),i=e?h({},t,{[e]:a}):a;return n?()=>i:i}return e?h({},t,{[e]:r}):h({},t,r)},[e,t,r,n])}function Kx(e){const{children:t,theme:r,themeId:n}=e,o=wu(xf),a=uv()||xf,i=Of(n,o,r),s=Of(n,a,r,!0),u=i.direction==="rtl";return S.jsx(zx,{theme:s,children:S.jsx(qo.Provider,{value:i,children:S.jsx(Vx,{value:u,children:S.jsx(Hx,{value:i==null?void 0:i.components,children:t})})})})}const Gx=["component","direction","spacing","divider","children","className","useFlexGap"],Xx=Xo(),Yx=hx("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Qx(e){return ev({props:e,name:"MuiStack",defaultTheme:Xx})}function Jx(e,t){const r=l.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],eO=({ownerState:e,theme:t})=>{let r=h({display:"flex",flexDirection:"column"},qt({theme:t},is({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=_u(t),o=Object.keys(t.breakpoints.values).reduce((u,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(u[c]=!0),u),{}),a=is({values:e.direction,base:o}),i=is({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((u,c,d)=>{if(!a[u]){const p=c>0?a[d[c-1]]:"column";a[u]=p}}),r=at(r,qt({theme:t},i,(u,c)=>e.useFlexGap?{gap:qr(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Zx(c?a[c]:e.direction)}`]:qr(n,u)}}))}return r=o1(t.breakpoints,r),r};function tO(e={}){const{createStyledComponent:t=Yx,useThemeProps:r=Qx,componentName:n="MuiStack"}=e,o=()=>se({root:["root"]},u=>ie(n,u),{}),a=t(eO);return l.forwardRef(function(u,c){const d=r(u),f=fl(d),{component:p="div",direction:m="column",spacing:g=0,divider:v,children:y,className:O,useFlexGap:C=!1}=f,x=W(f,Gx),b={direction:m,spacing:g,useFlexGap:C},_=o();return S.jsx(a,h({as:p,ownerState:b,ref:c,className:B(_.root,O)},x,{children:v?Jx(y,v):y}))})}function rO(e,t){return h({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var qe={},mv={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(mv);var me=mv.exports;const nO=dr(qb),oO=dr(xx);var vv=me;Object.defineProperty(qe,"__esModule",{value:!0});var Te=qe.alpha=Ov;qe.blend=vO;qe.colorChannel=void 0;var gv=qe.darken=ku;qe.decomposeColor=Nt;var h4=qe.emphasize=_v,aO=qe.getContrastRatio=uO;qe.getLuminance=li;qe.hexToRgb=yv;qe.hslToRgb=xv;var hv=qe.lighten=Tu;qe.private_safeAlpha=dO;qe.private_safeColorChannel=void 0;qe.private_safeDarken=fO;qe.private_safeEmphasize=mO;qe.private_safeLighten=pO;qe.recomposeColor=Kn;qe.rgbToHex=cO;var _f=vv(nO),iO=vv(oO);function Ru(e,t=0,r=1){return(0,iO.default)(e,t,r)}function yv(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function lO(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Nt(e){if(e.type)return e;if(e.charAt(0)==="#")return Nt(yv(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,_f.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,_f.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const bv=e=>{const t=Nt(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};qe.colorChannel=bv;const sO=(e,t)=>{try{return bv(e)}catch{return e}};qe.private_safeColorChannel=sO;function Kn(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function cO(e){if(e.indexOf("#")===0)return e;const{values:t}=Nt(e);return`#${t.map((r,n)=>lO(n===3?Math.round(255*r):r)).join("")}`}function xv(e){e=Nt(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(c,d=(c+r/30)%12)=>o-a*Math.max(Math.min(d-3,9-d,1),-1);let s="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Kn({type:s,values:u})}function li(e){e=Nt(e);let t=e.type==="hsl"||e.type==="hsla"?Nt(xv(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function uO(e,t){const r=li(e),n=li(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Ov(e,t){return e=Nt(e),t=Ru(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Kn(e)}function dO(e,t,r){try{return Ov(e,t)}catch{return e}}function ku(e,t){if(e=Nt(e),t=Ru(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Kn(e)}function fO(e,t,r){try{return ku(e,t)}catch{return e}}function Tu(e,t){if(e=Nt(e),t=Ru(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Kn(e)}function pO(e,t,r){try{return Tu(e,t)}catch{return e}}function _v(e,t=.15){return li(e)>.5?ku(e,t):Tu(e,t)}function mO(e,t,r){try{return _v(e,t)}catch{return e}}function vO(e,t,r,n=1){const o=(u,c)=>Math.round((u**(1/n)*(1-r)+c**(1/n)*r)**n),a=Nt(e),i=Nt(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Kn({type:"rgb",values:s})}const gO=["mode","contrastThreshold","tonalOffset"],Cf={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ko.white,default:ko.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},cs={text:{primary:ko.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ko.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function wf(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=hv(e.main,o):t==="dark"&&(e.dark=gv(e.main,a)))}function hO(e="light"){return e==="dark"?{main:nn[200],light:nn[50],dark:nn[400]}:{main:nn[700],light:nn[400],dark:nn[800]}}function yO(e="light"){return e==="dark"?{main:rn[200],light:rn[50],dark:rn[400]}:{main:rn[500],light:rn[300],dark:rn[700]}}function bO(e="light"){return e==="dark"?{main:tn[500],light:tn[300],dark:tn[700]}:{main:tn[700],light:tn[400],dark:tn[800]}}function xO(e="light"){return e==="dark"?{main:on[400],light:on[300],dark:on[700]}:{main:on[700],light:on[500],dark:on[900]}}function OO(e="light"){return e==="dark"?{main:an[400],light:an[300],dark:an[700]}:{main:an[800],light:an[500],dark:an[900]}}function _O(e="light"){return e==="dark"?{main:ao[400],light:ao[300],dark:ao[700]}:{main:"#ed6c02",light:ao[500],dark:ao[900]}}function CO(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=W(e,gO),a=e.primary||hO(t),i=e.secondary||yO(t),s=e.error||bO(t),u=e.info||xO(t),c=e.success||OO(t),d=e.warning||_O(t);function f(v){return aO(v,cs.text.primary)>=r?cs.text.primary:Cf.text.primary}const p=({color:v,name:y,mainShade:O=500,lightShade:C=300,darkShade:x=700})=>{if(v=h({},v),!v.main&&v[O]&&(v.main=v[O]),!v.hasOwnProperty("main"))throw new Error(cr(11,y?` (${y})`:"",O));if(typeof v.main!="string")throw new Error(cr(12,y?` (${y})`:"",JSON.stringify(v.main)));return wf(v,"light",C,n),wf(v,"dark",x,n),v.contrastText||(v.contrastText=f(v.main)),v},m={dark:cs,light:Cf};return at(h({common:h({},ko),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:c,name:"success"}),grey:Ub,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},m[t]),o)}const wO=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function EO(e){return Math.round(e*1e5)/1e5}const Ef={textTransform:"uppercase"},Pf='"Roboto", "Helvetica", "Arial", sans-serif';function PO(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Pf,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:c=16,allVariants:d,pxToRem:f}=r,p=W(r,wO),m=o/14,g=f||(O=>`${O/c*m}rem`),v=(O,C,x,b,_)=>h({fontFamily:n,fontWeight:O,fontSize:g(C),lineHeight:x},n===Pf?{letterSpacing:`${EO(b/C)}em`}:{},_,d),y={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(s,14,1.75,.4,Ef),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,Ef),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return at(h({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:u},y),p,{clone:!1})}const SO=.2,$O=.14,RO=.12;function Me(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${SO})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${$O})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${RO})`].join(",")}const kO=["none",Me(0,2,1,-1,0,1,1,0,0,1,3,0),Me(0,3,1,-2,0,2,2,0,0,1,5,0),Me(0,3,3,-2,0,3,4,0,0,1,8,0),Me(0,2,4,-1,0,4,5,0,0,1,10,0),Me(0,3,5,-1,0,5,8,0,0,1,14,0),Me(0,3,5,-1,0,6,10,0,0,1,18,0),Me(0,4,5,-2,0,7,10,1,0,2,16,1),Me(0,5,5,-3,0,8,10,1,0,3,14,2),Me(0,5,6,-3,0,9,12,1,0,3,16,2),Me(0,6,6,-3,0,10,14,1,0,4,18,3),Me(0,6,7,-4,0,11,15,1,0,4,20,3),Me(0,7,8,-4,0,12,17,2,0,5,22,4),Me(0,7,8,-4,0,13,19,2,0,5,24,4),Me(0,7,9,-4,0,14,21,2,0,5,26,4),Me(0,8,9,-5,0,15,22,2,0,6,28,5),Me(0,8,10,-5,0,16,24,2,0,6,30,5),Me(0,8,11,-5,0,17,26,2,0,6,32,5),Me(0,9,11,-5,0,18,28,2,0,7,34,6),Me(0,9,12,-6,0,19,29,2,0,7,36,6),Me(0,10,13,-6,0,20,31,3,0,8,38,7),Me(0,10,13,-6,0,21,33,3,0,8,40,7),Me(0,10,14,-6,0,22,35,3,0,8,42,7),Me(0,11,14,-7,0,23,36,3,0,9,44,8),Me(0,11,15,-7,0,24,38,3,0,9,46,8)],TO=["duration","easing","delay"],IO={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},jO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Sf(e){return`${Math.round(e)}ms`}function AO(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function MO(e){const t=h({},IO,e.easing),r=h({},jO,e.duration);return h({getAutoHeightDuration:AO,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:u=0}=a;return W(a,TO),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:Sf(i)} ${s} ${typeof u=="string"?u:Sf(u)}`).join(",")}},e,{easing:t,duration:r})}const NO={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},FO=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ns(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=W(e,FO);if(e.vars)throw new Error(cr(18));const s=CO(n),u=Xo(e);let c=at(u,{mixins:rO(u.breakpoints,r),palette:s,shadows:kO.slice(),typography:PO(s,a),transitions:MO(o),zIndex:h({},NO)});return c=at(c,i),c=t.reduce((d,f)=>at(d,f),c),c.unstable_sxConfig=h({},Go,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return qn({sx:f,theme:this})},c}const El=Ns();function Yr(){const e=dl(El);return e[jn]||e}function BO({props:e,name:t}){return ev({props:e,name:t,defaultTheme:El,themeId:jn})}var Jo={},us={exports:{}},$f;function LO(){return $f||($f=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.includes(a))continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(us)),us.exports}const Cv=dr(Z0),DO=dr(e1),zO=dr(i1),WO=dr(lx),VO=dr(K1),HO=dr(Z1);var Gn=me;Object.defineProperty(Jo,"__esModule",{value:!0});var UO=Jo.default=o_;Jo.shouldForwardProp=Ma;Jo.systemDefaultTheme=void 0;var Tt=Gn(Fm()),Fs=Gn(LO()),Rf=JO(Cv),qO=DO;Gn(zO);Gn(WO);var KO=Gn(VO),GO=Gn(HO);const XO=["ownerState"],YO=["variants"],QO=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function wv(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(wv=function(n){return n?r:t})(e)}function JO(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=wv(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function ZO(e){return Object.keys(e).length===0}function e_(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ma(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const t_=Jo.systemDefaultTheme=(0,KO.default)(),r_=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ga({defaultTheme:e,theme:t,themeId:r}){return ZO(t)?e:t[r]||t}function n_(e){return e?(t,r)=>r[e]:null}function Na(e,t){let{ownerState:r}=t,n=(0,Fs.default)(t,XO);const o=typeof e=="function"?e((0,Tt.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Na(a,(0,Tt.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=(0,Fs.default)(o,YO);return a.forEach(u=>{let c=!0;typeof u.props=="function"?c=u.props((0,Tt.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(d=>{(r==null?void 0:r[d])!==u.props[d]&&n[d]!==u.props[d]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style((0,Tt.default)({ownerState:r},n,r)):u.style))}),s}return o}function o_(e={}){const{themeId:t,defaultTheme:r=t_,rootShouldForwardProp:n=Ma,slotShouldForwardProp:o=Ma}=e,a=i=>(0,GO.default)((0,Tt.default)({},i,{theme:ga((0,Tt.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,Rf.internal_processStyles)(i,_=>_.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:p=n_(r_(c))}=s,m=(0,Fs.default)(s,QO),g=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let y,O=Ma;c==="Root"||c==="root"?O=n:c?O=o:e_(i)&&(O=void 0);const C=(0,Rf.default)(i,(0,Tt.default)({shouldForwardProp:O,label:y},m)),x=_=>typeof _=="function"&&_.__emotion_real!==_||(0,qO.isPlainObject)(_)?E=>Na(_,(0,Tt.default)({},E,{theme:ga({theme:E.theme,defaultTheme:r,themeId:t})})):_,b=(_,...E)=>{let w=x(_);const P=E?E.map(x):[];u&&p&&P.push(T=>{const j=ga((0,Tt.default)({},T,{defaultTheme:r,themeId:t}));if(!j.components||!j.components[u]||!j.components[u].styleOverrides)return null;const N=j.components[u].styleOverrides,A={};return Object.entries(N).forEach(([F,M])=>{A[F]=Na(M,(0,Tt.default)({},T,{theme:j}))}),p(T,A)}),u&&!g&&P.push(T=>{var j;const N=ga((0,Tt.default)({},T,{defaultTheme:r,themeId:t})),A=N==null||(j=N.components)==null||(j=j[u])==null?void 0:j.variants;return Na({variants:A},(0,Tt.default)({},T,{theme:N}))}),v||P.push(a);const k=P.length-E.length;if(Array.isArray(_)&&k>0){const T=new Array(k).fill("");w=[..._,...T],w.raw=[..._.raw,...T]}const $=C(w,...P);return i.muiName&&($.muiName=i.muiName),$};return C.withConfig&&(b.withConfig=C.withConfig),b}}function Ev(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const mt=e=>Ev(e)&&e!=="classes",I=UO({themeId:jn,defaultTheme:El,rootShouldForwardProp:mt}),a_=["theme"];function i_(e){let{theme:t}=e,r=W(e,a_);const n=t[jn];return S.jsx(Kx,h({},r,{themeId:n?jn:void 0,theme:n||t}))}const kf=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function ce(e){return qx(e)}function l_(e){return ie("MuiSvgIcon",e)}le("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const s_=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],c_=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${z(t)}`,`fontSize${z(r)}`]};return se(o,l_,n)},u_=I("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${z(r.color)}`],t[`fontSize${z(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,s,u,c,d,f,p,m,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(u=s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),Bs=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,m=W(n,s_),g=l.isValidElement(o)&&o.type==="svg",v=h({},n,{color:i,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:g}),y={};d||(y.viewBox=p);const O=c_(v);return S.jsxs(u_,h({as:s,className:B(O.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},y,m,g&&o.props,{ownerState:v,children:[g?o.props.children:o,f?S.jsx("title",{children:f}):null]}))});Bs.muiName="SvgIcon";function fr(e,t){function r(n,o){return S.jsx(Bs,h({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=Bs.muiName,l.memo(l.forwardRef(r))}const d_={configure:e=>{Km.configure(e)}},f_=Object.freeze(Object.defineProperty({__proto__:null,capitalize:z,createChainedFunction:As,createSvgIcon:fr,debounce:Cl,deprecatedPropType:Cx,isMuiElement:Aa,ownerDocument:ut,ownerWindow:tr,requirePropFactory:wx,setRef:ai,unstable_ClassNameGenerator:d_,unstable_useEnhancedEffect:Mt,unstable_useId:Yo,unsupportedProp:Px,useControlled:No,useEventCallback:lr,useForkRef:De,useIsFocusVisible:$u},Symbol.toStringTag,{value:"Module"}));var Ie={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Iu=Symbol.for("react.element"),ju=Symbol.for("react.portal"),Pl=Symbol.for("react.fragment"),Sl=Symbol.for("react.strict_mode"),$l=Symbol.for("react.profiler"),Rl=Symbol.for("react.provider"),kl=Symbol.for("react.context"),p_=Symbol.for("react.server_context"),Tl=Symbol.for("react.forward_ref"),Il=Symbol.for("react.suspense"),jl=Symbol.for("react.suspense_list"),Al=Symbol.for("react.memo"),Ml=Symbol.for("react.lazy"),m_=Symbol.for("react.offscreen"),Pv;Pv=Symbol.for("react.module.reference");function Wt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Iu:switch(e=e.type,e){case Pl:case $l:case Sl:case Il:case jl:return e;default:switch(e=e&&e.$$typeof,e){case p_:case kl:case Tl:case Ml:case Al:case Rl:return e;default:return t}}case ju:return t}}}Ie.ContextConsumer=kl;Ie.ContextProvider=Rl;Ie.Element=Iu;Ie.ForwardRef=Tl;Ie.Fragment=Pl;Ie.Lazy=Ml;Ie.Memo=Al;Ie.Portal=ju;Ie.Profiler=$l;Ie.StrictMode=Sl;Ie.Suspense=Il;Ie.SuspenseList=jl;Ie.isAsyncMode=function(){return!1};Ie.isConcurrentMode=function(){return!1};Ie.isContextConsumer=function(e){return Wt(e)===kl};Ie.isContextProvider=function(e){return Wt(e)===Rl};Ie.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Iu};Ie.isForwardRef=function(e){return Wt(e)===Tl};Ie.isFragment=function(e){return Wt(e)===Pl};Ie.isLazy=function(e){return Wt(e)===Ml};Ie.isMemo=function(e){return Wt(e)===Al};Ie.isPortal=function(e){return Wt(e)===ju};Ie.isProfiler=function(e){return Wt(e)===$l};Ie.isStrictMode=function(e){return Wt(e)===Sl};Ie.isSuspense=function(e){return Wt(e)===Il};Ie.isSuspenseList=function(e){return Wt(e)===jl};Ie.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pl||e===$l||e===Sl||e===Il||e===jl||e===m_||typeof e=="object"&&e!==null&&(e.$$typeof===Ml||e.$$typeof===Al||e.$$typeof===Rl||e.$$typeof===kl||e.$$typeof===Tl||e.$$typeof===Pv||e.getModuleId!==void 0)};Ie.typeOf=Wt;function Ls(e,t){return Ls=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ls(e,t)}function Sv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ls(e,t)}const Tf={disabled:!1},si=J.createContext(null);var v_=function(t){return t.scrollTop},go="unmounted",Ar="exited",Mr="entering",un="entered",Ds="exiting",Kt=function(e){Sv(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=o,s=i&&!i.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?s?(u=Ar,a.appearStatus=Mr):u=un:n.unmountOnExit||n.mountOnEnter?u=go:u=Ar,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===go?{status:Ar}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Mr&&i!==un&&(a=Mr):(i===Mr||i===un)&&(a=Ds)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Mr){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:pa.findDOMNode(this);i&&v_(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ar&&this.setState({status:go})},r.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,u=this.props.nodeRef?[s]:[pa.findDOMNode(this),s],c=u[0],d=u[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!i||Tf.disabled){this.safeSetState({status:un},function(){a.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:Mr},function(){a.props.onEntering(c,d),a.onTransitionEnd(p,function(){a.safeSetState({status:un},function(){a.props.onEntered(c,d)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:pa.findDOMNode(this);if(!a||Tf.disabled){this.safeSetState({status:Ar},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Ds},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Ar},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:pa.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=u[0],d=u[1];this.props.addEndListener(c,d)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===go)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=W(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return J.createElement(si.Provider,{value:null},typeof i=="function"?i(o,s):J.cloneElement(J.Children.only(i),s))},t}(J.Component);Kt.contextType=si;Kt.propTypes={};function ln(){}Kt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ln,onEntering:ln,onEntered:ln,onExit:ln,onExiting:ln,onExited:ln};Kt.UNMOUNTED=go;Kt.EXITED=Ar;Kt.ENTERING=Mr;Kt.ENTERED=un;Kt.EXITING=Ds;function g_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Au(e,t){var r=function(a){return t&&l.isValidElement(a)?t(a):a},n=Object.create(null);return e&&l.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function h_(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var i,s={};for(var u in t){if(n[u])for(i=0;ie.scrollTop;function Mn(e,t){var r,n;const{timeout:o,easing:a,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof o=="number"?o:o[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function __(e){return ie("MuiPaper",e)}le("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const C_=["className","component","elevation","square","variant"],w_=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return se(a,__,o)},E_=I("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return h({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&h({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Te("#fff",kf(t.elevation))}, ${Te("#fff",kf(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),Xn=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:u="elevation"}=n,c=W(n,C_),d=h({},n,{component:a,elevation:i,square:s,variant:u}),f=w_(d);return S.jsx(E_,h({as:a,ownerState:d,className:B(f.root,o),ref:r},c))}),P_=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],S_=["component","slots","slotProps"],$_=["component"];function R_(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:s}=t,u=W(t,P_),{component:c,slots:d={[e]:void 0},slotProps:f={[e]:void 0}}=a;W(a,S_);const p=d[e]||n,m=sv(f[e],o),g=lv(h({className:r},u,{externalForwardedProps:void 0,externalSlotProps:m})),{props:{component:v},internalRef:y}=g,O=W(g.props,$_),C=De(y,m==null?void 0:m.ref,t.ref),x=i?i(O):{},b=h({},o,x),_=v,E=vn(p,h({},e==="root",!d[e]&&s,O,_&&{as:_},{ref:C}),b);return Object.keys(x).forEach(w=>{delete E[w]}),[p,E]}function k_(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:u,timeout:c}=e,[d,f]=l.useState(!1),p=B(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},g=B(r.child,d&&r.childLeaving,n&&r.childPulsate);return!s&&!d&&f(!0),l.useEffect(()=>{if(!s&&u!=null){const v=setTimeout(u,c);return()=>{clearTimeout(v)}}},[u,s,c]),S.jsx("span",{className:p,style:m,children:S.jsx("span",{className:g})})}const It=le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),T_=["center","classes","className"];let Nl=e=>e,If,jf,Af,Mf;const zs=550,I_=80,j_=Un(If||(If=Nl` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),A_=Un(jf||(jf=Nl` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),M_=Un(Af||(Af=Nl` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),N_=I("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),F_=I(k_,{name:"MuiTouchRipple",slot:"Ripple"})(Mf||(Mf=Nl` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),It.rippleVisible,j_,zs,({theme:e})=>e.transitions.easing.easeInOut,It.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,It.child,It.childLeaving,A_,zs,({theme:e})=>e.transitions.easing.easeInOut,It.childPulsate,M_,({theme:e})=>e.transitions.easing.easeInOut),B_=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=n,s=W(n,T_),[u,c]=l.useState([]),d=l.useRef(0),f=l.useRef(null);l.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=l.useRef(!1),m=mn(),g=l.useRef(null),v=l.useRef(null),y=l.useCallback(b=>{const{pulsate:_,rippleX:E,rippleY:w,rippleSize:P,cb:k}=b;c($=>[...$,S.jsx(F_,{classes:{ripple:B(a.ripple,It.ripple),rippleVisible:B(a.rippleVisible,It.rippleVisible),ripplePulsate:B(a.ripplePulsate,It.ripplePulsate),child:B(a.child,It.child),childLeaving:B(a.childLeaving,It.childLeaving),childPulsate:B(a.childPulsate,It.childPulsate)},timeout:zs,pulsate:_,rippleX:E,rippleY:w,rippleSize:P},d.current)]),d.current+=1,f.current=k},[a]),O=l.useCallback((b={},_={},E=()=>{})=>{const{pulsate:w=!1,center:P=o||_.pulsate,fakeElement:k=!1}=_;if((b==null?void 0:b.type)==="mousedown"&&p.current){p.current=!1;return}(b==null?void 0:b.type)==="touchstart"&&(p.current=!0);const $=k?null:v.current,T=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,N,A;if(P||b===void 0||b.clientX===0&&b.clientY===0||!b.clientX&&!b.touches)j=Math.round(T.width/2),N=Math.round(T.height/2);else{const{clientX:F,clientY:M}=b.touches&&b.touches.length>0?b.touches[0]:b;j=Math.round(F-T.left),N=Math.round(M-T.top)}if(P)A=Math.sqrt((2*T.width**2+T.height**2)/3),A%2===0&&(A+=1);else{const F=Math.max(Math.abs(($?$.clientWidth:0)-j),j)*2+2,M=Math.max(Math.abs(($?$.clientHeight:0)-N),N)*2+2;A=Math.sqrt(F**2+M**2)}b!=null&&b.touches?g.current===null&&(g.current=()=>{y({pulsate:w,rippleX:j,rippleY:N,rippleSize:A,cb:E})},m.start(I_,()=>{g.current&&(g.current(),g.current=null)})):y({pulsate:w,rippleX:j,rippleY:N,rippleSize:A,cb:E})},[o,y,m]),C=l.useCallback(()=>{O({},{pulsate:!0})},[O]),x=l.useCallback((b,_)=>{if(m.clear(),(b==null?void 0:b.type)==="touchend"&&g.current){g.current(),g.current=null,m.start(0,()=>{x(b,_)});return}g.current=null,c(E=>E.length>0?E.slice(1):E),f.current=_},[m]);return l.useImperativeHandle(r,()=>({pulsate:C,start:O,stop:x}),[C,O,x]),S.jsx(N_,h({className:B(It.root,a.root,i),ref:v},s,{children:S.jsx(Mu,{component:null,exit:!0,children:u})}))});function L_(e){return ie("MuiButtonBase",e)}const D_=le("MuiButtonBase",["root","disabled","focusVisible"]),z_=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],W_=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=se({root:["root",t&&"disabled",r&&"focusVisible"]},L_,o);return r&&n&&(i.root+=` ${n}`),i},V_=I("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${D_.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Nn=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:u="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:g,onClick:v,onContextMenu:y,onDragLeave:O,onFocus:C,onFocusVisible:x,onKeyDown:b,onKeyUp:_,onMouseDown:E,onMouseLeave:w,onMouseUp:P,onTouchEnd:k,onTouchMove:$,onTouchStart:T,tabIndex:j=0,TouchRippleProps:N,touchRippleRef:A,type:F}=n,M=W(n,z_),L=l.useRef(null),R=l.useRef(null),D=De(R,A),{isFocusVisibleRef:H,onFocus:ue,onBlur:V,ref:Z}=$u(),[G,re]=l.useState(!1);c&&G&&re(!1),l.useImperativeHandle(o,()=>({focusVisible:()=>{re(!0),L.current.focus()}}),[]);const[ne,X]=l.useState(!1);l.useEffect(()=>{X(!0)},[]);const ee=ne&&!d&&!c;l.useEffect(()=>{G&&p&&!d&&ne&&R.current.pulsate()},[d,p,G,ne]);function U(Y,Ve,dt=f){return lr(vt=>(Ve&&Ve(vt),!dt&&R.current&&R.current[Y](vt),!0))}const fe=U("start",E),oe=U("stop",y),xe=U("stop",O),te=U("stop",P),ve=U("stop",Y=>{G&&Y.preventDefault(),w&&w(Y)}),ge=U("start",T),it=U("stop",k),Ke=U("stop",$),Ae=U("stop",Y=>{V(Y),H.current===!1&&re(!1),g&&g(Y)},!1),ze=lr(Y=>{L.current||(L.current=Y.currentTarget),ue(Y),H.current===!0&&(re(!0),x&&x(Y)),C&&C(Y)}),ke=()=>{const Y=L.current;return u&&u!=="button"&&!(Y.tagName==="A"&&Y.href)},_e=l.useRef(!1),Ye=lr(Y=>{p&&!_e.current&&G&&R.current&&Y.key===" "&&(_e.current=!0,R.current.stop(Y,()=>{R.current.start(Y)})),Y.target===Y.currentTarget&&ke()&&Y.key===" "&&Y.preventDefault(),b&&b(Y),Y.target===Y.currentTarget&&ke()&&Y.key==="Enter"&&!c&&(Y.preventDefault(),v&&v(Y))}),je=lr(Y=>{p&&Y.key===" "&&R.current&&G&&!Y.defaultPrevented&&(_e.current=!1,R.current.stop(Y,()=>{R.current.pulsate(Y)})),_&&_(Y),v&&Y.target===Y.currentTarget&&ke()&&Y.key===" "&&!Y.defaultPrevented&&v(Y)});let Oe=u;Oe==="button"&&(M.href||M.to)&&(Oe=m);const We={};Oe==="button"?(We.type=F===void 0?"button":F,We.disabled=c):(!M.href&&!M.to&&(We.role="button"),c&&(We["aria-disabled"]=c));const Qe=De(r,Z,L),tt=h({},n,{centerRipple:a,component:u,disabled:c,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:j,focusVisible:G}),de=W_(tt);return S.jsxs(V_,h({as:Oe,className:B(de.root,s),ownerState:tt,onBlur:Ae,onClick:v,onContextMenu:oe,onFocus:ze,onKeyDown:Ye,onKeyUp:je,onMouseDown:fe,onMouseLeave:ve,onMouseUp:te,onDragLeave:xe,onTouchEnd:it,onTouchMove:Ke,onTouchStart:ge,ref:Qe,tabIndex:c?-1:j,type:F},We,M,{children:[i,ee?S.jsx(B_,h({ref:D,center:a},N)):null]}))});function H_(e){return ie("MuiIconButton",e)}const U_=le("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),q_=["edge","children","className","color","disabled","disableFocusRipple","size"],K_=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${z(n)}`,o&&`edge${z(o)}`,`size${z(a)}`]};return se(i,H_,t)},G_=I(Nn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${z(r.color)}`],r.edge&&t[`edge${z(r.edge)}`],t[`size${z(r.size)}`]]}})(({theme:e,ownerState:t})=>h({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Te(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return h({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&h({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":h({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Te(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${U_.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),pt=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:u=!1,disableFocusRipple:c=!1,size:d="medium"}=n,f=W(n,q_),p=h({},n,{edge:o,color:s,disabled:u,disableFocusRipple:c,size:d}),m=K_(p);return S.jsx(G_,h({className:B(m.root,i),centerRipple:!0,focusRipple:!c,disabled:u,ref:r},f,{ownerState:p,children:a}))});function X_(e){return ie("MuiTypography",e)}le("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Y_=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Q_=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${z(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return se(s,X_,i)},J_=I("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${z(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>h({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Nf={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Z_={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},eC=e=>Z_[e]||e,Le=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiTypography"}),o=eC(n.color),a=fl(h({},n,{color:o})),{align:i="inherit",className:s,component:u,gutterBottom:c=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:m=Nf}=a,g=W(a,Y_),v=h({},a,{align:i,color:o,className:s,component:u,gutterBottom:c,noWrap:d,paragraph:f,variant:p,variantMapping:m}),y=u||(f?"p":m[p]||Nf[p])||"span",O=Q_(v);return S.jsx(J_,h({as:y,ref:r,ownerState:v,className:B(O.root,s)},g))});function tC(e){return ie("MuiAppBar",e)}le("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const rC=["className","color","enableColorOnDark","position"],nC=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${z(t)}`,`position${z(r)}`]};return se(o,tC,n)},ha=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,oC=I(Xn,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${z(r.position)}`],t[`color${z(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return h({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&h({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&h({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&h({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:ha(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:ha(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:ha(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:ha(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),aC=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,u=W(n,rC),c=h({},n,{color:a,position:s,enableColorOnDark:i}),d=nC(c);return S.jsx(oC,h({square:!0,component:"header",ownerState:c,elevation:4,className:B(d.root,o,s==="fixed"&&"mui-fixed"),ref:r},u))});var Fu={};Object.defineProperty(Fu,"__esModule",{value:!0});var $v=Fu.default=void 0,iC=sC(l),lC=Cv;function Rv(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Rv=function(n){return n?r:t})(e)}function sC(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Rv(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function cC(e){return Object.keys(e).length===0}function uC(e=null){const t=iC.useContext(lC.ThemeContext);return!t||cC(t)?e:t}$v=Fu.default=uC;var bt="top",Ft="bottom",Bt="right",xt="left",Bu="auto",Zo=[bt,Ft,Bt,xt],Fn="start",Fo="end",dC="clippingParents",kv="viewport",lo="popper",fC="reference",Ff=Zo.reduce(function(e,t){return e.concat([t+"-"+Fn,t+"-"+Fo])},[]),Tv=[].concat(Zo,[Bu]).reduce(function(e,t){return e.concat([t,t+"-"+Fn,t+"-"+Fo])},[]),pC="beforeRead",mC="read",vC="afterRead",gC="beforeMain",hC="main",yC="afterMain",bC="beforeWrite",xC="write",OC="afterWrite",_C=[pC,mC,vC,gC,hC,yC,bC,xC,OC];function rr(e){return e?(e.nodeName||"").toLowerCase():null}function $t(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gr(e){var t=$t(e).Element;return e instanceof t||e instanceof Element}function At(e){var t=$t(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Lu(e){if(typeof ShadowRoot>"u")return!1;var t=$t(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function CC(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!At(a)||!rr(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function wC(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(u,c){return u[c]="",u},{});!At(o)||!rr(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const EC={name:"applyStyles",enabled:!0,phase:"write",fn:CC,effect:wC,requires:["computeStyles"]};function er(e){return e.split("-")[0]}var Wr=Math.max,ci=Math.min,Bn=Math.round;function Ws(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Iv(){return!/^((?!chrome|android).)*safari/i.test(Ws())}function Ln(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&At(e)&&(o=e.offsetWidth>0&&Bn(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Bn(n.height)/e.offsetHeight||1);var i=Gr(e)?$t(e):window,s=i.visualViewport,u=!Iv()&&r,c=(n.left+(u&&s?s.offsetLeft:0))/o,d=(n.top+(u&&s?s.offsetTop:0))/a,f=n.width/o,p=n.height/a;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function Du(e){var t=Ln(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function jv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Lu(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ur(e){return $t(e).getComputedStyle(e)}function PC(e){return["table","td","th"].indexOf(rr(e))>=0}function Sr(e){return((Gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fl(e){return rr(e)==="html"?e:e.assignedSlot||e.parentNode||(Lu(e)?e.host:null)||Sr(e)}function Bf(e){return!At(e)||ur(e).position==="fixed"?null:e.offsetParent}function SC(e){var t=/firefox/i.test(Ws()),r=/Trident/i.test(Ws());if(r&&At(e)){var n=ur(e);if(n.position==="fixed")return null}var o=Fl(e);for(Lu(o)&&(o=o.host);At(o)&&["html","body"].indexOf(rr(o))<0;){var a=ur(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function ea(e){for(var t=$t(e),r=Bf(e);r&&PC(r)&&ur(r).position==="static";)r=Bf(r);return r&&(rr(r)==="html"||rr(r)==="body"&&ur(r).position==="static")?t:r||SC(e)||t}function zu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bo(e,t,r){return Wr(e,ci(t,r))}function $C(e,t,r){var n=bo(e,t,r);return n>r?r:n}function Av(){return{top:0,right:0,bottom:0,left:0}}function Mv(e){return Object.assign({},Av(),e)}function Nv(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var RC=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Mv(typeof t!="number"?t:Nv(t,Zo))};function kC(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=er(r.placement),u=zu(s),c=[xt,Bt].indexOf(s)>=0,d=c?"height":"width";if(!(!a||!i)){var f=RC(o.padding,r),p=Du(a),m=u==="y"?bt:xt,g=u==="y"?Ft:Bt,v=r.rects.reference[d]+r.rects.reference[u]-i[u]-r.rects.popper[d],y=i[u]-r.rects.reference[u],O=ea(a),C=O?u==="y"?O.clientHeight||0:O.clientWidth||0:0,x=v/2-y/2,b=f[m],_=C-p[d]-f[g],E=C/2-p[d]/2+x,w=bo(b,E,_),P=u;r.modifiersData[n]=(t={},t[P]=w,t.centerOffset=w-E,t)}}function TC(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||jv(t.elements.popper,o)&&(t.elements.arrow=o))}const IC={name:"arrow",enabled:!0,phase:"main",fn:kC,effect:TC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Dn(e){return e.split("-")[1]}var jC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function AC(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Bn(r*o)/o||0,y:Bn(n*o)/o||0}}function Lf(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=i.x,m=p===void 0?0:p,g=i.y,v=g===void 0?0:g,y=typeof d=="function"?d({x:m,y:v}):{x:m,y:v};m=y.x,v=y.y;var O=i.hasOwnProperty("x"),C=i.hasOwnProperty("y"),x=xt,b=bt,_=window;if(c){var E=ea(r),w="clientHeight",P="clientWidth";if(E===$t(r)&&(E=Sr(r),ur(E).position!=="static"&&s==="absolute"&&(w="scrollHeight",P="scrollWidth")),E=E,o===bt||(o===xt||o===Bt)&&a===Fo){b=Ft;var k=f&&E===_&&_.visualViewport?_.visualViewport.height:E[w];v-=k-n.height,v*=u?1:-1}if(o===xt||(o===bt||o===Ft)&&a===Fo){x=Bt;var $=f&&E===_&&_.visualViewport?_.visualViewport.width:E[P];m-=$-n.width,m*=u?1:-1}}var T=Object.assign({position:s},c&&jC),j=d===!0?AC({x:m,y:v},$t(r)):{x:m,y:v};if(m=j.x,v=j.y,u){var N;return Object.assign({},T,(N={},N[b]=C?"0":"",N[x]=O?"0":"",N.transform=(_.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",N))}return Object.assign({},T,(t={},t[b]=C?v+"px":"",t[x]=O?m+"px":"",t.transform="",t))}function MC(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,s=r.roundOffsets,u=s===void 0?!0:s,c={placement:er(t.placement),variation:Dn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Lf(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Lf(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const NC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:MC,data:{}};var ya={passive:!0};function FC(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,s=i===void 0?!0:i,u=$t(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(d){d.addEventListener("scroll",r.update,ya)}),s&&u.addEventListener("resize",r.update,ya),function(){a&&c.forEach(function(d){d.removeEventListener("scroll",r.update,ya)}),s&&u.removeEventListener("resize",r.update,ya)}}const BC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:FC,data:{}};var LC={left:"right",right:"left",bottom:"top",top:"bottom"};function Fa(e){return e.replace(/left|right|bottom|top/g,function(t){return LC[t]})}var DC={start:"end",end:"start"};function Df(e){return e.replace(/start|end/g,function(t){return DC[t]})}function Wu(e){var t=$t(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Vu(e){return Ln(Sr(e)).left+Wu(e).scrollLeft}function zC(e,t){var r=$t(e),n=Sr(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,u=0;if(o){a=o.width,i=o.height;var c=Iv();(c||!c&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:s+Vu(e),y:u}}function WC(e){var t,r=Sr(e),n=Wu(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Wr(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Wr(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Vu(e),u=-n.scrollTop;return ur(o||r).direction==="rtl"&&(s+=Wr(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:u}}function Hu(e){var t=ur(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Fv(e){return["html","body","#document"].indexOf(rr(e))>=0?e.ownerDocument.body:At(e)&&Hu(e)?e:Fv(Fl(e))}function xo(e,t){var r;t===void 0&&(t=[]);var n=Fv(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=$t(n),i=o?[a].concat(a.visualViewport||[],Hu(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(xo(Fl(i)))}function Vs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function VC(e,t){var r=Ln(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function zf(e,t,r){return t===kv?Vs(zC(e,r)):Gr(t)?VC(t,r):Vs(WC(Sr(e)))}function HC(e){var t=xo(Fl(e)),r=["absolute","fixed"].indexOf(ur(e).position)>=0,n=r&&At(e)?ea(e):e;return Gr(n)?t.filter(function(o){return Gr(o)&&jv(o,n)&&rr(o)!=="body"}):[]}function UC(e,t,r,n){var o=t==="clippingParents"?HC(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce(function(u,c){var d=zf(e,c,n);return u.top=Wr(d.top,u.top),u.right=ci(d.right,u.right),u.bottom=ci(d.bottom,u.bottom),u.left=Wr(d.left,u.left),u},zf(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Bv(e){var t=e.reference,r=e.element,n=e.placement,o=n?er(n):null,a=n?Dn(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(o){case bt:u={x:i,y:t.y-r.height};break;case Ft:u={x:i,y:t.y+t.height};break;case Bt:u={x:t.x+t.width,y:s};break;case xt:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var c=o?zu(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(a){case Fn:u[c]=u[c]-(t[d]/2-r[d]/2);break;case Fo:u[c]=u[c]+(t[d]/2-r[d]/2);break}}return u}function Bo(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,i=a===void 0?e.strategy:a,s=r.boundary,u=s===void 0?dC:s,c=r.rootBoundary,d=c===void 0?kv:c,f=r.elementContext,p=f===void 0?lo:f,m=r.altBoundary,g=m===void 0?!1:m,v=r.padding,y=v===void 0?0:v,O=Mv(typeof y!="number"?y:Nv(y,Zo)),C=p===lo?fC:lo,x=e.rects.popper,b=e.elements[g?C:p],_=UC(Gr(b)?b:b.contextElement||Sr(e.elements.popper),u,d,i),E=Ln(e.elements.reference),w=Bv({reference:E,element:x,strategy:"absolute",placement:o}),P=Vs(Object.assign({},x,w)),k=p===lo?P:E,$={top:_.top-k.top+O.top,bottom:k.bottom-_.bottom+O.bottom,left:_.left-k.left+O.left,right:k.right-_.right+O.right},T=e.modifiersData.offset;if(p===lo&&T){var j=T[o];Object.keys($).forEach(function(N){var A=[Bt,Ft].indexOf(N)>=0?1:-1,F=[bt,Ft].indexOf(N)>=0?"y":"x";$[N]+=j[F]*A})}return $}function qC(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?Tv:u,d=Dn(n),f=d?s?Ff:Ff.filter(function(g){return Dn(g)===d}):Zo,p=f.filter(function(g){return c.indexOf(g)>=0});p.length===0&&(p=f);var m=p.reduce(function(g,v){return g[v]=Bo(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[er(v)],g},{});return Object.keys(m).sort(function(g,v){return m[g]-m[v]})}function KC(e){if(er(e)===Bu)return[];var t=Fa(e);return[Df(e),t,Df(t)]}function GC(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!0:i,u=r.fallbackPlacements,c=r.padding,d=r.boundary,f=r.rootBoundary,p=r.altBoundary,m=r.flipVariations,g=m===void 0?!0:m,v=r.allowedAutoPlacements,y=t.options.placement,O=er(y),C=O===y,x=u||(C||!g?[Fa(y)]:KC(y)),b=[y].concat(x).reduce(function(G,re){return G.concat(er(re)===Bu?qC(t,{placement:re,boundary:d,rootBoundary:f,padding:c,flipVariations:g,allowedAutoPlacements:v}):re)},[]),_=t.rects.reference,E=t.rects.popper,w=new Map,P=!0,k=b[0],$=0;$=0,F=A?"width":"height",M=Bo(t,{placement:T,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),L=A?N?Bt:xt:N?Ft:bt;_[F]>E[F]&&(L=Fa(L));var R=Fa(L),D=[];if(a&&D.push(M[j]<=0),s&&D.push(M[L]<=0,M[R]<=0),D.every(function(G){return G})){k=T,P=!1;break}w.set(T,D)}if(P)for(var H=g?3:1,ue=function(re){var ne=b.find(function(X){var ee=w.get(X);if(ee)return ee.slice(0,re).every(function(U){return U})});if(ne)return k=ne,"break"},V=H;V>0;V--){var Z=ue(V);if(Z==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}const XC={name:"flip",enabled:!0,phase:"main",fn:GC,requiresIfExists:["offset"],data:{_skip:!1}};function Wf(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Vf(e){return[bt,Bt,Ft,xt].some(function(t){return e[t]>=0})}function YC(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Bo(t,{elementContext:"reference"}),s=Bo(t,{altBoundary:!0}),u=Wf(i,n),c=Wf(s,o,a),d=Vf(u),f=Vf(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const QC={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:YC};function JC(e,t,r){var n=er(e),o=[xt,bt].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[xt,Bt].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function ZC(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=Tv.reduce(function(d,f){return d[f]=JC(f,t.rects,a),d},{}),s=i[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=i}const ew={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ZC};function tw(e){var t=e.state,r=e.name;t.modifiersData[r]=Bv({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const rw={name:"popperOffsets",enabled:!0,phase:"read",fn:tw,data:{}};function nw(e){return e==="x"?"y":"x"}function ow(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!1:i,u=r.boundary,c=r.rootBoundary,d=r.altBoundary,f=r.padding,p=r.tether,m=p===void 0?!0:p,g=r.tetherOffset,v=g===void 0?0:g,y=Bo(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),O=er(t.placement),C=Dn(t.placement),x=!C,b=zu(O),_=nw(b),E=t.modifiersData.popperOffsets,w=t.rects.reference,P=t.rects.popper,k=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,$=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(E){if(a){var N,A=b==="y"?bt:xt,F=b==="y"?Ft:Bt,M=b==="y"?"height":"width",L=E[b],R=L+y[A],D=L-y[F],H=m?-P[M]/2:0,ue=C===Fn?w[M]:P[M],V=C===Fn?-P[M]:-w[M],Z=t.elements.arrow,G=m&&Z?Du(Z):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Av(),ne=re[A],X=re[F],ee=bo(0,w[M],G[M]),U=x?w[M]/2-H-ee-ne-$.mainAxis:ue-ee-ne-$.mainAxis,fe=x?-w[M]/2+H+ee+X+$.mainAxis:V+ee+X+$.mainAxis,oe=t.elements.arrow&&ea(t.elements.arrow),xe=oe?b==="y"?oe.clientTop||0:oe.clientLeft||0:0,te=(N=T==null?void 0:T[b])!=null?N:0,ve=L+U-te-xe,ge=L+fe-te,it=bo(m?ci(R,ve):R,L,m?Wr(D,ge):D);E[b]=it,j[b]=it-L}if(s){var Ke,Ae=b==="x"?bt:xt,ze=b==="x"?Ft:Bt,ke=E[_],_e=_==="y"?"height":"width",Ye=ke+y[Ae],je=ke-y[ze],Oe=[bt,xt].indexOf(O)!==-1,We=(Ke=T==null?void 0:T[_])!=null?Ke:0,Qe=Oe?Ye:ke-w[_e]-P[_e]-We+$.altAxis,tt=Oe?ke+w[_e]+P[_e]-We-$.altAxis:je,de=m&&Oe?$C(Qe,ke,tt):bo(m?Qe:Ye,ke,m?tt:je);E[_]=de,j[_]=de-ke}t.modifiersData[n]=j}}const aw={name:"preventOverflow",enabled:!0,phase:"main",fn:ow,requiresIfExists:["offset"]};function iw(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lw(e){return e===$t(e)||!At(e)?Wu(e):iw(e)}function sw(e){var t=e.getBoundingClientRect(),r=Bn(t.width)/e.offsetWidth||1,n=Bn(t.height)/e.offsetHeight||1;return r!==1||n!==1}function cw(e,t,r){r===void 0&&(r=!1);var n=At(t),o=At(t)&&sw(t),a=Sr(t),i=Ln(e,o,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((rr(t)!=="body"||Hu(a))&&(s=lw(t)),At(t)?(u=Ln(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Vu(a))),{x:i.left+s.scrollLeft-u.x,y:i.top+s.scrollTop-u.y,width:i.width,height:i.height}}function uw(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&o(u)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function dw(e){var t=uw(e);return _C.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function fw(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function pw(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Hf={placement:"bottom",modifiers:[],strategy:"absolute"};function Uf(){for(var e=arguments.length,t=new Array(e),r=0;r{a||s(hw(o)||document.body)},[o,a]),Mt(()=>{if(i&&!a)return ai(r,i),()=>{ai(r,null)}},[r,i,a]),a){if(l.isValidElement(n)){const c={ref:u};return l.cloneElement(n,c)}return S.jsx(l.Fragment,{children:n})}return S.jsx(l.Fragment,{children:i&&Gp.createPortal(n,i)})});function yw(e){return ie("MuiPopper",e)}le("MuiPopper",["root"]);const bw=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],xw=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Ow(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Hs(e){return typeof e=="function"?e():e}function _w(e){return e.nodeType!==void 0}const Cw=e=>{const{classes:t}=e;return se({root:["root"]},yw,t)},ww={},Ew=l.forwardRef(function(t,r){var n;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:u,open:c,placement:d,popperOptions:f,popperRef:p,slotProps:m={},slots:g={},TransitionProps:v}=t,y=W(t,bw),O=l.useRef(null),C=De(O,r),x=l.useRef(null),b=De(x,p),_=l.useRef(b);Mt(()=>{_.current=b},[b]),l.useImperativeHandle(p,()=>x.current,[]);const E=Ow(d,i),[w,P]=l.useState(E),[k,$]=l.useState(Hs(o));l.useEffect(()=>{x.current&&x.current.forceUpdate()}),l.useEffect(()=>{o&&$(Hs(o))},[o]),Mt(()=>{if(!k||!c)return;const F=R=>{P(R.placement)};let M=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:R})=>{F(R)}}];u!=null&&(M=M.concat(u)),f&&f.modifiers!=null&&(M=M.concat(f.modifiers));const L=gw(k,O.current,h({placement:E},f,{modifiers:M}));return _.current(L),()=>{L.destroy(),_.current(null)}},[k,s,u,c,f,E]);const T={placement:w};v!==null&&(T.TransitionProps=v);const j=Cw(t),N=(n=g.root)!=null?n:"div",A=Kr({elementType:N,externalSlotProps:m.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:j.root});return S.jsx(N,h({},A,{children:typeof a=="function"?a(T):a}))}),Pw=l.forwardRef(function(t,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:c,open:d,placement:f="bottom",popperOptions:p=ww,popperRef:m,style:g,transition:v=!1,slotProps:y={},slots:O={}}=t,C=W(t,xw),[x,b]=l.useState(!0),_=()=>{b(!1)},E=()=>{b(!0)};if(!u&&!d&&(!v||x))return null;let w;if(a)w=a;else if(n){const $=Hs(n);w=$&&_w($)?ut($).body:ut(null).body}const P=!d&&u&&(!v||x)?"none":void 0,k=v?{in:d,onEnter:_,onExited:E}:void 0;return S.jsx(Lv,{disablePortal:s,container:w,children:S.jsx(Ew,h({anchorEl:n,direction:i,disablePortal:s,modifiers:c,ref:r,open:v?!x:d,placement:f,popperOptions:p,popperRef:m,slotProps:y,slots:O},C,{style:h({position:"fixed",top:0,left:0,display:P},g),TransitionProps:k,children:o}))})}),Sw=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],$w=I(Pw,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dv=l.forwardRef(function(t,r){var n;const o=$v(),a=ce({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:u,componentsProps:c,container:d,disablePortal:f,keepMounted:p,modifiers:m,open:g,placement:v,popperOptions:y,popperRef:O,transition:C,slots:x,slotProps:b}=a,_=W(a,Sw),E=(n=x==null?void 0:x.root)!=null?n:u==null?void 0:u.Root,w=h({anchorEl:i,container:d,disablePortal:f,keepMounted:p,modifiers:m,open:g,placement:v,popperOptions:y,popperRef:O,transition:C},_);return S.jsx($w,h({as:s,direction:o==null?void 0:o.direction,slots:{root:E},slotProps:b??c},w,{ref:r}))}),Rw=fr(S.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 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 12 17 15.59z"}),"Cancel");function kw(e){return ie("MuiChip",e)}const Ce=le("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Tw=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Iw=e=>{const{classes:t,disabled:r,size:n,color:o,iconColor:a,onDelete:i,clickable:s,variant:u}=e,c={root:["root",u,r&&"disabled",`size${z(n)}`,`color${z(o)}`,s&&"clickable",s&&`clickableColor${z(o)}`,i&&"deletable",i&&`deletableColor${z(o)}`,`${u}${z(o)}`],label:["label",`label${z(n)}`],avatar:["avatar",`avatar${z(n)}`,`avatarColor${z(o)}`],icon:["icon",`icon${z(n)}`,`iconColor${z(a)}`],deleteIcon:["deleteIcon",`deleteIcon${z(n)}`,`deleteIconColor${z(o)}`,`deleteIcon${z(u)}Color${z(o)}`]};return se(c,kw,t)},jw=I("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:o,clickable:a,onDelete:i,size:s,variant:u}=r;return[{[`& .${Ce.avatar}`]:t.avatar},{[`& .${Ce.avatar}`]:t[`avatar${z(s)}`]},{[`& .${Ce.avatar}`]:t[`avatarColor${z(n)}`]},{[`& .${Ce.icon}`]:t.icon},{[`& .${Ce.icon}`]:t[`icon${z(s)}`]},{[`& .${Ce.icon}`]:t[`iconColor${z(o)}`]},{[`& .${Ce.deleteIcon}`]:t.deleteIcon},{[`& .${Ce.deleteIcon}`]:t[`deleteIcon${z(s)}`]},{[`& .${Ce.deleteIcon}`]:t[`deleteIconColor${z(n)}`]},{[`& .${Ce.deleteIcon}`]:t[`deleteIcon${z(u)}Color${z(n)}`]},t.root,t[`size${z(s)}`],t[`color${z(n)}`],a&&t.clickable,a&&n!=="default"&&t[`clickableColor${z(n)})`],i&&t.deletable,i&&n!=="default"&&t[`deletableColor${z(n)}`],t[u],t[`${u}${z(n)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return h({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ce.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ce.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Ce.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ce.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ce.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ce.icon}`]:h({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&h({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${Ce.deleteIcon}`]:h({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Te(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Te(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Te(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Ce.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Te(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Ce.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>h({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Te(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ce.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Te(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Ce.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>h({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ce.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ce.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ce.avatar}`]:{marginLeft:4},[`& .${Ce.avatarSmall}`]:{marginLeft:2},[`& .${Ce.icon}`]:{marginLeft:4},[`& .${Ce.iconSmall}`]:{marginLeft:2},[`& .${Ce.deleteIcon}`]:{marginRight:5},[`& .${Ce.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Te(e.palette[t.color].main,.7)}`,[`&.${Ce.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Te(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Ce.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Te(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Ce.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Te(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Aw=I("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${z(n)}`]]}})(({ownerState:e})=>h({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function qf(e){return e.key==="Backspace"||e.key==="Delete"}const Uu=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:s="default",component:u,deleteIcon:c,disabled:d=!1,icon:f,label:p,onClick:m,onDelete:g,onKeyDown:v,onKeyUp:y,size:O="medium",variant:C="filled",tabIndex:x,skipFocusWhenDisabled:b=!1}=n,_=W(n,Tw),E=l.useRef(null),w=De(E,r),P=D=>{D.stopPropagation(),g&&g(D)},k=D=>{D.currentTarget===D.target&&qf(D)&&D.preventDefault(),v&&v(D)},$=D=>{D.currentTarget===D.target&&(g&&qf(D)?g(D):D.key==="Escape"&&E.current&&E.current.blur()),y&&y(D)},T=i!==!1&&m?!0:i,j=T||g?Nn:u||"div",N=h({},n,{component:j,disabled:d,size:O,color:s,iconColor:l.isValidElement(f)&&f.props.color||s,onDelete:!!g,clickable:T,variant:C}),A=Iw(N),F=j===Nn?h({component:u||"div",focusVisibleClassName:A.focusVisible},g&&{disableRipple:!0}):{};let M=null;g&&(M=c&&l.isValidElement(c)?l.cloneElement(c,{className:B(c.props.className,A.deleteIcon),onClick:P}):S.jsx(Rw,{className:B(A.deleteIcon),onClick:P}));let L=null;o&&l.isValidElement(o)&&(L=l.cloneElement(o,{className:B(A.avatar,o.props.className)}));let R=null;return f&&l.isValidElement(f)&&(R=l.cloneElement(f,{className:B(A.icon,f.props.className)})),S.jsxs(jw,h({as:j,className:B(A.root,a),disabled:T&&d?!0:void 0,onClick:m,onKeyDown:k,onKeyUp:$,ref:w,tabIndex:b&&d?-1:x,ownerState:N},F,_,{children:[L||R,S.jsx(Aw,{className:B(A.label),ownerState:N,children:p}),M]}))}),Mw=["onChange","maxRows","minRows","style","value"];function ba(e){return parseInt(e,10)||0}const Nw={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Fw(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Bw=l.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:s}=t,u=W(t,Mw),{current:c}=l.useRef(s!=null),d=l.useRef(null),f=De(r,d),p=l.useRef(null),m=l.useRef(null),g=l.useCallback(()=>{const O=d.current,x=tr(O).getComputedStyle(O);if(x.width==="0px")return{outerHeightStyle:0,overflowing:!1};const b=m.current;b.style.width=x.width,b.value=O.value||t.placeholder||"x",b.value.slice(-1)===` -`&&(b.value+=" ");const _=x.boxSizing,E=ba(x.paddingBottom)+ba(x.paddingTop),w=ba(x.borderBottomWidth)+ba(x.borderTopWidth),P=b.scrollHeight;b.value="x";const k=b.scrollHeight;let $=P;a&&($=Math.max(Number(a)*k,$)),o&&($=Math.min(Number(o)*k,$)),$=Math.max($,k);const T=$+(_==="border-box"?E+w:0),j=Math.abs($-P)<=1;return{outerHeightStyle:T,overflowing:j}},[o,a,t.placeholder]),v=l.useCallback(()=>{const O=g();if(Fw(O))return;const C=O.outerHeightStyle,x=d.current;p.current!==C&&(p.current=C,x.style.height=`${C}px`),x.style.overflow=O.overflowing?"hidden":""},[g]);Mt(()=>{const O=()=>{v()};let C;const x=Cl(O),b=d.current,_=tr(b);_.addEventListener("resize",x);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(O),E.observe(b)),()=>{x.clear(),cancelAnimationFrame(C),_.removeEventListener("resize",x),E&&E.disconnect()}},[g,v]),Mt(()=>{v()});const y=O=>{c||v(),n&&n(O)};return S.jsxs(l.Fragment,{children:[S.jsx("textarea",h({value:s,onChange:y,ref:f,rows:a,style:i},u)),S.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:h({},Nw.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function Yn({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const qu=l.createContext(void 0);function Qr(){return l.useContext(qu)}function Lw(e){return S.jsx(Y1,h({},e,{defaultTheme:El,themeId:jn}))}function Kf(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ui(e,t=!1){return e&&(Kf(e.value)&&e.value!==""||t&&Kf(e.defaultValue)&&e.defaultValue!=="")}function Dw(e){return e.startAdornment}function zw(e){return ie("MuiInputBase",e)}const zn=le("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ww=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Bl=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${z(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Ll=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Vw=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:u,hiddenLabel:c,multiline:d,readOnly:f,size:p,startAdornment:m,type:g}=e,v={root:["root",`color${z(r)}`,n&&"disabled",o&&"error",u&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${z(p)}`,d&&"multiline",m&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return se(v,zw,t)},Dl=I("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Bl})(({theme:e,ownerState:t})=>h({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${zn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&h({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),zl=I("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ll})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=h({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return h({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${zn.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${zn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Hw=S.jsx(Lw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ku=l.forwardRef(function(t,r){var n;const o=ce({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:u,components:c={},componentsProps:d={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:m,endAdornment:g,fullWidth:v=!1,id:y,inputComponent:O="input",inputProps:C={},inputRef:x,maxRows:b,minRows:_,multiline:E=!1,name:w,onBlur:P,onChange:k,onClick:$,onFocus:T,onKeyDown:j,onKeyUp:N,placeholder:A,readOnly:F,renderSuffix:M,rows:L,slotProps:R={},slots:D={},startAdornment:H,type:ue="text",value:V}=o,Z=W(o,Ww),G=C.value!=null?C.value:V,{current:re}=l.useRef(G!=null),ne=l.useRef(),X=l.useCallback(de=>{},[]),ee=De(ne,x,C.ref,X),[U,fe]=l.useState(!1),oe=Qr(),xe=Yn({props:o,muiFormControl:oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});xe.focused=oe?oe.focused:U,l.useEffect(()=>{!oe&&p&&U&&(fe(!1),P&&P())},[oe,p,U,P]);const te=oe&&oe.onFilled,ve=oe&&oe.onEmpty,ge=l.useCallback(de=>{ui(de)?te&&te():ve&&ve()},[te,ve]);Mt(()=>{re&&ge({value:G})},[G,ge,re]);const it=de=>{if(xe.disabled){de.stopPropagation();return}T&&T(de),C.onFocus&&C.onFocus(de),oe&&oe.onFocus?oe.onFocus(de):fe(!0)},Ke=de=>{P&&P(de),C.onBlur&&C.onBlur(de),oe&&oe.onBlur?oe.onBlur(de):fe(!1)},Ae=(de,...Y)=>{if(!re){const Ve=de.target||ne.current;if(Ve==null)throw new Error(cr(1));ge({value:Ve.value})}C.onChange&&C.onChange(de,...Y),k&&k(de,...Y)};l.useEffect(()=>{ge(ne.current)},[]);const ze=de=>{ne.current&&de.currentTarget===de.target&&ne.current.focus(),$&&$(de)};let ke=O,_e=C;E&&ke==="input"&&(L?_e=h({type:void 0,minRows:L,maxRows:L},_e):_e=h({type:void 0,maxRows:b,minRows:_},_e),ke=Bw);const Ye=de=>{ge(de.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})};l.useEffect(()=>{oe&&oe.setAdornedStart(!!H)},[oe,H]);const je=h({},o,{color:xe.color||"primary",disabled:xe.disabled,endAdornment:g,error:xe.error,focused:xe.focused,formControl:oe,fullWidth:v,hiddenLabel:xe.hiddenLabel,multiline:E,size:xe.size,startAdornment:H,type:ue}),Oe=Vw(je),We=D.root||c.Root||Dl,Qe=R.root||d.root||{},tt=D.input||c.Input||zl;return _e=h({},_e,(n=R.input)!=null?n:d.input),S.jsxs(l.Fragment,{children:[!m&&Hw,S.jsxs(We,h({},Qe,!ii(We)&&{ownerState:h({},je,Qe.ownerState)},{ref:r,onClick:ze},Z,{className:B(Oe.root,Qe.className,u,F&&"MuiInputBase-readOnly"),children:[H,S.jsx(qu.Provider,{value:null,children:S.jsx(tt,h({ownerState:je,"aria-invalid":xe.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:xe.disabled,id:y,onAnimationStart:Ye,name:w,placeholder:A,readOnly:F,required:xe.required,rows:L,value:G,onKeyDown:j,onKeyUp:N,type:ue},_e,!ii(tt)&&{as:ke,ownerState:h({},je,_e.ownerState)},{ref:ee,className:B(Oe.input,_e.className,F&&"MuiInputBase-readOnly"),onBlur:Ke,onChange:Ae,onFocus:it}))}),g,M?M(h({},xe,{startAdornment:H})):null]}))]})});function Uw(e){return ie("MuiInput",e)}const so=h({},zn,le("MuiInput",["root","underline","input"]));function qw(e){return ie("MuiOutlinedInput",e)}const yr=h({},zn,le("MuiOutlinedInput",["root","notchedOutline","input"]));function Kw(e){return ie("MuiFilledInput",e)}const Ir=h({},zn,le("MuiFilledInput",["root","underline","input"])),Gw=fr(S.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Xw=fr(S.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Yw(e){return ie("MuiAvatar",e)}le("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Qw=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],Jw=e=>{const{classes:t,variant:r,colorDefault:n}=e;return se({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},Yw,t)},Zw=I("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:h({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:h({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),eE=I("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),tE=I(Xw,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function rE({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[o,a]=l.useState(!1);return l.useEffect(()=>{if(!r&&!n)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=r,n&&(s.srcset=n),()=>{i=!1}},[e,t,r,n]),o}const Us=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",slots:u={},slotProps:c={},imgProps:d,sizes:f,src:p,srcSet:m,variant:g="circular"}=n,v=W(n,Qw);let y=null;const O=rE(h({},d,{src:p,srcSet:m})),C=p||m,x=C&&O!=="error",b=h({},n,{colorDefault:!x,component:s,variant:g}),_=Jw(b),[E,w]=R_("img",{className:_.img,elementType:eE,externalForwardedProps:{slots:u,slotProps:{img:h({},d,c.img)}},additionalProps:{alt:o,src:p,srcSet:m,sizes:f},ownerState:b});return x?y=S.jsx(E,h({},w)):a||a===0?y=a:C&&o?y=o[0]:y=S.jsx(tE,{ownerState:b,className:_.fallback}),S.jsx(Zw,h({as:s,ownerState:b,className:B(_.root,i),ref:r},v,{children:y}))}),nE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],oE={entering:{opacity:1},entered:{opacity:1}},zv=l.forwardRef(function(t,r){const n=Yr(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:u,in:c,onEnter:d,onEntered:f,onEntering:p,onExit:m,onExited:g,onExiting:v,style:y,timeout:O=o,TransitionComponent:C=Kt}=t,x=W(t,nE),b=l.useRef(null),_=De(b,s.ref,r),E=A=>F=>{if(A){const M=b.current;F===void 0?A(M):A(M,F)}},w=E(p),P=E((A,F)=>{Nu(A);const M=Mn({style:y,timeout:O,easing:u},{mode:"enter"});A.style.webkitTransition=n.transitions.create("opacity",M),A.style.transition=n.transitions.create("opacity",M),d&&d(A,F)}),k=E(f),$=E(v),T=E(A=>{const F=Mn({style:y,timeout:O,easing:u},{mode:"exit"});A.style.webkitTransition=n.transitions.create("opacity",F),A.style.transition=n.transitions.create("opacity",F),m&&m(A)}),j=E(g),N=A=>{a&&a(b.current,A)};return S.jsx(C,h({appear:i,in:c,nodeRef:b,onEnter:P,onEntered:k,onEntering:w,onExit:T,onExited:j,onExiting:$,addEndListener:N,timeout:O},x,{children:(A,F)=>l.cloneElement(s,h({style:h({opacity:0,visibility:A==="exited"&&!c?"hidden":void 0},oE[A],y,s.props.style),ref:_},F))}))});function aE(e){return ie("MuiBackdrop",e)}le("MuiBackdrop",["root","invisible"]);const iE=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],lE=e=>{const{classes:t,invisible:r}=e;return se({root:["root",r&&"invisible"]},aE,t)},sE=I("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>h({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Wv=l.forwardRef(function(t,r){var n,o,a;const i=ce({props:t,name:"MuiBackdrop"}),{children:s,className:u,component:c="div",components:d={},componentsProps:f={},invisible:p=!1,open:m,slotProps:g={},slots:v={},TransitionComponent:y=zv,transitionDuration:O}=i,C=W(i,iE),x=h({},i,{component:c,invisible:p}),b=lE(x),_=(n=g.root)!=null?n:f.root;return S.jsx(y,h({in:m,timeout:O},C,{children:S.jsx(sE,h({"aria-hidden":!0},_,{as:(o=(a=v.root)!=null?a:d.Root)!=null?o:c,className:B(b.root,u,_==null?void 0:_.className),ownerState:h({},x,_==null?void 0:_.ownerState),classes:b,ref:r,children:s}))}))});function cE(e){return ie("MuiButton",e)}const xa=le("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),uE=l.createContext({}),dE=l.createContext(void 0),fE=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],pE=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${z(t)}`,`size${z(o)}`,`${a}Size${z(o)}`,`color${z(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${z(o)}`],endIcon:["icon","endIcon",`iconSize${z(o)}`]},u=se(s,cE,i);return h({},i,u)},Vv=e=>h({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),mE=I(Nn,{shouldForwardProp:e=>mt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${z(r.color)}`],t[`size${z(r.size)}`],t[`${r.variant}Size${z(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return h({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":h({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Te(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Te(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Te(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":h({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${xa.focusVisible}`]:h({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${xa.disabled}`]:h({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Te(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${xa.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${xa.disabled}`]:{boxShadow:"none"}}),vE=I("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${z(r.size)}`]]}})(({ownerState:e})=>h({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Vv(e))),gE=I("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${z(r.size)}`]]}})(({ownerState:e})=>h({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Vv(e))),_t=l.forwardRef(function(t,r){const n=l.useContext(uE),o=l.useContext(dE),a=Ao(n,t),i=ce({props:a,name:"MuiButton"}),{children:s,color:u="primary",component:c="button",className:d,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:v,fullWidth:y=!1,size:O="medium",startIcon:C,type:x,variant:b="text"}=i,_=W(i,fE),E=h({},i,{color:u,component:c,disabled:f,disableElevation:p,disableFocusRipple:m,fullWidth:y,size:O,type:x,variant:b}),w=pE(E),P=C&&S.jsx(vE,{className:w.startIcon,ownerState:E,children:C}),k=g&&S.jsx(gE,{className:w.endIcon,ownerState:E,children:g}),$=o||"";return S.jsxs(mE,h({ownerState:E,className:B(n.className,w.root,d,$),component:c,disabled:f,focusRipple:!m,focusVisibleClassName:B(w.focusVisible,v),ref:r,type:x},_,{classes:w,children:[P,s,k]}))});function hE(e){return ie("MuiCard",e)}le("MuiCard",["root"]);const yE=["className","raised"],bE=e=>{const{classes:t}=e;return se({root:["root"]},hE,t)},xE=I(Xn,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),ta=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=n,i=W(n,yE),s=h({},n,{raised:a}),u=bE(s);return S.jsx(xE,h({className:B(u.root,o),elevation:a?8:void 0,ref:r,ownerState:s},i))});function OE(e){return ie("MuiCardContent",e)}le("MuiCardContent",["root"]);const _E=["className","component"],CE=e=>{const{classes:t}=e;return se({root:["root"]},OE,t)},wE=I("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Wl=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=n,i=W(n,_E),s=h({},n,{component:a}),u=CE(s);return S.jsx(wE,h({as:a,className:B(u.root,o),ownerState:s,ref:r},i))});function EE(e){return ie("PrivateSwitchBase",e)}le("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const PE=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],SE=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${z(o)}`],input:["input"]};return se(a,EE,t)},$E=I(Nn)(({ownerState:e})=>h({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),RE=I("input",{shouldForwardProp:mt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),kE=l.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:u,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:p,inputProps:m,inputRef:g,name:v,onBlur:y,onChange:O,onFocus:C,readOnly:x,required:b=!1,tabIndex:_,type:E,value:w}=t,P=W(t,PE),[k,$]=No({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),T=Qr(),j=D=>{C&&C(D),T&&T.onFocus&&T.onFocus(D)},N=D=>{y&&y(D),T&&T.onBlur&&T.onBlur(D)},A=D=>{if(D.nativeEvent.defaultPrevented)return;const H=D.target.checked;$(H),O&&O(D,H)};let F=u;T&&typeof F>"u"&&(F=T.disabled);const M=E==="checkbox"||E==="radio",L=h({},t,{checked:k,disabled:F,disableFocusRipple:c,edge:d}),R=SE(L);return S.jsxs($E,h({component:"span",className:B(R.root,i),centerRipple:!0,focusRipple:!c,disabled:F,tabIndex:null,role:void 0,onFocus:j,onBlur:N,ownerState:L,ref:r},P,{children:[S.jsx(RE,h({autoFocus:n,checked:o,defaultChecked:s,className:R.input,disabled:F,id:M?p:void 0,name:v,onChange:A,readOnly:x,ref:g,required:b,ownerState:L,tabIndex:_,type:E},E==="checkbox"&&w===void 0?{}:{value:w},m)),k?a:f]}))}),TE=fr(S.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),IE=fr(S.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),jE=fr(S.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function AE(e){return ie("MuiCheckbox",e)}const ds=le("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),ME=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],NE=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate",`color${z(n)}`,`size${z(o)}`]},i=se(a,AE,t);return h({},t,i)},FE=I(kE,{shouldForwardProp:e=>mt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${z(r.size)}`],r.color!=="default"&&t[`color${z(r.color)}`]]}})(({theme:e,ownerState:t})=>h({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Te(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ds.checked}, &.${ds.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ds.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),BE=S.jsx(IE,{}),LE=S.jsx(TE,{}),DE=S.jsx(jE,{}),di=l.forwardRef(function(t,r){var n,o;const a=ce({props:t,name:"MuiCheckbox"}),{checkedIcon:i=BE,color:s="primary",icon:u=LE,indeterminate:c=!1,indeterminateIcon:d=DE,inputProps:f,size:p="medium",className:m}=a,g=W(a,ME),v=c?d:u,y=c?d:i,O=h({},a,{color:s,indeterminate:c,size:p}),C=NE(O);return S.jsx(FE,h({type:"checkbox",inputProps:h({"data-indeterminate":c},f),icon:l.cloneElement(v,{fontSize:(n=v.props.fontSize)!=null?n:p}),checkedIcon:l.cloneElement(y,{fontSize:(o=y.props.fontSize)!=null?o:p}),ownerState:O,ref:r,className:B(C.root,m)},g,{classes:C}))});function zE(e){return ie("MuiCircularProgress",e)}le("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const WE=["className","color","disableShrink","size","style","thickness","value","variant"];let Vl=e=>e,Gf,Xf,Yf,Qf;const br=44,VE=Un(Gf||(Gf=Vl` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`)),HE=Un(Xf||(Xf=Vl` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),UE=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,`color${z(n)}`],svg:["svg"],circle:["circle",`circle${z(r)}`,o&&"circleDisableShrink"]};return se(a,zE,t)},qE=I("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${z(r.color)}`]]}})(({ownerState:e,theme:t})=>h({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&ol(Yf||(Yf=Vl` - animation: ${0} 1.4s linear infinite; - `),VE)),KE=I("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),GE=I("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${z(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>h({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&ol(Qf||(Qf=Vl` - animation: ${0} 1.4s ease-in-out infinite; - `),HE)),Hl=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:s=40,style:u,thickness:c=3.6,value:d=0,variant:f="indeterminate"}=n,p=W(n,WE),m=h({},n,{color:a,disableShrink:i,size:s,thickness:c,value:d,variant:f}),g=UE(m),v={},y={},O={};if(f==="determinate"){const C=2*Math.PI*((br-c)/2);v.strokeDasharray=C.toFixed(3),O["aria-valuenow"]=Math.round(d),v.strokeDashoffset=`${((100-d)/100*C).toFixed(3)}px`,y.transform="rotate(-90deg)"}return S.jsx(qE,h({className:B(g.root,o),style:h({width:s,height:s},y,u),ownerState:m,ref:r,role:"progressbar"},O,p,{children:S.jsx(KE,{className:g.svg,ownerState:m,viewBox:`${br/2} ${br/2} ${br} ${br}`,children:S.jsx(GE,{className:g.circle,style:v,ownerState:m,cx:br,cy:br,r:(br-c)/2,fill:"none",strokeWidth:c})})}))});function XE(e){const t=ut(e);return t.body===e?tr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Oo(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Jf(e){return parseInt(tr(e).getComputedStyle(e).paddingRight,10)||0}function YE(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function Zf(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,u=!YE(i);s&&u&&Oo(i,o)})}function fs(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function QE(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(XE(n)){const i=av(ut(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Jf(n)+i}px`;const s=ut(n).querySelectorAll(".mui-fixed");[].forEach.call(s,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${Jf(u)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=ut(n).body;else{const i=n.parentElement,s=tr(n);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function JE(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class ZE{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Oo(t.modalRef,!1);const o=JE(r);Zf(r,t.mount,t.modalRef,o,!0);const a=fs(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=fs(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=QE(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=fs(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Oo(t.modalRef,r),Zf(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&Oo(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const eP=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function tP(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function rP(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function nP(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||rP(e))}function oP(e){const t=[],r=[];return Array.from(e.querySelectorAll(eP)).forEach((n,o)=>{const a=tP(n);a===-1||!nP(n)||(a===0?t.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function aP(){return!0}function iP(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=oP,isEnabled:i=aP,open:s}=e,u=l.useRef(!1),c=l.useRef(null),d=l.useRef(null),f=l.useRef(null),p=l.useRef(null),m=l.useRef(!1),g=l.useRef(null),v=De(t.ref,g),y=l.useRef(null);l.useEffect(()=>{!s||!g.current||(m.current=!r)},[r,s]),l.useEffect(()=>{if(!s||!g.current)return;const x=ut(g.current);return g.current.contains(x.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),m.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[s]),l.useEffect(()=>{if(!s||!g.current)return;const x=ut(g.current),b=w=>{y.current=w,!(n||!i()||w.key!=="Tab")&&x.activeElement===g.current&&w.shiftKey&&(u.current=!0,d.current&&d.current.focus())},_=()=>{const w=g.current;if(w===null)return;if(!x.hasFocus()||!i()||u.current){u.current=!1;return}if(w.contains(x.activeElement)||n&&x.activeElement!==c.current&&x.activeElement!==d.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let P=[];if((x.activeElement===c.current||x.activeElement===d.current)&&(P=a(g.current)),P.length>0){var k,$;const T=!!((k=y.current)!=null&&k.shiftKey&&(($=y.current)==null?void 0:$.key)==="Tab"),j=P[0],N=P[P.length-1];typeof j!="string"&&typeof N!="string"&&(T?N.focus():j.focus())}else w.focus()};x.addEventListener("focusin",_),x.addEventListener("keydown",b,!0);const E=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(E),x.removeEventListener("focusin",_),x.removeEventListener("keydown",b,!0)}},[r,n,o,i,s,a]);const O=x=>{f.current===null&&(f.current=x.relatedTarget),m.current=!0,p.current=x.target;const b=t.props.onFocus;b&&b(x)},C=x=>{f.current===null&&(f.current=x.relatedTarget),m.current=!0};return S.jsxs(l.Fragment,{children:[S.jsx("div",{tabIndex:s?0:-1,onFocus:C,ref:c,"data-testid":"sentinelStart"}),l.cloneElement(t,{ref:v,onFocus:O}),S.jsx("div",{tabIndex:s?0:-1,onFocus:C,ref:d,"data-testid":"sentinelEnd"})]})}function lP(e){return typeof e=="function"?e():e}function sP(e){return e?e.props.hasOwnProperty("in"):!1}const cP=new ZE;function uP(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=cP,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:f}=e,p=l.useRef({}),m=l.useRef(null),g=l.useRef(null),v=De(g,f),[y,O]=l.useState(!d),C=sP(u);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const b=()=>ut(m.current),_=()=>(p.current.modalRef=g.current,p.current.mount=m.current,p.current),E=()=>{o.mount(_(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},w=lr(()=>{const M=lP(t)||b().body;o.add(_(),M),g.current&&E()}),P=l.useCallback(()=>o.isTopModal(_()),[o]),k=lr(M=>{m.current=M,M&&(d&&P()?E():g.current&&Oo(g.current,x))}),$=l.useCallback(()=>{o.remove(_(),x)},[x,o]);l.useEffect(()=>()=>{$()},[$]),l.useEffect(()=>{d?w():(!C||!a)&&$()},[d,$,C,a,w]);const T=M=>L=>{var R;(R=M.onKeyDown)==null||R.call(M,L),!(L.key!=="Escape"||L.which===229||!P())&&(r||(L.stopPropagation(),c&&c(L,"escapeKeyDown")))},j=M=>L=>{var R;(R=M.onClick)==null||R.call(M,L),L.target===L.currentTarget&&c&&c(L,"backdropClick")};return{getRootProps:(M={})=>{const L=iv(e);delete L.onTransitionEnter,delete L.onTransitionExited;const R=h({},L,M);return h({role:"presentation"},R,{onKeyDown:T(R),ref:v})},getBackdropProps:(M={})=>{const L=M;return h({"aria-hidden":!0},L,{onClick:j(L),open:d})},getTransitionProps:()=>{const M=()=>{O(!1),i&&i()},L=()=>{O(!0),s&&s(),a&&$()};return{onEnter:As(M,u==null?void 0:u.props.onEnter),onExited:As(L,u==null?void 0:u.props.onExited)}},rootRef:v,portalRef:k,isTopModal:P,exited:y,hasTransition:C}}function dP(e){return ie("MuiModal",e)}le("MuiModal",["root","hidden","backdrop"]);const fP=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],pP=e=>{const{open:t,exited:r,classes:n}=e;return se({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},dP,n)},mP=I("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>h({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),vP=I(Wv,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Hv=l.forwardRef(function(t,r){var n,o,a,i,s,u;const c=ce({name:"MuiModal",props:t}),{BackdropComponent:d=vP,BackdropProps:f,className:p,closeAfterTransition:m=!1,children:g,container:v,component:y,components:O={},componentsProps:C={},disableAutoFocus:x=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:_=!1,disablePortal:E=!1,disableRestoreFocus:w=!1,disableScrollLock:P=!1,hideBackdrop:k=!1,keepMounted:$=!1,onBackdropClick:T,open:j,slotProps:N,slots:A}=c,F=W(c,fP),M=h({},c,{closeAfterTransition:m,disableAutoFocus:x,disableEnforceFocus:b,disableEscapeKeyDown:_,disablePortal:E,disableRestoreFocus:w,disableScrollLock:P,hideBackdrop:k,keepMounted:$}),{getRootProps:L,getBackdropProps:R,getTransitionProps:D,portalRef:H,isTopModal:ue,exited:V,hasTransition:Z}=uP(h({},M,{rootRef:r})),G=h({},M,{exited:V}),re=pP(G),ne={};if(g.props.tabIndex===void 0&&(ne.tabIndex="-1"),Z){const{onEnter:te,onExited:ve}=D();ne.onEnter=te,ne.onExited=ve}const X=(n=(o=A==null?void 0:A.root)!=null?o:O.Root)!=null?n:mP,ee=(a=(i=A==null?void 0:A.backdrop)!=null?i:O.Backdrop)!=null?a:d,U=(s=N==null?void 0:N.root)!=null?s:C.root,fe=(u=N==null?void 0:N.backdrop)!=null?u:C.backdrop,oe=Kr({elementType:X,externalSlotProps:U,externalForwardedProps:F,getSlotProps:L,additionalProps:{ref:r,as:y},ownerState:G,className:B(p,U==null?void 0:U.className,re==null?void 0:re.root,!G.open&&G.exited&&(re==null?void 0:re.hidden))}),xe=Kr({elementType:ee,externalSlotProps:fe,additionalProps:f,getSlotProps:te=>R(h({},te,{onClick:ve=>{T&&T(ve),te!=null&&te.onClick&&te.onClick(ve)}})),className:B(fe==null?void 0:fe.className,f==null?void 0:f.className,re==null?void 0:re.backdrop),ownerState:G});return!$&&!j&&(!Z||V)?null:S.jsx(Lv,{ref:H,container:v,disablePortal:E,children:S.jsxs(X,h({},oe,{children:[!k&&d?S.jsx(ee,h({},xe)):null,S.jsx(iP,{disableEnforceFocus:b,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:ue,open:j,children:l.cloneElement(g,ne)})]}))})});function gP(e){return ie("MuiDialog",e)}const ps=le("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Uv=l.createContext({}),hP=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],yP=I(Wv,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),bP=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${z(r)}`],paper:["paper",`paperScroll${z(r)}`,`paperWidth${z(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return se(i,gP,t)},xP=I(Hv,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),OP=I("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${z(r.scroll)}`]]}})(({ownerState:e})=>h({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),_P=I(Xn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${z(r.scroll)}`],t[`paperWidth${z(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>h({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ps.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${ps.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ps.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Gu=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiDialog"}),o=Yr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:u,BackdropProps:c,children:d,className:f,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:g=!1,maxWidth:v="sm",onBackdropClick:y,onClick:O,onClose:C,open:x,PaperComponent:b=Xn,PaperProps:_={},scroll:E="paper",TransitionComponent:w=zv,transitionDuration:P=a,TransitionProps:k}=n,$=W(n,hP),T=h({},n,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:g,maxWidth:v,scroll:E}),j=bP(T),N=l.useRef(),A=R=>{N.current=R.target===R.currentTarget},F=R=>{O&&O(R),N.current&&(N.current=null,y&&y(R),C&&C(R,"backdropClick"))},M=Yo(s),L=l.useMemo(()=>({titleId:M}),[M]);return S.jsx(xP,h({className:B(j.root,f),closeAfterTransition:!0,components:{Backdrop:yP},componentsProps:{backdrop:h({transitionDuration:P,as:u},c)},disableEscapeKeyDown:p,onClose:C,open:x,ref:r,onClick:F,ownerState:T},$,{children:S.jsx(w,h({appear:!0,in:x,timeout:P,role:"presentation"},k,{children:S.jsx(OP,{className:B(j.container),onMouseDown:A,ownerState:T,children:S.jsx(_P,h({as:b,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":M},_,{className:B(j.paper,_.className),ownerState:T,children:S.jsx(Uv.Provider,{value:L,children:d})}))})}))}))});function CP(e){return ie("MuiDialogActions",e)}le("MuiDialogActions",["root","spacing"]);const wP=["className","disableSpacing"],EP=e=>{const{classes:t,disableSpacing:r}=e;return se({root:["root",!r&&"spacing"]},CP,t)},PP=I("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>h({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Xu=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=n,i=W(n,wP),s=h({},n,{disableSpacing:a}),u=EP(s);return S.jsx(PP,h({className:B(u.root,o),ownerState:s,ref:r},i))});function SP(e){return ie("MuiDialogContent",e)}le("MuiDialogContent",["root","dividers"]);function $P(e){return ie("MuiDialogTitle",e)}const RP=le("MuiDialogTitle",["root"]),kP=["className","dividers"],TP=e=>{const{classes:t,dividers:r}=e;return se({root:["root",r&&"dividers"]},SP,t)},IP=I("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>h({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${RP.root} + &`]:{paddingTop:0}})),Yu=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=n,i=W(n,kP),s=h({},n,{dividers:a}),u=TP(s);return S.jsx(IP,h({className:B(u.root,o),ownerState:s,ref:r},i))});function jP(e){return ie("MuiDialogContentText",e)}le("MuiDialogContentText",["root"]);const AP=["children","className"],MP=e=>{const{classes:t}=e,n=se({root:["root"]},jP,t);return h({},t,n)},NP=I(Le,{shouldForwardProp:e=>mt(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qv=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiDialogContentText"}),{className:o}=n,a=W(n,AP),i=MP(a);return S.jsx(NP,h({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:a,className:B(i.root,o)},n,{classes:i}))}),FP=["className","id"],BP=e=>{const{classes:t}=e;return se({root:["root"]},$P,t)},LP=I(Le,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Qu=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=W(n,FP),s=n,u=BP(s),{titleId:c=a}=l.useContext(Uv);return S.jsx(LP,h({component:"h2",className:B(u.root,o),ownerState:s,ref:r,variant:"h6",id:a??c},i))});function DP(e){return ie("MuiDivider",e)}const ep=le("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),zP=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],WP=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:s,variant:u}=e;return se({root:["root",t&&"absolute",u,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},DP,n)},VP=I("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>h({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Te(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>h({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>h({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>h({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>h({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),HP=I("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>h({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Kv=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:u=!1,light:c=!1,orientation:d="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=n,g=W(n,zP),v=h({},n,{absolute:o,component:s,flexItem:u,light:c,orientation:d,role:f,textAlign:p,variant:m}),y=WP(v);return S.jsx(VP,h({as:s,className:B(y.root,i),role:f,ref:r,ownerState:v},g,{children:a?S.jsx(HP,{className:y.wrapper,ownerState:v,children:a}):null}))});Kv.muiSkipListHighlight=!0;const UP=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function qP(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=tr(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const c=a.getComputedStyle(t);i=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,u=0;if(i&&i!=="none"&&typeof i=="string"){const c=i.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),u=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+s-n.left}px)`:`translateX(${a.innerWidth+s-n.left}px)`:e==="right"?o?`translateX(-${n.right-o.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?o?`translateY(${o.bottom+u-n.top}px)`:`translateY(${a.innerHeight+u-n.top}px)`:o?`translateY(-${n.top-o.top+n.height-u}px)`:`translateY(-${n.top+n.height-u}px)`}function KP(e){return typeof e=="function"?e():e}function Oa(e,t,r){const n=KP(r),o=qP(e,t,n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const GP=l.forwardRef(function(t,r){const n=Yr(),o={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:u,container:c,direction:d="down",easing:f=o,in:p,onEnter:m,onEntered:g,onEntering:v,onExit:y,onExited:O,onExiting:C,style:x,timeout:b=a,TransitionComponent:_=Kt}=t,E=W(t,UP),w=l.useRef(null),P=De(u.ref,w,r),k=R=>D=>{R&&(D===void 0?R(w.current):R(w.current,D))},$=k((R,D)=>{Oa(d,R,c),Nu(R),m&&m(R,D)}),T=k((R,D)=>{const H=Mn({timeout:b,style:x,easing:f},{mode:"enter"});R.style.webkitTransition=n.transitions.create("-webkit-transform",h({},H)),R.style.transition=n.transitions.create("transform",h({},H)),R.style.webkitTransform="none",R.style.transform="none",v&&v(R,D)}),j=k(g),N=k(C),A=k(R=>{const D=Mn({timeout:b,style:x,easing:f},{mode:"exit"});R.style.webkitTransition=n.transitions.create("-webkit-transform",D),R.style.transition=n.transitions.create("transform",D),Oa(d,R,c),y&&y(R)}),F=k(R=>{R.style.webkitTransition="",R.style.transition="",O&&O(R)}),M=R=>{i&&i(w.current,R)},L=l.useCallback(()=>{w.current&&Oa(d,w.current,c)},[d,c]);return l.useEffect(()=>{if(p||d==="down"||d==="right")return;const R=Cl(()=>{w.current&&Oa(d,w.current,c)}),D=tr(w.current);return D.addEventListener("resize",R),()=>{R.clear(),D.removeEventListener("resize",R)}},[d,p,c]),l.useEffect(()=>{p||L()},[p,L]),S.jsx(_,h({nodeRef:w,onEnter:$,onEntered:j,onEntering:T,onExit:A,onExited:F,onExiting:N,addEndListener:M,appear:s,in:p,timeout:b},E,{children:(R,D)=>l.cloneElement(u,h({ref:P,style:h({visibility:R==="exited"&&!p?"hidden":void 0},x,u.props.style)},D))}))}),XP=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],YP=e=>{const{classes:t,disableUnderline:r}=e,o=se({root:["root",!r&&"underline"],input:["input"]},Kw,t);return h({},t,o)},QP=I(Dl,{shouldForwardProp:e=>mt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Bl(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return h({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Ir.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Ir.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ir.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ir.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ir.disabled}, .${Ir.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ir.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&h({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),JP=I(zl,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ll})(({theme:e,ownerState:t})=>h({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Ju=l.forwardRef(function(t,r){var n,o,a,i;const s=ce({props:t,name:"MuiFilledInput"}),{components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:g={},type:v="text"}=s,y=W(s,XP),O=h({},s,{fullWidth:d,inputComponent:f,multiline:p,type:v}),C=YP(s),x={root:{ownerState:O},input:{ownerState:O}},b=m??c?at(x,m??c):x,_=(n=(o=g.root)!=null?o:u.Root)!=null?n:QP,E=(a=(i=g.input)!=null?i:u.Input)!=null?a:JP;return S.jsx(Ku,h({slots:{root:_,input:E},componentsProps:b,fullWidth:d,inputComponent:f,multiline:p,ref:r,type:v},y,{classes:C}))});Ju.muiName="Input";function ZP(e){return ie("MuiFormControl",e)}le("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const eS=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],tS=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${z(r)}`,n&&"fullWidth"]};return se(o,ZP,t)},rS=I("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>h({},t.root,t[`margin${z(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>h({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),nS=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:u=!1,error:c=!1,focused:d,fullWidth:f=!1,hiddenLabel:p=!1,margin:m="none",required:g=!1,size:v="medium",variant:y="outlined"}=n,O=W(n,eS),C=h({},n,{color:i,component:s,disabled:u,error:c,fullWidth:f,hiddenLabel:p,margin:m,required:g,size:v,variant:y}),x=tS(C),[b,_]=l.useState(()=>{let N=!1;return o&&l.Children.forEach(o,A=>{if(!Aa(A,["Input","Select"]))return;const F=Aa(A,["Select"])?A.props.input:A;F&&Dw(F.props)&&(N=!0)}),N}),[E,w]=l.useState(()=>{let N=!1;return o&&l.Children.forEach(o,A=>{Aa(A,["Input","Select"])&&(ui(A.props,!0)||ui(A.props.inputProps,!0))&&(N=!0)}),N}),[P,k]=l.useState(!1);u&&P&&k(!1);const $=d!==void 0&&!u?d:P;let T;const j=l.useMemo(()=>({adornedStart:b,setAdornedStart:_,color:i,disabled:u,error:c,filled:E,focused:$,fullWidth:f,hiddenLabel:p,size:v,onBlur:()=>{k(!1)},onEmpty:()=>{w(!1)},onFilled:()=>{w(!0)},onFocus:()=>{k(!0)},registerEffect:T,required:g,variant:y}),[b,i,u,c,E,$,f,p,T,g,v,y]);return S.jsx(qu.Provider,{value:j,children:S.jsx(rS,h({as:s,ownerState:C,className:B(x.root,a),ref:r},O,{children:o}))})}),Ul=tO({createStyledComponent:I("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ce({props:e,name:"MuiStack"})});function oS(e){return ie("MuiFormHelperText",e)}const tp=le("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var rp;const aS=["children","className","component","disabled","error","filled","focused","margin","required","variant"],iS=e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:u}=e,c={root:["root",o&&"disabled",a&&"error",n&&`size${z(n)}`,r&&"contained",s&&"focused",i&&"filled",u&&"required"]};return se(c,oS,t)},lS=I("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${z(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>h({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${tp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${tp.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),sS=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=n,s=W(n,aS),u=Qr(),c=Yn({props:n,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),d=h({},n,{component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=iS(d);return S.jsx(lS,h({as:i,ownerState:d,className:B(f.root,a),ref:r},s,{children:o===" "?rp||(rp=S.jsx("span",{className:"notranslate",children:"​"})):o}))});function cS(e){return ie("MuiFormLabel",e)}const _o=le("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),uS=["children","className","color","component","disabled","error","filled","focused","required"],dS=e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e,u={root:["root",`color${z(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return se(u,cS,t)},fS=I("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>h({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>h({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${_o.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${_o.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${_o.error}`]:{color:(e.vars||e).palette.error.main}})),pS=I("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${_o.error}`]:{color:(e.vars||e).palette.error.main}})),mS=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=n,s=W(n,uS),u=Qr(),c=Yn({props:n,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),d=h({},n,{color:c.color||"primary",component:i,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=dS(d);return S.jsxs(fS,h({as:i,ownerState:d,className:B(f.root,a),ref:r},s,{children:[o,c.required&&S.jsxs(pS,{ownerState:d,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),vS=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function qs(e){return`scale(${e}, ${e**2})`}const gS={entering:{opacity:1,transform:qs(1)},entered:{opacity:1,transform:"none"}},ms=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),fi=l.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:f,onExited:p,onExiting:m,style:g,timeout:v="auto",TransitionComponent:y=Kt}=t,O=W(t,vS),C=mn(),x=l.useRef(),b=Yr(),_=l.useRef(null),E=De(_,a.ref,r),w=F=>M=>{if(F){const L=_.current;M===void 0?F(L):F(L,M)}},P=w(d),k=w((F,M)=>{Nu(F);const{duration:L,delay:R,easing:D}=Mn({style:g,timeout:v,easing:i},{mode:"enter"});let H;v==="auto"?(H=b.transitions.getAutoHeightDuration(F.clientHeight),x.current=H):H=L,F.style.transition=[b.transitions.create("opacity",{duration:H,delay:R}),b.transitions.create("transform",{duration:ms?H:H*.666,delay:R,easing:D})].join(","),u&&u(F,M)}),$=w(c),T=w(m),j=w(F=>{const{duration:M,delay:L,easing:R}=Mn({style:g,timeout:v,easing:i},{mode:"exit"});let D;v==="auto"?(D=b.transitions.getAutoHeightDuration(F.clientHeight),x.current=D):D=M,F.style.transition=[b.transitions.create("opacity",{duration:D,delay:L}),b.transitions.create("transform",{duration:ms?D:D*.666,delay:ms?L:L||D*.333,easing:R})].join(","),F.style.opacity=0,F.style.transform=qs(.75),f&&f(F)}),N=w(p),A=F=>{v==="auto"&&C.start(x.current||0,F),n&&n(_.current,F)};return S.jsx(y,h({appear:o,in:s,nodeRef:_,onEnter:k,onEntered:$,onEntering:P,onExit:j,onExited:N,onExiting:T,addEndListener:A,timeout:v==="auto"?null:v},O,{children:(F,M)=>l.cloneElement(a,h({style:h({opacity:0,transform:qs(.75),visibility:F==="exited"&&!s?"hidden":void 0},gS[F],g,a.props.style),ref:E},M))}))});fi.muiSupportAuto=!0;const hS=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],yS=e=>{const{classes:t,disableUnderline:r}=e,o=se({root:["root",!r&&"underline"],input:["input"]},Uw,t);return h({},t,o)},bS=I(Dl,{shouldForwardProp:e=>mt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Bl(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),h({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${so.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${so.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${so.disabled}, .${so.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${so.disabled}:before`]:{borderBottomStyle:"dotted"}})}),xS=I(zl,{name:"MuiInput",slot:"Input",overridesResolver:Ll})({}),Zu=l.forwardRef(function(t,r){var n,o,a,i;const s=ce({props:t,name:"MuiInput"}),{disableUnderline:u,components:c={},componentsProps:d,fullWidth:f=!1,inputComponent:p="input",multiline:m=!1,slotProps:g,slots:v={},type:y="text"}=s,O=W(s,hS),C=yS(s),b={root:{ownerState:{disableUnderline:u}}},_=g??d?at(g??d,b):b,E=(n=(o=v.root)!=null?o:c.Root)!=null?n:bS,w=(a=(i=v.input)!=null?i:c.Input)!=null?a:xS;return S.jsx(Ku,h({slots:{root:E,input:w},slotProps:_,fullWidth:f,inputComponent:p,multiline:m,ref:r,type:y},O,{classes:C}))});Zu.muiName="Input";function OS(e){return ie("MuiInputLabel",e)}le("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const _S=["disableAnimation","margin","shrink","variant","className"],CS=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e,u={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${z(n)}`,i],asterisk:[s&&"asterisk"]},c=se(u,OS,t);return h({},t,c)},wS=I(mS,{shouldForwardProp:e=>mt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${_o.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>h({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&h({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&h({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&h({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),ES=l.forwardRef(function(t,r){const n=ce({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=n,s=W(n,_S),u=Qr();let c=a;typeof c>"u"&&u&&(c=u.filled||u.focused||u.adornedStart);const d=Yn({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),f=h({},n,{disableAnimation:o,formControl:u,shrink:c,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),p=CS(f);return S.jsx(wS,h({"data-shrink":c,ownerState:f,ref:r,className:B(p.root,i)},s,{classes:p}))}),Lo=l.createContext({});function PS(e){return ie("MuiList",e)}le("MuiList",["root","padding","dense","subheader"]);const SS=["children","className","component","dense","disablePadding","subheader"],$S=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return se({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},PS,t)},RS=I("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>h({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),kS=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:u=!1,subheader:c}=n,d=W(n,SS),f=l.useMemo(()=>({dense:s}),[s]),p=h({},n,{component:i,dense:s,disablePadding:u}),m=$S(p);return S.jsx(Lo.Provider,{value:f,children:S.jsxs(RS,h({as:i,className:B(m.root,a),ref:r,ownerState:p},d,{children:[c,o]}))})});function TS(e){return ie("MuiListItemIcon",e)}const np=le("MuiListItemIcon",["root","alignItemsFlexStart"]),IS=["className"],jS=e=>{const{alignItems:t,classes:r}=e;return se({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},TS,r)},AS=I("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>h({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Dr=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiListItemIcon"}),{className:o}=n,a=W(n,IS),i=l.useContext(Lo),s=h({},n,{alignItems:i.alignItems}),u=jS(s);return S.jsx(AS,h({className:B(u.root,o),ownerState:s,ref:r},a))});function MS(e){return ie("MuiListItemText",e)}const pi=le("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),NS=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],FS=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return se({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},MS,t)},BS=I("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${pi.primary}`]:t.primary},{[`& .${pi.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>h({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),gn=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:u,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:f}=n,p=W(n,NS),{dense:m}=l.useContext(Lo);let g=u??o,v=d;const y=h({},n,{disableTypography:i,inset:s,primary:!!g,secondary:!!v,dense:m}),O=FS(y);return g!=null&&g.type!==Le&&!i&&(g=S.jsx(Le,h({variant:m?"body2":"body1",className:O.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:g}))),v!=null&&v.type!==Le&&!i&&(v=S.jsx(Le,h({variant:"body2",className:O.secondary,color:"text.secondary",display:"block"},f,{children:v}))),S.jsxs(BS,h({className:B(O.root,a),ownerState:y,ref:r},p,{children:[g,v]}))}),LS=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function vs(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function op(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Gv(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function co(e,t,r,n,o,a){let i=!1,s=o(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const u=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!Gv(s,a)||u)s=o(e,s,r);else return s.focus(),!0}return!1}const Xv=l.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:u=!1,disableListWrap:c=!1,onKeyDown:d,variant:f="selectedMenu"}=t,p=W(t,LS),m=l.useRef(null),g=l.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Mt(()=>{o&&m.current.focus()},[o]),l.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(x,{direction:b})=>{const _=!m.current.style.width;if(x.clientHeight{const b=m.current,_=x.key,E=ut(b).activeElement;if(_==="ArrowDown")x.preventDefault(),co(b,E,c,u,vs);else if(_==="ArrowUp")x.preventDefault(),co(b,E,c,u,op);else if(_==="Home")x.preventDefault(),co(b,null,c,u,vs);else if(_==="End")x.preventDefault(),co(b,null,c,u,op);else if(_.length===1){const w=g.current,P=_.toLowerCase(),k=performance.now();w.keys.length>0&&(k-w.lastTime>500?(w.keys=[],w.repeating=!0,w.previousKeyMatched=!0):w.repeating&&P!==w.keys[0]&&(w.repeating=!1)),w.lastTime=k,w.keys.push(P);const $=E&&!w.repeating&&Gv(E,w);w.previousKeyMatched&&($||co(b,E,!1,u,vs,w))?x.preventDefault():w.previousKeyMatched=!1}d&&d(x)},y=De(m,r);let O=-1;l.Children.forEach(i,(x,b)=>{if(!l.isValidElement(x)){O===b&&(O+=1,O>=i.length&&(O=-1));return}x.props.disabled||(f==="selectedMenu"&&x.props.selected||O===-1)&&(O=b),O===b&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(O+=1,O>=i.length&&(O=-1))});const C=l.Children.map(i,(x,b)=>{if(b===O){const _={};return a&&(_.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),l.cloneElement(x,_)}return x});return S.jsx(kS,h({role:"menu",ref:y,className:s,onKeyDown:v,tabIndex:o?0:-1},p,{children:C}))});function DS(e){return ie("MuiPopover",e)}le("MuiPopover",["root","paper"]);const zS=["onEntering"],WS=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],VS=["slotProps"];function ap(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function ip(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function lp(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function gs(e){return typeof e=="function"?e():e}const HS=e=>{const{classes:t}=e;return se({root:["root"],paper:["paper"]},DS,t)},US=I(Hv,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yv=I(Xn,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Qv=l.forwardRef(function(t,r){var n,o,a;const i=ce({props:t,name:"MuiPopover"}),{action:s,anchorEl:u,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:p,className:m,container:g,elevation:v=8,marginThreshold:y=16,open:O,PaperProps:C={},slots:x,slotProps:b,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:E=fi,transitionDuration:w="auto",TransitionProps:{onEntering:P}={},disableScrollLock:k=!1}=i,$=W(i.TransitionProps,zS),T=W(i,WS),j=(n=b==null?void 0:b.paper)!=null?n:C,N=l.useRef(),A=De(N,j.ref),F=h({},i,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:y,externalPaperSlotProps:j,transformOrigin:_,TransitionComponent:E,transitionDuration:w,TransitionProps:$}),M=HS(F),L=l.useCallback(()=>{if(f==="anchorPosition")return d;const te=gs(u),ge=(te&&te.nodeType===1?te:ut(N.current).body).getBoundingClientRect();return{top:ge.top+ap(ge,c.vertical),left:ge.left+ip(ge,c.horizontal)}},[u,c.horizontal,c.vertical,d,f]),R=l.useCallback(te=>({vertical:ap(te,_.vertical),horizontal:ip(te,_.horizontal)}),[_.horizontal,_.vertical]),D=l.useCallback(te=>{const ve={width:te.offsetWidth,height:te.offsetHeight},ge=R(ve);if(f==="none")return{top:null,left:null,transformOrigin:lp(ge)};const it=L();let Ke=it.top-ge.vertical,Ae=it.left-ge.horizontal;const ze=Ke+ve.height,ke=Ae+ve.width,_e=tr(gs(u)),Ye=_e.innerHeight-y,je=_e.innerWidth-y;if(y!==null&&KeYe){const Oe=ze-Ye;Ke-=Oe,ge.vertical+=Oe}if(y!==null&&Aeje){const Oe=ke-je;Ae-=Oe,ge.horizontal+=Oe}return{top:`${Math.round(Ke)}px`,left:`${Math.round(Ae)}px`,transformOrigin:lp(ge)}},[u,f,L,R,y]),[H,ue]=l.useState(O),V=l.useCallback(()=>{const te=N.current;if(!te)return;const ve=D(te);ve.top!==null&&(te.style.top=ve.top),ve.left!==null&&(te.style.left=ve.left),te.style.transformOrigin=ve.transformOrigin,ue(!0)},[D]);l.useEffect(()=>(k&&window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)),[u,k,V]);const Z=(te,ve)=>{P&&P(te,ve),V()},G=()=>{ue(!1)};l.useEffect(()=>{O&&V()}),l.useImperativeHandle(s,()=>O?{updatePosition:()=>{V()}}:null,[O,V]),l.useEffect(()=>{if(!O)return;const te=Cl(()=>{V()}),ve=tr(u);return ve.addEventListener("resize",te),()=>{te.clear(),ve.removeEventListener("resize",te)}},[u,O,V]);let re=w;w==="auto"&&!E.muiSupportAuto&&(re=void 0);const ne=g||(u?ut(gs(u)).body:void 0),X=(o=x==null?void 0:x.root)!=null?o:US,ee=(a=x==null?void 0:x.paper)!=null?a:Yv,U=Kr({elementType:ee,externalSlotProps:h({},j,{style:H?j.style:h({},j.style,{opacity:0})}),additionalProps:{elevation:v,ref:A},ownerState:F,className:B(M.paper,j==null?void 0:j.className)}),fe=Kr({elementType:X,externalSlotProps:(b==null?void 0:b.root)||{},externalForwardedProps:T,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:ne,open:O},ownerState:F,className:B(M.root,m)}),{slotProps:oe}=fe,xe=W(fe,VS);return S.jsx(X,h({},xe,!ii(X)&&{slotProps:oe,disableScrollLock:k},{children:S.jsx(E,h({appear:!0,in:O,onEntering:Z,onExited:G,timeout:re},$,{children:S.jsx(ee,h({},U,{children:p}))}))}))});function qS(e){return ie("MuiMenu",e)}le("MuiMenu",["root","paper","list"]);const KS=["onEntering"],GS=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],XS={vertical:"top",horizontal:"right"},YS={vertical:"top",horizontal:"left"},QS=e=>{const{classes:t}=e;return se({root:["root"],paper:["paper"],list:["list"]},qS,t)},JS=I(Qv,{shouldForwardProp:e=>mt(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ZS=I(Yv,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),e$=I(Xv,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ql=l.forwardRef(function(t,r){var n,o;const a=ce({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:u,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:f,open:p,PaperProps:m={},PopoverClasses:g,transitionDuration:v="auto",TransitionProps:{onEntering:y}={},variant:O="selectedMenu",slots:C={},slotProps:x={}}=a,b=W(a.TransitionProps,KS),_=W(a,GS),E=fv(),w=h({},a,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:d,onEntering:y,PaperProps:m,transitionDuration:v,TransitionProps:b,variant:O}),P=QS(w),k=i&&!c&&p,$=l.useRef(null),T=(R,D)=>{$.current&&$.current.adjustStyleForScrollbar(R,{direction:E?"rtl":"ltr"}),y&&y(R,D)},j=R=>{R.key==="Tab"&&(R.preventDefault(),f&&f(R,"tabKeyDown"))};let N=-1;l.Children.map(s,(R,D)=>{l.isValidElement(R)&&(R.props.disabled||(O==="selectedMenu"&&R.props.selected||N===-1)&&(N=D))});const A=(n=C.paper)!=null?n:ZS,F=(o=x.paper)!=null?o:m,M=Kr({elementType:C.root,externalSlotProps:x.root,ownerState:w,className:[P.root,u]}),L=Kr({elementType:A,externalSlotProps:F,ownerState:w,className:P.paper});return S.jsx(JS,h({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?XS:YS,slots:{paper:A,root:C.root},slotProps:{root:M,paper:L},open:p,ref:r,transitionDuration:v,TransitionProps:h({onEntering:T},b),ownerState:w},_,{classes:g,children:S.jsx(e$,h({onKeyDown:j,actions:$,autoFocus:i&&(N===-1||c),autoFocusItem:k,variant:O},d,{className:B(P.list,d.className),children:s}))}))});function t$(e){return ie("MuiMenuItem",e)}const uo=le("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),r$=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],n$=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},o$=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,u=se({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},t$,i);return h({},i,u)},a$=I(Nn,{shouldForwardProp:e=>mt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:n$})(({theme:e,ownerState:t})=>h({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${uo.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Te(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${uo.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Te(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${uo.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Te(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Te(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${uo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${uo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ep.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ep.inset}`]:{marginLeft:52},[`& .${pi.root}`]:{marginTop:0,marginBottom:0},[`& .${pi.inset}`]:{paddingLeft:36},[`& .${np.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&h({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${np.root} svg`]:{fontSize:"1.25rem"}}))),Or=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:f,className:p}=n,m=W(n,r$),g=l.useContext(Lo),v=l.useMemo(()=>({dense:i||g.dense||!1,disableGutters:u}),[g.dense,i,u]),y=l.useRef(null);Mt(()=>{o&&y.current&&y.current.focus()},[o]);const O=h({},n,{dense:v.dense,divider:s,disableGutters:u}),C=o$(n),x=De(y,r);let b;return n.disabled||(b=f!==void 0?f:-1),S.jsx(Lo.Provider,{value:v,children:S.jsx(a$,h({ref:x,role:d,tabIndex:b,component:a,focusVisibleClassName:B(C.focusVisible,c),className:B(C.root,p)},m,{ownerState:O,classes:C}))})});function i$(e){return ie("MuiNativeSelect",e)}const ed=le("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),l$=["className","disabled","error","IconComponent","inputRef","variant"],s$=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${z(r)}`,a&&"iconOpen",n&&"disabled"]};return se(s,i$,t)},Jv=({ownerState:e,theme:t})=>h({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":h({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${ed.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),c$=I("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:mt,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${ed.multiple}`]:t.multiple}]}})(Jv),Zv=({ownerState:e,theme:t})=>h({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ed.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),u$=I("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${z(r.variant)}`],r.open&&t.iconOpen]}})(Zv),d$=l.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:s,variant:u="standard"}=t,c=W(t,l$),d=h({},t,{disabled:o,variant:u,error:a}),f=s$(d);return S.jsxs(l.Fragment,{children:[S.jsx(c$,h({ownerState:d,className:B(f.select,n),disabled:o,ref:s||r},c)),t.multiple?null:S.jsx(u$,{as:i,ownerState:d,className:f.icon})]})});var sp;const f$=["children","classes","className","label","notched"],p$=I("fieldset",{shouldForwardProp:mt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),m$=I("legend",{shouldForwardProp:mt})(({ownerState:e,theme:t})=>h({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&h({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function v$(e){const{className:t,label:r,notched:n}=e,o=W(e,f$),a=r!=null&&r!=="",i=h({},e,{notched:n,withLabel:a});return S.jsx(p$,h({"aria-hidden":!0,className:t,ownerState:i},o,{children:S.jsx(m$,{ownerState:i,children:a?S.jsx("span",{children:r}):sp||(sp=S.jsx("span",{className:"notranslate",children:"​"}))})}))}const g$=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],h$=e=>{const{classes:t}=e,n=se({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qw,t);return h({},t,n)},y$=I(Dl,{shouldForwardProp:e=>mt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Bl})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return h({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${yr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${yr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${yr.focused} .${yr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${yr.error} .${yr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${yr.disabled} .${yr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&h({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),b$=I(v$,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),x$=I(zl,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ll})(({theme:e,ownerState:t})=>h({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),td=l.forwardRef(function(t,r){var n,o,a,i,s;const u=ce({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:d=!1,inputComponent:f="input",label:p,multiline:m=!1,notched:g,slots:v={},type:y="text"}=u,O=W(u,g$),C=h$(u),x=Qr(),b=Yn({props:u,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=h({},u,{color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:x,fullWidth:d,hiddenLabel:b.hiddenLabel,multiline:m,size:b.size,type:y}),E=(n=(o=v.root)!=null?o:c.Root)!=null?n:y$,w=(a=(i=v.input)!=null?i:c.Input)!=null?a:x$;return S.jsx(Ku,h({slots:{root:E,input:w},renderSuffix:P=>S.jsx(b$,{ownerState:_,className:C.notchedOutline,label:p!=null&&p!==""&&b.required?s||(s=S.jsxs(l.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:d,inputComponent:f,multiline:m,ref:r,type:y},O,{classes:h({},C,{notchedOutline:null})}))});td.muiName="Input";function O$(e){return ie("MuiSelect",e)}const fo=le("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var cp;const _$=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],C$=I("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${fo.select}`]:t.select},{[`&.${fo.select}`]:t[r.variant]},{[`&.${fo.error}`]:t.error},{[`&.${fo.multiple}`]:t.multiple}]}})(Jv,{[`&.${fo.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),w$=I("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${z(r.variant)}`],r.open&&t.iconOpen]}})(Zv),E$=I("input",{shouldForwardProp:e=>Ev(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function up(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function P$(e){return e==null||typeof e=="string"&&!e.trim()}const S$=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${z(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return se(s,O$,t)},$$=l.forwardRef(function(t,r){var n;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:u,className:c,defaultOpen:d,defaultValue:f,disabled:p,displayEmpty:m,error:g=!1,IconComponent:v,inputRef:y,labelId:O,MenuProps:C={},multiple:x,name:b,onBlur:_,onChange:E,onClose:w,onFocus:P,onOpen:k,open:$,readOnly:T,renderValue:j,SelectDisplayProps:N={},tabIndex:A,value:F,variant:M="standard"}=t,L=W(t,_$),[R,D]=No({controlled:F,default:f,name:"Select"}),[H,ue]=No({controlled:$,default:d,name:"Select"}),V=l.useRef(null),Z=l.useRef(null),[G,re]=l.useState(null),{current:ne}=l.useRef($!=null),[X,ee]=l.useState(),U=De(r,y),fe=l.useCallback(q=>{Z.current=q,q&&re(q)},[]),oe=G==null?void 0:G.parentNode;l.useImperativeHandle(U,()=>({focus:()=>{Z.current.focus()},node:V.current,value:R}),[R]),l.useEffect(()=>{d&&H&&G&&!ne&&(ee(s?null:oe.clientWidth),Z.current.focus())},[G,s]),l.useEffect(()=>{i&&Z.current.focus()},[i]),l.useEffect(()=>{if(!O)return;const q=ut(Z.current).getElementById(O);if(q){const we=()=>{getSelection().isCollapsed&&Z.current.focus()};return q.addEventListener("click",we),()=>{q.removeEventListener("click",we)}}},[O]);const xe=(q,we)=>{q?k&&k(we):w&&w(we),ne||(ee(s?null:oe.clientWidth),ue(q))},te=q=>{q.button===0&&(q.preventDefault(),Z.current.focus(),xe(!0,q))},ve=q=>{xe(!1,q)},ge=l.Children.toArray(u),it=q=>{const we=ge.find(Se=>Se.props.value===q.target.value);we!==void 0&&(D(we.props.value),E&&E(q,we))},Ke=q=>we=>{let Se;if(we.currentTarget.hasAttribute("tabindex")){if(x){Se=Array.isArray(R)?R.slice():[];const Je=R.indexOf(q.props.value);Je===-1?Se.push(q.props.value):Se.splice(Je,1)}else Se=q.props.value;if(q.props.onClick&&q.props.onClick(we),R!==Se&&(D(Se),E)){const Je=we.nativeEvent||we,Ht=new Je.constructor(Je.type,Je);Object.defineProperty(Ht,"target",{writable:!0,value:{value:Se,name:b}}),E(Ht,q)}x||xe(!1,we)}},Ae=q=>{T||[" ","ArrowUp","ArrowDown","Enter"].indexOf(q.key)!==-1&&(q.preventDefault(),xe(!0,q))},ze=G!==null&&H,ke=q=>{!ze&&_&&(Object.defineProperty(q,"target",{writable:!0,value:{value:R,name:b}}),_(q))};delete L["aria-invalid"];let _e,Ye;const je=[];let Oe=!1;(ui({value:R})||m)&&(j?_e=j(R):Oe=!0);const We=ge.map(q=>{if(!l.isValidElement(q))return null;let we;if(x){if(!Array.isArray(R))throw new Error(cr(2));we=R.some(Se=>up(Se,q.props.value)),we&&Oe&&je.push(q.props.children)}else we=up(R,q.props.value),we&&Oe&&(Ye=q.props.children);return l.cloneElement(q,{"aria-selected":we?"true":"false",onClick:Ke(q),onKeyUp:Se=>{Se.key===" "&&Se.preventDefault(),q.props.onKeyUp&&q.props.onKeyUp(Se)},role:"option",selected:we,value:void 0,"data-value":q.props.value})});Oe&&(x?je.length===0?_e=null:_e=je.reduce((q,we,Se)=>(q.push(we),Se{const{classes:t}=e;return t},rd={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>mt(e)&&e!=="variant",slot:"Root"},I$=I(Zu,rd)(""),j$=I(td,rd)(""),A$=I(Ju,rd)(""),eg=l.forwardRef(function(t,r){const n=ce({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:u=!1,displayEmpty:c=!1,IconComponent:d=Gw,id:f,input:p,inputProps:m,label:g,labelId:v,MenuProps:y,multiple:O=!1,native:C=!1,onClose:x,onOpen:b,open:_,renderValue:E,SelectDisplayProps:w,variant:P="outlined"}=n,k=W(n,R$),$=C?d$:$$,T=Qr(),j=Yn({props:n,muiFormControl:T,states:["variant","error"]}),N=j.variant||P,A=h({},n,{variant:N,classes:i}),F=T$(A),M=W(F,k$),L=p||{standard:S.jsx(I$,{ownerState:A}),outlined:S.jsx(j$,{label:g,ownerState:A}),filled:S.jsx(A$,{ownerState:A})}[N],R=De(r,L.ref);return S.jsx(l.Fragment,{children:l.cloneElement(L,h({inputComponent:$,inputProps:h({children:a,error:j.error,IconComponent:d,variant:N,type:void 0,multiple:O},C?{id:f}:{autoWidth:o,defaultOpen:u,displayEmpty:c,labelId:v,MenuProps:y,onClose:x,onOpen:b,open:_,renderValue:E,SelectDisplayProps:h({id:f},w)},m,{classes:m?at(M,m.classes):M},p?p.props.inputProps:{})},(O&&C||c)&&N==="outlined"?{notched:!0}:{},{ref:R,className:B(L.props.className,s,F.root)},!p&&{variant:N},k))})});eg.muiName="Select";function M$(e){return ie("MuiTooltip",e)}const _r=le("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),N$=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function F$(e){return Math.round(e*1e5)/1e5}const B$=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:a}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${z(a.split("-")[0])}`],arrow:["arrow"]};return se(i,M$,t)},L$=I(Dv,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>h({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${_r.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${_r.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${_r.arrow}`]:h({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${_r.arrow}`]:h({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),D$=I("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${z(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>h({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Te(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${F$(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${_r.popper}[data-popper-placement*="left"] &`]:h({transformOrigin:"right center"},t.isRtl?h({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):h({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${_r.popper}[data-popper-placement*="right"] &`]:h({transformOrigin:"left center"},t.isRtl?h({marginRight:"14px"},t.touch&&{marginRight:"24px"}):h({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${_r.popper}[data-popper-placement*="top"] &`]:h({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${_r.popper}[data-popper-placement*="bottom"] &`]:h({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),z$=I("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Te(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let _a=!1;const dp=new Qo;let po={x:0,y:0};function Ca(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Jr=l.forwardRef(function(t,r){var n,o,a,i,s,u,c,d,f,p,m,g,v,y,O,C,x,b,_;const E=ce({props:t,name:"MuiTooltip"}),{arrow:w=!1,children:P,components:k={},componentsProps:$={},describeChild:T=!1,disableFocusListener:j=!1,disableHoverListener:N=!1,disableInteractive:A=!1,disableTouchListener:F=!1,enterDelay:M=100,enterNextDelay:L=0,enterTouchDelay:R=700,followCursor:D=!1,id:H,leaveDelay:ue=0,leaveTouchDelay:V=1500,onClose:Z,onOpen:G,open:re,placement:ne="bottom",PopperComponent:X,PopperProps:ee={},slotProps:U={},slots:fe={},title:oe,TransitionComponent:xe=fi,TransitionProps:te}=E,ve=W(E,N$),ge=l.isValidElement(P)?P:S.jsx("span",{children:P}),it=Yr(),Ke=fv(),[Ae,ze]=l.useState(),[ke,_e]=l.useState(null),Ye=l.useRef(!1),je=A||D,Oe=mn(),We=mn(),Qe=mn(),tt=mn(),[de,Y]=No({controlled:re,default:!1,name:"Tooltip",state:"open"});let Ve=de;const dt=Yo(H),vt=l.useRef(),q=lr(()=>{vt.current!==void 0&&(document.body.style.WebkitUserSelect=vt.current,vt.current=void 0),tt.clear()});l.useEffect(()=>q,[q]);const we=pe=>{dp.clear(),_a=!0,Y(!0),G&&!Ve&&G(pe)},Se=lr(pe=>{dp.start(800+ue,()=>{_a=!1}),Y(!1),Z&&Ve&&Z(pe),Oe.start(it.transitions.duration.shortest,()=>{Ye.current=!1})}),Je=pe=>{Ye.current&&pe.type!=="touchstart"||(Ae&&Ae.removeAttribute("title"),We.clear(),Qe.clear(),M||_a&&L?We.start(_a?L:M,()=>{we(pe)}):we(pe))},Ht=pe=>{We.clear(),Qe.start(ue,()=>{Se(pe)})},{isFocusVisibleRef:ca,onBlur:gt,onFocus:Qn,ref:ua}=$u(),[,en]=l.useState(!1),Jn=pe=>{gt(pe),ca.current===!1&&(en(!1),Ht(pe))},ht=pe=>{Ae||ze(pe.currentTarget),Qn(pe),ca.current===!0&&(en(!0),Je(pe))},kt=pe=>{Ye.current=!0;const ft=ge.props;ft.onTouchStart&&ft.onTouchStart(pe)},Zl=pe=>{kt(pe),Qe.clear(),Oe.clear(),q(),vt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",tt.start(R,()=>{document.body.style.WebkitUserSelect=vt.current,Je(pe)})},Zn=pe=>{ge.props.onTouchEnd&&ge.props.onTouchEnd(pe),q(),Qe.start(V,()=>{Se(pe)})};l.useEffect(()=>{if(!Ve)return;function pe(ft){(ft.key==="Escape"||ft.key==="Esc")&&Se(ft)}return document.addEventListener("keydown",pe),()=>{document.removeEventListener("keydown",pe)}},[Se,Ve]);const eo=De(ge.ref,ua,ze,r);!oe&&oe!==0&&(Ve=!1);const Gt=l.useRef(),da=pe=>{const ft=ge.props;ft.onMouseMove&&ft.onMouseMove(pe),po={x:pe.clientX,y:pe.clientY},Gt.current&&Gt.current.update()},mr={},lt=typeof oe=="string";T?(mr.title=!Ve&<&&!N?oe:null,mr["aria-describedby"]=Ve?dt:null):(mr["aria-label"]=lt?oe:null,mr["aria-labelledby"]=Ve&&!lt?dt:null);const st=h({},mr,ve,ge.props,{className:B(ve.className,ge.props.className),onTouchStart:kt,ref:eo},D?{onMouseMove:da}:{}),Rr={};F||(st.onTouchStart=Zl,st.onTouchEnd=Zn),N||(st.onMouseOver=Ca(Je,st.onMouseOver),st.onMouseLeave=Ca(Ht,st.onMouseLeave),je||(Rr.onMouseOver=Je,Rr.onMouseLeave=Ht)),j||(st.onFocus=Ca(ht,st.onFocus),st.onBlur=Ca(Jn,st.onBlur),je||(Rr.onFocus=ht,Rr.onBlur=Jn));const kr=l.useMemo(()=>{var pe;let ft=[{name:"arrow",enabled:!!ke,options:{element:ke,padding:4}}];return(pe=ee.popperOptions)!=null&&pe.modifiers&&(ft=ft.concat(ee.popperOptions.modifiers)),h({},ee.popperOptions,{modifiers:ft})},[ke,ee]),vr=h({},E,{isRtl:Ke,arrow:w,disableInteractive:je,placement:ne,PopperComponentProp:X,touch:Ye.current}),gr=B$(vr),to=(n=(o=fe.popper)!=null?o:k.Popper)!=null?n:L$,ro=(a=(i=(s=fe.transition)!=null?s:k.Transition)!=null?i:xe)!=null?a:fi,fa=(u=(c=fe.tooltip)!=null?c:k.Tooltip)!=null?u:D$,no=(d=(f=fe.arrow)!=null?f:k.Arrow)!=null?d:z$,wt=vn(to,h({},ee,(p=U.popper)!=null?p:$.popper,{className:B(gr.popper,ee==null?void 0:ee.className,(m=(g=U.popper)!=null?g:$.popper)==null?void 0:m.className)}),vr),es=vn(ro,h({},te,(v=U.transition)!=null?v:$.transition),vr),ts=vn(fa,h({},(y=U.tooltip)!=null?y:$.tooltip,{className:B(gr.tooltip,(O=(C=U.tooltip)!=null?C:$.tooltip)==null?void 0:O.className)}),vr),oo=vn(no,h({},(x=U.arrow)!=null?x:$.arrow,{className:B(gr.arrow,(b=(_=U.arrow)!=null?_:$.arrow)==null?void 0:b.className)}),vr);return S.jsxs(l.Fragment,{children:[l.cloneElement(ge,st),S.jsx(to,h({as:X??Dv,placement:ne,anchorEl:D?{getBoundingClientRect:()=>({top:po.y,left:po.x,right:po.x,bottom:po.y,width:0,height:0})}:Ae,popperRef:Gt,open:Ae?Ve:!1,id:dt,transition:!0},Rr,wt,{popperOptions:kr,children:({TransitionProps:pe})=>S.jsx(ro,h({timeout:it.transitions.duration.shorter},pe,es,{children:S.jsxs(fa,h({},ts,{children:[oe,w?S.jsx(no,h({},oo,{ref:_e})):null]}))}))}))]})}),W$=l.createContext(),V$=l.createContext();function H$(e){return ie("MuiTableCell",e)}const U$=le("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),q$=["align","className","component","padding","scope","size","sortDirection","variant"],K$=e=>{const{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${z(n)}`,o!=="normal"&&`padding${z(o)}`,`size${z(a)}`]};return se(s,H$,t)},G$=I("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${z(r.size)}`],r.padding!=="normal"&&t[`padding${z(r.padding)}`],r.align!=="inherit"&&t[`align${z(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>h({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?hv(Te(e.palette.divider,1),.88):gv(Te(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${U$.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Et=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:u,size:c,sortDirection:d,variant:f}=n,p=W(n,q$),m=l.useContext(W$),g=l.useContext(V$),v=g&&g.variant==="head";let y;i?y=i:y=v?"th":"td";let O=u;y==="td"?O=void 0:!O&&v&&(O="col");const C=f||g&&g.variant,x=h({},n,{align:o,component:y,padding:s||(m&&m.padding?m.padding:"normal"),size:c||(m&&m.size?m.size:"medium"),sortDirection:d,stickyHeader:C==="head"&&m&&m.stickyHeader,variant:C}),b=K$(x);let _=null;return d&&(_=d==="asc"?"ascending":"descending"),S.jsx(G$,h({as:y,ref:r,className:B(b.root,a),"aria-sort":_,scope:O,ownerState:x},p))});function X$(e){return ie("MuiToolbar",e)}le("MuiToolbar",["root","gutters","regular","dense"]);const Y$=["className","component","disableGutters","variant"],Q$=e=>{const{classes:t,disableGutters:r,variant:n}=e;return se({root:["root",!r&&"gutters",n]},X$,t)},J$=I("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>h({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),ra=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=n,u=W(n,Y$),c=h({},n,{component:a,disableGutters:i,variant:s}),d=Q$(c);return S.jsx(J$,h({as:a,className:B(d.root,o),ref:r,ownerState:c},u))}),y4=fr(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),b4=fr(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Z$(e){return ie("MuiTextField",e)}le("MuiTextField",["root"]);const eR=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],tR={standard:Zu,filled:Ju,outlined:td},rR=e=>{const{classes:t}=e;return se({root:["root"]},Z$,t)},nR=I(nS,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kl=l.forwardRef(function(t,r){const n=ce({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:u="primary",defaultValue:c,disabled:d=!1,error:f=!1,FormHelperTextProps:p,fullWidth:m=!1,helperText:g,id:v,InputLabelProps:y,inputProps:O,InputProps:C,inputRef:x,label:b,maxRows:_,minRows:E,multiline:w=!1,name:P,onBlur:k,onChange:$,onFocus:T,placeholder:j,required:N=!1,rows:A,select:F=!1,SelectProps:M,type:L,value:R,variant:D="outlined"}=n,H=W(n,eR),ue=h({},n,{autoFocus:a,color:u,disabled:d,error:f,fullWidth:m,multiline:w,required:N,select:F,variant:D}),V=rR(ue),Z={};D==="outlined"&&(y&&typeof y.shrink<"u"&&(Z.notched=y.shrink),Z.label=b),F&&((!M||!M.native)&&(Z.id=void 0),Z["aria-describedby"]=void 0);const G=Yo(v),re=g&&G?`${G}-helper-text`:void 0,ne=b&&G?`${G}-label`:void 0,X=tR[D],ee=S.jsx(X,h({"aria-describedby":re,autoComplete:o,autoFocus:a,defaultValue:c,fullWidth:m,multiline:w,name:P,rows:A,maxRows:_,minRows:E,type:L,value:R,id:G,inputRef:x,onBlur:k,onChange:$,onFocus:T,placeholder:j,inputProps:O},Z,C));return S.jsxs(nR,h({className:B(V.root,s),disabled:d,error:f,fullWidth:m,ref:r,required:N,color:u,variant:D,ownerState:ue},H,{children:[b!=null&&b!==""&&S.jsx(ES,h({htmlFor:G,id:ne},y,{children:b})),F?S.jsx(eg,h({"aria-describedby":re,id:G,labelId:ne,value:R,input:ee},M,{children:i})):ee,g&&S.jsx(sS,h({id:re},p,{children:g}))]}))}),oR=["getTrigger","target"];function aR(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:o}=t,a=e.current;return o&&(e.current=o.pageYOffset!==void 0?o.pageYOffset:o.scrollTop),!r&&a!==void 0&&e.currentn}const iR=typeof window<"u"?window:null;function tg(e={}){const{getTrigger:t=aR,target:r=iR}=e,n=W(e,oR),o=l.useRef(),[a,i]=l.useState(()=>t(o,n));return l.useEffect(()=>{const s=()=>{i(t(o,h({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),a}var nd={},hs={};const lR=dr(f_);var fp;function ye(){return fp||(fp=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=lR}(hs)),hs}var sR=me;Object.defineProperty(nd,"__esModule",{value:!0});var Gl=nd.default=void 0,cR=sR(ye()),uR=S;Gl=nd.default=(0,cR.default)((0,uR.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var Co=function(){return Co=Object.assign||function(e){for(var t,r=1,n=arguments.length;r components should be used inside a component or provided the resource prop.");var g=Vn({action:"create",resource:m}),v=g.canAccess,y=g.isPending,O=Ho(),C=ae(),x=Ct(function(E){return E.breakpoints.down("md")}),b=ly({},yR.get(String(s)),f),_=_R(c);return!v||y?null:x?l.createElement(xR,mi({component:Ur,to:O({resource:m,type:"create"}),state:b,color:"primary",className:B(Ks.floating,t),"aria-label":a&&C(a)},p,_),n):l.createElement(OR,mi({component:Ur,to:O({resource:m,type:"create"}),state:b,className:B(Ks.root,t),label:a,variant:u},p,_),n)},yR=new Map([["true",{_scrollToTop:!0}],["false",{}]]),bR=l.createElement(ng,null),vi="RaCreateButton",Ks={root:"".concat(vi,"-root"),floating:"".concat(vi,"-floating")},xR=I(Mb,{name:vi,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["&.".concat(Ks.floating)]={color:r.palette.getContrastText(r.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3},t}),OR=I(Vt,{name:vi,overridesResolver:function(e,t){return t.root}})({});const ag=l.memo(hR,function(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&sr(e.to,t.to)&&sr(e.state,t.state)});var _R=function(e){if(e!=null){if(typeof e=="string")return{to:e};var t=e.redirect,r=e.replace,n=e.state,o=og(e,["redirect","replace","state"]);return{to:o,redirect:t,replace:r,state:n}}},ad={},CR=me;Object.defineProperty(ad,"__esModule",{value:!0});var ig=ad.default=void 0,wR=CR(ye()),ER=S;ig=ad.default=(0,wR.default)((0,ER.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"RemoveRedEye");var Gs=function(){return Gs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r components should be used inside a component or provided the resource prop.");var c=Pr(e),d=Ho(),f=Vn({action:"show",resource:u,record:c}),p=f.canAccess,m=f.isPending;return!c||!p||m?null:l.createElement(Vt,Gs({component:Ur,to:d({type:"show",resource:u,id:c.id}),state:$R[String(i)],label:o,onClick:kR},s),r)},$R={true:{_scrollToTop:!0},false:{}},RR=l.createElement(ig,null),kR=function(e){return e.stopPropagation()},TR=l.memo(SR,function(e,t){return e.resource===t.resource&&(e.record&&t.record?e.record.id===t.record.id:e.record==t.record)&&e.label===t.label&&e.disabled===t.disabled}),id={},IR=me;Object.defineProperty(id,"__esModule",{value:!0});var na=id.default=void 0,jR=IR(ye()),AR=S;na=id.default=(0,jR.default)((0,AR.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var Xs=function(){return Xs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?l.createElement(FT,null):null,t&&l.createElement(b2,null),l.createElement(UR,null))},C2=l.createElement(_2,null),w2=l.createElement(fg,null),Nr="RaAppBar",zr={appBar:"".concat(Nr,"-appBar"),toolbar:"".concat(Nr,"-toolbar"),menuButton:"".concat(Nr,"-menuButton"),menuButtonIconClosed:"".concat(Nr,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(Nr,"-menuButtonIconOpen"),title:"".concat(Nr,"-title")},E2=I(aC,{name:Nr,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(zr.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(zr.menuButton)]={marginRight:"0.2em"},t["& .".concat(zr.title)]={},t}),fd={},P2=me;Object.defineProperty(fd,"__esModule",{value:!0});var yg=fd.default=void 0,S2=P2(ye()),pp=S;yg=fd.default=(0,S2.default)([(0,pp.jsx)("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22z"},"0"),(0,pp.jsx)("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")],"WarningAmber");var hi=function(){return hi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element");var u=n===!1?l.createElement(bg,yi({title:r,defaultTitle:t},o)):l.createElement(V2,yi({title:r,defaultTitle:t,preferenceKey:n},o));return l.createElement(l.Fragment,null,Gp.createPortal(u,i))},rc=function(){return rc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r components should be used inside a component or provided with a resource prop.");var a=Vn({action:"delete",resource:o}),i=a.canAccess,s=a.isPending;return!i||s?null:r==="undoable"?l.createElement(nT,Pi({},n)):l.createElement(Jk,Pi({mutationMode:r},n))},Pd={},uT=me;Object.defineProperty(Pd,"__esModule",{value:!0});var Dg=Pd.default=void 0,dT=uT(ye()),fT=S;Dg=Pd.default=(0,dT.default)((0,fT.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}),"GetApp");var yc=function(){return yc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r components should be used inside a component or provided the resource prop.");var a=Vn({action:"delete",resource:o,record:n}),i=a.canAccess,s=a.isPending,u=nm();if(!n||n.id==null||!i||s)return null;var c=t||(u!=null&&u.mutationMode?u.mutationMode:"undoable");return c==="undoable"?l.createElement(mT,$i({record:n},r)):l.createElement(hT,$i({mutationMode:c,record:n},r))},Sd={},OT=me;Object.defineProperty(Sd,"__esModule",{value:!0});var zg=Sd.default=void 0,_T=OT(ye()),CT=S;zg=Sd.default=(0,_T.default)((0,CT.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Create");var bc=function(){return bc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r components should be used inside a component or provided with a resource prop. (The component set the resource prop for all its children).");var d=Pr(e),f=Ho(),p=Vn({action:"edit",resource:c,record:d}),m=p.canAccess,g=p.isPending;return!d||!m||g?null:l.createElement(kT,bc({component:Ur,to:f({type:"edit",resource:c,id:d.id}),state:PT[String(i)],label:o,onClick:$T,className:B(RT.root,s)},u),r)},PT={true:{_scrollToTop:!0},false:{}},ST=l.createElement(zg,null),$T=function(e){return e.stopPropagation()},Wg="RaEditButton",RT={root:"".concat(Wg,"-root")},kT=I(Vt,{name:Wg,overridesResolver:function(e,t){return t.root}})({}),So=function(){return So=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]0,$=rI(y===!1||y===void 0?void 0:!y,c||!k||w||P);ou(f==="submit"&&(u&&(u.onSuccess||u.onError)||p),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var T=l.useCallback(function(A){return yp(void 0,void 0,void 0,function(){var F;return bp(this,function(M){switch(M.label){case 0:return b!=null&&b.save?[4,b.save(A,$o($o({},u),{transform:p}))]:[3,2];case 1:F=M.sent(),M.label=2;case 2:return F!=null&&jy(F,x.setError),[2]}})})},[x.setError,b,u,p]),j=l.useCallback(function(A){return yp(void 0,void 0,void 0,function(){return bp(this,function(F){switch(F.label){case 0:return s&&s(A),A.defaultPrevented?[2]:f!=="button"?[3,2]:(A.stopPropagation(),[4,x.handleSubmit(T)(A)]);case 1:F.sent(),F.label=2;case 2:return[2]}})})},[s,f,x,T]),N=i&&C(i,{_:i});return l.createElement(tI,$o({variant:g,type:f,color:r,"aria-label":N,disabled:$,onClick:j},O),P?l.createElement(Hl,{sx:JT,size:14,thickness:3,color:"inherit"}):o,N)},JT={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},ZT=l.createElement(qg,null),eI="RaSaveButton",tI=I(_t,{name:eI,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),rI=function(e,t){return typeof e>"u"?t:e},nI=function(){return J.createElement(aI,{onClick:iI,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},oI="RaSkipNavigationButton",aI=I(Vt,{name:oI,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}}),iI=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Oc=function(){return Oc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]"u")throw new Error("DatagridRow expects an id prop");var b=th(),_=ae(),E=Pr(e);if(!E)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var w=Xe(e),P=Xr(e),k=P.hasShow||P.hasEdit;if(!w)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var $=(!b||!b.isRowExpandable||b.isRowExpandable(E))&&i,T=Wy(w,f,b&&b.expandSingle),j=T[0],N=T[1],A=l.useState(function(){return Op($,o,u)}),F=A[0],M=A[1];l.useEffect(function(){var V=Op($,o,u);V!==F&&M(V)},[$,F,o,u]);var L=su(),R=l.useCallback(function(V){N(),V.stopPropagation()},[N]),D=l.useCallback(function(V){!C||!p||(p(f,V),V.stopPropagation())},[f,p,C]),H=Vy(),ue=l.useCallback(function(V){return AI(void 0,void 0,void 0,function(){var Z;return MI(this,function(G){switch(G.label){case 0:return V.persist(),[4,H({record:E,resource:w,link:typeof m=="function"?function(re,ne){return m(re.id,ne,re)}:m})];case 1:return Z=G.sent(),m==="expand"?(R(V),[2]):m==="toggleSelection"?(D(V),[2]):Z===!1||Z==null?[2]:(L(Z,{state:{_scrollToTop:!0}}),[2])}})})},[E,w,m,L,R,D,H]);return J.createElement(J.Fragment,null,J.createElement(Ro,Sc({ref:t,className:B(a,(r={},r[Q.expandable]=$,r[Q.selectable]=C,r[Q.clickableRow]=m??k,r)),key:f,style:y,hover:d,onClick:ue},x),i&&J.createElement(Et,{padding:"none",className:Q.expandIconCell},$&&J.createElement(jI,{className:B(Q.expandIcon,(n={},n[Q.expanded]=j,n)),expanded:j,onClick:R,expandContentId:"".concat(f,"-expand")})),u&&J.createElement(Et,{padding:"checkbox"},J.createElement(di,{"aria-label":_("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(Q.checkbox),checked:C&&v,onClick:D,disabled:!C})),J.Children.map(o,function(V,Z){return l.isValidElement(V)?J.createElement(eh,{key:"".concat(f,"-").concat(V.props.source||Z),className:B("column-".concat(V.props.source),Q.rowCell),record:E,field:V,resource:w}):null})),$&&j&&J.createElement(Ro,{key:"".concat(f,"-expand"),id:"".concat(f,"-expand"),className:Q.expandedPanel},J.createElement(Et,{colSpan:F},l.isValidElement(i)?i:l.createElement(i))))}),NI=function(e,t){e.children,e.expand;var r=$c(e,["children","expand"]);t.children,t.expand;var n=$c(t,["children","expand"]);return Hy(r,n)},nh=l.memo(rh,NI);nh.displayName="PureDatagridRow";var ki=function(){return ki=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=tj&&(a=ej,i=!1,t=new XI(t));e:for(;++o0&&x.length>0&&x.every(function(b){return m.includes(b)}),onChange:C,onClick:function(b){return b.stopPropagation()}})),l.Children.map(t,function(b,_){return l.isValidElement(b)?l.createElement(WI,{className:B(Q.headerCell,"column-".concat(b.props.source)),sort:d,field:b,isSorting:(d==null?void 0:d.field)===(b.props.sortBy||b.props.source),key:b.props.source||_,updateSort:O||void 0}):null})))};ih.displayName="DatagridHeader";var fj=function(e){var t=e.children,r=e.value;return J.createElement(Id.Provider,{value:r},t)},Ad={},pj=me;Object.defineProperty(Ad,"__esModule",{value:!0});var lh=Ad.default=void 0,mj=pj(ye()),vj=S;lh=Ad.default=(0,mj.default)((0,vj.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var kc=function(){return kc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r must be used inside a component");return l.createElement(Wl,null,l.createElement(Le,{variant:"body2"},n&&Object.keys(n).length>0?l.createElement(l.Fragment,null,e("ra.navigation.no_filtered_results",{resource:t,name:a(t,0),_:"No results found with the current filters."})," ",l.createElement(Vt,{onClick:function(){return o({},[])},label:e("ra.navigation.clear_filters",{_:"Clear filters"})})):e("ra.navigation.no_results",{resource:t,name:a(t,0),_:"No results found."})))},Vo=function(){return Vo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1] element instead.")})},[r]);var d=function(){if(!r)return[];var m=a.getValues();return r.filter(function(g){var v=ot(m,g.props.source);return g.props.alwaysOn||u[g.props.source]||!ch(v)})},f=l.useCallback(function(m){return c(m.currentTarget.dataset.key)},[c]),p=l.useMemo(function(){return{getSource:function(m){return m},getLabel:function(m){return"resources.".concat(o,".fields.").concat(m)}}},[o]);return l.createElement(sb,{value:p},l.createElement(Nj,Er({className:t},jj(n),{onSubmit:Ij}),d().map(function(m){return l.createElement(Ej,{key:m.key||m.props.source,filterElement:m,handleHide:f,resource:o,className:Ii.filterFormInput})}),l.createElement("div",{className:Ii.clearFix})))},Ij=function(e){return e.preventDefault(),!1},jj=function(e){e.hasCreate,e.resource;var t=Md(e,["hasCreate","resource"]);return t},Aj=function(e,t){return Er(Er({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return am(Er({},r),n.props.source,n.props.defaultValue)},{})),e)},Mj=function(e){return e.preventDefault(),e.stopPropagation(),!1},Ic="RaFilterForm",Ii={clearFix:"".concat(Ic,"-clearFix"),filterFormInput:"".concat(Ic,"-filterFormInput")},Nj=I("form",{name:Ic,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flex:"0 1 auto"},t[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(Ii.clearFix)]={clear:"right"},t["& .".concat(Ii.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),Fj=function(e,t){var r;return Object.keys(e).reduce(function(n,o){return n[o]=sh(e,o,t),n},(r=sm(t))!==null&&r!==void 0?r:{})},sh=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t]))return ot(r,t,"");if(e[t]instanceof Date)return ot(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(o,a){var i,s=sh(e[t],a,(i=(r||{})[t])!==null&&i!==void 0?i:{});return o[a]=s,o},{});return Object.keys(n).length?n:""}return ot(r,t,"")},ch=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return ch(e[t])}):!1},Nd={},Bj=me;Object.defineProperty(Nd,"__esModule",{value:!0});var ji=Nd.default=void 0,Lj=Bj(ye()),Dj=S;ji=Nd.default=(0,Lj.default)((0,Dj.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var Fd={},zj=me;Object.defineProperty(Fd,"__esModule",{value:!0});var uh=Fd.default=void 0,Wj=zj(ye()),Vj=S;uh=Fd.default=(0,Wj.default)((0,Vj.jsx)("path",{d:"M21 7h-2v2h-2V7h-2V5h2V3h2v2h2zm-2 14-7-3-7 3V5c0-1.1.9-2 2-2h7c-.63.84-1 1.87-1 3 0 2.76 2.24 5 5 5 .34 0 .68-.03 1-.1z"}),"BookmarkAdd");var Bd={},Hj=me;Object.defineProperty(Bd,"__esModule",{value:!0});var dh=Bd.default=void 0,Uj=Hj(ye()),qj=S;dh=Bd.default=(0,Uj.default)((0,qj.jsx)("path",{d:"M21 7h-6V5h6zm-2 3.9c-.32.07-.66.1-1 .1-2.76 0-5-2.24-5-5 0-1.13.37-2.16 1-3H7c-1.1 0-2 .9-2 2v16l7-3 7 3z"}),"BookmarkRemove");var Ld={},Kj=me;Object.defineProperty(Ld,"__esModule",{value:!0});var fh=Ld.default=void 0,Gj=Kj(ye()),Xj=S;fh=Ld.default=(0,Gj.default)((0,Xj.jsx)("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder");var Dd={},Yj=me;Object.defineProperty(Dd,"__esModule",{value:!0});var ph=Dd.default=void 0,Qj=Yj(ye()),Jj=S;ph=Dd.default=(0,Qj.default)((0,Jj.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var zd={},Zj=me;Object.defineProperty(zd,"__esModule",{value:!0});var mh=zd.default=void 0,eA=Zj(ye()),tA=S;mh=zd.default=(0,eA.default)((0,tA.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank");var Wd={},rA=me;Object.defineProperty(Wd,"__esModule",{value:!0});var vh=Wd.default=void 0,nA=rA(ye()),oA=S;vh=Wd.default=(0,nA.default)((0,oA.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox");var aA=l.forwardRef(function(e,t){var r=e.filter,n=e.onShow,o=e.onHide,a=e.autoFocus,i=e.displayed,s=Xe(e),u=l.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]),c=l.useCallback(function(){o({source:r.props.source})},[r.props.source,o]);return l.createElement(Or,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i?c:u,autoFocus:a,ref:t,disabled:r.props.disabled,role:"menuitemcheckbox","aria-checked":i},l.createElement(Dr,null,i?l.createElement(vh,{fontSize:"small"}):l.createElement(mh,{fontSize:"small"})),l.createElement(gn,null,l.createElement(Tn,{label:r.props.label,source:r.props.source,resource:s})))}),Vd=function(e){return Wi("".concat(e,".savedQueries"),[])},Hd=function(e){return Array.isArray(e)?e.filter(function(t){return iA(t)}):[]},iA=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},lA=function(e){var t=e.open,r=e.onClose,n=ae(),o=Lt(),a=o.resource,i=o.filterValues,s=o.displayedFilters,u=o.sort,c=o.perPage,d=Vd(a),f=d[0],p=d[1],m=l.useState(""),g=m[0],v=m[1],y=function(x){v(x.target.value)},O=function(x){x.preventDefault(),C()},C=function(){var x={label:g,value:{filter:i,sort:u,perPage:c,displayedFilters:s}},b=Hd(f);p(b.concat(x)),v(""),r()};return l.createElement(Gu,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},l.createElement(Qu,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),l.createElement(Yu,null,l.createElement("form",{onSubmit:O},l.createElement(Kl,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:g,onChange:y}))),l.createElement(Xu,null,l.createElement(_t,{onClick:r},n("ra.action.cancel")),l.createElement(_t,{onClick:C,color:"primary"},n("ra.action.save"))))},Pp=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n must be called inside a ResourceContextProvider, or must provide a resource prop");var d=Vd(u||"")[0],f=su(),p=Lt(),m=p.displayedFilters,g=m===void 0?{}:m,v=p.filterValues,y=p.perPage,O=p.setFilters,C=p.showFilter,x=p.hideFilter,b=p.sort,_=!sr(v,{}),E=Hd(d),w=E.some(function(X){return sr(X.value,{filter:v,sort:b,perPage:y,displayedFilters:g})}),P=l.useState(!1),k=P[0],$=P[1],T=l.useRef();if(s===void 0)throw new Error("The component requires the prop to be set");var j=s.filter(function(X){return!X.props.alwaysOn}),N=l.useCallback(function(X){X.preventDefault(),$(!0),T.current=X.currentTarget},[T,$]),A=l.useCallback(function(){$(!1)},[$]),F=l.useCallback(function(X){var ee=X.source,U=X.defaultValue;C(ee,U===""?void 0:U),setTimeout(function(){var fe=document.querySelector("input[name='".concat(ee,"']"));fe&&fe.focus()},50),$(!1)},[C,$]),M=l.useCallback(function(X){var ee=X.source;x(ee),$(!1)},[x,$]),L=l.useState(!1),R=L[0],D=L[1],H=function(){D(!1)},ue=function(){$(!1),D(!0)},V=l.useState(!1),Z=V[0],G=V[1],re=function(){G(!1)},ne=function(){$(!1),G(!0)};return j.length===0&&E.length===0&&!_?null:l.createElement(fA,jc({className:r},uA(i)),l.createElement(Vt,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:N,variant:a,size:o},l.createElement(ph,null)),l.createElement(ql,{open:k,anchorEl:T.current,onClose:A},j.map(function(X,ee){return l.createElement(aA,{key:X.props.source,filter:X,displayed:!!g[X.props.source],resource:u,onShow:F,onHide:M,autoFocus:ee===0})}),(_||E.length>0)&&l.createElement(Kv,null),E.map(function(X,ee){return sr(X.value,{filter:v,sort:b,perPage:y,displayedFilters:g})?l.createElement(Or,{onClick:ne,key:ee},l.createElement(Dr,null,l.createElement(dh,{fontSize:"small"})),l.createElement(gn,null,c("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:X.label}))):l.createElement(Or,{onClick:function(){var U,fe;f({search:cb.stringify({filter:JSON.stringify(X.value.filter),sort:(U=X.value.sort)===null||U===void 0?void 0:U.field,order:(fe=X.value.sort)===null||fe===void 0?void 0:fe.order,page:1,perPage:X.value.perPage,displayedFilters:JSON.stringify(X.value.displayedFilters)})}),$(!1)},key:ee},l.createElement(Dr,null,l.createElement(fh,{fontSize:"small"})),l.createElement(gn,null,X.label))}),_&&!w&&!n&&l.createElement(Or,{onClick:ue},l.createElement(Dr,null,l.createElement(uh,{fontSize:"small"})),l.createElement(gn,null,c("ra.saved_queries.new_label",{_:"Save current query..."}))),_&&l.createElement(Or,{onClick:function(){O({},{}),$(!1)}},l.createElement(Dr,null,l.createElement(ji,{fontSize:"small"})),l.createElement(gn,null,c("ra.action.remove_all_filters",{_:"Remove all filters"})))),!n&&l.createElement(l.Fragment,null,l.createElement(lA,{open:R,onClose:H}),l.createElement(sA,{open:Z,onClose:re})))},uA=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=gh(e,["displayedFilters","filterValues","showFilter"]);return t},dA="RaFilterButton",fA=I("div",{name:dA,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),pA=ub,mA=cm,vA=1,gA=2;function hA(e,t,r,n){var o=r.length,a=o,i=!n;if(e==null)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++oO-1)throw new Error(v("ra.navigation.page_out_of_boundaries",{page:P+1}));m(P+1)},[O,m,v]),x=l.useCallback(function(w){g(w.target.value)},[g]),b=l.useCallback(function(w){var P=w.from,k=w.to,$=w.count;return $===-1&&c?v("ra.navigation.partial_page_range_info",{offsetBegin:P,offsetEnd:k,_:"%{from}-%{to} of more than %{to}"}):v("ra.navigation.page_range_info",{offsetBegin:P,offsetEnd:k,total:$===-1?k:$,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[v,c]),_=l.useCallback(function(w){return v("ra.navigation.".concat(w),{_:"Go to ".concat(w," page")})},[v]);if(u)return l.createElement(ra,{variant:"dense"});if(p===0||d<1||p!=null&&d>O)return a!=null,null;if(y)return l.createElement(Zd,Ai({count:p??-1,rowsPerPage:f,page:d-1,onPageChange:C,rowsPerPageOptions:dM,component:"span",labelDisplayedRows:b},In(i)));var E=n||(!u&&p!=null?aM:void 0);return l.createElement(Zd,Ai({count:p??-1,rowsPerPage:f,page:d-1,onPageChange:C,onRowsPerPageChange:x,ActionsComponent:E,nextIconButtonProps:{disabled:!c},component:"span",labelRowsPerPage:v("ra.navigation.page_rows_per_page"),labelDisplayedRows:b,getItemAriaLabel:_,rowsPerPageOptions:r},In(i)))}),uM=[5,10,25,50],dM=[],Mi=function(){return Mi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!f.message?"ra.auth.sign_in_error":f.message,{type:"error",messageArgs:{_:typeof f=="string"?f:f&&f.message?f.message:void 0}})})};return l.createElement(hM,{onSubmit:c,mode:"onChange",noValidate:!0,className:r},l.createElement(Wl,{className:Cn.content},l.createElement(Rp,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:Jd()}),l.createElement(Rp,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:Jd()}),l.createElement(_t,{variant:"contained",type:"submit",color:"primary",disabled:o,fullWidth:!0,className:Cn.button},o?l.createElement(Hl,{className:Cn.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},qa="RaLoginForm",Cn={content:"".concat(qa,"-content"),button:"".concat(qa,"-button"),icon:"".concat(qa,"-icon")},hM=I(fm,{name:qa,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(Cn.content)]={width:300},t["& .".concat(Cn.button)]={marginTop:r.spacing(2)},t["& .".concat(Cn.icon)]={margin:r.spacing(.3)},t}),Mc=function(){return Mc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&p?IM:r;return!o||!y&&O&&c?null:l.createElement(AM,Lc({className:B("edit-page",a)},f),d!==!1&&l.createElement(Zr,{title:d,defaultTitle:v,preferenceKey:"".concat(g,".edit.title")}),C,l.createElement("div",{className:B(Pn.main,(t={},t[Pn.noActions]=!C,t))},l.createElement(s,{className:Pn.card},y?o:l.createElement(Wl,null," ")),n))},Xa="RaEdit",Pn={main:"".concat(Xa,"-main"),noActions:"".concat(Xa,"-noActions"),card:"".concat(Xa,"-card")},AM=I("div",{name:Xa,overridesResolver:function(e,t){return t.root}})((mo={},mo["& .".concat(Pn.main)]={display:"flex",alignItems:"flex-start"},mo["& .".concat(Pn.noActions)]={marginTop:"1em"},mo["& .".concat(Pn.card)]={flex:"1 1 auto"},mo)),Dc=function(){return Dc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&y?GM:r;return!o||!v&&c?null:l.createElement(YM,Vc({className:B("show-page",a)},f),d!==!1&&l.createElement(Zr,{title:d,defaultTitle:g,preferenceKey:"".concat(m,".show.title")}),O!==!1&&O,l.createElement("div",{className:B($n.main,(t={},t[$n.noActions]=!O,t))},l.createElement(s,{className:$n.card},o),n))},Qa="RaShow",$n={main:"".concat(Qa,"-main"),noActions:"".concat(Qa,"-noActions"),card:"".concat(Qa,"-card")},YM=I("div",{name:Qa,overridesResolver:function(e,t){return t.root}})((vo={},vo["& .".concat($n.main)]={display:"flex"},vo["& .".concat($n.noActions)]={marginTop:"1em"},vo["& .".concat($n.card)]={flex:"1 1 auto"},vo)),Hc=function(){return Hc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),uN=function(e){return e.stopPropagation()},kp=function(e){var t=e.clickable;return l.createElement(Uu,{sx:{cursor:"inherit"},size:"small",label:l.createElement(Rb,null),clickable:t})},Gc=function(){return Gc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&Ip.call(t.callee)==="[object Function]"),n},ws,jp;function BN(){if(jp)return ws;jp=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Ih,o=Object.prototype.propertyIsEnumerable,a=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(p){var m=p.constructor;return m&&m.prototype===p},c={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!c["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{u(window[p])}catch{return!0}}catch{return!0}return!1}(),f=function(p){if(typeof window>"u"||!d)return u(p);try{return u(p)}catch{return!1}};e=function(m){var g=m!==null&&typeof m=="object",v=r.call(m)==="[object Function]",y=n(m),O=g&&r.call(m)==="[object String]",C=[];if(!g&&!v&&!y)throw new TypeError("Object.keys called on a non-object");var x=i&&v;if(O&&m.length>0&&!t.call(m,0))for(var b=0;b0)for(var _=0;_"u"||!Ze?he:Ze(Uint8Array),Hr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?he:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?he:ArrayBuffer,"%ArrayIteratorPrototype%":sn&&Ze?Ze([][Symbol.iterator]()):he,"%AsyncFromSyncIteratorPrototype%":he,"%AsyncFunction%":pn,"%AsyncGenerator%":pn,"%AsyncGeneratorFunction%":pn,"%AsyncIteratorPrototype%":pn,"%Atomics%":typeof Atomics>"u"?he:Atomics,"%BigInt%":typeof BigInt>"u"?he:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?he:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?he:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?he:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":c5,"%eval%":eval,"%EvalError%":u5,"%Float32Array%":typeof Float32Array>"u"?he:Float32Array,"%Float64Array%":typeof Float64Array>"u"?he:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?he:FinalizationRegistry,"%Function%":Mh,"%GeneratorFunction%":pn,"%Int8Array%":typeof Int8Array>"u"?he:Int8Array,"%Int16Array%":typeof Int16Array>"u"?he:Int16Array,"%Int32Array%":typeof Int32Array>"u"?he:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":sn&&Ze?Ze(Ze([][Symbol.iterator]())):he,"%JSON%":typeof JSON=="object"?JSON:he,"%Map%":typeof Map>"u"?he:Map,"%MapIteratorPrototype%":typeof Map>"u"||!sn||!Ze?he:Ze(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?he:Promise,"%Proxy%":typeof Proxy>"u"?he:Proxy,"%RangeError%":d5,"%ReferenceError%":f5,"%Reflect%":typeof Reflect>"u"?he:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?he:Set,"%SetIteratorPrototype%":typeof Set>"u"||!sn||!Ze?he:Ze(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?he:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":sn&&Ze?Ze(""[Symbol.iterator]()):he,"%Symbol%":sn?Symbol:he,"%SyntaxError%":Wn,"%ThrowTypeError%":m5,"%TypedArray%":g5,"%TypeError%":kn,"%Uint8Array%":typeof Uint8Array>"u"?he:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?he:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?he:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?he:Uint32Array,"%URIError%":p5,"%WeakMap%":typeof WeakMap>"u"?he:WeakMap,"%WeakRef%":typeof WeakRef>"u"?he:WeakRef,"%WeakSet%":typeof WeakSet>"u"?he:WeakSet};if(Ze)try{null.error}catch(e){var h5=Ze(Ze(e));Hr["%Error.prototype%"]=h5}var y5=function e(t){var r;if(t==="%AsyncFunction%")r=Ps("async function () {}");else if(t==="%GeneratorFunction%")r=Ps("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Ps("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Ze&&(r=Ze(o.prototype))}return Hr[t]=r,r},Bp={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},la=Kd,Di=Ah,b5=la.call(Function.call,Array.prototype.concat),x5=la.call(Function.apply,Array.prototype.splice),Lp=la.call(Function.call,String.prototype.replace),zi=la.call(Function.call,String.prototype.slice),O5=la.call(Function.call,RegExp.prototype.exec),_5=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C5=/\\(\\)?/g,w5=function(t){var r=zi(t,0,1),n=zi(t,-1);if(r==="%"&&n!=="%")throw new Wn("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Wn("invalid intrinsic syntax, expected opening `%`");var o=[];return Lp(t,_5,function(a,i,s,u){o[o.length]=s?Lp(u,C5,"$1"):i||a}),o},E5=function(t,r){var n=t,o;if(Di(Bp,n)&&(o=Bp[n],n="%"+o[0]+"%"),Di(Hr,n)){var a=Hr[n];if(a===pn&&(a=y5(n)),typeof a>"u"&&!r)throw new kn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new Wn("intrinsic "+t+" does not exist!")},sa=function(t,r){if(typeof t!="string"||t.length===0)throw new kn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new kn('"allowMissing" argument must be a boolean');if(O5(/^%?[^%]*%?$/,t)===null)throw new Wn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=w5(t),o=n.length>0?n[0]:"",a=E5("%"+o+"%",r),i=a.name,s=a.value,u=!1,c=a.alias;c&&(o=c[0],x5(n,b5([0,1],c)));for(var d=1,f=!0;d=n.length){var v=Vr(s,p);f=!!v,f&&"get"in v&&!("originalValue"in v.get)?s=v.get:s=s[p]}else f=Di(s,p),s=s[p];f&&!u&&(Hr[i]=s)}}return s},P5=sa,ei=P5("%Object.defineProperty%",!0)||!1;if(ei)try{ei({},"a",{value:1})}catch{ei=!1}var Gd=ei,S5=sa,ti=S5("%Object.getOwnPropertyDescriptor%",!0);if(ti)try{ti([],"length")}catch{ti=null}var Nh=ti,Dp=Gd,$5=jh,cn=ia,zp=Nh,Fh=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new cn("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new cn("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new cn("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new cn("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new cn("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new cn("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!zp&&zp(t,r);if(Dp)Dp(t,r,{configurable:i===null&&u?u.configurable:!i,enumerable:o===null&&u?u.enumerable:!o,value:n,writable:a===null&&u?u.writable:!a});else if(s||!o&&!a&&!i)t[r]=n;else throw new $5("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ru=Gd,Bh=function(){return!!ru};Bh.hasArrayLengthDefineBug=function(){if(!ru)return null;try{return ru([],"length",{value:1}).length!==1}catch{return!0}};var Lh=Bh,R5=zN,k5=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",T5=Object.prototype.toString,I5=Array.prototype.concat,Wp=Fh,j5=function(e){return typeof e=="function"&&T5.call(e)==="[object Function]"},Dh=Lh(),A5=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!j5(n)||!n())return}Dh?Wp(e,t,r,!0):Wp(e,t,r)},zh=function(e,t){var r=arguments.length>2?arguments[2]:{},n=R5(t);k5&&(n=I5.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||F5(r)!==r)throw new Up("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in t&&Hp){var i=Hp(t,"length");i&&!i.configurable&&(o=!1),i&&!i.writable&&(a=!1)}return(o||a||!n)&&(N5?Vp(t,"length",r,!0,!0):Vp(t,"length",r)),t};(function(e){var t=Kd,r=sa,n=B5,o=ia,a=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,a),u=Gd,c=r("%Math.max%");e.exports=function(p){if(typeof p!="function")throw new o("a function is required");var m=s(t,i,arguments);return n(m,1+c(0,p.length-(arguments.length-1)),!0)};var d=function(){return s(t,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d})(Vh);var Hh=Vh.exports,L5=ia,D5=function(t){if(t==null)throw new L5(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},Uh=sa,qh=Hh,z5=qh(Uh("String.prototype.indexOf")),W5=function(t,r){var n=Uh(t,!!r);return typeof n=="function"&&z5(t,".prototype.")>-1?qh(n):n},V5=D5,Kh=W5,H5=Kh("Object.prototype.propertyIsEnumerable"),U5=Kh("Array.prototype.push"),Gh=function(t){var r=V5(t),n=[];for(var o in r)H5(r,o)&&U5(n,[o,r[o]]);return n},q5=Gh,Xh=function(){return typeof Object.entries=="function"?Object.entries:q5},K5=Xh,G5=Wh,X5=function(){var t=K5();return G5(Object,{entries:t},{entries:function(){return Object.entries!==t}}),t},Y5=Wh,Q5=Hh,J5=Gh,Yh=Xh,Z5=X5,Qh=Q5(Yh(),Object);Y5(Qh,{getPolyfill:Yh,implementation:J5,shim:Z5});var e4=Qh,Xd=e4,Jh=Ah,t4=function(t){},nu=String.prototype.replace,Zh=String.prototype.split,ri="||||",Ra=function(e){var t=e%100,r=t%10;return t!==11&&r===1?0:2<=r&&r<=4&&!(t>=12&&t<=14)?1:2},ey={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:Ra,chinese:function(){return 0},croatian:Ra,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:Ra,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2},ukrainian:Ra},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function r4(e){for(var t={},r=Xd(e),n=0;n=d.length?{value:void 0,done:!0}:(u=s(d,f),this._i+=u.length,{value:u,done:!1})})},function(i,r){var e=Math.ceil,s=Math.floor;i.exports=function(u){return isNaN(u=+u)?0:(u>0?s:e)(u)}},function(i,r){i.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}},function(i,r,e){var s=e(11);i.exports=function(u,d){if(!s(u))return u;var f,l;if(d&&typeof(f=u.toString)=="function"&&!s(l=f.call(u))||typeof(f=u.valueOf)=="function"&&!s(l=f.call(u))||!d&&typeof(f=u.toString)=="function"&&!s(l=f.call(u)))return l;throw TypeError("Can't convert object to primitive value")}},function(i,r){var e={}.toString;i.exports=function(s){return e.call(s).slice(8,-1)}},function(i,r,e){var s=e(26)("keys"),u=e(17);i.exports=function(d){return s[d]||(s[d]=u(d))}},function(i,r,e){var s=e(1),u=e(3),d=u["__core-js_shared__"]||(u["__core-js_shared__"]={});(i.exports=function(f,l){return d[f]||(d[f]=l!==void 0?l:{})})("versions",[]).push({version:s.version,mode:e(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(i,r){i.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(i,r,e){var s=e(7).f,u=e(5),d=e(2)("toStringTag");i.exports=function(f,l,p){f&&!u(f=p?f:f.prototype,d)&&s(f,d,{configurable:!0,value:l})}},function(i,r,e){e(62);for(var s=e(3),u=e(6),d=e(12),f=e(2)("toStringTag"),l="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),p=0;pdocument.F=Object<\/script>"),y.close(),p=y.F;M--;)delete p.prototype[d[M]];return p()};i.exports=Object.create||function(y,E){var M;return y!==null?(l.prototype=s(y),M=new l,l.prototype=null,M[f]=y):M=p(),E===void 0?M:u(M,E)}},function(i,r,e){var s=e(5),u=e(9),d=e(57)(!1),f=e(25)("IE_PROTO");i.exports=function(l,p){var y,E=u(l),M=0,A=[];for(y in E)y!=f&&s(E,y)&&A.push(y);for(;p.length>M;)s(E,y=p[M++])&&(~d(A,y)||A.push(y));return A}},function(i,r,e){var s=e(24);i.exports=Object("z").propertyIsEnumerable(0)?Object:function(u){return s(u)=="String"?u.split(""):Object(u)}},function(i,r,e){var s=e(39),u=e(27).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(d){return s(d,u)}},function(i,r,e){var s=e(24),u=e(2)("toStringTag"),d=s(function(){return arguments}())=="Arguments";i.exports=function(f){var l,p,y;return f===void 0?"Undefined":f===null?"Null":typeof(p=function(E,M){try{return E[M]}catch{}}(l=Object(f),u))=="string"?p:d?s(l):(y=s(l))=="Object"&&typeof l.callee=="function"?"Arguments":y}},function(i,r){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch{typeof window=="object"&&(e=window)}i.exports=e},function(i,r){var e=/-?\d+(\.\d+)?%?/g;i.exports=function(s){return s.match(e)}},function(i,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.getBase16Theme=r.createStyling=r.invertTheme=void 0;var s=q(e(49)),u=q(e(76)),d=q(e(81)),f=q(e(89)),l=q(e(93)),p=function(x){if(x&&x.__esModule)return x;var O={};if(x!=null)for(var k in x)Object.prototype.hasOwnProperty.call(x,k)&&(O[k]=x[k]);return O.default=x,O}(e(94)),y=q(e(132)),E=q(e(133)),M=q(e(138)),A=e(139);function q(x){return x&&x.__esModule?x:{default:x}}var L=p.default,ee=(0,f.default)(L),T=(0,M.default)(E.default,A.rgb2yuv,function(x){var O,k=(0,d.default)(x,3),I=k[0],z=k[1],G=k[2];return[(O=I,O<.25?1:O<.5?.9-O:1.1-O),z,G]},A.yuv2rgb,y.default),U=function(x){return function(O){return{className:[O.className,x.className].filter(Boolean).join(" "),style:(0,u.default)({},O.style||{},x.style||{})}}},a=function(x,O){var k=(0,f.default)(O);for(var I in x)k.indexOf(I)===-1&&k.push(I);return k.reduce(function(z,G){return z[G]=function(g,J){if(g===void 0)return J;if(J===void 0)return g;var X=g===void 0?"undefined":(0,s.default)(g),P=J===void 0?"undefined":(0,s.default)(J);switch(X){case"string":switch(P){case"string":return[J,g].filter(Boolean).join(" ");case"object":return U({className:g,style:J});case"function":return function(ae){for(var V=arguments.length,re=Array(V>1?V-1:0),Y=1;Y1?V-1:0),Y=1;Y1?V-1:0),Y=1;Y1?V-1:0),Y=1;Y1?V-1:0),Y=1;Y2?k-2:0),z=2;z3?O-3:0),I=3;I1&&arguments[1]!==void 0?arguments[1]:{},G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},g=z.defaultBase16,J=g===void 0?L:g,X=z.base16Themes,P=X===void 0?null:X,ae=N(G,P);ae&&(G=(0,u.default)({},ae,G));var V=ee.reduce(function(ve,ke){return ve[ke]=G[ke]||J[ke],ve},{}),re=(0,f.default)(G).reduce(function(ve,ke){return ee.indexOf(ke)===-1&&(ve[ke]=G[ke]),ve},{}),Y=x(V),ce=a(re,Y);return(0,l.default)(D,2).apply(void 0,[ce].concat(k))},3),r.getBase16Theme=function(x,O){if(x&&x.extend&&(x=x.extend),typeof x=="string"){var k=x.split(":"),I=(0,d.default)(k,2),z=I[0],G=I[1];x=(O||{})[z]||p[z],G==="inverted"&&(x=F(x))}return x&&x.hasOwnProperty("base00")?x:void 0})},function(i,r,e){var s,u=typeof Reflect=="object"?Reflect:null,d=u&&typeof u.apply=="function"?u.apply:function(a,D,F){return Function.prototype.apply.call(a,D,F)};s=u&&typeof u.ownKeys=="function"?u.ownKeys:Object.getOwnPropertySymbols?function(a){return Object.getOwnPropertyNames(a).concat(Object.getOwnPropertySymbols(a))}:function(a){return Object.getOwnPropertyNames(a)};var f=Number.isNaN||function(a){return a!=a};function l(){l.init.call(this)}i.exports=l,i.exports.once=function(a,D){return new Promise(function(F,N){function x(k){a.removeListener(D,O),N(k)}function O(){typeof a.removeListener=="function"&&a.removeListener("error",x),F([].slice.call(arguments))}U(a,D,O,{once:!0}),D!=="error"&&function(k,I,z){typeof k.on=="function"&&U(k,"error",I,z)}(a,x,{once:!0})})},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var p=10;function y(a){if(typeof a!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof a)}function E(a){return a._maxListeners===void 0?l.defaultMaxListeners:a._maxListeners}function M(a,D,F,N){var x,O,k,I;if(y(F),(O=a._events)===void 0?(O=a._events=Object.create(null),a._eventsCount=0):(O.newListener!==void 0&&(a.emit("newListener",D,F.listener?F.listener:F),O=a._events),k=O[D]),k===void 0)k=O[D]=F,++a._eventsCount;else if(typeof k=="function"?k=O[D]=N?[F,k]:[k,F]:N?k.unshift(F):k.push(F),(x=E(a))>0&&k.length>x&&!k.warned){k.warned=!0;var z=new Error("Possible EventEmitter memory leak detected. "+k.length+" "+String(D)+" listeners added. Use emitter.setMaxListeners() to increase limit");z.name="MaxListenersExceededWarning",z.emitter=a,z.type=D,z.count=k.length,I=z,console&&console.warn&&console.warn(I)}return a}function A(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function q(a,D,F){var N={fired:!1,wrapFn:void 0,target:a,type:D,listener:F},x=A.bind(N);return x.listener=F,N.wrapFn=x,x}function L(a,D,F){var N=a._events;if(N===void 0)return[];var x=N[D];return x===void 0?[]:typeof x=="function"?F?[x.listener||x]:[x]:F?function(O){for(var k=new Array(O.length),I=0;I0&&(O=D[0]),O instanceof Error)throw O;var k=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw k.context=O,k}var I=x[a];if(I===void 0)return!1;if(typeof I=="function")d(I,this,D);else{var z=I.length,G=T(I,z);for(F=0;F=0;O--)if(F[O]===D||F[O].listener===D){k=F[O].listener,x=O;break}if(x<0)return this;x===0?F.shift():function(I,z){for(;z+1=0;N--)this.removeListener(a,D[N]);return this},l.prototype.listeners=function(a){return L(this,a,!0)},l.prototype.rawListeners=function(a){return L(this,a,!1)},l.listenerCount=function(a,D){return typeof a.listenerCount=="function"?a.listenerCount(D):ee.call(a,D)},l.prototype.listenerCount=ee,l.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},function(i,r,e){i.exports.Dispatcher=e(140)},function(i,r,e){i.exports=e(142)},function(i,r,e){r.__esModule=!0;var s=f(e(50)),u=f(e(65)),d=typeof u.default=="function"&&typeof s.default=="symbol"?function(l){return typeof l}:function(l){return l&&typeof u.default=="function"&&l.constructor===u.default&&l!==u.default.prototype?"symbol":typeof l};function f(l){return l&&l.__esModule?l:{default:l}}r.default=typeof u.default=="function"&&d(s.default)==="symbol"?function(l){return l===void 0?"undefined":d(l)}:function(l){return l&&typeof u.default=="function"&&l.constructor===u.default&&l!==u.default.prototype?"symbol":l===void 0?"undefined":d(l)}},function(i,r,e){i.exports={default:e(51),__esModule:!0}},function(i,r,e){e(20),e(29),i.exports=e(30).f("iterator")},function(i,r,e){var s=e(21),u=e(22);i.exports=function(d){return function(f,l){var p,y,E=String(u(f)),M=s(l),A=E.length;return M<0||M>=A?d?"":void 0:(p=E.charCodeAt(M))<55296||p>56319||M+1===A||(y=E.charCodeAt(M+1))<56320||y>57343?d?E.charAt(M):p:d?E.slice(M,M+2):y-56320+(p-55296<<10)+65536}}},function(i,r,e){var s=e(54);i.exports=function(u,d,f){if(s(u),d===void 0)return u;switch(f){case 1:return function(l){return u.call(d,l)};case 2:return function(l,p){return u.call(d,l,p)};case 3:return function(l,p,y){return u.call(d,l,p,y)}}return function(){return u.apply(d,arguments)}}},function(i,r){i.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(i,r,e){var s=e(38),u=e(16),d=e(28),f={};e(6)(f,e(2)("iterator"),function(){return this}),i.exports=function(l,p,y){l.prototype=s(f,{next:u(1,y)}),d(l,p+" Iterator")}},function(i,r,e){var s=e(7),u=e(10),d=e(13);i.exports=e(4)?Object.defineProperties:function(f,l){u(f);for(var p,y=d(l),E=y.length,M=0;E>M;)s.f(f,p=y[M++],l[p]);return f}},function(i,r,e){var s=e(9),u=e(58),d=e(59);i.exports=function(f){return function(l,p,y){var E,M=s(l),A=u(M.length),q=d(y,A);if(f&&p!=p){for(;A>q;)if((E=M[q++])!=E)return!0}else for(;A>q;q++)if((f||q in M)&&M[q]===p)return f||q||0;return!f&&-1}}},function(i,r,e){var s=e(21),u=Math.min;i.exports=function(d){return d>0?u(s(d),9007199254740991):0}},function(i,r,e){var s=e(21),u=Math.max,d=Math.min;i.exports=function(f,l){return(f=s(f))<0?u(f+l,0):d(f,l)}},function(i,r,e){var s=e(3).document;i.exports=s&&s.documentElement},function(i,r,e){var s=e(5),u=e(18),d=e(25)("IE_PROTO"),f=Object.prototype;i.exports=Object.getPrototypeOf||function(l){return l=u(l),s(l,d)?l[d]:typeof l.constructor=="function"&&l instanceof l.constructor?l.constructor.prototype:l instanceof Object?f:null}},function(i,r,e){var s=e(63),u=e(64),d=e(12),f=e(9);i.exports=e(34)(Array,"Array",function(l,p){this._t=f(l),this._i=0,this._k=p},function(){var l=this._t,p=this._k,y=this._i++;return!l||y>=l.length?(this._t=void 0,u(1)):u(0,p=="keys"?y:p=="values"?l[y]:[y,l[y]])},"values"),d.Arguments=d.Array,s("keys"),s("values"),s("entries")},function(i,r){i.exports=function(){}},function(i,r){i.exports=function(e,s){return{value:s,done:!!e}}},function(i,r,e){i.exports={default:e(66),__esModule:!0}},function(i,r,e){e(67),e(73),e(74),e(75),i.exports=e(1).Symbol},function(i,r,e){var s=e(3),u=e(5),d=e(4),f=e(15),l=e(37),p=e(68).KEY,y=e(8),E=e(26),M=e(28),A=e(17),q=e(2),L=e(30),ee=e(31),T=e(69),U=e(70),a=e(10),D=e(11),F=e(18),N=e(9),x=e(23),O=e(16),k=e(38),I=e(71),z=e(72),G=e(32),g=e(7),J=e(13),X=z.f,P=g.f,ae=I.f,V=s.Symbol,re=s.JSON,Y=re&&re.stringify,ce=q("_hidden"),ve=q("toPrimitive"),ke={}.propertyIsEnumerable,Ee=E("symbol-registry"),Oe=E("symbols"),ue=E("op-symbols"),fe=Object.prototype,se=typeof V=="function"&&!!G.f,Ne=s.QObject,Ke=!Ne||!Ne.prototype||!Ne.prototype.findChild,ze=d&&y(function(){return k(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a!=7})?function(v,C,R){var H=X(fe,C);H&&delete fe[C],P(v,C,R),H&&v!==fe&&P(fe,C,H)}:P,We=function(v){var C=Oe[v]=k(V.prototype);return C._k=v,C},Ue=se&&typeof V.iterator=="symbol"?function(v){return typeof v=="symbol"}:function(v){return v instanceof V},Te=function(v,C,R){return v===fe&&Te(ue,C,R),a(v),C=x(C,!0),a(R),u(Oe,C)?(R.enumerable?(u(v,ce)&&v[ce][C]&&(v[ce][C]=!1),R=k(R,{enumerable:O(0,!1)})):(u(v,ce)||P(v,ce,O(1,{})),v[ce][C]=!0),ze(v,C,R)):P(v,C,R)},Je=function(v,C){a(v);for(var R,H=T(C=N(C)),Q=0,K=H.length;K>Q;)Te(v,R=H[Q++],C[R]);return v},Ge=function(v){var C=ke.call(this,v=x(v,!0));return!(this===fe&&u(Oe,v)&&!u(ue,v))&&(!(C||!u(this,v)||!u(Oe,v)||u(this,ce)&&this[ce][v])||C)},Ye=function(v,C){if(v=N(v),C=x(C,!0),v!==fe||!u(Oe,C)||u(ue,C)){var R=X(v,C);return!R||!u(Oe,C)||u(v,ce)&&v[ce][C]||(R.enumerable=!0),R}},$e=function(v){for(var C,R=ae(N(v)),H=[],Q=0;R.length>Q;)u(Oe,C=R[Q++])||C==ce||C==p||H.push(C);return H},He=function(v){for(var C,R=v===fe,H=ae(R?ue:N(v)),Q=[],K=0;H.length>K;)!u(Oe,C=H[K++])||R&&!u(fe,C)||Q.push(Oe[C]);return Q};se||(l((V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor!");var v=A(arguments.length>0?arguments[0]:void 0),C=function(R){this===fe&&C.call(ue,R),u(this,ce)&&u(this[ce],v)&&(this[ce][v]=!1),ze(this,v,O(1,R))};return d&&Ke&&ze(fe,v,{configurable:!0,set:C}),We(v)}).prototype,"toString",function(){return this._k}),z.f=Ye,g.f=Te,e(41).f=I.f=$e,e(19).f=Ge,G.f=He,d&&!e(14)&&l(fe,"propertyIsEnumerable",Ge,!0),L.f=function(v){return We(q(v))}),f(f.G+f.W+f.F*!se,{Symbol:V});for(var Me="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Qe=0;Me.length>Qe;)q(Me[Qe++]);for(var me=J(q.store),S=0;me.length>S;)ee(me[S++]);f(f.S+f.F*!se,"Symbol",{for:function(v){return u(Ee,v+="")?Ee[v]:Ee[v]=V(v)},keyFor:function(v){if(!Ue(v))throw TypeError(v+" is not a symbol!");for(var C in Ee)if(Ee[C]===v)return C},useSetter:function(){Ke=!0},useSimple:function(){Ke=!1}}),f(f.S+f.F*!se,"Object",{create:function(v,C){return C===void 0?k(v):Je(k(v),C)},defineProperty:Te,defineProperties:Je,getOwnPropertyDescriptor:Ye,getOwnPropertyNames:$e,getOwnPropertySymbols:He});var m=y(function(){G.f(1)});f(f.S+f.F*m,"Object",{getOwnPropertySymbols:function(v){return G.f(F(v))}}),re&&f(f.S+f.F*(!se||y(function(){var v=V();return Y([v])!="[null]"||Y({a:v})!="{}"||Y(Object(v))!="{}"})),"JSON",{stringify:function(v){for(var C,R,H=[v],Q=1;arguments.length>Q;)H.push(arguments[Q++]);if(R=C=H[1],(D(C)||v!==void 0)&&!Ue(v))return U(C)||(C=function(K,oe){if(typeof R=="function"&&(oe=R.call(this,K,oe)),!Ue(oe))return oe}),H[1]=C,Y.apply(re,H)}}),V.prototype[ve]||e(6)(V.prototype,ve,V.prototype.valueOf),M(V,"Symbol"),M(Math,"Math",!0),M(s.JSON,"JSON",!0)},function(i,r,e){var s=e(17)("meta"),u=e(11),d=e(5),f=e(7).f,l=0,p=Object.isExtensible||function(){return!0},y=!e(8)(function(){return p(Object.preventExtensions({}))}),E=function(A){f(A,s,{value:{i:"O"+ ++l,w:{}}})},M=i.exports={KEY:s,NEED:!1,fastKey:function(A,q){if(!u(A))return typeof A=="symbol"?A:(typeof A=="string"?"S":"P")+A;if(!d(A,s)){if(!p(A))return"F";if(!q)return"E";E(A)}return A[s].i},getWeak:function(A,q){if(!d(A,s)){if(!p(A))return!0;if(!q)return!1;E(A)}return A[s].w},onFreeze:function(A){return y&&M.NEED&&p(A)&&!d(A,s)&&E(A),A}}},function(i,r,e){var s=e(13),u=e(32),d=e(19);i.exports=function(f){var l=s(f),p=u.f;if(p)for(var y,E=p(f),M=d.f,A=0;E.length>A;)M.call(f,y=E[A++])&&l.push(y);return l}},function(i,r,e){var s=e(24);i.exports=Array.isArray||function(u){return s(u)=="Array"}},function(i,r,e){var s=e(9),u=e(41).f,d={}.toString,f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];i.exports.f=function(l){return f&&d.call(l)=="[object Window]"?function(p){try{return u(p)}catch{return f.slice()}}(l):u(s(l))}},function(i,r,e){var s=e(19),u=e(16),d=e(9),f=e(23),l=e(5),p=e(35),y=Object.getOwnPropertyDescriptor;r.f=e(4)?y:function(E,M){if(E=d(E),M=f(M,!0),p)try{return y(E,M)}catch{}if(l(E,M))return u(!s.f.call(E,M),E[M])}},function(i,r){},function(i,r,e){e(31)("asyncIterator")},function(i,r,e){e(31)("observable")},function(i,r,e){r.__esModule=!0;var s,u=e(77),d=(s=u)&&s.__esModule?s:{default:s};r.default=d.default||function(f){for(var l=1;lL;)for(var U,a=p(arguments[L++]),D=ee?u(a).concat(ee(a)):u(a),F=D.length,N=0;F>N;)U=D[N++],s&&!T.call(a,U)||(A[U]=a[U]);return A}:y},function(i,r,e){r.__esModule=!0;var s=d(e(82)),u=d(e(85));function d(f){return f&&f.__esModule?f:{default:f}}r.default=function(f,l){if(Array.isArray(f))return f;if((0,s.default)(Object(f)))return function(p,y){var E=[],M=!0,A=!1,q=void 0;try{for(var L,ee=(0,u.default)(p);!(M=(L=ee.next()).done)&&(E.push(L.value),!y||E.length!==y);M=!0);}catch(T){A=!0,q=T}finally{try{!M&&ee.return&&ee.return()}finally{if(A)throw q}}return E}(f,l);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(i,r,e){i.exports={default:e(83),__esModule:!0}},function(i,r,e){e(29),e(20),i.exports=e(84)},function(i,r,e){var s=e(42),u=e(2)("iterator"),d=e(12);i.exports=e(1).isIterable=function(f){var l=Object(f);return l[u]!==void 0||"@@iterator"in l||d.hasOwnProperty(s(l))}},function(i,r,e){i.exports={default:e(86),__esModule:!0}},function(i,r,e){e(29),e(20),i.exports=e(87)},function(i,r,e){var s=e(10),u=e(88);i.exports=e(1).getIterator=function(d){var f=u(d);if(typeof f!="function")throw TypeError(d+" is not iterable!");return s(f.call(d))}},function(i,r,e){var s=e(42),u=e(2)("iterator"),d=e(12);i.exports=e(1).getIteratorMethod=function(f){if(f!=null)return f[u]||f["@@iterator"]||d[s(f)]}},function(i,r,e){i.exports={default:e(90),__esModule:!0}},function(i,r,e){e(91),i.exports=e(1).Object.keys},function(i,r,e){var s=e(18),u=e(13);e(92)("keys",function(){return function(d){return u(s(d))}})},function(i,r,e){var s=e(15),u=e(1),d=e(8);i.exports=function(f,l){var p=(u.Object||{})[f]||Object[f],y={};y[f]=l(p),s(s.S+s.F*d(function(){p(1)}),"Object",y)}},function(i,r,e){(function(s){var u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],d=/^\s+|\s+$/g,f=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,l=/\{\n\/\* \[wrapped with (.+)\] \*/,p=/,? & /,y=/^[-+]0x[0-9a-f]+$/i,E=/^0b[01]+$/i,M=/^\[object .+?Constructor\]$/,A=/^0o[0-7]+$/i,q=/^(?:0|[1-9]\d*)$/,L=parseInt,ee=typeof s=="object"&&s&&s.Object===Object&&s,T=typeof self=="object"&&self&&self.Object===Object&&self,U=ee||T||Function("return this")();function a(S,m,v){switch(v.length){case 0:return S.call(m);case 1:return S.call(m,v[0]);case 2:return S.call(m,v[0],v[1]);case 3:return S.call(m,v[0],v[1],v[2])}return S.apply(m,v)}function D(S,m){return!!(S&&S.length)&&function(v,C,R){if(C!=C)return function(K,oe,de,pe){for(var ge=K.length,be=de+-1;++be-1}function F(S){return S!=S}function N(S,m){for(var v=S.length,C=0;v--;)S[v]===m&&C++;return C}function x(S,m){for(var v=-1,C=S.length,R=0,H=[];++v2?k:void 0);function ke(S){return Me(S)?re(S):{}}function Ee(S){return!(!Me(S)||function(m){return!!J&&J in m}(S))&&(function(m){var v=Me(m)?ae.call(m):"";return v=="[object Function]"||v=="[object GeneratorFunction]"}(S)||function(m){var v=!1;if(m!=null&&typeof m.toString!="function")try{v=!!(m+"")}catch{}return v}(S)?V:M).test(function(m){if(m!=null){try{return X.call(m)}catch{}try{return m+""}catch{}}return""}(S))}function Oe(S,m,v,C){for(var R=-1,H=S.length,Q=v.length,K=-1,oe=m.length,de=Y(H-Q,0),pe=Array(oe+de),ge=!C;++K1&&le.reverse(),pe&&oe1?"& ":"")+m[C],m=m.join(v>2?", ":" "),S.replace(f,`{ +import{r as Kt,bg as Wt,aw as Ht,h as Ut,a as ot,ae as Jt}from"./ra-DtzM-ojY.js";import{L as Gt,F as Yt,I as $t}from"./react-admin-DKy-dVED.js";var Mt={exports:{}};(function(Ce,Re){(function(we,i){Ce.exports=i(Kt)})(Wt,function(we){return function(i){var r={};function e(s){if(r[s])return r[s].exports;var u=r[s]={i:s,l:!1,exports:{}};return i[s].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=i,e.c=r,e.d=function(s,u,d){e.o(s,u)||Object.defineProperty(s,u,{enumerable:!0,get:d})},e.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},e.t=function(s,u){if(1&u&&(s=e(s)),8&u||4&u&&typeof s=="object"&&s&&s.__esModule)return s;var d=Object.create(null);if(e.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:s}),2&u&&typeof s!="string")for(var f in s)e.d(d,f,(function(l){return s[l]}).bind(null,f));return d},e.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return e.d(u,"a",u),u},e.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},e.p="",e(e.s=48)}([function(i,r){i.exports=we},function(i,r){var e=i.exports={version:"2.6.12"};typeof __e=="number"&&(__e=e)},function(i,r,e){var s=e(26)("wks"),u=e(17),d=e(3).Symbol,f=typeof d=="function";(i.exports=function(l){return s[l]||(s[l]=f&&d[l]||(f?d:u)("Symbol."+l))}).store=s},function(i,r){var e=i.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=e)},function(i,r,e){i.exports=!e(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(i,r){var e={}.hasOwnProperty;i.exports=function(s,u){return e.call(s,u)}},function(i,r,e){var s=e(7),u=e(16);i.exports=e(4)?function(d,f,l){return s.f(d,f,u(1,l))}:function(d,f,l){return d[f]=l,d}},function(i,r,e){var s=e(10),u=e(35),d=e(23),f=Object.defineProperty;r.f=e(4)?Object.defineProperty:function(l,p,y){if(s(l),p=d(p,!0),s(y),u)try{return f(l,p,y)}catch{}if("get"in y||"set"in y)throw TypeError("Accessors not supported!");return"value"in y&&(l[p]=y.value),l}},function(i,r){i.exports=function(e){try{return!!e()}catch{return!0}}},function(i,r,e){var s=e(40),u=e(22);i.exports=function(d){return s(u(d))}},function(i,r,e){var s=e(11);i.exports=function(u){if(!s(u))throw TypeError(u+" is not an object!");return u}},function(i,r){i.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}},function(i,r){i.exports={}},function(i,r,e){var s=e(39),u=e(27);i.exports=Object.keys||function(d){return s(d,u)}},function(i,r){i.exports=!0},function(i,r,e){var s=e(3),u=e(1),d=e(53),f=e(6),l=e(5),p=function(y,E,M){var A,q,L,ee=y&p.F,T=y&p.G,U=y&p.S,a=y&p.P,D=y&p.B,F=y&p.W,N=T?u:u[E]||(u[E]={}),x=N.prototype,O=T?s:U?s[E]:(s[E]||{}).prototype;for(A in T&&(M=E),M)(q=!ee&&O&&O[A]!==void 0)&&l(N,A)||(L=q?O[A]:M[A],N[A]=T&&typeof O[A]!="function"?M[A]:D&&q?d(L,s):F&&O[A]==L?function(k){var I=function(z,G,g){if(this instanceof k){switch(arguments.length){case 0:return new k;case 1:return new k(z);case 2:return new k(z,G)}return new k(z,G,g)}return k.apply(this,arguments)};return I.prototype=k.prototype,I}(L):a&&typeof L=="function"?d(Function.call,L):L,a&&((N.virtual||(N.virtual={}))[A]=L,y&p.R&&x&&!x[A]&&f(x,A,L)))};p.F=1,p.G=2,p.S=4,p.P=8,p.B=16,p.W=32,p.U=64,p.R=128,i.exports=p},function(i,r){i.exports=function(e,s){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:s}}},function(i,r){var e=0,s=Math.random();i.exports=function(u){return"Symbol(".concat(u===void 0?"":u,")_",(++e+s).toString(36))}},function(i,r,e){var s=e(22);i.exports=function(u){return Object(s(u))}},function(i,r){r.f={}.propertyIsEnumerable},function(i,r,e){var s=e(52)(!0);e(34)(String,"String",function(u){this._t=String(u),this._i=0},function(){var u,d=this._t,f=this._i;return f>=d.length?{value:void 0,done:!0}:(u=s(d,f),this._i+=u.length,{value:u,done:!1})})},function(i,r){var e=Math.ceil,s=Math.floor;i.exports=function(u){return isNaN(u=+u)?0:(u>0?s:e)(u)}},function(i,r){i.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}},function(i,r,e){var s=e(11);i.exports=function(u,d){if(!s(u))return u;var f,l;if(d&&typeof(f=u.toString)=="function"&&!s(l=f.call(u))||typeof(f=u.valueOf)=="function"&&!s(l=f.call(u))||!d&&typeof(f=u.toString)=="function"&&!s(l=f.call(u)))return l;throw TypeError("Can't convert object to primitive value")}},function(i,r){var e={}.toString;i.exports=function(s){return e.call(s).slice(8,-1)}},function(i,r,e){var s=e(26)("keys"),u=e(17);i.exports=function(d){return s[d]||(s[d]=u(d))}},function(i,r,e){var s=e(1),u=e(3),d=u["__core-js_shared__"]||(u["__core-js_shared__"]={});(i.exports=function(f,l){return d[f]||(d[f]=l!==void 0?l:{})})("versions",[]).push({version:s.version,mode:e(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(i,r){i.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(i,r,e){var s=e(7).f,u=e(5),d=e(2)("toStringTag");i.exports=function(f,l,p){f&&!u(f=p?f:f.prototype,d)&&s(f,d,{configurable:!0,value:l})}},function(i,r,e){e(62);for(var s=e(3),u=e(6),d=e(12),f=e(2)("toStringTag"),l="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),p=0;pdocument.F=Object<\/script>"),y.close(),p=y.F;M--;)delete p.prototype[d[M]];return p()};i.exports=Object.create||function(y,E){var M;return y!==null?(l.prototype=s(y),M=new l,l.prototype=null,M[f]=y):M=p(),E===void 0?M:u(M,E)}},function(i,r,e){var s=e(5),u=e(9),d=e(57)(!1),f=e(25)("IE_PROTO");i.exports=function(l,p){var y,E=u(l),M=0,A=[];for(y in E)y!=f&&s(E,y)&&A.push(y);for(;p.length>M;)s(E,y=p[M++])&&(~d(A,y)||A.push(y));return A}},function(i,r,e){var s=e(24);i.exports=Object("z").propertyIsEnumerable(0)?Object:function(u){return s(u)=="String"?u.split(""):Object(u)}},function(i,r,e){var s=e(39),u=e(27).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(d){return s(d,u)}},function(i,r,e){var s=e(24),u=e(2)("toStringTag"),d=s(function(){return arguments}())=="Arguments";i.exports=function(f){var l,p,y;return f===void 0?"Undefined":f===null?"Null":typeof(p=function(E,M){try{return E[M]}catch{}}(l=Object(f),u))=="string"?p:d?s(l):(y=s(l))=="Object"&&typeof l.callee=="function"?"Arguments":y}},function(i,r){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch{typeof window=="object"&&(e=window)}i.exports=e},function(i,r){var e=/-?\d+(\.\d+)?%?/g;i.exports=function(s){return s.match(e)}},function(i,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.getBase16Theme=r.createStyling=r.invertTheme=void 0;var s=q(e(49)),u=q(e(76)),d=q(e(81)),f=q(e(89)),l=q(e(93)),p=function(x){if(x&&x.__esModule)return x;var O={};if(x!=null)for(var k in x)Object.prototype.hasOwnProperty.call(x,k)&&(O[k]=x[k]);return O.default=x,O}(e(94)),y=q(e(132)),E=q(e(133)),M=q(e(138)),A=e(139);function q(x){return x&&x.__esModule?x:{default:x}}var L=p.default,ee=(0,f.default)(L),T=(0,M.default)(E.default,A.rgb2yuv,function(x){var O,k=(0,d.default)(x,3),I=k[0],z=k[1],G=k[2];return[(O=I,O<.25?1:O<.5?.9-O:1.1-O),z,G]},A.yuv2rgb,y.default),U=function(x){return function(O){return{className:[O.className,x.className].filter(Boolean).join(" "),style:(0,u.default)({},O.style||{},x.style||{})}}},a=function(x,O){var k=(0,f.default)(O);for(var I in x)k.indexOf(I)===-1&&k.push(I);return k.reduce(function(z,G){return z[G]=function(g,J){if(g===void 0)return J;if(J===void 0)return g;var X=g===void 0?"undefined":(0,s.default)(g),P=J===void 0?"undefined":(0,s.default)(J);switch(X){case"string":switch(P){case"string":return[J,g].filter(Boolean).join(" ");case"object":return U({className:g,style:J});case"function":return function(ae){for(var V=arguments.length,re=Array(V>1?V-1:0),Y=1;Y1?V-1:0),Y=1;Y1?V-1:0),Y=1;Y1?V-1:0),Y=1;Y1?V-1:0),Y=1;Y2?k-2:0),z=2;z3?O-3:0),I=3;I1&&arguments[1]!==void 0?arguments[1]:{},G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},g=z.defaultBase16,J=g===void 0?L:g,X=z.base16Themes,P=X===void 0?null:X,ae=N(G,P);ae&&(G=(0,u.default)({},ae,G));var V=ee.reduce(function(ve,ke){return ve[ke]=G[ke]||J[ke],ve},{}),re=(0,f.default)(G).reduce(function(ve,ke){return ee.indexOf(ke)===-1&&(ve[ke]=G[ke]),ve},{}),Y=x(V),ce=a(re,Y);return(0,l.default)(D,2).apply(void 0,[ce].concat(k))},3),r.getBase16Theme=function(x,O){if(x&&x.extend&&(x=x.extend),typeof x=="string"){var k=x.split(":"),I=(0,d.default)(k,2),z=I[0],G=I[1];x=(O||{})[z]||p[z],G==="inverted"&&(x=F(x))}return x&&x.hasOwnProperty("base00")?x:void 0})},function(i,r,e){var s,u=typeof Reflect=="object"?Reflect:null,d=u&&typeof u.apply=="function"?u.apply:function(a,D,F){return Function.prototype.apply.call(a,D,F)};s=u&&typeof u.ownKeys=="function"?u.ownKeys:Object.getOwnPropertySymbols?function(a){return Object.getOwnPropertyNames(a).concat(Object.getOwnPropertySymbols(a))}:function(a){return Object.getOwnPropertyNames(a)};var f=Number.isNaN||function(a){return a!=a};function l(){l.init.call(this)}i.exports=l,i.exports.once=function(a,D){return new Promise(function(F,N){function x(k){a.removeListener(D,O),N(k)}function O(){typeof a.removeListener=="function"&&a.removeListener("error",x),F([].slice.call(arguments))}U(a,D,O,{once:!0}),D!=="error"&&function(k,I,z){typeof k.on=="function"&&U(k,"error",I,z)}(a,x,{once:!0})})},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var p=10;function y(a){if(typeof a!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof a)}function E(a){return a._maxListeners===void 0?l.defaultMaxListeners:a._maxListeners}function M(a,D,F,N){var x,O,k,I;if(y(F),(O=a._events)===void 0?(O=a._events=Object.create(null),a._eventsCount=0):(O.newListener!==void 0&&(a.emit("newListener",D,F.listener?F.listener:F),O=a._events),k=O[D]),k===void 0)k=O[D]=F,++a._eventsCount;else if(typeof k=="function"?k=O[D]=N?[F,k]:[k,F]:N?k.unshift(F):k.push(F),(x=E(a))>0&&k.length>x&&!k.warned){k.warned=!0;var z=new Error("Possible EventEmitter memory leak detected. "+k.length+" "+String(D)+" listeners added. Use emitter.setMaxListeners() to increase limit");z.name="MaxListenersExceededWarning",z.emitter=a,z.type=D,z.count=k.length,I=z,console&&console.warn&&console.warn(I)}return a}function A(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function q(a,D,F){var N={fired:!1,wrapFn:void 0,target:a,type:D,listener:F},x=A.bind(N);return x.listener=F,N.wrapFn=x,x}function L(a,D,F){var N=a._events;if(N===void 0)return[];var x=N[D];return x===void 0?[]:typeof x=="function"?F?[x.listener||x]:[x]:F?function(O){for(var k=new Array(O.length),I=0;I0&&(O=D[0]),O instanceof Error)throw O;var k=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw k.context=O,k}var I=x[a];if(I===void 0)return!1;if(typeof I=="function")d(I,this,D);else{var z=I.length,G=T(I,z);for(F=0;F=0;O--)if(F[O]===D||F[O].listener===D){k=F[O].listener,x=O;break}if(x<0)return this;x===0?F.shift():function(I,z){for(;z+1=0;N--)this.removeListener(a,D[N]);return this},l.prototype.listeners=function(a){return L(this,a,!0)},l.prototype.rawListeners=function(a){return L(this,a,!1)},l.listenerCount=function(a,D){return typeof a.listenerCount=="function"?a.listenerCount(D):ee.call(a,D)},l.prototype.listenerCount=ee,l.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},function(i,r,e){i.exports.Dispatcher=e(140)},function(i,r,e){i.exports=e(142)},function(i,r,e){r.__esModule=!0;var s=f(e(50)),u=f(e(65)),d=typeof u.default=="function"&&typeof s.default=="symbol"?function(l){return typeof l}:function(l){return l&&typeof u.default=="function"&&l.constructor===u.default&&l!==u.default.prototype?"symbol":typeof l};function f(l){return l&&l.__esModule?l:{default:l}}r.default=typeof u.default=="function"&&d(s.default)==="symbol"?function(l){return l===void 0?"undefined":d(l)}:function(l){return l&&typeof u.default=="function"&&l.constructor===u.default&&l!==u.default.prototype?"symbol":l===void 0?"undefined":d(l)}},function(i,r,e){i.exports={default:e(51),__esModule:!0}},function(i,r,e){e(20),e(29),i.exports=e(30).f("iterator")},function(i,r,e){var s=e(21),u=e(22);i.exports=function(d){return function(f,l){var p,y,E=String(u(f)),M=s(l),A=E.length;return M<0||M>=A?d?"":void 0:(p=E.charCodeAt(M))<55296||p>56319||M+1===A||(y=E.charCodeAt(M+1))<56320||y>57343?d?E.charAt(M):p:d?E.slice(M,M+2):y-56320+(p-55296<<10)+65536}}},function(i,r,e){var s=e(54);i.exports=function(u,d,f){if(s(u),d===void 0)return u;switch(f){case 1:return function(l){return u.call(d,l)};case 2:return function(l,p){return u.call(d,l,p)};case 3:return function(l,p,y){return u.call(d,l,p,y)}}return function(){return u.apply(d,arguments)}}},function(i,r){i.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(i,r,e){var s=e(38),u=e(16),d=e(28),f={};e(6)(f,e(2)("iterator"),function(){return this}),i.exports=function(l,p,y){l.prototype=s(f,{next:u(1,y)}),d(l,p+" Iterator")}},function(i,r,e){var s=e(7),u=e(10),d=e(13);i.exports=e(4)?Object.defineProperties:function(f,l){u(f);for(var p,y=d(l),E=y.length,M=0;E>M;)s.f(f,p=y[M++],l[p]);return f}},function(i,r,e){var s=e(9),u=e(58),d=e(59);i.exports=function(f){return function(l,p,y){var E,M=s(l),A=u(M.length),q=d(y,A);if(f&&p!=p){for(;A>q;)if((E=M[q++])!=E)return!0}else for(;A>q;q++)if((f||q in M)&&M[q]===p)return f||q||0;return!f&&-1}}},function(i,r,e){var s=e(21),u=Math.min;i.exports=function(d){return d>0?u(s(d),9007199254740991):0}},function(i,r,e){var s=e(21),u=Math.max,d=Math.min;i.exports=function(f,l){return(f=s(f))<0?u(f+l,0):d(f,l)}},function(i,r,e){var s=e(3).document;i.exports=s&&s.documentElement},function(i,r,e){var s=e(5),u=e(18),d=e(25)("IE_PROTO"),f=Object.prototype;i.exports=Object.getPrototypeOf||function(l){return l=u(l),s(l,d)?l[d]:typeof l.constructor=="function"&&l instanceof l.constructor?l.constructor.prototype:l instanceof Object?f:null}},function(i,r,e){var s=e(63),u=e(64),d=e(12),f=e(9);i.exports=e(34)(Array,"Array",function(l,p){this._t=f(l),this._i=0,this._k=p},function(){var l=this._t,p=this._k,y=this._i++;return!l||y>=l.length?(this._t=void 0,u(1)):u(0,p=="keys"?y:p=="values"?l[y]:[y,l[y]])},"values"),d.Arguments=d.Array,s("keys"),s("values"),s("entries")},function(i,r){i.exports=function(){}},function(i,r){i.exports=function(e,s){return{value:s,done:!!e}}},function(i,r,e){i.exports={default:e(66),__esModule:!0}},function(i,r,e){e(67),e(73),e(74),e(75),i.exports=e(1).Symbol},function(i,r,e){var s=e(3),u=e(5),d=e(4),f=e(15),l=e(37),p=e(68).KEY,y=e(8),E=e(26),M=e(28),A=e(17),q=e(2),L=e(30),ee=e(31),T=e(69),U=e(70),a=e(10),D=e(11),F=e(18),N=e(9),x=e(23),O=e(16),k=e(38),I=e(71),z=e(72),G=e(32),g=e(7),J=e(13),X=z.f,P=g.f,ae=I.f,V=s.Symbol,re=s.JSON,Y=re&&re.stringify,ce=q("_hidden"),ve=q("toPrimitive"),ke={}.propertyIsEnumerable,Ee=E("symbol-registry"),Oe=E("symbols"),ue=E("op-symbols"),fe=Object.prototype,se=typeof V=="function"&&!!G.f,Ne=s.QObject,Ke=!Ne||!Ne.prototype||!Ne.prototype.findChild,ze=d&&y(function(){return k(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a!=7})?function(v,C,R){var H=X(fe,C);H&&delete fe[C],P(v,C,R),H&&v!==fe&&P(fe,C,H)}:P,We=function(v){var C=Oe[v]=k(V.prototype);return C._k=v,C},Ue=se&&typeof V.iterator=="symbol"?function(v){return typeof v=="symbol"}:function(v){return v instanceof V},Te=function(v,C,R){return v===fe&&Te(ue,C,R),a(v),C=x(C,!0),a(R),u(Oe,C)?(R.enumerable?(u(v,ce)&&v[ce][C]&&(v[ce][C]=!1),R=k(R,{enumerable:O(0,!1)})):(u(v,ce)||P(v,ce,O(1,{})),v[ce][C]=!0),ze(v,C,R)):P(v,C,R)},Je=function(v,C){a(v);for(var R,H=T(C=N(C)),Q=0,K=H.length;K>Q;)Te(v,R=H[Q++],C[R]);return v},Ge=function(v){var C=ke.call(this,v=x(v,!0));return!(this===fe&&u(Oe,v)&&!u(ue,v))&&(!(C||!u(this,v)||!u(Oe,v)||u(this,ce)&&this[ce][v])||C)},Ye=function(v,C){if(v=N(v),C=x(C,!0),v!==fe||!u(Oe,C)||u(ue,C)){var R=X(v,C);return!R||!u(Oe,C)||u(v,ce)&&v[ce][C]||(R.enumerable=!0),R}},$e=function(v){for(var C,R=ae(N(v)),H=[],Q=0;R.length>Q;)u(Oe,C=R[Q++])||C==ce||C==p||H.push(C);return H},He=function(v){for(var C,R=v===fe,H=ae(R?ue:N(v)),Q=[],K=0;H.length>K;)!u(Oe,C=H[K++])||R&&!u(fe,C)||Q.push(Oe[C]);return Q};se||(l((V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor!");var v=A(arguments.length>0?arguments[0]:void 0),C=function(R){this===fe&&C.call(ue,R),u(this,ce)&&u(this[ce],v)&&(this[ce][v]=!1),ze(this,v,O(1,R))};return d&&Ke&&ze(fe,v,{configurable:!0,set:C}),We(v)}).prototype,"toString",function(){return this._k}),z.f=Ye,g.f=Te,e(41).f=I.f=$e,e(19).f=Ge,G.f=He,d&&!e(14)&&l(fe,"propertyIsEnumerable",Ge,!0),L.f=function(v){return We(q(v))}),f(f.G+f.W+f.F*!se,{Symbol:V});for(var Me="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Qe=0;Me.length>Qe;)q(Me[Qe++]);for(var me=J(q.store),S=0;me.length>S;)ee(me[S++]);f(f.S+f.F*!se,"Symbol",{for:function(v){return u(Ee,v+="")?Ee[v]:Ee[v]=V(v)},keyFor:function(v){if(!Ue(v))throw TypeError(v+" is not a symbol!");for(var C in Ee)if(Ee[C]===v)return C},useSetter:function(){Ke=!0},useSimple:function(){Ke=!1}}),f(f.S+f.F*!se,"Object",{create:function(v,C){return C===void 0?k(v):Je(k(v),C)},defineProperty:Te,defineProperties:Je,getOwnPropertyDescriptor:Ye,getOwnPropertyNames:$e,getOwnPropertySymbols:He});var m=y(function(){G.f(1)});f(f.S+f.F*m,"Object",{getOwnPropertySymbols:function(v){return G.f(F(v))}}),re&&f(f.S+f.F*(!se||y(function(){var v=V();return Y([v])!="[null]"||Y({a:v})!="{}"||Y(Object(v))!="{}"})),"JSON",{stringify:function(v){for(var C,R,H=[v],Q=1;arguments.length>Q;)H.push(arguments[Q++]);if(R=C=H[1],(D(C)||v!==void 0)&&!Ue(v))return U(C)||(C=function(K,oe){if(typeof R=="function"&&(oe=R.call(this,K,oe)),!Ue(oe))return oe}),H[1]=C,Y.apply(re,H)}}),V.prototype[ve]||e(6)(V.prototype,ve,V.prototype.valueOf),M(V,"Symbol"),M(Math,"Math",!0),M(s.JSON,"JSON",!0)},function(i,r,e){var s=e(17)("meta"),u=e(11),d=e(5),f=e(7).f,l=0,p=Object.isExtensible||function(){return!0},y=!e(8)(function(){return p(Object.preventExtensions({}))}),E=function(A){f(A,s,{value:{i:"O"+ ++l,w:{}}})},M=i.exports={KEY:s,NEED:!1,fastKey:function(A,q){if(!u(A))return typeof A=="symbol"?A:(typeof A=="string"?"S":"P")+A;if(!d(A,s)){if(!p(A))return"F";if(!q)return"E";E(A)}return A[s].i},getWeak:function(A,q){if(!d(A,s)){if(!p(A))return!0;if(!q)return!1;E(A)}return A[s].w},onFreeze:function(A){return y&&M.NEED&&p(A)&&!d(A,s)&&E(A),A}}},function(i,r,e){var s=e(13),u=e(32),d=e(19);i.exports=function(f){var l=s(f),p=u.f;if(p)for(var y,E=p(f),M=d.f,A=0;E.length>A;)M.call(f,y=E[A++])&&l.push(y);return l}},function(i,r,e){var s=e(24);i.exports=Array.isArray||function(u){return s(u)=="Array"}},function(i,r,e){var s=e(9),u=e(41).f,d={}.toString,f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];i.exports.f=function(l){return f&&d.call(l)=="[object Window]"?function(p){try{return u(p)}catch{return f.slice()}}(l):u(s(l))}},function(i,r,e){var s=e(19),u=e(16),d=e(9),f=e(23),l=e(5),p=e(35),y=Object.getOwnPropertyDescriptor;r.f=e(4)?y:function(E,M){if(E=d(E),M=f(M,!0),p)try{return y(E,M)}catch{}if(l(E,M))return u(!s.f.call(E,M),E[M])}},function(i,r){},function(i,r,e){e(31)("asyncIterator")},function(i,r,e){e(31)("observable")},function(i,r,e){r.__esModule=!0;var s,u=e(77),d=(s=u)&&s.__esModule?s:{default:s};r.default=d.default||function(f){for(var l=1;lL;)for(var U,a=p(arguments[L++]),D=ee?u(a).concat(ee(a)):u(a),F=D.length,N=0;F>N;)U=D[N++],s&&!T.call(a,U)||(A[U]=a[U]);return A}:y},function(i,r,e){r.__esModule=!0;var s=d(e(82)),u=d(e(85));function d(f){return f&&f.__esModule?f:{default:f}}r.default=function(f,l){if(Array.isArray(f))return f;if((0,s.default)(Object(f)))return function(p,y){var E=[],M=!0,A=!1,q=void 0;try{for(var L,ee=(0,u.default)(p);!(M=(L=ee.next()).done)&&(E.push(L.value),!y||E.length!==y);M=!0);}catch(T){A=!0,q=T}finally{try{!M&&ee.return&&ee.return()}finally{if(A)throw q}}return E}(f,l);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(i,r,e){i.exports={default:e(83),__esModule:!0}},function(i,r,e){e(29),e(20),i.exports=e(84)},function(i,r,e){var s=e(42),u=e(2)("iterator"),d=e(12);i.exports=e(1).isIterable=function(f){var l=Object(f);return l[u]!==void 0||"@@iterator"in l||d.hasOwnProperty(s(l))}},function(i,r,e){i.exports={default:e(86),__esModule:!0}},function(i,r,e){e(29),e(20),i.exports=e(87)},function(i,r,e){var s=e(10),u=e(88);i.exports=e(1).getIterator=function(d){var f=u(d);if(typeof f!="function")throw TypeError(d+" is not iterable!");return s(f.call(d))}},function(i,r,e){var s=e(42),u=e(2)("iterator"),d=e(12);i.exports=e(1).getIteratorMethod=function(f){if(f!=null)return f[u]||f["@@iterator"]||d[s(f)]}},function(i,r,e){i.exports={default:e(90),__esModule:!0}},function(i,r,e){e(91),i.exports=e(1).Object.keys},function(i,r,e){var s=e(18),u=e(13);e(92)("keys",function(){return function(d){return u(s(d))}})},function(i,r,e){var s=e(15),u=e(1),d=e(8);i.exports=function(f,l){var p=(u.Object||{})[f]||Object[f],y={};y[f]=l(p),s(s.S+s.F*d(function(){p(1)}),"Object",y)}},function(i,r,e){(function(s){var u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],d=/^\s+|\s+$/g,f=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,l=/\{\n\/\* \[wrapped with (.+)\] \*/,p=/,? & /,y=/^[-+]0x[0-9a-f]+$/i,E=/^0b[01]+$/i,M=/^\[object .+?Constructor\]$/,A=/^0o[0-7]+$/i,q=/^(?:0|[1-9]\d*)$/,L=parseInt,ee=typeof s=="object"&&s&&s.Object===Object&&s,T=typeof self=="object"&&self&&self.Object===Object&&self,U=ee||T||Function("return this")();function a(S,m,v){switch(v.length){case 0:return S.call(m);case 1:return S.call(m,v[0]);case 2:return S.call(m,v[0],v[1]);case 3:return S.call(m,v[0],v[1],v[2])}return S.apply(m,v)}function D(S,m){return!!(S&&S.length)&&function(v,C,R){if(C!=C)return function(K,oe,de,pe){for(var ge=K.length,be=de+-1;++be-1}function F(S){return S!=S}function N(S,m){for(var v=S.length,C=0;v--;)S[v]===m&&C++;return C}function x(S,m){for(var v=-1,C=S.length,R=0,H=[];++v2?k:void 0);function ke(S){return Me(S)?re(S):{}}function Ee(S){return!(!Me(S)||function(m){return!!J&&J in m}(S))&&(function(m){var v=Me(m)?ae.call(m):"";return v=="[object Function]"||v=="[object GeneratorFunction]"}(S)||function(m){var v=!1;if(m!=null&&typeof m.toString!="function")try{v=!!(m+"")}catch{}return v}(S)?V:M).test(function(m){if(m!=null){try{return X.call(m)}catch{}try{return m+""}catch{}}return""}(S))}function Oe(S,m,v,C){for(var R=-1,H=S.length,Q=v.length,K=-1,oe=m.length,de=Y(H-Q,0),pe=Array(oe+de),ge=!C;++K1&&le.reverse(),pe&&oe1?"& ":"")+m[C],m=m.join(v>2?", ":" "),S.replace(f,`{ /* [wrapped with `+m+`] */ `)}function Je(S,m){return!!(m=m??9007199254740991)&&(typeof S=="number"||q.test(S))&&S>-1&&S%1==0&&S1&&d--,l=6*d<1?s+6*(u-s)*d:2*d<1?u:3*d<2?s+(u-s)*(2/3-d)*6:s,f[M]=255*l;return f}},function(i,r,e){(function(s){var u=typeof s=="object"&&s&&s.Object===Object&&s,d=typeof self=="object"&&self&&self.Object===Object&&self,f=u||d||Function("return this")();function l(x,O,k){switch(k.length){case 0:return x.call(O);case 1:return x.call(O,k[0]);case 2:return x.call(O,k[0],k[1]);case 3:return x.call(O,k[0],k[1],k[2])}return x.apply(O,k)}function p(x,O){for(var k=-1,I=O.length,z=x.length;++k-1&&z%1==0&&z<=9007199254740991}(I.length)&&!function(z){var G=function(g){var J=typeof g;return!!g&&(J=="object"||J=="function")}(z)?M.call(z):"";return G=="[object Function]"||G=="[object GeneratorFunction]"}(I)}(k)}(O)&&E.call(O,"callee")&&(!q.call(O,"callee")||M.call(O)=="[object Arguments]")}(x)||!!(L&&x&&x[L])}var U=Array.isArray,a,D,F,N=(D=function(x){var O=(x=function(z,G,g,J,X){var P=-1,ae=z.length;for(g||(g=T),X||(X=[]);++P2?d-2:0),l=2;la||e&&u&&s&&!f&&!b||i&&u&&s||!n&&s||!t)return 1;if(!i&&!e&&!b&&r=f)return s;var b=n[i];return s*(b=="desc"?-1:1)}}return r.index-a.index}var Z=Y,c=E,S=k,D=p,l=H,N=K,R=M,I=Z,rr=O,ar=_;function nr(r,a,n){a.length?a=c(a,function(e){return ar(e)?function(u){return S(u,e.length===1?e[0]:e)}:e}):a=[rr];var i=-1;a=c(a,R(D));var t=l(r,function(e,u,f){var s=c(a,function(b){return b(e)});return{criteria:s,index:++i,value:e}});return N(t,function(e,u){return I(e,u,n)})}var er=nr,ir=er,d=_;function tr(r,a,n,i){return r==null?[]:(d(a)||(a=a==null?[]:[a]),n=i?void 0:n,d(n)||(n=n==null?[]:[n]),ir(r,a,n))}var ur=tr;const kr=y(ur);var sr=$;function br(r,a){var n=[];return sr(r,function(i,t,e){a(i,t,e)&&n.push(i)}),n}var fr=br,cr=m,_r=fr,yr=p,pr=_;function vr(r,a){var n=pr(r)?cr:_r;return n(r,yr(a))}var dr=vr;const Mr=y(dr);var gr=o,$r=p,Fr=1;function Ar(r){return $r(typeof r=="function"?r:gr(r,Fr))}var Br=Ar;const mr=y(Br);export{Mr as a,mr as b,kr as l}; diff --git a/dist/assets/utils-iwAO8dWB.js b/dist/assets/utils-iwAO8dWB.js new file mode 100644 index 0000000..037f2b6 --- /dev/null +++ b/dist/assets/utils-iwAO8dWB.js @@ -0,0 +1 @@ +import{bh as F,aP as A,bi as $,bj as B,ar as E,aV as O,aU as k,au as M,aW as _,aw as y,bk as w,bl as m}from"./ra-DtzM-ojY.js";import{ab as p}from"./react-admin-DKy-dVED.js";var o=F,C=A;function L(r,a){return r&&o(r,a,C)}var h=L,x=$;function G(r,a){return function(n,i){if(n==null)return n;if(!x(n))return r(n,i);for(var t=n.length,e=a?t:-1,u=Object(n);(a?e--:++ea||e&&u&&s&&!f&&!b||i&&u&&s||!n&&s||!t)return 1;if(!i&&!e&&!b&&r=f)return s;var b=n[i];return s*(b=="desc"?-1:1)}}return r.index-a.index}var Z=Y,c=E,S=k,l=p,D=H,N=K,R=M,I=Z,rr=O,ar=_;function nr(r,a,n){a.length?a=c(a,function(e){return ar(e)?function(u){return S(u,e.length===1?e[0]:e)}:e}):a=[rr];var i=-1;a=c(a,R(l));var t=D(r,function(e,u,f){var s=c(a,function(b){return b(e)});return{criteria:s,index:++i,value:e}});return N(t,function(e,u){return I(e,u,n)})}var er=nr,ir=er,v=_;function tr(r,a,n,i){return r==null?[]:(v(a)||(a=a==null?[]:[a]),n=i?void 0:n,v(n)||(n=n==null?[]:[n]),ir(r,a,n))}var ur=tr;const kr=y(ur);var sr=g;function br(r,a){var n=[];return sr(r,function(i,t,e){a(i,t,e)&&n.push(i)}),n}var fr=br,cr=w,_r=fr,yr=p,pr=_;function dr(r,a){var n=pr(r)?cr:_r;return n(r,yr(a))}var vr=dr;const Mr=y(vr);var $r=m,gr=p,Fr=1;function Ar(r){return gr(typeof r=="function"?r:$r(r,Fr))}var Br=Ar;const wr=y(Br);export{Mr as a,wr as b,kr as l}; diff --git a/dist/index.html b/dist/index.html index 609ab0c..a8cd70f 100644 --- a/dist/index.html +++ b/dist/index.html @@ -111,13 +111,13 @@ href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet" /> - - - - - + + + + + - + diff --git a/package-lock.json b/package-lock.json index e69fa48..d4326d3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1285,9 +1285,9 @@ } }, "node_modules/@mui/types": { - "version": "7.2.18", - "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.18.tgz", - "integrity": "sha512-uvK9dWeyCJl/3ocVnTOS6nlji/Knj8/tVqVX03UVTpdmTJYu/s4jtDd9Kvv0nRGE0CUSNW1UYAci7PYypjealg==", + "version": "7.2.19", + "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.19.tgz", + "integrity": "sha512-6XpZEM/Q3epK9RN8ENoXuygnqUQxE+siN/6rGRi2iwJPgBUR25mphYQ9ZI87plGh58YoZ5pp40bFvKYOCDJ3tA==", "peerDependencies": { "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0" }, @@ -4679,9 +4679,9 @@ "license": "MIT" }, "node_modules/ra-core": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/ra-core/-/ra-core-5.3.1.tgz", - "integrity": "sha512-1q/h71iOco6kA9kkGNEmChuw+JgUTr+Y6MLfb/N0VcF75xX+v5SjoNMgHee/Jtn6uObOVeWdhAhIJ/bFwHR5sg==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ra-core/-/ra-core-5.3.2.tgz", + "integrity": "sha512-JDZ44jMCTlAXWWdR8LLFXXjKIc6bNf4L/zjY9/iL9yP5Kcy4yNf4kTBzR46dNWpt5/3k4Z59cMKBf+A9fDjJAQ==", "dependencies": { "@tanstack/react-query": "^5.8.4", "clsx": "^2.1.1", @@ -4708,20 +4708,20 @@ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==" }, "node_modules/ra-i18n-polyglot": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/ra-i18n-polyglot/-/ra-i18n-polyglot-5.3.1.tgz", - "integrity": "sha512-WcxTBWSYlLy20Hh72BhadyG/El5UHWaJQnglN7JK+M16EDR2Mp8R1kPGHFLtCAbjjMXUaKzZQ50AS51Ct1kVLQ==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ra-i18n-polyglot/-/ra-i18n-polyglot-5.3.2.tgz", + "integrity": "sha512-jyaDTPKyJOZlMnvLnrw7dqpD/ek01iVFg73FGoI3PAD/xYwKj4AfJBvwWlLVwlc6TOz9fcwd4hTWWVKbOMMFbA==", "dependencies": { "node-polyglot": "^2.2.2", - "ra-core": "^5.3.1" + "ra-core": "^5.3.2" } }, "node_modules/ra-language-english": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/ra-language-english/-/ra-language-english-5.3.1.tgz", - "integrity": "sha512-ttEVhRI06VPA0MEFmCkxQNFa3C4ztGHG14vRnfRtpQ3qSF996genzoYCW/AdkI/JzskHU1zAw5o73qezSdqCuA==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ra-language-english/-/ra-language-english-5.3.2.tgz", + "integrity": "sha512-otfNWGAyRXuaEBYneYpNaNj96umOLQ+MVtWPJSHvHXq80nRL0y2tEy0RNDrdIayvF6Q9dRYs1Q7a+mV0tkNbAw==", "dependencies": { - "ra-core": "^5.3.1" + "ra-core": "^5.3.2" } }, "node_modules/react": { @@ -4737,18 +4737,18 @@ } }, "node_modules/react-admin": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/react-admin/-/react-admin-5.3.1.tgz", - "integrity": "sha512-pxEccGTXwreI0EhPgssp0B8fWMk68fCmpHImjVZ8SJ//zXWncffwcbRwb7HbvkF56Zp3ivx9UIZ/vvuBCjN49g==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/react-admin/-/react-admin-5.3.2.tgz", + "integrity": "sha512-Wd9rAuMOx3shZOZwkqY0D/NXTOvVo7Qmw2vlz+wnDrvb5RDsLBos4yzE0MLozaRilizP6CCnvGtp+d0aXp4nVQ==", "dependencies": { "@emotion/react": "^11.4.1", "@emotion/styled": "^11.3.0", "@mui/icons-material": "^5.15.20", "@mui/material": "^5.15.20", - "ra-core": "^5.3.1", - "ra-i18n-polyglot": "^5.3.1", - "ra-language-english": "^5.3.1", - "ra-ui-materialui": "^5.3.1", + "ra-core": "^5.3.2", + "ra-i18n-polyglot": "^5.3.2", + "ra-language-english": "^5.3.2", + "ra-ui-materialui": "^5.3.2", "react-hook-form": "^7.53.0", "react-router": "^6.22.0", "react-router-dom": "^6.22.0" @@ -4759,9 +4759,9 @@ } }, "node_modules/react-admin/node_modules/ra-ui-materialui": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/ra-ui-materialui/-/ra-ui-materialui-5.3.1.tgz", - "integrity": "sha512-ViLAtCVsdAPrdT72K1W2a00UkZZI0FSw8YTsrPBPPjLfaH1MpjEAG2cwI9ODuPDe65/GkiM1W0husWV5JveLnw==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ra-ui-materialui/-/ra-ui-materialui-5.3.2.tgz", + "integrity": "sha512-jS+/7TFjbzyh4VMQk9f9nhFWs61IgTYejGvBAOckzDh/W6a8ZVE41z2ezVENG3KZzgJei8XkWsD7U9/2W0+Org==", "dependencies": { "@tanstack/react-query": "^5.8.4", "autosuggest-highlight": "^3.1.1",