diff --git a/dist/assets/index-Q3D_60mC.js b/dist/assets/index-mFXZmgKt.js similarity index 94% rename from dist/assets/index-Q3D_60mC.js rename to dist/assets/index-mFXZmgKt.js index 2a93730..d97edab 100644 --- a/dist/assets/index-Q3D_60mC.js +++ b/dist/assets/index-mFXZmgKt.js @@ -1 +1 @@ -import{c as L,aD as g,bf as M,j as t,bg as v,a as N}from"./ra-CBMLOZf2.js";import{l as _,a as k,b as F}from"./utils-DQjYhTfD.js";import{F as I}from"./matches-CU2r43ac.js";import{J as d,a as l}from"./react-admin-utils-kegFlIu-.js";import{a2 as O,a3 as S,a4 as u,a5 as q,a6 as J,a7 as f,a8 as A,a9 as z,aa as D,ab as E,ac as B,ad as C,ae as H,af as $,ag as w,ah as G,ai as U,aj as V,ak as K,al as X,am as Q,an as W,ao as Y,p as Z}from"./react-admin-E5WH1fyQ.js";import{i as ee,h as te}from"./mui-Dn3PXzmh.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 I(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,F(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(q,{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(D,{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]=E();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 L,aD as g,bf as M,j as t,bg as v,a as N}from"./ra-BJ1s-CBC.js";import{l as _,a as k,b as F}from"./utils-Cn0Nctbi.js";import{F as I}from"./matches-CU2r43ac.js";import{J as d,a as l}from"./react-admin-utils-D4-UBfr7.js";import{a2 as O,a3 as S,a4 as u,a5 as q,a6 as J,a7 as f,a8 as A,a9 as z,aa as D,ab as E,ac as B,ad as C,ae as H,af as $,ag as w,ah as G,ai as U,aj as V,ak as K,al as X,am as Q,an as W,ao as Y,p as Z}from"./react-admin-Bl-LVqmY.js";import{i as ee,h as te}from"./mui-DmAzB6Q9.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 I(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,F(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(q,{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(D,{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]=E();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,{})})); diff --git a/dist/assets/mui-Dn3PXzmh.js b/dist/assets/mui-DmAzB6Q9.js similarity index 99% rename from dist/assets/mui-Dn3PXzmh.js rename to dist/assets/mui-DmAzB6Q9.js index 0eaf6a1..8d1407d 100644 --- a/dist/assets/mui-Dn3PXzmh.js +++ b/dist/assets/mui-DmAzB6Q9.js @@ -1,4 +1,4 @@ -import{r as C,j as l}from"./ra-CBMLOZf2.js";import{g as D,c as tt,a as et,T as at,C as nt,u as Fo,b as ao,o as to,_ as n,d as E,s as $,M as rt,r as _o,P as Ho,e as k,f as O,h as Uo,i as oo,j as S,k as L,l as F,S as st,B as lo,m as it,n as lt,p as Wo,q as co,t as uo,v as ct,w as dt,x as mo,y as U,z as ut,A as pt,D as J,E as bt,G as ho,H as ft,J as gt,K as vt,N as mt,O as po,Q as Z,R as ht,U as xt,V as no,W as yt,X as Ct,Y as Pt,Z as xo,$ as Rt,a0 as kt}from"./react-admin-E5WH1fyQ.js";const Ia={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"},La={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"},$t=D("MuiBox",["root"]),Bt=tt(),Ta=et({themeId:at,defaultTheme:Bt,defaultClassName:$t.root,generateClassName:nt.generate});function yo(o){return o.substring(2).toLowerCase()}function Mt(o,t){return t.documentElement.clientWidth(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const b=Fo(t.ref,i),g=ao(c=>{const v=f.current;f.current=!1;const B=to(i.current);if(!d.current||!i.current||"clientX"in c&&Mt(c,B))return;if(p.current){p.current=!1;return}let u;c.composedPath?u=c.composedPath().indexOf(i.current)>-1:u=!B.documentElement.contains(c.target)||i.current.contains(c.target),!u&&(e||!v)&&r(c)}),m=c=>v=>{f.current=!0;const B=t.props[c];B&&B(v)},x={ref:b};return s!==!1&&(x[s]=m(s)),C.useEffect(()=>{if(s!==!1){const c=yo(s),v=to(i.current),B=()=>{p.current=!0};return v.addEventListener(c,g),v.addEventListener("touchmove",B),()=>{v.removeEventListener(c,g),v.removeEventListener("touchmove",B)}}},[g,s]),a!==!1&&(x[a]=m(a)),C.useEffect(()=>{if(a!==!1){const c=yo(a),v=to(i.current);return v.addEventListener(c,g),()=>{v.removeEventListener(c,g)}}},[g,a]),l.jsx(C.Fragment,{children:C.cloneElement(t,x)})}const Lt=(o,t)=>n({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!o.vars&&{colorScheme:o.palette.mode}),Tt=o=>n({color:(o.vars||o).palette.text.primary},o.typography.body1,{backgroundColor:(o.vars||o).palette.background.default,"@media print":{backgroundColor:(o.vars||o).palette.common.white}});function wt(o){return E("MuiDrawer",o)}D("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Nt=["BackdropProps"],St=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Vo=(o,t)=>{const{ownerState:e}=o;return[t.root,(e.variant==="permanent"||e.variant==="persistent")&&t.docked,t.modal]},zt=o=>{const{classes:t,anchor:e,variant:a}=o,r={root:["root"],docked:[(a==="permanent"||a==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${k(e)}`,a!=="temporary"&&`paperAnchorDocked${k(e)}`]};return F(r,wt,t)},jt=$(rt,{name:"MuiDrawer",slot:"Root",overridesResolver:Vo})(({theme:o})=>({zIndex:(o.vars||o).zIndex.drawer})),Co=$("div",{shouldForwardProp:_o,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Vo})({flex:"0 0 auto"}),At=$(Ho,{name:"MuiDrawer",slot:"Paper",overridesResolver:(o,t)=>{const{ownerState:e}=o;return[t.paper,t[`paperAnchor${k(e.anchor)}`],e.variant!=="temporary"&&t[`paperAnchorDocked${k(e.anchor)}`]]}})(({theme:o,ownerState:t})=>n({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(o.vars||o).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(o.vars||o).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(o.vars||o).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(o.vars||o).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(o.vars||o).palette.divider}`})),qo={left:"right",right:"left",top:"down",bottom:"up"};function Dt(o){return["left","right"].indexOf(o)!==-1}function Et({direction:o},t){return o==="rtl"&&Dt(t)?qo[t]:t}const wa=C.forwardRef(function(t,e){const a=O({props:t,name:"MuiDrawer"}),r=Uo(),s=oo(),p={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:d,children:f,className:b,elevation:g=16,hideBackdrop:m=!1,ModalProps:{BackdropProps:x}={},onClose:c,open:v=!1,PaperProps:B={},SlideProps:u,TransitionComponent:h=st,transitionDuration:y=p,variant:T="temporary"}=a,I=S(a.ModalProps,Nt),P=S(a,St),z=C.useRef(!1);C.useEffect(()=>{z.current=!0},[]);const M=Et({direction:s?"rtl":"ltr"},i),w=n({},a,{anchor:i,elevation:g,open:v,variant:T},P),A=zt(w),N=l.jsx(At,n({elevation:T==="temporary"?g:0,square:!0},B,{className:L(A.paper,B.className),ownerState:w,children:f}));if(T==="permanent")return l.jsx(Co,n({className:L(A.root,A.docked,b),ownerState:w,ref:e},P,{children:N}));const j=l.jsx(h,n({in:v,direction:qo[M],timeout:y,appear:z.current},u,{children:N}));return T==="persistent"?l.jsx(Co,n({className:L(A.root,A.docked,b),ownerState:w,ref:e},P,{children:j})):l.jsx(jt,n({BackdropProps:n({},d,x,{transitionDuration:y}),className:L(A.root,A.modal,b),open:v,ownerState:w,onClose:c,hideBackdrop:m,ref:e},P,I,{children:j}))});function Ot(o){return E("MuiFab",o)}const Po=D("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),Ft=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],_t=o=>{const{color:t,variant:e,classes:a,size:r}=o,s={root:["root",e,`size${k(r)}`,t==="inherit"?"colorInherit":t]},p=F(s,Ot,a);return n({},a,p)},Ht=$(lo,{name:"MuiFab",slot:"Root",shouldForwardProp:o=>_o(o)||o==="classes",overridesResolver:(o,t)=>{const{ownerState:e}=o;return[t.root,t[e.variant],t[`size${k(e.size)}`],e.color==="inherit"&&t.colorInherit,t[k(e.size)],t[e.color]]}})(({theme:o,ownerState:t})=>{var e,a;return n({},o.typography.button,{minHeight:36,transition:o.transitions.create(["background-color","box-shadow","border-color"],{duration:o.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(o.vars||o).zIndex.fab,boxShadow:(o.vars||o).shadows[6],"&:active":{boxShadow:(o.vars||o).shadows[12]},color:o.vars?o.vars.palette.text.primary:(e=(a=o.palette).getContrastText)==null?void 0:e.call(a,o.palette.grey[300]),backgroundColor:(o.vars||o).palette.grey[300],"&:hover":{backgroundColor:(o.vars||o).palette.grey.A100,"@media (hover: none)":{backgroundColor:(o.vars||o).palette.grey[300]},textDecoration:"none"},[`&.${Po.focusVisible}`]:{boxShadow:(o.vars||o).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:o,ownerState:t})=>n({},t.color!=="inherit"&&t.color!=="default"&&(o.vars||o).palette[t.color]!=null&&{color:(o.vars||o).palette[t.color].contrastText,backgroundColor:(o.vars||o).palette[t.color].main,"&:hover":{backgroundColor:(o.vars||o).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(o.vars||o).palette[t.color].main}}}),({theme:o})=>({[`&.${Po.disabled}`]:{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground}})),Na=C.forwardRef(function(t,e){const a=O({props:t,name:"MuiFab"}),{children:r,className:s,color:p="default",component:i="button",disabled:d=!1,disableFocusRipple:f=!1,focusVisibleClassName:b,size:g="large",variant:m="circular"}=a,x=S(a,Ft),c=n({},a,{color:p,component:i,disabled:d,disableFocusRipple:f,size:g,variant:m}),v=_t(c);return l.jsx(Ht,n({className:L(v.root,s),component:i,disabled:d,focusRipple:!f,focusVisibleClassName:L(v.focusVisible,b),ownerState:c,ref:e},x,{classes:v,children:r}))});function Ut(o){return E("MuiInputAdornment",o)}const Ro=D("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ko;const Wt=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Vt=(o,t)=>{const{ownerState:e}=o;return[t.root,t[`position${k(e.position)}`],e.disablePointerEvents===!0&&t.disablePointerEvents,t[e.variant]]},qt=o=>{const{classes:t,disablePointerEvents:e,hiddenLabel:a,position:r,size:s,variant:p}=o,i={root:["root",e&&"disablePointerEvents",r&&`position${k(r)}`,p,a&&"hiddenLabel",s&&`size${k(s)}`]};return F(i,Ut,t)},Gt=$("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Vt})(({theme:o,ownerState:t})=>n({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(o.vars||o).palette.action.active},t.variant==="filled"&&{[`&.${Ro.positionStart}&:not(.${Ro.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Sa=C.forwardRef(function(t,e){const a=O({props:t,name:"MuiInputAdornment"}),{children:r,className:s,component:p="div",disablePointerEvents:i=!1,disableTypography:d=!1,position:f,variant:b}=a,g=S(a,Wt),m=it()||{};let x=b;b&&m.variant,m&&!x&&(x=m.variant);const c=n({},a,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:i,position:f,variant:x}),v=qt(c);return l.jsx(lt.Provider,{value:null,children:l.jsx(Gt,n({as:p,ownerState:c,className:L(v.root,s),ref:e},g,{children:typeof r=="string"&&!d?l.jsx(Wo,{color:"text.secondary",children:r}):l.jsxs(C.Fragment,{children:[f==="start"?ko||(ko=l.jsx("span",{className:"notranslate",children:"​"})):null,r]})}))})});function Kt(o){return E("MuiLinearProgress",o)}D("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Xt=["className","color","value","valueBuffer","variant"];let X=o=>o,$o,Bo,Mo,Io,Lo,To;const ro=4,Yt=co($o||($o=X` +import{r as C,j as l}from"./ra-BJ1s-CBC.js";import{g as D,c as tt,a as et,T as at,C as nt,u as Fo,b as ao,o as to,_ as n,d as E,s as $,M as rt,r as _o,P as Ho,e as k,f as O,h as Uo,i as oo,j as S,k as L,l as F,S as st,B as lo,m as it,n as lt,p as Wo,q as co,t as uo,v as ct,w as dt,x as mo,y as U,z as ut,A as pt,D as J,E as bt,G as ho,H as ft,J as gt,K as vt,N as mt,O as po,Q as Z,R as ht,U as xt,V as no,W as yt,X as Ct,Y as Pt,Z as xo,$ as Rt,a0 as kt}from"./react-admin-Bl-LVqmY.js";const Ia={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"},La={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"},$t=D("MuiBox",["root"]),Bt=tt(),Ta=et({themeId:at,defaultTheme:Bt,defaultClassName:$t.root,generateClassName:nt.generate});function yo(o){return o.substring(2).toLowerCase()}function Mt(o,t){return t.documentElement.clientWidth(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const b=Fo(t.ref,i),g=ao(c=>{const v=f.current;f.current=!1;const B=to(i.current);if(!d.current||!i.current||"clientX"in c&&Mt(c,B))return;if(p.current){p.current=!1;return}let u;c.composedPath?u=c.composedPath().indexOf(i.current)>-1:u=!B.documentElement.contains(c.target)||i.current.contains(c.target),!u&&(e||!v)&&r(c)}),m=c=>v=>{f.current=!0;const B=t.props[c];B&&B(v)},x={ref:b};return s!==!1&&(x[s]=m(s)),C.useEffect(()=>{if(s!==!1){const c=yo(s),v=to(i.current),B=()=>{p.current=!0};return v.addEventListener(c,g),v.addEventListener("touchmove",B),()=>{v.removeEventListener(c,g),v.removeEventListener("touchmove",B)}}},[g,s]),a!==!1&&(x[a]=m(a)),C.useEffect(()=>{if(a!==!1){const c=yo(a),v=to(i.current);return v.addEventListener(c,g),()=>{v.removeEventListener(c,g)}}},[g,a]),l.jsx(C.Fragment,{children:C.cloneElement(t,x)})}const Lt=(o,t)=>n({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!o.vars&&{colorScheme:o.palette.mode}),Tt=o=>n({color:(o.vars||o).palette.text.primary},o.typography.body1,{backgroundColor:(o.vars||o).palette.background.default,"@media print":{backgroundColor:(o.vars||o).palette.common.white}});function wt(o){return E("MuiDrawer",o)}D("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Nt=["BackdropProps"],St=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Vo=(o,t)=>{const{ownerState:e}=o;return[t.root,(e.variant==="permanent"||e.variant==="persistent")&&t.docked,t.modal]},zt=o=>{const{classes:t,anchor:e,variant:a}=o,r={root:["root"],docked:[(a==="permanent"||a==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${k(e)}`,a!=="temporary"&&`paperAnchorDocked${k(e)}`]};return F(r,wt,t)},jt=$(rt,{name:"MuiDrawer",slot:"Root",overridesResolver:Vo})(({theme:o})=>({zIndex:(o.vars||o).zIndex.drawer})),Co=$("div",{shouldForwardProp:_o,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Vo})({flex:"0 0 auto"}),At=$(Ho,{name:"MuiDrawer",slot:"Paper",overridesResolver:(o,t)=>{const{ownerState:e}=o;return[t.paper,t[`paperAnchor${k(e.anchor)}`],e.variant!=="temporary"&&t[`paperAnchorDocked${k(e.anchor)}`]]}})(({theme:o,ownerState:t})=>n({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(o.vars||o).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(o.vars||o).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(o.vars||o).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(o.vars||o).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(o.vars||o).palette.divider}`})),qo={left:"right",right:"left",top:"down",bottom:"up"};function Dt(o){return["left","right"].indexOf(o)!==-1}function Et({direction:o},t){return o==="rtl"&&Dt(t)?qo[t]:t}const wa=C.forwardRef(function(t,e){const a=O({props:t,name:"MuiDrawer"}),r=Uo(),s=oo(),p={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:d,children:f,className:b,elevation:g=16,hideBackdrop:m=!1,ModalProps:{BackdropProps:x}={},onClose:c,open:v=!1,PaperProps:B={},SlideProps:u,TransitionComponent:h=st,transitionDuration:y=p,variant:T="temporary"}=a,I=S(a.ModalProps,Nt),P=S(a,St),z=C.useRef(!1);C.useEffect(()=>{z.current=!0},[]);const M=Et({direction:s?"rtl":"ltr"},i),w=n({},a,{anchor:i,elevation:g,open:v,variant:T},P),A=zt(w),N=l.jsx(At,n({elevation:T==="temporary"?g:0,square:!0},B,{className:L(A.paper,B.className),ownerState:w,children:f}));if(T==="permanent")return l.jsx(Co,n({className:L(A.root,A.docked,b),ownerState:w,ref:e},P,{children:N}));const j=l.jsx(h,n({in:v,direction:qo[M],timeout:y,appear:z.current},u,{children:N}));return T==="persistent"?l.jsx(Co,n({className:L(A.root,A.docked,b),ownerState:w,ref:e},P,{children:j})):l.jsx(jt,n({BackdropProps:n({},d,x,{transitionDuration:y}),className:L(A.root,A.modal,b),open:v,ownerState:w,onClose:c,hideBackdrop:m,ref:e},P,I,{children:j}))});function Ot(o){return E("MuiFab",o)}const Po=D("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),Ft=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],_t=o=>{const{color:t,variant:e,classes:a,size:r}=o,s={root:["root",e,`size${k(r)}`,t==="inherit"?"colorInherit":t]},p=F(s,Ot,a);return n({},a,p)},Ht=$(lo,{name:"MuiFab",slot:"Root",shouldForwardProp:o=>_o(o)||o==="classes",overridesResolver:(o,t)=>{const{ownerState:e}=o;return[t.root,t[e.variant],t[`size${k(e.size)}`],e.color==="inherit"&&t.colorInherit,t[k(e.size)],t[e.color]]}})(({theme:o,ownerState:t})=>{var e,a;return n({},o.typography.button,{minHeight:36,transition:o.transitions.create(["background-color","box-shadow","border-color"],{duration:o.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(o.vars||o).zIndex.fab,boxShadow:(o.vars||o).shadows[6],"&:active":{boxShadow:(o.vars||o).shadows[12]},color:o.vars?o.vars.palette.text.primary:(e=(a=o.palette).getContrastText)==null?void 0:e.call(a,o.palette.grey[300]),backgroundColor:(o.vars||o).palette.grey[300],"&:hover":{backgroundColor:(o.vars||o).palette.grey.A100,"@media (hover: none)":{backgroundColor:(o.vars||o).palette.grey[300]},textDecoration:"none"},[`&.${Po.focusVisible}`]:{boxShadow:(o.vars||o).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:o,ownerState:t})=>n({},t.color!=="inherit"&&t.color!=="default"&&(o.vars||o).palette[t.color]!=null&&{color:(o.vars||o).palette[t.color].contrastText,backgroundColor:(o.vars||o).palette[t.color].main,"&:hover":{backgroundColor:(o.vars||o).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(o.vars||o).palette[t.color].main}}}),({theme:o})=>({[`&.${Po.disabled}`]:{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground}})),Na=C.forwardRef(function(t,e){const a=O({props:t,name:"MuiFab"}),{children:r,className:s,color:p="default",component:i="button",disabled:d=!1,disableFocusRipple:f=!1,focusVisibleClassName:b,size:g="large",variant:m="circular"}=a,x=S(a,Ft),c=n({},a,{color:p,component:i,disabled:d,disableFocusRipple:f,size:g,variant:m}),v=_t(c);return l.jsx(Ht,n({className:L(v.root,s),component:i,disabled:d,focusRipple:!f,focusVisibleClassName:L(v.focusVisible,b),ownerState:c,ref:e},x,{classes:v,children:r}))});function Ut(o){return E("MuiInputAdornment",o)}const Ro=D("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ko;const Wt=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Vt=(o,t)=>{const{ownerState:e}=o;return[t.root,t[`position${k(e.position)}`],e.disablePointerEvents===!0&&t.disablePointerEvents,t[e.variant]]},qt=o=>{const{classes:t,disablePointerEvents:e,hiddenLabel:a,position:r,size:s,variant:p}=o,i={root:["root",e&&"disablePointerEvents",r&&`position${k(r)}`,p,a&&"hiddenLabel",s&&`size${k(s)}`]};return F(i,Ut,t)},Gt=$("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Vt})(({theme:o,ownerState:t})=>n({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(o.vars||o).palette.action.active},t.variant==="filled"&&{[`&.${Ro.positionStart}&:not(.${Ro.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Sa=C.forwardRef(function(t,e){const a=O({props:t,name:"MuiInputAdornment"}),{children:r,className:s,component:p="div",disablePointerEvents:i=!1,disableTypography:d=!1,position:f,variant:b}=a,g=S(a,Wt),m=it()||{};let x=b;b&&m.variant,m&&!x&&(x=m.variant);const c=n({},a,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:i,position:f,variant:x}),v=qt(c);return l.jsx(lt.Provider,{value:null,children:l.jsx(Gt,n({as:p,ownerState:c,className:L(v.root,s),ref:e},g,{children:typeof r=="string"&&!d?l.jsx(Wo,{color:"text.secondary",children:r}):l.jsxs(C.Fragment,{children:[f==="start"?ko||(ko=l.jsx("span",{className:"notranslate",children:"​"})):null,r]})}))})});function Kt(o){return E("MuiLinearProgress",o)}D("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Xt=["className","color","value","valueBuffer","variant"];let X=o=>o,$o,Bo,Mo,Io,Lo,To;const ro=4,Yt=co($o||($o=X` 0% { left: -35%; right: 100%; diff --git a/dist/assets/ra-CBMLOZf2.js b/dist/assets/ra-BJ1s-CBC.js similarity index 98% rename from dist/assets/ra-CBMLOZf2.js rename to dist/assets/ra-BJ1s-CBC.js index cf981dc..c7163b3 100644 --- a/dist/assets/ra-CBMLOZf2.js +++ b/dist/assets/ra-BJ1s-CBC.js @@ -76,7 +76,7 @@ const My`).concat(e,` = props => ( The missing props are: `).concat(i.join(", ")))},ul=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;nencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),U_="%[a-f0-9]{2}",jg=new RegExp("("+U_+")|([^%]+?)","gi"),Ng=new RegExp("("+U_+")+","gi");function Dd(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([],Dd(r),Dd(n))}function mN(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(jg)||[],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)]},EN=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=>(m,S)=>{const E=m.length;return S===void 0||d.skipNull&&S===null||d.skipEmptyString&&S===""?m:S===null?[...m,[c(p,d),"[",E,"]"].join("")]:[...m,[c(p,d),"[",c(E,d),"]=",c(S,d)].join("")]};case"bracket":return p=>(m,S)=>S===void 0||d.skipNull&&S===null||d.skipEmptyString&&S===""?m:S===null?[...m,[c(p,d),"[]"].join("")]:[...m,[c(p,d),"[]=",c(S,d)].join("")];case"colon-list-separator":return p=>(m,S)=>S===void 0||d.skipNull&&S===null||d.skipEmptyString&&S===""?m:S===null?[...m,[c(p,d),":list="].join("")]:[...m,[c(p,d),":list=",c(S,d)].join("")];case"comma":case"separator":case"bracket-separator":{const p=d.arrayFormat==="bracket-separator"?"[]=":"=";return m=>(S,E)=>E===void 0||d.skipNull&&E===null||d.skipEmptyString&&E===""?S:(E=E===null?"":E,S.length===0?[[c(m,d),p,c(E,d)].join("")]:[[S,c(E,d)].join(d.arrayFormatSeparator)])}default:return p=>(m,S)=>S===void 0||d.skipNull&&S===null||d.skipEmptyString&&S===""?m:S===null?[...m,c(p,d)]:[...m,[c(p,d),"=",c(S,d)].join("")]}}function l(d){let p;switch(d.arrayFormat){case"index":return(m,S,E)=>{if(p=/\[(\d*)\]$/.exec(m),m=m.replace(/\[\d*\]$/,""),!p){E[m]=S;return}E[m]===void 0&&(E[m]={}),E[m][p[1]]=S};case"bracket":return(m,S,E)=>{if(p=/(\[\])$/.exec(m),m=m.replace(/\[\]$/,""),!p){E[m]=S;return}if(E[m]===void 0){E[m]=[S];return}E[m]=[].concat(E[m],S)};case"colon-list-separator":return(m,S,E)=>{if(p=/(:list)$/.exec(m),m=m.replace(/:list$/,""),!p){E[m]=S;return}if(E[m]===void 0){E[m]=[S];return}E[m]=[].concat(E[m],S)};case"comma":case"separator":return(m,S,E)=>{const C=typeof S=="string"&&S.includes(d.arrayFormatSeparator),g=typeof S=="string"&&!C&&f(S,d).includes(d.arrayFormatSeparator);S=g?f(S,d):S;const O=C||g?S.split(d.arrayFormatSeparator).map(R=>f(R,d)):S===null?S:f(S,d);E[m]=O};case"bracket-separator":return(m,S,E)=>{const C=/(\[\])$/.test(m);if(m=m.replace(/\[\]$/,""),!C){E[m]=S&&f(S,d);return}const g=S===null?[]:S.split(d.arrayFormatSeparator).map(O=>f(O,d));if(E[m]===void 0){E[m]=g;return}E[m]=[].concat(E[m],g)};default:return(m,S,E)=>{if(E[m]===void 0){E[m]=S;return}E[m]=[].concat(E[m],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 h(d){return Array.isArray(d)?d.sort():typeof d=="object"?h(Object.keys(d)).sort((p,m)=>Number(p)-Number(m)).map(p=>d[p]):d}function w(d){const p=d.indexOf("#");return p!==-1&&(d=d.slice(0,p)),d}function _(d){let p="";const m=d.indexOf("#");return m!==-1&&(p=d.slice(m)),p}function x(d){d=w(d);const p=d.indexOf("?");return p===-1?"":d.slice(p+1)}function b(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 m=l(p),S=Object.create(null);if(typeof d!="string"||(d=d.trim().replace(/^[?#&]/,""),!d))return S;for(const E of d.split("&")){if(E==="")continue;let[C,g]=n(p.decode?E.replace(/\+/g," "):E,"=");g=g===void 0?null:["comma","separator","bracket-separator"].includes(p.arrayFormat)?g:f(g,p),m(f(C,p),g,S)}for(const E of Object.keys(S)){const C=S[E];if(typeof C=="object"&&C!==null)for(const g of Object.keys(C))C[g]=b(C[g],p);else S[E]=b(C,p)}return p.sort===!1?S:(p.sort===!0?Object.keys(S).sort():Object.keys(S).sort(p.sort)).reduce((E,C)=>{const g=S[C];return g&&typeof g=="object"&&!Array.isArray(g)?E[C]=h(g):E[C]=g,E},Object.create(null))}e.extract=x,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 m=g=>p.skipNull&&a(d[g])||p.skipEmptyString&&d[g]==="",S=s(p),E={};for(const g of Object.keys(d))m(g)||(E[g]=d[g]);const C=Object.keys(E);return p.sort!==!1&&C.sort(p.sort),C.map(g=>{const O=d[g];return O===void 0?"":O===null?c(g,p):Array.isArray(O)?O.length===0&&p.arrayFormat==="bracket-separator"?c(g,p)+"[]":O.reduce(S(g),[]).join("&"):c(g,p)+"="+c(O,p)}).filter(g=>g.length>0).join("&")},e.parseUrl=(d,p)=>{p=Object.assign({decode:!0},p);const[m,S]=n(d,"#");return Object.assign({url:m.split("?")[0]||"",query:y(x(d),p)},p&&p.parseFragmentIdentifier&&S?{fragmentIdentifier:f(S,p)}:{})},e.stringifyUrl=(d,p)=>{p=Object.assign({encode:!0,strict:!0,[o]:!0},p);const m=w(d.url).split("?")[0]||"",S=e.extract(d.url),E=e.parse(S,{sort:!1}),C=Object.assign(E,d.query);let g=e.stringify(C,p);g&&(g=`?${g}`);let O=_(d.url);return d.fragmentIdentifier&&(O=`#${p[o]?c(d.fragmentIdentifier,p):d.fragmentIdentifier}`),`${m}${g}${O}`},e.pick=(d,p,m)=>{m=Object.assign({parseFragmentIdentifier:!0,[o]:!1},m);const{url:S,query:E,fragmentIdentifier:C}=e.parseUrl(d,m);return e.stringifyUrl({url:S,query:i(E,p),fragmentIdentifier:C},m)},e.exclude=(d,p,m)=>{const S=Array.isArray(p)?E=>!p.includes(E):(E,C)=>!p(E,C);return e.pick(d,S,m)}})(ec);var sl=function(){return sl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new N_(l&&l.message||a,i,l)):Promise.resolve({status:i,headers:o,body:s,json:l})})},CN=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},z_=function(e,t){var r;return t===void 0&&(t=[]),CN(e)?Object.assign.apply(Object,bN([{}],Object.keys(e).map(function(n){return z_(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},V_={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,h){if(typeof c!="function")throw new TypeError("The listener must be a function");var w=new i(c,f||l,h),_=r?r+u:u;return l._events[_]?l._events[_].fn?l._events[_]=[l._events[_],w]:l._events[_].push(w):(l._events[_]=w,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 h=0,w=f.length,_=new Array(w);h0&&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},FN=["getList","getMany","getManyReference"],lo=function(){var e=v.useContext(_v)||wv,t=B_(),r=v.useMemo(function(){return new Proxy(e,{get:function(n,i){if(!(typeof i=="symbol"||i==="then"))return i==="supportAbortSignal"?e.supportAbortSignal:function(){for(var a=[],o=0;o0),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(rt.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,o(r.current||n.current))})),l=e.getMutationCache().subscribe(rt.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,o(r.current||n.current))}));return function(){t.current=!1,s(),l()}},[e]),a},W_=function(){var e=Qr();return v.useCallback(function(){e.invalidateQueries()},[e])},Id=function(){return Id=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?K_(s,t-1,r,n,i):UN(i,s):n||(i[i.length]=s)}return i}var Q_=K_;function VN(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a-1}var t3=e3;function r3(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=g3){var u=t?null:p3(e);if(u)return y3(u);o=!1,i=v3,l=new f3}else l=t?[]:s;e:for(;++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]0?N(I):I},{updatedAt:L}),i.setQueriesData({queryKey:[g,"getManyReference"]},function(I){return I&&I.data?{data:N(I.data),total:I.total}:I},{updatedAt:L})},m=Il(Ae(Ae({mutationFn:function(C){var g=C===void 0?{}:C,O=g.resource,R=O===void 0?e:O,T=g.id,L=T===void 0?w.current.id:T,N=g.data,I=N===void 0?w.current.data:N,Q=g.meta,q=Q===void 0?w.current.meta:Q,ie=g.previousData,U=ie===void 0?w.current.previousData:ie;if(!R)throw new Error("useUpdate mutation requires a non-empty resource");if(L==null)throw new Error("useUpdate mutation requires a non-empty id");if(!I)throw new Error("useUpdate mutation requires a non-empty data object");return x.current(R,{id:L,data:I,previousData:U,meta:q}).then(function(V){var J=V.data;return J})}},f),{onMutate:function(C){return Wg(void 0,void 0,void 0,function(){var g;return Hg(this,function(O){switch(O.label){case 0:return f.onMutate?[4,f.onMutate(C)]:[3,2];case 1:return g=O.sent()||{},[2,Ae({snapshot:_.current},g)];case 2:return[2,{snapshot:_.current}]}})})},onError:function(C,g,O){if(g===void 0&&(g={}),(h.current==="optimistic"||h.current==="undoable")&&O.snapshot.forEach(function(R){var T=R[0],L=R[1];i.setQueryData(T,L)}),b.current)return b.current(C,g,O);if(f.onError)return f.onError(C,g,O)},onSuccess:function(C,g,O){if(g===void 0&&(g={}),h.current==="pessimistic"){var R=g.resource,T=R===void 0?e:R,L=g.id,N=L===void 0?a:L;p({resource:T,id:N,data:C}),f.onSuccess&&!d.current&&f.onSuccess(C,g,O)}},onSettled:function(C,g,O,R){if(O===void 0&&(O={}),(h.current==="optimistic"||h.current==="undoable")&&R.snapshot.forEach(function(T){var L=T[0];i.invalidateQueries({queryKey:L})}),y.current)return y.current(C,g,O,R);if(f.onSettled)return f.onSettled(C,g,O,R)}})),S=function(C,g,O){return C===void 0&&(C=e),g===void 0&&(g={}),O===void 0&&(O={}),Wg(void 0,void 0,void 0,function(){var R,T,L,N,I,Q,q,ie,U,V,J,ne,te,le,_e;return Hg(this,function(nt){switch(nt.label){case 0:return R=O.mutationMode,T=O.returnPromise,L=T===void 0?f.returnPromise:T,N=O.onError,I=O.onSettled,Q=O.onSuccess,q=Kg(O,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),c?x.current=c(n.update.bind(n)):x.current=n.update,d.current=!!Q,b.current=N,y.current=I,w.current=t,R&&(h.current=R),L&&h.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),h.current==="pessimistic"?L?[2,m.mutateAsync(Ae({resource:C},g),Ae({onSuccess:Q},q))]:[2,m.mutate(Ae({resource:C},g),Ae({onSuccess:Q},q))]:(ie=g.id,U=ie===void 0?a:ie,V=g.data,J=V===void 0?o:V,ne=g.meta,te=ne===void 0?s:ne,le=i.getQueryData([C,"getOne",{id:String(U),meta:te}]),_e=[[C,"getOne",{id:String(U),meta:te}],[C,"getList"],[C,"getInfiniteList"],[C,"getMany"],[C,"getManyReference"]],_.current=_e.reduce(function(Se,Le){return Se.concat(i.getQueriesData({queryKey:Le}))},[]),[4,Promise.all(_.current.map(function(Se){var Le=Se[0];return i.cancelQueries({queryKey:Le})}))]);case 1:return nt.sent(),p({resource:C,id:U,data:J}),setTimeout(function(){Q?Q(Ae(Ae({},le),J),Ae({resource:C},g),{snapshot:_.current}):f.onSuccess&&!d.current&&f.onSuccess(Ae(Ae({},le),J),Ae({resource:C},g),{snapshot:_.current})},0),h.current==="optimistic"?[2,m.mutate(Ae({resource:C},g))]:(Sv.once("end",function(Se){var Le=Se.isUndo;Le?_.current.forEach(function(lt){var Ee=lt[0],wt=lt[1];i.setQueryData(Ee,wt)}):m.mutate(Ae({resource:C},g))}),[2])}})})},E=v.useMemo(function(){return Ae({isLoading:m.isPending},m)},[m]);return[Ue(S),E]},Ct=function(){return Ct=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?O(R):R},{updatedAt:g}),i.setQueriesData({queryKey:[S,"getManyReference"]},function(R){if(!R||!R.data)return R;var T=O(R.data),L=T.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?g(O):O},{updatedAt:C}),i.setQueriesData({queryKey:[m,"getManyReference"]},function(O){if(!O||!O.data)return O;var R=g(O.data),T=R.length=0?o[u].apply(o,Po(Po([],f,!1),[c],!1)):a.apply(void 0,f)};return o.length>0?o[u].apply(o,Po(Po([],s,!1),[c],!1)):a.apply(void 0,s)}},[]),i=v.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return i},ll=function(){return ll=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;ne||x(typeof q=="string"?q:q.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof q=="string"?q:q instanceof Error||typeof q=="object"&&q!==null&&q.hasOwnProperty("message")?q.message:void 0}})}},S),{returnPromise:!0,getMutateWithMiddlewares:g})),T=R[0],L=R[1].isPending,N=v.useCallback(function(q,ie){ie===void 0&&(ie={});var U=ie.transform,V=ie.meta,J=rm(ie,["transform","meta"]);return Promise.resolve(U?U(q):a?a(q):q).then(function(ne){return em(void 0,void 0,void 0,function(){var te,le;return tm(this,function(_e){switch(_e.label){case 0:return _e.trys.push([0,2,,3]),[4,T(l,{data:ne,meta:V??m},J)];case 1:return _e.sent(),[3,3];case 2:return te=_e.sent(),(te instanceof N_||typeof te=="object"&&te!==null&&te.hasOwnProperty("body"))&&((le=te.body)===null||le===void 0?void 0:le.errors)!=null?[2,te.body.errors]:[3,3];case 3:return[2]}})})})},[T,m,l,a]),I=mc(),Q=_("ra.page.create",{name:I(l,1)});return{isFetching:!1,isLoading:!1,isPending:L,saving:L,defaultTitle:Q,save:N,resource:l,record:y,redirect:h,registerMutationMiddleware:C,unregisterMutationMiddleware:O}},h4=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=ec.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},v4=function(e,t){return t?"edit":e?"show":"list"},Ev=v.createContext(void 0);Ev.displayName="RecordContext";var rc=function(e){var t=e.children,r=e.value;return v.createElement(Ev.Provider,{value:r},t)},bv=v.createContext(null);bv.displayName="CreateContext";var cl=function(){return cl=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;(!be||i!=="pessimistic")&&x(typeof Ee=="string"?Ee:Ee.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof Ee=="string"?Ee:Ee instanceof Error||typeof Ee=="object"&&Ee!==null&&Ee.hasOwnProperty("message")?Ee.message:void 0}})}},O),{mutationMode:i,returnPromise:i==="pessimistic",getMutateWithMiddlewares:L})),Se=nt[0],Le=nt[1].isPending,lt=v.useCallback(function(Ee,wt){var it=wt===void 0?{}:wt,qt=it.onSuccess,Dt=it.onError,be=it.transform,Gt=it.meta;return Promise.resolve(be?be(Ee,{previousData:_e.previousData}):f?f(Ee,{previousData:_e.previousData}):Ee).then(function(ci){return nm(void 0,void 0,void 0,function(){var wn,P;return im(this,function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),[4,Se(h,{id:p,data:ci,meta:Gt??E},{onError:Dt,onSuccess:qt})];case 1:return A.sent(),[3,3];case 2:return wn=A.sent(),((P=wn.body)===null||P===void 0?void 0:P.errors)!=null?[2,wn.body.errors]:[3,3];case 3:return[2]}})})})},[p,E,h,f,Se,_e.previousData]);return{defaultTitle:le,error:q,isFetching:U,isLoading:ie,isPending:V,mutationMode:i,record:Q,redirect:c,refetch:J,registerMutationMiddleware:T,resource:h,save:lt,saving:Le,unregisterMutationMiddleware:N}},m4="list",co=function(e){var t=v.useContext(Ev);return e&&e.record||t},w4=function(e){var t=e.value,r=e.children;return t?v.createElement(rc,{value:t},r):r},u6=function(e){var t=co(e),r=mr(e),n=Vv(r);return v.createElement(v.Fragment,null,n(t))},xv=v.createContext(null);xv.displayName="EditContext";var _4=function(e){var t=e.children,r=e.value;return v.createElement(xv.Provider,{value:r},v.createElement(Y_,{value:J_(r)},v.createElement(rc,{value:r&&r.record},t)))},S4=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":eS(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}(),R4=P4,$4=typeof window>"u"?$o:window;function k4(e,t){if(e instanceof $4[t])return!0;switch(typeof e>"u"?"undefined":eS(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var df,om;function F4(){return om||(om=1,df=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}}),df}var A4=function(){function e(t,r){for(var n=0;n0&&(f=f.concat(Array(h).join(".").split("."))),n&&this._options.fillGaps&&(f=f.map(a)),i.push(f.join(this._options.rowDelimiter)),n=f}}catch(w){s=!0,l=w}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(I){return y.push(I.map(function(Q){return Q??""}))},p=function(){return new Array(i._headers.length).fill(null)},m={},S=p(),E=!0,C=!1,g=void 0;try{for(var O=b[Symbol.iterator](),R;!(E=(R=O.next()).done);E=!0){var T=R.value,L=s(T.item);if(S[L]!=null&&(d(S),S=p()),m[L]=m[L]||0,i._options.fillTopRow&&m[L]0&&d(S),a=a.concat(i._checkRows(y))};var l=!0,u=!1,c=void 0;try{for(var f=r[Symbol.iterator](),h;!(l=(h=f.next()).done);l=!0){var w=h.value,_=i._handler.check(w,i._options.mainPathItem,w,r);o(_)}}catch(x){u=!0,c=x}finally{try{!l&&f.return&&f.return()}finally{if(u)throw c}}return!n&&i._options.includeHeaders&&a.unshift(this.headers),um(a,i._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,i=[],a=[],o=void 0,s=[[],[]];o=function(f){var h=f.value||f.value===0?f.value.toString():n._options.undefinedString;if(h=n._escape(h),n._options.verticalOutput){var w=[f.item,h];i.push(w.join(n._options.rowDelimiter))}else s[0].push(f.item),s[1].push(h)};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))),um(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}(),D4=M4,I4=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},j4=I4,lm=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},cm=D4,fm=j4,N4=Z_,U4=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:N4,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":lm(a))==="object"&&(r=a)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),l=s[0];if((typeof l>"u"?"undefined":lm(l))==="object"){var u=Object.keys(e),c=Object.keys(l),f=c.every(function(_){return u.includes(_)});c.length>0&&f?r=l:t=l}else t=l}else return new fm(new cm(e));var h=Object.assign({},e,r),w=new cm(h);return t?new Promise(function(_,x){w.parse(t,function(b,y){if(n)return n(b,y);if(b)return x(b);if(x)return _(y)})}):new fm};const z4=Tt(U4);var V4=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())},B4=function(e,t,r,n){return z4(e,function(i,a){return V4(a,n)})},W4=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)},[])))},c6=function(e){return function(t,r,n){return e.getMany(n,{ids:W4(t,r)}).then(function(i){var a=i.data;return a.reduce(function(o,s){return o[s.id]=s,o},{})})}},Zi=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n"u"||_(function(d){if(!Array.isArray(d))return Zi([],d,!0);var p=d.indexOf(y);return p>-1?Zi(Zi([],d.slice(0,p),!0),d.slice(p+1),!0):Zi(Zi([],d,!0),[y],!1)})},clearSelection:function(){x()}}},[_,x]);return[w,b]},hf=[];function On(e){var t=v.useState(e),r=t[0],n=t[1],i=v.useRef(!1);v.useEffect(function(){return i.current=!0,function(){i.current=!1}},[]);var a=v.useCallback(function(o){if(i.current)return n(o)},[i,n]);return[r,a]}function f6(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=On(!1),n=r[0],i=r[1];return v.useEffect(function(){i(!1);var a=setTimeout(function(){i(!0)},e);return function(){clearTimeout(a)}},[t,e,i]),n}function H4(){var e=v.useRef(!0);return v.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var un=function(){return un=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&!C&&m(R)},[w.search]);var T=v.useCallback(function(ne){E.current&&(S.current?S.current=Dg(S.current,ne):(S.current=Dg(R,ne),setTimeout(function(){S.current&&(i?y(S.current):_({search:"?".concat(ec.stringify(un(un({},S.current),{filter:JSON.stringify(S.current.filter),displayedFilters:JSON.stringify(S.current.displayedFilters)})))},{state:{_scrollToTop:ne.type===Ld}}),S.current=void 0)},0)))},dm(dm([],g,!0),[_],!1)),L=v.useCallback(function(ne){return T({type:M_,payload:ne})},[T]),N=v.useCallback(function(ne){return T({type:Ld,payload:ne})},[T]),I=v.useCallback(function(ne){return T({type:D_,payload:ne})},[T]),Q=R.filter||pm,q=R.displayedFilters||pm,ie=T_(function(ne,te){T({type:Md,payload:{filter:Ka(ne),displayedFilters:te}})},r),U=v.useCallback(function(ne,te,le){return te===void 0&&(te=void 0),le===void 0&&(le=!1),le?ie(ne,te):T({type:Md,payload:{filter:Ka(ne),displayedFilters:te}})},[T]),V=v.useCallback(function(ne){T({type:j_,payload:ne})},[T]),J=v.useCallback(function(ne,te){T({type:I_,payload:{filterName:ne,defaultValue:te}})},[T]);return[un(un({filterValues:Q,requestSignature:g},R),{displayedFilters:q}),{changeParams:T,setPage:N,setPerPage:I,setSort:L,setFilters:U,hideFilter:V,showFilter:J}]},hm=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},Q4=function(e){var t=e.search,r=ec.parse(t);return hm(r,"filter"),hm(r,"displayedFilters"),r},q4=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},G4=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:q4(r)?un({},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),un(un({},o),{page:vm(o.page,1),perPage:vm(o.perPage,10)})},vm=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},pm={},Y4={field:"id",order:Ti},ym={},nc=v.createContext(null);nc.displayName="ListContext";var tS=v.createContext(void 0),J4=function(e){return v.useMemo(function(){return tc(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};tS.displayName="ListFilterContext";var rS=v.createContext(void 0),X4=function(e){return v.useMemo(function(){return tc(e,["sort","setSort","resource"])},[e.sort,e.setSort])};rS.displayName="ListSortContext";var Ov=v.createContext(void 0);Ov.displayName="ListPaginationContext";var Z4=function(e){return v.useMemo(function(){return tc(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])},eU=function(e){var t=e.value,r=e.children;return v.createElement(nc.Provider,{value:t},v.createElement(tS.Provider,{value:J4(t)},v.createElement(rS.Provider,{value:X4(t)},v.createElement(Ov.Provider,{value:Z4(t)},r))))},Li=function(){return Li=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(L==null||(L==null?void 0:L.length)===0)){C.setPage(1);return}if(I!=null){var le=Math.ceil(I/E.perPage)||1;!ie&&E.page>le&&C.setPage(le)}},[ie,E.page,E.perPage,L,C,I]);var J=v.useMemo(function(){return{field:E.sort,order:E.order}},[E.sort,E.order]),ne=mc(),te=p("ra.page.list",{name:ne(b,2)});return{sort:J,data:L,defaultTitle:te,displayedFilters:E.displayedFilters,error:Q,exporter:o,filter:s,filterValues:E.filterValues,hideFilter:C.hideFilter,isFetching:ie,isLoading:q,isPending:U,onSelect:R.select,onToggleItem:R.toggle,onUnselectItems:R.clearSelection,page:E.page,perPage:E.perPage,refetch:V,resource:b,selectedIds:O,setFilters:C.setFilters,setPage:C.setPage,setPerPage:C.setPerPage,setSort:C.setSort,showFilter:C.showFilter,total:I,hasNextPage:N?N.hasNextPage:I!=null?E.page*E.perPage1}},nU={field:"id",order:Ti},iU=["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"],d6=function(e){return Object.keys(e).filter(function(t){return!iU.includes(t)}).reduce(function(t,r){var n;return Li(Li({},t),(n={},n[r]=e[r],n))},{})},aU=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?[]:cs(cs([],l.slice(0,u),!0),l.slice(u+1),!0):r?[t]:cs(cs([],l,!0),[t],!1)})},[a,t,r]);return[o,s]},p6=function(e,t){var r=li("".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=v.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]},ya=function(){return ya=Object.assign||function(e){for(var t,r=1,n=arguments.length;rdr(K,te.field)?te.order==="ASC"?1:-1:dr(B,te.field)1,hideFilter:Gt,isFetching:S,isLoading:g,isPending:T,onSelect:Le.select,onToggleItem:Le.toggle,onUnselectItems:Le.clearSelection,page:ie,perPage:V,resource:"",refetch:oU,selectedIds:Se,setFilters:wn,setPage:U,setPerPage:J,setSort:_e,showFilter:ci,total:I==null?void 0:I.total}},uU={},g6=function(){var e=v.useContext(nc);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},sU=yv,lU=to,cU=P_,fU=uo,nS=Object.prototype,dU=nS.hasOwnProperty,hU=sU(function(e,t){e=Object(e);var r=-1,n=t.length,i=n>2?t[2]:void 0;for(i&&cU(t[0],t[1],i)&&(n=1);++re.type==="checkbox",ga=e=>e instanceof Date,Ft=e=>e==null;const oS=e=>typeof e=="object";var st=e=>!Ft(e)&&!Array.isArray(e)&&oS(e)&&!ga(e),uS=e=>st(e)&&e.target?Tu(e.target)?e.target.checked:e.target.value:e,yU=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,sS=(e,t)=>e.has(yU(t)),gU=e=>{const t=e.constructor&&e.constructor.prototype;return st(t)&&t.hasOwnProperty("isPrototypeOf")},Pv=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function It(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(!(Pv&&(e instanceof Blob||e instanceof FileList))&&(r||st(e)))if(t=r?[]:{},!r&&!gU(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=It(e[n]));else return e;return t}var ic=e=>Array.isArray(e)?e.filter(Boolean):[],Ze=e=>e===void 0,G=(e,t,r)=>{if(!t||!st(e))return r;const n=ic(t.split(/[,[\].]+?/)).reduce((i,a)=>Ft(i)?i:i[a],e);return Ze(n)||n===e?Ze(e[t])?r:e[t]:n},lr=e=>typeof e=="boolean",Rv=e=>/^\w*$/.test(e),lS=e=>ic(e.replace(/["|']|\]/g,"").split(/\.|\[/)),De=(e,t,r)=>{let n=-1;const i=Rv(t)?[t]:lS(t),a=i.length,o=a-1;for(;++nme.useContext(cS),mU=e=>{const{children:t,...r}=e;return me.createElement(cS.Provider,{value:r},t)};var fS=(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]!==Pr.all&&(t._proxyFormState[o]=!n||Pr.all),r&&(r[o]=!0),e[o]}});return i},Ut=e=>st(e)&&!Object.keys(e).length,dS=(e,t,r,n)=>{r(e);const{name:i,...a}=e;return Ut(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!n||Pr.all))},qo=e=>Array.isArray(e)?e:[e],hS=(e,t,r)=>!e||!t||e===t||qo(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function $v(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 kv(e){const t=ac(),{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,$v({disabled:n,next:f=>l.current&&hS(c.current,f.name,a)&&dS(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]),fS(o,r,u.current,!1)}var Wr=e=>typeof e=="string",vS=(e,t,r,n,i)=>Wr(e)?(n&&t.watch.add(e),G(r,e,i)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),G(r,a))):(n&&(t.watchAll=!0),r);function wU(e){const t=ac(),{control:r=t.control,name:n,defaultValue:i,disabled:a,exact:o}=e||{},s=me.useRef(n);s.current=n,$v({disabled:a,subject:r._subjects.values,next:c=>{hS(s.current,c.name,o)&&u(It(vS(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 _U(e){const t=ac(),{name:r,disabled:n,control:i=t.control,shouldUnregister:a}=e,o=sS(i._names.array,r),s=wU({control:i,name:r,defaultValue:G(i._formValues,r,G(i._defaultValues,r,e.defaultValue)),exact:!0}),l=kv({control:i,name:r,exact:!0}),u=me.useRef(i.register(r,{...e.rules,value:s,...lr(e.disabled)?{disabled:e.disabled}:{}}));return me.useEffect(()=>{const c=i._options.shouldUnregister||a,f=(h,w)=>{const _=G(i._fields,h);_&&_._f&&(_._f.mount=w)};if(f(r,!0),c){const h=It(G(i._options.defaultValues,r));De(i._defaultValues,r,h),Ze(G(i._formValues,r))&&De(i._formValues,r,h)}return()=>{(o?c&&!i._state.action:c)?i.unregister(r):f(r,!1)}},[r,i,o,a]),me.useEffect(()=>{G(i._fields,r)&&i._updateDisabledField({disabled:n,fields:i._fields,name:r,value:G(i._fields,r)._f.value})},[n,r,i]),{field:{name:r,value:s,...lr(n)||l.disabled?{disabled:l.disabled||n}:{},onChange:me.useCallback(c=>u.current.onChange({target:{value:uS(c),name:r},type:fl.CHANGE}),[r]),onBlur:me.useCallback(()=>u.current.onBlur({target:{value:G(i._formValues,r),name:r},type:fl.BLUR}),[r,i]),ref:me.useCallback(c=>{const f=G(i._fields,r);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:h=>c.setCustomValidity(h),reportValidity:()=>c.reportValidity()})},[i._fields,r])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!G(l.errors,r)},isDirty:{enumerable:!0,get:()=>!!G(l.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!G(l.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!G(l.validatingFields,r)},error:{enumerable:!0,get:()=>G(l.errors,r)}})}}var SU=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},mm=e=>({isOnSubmit:!e||e===Pr.onSubmit,isOnBlur:e===Pr.onBlur,isOnChange:e===Pr.onChange,isOnAll:e===Pr.all,isOnTouch:e===Pr.onTouched}),wm=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Go=(e,t,r,n)=>{for(const i of r||Object.keys(e)){const a=G(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(Go(s,t))break}else if(st(s)&&Go(s,t))break}}};var EU=(e,t,r)=>{const n=qo(G(e,r));return De(n,"root",t[r]),De(e,r,n),e},Fv=e=>e.type==="file",sn=e=>typeof e=="function",dl=e=>{if(!Pv)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Rs=e=>Wr(e),Av=e=>e.type==="radio",hl=e=>e instanceof RegExp;const _m={value:!1,isValid:!1},Sm={value:!0,isValid:!0};var pS=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&&!Ze(e[0].attributes.value)?Ze(e[0].value)||e[0].value===""?Sm:{value:e[0].value,isValid:!0}:Sm:_m}return _m};const Em={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,Em):Em;function bm(e,t,r="validate"){if(Rs(e)||Array.isArray(e)&&e.every(Rs)||lr(e)&&!e)return{type:r,message:Rs(e)?e:"",ref:t}}var ea=e=>st(e)&&!hl(e)?e:{value:e,message:""},xm=async(e,t,r,n,i)=>{const{ref:a,refs:o,required:s,maxLength:l,minLength:u,min:c,max:f,pattern:h,validate:w,name:_,valueAsNumber:x,mount:b,disabled:y}=e._f,d=G(t,_);if(!b||y)return{};const p=o?o[0]:a,m=L=>{n&&p.reportValidity&&(p.setCustomValidity(lr(L)?"":L||""),p.reportValidity())},S={},E=Av(a),C=Tu(a),g=E||C,O=(x||Fv(a))&&Ze(a.value)&&Ze(d)||dl(a)&&a.value===""||d===""||Array.isArray(d)&&!d.length,R=SU.bind(null,_,r,S),T=(L,N,I,Q=Zr.maxLength,q=Zr.minLength)=>{const ie=L?N:I;S[_]={type:L?Q:q,message:ie,ref:a,...R(L?Q:q,ie)}};if(i?!Array.isArray(d)||!d.length:s&&(!g&&(O||Ft(d))||lr(d)&&!d||C&&!pS(o).isValid||E&&!yS(o).isValid)){const{value:L,message:N}=Rs(s)?{value:!!s,message:s}:ea(s);if(L&&(S[_]={type:Zr.required,message:N,ref:p,...R(Zr.required,N)},!r))return m(N),S}if(!O&&(!Ft(c)||!Ft(f))){let L,N;const I=ea(f),Q=ea(c);if(!Ft(d)&&!isNaN(d)){const q=a.valueAsNumber||d&&+d;Ft(I.value)||(L=q>I.value),Ft(Q.value)||(N=qnew Date(new Date().toDateString()+" "+J),U=a.type=="time",V=a.type=="week";Wr(I.value)&&d&&(L=U?ie(d)>ie(I.value):V?d>I.value:q>new Date(I.value)),Wr(Q.value)&&d&&(N=U?ie(d)+L.value,Q=!Ft(N.value)&&d.length<+N.value;if((I||Q)&&(T(I,L.message,N.message),!r))return m(S[_].message),S}if(h&&!O&&Wr(d)){const{value:L,message:N}=ea(h);if(hl(L)&&!d.match(L)&&(S[_]={type:Zr.pattern,message:N,ref:a,...R(Zr.pattern,N)},!r))return m(N),S}if(w){if(sn(w)){const L=await w(d,t),N=bm(L,p);if(N&&(S[_]={...N,...R(Zr.validate,N.message)},!r))return m(N.message),S}else if(st(w)){let L={};for(const N in w){if(!Ut(L)&&!r)break;const I=bm(await w[N](d,t),p,N);I&&(L={...I,...R(N,I.message)},m(I.message),r&&(S[_]=L))}if(!Ut(L)&&(S[_]={ref:p,...L},!r))return S}}return m(!0),S};function bU(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=[]}}},vl=e=>Ft(e)||!oS(e);function Fn(e,t){if(vl(e)||vl(t))return e===t;if(ga(e)&&ga(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(ga(a)&&ga(o)||st(a)&&st(o)||Array.isArray(a)&&Array.isArray(o)?!Fn(a,o):a!==o)return!1}}return!0}var gS=e=>e.type==="select-multiple",CU=e=>Av(e)||Tu(e),pf=e=>dl(e)&&e.isConnected,mS=e=>{for(const t in e)if(sn(e[t]))return!0;return!1};function pl(e,t={}){const r=Array.isArray(e);if(st(e)||r)for(const n in e)Array.isArray(e[n])||st(e[n])&&!mS(e[n])?(t[n]=Array.isArray(e[n])?[]:{},pl(e[n],t[n])):Ft(e[n])||(t[n]=!0);return t}function wS(e,t,r){const n=Array.isArray(e);if(st(e)||n)for(const i in e)Array.isArray(e[i])||st(e[i])&&!mS(e[i])?Ze(t)||vl(r[i])?r[i]=Array.isArray(e[i])?pl(e[i],[]):{...pl(e[i])}:wS(e[i],Ft(t)?{}:t[i],r[i]):r[i]=!Fn(e[i],t[i]);return r}var fs=(e,t)=>wS(e,t,pl(t)),_S=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Ze(e)?e:t?e===""?NaN:e&&+e:r&&Wr(e)?new Date(e):n?n(e):e;function yf(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return Fv(t)?t.files:Av(t)?yS(e.refs).value:gS(t)?[...t.selectedOptions].map(({value:r})=>r):Tu(t)?pS(e.refs).value:_S(Ze(t.value)?e.ref.value:t.value,e)}var OU=(e,t,r,n)=>{const i={};for(const a of e){const o=G(t,a);o&&De(i,a,o._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},Ro=e=>Ze(e)?e:hl(e)?e.source:st(e)?hl(e.value)?e.value.source:e.value:e;const Cm="AsyncFunction";var PU=e=>(!e||!e.validate)&&!!(sn(e.validate)&&e.validate.constructor.name===Cm||st(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Cm)),RU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Om(e,t,r){const n=G(e,r);if(n||Rv(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const a=i.join("."),o=G(t,a),s=G(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 $U=(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,kU=(e,t)=>!ic(G(e,t)).length&&ct(e,t);const FU={mode:Pr.onSubmit,reValidateMode:Pr.onChange,shouldFocusError:!0};function AU(e={}){let t={...FU,...e},r={submitCount:0,isDirty:!1,isLoading:sn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},i=st(t.defaultValues)||st(t.values)?It(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:It(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:vf(),array:vf(),state:vf()},h=mm(t.mode),w=mm(t.reValidateMode),_=t.criteriaMode===Pr.all,x=P=>A=>{clearTimeout(u),u=setTimeout(P,A)},b=async P=>{if(c.isValid||P){const A=t.resolver?Ut((await g()).errors):await R(n,!0);A!==r.isValid&&f.state.next({isValid:A})}},y=(P,A)=>{(c.isValidating||c.validatingFields)&&((P||Array.from(s.mount)).forEach(D=>{D&&(A?De(r.validatingFields,D,A):ct(r.validatingFields,D))}),f.state.next({validatingFields:r.validatingFields,isValidating:!Ut(r.validatingFields)}))},d=(P,A=[],D,B,K=!0,H=!0)=>{if(B&&D){if(o.action=!0,H&&Array.isArray(G(n,P))){const re=D(G(n,P),B.argA,B.argB);K&&De(n,P,re)}if(H&&Array.isArray(G(r.errors,P))){const re=D(G(r.errors,P),B.argA,B.argB);K&&De(r.errors,P,re),kU(r.errors,P)}if(c.touchedFields&&H&&Array.isArray(G(r.touchedFields,P))){const re=D(G(r.touchedFields,P),B.argA,B.argB);K&&De(r.touchedFields,P,re)}c.dirtyFields&&(r.dirtyFields=fs(i,a)),f.state.next({name:P,isDirty:L(P,A),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else De(a,P,A)},p=(P,A)=>{De(r.errors,P,A),f.state.next({errors:r.errors})},m=P=>{r.errors=P,f.state.next({errors:r.errors,isValid:!1})},S=(P,A,D,B)=>{const K=G(n,P);if(K){const H=G(a,P,Ze(D)?G(i,P):D);Ze(H)||B&&B.defaultChecked||A?De(a,P,A?H:yf(K._f)):Q(P,H),o.mount&&b()}},E=(P,A,D,B,K)=>{let H=!1,re=!1;const pe={name:P},Ie=!!(G(n,P)&&G(n,P)._f&&G(n,P)._f.disabled);if(!D||B){c.isDirty&&(re=r.isDirty,r.isDirty=pe.isDirty=L(),H=re!==pe.isDirty);const Pe=Ie||Fn(G(i,P),A);re=!!(!Ie&&G(r.dirtyFields,P)),Pe||Ie?ct(r.dirtyFields,P):De(r.dirtyFields,P,!0),pe.dirtyFields=r.dirtyFields,H=H||c.dirtyFields&&re!==!Pe}if(D){const Pe=G(r.touchedFields,P);Pe||(De(r.touchedFields,P,D),pe.touchedFields=r.touchedFields,H=H||c.touchedFields&&Pe!==D)}return H&&K&&f.state.next(pe),H?pe:{}},C=(P,A,D,B)=>{const K=G(r.errors,P),H=c.isValid&&lr(A)&&r.isValid!==A;if(e.delayError&&D?(l=x(()=>p(P,D)),l(e.delayError)):(clearTimeout(u),l=null,D?De(r.errors,P,D):ct(r.errors,P)),(D?!Fn(K,D):K)||!Ut(B)||H){const re={...B,...H&&lr(A)?{isValid:A}:{},errors:r.errors,name:P};r={...r,...re},f.state.next(re)}},g=async P=>{y(P,!0);const A=await t.resolver(a,t.context,OU(P||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return y(P),A},O=async P=>{const{errors:A}=await g(P);if(P)for(const D of P){const B=G(A,D);B?De(r.errors,D,B):ct(r.errors,D)}else r.errors=A;return A},R=async(P,A,D={valid:!0})=>{for(const B in P){const K=P[B];if(K){const{_f:H,...re}=K;if(H){const pe=s.array.has(H.name),Ie=K._f&&PU(K._f);Ie&&c.validatingFields&&y([B],!0);const Pe=await xm(K,a,_,t.shouldUseNativeValidation&&!A,pe);if(Ie&&c.validatingFields&&y([B]),Pe[H.name]&&(D.valid=!1,A))break;!A&&(G(Pe,H.name)?pe?EU(r.errors,Pe,H.name):De(r.errors,H.name,Pe[H.name]):ct(r.errors,H.name))}!Ut(re)&&await R(re,A,D)}}return D.valid},T=()=>{for(const P of s.unMount){const A=G(n,P);A&&(A._f.refs?A._f.refs.every(D=>!pf(D)):!pf(A._f.ref))&&Se(P)}s.unMount=new Set},L=(P,A)=>(P&&A&&De(a,P,A),!Fn(ne(),i)),N=(P,A,D)=>vS(P,s,{...o.mount?a:Ze(A)?i:Wr(P)?{[P]:A}:A},D,A),I=P=>ic(G(o.mount?a:i,P,e.shouldUnregister?G(i,P,[]):[])),Q=(P,A,D={})=>{const B=G(n,P);let K=A;if(B){const H=B._f;H&&(!H.disabled&&De(a,P,_S(A,H)),K=dl(H.ref)&&Ft(A)?"":A,gS(H.ref)?[...H.ref.options].forEach(re=>re.selected=K.includes(re.value)):H.refs?Tu(H.ref)?H.refs.length>1?H.refs.forEach(re=>(!re.defaultChecked||!re.disabled)&&(re.checked=Array.isArray(K)?!!K.find(pe=>pe===re.value):K===re.value)):H.refs[0]&&(H.refs[0].checked=!!K):H.refs.forEach(re=>re.checked=re.value===K):Fv(H.ref)?H.ref.value="":(H.ref.value=K,H.ref.type||f.values.next({name:P,values:{...a}})))}(D.shouldDirty||D.shouldTouch)&&E(P,K,D.shouldTouch,D.shouldDirty,!0),D.shouldValidate&&J(P)},q=(P,A,D)=>{for(const B in A){const K=A[B],H=`${P}.${B}`,re=G(n,H);(s.array.has(P)||!vl(K)||re&&!re._f)&&!ga(K)?q(H,K,D):Q(H,K,D)}},ie=(P,A,D={})=>{const B=G(n,P),K=s.array.has(P),H=It(A);De(a,P,H),K?(f.array.next({name:P,values:{...a}}),(c.isDirty||c.dirtyFields)&&D.shouldDirty&&f.state.next({name:P,dirtyFields:fs(i,a),isDirty:L(P,H)})):B&&!B._f&&!Ft(H)?q(P,H,D):Q(P,H,D),wm(P,s)&&f.state.next({...r}),f.values.next({name:o.mount?P:void 0,values:{...a}})},U=async P=>{o.mount=!0;const A=P.target;let D=A.name,B=!0;const K=G(n,D),H=()=>A.type?yf(K._f):uS(P),re=pe=>{B=Number.isNaN(pe)||Fn(pe,G(a,D,pe))};if(K){let pe,Ie;const Pe=H(),Lr=P.type===fl.BLUR||P.type===fl.FOCUS_OUT,vo=!RU(K._f)&&!t.resolver&&!G(r.errors,D)&&!K._f.deps||$U(Lr,G(r.touchedFields,D),r.isSubmitted,w,h),or=wm(D,s,Lr);De(a,D,Pe),Lr?(K._f.onBlur&&K._f.onBlur(P),l&&l(0)):K._f.onChange&&K._f.onChange(P);const Yt=E(D,Pe,Lr,!1),Du=!Ut(Yt)||or;if(!Lr&&f.values.next({name:D,type:P.type,values:{...a}}),vo)return c.isValid&&(e.mode==="onBlur"?Lr&&b():b()),Du&&f.state.next({name:D,...or?{}:Yt});if(!Lr&&or&&f.state.next({...r}),t.resolver){const{errors:fi}=await g([D]);if(re(Pe),B){const wc=Om(r.errors,n,D),wr=Om(fi,n,wc.name||D);pe=wr.error,D=wr.name,Ie=Ut(fi)}}else y([D],!0),pe=(await xm(K,a,_,t.shouldUseNativeValidation))[D],y([D]),re(Pe),B&&(pe?Ie=!1:c.isValid&&(Ie=await R(n,!0)));B&&(K._f.deps&&J(K._f.deps),C(D,Ie,pe,Yt))}},V=(P,A)=>{if(G(r.errors,A)&&P.focus)return P.focus(),1},J=async(P,A={})=>{let D,B;const K=qo(P);if(t.resolver){const H=await O(Ze(P)?P:K);D=Ut(H),B=P?!K.some(re=>G(H,re)):D}else P?(B=(await Promise.all(K.map(async H=>{const re=G(n,H);return await R(re&&re._f?{[H]:re}:re)}))).every(Boolean),!(!B&&!r.isValid)&&b()):B=D=await R(n);return f.state.next({...!Wr(P)||c.isValid&&D!==r.isValid?{}:{name:P},...t.resolver||!P?{isValid:D}:{},errors:r.errors}),A.shouldFocus&&!B&&Go(n,V,P?K:s.mount),B},ne=P=>{const A={...o.mount?a:i};return Ze(P)?A:Wr(P)?G(A,P):P.map(D=>G(A,D))},te=(P,A)=>({invalid:!!G((A||r).errors,P),isDirty:!!G((A||r).dirtyFields,P),error:G((A||r).errors,P),isValidating:!!G(r.validatingFields,P),isTouched:!!G((A||r).touchedFields,P)}),le=P=>{P&&qo(P).forEach(A=>ct(r.errors,A)),f.state.next({errors:P?r.errors:{}})},_e=(P,A,D)=>{const B=(G(n,P,{_f:{}})._f||{}).ref,K=G(r.errors,P)||{},{ref:H,message:re,type:pe,...Ie}=K;De(r.errors,P,{...Ie,...A,ref:B}),f.state.next({name:P,errors:r.errors,isValid:!1}),D&&D.shouldFocus&&B&&B.focus&&B.focus()},nt=(P,A)=>sn(P)?f.values.subscribe({next:D=>P(N(void 0,A),D)}):N(P,A,!0),Se=(P,A={})=>{for(const D of P?qo(P):s.mount)s.mount.delete(D),s.array.delete(D),A.keepValue||(ct(n,D),ct(a,D)),!A.keepError&&ct(r.errors,D),!A.keepDirty&&ct(r.dirtyFields,D),!A.keepTouched&&ct(r.touchedFields,D),!A.keepIsValidating&&ct(r.validatingFields,D),!t.shouldUnregister&&!A.keepDefaultValue&&ct(i,D);f.values.next({values:{...a}}),f.state.next({...r,...A.keepDirty?{isDirty:L()}:{}}),!A.keepIsValid&&b()},Le=({disabled:P,name:A,field:D,fields:B,value:K})=>{if(lr(P)&&o.mount||P){const H=P?void 0:Ze(K)?yf(D?D._f:G(B,A)._f):K;De(a,A,H),E(A,H,!1,!1,!0)}},lt=(P,A={})=>{let D=G(n,P);const B=lr(A.disabled)||lr(e.disabled);return De(n,P,{...D||{},_f:{...D&&D._f?D._f:{ref:{name:P}},name:P,mount:!0,...A}}),s.mount.add(P),D?Le({field:D,disabled:lr(A.disabled)?A.disabled:e.disabled,name:P,value:A.value}):S(P,!0,A.value),{...B?{disabled:A.disabled||e.disabled}:{},...t.progressive?{required:!!A.required,min:Ro(A.min),max:Ro(A.max),minLength:Ro(A.minLength),maxLength:Ro(A.maxLength),pattern:Ro(A.pattern)}:{},name:P,onChange:U,onBlur:U,ref:K=>{if(K){lt(P,A),D=G(n,P);const H=Ze(K.value)&&K.querySelectorAll&&K.querySelectorAll("input,select,textarea")[0]||K,re=CU(H),pe=D._f.refs||[];if(re?pe.find(Ie=>Ie===H):H===D._f.ref)return;De(n,P,{_f:{...D._f,...re?{refs:[...pe.filter(pf),H,...Array.isArray(G(i,P))?[{}]:[]],ref:{type:H.type,name:P}}:{ref:H}}}),S(P,!1,void 0,H)}else D=G(n,P,{}),D._f&&(D._f.mount=!1),(t.shouldUnregister||A.shouldUnregister)&&!(sS(s.array,P)&&o.action)&&s.unMount.add(P)}}},Ee=()=>t.shouldFocusError&&Go(n,V,s.mount),wt=P=>{lr(P)&&(f.state.next({disabled:P}),Go(n,(A,D)=>{const B=G(n,D);B&&(A.disabled=B._f.disabled||P,Array.isArray(B._f.refs)&&B._f.refs.forEach(K=>{K.disabled=B._f.disabled||P}))},0,!1))},it=(P,A)=>async D=>{let B;D&&(D.preventDefault&&D.preventDefault(),D.persist&&D.persist());let K=It(a);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:H,values:re}=await g();r.errors=H,K=re}else await R(n);if(ct(r.errors,"root"),Ut(r.errors)){f.state.next({errors:{}});try{await P(K,D)}catch(H){B=H}}else A&&await A({...r.errors},D),Ee(),setTimeout(Ee);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ut(r.errors)&&!B,submitCount:r.submitCount+1,errors:r.errors}),B)throw B},qt=(P,A={})=>{G(n,P)&&(Ze(A.defaultValue)?ie(P,It(G(i,P))):(ie(P,A.defaultValue),De(i,P,It(A.defaultValue))),A.keepTouched||ct(r.touchedFields,P),A.keepDirty||(ct(r.dirtyFields,P),r.isDirty=A.defaultValue?L(P,It(G(i,P))):L()),A.keepError||(ct(r.errors,P),c.isValid&&b()),f.state.next({...r}))},Dt=(P,A={})=>{const D=P?It(P):i,B=It(D),K=Ut(P),H=K?i:B;if(A.keepDefaultValues||(i=D),!A.keepValues){if(A.keepDirtyValues)for(const re of s.mount)G(r.dirtyFields,re)?De(H,re,G(a,re)):ie(re,G(H,re));else{if(Pv&&Ze(P))for(const re of s.mount){const pe=G(n,re);if(pe&&pe._f){const Ie=Array.isArray(pe._f.refs)?pe._f.refs[0]:pe._f.ref;if(dl(Ie)){const Pe=Ie.closest("form");if(Pe){Pe.reset();break}}}}n={}}a=e.shouldUnregister?A.keepDefaultValues?It(i):{}:It(H),f.array.next({values:{...H}}),f.values.next({values:{...H}})}s={mount:A.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!c.isValid||!!A.keepIsValid||!!A.keepDirtyValues,o.watch=!!e.shouldUnregister,f.state.next({submitCount:A.keepSubmitCount?r.submitCount:0,isDirty:K?!1:A.keepDirty?r.isDirty:!!(A.keepDefaultValues&&!Fn(P,i)),isSubmitted:A.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:K?{}:A.keepDirtyValues?A.keepDefaultValues&&a?fs(i,a):r.dirtyFields:A.keepDefaultValues&&P?fs(i,P):A.keepDirty?r.dirtyFields:{},touchedFields:A.keepTouched?r.touchedFields:{},errors:A.keepErrors?r.errors:{},isSubmitSuccessful:A.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},be=(P,A)=>Dt(sn(P)?P(a):P,A);return{control:{register:lt,unregister:Se,getFieldState:te,handleSubmit:it,setError:_e,_executeSchema:g,_getWatch:N,_getDirty:L,_updateValid:b,_removeUnmounted:T,_updateFieldArray:d,_updateDisabledField:Le,_getFieldArray:I,_reset:Dt,_resetDefaultValues:()=>sn(t.defaultValues)&&t.defaultValues().then(P=>{be(P,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:P=>{r={...r,...P}},_disableForm:wt,_subjects:f,_proxyFormState:c,_setErrors:m,get _fields(){return n},get _formValues(){return a},get _state(){return o},set _state(P){o=P},get _defaultValues(){return i},get _names(){return s},set _names(P){s=P},get _formState(){return r},set _formState(P){r=P},get _options(){return t},set _options(P){t={...t,...P}}},trigger:J,register:lt,handleSubmit:it,watch:nt,setValue:ie,getValues:ne,reset:be,resetField:qt,clearErrors:le,unregister:Se,setError:_e,setFocus:(P,A={})=>{const D=G(n,P),B=D&&D._f;if(B){const K=B.refs?B.refs[0]:B.ref;K.focus&&(K.focus(),A.shouldSelect&&K.select())}},getFieldState:te}}function TU(e={}){const t=me.useRef(),r=me.useRef(),[n,i]=me.useState({isDirty:!1,isValidating:!1,isLoading:sn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:sn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...AU(e),formState:n});const a=t.current.control;return a._options=e,$v({subject:a._subjects.state,next:o=>{dS(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&&!Fn(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]),t.current.formState=fS(n,a),t.current}var SS=v.createContext(void 0),Ud=function(){return Ud=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=v.useState(!1),u=l[0],c=l[1],f=!e||!s||a,h=mO(function(w){var _=w.currentLocation,x=w.nextLocation;if(f)return!1;var b=t||_.pathname,y=x.pathname.startsWith(b),d=x.pathname.startsWith("".concat(b,"/show")),p=y&&!d;return!p});v.useEffect(function(){if(h.state==="blocked"){if(f){h.proceed();return}c(!0)}},[h.state]),v.useEffect(function(){if(u){var w=window.confirm(n("ra.message.unsaved_changes"));w?h.proceed&&h.proceed():h.reset&&h.reset()}c(!1)},[u,n]),v.useEffect(function(){var w=function(_){_.preventDefault(),_.returnValue=!0};if(!f)return window.addEventListener("beforeunload",w),function(){window.removeEventListener("beforeunload",w)}},[f])},UU=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,i=e.formControl;return NU(r,n,i),null};function zU(e,t){var r=DM({},VU(e,t),t);return r}function VU(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var BU=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,"")},WU=function(e,t){t===void 0&&(t=!0);var r=kv(e?{control:e}:void 0),n=r.submitCount,i=r.errors,a=v.useRef(n),o=Tr();v.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])},HU=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},Vd=function(){return Vd=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,}))$/,oi=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function JU(e){return e?e.hasOwnProperty("message"):!1}var ui=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},si=function(e){return qw(e,function(){for(var t=[],r=0;re?ui(t,{max:e},r,n):void 0}});si(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!oi(r)&&re?ui(t,{max:e},r,n):void 0}});si(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!oi(t)&&isNaN(Number(t))?ui(e,void 0,t,r):void 0}});var tz=qw(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!oi(r)&&typeof r=="string"&&!e.test(r)?ui(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});si(function(e){return e===void 0&&(e="ra.validation.email"),tz(YU,e)});var rz=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};si(function(e,t){return t===void 0&&(t=rz),function(r,n){return!oi(r)&&e.indexOf(r)===-1?ui(t,{list:e},r,n):void 0}});var nz=v.createContext(null),iz=function(){var e=v.useContext(SS);return e},az=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,i=t.defaultValue,a=t.source,o=qS(a),s=co(t),l=ac(),u=l.getValues,c=l.resetField,f=l.formState,h=l.reset,w=dr(s,o),_=dr(u(),o),x=f.dirtyFields,b=Object.keys(x).includes(o);v.useEffect(function(){if(!(i==null||_!=null||w!=null||b)){var y=o.split(".").some(function(m){return oz.test(m)});if(y){var d=o.split(".").slice(0,-1).join("."),p=dr(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),h({},{keepValues:!0});return}c(o,{defaultValue:i})}})},oz=/^\d+$/,uz=function(){var e=v.useContext(nz);return e},sz=function(e){return e&&e.isRequired?!0:Array.isArray(e)?e.some(function(t){return t.isRequired}):!1},Rn=function(){return Rn=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||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}}),df}var A4=function(){function e(t,r){for(var n=0;n0&&(f=f.concat(Array(h).join(".").split("."))),n&&this._options.fillGaps&&(f=f.map(a)),i.push(f.join(this._options.rowDelimiter)),n=f}}catch(w){s=!0,l=w}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(I){return y.push(I.map(function(Q){return Q??""}))},p=function(){return new Array(i._headers.length).fill(null)},m={},S=p(),E=!0,C=!1,g=void 0;try{for(var O=b[Symbol.iterator](),R;!(E=(R=O.next()).done);E=!0){var T=R.value,L=s(T.item);if(S[L]!=null&&(d(S),S=p()),m[L]=m[L]||0,i._options.fillTopRow&&m[L]0&&d(S),a=a.concat(i._checkRows(y))};var l=!0,u=!1,c=void 0;try{for(var f=r[Symbol.iterator](),h;!(l=(h=f.next()).done);l=!0){var w=h.value,_=i._handler.check(w,i._options.mainPathItem,w,r);o(_)}}catch(x){u=!0,c=x}finally{try{!l&&f.return&&f.return()}finally{if(u)throw c}}return!n&&i._options.includeHeaders&&a.unshift(this.headers),um(a,i._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,i=[],a=[],o=void 0,s=[[],[]];o=function(f){var h=f.value||f.value===0?f.value.toString():n._options.undefinedString;if(h=n._escape(h),n._options.verticalOutput){var w=[f.item,h];i.push(w.join(n._options.rowDelimiter))}else s[0].push(f.item),s[1].push(h)};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))),um(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}(),D4=M4,I4=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},j4=I4,lm=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},cm=D4,fm=j4,N4=Z_,U4=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:N4,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":lm(a))==="object"&&(r=a)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),l=s[0];if((typeof l>"u"?"undefined":lm(l))==="object"){var u=Object.keys(e),c=Object.keys(l),f=c.every(function(_){return u.includes(_)});c.length>0&&f?r=l:t=l}else t=l}else return new fm(new cm(e));var h=Object.assign({},e,r),w=new cm(h);return t?new Promise(function(_,x){w.parse(t,function(b,y){if(n)return n(b,y);if(b)return x(b);if(x)return _(y)})}):new fm};const z4=Tt(U4);var V4=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())},B4=function(e,t,r,n){return z4(e,function(i,a){return V4(a,n)})},W4=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)},[])))},c6=function(e){return function(t,r,n){return e.getMany(n,{ids:W4(t,r)}).then(function(i){var a=i.data;return a.reduce(function(o,s){return o[s.id]=s,o},{})})}},Zi=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n"u"||_(function(d){if(!Array.isArray(d))return Zi([],d,!0);var p=d.indexOf(y);return p>-1?Zi(Zi([],d.slice(0,p),!0),d.slice(p+1),!0):Zi(Zi([],d,!0),[y],!1)})},clearSelection:function(){x()}}},[_,x]);return[w,b]},hf=[];function On(e){var t=v.useState(e),r=t[0],n=t[1],i=v.useRef(!1);v.useEffect(function(){return i.current=!0,function(){i.current=!1}},[]);var a=v.useCallback(function(o){if(i.current)return n(o)},[i,n]);return[r,a]}function f6(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=On(!1),n=r[0],i=r[1];return v.useEffect(function(){i(!1);var a=setTimeout(function(){i(!0)},e);return function(){clearTimeout(a)}},[t,e,i]),n}function H4(){var e=v.useRef(!0);return v.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var un=function(){return un=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&!C&&m(R)},[w.search]);var T=v.useCallback(function(ne){E.current&&(S.current?S.current=Dg(S.current,ne):(S.current=Dg(R,ne),setTimeout(function(){S.current&&(i?y(S.current):_({search:"?".concat(ec.stringify(un(un({},S.current),{filter:JSON.stringify(S.current.filter),displayedFilters:JSON.stringify(S.current.displayedFilters)})))},{state:{_scrollToTop:ne.type===Ld}}),S.current=void 0)},0)))},dm(dm([],g,!0),[_],!1)),L=v.useCallback(function(ne){return T({type:M_,payload:ne})},[T]),N=v.useCallback(function(ne){return T({type:Ld,payload:ne})},[T]),I=v.useCallback(function(ne){return T({type:D_,payload:ne})},[T]),Q=R.filter||pm,q=R.displayedFilters||pm,ie=T_(function(ne,te){T({type:Md,payload:{filter:Ka(ne),displayedFilters:te}})},r),U=v.useCallback(function(ne,te,le){return te===void 0&&(te=void 0),le===void 0&&(le=!1),le?ie(ne,te):T({type:Md,payload:{filter:Ka(ne),displayedFilters:te}})},[T]),V=v.useCallback(function(ne){T({type:j_,payload:ne})},[T]),J=v.useCallback(function(ne,te){T({type:I_,payload:{filterName:ne,defaultValue:te}})},[T]);return[un(un({filterValues:Q,requestSignature:g},R),{displayedFilters:q}),{changeParams:T,setPage:N,setPerPage:I,setSort:L,setFilters:U,hideFilter:V,showFilter:J}]},hm=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},Q4=function(e){var t=e.search,r=ec.parse(t);return hm(r,"filter"),hm(r,"displayedFilters"),r},q4=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},G4=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:q4(r)?un({},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),un(un({},o),{page:vm(o.page,1),perPage:vm(o.perPage,10)})},vm=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},pm={},Y4={field:"id",order:Ti},ym={},nc=v.createContext(null);nc.displayName="ListContext";var tS=v.createContext(void 0),J4=function(e){return v.useMemo(function(){return tc(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};tS.displayName="ListFilterContext";var rS=v.createContext(void 0),X4=function(e){return v.useMemo(function(){return tc(e,["sort","setSort","resource"])},[e.sort,e.setSort])};rS.displayName="ListSortContext";var Ov=v.createContext(void 0);Ov.displayName="ListPaginationContext";var Z4=function(e){return v.useMemo(function(){return tc(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])},eU=function(e){var t=e.value,r=e.children;return v.createElement(nc.Provider,{value:t},v.createElement(tS.Provider,{value:J4(t)},v.createElement(rS.Provider,{value:X4(t)},v.createElement(Ov.Provider,{value:Z4(t)},r))))},Li=function(){return Li=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(L==null||(L==null?void 0:L.length)===0)){C.setPage(1);return}if(I!=null){var le=Math.ceil(I/E.perPage)||1;!ie&&E.page>le&&C.setPage(le)}},[ie,E.page,E.perPage,L,C,I]);var J=v.useMemo(function(){return{field:E.sort,order:E.order}},[E.sort,E.order]),ne=mc(),te=p("ra.page.list",{name:ne(b,2)});return{sort:J,data:L,defaultTitle:te,displayedFilters:E.displayedFilters,error:Q,exporter:o,filter:s,filterValues:E.filterValues,hideFilter:C.hideFilter,isFetching:ie,isLoading:q,isPending:U,onSelect:R.select,onToggleItem:R.toggle,onUnselectItems:R.clearSelection,page:E.page,perPage:E.perPage,refetch:V,resource:b,selectedIds:O,setFilters:C.setFilters,setPage:C.setPage,setPerPage:C.setPerPage,setSort:C.setSort,showFilter:C.showFilter,total:I,hasNextPage:N?N.hasNextPage:I!=null?E.page*E.perPage1}},nU={field:"id",order:Ti},iU=["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"],d6=function(e){return Object.keys(e).filter(function(t){return!iU.includes(t)}).reduce(function(t,r){var n;return Li(Li({},t),(n={},n[r]=e[r],n))},{})},aU=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?[]:cs(cs([],l.slice(0,u),!0),l.slice(u+1),!0):r?[t]:cs(cs([],l,!0),[t],!1)})},[a,t,r]);return[o,s]},p6=function(e,t){var r=li("".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=v.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]},ya=function(){return ya=Object.assign||function(e){for(var t,r=1,n=arguments.length;rdr(K,te.field)?te.order==="ASC"?1:-1:dr(B,te.field)1,hideFilter:Gt,isFetching:S,isLoading:g,isPending:T,onSelect:Le.select,onToggleItem:Le.toggle,onUnselectItems:Le.clearSelection,page:ie,perPage:V,resource:"",refetch:oU,selectedIds:Se,setFilters:wn,setPage:U,setPerPage:J,setSort:_e,showFilter:ci,total:I==null?void 0:I.total}},uU={},g6=function(){var e=v.useContext(nc);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},sU=yv,lU=to,cU=P_,fU=uo,nS=Object.prototype,dU=nS.hasOwnProperty,hU=sU(function(e,t){e=Object(e);var r=-1,n=t.length,i=n>2?t[2]:void 0;for(i&&cU(t[0],t[1],i)&&(n=1);++re.type==="checkbox",ga=e=>e instanceof Date,Ft=e=>e==null;const oS=e=>typeof e=="object";var st=e=>!Ft(e)&&!Array.isArray(e)&&oS(e)&&!ga(e),uS=e=>st(e)&&e.target?Tu(e.target)?e.target.checked:e.target.value:e,yU=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,sS=(e,t)=>e.has(yU(t)),gU=e=>{const t=e.constructor&&e.constructor.prototype;return st(t)&&t.hasOwnProperty("isPrototypeOf")},Pv=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function It(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(!(Pv&&(e instanceof Blob||e instanceof FileList))&&(r||st(e)))if(t=r?[]:{},!r&&!gU(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=It(e[n]));else return e;return t}var ic=e=>Array.isArray(e)?e.filter(Boolean):[],Ze=e=>e===void 0,G=(e,t,r)=>{if(!t||!st(e))return r;const n=ic(t.split(/[,[\].]+?/)).reduce((i,a)=>Ft(i)?i:i[a],e);return Ze(n)||n===e?Ze(e[t])?r:e[t]:n},lr=e=>typeof e=="boolean",Rv=e=>/^\w*$/.test(e),lS=e=>ic(e.replace(/["|']|\]/g,"").split(/\.|\[/)),De=(e,t,r)=>{let n=-1;const i=Rv(t)?[t]:lS(t),a=i.length,o=a-1;for(;++nme.useContext(cS),mU=e=>{const{children:t,...r}=e;return me.createElement(cS.Provider,{value:r},t)};var fS=(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]!==Pr.all&&(t._proxyFormState[o]=!n||Pr.all),r&&(r[o]=!0),e[o]}});return i},Ut=e=>st(e)&&!Object.keys(e).length,dS=(e,t,r,n)=>{r(e);const{name:i,...a}=e;return Ut(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!n||Pr.all))},qo=e=>Array.isArray(e)?e:[e],hS=(e,t,r)=>!e||!t||e===t||qo(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function $v(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 kv(e){const t=ac(),{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,$v({disabled:n,next:f=>l.current&&hS(c.current,f.name,a)&&dS(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]),fS(o,r,u.current,!1)}var Wr=e=>typeof e=="string",vS=(e,t,r,n,i)=>Wr(e)?(n&&t.watch.add(e),G(r,e,i)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),G(r,a))):(n&&(t.watchAll=!0),r);function wU(e){const t=ac(),{control:r=t.control,name:n,defaultValue:i,disabled:a,exact:o}=e||{},s=me.useRef(n);s.current=n,$v({disabled:a,subject:r._subjects.values,next:c=>{hS(s.current,c.name,o)&&u(It(vS(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 _U(e){const t=ac(),{name:r,disabled:n,control:i=t.control,shouldUnregister:a}=e,o=sS(i._names.array,r),s=wU({control:i,name:r,defaultValue:G(i._formValues,r,G(i._defaultValues,r,e.defaultValue)),exact:!0}),l=kv({control:i,name:r,exact:!0}),u=me.useRef(i.register(r,{...e.rules,value:s,...lr(e.disabled)?{disabled:e.disabled}:{}}));return me.useEffect(()=>{const c=i._options.shouldUnregister||a,f=(h,w)=>{const _=G(i._fields,h);_&&_._f&&(_._f.mount=w)};if(f(r,!0),c){const h=It(G(i._options.defaultValues,r));De(i._defaultValues,r,h),Ze(G(i._formValues,r))&&De(i._formValues,r,h)}return()=>{(o?c&&!i._state.action:c)?i.unregister(r):f(r,!1)}},[r,i,o,a]),me.useEffect(()=>{G(i._fields,r)&&i._updateDisabledField({disabled:n,fields:i._fields,name:r,value:G(i._fields,r)._f.value})},[n,r,i]),{field:{name:r,value:s,...lr(n)||l.disabled?{disabled:l.disabled||n}:{},onChange:me.useCallback(c=>u.current.onChange({target:{value:uS(c),name:r},type:fl.CHANGE}),[r]),onBlur:me.useCallback(()=>u.current.onBlur({target:{value:G(i._formValues,r),name:r},type:fl.BLUR}),[r,i]),ref:me.useCallback(c=>{const f=G(i._fields,r);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:h=>c.setCustomValidity(h),reportValidity:()=>c.reportValidity()})},[i._fields,r])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!G(l.errors,r)},isDirty:{enumerable:!0,get:()=>!!G(l.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!G(l.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!G(l.validatingFields,r)},error:{enumerable:!0,get:()=>G(l.errors,r)}})}}var SU=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},mm=e=>({isOnSubmit:!e||e===Pr.onSubmit,isOnBlur:e===Pr.onBlur,isOnChange:e===Pr.onChange,isOnAll:e===Pr.all,isOnTouch:e===Pr.onTouched}),wm=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Go=(e,t,r,n)=>{for(const i of r||Object.keys(e)){const a=G(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(Go(s,t))break}else if(st(s)&&Go(s,t))break}}};var EU=(e,t,r)=>{const n=qo(G(e,r));return De(n,"root",t[r]),De(e,r,n),e},Fv=e=>e.type==="file",sn=e=>typeof e=="function",dl=e=>{if(!Pv)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Rs=e=>Wr(e),Av=e=>e.type==="radio",hl=e=>e instanceof RegExp;const _m={value:!1,isValid:!1},Sm={value:!0,isValid:!0};var pS=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&&!Ze(e[0].attributes.value)?Ze(e[0].value)||e[0].value===""?Sm:{value:e[0].value,isValid:!0}:Sm:_m}return _m};const Em={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,Em):Em;function bm(e,t,r="validate"){if(Rs(e)||Array.isArray(e)&&e.every(Rs)||lr(e)&&!e)return{type:r,message:Rs(e)?e:"",ref:t}}var ea=e=>st(e)&&!hl(e)?e:{value:e,message:""},xm=async(e,t,r,n,i)=>{const{ref:a,refs:o,required:s,maxLength:l,minLength:u,min:c,max:f,pattern:h,validate:w,name:_,valueAsNumber:x,mount:b,disabled:y}=e._f,d=G(t,_);if(!b||y)return{};const p=o?o[0]:a,m=L=>{n&&p.reportValidity&&(p.setCustomValidity(lr(L)?"":L||""),p.reportValidity())},S={},E=Av(a),C=Tu(a),g=E||C,O=(x||Fv(a))&&Ze(a.value)&&Ze(d)||dl(a)&&a.value===""||d===""||Array.isArray(d)&&!d.length,R=SU.bind(null,_,r,S),T=(L,N,I,Q=Zr.maxLength,q=Zr.minLength)=>{const ie=L?N:I;S[_]={type:L?Q:q,message:ie,ref:a,...R(L?Q:q,ie)}};if(i?!Array.isArray(d)||!d.length:s&&(!g&&(O||Ft(d))||lr(d)&&!d||C&&!pS(o).isValid||E&&!yS(o).isValid)){const{value:L,message:N}=Rs(s)?{value:!!s,message:s}:ea(s);if(L&&(S[_]={type:Zr.required,message:N,ref:p,...R(Zr.required,N)},!r))return m(N),S}if(!O&&(!Ft(c)||!Ft(f))){let L,N;const I=ea(f),Q=ea(c);if(!Ft(d)&&!isNaN(d)){const q=a.valueAsNumber||d&&+d;Ft(I.value)||(L=q>I.value),Ft(Q.value)||(N=qnew Date(new Date().toDateString()+" "+J),U=a.type=="time",V=a.type=="week";Wr(I.value)&&d&&(L=U?ie(d)>ie(I.value):V?d>I.value:q>new Date(I.value)),Wr(Q.value)&&d&&(N=U?ie(d)+L.value,Q=!Ft(N.value)&&d.length<+N.value;if((I||Q)&&(T(I,L.message,N.message),!r))return m(S[_].message),S}if(h&&!O&&Wr(d)){const{value:L,message:N}=ea(h);if(hl(L)&&!d.match(L)&&(S[_]={type:Zr.pattern,message:N,ref:a,...R(Zr.pattern,N)},!r))return m(N),S}if(w){if(sn(w)){const L=await w(d,t),N=bm(L,p);if(N&&(S[_]={...N,...R(Zr.validate,N.message)},!r))return m(N.message),S}else if(st(w)){let L={};for(const N in w){if(!Ut(L)&&!r)break;const I=bm(await w[N](d,t),p,N);I&&(L={...I,...R(N,I.message)},m(I.message),r&&(S[_]=L))}if(!Ut(L)&&(S[_]={ref:p,...L},!r))return S}}return m(!0),S};function bU(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=[]}}},vl=e=>Ft(e)||!oS(e);function Fn(e,t){if(vl(e)||vl(t))return e===t;if(ga(e)&&ga(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(ga(a)&&ga(o)||st(a)&&st(o)||Array.isArray(a)&&Array.isArray(o)?!Fn(a,o):a!==o)return!1}}return!0}var gS=e=>e.type==="select-multiple",CU=e=>Av(e)||Tu(e),pf=e=>dl(e)&&e.isConnected,mS=e=>{for(const t in e)if(sn(e[t]))return!0;return!1};function pl(e,t={}){const r=Array.isArray(e);if(st(e)||r)for(const n in e)Array.isArray(e[n])||st(e[n])&&!mS(e[n])?(t[n]=Array.isArray(e[n])?[]:{},pl(e[n],t[n])):Ft(e[n])||(t[n]=!0);return t}function wS(e,t,r){const n=Array.isArray(e);if(st(e)||n)for(const i in e)Array.isArray(e[i])||st(e[i])&&!mS(e[i])?Ze(t)||vl(r[i])?r[i]=Array.isArray(e[i])?pl(e[i],[]):{...pl(e[i])}:wS(e[i],Ft(t)?{}:t[i],r[i]):r[i]=!Fn(e[i],t[i]);return r}var fs=(e,t)=>wS(e,t,pl(t)),_S=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Ze(e)?e:t?e===""?NaN:e&&+e:r&&Wr(e)?new Date(e):n?n(e):e;function yf(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return Fv(t)?t.files:Av(t)?yS(e.refs).value:gS(t)?[...t.selectedOptions].map(({value:r})=>r):Tu(t)?pS(e.refs).value:_S(Ze(t.value)?e.ref.value:t.value,e)}var OU=(e,t,r,n)=>{const i={};for(const a of e){const o=G(t,a);o&&De(i,a,o._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},Ro=e=>Ze(e)?e:hl(e)?e.source:st(e)?hl(e.value)?e.value.source:e.value:e;const Cm="AsyncFunction";var PU=e=>(!e||!e.validate)&&!!(sn(e.validate)&&e.validate.constructor.name===Cm||st(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Cm)),RU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Om(e,t,r){const n=G(e,r);if(n||Rv(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const a=i.join("."),o=G(t,a),s=G(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 $U=(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,kU=(e,t)=>!ic(G(e,t)).length&&ct(e,t);const FU={mode:Pr.onSubmit,reValidateMode:Pr.onChange,shouldFocusError:!0};function AU(e={}){let t={...FU,...e},r={submitCount:0,isDirty:!1,isLoading:sn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},i=st(t.defaultValues)||st(t.values)?It(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:It(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:vf(),array:vf(),state:vf()},h=mm(t.mode),w=mm(t.reValidateMode),_=t.criteriaMode===Pr.all,x=P=>A=>{clearTimeout(u),u=setTimeout(P,A)},b=async P=>{if(c.isValid||P){const A=t.resolver?Ut((await g()).errors):await R(n,!0);A!==r.isValid&&f.state.next({isValid:A})}},y=(P,A)=>{(c.isValidating||c.validatingFields)&&((P||Array.from(s.mount)).forEach(D=>{D&&(A?De(r.validatingFields,D,A):ct(r.validatingFields,D))}),f.state.next({validatingFields:r.validatingFields,isValidating:!Ut(r.validatingFields)}))},d=(P,A=[],D,B,K=!0,H=!0)=>{if(B&&D){if(o.action=!0,H&&Array.isArray(G(n,P))){const re=D(G(n,P),B.argA,B.argB);K&&De(n,P,re)}if(H&&Array.isArray(G(r.errors,P))){const re=D(G(r.errors,P),B.argA,B.argB);K&&De(r.errors,P,re),kU(r.errors,P)}if(c.touchedFields&&H&&Array.isArray(G(r.touchedFields,P))){const re=D(G(r.touchedFields,P),B.argA,B.argB);K&&De(r.touchedFields,P,re)}c.dirtyFields&&(r.dirtyFields=fs(i,a)),f.state.next({name:P,isDirty:L(P,A),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else De(a,P,A)},p=(P,A)=>{De(r.errors,P,A),f.state.next({errors:r.errors})},m=P=>{r.errors=P,f.state.next({errors:r.errors,isValid:!1})},S=(P,A,D,B)=>{const K=G(n,P);if(K){const H=G(a,P,Ze(D)?G(i,P):D);Ze(H)||B&&B.defaultChecked||A?De(a,P,A?H:yf(K._f)):Q(P,H),o.mount&&b()}},E=(P,A,D,B,K)=>{let H=!1,re=!1;const pe={name:P},Ie=!!(G(n,P)&&G(n,P)._f&&G(n,P)._f.disabled);if(!D||B){c.isDirty&&(re=r.isDirty,r.isDirty=pe.isDirty=L(),H=re!==pe.isDirty);const Pe=Ie||Fn(G(i,P),A);re=!!(!Ie&&G(r.dirtyFields,P)),Pe||Ie?ct(r.dirtyFields,P):De(r.dirtyFields,P,!0),pe.dirtyFields=r.dirtyFields,H=H||c.dirtyFields&&re!==!Pe}if(D){const Pe=G(r.touchedFields,P);Pe||(De(r.touchedFields,P,D),pe.touchedFields=r.touchedFields,H=H||c.touchedFields&&Pe!==D)}return H&&K&&f.state.next(pe),H?pe:{}},C=(P,A,D,B)=>{const K=G(r.errors,P),H=c.isValid&&lr(A)&&r.isValid!==A;if(e.delayError&&D?(l=x(()=>p(P,D)),l(e.delayError)):(clearTimeout(u),l=null,D?De(r.errors,P,D):ct(r.errors,P)),(D?!Fn(K,D):K)||!Ut(B)||H){const re={...B,...H&&lr(A)?{isValid:A}:{},errors:r.errors,name:P};r={...r,...re},f.state.next(re)}},g=async P=>{y(P,!0);const A=await t.resolver(a,t.context,OU(P||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return y(P),A},O=async P=>{const{errors:A}=await g(P);if(P)for(const D of P){const B=G(A,D);B?De(r.errors,D,B):ct(r.errors,D)}else r.errors=A;return A},R=async(P,A,D={valid:!0})=>{for(const B in P){const K=P[B];if(K){const{_f:H,...re}=K;if(H){const pe=s.array.has(H.name),Ie=K._f&&PU(K._f);Ie&&c.validatingFields&&y([B],!0);const Pe=await xm(K,a,_,t.shouldUseNativeValidation&&!A,pe);if(Ie&&c.validatingFields&&y([B]),Pe[H.name]&&(D.valid=!1,A))break;!A&&(G(Pe,H.name)?pe?EU(r.errors,Pe,H.name):De(r.errors,H.name,Pe[H.name]):ct(r.errors,H.name))}!Ut(re)&&await R(re,A,D)}}return D.valid},T=()=>{for(const P of s.unMount){const A=G(n,P);A&&(A._f.refs?A._f.refs.every(D=>!pf(D)):!pf(A._f.ref))&&Se(P)}s.unMount=new Set},L=(P,A)=>(P&&A&&De(a,P,A),!Fn(ne(),i)),N=(P,A,D)=>vS(P,s,{...o.mount?a:Ze(A)?i:Wr(P)?{[P]:A}:A},D,A),I=P=>ic(G(o.mount?a:i,P,e.shouldUnregister?G(i,P,[]):[])),Q=(P,A,D={})=>{const B=G(n,P);let K=A;if(B){const H=B._f;H&&(!H.disabled&&De(a,P,_S(A,H)),K=dl(H.ref)&&Ft(A)?"":A,gS(H.ref)?[...H.ref.options].forEach(re=>re.selected=K.includes(re.value)):H.refs?Tu(H.ref)?H.refs.length>1?H.refs.forEach(re=>(!re.defaultChecked||!re.disabled)&&(re.checked=Array.isArray(K)?!!K.find(pe=>pe===re.value):K===re.value)):H.refs[0]&&(H.refs[0].checked=!!K):H.refs.forEach(re=>re.checked=re.value===K):Fv(H.ref)?H.ref.value="":(H.ref.value=K,H.ref.type||f.values.next({name:P,values:{...a}})))}(D.shouldDirty||D.shouldTouch)&&E(P,K,D.shouldTouch,D.shouldDirty,!0),D.shouldValidate&&J(P)},q=(P,A,D)=>{for(const B in A){const K=A[B],H=`${P}.${B}`,re=G(n,H);(s.array.has(P)||!vl(K)||re&&!re._f)&&!ga(K)?q(H,K,D):Q(H,K,D)}},ie=(P,A,D={})=>{const B=G(n,P),K=s.array.has(P),H=It(A);De(a,P,H),K?(f.array.next({name:P,values:{...a}}),(c.isDirty||c.dirtyFields)&&D.shouldDirty&&f.state.next({name:P,dirtyFields:fs(i,a),isDirty:L(P,H)})):B&&!B._f&&!Ft(H)?q(P,H,D):Q(P,H,D),wm(P,s)&&f.state.next({...r}),f.values.next({name:o.mount?P:void 0,values:{...a}})},U=async P=>{o.mount=!0;const A=P.target;let D=A.name,B=!0;const K=G(n,D),H=()=>A.type?yf(K._f):uS(P),re=pe=>{B=Number.isNaN(pe)||Fn(pe,G(a,D,pe))};if(K){let pe,Ie;const Pe=H(),Lr=P.type===fl.BLUR||P.type===fl.FOCUS_OUT,vo=!RU(K._f)&&!t.resolver&&!G(r.errors,D)&&!K._f.deps||$U(Lr,G(r.touchedFields,D),r.isSubmitted,w,h),or=wm(D,s,Lr);De(a,D,Pe),Lr?(K._f.onBlur&&K._f.onBlur(P),l&&l(0)):K._f.onChange&&K._f.onChange(P);const Yt=E(D,Pe,Lr,!1),Du=!Ut(Yt)||or;if(!Lr&&f.values.next({name:D,type:P.type,values:{...a}}),vo)return c.isValid&&(e.mode==="onBlur"?Lr&&b():b()),Du&&f.state.next({name:D,...or?{}:Yt});if(!Lr&&or&&f.state.next({...r}),t.resolver){const{errors:fi}=await g([D]);if(re(Pe),B){const wc=Om(r.errors,n,D),wr=Om(fi,n,wc.name||D);pe=wr.error,D=wr.name,Ie=Ut(fi)}}else y([D],!0),pe=(await xm(K,a,_,t.shouldUseNativeValidation))[D],y([D]),re(Pe),B&&(pe?Ie=!1:c.isValid&&(Ie=await R(n,!0)));B&&(K._f.deps&&J(K._f.deps),C(D,Ie,pe,Yt))}},V=(P,A)=>{if(G(r.errors,A)&&P.focus)return P.focus(),1},J=async(P,A={})=>{let D,B;const K=qo(P);if(t.resolver){const H=await O(Ze(P)?P:K);D=Ut(H),B=P?!K.some(re=>G(H,re)):D}else P?(B=(await Promise.all(K.map(async H=>{const re=G(n,H);return await R(re&&re._f?{[H]:re}:re)}))).every(Boolean),!(!B&&!r.isValid)&&b()):B=D=await R(n);return f.state.next({...!Wr(P)||c.isValid&&D!==r.isValid?{}:{name:P},...t.resolver||!P?{isValid:D}:{},errors:r.errors}),A.shouldFocus&&!B&&Go(n,V,P?K:s.mount),B},ne=P=>{const A={...o.mount?a:i};return Ze(P)?A:Wr(P)?G(A,P):P.map(D=>G(A,D))},te=(P,A)=>({invalid:!!G((A||r).errors,P),isDirty:!!G((A||r).dirtyFields,P),error:G((A||r).errors,P),isValidating:!!G(r.validatingFields,P),isTouched:!!G((A||r).touchedFields,P)}),le=P=>{P&&qo(P).forEach(A=>ct(r.errors,A)),f.state.next({errors:P?r.errors:{}})},_e=(P,A,D)=>{const B=(G(n,P,{_f:{}})._f||{}).ref,K=G(r.errors,P)||{},{ref:H,message:re,type:pe,...Ie}=K;De(r.errors,P,{...Ie,...A,ref:B}),f.state.next({name:P,errors:r.errors,isValid:!1}),D&&D.shouldFocus&&B&&B.focus&&B.focus()},nt=(P,A)=>sn(P)?f.values.subscribe({next:D=>P(N(void 0,A),D)}):N(P,A,!0),Se=(P,A={})=>{for(const D of P?qo(P):s.mount)s.mount.delete(D),s.array.delete(D),A.keepValue||(ct(n,D),ct(a,D)),!A.keepError&&ct(r.errors,D),!A.keepDirty&&ct(r.dirtyFields,D),!A.keepTouched&&ct(r.touchedFields,D),!A.keepIsValidating&&ct(r.validatingFields,D),!t.shouldUnregister&&!A.keepDefaultValue&&ct(i,D);f.values.next({values:{...a}}),f.state.next({...r,...A.keepDirty?{isDirty:L()}:{}}),!A.keepIsValid&&b()},Le=({disabled:P,name:A,field:D,fields:B,value:K})=>{if(lr(P)&&o.mount||P){const H=P?void 0:Ze(K)?yf(D?D._f:G(B,A)._f):K;De(a,A,H),E(A,H,!1,!1,!0)}},lt=(P,A={})=>{let D=G(n,P);const B=lr(A.disabled)||lr(e.disabled);return De(n,P,{...D||{},_f:{...D&&D._f?D._f:{ref:{name:P}},name:P,mount:!0,...A}}),s.mount.add(P),D?Le({field:D,disabled:lr(A.disabled)?A.disabled:e.disabled,name:P,value:A.value}):S(P,!0,A.value),{...B?{disabled:A.disabled||e.disabled}:{},...t.progressive?{required:!!A.required,min:Ro(A.min),max:Ro(A.max),minLength:Ro(A.minLength),maxLength:Ro(A.maxLength),pattern:Ro(A.pattern)}:{},name:P,onChange:U,onBlur:U,ref:K=>{if(K){lt(P,A),D=G(n,P);const H=Ze(K.value)&&K.querySelectorAll&&K.querySelectorAll("input,select,textarea")[0]||K,re=CU(H),pe=D._f.refs||[];if(re?pe.find(Ie=>Ie===H):H===D._f.ref)return;De(n,P,{_f:{...D._f,...re?{refs:[...pe.filter(pf),H,...Array.isArray(G(i,P))?[{}]:[]],ref:{type:H.type,name:P}}:{ref:H}}}),S(P,!1,void 0,H)}else D=G(n,P,{}),D._f&&(D._f.mount=!1),(t.shouldUnregister||A.shouldUnregister)&&!(sS(s.array,P)&&o.action)&&s.unMount.add(P)}}},Ee=()=>t.shouldFocusError&&Go(n,V,s.mount),wt=P=>{lr(P)&&(f.state.next({disabled:P}),Go(n,(A,D)=>{const B=G(n,D);B&&(A.disabled=B._f.disabled||P,Array.isArray(B._f.refs)&&B._f.refs.forEach(K=>{K.disabled=B._f.disabled||P}))},0,!1))},it=(P,A)=>async D=>{let B;D&&(D.preventDefault&&D.preventDefault(),D.persist&&D.persist());let K=It(a);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:H,values:re}=await g();r.errors=H,K=re}else await R(n);if(ct(r.errors,"root"),Ut(r.errors)){f.state.next({errors:{}});try{await P(K,D)}catch(H){B=H}}else A&&await A({...r.errors},D),Ee(),setTimeout(Ee);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ut(r.errors)&&!B,submitCount:r.submitCount+1,errors:r.errors}),B)throw B},qt=(P,A={})=>{G(n,P)&&(Ze(A.defaultValue)?ie(P,It(G(i,P))):(ie(P,A.defaultValue),De(i,P,It(A.defaultValue))),A.keepTouched||ct(r.touchedFields,P),A.keepDirty||(ct(r.dirtyFields,P),r.isDirty=A.defaultValue?L(P,It(G(i,P))):L()),A.keepError||(ct(r.errors,P),c.isValid&&b()),f.state.next({...r}))},Dt=(P,A={})=>{const D=P?It(P):i,B=It(D),K=Ut(P),H=K?i:B;if(A.keepDefaultValues||(i=D),!A.keepValues){if(A.keepDirtyValues)for(const re of s.mount)G(r.dirtyFields,re)?De(H,re,G(a,re)):ie(re,G(H,re));else{if(Pv&&Ze(P))for(const re of s.mount){const pe=G(n,re);if(pe&&pe._f){const Ie=Array.isArray(pe._f.refs)?pe._f.refs[0]:pe._f.ref;if(dl(Ie)){const Pe=Ie.closest("form");if(Pe){Pe.reset();break}}}}n={}}a=e.shouldUnregister?A.keepDefaultValues?It(i):{}:It(H),f.array.next({values:{...H}}),f.values.next({values:{...H}})}s={mount:A.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!c.isValid||!!A.keepIsValid||!!A.keepDirtyValues,o.watch=!!e.shouldUnregister,f.state.next({submitCount:A.keepSubmitCount?r.submitCount:0,isDirty:K?!1:A.keepDirty?r.isDirty:!!(A.keepDefaultValues&&!Fn(P,i)),isSubmitted:A.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:K?{}:A.keepDirtyValues?A.keepDefaultValues&&a?fs(i,a):r.dirtyFields:A.keepDefaultValues&&P?fs(i,P):A.keepDirty?r.dirtyFields:{},touchedFields:A.keepTouched?r.touchedFields:{},errors:A.keepErrors?r.errors:{},isSubmitSuccessful:A.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},be=(P,A)=>Dt(sn(P)?P(a):P,A);return{control:{register:lt,unregister:Se,getFieldState:te,handleSubmit:it,setError:_e,_executeSchema:g,_getWatch:N,_getDirty:L,_updateValid:b,_removeUnmounted:T,_updateFieldArray:d,_updateDisabledField:Le,_getFieldArray:I,_reset:Dt,_resetDefaultValues:()=>sn(t.defaultValues)&&t.defaultValues().then(P=>{be(P,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:P=>{r={...r,...P}},_disableForm:wt,_subjects:f,_proxyFormState:c,_setErrors:m,get _fields(){return n},get _formValues(){return a},get _state(){return o},set _state(P){o=P},get _defaultValues(){return i},get _names(){return s},set _names(P){s=P},get _formState(){return r},set _formState(P){r=P},get _options(){return t},set _options(P){t={...t,...P}}},trigger:J,register:lt,handleSubmit:it,watch:nt,setValue:ie,getValues:ne,reset:be,resetField:qt,clearErrors:le,unregister:Se,setError:_e,setFocus:(P,A={})=>{const D=G(n,P),B=D&&D._f;if(B){const K=B.refs?B.refs[0]:B.ref;K.focus&&(K.focus(),A.shouldSelect&&K.select())}},getFieldState:te}}function TU(e={}){const t=me.useRef(),r=me.useRef(),[n,i]=me.useState({isDirty:!1,isValidating:!1,isLoading:sn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:sn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...AU(e),formState:n});const a=t.current.control;return a._options=e,$v({subject:a._subjects.state,next:o=>{dS(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&&!Fn(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]),t.current.formState=fS(n,a),t.current}var SS=v.createContext(void 0),Ud=function(){return Ud=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=v.useState(!1),u=l[0],c=l[1],f=!e||!s||a,h=mO(function(w){var _=w.currentLocation,x=w.nextLocation;if(f)return!1;var b=t||_.pathname,y=x.pathname.startsWith(b),d=x.pathname.startsWith("".concat(b,"/show")),p=y&&!d;return!p});v.useEffect(function(){if(h.state==="blocked"){if(f){h.proceed();return}c(!0)}},[h.state]),v.useEffect(function(){if(u){var w=window.confirm(n("ra.message.unsaved_changes"));w?h.proceed&&h.proceed():h.reset&&h.reset()}c(!1)},[u,n]),v.useEffect(function(){var w=function(_){_.preventDefault(),_.returnValue=!0};if(!f)return window.addEventListener("beforeunload",w),function(){window.removeEventListener("beforeunload",w)}},[f])},UU=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,i=e.formControl;return NU(r,n,i),null};function zU(e,t){var r=DM({},VU(e,t),t);return r}function VU(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var BU=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,"")},WU=function(e,t){t===void 0&&(t=!0);var r=kv(e?{control:e}:void 0),n=r.submitCount,i=r.errors,a=v.useRef(n),o=Tr();v.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])},HU=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},Vd=function(){return Vd=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,}))$/,oi=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function JU(e){return e?e.hasOwnProperty("message"):!1}var ui=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},si=function(e){return qw(e,function(){for(var t=[],r=0;re?ui(t,{max:e},r,n):void 0}});si(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!oi(r)&&re?ui(t,{max:e},r,n):void 0}});si(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!oi(t)&&isNaN(Number(t))?ui(e,void 0,t,r):void 0}});var tz=qw(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!oi(r)&&typeof r=="string"&&!e.test(r)?ui(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});si(function(e){return e===void 0&&(e="ra.validation.email"),tz(YU,e)});var rz=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};si(function(e,t){return t===void 0&&(t=rz),function(r,n){return!oi(r)&&e.indexOf(r)===-1?ui(t,{list:e},r,n):void 0}});var nz=v.createContext(null),iz=function(){var e=v.useContext(SS);return e},az=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,i=t.defaultValue,a=t.source,o=qS(a),s=co(t),l=ac(),u=l.getValues,c=l.resetField,f=l.formState,h=l.reset,w=dr(s,o),_=dr(u(),o),x=f.dirtyFields,b=Object.keys(x).includes(o);v.useEffect(function(){if(!(i==null||_!=null||w!=null||b)){var y=o.split(".").some(function(m){return oz.test(m)});if(y){var d=o.split(".").slice(0,-1).join("."),p=dr(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),h({},{keepValues:!0});return}c(o,{defaultValue:i})}})},oz=/^\d+$/,uz=function(){var e=v.useContext(nz);return e},sz=function(e){return e&&e.isRequired?!0:Array.isArray(e)?e.some(function(t){return t.isRequired}):!1},Rn=function(){return Rn=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&&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 CS=function(){return v.useContext(xS)},Hd=function(){return Hd=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||_.customRoutesWithLayout.length>0||_.customRoutesWithoutLayout.length>0?"ready":"empty"),w&&f(w),[2]})})};r||h()},[e,n,r,s,t,o,c]),[a,u]},Az=function(e){var t=v.useState(e),r=t[0],n=t[1],i=v.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]},Tz=function(e,t){var r=CS(),n=r.register,i=r.unregister;v.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])},Lz=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,i=e.customRoutesWithoutLayout;return OS(t)?"loading":r.length>0||n.length>0||i.length>0?"ready":"empty"},OS=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]},Do=function(e){var t=[],r=[],n=[];return typeof e=="function"?{customRoutesWithLayout:[],customRoutesWithoutLayout:[],resources:[]}:(v.Children.forEach(e,function(i){if(v.isValidElement(i)){if(i.type===v.Fragment){var a=Do(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})},PS=v.createContext(!1),Mz=PS.Provider,R6=function(){return v.useContext(PS)},Dz=function(e){Ez();var t=mv(),r=kz(e.children),n=r.customRoutesWithLayout,i=r.customRoutesWithoutLayout,a=r.status,o=r.resources,s=e.layout,l=e.catchAll,u=e.dashboard,c=e.loading,f=e.requireAuth,h=e.ready,w=v.useState(f),_=w[0],x=w[1],b=v.useState(f),y=b[0],d=b[1],p=kV();if(v.useEffect(function(){f&&p(void 0,!1).then(function(){x(!1)}).catch(function(){}).finally(function(){d(!1)})},[p,f]),a==="empty"){if(!h)throw new Error("The admin is empty. Please provide an empty component, or pass Resource or CustomRoutes as children.");return v.createElement(h,null)}return a==="loading"||y?v.createElement(pa,null,i,v.createElement(Vt,{path:"*",element:v.createElement("div",{style:{height:"100vh"}},v.createElement(c,null))})):_?v.createElement(pa,null,i,v.createElement(Vt,{path:"*",element:v.createElement($V,null)})):v.createElement(pa,null,i,v.createElement(Vt,{path:"/*",element:v.createElement(Mz,{value:!!u},v.createElement(s,null,v.createElement(pa,null,n,v.Children.map(o,function(m){return v.createElement(Vt,{key:m.props.name,path:"".concat(m.props.name,"/*"),element:m})}),v.createElement(Vt,{path:"/",element:u?v.createElement(EV,{authParams:Iz,component:u}):o.length>0?v.createElement(_O,{to:t({resource:o[0].props.name,type:"list"})}):null}),v.createElement(Vt,{path:"*",element:v.createElement(l,null)}))))}))},Iz={params:{route:"dashboard"}},RS=v.createContext("React Admin"),jz=RS.Provider,$6=function(){return v.useContext(RS)},Nz=function(e){var t=e.children;return v.createElement(v.Fragment,null,t)},Uz=function(e){var t=e.error,r=e.errorInfo,n=e.resetErrorBoundary;return Sz(n),v.createElement("div",null,v.createElement("h1",null,"Error"),v.createElement("pre",null,t.message,r==null?void 0:r.componentStack))},k6=function(e){var t=v.useState({}),r=t[0],n=t[1],i=e.authCallbackPage,a=i===void 0?!1:i,o=e.catchAll,s=o===void 0?Am:o,l=e.children,u=e.dashboard,c=e.disableTelemetry,f=c===void 0?!1:c,h=e.error,w=h===void 0?Uz:h,_=e.layout,x=_===void 0?Nz:_,b=e.loading,y=b===void 0?Am:b,d=e.loginPage,p=d===void 0?!1:d,m=e.ready,S=m===void 0?iV:m,E=e.requireAuth,C=E===void 0?!1:E,g=e.title,O=g===void 0?"React Admin":g;v.useEffect(function(){if(!(f||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var T=new Image;T.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[f]);var R=function(T,L){return n(L)};return v.createElement(jz,{value:O},v.createElement(Rz,{onError:R,fallbackRender:function(T){var L=T.error,N=T.resetErrorBoundary;return v.createElement("div",{style:{minHeight:"100vh"}},v.createElement(w,{error:L,errorInfo:r,resetErrorBoundary:N}))}},v.createElement(pa,null,p!==!1&&p!==!0?v.createElement(Vt,{path:"/login",element:Fm(p)}):null,a!==!1&&a!==!0?v.createElement(Vt,{path:"/auth-callback",element:Fm(a)}):null,v.createElement(Vt,{path:"/*",element:v.createElement(Dz,{catchAll:s,dashboard:u,layout:x,loading:y,requireAuth:C,ready:S},l)}))))},Fm=function(e){return v.isValidElement(e)?e:v.createElement(e)},Am=function(){return null},$S=v.createContext(void 0),ho=function(e){var t=e.children,r=e.value;return r?v.createElement($S.Provider,{value:r},t):t},F6=function(e){var t=e.value,r=e.children;return t?v.createElement(ho,{value:t},r):r},kS={exports:{}},ke={};/** * @license React * react-is.production.min.js diff --git a/dist/assets/react-admin-E5WH1fyQ.js b/dist/assets/react-admin-Bl-LVqmY.js similarity index 99% rename from dist/assets/react-admin-E5WH1fyQ.js rename to dist/assets/react-admin-Bl-LVqmY.js index e54c54d..25f8248 100644 --- a/dist/assets/react-admin-E5WH1fyQ.js +++ b/dist/assets/react-admin-Bl-LVqmY.js @@ -1,4 +1,4 @@ -import{r as s,R as Bs,j as S,g as Zt,a as X,b as Mo,c as op,u as se,i as Or,d as He,e as vo,m as vh,L as Pr,f as ur,h as oi,k as gh,l as hh,n as yh,o as bh,p as xh,q as ap,s as ip,t as Oh,v as sp,P as lp,w as Ch,x as _h,y as wh,z as Ph,A as Eh,B as cp,C as up,D as Sh,E as $h,F as zt,G as dp,H as fp,I as Rh,J as pc,K as kh,M as Ih,N as Th,O as cd,Q as Mt,S as pp,T as ai,U as mc,V as mp,W as vp,X as jh,Y as Mh,Z as Ah,_ as Nh,$ as gp,a0 as Fh,a1 as Bh,a2 as Dh,a3 as hp,a4 as Lh,a5 as zh,a6 as Wh,a7 as Vh,a8 as eo,a9 as Hh,aa as Rr,ab as Uh,ac as vc,ad as qh,ae as Kh,af as Ds,ag as Gh,ah as Xh,ai as Yh,aj as Qh,ak as Jh,al as Zh,am as ey,an as yp,ao as ty,ap as ry,aq as ny,ar as oy,as as gc,at as cn,au as ay,av as iy,aw as sy,ax as bp,ay as ly,az as cy,aA as uy,aB as dy,aC as fy,aD as py,aE as my,aF as xp,aG as vy,aH as gy,aI as hy,aJ as yy,aK as Op,aL as Cp,aM as by,aN as xy,aO as Oy,aP as Cy,aQ as _y,aR as wy,aS as ud,aT as _p,aU as Py,aV as Ey,aW as wp,aX as Sy,aY as $y,aZ as Ry,a_ as ky,a$ as Iy,b0 as hc,b1 as Ty,b2 as jy,b3 as My,b4 as Ay,b5 as Ny,b6 as Fy,b7 as By,b8 as Dy}from"./ra-CBMLOZf2.js";import{F as Ly,D as zy,B as Pp,L as Wy,S as Vy,T as to,a as Ep,b as Hy,c as Sp,d as $p,P as Uy,e as dd,I as vs,f as qy,g as Ky}from"./mui-Dn3PXzmh.js";const ro={black:"#000",white:"#fff"},Mr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ar={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Nr={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Fr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Br={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},In={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Gy={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Qt(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r0?Ye(xn,--ct):0,dn--,Le===10&&(dn=1,si--),Le}function vt(){return Le=ct2||oo(Le)>3?"":" "}function fb(e,t){for(;--t&&vt()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return go(e,Xo()+(t<6&&Wt()==32&&vt()==32))}function zs(e){for(;vt();)switch(Le){case e:return ct;case 34:case 39:e!==34&&e!==39&&zs(Le);break;case 40:e===41&&zs(e);break;case 92:vt();break}return ct}function pb(e,t){for(;vt()&&e+Le!==57;)if(e+Le===84&&Wt()===47)break;return"/*"+go(t,ct-1)+"*"+ii(e===47?e:vt())}function mb(e){for(;!oo(Wt());)vt();return go(e,ct)}function vb(e){return Ap(Qo("",null,null,null,[""],e=Mp(e),0,[0],e))}function Qo(e,t,r,n,o,a,i,l,c){for(var u=0,d=0,f=i,p=0,m=0,g=0,v=1,b=1,O=1,C=0,x="",y=o,_=a,P=n,w=x;b;)switch(g=C,C=vt()){case 40:if(g!=108&&Ye(w,f-1)==58){Ls(w+=xe(Yo(C),"&","&\f"),"&\f")!=-1&&(O=-1);break}case 34:case 39:case 91:w+=Yo(C);break;case 9:case 10:case 13:case 32:w+=db(g);break;case 92:w+=fb(Xo()-1,7);continue;case 47:switch(Wt()){case 42:case 47:Ao(gb(pb(vt(),Xo()),t,r),c);break;default:w+="/"}break;case 123*v:l[u++]=Bt(w)*O;case 125*v:case 59:case 0:switch(C){case 0:case 125:b=0;case 59+d:O==-1&&(w=xe(w,/\f/g,"")),m>0&&Bt(w)-f&&Ao(m>32?pd(w+";",n,r,f-1):pd(xe(w," ","")+";",n,r,f-2),c);break;case 59:w+=";";default:if(Ao(P=fd(w,t,r,u,d,o,l,x,y=[],_=[],f),a),C===123)if(d===0)Qo(w,t,P,P,y,a,f,l,_);else switch(p===99&&Ye(w,3)===110?100:p){case 100:case 108:case 109:case 115:Qo(e,P,P,n&&Ao(fd(e,P,P,0,0,o,l,x,o,y=[],f),_),o,_,f,l,n?y:_);break;default:Qo(w,P,P,P,[""],_,0,l,_)}}u=d=m=0,v=O=1,x=w="",f=i;break;case 58:f=1+Bt(w),m=g;default:if(v<1){if(C==123)--v;else if(C==125&&v++==0&&ub()==125)continue}switch(w+=ii(C),C*v){case 38:O=d>0?1:(w+="\f",-1);break;case 44:l[u++]=(Bt(w)-1)*O,O=1;break;case 64:Wt()===45&&(w+=Yo(vt())),p=Wt(),d=f=Bt(x=w+=mb(Xo())),C++;break;case 45:g===45&&Bt(w)==2&&(v=0)}}return a}function fd(e,t,r,n,o,a,i,l,c,u,d){for(var f=o-1,p=o===0?a:[""],m=xc(p),g=0,v=0,b=0;g0?p[O]+" "+C:xe(C,/&\f/g,p[O])))&&(c[b++]=x);return li(e,t,r,o===0?yc:l,c,u,d)}function gb(e,t,r){return li(e,t,r,kp,ii(cb()),no(e,2,-2),0)}function pd(e,t,r,n){return li(e,t,r,bc,no(e,0,n),no(e,n+1,-1),n)}function Xr(e,t){for(var r="",n=xc(e),o=0;o6)switch(Ye(e,t+1)){case 109:if(Ye(e,t+4)!==45)break;case 102:return xe(e,/(.+:)(.+)-([^]+)/,"$1"+be+"$2-$3$1"+xa+(Ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ls(e,"stretch")?Np(xe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ye(e,t+1)!==115)break;case 6444:switch(Ye(e,Bt(e)-3-(~Ls(e,"!important")&&10))){case 107:return xe(e,":",":"+be)+e;case 101:return xe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+be+(Ye(e,14)===45?"inline-":"")+"box$3$1"+be+"$2$3$1"+et+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return be+e+et+xe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return be+e+et+xe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return be+e+et+xe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return be+e+et+e+e}return e}var Pb=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case bc:t.return=Np(t.value,t.length);break;case Ip:return Xr([Tn(t,{value:xe(t.value,"@","@"+be)})],o);case yc:if(t.length)return lb(t.props,function(a){switch(sb(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xr([Tn(t,{props:[xe(a,/:(read-\w+)/,":"+xa+"$1")]})],o);case"::placeholder":return Xr([Tn(t,{props:[xe(a,/:(plac\w+)/,":"+be+"input-$1")]}),Tn(t,{props:[xe(a,/:(plac\w+)/,":"+xa+"$1")]}),Tn(t,{props:[xe(a,/:(plac\w+)/,et+"input-$1")]})],o)}return""})}},Eb=[Pb],Fp=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||Eb,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(" "),O=1;O0?Ye(xn,--ct):0,dn--,Le===10&&(dn=1,si--),Le}function vt(){return Le=ct2||oo(Le)>3?"":" "}function fb(e,t){for(;--t&&vt()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return go(e,Xo()+(t<6&&Wt()==32&&vt()==32))}function zs(e){for(;vt();)switch(Le){case e:return ct;case 34:case 39:e!==34&&e!==39&&zs(Le);break;case 40:e===41&&zs(e);break;case 92:vt();break}return ct}function pb(e,t){for(;vt()&&e+Le!==57;)if(e+Le===84&&Wt()===47)break;return"/*"+go(t,ct-1)+"*"+ii(e===47?e:vt())}function mb(e){for(;!oo(Wt());)vt();return go(e,ct)}function vb(e){return Ap(Qo("",null,null,null,[""],e=Mp(e),0,[0],e))}function Qo(e,t,r,n,o,a,i,l,c){for(var u=0,d=0,f=i,p=0,m=0,g=0,v=1,b=1,O=1,C=0,x="",y=o,_=a,P=n,w=x;b;)switch(g=C,C=vt()){case 40:if(g!=108&&Ye(w,f-1)==58){Ls(w+=xe(Yo(C),"&","&\f"),"&\f")!=-1&&(O=-1);break}case 34:case 39:case 91:w+=Yo(C);break;case 9:case 10:case 13:case 32:w+=db(g);break;case 92:w+=fb(Xo()-1,7);continue;case 47:switch(Wt()){case 42:case 47:Ao(gb(pb(vt(),Xo()),t,r),c);break;default:w+="/"}break;case 123*v:l[u++]=Bt(w)*O;case 125*v:case 59:case 0:switch(C){case 0:case 125:b=0;case 59+d:O==-1&&(w=xe(w,/\f/g,"")),m>0&&Bt(w)-f&&Ao(m>32?pd(w+";",n,r,f-1):pd(xe(w," ","")+";",n,r,f-2),c);break;case 59:w+=";";default:if(Ao(P=fd(w,t,r,u,d,o,l,x,y=[],_=[],f),a),C===123)if(d===0)Qo(w,t,P,P,y,a,f,l,_);else switch(p===99&&Ye(w,3)===110?100:p){case 100:case 108:case 109:case 115:Qo(e,P,P,n&&Ao(fd(e,P,P,0,0,o,l,x,o,y=[],f),_),o,_,f,l,n?y:_);break;default:Qo(w,P,P,P,[""],_,0,l,_)}}u=d=m=0,v=O=1,x=w="",f=i;break;case 58:f=1+Bt(w),m=g;default:if(v<1){if(C==123)--v;else if(C==125&&v++==0&&ub()==125)continue}switch(w+=ii(C),C*v){case 38:O=d>0?1:(w+="\f",-1);break;case 44:l[u++]=(Bt(w)-1)*O,O=1;break;case 64:Wt()===45&&(w+=Yo(vt())),p=Wt(),d=f=Bt(x=w+=mb(Xo())),C++;break;case 45:g===45&&Bt(w)==2&&(v=0)}}return a}function fd(e,t,r,n,o,a,i,l,c,u,d){for(var f=o-1,p=o===0?a:[""],m=xc(p),g=0,v=0,b=0;g0?p[O]+" "+C:xe(C,/&\f/g,p[O])))&&(c[b++]=x);return li(e,t,r,o===0?yc:l,c,u,d)}function gb(e,t,r){return li(e,t,r,kp,ii(cb()),no(e,2,-2),0)}function pd(e,t,r,n){return li(e,t,r,bc,no(e,0,n),no(e,n+1,-1),n)}function Xr(e,t){for(var r="",n=xc(e),o=0;o6)switch(Ye(e,t+1)){case 109:if(Ye(e,t+4)!==45)break;case 102:return xe(e,/(.+:)(.+)-([^]+)/,"$1"+be+"$2-$3$1"+xa+(Ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ls(e,"stretch")?Np(xe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ye(e,t+1)!==115)break;case 6444:switch(Ye(e,Bt(e)-3-(~Ls(e,"!important")&&10))){case 107:return xe(e,":",":"+be)+e;case 101:return xe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+be+(Ye(e,14)===45?"inline-":"")+"box$3$1"+be+"$2$3$1"+et+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return be+e+et+xe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return be+e+et+xe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return be+e+et+xe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return be+e+et+e+e}return e}var Pb=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case bc:t.return=Np(t.value,t.length);break;case Ip:return Xr([Tn(t,{value:xe(t.value,"@","@"+be)})],o);case yc:if(t.length)return lb(t.props,function(a){switch(sb(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xr([Tn(t,{props:[xe(a,/:(read-\w+)/,":"+xa+"$1")]})],o);case"::placeholder":return Xr([Tn(t,{props:[xe(a,/:(plac\w+)/,":"+be+"input-$1")]}),Tn(t,{props:[xe(a,/:(plac\w+)/,":"+xa+"$1")]}),Tn(t,{props:[xe(a,/:(plac\w+)/,et+"input-$1")]})],o)}return""})}},Eb=[Pb],Fp=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||Eb,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(" "),O=1;O=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,b9 as Wt,an as Ht,f as Ut,a as ot,aQ as Jt}from"./ra-BJ1s-CBC.js";import{L as Gt,F as Yt,I as $t}from"./react-admin-Bl-LVqmY.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=M,l=p,D=K,N=T,R=k,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 Mr=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=m,_r=fr,yr=p,pr=_;function dr(r,a){var n=pr(r)?cr:_r;return n(r,yr(a))}var vr=dr;const kr=y(vr);var $r=o,gr=p,Fr=1;function Ar(r){return gr(typeof r=="function"?r:$r(r,Fr))}var Br=Ar;const mr=y(Br);export{kr as a,mr as b,Mr as l}; +import{ba as F,aH as A,bb as $,bc as B,ai as E,aN as O,aM as M,al as k,aO as _,an as y,bd as m,be as o}from"./ra-BJ1s-CBC.js";import{a1 as p}from"./react-admin-Bl-LVqmY.js";var w=F,C=A;function L(r,a){return r&&w(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=M,l=p,D=K,N=T,R=k,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 Mr=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=m,_r=fr,yr=p,pr=_;function dr(r,a){var n=pr(r)?cr:_r;return n(r,yr(a))}var vr=dr;const kr=y(vr);var $r=o,gr=p,Fr=1;function Ar(r){return gr(typeof r=="function"?r:$r(r,Fr))}var Br=Ar;const mr=y(Br);export{kr as a,mr as b,Mr as l}; diff --git a/dist/index.html b/dist/index.html index 05fe346..ae80284 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 3861dae..5a3e46b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1597,20 +1597,20 @@ ] }, "node_modules/@tanstack/query-core": { - "version": "5.53.1", - "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.53.1.tgz", - "integrity": "sha512-mvLG7s4Zy3Yvc2LsKm8BVafbmPrsReKgqwhmp4XKVmRW9us3KbWRqu3qBBfhVavcUUEHfNK7PvpTchvQpVdFpw==", + "version": "5.54.1", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.54.1.tgz", + "integrity": "sha512-hKS+WRpT5zBFip21pB6Jx1C0hranWQrbv5EJ7qPoiV5MYI3C8rTCqWC9DdBseiPT1JgQWh8Y55YthuYZNiw3Xw==", "funding": { "type": "github", "url": "https://github.com/sponsors/tannerlinsley" } }, "node_modules/@tanstack/react-query": { - "version": "5.53.1", - "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.53.1.tgz", - "integrity": "sha512-35HU4836Ey1/W74BxmS8p9KHXcDRGPdkw6w3VX0Tc5S9v5acFl80oi/yc6nsmoLhu68wQkWMyX0h7y7cOtY5OA==", + "version": "5.55.0", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.55.0.tgz", + "integrity": "sha512-2uYuxEbRQD8TORUiTUacEOwt1e8aoSqUOJFGY5TUrh6rQ3U85zrMS2wvbNhBhXGh6Vj69QDCP2yv8tIY7joo6Q==", "dependencies": { - "@tanstack/query-core": "5.53.1" + "@tanstack/query-core": "5.54.1" }, "funding": { "type": "github", @@ -4716,9 +4716,9 @@ "license": "MIT" }, "node_modules/ra-core": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/ra-core/-/ra-core-5.1.3.tgz", - "integrity": "sha512-4SQ2paJm9Kj4U3P6o6ahxB5dXy+bj4lnebnU2Tkdo6p4t74RO/XQZrCjrK0qGDy1RzhCLxTNV9IIwyJdfjtprQ==", + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/ra-core/-/ra-core-5.1.4.tgz", + "integrity": "sha512-iqOiDlihpKcJmyUgIOHCFPMSV4P1di7tLVrNBvuRaJQZ0gNlg8JMmBLwJdyRviQi9ysP93wk7JV5P3CVO7S/IA==", "dependencies": { "@tanstack/react-query": "^5.8.4", "clsx": "^2.1.1", @@ -4746,20 +4746,20 @@ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==" }, "node_modules/ra-i18n-polyglot": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/ra-i18n-polyglot/-/ra-i18n-polyglot-5.1.3.tgz", - "integrity": "sha512-7NuRM+FStDrSbecRObRy2z7BHOxbA7FQZAIQdGxW7Fbc73Ev4dbJzQSVHWEsain3pkN7CXuvJmX8EP8VdqnGWQ==", + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/ra-i18n-polyglot/-/ra-i18n-polyglot-5.1.4.tgz", + "integrity": "sha512-f0jAHhmzjDYPaTJJ3ppZc6nKWFuAskzARw6ZAZ+XfRO+jnb7n3DVE9AFgvK/5nykk2S+FL6dbcnH6JHuEXHNaQ==", "dependencies": { "node-polyglot": "^2.2.2", - "ra-core": "^5.1.3" + "ra-core": "^5.1.4" } }, "node_modules/ra-language-english": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/ra-language-english/-/ra-language-english-5.1.3.tgz", - "integrity": "sha512-MFtB3qCEei5iobhUvgpGU8+jLgBa7fYvlHeUdMay15vGBx4Hm0Mhc+huOEXWLIcD9jsIAb9gDU67rjEECOx6Ig==", + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/ra-language-english/-/ra-language-english-5.1.4.tgz", + "integrity": "sha512-aGTGgj9daDBgXXgAMqtNtBmjuz+5Y72mhKjrB7jIk8I50rs/fmo4nUd6vBVtDHln/bZVvGZ17if0yAKqXEuBGQ==", "dependencies": { - "ra-core": "^5.1.3" + "ra-core": "^5.1.4" } }, "node_modules/react": { @@ -4775,18 +4775,18 @@ } }, "node_modules/react-admin": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/react-admin/-/react-admin-5.1.3.tgz", - "integrity": "sha512-TXjEfv0JObJQKLBLTimKnkLG7RthDIZ+Wg3TqwqNtWN8Qu57ZVAMClzzoCiqHga69M+He+bxjDCNogz7SjsR3Q==", + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/react-admin/-/react-admin-5.1.4.tgz", + "integrity": "sha512-5OhZ1ura8AVbfYZMLIvT1aXFoqwOrFJM0GZoBsL8E+0wEem3COfSjKmeu1K8okGDLlDW1kSf9OG0EAQm/oetSQ==", "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.1.3", - "ra-i18n-polyglot": "^5.1.3", - "ra-language-english": "^5.1.3", - "ra-ui-materialui": "^5.1.3", + "ra-core": "^5.1.4", + "ra-i18n-polyglot": "^5.1.4", + "ra-language-english": "^5.1.4", + "ra-ui-materialui": "^5.1.4", "react-hook-form": "^7.52.0", "react-router": "^6.22.0", "react-router-dom": "^6.22.0" @@ -4797,9 +4797,9 @@ } }, "node_modules/react-admin/node_modules/ra-ui-materialui": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/ra-ui-materialui/-/ra-ui-materialui-5.1.3.tgz", - "integrity": "sha512-2+DVdukJUXCfiVoIWjrj0aP0h64qbPEMoMzXR/n3ey+uiF/UrbTDzxGf8oEOCEEewX0+ijGAN3P4TBQD34NJwQ==", + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/ra-ui-materialui/-/ra-ui-materialui-5.1.4.tgz", + "integrity": "sha512-b+jJLkXpStXEHTCaIMWPd2iItMQJeBKLTxuBx1GH444RiU6MHntkFNLqrxnuSnvZWxSAtXbpA/UKbwXQKGZmAw==", "dependencies": { "@tanstack/react-query": "^5.8.4", "autosuggest-highlight": "^3.1.1",