From 4aecb4a0d174c7546bac16280a8469a9d4cfd47c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 30 Aug 2024 15:54:56 +0000 Subject: [PATCH 1/2] Bump react-admin from 5.1.2 to 5.1.3 Bumps [react-admin](https://github.com/marmelab/react-admin) from 5.1.2 to 5.1.3. - [Release notes](https://github.com/marmelab/react-admin/releases) - [Changelog](https://github.com/marmelab/react-admin/blob/master/CHANGELOG.md) - [Commits](https://github.com/marmelab/react-admin/compare/v5.1.2...v5.1.3) --- updated-dependencies: - dependency-name: react-admin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 101 +++++++++++++++++++++++----------------------- 1 file changed, 50 insertions(+), 51 deletions(-) diff --git a/package-lock.json b/package-lock.json index 60c8cfe..078474f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -431,14 +431,14 @@ "integrity": "sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ==" }, "node_modules/@emotion/react": { - "version": "11.13.0", - "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.13.0.tgz", - "integrity": "sha512-WkL+bw1REC2VNV1goQyfxjx1GYJkcc23CRQkXX+vZNLINyfI7o+uUn/rTGPt/xJ3bJHd5GcljgnxHf4wRw5VWQ==", + "version": "11.13.3", + "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.13.3.tgz", + "integrity": "sha512-lIsdU6JNrmYfJ5EbUCf4xW1ovy5wKQ2CkPRM4xogziOxH1nXxBSjpC9YqbFAP7circxMfYp+6x676BqWcEiixg==", "dependencies": { "@babel/runtime": "^7.18.3", "@emotion/babel-plugin": "^11.12.0", "@emotion/cache": "^11.13.0", - "@emotion/serialize": "^1.3.0", + "@emotion/serialize": "^1.3.1", "@emotion/use-insertion-effect-with-fallbacks": "^1.1.0", "@emotion/utils": "^1.4.0", "@emotion/weak-memoize": "^0.4.0", @@ -454,13 +454,13 @@ } }, "node_modules/@emotion/serialize": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@emotion/serialize/-/serialize-1.3.0.tgz", - "integrity": "sha512-jACuBa9SlYajnpIVXB+XOXnfJHyckDfe6fOpORIM6yhBDlqGuExvDdZYHDQGoDf3bZXGv7tNr+LpLjJqiEQ6EA==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@emotion/serialize/-/serialize-1.3.1.tgz", + "integrity": "sha512-dEPNKzBPU+vFPGa+z3axPRn8XVDetYORmDC0wAiej+TNcOZE70ZMJa0X7JdeoM6q/nWTMZeLpN/fTnD9o8MQBA==", "dependencies": { "@emotion/hash": "^0.9.2", "@emotion/memoize": "^0.9.0", - "@emotion/unitless": "^0.9.0", + "@emotion/unitless": "^0.10.0", "@emotion/utils": "^1.4.0", "csstype": "^3.0.2" } @@ -493,9 +493,9 @@ } }, "node_modules/@emotion/unitless": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.9.0.tgz", - "integrity": "sha512-TP6GgNZtmtFaFcsOgExdnfxLLpRDla4Q66tnenA9CktvVSdNKDvMVuUah4QvWPIpNjrWsGg3qeGo9a43QooGZQ==" + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.10.0.tgz", + "integrity": "sha512-dFoMUuQA20zvtVTuxZww6OHoJYgrzfKM1t52mVySDJnMSEa08ruEvdYQbhvyu6soU+NeLVd3yKfTfT0NeV6qGg==" }, "node_modules/@emotion/use-insertion-effect-with-fallbacks": { "version": "1.1.0", @@ -1290,11 +1290,11 @@ } }, "node_modules/@mui/types": { - "version": "7.2.15", - "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.15.tgz", - "integrity": "sha512-nbo7yPhtKJkdf9kcVOF8JZHPZTmqXjJ/tI0bdWgHg5tp9AnIN4Y7f7wm9T+0SyGYJk76+GYZ8Q5XaTYAsUHN0Q==", + "version": "7.2.16", + "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.16.tgz", + "integrity": "sha512-qI8TV3M7ShITEEc8Ih15A2vLzZGLhD+/UPNwck/hcls2gwg7dyRjNGXcQYHKLB5Q7PuTRfrTkAoPa2VV1s67Ag==", "peerDependencies": { - "@types/react": "^17.0.0 || ^18.0.0" + "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0" }, "peerDependenciesMeta": { "@types/react": { @@ -1597,27 +1597,27 @@ ] }, "node_modules/@tanstack/query-core": { - "version": "5.51.24", - "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.51.24.tgz", - "integrity": "sha512-qtIR0FMHUDIWyIQw87q4C+so7XaN59MsGfWrc6rgi2VTHrVZF3Hd0St2dbpqRetHf6XW5yY5lzTrXpTilPlxUg==", + "version": "5.53.1", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.53.1.tgz", + "integrity": "sha512-mvLG7s4Zy3Yvc2LsKm8BVafbmPrsReKgqwhmp4XKVmRW9us3KbWRqu3qBBfhVavcUUEHfNK7PvpTchvQpVdFpw==", "funding": { "type": "github", "url": "https://github.com/sponsors/tannerlinsley" } }, "node_modules/@tanstack/react-query": { - "version": "5.51.24", - "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.51.24.tgz", - "integrity": "sha512-sW1qRwoCDqOFku67xng4Y5z6NPK1DS347jR4RiX9wFHrmyqpbXgUjPIjT3fodezdJAaSJD/6CvWb0cl05J8zNQ==", + "version": "5.53.1", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.53.1.tgz", + "integrity": "sha512-35HU4836Ey1/W74BxmS8p9KHXcDRGPdkw6w3VX0Tc5S9v5acFl80oi/yc6nsmoLhu68wQkWMyX0h7y7cOtY5OA==", "dependencies": { - "@tanstack/query-core": "5.51.24" + "@tanstack/query-core": "5.53.1" }, "funding": { "type": "github", "url": "https://github.com/sponsors/tannerlinsley" }, "peerDependencies": { - "react": "^18.0.0" + "react": "^18 || ^19" } }, "node_modules/@types/babel__core": { @@ -4563,7 +4563,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "license": "MIT", "engines": { "node": ">=8" } @@ -4720,9 +4719,9 @@ "license": "MIT" }, "node_modules/ra-core": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/ra-core/-/ra-core-5.1.2.tgz", - "integrity": "sha512-WWv1wAsxTjUvC1Od+QA+CjlMI2qhhVAXrTmyrV/EgKvxY8uXIjjWVm0FEczNiiYXvFRGMTDPuqL1d6xKC/0OHA==", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/ra-core/-/ra-core-5.1.3.tgz", + "integrity": "sha512-4SQ2paJm9Kj4U3P6o6ahxB5dXy+bj4lnebnU2Tkdo6p4t74RO/XQZrCjrK0qGDy1RzhCLxTNV9IIwyJdfjtprQ==", "dependencies": { "@tanstack/react-query": "^5.8.4", "clsx": "^2.1.1", @@ -4750,20 +4749,20 @@ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==" }, "node_modules/ra-i18n-polyglot": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/ra-i18n-polyglot/-/ra-i18n-polyglot-5.1.2.tgz", - "integrity": "sha512-47zgzyPgdlwimsFyqZJtglTZB1auVgOwuqbXd0OfruW+OUhSY4pLvk1rJNMUJrl3QjGbybb2DtjDbPFRO84u+Q==", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/ra-i18n-polyglot/-/ra-i18n-polyglot-5.1.3.tgz", + "integrity": "sha512-7NuRM+FStDrSbecRObRy2z7BHOxbA7FQZAIQdGxW7Fbc73Ev4dbJzQSVHWEsain3pkN7CXuvJmX8EP8VdqnGWQ==", "dependencies": { "node-polyglot": "^2.2.2", - "ra-core": "^5.1.2" + "ra-core": "^5.1.3" } }, "node_modules/ra-language-english": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/ra-language-english/-/ra-language-english-5.1.2.tgz", - "integrity": "sha512-d4+bvLDQxo4WVd9oYM4eg/xQwjWttwWT96uA6d6eO+w2ldtlL0dLMOFRz6Mv5v7b0/vlZFKFSNgchaT8L1anSw==", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/ra-language-english/-/ra-language-english-5.1.3.tgz", + "integrity": "sha512-MFtB3qCEei5iobhUvgpGU8+jLgBa7fYvlHeUdMay15vGBx4Hm0Mhc+huOEXWLIcD9jsIAb9gDU67rjEECOx6Ig==", "dependencies": { - "ra-core": "^5.1.2" + "ra-core": "^5.1.3" } }, "node_modules/react": { @@ -4779,18 +4778,18 @@ } }, "node_modules/react-admin": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/react-admin/-/react-admin-5.1.2.tgz", - "integrity": "sha512-f3L0XVEQrmMx5kbaApbE4GDJA5oSz9MPORlBD2ZHdVqcTJCfkbbDpR5McTT6Je6QRT8KSrOdWhcJQc3UTdHFyw==", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/react-admin/-/react-admin-5.1.3.tgz", + "integrity": "sha512-TXjEfv0JObJQKLBLTimKnkLG7RthDIZ+Wg3TqwqNtWN8Qu57ZVAMClzzoCiqHga69M+He+bxjDCNogz7SjsR3Q==", "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.2", - "ra-i18n-polyglot": "^5.1.2", - "ra-language-english": "^5.1.2", - "ra-ui-materialui": "^5.1.2", + "ra-core": "^5.1.3", + "ra-i18n-polyglot": "^5.1.3", + "ra-language-english": "^5.1.3", + "ra-ui-materialui": "^5.1.3", "react-hook-form": "^7.52.0", "react-router": "^6.22.0", "react-router-dom": "^6.22.0" @@ -4801,9 +4800,9 @@ } }, "node_modules/react-admin/node_modules/ra-ui-materialui": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/ra-ui-materialui/-/ra-ui-materialui-5.1.2.tgz", - "integrity": "sha512-hhR5+NCC5tDNB6WtPl2sY7mKAqfs4A0S+x2Kh/GsYYxs7nFIRFIBMu7UE40vpVJqFrBCc2fyVB/3d9D2eEdoZA==", + "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==", "dependencies": { "@tanstack/react-query": "^5.8.4", "autosuggest-highlight": "^3.1.1", @@ -4890,9 +4889,9 @@ } }, "node_modules/react-hook-form": { - "version": "7.52.2", - "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.52.2.tgz", - "integrity": "sha512-pqfPEbERnxxiNMPd0bzmt1tuaPcVccywFDpyk2uV5xCIBphHV5T8SVnX9/o3kplPE1zzKt77+YIoq+EMwJp56A==", + "version": "7.53.0", + "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.53.0.tgz", + "integrity": "sha512-M1n3HhqCww6S2hxLxciEXy2oISPnAzxY7gvwVPrtlczTM/1dDadXgUxDpHMrMTblDOcm/AXtXxHwZ3jpg1mqKQ==", "engines": { "node": ">=18.0.0" }, @@ -5497,9 +5496,9 @@ } }, "node_modules/tslib": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", - "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==" + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", + "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==" }, "node_modules/type-check": { "version": "0.4.0", From 1c6588c87aa24aa78ec9a82562b9d25f214a2f5d Mon Sep 17 00:00:00 2001 From: Github bot Date: Fri, 30 Aug 2024 15:55:36 +0000 Subject: [PATCH 2/2] build action --- .../{index-ZfLBjfZK.js => index-Q3D_60mC.js} | 2 +- .../{mui-DXdGyifB.js => mui-Dn3PXzmh.js} | 2 +- .../assets/{ra-BdzMzRm7.js => ra-CBMLOZf2.js} | 40 +++--- dist/assets/react-admin-E5WH1fyQ.js | 126 ++++++++++++++++++ dist/assets/react-admin-YFQLaSRa.js | 126 ------------------ ...8TBuX.js => react-admin-utils-kegFlIu-.js} | 2 +- .../{utils-BQYvhQQZ.js => utils-DQjYhTfD.js} | 2 +- dist/index.html | 12 +- 8 files changed, 156 insertions(+), 156 deletions(-) rename dist/assets/{index-ZfLBjfZK.js => index-Q3D_60mC.js} (91%) rename dist/assets/{mui-DXdGyifB.js => mui-Dn3PXzmh.js} (99%) rename dist/assets/{ra-BdzMzRm7.js => ra-CBMLOZf2.js} (53%) create mode 100644 dist/assets/react-admin-E5WH1fyQ.js delete mode 100644 dist/assets/react-admin-YFQLaSRa.js rename dist/assets/{react-admin-utils-DxX8TBuX.js => react-admin-utils-kegFlIu-.js} (99%) rename dist/assets/{utils-BQYvhQQZ.js => utils-DQjYhTfD.js} (54%) diff --git a/dist/assets/index-ZfLBjfZK.js b/dist/assets/index-Q3D_60mC.js similarity index 91% rename from dist/assets/index-ZfLBjfZK.js rename to dist/assets/index-Q3D_60mC.js index bcdee6d..2a93730 100644 --- a/dist/assets/index-ZfLBjfZK.js +++ b/dist/assets/index-Q3D_60mC.js @@ -1 +1 @@ -import{c as L,aC as g,bf as M,j as t,bg as v,a as N}from"./ra-BdzMzRm7.js";import{l as _,a as k,b as F}from"./utils-BQYvhQQZ.js";import{F as I}from"./matches-CU2r43ac.js";import{J as d,a as l}from"./react-admin-utils-DxX8TBuX.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 E,ab as D,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-YFQLaSRa.js";import{i as ee,h as te}from"./mui-DXdGyifB.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(E,{children:[t.jsx(u,{source:"id",sortable:!0}),t.jsx(u,{source:"service",sortable:!0}),t.jsx(u,{source:"method",sortable:!0}),t.jsx(d,{source:"headers",sortable:!1,reactJsonOptions:{theme:i()}}),t.jsx(d,{source:"input",sortable:!1,reactJsonOptions:{theme:i()}}),t.jsx(d,{source:"output",sortable:!1,reactJsonOptions:{theme:i()}})]})}),i=()=>{const[r]=D();return r==="dark"?"monokai":"rjv-default"},le=()=>t.jsx(O,{children:t.jsxs(S,{bulkActionButtons:!1,children:[t.jsx(u,{source:"id"}),t.jsx(u,{source:"package"}),t.jsx(u,{source:"name"}),t.jsx(B,{source:"methods",sortable:!1,children:t.jsx(C,{linkType:!1,children:t.jsx(H,{source:"name"})})})]})});var x={},he=w;Object.defineProperty(x,"__esModule",{value:!0});var T=x.default=void 0,fe=he($()),pe=t;T=x.default=(0,fe.default)((0,pe.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage");var j={},me=w;Object.defineProperty(j,"__esModule",{value:!0});var P=j.default=void 0,ye=me($()),xe=t;P=j.default=(0,ye.default)((0,xe.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-1 6h2v2h-2zm0 4h2v6h-2z"}),"PrivacyTip");const je={...G,palette:{primary:ee,secondary:te,error:U,contrastThreshold:3,tonalOffset:.2}},ge=()=>t.jsxs(Q,{toolbar:t.jsx(W,{}),children:[t.jsx(Y,{}),t.jsx(Z,{flex:"-1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",variant:"h6",color:"inherit",id:"react-admin-logo",children:"GripMock UI"})]}),ve=r=>t.jsx(X,{...r,appBar:ge}),be=()=>t.jsxs(V,{disableTelemetry:!0,dataProvider:oe,layout:ve,theme:je,darkTheme:K,children:[t.jsx(v,{icon:P,name:"services",list:le}),t.jsx(v,{icon:T,name:"stubs",list:ie,edit:ue,show:de,create:ce})]});y.createRoot(document.getElementById("root")).render(t.jsx(N.StrictMode,{children:t.jsx(be,{})})); +import{c as 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,{})})); diff --git a/dist/assets/mui-DXdGyifB.js b/dist/assets/mui-Dn3PXzmh.js similarity index 99% rename from dist/assets/mui-DXdGyifB.js rename to dist/assets/mui-Dn3PXzmh.js index d65ac52..0eaf6a1 100644 --- a/dist/assets/mui-DXdGyifB.js +++ b/dist/assets/mui-Dn3PXzmh.js @@ -1,4 +1,4 @@ -import{r as C,j as l}from"./ra-BdzMzRm7.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-YFQLaSRa.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-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` 0% { left: -35%; right: 100%; diff --git a/dist/assets/ra-BdzMzRm7.js b/dist/assets/ra-CBMLOZf2.js similarity index 53% rename from dist/assets/ra-BdzMzRm7.js rename to dist/assets/ra-CBMLOZf2.js index 9d051e6..cf981dc 100644 --- a/dist/assets/ra-BdzMzRm7.js +++ b/dist/assets/ra-CBMLOZf2.js @@ -1,4 +1,4 @@ -var Xv=e=>{throw TypeError(e)};var Ec=(e,t,r)=>t.has(e)||Xv("Cannot "+r);var k=(e,t,r)=>(Ec(e,t,"read from private field"),r?r.call(e):t.get(e)),ue=(e,t,r)=>t.has(e)?Xv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Z=(e,t,r,n)=>(Ec(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ve=(e,t,r)=>(Ec(e,t,"access private method"),r);var Wu=(e,t,r,n)=>({set _(i){Z(e,t,i,r)},get _(){return k(e,t,n)}});function qm(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var $o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function BV(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Gm={exports:{}},_l={},Ym={exports:{}},ye={};/** +var Xv=e=>{throw TypeError(e)};var Ec=(e,t,r)=>t.has(e)||Xv("Cannot "+r);var k=(e,t,r)=>(Ec(e,t,"read from private field"),r?r.call(e):t.get(e)),ue=(e,t,r)=>t.has(e)?Xv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Z=(e,t,r,n)=>(Ec(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ve=(e,t,r)=>(Ec(e,t,"access private method"),r);var Wu=(e,t,r,n)=>({set _(i){Z(e,t,i,r)},get _(){return k(e,t,n)}});function Gm(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var $o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function HV(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Ym={exports:{}},_l={},Jm={exports:{}},ye={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var Xv=e=>{throw TypeError(e)};var Ec=(e,t,r)=>t.has(e)||Xv("Cannot "+r);var k=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Cu=Symbol.for("react.element"),nE=Symbol.for("react.portal"),iE=Symbol.for("react.fragment"),aE=Symbol.for("react.strict_mode"),oE=Symbol.for("react.profiler"),uE=Symbol.for("react.provider"),sE=Symbol.for("react.context"),lE=Symbol.for("react.forward_ref"),cE=Symbol.for("react.suspense"),fE=Symbol.for("react.memo"),dE=Symbol.for("react.lazy"),Zv=Symbol.iterator;function hE(e){return e===null||typeof e!="object"?null:(e=Zv&&e[Zv]||e["@@iterator"],typeof e=="function"?e:null)}var Jm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xm=Object.assign,Zm={};function qa(e,t,r){this.props=e,this.context=t,this.refs=Zm,this.updater=r||Jm}qa.prototype.isReactComponent={};qa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};qa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function e0(){}e0.prototype=qa.prototype;function Qd(e,t,r){this.props=e,this.context=t,this.refs=Zm,this.updater=r||Jm}var qd=Qd.prototype=new e0;qd.constructor=Qd;Xm(qd,qa.prototype);qd.isPureReactComponent=!0;var ep=Array.isArray,t0=Object.prototype.hasOwnProperty,Gd={current:null},r0={key:!0,ref:!0,__self:!0,__source:!0};function n0(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)t0.call(t,n)&&!r0.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1{throw TypeError(e)};var Ec=(e,t,r)=>t.has(e)||Xv("Cannot "+r);var k=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var wE=v,_E=Symbol.for("react.element"),SE=Symbol.for("react.fragment"),EE=Object.prototype.hasOwnProperty,bE=wE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xE={key:!0,ref:!0,__self:!0,__source:!0};function a0(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)EE.call(t,n)&&!xE.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:_E,type:e,key:a,ref:o,props:i,_owner:bE.current}}_l.Fragment=SE;_l.jsx=a0;_l.jsxs=a0;Gm.exports=_l;var CE=Gm.exports,o0={exports:{}},ir={},u0={exports:{}},s0={};/** + */var _E=v,SE=Symbol.for("react.element"),EE=Symbol.for("react.fragment"),bE=Object.prototype.hasOwnProperty,xE=_E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,CE={key:!0,ref:!0,__self:!0,__source:!0};function o0(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)bE.call(t,n)&&!CE.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:SE,type:e,key:a,ref:o,props:i,_owner:xE.current}}_l.Fragment=EE;_l.jsx=o0;_l.jsxs=o0;Ym.exports=_l;var OE=Ym.exports,u0={exports:{}},ir={},s0={exports:{}},l0={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var Xv=e=>{throw TypeError(e)};var Ec=(e,t,r)=>t.has(e)||Xv("Cannot "+r);var k=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(U,V){var J=U.length;U.push(V);e:for(;0>>1,te=U[ne];if(0>>1;nei(nt,J))Sei(Le,nt)?(U[ne]=Le,U[Se]=J,ne=Se):(U[ne]=nt,U[_e]=J,ne=_e);else if(Sei(Le,J))U[ne]=Le,U[Se]=J,ne=Se;else break e}}return V}function i(U,V){var J=U.sortIndex-V.sortIndex;return J!==0?J:U.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,f=null,h=3,w=!1,_=!1,b=!1,x=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(U){for(var V=r(u);V!==null;){if(V.callback===null)n(u);else if(V.startTime<=U)n(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=r(u)}}function m(U){if(b=!1,p(U),!_)if(r(l)!==null)_=!0,q(S);else{var V=r(u);V!==null&&ie(m,V.startTime-U)}}function S(U,V){_=!1,b&&(b=!1,y(g),g=-1),w=!0;var J=h;try{for(p(V),f=r(l);f!==null&&(!(f.expirationTime>V)||U&&!T());){var ne=f.callback;if(typeof ne=="function"){f.callback=null,h=f.priorityLevel;var te=ne(f.expirationTime<=V);V=e.unstable_now(),typeof te=="function"?f.callback=te:f===r(l)&&n(l),p(V)}else n(l);f=r(l)}if(f!==null)var le=!0;else{var _e=r(u);_e!==null&&ie(m,_e.startTime-V),le=!1}return le}finally{f=null,h=J,w=!1}}var E=!1,C=null,g=-1,O=5,R=-1;function T(){return!(e.unstable_now()-RU||125ne?(U.sortIndex=J,t(u,U),r(l)===null&&U===r(u)&&(b?(y(g),g=-1):b=!0,ie(m,J-ne))):(U.sortIndex=te,t(l,U),_||w||(_=!0,q(S))),U},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(U){var V=h;return function(){var J=h;h=V;try{return U.apply(this,arguments)}finally{h=J}}}})(s0);u0.exports=s0;var OE=u0.exports;/** + */(function(e){function t(U,V){var J=U.length;U.push(V);e:for(;0>>1,te=U[ne];if(0>>1;nei(nt,J))Sei(Le,nt)?(U[ne]=Le,U[Se]=J,ne=Se):(U[ne]=nt,U[_e]=J,ne=_e);else if(Sei(Le,J))U[ne]=Le,U[Se]=J,ne=Se;else break e}}return V}function i(U,V){var J=U.sortIndex-V.sortIndex;return J!==0?J:U.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,f=null,h=3,w=!1,_=!1,x=!1,b=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(U){for(var V=r(u);V!==null;){if(V.callback===null)n(u);else if(V.startTime<=U)n(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=r(u)}}function m(U){if(x=!1,p(U),!_)if(r(l)!==null)_=!0,q(S);else{var V=r(u);V!==null&&ie(m,V.startTime-U)}}function S(U,V){_=!1,x&&(x=!1,y(g),g=-1),w=!0;var J=h;try{for(p(V),f=r(l);f!==null&&(!(f.expirationTime>V)||U&&!T());){var ne=f.callback;if(typeof ne=="function"){f.callback=null,h=f.priorityLevel;var te=ne(f.expirationTime<=V);V=e.unstable_now(),typeof te=="function"?f.callback=te:f===r(l)&&n(l),p(V)}else n(l);f=r(l)}if(f!==null)var le=!0;else{var _e=r(u);_e!==null&&ie(m,_e.startTime-V),le=!1}return le}finally{f=null,h=J,w=!1}}var E=!1,C=null,g=-1,O=5,R=-1;function T(){return!(e.unstable_now()-RU||125ne?(U.sortIndex=J,t(u,U),r(l)===null&&U===r(u)&&(x?(y(g),g=-1):x=!0,ie(m,J-ne))):(U.sortIndex=te,t(l,U),_||w||(_=!0,q(S))),U},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(U){var V=h;return function(){var J=h;h=V;try{return U.apply(this,arguments)}finally{h=J}}}})(l0);s0.exports=l0;var PE=s0.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var Xv=e=>{throw TypeError(e)};var Ec=(e,t,r)=>t.has(e)||Xv("Cannot "+r);var k=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var PE=v,nr=OE;function W(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wf=Object.prototype.hasOwnProperty,RE=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rp={},np={};function $E(e){return wf.call(np,e)?!0:wf.call(rp,e)?!1:RE.test(e)?np[e]=!0:(rp[e]=!0,!1)}function kE(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function FE(e,t,r,n){if(t===null||typeof t>"u"||kE(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Mt(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var mt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){mt[e]=new Mt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];mt[t]=new Mt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){mt[e]=new Mt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){mt[e]=new Mt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){mt[e]=new Mt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){mt[e]=new Mt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){mt[e]=new Mt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){mt[e]=new Mt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){mt[e]=new Mt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Jd=/[\-:]([a-z])/g;function Xd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Jd,Xd);mt[t]=new Mt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Jd,Xd);mt[t]=new Mt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Jd,Xd);mt[t]=new Mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){mt[e]=new Mt(e,1,!1,e.toLowerCase(),null,!1,!1)});mt.xlinkHref=new Mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){mt[e]=new Mt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zd(e,t,r,n){var i=mt.hasOwnProperty(t)?mt[t]:null;(i!==null?i.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wf=Object.prototype.hasOwnProperty,$E=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rp={},np={};function kE(e){return wf.call(np,e)?!0:wf.call(rp,e)?!1:$E.test(e)?np[e]=!0:(rp[e]=!0,!1)}function FE(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function AE(e,t,r,n){if(t===null||typeof t>"u"||FE(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Mt(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var mt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){mt[e]=new Mt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];mt[t]=new Mt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){mt[e]=new Mt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){mt[e]=new Mt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){mt[e]=new Mt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){mt[e]=new Mt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){mt[e]=new Mt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){mt[e]=new Mt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){mt[e]=new Mt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Jd=/[\-:]([a-z])/g;function Xd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Jd,Xd);mt[t]=new Mt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Jd,Xd);mt[t]=new Mt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Jd,Xd);mt[t]=new Mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){mt[e]=new Mt(e,1,!1,e.toLowerCase(),null,!1,!1)});mt.xlinkHref=new Mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){mt[e]=new Mt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zd(e,t,r,n){var i=mt.hasOwnProperty(t)?mt[t]:null;(i!==null?i.type!==0:n||!(2s||i[o]!==a[s]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{Cc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ko(e):""}function AE(e){switch(e.tag){case 5:return ko(e.type);case 16:return ko("Lazy");case 13:return ko("Suspense");case 19:return ko("SuspenseList");case 0:case 2:case 15:return e=Oc(e.type,!1),e;case 11:return e=Oc(e.type.render,!1),e;case 1:return e=Oc(e.type,!0),e;default:return""}}function bf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case na:return"Fragment";case ra:return"Portal";case _f:return"Profiler";case eh:return"StrictMode";case Sf:return"Suspense";case Ef:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f0:return(e.displayName||"Context")+".Consumer";case c0:return(e._context.displayName||"Context")+".Provider";case th:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rh:return t=e.displayName||null,t!==null?t:bf(e.type)||"Memo";case bn:t=e._payload,e=e._init;try{return bf(e(t))}catch{}}return null}function TE(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return bf(t);case 8:return t===eh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Gn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function h0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function LE(e){var t=h0(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qu(e){e._valueTracker||(e._valueTracker=LE(e))}function v0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=h0(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function $s(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function xf(e,t){var r=t.checked;return Ge({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function ap(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Gn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function p0(e,t){t=t.checked,t!=null&&Zd(e,"checked",t,!1)}function Cf(e,t){p0(e,t);var r=Gn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Of(e,t.type,r):t.hasOwnProperty("defaultValue")&&Of(e,t.type,Gn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function op(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Of(e,t,r){(t!=="number"||$s(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Fo=Array.isArray;function ma(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=qu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function eu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Io={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ME=["Webkit","ms","Moz","O"];Object.keys(Io).forEach(function(e){ME.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Io[t]=Io[e]})});function w0(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Io.hasOwnProperty(e)&&Io[e]?(""+t).trim():t+"px"}function _0(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=w0(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var DE=Ge({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $f(e,t){if(t){if(DE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function kf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ff=null;function nh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Af=null,wa=null,_a=null;function lp(e){if(e=Ru(e)){if(typeof Af!="function")throw Error(W(280));var t=e.stateNode;t&&(t=Cl(t),Af(e.stateNode,e.type,t))}}function S0(e){wa?_a?_a.push(e):_a=[e]:wa=e}function E0(){if(wa){var e=wa,t=_a;if(_a=wa=null,lp(e),t)for(e=0;e>>=0,e===0?32:31-(QE(e)/qE|0)|0}var Gu=64,Yu=4194304;function Ao(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ts(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=Ao(s):(a&=o,a!==0&&(n=Ao(a)))}else o=r&~i,o!==0?n=Ao(o):a!==0&&(n=Ao(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Ou(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Pr(t),e[t]=r}function XE(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=No),mp=" ",wp=!1;function V0(e,t){switch(e){case"keyup":return Ob.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function B0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ia=!1;function Rb(e,t){switch(e){case"compositionend":return B0(t);case"keypress":return t.which!==32?null:(wp=!0,mp);case"textInput":return e=t.data,e===mp&&wp?null:e;default:return null}}function $b(e,t){if(ia)return e==="compositionend"||!fh&&V0(e,t)?(e=U0(),ys=sh=jn=null,ia=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=bp(r)}}function Q0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Q0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function q0(){for(var e=window,t=$s();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=$s(e.document)}return t}function dh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function jb(e){var t=q0(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Q0(r.ownerDocument.documentElement,r)){if(n!==null&&dh(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=xp(r,a);var o=xp(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,aa=null,jf=null,zo=null,Nf=!1;function Cp(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Nf||aa==null||aa!==$s(n)||(n=aa,"selectionStart"in n&&dh(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),zo&&ou(zo,n)||(zo=n,n=Ds(jf,"onSelect"),0sa||(e.current=Hf[sa],Hf[sa]=null,sa--)}function je(e,t){sa++,Hf[sa]=e.current,e.current=t}var Yn={},xt=Zn(Yn),Wt=Zn(!1),Mi=Yn;function Na(e,t){var r=e.type.contextTypes;if(!r)return Yn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ht(e){return e=e.childContextTypes,e!=null}function js(){Ve(Wt),Ve(xt)}function Ap(e,t,r){if(xt.current!==Yn)throw Error(W(168));je(xt,t),je(Wt,r)}function n1(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(W(108,TE(e)||"Unknown",i));return Ge({},r,n)}function Ns(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yn,Mi=xt.current,je(xt,e),je(Wt,Wt.current),!0}function Tp(e,t,r){var n=e.stateNode;if(!n)throw Error(W(169));r?(e=n1(e,t,Mi),n.__reactInternalMemoizedMergedChildContext=e,Ve(Wt),Ve(xt),je(xt,e)):Ve(Wt),je(Wt,r)}var rn=null,Ol=!1,Uc=!1;function i1(e){rn===null?rn=[e]:rn.push(e)}function Yb(e){Ol=!0,i1(e)}function ei(){if(!Uc&&rn!==null){Uc=!0;var e=0,t=Re;try{var r=rn;for(Re=1;e>=o,i-=o,an=1<<32-Pr(t)+i|r<g?(O=C,C=null):O=C.sibling;var R=h(y,C,p[g],m);if(R===null){C===null&&(C=O);break}e&&C&&R.alternate===null&&t(y,C),d=a(R,d,g),E===null?S=R:E.sibling=R,E=R,C=O}if(g===p.length)return r(y,C),He&&fi(y,g),S;if(C===null){for(;gg?(O=C,C=null):O=C.sibling;var T=h(y,C,R.value,m);if(T===null){C===null&&(C=O);break}e&&C&&T.alternate===null&&t(y,C),d=a(T,d,g),E===null?S=T:E.sibling=T,E=T,C=O}if(R.done)return r(y,C),He&&fi(y,g),S;if(C===null){for(;!R.done;g++,R=p.next())R=f(y,R.value,m),R!==null&&(d=a(R,d,g),E===null?S=R:E.sibling=R,E=R);return He&&fi(y,g),S}for(C=n(y,C);!R.done;g++,R=p.next())R=w(C,y,g,R.value,m),R!==null&&(e&&R.alternate!==null&&C.delete(R.key===null?g:R.key),d=a(R,d,g),E===null?S=R:E.sibling=R,E=R);return e&&C.forEach(function(L){return t(y,L)}),He&&fi(y,g),S}function x(y,d,p,m){if(typeof p=="object"&&p!==null&&p.type===na&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Ku:e:{for(var S=p.key,E=d;E!==null;){if(E.key===S){if(S=p.type,S===na){if(E.tag===7){r(y,E.sibling),d=i(E,p.props.children),d.return=y,y=d;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===bn&&Dp(S)===E.type){r(y,E.sibling),d=i(E,p.props),d.ref=So(y,E,p),d.return=y,y=d;break e}r(y,E);break}else t(y,E);E=E.sibling}p.type===na?(d=Ai(p.props.children,y.mode,m,p.key),d.return=y,y=d):(m=xs(p.type,p.key,p.props,null,y.mode,m),m.ref=So(y,d,p),m.return=y,y=m)}return o(y);case ra:e:{for(E=p.key;d!==null;){if(d.key===E)if(d.tag===4&&d.stateNode.containerInfo===p.containerInfo&&d.stateNode.implementation===p.implementation){r(y,d.sibling),d=i(d,p.children||[]),d.return=y,y=d;break e}else{r(y,d);break}else t(y,d);d=d.sibling}d=qc(p,y.mode,m),d.return=y,y=d}return o(y);case bn:return E=p._init,x(y,d,E(p._payload),m)}if(Fo(p))return _(y,d,p,m);if(yo(p))return b(y,d,p,m);ns(y,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,d!==null&&d.tag===6?(r(y,d.sibling),d=i(d,p),d.return=y,y=d):(r(y,d),d=Qc(p,y.mode,m),d.return=y,y=d),o(y)):r(y,d)}return x}var za=s1(!0),l1=s1(!1),Vs=Zn(null),Bs=null,fa=null,yh=null;function gh(){yh=fa=Bs=null}function mh(e){var t=Vs.current;Ve(Vs),e._currentValue=t}function qf(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Ea(e,t){Bs=e,yh=fa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Bt=!0),e.firstContext=null)}function vr(e){var t=e._currentValue;if(yh!==e)if(e={context:e,memoizedValue:t,next:null},fa===null){if(Bs===null)throw Error(W(308));fa=e,Bs.dependencies={lanes:0,firstContext:e}}else fa=fa.next=e;return t}var wi=null;function wh(e){wi===null?wi=[e]:wi.push(e)}function c1(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,wh(t)):(r.next=i.next,i.next=r),t.interleaved=r,hn(e,n)}function hn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var xn=!1;function _h(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function f1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function sn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Hn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,we&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,hn(e,r)}return i=n.interleaved,i===null?(t.next=t,wh(n)):(t.next=i.next,i.next=t),n.interleaved=t,hn(e,r)}function ms(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,ah(e,r)}}function Ip(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ws(e,t,r,n){var i=e.updateQueue;xn=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?a=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;o=0,c=u=l=null,s=a;do{var h=s.lane,w=s.eventTime;if((n&h)===h){c!==null&&(c=c.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var _=e,b=s;switch(h=t,w=r,b.tag){case 1:if(_=b.payload,typeof _=="function"){f=_.call(w,f,h);break e}f=_;break e;case 3:_.flags=_.flags&-65537|128;case 0:if(_=b.payload,h=typeof _=="function"?_.call(w,f,h):_,h==null)break e;f=Ge({},f,h);break e;case 2:xn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[s]:h.push(s))}else w={eventTime:w,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=w,l=f):c=c.next=w,o|=h;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;h=s,s=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);ji|=o,e.lanes=o,e.memoizedState=f}}function jp(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=Vc.transition;Vc.transition={};try{e(!1),t()}finally{Re=r,Vc.transition=n}}function R1(){return pr().memoizedState}function ex(e,t,r){var n=Qn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},$1(e))k1(t,r);else if(r=c1(e,t,r,n),r!==null){var i=At();Rr(r,e,n,i),F1(r,t,n)}}function tx(e,t,r){var n=Qn(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if($1(e))k1(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,$r(s,o)){var l=t.interleaved;l===null?(i.next=i,wh(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=c1(e,t,i,n),r!==null&&(i=At(),Rr(r,e,n,i),F1(r,t,n))}}function $1(e){var t=e.alternate;return e===qe||t!==null&&t===qe}function k1(e,t){Vo=Ks=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function F1(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,ah(e,r)}}var Qs={readContext:vr,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useInsertionEffect:_t,useLayoutEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useMutableSource:_t,useSyncExternalStore:_t,useId:_t,unstable_isNewReconciler:!1},rx={readContext:vr,useCallback:function(e,t){return Mr().memoizedState=[e,t===void 0?null:t],e},useContext:vr,useEffect:Up,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,_s(4194308,4,b1.bind(null,t,e),r)},useLayoutEffect:function(e,t){return _s(4194308,4,e,t)},useInsertionEffect:function(e,t){return _s(4,2,e,t)},useMemo:function(e,t){var r=Mr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Mr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ex.bind(null,qe,e),[n.memoizedState,e]},useRef:function(e){var t=Mr();return e={current:e},t.memoizedState=e},useState:Np,useDebugValue:Rh,useDeferredValue:function(e){return Mr().memoizedState=e},useTransition:function(){var e=Np(!1),t=e[0];return e=Zb.bind(null,e[1]),Mr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=qe,i=Mr();if(He){if(r===void 0)throw Error(W(407));r=r()}else{if(r=t(),vt===null)throw Error(W(349));Ii&30||p1(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Up(g1.bind(null,n,a,e),[e]),n.flags|=2048,vu(9,y1.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Mr(),t=vt.identifierPrefix;if(He){var r=on,n=an;r=(n&~(1<<32-Pr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=du++,0")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{Cc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ko(e):""}function TE(e){switch(e.tag){case 5:return ko(e.type);case 16:return ko("Lazy");case 13:return ko("Suspense");case 19:return ko("SuspenseList");case 0:case 2:case 15:return e=Oc(e.type,!1),e;case 11:return e=Oc(e.type.render,!1),e;case 1:return e=Oc(e.type,!0),e;default:return""}}function bf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case na:return"Fragment";case ra:return"Portal";case _f:return"Profiler";case eh:return"StrictMode";case Sf:return"Suspense";case Ef:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d0:return(e.displayName||"Context")+".Consumer";case f0:return(e._context.displayName||"Context")+".Provider";case th:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rh:return t=e.displayName||null,t!==null?t:bf(e.type)||"Memo";case xn:t=e._payload,e=e._init;try{return bf(e(t))}catch{}}return null}function LE(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return bf(t);case 8:return t===eh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Yn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function v0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ME(e){var t=v0(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qu(e){e._valueTracker||(e._valueTracker=ME(e))}function p0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=v0(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function $s(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function xf(e,t){var r=t.checked;return Ge({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function ap(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Yn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function y0(e,t){t=t.checked,t!=null&&Zd(e,"checked",t,!1)}function Cf(e,t){y0(e,t);var r=Yn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Of(e,t.type,r):t.hasOwnProperty("defaultValue")&&Of(e,t.type,Yn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function op(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Of(e,t,r){(t!=="number"||$s(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Fo=Array.isArray;function ma(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=qu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function eu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Io={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},DE=["Webkit","ms","Moz","O"];Object.keys(Io).forEach(function(e){DE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Io[t]=Io[e]})});function _0(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Io.hasOwnProperty(e)&&Io[e]?(""+t).trim():t+"px"}function S0(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=_0(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var IE=Ge({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $f(e,t){if(t){if(IE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function kf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ff=null;function nh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Af=null,wa=null,_a=null;function lp(e){if(e=Ru(e)){if(typeof Af!="function")throw Error(W(280));var t=e.stateNode;t&&(t=Cl(t),Af(e.stateNode,e.type,t))}}function E0(e){wa?_a?_a.push(e):_a=[e]:wa=e}function b0(){if(wa){var e=wa,t=_a;if(_a=wa=null,lp(e),t)for(e=0;e>>=0,e===0?32:31-(qE(e)/GE|0)|0}var Gu=64,Yu=4194304;function Ao(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ts(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=Ao(s):(a&=o,a!==0&&(n=Ao(a)))}else o=r&~i,o!==0?n=Ao(o):a!==0&&(n=Ao(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Ou(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Rr(t),e[t]=r}function ZE(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=No),mp=" ",wp=!1;function B0(e,t){switch(e){case"keyup":return Pb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function W0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ia=!1;function $b(e,t){switch(e){case"compositionend":return W0(t);case"keypress":return t.which!==32?null:(wp=!0,mp);case"textInput":return e=t.data,e===mp&&wp?null:e;default:return null}}function kb(e,t){if(ia)return e==="compositionend"||!fh&&B0(e,t)?(e=z0(),ys=sh=Un=null,ia=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=bp(r)}}function q0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?q0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function G0(){for(var e=window,t=$s();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=$s(e.document)}return t}function dh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Nb(e){var t=G0(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&q0(r.ownerDocument.documentElement,r)){if(n!==null&&dh(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=xp(r,a);var o=xp(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,aa=null,jf=null,zo=null,Nf=!1;function Cp(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Nf||aa==null||aa!==$s(n)||(n=aa,"selectionStart"in n&&dh(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),zo&&ou(zo,n)||(zo=n,n=Ds(jf,"onSelect"),0sa||(e.current=Hf[sa],Hf[sa]=null,sa--)}function Ne(e,t){sa++,Hf[sa]=e.current,e.current=t}var Jn={},xt=ei(Jn),Wt=ei(!1),Mi=Jn;function Na(e,t){var r=e.type.contextTypes;if(!r)return Jn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ht(e){return e=e.childContextTypes,e!=null}function js(){Be(Wt),Be(xt)}function Ap(e,t,r){if(xt.current!==Jn)throw Error(W(168));Ne(xt,t),Ne(Wt,r)}function i1(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(W(108,LE(e)||"Unknown",i));return Ge({},r,n)}function Ns(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jn,Mi=xt.current,Ne(xt,e),Ne(Wt,Wt.current),!0}function Tp(e,t,r){var n=e.stateNode;if(!n)throw Error(W(169));r?(e=i1(e,t,Mi),n.__reactInternalMemoizedMergedChildContext=e,Be(Wt),Be(xt),Ne(xt,e)):Be(Wt),Ne(Wt,r)}var rn=null,Ol=!1,Uc=!1;function a1(e){rn===null?rn=[e]:rn.push(e)}function Jb(e){Ol=!0,a1(e)}function ti(){if(!Uc&&rn!==null){Uc=!0;var e=0,t=$e;try{var r=rn;for($e=1;e>=o,i-=o,an=1<<32-Rr(t)+i|r<g?(O=C,C=null):O=C.sibling;var R=h(y,C,p[g],m);if(R===null){C===null&&(C=O);break}e&&C&&R.alternate===null&&t(y,C),d=a(R,d,g),E===null?S=R:E.sibling=R,E=R,C=O}if(g===p.length)return r(y,C),He&&di(y,g),S;if(C===null){for(;gg?(O=C,C=null):O=C.sibling;var T=h(y,C,R.value,m);if(T===null){C===null&&(C=O);break}e&&C&&T.alternate===null&&t(y,C),d=a(T,d,g),E===null?S=T:E.sibling=T,E=T,C=O}if(R.done)return r(y,C),He&&di(y,g),S;if(C===null){for(;!R.done;g++,R=p.next())R=f(y,R.value,m),R!==null&&(d=a(R,d,g),E===null?S=R:E.sibling=R,E=R);return He&&di(y,g),S}for(C=n(y,C);!R.done;g++,R=p.next())R=w(C,y,g,R.value,m),R!==null&&(e&&R.alternate!==null&&C.delete(R.key===null?g:R.key),d=a(R,d,g),E===null?S=R:E.sibling=R,E=R);return e&&C.forEach(function(L){return t(y,L)}),He&&di(y,g),S}function b(y,d,p,m){if(typeof p=="object"&&p!==null&&p.type===na&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Ku:e:{for(var S=p.key,E=d;E!==null;){if(E.key===S){if(S=p.type,S===na){if(E.tag===7){r(y,E.sibling),d=i(E,p.props.children),d.return=y,y=d;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===xn&&Dp(S)===E.type){r(y,E.sibling),d=i(E,p.props),d.ref=So(y,E,p),d.return=y,y=d;break e}r(y,E);break}else t(y,E);E=E.sibling}p.type===na?(d=Ai(p.props.children,y.mode,m,p.key),d.return=y,y=d):(m=xs(p.type,p.key,p.props,null,y.mode,m),m.ref=So(y,d,p),m.return=y,y=m)}return o(y);case ra:e:{for(E=p.key;d!==null;){if(d.key===E)if(d.tag===4&&d.stateNode.containerInfo===p.containerInfo&&d.stateNode.implementation===p.implementation){r(y,d.sibling),d=i(d,p.children||[]),d.return=y,y=d;break e}else{r(y,d);break}else t(y,d);d=d.sibling}d=qc(p,y.mode,m),d.return=y,y=d}return o(y);case xn:return E=p._init,b(y,d,E(p._payload),m)}if(Fo(p))return _(y,d,p,m);if(yo(p))return x(y,d,p,m);ns(y,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,d!==null&&d.tag===6?(r(y,d.sibling),d=i(d,p),d.return=y,y=d):(r(y,d),d=Qc(p,y.mode,m),d.return=y,y=d),o(y)):r(y,d)}return b}var za=l1(!0),c1=l1(!1),Vs=ei(null),Bs=null,fa=null,yh=null;function gh(){yh=fa=Bs=null}function mh(e){var t=Vs.current;Be(Vs),e._currentValue=t}function qf(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Ea(e,t){Bs=e,yh=fa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Bt=!0),e.firstContext=null)}function pr(e){var t=e._currentValue;if(yh!==e)if(e={context:e,memoizedValue:t,next:null},fa===null){if(Bs===null)throw Error(W(308));fa=e,Bs.dependencies={lanes:0,firstContext:e}}else fa=fa.next=e;return t}var _i=null;function wh(e){_i===null?_i=[e]:_i.push(e)}function f1(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,wh(t)):(r.next=i.next,i.next=r),t.interleaved=r,vn(e,n)}function vn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Cn=!1;function _h(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function d1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ln(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Kn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,we&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,vn(e,r)}return i=n.interleaved,i===null?(t.next=t,wh(n)):(t.next=i.next,i.next=t),n.interleaved=t,vn(e,r)}function ms(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,ah(e,r)}}function Ip(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ws(e,t,r,n){var i=e.updateQueue;Cn=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?a=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;o=0,c=u=l=null,s=a;do{var h=s.lane,w=s.eventTime;if((n&h)===h){c!==null&&(c=c.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var _=e,x=s;switch(h=t,w=r,x.tag){case 1:if(_=x.payload,typeof _=="function"){f=_.call(w,f,h);break e}f=_;break e;case 3:_.flags=_.flags&-65537|128;case 0:if(_=x.payload,h=typeof _=="function"?_.call(w,f,h):_,h==null)break e;f=Ge({},f,h);break e;case 2:Cn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[s]:h.push(s))}else w={eventTime:w,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=w,l=f):c=c.next=w,o|=h;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;h=s,s=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);ji|=o,e.lanes=o,e.memoizedState=f}}function jp(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=Vc.transition;Vc.transition={};try{e(!1),t()}finally{$e=r,Vc.transition=n}}function $1(){return yr().memoizedState}function tx(e,t,r){var n=qn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},k1(e))F1(t,r);else if(r=f1(e,t,r,n),r!==null){var i=At();$r(r,e,n,i),A1(r,t,n)}}function rx(e,t,r){var n=qn(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(k1(e))F1(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,kr(s,o)){var l=t.interleaved;l===null?(i.next=i,wh(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=f1(e,t,i,n),r!==null&&(i=At(),$r(r,e,n,i),A1(r,t,n))}}function k1(e){var t=e.alternate;return e===qe||t!==null&&t===qe}function F1(e,t){Vo=Ks=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function A1(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,ah(e,r)}}var Qs={readContext:pr,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useInsertionEffect:_t,useLayoutEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useMutableSource:_t,useSyncExternalStore:_t,useId:_t,unstable_isNewReconciler:!1},nx={readContext:pr,useCallback:function(e,t){return Ir().memoizedState=[e,t===void 0?null:t],e},useContext:pr,useEffect:Up,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,_s(4194308,4,x1.bind(null,t,e),r)},useLayoutEffect:function(e,t){return _s(4194308,4,e,t)},useInsertionEffect:function(e,t){return _s(4,2,e,t)},useMemo:function(e,t){var r=Ir();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ir();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=tx.bind(null,qe,e),[n.memoizedState,e]},useRef:function(e){var t=Ir();return e={current:e},t.memoizedState=e},useState:Np,useDebugValue:Rh,useDeferredValue:function(e){return Ir().memoizedState=e},useTransition:function(){var e=Np(!1),t=e[0];return e=ex.bind(null,e[1]),Ir().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=qe,i=Ir();if(He){if(r===void 0)throw Error(W(407));r=r()}else{if(r=t(),vt===null)throw Error(W(349));Ii&30||y1(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Up(m1.bind(null,n,a,e),[e]),n.flags|=2048,vu(9,g1.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Ir(),t=vt.identifierPrefix;if(He){var r=on,n=an;r=(n&~(1<<32-Rr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=du++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[zr]=t,e[lu]=n,z1(e,t,!1,!1),t.stateNode=e;e:{switch(o=kf(r,n),r){case"dialog":Ue("cancel",e),Ue("close",e),i=n;break;case"iframe":case"object":case"embed":Ue("load",e),i=n;break;case"video":case"audio":for(i=0;iWa&&(t.flags|=128,n=!0,Eo(a,!1),t.lanes=4194304)}else{if(!n)if(e=Hs(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Eo(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!He)return St(t),null}else 2*tt()-a.renderingStartTime>Wa&&r!==1073741824&&(t.flags|=128,n=!0,Eo(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=tt(),t.sibling=null,r=Qe.current,je(Qe,n?r&1|2:r&1),t):(St(t),null);case 22:case 23:return Lh(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Zt&1073741824&&(St(t),t.subtreeFlags&6&&(t.flags|=8192)):St(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function cx(e,t){switch(vh(t),t.tag){case 1:return Ht(t.type)&&js(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Va(),Ve(Wt),Ve(xt),bh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Eh(t),null;case 13:if(Ve(Qe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ve(Qe),null;case 4:return Va(),null;case 10:return mh(t.type._context),null;case 22:case 23:return Lh(),null;case 24:return null;default:return null}}var as=!1,bt=!1,fx=typeof WeakSet=="function"?WeakSet:Set,ee=null;function da(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Xe(e,t,n)}else r.current=null}function nd(e,t,r){try{r()}catch(n){Xe(e,t,n)}}var Jp=!1;function dx(e,t){if(Uf=Ls,e=q0(),dh(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,c=0,f=e,h=null;t:for(;;){for(var w;f!==r||i!==0&&f.nodeType!==3||(s=o+i),f!==a||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(w=f.firstChild)!==null;)h=f,f=w;for(;;){if(f===e)break t;if(h===r&&++u===i&&(s=o),h===a&&++c===n&&(l=o),(w=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=w}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(zf={focusedElem:e,selectionRange:r},Ls=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var b=_.memoizedProps,x=_.memoizedState,y=t.stateNode,d=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:_r(t.type,b),x);y.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(m){Xe(t,t.return,m)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return _=Jp,Jp=!1,_}function Bo(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&nd(t,r,a)}i=i.next}while(i!==n)}}function $l(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function id(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function W1(e){var t=e.alternate;t!==null&&(e.alternate=null,W1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zr],delete t[lu],delete t[Wf],delete t[qb],delete t[Gb])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function H1(e){return e.tag===5||e.tag===3||e.tag===4}function Xp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||H1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ad(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Is));else if(n!==4&&(e=e.child,e!==null))for(ad(e,t,r),e=e.sibling;e!==null;)ad(e,t,r),e=e.sibling}function od(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(od(e,t,r),e=e.sibling;e!==null;)od(e,t,r),e=e.sibling}var yt=null,Er=!1;function _n(e,t,r){for(r=r.child;r!==null;)K1(e,t,r),r=r.sibling}function K1(e,t,r){if(Wr&&typeof Wr.onCommitFiberUnmount=="function")try{Wr.onCommitFiberUnmount(Sl,r)}catch{}switch(r.tag){case 5:bt||da(r,t);case 6:var n=yt,i=Er;yt=null,_n(e,t,r),yt=n,Er=i,yt!==null&&(Er?(e=yt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):yt.removeChild(r.stateNode));break;case 18:yt!==null&&(Er?(e=yt,r=r.stateNode,e.nodeType===8?Nc(e.parentNode,r):e.nodeType===1&&Nc(e,r),iu(e)):Nc(yt,r.stateNode));break;case 4:n=yt,i=Er,yt=r.stateNode.containerInfo,Er=!0,_n(e,t,r),yt=n,Er=i;break;case 0:case 11:case 14:case 15:if(!bt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&nd(r,t,o),i=i.next}while(i!==n)}_n(e,t,r);break;case 1:if(!bt&&(da(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Xe(r,t,s)}_n(e,t,r);break;case 21:_n(e,t,r);break;case 22:r.mode&1?(bt=(n=bt)||r.memoizedState!==null,_n(e,t,r),bt=n):_n(e,t,r);break;default:_n(e,t,r)}}function Zp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new fx),t.forEach(function(n){var i=Sx.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function wr(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=tt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*vx(n/1960))-n,10e?16:e,Nn===null)var n=!1;else{if(e=Nn,Nn=null,Ys=0,we&6)throw Error(W(331));var i=we;for(we|=4,ee=e.current;ee!==null;){var a=ee,o=a.child;if(ee.flags&16){var s=a.deletions;if(s!==null){for(var l=0;ltt()-Ah?Fi(e,0):Fh|=r),Kt(e,t)}function ew(e,t){t===0&&(e.mode&1?(t=Yu,Yu<<=1,!(Yu&130023424)&&(Yu=4194304)):t=1);var r=At();e=hn(e,t),e!==null&&(Ou(e,t,r),Kt(e,r))}function _x(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),ew(e,r)}function Sx(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(W(314))}n!==null&&n.delete(t),ew(e,r)}var tw;tw=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Wt.current)Bt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Bt=!1,sx(e,t,r);Bt=!!(e.flags&131072)}else Bt=!1,He&&t.flags&1048576&&a1(t,zs,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ss(e,t),e=t.pendingProps;var i=Na(t,xt.current);Ea(t,r),i=Ch(null,t,n,e,i,r);var a=Oh();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ht(n)?(a=!0,Ns(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,_h(t),i.updater=Rl,t.stateNode=i,i._reactInternals=t,Yf(t,n,e,r),t=Zf(null,t,n,!0,a,r)):(t.tag=0,He&&a&&hh(t),kt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ss(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=bx(n),e=_r(n,e),i){case 0:t=Xf(null,t,n,e,r);break e;case 1:t=qp(null,t,n,e,r);break e;case 11:t=Kp(null,t,n,e,r);break e;case 14:t=Qp(null,t,n,_r(n.type,e),r);break e}throw Error(W(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:_r(n,i),Xf(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:_r(n,i),qp(e,t,n,i,r);case 3:e:{if(j1(t),e===null)throw Error(W(387));n=t.pendingProps,a=t.memoizedState,i=a.element,f1(e,t),Ws(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Ba(Error(W(423)),t),t=Gp(e,t,n,r,i);break e}else if(n!==i){i=Ba(Error(W(424)),t),t=Gp(e,t,n,r,i);break e}else for(tr=Wn(t.stateNode.containerInfo.firstChild),rr=t,He=!0,xr=null,r=l1(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ua(),n===i){t=vn(e,t,r);break e}kt(e,t,n,r)}t=t.child}return t;case 5:return d1(t),e===null&&Qf(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Vf(n,i)?o=null:a!==null&&Vf(n,a)&&(t.flags|=32),I1(e,t),kt(e,t,o,r),t.child;case 6:return e===null&&Qf(t),null;case 13:return N1(e,t,r);case 4:return Sh(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=za(t,null,n,r):kt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:_r(n,i),Kp(e,t,n,i,r);case 7:return kt(e,t,t.pendingProps,r),t.child;case 8:return kt(e,t,t.pendingProps.children,r),t.child;case 12:return kt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,je(Vs,n._currentValue),n._currentValue=o,a!==null)if($r(a.value,o)){if(a.children===i.children&&!Wt.current){t=vn(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=sn(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),qf(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(W(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),qf(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}kt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Ea(t,r),i=vr(i),n=n(i),t.flags|=1,kt(e,t,n,r),t.child;case 14:return n=t.type,i=_r(n,t.pendingProps),i=_r(n.type,i),Qp(e,t,n,i,r);case 15:return M1(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:_r(n,i),Ss(e,t),t.tag=1,Ht(n)?(e=!0,Ns(t)):e=!1,Ea(t,r),A1(t,n,i),Yf(t,n,i,r),Zf(null,t,n,!0,e,r);case 19:return U1(e,t,r);case 22:return D1(e,t,r)}throw Error(W(156,t.tag))};function rw(e,t){return $0(e,t)}function Ex(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dr(e,t,r,n){return new Ex(e,t,r,n)}function Dh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bx(e){if(typeof e=="function")return Dh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===th)return 11;if(e===rh)return 14}return 2}function qn(e,t){var r=e.alternate;return r===null?(r=dr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function xs(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")Dh(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case na:return Ai(r.children,i,a,t);case eh:o=8,i|=8;break;case _f:return e=dr(12,r,t,i|2),e.elementType=_f,e.lanes=a,e;case Sf:return e=dr(13,r,t,i),e.elementType=Sf,e.lanes=a,e;case Ef:return e=dr(19,r,t,i),e.elementType=Ef,e.lanes=a,e;case d0:return Fl(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case c0:o=10;break e;case f0:o=9;break e;case th:o=11;break e;case rh:o=14;break e;case bn:o=16,n=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=dr(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Ai(e,t,r,n){return e=dr(7,e,n,t),e.lanes=r,e}function Fl(e,t,r,n){return e=dr(22,e,n,t),e.elementType=d0,e.lanes=r,e.stateNode={isHidden:!1},e}function Qc(e,t,r){return e=dr(6,e,null,t),e.lanes=r,e}function qc(e,t,r){return t=dr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xx(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Rc(0),this.expirationTimes=Rc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rc(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ih(e,t,r,n,i,a,o,s,l){return e=new xx(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=dr(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},_h(a),e}function Cx(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ow)}catch(e){console.error(e)}}ow(),o0.exports=ir;var uw=o0.exports;const kx=Tt(uw),Fx=qm({__proto__:null,default:kx},[uw]);var zh=v.createContext(void 0);zh.displayName="AuthContext";var Dl={loginUrl:"/login",afterLoginUrl:"/"},ti=function(){return v.useContext(zh)},Ja=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ha=typeof window>"u"||"Deno"in globalThis;function sr(){}function Ax(e,t){return typeof e=="function"?e(t):e}function fd(e){return typeof e=="number"&&e>=0&&e!==1/0}function sw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function xa(e,t){return typeof e=="function"?e(t):e}function Cr(e,t){return typeof e=="function"?e(t):e}function uy(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(n){if(t.queryHash!==Vh(o,t.options))return!1}else if(!yu(t.queryKey,o))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function sy(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(Ui(t.options.mutationKey)!==Ui(a))return!1}else if(!yu(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function Vh(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ui)(e)}function Ui(e){return JSON.stringify(e,(t,r)=>dd(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function yu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!yu(e[r],t[r])):!1}function lw(e,t){if(e===t)return e;const r=ly(e)&&ly(t);if(r||dd(e)&&dd(t)){const n=r?e:Object.keys(e),i=n.length,a=r?t:Object.keys(t),o=a.length,s=r?[]:{};let l=0;for(let u=0;u{setTimeout(t,e)})}function hd(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?lw(e,t):t}function Lx(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Mx(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var cw=Symbol();function fw(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===cw?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var xi,kn,Ca,jm,Dx=(jm=class extends Ja{constructor(){super();ue(this,xi);ue(this,kn);ue(this,Ca);Z(this,Ca,t=>{if(!Ha&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){k(this,kn)||this.setEventListener(k(this,Ca))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,kn))==null||t.call(this),Z(this,kn,void 0))}setEventListener(t){var r;Z(this,Ca,t),(r=k(this,kn))==null||r.call(this),Z(this,kn,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){k(this,xi)!==t&&(Z(this,xi,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof k(this,xi)=="boolean"?k(this,xi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},xi=new WeakMap,kn=new WeakMap,Ca=new WeakMap,jm),Bh=new Dx,Oa,Fn,Pa,Nm,Ix=(Nm=class extends Ja{constructor(){super();ue(this,Oa,!0);ue(this,Fn);ue(this,Pa);Z(this,Pa,t=>{if(!Ha&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){k(this,Fn)||this.setEventListener(k(this,Pa))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Fn))==null||t.call(this),Z(this,Fn,void 0))}setEventListener(t){var r;Z(this,Pa,t),(r=k(this,Fn))==null||r.call(this),Z(this,Fn,t(this.setOnline.bind(this)))}setOnline(t){k(this,Oa)!==t&&(Z(this,Oa,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return k(this,Oa)}},Oa=new WeakMap,Fn=new WeakMap,Pa=new WeakMap,Nm),el=new Ix;function jx(e){return Math.min(1e3*2**e,3e4)}function dw(e){return(e??"online")==="online"?el.isOnline():!0}var hw=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Gc(e){return e instanceof hw}function vw(e){let t=!1,r=0,n=!1,i,a,o;const s=new Promise((y,d)=>{a=y,o=d}),l=y=>{var d;n||(_(new hw(y)),(d=e.abort)==null||d.call(e))},u=()=>{t=!0},c=()=>{t=!1},f=()=>Bh.isFocused()&&(e.networkMode==="always"||el.isOnline())&&e.canRun(),h=()=>dw(e.networkMode)&&e.canRun(),w=y=>{var d;n||(n=!0,(d=e.onSuccess)==null||d.call(e,y),i==null||i(),a(y))},_=y=>{var d;n||(n=!0,(d=e.onError)==null||d.call(e,y),i==null||i(),o(y))},b=()=>new Promise(y=>{var d;i=p=>{(n||f())&&y(p)},(d=e.onPause)==null||d.call(e)}).then(()=>{var y;i=void 0,n||(y=e.onContinue)==null||y.call(e)}),x=()=>{if(n)return;let y;const d=r===0?e.initialPromise:void 0;try{y=d??e.fn()}catch(p){y=Promise.reject(p)}Promise.resolve(y).then(w).catch(p=>{var g;if(n)return;const m=e.retry??(Ha?0:3),S=e.retryDelay??jx,E=typeof S=="function"?S(r,p):S,C=m===!0||typeof m=="number"&&rf()?void 0:b()).then(()=>{t?_(p):x()})})};return{promise:s,cancel:l,continue:()=>(i==null||i(),s),cancelRetry:u,continueRetry:c,canStart:h,start:()=>(h()?x():b().then(x),s)}}function Nx(){let e=[],t=0,r=h=>{h()},n=h=>{h()},i=h=>setTimeout(h,0);const a=h=>{i=h},o=h=>{let w;t++;try{w=h()}finally{t--,t||u()}return w},s=h=>{t?e.push(h):i(()=>{r(h)})},l=h=>(...w)=>{s(()=>{h(...w)})},u=()=>{const h=e;e=[],h.length&&i(()=>{n(()=>{h.forEach(w=>{r(w)})})})};return{batch:o,batchCalls:l,schedule:s,setNotifyFunction:h=>{r=h},setBatchNotifyFunction:h=>{n=h},setScheduler:a}}var rt=Nx(),Ci,Um,pw=(Um=class{constructor(){ue(this,Ci)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),fd(this.gcTime)&&Z(this,Ci,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ha?1/0:5*60*1e3))}clearGcTimeout(){k(this,Ci)&&(clearTimeout(k(this,Ci)),Z(this,Ci,void 0))}},Ci=new WeakMap,Um),Ra,$a,ur,Et,Su,Oi,Sr,en,zm,Ux=(zm=class extends pw{constructor(t){super();ue(this,Sr);ue(this,Ra);ue(this,$a);ue(this,ur);ue(this,Et);ue(this,Su);ue(this,Oi);Z(this,Oi,!1),Z(this,Su,t.defaultOptions),this.setOptions(t.options),this.observers=[],Z(this,ur,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Z(this,Ra,zx(this.options)),this.state=t.state??k(this,Ra),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,Et))==null?void 0:t.promise}setOptions(t){this.options={...k(this,Su),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,ur).remove(this)}setData(t,r){const n=hd(this.state.data,t,this.options);return ve(this,Sr,en).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){ve(this,Sr,en).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=k(this,Et))==null?void 0:n.promise;return(i=k(this,Et))==null||i.cancel(t),r?r.then(sr).catch(sr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,Ra))}isActive(){return this.observers.some(t=>Cr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!sw(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=k(this,Et))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=k(this,Et))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,ur).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(k(this,Et)&&(k(this,Oi)?k(this,Et).cancel({revert:!0}):k(this,Et).cancelRetry()),this.scheduleGc()),k(this,ur).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ve(this,Sr,en).call(this,{type:"invalidate"})}fetch(t,r){var l,u,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(k(this,Et))return k(this,Et).continueRetry(),k(this,Et).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(Z(this,Oi,!0),n.signal)})},a=()=>{const f=fw(this.options,r),h={queryKey:this.queryKey,meta:this.meta};return i(h),Z(this,Oi,!1),this.options.persister?this.options.persister(f,h,this):f(h)},o={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(o),(l=this.options.behavior)==null||l.onFetch(o,this),Z(this,$a,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=o.fetchOptions)==null?void 0:u.meta))&&ve(this,Sr,en).call(this,{type:"fetch",meta:(c=o.fetchOptions)==null?void 0:c.meta});const s=f=>{var h,w,_,b;Gc(f)&&f.silent||ve(this,Sr,en).call(this,{type:"error",error:f}),Gc(f)||((w=(h=k(this,ur).config).onError)==null||w.call(h,f,this),(b=(_=k(this,ur).config).onSettled)==null||b.call(_,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Z(this,Et,vw({initialPromise:r==null?void 0:r.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var h,w,_,b;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}this.setData(f),(w=(h=k(this,ur).config).onSuccess)==null||w.call(h,f,this),(b=(_=k(this,ur).config).onSettled)==null||b.call(_,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(f,h)=>{ve(this,Sr,en).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{ve(this,Sr,en).call(this,{type:"pause"})},onContinue:()=>{ve(this,Sr,en).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),k(this,Et).start()}},Ra=new WeakMap,$a=new WeakMap,ur=new WeakMap,Et=new WeakMap,Su=new WeakMap,Oi=new WeakMap,Sr=new WeakSet,en=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...yw(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Gc(i)&&i.revert&&k(this,$a)?{...k(this,$a),fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),rt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),k(this,ur).notify({query:this,type:"updated",action:t})})},zm);function yw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function zx(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Dr,Vm,Vx=(Vm=class extends Ja{constructor(t={}){super();ue(this,Dr);this.config=t,Z(this,Dr,new Map)}build(t,r,n){const i=r.queryKey,a=r.queryHash??Vh(i,r);let o=this.get(a);return o||(o=new Ux({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){k(this,Dr).has(t.queryHash)||(k(this,Dr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=k(this,Dr).get(t.queryHash);r&&(t.destroy(),r===t&&k(this,Dr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){rt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,Dr).get(t)}getAll(){return[...k(this,Dr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>uy(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>uy(t,n)):r}notify(t){rt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){rt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){rt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Dr=new WeakMap,Vm),Ir,Pt,Pi,jr,Sn,Bm,Bx=(Bm=class extends pw{constructor(t){super();ue(this,jr);ue(this,Ir);ue(this,Pt);ue(this,Pi);this.mutationId=t.mutationId,Z(this,Pt,t.mutationCache),Z(this,Ir,[]),this.state=t.state||gw(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,Ir).includes(t)||(k(this,Ir).push(t),this.clearGcTimeout(),k(this,Pt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Z(this,Ir,k(this,Ir).filter(r=>r!==t)),this.scheduleGc(),k(this,Pt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,Ir).length||(this.state.status==="pending"?this.scheduleGc():k(this,Pt).remove(this))}continue(){var t;return((t=k(this,Pi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,o,s,l,u,c,f,h,w,_,b,x,y,d,p,m,S,E,C;Z(this,Pi,vw({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(g,O)=>{ve(this,jr,Sn).call(this,{type:"failed",failureCount:g,error:O})},onPause:()=>{ve(this,jr,Sn).call(this,{type:"pause"})},onContinue:()=>{ve(this,jr,Sn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,Pt).canRun(this)}));const r=this.state.status==="pending",n=!k(this,Pi).canStart();try{if(!r){ve(this,jr,Sn).call(this,{type:"pending",variables:t,isPaused:n}),await((a=(i=k(this,Pt).config).onMutate)==null?void 0:a.call(i,t,this));const O=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t));O!==this.state.context&&ve(this,jr,Sn).call(this,{type:"pending",context:O,variables:t,isPaused:n})}const g=await k(this,Pi).start();return await((u=(l=k(this,Pt).config).onSuccess)==null?void 0:u.call(l,g,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,g,t,this.state.context)),await((w=(h=k(this,Pt).config).onSettled)==null?void 0:w.call(h,g,null,this.state.variables,this.state.context,this)),await((b=(_=this.options).onSettled)==null?void 0:b.call(_,g,null,t,this.state.context)),ve(this,jr,Sn).call(this,{type:"success",data:g}),g}catch(g){try{throw await((y=(x=k(this,Pt).config).onError)==null?void 0:y.call(x,g,t,this.state.context,this)),await((p=(d=this.options).onError)==null?void 0:p.call(d,g,t,this.state.context)),await((S=(m=k(this,Pt).config).onSettled)==null?void 0:S.call(m,void 0,g,this.state.variables,this.state.context,this)),await((C=(E=this.options).onSettled)==null?void 0:C.call(E,void 0,g,t,this.state.context)),g}finally{ve(this,jr,Sn).call(this,{type:"error",error:g})}}finally{k(this,Pt).runNext(this)}}},Ir=new WeakMap,Pt=new WeakMap,Pi=new WeakMap,jr=new WeakSet,Sn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),rt.batch(()=>{k(this,Ir).forEach(n=>{n.onMutationUpdate(t)}),k(this,Pt).notify({mutation:this,type:"updated",action:t})})},Bm);function gw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xt,Eu,Wm,Wx=(Wm=class extends Ja{constructor(t={}){super();ue(this,Xt);ue(this,Eu);this.config=t,Z(this,Xt,new Map),Z(this,Eu,Date.now())}build(t,r,n){const i=new Bx({mutationCache:this,mutationId:++Wu(this,Eu)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){const r=ss(t),n=k(this,Xt).get(r)??[];n.push(t),k(this,Xt).set(r,n),this.notify({type:"added",mutation:t})}remove(t){var n;const r=ss(t);if(k(this,Xt).has(r)){const i=(n=k(this,Xt).get(r))==null?void 0:n.filter(a=>a!==t);i&&(i.length===0?k(this,Xt).delete(r):k(this,Xt).set(r,i))}this.notify({type:"removed",mutation:t})}canRun(t){var n;const r=(n=k(this,Xt).get(ss(t)))==null?void 0:n.find(i=>i.state.status==="pending");return!r||r===t}runNext(t){var n;const r=(n=k(this,Xt).get(ss(t)))==null?void 0:n.find(i=>i!==t&&i.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){rt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...k(this,Xt).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(n=>sy(r,n))}findAll(t={}){return this.getAll().filter(r=>sy(t,r))}notify(t){rt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return rt.batch(()=>Promise.all(t.map(r=>r.continue().catch(sr))))}},Xt=new WeakMap,Eu=new WeakMap,Wm);function ss(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Hx(e){return{onFetch:(t,r)=>{const n=async()=>{var _,b,x,y,d;const i=t.options,a=(x=(b=(_=t.fetchOptions)==null?void 0:_.meta)==null?void 0:b.fetchMore)==null?void 0:x.direction,o=((y=t.state.data)==null?void 0:y.pages)||[],s=((d=t.state.data)==null?void 0:d.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},f=fw(t.options,t.fetchOptions),h=async(p,m,S)=>{if(u)return Promise.reject();if(m==null&&p.pages.length)return Promise.resolve(p);const E={queryKey:t.queryKey,pageParam:m,direction:S?"backward":"forward",meta:t.options.meta};c(E);const C=await f(E),{maxPages:g}=t.options,O=S?Mx:Lx;return{pages:O(p.pages,C,g),pageParams:O(p.pageParams,m,g)}};let w;if(a&&o.length){const p=a==="backward",m=p?Kx:fy,S={pages:o,pageParams:s},E=m(i,S);w=await h(S,E,p)}else{w=await h(l,s[0]??i.initialPageParam);const p=e??o.length;for(let m=1;m{var i,a;return(a=(i=t.options).persister)==null?void 0:a.call(i,n,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=n}}}function fy(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Kx(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Je,An,Tn,ka,Fa,Ln,Aa,Ta,Hm,Qx=(Hm=class{constructor(e={}){ue(this,Je);ue(this,An);ue(this,Tn);ue(this,ka);ue(this,Fa);ue(this,Ln);ue(this,Aa);ue(this,Ta);Z(this,Je,e.queryCache||new Vx),Z(this,An,e.mutationCache||new Wx),Z(this,Tn,e.defaultOptions||{}),Z(this,ka,new Map),Z(this,Fa,new Map),Z(this,Ln,0)}mount(){Wu(this,Ln)._++,k(this,Ln)===1&&(Z(this,Aa,Bh.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Je).onFocus())})),Z(this,Ta,el.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Je).onOnline())})))}unmount(){var e,t;Wu(this,Ln)._--,k(this,Ln)===0&&((e=k(this,Aa))==null||e.call(this),Z(this,Aa,void 0),(t=k(this,Ta))==null||t.call(this),Z(this,Ta,void 0))}isFetching(e){return k(this,Je).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,An).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=k(this,Je).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=k(this,Je).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(xa(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return k(this,Je).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=k(this,Je).get(n.queryHash),a=i==null?void 0:i.state.data,o=Ax(t,a);if(o!==void 0)return k(this,Je).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return rt.batch(()=>k(this,Je).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=k(this,Je).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=k(this,Je);rt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=k(this,Je),n={type:"active",...e};return rt.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=rt.batch(()=>k(this,Je).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(sr).catch(sr)}invalidateQueries(e={},t={}){return rt.batch(()=>{if(k(this,Je).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=rt.batch(()=>k(this,Je).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch(sr)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(sr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=k(this,Je).build(this,t);return r.isStaleByTime(xa(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(sr).catch(sr)}fetchInfiniteQuery(e){return e.behavior=Hx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(sr).catch(sr)}resumePausedMutations(){return el.isOnline()?k(this,An).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,Je)}getMutationCache(){return k(this,An)}getDefaultOptions(){return k(this,Tn)}setDefaultOptions(e){Z(this,Tn,e)}setQueryDefaults(e,t){k(this,ka).set(Ui(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,ka).values()];let r={};return t.forEach(n=>{yu(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){k(this,Fa).set(Ui(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,Fa).values()];let r={};return t.forEach(n=>{yu(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,Tn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vh(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===cw&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,Tn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,Je).clear(),k(this,An).clear()}},Je=new WeakMap,An=new WeakMap,Tn=new WeakMap,ka=new WeakMap,Fa=new WeakMap,Ln=new WeakMap,Aa=new WeakMap,Ta=new WeakMap,Hm),jt,ge,bu,Rt,Ri,La,Nr,xu,Ma,Da,$i,ki,Mn,Ia,Oe,Lo,vd,pd,yd,gd,md,wd,_d,mw,Km,qx=(Km=class extends Ja{constructor(t,r){super();ue(this,Oe);ue(this,jt);ue(this,ge);ue(this,bu);ue(this,Rt);ue(this,Ri);ue(this,La);ue(this,Nr);ue(this,xu);ue(this,Ma);ue(this,Da);ue(this,$i);ue(this,ki);ue(this,Mn);ue(this,Ia,new Set);this.options=r,Z(this,jt,t),Z(this,Nr,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,ge).addObserver(this),dy(k(this,ge),this.options)?ve(this,Oe,Lo).call(this):this.updateResult(),ve(this,Oe,gd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Sd(k(this,ge),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Sd(k(this,ge),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ve(this,Oe,md).call(this),ve(this,Oe,wd).call(this),k(this,ge).removeObserver(this)}setOptions(t,r){const n=this.options,i=k(this,ge);if(this.options=k(this,jt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Cr(this.options.enabled,k(this,ge))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ve(this,Oe,_d).call(this),k(this,ge).setOptions(this.options),n._defaulted&&!Zs(this.options,n)&&k(this,jt).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,ge),observer:this});const a=this.hasListeners();a&&hy(k(this,ge),i,this.options,n)&&ve(this,Oe,Lo).call(this),this.updateResult(r),a&&(k(this,ge)!==i||Cr(this.options.enabled,k(this,ge))!==Cr(n.enabled,k(this,ge))||xa(this.options.staleTime,k(this,ge))!==xa(n.staleTime,k(this,ge)))&&ve(this,Oe,vd).call(this);const o=ve(this,Oe,pd).call(this);a&&(k(this,ge)!==i||Cr(this.options.enabled,k(this,ge))!==Cr(n.enabled,k(this,ge))||o!==k(this,Mn))&&ve(this,Oe,yd).call(this,o)}getOptimisticResult(t){const r=k(this,jt).getQueryCache().build(k(this,jt),t),n=this.createResult(r,t);return Yx(this,n)&&(Z(this,Rt,n),Z(this,La,this.options),Z(this,Ri,k(this,ge).state)),n}getCurrentResult(){return k(this,Rt)}trackResult(t,r){const n={};return Object.keys(t).forEach(i=>{Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),r==null||r(i),t[i])})}),n}trackProp(t){k(this,Ia).add(t)}getCurrentQuery(){return k(this,ge)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=k(this,jt).defaultQueryOptions(t),n=k(this,jt).getQueryCache().build(k(this,jt),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){return ve(this,Oe,Lo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Rt)))}createResult(t,r){var C;const n=k(this,ge),i=this.options,a=k(this,Rt),o=k(this,Ri),s=k(this,La),u=t!==n?t.state:k(this,bu),{state:c}=t;let f={...c},h=!1,w;if(r._optimisticResults){const g=this.hasListeners(),O=!g&&dy(t,r),R=g&&hy(t,n,r,i);(O||R)&&(f={...f,...yw(c.data,t.options)}),r._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:_,errorUpdatedAt:b,status:x}=f;if(r.select&&f.data!==void 0)if(a&&f.data===(o==null?void 0:o.data)&&r.select===k(this,xu))w=k(this,Ma);else try{Z(this,xu,r.select),w=r.select(f.data),w=hd(a==null?void 0:a.data,w,r),Z(this,Ma,w),Z(this,Nr,null)}catch(g){Z(this,Nr,g)}else w=f.data;if(r.placeholderData!==void 0&&w===void 0&&x==="pending"){let g;if(a!=null&&a.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))g=a.data;else if(g=typeof r.placeholderData=="function"?r.placeholderData((C=k(this,Da))==null?void 0:C.state.data,k(this,Da)):r.placeholderData,r.select&&g!==void 0)try{g=r.select(g),Z(this,Nr,null)}catch(O){Z(this,Nr,O)}g!==void 0&&(x="success",w=hd(a==null?void 0:a.data,g,r),h=!0)}k(this,Nr)&&(_=k(this,Nr),w=k(this,Ma),b=Date.now(),x="error");const y=f.fetchStatus==="fetching",d=x==="pending",p=x==="error",m=d&&y,S=w!==void 0;return{status:x,fetchStatus:f.fetchStatus,isPending:d,isSuccess:x==="success",isError:p,isInitialLoading:m,isLoading:m,data:w,dataUpdatedAt:f.dataUpdatedAt,error:_,errorUpdatedAt:b,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&!d,isLoadingError:p&&!S,isPaused:f.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:p&&S,isStale:Wh(t,r),refetch:this.refetch}}updateResult(t){const r=k(this,Rt),n=this.createResult(k(this,ge),this.options);if(Z(this,Ri,k(this,ge).state),Z(this,La,this.options),k(this,Ri).data!==void 0&&Z(this,Da,k(this,ge)),Zs(n,r))return;Z(this,Rt,n);const i={},a=()=>{if(!r)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!k(this,Ia).size)return!0;const l=new Set(s??k(this,Ia));return this.options.throwOnError&&l.add("error"),Object.keys(k(this,Rt)).some(u=>{const c=u;return k(this,Rt)[c]!==r[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),ve(this,Oe,mw).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ve(this,Oe,gd).call(this)}},jt=new WeakMap,ge=new WeakMap,bu=new WeakMap,Rt=new WeakMap,Ri=new WeakMap,La=new WeakMap,Nr=new WeakMap,xu=new WeakMap,Ma=new WeakMap,Da=new WeakMap,$i=new WeakMap,ki=new WeakMap,Mn=new WeakMap,Ia=new WeakMap,Oe=new WeakSet,Lo=function(t){ve(this,Oe,_d).call(this);let r=k(this,ge).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(sr)),r},vd=function(){ve(this,Oe,md).call(this);const t=xa(this.options.staleTime,k(this,ge));if(Ha||k(this,Rt).isStale||!fd(t))return;const n=sw(k(this,Rt).dataUpdatedAt,t)+1;Z(this,$i,setTimeout(()=>{k(this,Rt).isStale||this.updateResult()},n))},pd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,ge)):this.options.refetchInterval)??!1},yd=function(t){ve(this,Oe,wd).call(this),Z(this,Mn,t),!(Ha||Cr(this.options.enabled,k(this,ge))===!1||!fd(k(this,Mn))||k(this,Mn)===0)&&Z(this,ki,setInterval(()=>{(this.options.refetchIntervalInBackground||Bh.isFocused())&&ve(this,Oe,Lo).call(this)},k(this,Mn)))},gd=function(){ve(this,Oe,vd).call(this),ve(this,Oe,yd).call(this,ve(this,Oe,pd).call(this))},md=function(){k(this,$i)&&(clearTimeout(k(this,$i)),Z(this,$i,void 0))},wd=function(){k(this,ki)&&(clearInterval(k(this,ki)),Z(this,ki,void 0))},_d=function(){const t=k(this,jt).getQueryCache().build(k(this,jt),this.options);if(t===k(this,ge))return;const r=k(this,ge);Z(this,ge,t),Z(this,bu,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},mw=function(t){rt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(k(this,Rt))}),k(this,jt).getQueryCache().notify({query:k(this,ge),type:"observerResultsUpdated"})})},Km);function Gx(e,t){return Cr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function dy(e,t){return Gx(e,t)||e.state.data!==void 0&&Sd(e,t,t.refetchOnMount)}function Sd(e,t,r){if(Cr(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Wh(e,t)}return!1}function hy(e,t,r,n){return(e!==t||Cr(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Wh(e,r)}function Wh(e,t){return Cr(t.enabled,e)!==!1&&e.isStaleByTime(xa(t.staleTime,e))}function Yx(e,t){return!Zs(e.getCurrentResult(),t)}var Dn,In,Nt,nn,cn,Cs,Ed,Qm,Jx=(Qm=class extends Ja{constructor(t,r){super();ue(this,cn);ue(this,Dn);ue(this,In);ue(this,Nt);ue(this,nn);Z(this,Dn,t),this.setOptions(r),this.bindMethods(),ve(this,cn,Cs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=k(this,Dn).defaultMutationOptions(t),Zs(this.options,r)||k(this,Dn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Nt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ui(r.mutationKey)!==Ui(this.options.mutationKey)?this.reset():((n=k(this,Nt))==null?void 0:n.state.status)==="pending"&&k(this,Nt).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=k(this,Nt))==null||t.removeObserver(this)}onMutationUpdate(t){ve(this,cn,Cs).call(this),ve(this,cn,Ed).call(this,t)}getCurrentResult(){return k(this,In)}reset(){var t;(t=k(this,Nt))==null||t.removeObserver(this),Z(this,Nt,void 0),ve(this,cn,Cs).call(this),ve(this,cn,Ed).call(this)}mutate(t,r){var n;return Z(this,nn,r),(n=k(this,Nt))==null||n.removeObserver(this),Z(this,Nt,k(this,Dn).getMutationCache().build(k(this,Dn),this.options)),k(this,Nt).addObserver(this),k(this,Nt).execute(t)}},Dn=new WeakMap,In=new WeakMap,Nt=new WeakMap,nn=new WeakMap,cn=new WeakSet,Cs=function(){var r;const t=((r=k(this,Nt))==null?void 0:r.state)??gw();Z(this,In,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Ed=function(t){rt.batch(()=>{var r,n,i,a,o,s,l,u;if(k(this,nn)&&this.hasListeners()){const c=k(this,In).variables,f=k(this,In).context;(t==null?void 0:t.type)==="success"?((n=(r=k(this,nn)).onSuccess)==null||n.call(r,t.data,c,f),(a=(i=k(this,nn)).onSettled)==null||a.call(i,t.data,null,c,f)):(t==null?void 0:t.type)==="error"&&((s=(o=k(this,nn)).onError)==null||s.call(o,t.error,c,f),(u=(l=k(this,nn)).onSettled)==null||u.call(l,void 0,t.error,c,f))}this.listeners.forEach(c=>{c(k(this,In))})})},Qm),ww=v.createContext(void 0),Kr=e=>{const t=v.useContext(ww);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Xx=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),CE.jsx(ww.Provider,{value:e,children:t})),_w=v.createContext(!1),Zx=()=>v.useContext(_w);_w.Provider;function eC(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var tC=v.createContext(eC()),rC=()=>v.useContext(tC);function Sw(e,t){return typeof e=="function"?e(...t):!!e}function nC(){}var iC=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},aC=e=>{v.useEffect(()=>{e.clearReset()},[e])},oC=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&Sw(r,[e.error,n]),uC=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},sC=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,lC=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function cC(e,t,r){var u,c,f,h;const n=Kr(),i=Zx(),a=rC(),o=n.defaultQueryOptions(e);(c=(u=n.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||c.call(u,o),o._optimisticResults=i?"isRestoring":"optimistic",uC(o),iC(o,a),aC(a);const[s]=v.useState(()=>new t(n,o)),l=s.getOptimisticResult(o);if(v.useSyncExternalStore(v.useCallback(w=>{const _=i?()=>{}:s.subscribe(rt.batchCalls(w));return s.updateResult(),_},[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),v.useEffect(()=>{s.setOptions(o,{listeners:!1})},[o,s]),sC(o,l))throw lC(o,s,a);if(oC({result:l,errorResetBoundary:a,throwOnError:o.throwOnError,query:n.getQueryCache().get(o.queryHash)}))throw l.error;return(h=(f=n.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||h.call(f,o,l),o.notifyOnChangeProps?l:s.trackResult(l)}function Xa(e,t){return cC(e,qx)}function Il(e,t){const r=Kr(),[n]=v.useState(()=>new Jx(r,e));v.useEffect(()=>{n.setOptions(e)},[n,e]);const i=v.useSyncExternalStore(v.useCallback(o=>n.subscribe(rt.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=v.useCallback((o,s)=>{n.mutate(o,s).catch(nC)},[n]);if(i.error&&Sw(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}/** +`+a.stack}return{value:e,source:t,stack:i,digest:null}}function Hc(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Jf(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var ox=typeof WeakMap=="function"?WeakMap:Map;function L1(e,t,r){r=ln(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Gs||(Gs=!0,ud=n),Jf(e,t)},r}function M1(e,t,r){r=ln(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){Jf(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){Jf(e,t),typeof n!="function"&&(Qn===null?Qn=new Set([this]):Qn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function Bp(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new ox;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=_x.bind(null,e,t,r),t.then(e,e))}function Wp(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Hp(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=ln(-1,1),t.tag=2,Kn(r,t,1))),r.lanes|=1),e)}var ux=yn.ReactCurrentOwner,Bt=!1;function kt(e,t,r,n){t.child=e===null?c1(t,null,r,n):za(t,e.child,r,n)}function Kp(e,t,r,n,i){r=r.render;var a=t.ref;return Ea(t,i),n=Ch(e,t,r,n,a,i),r=Oh(),e!==null&&!Bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,pn(e,t,i)):(He&&r&&hh(t),t.flags|=1,kt(e,t,n,i),t.child)}function Qp(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!Dh(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,D1(e,t,a,n,i)):(e=xs(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(r=r.compare,r=r!==null?r:ou,r(o,n)&&e.ref===t.ref)return pn(e,t,i)}return t.flags|=1,e=Gn(a,n),e.ref=t.ref,e.return=t,t.child=e}function D1(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(ou(a,n)&&e.ref===t.ref)if(Bt=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(Bt=!0);else return t.lanes=e.lanes,pn(e,t,i)}return Xf(e,t,r,n,i)}function I1(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ne(ha,Zt),Zt|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ne(ha,Zt),Zt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,Ne(ha,Zt),Zt|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,Ne(ha,Zt),Zt|=n;return kt(e,t,i,r),t.child}function j1(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Xf(e,t,r,n,i){var a=Ht(r)?Mi:xt.current;return a=Na(t,a),Ea(t,i),r=Ch(e,t,r,n,a,i),n=Oh(),e!==null&&!Bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,pn(e,t,i)):(He&&n&&hh(t),t.flags|=1,kt(e,t,r,i),t.child)}function qp(e,t,r,n,i){if(Ht(r)){var a=!0;Ns(t)}else a=!1;if(Ea(t,i),t.stateNode===null)Ss(e,t),T1(t,r,n),Yf(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=pr(u):(u=Ht(r)?Mi:xt.current,u=Na(t,u));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==n||l!==u)&&Vp(t,o,n,u),Cn=!1;var h=t.memoizedState;o.state=h,Ws(t,n,o,i),l=t.memoizedState,s!==n||h!==l||Wt.current||Cn?(typeof c=="function"&&(Gf(t,r,c,n),l=t.memoizedState),(s=Cn||zp(t,r,s,n,h,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,d1(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Sr(t.type,s),o.props=u,f=t.pendingProps,h=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=pr(l):(l=Ht(r)?Mi:xt.current,l=Na(t,l));var w=r.getDerivedStateFromProps;(c=typeof w=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==f||h!==l)&&Vp(t,o,n,l),Cn=!1,h=t.memoizedState,o.state=h,Ws(t,n,o,i);var _=t.memoizedState;s!==f||h!==_||Wt.current||Cn?(typeof w=="function"&&(Gf(t,r,w,n),_=t.memoizedState),(u=Cn||zp(t,r,u,n,h,_,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,_,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,_,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=_),o.props=n,o.state=_,o.context=l,n=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return Zf(e,t,r,n,a,i)}function Zf(e,t,r,n,i,a){j1(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&Tp(t,r,!1),pn(e,t,a);n=t.stateNode,ux.current=t;var s=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=za(t,e.child,null,a),t.child=za(t,null,s,a)):kt(e,t,s,a),t.memoizedState=n.state,i&&Tp(t,r,!0),t.child}function N1(e){var t=e.stateNode;t.pendingContext?Ap(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ap(e,t.context,!1),Sh(e,t.containerInfo)}function Gp(e,t,r,n,i){return Ua(),ph(i),t.flags|=256,kt(e,t,r,n),t.child}var ed={dehydrated:null,treeContext:null,retryLane:0};function td(e){return{baseLanes:e,cachePool:null,transitions:null}}function U1(e,t,r){var n=t.pendingProps,i=Qe.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ne(Qe,i&1),e===null)return Qf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,a?(n=t.mode,a=t.child,o={mode:"hidden",children:o},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Fl(o,n,0,null),e=Ai(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=td(r),t.memoizedState=ed,e):$h(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return sx(e,t,o,n,s,i,r);if(a){a=n.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Gn(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=Gn(s,a):(a=Ai(a,o,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,o=e.child.memoizedState,o=o===null?td(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~r,t.memoizedState=ed,n}return a=e.child,e=a.sibling,n=Gn(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function $h(e,t){return t=Fl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function is(e,t,r,n){return n!==null&&ph(n),za(t,e.child,null,r),e=$h(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sx(e,t,r,n,i,a,o){if(r)return t.flags&256?(t.flags&=-257,n=Hc(Error(W(422))),is(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=Fl({mode:"visible",children:n.children},i,0,null),a=Ai(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&za(t,e.child,null,o),t.child.memoizedState=td(o),t.memoizedState=ed,a);if(!(t.mode&1))return is(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,a=Error(W(419)),n=Hc(a,n,void 0),is(e,t,o,n)}if(s=(o&e.childLanes)!==0,Bt||s){if(n=vt,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,vn(e,i),$r(n,e,i,-1))}return Mh(),n=Hc(Error(W(421))),is(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Sx.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,tr=Hn(i.nextSibling),rr=t,He=!0,Cr=null,e!==null&&(cr[fr++]=an,cr[fr++]=on,cr[fr++]=Di,an=e.id,on=e.overflow,Di=t),t=$h(t,n.children),t.flags|=4096,t)}function Yp(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),qf(e.return,t,r)}function Kc(e,t,r,n,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function z1(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(kt(e,t,n.children,r),n=Qe.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yp(e,r,t);else if(e.tag===19)Yp(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ne(Qe,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Hs(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Kc(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Hs(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Kc(t,!0,r,null,a);break;case"together":Kc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ss(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function pn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),ji|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(W(153));if(t.child!==null){for(e=t.child,r=Gn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Gn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function lx(e,t,r){switch(t.tag){case 3:N1(t),Ua();break;case 5:h1(t);break;case 1:Ht(t.type)&&Ns(t);break;case 4:Sh(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Ne(Vs,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Ne(Qe,Qe.current&1),t.flags|=128,null):r&t.child.childLanes?U1(e,t,r):(Ne(Qe,Qe.current&1),e=pn(e,t,r),e!==null?e.sibling:null);Ne(Qe,Qe.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return z1(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ne(Qe,Qe.current),n)break;return null;case 22:case 23:return t.lanes=0,I1(e,t,r)}return pn(e,t,r)}var V1,rd,B1,W1;V1=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};rd=function(){};B1=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Si(Kr.current);var a=null;switch(r){case"input":i=xf(e,i),n=xf(e,n),a=[];break;case"select":i=Ge({},i,{value:void 0}),n=Ge({},n,{value:void 0}),a=[];break;case"textarea":i=Pf(e,i),n=Pf(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Is)}$f(r,n);var o;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Zo.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var l=n[u];if(s=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(a||(a=[]),a.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Zo.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ze("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};W1=function(e,t,r,n){r!==n&&(t.flags|=4)};function Eo(e,t){if(!He)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function St(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function cx(e,t,r){var n=t.pendingProps;switch(vh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return St(t),null;case 1:return Ht(t.type)&&js(),St(t),null;case 3:return n=t.stateNode,Va(),Be(Wt),Be(xt),bh(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(rs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Cr!==null&&(cd(Cr),Cr=null))),rd(e,t),St(t),null;case 5:Eh(t);var i=Si(fu.current);if(r=t.type,e!==null&&t.stateNode!=null)B1(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(W(166));return St(t),null}if(e=Si(Kr.current),rs(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Br]=t,n[lu]=a,e=(t.mode&1)!==0,r){case"dialog":ze("cancel",n),ze("close",n);break;case"iframe":case"object":case"embed":ze("load",n);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Br]=t,e[lu]=n,V1(e,t,!1,!1),t.stateNode=e;e:{switch(o=kf(r,n),r){case"dialog":ze("cancel",e),ze("close",e),i=n;break;case"iframe":case"object":case"embed":ze("load",e),i=n;break;case"video":case"audio":for(i=0;iWa&&(t.flags|=128,n=!0,Eo(a,!1),t.lanes=4194304)}else{if(!n)if(e=Hs(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Eo(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!He)return St(t),null}else 2*tt()-a.renderingStartTime>Wa&&r!==1073741824&&(t.flags|=128,n=!0,Eo(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=tt(),t.sibling=null,r=Qe.current,Ne(Qe,n?r&1|2:r&1),t):(St(t),null);case 22:case 23:return Lh(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Zt&1073741824&&(St(t),t.subtreeFlags&6&&(t.flags|=8192)):St(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function fx(e,t){switch(vh(t),t.tag){case 1:return Ht(t.type)&&js(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Va(),Be(Wt),Be(xt),bh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Eh(t),null;case 13:if(Be(Qe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Be(Qe),null;case 4:return Va(),null;case 10:return mh(t.type._context),null;case 22:case 23:return Lh(),null;case 24:return null;default:return null}}var as=!1,bt=!1,dx=typeof WeakSet=="function"?WeakSet:Set,ee=null;function da(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Xe(e,t,n)}else r.current=null}function nd(e,t,r){try{r()}catch(n){Xe(e,t,n)}}var Jp=!1;function hx(e,t){if(Uf=Ls,e=G0(),dh(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,c=0,f=e,h=null;t:for(;;){for(var w;f!==r||i!==0&&f.nodeType!==3||(s=o+i),f!==a||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(w=f.firstChild)!==null;)h=f,f=w;for(;;){if(f===e)break t;if(h===r&&++u===i&&(s=o),h===a&&++c===n&&(l=o),(w=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=w}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(zf={focusedElem:e,selectionRange:r},Ls=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var x=_.memoizedProps,b=_.memoizedState,y=t.stateNode,d=y.getSnapshotBeforeUpdate(t.elementType===t.type?x:Sr(t.type,x),b);y.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(m){Xe(t,t.return,m)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return _=Jp,Jp=!1,_}function Bo(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&nd(t,r,a)}i=i.next}while(i!==n)}}function $l(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function id(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function H1(e){var t=e.alternate;t!==null&&(e.alternate=null,H1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Br],delete t[lu],delete t[Wf],delete t[Gb],delete t[Yb])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function K1(e){return e.tag===5||e.tag===3||e.tag===4}function Xp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||K1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ad(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Is));else if(n!==4&&(e=e.child,e!==null))for(ad(e,t,r),e=e.sibling;e!==null;)ad(e,t,r),e=e.sibling}function od(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(od(e,t,r),e=e.sibling;e!==null;)od(e,t,r),e=e.sibling}var yt=null,br=!1;function Sn(e,t,r){for(r=r.child;r!==null;)Q1(e,t,r),r=r.sibling}function Q1(e,t,r){if(Hr&&typeof Hr.onCommitFiberUnmount=="function")try{Hr.onCommitFiberUnmount(Sl,r)}catch{}switch(r.tag){case 5:bt||da(r,t);case 6:var n=yt,i=br;yt=null,Sn(e,t,r),yt=n,br=i,yt!==null&&(br?(e=yt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):yt.removeChild(r.stateNode));break;case 18:yt!==null&&(br?(e=yt,r=r.stateNode,e.nodeType===8?Nc(e.parentNode,r):e.nodeType===1&&Nc(e,r),iu(e)):Nc(yt,r.stateNode));break;case 4:n=yt,i=br,yt=r.stateNode.containerInfo,br=!0,Sn(e,t,r),yt=n,br=i;break;case 0:case 11:case 14:case 15:if(!bt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&nd(r,t,o),i=i.next}while(i!==n)}Sn(e,t,r);break;case 1:if(!bt&&(da(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Xe(r,t,s)}Sn(e,t,r);break;case 21:Sn(e,t,r);break;case 22:r.mode&1?(bt=(n=bt)||r.memoizedState!==null,Sn(e,t,r),bt=n):Sn(e,t,r);break;default:Sn(e,t,r)}}function Zp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new dx),t.forEach(function(n){var i=Ex.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function _r(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=tt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*px(n/1960))-n,10e?16:e,zn===null)var n=!1;else{if(e=zn,zn=null,Ys=0,we&6)throw Error(W(331));var i=we;for(we|=4,ee=e.current;ee!==null;){var a=ee,o=a.child;if(ee.flags&16){var s=a.deletions;if(s!==null){for(var l=0;ltt()-Ah?Fi(e,0):Fh|=r),Kt(e,t)}function tw(e,t){t===0&&(e.mode&1?(t=Yu,Yu<<=1,!(Yu&130023424)&&(Yu=4194304)):t=1);var r=At();e=vn(e,t),e!==null&&(Ou(e,t,r),Kt(e,r))}function Sx(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),tw(e,r)}function Ex(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(W(314))}n!==null&&n.delete(t),tw(e,r)}var rw;rw=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Wt.current)Bt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Bt=!1,lx(e,t,r);Bt=!!(e.flags&131072)}else Bt=!1,He&&t.flags&1048576&&o1(t,zs,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ss(e,t),e=t.pendingProps;var i=Na(t,xt.current);Ea(t,r),i=Ch(null,t,n,e,i,r);var a=Oh();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ht(n)?(a=!0,Ns(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,_h(t),i.updater=Rl,t.stateNode=i,i._reactInternals=t,Yf(t,n,e,r),t=Zf(null,t,n,!0,a,r)):(t.tag=0,He&&a&&hh(t),kt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ss(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=xx(n),e=Sr(n,e),i){case 0:t=Xf(null,t,n,e,r);break e;case 1:t=qp(null,t,n,e,r);break e;case 11:t=Kp(null,t,n,e,r);break e;case 14:t=Qp(null,t,n,Sr(n.type,e),r);break e}throw Error(W(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sr(n,i),Xf(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sr(n,i),qp(e,t,n,i,r);case 3:e:{if(N1(t),e===null)throw Error(W(387));n=t.pendingProps,a=t.memoizedState,i=a.element,d1(e,t),Ws(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Ba(Error(W(423)),t),t=Gp(e,t,n,r,i);break e}else if(n!==i){i=Ba(Error(W(424)),t),t=Gp(e,t,n,r,i);break e}else for(tr=Hn(t.stateNode.containerInfo.firstChild),rr=t,He=!0,Cr=null,r=c1(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ua(),n===i){t=pn(e,t,r);break e}kt(e,t,n,r)}t=t.child}return t;case 5:return h1(t),e===null&&Qf(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Vf(n,i)?o=null:a!==null&&Vf(n,a)&&(t.flags|=32),j1(e,t),kt(e,t,o,r),t.child;case 6:return e===null&&Qf(t),null;case 13:return U1(e,t,r);case 4:return Sh(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=za(t,null,n,r):kt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sr(n,i),Kp(e,t,n,i,r);case 7:return kt(e,t,t.pendingProps,r),t.child;case 8:return kt(e,t,t.pendingProps.children,r),t.child;case 12:return kt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Ne(Vs,n._currentValue),n._currentValue=o,a!==null)if(kr(a.value,o)){if(a.children===i.children&&!Wt.current){t=pn(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=ln(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),qf(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(W(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),qf(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}kt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Ea(t,r),i=pr(i),n=n(i),t.flags|=1,kt(e,t,n,r),t.child;case 14:return n=t.type,i=Sr(n,t.pendingProps),i=Sr(n.type,i),Qp(e,t,n,i,r);case 15:return D1(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sr(n,i),Ss(e,t),t.tag=1,Ht(n)?(e=!0,Ns(t)):e=!1,Ea(t,r),T1(t,n,i),Yf(t,n,i,r),Zf(null,t,n,!0,e,r);case 19:return z1(e,t,r);case 22:return I1(e,t,r)}throw Error(W(156,t.tag))};function nw(e,t){return k0(e,t)}function bx(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hr(e,t,r,n){return new bx(e,t,r,n)}function Dh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xx(e){if(typeof e=="function")return Dh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===th)return 11;if(e===rh)return 14}return 2}function Gn(e,t){var r=e.alternate;return r===null?(r=hr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function xs(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")Dh(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case na:return Ai(r.children,i,a,t);case eh:o=8,i|=8;break;case _f:return e=hr(12,r,t,i|2),e.elementType=_f,e.lanes=a,e;case Sf:return e=hr(13,r,t,i),e.elementType=Sf,e.lanes=a,e;case Ef:return e=hr(19,r,t,i),e.elementType=Ef,e.lanes=a,e;case h0:return Fl(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case f0:o=10;break e;case d0:o=9;break e;case th:o=11;break e;case rh:o=14;break e;case xn:o=16,n=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=hr(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Ai(e,t,r,n){return e=hr(7,e,n,t),e.lanes=r,e}function Fl(e,t,r,n){return e=hr(22,e,n,t),e.elementType=h0,e.lanes=r,e.stateNode={isHidden:!1},e}function Qc(e,t,r){return e=hr(6,e,null,t),e.lanes=r,e}function qc(e,t,r){return t=hr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Cx(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Rc(0),this.expirationTimes=Rc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rc(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ih(e,t,r,n,i,a,o,s,l){return e=new Cx(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=hr(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},_h(a),e}function Ox(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uw)}catch(e){console.error(e)}}uw(),u0.exports=ir;var sw=u0.exports;const Fx=Tt(sw),Ax=Gm({__proto__:null,default:Fx},[sw]);var zh=v.createContext(void 0);zh.displayName="AuthContext";var Dl={loginUrl:"/login",afterLoginUrl:"/"},ri=function(){return v.useContext(zh)},Ja=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ha=typeof window>"u"||"Deno"in globalThis;function sr(){}function Tx(e,t){return typeof e=="function"?e(t):e}function fd(e){return typeof e=="number"&&e>=0&&e!==1/0}function lw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function xa(e,t){return typeof e=="function"?e(t):e}function Or(e,t){return typeof e=="function"?e(t):e}function uy(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(n){if(t.queryHash!==Vh(o,t.options))return!1}else if(!yu(t.queryKey,o))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function sy(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(Ui(t.options.mutationKey)!==Ui(a))return!1}else if(!yu(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function Vh(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ui)(e)}function Ui(e){return JSON.stringify(e,(t,r)=>dd(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function yu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!yu(e[r],t[r])):!1}function cw(e,t){if(e===t)return e;const r=ly(e)&&ly(t);if(r||dd(e)&&dd(t)){const n=r?e:Object.keys(e),i=n.length,a=r?t:Object.keys(t),o=a.length,s=r?[]:{};let l=0;for(let u=0;u{setTimeout(t,e)})}function hd(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?cw(e,t):t}function Mx(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Dx(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var fw=Symbol();function dw(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===fw?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var xi,An,Ca,Nm,Ix=(Nm=class extends Ja{constructor(){super();ue(this,xi);ue(this,An);ue(this,Ca);Z(this,Ca,t=>{if(!Ha&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){k(this,An)||this.setEventListener(k(this,Ca))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,An))==null||t.call(this),Z(this,An,void 0))}setEventListener(t){var r;Z(this,Ca,t),(r=k(this,An))==null||r.call(this),Z(this,An,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){k(this,xi)!==t&&(Z(this,xi,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof k(this,xi)=="boolean"?k(this,xi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},xi=new WeakMap,An=new WeakMap,Ca=new WeakMap,Nm),Bh=new Ix,Oa,Tn,Pa,Um,jx=(Um=class extends Ja{constructor(){super();ue(this,Oa,!0);ue(this,Tn);ue(this,Pa);Z(this,Pa,t=>{if(!Ha&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){k(this,Tn)||this.setEventListener(k(this,Pa))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Tn))==null||t.call(this),Z(this,Tn,void 0))}setEventListener(t){var r;Z(this,Pa,t),(r=k(this,Tn))==null||r.call(this),Z(this,Tn,t(this.setOnline.bind(this)))}setOnline(t){k(this,Oa)!==t&&(Z(this,Oa,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return k(this,Oa)}},Oa=new WeakMap,Tn=new WeakMap,Pa=new WeakMap,Um),el=new jx;function Nx(e){return Math.min(1e3*2**e,3e4)}function hw(e){return(e??"online")==="online"?el.isOnline():!0}var vw=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Gc(e){return e instanceof vw}function pw(e){let t=!1,r=0,n=!1,i,a,o;const s=new Promise((y,d)=>{a=y,o=d}),l=y=>{var d;n||(_(new vw(y)),(d=e.abort)==null||d.call(e))},u=()=>{t=!0},c=()=>{t=!1},f=()=>Bh.isFocused()&&(e.networkMode==="always"||el.isOnline())&&e.canRun(),h=()=>hw(e.networkMode)&&e.canRun(),w=y=>{var d;n||(n=!0,(d=e.onSuccess)==null||d.call(e,y),i==null||i(),a(y))},_=y=>{var d;n||(n=!0,(d=e.onError)==null||d.call(e,y),i==null||i(),o(y))},x=()=>new Promise(y=>{var d;i=p=>{(n||f())&&y(p)},(d=e.onPause)==null||d.call(e)}).then(()=>{var y;i=void 0,n||(y=e.onContinue)==null||y.call(e)}),b=()=>{if(n)return;let y;const d=r===0?e.initialPromise:void 0;try{y=d??e.fn()}catch(p){y=Promise.reject(p)}Promise.resolve(y).then(w).catch(p=>{var g;if(n)return;const m=e.retry??(Ha?0:3),S=e.retryDelay??Nx,E=typeof S=="function"?S(r,p):S,C=m===!0||typeof m=="number"&&rf()?void 0:x()).then(()=>{t?_(p):b()})})};return{promise:s,cancel:l,continue:()=>(i==null||i(),s),cancelRetry:u,continueRetry:c,canStart:h,start:()=>(h()?b():x().then(b),s)}}function Ux(){let e=[],t=0,r=h=>{h()},n=h=>{h()},i=h=>setTimeout(h,0);const a=h=>{i=h},o=h=>{let w;t++;try{w=h()}finally{t--,t||u()}return w},s=h=>{t?e.push(h):i(()=>{r(h)})},l=h=>(...w)=>{s(()=>{h(...w)})},u=()=>{const h=e;e=[],h.length&&i(()=>{n(()=>{h.forEach(w=>{r(w)})})})};return{batch:o,batchCalls:l,schedule:s,setNotifyFunction:h=>{r=h},setBatchNotifyFunction:h=>{n=h},setScheduler:a}}var rt=Ux(),Ci,zm,yw=(zm=class{constructor(){ue(this,Ci)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),fd(this.gcTime)&&Z(this,Ci,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ha?1/0:5*60*1e3))}clearGcTimeout(){k(this,Ci)&&(clearTimeout(k(this,Ci)),Z(this,Ci,void 0))}},Ci=new WeakMap,zm),Ra,$a,ur,Et,Su,Oi,Er,en,Vm,zx=(Vm=class extends yw{constructor(t){super();ue(this,Er);ue(this,Ra);ue(this,$a);ue(this,ur);ue(this,Et);ue(this,Su);ue(this,Oi);Z(this,Oi,!1),Z(this,Su,t.defaultOptions),this.setOptions(t.options),this.observers=[],Z(this,ur,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Z(this,Ra,Vx(this.options)),this.state=t.state??k(this,Ra),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,Et))==null?void 0:t.promise}setOptions(t){this.options={...k(this,Su),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,ur).remove(this)}setData(t,r){const n=hd(this.state.data,t,this.options);return ve(this,Er,en).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){ve(this,Er,en).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=k(this,Et))==null?void 0:n.promise;return(i=k(this,Et))==null||i.cancel(t),r?r.then(sr).catch(sr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,Ra))}isActive(){return this.observers.some(t=>Or(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!lw(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=k(this,Et))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=k(this,Et))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,ur).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(k(this,Et)&&(k(this,Oi)?k(this,Et).cancel({revert:!0}):k(this,Et).cancelRetry()),this.scheduleGc()),k(this,ur).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ve(this,Er,en).call(this,{type:"invalidate"})}fetch(t,r){var l,u,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(k(this,Et))return k(this,Et).continueRetry(),k(this,Et).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(Z(this,Oi,!0),n.signal)})},a=()=>{const f=dw(this.options,r),h={queryKey:this.queryKey,meta:this.meta};return i(h),Z(this,Oi,!1),this.options.persister?this.options.persister(f,h,this):f(h)},o={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(o),(l=this.options.behavior)==null||l.onFetch(o,this),Z(this,$a,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=o.fetchOptions)==null?void 0:u.meta))&&ve(this,Er,en).call(this,{type:"fetch",meta:(c=o.fetchOptions)==null?void 0:c.meta});const s=f=>{var h,w,_,x;Gc(f)&&f.silent||ve(this,Er,en).call(this,{type:"error",error:f}),Gc(f)||((w=(h=k(this,ur).config).onError)==null||w.call(h,f,this),(x=(_=k(this,ur).config).onSettled)==null||x.call(_,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Z(this,Et,pw({initialPromise:r==null?void 0:r.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var h,w,_,x;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(b){s(b);return}(w=(h=k(this,ur).config).onSuccess)==null||w.call(h,f,this),(x=(_=k(this,ur).config).onSettled)==null||x.call(_,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(f,h)=>{ve(this,Er,en).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{ve(this,Er,en).call(this,{type:"pause"})},onContinue:()=>{ve(this,Er,en).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),k(this,Et).start()}},Ra=new WeakMap,$a=new WeakMap,ur=new WeakMap,Et=new WeakMap,Su=new WeakMap,Oi=new WeakMap,Er=new WeakSet,en=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...gw(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Gc(i)&&i.revert&&k(this,$a)?{...k(this,$a),fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),rt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),k(this,ur).notify({query:this,type:"updated",action:t})})},Vm);function gw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Vx(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var jr,Bm,Bx=(Bm=class extends Ja{constructor(t={}){super();ue(this,jr);this.config=t,Z(this,jr,new Map)}build(t,r,n){const i=r.queryKey,a=r.queryHash??Vh(i,r);let o=this.get(a);return o||(o=new zx({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){k(this,jr).has(t.queryHash)||(k(this,jr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=k(this,jr).get(t.queryHash);r&&(t.destroy(),r===t&&k(this,jr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){rt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,jr).get(t)}getAll(){return[...k(this,jr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>uy(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>uy(t,n)):r}notify(t){rt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){rt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){rt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},jr=new WeakMap,Bm),Nr,Pt,Pi,Ur,En,Wm,Wx=(Wm=class extends yw{constructor(t){super();ue(this,Ur);ue(this,Nr);ue(this,Pt);ue(this,Pi);this.mutationId=t.mutationId,Z(this,Pt,t.mutationCache),Z(this,Nr,[]),this.state=t.state||mw(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,Nr).includes(t)||(k(this,Nr).push(t),this.clearGcTimeout(),k(this,Pt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Z(this,Nr,k(this,Nr).filter(r=>r!==t)),this.scheduleGc(),k(this,Pt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,Nr).length||(this.state.status==="pending"?this.scheduleGc():k(this,Pt).remove(this))}continue(){var t;return((t=k(this,Pi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,o,s,l,u,c,f,h,w,_,x,b,y,d,p,m,S,E,C;Z(this,Pi,pw({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(g,O)=>{ve(this,Ur,En).call(this,{type:"failed",failureCount:g,error:O})},onPause:()=>{ve(this,Ur,En).call(this,{type:"pause"})},onContinue:()=>{ve(this,Ur,En).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,Pt).canRun(this)}));const r=this.state.status==="pending",n=!k(this,Pi).canStart();try{if(!r){ve(this,Ur,En).call(this,{type:"pending",variables:t,isPaused:n}),await((a=(i=k(this,Pt).config).onMutate)==null?void 0:a.call(i,t,this));const O=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t));O!==this.state.context&&ve(this,Ur,En).call(this,{type:"pending",context:O,variables:t,isPaused:n})}const g=await k(this,Pi).start();return await((u=(l=k(this,Pt).config).onSuccess)==null?void 0:u.call(l,g,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,g,t,this.state.context)),await((w=(h=k(this,Pt).config).onSettled)==null?void 0:w.call(h,g,null,this.state.variables,this.state.context,this)),await((x=(_=this.options).onSettled)==null?void 0:x.call(_,g,null,t,this.state.context)),ve(this,Ur,En).call(this,{type:"success",data:g}),g}catch(g){try{throw await((y=(b=k(this,Pt).config).onError)==null?void 0:y.call(b,g,t,this.state.context,this)),await((p=(d=this.options).onError)==null?void 0:p.call(d,g,t,this.state.context)),await((S=(m=k(this,Pt).config).onSettled)==null?void 0:S.call(m,void 0,g,this.state.variables,this.state.context,this)),await((C=(E=this.options).onSettled)==null?void 0:C.call(E,void 0,g,t,this.state.context)),g}finally{ve(this,Ur,En).call(this,{type:"error",error:g})}}finally{k(this,Pt).runNext(this)}}},Nr=new WeakMap,Pt=new WeakMap,Pi=new WeakMap,Ur=new WeakSet,En=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),rt.batch(()=>{k(this,Nr).forEach(n=>{n.onMutationUpdate(t)}),k(this,Pt).notify({mutation:this,type:"updated",action:t})})},Wm);function mw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xt,Eu,Hm,Hx=(Hm=class extends Ja{constructor(t={}){super();ue(this,Xt);ue(this,Eu);this.config=t,Z(this,Xt,new Map),Z(this,Eu,Date.now())}build(t,r,n){const i=new Wx({mutationCache:this,mutationId:++Wu(this,Eu)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){const r=ss(t),n=k(this,Xt).get(r)??[];n.push(t),k(this,Xt).set(r,n),this.notify({type:"added",mutation:t})}remove(t){var n;const r=ss(t);if(k(this,Xt).has(r)){const i=(n=k(this,Xt).get(r))==null?void 0:n.filter(a=>a!==t);i&&(i.length===0?k(this,Xt).delete(r):k(this,Xt).set(r,i))}this.notify({type:"removed",mutation:t})}canRun(t){var n;const r=(n=k(this,Xt).get(ss(t)))==null?void 0:n.find(i=>i.state.status==="pending");return!r||r===t}runNext(t){var n;const r=(n=k(this,Xt).get(ss(t)))==null?void 0:n.find(i=>i!==t&&i.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){rt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...k(this,Xt).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(n=>sy(r,n))}findAll(t={}){return this.getAll().filter(r=>sy(t,r))}notify(t){rt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return rt.batch(()=>Promise.all(t.map(r=>r.continue().catch(sr))))}},Xt=new WeakMap,Eu=new WeakMap,Hm);function ss(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Kx(e){return{onFetch:(t,r)=>{const n=async()=>{var _,x,b,y,d;const i=t.options,a=(b=(x=(_=t.fetchOptions)==null?void 0:_.meta)==null?void 0:x.fetchMore)==null?void 0:b.direction,o=((y=t.state.data)==null?void 0:y.pages)||[],s=((d=t.state.data)==null?void 0:d.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},f=dw(t.options,t.fetchOptions),h=async(p,m,S)=>{if(u)return Promise.reject();if(m==null&&p.pages.length)return Promise.resolve(p);const E={queryKey:t.queryKey,pageParam:m,direction:S?"backward":"forward",meta:t.options.meta};c(E);const C=await f(E),{maxPages:g}=t.options,O=S?Dx:Mx;return{pages:O(p.pages,C,g),pageParams:O(p.pageParams,m,g)}};let w;if(a&&o.length){const p=a==="backward",m=p?Qx:fy,S={pages:o,pageParams:s},E=m(i,S);w=await h(S,E,p)}else{w=await h(l,s[0]??i.initialPageParam);const p=e??o.length;for(let m=1;m{var i,a;return(a=(i=t.options).persister)==null?void 0:a.call(i,n,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=n}}}function fy(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Qx(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Je,Ln,Mn,ka,Fa,Dn,Aa,Ta,Km,qx=(Km=class{constructor(e={}){ue(this,Je);ue(this,Ln);ue(this,Mn);ue(this,ka);ue(this,Fa);ue(this,Dn);ue(this,Aa);ue(this,Ta);Z(this,Je,e.queryCache||new Bx),Z(this,Ln,e.mutationCache||new Hx),Z(this,Mn,e.defaultOptions||{}),Z(this,ka,new Map),Z(this,Fa,new Map),Z(this,Dn,0)}mount(){Wu(this,Dn)._++,k(this,Dn)===1&&(Z(this,Aa,Bh.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Je).onFocus())})),Z(this,Ta,el.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Je).onOnline())})))}unmount(){var e,t;Wu(this,Dn)._--,k(this,Dn)===0&&((e=k(this,Aa))==null||e.call(this),Z(this,Aa,void 0),(t=k(this,Ta))==null||t.call(this),Z(this,Ta,void 0))}isFetching(e){return k(this,Je).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,Ln).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=k(this,Je).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=k(this,Je).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(xa(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return k(this,Je).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=k(this,Je).get(n.queryHash),a=i==null?void 0:i.state.data,o=Tx(t,a);if(o!==void 0)return k(this,Je).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return rt.batch(()=>k(this,Je).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=k(this,Je).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=k(this,Je);rt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=k(this,Je),n={type:"active",...e};return rt.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=rt.batch(()=>k(this,Je).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(sr).catch(sr)}invalidateQueries(e={},t={}){return rt.batch(()=>{if(k(this,Je).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=rt.batch(()=>k(this,Je).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch(sr)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(sr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=k(this,Je).build(this,t);return r.isStaleByTime(xa(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(sr).catch(sr)}fetchInfiniteQuery(e){return e.behavior=Kx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(sr).catch(sr)}resumePausedMutations(){return el.isOnline()?k(this,Ln).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,Je)}getMutationCache(){return k(this,Ln)}getDefaultOptions(){return k(this,Mn)}setDefaultOptions(e){Z(this,Mn,e)}setQueryDefaults(e,t){k(this,ka).set(Ui(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,ka).values()];let r={};return t.forEach(n=>{yu(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){k(this,Fa).set(Ui(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,Fa).values()];let r={};return t.forEach(n=>{yu(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,Mn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vh(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===fw&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,Mn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,Je).clear(),k(this,Ln).clear()}},Je=new WeakMap,Ln=new WeakMap,Mn=new WeakMap,ka=new WeakMap,Fa=new WeakMap,Dn=new WeakMap,Aa=new WeakMap,Ta=new WeakMap,Km),jt,ge,bu,Rt,Ri,La,zr,xu,Ma,Da,$i,ki,In,Ia,Oe,Lo,vd,pd,yd,gd,md,wd,_d,ww,Qm,Gx=(Qm=class extends Ja{constructor(t,r){super();ue(this,Oe);ue(this,jt);ue(this,ge);ue(this,bu);ue(this,Rt);ue(this,Ri);ue(this,La);ue(this,zr);ue(this,xu);ue(this,Ma);ue(this,Da);ue(this,$i);ue(this,ki);ue(this,In);ue(this,Ia,new Set);this.options=r,Z(this,jt,t),Z(this,zr,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,ge).addObserver(this),dy(k(this,ge),this.options)?ve(this,Oe,Lo).call(this):this.updateResult(),ve(this,Oe,gd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Sd(k(this,ge),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Sd(k(this,ge),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ve(this,Oe,md).call(this),ve(this,Oe,wd).call(this),k(this,ge).removeObserver(this)}setOptions(t,r){const n=this.options,i=k(this,ge);if(this.options=k(this,jt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Or(this.options.enabled,k(this,ge))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ve(this,Oe,_d).call(this),k(this,ge).setOptions(this.options),n._defaulted&&!Zs(this.options,n)&&k(this,jt).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,ge),observer:this});const a=this.hasListeners();a&&hy(k(this,ge),i,this.options,n)&&ve(this,Oe,Lo).call(this),this.updateResult(r),a&&(k(this,ge)!==i||Or(this.options.enabled,k(this,ge))!==Or(n.enabled,k(this,ge))||xa(this.options.staleTime,k(this,ge))!==xa(n.staleTime,k(this,ge)))&&ve(this,Oe,vd).call(this);const o=ve(this,Oe,pd).call(this);a&&(k(this,ge)!==i||Or(this.options.enabled,k(this,ge))!==Or(n.enabled,k(this,ge))||o!==k(this,In))&&ve(this,Oe,yd).call(this,o)}getOptimisticResult(t){const r=k(this,jt).getQueryCache().build(k(this,jt),t),n=this.createResult(r,t);return Jx(this,n)&&(Z(this,Rt,n),Z(this,La,this.options),Z(this,Ri,k(this,ge).state)),n}getCurrentResult(){return k(this,Rt)}trackResult(t,r){const n={};return Object.keys(t).forEach(i=>{Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),r==null||r(i),t[i])})}),n}trackProp(t){k(this,Ia).add(t)}getCurrentQuery(){return k(this,ge)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=k(this,jt).defaultQueryOptions(t),n=k(this,jt).getQueryCache().build(k(this,jt),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){return ve(this,Oe,Lo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Rt)))}createResult(t,r){var C;const n=k(this,ge),i=this.options,a=k(this,Rt),o=k(this,Ri),s=k(this,La),u=t!==n?t.state:k(this,bu),{state:c}=t;let f={...c},h=!1,w;if(r._optimisticResults){const g=this.hasListeners(),O=!g&&dy(t,r),R=g&&hy(t,n,r,i);(O||R)&&(f={...f,...gw(c.data,t.options)}),r._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:_,errorUpdatedAt:x,status:b}=f;if(r.select&&f.data!==void 0)if(a&&f.data===(o==null?void 0:o.data)&&r.select===k(this,xu))w=k(this,Ma);else try{Z(this,xu,r.select),w=r.select(f.data),w=hd(a==null?void 0:a.data,w,r),Z(this,Ma,w),Z(this,zr,null)}catch(g){Z(this,zr,g)}else w=f.data;if(r.placeholderData!==void 0&&w===void 0&&b==="pending"){let g;if(a!=null&&a.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))g=a.data;else if(g=typeof r.placeholderData=="function"?r.placeholderData((C=k(this,Da))==null?void 0:C.state.data,k(this,Da)):r.placeholderData,r.select&&g!==void 0)try{g=r.select(g),Z(this,zr,null)}catch(O){Z(this,zr,O)}g!==void 0&&(b="success",w=hd(a==null?void 0:a.data,g,r),h=!0)}k(this,zr)&&(_=k(this,zr),w=k(this,Ma),x=Date.now(),b="error");const y=f.fetchStatus==="fetching",d=b==="pending",p=b==="error",m=d&&y,S=w!==void 0;return{status:b,fetchStatus:f.fetchStatus,isPending:d,isSuccess:b==="success",isError:p,isInitialLoading:m,isLoading:m,data:w,dataUpdatedAt:f.dataUpdatedAt,error:_,errorUpdatedAt:x,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&!d,isLoadingError:p&&!S,isPaused:f.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:p&&S,isStale:Wh(t,r),refetch:this.refetch}}updateResult(t){const r=k(this,Rt),n=this.createResult(k(this,ge),this.options);if(Z(this,Ri,k(this,ge).state),Z(this,La,this.options),k(this,Ri).data!==void 0&&Z(this,Da,k(this,ge)),Zs(n,r))return;Z(this,Rt,n);const i={},a=()=>{if(!r)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!k(this,Ia).size)return!0;const l=new Set(s??k(this,Ia));return this.options.throwOnError&&l.add("error"),Object.keys(k(this,Rt)).some(u=>{const c=u;return k(this,Rt)[c]!==r[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),ve(this,Oe,ww).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ve(this,Oe,gd).call(this)}},jt=new WeakMap,ge=new WeakMap,bu=new WeakMap,Rt=new WeakMap,Ri=new WeakMap,La=new WeakMap,zr=new WeakMap,xu=new WeakMap,Ma=new WeakMap,Da=new WeakMap,$i=new WeakMap,ki=new WeakMap,In=new WeakMap,Ia=new WeakMap,Oe=new WeakSet,Lo=function(t){ve(this,Oe,_d).call(this);let r=k(this,ge).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(sr)),r},vd=function(){ve(this,Oe,md).call(this);const t=xa(this.options.staleTime,k(this,ge));if(Ha||k(this,Rt).isStale||!fd(t))return;const n=lw(k(this,Rt).dataUpdatedAt,t)+1;Z(this,$i,setTimeout(()=>{k(this,Rt).isStale||this.updateResult()},n))},pd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,ge)):this.options.refetchInterval)??!1},yd=function(t){ve(this,Oe,wd).call(this),Z(this,In,t),!(Ha||Or(this.options.enabled,k(this,ge))===!1||!fd(k(this,In))||k(this,In)===0)&&Z(this,ki,setInterval(()=>{(this.options.refetchIntervalInBackground||Bh.isFocused())&&ve(this,Oe,Lo).call(this)},k(this,In)))},gd=function(){ve(this,Oe,vd).call(this),ve(this,Oe,yd).call(this,ve(this,Oe,pd).call(this))},md=function(){k(this,$i)&&(clearTimeout(k(this,$i)),Z(this,$i,void 0))},wd=function(){k(this,ki)&&(clearInterval(k(this,ki)),Z(this,ki,void 0))},_d=function(){const t=k(this,jt).getQueryCache().build(k(this,jt),this.options);if(t===k(this,ge))return;const r=k(this,ge);Z(this,ge,t),Z(this,bu,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},ww=function(t){rt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(k(this,Rt))}),k(this,jt).getQueryCache().notify({query:k(this,ge),type:"observerResultsUpdated"})})},Qm);function Yx(e,t){return Or(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function dy(e,t){return Yx(e,t)||e.state.data!==void 0&&Sd(e,t,t.refetchOnMount)}function Sd(e,t,r){if(Or(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Wh(e,t)}return!1}function hy(e,t,r,n){return(e!==t||Or(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Wh(e,r)}function Wh(e,t){return Or(t.enabled,e)!==!1&&e.isStaleByTime(xa(t.staleTime,e))}function Jx(e,t){return!Zs(e.getCurrentResult(),t)}var jn,Nn,Nt,nn,fn,Cs,Ed,qm,Xx=(qm=class extends Ja{constructor(t,r){super();ue(this,fn);ue(this,jn);ue(this,Nn);ue(this,Nt);ue(this,nn);Z(this,jn,t),this.setOptions(r),this.bindMethods(),ve(this,fn,Cs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=k(this,jn).defaultMutationOptions(t),Zs(this.options,r)||k(this,jn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Nt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ui(r.mutationKey)!==Ui(this.options.mutationKey)?this.reset():((n=k(this,Nt))==null?void 0:n.state.status)==="pending"&&k(this,Nt).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=k(this,Nt))==null||t.removeObserver(this)}onMutationUpdate(t){ve(this,fn,Cs).call(this),ve(this,fn,Ed).call(this,t)}getCurrentResult(){return k(this,Nn)}reset(){var t;(t=k(this,Nt))==null||t.removeObserver(this),Z(this,Nt,void 0),ve(this,fn,Cs).call(this),ve(this,fn,Ed).call(this)}mutate(t,r){var n;return Z(this,nn,r),(n=k(this,Nt))==null||n.removeObserver(this),Z(this,Nt,k(this,jn).getMutationCache().build(k(this,jn),this.options)),k(this,Nt).addObserver(this),k(this,Nt).execute(t)}},jn=new WeakMap,Nn=new WeakMap,Nt=new WeakMap,nn=new WeakMap,fn=new WeakSet,Cs=function(){var r;const t=((r=k(this,Nt))==null?void 0:r.state)??mw();Z(this,Nn,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Ed=function(t){rt.batch(()=>{var r,n,i,a,o,s,l,u;if(k(this,nn)&&this.hasListeners()){const c=k(this,Nn).variables,f=k(this,Nn).context;(t==null?void 0:t.type)==="success"?((n=(r=k(this,nn)).onSuccess)==null||n.call(r,t.data,c,f),(a=(i=k(this,nn)).onSettled)==null||a.call(i,t.data,null,c,f)):(t==null?void 0:t.type)==="error"&&((s=(o=k(this,nn)).onError)==null||s.call(o,t.error,c,f),(u=(l=k(this,nn)).onSettled)==null||u.call(l,void 0,t.error,c,f))}this.listeners.forEach(c=>{c(k(this,Nn))})})},qm),_w=v.createContext(void 0),Qr=e=>{const t=v.useContext(_w);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Zx=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),OE.jsx(_w.Provider,{value:e,children:t})),Sw=v.createContext(!1),eC=()=>v.useContext(Sw);Sw.Provider;function tC(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var rC=v.createContext(tC()),nC=()=>v.useContext(rC);function Ew(e,t){return typeof e=="function"?e(...t):!!e}function iC(){}var aC=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},oC=e=>{v.useEffect(()=>{e.clearReset()},[e])},uC=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&Ew(r,[e.error,n]),sC=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},lC=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,cC=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function fC(e,t,r){var u,c,f,h;const n=Qr(),i=eC(),a=nC(),o=n.defaultQueryOptions(e);(c=(u=n.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||c.call(u,o),o._optimisticResults=i?"isRestoring":"optimistic",sC(o),aC(o,a),oC(a);const[s]=v.useState(()=>new t(n,o)),l=s.getOptimisticResult(o);if(v.useSyncExternalStore(v.useCallback(w=>{const _=i?()=>{}:s.subscribe(rt.batchCalls(w));return s.updateResult(),_},[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),v.useEffect(()=>{s.setOptions(o,{listeners:!1})},[o,s]),lC(o,l))throw cC(o,s,a);if(uC({result:l,errorResetBoundary:a,throwOnError:o.throwOnError,query:n.getQueryCache().get(o.queryHash)}))throw l.error;return(h=(f=n.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||h.call(f,o,l),o.notifyOnChangeProps?l:s.trackResult(l)}function Xa(e,t){return fC(e,Gx)}function Il(e,t){const r=Qr(),[n]=v.useState(()=>new Xx(r,e));v.useEffect(()=>{n.setOptions(e)},[n,e]);const i=v.useSyncExternalStore(v.useCallback(o=>n.subscribe(rt.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=v.useCallback((o,s)=>{n.mutate(o,s).catch(iC)},[n]);if(i.error&&Ew(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}/** * @remix-run/router v1.19.1 * * Copyright (c) Remix Software Inc. @@ -46,9 +46,9 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ke(){return Ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function zi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function dC(){return Math.random().toString(36).substr(2,8)}function py(e,t){return{usr:e.state,key:e.key,idx:t}}function gu(e,t,r,n){return r===void 0&&(r=null),Ke({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Qr(t):t,{state:r,key:t&&t.key||n||dC()})}function Vi(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Qr(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function hC(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s=et.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(Ke({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){s=et.Pop;let x=c(),y=x==null?null:x-u;u=x,l&&l({action:s,location:b.location,delta:y})}function h(x,y){s=et.Push;let d=gu(b.location,x,y);r&&r(d,x),u=c()+1;let p=py(d,u),m=b.createHref(d);try{o.pushState(p,"",m)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(m)}a&&l&&l({action:s,location:b.location,delta:1})}function w(x,y){s=et.Replace;let d=gu(b.location,x,y);r&&r(d,x),u=c();let p=py(d,u),m=b.createHref(d);o.replaceState(p,"",m),a&&l&&l({action:s,location:b.location,delta:0})}function _(x){let y=i.location.origin!=="null"?i.location.origin:i.location.href,d=typeof x=="string"?x:Vi(x);return d=d.replace(/ $/,"%20"),ce(y,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,y)}let b={get action(){return s},get location(){return e(i,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(vy,f),l=x,()=>{i.removeEventListener(vy,f),l=null}},createHref(x){return t(i,x)},createURL:_,encodeLocation(x){let y=_(x);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:w,go(x){return o.go(x)}};return b}var Te;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Te||(Te={}));const vC=new Set(["lazy","caseSensitive","path","id","index","children"]);function pC(e){return e.index===!0}function mu(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((i,a)=>{let o=[...r,String(a)],s=typeof i.id=="string"?i.id:o.join("-");if(ce(i.index!==!0||!i.children,"Cannot specify children on an index route"),ce(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),pC(i)){let l=Ke({},i,t(i),{id:s});return n[s]=l,l}else{let l=Ke({},i,t(i),{id:s,children:void 0});return n[s]=l,i.children&&(l.children=mu(i.children,t,o,n)),l}})}function vi(e,t,r){return r===void 0&&(r="/"),Os(e,t,r,!1)}function Os(e,t,r,n){let i=typeof t=="string"?Qr(t):t,a=Jn(i.pathname||"/",r);if(a==null)return null;let o=Ew(e);gC(o);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(ce(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=ln([n,l.relativePath]),c=r.concat(l);a.children&&a.children.length>0&&(ce(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Ew(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:xC(u,a.index),routesMeta:c})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of bw(a.path))i(a,o,l)}),t}function bw(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=bw(n.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function gC(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:CC(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const mC=/^:[\w-]+$/,wC=3,_C=2,SC=1,EC=10,bC=-2,yy=e=>e==="*";function xC(e,t){let r=e.split("/"),n=r.length;return r.some(yy)&&(n+=bC),t&&(n+=_C),r.filter(i=>!yy(i)).reduce((i,a)=>i+(mC.test(a)?wC:a===""?SC:EC),n)}function CC(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function OC(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,i={},a="/",o=[];for(let s=0;s{let{paramName:h,isOptional:w}=c;if(h==="*"){let b=s[f]||"";o=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const _=s[f];return w&&!_?u[h]=void 0:u[h]=(_||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function PC(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),zi(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function xw(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return zi(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Jn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function RC(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Qr(e):e;return{pathname:r?r.startsWith("/")?r:$C(r,t):t,search:FC(n),hash:AC(i)}}function $C(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Yc(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Cw(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function jl(e,t){let r=Cw(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Nl(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Qr(e):(i=Ke({},e),ce(!i.pathname||!i.pathname.includes("?"),Yc("?","pathname","search",i)),ce(!i.pathname||!i.pathname.includes("#"),Yc("#","pathname","hash",i)),ce(!i.search||!i.search.includes("#"),Yc("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=r;else{let f=t.length-1;if(!n&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;i.pathname=h.join("/")}s=f>=0?t[f]:"/"}let l=RC(i,s),u=o&&o!=="/"&&o.endsWith("/"),c=(a||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const ln=e=>e.join("/").replace(/\/\/+/g,"/"),kC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),FC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,AC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class tl{constructor(t,r,n,i){i===void 0&&(i=!1),this.status=t,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Ul(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ow=["post","put","patch","delete"],TC=new Set(Ow),LC=["get",...Ow],MC=new Set(LC),DC=new Set([301,302,303,307,308]),IC=new Set([307,308]),Jc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},jC={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ta={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Hh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,NC=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Pw="remix-router-transitions";function UC(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;ce(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let $=e.detectErrorBoundary;i=F=>({hasErrorBoundary:$(F)})}else i=NC;let a={},o=mu(e.routes,i,void 0,a),s,l=e.basename||"/",u=e.unstable_dataStrategy||HC,c=e.unstable_patchRoutesOnNavigation,f=Ke({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),h=null,w=new Set,_=1e3,b=new Set,x=null,y=null,d=null,p=e.hydrationData!=null,m=vi(o,e.history.location,l),S=null;if(m==null&&!c){let $=$t(404,{pathname:e.history.location.pathname}),{matches:F,route:M}=Oy(o);m=F,S={[M.id]:$}}m&&!e.hydrationData&&Nu(m,o,e.history.location.pathname).active&&(m=null);let E;if(m)if(m.some($=>$.route.lazy))E=!1;else if(!m.some($=>$.route.loader))E=!0;else if(f.v7_partialHydration){let $=e.hydrationData?e.hydrationData.loaderData:null,F=e.hydrationData?e.hydrationData.errors:null,M=z=>z.route.loader?typeof z.route.loader=="function"&&z.route.loader.hydrate===!0?!1:$&&$[z.route.id]!==void 0||F&&F[z.route.id]!==void 0:!0;if(F){let z=m.findIndex(X=>F[X.route.id]!==void 0);E=m.slice(0,z+1).every(M)}else E=m.every(M)}else E=e.hydrationData!=null;else if(E=!1,m=[],f.v7_partialHydration){let $=Nu(null,o,e.history.location.pathname);$.active&&$.matches&&(m=$.matches)}let C,g={historyAction:e.history.action,location:e.history.location,matches:m,initialized:E,navigation:Jc,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||S,fetchers:new Map,blockers:new Map},O=et.Pop,R=!1,T,L=!1,N=new Map,I=null,Q=!1,q=!1,ie=[],U=new Set,V=new Map,J=0,ne=-1,te=new Map,le=new Set,_e=new Map,nt=new Map,Se=new Set,Le=new Map,st=new Map,Ee=new Map,wt=!1;function it(){if(h=e.history.listen($=>{let{action:F,location:M,delta:z}=$;if(wt){wt=!1;return}zi(st.size===0||z!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let X=Qv({currentLocation:g.location,nextLocation:M,historyAction:F});if(X&&z!=null){wt=!0,e.history.go(z*-1),Iu(X,{state:"blocked",location:M,proceed(){Iu(X,{state:"proceeding",proceed:void 0,reset:void 0,location:M}),e.history.go(z)},reset(){let ae=new Map(g.blockers);ae.set(X,ta),be({blockers:ae})}});return}return P(F,M)}),r){iO(t,N);let $=()=>aO(t,N);t.addEventListener("pagehide",$),I=()=>t.removeEventListener("pagehide",$)}return g.initialized||P(et.Pop,g.location,{initialHydration:!0}),C}function qt(){h&&h(),I&&I(),w.clear(),T&&T.abort(),g.fetchers.forEach(($,F)=>ci(F)),g.blockers.forEach(($,F)=>Kv(F))}function Dt($){return w.add($),()=>w.delete($)}function be($,F){F===void 0&&(F={}),g=Ke({},g,$);let M=[],z=[];f.v7_fetcherPersist&&g.fetchers.forEach((X,ae)=>{X.state==="idle"&&(Se.has(ae)?z.push(ae):M.push(ae))}),[...w].forEach(X=>X(g,{deletedFetchers:z,unstable_viewTransitionOpts:F.viewTransitionOpts,unstable_flushSync:F.flushSync===!0})),f.v7_fetcherPersist&&(M.forEach(X=>g.fetchers.delete(X)),z.forEach(X=>ci(X)))}function Gt($,F,M){var z,X;let{flushSync:ae}=M===void 0?{}:M,se=g.actionData!=null&&g.navigation.formMethod!=null&&br(g.navigation.formMethod)&&g.navigation.state==="loading"&&((z=$.state)==null?void 0:z._isRedirect)!==!0,Y;F.actionData?Object.keys(F.actionData).length>0?Y=F.actionData:Y=null:se?Y=g.actionData:Y=null;let fe=F.loaderData?xy(g.loaderData,F.loaderData,F.matches||[],F.errors):g.loaderData,oe=g.blockers;oe.size>0&&(oe=new Map(oe),oe.forEach((Pe,Me)=>oe.set(Me,ta)));let de=R===!0||g.navigation.formMethod!=null&&br(g.navigation.formMethod)&&((X=$.state)==null?void 0:X._isRedirect)!==!0;s&&(o=s,s=void 0),Q||O===et.Pop||(O===et.Push?e.history.push($,$.state):O===et.Replace&&e.history.replace($,$.state));let Fe;if(O===et.Pop){let Pe=N.get(g.location.pathname);Pe&&Pe.has($.pathname)?Fe={currentLocation:g.location,nextLocation:$}:N.has($.pathname)&&(Fe={currentLocation:$,nextLocation:g.location})}else if(L){let Pe=N.get(g.location.pathname);Pe?Pe.add($.pathname):(Pe=new Set([$.pathname]),N.set(g.location.pathname,Pe)),Fe={currentLocation:g.location,nextLocation:$}}be(Ke({},F,{actionData:Y,loaderData:fe,historyAction:O,location:$,initialized:!0,navigation:Jc,revalidation:"idle",restoreScrollPosition:Gv($,F.matches||g.matches),preventScrollReset:de,blockers:oe}),{viewTransitionOpts:Fe,flushSync:ae===!0}),O=et.Pop,R=!1,L=!1,Q=!1,q=!1,ie=[]}async function li($,F){if(typeof $=="number"){e.history.go($);return}let M=xd(g.location,g.matches,l,f.v7_prependBasename,$,f.v7_relativeSplatPath,F==null?void 0:F.fromRouteId,F==null?void 0:F.relative),{path:z,submission:X,error:ae}=gy(f.v7_normalizeFormMethod,!1,M,F),se=g.location,Y=gu(g.location,z,F&&F.state);Y=Ke({},Y,e.history.encodeLocation(Y));let fe=F&&F.replace!=null?F.replace:void 0,oe=et.Push;fe===!0?oe=et.Replace:fe===!1||X!=null&&br(X.formMethod)&&X.formAction===g.location.pathname+g.location.search&&(oe=et.Replace);let de=F&&"preventScrollReset"in F?F.preventScrollReset===!0:void 0,Fe=(F&&F.unstable_flushSync)===!0,Pe=Qv({currentLocation:se,nextLocation:Y,historyAction:oe});if(Pe){Iu(Pe,{state:"blocked",location:Y,proceed(){Iu(Pe,{state:"proceeding",proceed:void 0,reset:void 0,location:Y}),li($,F)},reset(){let Me=new Map(g.blockers);Me.set(Pe,ta),be({blockers:Me})}});return}return await P(oe,Y,{submission:X,pendingError:ae,preventScrollReset:de,replace:F&&F.replace,enableViewTransition:F&&F.unstable_viewTransition,flushSync:Fe})}function mn(){if(vo(),be({revalidation:"loading"}),g.navigation.state!=="submitting"){if(g.navigation.state==="idle"){P(g.historyAction,g.location,{startUninterruptedRevalidation:!0});return}P(O||g.historyAction,g.navigation.location,{overrideNavigation:g.navigation})}}async function P($,F,M){T&&T.abort(),T=null,O=$,Q=(M&&M.startUninterruptedRevalidation)===!0,ZS(g.location,g.matches),R=(M&&M.preventScrollReset)===!0,L=(M&&M.enableViewTransition)===!0;let z=s||o,X=M&&M.overrideNavigation,ae=vi(z,F,l),se=(M&&M.flushSync)===!0,Y=Nu(ae,z,F.pathname);if(Y.active&&Y.matches&&(ae=Y.matches),!ae){let{error:Ce,notFoundMatches:pt,route:at}=_c(F.pathname);Gt(F,{matches:pt,loaderData:{},errors:{[at.id]:Ce}},{flushSync:se});return}if(g.initialized&&!q&&JC(g.location,F)&&!(M&&M.submission&&br(M.submission.formMethod))){Gt(F,{matches:ae},{flushSync:se});return}T=new AbortController;let fe=Xi(e.history,F,T.signal,M&&M.submission),oe;if(M&&M.pendingError)oe=[va(ae).route.id,{type:Te.error,error:M.pendingError}];else if(M&&M.submission&&br(M.submission.formMethod)){let Ce=await A(fe,F,M.submission,ae,Y.active,{replace:M.replace,flushSync:se});if(Ce.shortCircuited)return;if(Ce.pendingActionResult){let[pt,at]=Ce.pendingActionResult;if(er(at)&&Ul(at.error)&&at.error.status===404){T=null,Gt(F,{matches:Ce.matches,loaderData:{},errors:{[pt]:at.error}});return}}ae=Ce.matches||ae,oe=Ce.pendingActionResult,X=Xc(F,M.submission),se=!1,Y.active=!1,fe=Xi(e.history,fe.url,fe.signal)}let{shortCircuited:de,matches:Fe,loaderData:Pe,errors:Me}=await D(fe,F,ae,Y.active,X,M&&M.submission,M&&M.fetcherSubmission,M&&M.replace,M&&M.initialHydration===!0,se,oe);de||(T=null,Gt(F,Ke({matches:Fe||ae},Cy(oe),{loaderData:Pe,errors:Me})))}async function A($,F,M,z,X,ae){ae===void 0&&(ae={}),vo();let se=rO(F,M);if(be({navigation:se},{flushSync:ae.flushSync===!0}),X){let oe=await Uu(z,F.pathname,$.signal);if(oe.type==="aborted")return{shortCircuited:!0};if(oe.type==="error"){let{boundaryId:de,error:Fe}=ju(F.pathname,oe);return{matches:oe.partialMatches,pendingActionResult:[de,{type:Te.error,error:Fe}]}}else if(oe.matches)z=oe.matches;else{let{notFoundMatches:de,error:Fe,route:Pe}=_c(F.pathname);return{matches:de,pendingActionResult:[Pe.id,{type:Te.error,error:Fe}]}}}let Y,fe=Mo(z,F);if(!fe.route.action&&!fe.route.lazy)Y={type:Te.error,error:$t(405,{method:$.method,pathname:F.pathname,routeId:fe.route.id})};else if(Y=(await Be("action",$,[fe],z))[0],$.signal.aborted)return{shortCircuited:!0};if(Ei(Y)){let oe;return ae&&ae.replace!=null?oe=ae.replace:oe=Sy(Y.response.headers.get("Location"),new URL($.url),l)===g.location.pathname+g.location.search,await ke($,Y,{submission:M,replace:oe}),{shortCircuited:!0}}if(Si(Y))throw $t(400,{type:"defer-action"});if(er(Y)){let oe=va(z,fe.route.id);return(ae&&ae.replace)!==!0&&(O=et.Push),{matches:z,pendingActionResult:[oe.route.id,Y]}}return{matches:z,pendingActionResult:[fe.route.id,Y]}}async function D($,F,M,z,X,ae,se,Y,fe,oe,de){let Fe=X||Xc(F,ae),Pe=ae||se||ky(Fe),Me=!Q&&(!f.v7_partialHydration||!fe);if(z){if(Me){let Ye=B(de);be(Ke({navigation:Fe},Ye!==void 0?{actionData:Ye}:{}),{flushSync:oe})}let he=await Uu(M,F.pathname,$.signal);if(he.type==="aborted")return{shortCircuited:!0};if(he.type==="error"){let{boundaryId:Ye,error:Jt}=ju(F.pathname,he);return{matches:he.partialMatches,loaderData:{},errors:{[Ye]:Jt}}}else if(he.matches)M=he.matches;else{let{error:Ye,notFoundMatches:Jt,route:We}=_c(F.pathname);return{matches:Jt,loaderData:{},errors:{[We.id]:Ye}}}}let Ce=s||o,[pt,at]=my(e.history,g,M,Pe,F,f.v7_partialHydration&&fe===!0,f.v7_skipActionErrorRevalidation,q,ie,U,Se,_e,le,Ce,l,de);if(Sc(he=>!(M&&M.some(Ye=>Ye.route.id===he))||pt&&pt.some(Ye=>Ye.route.id===he)),ne=++J,pt.length===0&&at.length===0){let he=Wv();return Gt(F,Ke({matches:M,loaderData:{},errors:de&&er(de[1])?{[de[0]]:de[1].error}:null},Cy(de),he?{fetchers:new Map(g.fetchers)}:{}),{flushSync:oe}),{shortCircuited:!0}}if(Me){let he={};if(!z){he.navigation=Fe;let Ye=B(de);Ye!==void 0&&(he.actionData=Ye)}at.length>0&&(he.fetchers=K(at)),be(he,{flushSync:oe})}at.forEach(he=>{V.has(he.key)&&mr(he.key),he.controller&&V.set(he.key,he.controller)});let po=()=>at.forEach(he=>mr(he.key));T&&T.signal.addEventListener("abort",po);let{loaderResults:wn,fetcherResults:qi}=await Yr(g.matches,M,pt,at,$);if($.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",po),at.forEach(he=>V.delete(he.key));let Gi=Py([...wn,...qi]);if(Gi){if(Gi.idx>=pt.length){let he=at[Gi.idx-pt.length].key;le.add(he)}return await ke($,Gi.result,{replace:Y}),{shortCircuited:!0}}let{loaderData:Yi,errors:Tr}=by(g,M,pt,wn,de,at,qi,Le);Le.forEach((he,Ye)=>{he.subscribe(Jt=>{(Jt||he.done)&&Le.delete(Ye)})}),f.v7_partialHydration&&fe&&g.errors&&Object.entries(g.errors).filter(he=>{let[Ye]=he;return!pt.some(Jt=>Jt.route.id===Ye)}).forEach(he=>{let[Ye,Jt]=he;Tr=Object.assign(Tr||{},{[Ye]:Jt})});let zu=Wv(),Vu=Hv(ne),Bu=zu||Vu||at.length>0;return Ke({matches:M,loaderData:Yi,errors:Tr},Bu?{fetchers:new Map(g.fetchers)}:{})}function B($){if($&&!er($[1]))return{[$[0]]:$[1].data};if(g.actionData)return Object.keys(g.actionData).length===0?null:g.actionData}function K($){return $.forEach(F=>{let M=g.fetchers.get(F.key),z=xo(void 0,M?M.data:void 0);g.fetchers.set(F.key,z)}),new Map(g.fetchers)}function H($,F,M,z){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");V.has($)&&mr($);let X=(z&&z.unstable_flushSync)===!0,ae=s||o,se=xd(g.location,g.matches,l,f.v7_prependBasename,M,f.v7_relativeSplatPath,F,z==null?void 0:z.relative),Y=vi(ae,se,l),fe=Nu(Y,ae,se);if(fe.active&&fe.matches&&(Y=fe.matches),!Y){Yt($,F,$t(404,{pathname:se}),{flushSync:X});return}let{path:oe,submission:de,error:Fe}=gy(f.v7_normalizeFormMethod,!0,se,z);if(Fe){Yt($,F,Fe,{flushSync:X});return}let Pe=Mo(Y,oe);if(R=(z&&z.preventScrollReset)===!0,de&&br(de.formMethod)){re($,F,oe,Pe,Y,fe.active,X,de);return}_e.set($,{routeId:F,path:oe}),pe($,F,oe,Pe,Y,fe.active,X,de)}async function re($,F,M,z,X,ae,se,Y){vo(),_e.delete($);function fe(We){if(!We.route.action&&!We.route.lazy){let Jr=$t(405,{method:Y.formMethod,pathname:M,routeId:F});return Yt($,F,Jr,{flushSync:se}),!0}return!1}if(!ae&&fe(z))return;let oe=g.fetchers.get($);or($,nO(Y,oe),{flushSync:se});let de=new AbortController,Fe=Xi(e.history,M,de.signal,Y);if(ae){let We=await Uu(X,M,Fe.signal);if(We.type==="aborted")return;if(We.type==="error"){let{error:Jr}=ju(M,We);Yt($,F,Jr,{flushSync:se});return}else if(We.matches){if(X=We.matches,z=Mo(X,M),fe(z))return}else{Yt($,F,$t(404,{pathname:M}),{flushSync:se});return}}V.set($,de);let Pe=J,Ce=(await Be("action",Fe,[z],X))[0];if(Fe.signal.aborted){V.get($)===de&&V.delete($);return}if(f.v7_fetcherPersist&&Se.has($)){if(Ei(Ce)||er(Ce)){or($,En(void 0));return}}else{if(Ei(Ce))if(V.delete($),ne>Pe){or($,En(void 0));return}else return le.add($),or($,xo(Y)),ke(Fe,Ce,{fetcherSubmission:Y});if(er(Ce)){Yt($,F,Ce.error);return}}if(Si(Ce))throw $t(400,{type:"defer-action"});let pt=g.navigation.location||g.location,at=Xi(e.history,pt,de.signal),po=s||o,wn=g.navigation.state!=="idle"?vi(po,g.navigation.location,l):g.matches;ce(wn,"Didn't find any matches after fetcher action");let qi=++J;te.set($,qi);let Gi=xo(Y,Ce.data);g.fetchers.set($,Gi);let[Yi,Tr]=my(e.history,g,wn,Y,pt,!1,f.v7_skipActionErrorRevalidation,q,ie,U,Se,_e,le,po,l,[z.route.id,Ce]);Tr.filter(We=>We.key!==$).forEach(We=>{let Jr=We.key,Jv=g.fetchers.get(Jr),rE=xo(void 0,Jv?Jv.data:void 0);g.fetchers.set(Jr,rE),V.has(Jr)&&mr(Jr),We.controller&&V.set(Jr,We.controller)}),be({fetchers:new Map(g.fetchers)});let zu=()=>Tr.forEach(We=>mr(We.key));de.signal.addEventListener("abort",zu);let{loaderResults:Vu,fetcherResults:Bu}=await Yr(g.matches,wn,Yi,Tr,at);if(de.signal.aborted)return;de.signal.removeEventListener("abort",zu),te.delete($),V.delete($),Tr.forEach(We=>V.delete(We.key));let he=Py([...Vu,...Bu]);if(he){if(he.idx>=Yi.length){let We=Tr[he.idx-Yi.length].key;le.add(We)}return ke(at,he.result)}let{loaderData:Ye,errors:Jt}=by(g,g.matches,Yi,Vu,void 0,Tr,Bu,Le);if(g.fetchers.has($)){let We=En(Ce.data);g.fetchers.set($,We)}Hv(qi),g.navigation.state==="loading"&&qi>ne?(ce(O,"Expected pending action"),T&&T.abort(),Gt(g.navigation.location,{matches:wn,loaderData:Ye,errors:Jt,fetchers:new Map(g.fetchers)})):(be({errors:Jt,loaderData:xy(g.loaderData,Ye,wn,Jt),fetchers:new Map(g.fetchers)}),q=!1)}async function pe($,F,M,z,X,ae,se,Y){let fe=g.fetchers.get($);or($,xo(Y,fe?fe.data:void 0),{flushSync:se});let oe=new AbortController,de=Xi(e.history,M,oe.signal);if(ae){let Ce=await Uu(X,M,de.signal);if(Ce.type==="aborted")return;if(Ce.type==="error"){let{error:pt}=ju(M,Ce);Yt($,F,pt,{flushSync:se});return}else if(Ce.matches)X=Ce.matches,z=Mo(X,M);else{Yt($,F,$t(404,{pathname:M}),{flushSync:se});return}}V.set($,oe);let Fe=J,Me=(await Be("loader",de,[z],X))[0];if(Si(Me)&&(Me=await Aw(Me,de.signal,!0)||Me),V.get($)===oe&&V.delete($),!de.signal.aborted){if(Se.has($)){or($,En(void 0));return}if(Ei(Me))if(ne>Fe){or($,En(void 0));return}else{le.add($),await ke(de,Me);return}if(er(Me)){Yt($,F,Me.error);return}ce(!Si(Me),"Unhandled fetcher deferred data"),or($,En(Me.data))}}async function ke($,F,M){let{submission:z,fetcherSubmission:X,replace:ae}=M===void 0?{}:M;F.response.headers.has("X-Remix-Revalidate")&&(q=!0);let se=F.response.headers.get("Location");ce(se,"Expected a Location header on the redirect Response"),se=Sy(se,new URL($.url),l);let Y=gu(g.location,se,{_isRedirect:!0});if(r){let Me=!1;if(F.response.headers.has("X-Remix-Reload-Document"))Me=!0;else if(Hh.test(se)){const Ce=e.history.createURL(se);Me=Ce.origin!==t.location.origin||Jn(Ce.pathname,l)==null}if(Me){ae?t.location.replace(se):t.location.assign(se);return}}T=null;let fe=ae===!0||F.response.headers.has("X-Remix-Replace")?et.Replace:et.Push,{formMethod:oe,formAction:de,formEncType:Fe}=g.navigation;!z&&!X&&oe&&de&&Fe&&(z=ky(g.navigation));let Pe=z||X;if(IC.has(F.response.status)&&Pe&&br(Pe.formMethod))await P(fe,Y,{submission:Ke({},Pe,{formAction:se}),preventScrollReset:R});else{let Me=Xc(Y,z);await P(fe,Y,{overrideNavigation:Me,fetcherSubmission:X,preventScrollReset:R})}}async function Be($,F,M,z){try{let X=await KC(u,$,F,M,z,a,i);return await Promise.all(X.map((ae,se)=>{if(ZC(ae)){let Y=ae.result;return{type:Te.redirect,response:GC(Y,F,M[se].route.id,z,l,f.v7_relativeSplatPath)}}return qC(ae)}))}catch(X){return M.map(()=>({type:Te.error,error:X}))}}async function Yr($,F,M,z,X){let[ae,...se]=await Promise.all([M.length?Be("loader",X,M,F):[],...z.map(Y=>{if(Y.matches&&Y.match&&Y.controller){let fe=Xi(e.history,Y.path,Y.controller.signal);return Be("loader",fe,[Y.match],Y.matches).then(oe=>oe[0])}else return Promise.resolve({type:Te.error,error:$t(404,{pathname:Y.path})})})]);return await Promise.all([$y($,M,ae,ae.map(()=>X.signal),!1,g.loaderData),$y($,z.map(Y=>Y.match),se,z.map(Y=>Y.controller?Y.controller.signal:null),!0)]),{loaderResults:ae,fetcherResults:se}}function vo(){q=!0,ie.push(...Sc()),_e.forEach(($,F)=>{V.has(F)&&(U.add(F),mr(F))})}function or($,F,M){M===void 0&&(M={}),g.fetchers.set($,F),be({fetchers:new Map(g.fetchers)},{flushSync:(M&&M.flushSync)===!0})}function Yt($,F,M,z){z===void 0&&(z={});let X=va(g.matches,F);ci($),be({errors:{[X.route.id]:M},fetchers:new Map(g.fetchers)},{flushSync:(z&&z.flushSync)===!0})}function Du($){return f.v7_fetcherPersist&&(nt.set($,(nt.get($)||0)+1),Se.has($)&&Se.delete($)),g.fetchers.get($)||jC}function ci($){let F=g.fetchers.get($);V.has($)&&!(F&&F.state==="loading"&&te.has($))&&mr($),_e.delete($),te.delete($),le.delete($),Se.delete($),U.delete($),g.fetchers.delete($)}function wc($){if(f.v7_fetcherPersist){let F=(nt.get($)||0)-1;F<=0?(nt.delete($),Se.add($)):nt.set($,F)}else ci($);be({fetchers:new Map(g.fetchers)})}function mr($){let F=V.get($);ce(F,"Expected fetch controller: "+$),F.abort(),V.delete($)}function Bv($){for(let F of $){let M=Du(F),z=En(M.data);g.fetchers.set(F,z)}}function Wv(){let $=[],F=!1;for(let M of le){let z=g.fetchers.get(M);ce(z,"Expected fetcher: "+M),z.state==="loading"&&(le.delete(M),$.push(M),F=!0)}return Bv($),F}function Hv($){let F=[];for(let[M,z]of te)if(z<$){let X=g.fetchers.get(M);ce(X,"Expected fetcher: "+M),X.state==="loading"&&(mr(M),te.delete(M),F.push(M))}return Bv(F),F.length>0}function JS($,F){let M=g.blockers.get($)||ta;return st.get($)!==F&&st.set($,F),M}function Kv($){g.blockers.delete($),st.delete($)}function Iu($,F){let M=g.blockers.get($)||ta;ce(M.state==="unblocked"&&F.state==="blocked"||M.state==="blocked"&&F.state==="blocked"||M.state==="blocked"&&F.state==="proceeding"||M.state==="blocked"&&F.state==="unblocked"||M.state==="proceeding"&&F.state==="unblocked","Invalid blocker state transition: "+M.state+" -> "+F.state);let z=new Map(g.blockers);z.set($,F),be({blockers:z})}function Qv($){let{currentLocation:F,nextLocation:M,historyAction:z}=$;if(st.size===0)return;st.size>1&&zi(!1,"A router only supports one blocker at a time");let X=Array.from(st.entries()),[ae,se]=X[X.length-1],Y=g.blockers.get(ae);if(!(Y&&Y.state==="proceeding")&&se({currentLocation:F,nextLocation:M,historyAction:z}))return ae}function _c($){let F=$t(404,{pathname:$}),M=s||o,{matches:z,route:X}=Oy(M);return Sc(),{notFoundMatches:z,route:X,error:F}}function ju($,F){return{boundaryId:va(F.partialMatches).route.id,error:$t(400,{type:"route-discovery",pathname:$,message:F.error!=null&&"message"in F.error?F.error:String(F.error)})}}function Sc($){let F=[];return Le.forEach((M,z)=>{(!$||$(z))&&(M.cancel(),F.push(z),Le.delete(z))}),F}function XS($,F,M){if(x=$,d=F,y=M||null,!p&&g.navigation===Jc){p=!0;let z=Gv(g.location,g.matches);z!=null&&be({restoreScrollPosition:z})}return()=>{x=null,d=null,y=null}}function qv($,F){return y&&y($,F.map(z=>yC(z,g.loaderData)))||$.key}function ZS($,F){if(x&&d){let M=qv($,F);x[M]=d()}}function Gv($,F){if(x){let M=qv($,F),z=x[M];if(typeof z=="number")return z}return null}function Nu($,F,M){if(c){if(b.has(M))return{active:!1,matches:$};if($){if(Object.keys($[0].params).length>0)return{active:!0,matches:Os(F,M,l,!0)}}else return{active:!0,matches:Os(F,M,l,!0)||[]}}return{active:!1,matches:null}}async function Uu($,F,M){let z=$;for(;;){let X=s==null,ae=s||o;try{await WC(c,F,z,ae,a,i,Ee,M)}catch(fe){return{type:"error",error:fe,partialMatches:z}}finally{X&&(o=[...o])}if(M.aborted)return{type:"aborted"};let se=vi(ae,F,l);if(se)return Yv(F,b),{type:"success",matches:se};let Y=Os(ae,F,l,!0);if(!Y||z.length===Y.length&&z.every((fe,oe)=>fe.route.id===Y[oe].route.id))return Yv(F,b),{type:"success",matches:null};z=Y}}function Yv($,F){if(F.size>=_){let M=F.values().next().value;F.delete(M)}F.add($)}function eE($){a={},s=mu($,i,void 0,a)}function tE($,F){let M=s==null;$w($,F,s||o,a,i),M&&(o=[...o],be({}))}return C={get basename(){return l},get future(){return f},get state(){return g},get routes(){return o},get window(){return t},initialize:it,subscribe:Dt,enableScrollRestoration:XS,navigate:li,fetch:H,revalidate:mn,createHref:$=>e.history.createHref($),encodeLocation:$=>e.history.encodeLocation($),getFetcher:Du,deleteFetcher:wc,dispose:qt,getBlocker:JS,deleteBlocker:Kv,patchRoutes:tE,_internalFetchControllers:V,_internalActiveDeferreds:Le,_internalSetRoutes:eE},C}function zC(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function xd(e,t,r,n,i,a,o,s){let l,u;if(o){l=[];for(let f of t)if(l.push(f),f.route.id===o){u=f;break}}else l=t,u=t[t.length-1];let c=Nl(i||".",jl(l,a),Jn(e.pathname,r)||e.pathname,s==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!Kh(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:ln([r,c.pathname])),Vi(c)}function gy(e,t,r,n){if(!n||!zC(n))return{path:r};if(n.formMethod&&!tO(n.formMethod))return{path:r,error:$t(405,{method:n.formMethod})};let i=()=>({path:r,error:$t(400,{type:"invalid-body"})}),a=n.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=kw(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!br(o))return i();let h=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((w,_)=>{let[b,x]=_;return""+w+b+"="+x+` -`},""):String(n.body);return{path:r,submission:{formMethod:o,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!br(o))return i();try{let h=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:s,formEncType:n.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}ce(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=Cd(n.formData),u=n.formData;else if(n.body instanceof FormData)l=Cd(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=Ey(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=Ey(l)}catch{return i()}let c={formMethod:o,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(br(c.formMethod))return{path:r,submission:c};let f=Qr(r);return t&&f.search&&Kh(f.search)&&l.append("index",""),f.search="?"+l,{path:Vi(f),submission:c}}function VC(e,t){let r=e;if(t){let n=e.findIndex(i=>i.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function my(e,t,r,n,i,a,o,s,l,u,c,f,h,w,_,b){let x=b?er(b[1])?b[1].error:b[1].data:void 0,y=e.createURL(t.location),d=e.createURL(i),p=b&&er(b[1])?b[0]:void 0,m=p?VC(r,p):r,S=b?b[1].statusCode:void 0,E=o&&S&&S>=400,C=m.filter((O,R)=>{let{route:T}=O;if(T.lazy)return!0;if(T.loader==null)return!1;if(a)return typeof T.loader!="function"||T.loader.hydrate?!0:t.loaderData[T.id]===void 0&&(!t.errors||t.errors[T.id]===void 0);if(BC(t.loaderData,t.matches[R],O)||l.some(I=>I===O.route.id))return!0;let L=t.matches[R],N=O;return wy(O,Ke({currentUrl:y,currentParams:L.params,nextUrl:d,nextParams:N.params},n,{actionResult:x,actionStatus:S,defaultShouldRevalidate:E?!1:s||y.pathname+y.search===d.pathname+d.search||y.search!==d.search||Rw(L,N)}))}),g=[];return f.forEach((O,R)=>{if(a||!r.some(Q=>Q.route.id===O.routeId)||c.has(R))return;let T=vi(w,O.path,_);if(!T){g.push({key:R,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let L=t.fetchers.get(R),N=Mo(T,O.path),I=!1;h.has(R)?I=!1:u.has(R)?(u.delete(R),I=!0):L&&L.state!=="idle"&&L.data===void 0?I=s:I=wy(N,Ke({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:d,nextParams:r[r.length-1].params},n,{actionResult:x,actionStatus:S,defaultShouldRevalidate:E?!1:s})),I&&g.push({key:R,routeId:O.routeId,path:O.path,matches:T,match:N,controller:new AbortController})}),[C,g]}function BC(e,t,r){let n=!t||r.route.id!==t.route.id,i=e[r.route.id]===void 0;return n||i}function Rw(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function wy(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function WC(e,t,r,n,i,a,o,s){let l=[t,...r.map(u=>u.route.id)].join("-");try{let u=o.get(l);u||(u=e({path:t,matches:r,patch:(c,f)=>{s.aborted||$w(c,f,n,i,a)}}),o.set(l,u)),u&&XC(u)&&await u}finally{o.delete(l)}}function $w(e,t,r,n,i){if(e){var a;let o=n[e];ce(o,"No route found to patch children into: routeId = "+e);let s=mu(t,i,[e,"patch",String(((a=o.children)==null?void 0:a.length)||"0")],n);o.children?o.children.push(...s):o.children=s}else{let o=mu(t,i,["patch",String(r.length||"0")],n);r.push(...o)}}async function _y(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let i=r[e.id];ce(i,"No route found in manifest");let a={};for(let o in n){let l=i[o]!==void 0&&o!=="hasErrorBoundary";zi(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!vC.has(o)&&(a[o]=n[o])}Object.assign(i,a),Object.assign(i,Ke({},t(i),{lazy:void 0}))}function HC(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function KC(e,t,r,n,i,a,o,s){let l=n.reduce((f,h)=>f.add(h.route.id),new Set),u=new Set,c=await e({matches:i.map(f=>{let h=l.has(f.route.id);return Ke({},f,{shouldLoad:h,resolve:_=>(u.add(f.route.id),h?QC(t,r,f,a,o,_,s):Promise.resolve({type:Te.data,result:void 0}))})}),request:r,params:i[0].params,context:s});return i.forEach(f=>ce(u.has(f.route.id),'`match.resolve()` was not called for route id "'+f.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),c.filter((f,h)=>l.has(i[h].route.id))}async function QC(e,t,r,n,i,a,o){let s,l,u=c=>{let f,h=new Promise((b,x)=>f=x);l=()=>f(),t.signal.addEventListener("abort",l);let w=b=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):c({request:t,params:r.params,context:o},...b!==void 0?[b]:[]),_;return a?_=a(b=>w(b)):_=(async()=>{try{return{type:"data",result:await w()}}catch(b){return{type:"error",result:b}}})(),Promise.race([_,h])};try{let c=r.route[e];if(r.route.lazy)if(c){let f,[h]=await Promise.all([u(c).catch(w=>{f=w}),_y(r.route,i,n)]);if(f!==void 0)throw f;s=h}else if(await _y(r.route,i,n),c=r.route[e],c)s=await u(c);else if(e==="action"){let f=new URL(t.url),h=f.pathname+f.search;throw $t(405,{method:t.method,pathname:h,routeId:r.route.id})}else return{type:Te.data,result:void 0};else if(c)s=await u(c);else{let f=new URL(t.url),h=f.pathname+f.search;throw $t(404,{pathname:h})}ce(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:Te.error,result:c}}finally{l&&t.signal.removeEventListener("abort",l)}return s}async function qC(e){let{result:t,type:r}=e;if(Fw(t)){let u;try{let c=t.headers.get("Content-Type");c&&/\bapplication\/json\b/.test(c)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(c){return{type:Te.error,error:c}}return r===Te.error?{type:Te.error,error:new tl(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:Te.data,data:u,statusCode:t.status,headers:t.headers}}if(r===Te.error){if(Ry(t)){var n;if(t.data instanceof Error){var i;return{type:Te.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new tl(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:Te.error,error:t,statusCode:Ul(t)?t.status:void 0}}if(eO(t)){var a,o;return{type:Te.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((o=t.init)==null?void 0:o.headers)&&new Headers(t.init.headers)}}if(Ry(t)){var s,l;return{type:Te.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:Te.data,data:t}}function GC(e,t,r,n,i,a){let o=e.headers.get("Location");if(ce(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!Hh.test(o)){let s=n.slice(0,n.findIndex(l=>l.route.id===r)+1);o=xd(new URL(t.url),s,i,!0,o,a),e.headers.set("Location",o)}return e}function Sy(e,t,r){if(Hh.test(e)){let n=e,i=n.startsWith("//")?new URL(t.protocol+n):new URL(n),a=Jn(i.pathname,r)!=null;if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}return e}function Xi(e,t,r,n){let i=e.createURL(kw(t)).toString(),a={signal:r};if(n&&br(n.formMethod)){let{formMethod:o,formEncType:s}=n;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(n.json)):s==="text/plain"?a.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?a.body=Cd(n.formData):a.body=n.formData}return new Request(i,a)}function Cd(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function Ey(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function YC(e,t,r,n,i,a){let o={},s=null,l,u=!1,c={},f=n&&er(n[1])?n[1].error:void 0;return r.forEach((h,w)=>{let _=t[w].route.id;if(ce(!Ei(h),"Cannot handle redirect results in processLoaderData"),er(h)){let b=h.error;f!==void 0&&(b=f,f=void 0),s=s||{};{let x=va(e,_);s[x.route.id]==null&&(s[x.route.id]=b)}o[_]=void 0,u||(u=!0,l=Ul(h.error)?h.error.status:500),h.headers&&(c[_]=h.headers)}else Si(h)?(i.set(_,h.deferredData),o[_]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!u&&(l=h.statusCode),h.headers&&(c[_]=h.headers)):(o[_]=h.data,h.statusCode&&h.statusCode!==200&&!u&&(l=h.statusCode),h.headers&&(c[_]=h.headers))}),f!==void 0&&n&&(s={[n[0]]:f},o[n[0]]=void 0),{loaderData:o,errors:s,statusCode:l||200,loaderHeaders:c}}function by(e,t,r,n,i,a,o,s){let{loaderData:l,errors:u}=YC(t,r,n,i,s);for(let c=0;cn.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function Oy(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function $t(e,t){let{pathname:r,routeId:n,method:i,type:a,message:o}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",a==="route-discovery"?l='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: -`+o):i&&r&&n?l="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",l='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",i&&r&&n?l="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new tl(e||500,s,new Error(l),!0)}function Py(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(Ei(r))return{result:r,idx:t}}}function kw(e){let t=typeof e=="string"?Qr(e):e;return Vi(Ke({},t,{hash:""}))}function JC(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function XC(e){return typeof e=="object"&&e!=null&&"then"in e}function ZC(e){return Fw(e.result)&&DC.has(e.result.status)}function Si(e){return e.type===Te.deferred}function er(e){return e.type===Te.error}function Ei(e){return(e&&e.type)===Te.redirect}function Ry(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function eO(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Fw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function tO(e){return MC.has(e.toLowerCase())}function br(e){return TC.has(e.toLowerCase())}async function $y(e,t,r,n,i,a){for(let o=0;of.route.id===l.route.id),c=u!=null&&!Rw(u,l)&&(a&&a[l.route.id])!==void 0;if(Si(s)&&(i||c)){let f=n[o];ce(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await Aw(s,f,i).then(h=>{h&&(r[o]=h||r[o])})}}}async function Aw(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:Te.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Te.error,error:i}}return{type:Te.data,data:e.deferredData.data}}}function Kh(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Mo(e,t){let r=typeof t=="string"?Qr(t).search:t.search;if(e[e.length-1].route.index&&Kh(r||""))return e[e.length-1];let n=Cw(e);return n[n.length-1]}function ky(e){let{formMethod:t,formAction:r,formEncType:n,text:i,formData:a,json:o}=e;if(!(!t||!r||!n)){if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}}}function Xc(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function rO(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function xo(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function nO(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function En(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function iO(e,t){try{let r=e.sessionStorage.getItem(Pw);if(r){let n=JSON.parse(r);for(let[i,a]of Object.entries(n||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function aO(e,t){if(t.size>0){let r={};for(let[n,i]of t)r[n]=[...i];try{e.sessionStorage.setItem(Pw,JSON.stringify(r))}catch(n){zi(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + */function Ke(){return Ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function zi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function hC(){return Math.random().toString(36).substr(2,8)}function py(e,t){return{usr:e.state,key:e.key,idx:t}}function gu(e,t,r,n){return r===void 0&&(r=null),Ke({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?qr(t):t,{state:r,key:t&&t.key||n||hC()})}function Vi(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function qr(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function vC(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s=et.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(Ke({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){s=et.Pop;let b=c(),y=b==null?null:b-u;u=b,l&&l({action:s,location:x.location,delta:y})}function h(b,y){s=et.Push;let d=gu(x.location,b,y);r&&r(d,b),u=c()+1;let p=py(d,u),m=x.createHref(d);try{o.pushState(p,"",m)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(m)}a&&l&&l({action:s,location:x.location,delta:1})}function w(b,y){s=et.Replace;let d=gu(x.location,b,y);r&&r(d,b),u=c();let p=py(d,u),m=x.createHref(d);o.replaceState(p,"",m),a&&l&&l({action:s,location:x.location,delta:0})}function _(b){let y=i.location.origin!=="null"?i.location.origin:i.location.href,d=typeof b=="string"?b:Vi(b);return d=d.replace(/ $/,"%20"),ce(y,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,y)}let x={get action(){return s},get location(){return e(i,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(vy,f),l=b,()=>{i.removeEventListener(vy,f),l=null}},createHref(b){return t(i,b)},createURL:_,encodeLocation(b){let y=_(b);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:w,go(b){return o.go(b)}};return x}var Te;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Te||(Te={}));const pC=new Set(["lazy","caseSensitive","path","id","index","children"]);function yC(e){return e.index===!0}function mu(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((i,a)=>{let o=[...r,String(a)],s=typeof i.id=="string"?i.id:o.join("-");if(ce(i.index!==!0||!i.children,"Cannot specify children on an index route"),ce(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),yC(i)){let l=Ke({},i,t(i),{id:s});return n[s]=l,l}else{let l=Ke({},i,t(i),{id:s,children:void 0});return n[s]=l,i.children&&(l.children=mu(i.children,t,o,n)),l}})}function pi(e,t,r){return r===void 0&&(r="/"),Os(e,t,r,!1)}function Os(e,t,r,n){let i=typeof t=="string"?qr(t):t,a=Xn(i.pathname||"/",r);if(a==null)return null;let o=bw(e);mC(o);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(ce(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=cn([n,l.relativePath]),c=r.concat(l);a.children&&a.children.length>0&&(ce(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),bw(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:CC(u,a.index),routesMeta:c})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of xw(a.path))i(a,o,l)}),t}function xw(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=xw(n.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function mC(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:OC(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const wC=/^:[\w-]+$/,_C=3,SC=2,EC=1,bC=10,xC=-2,yy=e=>e==="*";function CC(e,t){let r=e.split("/"),n=r.length;return r.some(yy)&&(n+=xC),t&&(n+=SC),r.filter(i=>!yy(i)).reduce((i,a)=>i+(wC.test(a)?_C:a===""?EC:bC),n)}function OC(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function PC(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,i={},a="/",o=[];for(let s=0;s{let{paramName:h,isOptional:w}=c;if(h==="*"){let x=s[f]||"";o=a.slice(0,a.length-x.length).replace(/(.)\/+$/,"$1")}const _=s[f];return w&&!_?u[h]=void 0:u[h]=(_||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function RC(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),zi(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function Cw(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return zi(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Xn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function $C(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?qr(e):e;return{pathname:r?r.startsWith("/")?r:kC(r,t):t,search:AC(n),hash:TC(i)}}function kC(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Yc(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Ow(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function jl(e,t){let r=Ow(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Nl(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=qr(e):(i=Ke({},e),ce(!i.pathname||!i.pathname.includes("?"),Yc("?","pathname","search",i)),ce(!i.pathname||!i.pathname.includes("#"),Yc("#","pathname","hash",i)),ce(!i.search||!i.search.includes("#"),Yc("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=r;else{let f=t.length-1;if(!n&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;i.pathname=h.join("/")}s=f>=0?t[f]:"/"}let l=$C(i,s),u=o&&o!=="/"&&o.endsWith("/"),c=(a||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const cn=e=>e.join("/").replace(/\/\/+/g,"/"),FC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),AC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,TC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class tl{constructor(t,r,n,i){i===void 0&&(i=!1),this.status=t,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Ul(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Pw=["post","put","patch","delete"],LC=new Set(Pw),MC=["get",...Pw],DC=new Set(MC),IC=new Set([301,302,303,307,308]),jC=new Set([307,308]),Jc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},NC={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ta={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Hh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,UC=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Rw="remix-router-transitions";function zC(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;ce(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let $=e.detectErrorBoundary;i=F=>({hasErrorBoundary:$(F)})}else i=UC;let a={},o=mu(e.routes,i,void 0,a),s,l=e.basename||"/",u=e.unstable_dataStrategy||KC,c=e.unstable_patchRoutesOnNavigation,f=Ke({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),h=null,w=new Set,_=1e3,x=new Set,b=null,y=null,d=null,p=e.hydrationData!=null,m=pi(o,e.history.location,l),S=null;if(m==null&&!c){let $=$t(404,{pathname:e.history.location.pathname}),{matches:F,route:M}=Oy(o);m=F,S={[M.id]:$}}m&&!e.hydrationData&&Nu(m,o,e.history.location.pathname).active&&(m=null);let E;if(m)if(m.some($=>$.route.lazy))E=!1;else if(!m.some($=>$.route.loader))E=!0;else if(f.v7_partialHydration){let $=e.hydrationData?e.hydrationData.loaderData:null,F=e.hydrationData?e.hydrationData.errors:null,M=z=>z.route.loader?typeof z.route.loader=="function"&&z.route.loader.hydrate===!0?!1:$&&$[z.route.id]!==void 0||F&&F[z.route.id]!==void 0:!0;if(F){let z=m.findIndex(X=>F[X.route.id]!==void 0);E=m.slice(0,z+1).every(M)}else E=m.every(M)}else E=e.hydrationData!=null;else if(E=!1,m=[],f.v7_partialHydration){let $=Nu(null,o,e.history.location.pathname);$.active&&$.matches&&(m=$.matches)}let C,g={historyAction:e.history.action,location:e.history.location,matches:m,initialized:E,navigation:Jc,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||S,fetchers:new Map,blockers:new Map},O=et.Pop,R=!1,T,L=!1,N=new Map,I=null,Q=!1,q=!1,ie=[],U=new Set,V=new Map,J=0,ne=-1,te=new Map,le=new Set,_e=new Map,nt=new Map,Se=new Set,Le=new Map,lt=new Map,Ee=new Map,wt=!1;function it(){if(h=e.history.listen($=>{let{action:F,location:M,delta:z}=$;if(wt){wt=!1;return}zi(lt.size===0||z!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let X=Qv({currentLocation:g.location,nextLocation:M,historyAction:F});if(X&&z!=null){wt=!0,e.history.go(z*-1),Iu(X,{state:"blocked",location:M,proceed(){Iu(X,{state:"proceeding",proceed:void 0,reset:void 0,location:M}),e.history.go(z)},reset(){let ae=new Map(g.blockers);ae.set(X,ta),be({blockers:ae})}});return}return P(F,M)}),r){aO(t,N);let $=()=>oO(t,N);t.addEventListener("pagehide",$),I=()=>t.removeEventListener("pagehide",$)}return g.initialized||P(et.Pop,g.location,{initialHydration:!0}),C}function qt(){h&&h(),I&&I(),w.clear(),T&&T.abort(),g.fetchers.forEach(($,F)=>fi(F)),g.blockers.forEach(($,F)=>Kv(F))}function Dt($){return w.add($),()=>w.delete($)}function be($,F){F===void 0&&(F={}),g=Ke({},g,$);let M=[],z=[];f.v7_fetcherPersist&&g.fetchers.forEach((X,ae)=>{X.state==="idle"&&(Se.has(ae)?z.push(ae):M.push(ae))}),[...w].forEach(X=>X(g,{deletedFetchers:z,unstable_viewTransitionOpts:F.viewTransitionOpts,unstable_flushSync:F.flushSync===!0})),f.v7_fetcherPersist&&(M.forEach(X=>g.fetchers.delete(X)),z.forEach(X=>fi(X)))}function Gt($,F,M){var z,X;let{flushSync:ae}=M===void 0?{}:M,se=g.actionData!=null&&g.navigation.formMethod!=null&&xr(g.navigation.formMethod)&&g.navigation.state==="loading"&&((z=$.state)==null?void 0:z._isRedirect)!==!0,Y;F.actionData?Object.keys(F.actionData).length>0?Y=F.actionData:Y=null:se?Y=g.actionData:Y=null;let fe=F.loaderData?xy(g.loaderData,F.loaderData,F.matches||[],F.errors):g.loaderData,oe=g.blockers;oe.size>0&&(oe=new Map(oe),oe.forEach((Re,Me)=>oe.set(Me,ta)));let de=R===!0||g.navigation.formMethod!=null&&xr(g.navigation.formMethod)&&((X=$.state)==null?void 0:X._isRedirect)!==!0;s&&(o=s,s=void 0),Q||O===et.Pop||(O===et.Push?e.history.push($,$.state):O===et.Replace&&e.history.replace($,$.state));let Fe;if(O===et.Pop){let Re=N.get(g.location.pathname);Re&&Re.has($.pathname)?Fe={currentLocation:g.location,nextLocation:$}:N.has($.pathname)&&(Fe={currentLocation:$,nextLocation:g.location})}else if(L){let Re=N.get(g.location.pathname);Re?Re.add($.pathname):(Re=new Set([$.pathname]),N.set(g.location.pathname,Re)),Fe={currentLocation:g.location,nextLocation:$}}be(Ke({},F,{actionData:Y,loaderData:fe,historyAction:O,location:$,initialized:!0,navigation:Jc,revalidation:"idle",restoreScrollPosition:Gv($,F.matches||g.matches),preventScrollReset:de,blockers:oe}),{viewTransitionOpts:Fe,flushSync:ae===!0}),O=et.Pop,R=!1,L=!1,Q=!1,q=!1,ie=[]}async function ci($,F){if(typeof $=="number"){e.history.go($);return}let M=xd(g.location,g.matches,l,f.v7_prependBasename,$,f.v7_relativeSplatPath,F==null?void 0:F.fromRouteId,F==null?void 0:F.relative),{path:z,submission:X,error:ae}=gy(f.v7_normalizeFormMethod,!1,M,F),se=g.location,Y=gu(g.location,z,F&&F.state);Y=Ke({},Y,e.history.encodeLocation(Y));let fe=F&&F.replace!=null?F.replace:void 0,oe=et.Push;fe===!0?oe=et.Replace:fe===!1||X!=null&&xr(X.formMethod)&&X.formAction===g.location.pathname+g.location.search&&(oe=et.Replace);let de=F&&"preventScrollReset"in F?F.preventScrollReset===!0:void 0,Fe=(F&&F.unstable_flushSync)===!0,Re=Qv({currentLocation:se,nextLocation:Y,historyAction:oe});if(Re){Iu(Re,{state:"blocked",location:Y,proceed(){Iu(Re,{state:"proceeding",proceed:void 0,reset:void 0,location:Y}),ci($,F)},reset(){let Me=new Map(g.blockers);Me.set(Re,ta),be({blockers:Me})}});return}return await P(oe,Y,{submission:X,pendingError:ae,preventScrollReset:de,replace:F&&F.replace,enableViewTransition:F&&F.unstable_viewTransition,flushSync:Fe})}function wn(){if(vo(),be({revalidation:"loading"}),g.navigation.state!=="submitting"){if(g.navigation.state==="idle"){P(g.historyAction,g.location,{startUninterruptedRevalidation:!0});return}P(O||g.historyAction,g.navigation.location,{overrideNavigation:g.navigation})}}async function P($,F,M){T&&T.abort(),T=null,O=$,Q=(M&&M.startUninterruptedRevalidation)===!0,eE(g.location,g.matches),R=(M&&M.preventScrollReset)===!0,L=(M&&M.enableViewTransition)===!0;let z=s||o,X=M&&M.overrideNavigation,ae=pi(z,F,l),se=(M&&M.flushSync)===!0,Y=Nu(ae,z,F.pathname);if(Y.active&&Y.matches&&(ae=Y.matches),!ae){let{error:Ce,notFoundMatches:pt,route:at}=_c(F.pathname);Gt(F,{matches:pt,loaderData:{},errors:{[at.id]:Ce}},{flushSync:se});return}if(g.initialized&&!q&&XC(g.location,F)&&!(M&&M.submission&&xr(M.submission.formMethod))){Gt(F,{matches:ae},{flushSync:se});return}T=new AbortController;let fe=Xi(e.history,F,T.signal,M&&M.submission),oe;if(M&&M.pendingError)oe=[va(ae).route.id,{type:Te.error,error:M.pendingError}];else if(M&&M.submission&&xr(M.submission.formMethod)){let Ce=await A(fe,F,M.submission,ae,Y.active,{replace:M.replace,flushSync:se});if(Ce.shortCircuited)return;if(Ce.pendingActionResult){let[pt,at]=Ce.pendingActionResult;if(er(at)&&Ul(at.error)&&at.error.status===404){T=null,Gt(F,{matches:Ce.matches,loaderData:{},errors:{[pt]:at.error}});return}}ae=Ce.matches||ae,oe=Ce.pendingActionResult,X=Xc(F,M.submission),se=!1,Y.active=!1,fe=Xi(e.history,fe.url,fe.signal)}let{shortCircuited:de,matches:Fe,loaderData:Re,errors:Me}=await D(fe,F,ae,Y.active,X,M&&M.submission,M&&M.fetcherSubmission,M&&M.replace,M&&M.initialHydration===!0,se,oe);de||(T=null,Gt(F,Ke({matches:Fe||ae},Cy(oe),{loaderData:Re,errors:Me})))}async function A($,F,M,z,X,ae){ae===void 0&&(ae={}),vo();let se=nO(F,M);if(be({navigation:se},{flushSync:ae.flushSync===!0}),X){let oe=await Uu(z,F.pathname,$.signal);if(oe.type==="aborted")return{shortCircuited:!0};if(oe.type==="error"){let{boundaryId:de,error:Fe}=ju(F.pathname,oe);return{matches:oe.partialMatches,pendingActionResult:[de,{type:Te.error,error:Fe}]}}else if(oe.matches)z=oe.matches;else{let{notFoundMatches:de,error:Fe,route:Re}=_c(F.pathname);return{matches:de,pendingActionResult:[Re.id,{type:Te.error,error:Fe}]}}}let Y,fe=Mo(z,F);if(!fe.route.action&&!fe.route.lazy)Y={type:Te.error,error:$t(405,{method:$.method,pathname:F.pathname,routeId:fe.route.id})};else if(Y=(await Pe("action",$,[fe],z))[0],$.signal.aborted)return{shortCircuited:!0};if(bi(Y)){let oe;return ae&&ae.replace!=null?oe=ae.replace:oe=Sy(Y.response.headers.get("Location"),new URL($.url),l)===g.location.pathname+g.location.search,await Ie($,Y,{submission:M,replace:oe}),{shortCircuited:!0}}if(Ei(Y))throw $t(400,{type:"defer-action"});if(er(Y)){let oe=va(z,fe.route.id);return(ae&&ae.replace)!==!0&&(O=et.Push),{matches:z,pendingActionResult:[oe.route.id,Y]}}return{matches:z,pendingActionResult:[fe.route.id,Y]}}async function D($,F,M,z,X,ae,se,Y,fe,oe,de){let Fe=X||Xc(F,ae),Re=ae||se||ky(Fe),Me=!Q&&(!f.v7_partialHydration||!fe);if(z){if(Me){let Ye=B(de);be(Ke({navigation:Fe},Ye!==void 0?{actionData:Ye}:{}),{flushSync:oe})}let he=await Uu(M,F.pathname,$.signal);if(he.type==="aborted")return{shortCircuited:!0};if(he.type==="error"){let{boundaryId:Ye,error:Jt}=ju(F.pathname,he);return{matches:he.partialMatches,loaderData:{},errors:{[Ye]:Jt}}}else if(he.matches)M=he.matches;else{let{error:Ye,notFoundMatches:Jt,route:We}=_c(F.pathname);return{matches:Jt,loaderData:{},errors:{[We.id]:Ye}}}}let Ce=s||o,[pt,at]=my(e.history,g,M,Re,F,f.v7_partialHydration&&fe===!0,f.v7_skipActionErrorRevalidation,q,ie,U,Se,_e,le,Ce,l,de);if(Sc(he=>!(M&&M.some(Ye=>Ye.route.id===he))||pt&&pt.some(Ye=>Ye.route.id===he)),ne=++J,pt.length===0&&at.length===0){let he=Wv();return Gt(F,Ke({matches:M,loaderData:{},errors:de&&er(de[1])?{[de[0]]:de[1].error}:null},Cy(de),he?{fetchers:new Map(g.fetchers)}:{}),{flushSync:oe}),{shortCircuited:!0}}if(Me){let he={};if(!z){he.navigation=Fe;let Ye=B(de);Ye!==void 0&&(he.actionData=Ye)}at.length>0&&(he.fetchers=K(at)),be(he,{flushSync:oe})}at.forEach(he=>{V.has(he.key)&&wr(he.key),he.controller&&V.set(he.key,he.controller)});let po=()=>at.forEach(he=>wr(he.key));T&&T.signal.addEventListener("abort",po);let{loaderResults:_n,fetcherResults:qi}=await Lr(g.matches,M,pt,at,$);if($.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",po),at.forEach(he=>V.delete(he.key));let Gi=Py([..._n,...qi]);if(Gi){if(Gi.idx>=pt.length){let he=at[Gi.idx-pt.length].key;le.add(he)}return await Ie($,Gi.result,{replace:Y}),{shortCircuited:!0}}let{loaderData:Yi,errors:Mr}=by(g,M,pt,_n,de,at,qi,Le);Le.forEach((he,Ye)=>{he.subscribe(Jt=>{(Jt||he.done)&&Le.delete(Ye)})}),f.v7_partialHydration&&fe&&g.errors&&Object.entries(g.errors).filter(he=>{let[Ye]=he;return!pt.some(Jt=>Jt.route.id===Ye)}).forEach(he=>{let[Ye,Jt]=he;Mr=Object.assign(Mr||{},{[Ye]:Jt})});let zu=Wv(),Vu=Hv(ne),Bu=zu||Vu||at.length>0;return Ke({matches:M,loaderData:Yi,errors:Mr},Bu?{fetchers:new Map(g.fetchers)}:{})}function B($){if($&&!er($[1]))return{[$[0]]:$[1].data};if(g.actionData)return Object.keys(g.actionData).length===0?null:g.actionData}function K($){return $.forEach(F=>{let M=g.fetchers.get(F.key),z=xo(void 0,M?M.data:void 0);g.fetchers.set(F.key,z)}),new Map(g.fetchers)}function H($,F,M,z){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");V.has($)&&wr($);let X=(z&&z.unstable_flushSync)===!0,ae=s||o,se=xd(g.location,g.matches,l,f.v7_prependBasename,M,f.v7_relativeSplatPath,F,z==null?void 0:z.relative),Y=pi(ae,se,l),fe=Nu(Y,ae,se);if(fe.active&&fe.matches&&(Y=fe.matches),!Y){Yt($,F,$t(404,{pathname:se}),{flushSync:X});return}let{path:oe,submission:de,error:Fe}=gy(f.v7_normalizeFormMethod,!0,se,z);if(Fe){Yt($,F,Fe,{flushSync:X});return}let Re=Mo(Y,oe);if(R=(z&&z.preventScrollReset)===!0,de&&xr(de.formMethod)){re($,F,oe,Re,Y,fe.active,X,de);return}_e.set($,{routeId:F,path:oe}),pe($,F,oe,Re,Y,fe.active,X,de)}async function re($,F,M,z,X,ae,se,Y){vo(),_e.delete($);function fe(We){if(!We.route.action&&!We.route.lazy){let Jr=$t(405,{method:Y.formMethod,pathname:M,routeId:F});return Yt($,F,Jr,{flushSync:se}),!0}return!1}if(!ae&&fe(z))return;let oe=g.fetchers.get($);or($,iO(Y,oe),{flushSync:se});let de=new AbortController,Fe=Xi(e.history,M,de.signal,Y);if(ae){let We=await Uu(X,M,Fe.signal);if(We.type==="aborted")return;if(We.type==="error"){let{error:Jr}=ju(M,We);Yt($,F,Jr,{flushSync:se});return}else if(We.matches){if(X=We.matches,z=Mo(X,M),fe(z))return}else{Yt($,F,$t(404,{pathname:M}),{flushSync:se});return}}V.set($,de);let Re=J,Ce=(await Pe("action",Fe,[z],X))[0];if(Fe.signal.aborted){V.get($)===de&&V.delete($);return}if(f.v7_fetcherPersist&&Se.has($)){if(bi(Ce)||er(Ce)){or($,bn(void 0));return}}else{if(bi(Ce))if(V.delete($),ne>Re){or($,bn(void 0));return}else return le.add($),or($,xo(Y)),Ie(Fe,Ce,{fetcherSubmission:Y});if(er(Ce)){Yt($,F,Ce.error);return}}if(Ei(Ce))throw $t(400,{type:"defer-action"});let pt=g.navigation.location||g.location,at=Xi(e.history,pt,de.signal),po=s||o,_n=g.navigation.state!=="idle"?pi(po,g.navigation.location,l):g.matches;ce(_n,"Didn't find any matches after fetcher action");let qi=++J;te.set($,qi);let Gi=xo(Y,Ce.data);g.fetchers.set($,Gi);let[Yi,Mr]=my(e.history,g,_n,Y,pt,!1,f.v7_skipActionErrorRevalidation,q,ie,U,Se,_e,le,po,l,[z.route.id,Ce]);Mr.filter(We=>We.key!==$).forEach(We=>{let Jr=We.key,Jv=g.fetchers.get(Jr),nE=xo(void 0,Jv?Jv.data:void 0);g.fetchers.set(Jr,nE),V.has(Jr)&&wr(Jr),We.controller&&V.set(Jr,We.controller)}),be({fetchers:new Map(g.fetchers)});let zu=()=>Mr.forEach(We=>wr(We.key));de.signal.addEventListener("abort",zu);let{loaderResults:Vu,fetcherResults:Bu}=await Lr(g.matches,_n,Yi,Mr,at);if(de.signal.aborted)return;de.signal.removeEventListener("abort",zu),te.delete($),V.delete($),Mr.forEach(We=>V.delete(We.key));let he=Py([...Vu,...Bu]);if(he){if(he.idx>=Yi.length){let We=Mr[he.idx-Yi.length].key;le.add(We)}return Ie(at,he.result)}let{loaderData:Ye,errors:Jt}=by(g,g.matches,Yi,Vu,void 0,Mr,Bu,Le);if(g.fetchers.has($)){let We=bn(Ce.data);g.fetchers.set($,We)}Hv(qi),g.navigation.state==="loading"&&qi>ne?(ce(O,"Expected pending action"),T&&T.abort(),Gt(g.navigation.location,{matches:_n,loaderData:Ye,errors:Jt,fetchers:new Map(g.fetchers)})):(be({errors:Jt,loaderData:xy(g.loaderData,Ye,_n,Jt),fetchers:new Map(g.fetchers)}),q=!1)}async function pe($,F,M,z,X,ae,se,Y){let fe=g.fetchers.get($);or($,xo(Y,fe?fe.data:void 0),{flushSync:se});let oe=new AbortController,de=Xi(e.history,M,oe.signal);if(ae){let Ce=await Uu(X,M,de.signal);if(Ce.type==="aborted")return;if(Ce.type==="error"){let{error:pt}=ju(M,Ce);Yt($,F,pt,{flushSync:se});return}else if(Ce.matches)X=Ce.matches,z=Mo(X,M);else{Yt($,F,$t(404,{pathname:M}),{flushSync:se});return}}V.set($,oe);let Fe=J,Me=(await Pe("loader",de,[z],X))[0];if(Ei(Me)&&(Me=await Tw(Me,de.signal,!0)||Me),V.get($)===oe&&V.delete($),!de.signal.aborted){if(Se.has($)){or($,bn(void 0));return}if(bi(Me))if(ne>Fe){or($,bn(void 0));return}else{le.add($),await Ie(de,Me);return}if(er(Me)){Yt($,F,Me.error);return}ce(!Ei(Me),"Unhandled fetcher deferred data"),or($,bn(Me.data))}}async function Ie($,F,M){let{submission:z,fetcherSubmission:X,replace:ae}=M===void 0?{}:M;F.response.headers.has("X-Remix-Revalidate")&&(q=!0);let se=F.response.headers.get("Location");ce(se,"Expected a Location header on the redirect Response"),se=Sy(se,new URL($.url),l);let Y=gu(g.location,se,{_isRedirect:!0});if(r){let Me=!1;if(F.response.headers.has("X-Remix-Reload-Document"))Me=!0;else if(Hh.test(se)){const Ce=e.history.createURL(se);Me=Ce.origin!==t.location.origin||Xn(Ce.pathname,l)==null}if(Me){ae?t.location.replace(se):t.location.assign(se);return}}T=null;let fe=ae===!0||F.response.headers.has("X-Remix-Replace")?et.Replace:et.Push,{formMethod:oe,formAction:de,formEncType:Fe}=g.navigation;!z&&!X&&oe&&de&&Fe&&(z=ky(g.navigation));let Re=z||X;if(jC.has(F.response.status)&&Re&&xr(Re.formMethod))await P(fe,Y,{submission:Ke({},Re,{formAction:se}),preventScrollReset:R});else{let Me=Xc(Y,z);await P(fe,Y,{overrideNavigation:Me,fetcherSubmission:X,preventScrollReset:R})}}async function Pe($,F,M,z){try{let X=await QC(u,$,F,M,z,a,i);return await Promise.all(X.map((ae,se)=>{if(eO(ae)){let Y=ae.result;return{type:Te.redirect,response:YC(Y,F,M[se].route.id,z,l,f.v7_relativeSplatPath)}}return GC(ae)}))}catch(X){return M.map(()=>({type:Te.error,error:X}))}}async function Lr($,F,M,z,X){let[ae,...se]=await Promise.all([M.length?Pe("loader",X,M,F):[],...z.map(Y=>{if(Y.matches&&Y.match&&Y.controller){let fe=Xi(e.history,Y.path,Y.controller.signal);return Pe("loader",fe,[Y.match],Y.matches).then(oe=>oe[0])}else return Promise.resolve({type:Te.error,error:$t(404,{pathname:Y.path})})})]);return await Promise.all([$y($,M,ae,ae.map(()=>X.signal),!1,g.loaderData),$y($,z.map(Y=>Y.match),se,z.map(Y=>Y.controller?Y.controller.signal:null),!0)]),{loaderResults:ae,fetcherResults:se}}function vo(){q=!0,ie.push(...Sc()),_e.forEach(($,F)=>{V.has(F)&&(U.add(F),wr(F))})}function or($,F,M){M===void 0&&(M={}),g.fetchers.set($,F),be({fetchers:new Map(g.fetchers)},{flushSync:(M&&M.flushSync)===!0})}function Yt($,F,M,z){z===void 0&&(z={});let X=va(g.matches,F);fi($),be({errors:{[X.route.id]:M},fetchers:new Map(g.fetchers)},{flushSync:(z&&z.flushSync)===!0})}function Du($){return f.v7_fetcherPersist&&(nt.set($,(nt.get($)||0)+1),Se.has($)&&Se.delete($)),g.fetchers.get($)||NC}function fi($){let F=g.fetchers.get($);V.has($)&&!(F&&F.state==="loading"&&te.has($))&&wr($),_e.delete($),te.delete($),le.delete($),Se.delete($),U.delete($),g.fetchers.delete($)}function wc($){if(f.v7_fetcherPersist){let F=(nt.get($)||0)-1;F<=0?(nt.delete($),Se.add($)):nt.set($,F)}else fi($);be({fetchers:new Map(g.fetchers)})}function wr($){let F=V.get($);ce(F,"Expected fetch controller: "+$),F.abort(),V.delete($)}function Bv($){for(let F of $){let M=Du(F),z=bn(M.data);g.fetchers.set(F,z)}}function Wv(){let $=[],F=!1;for(let M of le){let z=g.fetchers.get(M);ce(z,"Expected fetcher: "+M),z.state==="loading"&&(le.delete(M),$.push(M),F=!0)}return Bv($),F}function Hv($){let F=[];for(let[M,z]of te)if(z<$){let X=g.fetchers.get(M);ce(X,"Expected fetcher: "+M),X.state==="loading"&&(wr(M),te.delete(M),F.push(M))}return Bv(F),F.length>0}function XS($,F){let M=g.blockers.get($)||ta;return lt.get($)!==F&<.set($,F),M}function Kv($){g.blockers.delete($),lt.delete($)}function Iu($,F){let M=g.blockers.get($)||ta;ce(M.state==="unblocked"&&F.state==="blocked"||M.state==="blocked"&&F.state==="blocked"||M.state==="blocked"&&F.state==="proceeding"||M.state==="blocked"&&F.state==="unblocked"||M.state==="proceeding"&&F.state==="unblocked","Invalid blocker state transition: "+M.state+" -> "+F.state);let z=new Map(g.blockers);z.set($,F),be({blockers:z})}function Qv($){let{currentLocation:F,nextLocation:M,historyAction:z}=$;if(lt.size===0)return;lt.size>1&&zi(!1,"A router only supports one blocker at a time");let X=Array.from(lt.entries()),[ae,se]=X[X.length-1],Y=g.blockers.get(ae);if(!(Y&&Y.state==="proceeding")&&se({currentLocation:F,nextLocation:M,historyAction:z}))return ae}function _c($){let F=$t(404,{pathname:$}),M=s||o,{matches:z,route:X}=Oy(M);return Sc(),{notFoundMatches:z,route:X,error:F}}function ju($,F){return{boundaryId:va(F.partialMatches).route.id,error:$t(400,{type:"route-discovery",pathname:$,message:F.error!=null&&"message"in F.error?F.error:String(F.error)})}}function Sc($){let F=[];return Le.forEach((M,z)=>{(!$||$(z))&&(M.cancel(),F.push(z),Le.delete(z))}),F}function ZS($,F,M){if(b=$,d=F,y=M||null,!p&&g.navigation===Jc){p=!0;let z=Gv(g.location,g.matches);z!=null&&be({restoreScrollPosition:z})}return()=>{b=null,d=null,y=null}}function qv($,F){return y&&y($,F.map(z=>gC(z,g.loaderData)))||$.key}function eE($,F){if(b&&d){let M=qv($,F);b[M]=d()}}function Gv($,F){if(b){let M=qv($,F),z=b[M];if(typeof z=="number")return z}return null}function Nu($,F,M){if(c){if(x.has(M))return{active:!1,matches:$};if($){if(Object.keys($[0].params).length>0)return{active:!0,matches:Os(F,M,l,!0)}}else return{active:!0,matches:Os(F,M,l,!0)||[]}}return{active:!1,matches:null}}async function Uu($,F,M){let z=$;for(;;){let X=s==null,ae=s||o;try{await HC(c,F,z,ae,a,i,Ee,M)}catch(fe){return{type:"error",error:fe,partialMatches:z}}finally{X&&(o=[...o])}if(M.aborted)return{type:"aborted"};let se=pi(ae,F,l);if(se)return Yv(F,x),{type:"success",matches:se};let Y=Os(ae,F,l,!0);if(!Y||z.length===Y.length&&z.every((fe,oe)=>fe.route.id===Y[oe].route.id))return Yv(F,x),{type:"success",matches:null};z=Y}}function Yv($,F){if(F.size>=_){let M=F.values().next().value;F.delete(M)}F.add($)}function tE($){a={},s=mu($,i,void 0,a)}function rE($,F){let M=s==null;kw($,F,s||o,a,i),M&&(o=[...o],be({}))}return C={get basename(){return l},get future(){return f},get state(){return g},get routes(){return o},get window(){return t},initialize:it,subscribe:Dt,enableScrollRestoration:ZS,navigate:ci,fetch:H,revalidate:wn,createHref:$=>e.history.createHref($),encodeLocation:$=>e.history.encodeLocation($),getFetcher:Du,deleteFetcher:wc,dispose:qt,getBlocker:XS,deleteBlocker:Kv,patchRoutes:rE,_internalFetchControllers:V,_internalActiveDeferreds:Le,_internalSetRoutes:tE},C}function VC(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function xd(e,t,r,n,i,a,o,s){let l,u;if(o){l=[];for(let f of t)if(l.push(f),f.route.id===o){u=f;break}}else l=t,u=t[t.length-1];let c=Nl(i||".",jl(l,a),Xn(e.pathname,r)||e.pathname,s==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!Kh(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:cn([r,c.pathname])),Vi(c)}function gy(e,t,r,n){if(!n||!VC(n))return{path:r};if(n.formMethod&&!rO(n.formMethod))return{path:r,error:$t(405,{method:n.formMethod})};let i=()=>({path:r,error:$t(400,{type:"invalid-body"})}),a=n.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=Fw(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!xr(o))return i();let h=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((w,_)=>{let[x,b]=_;return""+w+x+"="+b+` +`},""):String(n.body);return{path:r,submission:{formMethod:o,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!xr(o))return i();try{let h=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:s,formEncType:n.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}ce(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=Cd(n.formData),u=n.formData;else if(n.body instanceof FormData)l=Cd(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=Ey(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=Ey(l)}catch{return i()}let c={formMethod:o,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(xr(c.formMethod))return{path:r,submission:c};let f=qr(r);return t&&f.search&&Kh(f.search)&&l.append("index",""),f.search="?"+l,{path:Vi(f),submission:c}}function BC(e,t){let r=e;if(t){let n=e.findIndex(i=>i.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function my(e,t,r,n,i,a,o,s,l,u,c,f,h,w,_,x){let b=x?er(x[1])?x[1].error:x[1].data:void 0,y=e.createURL(t.location),d=e.createURL(i),p=x&&er(x[1])?x[0]:void 0,m=p?BC(r,p):r,S=x?x[1].statusCode:void 0,E=o&&S&&S>=400,C=m.filter((O,R)=>{let{route:T}=O;if(T.lazy)return!0;if(T.loader==null)return!1;if(a)return typeof T.loader!="function"||T.loader.hydrate?!0:t.loaderData[T.id]===void 0&&(!t.errors||t.errors[T.id]===void 0);if(WC(t.loaderData,t.matches[R],O)||l.some(I=>I===O.route.id))return!0;let L=t.matches[R],N=O;return wy(O,Ke({currentUrl:y,currentParams:L.params,nextUrl:d,nextParams:N.params},n,{actionResult:b,actionStatus:S,defaultShouldRevalidate:E?!1:s||y.pathname+y.search===d.pathname+d.search||y.search!==d.search||$w(L,N)}))}),g=[];return f.forEach((O,R)=>{if(a||!r.some(Q=>Q.route.id===O.routeId)||c.has(R))return;let T=pi(w,O.path,_);if(!T){g.push({key:R,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let L=t.fetchers.get(R),N=Mo(T,O.path),I=!1;h.has(R)?I=!1:u.has(R)?(u.delete(R),I=!0):L&&L.state!=="idle"&&L.data===void 0?I=s:I=wy(N,Ke({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:d,nextParams:r[r.length-1].params},n,{actionResult:b,actionStatus:S,defaultShouldRevalidate:E?!1:s})),I&&g.push({key:R,routeId:O.routeId,path:O.path,matches:T,match:N,controller:new AbortController})}),[C,g]}function WC(e,t,r){let n=!t||r.route.id!==t.route.id,i=e[r.route.id]===void 0;return n||i}function $w(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function wy(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function HC(e,t,r,n,i,a,o,s){let l=[t,...r.map(u=>u.route.id)].join("-");try{let u=o.get(l);u||(u=e({path:t,matches:r,patch:(c,f)=>{s.aborted||kw(c,f,n,i,a)}}),o.set(l,u)),u&&ZC(u)&&await u}finally{o.delete(l)}}function kw(e,t,r,n,i){if(e){var a;let o=n[e];ce(o,"No route found to patch children into: routeId = "+e);let s=mu(t,i,[e,"patch",String(((a=o.children)==null?void 0:a.length)||"0")],n);o.children?o.children.push(...s):o.children=s}else{let o=mu(t,i,["patch",String(r.length||"0")],n);r.push(...o)}}async function _y(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let i=r[e.id];ce(i,"No route found in manifest");let a={};for(let o in n){let l=i[o]!==void 0&&o!=="hasErrorBoundary";zi(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!pC.has(o)&&(a[o]=n[o])}Object.assign(i,a),Object.assign(i,Ke({},t(i),{lazy:void 0}))}function KC(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function QC(e,t,r,n,i,a,o,s){let l=n.reduce((f,h)=>f.add(h.route.id),new Set),u=new Set,c=await e({matches:i.map(f=>{let h=l.has(f.route.id);return Ke({},f,{shouldLoad:h,resolve:_=>(u.add(f.route.id),h?qC(t,r,f,a,o,_,s):Promise.resolve({type:Te.data,result:void 0}))})}),request:r,params:i[0].params,context:s});return i.forEach(f=>ce(u.has(f.route.id),'`match.resolve()` was not called for route id "'+f.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),c.filter((f,h)=>l.has(i[h].route.id))}async function qC(e,t,r,n,i,a,o){let s,l,u=c=>{let f,h=new Promise((x,b)=>f=b);l=()=>f(),t.signal.addEventListener("abort",l);let w=x=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):c({request:t,params:r.params,context:o},...x!==void 0?[x]:[]),_;return a?_=a(x=>w(x)):_=(async()=>{try{return{type:"data",result:await w()}}catch(x){return{type:"error",result:x}}})(),Promise.race([_,h])};try{let c=r.route[e];if(r.route.lazy)if(c){let f,[h]=await Promise.all([u(c).catch(w=>{f=w}),_y(r.route,i,n)]);if(f!==void 0)throw f;s=h}else if(await _y(r.route,i,n),c=r.route[e],c)s=await u(c);else if(e==="action"){let f=new URL(t.url),h=f.pathname+f.search;throw $t(405,{method:t.method,pathname:h,routeId:r.route.id})}else return{type:Te.data,result:void 0};else if(c)s=await u(c);else{let f=new URL(t.url),h=f.pathname+f.search;throw $t(404,{pathname:h})}ce(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:Te.error,result:c}}finally{l&&t.signal.removeEventListener("abort",l)}return s}async function GC(e){let{result:t,type:r}=e;if(Aw(t)){let u;try{let c=t.headers.get("Content-Type");c&&/\bapplication\/json\b/.test(c)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(c){return{type:Te.error,error:c}}return r===Te.error?{type:Te.error,error:new tl(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:Te.data,data:u,statusCode:t.status,headers:t.headers}}if(r===Te.error){if(Ry(t)){var n;if(t.data instanceof Error){var i;return{type:Te.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new tl(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:Te.error,error:t,statusCode:Ul(t)?t.status:void 0}}if(tO(t)){var a,o;return{type:Te.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((o=t.init)==null?void 0:o.headers)&&new Headers(t.init.headers)}}if(Ry(t)){var s,l;return{type:Te.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:Te.data,data:t}}function YC(e,t,r,n,i,a){let o=e.headers.get("Location");if(ce(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!Hh.test(o)){let s=n.slice(0,n.findIndex(l=>l.route.id===r)+1);o=xd(new URL(t.url),s,i,!0,o,a),e.headers.set("Location",o)}return e}function Sy(e,t,r){if(Hh.test(e)){let n=e,i=n.startsWith("//")?new URL(t.protocol+n):new URL(n),a=Xn(i.pathname,r)!=null;if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}return e}function Xi(e,t,r,n){let i=e.createURL(Fw(t)).toString(),a={signal:r};if(n&&xr(n.formMethod)){let{formMethod:o,formEncType:s}=n;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(n.json)):s==="text/plain"?a.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?a.body=Cd(n.formData):a.body=n.formData}return new Request(i,a)}function Cd(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function Ey(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function JC(e,t,r,n,i,a){let o={},s=null,l,u=!1,c={},f=n&&er(n[1])?n[1].error:void 0;return r.forEach((h,w)=>{let _=t[w].route.id;if(ce(!bi(h),"Cannot handle redirect results in processLoaderData"),er(h)){let x=h.error;f!==void 0&&(x=f,f=void 0),s=s||{};{let b=va(e,_);s[b.route.id]==null&&(s[b.route.id]=x)}o[_]=void 0,u||(u=!0,l=Ul(h.error)?h.error.status:500),h.headers&&(c[_]=h.headers)}else Ei(h)?(i.set(_,h.deferredData),o[_]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!u&&(l=h.statusCode),h.headers&&(c[_]=h.headers)):(o[_]=h.data,h.statusCode&&h.statusCode!==200&&!u&&(l=h.statusCode),h.headers&&(c[_]=h.headers))}),f!==void 0&&n&&(s={[n[0]]:f},o[n[0]]=void 0),{loaderData:o,errors:s,statusCode:l||200,loaderHeaders:c}}function by(e,t,r,n,i,a,o,s){let{loaderData:l,errors:u}=JC(t,r,n,i,s);for(let c=0;cn.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function Oy(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function $t(e,t){let{pathname:r,routeId:n,method:i,type:a,message:o}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",a==="route-discovery"?l='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+o):i&&r&&n?l="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",l='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",i&&r&&n?l="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new tl(e||500,s,new Error(l),!0)}function Py(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(bi(r))return{result:r,idx:t}}}function Fw(e){let t=typeof e=="string"?qr(e):e;return Vi(Ke({},t,{hash:""}))}function XC(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function ZC(e){return typeof e=="object"&&e!=null&&"then"in e}function eO(e){return Aw(e.result)&&IC.has(e.result.status)}function Ei(e){return e.type===Te.deferred}function er(e){return e.type===Te.error}function bi(e){return(e&&e.type)===Te.redirect}function Ry(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function tO(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Aw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function rO(e){return DC.has(e.toLowerCase())}function xr(e){return LC.has(e.toLowerCase())}async function $y(e,t,r,n,i,a){for(let o=0;of.route.id===l.route.id),c=u!=null&&!$w(u,l)&&(a&&a[l.route.id])!==void 0;if(Ei(s)&&(i||c)){let f=n[o];ce(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await Tw(s,f,i).then(h=>{h&&(r[o]=h||r[o])})}}}async function Tw(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:Te.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Te.error,error:i}}return{type:Te.data,data:e.deferredData.data}}}function Kh(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Mo(e,t){let r=typeof t=="string"?qr(t).search:t.search;if(e[e.length-1].route.index&&Kh(r||""))return e[e.length-1];let n=Ow(e);return n[n.length-1]}function ky(e){let{formMethod:t,formAction:r,formEncType:n,text:i,formData:a,json:o}=e;if(!(!t||!r||!n)){if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}}}function Xc(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function nO(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function xo(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function iO(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function bn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function aO(e,t){try{let r=e.sessionStorage.getItem(Rw);if(r){let n=JSON.parse(r);for(let[i,a]of Object.entries(n||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function oO(e,t){if(t.size>0){let r={};for(let[n,i]of t)r[n]=[...i];try{e.sessionStorage.setItem(Rw,JSON.stringify(r))}catch(n){zi(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** * React Router v6.26.1 * * Copyright (c) Remix Software Inc. @@ -57,7 +57,7 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Bi(){return Bi=Object.assign?Object.assign.bind():function(e){for(var t=1;tbd(e,xw(t)),[t,e])}function Lw(e){v.useContext(ri).static||v.useLayoutEffect(e)}function Ki(){let{isDataRoute:e}=v.useContext(yn);return e?mO():uO()}function uO(){ni()||ce(!1);let e=v.useContext(ku),{basename:t,future:r,navigator:n}=v.useContext(ri),{matches:i}=v.useContext(yn),{pathname:a}=Qt(),o=JSON.stringify(jl(i,r.v7_relativeSplatPath)),s=v.useRef(!1);return Lw(()=>{s.current=!0}),v.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){n.go(u);return}let f=Nl(u,JSON.parse(o),a,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:ln([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,o,a,e])}function Mw(){let{matches:e}=v.useContext(yn),t=e[e.length-1];return t?t.params:{}}function Dw(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=v.useContext(ri),{matches:i}=v.useContext(yn),{pathname:a}=Qt(),o=JSON.stringify(jl(i,n.v7_relativeSplatPath));return v.useMemo(()=>Nl(e,JSON.parse(o),a,r==="path"),[e,o,a,r])}function sO(e,t){return Iw(e,t)}function Iw(e,t,r,n){ni()||ce(!1);let{navigator:i}=v.useContext(ri),{matches:a}=v.useContext(yn),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=Qt(),c;if(t){var f;let x=typeof t=="string"?Qr(t):t;l==="/"||(f=x.pathname)!=null&&f.startsWith(l)||ce(!1),c=x}else c=u;let h=c.pathname||"/",w=h;if(l!=="/"){let x=l.replace(/^\//,"").split("/");w="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let _=vi(e,{pathname:w}),b=hO(_&&_.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:ln([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:ln([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),a,r,n);return t&&b?v.createElement(zl.Provider,{value:{location:Bi({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:et.Pop}},b):b}function lO(){let e=pO(),t=Ul(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),r?v.createElement("pre",{style:i},r):null,null)}const cO=v.createElement(lO,null);class fO extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?v.createElement(yn.Provider,{value:this.props.routeContext},v.createElement(Tw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function dO(e){let{routeContext:t,match:r,children:n}=e,i=v.useContext(ku);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),v.createElement(yn.Provider,{value:t},n)}function hO(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,s=(i=r)==null?void 0:i.errors;if(s!=null){let c=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||ce(!1),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,f,h)=>{let w,_=!1,b=null,x=null;r&&(w=s&&f.route.id?s[f.route.id]:void 0,b=f.route.errorElement||cO,l&&(u<0&&h===0?(_=!0,x=null):u===h&&(_=!0,x=f.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,h+1)),d=()=>{let p;return w?p=b:_?p=x:f.route.Component?p=v.createElement(f.route.Component,null):f.route.element?p=f.route.element:p=c,v.createElement(dO,{match:f,routeContext:{outlet:c,matches:y,isDataRoute:r!=null},children:p})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?v.createElement(fO,{location:r.location,revalidation:r.revalidation,component:b,error:w,children:d(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):d()},null)}var qh=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(qh||{}),wu=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(wu||{});function jw(e){let t=v.useContext(ku);return t||ce(!1),t}function Nw(e){let t=v.useContext(Qh);return t||ce(!1),t}function vO(e){let t=v.useContext(yn);return t||ce(!1),t}function Uw(e){let t=vO(),r=t.matches[t.matches.length-1];return r.route.id||ce(!1),r.route.id}function pO(){var e;let t=v.useContext(Tw),r=Nw(wu.UseRouteError),n=Uw(wu.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let yO=0;function gO(e){let{router:t,basename:r}=jw(qh.UseBlocker),n=Nw(wu.UseBlocker),[i,a]=v.useState(""),o=v.useCallback(s=>{if(typeof e!="function")return!!e;if(r==="/")return e(s);let{currentLocation:l,nextLocation:u,historyAction:c}=s;return e({currentLocation:Bi({},l,{pathname:Jn(l.pathname,r)||l.pathname}),nextLocation:Bi({},u,{pathname:Jn(u.pathname,r)||u.pathname}),historyAction:c})},[r,e]);return v.useEffect(()=>{let s=String(++yO);return a(s),()=>t.deleteBlocker(s)},[t]),v.useEffect(()=>{i!==""&&t.getBlocker(i,o)},[t,i,o]),i&&n.blockers.has(i)?n.blockers.get(i):ta}function mO(){let{router:e}=jw(qh.UseNavigateStable),t=Uw(wu.UseNavigateStable),r=v.useRef(!1);return Lw(()=>{r.current=!0}),v.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Bi({fromRouteId:t},a)))},[e,t])}function wO(e){let{to:t,replace:r,state:n,relative:i}=e;ni()||ce(!1);let{future:a,static:o}=v.useContext(ri),{matches:s}=v.useContext(yn),{pathname:l}=Qt(),u=Ki(),c=Nl(t,jl(s,a.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(c);return v.useEffect(()=>u(JSON.parse(f),{replace:r,state:n,relative:i}),[u,f,i,r,n]),null}function Vt(e){ce(!1)}function _O(e){let{basename:t="/",children:r=null,location:n,navigationType:i=et.Pop,navigator:a,static:o=!1,future:s}=e;ni()&&ce(!1);let l=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:l,navigator:a,static:o,future:Bi({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof n=="string"&&(n=Qr(n));let{pathname:c="/",search:f="",hash:h="",state:w=null,key:_="default"}=n,b=v.useMemo(()=>{let x=Jn(c,l);return x==null?null:{location:{pathname:x,search:f,hash:h,state:w,key:_},navigationType:i}},[l,c,f,h,w,_,i]);return b==null?null:v.createElement(ri.Provider,{value:u},v.createElement(zl.Provider,{children:r,value:b}))}function pa(e){let{children:t,location:r}=e;return sO(Od(t),r)}new Promise(()=>{});function Od(e,t){t===void 0&&(t=[]);let r=[];return v.Children.forEach(e,(n,i)=>{if(!v.isValidElement(n))return;let a=[...t,i];if(n.type===v.Fragment){r.push.apply(r,Od(n.props.children,a));return}n.type!==Vt&&ce(!1),!n.props.index||!n.props.children||ce(!1);let o={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=Od(n.props.children,a)),r.push(o)}),r}function SO(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:v.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:v.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:v.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function Bi(){return Bi=Object.assign?Object.assign.bind():function(e){for(var t=1;tbd(e,Cw(t)),[t,e])}function Mw(e){v.useContext(ni).static||v.useLayoutEffect(e)}function Ki(){let{isDataRoute:e}=v.useContext(gn);return e?wO():sO()}function sO(){ii()||ce(!1);let e=v.useContext(ku),{basename:t,future:r,navigator:n}=v.useContext(ni),{matches:i}=v.useContext(gn),{pathname:a}=Qt(),o=JSON.stringify(jl(i,r.v7_relativeSplatPath)),s=v.useRef(!1);return Mw(()=>{s.current=!0}),v.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){n.go(u);return}let f=Nl(u,JSON.parse(o),a,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:cn([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,o,a,e])}function Dw(){let{matches:e}=v.useContext(gn),t=e[e.length-1];return t?t.params:{}}function Iw(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=v.useContext(ni),{matches:i}=v.useContext(gn),{pathname:a}=Qt(),o=JSON.stringify(jl(i,n.v7_relativeSplatPath));return v.useMemo(()=>Nl(e,JSON.parse(o),a,r==="path"),[e,o,a,r])}function lO(e,t){return jw(e,t)}function jw(e,t,r,n){ii()||ce(!1);let{navigator:i}=v.useContext(ni),{matches:a}=v.useContext(gn),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=Qt(),c;if(t){var f;let b=typeof t=="string"?qr(t):t;l==="/"||(f=b.pathname)!=null&&f.startsWith(l)||ce(!1),c=b}else c=u;let h=c.pathname||"/",w=h;if(l!=="/"){let b=l.replace(/^\//,"").split("/");w="/"+h.replace(/^\//,"").split("/").slice(b.length).join("/")}let _=pi(e,{pathname:w}),x=vO(_&&_.map(b=>Object.assign({},b,{params:Object.assign({},s,b.params),pathname:cn([l,i.encodeLocation?i.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:cn([l,i.encodeLocation?i.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),a,r,n);return t&&x?v.createElement(zl.Provider,{value:{location:Bi({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:et.Pop}},x):x}function cO(){let e=yO(),t=Ul(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),r?v.createElement("pre",{style:i},r):null,null)}const fO=v.createElement(cO,null);class dO extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?v.createElement(gn.Provider,{value:this.props.routeContext},v.createElement(Lw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hO(e){let{routeContext:t,match:r,children:n}=e,i=v.useContext(ku);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),v.createElement(gn.Provider,{value:t},n)}function vO(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,s=(i=r)==null?void 0:i.errors;if(s!=null){let c=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||ce(!1),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,f,h)=>{let w,_=!1,x=null,b=null;r&&(w=s&&f.route.id?s[f.route.id]:void 0,x=f.route.errorElement||fO,l&&(u<0&&h===0?(_=!0,b=null):u===h&&(_=!0,b=f.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,h+1)),d=()=>{let p;return w?p=x:_?p=b:f.route.Component?p=v.createElement(f.route.Component,null):f.route.element?p=f.route.element:p=c,v.createElement(hO,{match:f,routeContext:{outlet:c,matches:y,isDataRoute:r!=null},children:p})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?v.createElement(dO,{location:r.location,revalidation:r.revalidation,component:x,error:w,children:d(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):d()},null)}var qh=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(qh||{}),wu=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(wu||{});function Nw(e){let t=v.useContext(ku);return t||ce(!1),t}function Uw(e){let t=v.useContext(Qh);return t||ce(!1),t}function pO(e){let t=v.useContext(gn);return t||ce(!1),t}function zw(e){let t=pO(),r=t.matches[t.matches.length-1];return r.route.id||ce(!1),r.route.id}function yO(){var e;let t=v.useContext(Lw),r=Uw(wu.UseRouteError),n=zw(wu.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let gO=0;function mO(e){let{router:t,basename:r}=Nw(qh.UseBlocker),n=Uw(wu.UseBlocker),[i,a]=v.useState(""),o=v.useCallback(s=>{if(typeof e!="function")return!!e;if(r==="/")return e(s);let{currentLocation:l,nextLocation:u,historyAction:c}=s;return e({currentLocation:Bi({},l,{pathname:Xn(l.pathname,r)||l.pathname}),nextLocation:Bi({},u,{pathname:Xn(u.pathname,r)||u.pathname}),historyAction:c})},[r,e]);return v.useEffect(()=>{let s=String(++gO);return a(s),()=>t.deleteBlocker(s)},[t]),v.useEffect(()=>{i!==""&&t.getBlocker(i,o)},[t,i,o]),i&&n.blockers.has(i)?n.blockers.get(i):ta}function wO(){let{router:e}=Nw(qh.UseNavigateStable),t=zw(wu.UseNavigateStable),r=v.useRef(!1);return Mw(()=>{r.current=!0}),v.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Bi({fromRouteId:t},a)))},[e,t])}function _O(e){let{to:t,replace:r,state:n,relative:i}=e;ii()||ce(!1);let{future:a,static:o}=v.useContext(ni),{matches:s}=v.useContext(gn),{pathname:l}=Qt(),u=Ki(),c=Nl(t,jl(s,a.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(c);return v.useEffect(()=>u(JSON.parse(f),{replace:r,state:n,relative:i}),[u,f,i,r,n]),null}function Vt(e){ce(!1)}function SO(e){let{basename:t="/",children:r=null,location:n,navigationType:i=et.Pop,navigator:a,static:o=!1,future:s}=e;ii()&&ce(!1);let l=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:l,navigator:a,static:o,future:Bi({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof n=="string"&&(n=qr(n));let{pathname:c="/",search:f="",hash:h="",state:w=null,key:_="default"}=n,x=v.useMemo(()=>{let b=Xn(c,l);return b==null?null:{location:{pathname:b,search:f,hash:h,state:w,key:_},navigationType:i}},[l,c,f,h,w,_,i]);return x==null?null:v.createElement(ni.Provider,{value:u},v.createElement(zl.Provider,{children:r,value:x}))}function pa(e){let{children:t,location:r}=e;return lO(Od(t),r)}new Promise(()=>{});function Od(e,t){t===void 0&&(t=[]);let r=[];return v.Children.forEach(e,(n,i)=>{if(!v.isValidElement(n))return;let a=[...t,i];if(n.type===v.Fragment){r.push.apply(r,Od(n.props.children,a));return}n.type!==Vt&&ce(!1),!n.props.index||!n.props.children||ce(!1);let o={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=Od(n.props.children,a)),r.push(o)}),r}function EO(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:v.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:v.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:v.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.26.1 * * Copyright (c) Remix Software Inc. @@ -66,18 +66,18 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _u(){return _u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}function bO(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function xO(e,t){return e.button===0&&(!t||t==="_self")&&!bO(e)}const CO=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],OO="6";try{window.__reactRouterVersion=OO}catch{}function PO(e,t){return UC({basename:t==null?void 0:t.basename,future:_u({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:fC({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||RO(),routes:e,mapRouteProperties:SO,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function RO(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=_u({},t,{errors:$O(t.errors)})),t}function $O(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,i]of t)if(i&&i.__type==="RouteErrorResponse")r[n]=new tl(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let o=new a(i.message);o.stack="",r[n]=o}catch{}}if(r[n]==null){let a=new Error(i.message);a.stack="",r[n]=a}}else r[n]=i;return r}const kO=v.createContext({isTransitioning:!1}),FO=v.createContext(new Map),AO="startTransition",Fy=mE[AO],TO="flushSync",Ay=Fx[TO];function LO(e){Fy?Fy(e):e()}function Co(e){Ay?Ay(e):e()}class MO{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function DO(e){let{fallbackElement:t,router:r,future:n}=e,[i,a]=v.useState(r.state),[o,s]=v.useState(),[l,u]=v.useState({isTransitioning:!1}),[c,f]=v.useState(),[h,w]=v.useState(),[_,b]=v.useState(),x=v.useRef(new Map),{v7_startTransition:y}=n||{},d=v.useCallback(g=>{y?LO(g):g()},[y]),p=v.useCallback((g,O)=>{let{deletedFetchers:R,unstable_flushSync:T,unstable_viewTransitionOpts:L}=O;R.forEach(I=>x.current.delete(I)),g.fetchers.forEach((I,Q)=>{I.data!==void 0&&x.current.set(Q,I.data)});let N=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!L||N){T?Co(()=>a(g)):d(()=>a(g));return}if(T){Co(()=>{h&&(c&&c.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:L.currentLocation,nextLocation:L.nextLocation})});let I=r.window.document.startViewTransition(()=>{Co(()=>a(g))});I.finished.finally(()=>{Co(()=>{f(void 0),w(void 0),s(void 0),u({isTransitioning:!1})})}),Co(()=>w(I));return}h?(c&&c.resolve(),h.skipTransition(),b({state:g,currentLocation:L.currentLocation,nextLocation:L.nextLocation})):(s(g),u({isTransitioning:!0,flushSync:!1,currentLocation:L.currentLocation,nextLocation:L.nextLocation}))},[r.window,h,c,x,d]);v.useLayoutEffect(()=>r.subscribe(p),[r,p]),v.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new MO)},[l]),v.useEffect(()=>{if(c&&o&&r.window){let g=o,O=c.promise,R=r.window.document.startViewTransition(async()=>{d(()=>a(g)),await O});R.finished.finally(()=>{f(void 0),w(void 0),s(void 0),u({isTransitioning:!1})}),w(R)}},[d,o,c,r.window]),v.useEffect(()=>{c&&o&&i.location.key===o.location.key&&c.resolve()},[c,h,i.location,o]),v.useEffect(()=>{!l.isTransitioning&&_&&(s(_.state),u({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}),b(void 0))},[l.isTransitioning,_]),v.useEffect(()=>{},[]);let m=v.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:g=>r.navigate(g),push:(g,O,R)=>r.navigate(g,{state:O,preventScrollReset:R==null?void 0:R.preventScrollReset}),replace:(g,O,R)=>r.navigate(g,{replace:!0,state:O,preventScrollReset:R==null?void 0:R.preventScrollReset})}),[r]),S=r.basename||"/",E=v.useMemo(()=>({router:r,navigator:m,static:!1,basename:S}),[r,m,S]),C=v.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return v.createElement(v.Fragment,null,v.createElement(ku.Provider,{value:E},v.createElement(Qh.Provider,{value:i},v.createElement(FO.Provider,{value:x.current},v.createElement(kO.Provider,{value:l},v.createElement(_O,{basename:S,location:i.location,navigationType:i.historyAction,navigator:m,future:C},i.initialized||r.future.v7_partialHydration?v.createElement(IO,{routes:r.routes,future:r.future,state:i}):t))))),null)}const IO=v.memo(jO);function jO(e){let{routes:t,future:r,state:n}=e;return Iw(t,void 0,n,r)}const NO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",UO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,HV=v.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,h=EO(t,CO),{basename:w}=v.useContext(ri),_,b=!1;if(typeof u=="string"&&UO.test(u)&&(_=u,NO))try{let p=new URL(window.location.href),m=u.startsWith("//")?new URL(p.protocol+u):new URL(u),S=Jn(m.pathname,w);m.origin===p.origin&&S!=null?u=S+m.search+m.hash:b=!0}catch{}let x=oO(u,{relative:i}),y=zO(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:f});function d(p){n&&n(p),p.defaultPrevented||y(p)}return v.createElement("a",_u({},h,{href:_||x,onClick:b||a?n:d,ref:r,target:l}))});var Ty;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ty||(Ty={}));var Ly;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ly||(Ly={}));function zO(e,t){let{target:r,replace:n,state:i,preventScrollReset:a,relative:o,unstable_viewTransition:s}=t===void 0?{}:t,l=Ki(),u=Qt(),c=Dw(e,{relative:o});return v.useCallback(f=>{if(xO(f,r)){f.preventDefault();let h=n!==void 0?n:Vi(u)===Vi(c);l(e,{replace:h,state:i,preventScrollReset:a,relative:o,unstable_viewTransition:s})}},[u,l,c,n,i,r,e,a,o,s])}var VO="RaStore",BO=function(){if(typeof window>"u"||window.localStorage==null)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch{return!1}},Pd=BO(),KV=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(VO).concat(t),n=r.length,i={},a=function(s,l){Object.keys(i).forEach(function(u){i[u]&&i[u].key===s&&i[u].callback(l)})},o=function(s){var l;if(((l=s.key)===null||l===void 0?void 0:l.substring(0,n))===r){var u=s.key.substring(n+1),c=s.newValue?My(s.newValue):void 0;Object.keys(i).forEach(function(f){i[f]&&i[f].key===u&&(c===null?i[f].callback(void 0):i[f].callback(c??void 0))})}};return{setup:function(){if(Pd){var s=Xr().getItem("".concat(r,".version"));if(s&&s!==e){var l=Xr();Object.keys(l).forEach(function(u){u.startsWith(r)&&l.removeItem(u)})}Xr().setItem("".concat(r,".version"),e),window.addEventListener("storage",o)}},teardown:function(){Pd&&window.removeEventListener("storage",o)},getItem:function(s,l){var u=Xr().getItem("".concat(r,".").concat(s));return u==null?l:My(u)},setItem:function(s,l){l===void 0?Xr().removeItem("".concat(r,".").concat(s)):Xr().setItem("".concat(r,".").concat(s),JSON.stringify(l)),a(s,l)},removeItem:function(s){Xr().removeItem("".concat(r,".").concat(s)),a(s,void 0)},removeItems:function(s){var l=Xr();Object.keys(l).forEach(function(u){if(u.startsWith("".concat(r,".").concat(s))){l.removeItem(u);var c=u.substring(n+1);a(c,void 0)}})},reset:function(){var s=Xr();Object.keys(s).forEach(function(l){if(l.startsWith(r)){s.removeItem(l);var u=l.substring(n+1);a(u,void 0)}})},subscribe:function(s,l){var u=Math.random().toString();return i[u]={key:s,callback:l},function(){delete i[u]}}}},My=function(e){try{return JSON.parse(e)}catch{return e}},WO=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,i){i.startsWith(t)&&r.valuesMap.delete(i)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),HO=new WO,Xr=function(){return Pd?window.localStorage:HO},KO=typeof $o=="object"&&$o&&$o.Object===Object&&$o,zw=KO,QO=zw,qO=typeof self=="object"&&self&&self.Object===Object&&self,GO=QO||qO||Function("return this")(),kr=GO,YO=kr,JO=YO.Symbol,Za=JO,Dy=Za,Vw=Object.prototype,XO=Vw.hasOwnProperty,ZO=Vw.toString,Oo=Dy?Dy.toStringTag:void 0;function eP(e){var t=XO.call(e,Oo),r=e[Oo];try{e[Oo]=void 0;var n=!0}catch{}var i=ZO.call(e);return n&&(t?e[Oo]=r:delete e[Oo]),i}var tP=eP,rP=Object.prototype,nP=rP.toString;function iP(e){return nP.call(e)}var aP=iP,Iy=Za,oP=tP,uP=aP,sP="[object Null]",lP="[object Undefined]",jy=Iy?Iy.toStringTag:void 0;function cP(e){return e==null?e===void 0?lP:sP:jy&&jy in Object(e)?oP(e):uP(e)}var eo=cP;function fP(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Fr=fP,dP=eo,hP=Fr,vP="[object AsyncFunction]",pP="[object Function]",yP="[object GeneratorFunction]",gP="[object Proxy]";function mP(e){if(!hP(e))return!1;var t=dP(e);return t==pP||t==yP||t==vP||t==gP}var Gh=mP,wP=kr,_P=wP["__core-js_shared__"],SP=_P,Zc=SP,Ny=function(){var e=/[^.]+$/.exec(Zc&&Zc.keys&&Zc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function EP(e){return!!Ny&&Ny in e}var bP=EP,xP=Function.prototype,CP=xP.toString;function OP(e){if(e!=null){try{return CP.call(e)}catch{}try{return e+""}catch{}}return""}var Bw=OP,PP=Gh,RP=bP,$P=Fr,kP=Bw,FP=/[\\^$.*+?()[\]{}|]/g,AP=/^\[object .+?Constructor\]$/,TP=Function.prototype,LP=Object.prototype,MP=TP.toString,DP=LP.hasOwnProperty,IP=RegExp("^"+MP.call(DP).replace(FP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jP(e){if(!$P(e)||RP(e))return!1;var t=PP(e)?IP:AP;return t.test(kP(e))}var NP=jP;function UP(e,t){return e==null?void 0:e[t]}var zP=UP,VP=NP,BP=zP;function WP(e,t){var r=BP(e,t);return VP(r)?r:void 0}var Qi=WP,HP=Qi,KP=function(){try{var e=HP(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ww=KP,Uy=Ww;function QP(e,t,r){t=="__proto__"&&Uy?Uy(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Yh=QP;function qP(e,t){return e===t||e!==e&&t!==t}var to=qP,GP=Yh,YP=to,JP=Object.prototype,XP=JP.hasOwnProperty;function ZP(e,t,r){var n=e[t];(!(XP.call(e,t)&&YP(n,r))||r===void 0&&!(t in e))&&GP(e,t,r)}var Jh=ZP,eR=Array.isArray,qr=eR;function tR(e){return e!=null&&typeof e=="object"}var gn=tR,rR=eo,nR=gn,iR="[object Symbol]";function aR(e){return typeof e=="symbol"||nR(e)&&rR(e)==iR}var Vl=aR,oR=qr,uR=Vl,sR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lR=/^\w*$/;function cR(e,t){if(oR(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||uR(e)?!0:lR.test(e)||!sR.test(e)||t!=null&&e in Object(t)}var fR=cR,dR=Qi,hR=dR(Object,"create"),Bl=hR,zy=Bl;function vR(){this.__data__=zy?zy(null):{},this.size=0}var pR=vR;function yR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var gR=yR,mR=Bl,wR="__lodash_hash_undefined__",_R=Object.prototype,SR=_R.hasOwnProperty;function ER(e){var t=this.__data__;if(mR){var r=t[e];return r===wR?void 0:r}return SR.call(t,e)?t[e]:void 0}var bR=ER,xR=Bl,CR=Object.prototype,OR=CR.hasOwnProperty;function PR(e){var t=this.__data__;return xR?t[e]!==void 0:OR.call(t,e)}var RR=PR,$R=Bl,kR="__lodash_hash_undefined__";function FR(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=$R&&t===void 0?kR:t,this}var AR=FR,TR=pR,LR=gR,MR=bR,DR=RR,IR=AR;function ro(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var ZR=XR,e$=Wl;function t$(e,t){var r=this.__data__,n=e$(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var r$=t$,n$=UR,i$=QR,a$=YR,o$=ZR,u$=r$;function no(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&ei?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++ns))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var f=-1,h=!0,w=r&RF?new xF:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e<=CA}var ov=OA,PA=eo,RA=ov,$A=gn,kA="[object Arguments]",FA="[object Array]",AA="[object Boolean]",TA="[object Date]",LA="[object Error]",MA="[object Function]",DA="[object Map]",IA="[object Number]",jA="[object Object]",NA="[object RegExp]",UA="[object Set]",zA="[object String]",VA="[object WeakMap]",BA="[object ArrayBuffer]",WA="[object DataView]",HA="[object Float32Array]",KA="[object Float64Array]",QA="[object Int8Array]",qA="[object Int16Array]",GA="[object Int32Array]",YA="[object Uint8Array]",JA="[object Uint8ClampedArray]",XA="[object Uint16Array]",ZA="[object Uint32Array]",ze={};ze[HA]=ze[KA]=ze[QA]=ze[qA]=ze[GA]=ze[YA]=ze[JA]=ze[XA]=ze[ZA]=!0;ze[kA]=ze[FA]=ze[BA]=ze[AA]=ze[WA]=ze[TA]=ze[LA]=ze[MA]=ze[DA]=ze[IA]=ze[jA]=ze[NA]=ze[UA]=ze[zA]=ze[VA]=!1;function eT(e){return $A(e)&&RA(e.length)&&!!ze[PA(e)]}var tT=eT;function rT(e){return function(t){return e(t)}}var uv=rT,il={exports:{}};il.exports;(function(e,t){var r=zw,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(il,il.exports);var sv=il.exports,nT=tT,iT=uv,Zy=sv,eg=Zy&&Zy.isTypedArray,aT=eg?iT(eg):nT,lv=aT,oT=hA,uT=Yl,sT=qr,lT=Jl,cT=Ql,fT=lv,dT=Object.prototype,hT=dT.hasOwnProperty;function vT(e,t){var r=sT(e),n=!r&&uT(e),i=!r&&!n&&lT(e),a=!r&&!n&&!i&&fT(e),o=r||n||i||a,s=o?oT(e.length,String):[],l=s.length;for(var u in e)(t||hT.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||cT(u,l)))&&s.push(u);return s}var o_=vT,pT=Object.prototype;function yT(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||pT;return e===r}var cv=yT;function gT(e,t){return function(r){return e(t(r))}}var u_=gT,mT=u_,wT=mT(Object.keys,Object),_T=wT,ST=cv,ET=_T,bT=Object.prototype,xT=bT.hasOwnProperty;function CT(e){if(!ST(e))return ET(e);var t=[];for(var r in Object(e))xT.call(e,r)&&r!="constructor"&&t.push(r);return t}var OT=CT,PT=Gh,RT=ov;function $T(e){return e!=null&&RT(e.length)&&!PT(e)}var Xl=$T,kT=o_,FT=OT,AT=Xl;function TT(e){return AT(e)?kT(e):FT(e)}var fv=TT,LT=n_,MT=av,DT=fv;function IT(e){return LT(e,DT,MT)}var s_=IT,tg=s_,jT=1,NT=Object.prototype,UT=NT.hasOwnProperty;function zT(e,t,r,n,i,a){var o=r&jT,s=tg(e),l=s.length,u=tg(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var h=s[f];if(!(o?h in t:UT.call(t,h)))return!1}var w=a.get(e),_=a.get(t);if(w&&_)return w==t&&_==e;var b=!0;a.set(e,t),a.set(t,e);for(var x=o;++f0){if(++t>=cM)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var vM=hM,pM=lM,yM=vM,gM=yM(pM),C_=gM,mM=b_,wM=x_,_M=C_;function SM(e,t){return _M(wM(e,t,mM),e+"")}var yv=SM,EM=to,bM=Xl,xM=Ql,CM=Fr;function OM(e,t,r){if(!CM(r))return!1;var n=typeof t;return(n=="number"?bM(r)&&xM(t,r.length):n=="string"&&t in r)?EM(r[t],e):!1}var O_=OM,PM=yv,RM=O_;function $M(e){return PM(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&RM(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++n=t||C<0||f&&g>=a}function y(){var E=nf();if(x(E))return d(E);s=setTimeout(y,b(E))}function d(E){return s=void 0,h&&n?w(E):(n=i=void 0,o)}function p(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function m(){return s===void 0?o:d(nf())}function S(){var E=nf(),C=x(E);if(n=arguments,i=this,l=E,C){if(s===void 0)return _(l);if(f)return clearTimeout(s),s=setTimeout(y,t),w(l)}return s===void 0&&(s=setTimeout(y,t)),o}return S.cancel=p,S.flush=m,S}var Vj=zj;const A_=Tt(Vj);var Bj=function(e,t){t===void 0&&(t=250);var r=Wj(e,t),n=r[0],i=r[1],a=Qt();v.useEffect(function(){var o;n!=null&&((o=a.state)===null||o===void 0?void 0:o._scrollToTop)!==!0&&(i(void 0),window.scrollTo(0,n))},[])},Wj=function(e,t){t===void 0&&(t=250);var r=si(e),n=r[0],i=r[1];return v.useEffect(function(){if(!(typeof window>"u")){var a=A_(function(){i(window.scrollY)},t);return window.addEventListener("scroll",a),function(){window.removeEventListener("scroll",a)}}},[t,i]),[n,i]},Hj=function(e){var t=e.children,r=e.storeKey,n=e.debounce,i=n===void 0?250:n;return Bj(r,i),t},so=function(){return v.useContext(F_)},mv=function(){var e=so();return v.useCallback(function(t){var r=t.resource,n=t.id,i=t.type;if(["list","create","edit","show"].includes(i)&&!r)throw new Error("Cannot create a link without a resource. You must provide the resource name.");switch(i){case"list":return Ur("".concat(e,"/").concat(r));case"create":return Ur("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?Ur("".concat(e,"/").concat(r)):Ur("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?Ur("".concat(e,"/").concat(r)):Ur("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return i}},[e])},Ur=function(e){return e.replace("//","/")};function Lg(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var Kj=function(e,t){if(Lg(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. + */function _u(){return _u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}function xO(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function CO(e,t){return e.button===0&&(!t||t==="_self")&&!xO(e)}const OO=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],PO="6";try{window.__reactRouterVersion=PO}catch{}function RO(e,t){return zC({basename:t==null?void 0:t.basename,future:_u({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:dC({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||$O(),routes:e,mapRouteProperties:EO,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function $O(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=_u({},t,{errors:kO(t.errors)})),t}function kO(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,i]of t)if(i&&i.__type==="RouteErrorResponse")r[n]=new tl(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let o=new a(i.message);o.stack="",r[n]=o}catch{}}if(r[n]==null){let a=new Error(i.message);a.stack="",r[n]=a}}else r[n]=i;return r}const FO=v.createContext({isTransitioning:!1}),AO=v.createContext(new Map),TO="startTransition",Fy=wE[TO],LO="flushSync",Ay=Ax[LO];function MO(e){Fy?Fy(e):e()}function Co(e){Ay?Ay(e):e()}class DO{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function IO(e){let{fallbackElement:t,router:r,future:n}=e,[i,a]=v.useState(r.state),[o,s]=v.useState(),[l,u]=v.useState({isTransitioning:!1}),[c,f]=v.useState(),[h,w]=v.useState(),[_,x]=v.useState(),b=v.useRef(new Map),{v7_startTransition:y}=n||{},d=v.useCallback(g=>{y?MO(g):g()},[y]),p=v.useCallback((g,O)=>{let{deletedFetchers:R,unstable_flushSync:T,unstable_viewTransitionOpts:L}=O;R.forEach(I=>b.current.delete(I)),g.fetchers.forEach((I,Q)=>{I.data!==void 0&&b.current.set(Q,I.data)});let N=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!L||N){T?Co(()=>a(g)):d(()=>a(g));return}if(T){Co(()=>{h&&(c&&c.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:L.currentLocation,nextLocation:L.nextLocation})});let I=r.window.document.startViewTransition(()=>{Co(()=>a(g))});I.finished.finally(()=>{Co(()=>{f(void 0),w(void 0),s(void 0),u({isTransitioning:!1})})}),Co(()=>w(I));return}h?(c&&c.resolve(),h.skipTransition(),x({state:g,currentLocation:L.currentLocation,nextLocation:L.nextLocation})):(s(g),u({isTransitioning:!0,flushSync:!1,currentLocation:L.currentLocation,nextLocation:L.nextLocation}))},[r.window,h,c,b,d]);v.useLayoutEffect(()=>r.subscribe(p),[r,p]),v.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new DO)},[l]),v.useEffect(()=>{if(c&&o&&r.window){let g=o,O=c.promise,R=r.window.document.startViewTransition(async()=>{d(()=>a(g)),await O});R.finished.finally(()=>{f(void 0),w(void 0),s(void 0),u({isTransitioning:!1})}),w(R)}},[d,o,c,r.window]),v.useEffect(()=>{c&&o&&i.location.key===o.location.key&&c.resolve()},[c,h,i.location,o]),v.useEffect(()=>{!l.isTransitioning&&_&&(s(_.state),u({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}),x(void 0))},[l.isTransitioning,_]),v.useEffect(()=>{},[]);let m=v.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:g=>r.navigate(g),push:(g,O,R)=>r.navigate(g,{state:O,preventScrollReset:R==null?void 0:R.preventScrollReset}),replace:(g,O,R)=>r.navigate(g,{replace:!0,state:O,preventScrollReset:R==null?void 0:R.preventScrollReset})}),[r]),S=r.basename||"/",E=v.useMemo(()=>({router:r,navigator:m,static:!1,basename:S}),[r,m,S]),C=v.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return v.createElement(v.Fragment,null,v.createElement(ku.Provider,{value:E},v.createElement(Qh.Provider,{value:i},v.createElement(AO.Provider,{value:b.current},v.createElement(FO.Provider,{value:l},v.createElement(SO,{basename:S,location:i.location,navigationType:i.historyAction,navigator:m,future:C},i.initialized||r.future.v7_partialHydration?v.createElement(jO,{routes:r.routes,future:r.future,state:i}):t))))),null)}const jO=v.memo(NO);function NO(e){let{routes:t,future:r,state:n}=e;return jw(t,void 0,n,r)}const UO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,QV=v.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,h=bO(t,OO),{basename:w}=v.useContext(ni),_,x=!1;if(typeof u=="string"&&zO.test(u)&&(_=u,UO))try{let p=new URL(window.location.href),m=u.startsWith("//")?new URL(p.protocol+u):new URL(u),S=Xn(m.pathname,w);m.origin===p.origin&&S!=null?u=S+m.search+m.hash:x=!0}catch{}let b=uO(u,{relative:i}),y=VO(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:f});function d(p){n&&n(p),p.defaultPrevented||y(p)}return v.createElement("a",_u({},h,{href:_||b,onClick:x||a?n:d,ref:r,target:l}))});var Ty;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ty||(Ty={}));var Ly;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ly||(Ly={}));function VO(e,t){let{target:r,replace:n,state:i,preventScrollReset:a,relative:o,unstable_viewTransition:s}=t===void 0?{}:t,l=Ki(),u=Qt(),c=Iw(e,{relative:o});return v.useCallback(f=>{if(CO(f,r)){f.preventDefault();let h=n!==void 0?n:Vi(u)===Vi(c);l(e,{replace:h,state:i,preventScrollReset:a,relative:o,unstable_viewTransition:s})}},[u,l,c,n,i,r,e,a,o,s])}var BO="RaStore",WO=function(){if(typeof window>"u"||window.localStorage==null)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch{return!1}},Pd=WO(),qV=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(BO).concat(t),n=r.length,i={},a=function(s,l){Object.keys(i).forEach(function(u){i[u]&&i[u].key===s&&i[u].callback(l)})},o=function(s){var l;if(((l=s.key)===null||l===void 0?void 0:l.substring(0,n))===r){var u=s.key.substring(n+1),c=s.newValue?My(s.newValue):void 0;Object.keys(i).forEach(function(f){i[f]&&i[f].key===u&&(c===null?i[f].callback(void 0):i[f].callback(c??void 0))})}};return{setup:function(){if(Pd){var s=Xr().getItem("".concat(r,".version"));if(s&&s!==e){var l=Xr();Object.keys(l).forEach(function(u){u.startsWith(r)&&l.removeItem(u)})}Xr().setItem("".concat(r,".version"),e),window.addEventListener("storage",o)}},teardown:function(){Pd&&window.removeEventListener("storage",o)},getItem:function(s,l){var u=Xr().getItem("".concat(r,".").concat(s));return u==null?l:My(u)},setItem:function(s,l){l===void 0?Xr().removeItem("".concat(r,".").concat(s)):Xr().setItem("".concat(r,".").concat(s),JSON.stringify(l)),a(s,l)},removeItem:function(s){Xr().removeItem("".concat(r,".").concat(s)),a(s,void 0)},removeItems:function(s){var l=Xr();Object.keys(l).forEach(function(u){if(u.startsWith("".concat(r,".").concat(s))){l.removeItem(u);var c=u.substring(n+1);a(c,void 0)}})},reset:function(){var s=Xr();Object.keys(s).forEach(function(l){if(l.startsWith(r)){s.removeItem(l);var u=l.substring(n+1);a(u,void 0)}})},subscribe:function(s,l){var u=Math.random().toString();return i[u]={key:s,callback:l},function(){delete i[u]}}}},My=function(e){try{return JSON.parse(e)}catch{return e}},HO=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,i){i.startsWith(t)&&r.valuesMap.delete(i)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),KO=new HO,Xr=function(){return Pd?window.localStorage:KO},QO=typeof $o=="object"&&$o&&$o.Object===Object&&$o,Vw=QO,qO=Vw,GO=typeof self=="object"&&self&&self.Object===Object&&self,YO=qO||GO||Function("return this")(),Fr=YO,JO=Fr,XO=JO.Symbol,Za=XO,Dy=Za,Bw=Object.prototype,ZO=Bw.hasOwnProperty,eP=Bw.toString,Oo=Dy?Dy.toStringTag:void 0;function tP(e){var t=ZO.call(e,Oo),r=e[Oo];try{e[Oo]=void 0;var n=!0}catch{}var i=eP.call(e);return n&&(t?e[Oo]=r:delete e[Oo]),i}var rP=tP,nP=Object.prototype,iP=nP.toString;function aP(e){return iP.call(e)}var oP=aP,Iy=Za,uP=rP,sP=oP,lP="[object Null]",cP="[object Undefined]",jy=Iy?Iy.toStringTag:void 0;function fP(e){return e==null?e===void 0?cP:lP:jy&&jy in Object(e)?uP(e):sP(e)}var eo=fP;function dP(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ar=dP,hP=eo,vP=Ar,pP="[object AsyncFunction]",yP="[object Function]",gP="[object GeneratorFunction]",mP="[object Proxy]";function wP(e){if(!vP(e))return!1;var t=hP(e);return t==yP||t==gP||t==pP||t==mP}var Gh=wP,_P=Fr,SP=_P["__core-js_shared__"],EP=SP,Zc=EP,Ny=function(){var e=/[^.]+$/.exec(Zc&&Zc.keys&&Zc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function bP(e){return!!Ny&&Ny in e}var xP=bP,CP=Function.prototype,OP=CP.toString;function PP(e){if(e!=null){try{return OP.call(e)}catch{}try{return e+""}catch{}}return""}var Ww=PP,RP=Gh,$P=xP,kP=Ar,FP=Ww,AP=/[\\^$.*+?()[\]{}|]/g,TP=/^\[object .+?Constructor\]$/,LP=Function.prototype,MP=Object.prototype,DP=LP.toString,IP=MP.hasOwnProperty,jP=RegExp("^"+DP.call(IP).replace(AP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function NP(e){if(!kP(e)||$P(e))return!1;var t=RP(e)?jP:TP;return t.test(FP(e))}var UP=NP;function zP(e,t){return e==null?void 0:e[t]}var VP=zP,BP=UP,WP=VP;function HP(e,t){var r=WP(e,t);return BP(r)?r:void 0}var Qi=HP,KP=Qi,QP=function(){try{var e=KP(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Hw=QP,Uy=Hw;function qP(e,t,r){t=="__proto__"&&Uy?Uy(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Yh=qP;function GP(e,t){return e===t||e!==e&&t!==t}var to=GP,YP=Yh,JP=to,XP=Object.prototype,ZP=XP.hasOwnProperty;function eR(e,t,r){var n=e[t];(!(ZP.call(e,t)&&JP(n,r))||r===void 0&&!(t in e))&&YP(e,t,r)}var Jh=eR,tR=Array.isArray,Gr=tR;function rR(e){return e!=null&&typeof e=="object"}var mn=rR,nR=eo,iR=mn,aR="[object Symbol]";function oR(e){return typeof e=="symbol"||iR(e)&&nR(e)==aR}var Vl=oR,uR=Gr,sR=Vl,lR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cR=/^\w*$/;function fR(e,t){if(uR(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||sR(e)?!0:cR.test(e)||!lR.test(e)||t!=null&&e in Object(t)}var dR=fR,hR=Qi,vR=hR(Object,"create"),Bl=vR,zy=Bl;function pR(){this.__data__=zy?zy(null):{},this.size=0}var yR=pR;function gR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var mR=gR,wR=Bl,_R="__lodash_hash_undefined__",SR=Object.prototype,ER=SR.hasOwnProperty;function bR(e){var t=this.__data__;if(wR){var r=t[e];return r===_R?void 0:r}return ER.call(t,e)?t[e]:void 0}var xR=bR,CR=Bl,OR=Object.prototype,PR=OR.hasOwnProperty;function RR(e){var t=this.__data__;return CR?t[e]!==void 0:PR.call(t,e)}var $R=RR,kR=Bl,FR="__lodash_hash_undefined__";function AR(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=kR&&t===void 0?FR:t,this}var TR=AR,LR=yR,MR=mR,DR=xR,IR=$R,jR=TR;function ro(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var e$=ZR,t$=Wl;function r$(e,t){var r=this.__data__,n=t$(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var n$=r$,i$=zR,a$=qR,o$=JR,u$=e$,s$=n$;function no(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&ei?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++ns))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var f=-1,h=!0,w=r&$F?new CF:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e<=OA}var ov=PA,RA=eo,$A=ov,kA=mn,FA="[object Arguments]",AA="[object Array]",TA="[object Boolean]",LA="[object Date]",MA="[object Error]",DA="[object Function]",IA="[object Map]",jA="[object Number]",NA="[object Object]",UA="[object RegExp]",zA="[object Set]",VA="[object String]",BA="[object WeakMap]",WA="[object ArrayBuffer]",HA="[object DataView]",KA="[object Float32Array]",QA="[object Float64Array]",qA="[object Int8Array]",GA="[object Int16Array]",YA="[object Int32Array]",JA="[object Uint8Array]",XA="[object Uint8ClampedArray]",ZA="[object Uint16Array]",eT="[object Uint32Array]",Ve={};Ve[KA]=Ve[QA]=Ve[qA]=Ve[GA]=Ve[YA]=Ve[JA]=Ve[XA]=Ve[ZA]=Ve[eT]=!0;Ve[FA]=Ve[AA]=Ve[WA]=Ve[TA]=Ve[HA]=Ve[LA]=Ve[MA]=Ve[DA]=Ve[IA]=Ve[jA]=Ve[NA]=Ve[UA]=Ve[zA]=Ve[VA]=Ve[BA]=!1;function tT(e){return kA(e)&&$A(e.length)&&!!Ve[RA(e)]}var rT=tT;function nT(e){return function(t){return e(t)}}var uv=nT,il={exports:{}};il.exports;(function(e,t){var r=Vw,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(il,il.exports);var sv=il.exports,iT=rT,aT=uv,Zy=sv,eg=Zy&&Zy.isTypedArray,oT=eg?aT(eg):iT,lv=oT,uT=vA,sT=Yl,lT=Gr,cT=Jl,fT=Ql,dT=lv,hT=Object.prototype,vT=hT.hasOwnProperty;function pT(e,t){var r=lT(e),n=!r&&sT(e),i=!r&&!n&&cT(e),a=!r&&!n&&!i&&dT(e),o=r||n||i||a,s=o?uT(e.length,String):[],l=s.length;for(var u in e)(t||vT.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||fT(u,l)))&&s.push(u);return s}var u_=pT,yT=Object.prototype;function gT(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||yT;return e===r}var cv=gT;function mT(e,t){return function(r){return e(t(r))}}var s_=mT,wT=s_,_T=wT(Object.keys,Object),ST=_T,ET=cv,bT=ST,xT=Object.prototype,CT=xT.hasOwnProperty;function OT(e){if(!ET(e))return bT(e);var t=[];for(var r in Object(e))CT.call(e,r)&&r!="constructor"&&t.push(r);return t}var PT=OT,RT=Gh,$T=ov;function kT(e){return e!=null&&$T(e.length)&&!RT(e)}var Xl=kT,FT=u_,AT=PT,TT=Xl;function LT(e){return TT(e)?FT(e):AT(e)}var fv=LT,MT=i_,DT=av,IT=fv;function jT(e){return MT(e,IT,DT)}var l_=jT,tg=l_,NT=1,UT=Object.prototype,zT=UT.hasOwnProperty;function VT(e,t,r,n,i,a){var o=r&NT,s=tg(e),l=s.length,u=tg(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var h=s[f];if(!(o?h in t:zT.call(t,h)))return!1}var w=a.get(e),_=a.get(t);if(w&&_)return w==t&&_==e;var x=!0;a.set(e,t),a.set(t,e);for(var b=o;++f0){if(++t>=fM)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pM=vM,yM=cM,gM=pM,mM=gM(yM),O_=mM,wM=x_,_M=C_,SM=O_;function EM(e,t){return SM(_M(e,t,wM),e+"")}var yv=EM,bM=to,xM=Xl,CM=Ql,OM=Ar;function PM(e,t,r){if(!OM(r))return!1;var n=typeof t;return(n=="number"?xM(r)&&CM(t,r.length):n=="string"&&t in r)?bM(r[t],e):!1}var P_=PM,RM=yv,$M=P_;function kM(e){return RM(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&$M(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++n=t||C<0||f&&g>=a}function y(){var E=nf();if(b(E))return d(E);s=setTimeout(y,x(E))}function d(E){return s=void 0,h&&n?w(E):(n=i=void 0,o)}function p(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function m(){return s===void 0?o:d(nf())}function S(){var E=nf(),C=b(E);if(n=arguments,i=this,l=E,C){if(s===void 0)return _(l);if(f)return clearTimeout(s),s=setTimeout(y,t),w(l)}return s===void 0&&(s=setTimeout(y,t)),o}return S.cancel=p,S.flush=m,S}var Bj=Vj;const T_=Tt(Bj);var Wj=function(e,t){t===void 0&&(t=250);var r=Hj(e,t),n=r[0],i=r[1],a=Qt();v.useEffect(function(){var o;n!=null&&((o=a.state)===null||o===void 0?void 0:o._scrollToTop)!==!0&&(i(void 0),window.scrollTo(0,n))},[])},Hj=function(e,t){t===void 0&&(t=250);var r=li(e),n=r[0],i=r[1];return v.useEffect(function(){if(!(typeof window>"u")){var a=T_(function(){i(window.scrollY)},t);return window.addEventListener("scroll",a),function(){window.removeEventListener("scroll",a)}}},[t,i]),[n,i]},Kj=function(e){var t=e.children,r=e.storeKey,n=e.debounce,i=n===void 0?250:n;return Wj(r,i),t},so=function(){return v.useContext(A_)},mv=function(){var e=so();return v.useCallback(function(t){var r=t.resource,n=t.id,i=t.type;if(["list","create","edit","show"].includes(i)&&!r)throw new Error("Cannot create a link without a resource. You must provide the resource name.");switch(i){case"list":return Vr("".concat(e,"/").concat(r));case"create":return Vr("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?Vr("".concat(e,"/").concat(r)):Vr("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?Vr("".concat(e,"/").concat(r)):Vr("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return i}},[e])},Vr=function(e){return e.replace("//","/")};function Lg(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var Qj=function(e,t){if(Lg(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. Be sure to pass the props from the parent. Example: const My`).concat(e,` = props => ( <`).concat(e," {...props}> ); -The missing props are: `).concat(i.join(", ")))},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()}`),N_="%[a-f0-9]{2}",jg=new RegExp("("+N_+")|([^%]+?)","gi"),Ng=new RegExp("("+N_+")+","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 gN(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)]},SN=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 b(d){d=w(d);const p=d.indexOf("?");return p===-1?"":d.slice(p+1)}function x(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]=x(C[g],p);else S[E]=x(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=b,e.parse=y,e.stringify=(d,p)=>{if(!d)return"";p=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},p),u(p.arrayFormatSeparator);const 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(b(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 j_(l&&l.message||a,i,l)):Promise.resolve({status:i,headers:o,body:s,json:l})})},xN=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},U_=function(e,t){var r;return t===void 0&&(t=[]),xN(e)?Object.assign.apply(Object,EN([{}],Object.keys(e).map(function(n){return U_(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},z_={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},kN=["getList","getMany","getManyReference"],lo=function(){var e=v.useContext(_v)||wv,t=V_(),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},B_=function(){var e=Kr();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?H_(s,t-1,r,n,i):NN(i,s):n||(i[i.length]=s)}return i}var K_=H_;function zN(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a-1}var e3=ZN;function t3(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=y3){var u=t?null:v3(e);if(u)return p3(u);o=!1,i=h3,l=new c3}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 b.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)}),x.current)return x.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?b.current=c(n.update.bind(n)):b.current=n.update,d.current=!!Q,x.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(st){var Ee=st[0],wt=st[1];i.setQueryData(Ee,wt)}):m.mutate(Ae({resource:C},g))}),[2])}})})},E=v.useMemo(function(){return Ae({isLoading:m.isPending},m)},[m]);return[Ne(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||b(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 j_||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}},d4=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},h4=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")&&b(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,st=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(li){return nm(void 0,void 0,void 0,function(){var mn,P;return im(this,function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),[4,Se(h,{id:p,data:li,meta:Gt??E},{onError:Dt,onSuccess:qt})];case 1:return A.sent(),[3,3];case 2:return mn=A.sent(),((P=mn.body)===null||P===void 0?void 0:P.errors)!=null?[2,mn.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:st,saving:Le,unregisterMutationMiddleware:N}},g4="list",co=function(e){var t=v.useContext(Ev);return e&&e.record||t},m4=function(e){var t=e.value,r=e.children;return t?v.createElement(rc,{value:t},r):r},a6=function(e){var t=co(e),r=gr(e),n=Vv(r);return v.createElement(v.Fragment,null,n(t))},xv=v.createContext(null);xv.displayName="EditContext";var w4=function(e){var t=e.children,r=e.value;return v.createElement(xv.Provider,{value:r},v.createElement(G_,{value:Y_(r)},v.createElement(rc,{value:r&&r.record},t)))},_4=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":Z_(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}(),P4=O4,R4=typeof window>"u"?$o:window;function $4(e,t){if(e instanceof R4[t])return!0;switch(typeof e>"u"?"undefined":Z_(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var df,om;function k4(){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 F4=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(x){var y=i._headers.indexOf(x);return y===-1&&(i._headers.push(x),y=i._headers.indexOf(x)),y};o=function(x){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=x[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(b){u=!0,c=b}finally{try{!l&&f.return&&f.return()}finally{if(u)throw c}}return!n&&i._options.includeHeaders&&a.unshift(this.headers),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}(),M4=L4,D4=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},I4=D4,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=M4,fm=I4,j4=X_,N4=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:j4,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(_,b){w.parse(t,function(x,y){if(n)return n(x,y);if(x)return b(x);if(b)return _(y)})}):new fm};const U4=Tt(N4);var z4=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())},V4=function(e,t,r,n){return U4(e,function(i,a){return z4(a,n)})},B4=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)},[])))},s6=function(e){return function(t,r,n){return e.getMany(n,{ids:B4(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(){b()}}},[_,b]);return[w,x]},hf=[];function Cn(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 l6(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=Cn(!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 W4(){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:L_,payload:ne})},[T]),N=v.useCallback(function(ne){return T({type:Ld,payload:ne})},[T]),I=v.useCallback(function(ne){return T({type:M_,payload:ne})},[T]),Q=R.filter||pm,q=R.displayedFilters||pm,ie=A_(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:I_,payload:ne})},[T]),J=v.useCallback(function(ne,te){T({type:D_,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]}},K4=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)},q4=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={},G4={field:"id",order:Ti},ym={},nc=v.createContext(null);nc.displayName="ListContext";var eS=v.createContext(void 0),Y4=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])};eS.displayName="ListFilterContext";var tS=v.createContext(void 0),J4=function(e){return v.useMemo(function(){return tc(e,["sort","setSort","resource"])},[e.sort,e.setSort])};tS.displayName="ListSortContext";var Ov=v.createContext(void 0);Ov.displayName="ListPaginationContext";var X4=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])},Z4=function(e){var t=e.value,r=e.children;return v.createElement(nc.Provider,{value:t},v.createElement(eS.Provider,{value:Y4(t)},v.createElement(tS.Provider,{value:J4(t)},v.createElement(Ov.Provider,{value:X4(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(x,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:x,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}},rU={field:"id",order:Ti},nU=["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"],c6=function(e){return Object.keys(e).filter(function(t){return!nU.includes(t)}).reduce(function(t,r){var n;return Li(Li({},t),(n={},n[r]=e[r],n))},{})},iU=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]},h6=function(e,t){var r=si("".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;rfr(K,te.field)?te.order==="ASC"?1:-1:fr(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:aU,selectedIds:Se,setFilters:mn,setPage:U,setPerPage:J,setSort:_e,showFilter:li,total:I==null?void 0:I.total}},oU={},p6=function(){var e=v.useContext(nc);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},uU=yv,sU=to,lU=O_,cU=uo,rS=Object.prototype,fU=rS.hasOwnProperty,dU=uU(function(e,t){e=Object(e);var r=-1,n=t.length,i=n>2?t[2]:void 0;for(i&&lU(t[0],t[1],i)&&(n=1);++re.type==="checkbox",ga=e=>e instanceof Date,Ft=e=>e==null;const aS=e=>typeof e=="object";var dt=e=>!Ft(e)&&!Array.isArray(e)&&aS(e)&&!ga(e),oS=e=>dt(e)&&e.target?Tu(e.target)?e.target.checked:e.target.value:e,pU=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,uS=(e,t)=>e.has(pU(t)),yU=e=>{const t=e.constructor&&e.constructor.prototype;return dt(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||dt(e)))if(t=r?[]:{},!r&&!yU(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||!dt(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},Vr=e=>typeof e=="boolean",Rv=e=>/^\w*$/.test(e),sS=e=>ic(e.replace(/["|']|\]/g,"").split(/\.|\[/)),De=(e,t,r)=>{let n=-1;const i=Rv(t)?[t]:sS(t),a=i.length,o=a-1;for(;++nme.useContext(lS),gU=e=>{const{children:t,...r}=e;return me.createElement(lS.Provider,{value:r},t)};var cS=(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]!==Or.all&&(t._proxyFormState[o]=!n||Or.all),r&&(r[o]=!0),e[o]}});return i},Ut=e=>dt(e)&&!Object.keys(e).length,fS=(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||Or.all))},qo=e=>Array.isArray(e)?e:[e],dS=(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&&dS(c.current,f.name,a)&&fS(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]),cS(o,r,u.current,!1)}var Br=e=>typeof e=="string",hS=(e,t,r,n,i)=>Br(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 mU(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=>{dS(s.current,c.name,o)&&u(It(hS(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 wU(e){const t=ac(),{name:r,disabled:n,control:i=t.control,shouldUnregister:a}=e,o=uS(i._names.array,r),s=mU({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,...Vr(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,...Vr(n)||l.disabled?{disabled:l.disabled||n}:{},onChange:me.useCallback(c=>u.current.onChange({target:{value:oS(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 _U=(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===Or.onSubmit,isOnBlur:e===Or.onBlur,isOnChange:e===Or.onChange,isOnAll:e===Or.all,isOnTouch:e===Or.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)break;if(o.ref&&t(o.ref,o.name)&&!n)break;Go(s,t)}else dt(s)&&Go(s,t)}}};var SU=(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",Un=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=>Br(e),Av=e=>e.type==="radio",hl=e=>e instanceof RegExp;const _m={value:!1,isValid:!1},Sm={value:!0,isValid:!0};var vS=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 pS=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)||Vr(e)&&!e)return{type:r,message:Rs(e)?e:"",ref:t}}var ea=e=>dt(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:b,mount:x,disabled:y}=e._f,d=G(t,_);if(!x||y)return{};const p=o?o[0]:a,m=L=>{n&&p.reportValidity&&(p.setCustomValidity(Vr(L)?"":L||""),p.reportValidity())},S={},E=Av(a),C=Tu(a),g=E||C,O=(b||Fv(a))&&Ze(a.value)&&Ze(d)||dl(a)&&a.value===""||d===""||Array.isArray(d)&&!d.length,R=_U.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))||Vr(d)&&!d||C&&!vS(o).isValid||E&&!pS(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";Br(I.value)&&d&&(L=U?ie(d)>ie(I.value):V?d>I.value:q>new Date(I.value)),Br(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&&Br(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(Un(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(dt(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 EU(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)||!aS(e);function bi(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)||dt(a)&&dt(o)||Array.isArray(a)&&Array.isArray(o)?!bi(a,o):a!==o)return!1}}return!0}var yS=e=>e.type==="select-multiple",xU=e=>Av(e)||Tu(e),pf=e=>dl(e)&&e.isConnected,gS=e=>{for(const t in e)if(Un(e[t]))return!0;return!1};function pl(e,t={}){const r=Array.isArray(e);if(dt(e)||r)for(const n in e)Array.isArray(e[n])||dt(e[n])&&!gS(e[n])?(t[n]=Array.isArray(e[n])?[]:{},pl(e[n],t[n])):Ft(e[n])||(t[n]=!0);return t}function mS(e,t,r){const n=Array.isArray(e);if(dt(e)||n)for(const i in e)Array.isArray(e[i])||dt(e[i])&&!gS(e[i])?Ze(t)||vl(r[i])?r[i]=Array.isArray(e[i])?pl(e[i],[]):{...pl(e[i])}:mS(e[i],Ft(t)?{}:t[i],r[i]):r[i]=!bi(e[i],t[i]);return r}var fs=(e,t)=>mS(e,t,pl(t)),wS=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Ze(e)?e:t?e===""?NaN:e&&+e:r&&Br(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)?pS(e.refs).value:yS(t)?[...t.selectedOptions].map(({value:r})=>r):Tu(t)?vS(e.refs).value:wS(Ze(t.value)?e.ref.value:t.value,e)}var CU=(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:dt(e)?hl(e.value)?e.value.source:e.value:e,OU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Cm(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 PU=(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,RU=(e,t)=>!ic(G(e,t)).length&<(e,t);const $U={mode:Or.onSubmit,reValidateMode:Or.onChange,shouldFocusError:!0};function kU(e={}){let t={...$U,...e},r={submitCount:0,isDirty:!1,isLoading:Un(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},i=dt(t.defaultValues)||dt(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===Or.all,b=P=>A=>{clearTimeout(u),u=setTimeout(P,A)},x=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):lt(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),RU(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&&x()}},E=(P,A,D,B,K)=>{let H=!1,re=!1;const pe={name:P},ke=!!(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 Be=ke||bi(G(i,P),A);re=!!(!ke&&G(r.dirtyFields,P)),Be||ke?lt(r.dirtyFields,P):De(r.dirtyFields,P,!0),pe.dirtyFields=r.dirtyFields,H=H||c.dirtyFields&&re!==!Be}if(D){const Be=G(r.touchedFields,P);Be||(De(r.touchedFields,P,D),pe.touchedFields=r.touchedFields,H=H||c.touchedFields&&Be!==D)}return H&&K&&f.state.next(pe),H?pe:{}},C=(P,A,D,B)=>{const K=G(r.errors,P),H=c.isValid&&Vr(A)&&r.isValid!==A;if(e.delayError&&D?(l=b(()=>p(P,D)),l(e.delayError)):(clearTimeout(u),l=null,D?De(r.errors,P,D):lt(r.errors,P)),(D?!bi(K,D):K)||!Ut(B)||H){const re={...B,...H&&Vr(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,CU(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):lt(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);y([B],!0);const ke=await xm(K,a,_,t.shouldUseNativeValidation&&!A,pe);if(y([B]),ke[H.name]&&(D.valid=!1,A))break;!A&&(G(ke,H.name)?pe?SU(r.errors,ke,H.name):De(r.errors,H.name,ke[H.name]):lt(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),!bi(ne(),i)),N=(P,A,D)=>hS(P,s,{...o.mount?a:Ze(A)?i:Br(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,wS(A,H)),K=dl(H.ref)&&Ft(A)?"":A,yS(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):oS(P),re=pe=>{B=Number.isNaN(pe)||pe===G(a,D,pe)};if(K){let pe,ke;const Be=H(),Yr=P.type===fl.BLUR||P.type===fl.FOCUS_OUT,vo=!OU(K._f)&&!t.resolver&&!G(r.errors,D)&&!K._f.deps||PU(Yr,G(r.touchedFields,D),r.isSubmitted,w,h),or=wm(D,s,Yr);De(a,D,Be),Yr?(K._f.onBlur&&K._f.onBlur(P),l&&l(0)):K._f.onChange&&K._f.onChange(P);const Yt=E(D,Be,Yr,!1),Du=!Ut(Yt)||or;if(!Yr&&f.values.next({name:D,type:P.type,values:{...a}}),vo)return c.isValid&&x(),Du&&f.state.next({name:D,...or?{}:Yt});if(!Yr&&or&&f.state.next({...r}),t.resolver){const{errors:ci}=await g([D]);if(re(Be),B){const wc=Cm(r.errors,n,D),mr=Cm(ci,n,wc.name||D);pe=mr.error,D=mr.name,ke=Ut(ci)}}else y([D],!0),pe=(await xm(K,a,_,t.shouldUseNativeValidation))[D],y([D]),re(Be),B&&(pe?ke=!1:c.isValid&&(ke=await R(n,!0)));B&&(K._f.deps&&J(K._f.deps),C(D,ke,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)&&x()):B=D=await R(n);return f.state.next({...!Br(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:Br(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=>lt(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,...ke}=K;De(r.errors,P,{...ke,...A,ref:B}),f.state.next({name:P,errors:r.errors,isValid:!1}),D&&D.shouldFocus&&B&&B.focus&&B.focus()},nt=(P,A)=>Un(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||(lt(n,D),lt(a,D)),!A.keepError&<(r.errors,D),!A.keepDirty&<(r.dirtyFields,D),!A.keepTouched&<(r.touchedFields,D),!A.keepIsValidating&<(r.validatingFields,D),!t.shouldUnregister&&!A.keepDefaultValue&<(i,D);f.values.next({values:{...a}}),f.state.next({...r,...A.keepDirty?{isDirty:L()}:{}}),!A.keepIsValid&&x()},Le=({disabled:P,name:A,field:D,fields:B,value:K})=>{if(Vr(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)}},st=(P,A={})=>{let D=G(n,P);const B=Vr(A.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:A.disabled,name:P,value:A.value}):S(P,!0,A.value),{...B?{disabled:A.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){st(P,A),D=G(n,P);const H=Ze(K.value)&&K.querySelectorAll&&K.querySelectorAll("input,select,textarea")[0]||K,re=xU(H),pe=D._f.refs||[];if(re?pe.find(ke=>ke===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)&&!(uS(s.array,P)&&o.action)&&s.unMount.add(P)}}},Ee=()=>t.shouldFocusError&&Go(n,V,s.mount),wt=P=>{Vr(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(lt(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||lt(r.touchedFields,P),A.keepDirty||(lt(r.dirtyFields,P),r.isDirty=A.defaultValue?L(P,It(G(i,P))):L()),A.keepError||(lt(r.errors,P),c.isValid&&x()),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 ke=Array.isArray(pe._f.refs)?pe._f.refs[0]:pe._f.ref;if(dl(ke)){const Be=ke.closest("form");if(Be){Be.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&&!bi(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(Un(P)?P(a):P,A);return{control:{register:st,unregister:Se,getFieldState:te,handleSubmit:it,setError:_e,_executeSchema:g,_getWatch:N,_getDirty:L,_updateValid:x,_removeUnmounted:T,_updateFieldArray:d,_updateDisabledField:Le,_getFieldArray:I,_reset:Dt,_resetDefaultValues:()=>Un(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:st,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 FU(e={}){const t=me.useRef(),r=me.useRef(),[n,i]=me.useState({isDirty:!1,isValidating:!1,isLoading:Un(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Un(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...kU(e),formState:n});const a=t.current.control;return a._options=e,$v({subject:a._subjects.state,next:o=>{fS(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&&!bi(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=cS(n,a),t.current}var _S=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=gO(function(w){var _=w.currentLocation,b=w.nextLocation;if(f)return!1;var x=t||_.pathname,y=b.pathname.startsWith(x),d=b.pathname.startsWith("".concat(x,"/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])},jU=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,i=e.formControl;return IU(r,n,i),null};function NU(e,t){var r=MM({},UU(e,t),t);return r}function UU(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var zU=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,"")},VU=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=Ar();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])},BU=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,}))$/,ai=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function GU(e){return e?e.hasOwnProperty("message"):!1}var oi=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},ui=function(e){return Qw(e,function(){for(var t=[],r=0;re?oi(t,{max:e},r,n):void 0}});ui(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!ai(r)&&re?oi(t,{max:e},r,n):void 0}});ui(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!ai(t)&&isNaN(Number(t))?oi(e,void 0,t,r):void 0}});var ZU=Qw(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!ai(r)&&typeof r=="string"&&!e.test(r)?oi(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});ui(function(e){return e===void 0&&(e="ra.validation.email"),ZU(qU,e)});var ez=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};ui(function(e,t){return t===void 0&&(t=ez),function(r,n){return!ai(r)&&e.indexOf(r)===-1?oi(t,{list:e},r,n):void 0}});var tz=v.createContext(null),rz=function(){var e=v.useContext(_S);return e},nz=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=fr(s,o),_=fr(u(),o),b=f.dirtyFields,x=Object.keys(b).includes(o);v.useEffect(function(){if(!(i==null||_!=null||w!=null||x)){var y=o.split(".").some(function(m){return iz.test(m)});if(y){var d=o.split(".").slice(0,-1).join("."),p=fr(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})}})},iz=/^\d+$/,az=function(){var e=v.useContext(tz);return e},oz=function(e){return e&&e.isRequired?!0:Array.isArray(e)?e.some(function(t){return t.isRequired}):!1},Pn=function(){return Pn=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 xS=function(){return v.useContext(bS)},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]},kz=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]},Fz=function(e,t){var r=xS(),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])},Az=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,i=e.customRoutesWithoutLayout;return CS(t)?"loading":r.length>0||n.length>0||i.length>0?"ready":"empty"},CS=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})},OS=v.createContext(!1),Tz=OS.Provider,O6=function(){return v.useContext(OS)},Lz=function(e){_z();var t=mv(),r=Rz(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],b=w[1],x=v.useState(f),y=x[0],d=x[1],p=RV();if(v.useEffect(function(){f&&p(void 0,!1).then(function(){b(!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(PV,null)})):v.createElement(pa,null,i,v.createElement(Vt,{path:"/*",element:v.createElement(Tz,{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(_V,{authParams:Mz,component:u}):o.length>0?v.createElement(wO,{to:t({resource:o[0].props.name,type:"list"})}):null}),v.createElement(Vt,{path:"*",element:v.createElement(l,null)}))))}))},Mz={params:{route:"dashboard"}},PS=v.createContext("React Admin"),Dz=PS.Provider,P6=function(){return v.useContext(PS)},Iz=function(e){var t=e.children;return v.createElement(v.Fragment,null,t)},jz=function(e){var t=e.error,r=e.errorInfo,n=e.resetErrorBoundary;return wz(n),v.createElement("div",null,v.createElement("h1",null,"Error"),v.createElement("pre",null,t.message,r==null?void 0:r.componentStack))},R6=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?Fm:o,l=e.children,u=e.dashboard,c=e.disableTelemetry,f=c===void 0?!1:c,h=e.error,w=h===void 0?jz:h,_=e.layout,b=_===void 0?Iz:_,x=e.loading,y=x===void 0?Fm:x,d=e.loginPage,p=d===void 0?!1:d,m=e.ready,S=m===void 0?rV: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(Dz,{value:O},v.createElement(Oz,{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:km(p)}):null,a!==!1&&a!==!0?v.createElement(Vt,{path:"/auth-callback",element:km(a)}):null,v.createElement(Vt,{path:"/*",element:v.createElement(Lz,{catchAll:s,dashboard:u,layout:b,loading:y,requireAuth:C,ready:S},l)}))))},km=function(e){return v.isValidElement(e)?e:v.createElement(e)},Fm=function(){return null},RS=v.createContext(void 0),ho=function(e){var t=e.children,r=e.value;return r?v.createElement(RS.Provider,{value:r},t):t},$6=function(e){var t=e.value,r=e.children;return t?v.createElement(ho,{value:t},r):r},$S={exports:{}},$e={};/** +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&&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 * @@ -85,11 +85,11 @@ React-admin requires a valid dataProvider function to work.`);var c=v.useMemo(fu * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Lv=Symbol.for("react.element"),Mv=Symbol.for("react.portal"),oc=Symbol.for("react.fragment"),uc=Symbol.for("react.strict_mode"),sc=Symbol.for("react.profiler"),lc=Symbol.for("react.provider"),cc=Symbol.for("react.context"),Nz=Symbol.for("react.server_context"),fc=Symbol.for("react.forward_ref"),dc=Symbol.for("react.suspense"),hc=Symbol.for("react.suspense_list"),vc=Symbol.for("react.memo"),pc=Symbol.for("react.lazy"),Uz=Symbol.for("react.offscreen"),kS;kS=Symbol.for("react.module.reference");function yr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Lv:switch(e=e.type,e){case oc:case sc:case uc:case dc:case hc:return e;default:switch(e=e&&e.$$typeof,e){case Nz:case cc:case fc:case pc:case vc:case lc:return e;default:return t}}case Mv:return t}}}$e.ContextConsumer=cc;$e.ContextProvider=lc;$e.Element=Lv;$e.ForwardRef=fc;$e.Fragment=oc;$e.Lazy=pc;$e.Memo=vc;$e.Portal=Mv;$e.Profiler=sc;$e.StrictMode=uc;$e.Suspense=dc;$e.SuspenseList=hc;$e.isAsyncMode=function(){return!1};$e.isConcurrentMode=function(){return!1};$e.isContextConsumer=function(e){return yr(e)===cc};$e.isContextProvider=function(e){return yr(e)===lc};$e.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Lv};$e.isForwardRef=function(e){return yr(e)===fc};$e.isFragment=function(e){return yr(e)===oc};$e.isLazy=function(e){return yr(e)===pc};$e.isMemo=function(e){return yr(e)===vc};$e.isPortal=function(e){return yr(e)===Mv};$e.isProfiler=function(e){return yr(e)===sc};$e.isStrictMode=function(e){return yr(e)===uc};$e.isSuspense=function(e){return yr(e)===dc};$e.isSuspenseList=function(e){return yr(e)===hc};$e.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===oc||e===sc||e===uc||e===dc||e===hc||e===Uz||typeof e=="object"&&e!==null&&(e.$$typeof===pc||e.$$typeof===vc||e.$$typeof===lc||e.$$typeof===cc||e.$$typeof===fc||e.$$typeof===kS||e.getModuleId!==void 0)};$e.typeOf=yr;$S.exports=$e;var zz=$S.exports,FS=function(e){var t=e.create,r=e.edit,n=e.list,i=e.name,a=e.show;return v.createElement(ho,{value:i},v.createElement(pa,null,t&&v.createElement(Vt,{path:"create/*",element:ds(t)}),a&&v.createElement(Vt,{path:":id/show/*",element:ds(a)}),r&&v.createElement(Vt,{path:":id/*",element:ds(r)}),n&&v.createElement(Vt,{path:"/*",element:v.createElement(Hj,{storeKey:"".concat(i,".list.scrollPosition")},ds(n))}),e.children))},ds=function(e){if(v.isValidElement(e))return e;if(zz.isValidElementType(e)){var t=e;return v.createElement(t,null)}return null};FS.raName="Resource";FS.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,i=e.list,a=e.name,o=e.options,s=e.show,l=e.recordRepresentation,u=e.hasCreate,c=e.hasEdit,f=e.hasShow;return{name:a,options:o,hasList:!!i,hasCreate:!!t||!!u,hasEdit:!!r||!!c,hasShow:!!s||!!f,icon:n,recordRepresentation:l}};var Dv=v.createContext(void 0),Vz={getSource:function(e){return e},getLabel:function(e){return e}},Bz=Dv.Provider,Wz=function(){var e=v.useContext(Dv);return e||Vz},Hz=function(){return v.useContext(Dv)},Iv=function(){return xS().definitions},xe={};/*! + */var Lv=Symbol.for("react.element"),Mv=Symbol.for("react.portal"),oc=Symbol.for("react.fragment"),uc=Symbol.for("react.strict_mode"),sc=Symbol.for("react.profiler"),lc=Symbol.for("react.provider"),cc=Symbol.for("react.context"),zz=Symbol.for("react.server_context"),fc=Symbol.for("react.forward_ref"),dc=Symbol.for("react.suspense"),hc=Symbol.for("react.suspense_list"),vc=Symbol.for("react.memo"),pc=Symbol.for("react.lazy"),Vz=Symbol.for("react.offscreen"),FS;FS=Symbol.for("react.module.reference");function gr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Lv:switch(e=e.type,e){case oc:case sc:case uc:case dc:case hc:return e;default:switch(e=e&&e.$$typeof,e){case zz:case cc:case fc:case pc:case vc:case lc:return e;default:return t}}case Mv:return t}}}ke.ContextConsumer=cc;ke.ContextProvider=lc;ke.Element=Lv;ke.ForwardRef=fc;ke.Fragment=oc;ke.Lazy=pc;ke.Memo=vc;ke.Portal=Mv;ke.Profiler=sc;ke.StrictMode=uc;ke.Suspense=dc;ke.SuspenseList=hc;ke.isAsyncMode=function(){return!1};ke.isConcurrentMode=function(){return!1};ke.isContextConsumer=function(e){return gr(e)===cc};ke.isContextProvider=function(e){return gr(e)===lc};ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Lv};ke.isForwardRef=function(e){return gr(e)===fc};ke.isFragment=function(e){return gr(e)===oc};ke.isLazy=function(e){return gr(e)===pc};ke.isMemo=function(e){return gr(e)===vc};ke.isPortal=function(e){return gr(e)===Mv};ke.isProfiler=function(e){return gr(e)===sc};ke.isStrictMode=function(e){return gr(e)===uc};ke.isSuspense=function(e){return gr(e)===dc};ke.isSuspenseList=function(e){return gr(e)===hc};ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===oc||e===sc||e===uc||e===dc||e===hc||e===Vz||typeof e=="object"&&e!==null&&(e.$$typeof===pc||e.$$typeof===vc||e.$$typeof===lc||e.$$typeof===cc||e.$$typeof===fc||e.$$typeof===FS||e.getModuleId!==void 0)};ke.typeOf=gr;kS.exports=ke;var Bz=kS.exports,AS=function(e){var t=e.create,r=e.edit,n=e.list,i=e.name,a=e.show;return v.createElement(ho,{value:i},v.createElement(pa,null,t&&v.createElement(Vt,{path:"create/*",element:ds(t)}),a&&v.createElement(Vt,{path:":id/show/*",element:ds(a)}),r&&v.createElement(Vt,{path:":id/*",element:ds(r)}),n&&v.createElement(Vt,{path:"/*",element:v.createElement(Kj,{storeKey:"".concat(i,".list.scrollPosition")},ds(n))}),e.children))},ds=function(e){if(v.isValidElement(e))return e;if(Bz.isValidElementType(e)){var t=e;return v.createElement(t,null)}return null};AS.raName="Resource";AS.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,i=e.list,a=e.name,o=e.options,s=e.show,l=e.recordRepresentation,u=e.hasCreate,c=e.hasEdit,f=e.hasShow;return{name:a,options:o,hasList:!!i,hasCreate:!!t||!!u,hasEdit:!!r||!!c,hasShow:!!s||!!f,icon:n,recordRepresentation:l}};var Dv=v.createContext(void 0),Wz={getSource:function(e){return e},getLabel:function(e){return e}},Hz=Dv.Provider,Kz=function(){var e=v.useContext(Dv);return e||Wz},Qz=function(){return v.useContext(Dv)},Iv=function(){return CS().definitions},xe={};/*! * inflection * Copyright(c) 2011 Ben Lin * MIT Licensed * * @fileoverview * A port of inflection-js to node.js module. - */Object.defineProperty(xe,"__esModule",{value:!0});var AS=xe.transform=xe.ordinalize=xe.foreignKey=xe.classify=xe.tableize=xe.demodulize=xe.titleize=xe.dasherize=xe.capitalize=NS=xe.humanize=xe.underscore=xe.camelize=Xz=xe.inflect=IS=xe.singularize=DS=xe.pluralize=void 0;const ml=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],j={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),databases:new RegExp("(database)s$","gi"),drives:new RegExp("(drive)s$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopuses:new RegExp("(octop|vir)uses$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons|bonus)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),drive:new RegExp("(drive)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons|bonus)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},TS=[[j.plural.men],[j.plural.people],[j.plural.children],[j.plural.tia],[j.plural.analyses],[j.plural.databases],[j.plural.drives],[j.plural.hives],[j.plural.curves],[j.plural.lrves],[j.plural.foves],[j.plural.aeiouyies],[j.plural.series],[j.plural.movies],[j.plural.xes],[j.plural.mice],[j.plural.buses],[j.plural.oes],[j.plural.shoes],[j.plural.crises],[j.plural.octopuses],[j.plural.aliases],[j.plural.summonses],[j.plural.oxen],[j.plural.matrices],[j.plural.feet],[j.plural.teeth],[j.plural.geese],[j.plural.quizzes],[j.plural.whereases],[j.plural.criteria],[j.plural.genera],[j.singular.man,"$1en"],[j.singular.person,"$1ople"],[j.singular.child,"$1ren"],[j.singular.drive,"$1s"],[j.singular.ox,"$1en"],[j.singular.axis,"$1es"],[j.singular.octopus,"$1uses"],[j.singular.alias,"$1es"],[j.singular.summons,"$1es"],[j.singular.bus,"$1ses"],[j.singular.buffalo,"$1oes"],[j.singular.tium,"$1a"],[j.singular.sis,"ses"],[j.singular.ffe,"$1$2ves"],[j.singular.hive,"$1ves"],[j.singular.aeiouyy,"$1ies"],[j.singular.matrix,"$1ices"],[j.singular.vertex,"$1ices"],[j.singular.x,"$1es"],[j.singular.mouse,"$1ice"],[j.singular.foot,"feet"],[j.singular.tooth,"teeth"],[j.singular.goose,"geese"],[j.singular.quiz,"$1zes"],[j.singular.whereas,"$1es"],[j.singular.criterion,"$1a"],[j.singular.genus,"genera"],[j.singular.s,"s"],[j.singular.common,"s"]],LS=[[j.singular.man],[j.singular.person],[j.singular.child],[j.singular.drive],[j.singular.ox],[j.singular.axis],[j.singular.octopus],[j.singular.alias],[j.singular.summons],[j.singular.bus],[j.singular.buffalo],[j.singular.tium],[j.singular.sis],[j.singular.ffe],[j.singular.hive],[j.singular.aeiouyy],[j.singular.x],[j.singular.matrix],[j.singular.mouse],[j.singular.foot],[j.singular.tooth],[j.singular.goose],[j.singular.quiz],[j.singular.whereas],[j.singular.criterion],[j.singular.genus],[j.plural.men,"$1an"],[j.plural.people,"$1rson"],[j.plural.children,"$1"],[j.plural.databases,"$1"],[j.plural.drives,"$1"],[j.plural.genera,"genus"],[j.plural.criteria,"$1on"],[j.plural.tia,"$1um"],[j.plural.analyses,"$1$2sis"],[j.plural.hives,"$1ve"],[j.plural.curves,"$1"],[j.plural.lrves,"$1f"],[j.plural.aves,"$1ve"],[j.plural.foves,"$1fe"],[j.plural.movies,"$1ovie"],[j.plural.aeiouyies,"$1y"],[j.plural.series,"$1eries"],[j.plural.xes,"$1"],[j.plural.mice,"$1ouse"],[j.plural.buses,"$1"],[j.plural.oes,"$1"],[j.plural.shoes,"$1"],[j.plural.crises,"$1is"],[j.plural.octopuses,"$1us"],[j.plural.aliases,"$1"],[j.plural.summonses,"$1"],[j.plural.oxen,"$1"],[j.plural.matrices,"$1ix"],[j.plural.vertices,"$1ex"],[j.plural.feet,"foot"],[j.plural.teeth,"tooth"],[j.plural.geese,"goose"],[j.plural.quizzes,"$1"],[j.plural.whereases,"$1"],[j.plural.ss,"ss"],[j.plural.s,""]],Kz=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],Qz=new RegExp("(_ids|_id)$","g"),MS=new RegExp("_","g"),qz=new RegExp("[ _]","g"),Gz=new RegExp("([A-Z])","g"),Yz=new RegExp("^_");function wl(e,t,r,n){if(n)return n;if(r.includes(e.toLocaleLowerCase()))return e;for(const i of t)if(e.match(i[0]))return i[1]!==void 0?e.replace(i[0],i[1]):e;return e}function jv(e,t){return wl(e,TS,ml,t)}var DS=xe.pluralize=jv;function Nv(e,t){return wl(e,LS,ml,t)}var IS=xe.singularize=Nv;function Jz(e,t,r,n){return isNaN(t)?e:t===1?wl(e,LS,ml,r):wl(e,TS,ml,n)}var Xz=xe.inflect=Jz;function Uv(e,t){const r=e.split("/"),n=r.length;let i,a,o,s;for(let l=0;l1?DS(r):IS(r))});return a}},gr=function(e){var t=v.useContext(RS);return e&&e.resource||t},KS=function(e){var t=gr(e),r=Iv(),n=e||{},i=n.hasCreate,a=n.hasEdit,o=n.hasList,s=n.hasShow,l=n.recordRepresentation,u=v.useMemo(function(){return nS({},{hasCreate:i,hasEdit:a,hasList:o,hasShow:s,recordRepresentation:l},t?r[t]:{})},[t,r,i,a,o,s,l]);return u},Vv=function(e){var t=KS({resource:e}).recordRepresentation;return v.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?fr(r,t):v.isValidElement(t)?t:(r==null?void 0:r.name)!=null&&(r==null?void 0:r.name)!==""?r.name:(r==null?void 0:r.title)!=null&&(r==null?void 0:r.title)!==""?r.title:(r==null?void 0:r.label)!=null&&(r==null?void 0:r.label)!==""?r.label:(r==null?void 0:r.reference)!=null&&(r==null?void 0:r.reference)!==""?r.reference:"#".concat(r.id):""},[t])},QS=function(e){var t=Wz();return t.getSource(e)},tV=function(){var e=ii(),t=gr(),r=Hz();return v.useCallback(function(n){var i=n.source,a=n.label,o=n.resource;return a===!1||a===""?null:a&&typeof a!="string"?a:e.apply(void 0,iV({label:a,defaultLabel:i?r==null?void 0:r.getLabel(i):void 0,resource:o,resourceFromContext:t,source:i}))},[t,e,r])},qS=function(e){var t=e.source,r=e.label,n=e.resource,i=e.isRequired,a=tV();if(r===!0)throw new Error("Label parameter must be a string, a ReactElement or false");return r===!1||r===""?null:r&&typeof r!="string"?r:v.createElement("span",null,a({label:r,resource:n,source:t}),i&&v.createElement("span",{"aria-hidden":"true"}," *"))};qS.displayName="FieldTitle";const k6=v.memo(qS),rV=function(){return v.createElement("span",null)},nV=function(e,t){};var iV=function(e){if(!e)return[""];var t=e.label,r=e.defaultLabel,n=e.resource,i=e.resourceFromContext,a=e.source;if(typeof t<"u")return[t,{_:t}];if(typeof a>"u")return[""];var o=aV(a),s=o.sourceWithoutDigits,l=o.sourceSuffix,u=AS(l.replace(/\./g," "),["underscore","humanize"]);return n?[Am(n,s),{_:u}]:r?[r,{_:u}]:[Am(i||"undefined",s),{_:u}]},Am=function(e,t){return"resources.".concat(e,".fields.").concat(t)},aV=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(a,o){oV(a)&&(n=o)});var i=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:i}},oV=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0},uV=typeof window<"u"?v.useLayoutEffect:v.useEffect,Ne=function(e){var t=v.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return uV(function(){t.current=e}),v.useCallback(function(){for(var r=[],n=0;n"u"?t:h)});return function(){return f()}},[e,a,t,n,s]);var u=Ne(function(c,f){var h=typeof c=="function"?c(s):c;i(e,typeof h>"u"?typeof f>"u"?t:f:h)});return[s,u]},sV=function(e){var t=Gl().removeItem;return v.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},A6=function(e){var t=Gl().removeItems;return v.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},lV=function(){var e=Gl().reset;return e},Lu=function(){var e=ti(),t=Kr(),r=lV(),n=Ki(),i=v.useRef(n),a=Qt(),o=v.useRef(a),s=so(),l=Ur("".concat(s,"/").concat(Dl.loginUrl));v.useEffect(function(){o.current=a,i.current=n},[a,n]);var u=v.useCallback(function(c,f,h){return c===void 0&&(c={}),f===void 0&&(f=l),h===void 0&&(h=!0),e?e.logout(c).then(function(w){if(w===!1||f===!1){r(),t.clear();return}var _=w||f;if(_!=null&&_.startsWith("http"))return r(),t.clear(),window.location.href=_,_;var b=_.split("?"),x={pathname:b[0]},y={};return h&&o.current&&o.current.pathname&&(y={state:{nextPathname:o.current.pathname,nextSearch:o.current.search}}),b[1]&&(x.search=b[1]),i.current(x,y),r(),t.clear(),w}):(i.current({pathname:l},{state:{nextPathname:o.current&&o.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,l,t]);return u},yi=function(){return yi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},Lm=function(){},gi=function(){return gi=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]"),Mu(t);var o=GS(t).permissions;if(i)return v.createElement(i,Jo({permissions:o},a));if(n)return n(Jo({permissions:o},a));if(r)return r(Jo({permissions:o},a))},T6=function(){var e=ti(),t=Qt(),r=t.state,n=Ki(),i=so(),a=P2().resetNotifications,o=r&&r.nextPathname,s=r&&r.nextSearch,l=Ur("".concat(i,"/").concat(Dl.afterLoginUrl)),u=v.useCallback(function(c,f){return c===void 0&&(c={}),e?e.login(c).then(function(h){if(a(),h&&h.hasOwnProperty("redirectTo"))h&&n(h.redirectTo);else{var w=f||o+s||l;n(w)}return h}):(a(),n(l),Promise.resolve())},[e,n,o,s,a,l]);return u},SV="AUTH_LOGIN",EV="AUTH_CHECK",bV="AUTH_ERROR",xV="AUTH_LOGOUT",CV="AUTH_GET_PERMISSIONS";const OV=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},Xo=function(){return Xo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return si(r&&e?"".concat(r,".").concat(e):r??e,t)},UV=function(){var e=v.useContext(ES);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},zV=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n1?IS(r):jS(r))});return a}},mr=function(e){var t=v.useContext($S);return e&&e.resource||t},QS=function(e){var t=mr(e),r=Iv(),n=e||{},i=n.hasCreate,a=n.hasEdit,o=n.hasList,s=n.hasShow,l=n.recordRepresentation,u=v.useMemo(function(){return iS({},{hasCreate:i,hasEdit:a,hasList:o,hasShow:s,recordRepresentation:l},t?r[t]:{})},[t,r,i,a,o,s,l]);return u},Vv=function(e){var t=QS({resource:e}).recordRepresentation;return v.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?dr(r,t):v.isValidElement(t)?t:(r==null?void 0:r.name)!=null&&(r==null?void 0:r.name)!==""?r.name:(r==null?void 0:r.title)!=null&&(r==null?void 0:r.title)!==""?r.title:(r==null?void 0:r.label)!=null&&(r==null?void 0:r.label)!==""?r.label:(r==null?void 0:r.reference)!=null&&(r==null?void 0:r.reference)!==""?r.reference:"#".concat(r.id):""},[t])},qS=function(e){var t=Kz();return t.getSource(e)},nV=function(){var e=ai(),t=mr(),r=Qz();return v.useCallback(function(n){var i=n.source,a=n.label,o=n.resource;return a===!1||a===""?null:a&&typeof a!="string"?a:e.apply(void 0,oV({label:a,defaultLabel:i?r==null?void 0:r.getLabel(i):void 0,resource:o,resourceFromContext:t,source:i}))},[t,e,r])},GS=function(e){var t=e.source,r=e.label,n=e.resource,i=e.isRequired,a=nV();if(r===!0)throw new Error("Label parameter must be a string, a ReactElement or false");return r===!1||r===""?null:r&&typeof r!="string"?r:v.createElement("span",null,a({label:r,resource:n,source:t}),i&&v.createElement("span",{"aria-hidden":"true"}," *"))};GS.displayName="FieldTitle";const A6=v.memo(GS),iV=function(){return v.createElement("span",null)},aV=function(e,t){};var oV=function(e){if(!e)return[""];var t=e.label,r=e.defaultLabel,n=e.resource,i=e.resourceFromContext,a=e.source;if(typeof t<"u")return[t,{_:t}];if(typeof a>"u")return[""];var o=uV(a),s=o.sourceWithoutDigits,l=o.sourceSuffix,u=TS(l.replace(/\./g," "),["underscore","humanize"]);return n?[Tm(n,s),{_:u}]:r?[r,{_:u}]:[Tm(i||"undefined",s),{_:u}]},Tm=function(e,t){return"resources.".concat(e,".fields.").concat(t)},uV=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(a,o){sV(a)&&(n=o)});var i=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:i}},sV=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0},lV=typeof window<"u"?v.useLayoutEffect:v.useEffect,Ue=function(e){var t=v.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return lV(function(){t.current=e}),v.useCallback(function(){for(var r=[],n=0;n"u"?t:h)});return function(){return f()}},[e,a,t,n,s]);var u=Ue(function(c,f){var h=typeof c=="function"?c(s):c;i(e,typeof h>"u"?typeof f>"u"?t:f:h)});return[s,u]},cV=function(e){var t=Gl().removeItem;return v.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},L6=function(e){var t=Gl().removeItems;return v.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},fV=function(){var e=Gl().reset;return e},Lu=function(){var e=ri(),t=Qr(),r=fV(),n=Ki(),i=v.useRef(n),a=Qt(),o=v.useRef(a),s=so(),l=Vr("".concat(s,"/").concat(Dl.loginUrl));v.useEffect(function(){o.current=a,i.current=n},[a,n]);var u=v.useCallback(function(c,f,h){return c===void 0&&(c={}),f===void 0&&(f=l),h===void 0&&(h=!0),e?e.logout(c).then(function(w){if(w===!1||f===!1){r(),t.clear();return}var _=w||f;if(_!=null&&_.startsWith("http"))return r(),t.clear(),window.location.href=_,_;var x=_.split("?"),b={pathname:x[0]},y={};return h&&o.current&&o.current.pathname&&(y={state:{nextPathname:o.current.pathname,nextSearch:o.current.search}}),x[1]&&(b.search=x[1]),i.current(b,y),r(),t.clear(),w}):(i.current({pathname:l},{state:{nextPathname:o.current&&o.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,l,t]);return u},gi=function(){return gi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},Mm=function(){},mi=function(){return mi=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]"),Mu(t);var o=YS(t).permissions;if(i)return v.createElement(i,Jo({permissions:o},a));if(n)return n(Jo({permissions:o},a));if(r)return r(Jo({permissions:o},a))},M6=function(){var e=ri(),t=Qt(),r=t.state,n=Ki(),i=so(),a=R2().resetNotifications,o=r&&r.nextPathname,s=r&&r.nextSearch,l=Vr("".concat(i,"/").concat(Dl.afterLoginUrl)),u=v.useCallback(function(c,f){return c===void 0&&(c={}),e?e.login(c).then(function(h){if(a(),h&&h.hasOwnProperty("redirectTo"))h&&n(h.redirectTo);else{var w=f||o+s||l;n(w)}return h}):(a(),n(l),Promise.resolve())},[e,n,o,s,a,l]);return u},bV="AUTH_LOGIN",xV="AUTH_CHECK",CV="AUTH_ERROR",OV="AUTH_LOGOUT",PV="AUTH_GET_PERMISSIONS";const RV=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},Xo=function(){return Xo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return li(r&&e?"".concat(r,".").concat(e):r??e,t)},VV=function(){var e=v.useContext(bS);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},BV=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n0?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=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Bb={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Db=!1,Lb=/[A-Z]|^ms/g,zb=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Hp=function(t){return t.charCodeAt(1)===45},vd=function(t){return t!=null&&typeof t!="boolean"},gs=Rp(function(e){return Hp(e)?e:e.replace(Lb,"-$&").toLowerCase()}),gd=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(zb,function(n,o,a){return Dt={name:o,styles:a,next:Dt},o})}return Bb[t]!==1&&!Hp(t)&&typeof r=="number"&&r!==0?r+"px":r},Wb="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ao(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Dt={name:o.name,styles:o.styles,next:Dt},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Dt={name:i.name,styles:i.styles,next:Dt},i=i.next;var l=a.styles+";";return l}return Vb(e,t,r)}case"function":{if(e!==void 0){var c=Dt,u=r(e);return Dt=c,ao(e,t,u)}break}}var d=r;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function Vb(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?Gb:Xb},Od=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Yb=!1,Qb=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Wp(r,n,o),Ub(function(){return Vp(r,n,o)}),null},Jb=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var l=Od(t,r,n),c=l||xd(o),u=!c("as");return function(){var d=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,m=1;mt(t0(o)?r:o):t;return S.jsx(Kb,{styles:n})}function Pc(e,t){return Ws(e,t)}const Yp=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},r0=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Xp,StyledEngineProvider:e0,ThemeContext:ho,css:bi,default:Pc,internal_processStyles:Yp,keyframes:On},Symbol.toStringTag,{value:"Module"}));function Xt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Qp(e){if(!Xt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Qp(e[r])}),t}function Qe(e,t,r={clone:!0}){const n=r.clone?h({},e):e;return Xt(e)&&Xt(t)&&Object.keys(t).forEach(o=>{Xt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Xt(e[o])?n[o]=Qe(e[o],t[o],r):r.clone?n[o]=Xt(t[o])?Qp(t[o]):t[o]:n[o]=t[o]}),n}const n0=Object.freeze(Object.defineProperty({__proto__:null,default:Qe,isPlainObject:Xt},Symbol.toStringTag,{value:"Module"})),o0=["values","unit","step"],a0=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>h({},r,{[n.key]:n.val}),{})};function Jp(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=W(e,o0),a=a0(t),i=Object.keys(a);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function u(p,m){const g=i.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:m)-n/100}${r})`}function d(p){return i.indexOf(p)+1`@media (min-width:${Ec[e]}px)`};function jt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||Cd;return t.reduce((i,l,c)=>(i[a.up(a.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const a=n.breakpoints||Cd;return Object.keys(t).reduce((i,l)=>{if(Object.keys(a.values||Ec).indexOf(l)!==-1){const c=a.up(l);i[c]=r(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return r(t)}function Zp(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function em(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function s0(e,...t){const r=Zp(e),n=[r,...t].reduce((o,a)=>Qe(o,a),{});return em(Object.keys(r),n)}function l0(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a{e[o]!=null&&(r[o]=!0)}),r}function ys({values:e,breakpoints:t,base:r}){const n=r||l0(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,l,c)=>(Array.isArray(e)?(i[l]=e[c]!=null?e[c]:e[a],a=c):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[a],a=l):i[l]=e,i),{})}function z(e){if(typeof e!="string")throw new Error(Qt(7));return e.charAt(0).toUpperCase()+e.slice(1)}const c0=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"}));function xi(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Oa(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=xi(e,r)||n,t&&(o=t(o,n,e)),o}function Fe(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,u=xi(c,n)||{};return jt(i,l,f=>{let p=Oa(u,o,f);return f===p&&typeof f=="string"&&(p=Oa(u,o,`${t}${f==="default"?"":z(f)}`,f)),r===!1?p:{[r]:p}})};return a.propTypes={},a.filterProps=[t],a}function u0(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const d0={m:"margin",p:"padding"},f0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_d={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},p0=u0(e=>{if(e.length>2)if(_d[e])e=_d[e];else return[e];const[t,r]=e.split(""),n=d0[t],o=f0[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),Sc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$c=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Sc,...$c];function yo(e,t,r,n){var o;const a=(o=xi(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function Rc(e){return yo(e,"spacing",8)}function Er(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function m0(e,t){return r=>e.reduce((n,o)=>(n[o]=Er(t,r),n),{})}function v0(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=p0(r),a=m0(o,n),i=e[r];return jt(e,i,a)}function tm(e,t){const r=Rc(e.theme);return Object.keys(e).map(n=>v0(e,t,n,r)).reduce(Vn,{})}function Te(e){return tm(e,Sc)}Te.propTypes={};Te.filterProps=Sc;function je(e){return tm(e,$c)}je.propTypes={};je.filterProps=$c;function g0(e=8){if(e.mui)return e;const t=Rc({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function Oi(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?Vn(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function xt(e){return typeof e!="number"?e:`${e}px solid`}function Et(e,t){return Fe({prop:e,themeKey:"borders",transform:t})}const h0=Et("border",xt),y0=Et("borderTop",xt),b0=Et("borderRight",xt),x0=Et("borderBottom",xt),O0=Et("borderLeft",xt),C0=Et("borderColor"),_0=Et("borderTopColor"),w0=Et("borderRightColor"),P0=Et("borderBottomColor"),E0=Et("borderLeftColor"),S0=Et("outline",xt),$0=Et("outlineColor"),Ci=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=yo(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Er(t,n)});return jt(e,e.borderRadius,r)}return null};Ci.propTypes={};Ci.filterProps=["borderRadius"];Oi(h0,y0,b0,x0,O0,C0,_0,w0,P0,E0,Ci,S0,$0);const _i=e=>{if(e.gap!==void 0&&e.gap!==null){const t=yo(e.theme,"spacing",8),r=n=>({gap:Er(t,n)});return jt(e,e.gap,r)}return null};_i.propTypes={};_i.filterProps=["gap"];const wi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=yo(e.theme,"spacing",8),r=n=>({columnGap:Er(t,n)});return jt(e,e.columnGap,r)}return null};wi.propTypes={};wi.filterProps=["columnGap"];const Pi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=yo(e.theme,"spacing",8),r=n=>({rowGap:Er(t,n)});return jt(e,e.rowGap,r)}return null};Pi.propTypes={};Pi.filterProps=["rowGap"];const R0=Fe({prop:"gridColumn"}),k0=Fe({prop:"gridRow"}),I0=Fe({prop:"gridAutoFlow"}),T0=Fe({prop:"gridAutoColumns"}),j0=Fe({prop:"gridAutoRows"}),M0=Fe({prop:"gridTemplateColumns"}),A0=Fe({prop:"gridTemplateRows"}),N0=Fe({prop:"gridTemplateAreas"}),F0=Fe({prop:"gridArea"});Oi(_i,wi,Pi,R0,k0,I0,T0,j0,M0,A0,N0,F0);function Yr(e,t){return t==="grey"?t:e}const B0=Fe({prop:"color",themeKey:"palette",transform:Yr}),D0=Fe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yr}),L0=Fe({prop:"backgroundColor",themeKey:"palette",transform:Yr});Oi(B0,D0,L0);function mt(e){return e<=1&&e!==0?`${e*100}%`:e}const z0=Fe({prop:"width",transform:mt}),kc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Ec[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:mt(r)}};return jt(e,e.maxWidth,t)}return null};kc.filterProps=["maxWidth"];const W0=Fe({prop:"minWidth",transform:mt}),V0=Fe({prop:"height",transform:mt}),H0=Fe({prop:"maxHeight",transform:mt}),U0=Fe({prop:"minHeight",transform:mt});Fe({prop:"size",cssProperty:"width",transform:mt});Fe({prop:"size",cssProperty:"height",transform:mt});const q0=Fe({prop:"boxSizing"});Oi(z0,kc,W0,V0,H0,U0,q0);const bo={border:{themeKey:"borders",transform:xt},borderTop:{themeKey:"borders",transform:xt},borderRight:{themeKey:"borders",transform:xt},borderBottom:{themeKey:"borders",transform:xt},borderLeft:{themeKey:"borders",transform:xt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:xt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ci},color:{themeKey:"palette",transform:Yr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yr},backgroundColor:{themeKey:"palette",transform:Yr},p:{style:je},pt:{style:je},pr:{style:je},pb:{style:je},pl:{style:je},px:{style:je},py:{style:je},padding:{style:je},paddingTop:{style:je},paddingRight:{style:je},paddingBottom:{style:je},paddingLeft:{style:je},paddingX:{style:je},paddingY:{style:je},paddingInline:{style:je},paddingInlineStart:{style:je},paddingInlineEnd:{style:je},paddingBlock:{style:je},paddingBlockStart:{style:je},paddingBlockEnd:{style:je},m:{style:Te},mt:{style:Te},mr:{style:Te},mb:{style:Te},ml:{style:Te},mx:{style:Te},my:{style:Te},margin:{style:Te},marginTop:{style:Te},marginRight:{style:Te},marginBottom:{style:Te},marginLeft:{style:Te},marginX:{style:Te},marginY:{style:Te},marginInline:{style:Te},marginInlineStart:{style:Te},marginInlineEnd:{style:Te},marginBlock:{style:Te},marginBlockStart:{style:Te},marginBlockEnd:{style:Te},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_i},rowGap:{style:Pi},columnGap:{style:wi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:mt},maxWidth:{style:kc},minWidth:{transform:mt},height:{transform:mt},maxHeight:{transform:mt},minHeight:{transform:mt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function K0(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function G0(e,t){return typeof e=="function"?e(t):e}function rm(){function e(r,n,o,a){const i={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:d,style:f}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const p=xi(o,u)||{};return f?f(i):jt(i,n,g=>{let v=Oa(p,d,g);return g===v&&typeof g=="string"&&(v=Oa(p,d,`${r}${g==="default"?"":z(g)}`,g)),c===!1?v:{[c]:v}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:bo;function l(c){let u=c;if(typeof c=="function")u=c(a);else if(typeof c!="object")return c;if(!u)return null;const d=Zp(a.breakpoints),f=Object.keys(d);let p=d;return Object.keys(u).forEach(m=>{const g=G0(u[m],a);if(g!=null)if(typeof g=="object")if(i[m])p=Vn(p,e(m,g,a,i));else{const v=jt({theme:a},g,b=>({[m]:b}));K0(v,g)?p[m]=t({sx:g,theme:a}):p=Vn(p,v)}else p=Vn(p,e(m,g,a,i))}),em(f,p)}return Array.isArray(o)?o.map(l):l(o)}return t}const Cn=rm();Cn.filterProps=["sx"];function nm(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const X0=["breakpoints","palette","spacing","shape"];function xo(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=W(e,X0),l=Jp(r),c=g0(o);let u=Qe({breakpoints:l,direction:"ltr",components:{},palette:h({mode:"light"},n),spacing:c,shape:h({},i0,a)},i);return u.applyStyles=nm,u=t.reduce((d,f)=>Qe(d,f),u),u.unstable_sxConfig=h({},bo,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return Cn({sx:f,theme:this})},u}const Y0=Object.freeze(Object.defineProperty({__proto__:null,default:xo,private_createBreakpoints:Jp,unstable_applyStyles:nm},Symbol.toStringTag,{value:"Module"}));function Q0(e){return Object.keys(e).length===0}function Ic(e=null){const t=s.useContext(ho);return!t||Q0(t)?e:t}const J0=xo();function Ei(e=J0){return Ic(e)}function Z0({styles:e,themeId:t,defaultTheme:r={}}){const n=Ei(r),o=typeof e=="function"?e(t&&n[t]||n):e;return S.jsx(Xp,{styles:o})}const e1=["sx"],t1=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:bo;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function Si(e){const{sx:t}=e,r=W(e,e1),{systemProps:n,otherProps:o}=t1(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return Xt(l)?h({},n,l):n}:a=h({},n,t),h({},o,{sx:a})}const r1=Object.freeze(Object.defineProperty({__proto__:null,default:Cn,extendSxProp:Si,unstable_createStyleFunctionSx:rm,unstable_defaultSxConfig:bo},Symbol.toStringTag,{value:"Module"})),wd=e=>e,n1=()=>{let e=wd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=wd}}},om=n1();function am(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;tl!=="theme"&&l!=="sx"&&l!=="as"})(Cn);return s.forwardRef(function(c,u){const d=Ei(r),f=Si(c),{className:p,component:m="div"}=f,g=W(f,o1);return S.jsx(a,h({as:m,ref:u,className:B(p,o?o(n):n),theme:t&&d[t]||d},g))})}const a1={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ee(e,t,r="Mui"){const n=a1[t];return n?`${r}-${n}`:`${om.generate(e)}-${t}`}function te(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=ee(e,o,r)}),n}var im={exports:{}},we={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Tc=Symbol.for("react.element"),jc=Symbol.for("react.portal"),$i=Symbol.for("react.fragment"),Ri=Symbol.for("react.strict_mode"),ki=Symbol.for("react.profiler"),Ii=Symbol.for("react.provider"),Ti=Symbol.for("react.context"),i1=Symbol.for("react.server_context"),ji=Symbol.for("react.forward_ref"),Mi=Symbol.for("react.suspense"),Ai=Symbol.for("react.suspense_list"),Ni=Symbol.for("react.memo"),Fi=Symbol.for("react.lazy"),s1=Symbol.for("react.offscreen"),sm;sm=Symbol.for("react.module.reference");function St(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Tc:switch(e=e.type,e){case $i:case ki:case Ri:case Mi:case Ai:return e;default:switch(e=e&&e.$$typeof,e){case i1:case Ti:case ji:case Fi:case Ni:case Ii:return e;default:return t}}case jc:return t}}}we.ContextConsumer=Ti;we.ContextProvider=Ii;we.Element=Tc;we.ForwardRef=ji;we.Fragment=$i;we.Lazy=Fi;we.Memo=Ni;we.Portal=jc;we.Profiler=ki;we.StrictMode=Ri;we.Suspense=Mi;we.SuspenseList=Ai;we.isAsyncMode=function(){return!1};we.isConcurrentMode=function(){return!1};we.isContextConsumer=function(e){return St(e)===Ti};we.isContextProvider=function(e){return St(e)===Ii};we.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Tc};we.isForwardRef=function(e){return St(e)===ji};we.isFragment=function(e){return St(e)===$i};we.isLazy=function(e){return St(e)===Fi};we.isMemo=function(e){return St(e)===Ni};we.isPortal=function(e){return St(e)===jc};we.isProfiler=function(e){return St(e)===ki};we.isStrictMode=function(e){return St(e)===Ri};we.isSuspense=function(e){return St(e)===Mi};we.isSuspenseList=function(e){return St(e)===Ai};we.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$i||e===ki||e===Ri||e===Mi||e===Ai||e===s1||typeof e=="object"&&e!==null&&(e.$$typeof===Fi||e.$$typeof===Ni||e.$$typeof===Ii||e.$$typeof===Ti||e.$$typeof===ji||e.$$typeof===sm||e.getModuleId!==void 0)};we.typeOf=St;im.exports=we;var Pd=im.exports;const l1=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function lm(e){const t=`${e}`.match(l1);return t&&t[1]||""}function cm(e,t=""){return e.displayName||e.name||lm(e)||t}function Ed(e,t,r){const n=cm(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function c1(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return cm(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Pd.ForwardRef:return Ed(e,e.render,"ForwardRef");case Pd.Memo:return Ed(e,e.type,"memo");default:return}}}const u1=Object.freeze(Object.defineProperty({__proto__:null,default:c1,getFunctionName:lm},Symbol.toStringTag,{value:"Module"})),d1=["ownerState"],f1=["variants"],p1=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function m1(e){return Object.keys(e).length===0}function v1(e){return typeof e=="string"&&e.charCodeAt(0)>96}function bs(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const g1=xo(),h1=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function No({defaultTheme:e,theme:t,themeId:r}){return m1(t)?e:t[r]||t}function y1(e){return e?(t,r)=>r[e]:null}function Jo(e,t){let{ownerState:r}=t,n=W(t,d1);const o=typeof e=="function"?e(h({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Jo(a,h({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=W(o,f1);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props(h({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(h({ownerState:r},n,r)):c.style))}),l}return o}function b1(e={}){const{themeId:t,defaultTheme:r=g1,rootShouldForwardProp:n=bs,slotShouldForwardProp:o=bs}=e,a=i=>Cn(h({},i,{theme:No(h({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{Yp(i,_=>_.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=y1(h1(u))}=l,m=W(l,p1),g=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let b,O=bs;u==="Root"||u==="root"?O=n:u?O=o:v1(i)&&(O=void 0);const C=Pc(i,h({shouldForwardProp:O,label:b},m)),x=_=>typeof _=="function"&&_.__emotion_real!==_||Xt(_)?P=>Jo(_,h({},P,{theme:No({theme:P.theme,defaultTheme:r,themeId:t})})):_,y=(_,...P)=>{let w=x(_);const E=P?P.map(x):[];c&&p&&E.push(M=>{const T=No(h({},M,{defaultTheme:r,themeId:t}));if(!T.components||!T.components[c]||!T.components[c].styleOverrides)return null;const N=T.components[c].styleOverrides,j={};return Object.entries(N).forEach(([F,A])=>{j[F]=Jo(A,h({},M,{theme:T}))}),p(M,j)}),c&&!g&&E.push(M=>{var T;const N=No(h({},M,{defaultTheme:r,themeId:t})),j=N==null||(T=N.components)==null||(T=T[c])==null?void 0:T.variants;return Jo({variants:j},h({},M,{theme:N}))}),v||E.push(a);const R=E.length-P.length;if(Array.isArray(_)&&R>0){const M=new Array(R).fill("");w=[..._,...M],w.raw=[..._.raw,...M]}const $=C(w,...E);return i.muiName&&($.muiName=i.muiName),$};return C.withConfig&&(y.withConfig=C.withConfig),y}}const x1=b1();function io(e,t){const r=h({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=h({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=h({},a),Object.keys(o).forEach(i=>{r[n][i]=io(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function um(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:io(t.components[r].defaultProps,n)}function dm({props:e,name:t,defaultTheme:r,themeId:n}){let o=Ei(r);return n&&(o=o[n]||o),um({theme:o,name:t,props:e})}const Ct=typeof window<"u"?s.useLayoutEffect:s.useEffect;function O1(e,t,r,n,o){const[a,i]=s.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return Ct(()=>{let l=!0;if(!r)return;const c=r(e),u=()=>{l&&i(c.matches)};return u(),c.addListener(u),()=>{l=!1,c.removeListener(u)}},[e,r]),a}const fm=s.useSyncExternalStore;function C1(e,t,r,n,o){const a=s.useCallback(()=>t,[t]),i=s.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:d}=n(e);return()=>d}return a},[a,e,n,o,r]),[l,c]=s.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const d=r(e);return[()=>d.matches,f=>(d.addListener(f),()=>{d.removeListener(f)})]},[a,r,e]);return fm(c,l,i)}function dt(e,t={}){const r=Ic(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:l=!1}=um({name:"MuiUseMediaQuery",props:t,theme:r});let c=typeof e=="function"?e(r):e;return c=c.replace(/^@media( ?)/m,""),(fm!==void 0?C1:O1)(c,o,a,i,l)}function pm(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const _1=Object.freeze(Object.defineProperty({__proto__:null,default:pm},Symbol.toStringTag,{value:"Module"}));function mm(e,t=0,r=1){return pm(e,t,r)}function w1(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Mc(e){if(e.type)return e;if(e.charAt(0)==="#")return Mc(w1(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Qt(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Qt(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}function vm(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function so(e,t){return e=Mc(e),t=mm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,vm(e)}function P1(e,t){if(e=Mc(e),t=mm(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return vm(e)}function Hs(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Bi(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function E1(e,t){return()=>null}function Zo(e,t){var r,n;return s.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function tt(e){return e&&e.ownerDocument||document}function Ht(e){return tt(e).defaultView||window}function S1(e,t){return()=>null}function Ca(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Sd=0;function $1(e){const[t,r]=s.useState(e),n=e||t;return s.useEffect(()=>{t==null&&(Sd+=1,r(`mui-${Sd}`))},[t]),n}const $d=Bs.useId;function Oo(e){if($d!==void 0){const t=$d();return e??t}return $1(e)}function R1(e,t,r,n,o){return null}function lo({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=s.useRef(e!==void 0),[a,i]=s.useState(t),l=o?e:a,c=s.useCallback(u=>{o||i(u)},[]);return[l,c]}function Yt(e){const t=s.useRef(e);return Ct(()=>{t.current=e}),s.useRef((...r)=>(0,t.current)(...r)).current}function Me(...e){return s.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Ca(r,t)})},e)}const Rd={};function k1(e,t){const r=s.useRef(Rd);return r.current===Rd&&(r.current=e(t)),r}const I1=[];function T1(e){s.useEffect(e,I1)}class Co{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Co}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function qr(){const e=k1(Co.create).current;return T1(e.disposeEffect),e}let Di=!0,Us=!1;const j1=new Co,M1={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function A1(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&M1[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function N1(e){e.metaKey||e.altKey||e.ctrlKey||(Di=!0)}function xs(){Di=!1}function F1(){this.visibilityState==="hidden"&&Us&&(Di=!0)}function B1(e){e.addEventListener("keydown",N1,!0),e.addEventListener("mousedown",xs,!0),e.addEventListener("pointerdown",xs,!0),e.addEventListener("touchstart",xs,!0),e.addEventListener("visibilitychange",F1,!0)}function D1(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Di||A1(t)}function Ac(){const e=s.useCallback(o=>{o!=null&&B1(o.ownerDocument)},[]),t=s.useRef(!1);function r(){return t.current?(Us=!0,j1.start(100,()=>{Us=!1}),t.current=!1,!0):!1}function n(o){return D1(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function gm(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function oe(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const l=t(i);l!==""&&a.push(l),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}function _a(e){return typeof e=="string"}function Kr(e,t,r){return e===void 0||_a(e)?t:h({},t,{ownerState:h({},t.ownerState,r)})}function hm(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function kd(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function ym(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const m=B(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),g=h({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),v=h({},r,o,n);return m.length>0&&(v.className=m),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:void 0}}const i=hm(h({},o,n)),l=kd(n),c=kd(o),u=t(i),d=B(u==null?void 0:u.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),f=h({},u==null?void 0:u.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),p=h({},u,r,c,l);return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}function bm(e,t,r){return typeof e=="function"?e(t,r):e}const L1=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Sr(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=W(e,L1),l=a?{}:bm(n,o),{props:c,internalRef:u}=ym(h({},i,{externalSlotProps:l})),d=Me(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Kr(r,h({},c,{ref:d}),o)}const xm=s.createContext(null);function Om(){return s.useContext(xm)}const z1=typeof Symbol=="function"&&Symbol.for,W1=z1?Symbol.for("mui.nested"):"__THEME_NESTED__";function V1(e,t){return typeof t=="function"?t(e):h({},e,t)}function H1(e){const{children:t,theme:r}=e,n=Om(),o=s.useMemo(()=>{const a=n===null?r:V1(n,r);return a!=null&&(a[W1]=n!==null),a},[r,n]);return S.jsx(xm.Provider,{value:o,children:t})}const U1=["value"],Cm=s.createContext();function q1(e){let{value:t}=e,r=W(e,U1);return S.jsx(Cm.Provider,h({value:t??!0},r))}const _m=()=>{const e=s.useContext(Cm);return e??!1},wm=s.createContext(void 0);function K1({value:e,children:t}){return S.jsx(wm.Provider,{value:e,children:t})}function G1(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?io(o.defaultProps,n):!o.styleOverrides&&!o.variants?io(o,n):n}function X1({props:e,name:t}){const r=s.useContext(wm);return G1({props:e,name:t,theme:{components:r}})}const Id={};function Td(e,t,r,n=!1){return s.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const a=r(o),i=e?h({},t,{[e]:a}):a;return n?()=>i:i}return e?h({},t,{[e]:r}):h({},t,r)},[e,t,r,n])}function Y1(e){const{children:t,theme:r,themeId:n}=e,o=Ic(Id),a=Om()||Id,i=Td(n,o,r),l=Td(n,a,r,!0),c=i.direction==="rtl";return S.jsx(H1,{theme:l,children:S.jsx(ho.Provider,{value:i,children:S.jsx(q1,{value:c,children:S.jsx(K1,{value:i==null?void 0:i.components,children:t})})})})}const Q1=["component","direction","spacing","divider","children","className","useFlexGap"],J1=xo(),Z1=x1("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function ex(e){return dm({props:e,name:"MuiStack",defaultTheme:J1})}function tx(e,t){const r=s.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],nx=({ownerState:e,theme:t})=>{let r=h({display:"flex",flexDirection:"column"},jt({theme:t},ys({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=Rc(t),o=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),a=ys({values:e.direction,base:o}),i=ys({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,u,d)=>{if(!a[c]){const p=u>0?a[d[u-1]]:"column";a[c]=p}}),r=Qe(r,jt({theme:t},i,(c,u)=>e.useFlexGap?{gap:Er(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${rx(u?a[u]:e.direction)}`]:Er(n,c)}}))}return r=s0(t.breakpoints,r),r};function ox(e={}){const{createStyledComponent:t=Z1,useThemeProps:r=ex,componentName:n="MuiStack"}=e,o=()=>oe({root:["root"]},c=>ee(n,c),{}),a=t(nx);return s.forwardRef(function(c,u){const d=r(c),f=Si(d),{component:p="div",direction:m="column",spacing:g=0,divider:v,children:b,className:O,useFlexGap:C=!1}=f,x=W(f,Q1),y={direction:m,spacing:g,useFlexGap:C},_=o();return S.jsx(a,h({as:p,ownerState:y,ref:u,className:B(_.root,O)},x,{children:v?tx(b,v):b}))})}function ax(e,t){return h({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Be={},Pm={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Pm);var ve=Pm.exports;const ix=Zt(Xy),sx=Zt(_1);var Em=ve;Object.defineProperty(Be,"__esModule",{value:!0});var Se=Be.alpha=Tm;Be.blend=yx;Be.colorChannel=void 0;var Sm=Be.darken=Fc;Be.decomposeColor=_t;var IN=Be.emphasize=jm,lx=Be.getContrastRatio=px;Be.getLuminance=wa;Be.hexToRgb=Rm;Be.hslToRgb=Im;var $m=Be.lighten=Bc;Be.private_safeAlpha=mx;Be.private_safeColorChannel=void 0;Be.private_safeDarken=vx;Be.private_safeEmphasize=hx;Be.private_safeLighten=gx;Be.recomposeColor=_n;Be.rgbToHex=fx;var jd=Em(ix),cx=Em(sx);function Nc(e,t=0,r=1){return(0,cx.default)(e,t,r)}function Rm(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function ux(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function _t(e){if(e.type)return e;if(e.charAt(0)==="#")return _t(Rm(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,jd.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,jd.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const km=e=>{const t=_t(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};Be.colorChannel=km;const dx=(e,t)=>{try{return km(e)}catch{return e}};Be.private_safeColorChannel=dx;function _n(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function fx(e){if(e.indexOf("#")===0)return e;const{values:t}=_t(e);return`#${t.map((r,n)=>ux(n===3?Math.round(255*r):r)).join("")}`}function Im(e){e=_t(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(u,d=(u+r/30)%12)=>o-a*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),_n({type:l,values:c})}function wa(e){e=_t(e);let t=e.type==="hsl"||e.type==="hsla"?_t(Im(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function px(e,t){const r=wa(e),n=wa(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Tm(e,t){return e=_t(e),t=Nc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,_n(e)}function mx(e,t,r){try{return Tm(e,t)}catch{return e}}function Fc(e,t){if(e=_t(e),t=Nc(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return _n(e)}function vx(e,t,r){try{return Fc(e,t)}catch{return e}}function Bc(e,t){if(e=_t(e),t=Nc(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return _n(e)}function gx(e,t,r){try{return Bc(e,t)}catch{return e}}function jm(e,t=.15){return wa(e)>.5?Fc(e,t):Bc(e,t)}function hx(e,t,r){try{return jm(e,t)}catch{return e}}function yx(e,t,r,n=1){const o=(c,u)=>Math.round((c**(1/n)*(1-r)+u**(1/n)*r)**n),a=_t(e),i=_t(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return _n({type:"rgb",values:l})}const bx=["mode","contrastThreshold","tonalOffset"],Md={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ro.white,default:ro.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Os={text:{primary:ro.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ro.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Ad(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=$m(e.main,o):t==="dark"&&(e.dark=Sm(e.main,a)))}function xx(e="light"){return e==="dark"?{main:Nr[200],light:Nr[50],dark:Nr[400]}:{main:Nr[700],light:Nr[400],dark:Nr[800]}}function Ox(e="light"){return e==="dark"?{main:Ar[200],light:Ar[50],dark:Ar[400]}:{main:Ar[500],light:Ar[300],dark:Ar[700]}}function Cx(e="light"){return e==="dark"?{main:Mr[500],light:Mr[300],dark:Mr[700]}:{main:Mr[700],light:Mr[400],dark:Mr[800]}}function _x(e="light"){return e==="dark"?{main:Fr[400],light:Fr[300],dark:Fr[700]}:{main:Fr[700],light:Fr[500],dark:Fr[900]}}function wx(e="light"){return e==="dark"?{main:Br[400],light:Br[300],dark:Br[700]}:{main:Br[800],light:Br[500],dark:Br[900]}}function Px(e="light"){return e==="dark"?{main:In[400],light:In[300],dark:In[700]}:{main:"#ed6c02",light:In[500],dark:In[900]}}function Ex(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=W(e,bx),a=e.primary||xx(t),i=e.secondary||Ox(t),l=e.error||Cx(t),c=e.info||_x(t),u=e.success||wx(t),d=e.warning||Px(t);function f(v){return lx(v,Os.text.primary)>=r?Os.text.primary:Md.text.primary}const p=({color:v,name:b,mainShade:O=500,lightShade:C=300,darkShade:x=700})=>{if(v=h({},v),!v.main&&v[O]&&(v.main=v[O]),!v.hasOwnProperty("main"))throw new Error(Qt(11,b?` (${b})`:"",O));if(typeof v.main!="string")throw new Error(Qt(12,b?` (${b})`:"",JSON.stringify(v.main)));return Ad(v,"light",C,n),Ad(v,"dark",x,n),v.contrastText||(v.contrastText=f(v.main)),v},m={dark:Os,light:Md};return Qe(h({common:h({},ro),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:u,name:"success"}),grey:Gy,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},m[t]),o)}const Sx=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function $x(e){return Math.round(e*1e5)/1e5}const Nd={textTransform:"uppercase"},Fd='"Roboto", "Helvetica", "Arial", sans-serif';function Rx(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Fd,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:f}=r,p=W(r,Sx),m=o/14,g=f||(O=>`${O/u*m}rem`),v=(O,C,x,y,_)=>h({fontFamily:n,fontWeight:O,fontSize:g(C),lineHeight:x},n===Fd?{letterSpacing:`${$x(y/C)}em`}:{},_,d),b={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(l,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(l,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(l,14,1.75,.4,Nd),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,Nd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qe(h({htmlFontSize:u,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},b),p,{clone:!1})}const kx=.2,Ix=.14,Tx=.12;function ke(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${kx})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ix})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Tx})`].join(",")}const jx=["none",ke(0,2,1,-1,0,1,1,0,0,1,3,0),ke(0,3,1,-2,0,2,2,0,0,1,5,0),ke(0,3,3,-2,0,3,4,0,0,1,8,0),ke(0,2,4,-1,0,4,5,0,0,1,10,0),ke(0,3,5,-1,0,5,8,0,0,1,14,0),ke(0,3,5,-1,0,6,10,0,0,1,18,0),ke(0,4,5,-2,0,7,10,1,0,2,16,1),ke(0,5,5,-3,0,8,10,1,0,3,14,2),ke(0,5,6,-3,0,9,12,1,0,3,16,2),ke(0,6,6,-3,0,10,14,1,0,4,18,3),ke(0,6,7,-4,0,11,15,1,0,4,20,3),ke(0,7,8,-4,0,12,17,2,0,5,22,4),ke(0,7,8,-4,0,13,19,2,0,5,24,4),ke(0,7,9,-4,0,14,21,2,0,5,26,4),ke(0,8,9,-5,0,15,22,2,0,6,28,5),ke(0,8,10,-5,0,16,24,2,0,6,30,5),ke(0,8,11,-5,0,17,26,2,0,6,32,5),ke(0,9,11,-5,0,18,28,2,0,7,34,6),ke(0,9,12,-6,0,19,29,2,0,7,36,6),ke(0,10,13,-6,0,20,31,3,0,8,38,7),ke(0,10,13,-6,0,21,33,3,0,8,40,7),ke(0,10,14,-6,0,22,35,3,0,8,42,7),ke(0,11,14,-7,0,23,36,3,0,9,44,8),ke(0,11,15,-7,0,24,38,3,0,9,46,8)],Mx=["duration","easing","delay"],Ax={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Nx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Bd(e){return`${Math.round(e)}ms`}function Fx(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Bx(e){const t=h({},Ax,e.easing),r=h({},Nx,e.duration);return h({getAutoHeightDuration:Fx,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:c=0}=a;return W(a,Mx),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:Bd(i)} ${l} ${typeof c=="string"?c:Bd(c)}`).join(",")}},e,{easing:t,duration:r})}const Dx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Lx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function qs(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=W(e,Lx);if(e.vars)throw new Error(Qt(18));const l=Ex(n),c=xo(e);let u=Qe(c,{mixins:ax(c.breakpoints,r),palette:l,shadows:jx.slice(),typography:Rx(l,a),transitions:Bx(o),zIndex:h({},Dx)});return u=Qe(u,i),u=t.reduce((d,f)=>Qe(d,f),u),u.unstable_sxConfig=h({},bo,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return Cn({sx:f,theme:this})},u}const Li=qs();function kr(){const e=Ei(Li);return e[un]||e}function zx({props:e,name:t}){return dm({props:e,name:t,defaultTheme:Li,themeId:un})}var _o={},Cs={exports:{}},Dd;function Wx(){return Dd||(Dd=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.includes(a))continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Cs)),Cs.exports}const Mm=Zt(r0),Vx=Zt(n0),Hx=Zt(c0),Ux=Zt(u1),qx=Zt(Y0),Kx=Zt(r1);var wn=ve;Object.defineProperty(_o,"__esModule",{value:!0});var Gx=_o.default=sO;_o.shouldForwardProp=ea;_o.systemDefaultTheme=void 0;var yt=wn(Gp()),Ks=wn(Wx()),Ld=tO(Mm),Xx=Vx;wn(Hx);wn(Ux);var Yx=wn(qx),Qx=wn(Kx);const Jx=["ownerState"],Zx=["variants"],eO=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Am(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Am=function(n){return n?r:t})(e)}function tO(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Am(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function rO(e){return Object.keys(e).length===0}function nO(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ea(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const oO=_o.systemDefaultTheme=(0,Yx.default)(),aO=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Fo({defaultTheme:e,theme:t,themeId:r}){return rO(t)?e:t[r]||t}function iO(e){return e?(t,r)=>r[e]:null}function ta(e,t){let{ownerState:r}=t,n=(0,Ks.default)(t,Jx);const o=typeof e=="function"?e((0,yt.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>ta(a,(0,yt.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=(0,Ks.default)(o,Zx);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props((0,yt.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style((0,yt.default)({ownerState:r},n,r)):c.style))}),l}return o}function sO(e={}){const{themeId:t,defaultTheme:r=oO,rootShouldForwardProp:n=ea,slotShouldForwardProp:o=ea}=e,a=i=>(0,Qx.default)((0,yt.default)({},i,{theme:Fo((0,yt.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{(0,Ld.internal_processStyles)(i,_=>_.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=iO(aO(u))}=l,m=(0,Ks.default)(l,eO),g=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let b,O=ea;u==="Root"||u==="root"?O=n:u?O=o:nO(i)&&(O=void 0);const C=(0,Ld.default)(i,(0,yt.default)({shouldForwardProp:O,label:b},m)),x=_=>typeof _=="function"&&_.__emotion_real!==_||(0,Xx.isPlainObject)(_)?P=>ta(_,(0,yt.default)({},P,{theme:Fo({theme:P.theme,defaultTheme:r,themeId:t})})):_,y=(_,...P)=>{let w=x(_);const E=P?P.map(x):[];c&&p&&E.push(M=>{const T=Fo((0,yt.default)({},M,{defaultTheme:r,themeId:t}));if(!T.components||!T.components[c]||!T.components[c].styleOverrides)return null;const N=T.components[c].styleOverrides,j={};return Object.entries(N).forEach(([F,A])=>{j[F]=ta(A,(0,yt.default)({},M,{theme:T}))}),p(M,j)}),c&&!g&&E.push(M=>{var T;const N=Fo((0,yt.default)({},M,{defaultTheme:r,themeId:t})),j=N==null||(T=N.components)==null||(T=T[c])==null?void 0:T.variants;return ta({variants:j},(0,yt.default)({},M,{theme:N}))}),v||E.push(a);const R=E.length-P.length;if(Array.isArray(_)&&R>0){const M=new Array(R).fill("");w=[..._,...M],w.raw=[..._.raw,...M]}const $=C(w,...E);return i.muiName&&($.muiName=i.muiName),$};return C.withConfig&&(y.withConfig=C.withConfig),y}}function Nm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ot=e=>Nm(e)&&e!=="classes",I=Gx({themeId:un,defaultTheme:Li,rootShouldForwardProp:ot}),lO=["theme"];function cO(e){let{theme:t}=e,r=W(e,lO);const n=t[un];return S.jsx(Y1,h({},r,{themeId:n?un:void 0,theme:n||t}))}const zd=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function ie(e){return X1(e)}function uO(e){return ee("MuiSvgIcon",e)}te("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const dO=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],fO=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${z(t)}`,`fontSize${z(r)}`]};return oe(o,uO,n)},pO=I("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${z(r.color)}`],t[`fontSize${z(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,l,c,u,d,f,p,m,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),Gs=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,m=W(n,dO),g=s.isValidElement(o)&&o.type==="svg",v=h({},n,{color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:g}),b={};d||(b.viewBox=p);const O=fO(v);return S.jsxs(pO,h({as:l,className:B(O.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},b,m,g&&o.props,{ownerState:v,children:[g?o.props.children:o,f?S.jsx("title",{children:f}):null]}))});Gs.muiName="SvgIcon";function er(e,t){function r(n,o){return S.jsx(Gs,h({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=Gs.muiName,s.memo(s.forwardRef(r))}const mO={configure:e=>{om.configure(e)}},vO=Object.freeze(Object.defineProperty({__proto__:null,capitalize:z,createChainedFunction:Hs,createSvgIcon:er,debounce:Bi,deprecatedPropType:E1,isMuiElement:Zo,ownerDocument:tt,ownerWindow:Ht,requirePropFactory:S1,setRef:Ca,unstable_ClassNameGenerator:mO,unstable_useEnhancedEffect:Ct,unstable_useId:Oo,unsupportedProp:R1,useControlled:lo,useEventCallback:Yt,useForkRef:Me,useIsFocusVisible:Ac},Symbol.toStringTag,{value:"Module"}));var Ee={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dc=Symbol.for("react.element"),Lc=Symbol.for("react.portal"),zi=Symbol.for("react.fragment"),Wi=Symbol.for("react.strict_mode"),Vi=Symbol.for("react.profiler"),Hi=Symbol.for("react.provider"),Ui=Symbol.for("react.context"),gO=Symbol.for("react.server_context"),qi=Symbol.for("react.forward_ref"),Ki=Symbol.for("react.suspense"),Gi=Symbol.for("react.suspense_list"),Xi=Symbol.for("react.memo"),Yi=Symbol.for("react.lazy"),hO=Symbol.for("react.offscreen"),Fm;Fm=Symbol.for("react.module.reference");function $t(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Dc:switch(e=e.type,e){case zi:case Vi:case Wi:case Ki:case Gi:return e;default:switch(e=e&&e.$$typeof,e){case gO:case Ui:case qi:case Yi:case Xi:case Hi:return e;default:return t}}case Lc:return t}}}Ee.ContextConsumer=Ui;Ee.ContextProvider=Hi;Ee.Element=Dc;Ee.ForwardRef=qi;Ee.Fragment=zi;Ee.Lazy=Yi;Ee.Memo=Xi;Ee.Portal=Lc;Ee.Profiler=Vi;Ee.StrictMode=Wi;Ee.Suspense=Ki;Ee.SuspenseList=Gi;Ee.isAsyncMode=function(){return!1};Ee.isConcurrentMode=function(){return!1};Ee.isContextConsumer=function(e){return $t(e)===Ui};Ee.isContextProvider=function(e){return $t(e)===Hi};Ee.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Dc};Ee.isForwardRef=function(e){return $t(e)===qi};Ee.isFragment=function(e){return $t(e)===zi};Ee.isLazy=function(e){return $t(e)===Yi};Ee.isMemo=function(e){return $t(e)===Xi};Ee.isPortal=function(e){return $t(e)===Lc};Ee.isProfiler=function(e){return $t(e)===Vi};Ee.isStrictMode=function(e){return $t(e)===Wi};Ee.isSuspense=function(e){return $t(e)===Ki};Ee.isSuspenseList=function(e){return $t(e)===Gi};Ee.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===zi||e===Vi||e===Wi||e===Ki||e===Gi||e===hO||typeof e=="object"&&e!==null&&(e.$$typeof===Yi||e.$$typeof===Xi||e.$$typeof===Hi||e.$$typeof===Ui||e.$$typeof===qi||e.$$typeof===Fm||e.getModuleId!==void 0)};Ee.typeOf=$t;function Xs(e,t){return Xs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Xs(e,t)}function Bm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xs(e,t)}const Wd={disabled:!1},Pa=X.createContext(null);var yO=function(t){return t.scrollTop},zn="unmounted",mr="exited",vr="entering",Wr="entered",Ys="exiting",At=function(e){Bm(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=o,l=i&&!i.isMounting?n.enter:n.appear,c;return a.appearStatus=null,n.in?l?(c=mr,a.appearStatus=vr):c=Wr:n.unmountOnExit||n.mountOnEnter?c=zn:c=mr,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===zn?{status:mr}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==vr&&i!==Wr&&(a=vr):(i===vr||i===Wr)&&(a=Ys)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,l;return a=i=l=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:l}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===vr){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Mo.findDOMNode(this);i&&yO(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===mr&&this.setState({status:zn})},r.performEnter=function(o){var a=this,i=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[Mo.findDOMNode(this),l],u=c[0],d=c[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!o&&!i||Wd.disabled){this.safeSetState({status:Wr},function(){a.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:vr},function(){a.props.onEntering(u,d),a.onTransitionEnd(p,function(){a.safeSetState({status:Wr},function(){a.props.onEntered(u,d)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:Mo.findDOMNode(this);if(!a||Wd.disabled){this.safeSetState({status:mr},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Ys},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:mr},function(){o.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,a.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Mo.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===zn)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=W(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return X.createElement(Pa.Provider,{value:null},typeof i=="function"?i(o,l):X.cloneElement(X.Children.only(i),l))},t}(X.Component);At.contextType=Pa;At.propTypes={};function Dr(){}At.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Dr,onEntering:Dr,onEntered:Dr,onExit:Dr,onExiting:Dr,onExited:Dr};At.UNMOUNTED=zn;At.EXITED=mr;At.ENTERING=vr;At.ENTERED=Wr;At.EXITING=Ys;function bO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zc(e,t){var r=function(a){return t&&s.isValidElement(a)?t(a):a},n=Object.create(null);return e&&s.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function xO(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var i,l={};for(var c in t){if(n[c])for(i=0;ie.scrollTop;function fn(e,t){var r,n;const{timeout:o,easing:a,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof o=="number"?o:o[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function PO(e){return ee("MuiPaper",e)}te("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const EO=["className","component","elevation","square","variant"],SO=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return oe(a,PO,o)},$O=I("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return h({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&h({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Se("#fff",zd(t.elevation))}, ${Se("#fff",zd(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),Pn=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:l=!1,variant:c="elevation"}=n,u=W(n,EO),d=h({},n,{component:a,elevation:i,square:l,variant:c}),f=SO(d);return S.jsx($O,h({as:a,ownerState:d,className:B(f.root,o),ref:r},u))}),RO=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],kO=["component","slots","slotProps"],IO=["component"];function TO(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:l}=t,c=W(t,RO),{component:u,slots:d={[e]:void 0},slotProps:f={[e]:void 0}}=a;W(a,kO);const p=d[e]||n,m=bm(f[e],o),g=ym(h({className:r},c,{externalForwardedProps:void 0,externalSlotProps:m})),{props:{component:v},internalRef:b}=g,O=W(g.props,IO),C=Me(b,m==null?void 0:m.ref,t.ref),x=i?i(O):{},y=h({},o,x),_=v,P=Kr(p,h({},e==="root",!d[e]&&l,O,_&&{as:_},{ref:C}),y);return Object.keys(x).forEach(w=>{delete P[w]}),[p,P]}function jO(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:c,timeout:u}=e,[d,f]=s.useState(!1),p=B(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},g=B(r.child,d&&r.childLeaving,n&&r.childPulsate);return!l&&!d&&f(!0),s.useEffect(()=>{if(!l&&c!=null){const v=setTimeout(c,u);return()=>{clearTimeout(v)}}},[c,l,u]),S.jsx("span",{className:p,style:m,children:S.jsx("span",{className:g})})}const bt=te("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),MO=["center","classes","className"];let Qi=e=>e,Vd,Hd,Ud,qd;const Qs=550,AO=80,NO=On(Vd||(Vd=Qi` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),FO=On(Hd||(Hd=Qi` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),BO=On(Ud||(Ud=Qi` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),DO=I("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),LO=I(jO,{name:"MuiTouchRipple",slot:"Ripple"})(qd||(qd=Qi` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),bt.rippleVisible,NO,Qs,({theme:e})=>e.transitions.easing.easeInOut,bt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,bt.child,bt.childLeaving,FO,Qs,({theme:e})=>e.transitions.easing.easeInOut,bt.childPulsate,BO,({theme:e})=>e.transitions.easing.easeInOut),zO=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=n,l=W(n,MO),[c,u]=s.useState([]),d=s.useRef(0),f=s.useRef(null);s.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const p=s.useRef(!1),m=qr(),g=s.useRef(null),v=s.useRef(null),b=s.useCallback(y=>{const{pulsate:_,rippleX:P,rippleY:w,rippleSize:E,cb:R}=y;u($=>[...$,S.jsx(LO,{classes:{ripple:B(a.ripple,bt.ripple),rippleVisible:B(a.rippleVisible,bt.rippleVisible),ripplePulsate:B(a.ripplePulsate,bt.ripplePulsate),child:B(a.child,bt.child),childLeaving:B(a.childLeaving,bt.childLeaving),childPulsate:B(a.childPulsate,bt.childPulsate)},timeout:Qs,pulsate:_,rippleX:P,rippleY:w,rippleSize:E},d.current)]),d.current+=1,f.current=R},[a]),O=s.useCallback((y={},_={},P=()=>{})=>{const{pulsate:w=!1,center:E=o||_.pulsate,fakeElement:R=!1}=_;if((y==null?void 0:y.type)==="mousedown"&&p.current){p.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(p.current=!0);const $=R?null:v.current,M=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let T,N,j;if(E||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)T=Math.round(M.width/2),N=Math.round(M.height/2);else{const{clientX:F,clientY:A}=y.touches&&y.touches.length>0?y.touches[0]:y;T=Math.round(F-M.left),N=Math.round(A-M.top)}if(E)j=Math.sqrt((2*M.width**2+M.height**2)/3),j%2===0&&(j+=1);else{const F=Math.max(Math.abs(($?$.clientWidth:0)-T),T)*2+2,A=Math.max(Math.abs(($?$.clientHeight:0)-N),N)*2+2;j=Math.sqrt(F**2+A**2)}y!=null&&y.touches?g.current===null&&(g.current=()=>{b({pulsate:w,rippleX:T,rippleY:N,rippleSize:j,cb:P})},m.start(AO,()=>{g.current&&(g.current(),g.current=null)})):b({pulsate:w,rippleX:T,rippleY:N,rippleSize:j,cb:P})},[o,b,m]),C=s.useCallback(()=>{O({},{pulsate:!0})},[O]),x=s.useCallback((y,_)=>{if(m.clear(),(y==null?void 0:y.type)==="touchend"&&g.current){g.current(),g.current=null,m.start(0,()=>{x(y,_)});return}g.current=null,u(P=>P.length>0?P.slice(1):P),f.current=_},[m]);return s.useImperativeHandle(r,()=>({pulsate:C,start:O,stop:x}),[C,O,x]),S.jsx(DO,h({className:B(bt.root,a.root,i),ref:v},l,{children:S.jsx(Wc,{component:null,exit:!0,children:c})}))});function WO(e){return ee("MuiButtonBase",e)}const VO=te("MuiButtonBase",["root","disabled","focusVisible"]),HO=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],UO=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=oe({root:["root",t&&"disabled",r&&"focusVisible"]},WO,o);return r&&n&&(i.root+=` ${n}`),i},qO=I("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${VO.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),pn=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:g,onClick:v,onContextMenu:b,onDragLeave:O,onFocus:C,onFocusVisible:x,onKeyDown:y,onKeyUp:_,onMouseDown:P,onMouseLeave:w,onMouseUp:E,onTouchEnd:R,onTouchMove:$,onTouchStart:M,tabIndex:T=0,TouchRippleProps:N,touchRippleRef:j,type:F}=n,A=W(n,HO),D=s.useRef(null),k=s.useRef(null),L=Me(k,j),{isFocusVisibleRef:Y,onFocus:Q,onBlur:H,ref:re}=Ac(),[K,V]=s.useState(!1);u&&K&&V(!1),s.useImperativeHandle(o,()=>({focusVisible:()=>{V(!0),D.current.focus()}}),[]);const[J,fe]=s.useState(!1);s.useEffect(()=>{fe(!0)},[]);const ae=J&&!d&&!u;s.useEffect(()=>{K&&p&&!d&&J&&k.current.pulsate()},[d,p,K,J]);function le(G,ze,qt=f){return Yt(Rt=>(ze&&ze(Rt),!qt&&k.current&&k.current[G](Rt),!0))}const $e=le("start",P),Z=le("stop",b),ge=le("stop",O),ne=le("stop",E),pe=le("stop",G=>{K&&G.preventDefault(),w&&w(G)}),de=le("start",M),at=le("stop",R),qe=le("stop",$),De=le("stop",G=>{H(G),Y.current===!1&&V(!1),g&&g(G)},!1),Je=Yt(G=>{D.current||(D.current=G.currentTarget),Q(G),Y.current===!0&&(V(!0),x&&x(G)),C&&C(G)}),Re=()=>{const G=D.current;return c&&c!=="button"&&!(G.tagName==="A"&&G.href)},Oe=s.useRef(!1),Ke=Yt(G=>{p&&!Oe.current&&K&&k.current&&G.key===" "&&(Oe.current=!0,k.current.stop(G,()=>{k.current.start(G)})),G.target===G.currentTarget&&Re()&&G.key===" "&&G.preventDefault(),y&&y(G),G.target===G.currentTarget&&Re()&&G.key==="Enter"&&!u&&(G.preventDefault(),v&&v(G))}),Ae=Yt(G=>{p&&G.key===" "&&k.current&&K&&!G.defaultPrevented&&(Oe.current=!1,k.current.stop(G,()=>{k.current.pulsate(G)})),_&&_(G),v&&G.target===G.currentTarget&&Re()&&G.key===" "&&!G.defaultPrevented&&v(G)});let he=c;he==="button"&&(A.href||A.to)&&(he=m);const Ge={};he==="button"?(Ge.type=F===void 0?"button":F,Ge.disabled=u):(!A.href&&!A.to&&(Ge.role="button"),u&&(Ge["aria-disabled"]=u));const Ze=Me(r,re,D),rt=h({},n,{centerRipple:a,component:c,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:T,focusVisible:K}),ye=UO(rt);return S.jsxs(qO,h({as:he,className:B(ye.root,l),ownerState:rt,onBlur:De,onClick:v,onContextMenu:Z,onFocus:Je,onKeyDown:Ke,onKeyUp:Ae,onMouseDown:$e,onMouseLeave:pe,onMouseUp:ne,onDragLeave:ge,onTouchEnd:at,onTouchMove:qe,onTouchStart:de,ref:Ze,tabIndex:u?-1:T,type:F},Ge,A,{children:[i,ae?S.jsx(zO,h({ref:L,center:a},N)):null]}))});function KO(e){return ee("MuiIconButton",e)}const GO=te("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),XO=["edge","children","className","color","disabled","disableFocusRipple","size"],YO=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${z(n)}`,o&&`edge${z(o)}`,`size${z(a)}`]};return oe(i,KO,t)},QO=I(pn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${z(r.color)}`],r.edge&&t[`edge${z(r.edge)}`],t[`size${z(r.size)}`]]}})(({theme:e,ownerState:t})=>h({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return h({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&h({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":h({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${GO.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),nt=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium"}=n,f=W(n,XO),p=h({},n,{edge:o,color:l,disabled:c,disableFocusRipple:u,size:d}),m=YO(p);return S.jsx(QO,h({className:B(m.root,i),centerRipple:!0,focusRipple:!u,disabled:c,ref:r},f,{ownerState:p,children:a}))});function JO(e){return ee("MuiTypography",e)}te("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ZO=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],eC=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e,l={root:["root",a,e.align!=="inherit"&&`align${z(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return oe(l,JO,i)},tC=I("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${z(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>h({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Kd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},rC={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},nC=e=>rC[e]||e,Ve=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiTypography"}),o=nC(n.color),a=Si(h({},n,{color:o})),{align:i="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:m=Kd}=a,g=W(a,ZO),v=h({},a,{align:i,color:o,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:p,variantMapping:m}),b=c||(f?"p":m[p]||Kd[p])||"span",O=eC(v);return S.jsx(tC,h({as:b,ref:r,ownerState:v,className:B(O.root,l)},g))});function oC(e){return ee("MuiAppBar",e)}te("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const aC=["className","color","enableColorOnDark","position"],iC=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${z(t)}`,`position${z(r)}`]};return oe(o,oC,n)},Bo=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,sC=I(Pn,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${z(r.position)}`],t[`color${z(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return h({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&h({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&h({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&h({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Bo(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Bo(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Bo(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Bo(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),lC=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:l="fixed"}=n,c=W(n,aC),u=h({},n,{color:a,position:l,enableColorOnDark:i}),d=iC(u);return S.jsx(sC,h({square:!0,component:"header",ownerState:u,elevation:4,className:B(d.root,o,l==="fixed"&&"mui-fixed"),ref:r},c))});var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});var Dm=Hc.default=void 0,cC=dC(s),uC=Mm;function Lm(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Lm=function(n){return n?r:t})(e)}function dC(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Lm(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function fC(e){return Object.keys(e).length===0}function pC(e=null){const t=cC.useContext(uC.ThemeContext);return!t||fC(t)?e:t}Dm=Hc.default=pC;var st="top",wt="bottom",Pt="right",lt="left",Uc="auto",wo=[st,wt,Pt,lt],mn="start",co="end",mC="clippingParents",zm="viewport",jn="popper",vC="reference",Gd=wo.reduce(function(e,t){return e.concat([t+"-"+mn,t+"-"+co])},[]),Wm=[].concat(wo,[Uc]).reduce(function(e,t){return e.concat([t,t+"-"+mn,t+"-"+co])},[]),gC="beforeRead",hC="read",yC="afterRead",bC="beforeMain",xC="main",OC="afterMain",CC="beforeWrite",_C="write",wC="afterWrite",PC=[gC,hC,yC,bC,xC,OC,CC,_C,wC];function Ut(e){return e?(e.nodeName||"").toLowerCase():null}function gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $r(e){var t=gt(e).Element;return e instanceof t||e instanceof Element}function Ot(e){var t=gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function qc(e){if(typeof ShadowRoot>"u")return!1;var t=gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function EC(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!Ot(a)||!Ut(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var l=o[i];l===!1?a.removeAttribute(i):a.setAttribute(i,l===!0?"":l)}))})}function SC(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=i.reduce(function(c,u){return c[u]="",c},{});!Ot(o)||!Ut(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const $C={name:"applyStyles",enabled:!0,phase:"write",fn:EC,effect:SC,requires:["computeStyles"]};function Vt(e){return e.split("-")[0]}var Cr=Math.max,Ea=Math.min,vn=Math.round;function Js(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Vm(){return!/^((?!chrome|android).)*safari/i.test(Js())}function gn(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&Ot(e)&&(o=e.offsetWidth>0&&vn(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&vn(n.height)/e.offsetHeight||1);var i=$r(e)?gt(e):window,l=i.visualViewport,c=!Vm()&&r,u=(n.left+(c&&l?l.offsetLeft:0))/o,d=(n.top+(c&&l?l.offsetTop:0))/a,f=n.width/o,p=n.height/a;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Kc(e){var t=gn(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Hm(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&qc(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Jt(e){return gt(e).getComputedStyle(e)}function RC(e){return["table","td","th"].indexOf(Ut(e))>=0}function dr(e){return(($r(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ji(e){return Ut(e)==="html"?e:e.assignedSlot||e.parentNode||(qc(e)?e.host:null)||dr(e)}function Xd(e){return!Ot(e)||Jt(e).position==="fixed"?null:e.offsetParent}function kC(e){var t=/firefox/i.test(Js()),r=/Trident/i.test(Js());if(r&&Ot(e)){var n=Jt(e);if(n.position==="fixed")return null}var o=Ji(e);for(qc(o)&&(o=o.host);Ot(o)&&["html","body"].indexOf(Ut(o))<0;){var a=Jt(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Po(e){for(var t=gt(e),r=Xd(e);r&&RC(r)&&Jt(r).position==="static";)r=Xd(r);return r&&(Ut(r)==="html"||Ut(r)==="body"&&Jt(r).position==="static")?t:r||kC(e)||t}function Gc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hn(e,t,r){return Cr(e,Ea(t,r))}function IC(e,t,r){var n=Hn(e,t,r);return n>r?r:n}function Um(){return{top:0,right:0,bottom:0,left:0}}function qm(e){return Object.assign({},Um(),e)}function Km(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var TC=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,qm(typeof t!="number"?t:Km(t,wo))};function jC(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,l=Vt(r.placement),c=Gc(l),u=[lt,Pt].indexOf(l)>=0,d=u?"height":"width";if(!(!a||!i)){var f=TC(o.padding,r),p=Kc(a),m=c==="y"?st:lt,g=c==="y"?wt:Pt,v=r.rects.reference[d]+r.rects.reference[c]-i[c]-r.rects.popper[d],b=i[c]-r.rects.reference[c],O=Po(a),C=O?c==="y"?O.clientHeight||0:O.clientWidth||0:0,x=v/2-b/2,y=f[m],_=C-p[d]-f[g],P=C/2-p[d]/2+x,w=Hn(y,P,_),E=c;r.modifiersData[n]=(t={},t[E]=w,t.centerOffset=w-P,t)}}function MC(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Hm(t.elements.popper,o)&&(t.elements.arrow=o))}const AC={name:"arrow",enabled:!0,phase:"main",fn:jC,effect:MC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hn(e){return e.split("-")[1]}var NC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function FC(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:vn(r*o)/o||0,y:vn(n*o)/o||0}}function Yd(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=i.x,m=p===void 0?0:p,g=i.y,v=g===void 0?0:g,b=typeof d=="function"?d({x:m,y:v}):{x:m,y:v};m=b.x,v=b.y;var O=i.hasOwnProperty("x"),C=i.hasOwnProperty("y"),x=lt,y=st,_=window;if(u){var P=Po(r),w="clientHeight",E="clientWidth";if(P===gt(r)&&(P=dr(r),Jt(P).position!=="static"&&l==="absolute"&&(w="scrollHeight",E="scrollWidth")),P=P,o===st||(o===lt||o===Pt)&&a===co){y=wt;var R=f&&P===_&&_.visualViewport?_.visualViewport.height:P[w];v-=R-n.height,v*=c?1:-1}if(o===lt||(o===st||o===wt)&&a===co){x=Pt;var $=f&&P===_&&_.visualViewport?_.visualViewport.width:P[E];m-=$-n.width,m*=c?1:-1}}var M=Object.assign({position:l},u&&NC),T=d===!0?FC({x:m,y:v},gt(r)):{x:m,y:v};if(m=T.x,v=T.y,c){var N;return Object.assign({},M,(N={},N[y]=C?"0":"",N[x]=O?"0":"",N.transform=(_.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",N))}return Object.assign({},M,(t={},t[y]=C?v+"px":"",t[x]=O?m+"px":"",t.transform="",t))}function BC(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,l=r.roundOffsets,c=l===void 0?!0:l,u={placement:Vt(t.placement),variation:hn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Yd(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Yd(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const DC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:BC,data:{}};var Do={passive:!0};function LC(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,l=i===void 0?!0:i,c=gt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(d){d.addEventListener("scroll",r.update,Do)}),l&&c.addEventListener("resize",r.update,Do),function(){a&&u.forEach(function(d){d.removeEventListener("scroll",r.update,Do)}),l&&c.removeEventListener("resize",r.update,Do)}}const zC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:LC,data:{}};var WC={left:"right",right:"left",bottom:"top",top:"bottom"};function ra(e){return e.replace(/left|right|bottom|top/g,function(t){return WC[t]})}var VC={start:"end",end:"start"};function Qd(e){return e.replace(/start|end/g,function(t){return VC[t]})}function Xc(e){var t=gt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Yc(e){return gn(dr(e)).left+Xc(e).scrollLeft}function HC(e,t){var r=gt(e),n=dr(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,l=0,c=0;if(o){a=o.width,i=o.height;var u=Vm();(u||!u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:l+Yc(e),y:c}}function UC(e){var t,r=dr(e),n=Xc(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Cr(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Cr(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+Yc(e),c=-n.scrollTop;return Jt(o||r).direction==="rtl"&&(l+=Cr(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:c}}function Qc(e){var t=Jt(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Gm(e){return["html","body","#document"].indexOf(Ut(e))>=0?e.ownerDocument.body:Ot(e)&&Qc(e)?e:Gm(Ji(e))}function Un(e,t){var r;t===void 0&&(t=[]);var n=Gm(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=gt(n),i=o?[a].concat(a.visualViewport||[],Qc(n)?n:[]):n,l=t.concat(i);return o?l:l.concat(Un(Ji(i)))}function Zs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qC(e,t){var r=gn(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Jd(e,t,r){return t===zm?Zs(HC(e,r)):$r(t)?qC(t,r):Zs(UC(dr(e)))}function KC(e){var t=Un(Ji(e)),r=["absolute","fixed"].indexOf(Jt(e).position)>=0,n=r&&Ot(e)?Po(e):e;return $r(n)?t.filter(function(o){return $r(o)&&Hm(o,n)&&Ut(o)!=="body"}):[]}function GC(e,t,r,n){var o=t==="clippingParents"?KC(e):[].concat(t),a=[].concat(o,[r]),i=a[0],l=a.reduce(function(c,u){var d=Jd(e,u,n);return c.top=Cr(d.top,c.top),c.right=Ea(d.right,c.right),c.bottom=Ea(d.bottom,c.bottom),c.left=Cr(d.left,c.left),c},Jd(e,i,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Xm(e){var t=e.reference,r=e.element,n=e.placement,o=n?Vt(n):null,a=n?hn(n):null,i=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,c;switch(o){case st:c={x:i,y:t.y-r.height};break;case wt:c={x:i,y:t.y+t.height};break;case Pt:c={x:t.x+t.width,y:l};break;case lt:c={x:t.x-r.width,y:l};break;default:c={x:t.x,y:t.y}}var u=o?Gc(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(a){case mn:c[u]=c[u]-(t[d]/2-r[d]/2);break;case co:c[u]=c[u]+(t[d]/2-r[d]/2);break}}return c}function uo(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,i=a===void 0?e.strategy:a,l=r.boundary,c=l===void 0?mC:l,u=r.rootBoundary,d=u===void 0?zm:u,f=r.elementContext,p=f===void 0?jn:f,m=r.altBoundary,g=m===void 0?!1:m,v=r.padding,b=v===void 0?0:v,O=qm(typeof b!="number"?b:Km(b,wo)),C=p===jn?vC:jn,x=e.rects.popper,y=e.elements[g?C:p],_=GC($r(y)?y:y.contextElement||dr(e.elements.popper),c,d,i),P=gn(e.elements.reference),w=Xm({reference:P,element:x,strategy:"absolute",placement:o}),E=Zs(Object.assign({},x,w)),R=p===jn?E:P,$={top:_.top-R.top+O.top,bottom:R.bottom-_.bottom+O.bottom,left:_.left-R.left+O.left,right:R.right-_.right+O.right},M=e.modifiersData.offset;if(p===jn&&M){var T=M[o];Object.keys($).forEach(function(N){var j=[Pt,wt].indexOf(N)>=0?1:-1,F=[st,wt].indexOf(N)>=0?"y":"x";$[N]+=T[F]*j})}return $}function XC(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,l=r.flipVariations,c=r.allowedAutoPlacements,u=c===void 0?Wm:c,d=hn(n),f=d?l?Gd:Gd.filter(function(g){return hn(g)===d}):wo,p=f.filter(function(g){return u.indexOf(g)>=0});p.length===0&&(p=f);var m=p.reduce(function(g,v){return g[v]=uo(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[Vt(v)],g},{});return Object.keys(m).sort(function(g,v){return m[g]-m[v]})}function YC(e){if(Vt(e)===Uc)return[];var t=ra(e);return[Qd(e),t,Qd(t)]}function QC(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,l=i===void 0?!0:i,c=r.fallbackPlacements,u=r.padding,d=r.boundary,f=r.rootBoundary,p=r.altBoundary,m=r.flipVariations,g=m===void 0?!0:m,v=r.allowedAutoPlacements,b=t.options.placement,O=Vt(b),C=O===b,x=c||(C||!g?[ra(b)]:YC(b)),y=[b].concat(x).reduce(function(K,V){return K.concat(Vt(V)===Uc?XC(t,{placement:V,boundary:d,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:v}):V)},[]),_=t.rects.reference,P=t.rects.popper,w=new Map,E=!0,R=y[0],$=0;$=0,F=j?"width":"height",A=uo(t,{placement:M,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),D=j?N?Pt:lt:N?wt:st;_[F]>P[F]&&(D=ra(D));var k=ra(D),L=[];if(a&&L.push(A[T]<=0),l&&L.push(A[D]<=0,A[k]<=0),L.every(function(K){return K})){R=M,E=!1;break}w.set(M,L)}if(E)for(var Y=g?3:1,Q=function(V){var J=y.find(function(fe){var ae=w.get(fe);if(ae)return ae.slice(0,V).every(function(le){return le})});if(J)return R=J,"break"},H=Y;H>0;H--){var re=Q(H);if(re==="break")break}t.placement!==R&&(t.modifiersData[n]._skip=!0,t.placement=R,t.reset=!0)}}const JC={name:"flip",enabled:!0,phase:"main",fn:QC,requiresIfExists:["offset"],data:{_skip:!1}};function Zd(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ef(e){return[st,Pt,wt,lt].some(function(t){return e[t]>=0})}function ZC(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=uo(t,{elementContext:"reference"}),l=uo(t,{altBoundary:!0}),c=Zd(i,n),u=Zd(l,o,a),d=ef(c),f=ef(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const e_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ZC};function t_(e,t,r){var n=Vt(e),o=[lt,st].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[lt,Pt].indexOf(n)>=0?{x:l,y:i}:{x:i,y:l}}function r_(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=Wm.reduce(function(d,f){return d[f]=t_(f,t.rects,a),d},{}),l=i[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=i}const n_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:r_};function o_(e){var t=e.state,r=e.name;t.modifiersData[r]=Xm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const a_={name:"popperOffsets",enabled:!0,phase:"read",fn:o_,data:{}};function i_(e){return e==="x"?"y":"x"}function s_(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,l=i===void 0?!1:i,c=r.boundary,u=r.rootBoundary,d=r.altBoundary,f=r.padding,p=r.tether,m=p===void 0?!0:p,g=r.tetherOffset,v=g===void 0?0:g,b=uo(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),O=Vt(t.placement),C=hn(t.placement),x=!C,y=Gc(O),_=i_(y),P=t.modifiersData.popperOffsets,w=t.rects.reference,E=t.rects.popper,R=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,$=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(P){if(a){var N,j=y==="y"?st:lt,F=y==="y"?wt:Pt,A=y==="y"?"height":"width",D=P[y],k=D+b[j],L=D-b[F],Y=m?-E[A]/2:0,Q=C===mn?w[A]:E[A],H=C===mn?-E[A]:-w[A],re=t.elements.arrow,K=m&&re?Kc(re):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Um(),J=V[j],fe=V[F],ae=Hn(0,w[A],K[A]),le=x?w[A]/2-Y-ae-J-$.mainAxis:Q-ae-J-$.mainAxis,$e=x?-w[A]/2+Y+ae+fe+$.mainAxis:H+ae+fe+$.mainAxis,Z=t.elements.arrow&&Po(t.elements.arrow),ge=Z?y==="y"?Z.clientTop||0:Z.clientLeft||0:0,ne=(N=M==null?void 0:M[y])!=null?N:0,pe=D+le-ne-ge,de=D+$e-ne,at=Hn(m?Ea(k,pe):k,D,m?Cr(L,de):L);P[y]=at,T[y]=at-D}if(l){var qe,De=y==="x"?st:lt,Je=y==="x"?wt:Pt,Re=P[_],Oe=_==="y"?"height":"width",Ke=Re+b[De],Ae=Re-b[Je],he=[st,lt].indexOf(O)!==-1,Ge=(qe=M==null?void 0:M[_])!=null?qe:0,Ze=he?Ke:Re-w[Oe]-E[Oe]-Ge+$.altAxis,rt=he?Re+w[Oe]+E[Oe]-Ge-$.altAxis:Ae,ye=m&&he?IC(Ze,Re,rt):Hn(m?Ze:Ke,Re,m?rt:Ae);P[_]=ye,T[_]=ye-Re}t.modifiersData[n]=T}}const l_={name:"preventOverflow",enabled:!0,phase:"main",fn:s_,requiresIfExists:["offset"]};function c_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function u_(e){return e===gt(e)||!Ot(e)?Xc(e):c_(e)}function d_(e){var t=e.getBoundingClientRect(),r=vn(t.width)/e.offsetWidth||1,n=vn(t.height)/e.offsetHeight||1;return r!==1||n!==1}function f_(e,t,r){r===void 0&&(r=!1);var n=Ot(t),o=Ot(t)&&d_(t),a=dr(t),i=gn(e,o,r),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((Ut(t)!=="body"||Qc(a))&&(l=u_(t)),Ot(t)?(c=gn(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Yc(a))),{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function p_(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(l){if(!r.has(l)){var c=t.get(l);c&&o(c)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function m_(e){var t=p_(e);return PC.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function v_(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function g_(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var tf={placement:"bottom",modifiers:[],strategy:"absolute"};function rf(){for(var e=arguments.length,t=new Array(e),r=0;r{a||l(x_(o)||document.body)},[o,a]),Ct(()=>{if(i&&!a)return Ca(r,i),()=>{Ca(r,null)}},[r,i,a]),a){if(s.isValidElement(n)){const u={ref:c};return s.cloneElement(n,u)}return S.jsx(s.Fragment,{children:n})}return S.jsx(s.Fragment,{children:i&&op.createPortal(n,i)})});function O_(e){return ee("MuiPopper",e)}te("MuiPopper",["root"]);const C_=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],__=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function w_(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function el(e){return typeof e=="function"?e():e}function P_(e){return e.nodeType!==void 0}const E_=e=>{const{classes:t}=e;return oe({root:["root"]},O_,t)},S_={},$_=s.forwardRef(function(t,r){var n;const{anchorEl:o,children:a,direction:i,disablePortal:l,modifiers:c,open:u,placement:d,popperOptions:f,popperRef:p,slotProps:m={},slots:g={},TransitionProps:v}=t,b=W(t,C_),O=s.useRef(null),C=Me(O,r),x=s.useRef(null),y=Me(x,p),_=s.useRef(y);Ct(()=>{_.current=y},[y]),s.useImperativeHandle(p,()=>x.current,[]);const P=w_(d,i),[w,E]=s.useState(P),[R,$]=s.useState(el(o));s.useEffect(()=>{x.current&&x.current.forceUpdate()}),s.useEffect(()=>{o&&$(el(o))},[o]),Ct(()=>{if(!R||!u)return;const F=k=>{E(k.placement)};let A=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:k})=>{F(k)}}];c!=null&&(A=A.concat(c)),f&&f.modifiers!=null&&(A=A.concat(f.modifiers));const D=b_(R,O.current,h({placement:P},f,{modifiers:A}));return _.current(D),()=>{D.destroy(),_.current(null)}},[R,l,c,u,f,P]);const M={placement:w};v!==null&&(M.TransitionProps=v);const T=E_(t),N=(n=g.root)!=null?n:"div",j=Sr({elementType:N,externalSlotProps:m.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:T.root});return S.jsx(N,h({},j,{children:typeof a=="function"?a(M):a}))}),R_=s.forwardRef(function(t,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:p=S_,popperRef:m,style:g,transition:v=!1,slotProps:b={},slots:O={}}=t,C=W(t,__),[x,y]=s.useState(!0),_=()=>{y(!1)},P=()=>{y(!0)};if(!c&&!d&&(!v||x))return null;let w;if(a)w=a;else if(n){const $=el(n);w=$&&P_($)?tt($).body:tt(null).body}const E=!d&&c&&(!v||x)?"none":void 0,R=v?{in:d,onEnter:_,onExited:P}:void 0;return S.jsx(Ym,{disablePortal:l,container:w,children:S.jsx($_,h({anchorEl:n,direction:i,disablePortal:l,modifiers:u,ref:r,open:v?!x:d,placement:f,popperOptions:p,popperRef:m,slotProps:b,slots:O},C,{style:h({position:"fixed",top:0,left:0,display:E},g),TransitionProps:R,children:o}))})}),k_=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],I_=I(R_,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Qm=s.forwardRef(function(t,r){var n;const o=Dm(),a=ie({props:t,name:"MuiPopper"}),{anchorEl:i,component:l,components:c,componentsProps:u,container:d,disablePortal:f,keepMounted:p,modifiers:m,open:g,placement:v,popperOptions:b,popperRef:O,transition:C,slots:x,slotProps:y}=a,_=W(a,k_),P=(n=x==null?void 0:x.root)!=null?n:c==null?void 0:c.Root,w=h({anchorEl:i,container:d,disablePortal:f,keepMounted:p,modifiers:m,open:g,placement:v,popperOptions:b,popperRef:O,transition:C},_);return S.jsx(I_,h({as:l,direction:o==null?void 0:o.direction,slots:{root:P},slotProps:y??u},w,{ref:r}))}),T_=er(S.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function j_(e){return ee("MuiChip",e)}const me=te("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),M_=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],A_=e=>{const{classes:t,disabled:r,size:n,color:o,iconColor:a,onDelete:i,clickable:l,variant:c}=e,u={root:["root",c,r&&"disabled",`size${z(n)}`,`color${z(o)}`,l&&"clickable",l&&`clickableColor${z(o)}`,i&&"deletable",i&&`deletableColor${z(o)}`,`${c}${z(o)}`],label:["label",`label${z(n)}`],avatar:["avatar",`avatar${z(n)}`,`avatarColor${z(o)}`],icon:["icon",`icon${z(n)}`,`iconColor${z(a)}`],deleteIcon:["deleteIcon",`deleteIcon${z(n)}`,`deleteIconColor${z(o)}`,`deleteIcon${z(c)}Color${z(o)}`]};return oe(u,j_,t)},N_=I("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:o,clickable:a,onDelete:i,size:l,variant:c}=r;return[{[`& .${me.avatar}`]:t.avatar},{[`& .${me.avatar}`]:t[`avatar${z(l)}`]},{[`& .${me.avatar}`]:t[`avatarColor${z(n)}`]},{[`& .${me.icon}`]:t.icon},{[`& .${me.icon}`]:t[`icon${z(l)}`]},{[`& .${me.icon}`]:t[`iconColor${z(o)}`]},{[`& .${me.deleteIcon}`]:t.deleteIcon},{[`& .${me.deleteIcon}`]:t[`deleteIcon${z(l)}`]},{[`& .${me.deleteIcon}`]:t[`deleteIconColor${z(n)}`]},{[`& .${me.deleteIcon}`]:t[`deleteIcon${z(c)}Color${z(n)}`]},t.root,t[`size${z(l)}`],t[`color${z(n)}`],a&&t.clickable,a&&n!=="default"&&t[`clickableColor${z(n)})`],i&&t.deletable,i&&n!=="default"&&t[`deletableColor${z(n)}`],t[c],t[`${c}${z(n)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return h({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${me.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${me.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${me.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${me.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${me.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${me.icon}`]:h({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&h({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${me.deleteIcon}`]:h({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Se(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Se(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Se(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${me.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Se(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${me.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>h({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Se(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${me.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Se(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${me.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>h({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${me.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${me.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${me.avatar}`]:{marginLeft:4},[`& .${me.avatarSmall}`]:{marginLeft:2},[`& .${me.icon}`]:{marginLeft:4},[`& .${me.iconSmall}`]:{marginLeft:2},[`& .${me.deleteIcon}`]:{marginRight:5},[`& .${me.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Se(e.palette[t.color].main,.7)}`,[`&.${me.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${me.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Se(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${me.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Se(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),F_=I("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${z(n)}`]]}})(({ownerState:e})=>h({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function nf(e){return e.key==="Backspace"||e.key==="Delete"}const Jm=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:f,label:p,onClick:m,onDelete:g,onKeyDown:v,onKeyUp:b,size:O="medium",variant:C="filled",tabIndex:x,skipFocusWhenDisabled:y=!1}=n,_=W(n,M_),P=s.useRef(null),w=Me(P,r),E=L=>{L.stopPropagation(),g&&g(L)},R=L=>{L.currentTarget===L.target&&nf(L)&&L.preventDefault(),v&&v(L)},$=L=>{L.currentTarget===L.target&&(g&&nf(L)?g(L):L.key==="Escape"&&P.current&&P.current.blur()),b&&b(L)},M=i!==!1&&m?!0:i,T=M||g?pn:c||"div",N=h({},n,{component:T,disabled:d,size:O,color:l,iconColor:s.isValidElement(f)&&f.props.color||l,onDelete:!!g,clickable:M,variant:C}),j=A_(N),F=T===pn?h({component:c||"div",focusVisibleClassName:j.focusVisible},g&&{disableRipple:!0}):{};let A=null;g&&(A=u&&s.isValidElement(u)?s.cloneElement(u,{className:B(u.props.className,j.deleteIcon),onClick:E}):S.jsx(T_,{className:B(j.deleteIcon),onClick:E}));let D=null;o&&s.isValidElement(o)&&(D=s.cloneElement(o,{className:B(j.avatar,o.props.className)}));let k=null;return f&&s.isValidElement(f)&&(k=s.cloneElement(f,{className:B(j.icon,f.props.className)})),S.jsxs(N_,h({as:T,className:B(j.root,a),disabled:M&&d?!0:void 0,onClick:m,onKeyDown:R,onKeyUp:$,ref:w,tabIndex:y&&d?-1:x,ownerState:N},F,_,{children:[D||k,S.jsx(F_,{className:B(j.label),ownerState:N,children:p}),A]}))}),B_=["onChange","maxRows","minRows","style","value"];function Lo(e){return parseInt(e,10)||0}const D_={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function L_(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const z_=s.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:l}=t,c=W(t,B_),{current:u}=s.useRef(l!=null),d=s.useRef(null),f=Me(r,d),p=s.useRef(null),m=s.useRef(null),g=s.useCallback(()=>{const O=d.current,x=Ht(O).getComputedStyle(O);if(x.width==="0px")return{outerHeightStyle:0,overflowing:!1};const y=m.current;y.style.width=x.width,y.value=O.value||t.placeholder||"x",y.value.slice(-1)===` +`&&(y.value+=" ");const _=x.boxSizing,P=Lo(x.paddingBottom)+Lo(x.paddingTop),w=Lo(x.borderBottomWidth)+Lo(x.borderTopWidth),E=y.scrollHeight;y.value="x";const R=y.scrollHeight;let $=E;a&&($=Math.max(Number(a)*R,$)),o&&($=Math.min(Number(o)*R,$)),$=Math.max($,R);const M=$+(_==="border-box"?P+w:0),T=Math.abs($-E)<=1;return{outerHeightStyle:M,overflowing:T}},[o,a,t.placeholder]),v=s.useCallback(()=>{const O=g();if(L_(O))return;const C=O.outerHeightStyle,x=d.current;p.current!==C&&(p.current=C,x.style.height=`${C}px`),x.style.overflow=O.overflowing?"hidden":""},[g]);Ct(()=>{const O=()=>{v()};let C;const x=Bi(O),y=d.current,_=Ht(y);_.addEventListener("resize",x);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(O),P.observe(y)),()=>{x.clear(),cancelAnimationFrame(C),_.removeEventListener("resize",x),P&&P.disconnect()}},[g,v]),Ct(()=>{v()});const b=O=>{u||v(),n&&n(O)};return S.jsxs(s.Fragment,{children:[S.jsx("textarea",h({value:l,onChange:b,ref:f,rows:a,style:i},c)),S.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:h({},D_.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function En({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const Jc=s.createContext(void 0);function Ir(){return s.useContext(Jc)}function W_(e){return S.jsx(Z0,h({},e,{defaultTheme:Li,themeId:un}))}function of(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Sa(e,t=!1){return e&&(of(e.value)&&e.value!==""||t&&of(e.defaultValue)&&e.defaultValue!=="")}function V_(e){return e.startAdornment}function H_(e){return ee("MuiInputBase",e)}const yn=te("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),U_=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Zi=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${z(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},es=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},q_=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:f,size:p,startAdornment:m,type:g}=e,v={root:["root",`color${z(r)}`,n&&"disabled",o&&"error",c&&"fullWidth",i&&"focused",l&&"formControl",p&&p!=="medium"&&`size${z(p)}`,d&&"multiline",m&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return oe(v,H_,t)},ts=I("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Zi})(({theme:e,ownerState:t})=>h({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${yn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&h({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),rs=I("input",{name:"MuiInputBase",slot:"Input",overridesResolver:es})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=h({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return h({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${yn.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${yn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),K_=S.jsx(W_,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Zc=s.forwardRef(function(t,r){var n;const o=ie({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:l,className:c,components:u={},componentsProps:d={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:m,endAdornment:g,fullWidth:v=!1,id:b,inputComponent:O="input",inputProps:C={},inputRef:x,maxRows:y,minRows:_,multiline:P=!1,name:w,onBlur:E,onChange:R,onClick:$,onFocus:M,onKeyDown:T,onKeyUp:N,placeholder:j,readOnly:F,renderSuffix:A,rows:D,slotProps:k={},slots:L={},startAdornment:Y,type:Q="text",value:H}=o,re=W(o,U_),K=C.value!=null?C.value:H,{current:V}=s.useRef(K!=null),J=s.useRef(),fe=s.useCallback(ye=>{},[]),ae=Me(J,x,C.ref,fe),[le,$e]=s.useState(!1),Z=Ir(),ge=En({props:o,muiFormControl:Z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ge.focused=Z?Z.focused:le,s.useEffect(()=>{!Z&&p&&le&&($e(!1),E&&E())},[Z,p,le,E]);const ne=Z&&Z.onFilled,pe=Z&&Z.onEmpty,de=s.useCallback(ye=>{Sa(ye)?ne&&ne():pe&&pe()},[ne,pe]);Ct(()=>{V&&de({value:K})},[K,de,V]);const at=ye=>{if(ge.disabled){ye.stopPropagation();return}M&&M(ye),C.onFocus&&C.onFocus(ye),Z&&Z.onFocus?Z.onFocus(ye):$e(!0)},qe=ye=>{E&&E(ye),C.onBlur&&C.onBlur(ye),Z&&Z.onBlur?Z.onBlur(ye):$e(!1)},De=(ye,...G)=>{if(!V){const ze=ye.target||J.current;if(ze==null)throw new Error(Qt(1));de({value:ze.value})}C.onChange&&C.onChange(ye,...G),R&&R(ye,...G)};s.useEffect(()=>{de(J.current)},[]);const Je=ye=>{J.current&&ye.currentTarget===ye.target&&J.current.focus(),$&&$(ye)};let Re=O,Oe=C;P&&Re==="input"&&(D?Oe=h({type:void 0,minRows:D,maxRows:D},Oe):Oe=h({type:void 0,maxRows:y,minRows:_},Oe),Re=z_);const Ke=ye=>{de(ye.animationName==="mui-auto-fill-cancel"?J.current:{value:"x"})};s.useEffect(()=>{Z&&Z.setAdornedStart(!!Y)},[Z,Y]);const Ae=h({},o,{color:ge.color||"primary",disabled:ge.disabled,endAdornment:g,error:ge.error,focused:ge.focused,formControl:Z,fullWidth:v,hiddenLabel:ge.hiddenLabel,multiline:P,size:ge.size,startAdornment:Y,type:Q}),he=q_(Ae),Ge=L.root||u.Root||ts,Ze=k.root||d.root||{},rt=L.input||u.Input||rs;return Oe=h({},Oe,(n=k.input)!=null?n:d.input),S.jsxs(s.Fragment,{children:[!m&&K_,S.jsxs(Ge,h({},Ze,!_a(Ge)&&{ownerState:h({},Ae,Ze.ownerState)},{ref:r,onClick:Je},re,{className:B(he.root,Ze.className,c,F&&"MuiInputBase-readOnly"),children:[Y,S.jsx(Jc.Provider,{value:null,children:S.jsx(rt,h({ownerState:Ae,"aria-invalid":ge.error,"aria-describedby":a,autoComplete:i,autoFocus:l,defaultValue:f,disabled:ge.disabled,id:b,onAnimationStart:Ke,name:w,placeholder:j,readOnly:F,required:ge.required,rows:D,value:K,onKeyDown:T,onKeyUp:N,type:Q},Oe,!_a(rt)&&{as:Re,ownerState:h({},Ae,Oe.ownerState)},{ref:ae,className:B(he.input,Oe.className,F&&"MuiInputBase-readOnly"),onBlur:qe,onChange:De,onFocus:at}))}),g,A?A(h({},ge,{startAdornment:Y})):null]}))]})});function G_(e){return ee("MuiInput",e)}const Mn=h({},yn,te("MuiInput",["root","underline","input"]));function X_(e){return ee("MuiOutlinedInput",e)}const rr=h({},yn,te("MuiOutlinedInput",["root","notchedOutline","input"]));function Y_(e){return ee("MuiFilledInput",e)}const fr=h({},yn,te("MuiFilledInput",["root","underline","input"])),Q_=er(S.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),J_=er(S.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Z_(e){return ee("MuiAvatar",e)}te("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const ew=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],tw=e=>{const{classes:t,variant:r,colorDefault:n}=e;return oe({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},Z_,t)},rw=I("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:h({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:h({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),nw=I("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),ow=I(J_,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function aw({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[o,a]=s.useState(!1);return s.useEffect(()=>{if(!r&&!n)return;a(!1);let i=!0;const l=new Image;return l.onload=()=>{i&&a("loaded")},l.onerror=()=>{i&&a("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=r,n&&(l.srcset=n),()=>{i=!1}},[e,t,r,n]),o}const tl=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:l="div",slots:c={},slotProps:u={},imgProps:d,sizes:f,src:p,srcSet:m,variant:g="circular"}=n,v=W(n,ew);let b=null;const O=aw(h({},d,{src:p,srcSet:m})),C=p||m,x=C&&O!=="error",y=h({},n,{colorDefault:!x,component:l,variant:g}),_=tw(y),[P,w]=TO("img",{className:_.img,elementType:nw,externalForwardedProps:{slots:c,slotProps:{img:h({},d,u.img)}},additionalProps:{alt:o,src:p,srcSet:m,sizes:f},ownerState:y});return x?b=S.jsx(P,h({},w)):a||a===0?b=a:C&&o?b=o[0]:b=S.jsx(ow,{ownerState:y,className:_.fallback}),S.jsx(rw,h({as:l,ownerState:y,className:B(_.root,i),ref:r},v,{children:b}))}),iw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],sw={entering:{opacity:1},entered:{opacity:1}},Zm=s.forwardRef(function(t,r){const n=kr(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:m,onExited:g,onExiting:v,style:b,timeout:O=o,TransitionComponent:C=At}=t,x=W(t,iw),y=s.useRef(null),_=Me(y,l.ref,r),P=j=>F=>{if(j){const A=y.current;F===void 0?j(A):j(A,F)}},w=P(p),E=P((j,F)=>{Vc(j);const A=fn({style:b,timeout:O,easing:c},{mode:"enter"});j.style.webkitTransition=n.transitions.create("opacity",A),j.style.transition=n.transitions.create("opacity",A),d&&d(j,F)}),R=P(f),$=P(v),M=P(j=>{const F=fn({style:b,timeout:O,easing:c},{mode:"exit"});j.style.webkitTransition=n.transitions.create("opacity",F),j.style.transition=n.transitions.create("opacity",F),m&&m(j)}),T=P(g),N=j=>{a&&a(y.current,j)};return S.jsx(C,h({appear:i,in:u,nodeRef:y,onEnter:E,onEntered:R,onEntering:w,onExit:M,onExited:T,onExiting:$,addEndListener:N,timeout:O},x,{children:(j,F)=>s.cloneElement(l,h({style:h({opacity:0,visibility:j==="exited"&&!u?"hidden":void 0},sw[j],b,l.props.style),ref:_},F))}))});function lw(e){return ee("MuiBackdrop",e)}te("MuiBackdrop",["root","invisible"]);const cw=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],uw=e=>{const{classes:t,invisible:r}=e;return oe({root:["root",r&&"invisible"]},lw,t)},dw=I("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>h({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),ev=s.forwardRef(function(t,r){var n,o,a;const i=ie({props:t,name:"MuiBackdrop"}),{children:l,className:c,component:u="div",components:d={},componentsProps:f={},invisible:p=!1,open:m,slotProps:g={},slots:v={},TransitionComponent:b=Zm,transitionDuration:O}=i,C=W(i,cw),x=h({},i,{component:u,invisible:p}),y=uw(x),_=(n=g.root)!=null?n:f.root;return S.jsx(b,h({in:m,timeout:O},C,{children:S.jsx(dw,h({"aria-hidden":!0},_,{as:(o=(a=v.root)!=null?a:d.Root)!=null?o:u,className:B(y.root,c,_==null?void 0:_.className),ownerState:h({},x,_==null?void 0:_.ownerState),classes:y,ref:r,children:l}))}))});function fw(e){return ee("MuiButton",e)}const zo=te("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),pw=s.createContext({}),mw=s.createContext(void 0),vw=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],gw=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e,l={root:["root",a,`${a}${z(t)}`,`size${z(o)}`,`${a}Size${z(o)}`,`color${z(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${z(o)}`],endIcon:["icon","endIcon",`iconSize${z(o)}`]},c=oe(l,fw,i);return h({},i,c)},tv=e=>h({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),hw=I(pn,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${z(r.color)}`],t[`size${z(r.size)}`],t[`${r.variant}Size${z(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return h({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":h({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":h({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${zo.focusVisible}`]:h({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${zo.disabled}`]:h({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Se(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${zo.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${zo.disabled}`]:{boxShadow:"none"}}),yw=I("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${z(r.size)}`]]}})(({ownerState:e})=>h({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},tv(e))),bw=I("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${z(r.size)}`]]}})(({ownerState:e})=>h({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},tv(e))),ut=s.forwardRef(function(t,r){const n=s.useContext(pw),o=s.useContext(mw),a=io(n,t),i=ie({props:a,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:v,fullWidth:b=!1,size:O="medium",startIcon:C,type:x,variant:y="text"}=i,_=W(i,vw),P=h({},i,{color:c,component:u,disabled:f,disableElevation:p,disableFocusRipple:m,fullWidth:b,size:O,type:x,variant:y}),w=gw(P),E=C&&S.jsx(yw,{className:w.startIcon,ownerState:P,children:C}),R=g&&S.jsx(bw,{className:w.endIcon,ownerState:P,children:g}),$=o||"";return S.jsxs(hw,h({ownerState:P,className:B(n.className,w.root,d,$),component:u,disabled:f,focusRipple:!m,focusVisibleClassName:B(w.focusVisible,v),ref:r,type:x},_,{classes:w,children:[E,l,R]}))});function xw(e){return ee("MuiCard",e)}te("MuiCard",["root"]);const Ow=["className","raised"],Cw=e=>{const{classes:t}=e;return oe({root:["root"]},xw,t)},_w=I(Pn,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Eo=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=n,i=W(n,Ow),l=h({},n,{raised:a}),c=Cw(l);return S.jsx(_w,h({className:B(c.root,o),elevation:a?8:void 0,ref:r,ownerState:l},i))});function ww(e){return ee("MuiCardContent",e)}te("MuiCardContent",["root"]);const Pw=["className","component"],Ew=e=>{const{classes:t}=e;return oe({root:["root"]},ww,t)},Sw=I("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),ns=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=n,i=W(n,Pw),l=h({},n,{component:a}),c=Ew(l);return S.jsx(Sw,h({as:a,className:B(c.root,o),ownerState:l,ref:r},i))});function $w(e){return ee("PrivateSwitchBase",e)}te("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Rw=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],kw=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${z(o)}`],input:["input"]};return oe(a,$w,t)},Iw=I(pn)(({ownerState:e})=>h({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Tw=I("input",{shouldForwardProp:ot})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),jw=s.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:l,disabled:c,disableFocusRipple:u=!1,edge:d=!1,icon:f,id:p,inputProps:m,inputRef:g,name:v,onBlur:b,onChange:O,onFocus:C,readOnly:x,required:y=!1,tabIndex:_,type:P,value:w}=t,E=W(t,Rw),[R,$]=lo({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),M=Ir(),T=L=>{C&&C(L),M&&M.onFocus&&M.onFocus(L)},N=L=>{b&&b(L),M&&M.onBlur&&M.onBlur(L)},j=L=>{if(L.nativeEvent.defaultPrevented)return;const Y=L.target.checked;$(Y),O&&O(L,Y)};let F=c;M&&typeof F>"u"&&(F=M.disabled);const A=P==="checkbox"||P==="radio",D=h({},t,{checked:R,disabled:F,disableFocusRipple:u,edge:d}),k=kw(D);return S.jsxs(Iw,h({component:"span",className:B(k.root,i),centerRipple:!0,focusRipple:!u,disabled:F,tabIndex:null,role:void 0,onFocus:T,onBlur:N,ownerState:D,ref:r},E,{children:[S.jsx(Tw,h({autoFocus:n,checked:o,defaultChecked:l,className:k.input,disabled:F,id:A?p:void 0,name:v,onChange:j,readOnly:x,ref:g,required:y,ownerState:D,tabIndex:_,type:P},P==="checkbox"&&w===void 0?{}:{value:w},m)),R?a:f]}))}),Mw=er(S.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Aw=er(S.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Nw=er(S.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Fw(e){return ee("MuiCheckbox",e)}const _s=te("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Bw=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Dw=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate",`color${z(n)}`,`size${z(o)}`]},i=oe(a,Fw,t);return h({},t,i)},Lw=I(jw,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${z(r.size)}`],r.color!=="default"&&t[`color${z(r.color)}`]]}})(({theme:e,ownerState:t})=>h({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${_s.checked}, &.${_s.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${_s.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),zw=S.jsx(Aw,{}),Ww=S.jsx(Mw,{}),Vw=S.jsx(Nw,{}),$a=s.forwardRef(function(t,r){var n,o;const a=ie({props:t,name:"MuiCheckbox"}),{checkedIcon:i=zw,color:l="primary",icon:c=Ww,indeterminate:u=!1,indeterminateIcon:d=Vw,inputProps:f,size:p="medium",className:m}=a,g=W(a,Bw),v=u?d:c,b=u?d:i,O=h({},a,{color:l,indeterminate:u,size:p}),C=Dw(O);return S.jsx(Lw,h({type:"checkbox",inputProps:h({"data-indeterminate":u},f),icon:s.cloneElement(v,{fontSize:(n=v.props.fontSize)!=null?n:p}),checkedIcon:s.cloneElement(b,{fontSize:(o=b.props.fontSize)!=null?o:p}),ownerState:O,ref:r,className:B(C.root,m)},g,{classes:C}))});function Hw(e){return ee("MuiCircularProgress",e)}te("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Uw=["className","color","disableShrink","size","style","thickness","value","variant"];let os=e=>e,af,sf,lf,cf;const nr=44,qw=On(af||(af=os` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),Kw=On(sf||(sf=os` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),Gw=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,`color${z(n)}`],svg:["svg"],circle:["circle",`circle${z(r)}`,o&&"circleDisableShrink"]};return oe(a,Hw,t)},Xw=I("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${z(r.color)}`]]}})(({ownerState:e,theme:t})=>h({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&bi(lf||(lf=os` + animation: ${0} 1.4s linear infinite; + `),qw)),Yw=I("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Qw=I("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${z(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>h({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&bi(cf||(cf=os` + animation: ${0} 1.4s ease-in-out infinite; + `),Kw)),as=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:l=40,style:c,thickness:u=3.6,value:d=0,variant:f="indeterminate"}=n,p=W(n,Uw),m=h({},n,{color:a,disableShrink:i,size:l,thickness:u,value:d,variant:f}),g=Gw(m),v={},b={},O={};if(f==="determinate"){const C=2*Math.PI*((nr-u)/2);v.strokeDasharray=C.toFixed(3),O["aria-valuenow"]=Math.round(d),v.strokeDashoffset=`${((100-d)/100*C).toFixed(3)}px`,b.transform="rotate(-90deg)"}return S.jsx(Xw,h({className:B(g.root,o),style:h({width:l,height:l},b,c),ownerState:m,ref:r,role:"progressbar"},O,p,{children:S.jsx(Yw,{className:g.svg,ownerState:m,viewBox:`${nr/2} ${nr/2} ${nr} ${nr}`,children:S.jsx(Qw,{className:g.circle,style:v,ownerState:m,cx:nr,cy:nr,r:(nr-u)/2,fill:"none",strokeWidth:u})})}))});function Jw(e){const t=tt(e);return t.body===e?Ht(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function qn(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function uf(e){return parseInt(Ht(e).getComputedStyle(e).paddingRight,10)||0}function Zw(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function df(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,i=>{const l=a.indexOf(i)===-1,c=!Zw(i);l&&c&&qn(i,o)})}function ws(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function eP(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Jw(n)){const i=gm(tt(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${uf(n)+i}px`;const l=tt(n).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${uf(c)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=tt(n).body;else{const i=n.parentElement,l=Ht(n);a=(i==null?void 0:i.nodeName)==="HTML"&&l.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:l})=>{a?i.style.setProperty(l,a):i.style.removeProperty(l)})}}function tP(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class rP{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&qn(t.modalRef,!1);const o=tP(r);df(r,t.mount,t.modalRef,o,!0);const a=ws(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=ws(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=eP(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=ws(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&qn(t.modalRef,r),df(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&qn(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const nP=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function oP(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function aP(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function iP(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||aP(e))}function sP(e){const t=[],r=[];return Array.from(e.querySelectorAll(nP)).forEach((n,o)=>{const a=oP(n);a===-1||!iP(n)||(a===0?t.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function lP(){return!0}function cP(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=sP,isEnabled:i=lP,open:l}=e,c=s.useRef(!1),u=s.useRef(null),d=s.useRef(null),f=s.useRef(null),p=s.useRef(null),m=s.useRef(!1),g=s.useRef(null),v=Me(t.ref,g),b=s.useRef(null);s.useEffect(()=>{!l||!g.current||(m.current=!r)},[r,l]),s.useEffect(()=>{if(!l||!g.current)return;const x=tt(g.current);return g.current.contains(x.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),m.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),s.useEffect(()=>{if(!l||!g.current)return;const x=tt(g.current),y=w=>{b.current=w,!(n||!i()||w.key!=="Tab")&&x.activeElement===g.current&&w.shiftKey&&(c.current=!0,d.current&&d.current.focus())},_=()=>{const w=g.current;if(w===null)return;if(!x.hasFocus()||!i()||c.current){c.current=!1;return}if(w.contains(x.activeElement)||n&&x.activeElement!==u.current&&x.activeElement!==d.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let E=[];if((x.activeElement===u.current||x.activeElement===d.current)&&(E=a(g.current)),E.length>0){var R,$;const M=!!((R=b.current)!=null&&R.shiftKey&&(($=b.current)==null?void 0:$.key)==="Tab"),T=E[0],N=E[E.length-1];typeof T!="string"&&typeof N!="string"&&(M?N.focus():T.focus())}else w.focus()};x.addEventListener("focusin",_),x.addEventListener("keydown",y,!0);const P=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(P),x.removeEventListener("focusin",_),x.removeEventListener("keydown",y,!0)}},[r,n,o,i,l,a]);const O=x=>{f.current===null&&(f.current=x.relatedTarget),m.current=!0,p.current=x.target;const y=t.props.onFocus;y&&y(x)},C=x=>{f.current===null&&(f.current=x.relatedTarget),m.current=!0};return S.jsxs(s.Fragment,{children:[S.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:u,"data-testid":"sentinelStart"}),s.cloneElement(t,{ref:v,onFocus:O}),S.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:d,"data-testid":"sentinelEnd"})]})}function uP(e){return typeof e=="function"?e():e}function dP(e){return e?e.props.hasOwnProperty("in"):!1}const fP=new rP;function pP(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=fP,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:l,children:c,onClose:u,open:d,rootRef:f}=e,p=s.useRef({}),m=s.useRef(null),g=s.useRef(null),v=Me(g,f),[b,O]=s.useState(!d),C=dP(c);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const y=()=>tt(m.current),_=()=>(p.current.modalRef=g.current,p.current.mount=m.current,p.current),P=()=>{o.mount(_(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},w=Yt(()=>{const A=uP(t)||y().body;o.add(_(),A),g.current&&P()}),E=s.useCallback(()=>o.isTopModal(_()),[o]),R=Yt(A=>{m.current=A,A&&(d&&E()?P():g.current&&qn(g.current,x))}),$=s.useCallback(()=>{o.remove(_(),x)},[x,o]);s.useEffect(()=>()=>{$()},[$]),s.useEffect(()=>{d?w():(!C||!a)&&$()},[d,$,C,a,w]);const M=A=>D=>{var k;(k=A.onKeyDown)==null||k.call(A,D),!(D.key!=="Escape"||D.which===229||!E())&&(r||(D.stopPropagation(),u&&u(D,"escapeKeyDown")))},T=A=>D=>{var k;(k=A.onClick)==null||k.call(A,D),D.target===D.currentTarget&&u&&u(D,"backdropClick")};return{getRootProps:(A={})=>{const D=hm(e);delete D.onTransitionEnter,delete D.onTransitionExited;const k=h({},D,A);return h({role:"presentation"},k,{onKeyDown:M(k),ref:v})},getBackdropProps:(A={})=>{const D=A;return h({"aria-hidden":!0},D,{onClick:T(D),open:d})},getTransitionProps:()=>{const A=()=>{O(!1),i&&i()},D=()=>{O(!0),l&&l(),a&&$()};return{onEnter:Hs(A,c==null?void 0:c.props.onEnter),onExited:Hs(D,c==null?void 0:c.props.onExited)}},rootRef:v,portalRef:R,isTopModal:E,exited:b,hasTransition:C}}function mP(e){return ee("MuiModal",e)}te("MuiModal",["root","hidden","backdrop"]);const vP=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],gP=e=>{const{open:t,exited:r,classes:n}=e;return oe({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},mP,n)},hP=I("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>h({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),yP=I(ev,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),rv=s.forwardRef(function(t,r){var n,o,a,i,l,c;const u=ie({name:"MuiModal",props:t}),{BackdropComponent:d=yP,BackdropProps:f,className:p,closeAfterTransition:m=!1,children:g,container:v,component:b,components:O={},componentsProps:C={},disableAutoFocus:x=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:_=!1,disablePortal:P=!1,disableRestoreFocus:w=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:$=!1,onBackdropClick:M,open:T,slotProps:N,slots:j}=u,F=W(u,vP),A=h({},u,{closeAfterTransition:m,disableAutoFocus:x,disableEnforceFocus:y,disableEscapeKeyDown:_,disablePortal:P,disableRestoreFocus:w,disableScrollLock:E,hideBackdrop:R,keepMounted:$}),{getRootProps:D,getBackdropProps:k,getTransitionProps:L,portalRef:Y,isTopModal:Q,exited:H,hasTransition:re}=pP(h({},A,{rootRef:r})),K=h({},A,{exited:H}),V=gP(K),J={};if(g.props.tabIndex===void 0&&(J.tabIndex="-1"),re){const{onEnter:ne,onExited:pe}=L();J.onEnter=ne,J.onExited=pe}const fe=(n=(o=j==null?void 0:j.root)!=null?o:O.Root)!=null?n:hP,ae=(a=(i=j==null?void 0:j.backdrop)!=null?i:O.Backdrop)!=null?a:d,le=(l=N==null?void 0:N.root)!=null?l:C.root,$e=(c=N==null?void 0:N.backdrop)!=null?c:C.backdrop,Z=Sr({elementType:fe,externalSlotProps:le,externalForwardedProps:F,getSlotProps:D,additionalProps:{ref:r,as:b},ownerState:K,className:B(p,le==null?void 0:le.className,V==null?void 0:V.root,!K.open&&K.exited&&(V==null?void 0:V.hidden))}),ge=Sr({elementType:ae,externalSlotProps:$e,additionalProps:f,getSlotProps:ne=>k(h({},ne,{onClick:pe=>{M&&M(pe),ne!=null&&ne.onClick&&ne.onClick(pe)}})),className:B($e==null?void 0:$e.className,f==null?void 0:f.className,V==null?void 0:V.backdrop),ownerState:K});return!$&&!T&&(!re||H)?null:S.jsx(Ym,{ref:Y,container:v,disablePortal:P,children:S.jsxs(fe,h({},Z,{children:[!R&&d?S.jsx(ae,h({},ge)):null,S.jsx(cP,{disableEnforceFocus:y,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:Q,open:T,children:s.cloneElement(g,J)})]}))})});function bP(e){return ee("MuiDialog",e)}const Ps=te("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),nv=s.createContext({}),xP=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],OP=I(ev,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),CP=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${z(r)}`],paper:["paper",`paperScroll${z(r)}`,`paperWidth${z(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return oe(i,bP,t)},_P=I(rv,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),wP=I("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${z(r.scroll)}`]]}})(({ownerState:e})=>h({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),PP=I(Pn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${z(r.scroll)}`],t[`paperWidth${z(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>h({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Ps.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Ps.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Ps.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),eu=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiDialog"}),o=kr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,BackdropComponent:c,BackdropProps:u,children:d,className:f,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:g=!1,maxWidth:v="sm",onBackdropClick:b,onClick:O,onClose:C,open:x,PaperComponent:y=Pn,PaperProps:_={},scroll:P="paper",TransitionComponent:w=Zm,transitionDuration:E=a,TransitionProps:R}=n,$=W(n,xP),M=h({},n,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:g,maxWidth:v,scroll:P}),T=CP(M),N=s.useRef(),j=k=>{N.current=k.target===k.currentTarget},F=k=>{O&&O(k),N.current&&(N.current=null,b&&b(k),C&&C(k,"backdropClick"))},A=Oo(l),D=s.useMemo(()=>({titleId:A}),[A]);return S.jsx(_P,h({className:B(T.root,f),closeAfterTransition:!0,components:{Backdrop:OP},componentsProps:{backdrop:h({transitionDuration:E,as:c},u)},disableEscapeKeyDown:p,onClose:C,open:x,ref:r,onClick:F,ownerState:M},$,{children:S.jsx(w,h({appear:!0,in:x,timeout:E,role:"presentation"},R,{children:S.jsx(wP,{className:B(T.container),onMouseDown:j,ownerState:M,children:S.jsx(PP,h({as:y,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":A},_,{className:B(T.paper,_.className),ownerState:M,children:S.jsx(nv.Provider,{value:D,children:d})}))})}))}))});function EP(e){return ee("MuiDialogActions",e)}te("MuiDialogActions",["root","spacing"]);const SP=["className","disableSpacing"],$P=e=>{const{classes:t,disableSpacing:r}=e;return oe({root:["root",!r&&"spacing"]},EP,t)},RP=I("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>h({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),tu=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=n,i=W(n,SP),l=h({},n,{disableSpacing:a}),c=$P(l);return S.jsx(RP,h({className:B(c.root,o),ownerState:l,ref:r},i))});function kP(e){return ee("MuiDialogContent",e)}te("MuiDialogContent",["root","dividers"]);function IP(e){return ee("MuiDialogTitle",e)}const TP=te("MuiDialogTitle",["root"]),jP=["className","dividers"],MP=e=>{const{classes:t,dividers:r}=e;return oe({root:["root",r&&"dividers"]},kP,t)},AP=I("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>h({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${TP.root} + &`]:{paddingTop:0}})),ru=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=n,i=W(n,jP),l=h({},n,{dividers:a}),c=MP(l);return S.jsx(AP,h({className:B(c.root,o),ownerState:l,ref:r},i))});function NP(e){return ee("MuiDialogContentText",e)}te("MuiDialogContentText",["root"]);const FP=["children","className"],BP=e=>{const{classes:t}=e,n=oe({root:["root"]},NP,t);return h({},t,n)},DP=I(Ve,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ov=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiDialogContentText"}),{className:o}=n,a=W(n,FP),i=BP(a);return S.jsx(DP,h({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:a,className:B(i.root,o)},n,{classes:i}))}),LP=["className","id"],zP=e=>{const{classes:t}=e;return oe({root:["root"]},IP,t)},WP=I(Ve,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),nu=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=W(n,LP),l=n,c=zP(l),{titleId:u=a}=s.useContext(nv);return S.jsx(WP,h({component:"h2",className:B(c.root,o),ownerState:l,ref:r,variant:"h6",id:a??u},i))}),ff=te("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),VP=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function HP(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=Ht(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const u=a.getComputedStyle(t);i=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let l=0,c=0;if(i&&i!=="none"&&typeof i=="string"){const u=i.split("(")[1].split(")")[0].split(",");l=parseInt(u[4],10),c=parseInt(u[5],10)}return e==="left"?o?`translateX(${o.right+l-n.left}px)`:`translateX(${a.innerWidth+l-n.left}px)`:e==="right"?o?`translateX(-${n.right-o.left-l}px)`:`translateX(-${n.left+n.width-l}px)`:e==="up"?o?`translateY(${o.bottom+c-n.top}px)`:`translateY(${a.innerHeight+c-n.top}px)`:o?`translateY(-${n.top-o.top+n.height-c}px)`:`translateY(-${n.top+n.height-c}px)`}function UP(e){return typeof e=="function"?e():e}function Wo(e,t,r){const n=UP(r),o=HP(e,t,n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const qP=s.forwardRef(function(t,r){const n=kr(),o={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:c,container:u,direction:d="down",easing:f=o,in:p,onEnter:m,onEntered:g,onEntering:v,onExit:b,onExited:O,onExiting:C,style:x,timeout:y=a,TransitionComponent:_=At}=t,P=W(t,VP),w=s.useRef(null),E=Me(c.ref,w,r),R=k=>L=>{k&&(L===void 0?k(w.current):k(w.current,L))},$=R((k,L)=>{Wo(d,k,u),Vc(k),m&&m(k,L)}),M=R((k,L)=>{const Y=fn({timeout:y,style:x,easing:f},{mode:"enter"});k.style.webkitTransition=n.transitions.create("-webkit-transform",h({},Y)),k.style.transition=n.transitions.create("transform",h({},Y)),k.style.webkitTransform="none",k.style.transform="none",v&&v(k,L)}),T=R(g),N=R(C),j=R(k=>{const L=fn({timeout:y,style:x,easing:f},{mode:"exit"});k.style.webkitTransition=n.transitions.create("-webkit-transform",L),k.style.transition=n.transitions.create("transform",L),Wo(d,k,u),b&&b(k)}),F=R(k=>{k.style.webkitTransition="",k.style.transition="",O&&O(k)}),A=k=>{i&&i(w.current,k)},D=s.useCallback(()=>{w.current&&Wo(d,w.current,u)},[d,u]);return s.useEffect(()=>{if(p||d==="down"||d==="right")return;const k=Bi(()=>{w.current&&Wo(d,w.current,u)}),L=Ht(w.current);return L.addEventListener("resize",k),()=>{k.clear(),L.removeEventListener("resize",k)}},[d,p,u]),s.useEffect(()=>{p||D()},[p,D]),S.jsx(_,h({nodeRef:w,onEnter:$,onEntered:T,onEntering:M,onExit:j,onExited:F,onExiting:N,addEndListener:A,appear:l,in:p,timeout:y},P,{children:(k,L)=>s.cloneElement(c,h({ref:E,style:h({visibility:k==="exited"&&!p?"hidden":void 0},x,c.props.style)},L))}))}),KP=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],GP=e=>{const{classes:t,disableUnderline:r}=e,o=oe({root:["root",!r&&"underline"],input:["input"]},Y_,t);return h({},t,o)},XP=I(ts,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Zi(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return h({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${fr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${fr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${fr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${fr.disabled}, .${fr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${fr.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&h({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),YP=I(rs,{name:"MuiFilledInput",slot:"Input",overridesResolver:es})(({theme:e,ownerState:t})=>h({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),ou=s.forwardRef(function(t,r){var n,o,a,i;const l=ie({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:g={},type:v="text"}=l,b=W(l,KP),O=h({},l,{fullWidth:d,inputComponent:f,multiline:p,type:v}),C=GP(l),x={root:{ownerState:O},input:{ownerState:O}},y=m??u?Qe(x,m??u):x,_=(n=(o=g.root)!=null?o:c.Root)!=null?n:XP,P=(a=(i=g.input)!=null?i:c.Input)!=null?a:YP;return S.jsx(Zc,h({slots:{root:_,input:P},componentsProps:y,fullWidth:d,inputComponent:f,multiline:p,ref:r,type:v},b,{classes:C}))});ou.muiName="Input";function QP(e){return ee("MuiFormControl",e)}te("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const JP=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],ZP=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${z(r)}`,n&&"fullWidth"]};return oe(o,QP,t)},eE=I("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>h({},t.root,t[`margin${z(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>h({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),tE=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:f=!1,hiddenLabel:p=!1,margin:m="none",required:g=!1,size:v="medium",variant:b="outlined"}=n,O=W(n,JP),C=h({},n,{color:i,component:l,disabled:c,error:u,fullWidth:f,hiddenLabel:p,margin:m,required:g,size:v,variant:b}),x=ZP(C),[y,_]=s.useState(()=>{let N=!1;return o&&s.Children.forEach(o,j=>{if(!Zo(j,["Input","Select"]))return;const F=Zo(j,["Select"])?j.props.input:j;F&&V_(F.props)&&(N=!0)}),N}),[P,w]=s.useState(()=>{let N=!1;return o&&s.Children.forEach(o,j=>{Zo(j,["Input","Select"])&&(Sa(j.props,!0)||Sa(j.props.inputProps,!0))&&(N=!0)}),N}),[E,R]=s.useState(!1);c&&E&&R(!1);const $=d!==void 0&&!c?d:E;let M;const T=s.useMemo(()=>({adornedStart:y,setAdornedStart:_,color:i,disabled:c,error:u,filled:P,focused:$,fullWidth:f,hiddenLabel:p,size:v,onBlur:()=>{R(!1)},onEmpty:()=>{w(!1)},onFilled:()=>{w(!0)},onFocus:()=>{R(!0)},registerEffect:M,required:g,variant:b}),[y,i,c,u,P,$,f,p,M,g,v,b]);return S.jsx(Jc.Provider,{value:T,children:S.jsx(eE,h({as:l,ownerState:C,className:B(x.root,a),ref:r},O,{children:o}))})}),is=ox({createStyledComponent:I("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ie({props:e,name:"MuiStack"})});function rE(e){return ee("MuiFormHelperText",e)}const pf=te("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var mf;const nE=["children","className","component","disabled","error","filled","focused","margin","required","variant"],oE=e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:l,required:c}=e,u={root:["root",o&&"disabled",a&&"error",n&&`size${z(n)}`,r&&"contained",l&&"focused",i&&"filled",c&&"required"]};return oe(u,rE,t)},aE=I("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${z(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>h({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${pf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${pf.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),iE=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=n,l=W(n,nE),c=Ir(),u=En({props:n,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),d=h({},n,{component:i,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=oE(d);return S.jsx(aE,h({as:i,ownerState:d,className:B(f.root,a),ref:r},l,{children:o===" "?mf||(mf=S.jsx("span",{className:"notranslate",children:"​"})):o}))});function sE(e){return ee("MuiFormLabel",e)}const Kn=te("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),lE=["children","className","color","component","disabled","error","filled","focused","required"],cE=e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:l}=e,c={root:["root",`color${z(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return oe(c,sE,t)},uE=I("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>h({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>h({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Kn.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Kn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Kn.error}`]:{color:(e.vars||e).palette.error.main}})),dE=I("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Kn.error}`]:{color:(e.vars||e).palette.error.main}})),fE=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=n,l=W(n,lE),c=Ir(),u=En({props:n,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),d=h({},n,{color:u.color||"primary",component:i,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=cE(d);return S.jsxs(uE,h({as:i,ownerState:d,className:B(f.root,a),ref:r},l,{children:[o,u.required&&S.jsxs(dE,{ownerState:d,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),pE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function rl(e){return`scale(${e}, ${e**2})`}const mE={entering:{opacity:1,transform:rl(1)},entered:{opacity:1,transform:"none"}},Es=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ra=s.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:g,timeout:v="auto",TransitionComponent:b=At}=t,O=W(t,pE),C=qr(),x=s.useRef(),y=kr(),_=s.useRef(null),P=Me(_,a.ref,r),w=F=>A=>{if(F){const D=_.current;A===void 0?F(D):F(D,A)}},E=w(d),R=w((F,A)=>{Vc(F);const{duration:D,delay:k,easing:L}=fn({style:g,timeout:v,easing:i},{mode:"enter"});let Y;v==="auto"?(Y=y.transitions.getAutoHeightDuration(F.clientHeight),x.current=Y):Y=D,F.style.transition=[y.transitions.create("opacity",{duration:Y,delay:k}),y.transitions.create("transform",{duration:Es?Y:Y*.666,delay:k,easing:L})].join(","),c&&c(F,A)}),$=w(u),M=w(m),T=w(F=>{const{duration:A,delay:D,easing:k}=fn({style:g,timeout:v,easing:i},{mode:"exit"});let L;v==="auto"?(L=y.transitions.getAutoHeightDuration(F.clientHeight),x.current=L):L=A,F.style.transition=[y.transitions.create("opacity",{duration:L,delay:D}),y.transitions.create("transform",{duration:Es?L:L*.666,delay:Es?D:D||L*.333,easing:k})].join(","),F.style.opacity=0,F.style.transform=rl(.75),f&&f(F)}),N=w(p),j=F=>{v==="auto"&&C.start(x.current||0,F),n&&n(_.current,F)};return S.jsx(b,h({appear:o,in:l,nodeRef:_,onEnter:R,onEntered:$,onEntering:E,onExit:T,onExited:N,onExiting:M,addEndListener:j,timeout:v==="auto"?null:v},O,{children:(F,A)=>s.cloneElement(a,h({style:h({opacity:0,transform:rl(.75),visibility:F==="exited"&&!l?"hidden":void 0},mE[F],g,a.props.style),ref:P},A))}))});Ra.muiSupportAuto=!0;const vE=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],gE=e=>{const{classes:t,disableUnderline:r}=e,o=oe({root:["root",!r&&"underline"],input:["input"]},G_,t);return h({},t,o)},hE=I(ts,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Zi(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),h({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Mn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Mn.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Mn.disabled}, .${Mn.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Mn.disabled}:before`]:{borderBottomStyle:"dotted"}})}),yE=I(rs,{name:"MuiInput",slot:"Input",overridesResolver:es})({}),au=s.forwardRef(function(t,r){var n,o,a,i;const l=ie({props:t,name:"MuiInput"}),{disableUnderline:c,components:u={},componentsProps:d,fullWidth:f=!1,inputComponent:p="input",multiline:m=!1,slotProps:g,slots:v={},type:b="text"}=l,O=W(l,vE),C=gE(l),y={root:{ownerState:{disableUnderline:c}}},_=g??d?Qe(g??d,y):y,P=(n=(o=v.root)!=null?o:u.Root)!=null?n:hE,w=(a=(i=v.input)!=null?i:u.Input)!=null?a:yE;return S.jsx(Zc,h({slots:{root:P,input:w},slotProps:_,fullWidth:f,inputComponent:p,multiline:m,ref:r,type:b},O,{classes:C}))});au.muiName="Input";function bE(e){return ee("MuiInputLabel",e)}te("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const xE=["disableAnimation","margin","shrink","variant","className"],OE=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:l}=e,c={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${z(n)}`,i],asterisk:[l&&"asterisk"]},u=oe(c,bE,t);return h({},t,u)},CE=I(fE,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Kn.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>h({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&h({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&h({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&h({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),_E=s.forwardRef(function(t,r){const n=ie({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=n,l=W(n,xE),c=Ir();let u=a;typeof u>"u"&&c&&(u=c.filled||c.focused||c.adornedStart);const d=En({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),f=h({},n,{disableAnimation:o,formControl:c,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),p=OE(f);return S.jsx(CE,h({"data-shrink":u,ownerState:f,ref:r,className:B(p.root,i)},l,{classes:p}))}),fo=s.createContext({});function wE(e){return ee("MuiList",e)}te("MuiList",["root","padding","dense","subheader"]);const PE=["children","className","component","dense","disablePadding","subheader"],EE=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return oe({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},wE,t)},SE=I("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>h({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),$E=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:l=!1,disablePadding:c=!1,subheader:u}=n,d=W(n,PE),f=s.useMemo(()=>({dense:l}),[l]),p=h({},n,{component:i,dense:l,disablePadding:c}),m=EE(p);return S.jsx(fo.Provider,{value:f,children:S.jsxs(SE,h({as:i,className:B(m.root,a),ref:r,ownerState:p},d,{children:[u,o]}))})});function RE(e){return ee("MuiListItemIcon",e)}const vf=te("MuiListItemIcon",["root","alignItemsFlexStart"]),kE=["className"],IE=e=>{const{alignItems:t,classes:r}=e;return oe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},RE,r)},TE=I("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>h({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),av=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiListItemIcon"}),{className:o}=n,a=W(n,kE),i=s.useContext(fo),l=h({},n,{alignItems:i.alignItems}),c=IE(l);return S.jsx(TE,h({className:B(c.root,o),ownerState:l,ref:r},a))});function jE(e){return ee("MuiListItemText",e)}const ka=te("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ME=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],AE=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return oe({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},jE,t)},NE=I("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ka.primary}`]:t.primary},{[`& .${ka.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>h({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),FE=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:l=!1,primary:c,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:f}=n,p=W(n,ME),{dense:m}=s.useContext(fo);let g=c??o,v=d;const b=h({},n,{disableTypography:i,inset:l,primary:!!g,secondary:!!v,dense:m}),O=AE(b);return g!=null&&g.type!==Ve&&!i&&(g=S.jsx(Ve,h({variant:m?"body2":"body1",className:O.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:g}))),v!=null&&v.type!==Ve&&!i&&(v=S.jsx(Ve,h({variant:"body2",className:O.secondary,color:"text.secondary",display:"block"},f,{children:v}))),S.jsxs(NE,h({className:B(O.root,a),ownerState:b,ref:r},p,{children:[g,v]}))}),BE=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ss(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function gf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function iv(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function An(e,t,r,n,o,a){let i=!1,l=o(e,t,t?r:!1);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const c=n?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!iv(l,a)||c)l=o(e,l,r);else return l.focus(),!0}return!1}const sv=s.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:f="selectedMenu"}=t,p=W(t,BE),m=s.useRef(null),g=s.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ct(()=>{o&&m.current.focus()},[o]),s.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(x,{direction:y})=>{const _=!m.current.style.width;if(x.clientHeight{const y=m.current,_=x.key,P=tt(y).activeElement;if(_==="ArrowDown")x.preventDefault(),An(y,P,u,c,Ss);else if(_==="ArrowUp")x.preventDefault(),An(y,P,u,c,gf);else if(_==="Home")x.preventDefault(),An(y,null,u,c,Ss);else if(_==="End")x.preventDefault(),An(y,null,u,c,gf);else if(_.length===1){const w=g.current,E=_.toLowerCase(),R=performance.now();w.keys.length>0&&(R-w.lastTime>500?(w.keys=[],w.repeating=!0,w.previousKeyMatched=!0):w.repeating&&E!==w.keys[0]&&(w.repeating=!1)),w.lastTime=R,w.keys.push(E);const $=P&&!w.repeating&&iv(P,w);w.previousKeyMatched&&($||An(y,P,!1,c,Ss,w))?x.preventDefault():w.previousKeyMatched=!1}d&&d(x)},b=Me(m,r);let O=-1;s.Children.forEach(i,(x,y)=>{if(!s.isValidElement(x)){O===y&&(O+=1,O>=i.length&&(O=-1));return}x.props.disabled||(f==="selectedMenu"&&x.props.selected||O===-1)&&(O=y),O===y&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(O+=1,O>=i.length&&(O=-1))});const C=s.Children.map(i,(x,y)=>{if(y===O){const _={};return a&&(_.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),s.cloneElement(x,_)}return x});return S.jsx($E,h({role:"menu",ref:b,className:l,onKeyDown:v,tabIndex:o?0:-1},p,{children:C}))});function DE(e){return ee("MuiPopover",e)}te("MuiPopover",["root","paper"]);const LE=["onEntering"],zE=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],WE=["slotProps"];function hf(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function yf(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function bf(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function $s(e){return typeof e=="function"?e():e}const VE=e=>{const{classes:t}=e;return oe({root:["root"],paper:["paper"]},DE,t)},HE=I(rv,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lv=I(Pn,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),cv=s.forwardRef(function(t,r){var n,o,a;const i=ie({props:t,name:"MuiPopover"}),{action:l,anchorEl:c,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:p,className:m,container:g,elevation:v=8,marginThreshold:b=16,open:O,PaperProps:C={},slots:x,slotProps:y,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:P=Ra,transitionDuration:w="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,$=W(i.TransitionProps,LE),M=W(i,zE),T=(n=y==null?void 0:y.paper)!=null?n:C,N=s.useRef(),j=Me(N,T.ref),F=h({},i,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:b,externalPaperSlotProps:T,transformOrigin:_,TransitionComponent:P,transitionDuration:w,TransitionProps:$}),A=VE(F),D=s.useCallback(()=>{if(f==="anchorPosition")return d;const ne=$s(c),de=(ne&&ne.nodeType===1?ne:tt(N.current).body).getBoundingClientRect();return{top:de.top+hf(de,u.vertical),left:de.left+yf(de,u.horizontal)}},[c,u.horizontal,u.vertical,d,f]),k=s.useCallback(ne=>({vertical:hf(ne,_.vertical),horizontal:yf(ne,_.horizontal)}),[_.horizontal,_.vertical]),L=s.useCallback(ne=>{const pe={width:ne.offsetWidth,height:ne.offsetHeight},de=k(pe);if(f==="none")return{top:null,left:null,transformOrigin:bf(de)};const at=D();let qe=at.top-de.vertical,De=at.left-de.horizontal;const Je=qe+pe.height,Re=De+pe.width,Oe=Ht($s(c)),Ke=Oe.innerHeight-b,Ae=Oe.innerWidth-b;if(b!==null&&qeKe){const he=Je-Ke;qe-=he,de.vertical+=he}if(b!==null&&DeAe){const he=Re-Ae;De-=he,de.horizontal+=he}return{top:`${Math.round(qe)}px`,left:`${Math.round(De)}px`,transformOrigin:bf(de)}},[c,f,D,k,b]),[Y,Q]=s.useState(O),H=s.useCallback(()=>{const ne=N.current;if(!ne)return;const pe=L(ne);pe.top!==null&&(ne.style.top=pe.top),pe.left!==null&&(ne.style.left=pe.left),ne.style.transformOrigin=pe.transformOrigin,Q(!0)},[L]);s.useEffect(()=>(R&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[c,R,H]);const re=(ne,pe)=>{E&&E(ne,pe),H()},K=()=>{Q(!1)};s.useEffect(()=>{O&&H()}),s.useImperativeHandle(l,()=>O?{updatePosition:()=>{H()}}:null,[O,H]),s.useEffect(()=>{if(!O)return;const ne=Bi(()=>{H()}),pe=Ht(c);return pe.addEventListener("resize",ne),()=>{ne.clear(),pe.removeEventListener("resize",ne)}},[c,O,H]);let V=w;w==="auto"&&!P.muiSupportAuto&&(V=void 0);const J=g||(c?tt($s(c)).body:void 0),fe=(o=x==null?void 0:x.root)!=null?o:HE,ae=(a=x==null?void 0:x.paper)!=null?a:lv,le=Sr({elementType:ae,externalSlotProps:h({},T,{style:Y?T.style:h({},T.style,{opacity:0})}),additionalProps:{elevation:v,ref:j},ownerState:F,className:B(A.paper,T==null?void 0:T.className)}),$e=Sr({elementType:fe,externalSlotProps:(y==null?void 0:y.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:J,open:O},ownerState:F,className:B(A.root,m)}),{slotProps:Z}=$e,ge=W($e,WE);return S.jsx(fe,h({},ge,!_a(fe)&&{slotProps:Z,disableScrollLock:R},{children:S.jsx(P,h({appear:!0,in:O,onEntering:re,onExited:K,timeout:V},$,{children:S.jsx(ae,h({},le,{children:p}))}))}))});function UE(e){return ee("MuiMenu",e)}te("MuiMenu",["root","paper","list"]);const qE=["onEntering"],KE=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],GE={vertical:"top",horizontal:"right"},XE={vertical:"top",horizontal:"left"},YE=e=>{const{classes:t}=e;return oe({root:["root"],paper:["paper"],list:["list"]},UE,t)},QE=I(cv,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),JE=I(lv,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ZE=I(sv,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ss=s.forwardRef(function(t,r){var n,o;const a=ie({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:l,className:c,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:f,open:p,PaperProps:m={},PopoverClasses:g,transitionDuration:v="auto",TransitionProps:{onEntering:b}={},variant:O="selectedMenu",slots:C={},slotProps:x={}}=a,y=W(a.TransitionProps,qE),_=W(a,KE),P=_m(),w=h({},a,{autoFocus:i,disableAutoFocusItem:u,MenuListProps:d,onEntering:b,PaperProps:m,transitionDuration:v,TransitionProps:y,variant:O}),E=YE(w),R=i&&!u&&p,$=s.useRef(null),M=(k,L)=>{$.current&&$.current.adjustStyleForScrollbar(k,{direction:P?"rtl":"ltr"}),b&&b(k,L)},T=k=>{k.key==="Tab"&&(k.preventDefault(),f&&f(k,"tabKeyDown"))};let N=-1;s.Children.map(l,(k,L)=>{s.isValidElement(k)&&(k.props.disabled||(O==="selectedMenu"&&k.props.selected||N===-1)&&(N=L))});const j=(n=C.paper)!=null?n:JE,F=(o=x.paper)!=null?o:m,A=Sr({elementType:C.root,externalSlotProps:x.root,ownerState:w,className:[E.root,c]}),D=Sr({elementType:j,externalSlotProps:F,ownerState:w,className:E.paper});return S.jsx(QE,h({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?GE:XE,slots:{paper:j,root:C.root},slotProps:{root:A,paper:D},open:p,ref:r,transitionDuration:v,TransitionProps:h({onEntering:M},y),ownerState:w},_,{classes:g,children:S.jsx(ZE,h({onKeyDown:T,actions:$,autoFocus:i&&(N===-1||u),autoFocusItem:R,variant:O},d,{className:B(E.list,d.className),children:l}))}))});function eS(e){return ee("MuiMenuItem",e)}const Nn=te("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),tS=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],rS=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},nS=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,c=oe({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},eS,i);return h({},i,c)},oS=I(pn,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:rS})(({theme:e,ownerState:t})=>h({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Nn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Se(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Se(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Nn.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Se(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Se(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Nn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ff.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ff.inset}`]:{marginLeft:52},[`& .${ka.root}`]:{marginTop:0,marginBottom:0},[`& .${ka.inset}`]:{paddingLeft:36},[`& .${vf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&h({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${vf.root} svg`]:{fontSize:"1.25rem"}}))),ar=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:f,className:p}=n,m=W(n,tS),g=s.useContext(fo),v=s.useMemo(()=>({dense:i||g.dense||!1,disableGutters:c}),[g.dense,i,c]),b=s.useRef(null);Ct(()=>{o&&b.current&&b.current.focus()},[o]);const O=h({},n,{dense:v.dense,divider:l,disableGutters:c}),C=nS(n),x=Me(b,r);let y;return n.disabled||(y=f!==void 0?f:-1),S.jsx(fo.Provider,{value:v,children:S.jsx(oS,h({ref:x,role:d,tabIndex:y,component:a,focusVisibleClassName:B(C.focusVisible,u),className:B(C.root,p)},m,{ownerState:O,classes:C}))})});function aS(e){return ee("MuiNativeSelect",e)}const iu=te("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),iS=["className","disabled","error","IconComponent","inputRef","variant"],sS=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,l={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${z(r)}`,a&&"iconOpen",n&&"disabled"]};return oe(l,aS,t)},uv=({ownerState:e,theme:t})=>h({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":h({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${iu.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),lS=I("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ot,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${iu.multiple}`]:t.multiple}]}})(uv),dv=({ownerState:e,theme:t})=>h({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${iu.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),cS=I("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${z(r.variant)}`],r.open&&t.iconOpen]}})(dv),uS=s.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:l,variant:c="standard"}=t,u=W(t,iS),d=h({},t,{disabled:o,variant:c,error:a}),f=sS(d);return S.jsxs(s.Fragment,{children:[S.jsx(lS,h({ownerState:d,className:B(f.select,n),disabled:o,ref:l||r},u)),t.multiple?null:S.jsx(cS,{as:i,ownerState:d,className:f.icon})]})});var xf;const dS=["children","classes","className","label","notched"],fS=I("fieldset",{shouldForwardProp:ot})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),pS=I("legend",{shouldForwardProp:ot})(({ownerState:e,theme:t})=>h({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&h({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function mS(e){const{className:t,label:r,notched:n}=e,o=W(e,dS),a=r!=null&&r!=="",i=h({},e,{notched:n,withLabel:a});return S.jsx(fS,h({"aria-hidden":!0,className:t,ownerState:i},o,{children:S.jsx(pS,{ownerState:i,children:a?S.jsx("span",{children:r}):xf||(xf=S.jsx("span",{className:"notranslate",children:"​"}))})}))}const vS=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],gS=e=>{const{classes:t}=e,n=oe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},X_,t);return h({},t,n)},hS=I(ts,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Zi})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return h({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${rr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${rr.focused} .${rr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${rr.error} .${rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${rr.disabled} .${rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&h({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),yS=I(mS,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),bS=I(rs,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:es})(({theme:e,ownerState:t})=>h({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),su=s.forwardRef(function(t,r){var n,o,a,i,l;const c=ie({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:d=!1,inputComponent:f="input",label:p,multiline:m=!1,notched:g,slots:v={},type:b="text"}=c,O=W(c,vS),C=gS(c),x=Ir(),y=En({props:c,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=h({},c,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:x,fullWidth:d,hiddenLabel:y.hiddenLabel,multiline:m,size:y.size,type:b}),P=(n=(o=v.root)!=null?o:u.Root)!=null?n:hS,w=(a=(i=v.input)!=null?i:u.Input)!=null?a:bS;return S.jsx(Zc,h({slots:{root:P,input:w},renderSuffix:E=>S.jsx(yS,{ownerState:_,className:C.notchedOutline,label:p!=null&&p!==""&&y.required?l||(l=S.jsxs(s.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:d,inputComponent:f,multiline:m,ref:r,type:b},O,{classes:h({},C,{notchedOutline:null})}))});su.muiName="Input";function xS(e){return ee("MuiSelect",e)}const Fn=te("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Of;const OS=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],CS=I("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Fn.select}`]:t.select},{[`&.${Fn.select}`]:t[r.variant]},{[`&.${Fn.error}`]:t.error},{[`&.${Fn.multiple}`]:t.multiple}]}})(uv,{[`&.${Fn.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),_S=I("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${z(r.variant)}`],r.open&&t.iconOpen]}})(dv),wS=I("input",{shouldForwardProp:e=>Nm(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Cf(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function PS(e){return e==null||typeof e=="string"&&!e.trim()}const ES=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,l={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${z(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return oe(l,xS,t)},SS=s.forwardRef(function(t,r){var n;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:l,children:c,className:u,defaultOpen:d,defaultValue:f,disabled:p,displayEmpty:m,error:g=!1,IconComponent:v,inputRef:b,labelId:O,MenuProps:C={},multiple:x,name:y,onBlur:_,onChange:P,onClose:w,onFocus:E,onOpen:R,open:$,readOnly:M,renderValue:T,SelectDisplayProps:N={},tabIndex:j,value:F,variant:A="standard"}=t,D=W(t,OS),[k,L]=lo({controlled:F,default:f,name:"Select"}),[Y,Q]=lo({controlled:$,default:d,name:"Select"}),H=s.useRef(null),re=s.useRef(null),[K,V]=s.useState(null),{current:J}=s.useRef($!=null),[fe,ae]=s.useState(),le=Me(r,b),$e=s.useCallback(U=>{re.current=U,U&&V(U)},[]),Z=K==null?void 0:K.parentNode;s.useImperativeHandle(le,()=>({focus:()=>{re.current.focus()},node:H.current,value:k}),[k]),s.useEffect(()=>{d&&Y&&K&&!J&&(ae(l?null:Z.clientWidth),re.current.focus())},[K,l]),s.useEffect(()=>{i&&re.current.focus()},[i]),s.useEffect(()=>{if(!O)return;const U=tt(re.current).getElementById(O);if(U){const Pe=()=>{getSelection().isCollapsed&&re.current.focus()};return U.addEventListener("click",Pe),()=>{U.removeEventListener("click",Pe)}}},[O]);const ge=(U,Pe)=>{U?R&&R(Pe):w&&w(Pe),J||(ae(l?null:Z.clientWidth),Q(U))},ne=U=>{U.button===0&&(U.preventDefault(),re.current.focus(),ge(!0,U))},pe=U=>{ge(!1,U)},de=s.Children.toArray(c),at=U=>{const Pe=de.find(Ie=>Ie.props.value===U.target.value);Pe!==void 0&&(L(Pe.props.value),P&&P(U,Pe))},qe=U=>Pe=>{let Ie;if(Pe.currentTarget.hasAttribute("tabindex")){if(x){Ie=Array.isArray(k)?k.slice():[];const kt=k.indexOf(U.props.value);kt===-1?Ie.push(U.props.value):Ie.splice(kt,1)}else Ie=U.props.value;if(U.props.onClick&&U.props.onClick(Pe),k!==Ie&&(L(Ie),P)){const kt=Pe.nativeEvent||Pe,jr=new kt.constructor(kt.type,kt);Object.defineProperty(jr,"target",{writable:!0,value:{value:Ie,name:y}}),P(jr,U)}x||ge(!1,Pe)}},De=U=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(U.key)!==-1&&(U.preventDefault(),ge(!0,U))},Je=K!==null&&Y,Re=U=>{!Je&&_&&(Object.defineProperty(U,"target",{writable:!0,value:{value:k,name:y}}),_(U))};delete D["aria-invalid"];let Oe,Ke;const Ae=[];let he=!1;(Sa({value:k})||m)&&(T?Oe=T(k):he=!0);const Ge=de.map(U=>{if(!s.isValidElement(U))return null;let Pe;if(x){if(!Array.isArray(k))throw new Error(Qt(2));Pe=k.some(Ie=>Cf(Ie,U.props.value)),Pe&&he&&Ae.push(U.props.children)}else Pe=Cf(k,U.props.value),Pe&&he&&(Ke=U.props.children);return s.cloneElement(U,{"aria-selected":Pe?"true":"false",onClick:qe(U),onKeyUp:Ie=>{Ie.key===" "&&Ie.preventDefault(),U.props.onKeyUp&&U.props.onKeyUp(Ie)},role:"option",selected:Pe,value:void 0,"data-value":U.props.value})});he&&(x?Ae.length===0?Oe=null:Oe=Ae.reduce((U,Pe,Ie)=>(U.push(Pe),Ie{const{classes:t}=e;return t},lu={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ot(e)&&e!=="variant",slot:"Root"},IS=I(au,lu)(""),TS=I(su,lu)(""),jS=I(ou,lu)(""),fv=s.forwardRef(function(t,r){const n=ie({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=Q_,id:f,input:p,inputProps:m,label:g,labelId:v,MenuProps:b,multiple:O=!1,native:C=!1,onClose:x,onOpen:y,open:_,renderValue:P,SelectDisplayProps:w,variant:E="outlined"}=n,R=W(n,$S),$=C?uS:SS,M=Ir(),T=En({props:n,muiFormControl:M,states:["variant","error"]}),N=T.variant||E,j=h({},n,{variant:N,classes:i}),F=kS(j),A=W(F,RS),D=p||{standard:S.jsx(IS,{ownerState:j}),outlined:S.jsx(TS,{label:g,ownerState:j}),filled:S.jsx(jS,{ownerState:j})}[N],k=Me(r,D.ref);return S.jsx(s.Fragment,{children:s.cloneElement(D,h({inputComponent:$,inputProps:h({children:a,error:T.error,IconComponent:d,variant:N,type:void 0,multiple:O},C?{id:f}:{autoWidth:o,defaultOpen:c,displayEmpty:u,labelId:v,MenuProps:b,onClose:x,onOpen:y,open:_,renderValue:P,SelectDisplayProps:h({id:f},w)},m,{classes:m?Qe(A,m.classes):A},p?p.props.inputProps:{})},(O&&C||u)&&N==="outlined"?{notched:!0}:{},{ref:k,className:B(D.props.className,l,F.root)},!p&&{variant:N},R))})});fv.muiName="Select";function MS(e){return ee("MuiTooltip",e)}const ir=te("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),AS=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function NS(e){return Math.round(e*1e5)/1e5}const FS=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:a}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${z(a.split("-")[0])}`],arrow:["arrow"]};return oe(i,MS,t)},BS=I(Qm,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>h({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${ir.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ir.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ir.arrow}`]:h({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${ir.arrow}`]:h({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),DS=I("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${z(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>h({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Se(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${NS(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ir.popper}[data-popper-placement*="left"] &`]:h({transformOrigin:"right center"},t.isRtl?h({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):h({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${ir.popper}[data-popper-placement*="right"] &`]:h({transformOrigin:"left center"},t.isRtl?h({marginRight:"14px"},t.touch&&{marginRight:"24px"}):h({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${ir.popper}[data-popper-placement*="top"] &`]:h({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ir.popper}[data-popper-placement*="bottom"] &`]:h({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),LS=I("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Se(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Vo=!1;const _f=new Co;let Bn={x:0,y:0};function Ho(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Tr=s.forwardRef(function(t,r){var n,o,a,i,l,c,u,d,f,p,m,g,v,b,O,C,x,y,_;const P=ie({props:t,name:"MuiTooltip"}),{arrow:w=!1,children:E,components:R={},componentsProps:$={},describeChild:M=!1,disableFocusListener:T=!1,disableHoverListener:N=!1,disableInteractive:j=!1,disableTouchListener:F=!1,enterDelay:A=100,enterNextDelay:D=0,enterTouchDelay:k=700,followCursor:L=!1,id:Y,leaveDelay:Q=0,leaveTouchDelay:H=1500,onClose:re,onOpen:K,open:V,placement:J="bottom",PopperComponent:fe,PopperProps:ae={},slotProps:le={},slots:$e={},title:Z,TransitionComponent:ge=Ra,TransitionProps:ne}=P,pe=W(P,AS),de=s.isValidElement(E)?E:S.jsx("span",{children:E}),at=kr(),qe=_m(),[De,Je]=s.useState(),[Re,Oe]=s.useState(null),Ke=s.useRef(!1),Ae=j||L,he=qr(),Ge=qr(),Ze=qr(),rt=qr(),[ye,G]=lo({controlled:V,default:!1,name:"Tooltip",state:"open"});let ze=ye;const qt=Oo(Y),Rt=s.useRef(),U=Yt(()=>{Rt.current!==void 0&&(document.body.style.WebkitUserSelect=Rt.current,Rt.current=void 0),rt.clear()});s.useEffect(()=>U,[U]);const Pe=ce=>{_f.clear(),Vo=!0,G(!0),K&&!ze&&K(ce)},Ie=Yt(ce=>{_f.start(800+Q,()=>{Vo=!1}),G(!1),re&&ze&&re(ce),he.start(at.transitions.duration.shortest,()=>{Ke.current=!1})}),kt=ce=>{Ke.current&&ce.type!=="touchstart"||(De&&De.removeAttribute("title"),Ge.clear(),Ze.clear(),A||Vo&&D?Ge.start(Vo?D:A,()=>{Pe(ce)}):Pe(ce))},jr=ce=>{Ge.clear(),Ze.start(Q,()=>{Ie(ce)})},{isFocusVisibleRef:ed,onBlur:nh,onFocus:oh,ref:ah}=Ac(),[,td]=s.useState(!1),rd=ce=>{nh(ce),ed.current===!1&&(td(!1),jr(ce))},nd=ce=>{De||Je(ce.currentTarget),oh(ce),ed.current===!0&&(td(!0),kt(ce))},od=ce=>{Ke.current=!0;const ft=de.props;ft.onTouchStart&&ft.onTouchStart(ce)},ih=ce=>{od(ce),Ze.clear(),he.clear(),U(),Rt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",rt.start(k,()=>{document.body.style.WebkitUserSelect=Rt.current,kt(ce)})},sh=ce=>{de.props.onTouchEnd&&de.props.onTouchEnd(ce),U(),Ze.start(H,()=>{Ie(ce)})};s.useEffect(()=>{if(!ze)return;function ce(ft){(ft.key==="Escape"||ft.key==="Esc")&&Ie(ft)}return document.addEventListener("keydown",ce),()=>{document.removeEventListener("keydown",ce)}},[Ie,ze]);const lh=Me(de.ref,ah,Je,r);!Z&&Z!==0&&(ze=!1);const fs=s.useRef(),ch=ce=>{const ft=de.props;ft.onMouseMove&&ft.onMouseMove(ce),Bn={x:ce.clientX,y:ce.clientY},fs.current&&fs.current.update()},$n={},ps=typeof Z=="string";M?($n.title=!ze&&ps&&!N?Z:null,$n["aria-describedby"]=ze?qt:null):($n["aria-label"]=ps?Z:null,$n["aria-labelledby"]=ze&&!ps?qt:null);const It=h({},$n,pe,de.props,{className:B(pe.className,de.props.className),onTouchStart:od,ref:lh},L?{onMouseMove:ch}:{}),Rn={};F||(It.onTouchStart=ih,It.onTouchEnd=sh),N||(It.onMouseOver=Ho(kt,It.onMouseOver),It.onMouseLeave=Ho(jr,It.onMouseLeave),Ae||(Rn.onMouseOver=kt,Rn.onMouseLeave=jr)),T||(It.onFocus=Ho(nd,It.onFocus),It.onBlur=Ho(rd,It.onBlur),Ae||(Rn.onFocus=nd,Rn.onBlur=rd));const uh=s.useMemo(()=>{var ce;let ft=[{name:"arrow",enabled:!!Re,options:{element:Re,padding:4}}];return(ce=ae.popperOptions)!=null&&ce.modifiers&&(ft=ft.concat(ae.popperOptions.modifiers)),h({},ae.popperOptions,{modifiers:ft})},[Re,ae]),kn=h({},P,{isRtl:qe,arrow:w,disableInteractive:Ae,placement:J,PopperComponentProp:fe,touch:Ke.current}),ms=FS(kn),ad=(n=(o=$e.popper)!=null?o:R.Popper)!=null?n:BS,id=(a=(i=(l=$e.transition)!=null?l:R.Transition)!=null?i:ge)!=null?a:Ra,sd=(c=(u=$e.tooltip)!=null?u:R.Tooltip)!=null?c:DS,ld=(d=(f=$e.arrow)!=null?f:R.Arrow)!=null?d:LS,dh=Kr(ad,h({},ae,(p=le.popper)!=null?p:$.popper,{className:B(ms.popper,ae==null?void 0:ae.className,(m=(g=le.popper)!=null?g:$.popper)==null?void 0:m.className)}),kn),fh=Kr(id,h({},ne,(v=le.transition)!=null?v:$.transition),kn),ph=Kr(sd,h({},(b=le.tooltip)!=null?b:$.tooltip,{className:B(ms.tooltip,(O=(C=le.tooltip)!=null?C:$.tooltip)==null?void 0:O.className)}),kn),mh=Kr(ld,h({},(x=le.arrow)!=null?x:$.arrow,{className:B(ms.arrow,(y=(_=le.arrow)!=null?_:$.arrow)==null?void 0:y.className)}),kn);return S.jsxs(s.Fragment,{children:[s.cloneElement(de,It),S.jsx(ad,h({as:fe??Qm,placement:J,anchorEl:L?{getBoundingClientRect:()=>({top:Bn.y,left:Bn.x,right:Bn.x,bottom:Bn.y,width:0,height:0})}:De,popperRef:fs,open:De?ze:!1,id:qt,transition:!0},Rn,dh,{popperOptions:uh,children:({TransitionProps:ce})=>S.jsx(id,h({timeout:at.transitions.duration.shorter},ce,fh,{children:S.jsxs(sd,h({},ph,{children:[Z,w?S.jsx(ld,h({},mh,{ref:Oe})):null]}))}))}))]})}),zS=s.createContext(),WS=s.createContext();function VS(e){return ee("MuiTableCell",e)}const HS=te("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),US=["align","className","component","padding","scope","size","sortDirection","variant"],qS=e=>{const{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:i}=e,l={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${z(n)}`,o!=="normal"&&`padding${z(o)}`,`size${z(a)}`]};return oe(l,VS,t)},KS=I("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${z(r.size)}`],r.padding!=="normal"&&t[`padding${z(r.padding)}`],r.align!=="inherit"&&t[`align${z(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>h({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?$m(Se(e.palette.divider,1),.88):Sm(Se(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${HS.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),pt=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:l,scope:c,size:u,sortDirection:d,variant:f}=n,p=W(n,US),m=s.useContext(zS),g=s.useContext(WS),v=g&&g.variant==="head";let b;i?b=i:b=v?"th":"td";let O=c;b==="td"?O=void 0:!O&&v&&(O="col");const C=f||g&&g.variant,x=h({},n,{align:o,component:b,padding:l||(m&&m.padding?m.padding:"normal"),size:u||(m&&m.size?m.size:"medium"),sortDirection:d,stickyHeader:C==="head"&&m&&m.stickyHeader,variant:C}),y=qS(x);let _=null;return d&&(_=d==="asc"?"ascending":"descending"),S.jsx(KS,h({as:b,ref:r,className:B(y.root,a),"aria-sort":_,scope:O,ownerState:x},p))});function GS(e){return ee("MuiToolbar",e)}te("MuiToolbar",["root","gutters","regular","dense"]);const XS=["className","component","disableGutters","variant"],YS=e=>{const{classes:t,disableGutters:r,variant:n}=e;return oe({root:["root",!r&&"gutters",n]},GS,t)},QS=I("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>h({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),So=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:l="regular"}=n,c=W(n,XS),u=h({},n,{component:a,disableGutters:i,variant:l}),d=YS(u);return S.jsx(QS,h({as:a,className:B(d.root,o),ref:r,ownerState:u},c))}),TN=er(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),jN=er(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function JS(e){return ee("MuiTextField",e)}te("MuiTextField",["root"]);const ZS=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],e$={standard:au,filled:ou,outlined:su},t$=e=>{const{classes:t}=e;return oe({root:["root"]},JS,t)},r$=I(tE,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cu=s.forwardRef(function(t,r){const n=ie({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:p,fullWidth:m=!1,helperText:g,id:v,InputLabelProps:b,inputProps:O,InputProps:C,inputRef:x,label:y,maxRows:_,minRows:P,multiline:w=!1,name:E,onBlur:R,onChange:$,onFocus:M,placeholder:T,required:N=!1,rows:j,select:F=!1,SelectProps:A,type:D,value:k,variant:L="outlined"}=n,Y=W(n,ZS),Q=h({},n,{autoFocus:a,color:c,disabled:d,error:f,fullWidth:m,multiline:w,required:N,select:F,variant:L}),H=t$(Q),re={};L==="outlined"&&(b&&typeof b.shrink<"u"&&(re.notched=b.shrink),re.label=y),F&&((!A||!A.native)&&(re.id=void 0),re["aria-describedby"]=void 0);const K=Oo(v),V=g&&K?`${K}-helper-text`:void 0,J=y&&K?`${K}-label`:void 0,fe=e$[L],ae=S.jsx(fe,h({"aria-describedby":V,autoComplete:o,autoFocus:a,defaultValue:u,fullWidth:m,multiline:w,name:E,rows:j,maxRows:_,minRows:P,type:D,value:k,id:K,inputRef:x,onBlur:R,onChange:$,onFocus:M,placeholder:T,inputProps:O},re,C));return S.jsxs(r$,h({className:B(H.root,l),disabled:d,error:f,fullWidth:m,ref:r,required:N,color:c,variant:L,ownerState:Q},Y,{children:[y!=null&&y!==""&&S.jsx(_E,h({htmlFor:K,id:J},b,{children:y})),F?S.jsx(fv,h({"aria-describedby":V,id:K,labelId:J,value:k,input:ae},A,{children:i})):ae,g&&S.jsx(iE,h({id:V},p,{children:g}))]}))}),n$=["getTrigger","target"];function o$(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:o}=t,a=e.current;return o&&(e.current=o.pageYOffset!==void 0?o.pageYOffset:o.scrollTop),!r&&a!==void 0&&e.currentn}const a$=typeof window<"u"?window:null;function pv(e={}){const{getTrigger:t=o$,target:r=a$}=e,n=W(e,n$),o=s.useRef(),[a,i]=s.useState(()=>t(o,n));return s.useEffect(()=>{const l=()=>{i(t(o,h({target:r},n)))};return l(),r.addEventListener("scroll",l,{passive:!0}),()=>{r.removeEventListener("scroll",l,{passive:!0})}},[r,t,JSON.stringify(n)]),a}var uu={},Rs={};const i$=Zt(vO);var wf;function Ce(){return wf||(wf=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=i$}(Rs)),Rs}var s$=ve;Object.defineProperty(uu,"__esModule",{value:!0});var du=uu.default=void 0,l$=s$(Ce()),c$=S;du=uu.default=(0,l$.default)((0,c$.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var Gn=function(){return Gn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?s.createElement(E2,null):null,t&&s.createElement(mR,null),s.createElement(L$,null))},yR=s.createElement(hR,null),bR=s.createElement(wv,null),gr="RaAppBar",xr={appBar:"".concat(gr,"-appBar"),toolbar:"".concat(gr,"-toolbar"),menuButton:"".concat(gr,"-menuButton"),menuButtonIconClosed:"".concat(gr,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(gr,"-menuButtonIconOpen"),title:"".concat(gr,"-title")},xR=I(lC,{name:gr,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(xr.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(xr.menuButton)]={marginRight:"0.2em"},t["& .".concat(xr.title)]={},t}),xu={},OR=ve;Object.defineProperty(xu,"__esModule",{value:!0});var kv=xu.default=void 0,CR=OR(Ce()),_R=S;kv=xu.default=(0,CR.default)((0,_R.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var Ou={},wR=ve;Object.defineProperty(Ou,"__esModule",{value:!0});var Iv=Ou.default=void 0,PR=wR(Ce()),ER=S;Iv=Ou.default=(0,PR.default)((0,ER.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var Yn=function(){return Yn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element");var c=n===!1?s.createElement(Nv,Fa({title:r,defaultTitle:t},o)):s.createElement(ik,Fa({title:r,defaultTitle:t,preferenceKey:n},o));return s.createElement(s.Fragment,null,op.createPortal(c,i))},ml=function(){return ml=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,$=U2(b===!1||b===void 0?void 0:!b,u||!R||w||E);cp(f==="submit"&&(c&&(c.onSuccess||c.onError)||p),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var M=s.useCallback(function(j){return Rf(void 0,void 0,void 0,function(){var F;return kf(this,function(A){switch(A.label){case 0:return y!=null&&y.save?[4,y.save(j,Zn(Zn({},c),{transform:p}))]:[3,2];case 1:F=A.sent(),A.label=2;case 2:return F!=null&&zh(F,x.setError),[2]}})})},[x.setError,y,c,p]),T=s.useCallback(function(j){return Rf(void 0,void 0,void 0,function(){return kf(this,function(F){switch(F.label){case 0:return l&&l(j),j.defaultPrevented?[2]:f!=="button"?[3,2]:(j.stopPropagation(),[4,x.handleSubmit(M)(j)]);case 1:F.sent(),F.label=2;case 2:return[2]}})})},[l,f,x,M]),N=i&&C(i,{_:i});return s.createElement(H2,Zn({variant:g,type:f,color:r,"aria-label":N,disabled:$,onClick:T},O),E?s.createElement(as,{sx:z2,size:14,thickness:3,color:"inherit"}):o,N)},z2={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},W2=s.createElement(ng,null),V2="RaSaveButton",H2=I(ut,{name:V2,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),U2=function(e,t){return typeof e>"u"?t:e},q2=function(){return X.createElement(G2,{onClick:X2,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},K2="RaSkipNavigationButton",G2=I(Nt,{name:K2,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}}),X2=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Rl=function(){return Rl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]"u")throw new Error("DatagridRow expects an id prop");var y=lg(),_=se(),P=ur(e);if(!P)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var w=He(e),E=Rr(e),R=E.hasShow||E.hasEdit;if(!w)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var $=(!y||!y.isRowExpandable||y.isRowExpandable(P))&&i,M=Uh(w,f,y&&y.expandSingle),T=M[0],N=M[1],j=s.useState(function(){return If($,o,c)}),F=j[0],A=j[1];s.useEffect(function(){var H=If($,o,c);H!==F&&A(H)},[$,F,o,c]);var D=vc(),k=s.useCallback(function(H){N(),H.stopPropagation()},[N]),L=s.useCallback(function(H){!C||!p||(p(f,H),H.stopPropagation())},[f,p,C]),Y=qh(),Q=s.useCallback(function(H){return mI(void 0,void 0,void 0,function(){var re;return vI(this,function(K){switch(K.label){case 0:return H.persist(),[4,Y({record:P,resource:w,link:typeof m=="function"?function(V,J){return m(V.id,J,V)}:m})];case 1:return re=K.sent(),m==="expand"?(k(H),[2]):m==="toggleSelection"?(L(H),[2]):re===!1||re==null?[2]:(D(re,{state:{_scrollToTop:!0}}),[2])}})})},[P,w,m,D,k,L,Y]);return X.createElement(X.Fragment,null,X.createElement(to,Al({ref:t,className:B(a,(r={},r[q.expandable]=$,r[q.selectable]=C,r[q.clickableRow]=m??R,r)),key:f,style:b,hover:d,onClick:Q},x),i&&X.createElement(pt,{padding:"none",className:q.expandIconCell},$&&X.createElement(pI,{className:B(q.expandIcon,(n={},n[q.expanded]=T,n)),expanded:T,onClick:k,expandContentId:"".concat(f,"-expand")})),c&&X.createElement(pt,{padding:"checkbox"},X.createElement($a,{"aria-label":_("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(q.checkbox),checked:C&&v,onClick:L,disabled:!C})),X.Children.map(o,function(H,re){return s.isValidElement(H)?X.createElement(sg,{key:"".concat(f,"-").concat(H.props.source||re),className:B("column-".concat(H.props.source),q.rowCell),record:P,field:H,resource:w}):null})),$&&T&&X.createElement(to,{key:"".concat(f,"-expand"),id:"".concat(f,"-expand"),className:q.expandedPanel},X.createElement(pt,{colSpan:F},s.isValidElement(i)?i:s.createElement(i))))}),gI=function(e,t){e.children,e.expand;var r=Nl(e,["children","expand"]);t.children,t.expand;var n=Nl(t,["children","expand"]);return Kh(r,n)},ug=s.memo(cg,gI);ug.displayName="PureDatagridRow";var Ka=function(){return Ka=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=AI&&(a=MI,i=!1,t=new RI(t));e:for(;++o0&&x.length>0&&x.every(function(y){return m.includes(y)}),onChange:C,onClick:function(y){return y.stopPropagation()}})),s.Children.map(t,function(y,_){return s.isValidElement(y)?s.createElement(CI,{className:B(q.headerCell,"column-".concat(y.props.source)),sort:d,field:y,isSorting:(d==null?void 0:d.field)===(y.props.sortBy||y.props.source),key:y.props.source||_,updateSort:O||void 0}):null})))};pg.displayName="DatagridHeader";var qI=function(e){var t=e.children,r=e.value;return X.createElement(Lu.Provider,{value:r},t)},Wu={},KI=ve;Object.defineProperty(Wu,"__esModule",{value:!0});var mg=Wu.default=void 0,GI=KI(Ce()),XI=S;mg=Wu.default=(0,GI.default)((0,XI.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Bl=function(){return Bl=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] element instead.")})},[r]);var d=function(){if(!r)return[];var m=a.getValues();return r.filter(function(g){var v=zt(m,g.props.source);return g.props.alwaysOn||c[g.props.source]||!gg(v)})},f=s.useCallback(function(m){return u(m.currentTarget.dataset.key)},[u]),p=s.useMemo(function(){return{getSource:function(m){return m},getLabel:function(m){return"resources.".concat(o,".fields.").concat(m)}}},[o]);return s.createElement(dy,{value:p},s.createElement(gT,cr({className:t},pT(n),{onSubmit:fT}),d().map(function(m){return s.createElement(aT,{key:m.key||m.props.source,filterElement:m,handleHide:f,resource:o,className:Xa.filterFormInput})}),s.createElement("div",{className:Xa.clearFix})))},fT=function(e){return e.preventDefault(),!1},pT=function(e){e.hasCreate,e.resource;var t=Vu(e,["hasCreate","resource"]);return t},mT=function(e,t){return cr(cr({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return fy(cr({},r),n.props.source,n.props.defaultValue)},{})),e)},vT=function(e){return e.preventDefault(),e.stopPropagation(),!1},Ll="RaFilterForm",Xa={clearFix:"".concat(Ll,"-clearFix"),filterFormInput:"".concat(Ll,"-filterFormInput")},gT=I("form",{name:Ll,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flex:"0 1 auto"},t[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(Xa.clearFix)]={clear:"right"},t["& .".concat(Xa.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),hT=function(e,t){var r;return Object.keys(e).reduce(function(n,o){return n[o]=vg(e,o,t),n},(r=bp(t))!==null&&r!==void 0?r:{})},vg=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t]))return zt(r,t,"");if(e[t]instanceof Date)return zt(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(o,a){var i,l=vg(e[t],a,(i=(r||{})[t])!==null&&i!==void 0?i:{});return o[a]=l,o},{});return Object.keys(n).length?n:""}return zt(r,t,"")},gg=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return gg(e[t])}):!1},Hu={},yT=ve;Object.defineProperty(Hu,"__esModule",{value:!0});var hg=Hu.default=void 0,bT=yT(Ce()),xT=S;hg=Hu.default=(0,bT.default)((0,xT.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var OT=s.forwardRef(function(e,t){var r=e.filter,n=e.onShow,o=e.autoFocus,a=He(e),i=s.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]);return s.createElement(ar,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i,autoFocus:o,ref:t,disabled:r.props.disabled},s.createElement(eo,{label:r.props.label,source:r.props.source,resource:a}))}),Uu=function(e){return oi("".concat(e,".savedQueries"),[])},qu=function(e){return Array.isArray(e)?e.filter(function(t){return CT(t)}):[]},CT=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},_T=function(e){var t=e.open,r=e.onClose,n=se(),o=Mt(),a=o.resource,i=o.filterValues,l=o.displayedFilters,c=o.sort,u=o.perPage,d=Uu(a),f=d[0],p=d[1],m=s.useState(""),g=m[0],v=m[1],b=function(x){v(x.target.value)},O=function(x){x.preventDefault(),C()},C=function(){var x={label:g,value:{filter:i,sort:c,perPage:u,displayedFilters:l}},y=qu(f);p(y.concat(x)),v(""),r()};return s.createElement(eu,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},s.createElement(nu,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),s.createElement(ru,null,s.createElement("form",{onSubmit:O},s.createElement(cu,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:g,onChange:b}))),s.createElement(tu,null,s.createElement(ut,{onClick:r},n("ra.action.cancel")),s.createElement(ut,{onClick:C,color:"primary"},n("ra.action.save"))))},Nf=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n must be called inside a ResourceContextProvider, or must provide a resource prop");var d=Uu(c||"")[0],f=vc(),p=Mt(),m=p.displayedFilters,g=m===void 0?{}:m,v=p.filterValues,b=p.perPage,O=p.setFilters,C=p.showFilter,x=p.sort,y=!Or(v,{}),_=qu(d),P=_.some(function(V){return Or(V.value,{filter:v,sort:x,perPage:b,displayedFilters:g})}),w=s.useState(!1),E=w[0],R=w[1],$=s.useRef();if(l===void 0)throw new Error("The component requires the prop to be set");var M=l.filter(function(V){return!V.props.alwaysOn&&!g[V.props.source]&&typeof zt(v,V.props.source)>"u"}),T=s.useCallback(function(V){V.preventDefault(),R(!0),$.current=V.currentTarget},[$,R]),N=s.useCallback(function(){R(!1)},[R]),j=s.useCallback(function(V){var J=V.source,fe=V.defaultValue;C(J,fe===""?void 0:fe),setTimeout(function(){var ae=document.querySelector("input[name='".concat(J,"']"));ae&&ae.focus()},50),R(!1)},[C,R]),F=s.useState(!1),A=F[0],D=F[1],k=function(){D(!1)},L=function(){R(!1),D(!0)},Y=s.useState(!1),Q=Y[0],H=Y[1],re=function(){H(!1)},K=function(){R(!1),H(!0)};return M.length===0&&_.length===0&&!y?null:s.createElement($T,zl({className:r},ET(i)),s.createElement(Nt,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:T,variant:a,size:o},s.createElement(hg,null)),s.createElement(ss,{open:E,anchorEl:$.current,onClose:N},M.map(function(V,J){return s.createElement(OT,{key:V.props.source,filter:V,resource:c,onShow:j,autoFocus:J===0})}),_.map(function(V,J){return Or(V.value,{filter:v,sort:x,perPage:b,displayedFilters:g})?s.createElement(ar,{onClick:K,key:J},u("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:V.label})):s.createElement(ar,{onClick:function(){var fe,ae;f({search:py.stringify({filter:JSON.stringify(V.value.filter),sort:(fe=V.value.sort)===null||fe===void 0?void 0:fe.field,order:(ae=V.value.sort)===null||ae===void 0?void 0:ae.order,page:1,perPage:V.value.perPage,displayedFilters:JSON.stringify(V.value.displayedFilters)})}),R(!1)},key:J},V.label)}),y&&!P&&!n&&s.createElement(ar,{onClick:L},u("ra.saved_queries.new_label",{_:"Save current query..."})),y&&s.createElement(ar,{onClick:function(){O({},{}),R(!1)}},u("ra.action.remove_all_filters",{_:"Remove all filters"}))),!n&&s.createElement(s.Fragment,null,s.createElement(_T,{open:A,onClose:k}),s.createElement(wT,{open:Q,onClose:re})))},ET=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=yg(e,["displayedFilters","filterValues","showFilter"]);return t},ST="RaFilterButton",$T=I("div",{name:ST,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),RT=my,kT=xp,IT=1,TT=2;function jT(e,t,r,n){var o=r.length,a=o,i=!n;if(e==null)return!a;for(e=Object(e);o--;){var l=r[o];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++oO-1)throw new Error(v("ra.navigation.page_out_of_boundaries",{page:E+1}));m(E+1)},[O,m,v]),x=s.useCallback(function(w){g(w.target.value)},[g]),y=s.useCallback(function(w){var E=w.from,R=w.to,$=w.count;return $===-1&&u?v("ra.navigation.partial_page_range_info",{offsetBegin:E,offsetEnd:R,_:"%{from}-%{to} of more than %{to}"}):v("ra.navigation.page_range_info",{offsetBegin:E,offsetEnd:R,total:$===-1?R:$,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[v,u]),_=s.useCallback(function(w){return v("ra.navigation.".concat(w),{_:"Go to ".concat(w," page")})},[v]);if(c)return s.createElement(So,{variant:"dense"});if(p===0||d<1||p!=null&&d>O)return a!=null,null;if(b)return s.createElement(dd,Ya({count:p??-1,rowsPerPage:f,page:d-1,onPageChange:C,rowsPerPageOptions:Sj,component:"span",labelDisplayedRows:y},cn(i)));var P=n||(!c&&p!=null?Oj:void 0);return s.createElement(dd,Ya({count:p??-1,rowsPerPage:f,page:d-1,onPageChange:C,onRowsPerPageChange:x,ActionsComponent:P,nextIconButtonProps:{disabled:!u},component:"span",labelRowsPerPage:v("ra.navigation.page_rows_per_page"),labelDisplayedRows:y,getItemAriaLabel:_,rowsPerPageOptions:r},cn(i)))}),Ej=[5,10,25,50],Sj=[],Ku={},$j=ve;Object.defineProperty(Ku,"__esModule",{value:!0});var Vl=Ku.default=void 0,Rj=$j(Ce()),kj=S;Vl=Ku.default=(0,Rj.default)((0,kj.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var Qa=function(){return Qa=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!f.message?"ra.auth.sign_in_error":f.message,{type:"error",messageArgs:{_:typeof f=="string"?f:f&&f.message?f.message:void 0}})})};return s.createElement(Nj,{onSubmit:u,mode:"onChange",noValidate:!0,className:r},s.createElement(ns,{className:en.content},s.createElement(Df,{autoFocus:!0,source:"username",label:l("ra.auth.username"),autoComplete:"username",validate:ud()}),s.createElement(Df,{source:"password",label:l("ra.auth.password"),type:"password",autoComplete:"current-password",validate:ud()}),s.createElement(ut,{variant:"contained",type:"submit",color:"primary",disabled:o,fullWidth:!0,className:en.button},o?s.createElement(as,{className:en.icon,size:19,thickness:3}):l("ra.auth.sign_in"))))},ca="RaLoginForm",en={content:"".concat(ca,"-content"),button:"".concat(ca,"-button"),icon:"".concat(ca,"-icon")},Nj=I(_p,{name:ca,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(en.content)]={width:300},t["& .".concat(en.button)]={marginTop:r.spacing(2)},t["& .".concat(en.icon)]={margin:r.spacing(.3)},t}),Hl=function(){return Hl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&d?Yj:r;return o?s.createElement(Jj,Gl({className:B("edit-page",a)},u),c!==!1&&s.createElement(Sn,{title:c,defaultTitle:m,preferenceKey:"".concat(p,".edit.title")}),v,s.createElement("div",{className:B(nn.main,(t={},t[nn.noActions]=!v,t))},s.createElement(l,{className:nn.card},g?o:s.createElement(ns,null," ")),n)):null},fa="RaEdit",nn={main:"".concat(fa,"-main"),noActions:"".concat(fa,"-noActions"),card:"".concat(fa,"-card")},Jj=I("div",{name:fa,overridesResolver:function(e,t){return t.root}})((Dn={},Dn["& .".concat(nn.main)]={display:"flex",alignItems:"flex-start"},Dn["& .".concat(nn.noActions)]={marginTop:"1em"},Dn["& .".concat(nn.card)]={flex:"1 1 auto"},Dn)),Xl=function(){return Xl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&b?dM:r;return!o||!v&&u?null:s.createElement(pM,Jl({className:B("show-page",a)},f),d!==!1&&s.createElement(Sn,{title:d,defaultTitle:g,preferenceKey:"".concat(m,".show.title")}),O!==!1&&O,s.createElement("div",{className:B(an.main,(t={},t[an.noActions]=!O,t))},s.createElement(l,{className:an.card},o),n))},ma="RaShow",an={main:"".concat(ma,"-main"),noActions:"".concat(ma,"-noActions"),card:"".concat(ma,"-card")},pM=I("div",{name:ma,overridesResolver:function(e,t){return t.root}})((Ln={},Ln["& .".concat(an.main)]={display:"flex"},Ln["& .".concat(an.noActions)]={marginTop:"1em"},Ln["& .".concat(an.card)]={flex:"1 1 auto"},Ln)),Zl=function(){return Zl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),EM=function(e){return e.stopPropagation()},Lf=function(e){var t=e.clickable;return s.createElement(Jm,{sx:{cursor:"inherit"},size:"small",label:s.createElement(My,null),clickable:t})},nc=function(){return nc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&Wf.call(t.callee)==="[object Function]"),n},Ms,Vf;function ZM(){if(Vf)return Ms;Vf=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Mg,o=Object.prototype.propertyIsEnumerable,a=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(p){var m=p.constructor;return m&&m.prototype===p},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!u["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{c(window[p])}catch{return!0}}catch{return!0}return!1}(),f=function(p){if(typeof window>"u"||!d)return c(p);try{return c(p)}catch{return!1}};e=function(m){var g=m!==null&&typeof m=="object",v=r.call(m)==="[object Function]",b=n(m),O=g&&r.call(m)==="[object String]",C=[];if(!g&&!v&&!b)throw new TypeError("Object.keys called on a non-object");var x=i&&v;if(O&&m.length>0&&!t.call(m,0))for(var y=0;y0)for(var _=0;_"u"||!We?ue:We(Uint8Array),wr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ue:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ue:ArrayBuffer,"%ArrayIteratorPrototype%":Lr&&We?We([][Symbol.iterator]()):ue,"%AsyncFromSyncIteratorPrototype%":ue,"%AsyncFunction%":Ur,"%AsyncGenerator%":Ur,"%AsyncGeneratorFunction%":Ur,"%AsyncIteratorPrototype%":Ur,"%Atomics%":typeof Atomics>"u"?ue:Atomics,"%BigInt%":typeof BigInt>"u"?ue:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ue:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ue:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ue:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":wA,"%eval%":eval,"%EvalError%":PA,"%Float32Array%":typeof Float32Array>"u"?ue:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ue:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ue:FinalizationRegistry,"%Function%":Fg,"%GeneratorFunction%":Ur,"%Int8Array%":typeof Int8Array>"u"?ue:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ue:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ue:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Lr&&We?We(We([][Symbol.iterator]())):ue,"%JSON%":typeof JSON=="object"?JSON:ue,"%Map%":typeof Map>"u"?ue:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Lr||!We?ue:We(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ue:Promise,"%Proxy%":typeof Proxy>"u"?ue:Proxy,"%RangeError%":EA,"%ReferenceError%":SA,"%Reflect%":typeof Reflect>"u"?ue:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ue:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Lr||!We?ue:We(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ue:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Lr&&We?We(""[Symbol.iterator]()):ue,"%Symbol%":Lr?Symbol:ue,"%SyntaxError%":bn,"%ThrowTypeError%":RA,"%TypedArray%":IA,"%TypeError%":ln,"%Uint8Array%":typeof Uint8Array>"u"?ue:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ue:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ue:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ue:Uint32Array,"%URIError%":$A,"%WeakMap%":typeof WeakMap>"u"?ue:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ue:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ue:WeakSet};if(We)try{null.error}catch(e){var TA=We(We(e));wr["%Error.prototype%"]=TA}var jA=function e(t){var r;if(t==="%AsyncFunction%")r=Ns("async function () {}");else if(t==="%GeneratorFunction%")r=Ns("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Ns("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&We&&(r=We(o.prototype))}return wr[t]=r,r},Gf={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},To=Yu,ri=Ng,MA=To.call(Function.call,Array.prototype.concat),AA=To.call(Function.apply,Array.prototype.splice),Xf=To.call(Function.call,String.prototype.replace),ni=To.call(Function.call,String.prototype.slice),NA=To.call(Function.call,RegExp.prototype.exec),FA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,BA=/\\(\\)?/g,DA=function(t){var r=ni(t,0,1),n=ni(t,-1);if(r==="%"&&n!=="%")throw new bn("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new bn("invalid intrinsic syntax, expected opening `%`");var o=[];return Xf(t,FA,function(a,i,l,c){o[o.length]=l?Xf(c,BA,"$1"):i||a}),o},LA=function(t,r){var n=t,o;if(ri(Gf,n)&&(o=Gf[n],n="%"+o[0]+"%"),ri(wr,n)){var a=wr[n];if(a===Ur&&(a=jA(n)),typeof a>"u"&&!r)throw new ln("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new bn("intrinsic "+t+" does not exist!")},jo=function(t,r){if(typeof t!="string"||t.length===0)throw new ln("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ln('"allowMissing" argument must be a boolean');if(NA(/^%?[^%]*%?$/,t)===null)throw new bn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=DA(t),o=n.length>0?n[0]:"",a=LA("%"+o+"%",r),i=a.name,l=a.value,c=!1,u=a.alias;u&&(o=u[0],AA(n,MA([0,1],u)));for(var d=1,f=!0;d=n.length){var v=_r(l,p);f=!!v,f&&"get"in v&&!("originalValue"in v.get)?l=v.get:l=l[p]}else f=ri(l,p),l=l[p];f&&!c&&(wr[i]=l)}}return l},zA=jo,ha=zA("%Object.defineProperty%",!0)||!1;if(ha)try{ha({},"a",{value:1})}catch{ha=!1}var Qu=ha,WA=jo,ya=WA("%Object.getOwnPropertyDescriptor%",!0);if(ya)try{ya([],"length")}catch{ya=null}var Bg=ya,Yf=Qu,VA=Ag,zr=Io,Qf=Bg,Dg=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new zr("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new zr("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new zr("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new zr("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new zr("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new zr("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,c=!!Qf&&Qf(t,r);if(Yf)Yf(t,r,{configurable:i===null&&c?c.configurable:!i,enumerable:o===null&&c?c.enumerable:!o,value:n,writable:a===null&&c?c.writable:!a});else if(l||!o&&!a&&!i)t[r]=n;else throw new VA("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},dc=Qu,Lg=function(){return!!dc};Lg.hasArrayLengthDefineBug=function(){if(!dc)return null;try{return dc([],"length",{value:1}).length!==1}catch{return!0}};var zg=Lg,HA=rA,UA=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",qA=Object.prototype.toString,KA=Array.prototype.concat,Jf=Dg,GA=function(e){return typeof e=="function"&&qA.call(e)==="[object Function]"},Wg=zg(),XA=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!GA(n)||!n())return}Wg?Jf(e,t,r,!0):Jf(e,t,r)},Vg=function(e,t){var r=arguments.length>2?arguments[2]:{},n=HA(t);UA&&(n=KA.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||JA(r)!==r)throw new tp("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in t&&ep){var i=ep(t,"length");i&&!i.configurable&&(o=!1),i&&!i.writable&&(a=!1)}return(o||a||!n)&&(QA?Zf(t,"length",r,!0,!0):Zf(t,"length",r)),t};(function(e){var t=Yu,r=jo,n=ZA,o=Io,a=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||t.call(i,a),c=Qu,u=r("%Math.max%");e.exports=function(p){if(typeof p!="function")throw new o("a function is required");var m=l(t,i,arguments);return n(m,1+u(0,p.length-(arguments.length-1)),!0)};var d=function(){return l(t,a,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d})(Ug);var qg=Ug.exports,eN=Io,tN=function(t){if(t==null)throw new eN(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},Kg=jo,Gg=qg,rN=Gg(Kg("String.prototype.indexOf")),nN=function(t,r){var n=Kg(t,!!r);return typeof n=="function"&&rN(t,".prototype.")>-1?Gg(n):n},oN=tN,Xg=nN,aN=Xg("Object.prototype.propertyIsEnumerable"),iN=Xg("Array.prototype.push"),Yg=function(t){var r=oN(t),n=[];for(var o in r)aN(r,o)&&iN(n,[o,r[o]]);return n},sN=Yg,Qg=function(){return typeof Object.entries=="function"?Object.entries:sN},lN=Qg,cN=Hg,uN=function(){var t=lN();return cN(Object,{entries:t},{entries:function(){return Object.entries!==t}}),t},dN=Hg,fN=qg,pN=Yg,Jg=Qg,mN=uN,Zg=fN(Jg(),Object);dN(Zg,{getPolyfill:Jg,implementation:pN,shim:mN});var vN=Zg,Ju=vN,eh=Ng,gN=function(t){},fc=String.prototype.replace,th=String.prototype.split,ba="||||",Go=function(e){var t=e%100,r=t%10;return t!==11&&r===1?0:2<=r&&r<=4&&!(t>=12&&t<=14)?1:2},rh={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:Go,chinese:function(){return 0},croatian:Go,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:Go,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2},ukrainian:Go},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function hN(e){for(var t={},r=Ju(e),n=0;n0?Ye(xn,--ct):0,un--,Le===10&&(un=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 Gr(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 Gr([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 Gr([Tn(t,{props:[xe(a,/:(read-\w+)/,":"+xa+"$1")]})],o);case"::placeholder":return Gr([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=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Bb={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Db=!1,Lb=/[A-Z]|^ms/g,zb=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Hp=function(t){return t.charCodeAt(1)===45},vd=function(t){return t!=null&&typeof t!="boolean"},gs=Rp(function(e){return Hp(e)?e:e.replace(Lb,"-$&").toLowerCase()}),gd=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(zb,function(n,o,a){return Dt={name:o,styles:a,next:Dt},o})}return Bb[t]!==1&&!Hp(t)&&typeof r=="number"&&r!==0?r+"px":r},Wb="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ao(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Dt={name:o.name,styles:o.styles,next:Dt},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Dt={name:i.name,styles:i.styles,next:Dt},i=i.next;var l=a.styles+";";return l}return Vb(e,t,r)}case"function":{if(e!==void 0){var c=Dt,u=r(e);return Dt=c,ao(e,t,u)}break}}var d=r;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function Vb(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?Gb:Xb},Od=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Yb=!1,Qb=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Wp(r,n,o),Ub(function(){return Vp(r,n,o)}),null},Jb=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var l=Od(t,r,n),c=l||xd(o),u=!c("as");return function(){var d=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,m=1;mt(t0(o)?r:o):t;return S.jsx(Kb,{styles:n})}function Pc(e,t){return Ws(e,t)}const Yp=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},r0=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Xp,StyledEngineProvider:e0,ThemeContext:ho,css:bi,default:Pc,internal_processStyles:Yp,keyframes:On},Symbol.toStringTag,{value:"Module"}));function Xt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Qp(e){if(!Xt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Qp(e[r])}),t}function Qe(e,t,r={clone:!0}){const n=r.clone?h({},e):e;return Xt(e)&&Xt(t)&&Object.keys(t).forEach(o=>{Xt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Xt(e[o])?n[o]=Qe(e[o],t[o],r):r.clone?n[o]=Xt(t[o])?Qp(t[o]):t[o]:n[o]=t[o]}),n}const n0=Object.freeze(Object.defineProperty({__proto__:null,default:Qe,isPlainObject:Xt},Symbol.toStringTag,{value:"Module"})),o0=["values","unit","step"],a0=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>h({},r,{[n.key]:n.val}),{})};function Jp(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=W(e,o0),a=a0(t),i=Object.keys(a);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function u(p,m){const g=i.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:m)-n/100}${r})`}function d(p){return i.indexOf(p)+1`@media (min-width:${Ec[e]}px)`};function jt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||Cd;return t.reduce((i,l,c)=>(i[a.up(a.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const a=n.breakpoints||Cd;return Object.keys(t).reduce((i,l)=>{if(Object.keys(a.values||Ec).indexOf(l)!==-1){const c=a.up(l);i[c]=r(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return r(t)}function Zp(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function em(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function s0(e,...t){const r=Zp(e),n=[r,...t].reduce((o,a)=>Qe(o,a),{});return em(Object.keys(r),n)}function l0(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a{e[o]!=null&&(r[o]=!0)}),r}function ys({values:e,breakpoints:t,base:r}){const n=r||l0(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,l,c)=>(Array.isArray(e)?(i[l]=e[c]!=null?e[c]:e[a],a=c):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[a],a=l):i[l]=e,i),{})}function z(e){if(typeof e!="string")throw new Error(Qt(7));return e.charAt(0).toUpperCase()+e.slice(1)}const c0=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"}));function xi(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Oa(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=xi(e,r)||n,t&&(o=t(o,n,e)),o}function Fe(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,u=xi(c,n)||{};return jt(i,l,f=>{let p=Oa(u,o,f);return f===p&&typeof f=="string"&&(p=Oa(u,o,`${t}${f==="default"?"":z(f)}`,f)),r===!1?p:{[r]:p}})};return a.propTypes={},a.filterProps=[t],a}function u0(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const d0={m:"margin",p:"padding"},f0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_d={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},p0=u0(e=>{if(e.length>2)if(_d[e])e=_d[e];else return[e];const[t,r]=e.split(""),n=d0[t],o=f0[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),Sc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$c=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Sc,...$c];function yo(e,t,r,n){var o;const a=(o=xi(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function Rc(e){return yo(e,"spacing",8)}function Er(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function m0(e,t){return r=>e.reduce((n,o)=>(n[o]=Er(t,r),n),{})}function v0(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=p0(r),a=m0(o,n),i=e[r];return jt(e,i,a)}function tm(e,t){const r=Rc(e.theme);return Object.keys(e).map(n=>v0(e,t,n,r)).reduce(Vn,{})}function Te(e){return tm(e,Sc)}Te.propTypes={};Te.filterProps=Sc;function je(e){return tm(e,$c)}je.propTypes={};je.filterProps=$c;function g0(e=8){if(e.mui)return e;const t=Rc({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function Oi(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?Vn(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function xt(e){return typeof e!="number"?e:`${e}px solid`}function Et(e,t){return Fe({prop:e,themeKey:"borders",transform:t})}const h0=Et("border",xt),y0=Et("borderTop",xt),b0=Et("borderRight",xt),x0=Et("borderBottom",xt),O0=Et("borderLeft",xt),C0=Et("borderColor"),_0=Et("borderTopColor"),w0=Et("borderRightColor"),P0=Et("borderBottomColor"),E0=Et("borderLeftColor"),S0=Et("outline",xt),$0=Et("outlineColor"),Ci=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=yo(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Er(t,n)});return jt(e,e.borderRadius,r)}return null};Ci.propTypes={};Ci.filterProps=["borderRadius"];Oi(h0,y0,b0,x0,O0,C0,_0,w0,P0,E0,Ci,S0,$0);const _i=e=>{if(e.gap!==void 0&&e.gap!==null){const t=yo(e.theme,"spacing",8),r=n=>({gap:Er(t,n)});return jt(e,e.gap,r)}return null};_i.propTypes={};_i.filterProps=["gap"];const wi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=yo(e.theme,"spacing",8),r=n=>({columnGap:Er(t,n)});return jt(e,e.columnGap,r)}return null};wi.propTypes={};wi.filterProps=["columnGap"];const Pi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=yo(e.theme,"spacing",8),r=n=>({rowGap:Er(t,n)});return jt(e,e.rowGap,r)}return null};Pi.propTypes={};Pi.filterProps=["rowGap"];const R0=Fe({prop:"gridColumn"}),k0=Fe({prop:"gridRow"}),I0=Fe({prop:"gridAutoFlow"}),T0=Fe({prop:"gridAutoColumns"}),j0=Fe({prop:"gridAutoRows"}),M0=Fe({prop:"gridTemplateColumns"}),A0=Fe({prop:"gridTemplateRows"}),N0=Fe({prop:"gridTemplateAreas"}),F0=Fe({prop:"gridArea"});Oi(_i,wi,Pi,R0,k0,I0,T0,j0,M0,A0,N0,F0);function Xr(e,t){return t==="grey"?t:e}const B0=Fe({prop:"color",themeKey:"palette",transform:Xr}),D0=Fe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xr}),L0=Fe({prop:"backgroundColor",themeKey:"palette",transform:Xr});Oi(B0,D0,L0);function mt(e){return e<=1&&e!==0?`${e*100}%`:e}const z0=Fe({prop:"width",transform:mt}),kc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Ec[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:mt(r)}};return jt(e,e.maxWidth,t)}return null};kc.filterProps=["maxWidth"];const W0=Fe({prop:"minWidth",transform:mt}),V0=Fe({prop:"height",transform:mt}),H0=Fe({prop:"maxHeight",transform:mt}),U0=Fe({prop:"minHeight",transform:mt});Fe({prop:"size",cssProperty:"width",transform:mt});Fe({prop:"size",cssProperty:"height",transform:mt});const q0=Fe({prop:"boxSizing"});Oi(z0,kc,W0,V0,H0,U0,q0);const bo={border:{themeKey:"borders",transform:xt},borderTop:{themeKey:"borders",transform:xt},borderRight:{themeKey:"borders",transform:xt},borderBottom:{themeKey:"borders",transform:xt},borderLeft:{themeKey:"borders",transform:xt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:xt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ci},color:{themeKey:"palette",transform:Xr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xr},backgroundColor:{themeKey:"palette",transform:Xr},p:{style:je},pt:{style:je},pr:{style:je},pb:{style:je},pl:{style:je},px:{style:je},py:{style:je},padding:{style:je},paddingTop:{style:je},paddingRight:{style:je},paddingBottom:{style:je},paddingLeft:{style:je},paddingX:{style:je},paddingY:{style:je},paddingInline:{style:je},paddingInlineStart:{style:je},paddingInlineEnd:{style:je},paddingBlock:{style:je},paddingBlockStart:{style:je},paddingBlockEnd:{style:je},m:{style:Te},mt:{style:Te},mr:{style:Te},mb:{style:Te},ml:{style:Te},mx:{style:Te},my:{style:Te},margin:{style:Te},marginTop:{style:Te},marginRight:{style:Te},marginBottom:{style:Te},marginLeft:{style:Te},marginX:{style:Te},marginY:{style:Te},marginInline:{style:Te},marginInlineStart:{style:Te},marginInlineEnd:{style:Te},marginBlock:{style:Te},marginBlockStart:{style:Te},marginBlockEnd:{style:Te},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_i},rowGap:{style:Pi},columnGap:{style:wi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:mt},maxWidth:{style:kc},minWidth:{transform:mt},height:{transform:mt},maxHeight:{transform:mt},minHeight:{transform:mt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function K0(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function G0(e,t){return typeof e=="function"?e(t):e}function rm(){function e(r,n,o,a){const i={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:d,style:f}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const p=xi(o,u)||{};return f?f(i):jt(i,n,g=>{let v=Oa(p,d,g);return g===v&&typeof g=="string"&&(v=Oa(p,d,`${r}${g==="default"?"":z(g)}`,g)),c===!1?v:{[c]:v}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:bo;function l(c){let u=c;if(typeof c=="function")u=c(a);else if(typeof c!="object")return c;if(!u)return null;const d=Zp(a.breakpoints),f=Object.keys(d);let p=d;return Object.keys(u).forEach(m=>{const g=G0(u[m],a);if(g!=null)if(typeof g=="object")if(i[m])p=Vn(p,e(m,g,a,i));else{const v=jt({theme:a},g,b=>({[m]:b}));K0(v,g)?p[m]=t({sx:g,theme:a}):p=Vn(p,v)}else p=Vn(p,e(m,g,a,i))}),em(f,p)}return Array.isArray(o)?o.map(l):l(o)}return t}const Cn=rm();Cn.filterProps=["sx"];function nm(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const X0=["breakpoints","palette","spacing","shape"];function xo(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=W(e,X0),l=Jp(r),c=g0(o);let u=Qe({breakpoints:l,direction:"ltr",components:{},palette:h({mode:"light"},n),spacing:c,shape:h({},i0,a)},i);return u.applyStyles=nm,u=t.reduce((d,f)=>Qe(d,f),u),u.unstable_sxConfig=h({},bo,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return Cn({sx:f,theme:this})},u}const Y0=Object.freeze(Object.defineProperty({__proto__:null,default:xo,private_createBreakpoints:Jp,unstable_applyStyles:nm},Symbol.toStringTag,{value:"Module"}));function Q0(e){return Object.keys(e).length===0}function Ic(e=null){const t=s.useContext(ho);return!t||Q0(t)?e:t}const J0=xo();function Ei(e=J0){return Ic(e)}function Z0({styles:e,themeId:t,defaultTheme:r={}}){const n=Ei(r),o=typeof e=="function"?e(t&&n[t]||n):e;return S.jsx(Xp,{styles:o})}const e1=["sx"],t1=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:bo;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function Si(e){const{sx:t}=e,r=W(e,e1),{systemProps:n,otherProps:o}=t1(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return Xt(l)?h({},n,l):n}:a=h({},n,t),h({},o,{sx:a})}const r1=Object.freeze(Object.defineProperty({__proto__:null,default:Cn,extendSxProp:Si,unstable_createStyleFunctionSx:rm,unstable_defaultSxConfig:bo},Symbol.toStringTag,{value:"Module"})),wd=e=>e,n1=()=>{let e=wd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=wd}}},om=n1();function am(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;tl!=="theme"&&l!=="sx"&&l!=="as"})(Cn);return s.forwardRef(function(c,u){const d=Ei(r),f=Si(c),{className:p,component:m="div"}=f,g=W(f,o1);return S.jsx(a,h({as:m,ref:u,className:B(p,o?o(n):n),theme:t&&d[t]||d},g))})}const a1={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Z(e,t,r="Mui"){const n=a1[t];return n?`${r}-${n}`:`${om.generate(e)}-${t}`}function ee(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Z(e,o,r)}),n}var im={exports:{}},we={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Tc=Symbol.for("react.element"),jc=Symbol.for("react.portal"),$i=Symbol.for("react.fragment"),Ri=Symbol.for("react.strict_mode"),ki=Symbol.for("react.profiler"),Ii=Symbol.for("react.provider"),Ti=Symbol.for("react.context"),i1=Symbol.for("react.server_context"),ji=Symbol.for("react.forward_ref"),Mi=Symbol.for("react.suspense"),Ai=Symbol.for("react.suspense_list"),Ni=Symbol.for("react.memo"),Fi=Symbol.for("react.lazy"),s1=Symbol.for("react.offscreen"),sm;sm=Symbol.for("react.module.reference");function St(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Tc:switch(e=e.type,e){case $i:case ki:case Ri:case Mi:case Ai:return e;default:switch(e=e&&e.$$typeof,e){case i1:case Ti:case ji:case Fi:case Ni:case Ii:return e;default:return t}}case jc:return t}}}we.ContextConsumer=Ti;we.ContextProvider=Ii;we.Element=Tc;we.ForwardRef=ji;we.Fragment=$i;we.Lazy=Fi;we.Memo=Ni;we.Portal=jc;we.Profiler=ki;we.StrictMode=Ri;we.Suspense=Mi;we.SuspenseList=Ai;we.isAsyncMode=function(){return!1};we.isConcurrentMode=function(){return!1};we.isContextConsumer=function(e){return St(e)===Ti};we.isContextProvider=function(e){return St(e)===Ii};we.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Tc};we.isForwardRef=function(e){return St(e)===ji};we.isFragment=function(e){return St(e)===$i};we.isLazy=function(e){return St(e)===Fi};we.isMemo=function(e){return St(e)===Ni};we.isPortal=function(e){return St(e)===jc};we.isProfiler=function(e){return St(e)===ki};we.isStrictMode=function(e){return St(e)===Ri};we.isSuspense=function(e){return St(e)===Mi};we.isSuspenseList=function(e){return St(e)===Ai};we.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$i||e===ki||e===Ri||e===Mi||e===Ai||e===s1||typeof e=="object"&&e!==null&&(e.$$typeof===Fi||e.$$typeof===Ni||e.$$typeof===Ii||e.$$typeof===Ti||e.$$typeof===ji||e.$$typeof===sm||e.getModuleId!==void 0)};we.typeOf=St;im.exports=we;var Pd=im.exports;const l1=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function lm(e){const t=`${e}`.match(l1);return t&&t[1]||""}function cm(e,t=""){return e.displayName||e.name||lm(e)||t}function Ed(e,t,r){const n=cm(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function c1(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return cm(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Pd.ForwardRef:return Ed(e,e.render,"ForwardRef");case Pd.Memo:return Ed(e,e.type,"memo");default:return}}}const u1=Object.freeze(Object.defineProperty({__proto__:null,default:c1,getFunctionName:lm},Symbol.toStringTag,{value:"Module"})),d1=["ownerState"],f1=["variants"],p1=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function m1(e){return Object.keys(e).length===0}function v1(e){return typeof e=="string"&&e.charCodeAt(0)>96}function bs(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const g1=xo(),h1=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function No({defaultTheme:e,theme:t,themeId:r}){return m1(t)?e:t[r]||t}function y1(e){return e?(t,r)=>r[e]:null}function Jo(e,t){let{ownerState:r}=t,n=W(t,d1);const o=typeof e=="function"?e(h({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Jo(a,h({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=W(o,f1);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props(h({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(h({ownerState:r},n,r)):c.style))}),l}return o}function b1(e={}){const{themeId:t,defaultTheme:r=g1,rootShouldForwardProp:n=bs,slotShouldForwardProp:o=bs}=e,a=i=>Cn(h({},i,{theme:No(h({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{Yp(i,_=>_.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=y1(h1(u))}=l,m=W(l,p1),g=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let b,O=bs;u==="Root"||u==="root"?O=n:u?O=o:v1(i)&&(O=void 0);const C=Pc(i,h({shouldForwardProp:O,label:b},m)),x=_=>typeof _=="function"&&_.__emotion_real!==_||Xt(_)?P=>Jo(_,h({},P,{theme:No({theme:P.theme,defaultTheme:r,themeId:t})})):_,y=(_,...P)=>{let w=x(_);const E=P?P.map(x):[];c&&p&&E.push(M=>{const T=No(h({},M,{defaultTheme:r,themeId:t}));if(!T.components||!T.components[c]||!T.components[c].styleOverrides)return null;const N=T.components[c].styleOverrides,j={};return Object.entries(N).forEach(([F,A])=>{j[F]=Jo(A,h({},M,{theme:T}))}),p(M,j)}),c&&!g&&E.push(M=>{var T;const N=No(h({},M,{defaultTheme:r,themeId:t})),j=N==null||(T=N.components)==null||(T=T[c])==null?void 0:T.variants;return Jo({variants:j},h({},M,{theme:N}))}),v||E.push(a);const R=E.length-P.length;if(Array.isArray(_)&&R>0){const M=new Array(R).fill("");w=[..._,...M],w.raw=[..._.raw,...M]}const $=C(w,...E);return i.muiName&&($.muiName=i.muiName),$};return C.withConfig&&(y.withConfig=C.withConfig),y}}const x1=b1();function io(e,t){const r=h({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=h({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=h({},a),Object.keys(o).forEach(i=>{r[n][i]=io(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function um(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:io(t.components[r].defaultProps,n)}function dm({props:e,name:t,defaultTheme:r,themeId:n}){let o=Ei(r);return n&&(o=o[n]||o),um({theme:o,name:t,props:e})}const Ct=typeof window<"u"?s.useLayoutEffect:s.useEffect;function O1(e,t,r,n,o){const[a,i]=s.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return Ct(()=>{let l=!0;if(!r)return;const c=r(e),u=()=>{l&&i(c.matches)};return u(),c.addListener(u),()=>{l=!1,c.removeListener(u)}},[e,r]),a}const fm=s.useSyncExternalStore;function C1(e,t,r,n,o){const a=s.useCallback(()=>t,[t]),i=s.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:d}=n(e);return()=>d}return a},[a,e,n,o,r]),[l,c]=s.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const d=r(e);return[()=>d.matches,f=>(d.addListener(f),()=>{d.removeListener(f)})]},[a,r,e]);return fm(c,l,i)}function dt(e,t={}){const r=Ic(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:l=!1}=um({name:"MuiUseMediaQuery",props:t,theme:r});let c=typeof e=="function"?e(r):e;return c=c.replace(/^@media( ?)/m,""),(fm!==void 0?C1:O1)(c,o,a,i,l)}function pm(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const _1=Object.freeze(Object.defineProperty({__proto__:null,default:pm},Symbol.toStringTag,{value:"Module"}));function mm(e,t=0,r=1){return pm(e,t,r)}function w1(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Mc(e){if(e.type)return e;if(e.charAt(0)==="#")return Mc(w1(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Qt(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Qt(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}function vm(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function so(e,t){return e=Mc(e),t=mm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,vm(e)}function P1(e,t){if(e=Mc(e),t=mm(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return vm(e)}function Hs(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Bi(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function E1(e,t){return()=>null}function Zo(e,t){var r,n;return s.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function tt(e){return e&&e.ownerDocument||document}function Ht(e){return tt(e).defaultView||window}function S1(e,t){return()=>null}function Ca(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Sd=0;function $1(e){const[t,r]=s.useState(e),n=e||t;return s.useEffect(()=>{t==null&&(Sd+=1,r(`mui-${Sd}`))},[t]),n}const $d=Bs.useId;function Oo(e){if($d!==void 0){const t=$d();return e??t}return $1(e)}function R1(e,t,r,n,o){return null}function lo({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=s.useRef(e!==void 0),[a,i]=s.useState(t),l=o?e:a,c=s.useCallback(u=>{o||i(u)},[]);return[l,c]}function Yt(e){const t=s.useRef(e);return Ct(()=>{t.current=e}),s.useRef((...r)=>(0,t.current)(...r)).current}function Me(...e){return s.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Ca(r,t)})},e)}const Rd={};function k1(e,t){const r=s.useRef(Rd);return r.current===Rd&&(r.current=e(t)),r}const I1=[];function T1(e){s.useEffect(e,I1)}class Co{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Co}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Ur(){const e=k1(Co.create).current;return T1(e.disposeEffect),e}let Di=!0,Us=!1;const j1=new Co,M1={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function A1(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&M1[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function N1(e){e.metaKey||e.altKey||e.ctrlKey||(Di=!0)}function xs(){Di=!1}function F1(){this.visibilityState==="hidden"&&Us&&(Di=!0)}function B1(e){e.addEventListener("keydown",N1,!0),e.addEventListener("mousedown",xs,!0),e.addEventListener("pointerdown",xs,!0),e.addEventListener("touchstart",xs,!0),e.addEventListener("visibilitychange",F1,!0)}function D1(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Di||A1(t)}function Ac(){const e=s.useCallback(o=>{o!=null&&B1(o.ownerDocument)},[]),t=s.useRef(!1);function r(){return t.current?(Us=!0,j1.start(100,()=>{Us=!1}),t.current=!1,!0):!1}function n(o){return D1(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function gm(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function re(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const l=t(i);l!==""&&a.push(l),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}function _a(e){return typeof e=="string"}function qr(e,t,r){return e===void 0||_a(e)?t:h({},t,{ownerState:h({},t.ownerState,r)})}function hm(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function kd(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function ym(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const m=B(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),g=h({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),v=h({},r,o,n);return m.length>0&&(v.className=m),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:void 0}}const i=hm(h({},o,n)),l=kd(n),c=kd(o),u=t(i),d=B(u==null?void 0:u.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),f=h({},u==null?void 0:u.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),p=h({},u,r,c,l);return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}function bm(e,t,r){return typeof e=="function"?e(t,r):e}const L1=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Sr(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=W(e,L1),l=a?{}:bm(n,o),{props:c,internalRef:u}=ym(h({},i,{externalSlotProps:l})),d=Me(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return qr(r,h({},c,{ref:d}),o)}const xm=s.createContext(null);function Om(){return s.useContext(xm)}const z1=typeof Symbol=="function"&&Symbol.for,W1=z1?Symbol.for("mui.nested"):"__THEME_NESTED__";function V1(e,t){return typeof t=="function"?t(e):h({},e,t)}function H1(e){const{children:t,theme:r}=e,n=Om(),o=s.useMemo(()=>{const a=n===null?r:V1(n,r);return a!=null&&(a[W1]=n!==null),a},[r,n]);return S.jsx(xm.Provider,{value:o,children:t})}const U1=["value"],Cm=s.createContext();function q1(e){let{value:t}=e,r=W(e,U1);return S.jsx(Cm.Provider,h({value:t??!0},r))}const _m=()=>{const e=s.useContext(Cm);return e??!1},wm=s.createContext(void 0);function K1({value:e,children:t}){return S.jsx(wm.Provider,{value:e,children:t})}function G1(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?io(o.defaultProps,n):!o.styleOverrides&&!o.variants?io(o,n):n}function X1({props:e,name:t}){const r=s.useContext(wm);return G1({props:e,name:t,theme:{components:r}})}const Id={};function Td(e,t,r,n=!1){return s.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const a=r(o),i=e?h({},t,{[e]:a}):a;return n?()=>i:i}return e?h({},t,{[e]:r}):h({},t,r)},[e,t,r,n])}function Y1(e){const{children:t,theme:r,themeId:n}=e,o=Ic(Id),a=Om()||Id,i=Td(n,o,r),l=Td(n,a,r,!0),c=i.direction==="rtl";return S.jsx(H1,{theme:l,children:S.jsx(ho.Provider,{value:i,children:S.jsx(q1,{value:c,children:S.jsx(K1,{value:i==null?void 0:i.components,children:t})})})})}const Q1=["component","direction","spacing","divider","children","className","useFlexGap"],J1=xo(),Z1=x1("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function ex(e){return dm({props:e,name:"MuiStack",defaultTheme:J1})}function tx(e,t){const r=s.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],nx=({ownerState:e,theme:t})=>{let r=h({display:"flex",flexDirection:"column"},jt({theme:t},ys({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=Rc(t),o=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),a=ys({values:e.direction,base:o}),i=ys({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,u,d)=>{if(!a[c]){const p=u>0?a[d[u-1]]:"column";a[c]=p}}),r=Qe(r,jt({theme:t},i,(c,u)=>e.useFlexGap?{gap:Er(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${rx(u?a[u]:e.direction)}`]:Er(n,c)}}))}return r=s0(t.breakpoints,r),r};function ox(e={}){const{createStyledComponent:t=Z1,useThemeProps:r=ex,componentName:n="MuiStack"}=e,o=()=>re({root:["root"]},c=>Z(n,c),{}),a=t(nx);return s.forwardRef(function(c,u){const d=r(c),f=Si(d),{component:p="div",direction:m="column",spacing:g=0,divider:v,children:b,className:O,useFlexGap:C=!1}=f,x=W(f,Q1),y={direction:m,spacing:g,useFlexGap:C},_=o();return S.jsx(a,h({as:p,ownerState:y,ref:u,className:B(_.root,O)},x,{children:v?tx(b,v):b}))})}function ax(e,t){return h({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Be={},Pm={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Pm);var ve=Pm.exports;const ix=Zt(Xy),sx=Zt(_1);var Em=ve;Object.defineProperty(Be,"__esModule",{value:!0});var Se=Be.alpha=Tm;Be.blend=yx;Be.colorChannel=void 0;var Sm=Be.darken=Fc;Be.decomposeColor=_t;var IN=Be.emphasize=jm,lx=Be.getContrastRatio=px;Be.getLuminance=wa;Be.hexToRgb=Rm;Be.hslToRgb=Im;var $m=Be.lighten=Bc;Be.private_safeAlpha=mx;Be.private_safeColorChannel=void 0;Be.private_safeDarken=vx;Be.private_safeEmphasize=hx;Be.private_safeLighten=gx;Be.recomposeColor=_n;Be.rgbToHex=fx;var jd=Em(ix),cx=Em(sx);function Nc(e,t=0,r=1){return(0,cx.default)(e,t,r)}function Rm(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function ux(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function _t(e){if(e.type)return e;if(e.charAt(0)==="#")return _t(Rm(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,jd.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,jd.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const km=e=>{const t=_t(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};Be.colorChannel=km;const dx=(e,t)=>{try{return km(e)}catch{return e}};Be.private_safeColorChannel=dx;function _n(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function fx(e){if(e.indexOf("#")===0)return e;const{values:t}=_t(e);return`#${t.map((r,n)=>ux(n===3?Math.round(255*r):r)).join("")}`}function Im(e){e=_t(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(u,d=(u+r/30)%12)=>o-a*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),_n({type:l,values:c})}function wa(e){e=_t(e);let t=e.type==="hsl"||e.type==="hsla"?_t(Im(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function px(e,t){const r=wa(e),n=wa(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Tm(e,t){return e=_t(e),t=Nc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,_n(e)}function mx(e,t,r){try{return Tm(e,t)}catch{return e}}function Fc(e,t){if(e=_t(e),t=Nc(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return _n(e)}function vx(e,t,r){try{return Fc(e,t)}catch{return e}}function Bc(e,t){if(e=_t(e),t=Nc(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return _n(e)}function gx(e,t,r){try{return Bc(e,t)}catch{return e}}function jm(e,t=.15){return wa(e)>.5?Fc(e,t):Bc(e,t)}function hx(e,t,r){try{return jm(e,t)}catch{return e}}function yx(e,t,r,n=1){const o=(c,u)=>Math.round((c**(1/n)*(1-r)+u**(1/n)*r)**n),a=_t(e),i=_t(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return _n({type:"rgb",values:l})}const bx=["mode","contrastThreshold","tonalOffset"],Md={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ro.white,default:ro.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Os={text:{primary:ro.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ro.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Ad(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=$m(e.main,o):t==="dark"&&(e.dark=Sm(e.main,a)))}function xx(e="light"){return e==="dark"?{main:Ar[200],light:Ar[50],dark:Ar[400]}:{main:Ar[700],light:Ar[400],dark:Ar[800]}}function Ox(e="light"){return e==="dark"?{main:Mr[200],light:Mr[50],dark:Mr[400]}:{main:Mr[500],light:Mr[300],dark:Mr[700]}}function Cx(e="light"){return e==="dark"?{main:jr[500],light:jr[300],dark:jr[700]}:{main:jr[700],light:jr[400],dark:jr[800]}}function _x(e="light"){return e==="dark"?{main:Nr[400],light:Nr[300],dark:Nr[700]}:{main:Nr[700],light:Nr[500],dark:Nr[900]}}function wx(e="light"){return e==="dark"?{main:Fr[400],light:Fr[300],dark:Fr[700]}:{main:Fr[800],light:Fr[500],dark:Fr[900]}}function Px(e="light"){return e==="dark"?{main:In[400],light:In[300],dark:In[700]}:{main:"#ed6c02",light:In[500],dark:In[900]}}function Ex(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=W(e,bx),a=e.primary||xx(t),i=e.secondary||Ox(t),l=e.error||Cx(t),c=e.info||_x(t),u=e.success||wx(t),d=e.warning||Px(t);function f(v){return lx(v,Os.text.primary)>=r?Os.text.primary:Md.text.primary}const p=({color:v,name:b,mainShade:O=500,lightShade:C=300,darkShade:x=700})=>{if(v=h({},v),!v.main&&v[O]&&(v.main=v[O]),!v.hasOwnProperty("main"))throw new Error(Qt(11,b?` (${b})`:"",O));if(typeof v.main!="string")throw new Error(Qt(12,b?` (${b})`:"",JSON.stringify(v.main)));return Ad(v,"light",C,n),Ad(v,"dark",x,n),v.contrastText||(v.contrastText=f(v.main)),v},m={dark:Os,light:Md};return Qe(h({common:h({},ro),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:u,name:"success"}),grey:Gy,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},m[t]),o)}const Sx=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function $x(e){return Math.round(e*1e5)/1e5}const Nd={textTransform:"uppercase"},Fd='"Roboto", "Helvetica", "Arial", sans-serif';function Rx(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Fd,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:f}=r,p=W(r,Sx),m=o/14,g=f||(O=>`${O/u*m}rem`),v=(O,C,x,y,_)=>h({fontFamily:n,fontWeight:O,fontSize:g(C),lineHeight:x},n===Fd?{letterSpacing:`${$x(y/C)}em`}:{},_,d),b={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(l,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(l,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(l,14,1.75,.4,Nd),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,Nd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qe(h({htmlFontSize:u,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},b),p,{clone:!1})}const kx=.2,Ix=.14,Tx=.12;function ke(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${kx})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ix})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Tx})`].join(",")}const jx=["none",ke(0,2,1,-1,0,1,1,0,0,1,3,0),ke(0,3,1,-2,0,2,2,0,0,1,5,0),ke(0,3,3,-2,0,3,4,0,0,1,8,0),ke(0,2,4,-1,0,4,5,0,0,1,10,0),ke(0,3,5,-1,0,5,8,0,0,1,14,0),ke(0,3,5,-1,0,6,10,0,0,1,18,0),ke(0,4,5,-2,0,7,10,1,0,2,16,1),ke(0,5,5,-3,0,8,10,1,0,3,14,2),ke(0,5,6,-3,0,9,12,1,0,3,16,2),ke(0,6,6,-3,0,10,14,1,0,4,18,3),ke(0,6,7,-4,0,11,15,1,0,4,20,3),ke(0,7,8,-4,0,12,17,2,0,5,22,4),ke(0,7,8,-4,0,13,19,2,0,5,24,4),ke(0,7,9,-4,0,14,21,2,0,5,26,4),ke(0,8,9,-5,0,15,22,2,0,6,28,5),ke(0,8,10,-5,0,16,24,2,0,6,30,5),ke(0,8,11,-5,0,17,26,2,0,6,32,5),ke(0,9,11,-5,0,18,28,2,0,7,34,6),ke(0,9,12,-6,0,19,29,2,0,7,36,6),ke(0,10,13,-6,0,20,31,3,0,8,38,7),ke(0,10,13,-6,0,21,33,3,0,8,40,7),ke(0,10,14,-6,0,22,35,3,0,8,42,7),ke(0,11,14,-7,0,23,36,3,0,9,44,8),ke(0,11,15,-7,0,24,38,3,0,9,46,8)],Mx=["duration","easing","delay"],Ax={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Nx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Bd(e){return`${Math.round(e)}ms`}function Fx(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Bx(e){const t=h({},Ax,e.easing),r=h({},Nx,e.duration);return h({getAutoHeightDuration:Fx,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:c=0}=a;return W(a,Mx),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:Bd(i)} ${l} ${typeof c=="string"?c:Bd(c)}`).join(",")}},e,{easing:t,duration:r})}const Dx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Lx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function qs(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=W(e,Lx);if(e.vars)throw new Error(Qt(18));const l=Ex(n),c=xo(e);let u=Qe(c,{mixins:ax(c.breakpoints,r),palette:l,shadows:jx.slice(),typography:Rx(l,a),transitions:Bx(o),zIndex:h({},Dx)});return u=Qe(u,i),u=t.reduce((d,f)=>Qe(d,f),u),u.unstable_sxConfig=h({},bo,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return Cn({sx:f,theme:this})},u}const Li=qs();function Rr(){const e=Ei(Li);return e[cn]||e}function zx({props:e,name:t}){return dm({props:e,name:t,defaultTheme:Li,themeId:cn})}var _o={},Cs={exports:{}},Dd;function Wx(){return Dd||(Dd=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.includes(a))continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Cs)),Cs.exports}const Mm=Zt(r0),Vx=Zt(n0),Hx=Zt(c0),Ux=Zt(u1),qx=Zt(Y0),Kx=Zt(r1);var wn=ve;Object.defineProperty(_o,"__esModule",{value:!0});var Gx=_o.default=sO;_o.shouldForwardProp=ea;_o.systemDefaultTheme=void 0;var yt=wn(Gp()),Ks=wn(Wx()),Ld=tO(Mm),Xx=Vx;wn(Hx);wn(Ux);var Yx=wn(qx),Qx=wn(Kx);const Jx=["ownerState"],Zx=["variants"],eO=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Am(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Am=function(n){return n?r:t})(e)}function tO(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Am(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function rO(e){return Object.keys(e).length===0}function nO(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ea(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const oO=_o.systemDefaultTheme=(0,Yx.default)(),aO=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Fo({defaultTheme:e,theme:t,themeId:r}){return rO(t)?e:t[r]||t}function iO(e){return e?(t,r)=>r[e]:null}function ta(e,t){let{ownerState:r}=t,n=(0,Ks.default)(t,Jx);const o=typeof e=="function"?e((0,yt.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>ta(a,(0,yt.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=(0,Ks.default)(o,Zx);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props((0,yt.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style((0,yt.default)({ownerState:r},n,r)):c.style))}),l}return o}function sO(e={}){const{themeId:t,defaultTheme:r=oO,rootShouldForwardProp:n=ea,slotShouldForwardProp:o=ea}=e,a=i=>(0,Qx.default)((0,yt.default)({},i,{theme:Fo((0,yt.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{(0,Ld.internal_processStyles)(i,_=>_.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=iO(aO(u))}=l,m=(0,Ks.default)(l,eO),g=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let b,O=ea;u==="Root"||u==="root"?O=n:u?O=o:nO(i)&&(O=void 0);const C=(0,Ld.default)(i,(0,yt.default)({shouldForwardProp:O,label:b},m)),x=_=>typeof _=="function"&&_.__emotion_real!==_||(0,Xx.isPlainObject)(_)?P=>ta(_,(0,yt.default)({},P,{theme:Fo({theme:P.theme,defaultTheme:r,themeId:t})})):_,y=(_,...P)=>{let w=x(_);const E=P?P.map(x):[];c&&p&&E.push(M=>{const T=Fo((0,yt.default)({},M,{defaultTheme:r,themeId:t}));if(!T.components||!T.components[c]||!T.components[c].styleOverrides)return null;const N=T.components[c].styleOverrides,j={};return Object.entries(N).forEach(([F,A])=>{j[F]=ta(A,(0,yt.default)({},M,{theme:T}))}),p(M,j)}),c&&!g&&E.push(M=>{var T;const N=Fo((0,yt.default)({},M,{defaultTheme:r,themeId:t})),j=N==null||(T=N.components)==null||(T=T[c])==null?void 0:T.variants;return ta({variants:j},(0,yt.default)({},M,{theme:N}))}),v||E.push(a);const R=E.length-P.length;if(Array.isArray(_)&&R>0){const M=new Array(R).fill("");w=[..._,...M],w.raw=[..._.raw,...M]}const $=C(w,...E);return i.muiName&&($.muiName=i.muiName),$};return C.withConfig&&(y.withConfig=C.withConfig),y}}function Nm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ot=e=>Nm(e)&&e!=="classes",I=Gx({themeId:cn,defaultTheme:Li,rootShouldForwardProp:ot}),lO=["theme"];function cO(e){let{theme:t}=e,r=W(e,lO);const n=t[cn];return S.jsx(Y1,h({},r,{themeId:n?cn:void 0,theme:n||t}))}const zd=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function oe(e){return X1(e)}function uO(e){return Z("MuiSvgIcon",e)}ee("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const dO=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],fO=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${z(t)}`,`fontSize${z(r)}`]};return re(o,uO,n)},pO=I("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${z(r.color)}`],t[`fontSize${z(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,l,c,u,d,f,p,m,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),Gs=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,m=W(n,dO),g=s.isValidElement(o)&&o.type==="svg",v=h({},n,{color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:g}),b={};d||(b.viewBox=p);const O=fO(v);return S.jsxs(pO,h({as:l,className:B(O.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},b,m,g&&o.props,{ownerState:v,children:[g?o.props.children:o,f?S.jsx("title",{children:f}):null]}))});Gs.muiName="SvgIcon";function er(e,t){function r(n,o){return S.jsx(Gs,h({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=Gs.muiName,s.memo(s.forwardRef(r))}const mO={configure:e=>{om.configure(e)}},vO=Object.freeze(Object.defineProperty({__proto__:null,capitalize:z,createChainedFunction:Hs,createSvgIcon:er,debounce:Bi,deprecatedPropType:E1,isMuiElement:Zo,ownerDocument:tt,ownerWindow:Ht,requirePropFactory:S1,setRef:Ca,unstable_ClassNameGenerator:mO,unstable_useEnhancedEffect:Ct,unstable_useId:Oo,unsupportedProp:R1,useControlled:lo,useEventCallback:Yt,useForkRef:Me,useIsFocusVisible:Ac},Symbol.toStringTag,{value:"Module"}));var Ee={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Dc=Symbol.for("react.element"),Lc=Symbol.for("react.portal"),zi=Symbol.for("react.fragment"),Wi=Symbol.for("react.strict_mode"),Vi=Symbol.for("react.profiler"),Hi=Symbol.for("react.provider"),Ui=Symbol.for("react.context"),gO=Symbol.for("react.server_context"),qi=Symbol.for("react.forward_ref"),Ki=Symbol.for("react.suspense"),Gi=Symbol.for("react.suspense_list"),Xi=Symbol.for("react.memo"),Yi=Symbol.for("react.lazy"),hO=Symbol.for("react.offscreen"),Fm;Fm=Symbol.for("react.module.reference");function $t(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Dc:switch(e=e.type,e){case zi:case Vi:case Wi:case Ki:case Gi:return e;default:switch(e=e&&e.$$typeof,e){case gO:case Ui:case qi:case Yi:case Xi:case Hi:return e;default:return t}}case Lc:return t}}}Ee.ContextConsumer=Ui;Ee.ContextProvider=Hi;Ee.Element=Dc;Ee.ForwardRef=qi;Ee.Fragment=zi;Ee.Lazy=Yi;Ee.Memo=Xi;Ee.Portal=Lc;Ee.Profiler=Vi;Ee.StrictMode=Wi;Ee.Suspense=Ki;Ee.SuspenseList=Gi;Ee.isAsyncMode=function(){return!1};Ee.isConcurrentMode=function(){return!1};Ee.isContextConsumer=function(e){return $t(e)===Ui};Ee.isContextProvider=function(e){return $t(e)===Hi};Ee.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Dc};Ee.isForwardRef=function(e){return $t(e)===qi};Ee.isFragment=function(e){return $t(e)===zi};Ee.isLazy=function(e){return $t(e)===Yi};Ee.isMemo=function(e){return $t(e)===Xi};Ee.isPortal=function(e){return $t(e)===Lc};Ee.isProfiler=function(e){return $t(e)===Vi};Ee.isStrictMode=function(e){return $t(e)===Wi};Ee.isSuspense=function(e){return $t(e)===Ki};Ee.isSuspenseList=function(e){return $t(e)===Gi};Ee.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===zi||e===Vi||e===Wi||e===Ki||e===Gi||e===hO||typeof e=="object"&&e!==null&&(e.$$typeof===Yi||e.$$typeof===Xi||e.$$typeof===Hi||e.$$typeof===Ui||e.$$typeof===qi||e.$$typeof===Fm||e.getModuleId!==void 0)};Ee.typeOf=$t;function Xs(e,t){return Xs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Xs(e,t)}function Bm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xs(e,t)}const Wd={disabled:!1},Pa=Y.createContext(null);var yO=function(t){return t.scrollTop},zn="unmounted",mr="exited",vr="entering",zr="entered",Ys="exiting",At=function(e){Bm(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=o,l=i&&!i.isMounting?n.enter:n.appear,c;return a.appearStatus=null,n.in?l?(c=mr,a.appearStatus=vr):c=zr:n.unmountOnExit||n.mountOnEnter?c=zn:c=mr,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===zn?{status:mr}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==vr&&i!==zr&&(a=vr):(i===vr||i===zr)&&(a=Ys)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,l;return a=i=l=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:l}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===vr){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Mo.findDOMNode(this);i&&yO(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===mr&&this.setState({status:zn})},r.performEnter=function(o){var a=this,i=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[Mo.findDOMNode(this),l],u=c[0],d=c[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!o&&!i||Wd.disabled){this.safeSetState({status:zr},function(){a.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:vr},function(){a.props.onEntering(u,d),a.onTransitionEnd(p,function(){a.safeSetState({status:zr},function(){a.props.onEntered(u,d)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:Mo.findDOMNode(this);if(!a||Wd.disabled){this.safeSetState({status:mr},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Ys},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:mr},function(){o.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,a.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Mo.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===zn)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=W(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Y.createElement(Pa.Provider,{value:null},typeof i=="function"?i(o,l):Y.cloneElement(Y.Children.only(i),l))},t}(Y.Component);At.contextType=Pa;At.propTypes={};function Br(){}At.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Br,onEntering:Br,onEntered:Br,onExit:Br,onExiting:Br,onExited:Br};At.UNMOUNTED=zn;At.EXITED=mr;At.ENTERING=vr;At.ENTERED=zr;At.EXITING=Ys;function bO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zc(e,t){var r=function(a){return t&&s.isValidElement(a)?t(a):a},n=Object.create(null);return e&&s.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function xO(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var i,l={};for(var c in t){if(n[c])for(i=0;ie.scrollTop;function dn(e,t){var r,n;const{timeout:o,easing:a,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof o=="number"?o:o[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function PO(e){return Z("MuiPaper",e)}ee("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const EO=["className","component","elevation","square","variant"],SO=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return re(a,PO,o)},$O=I("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return h({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&h({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Se("#fff",zd(t.elevation))}, ${Se("#fff",zd(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),Pn=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:l=!1,variant:c="elevation"}=n,u=W(n,EO),d=h({},n,{component:a,elevation:i,square:l,variant:c}),f=SO(d);return S.jsx($O,h({as:a,ownerState:d,className:B(f.root,o),ref:r},u))}),RO=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],kO=["component","slots","slotProps"],IO=["component"];function TO(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:l}=t,c=W(t,RO),{component:u,slots:d={[e]:void 0},slotProps:f={[e]:void 0}}=a;W(a,kO);const p=d[e]||n,m=bm(f[e],o),g=ym(h({className:r},c,{externalForwardedProps:void 0,externalSlotProps:m})),{props:{component:v},internalRef:b}=g,O=W(g.props,IO),C=Me(b,m==null?void 0:m.ref,t.ref),x=i?i(O):{},y=h({},o,x),_=v,P=qr(p,h({},e==="root",!d[e]&&l,O,_&&{as:_},{ref:C}),y);return Object.keys(x).forEach(w=>{delete P[w]}),[p,P]}function jO(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:c,timeout:u}=e,[d,f]=s.useState(!1),p=B(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},g=B(r.child,d&&r.childLeaving,n&&r.childPulsate);return!l&&!d&&f(!0),s.useEffect(()=>{if(!l&&c!=null){const v=setTimeout(c,u);return()=>{clearTimeout(v)}}},[c,l,u]),S.jsx("span",{className:p,style:m,children:S.jsx("span",{className:g})})}const bt=ee("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),MO=["center","classes","className"];let Qi=e=>e,Vd,Hd,Ud,qd;const Qs=550,AO=80,NO=On(Vd||(Vd=Qi` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),FO=On(Hd||(Hd=Qi` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),BO=On(Ud||(Ud=Qi` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),DO=I("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),LO=I(jO,{name:"MuiTouchRipple",slot:"Ripple"})(qd||(qd=Qi` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),bt.rippleVisible,NO,Qs,({theme:e})=>e.transitions.easing.easeInOut,bt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,bt.child,bt.childLeaving,FO,Qs,({theme:e})=>e.transitions.easing.easeInOut,bt.childPulsate,BO,({theme:e})=>e.transitions.easing.easeInOut),zO=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=n,l=W(n,MO),[c,u]=s.useState([]),d=s.useRef(0),f=s.useRef(null);s.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const p=s.useRef(!1),m=Ur(),g=s.useRef(null),v=s.useRef(null),b=s.useCallback(y=>{const{pulsate:_,rippleX:P,rippleY:w,rippleSize:E,cb:R}=y;u($=>[...$,S.jsx(LO,{classes:{ripple:B(a.ripple,bt.ripple),rippleVisible:B(a.rippleVisible,bt.rippleVisible),ripplePulsate:B(a.ripplePulsate,bt.ripplePulsate),child:B(a.child,bt.child),childLeaving:B(a.childLeaving,bt.childLeaving),childPulsate:B(a.childPulsate,bt.childPulsate)},timeout:Qs,pulsate:_,rippleX:P,rippleY:w,rippleSize:E},d.current)]),d.current+=1,f.current=R},[a]),O=s.useCallback((y={},_={},P=()=>{})=>{const{pulsate:w=!1,center:E=o||_.pulsate,fakeElement:R=!1}=_;if((y==null?void 0:y.type)==="mousedown"&&p.current){p.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(p.current=!0);const $=R?null:v.current,M=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let T,N,j;if(E||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)T=Math.round(M.width/2),N=Math.round(M.height/2);else{const{clientX:F,clientY:A}=y.touches&&y.touches.length>0?y.touches[0]:y;T=Math.round(F-M.left),N=Math.round(A-M.top)}if(E)j=Math.sqrt((2*M.width**2+M.height**2)/3),j%2===0&&(j+=1);else{const F=Math.max(Math.abs(($?$.clientWidth:0)-T),T)*2+2,A=Math.max(Math.abs(($?$.clientHeight:0)-N),N)*2+2;j=Math.sqrt(F**2+A**2)}y!=null&&y.touches?g.current===null&&(g.current=()=>{b({pulsate:w,rippleX:T,rippleY:N,rippleSize:j,cb:P})},m.start(AO,()=>{g.current&&(g.current(),g.current=null)})):b({pulsate:w,rippleX:T,rippleY:N,rippleSize:j,cb:P})},[o,b,m]),C=s.useCallback(()=>{O({},{pulsate:!0})},[O]),x=s.useCallback((y,_)=>{if(m.clear(),(y==null?void 0:y.type)==="touchend"&&g.current){g.current(),g.current=null,m.start(0,()=>{x(y,_)});return}g.current=null,u(P=>P.length>0?P.slice(1):P),f.current=_},[m]);return s.useImperativeHandle(r,()=>({pulsate:C,start:O,stop:x}),[C,O,x]),S.jsx(DO,h({className:B(bt.root,a.root,i),ref:v},l,{children:S.jsx(Wc,{component:null,exit:!0,children:c})}))});function WO(e){return Z("MuiButtonBase",e)}const VO=ee("MuiButtonBase",["root","disabled","focusVisible"]),HO=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],UO=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=re({root:["root",t&&"disabled",r&&"focusVisible"]},WO,o);return r&&n&&(i.root+=` ${n}`),i},qO=I("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${VO.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fn=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:g,onClick:v,onContextMenu:b,onDragLeave:O,onFocus:C,onFocusVisible:x,onKeyDown:y,onKeyUp:_,onMouseDown:P,onMouseLeave:w,onMouseUp:E,onTouchEnd:R,onTouchMove:$,onTouchStart:M,tabIndex:T=0,TouchRippleProps:N,touchRippleRef:j,type:F}=n,A=W(n,HO),D=s.useRef(null),k=s.useRef(null),L=Me(k,j),{isFocusVisibleRef:V,onFocus:U,onBlur:ie,ref:se}=Ac(),[G,H]=s.useState(!1);u&&G&&H(!1),s.useImperativeHandle(o,()=>({focusVisible:()=>{H(!0),D.current.focus()}}),[]);const[Q,fe]=s.useState(!1);s.useEffect(()=>{fe(!0)},[]);const ne=Q&&!d&&!u;s.useEffect(()=>{G&&p&&!d&&Q&&k.current.pulsate()},[d,p,G,Q]);function le(X,ze,qt=f){return Yt(Rt=>(ze&&ze(Rt),!qt&&k.current&&k.current[X](Rt),!0))}const $e=le("start",P),J=le("stop",b),ge=le("stop",O),te=le("stop",E),pe=le("stop",X=>{G&&X.preventDefault(),w&&w(X)}),de=le("start",M),at=le("stop",R),qe=le("stop",$),De=le("stop",X=>{ie(X),V.current===!1&&H(!1),g&&g(X)},!1),Je=Yt(X=>{D.current||(D.current=X.currentTarget),U(X),V.current===!0&&(H(!0),x&&x(X)),C&&C(X)}),Re=()=>{const X=D.current;return c&&c!=="button"&&!(X.tagName==="A"&&X.href)},Oe=s.useRef(!1),Ke=Yt(X=>{p&&!Oe.current&&G&&k.current&&X.key===" "&&(Oe.current=!0,k.current.stop(X,()=>{k.current.start(X)})),X.target===X.currentTarget&&Re()&&X.key===" "&&X.preventDefault(),y&&y(X),X.target===X.currentTarget&&Re()&&X.key==="Enter"&&!u&&(X.preventDefault(),v&&v(X))}),Ae=Yt(X=>{p&&X.key===" "&&k.current&&G&&!X.defaultPrevented&&(Oe.current=!1,k.current.stop(X,()=>{k.current.pulsate(X)})),_&&_(X),v&&X.target===X.currentTarget&&Re()&&X.key===" "&&!X.defaultPrevented&&v(X)});let he=c;he==="button"&&(A.href||A.to)&&(he=m);const Ge={};he==="button"?(Ge.type=F===void 0?"button":F,Ge.disabled=u):(!A.href&&!A.to&&(Ge.role="button"),u&&(Ge["aria-disabled"]=u));const Ze=Me(r,se,D),rt=h({},n,{centerRipple:a,component:c,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:T,focusVisible:G}),ye=UO(rt);return S.jsxs(qO,h({as:he,className:B(ye.root,l),ownerState:rt,onBlur:De,onClick:v,onContextMenu:J,onFocus:Je,onKeyDown:Ke,onKeyUp:Ae,onMouseDown:$e,onMouseLeave:pe,onMouseUp:te,onDragLeave:ge,onTouchEnd:at,onTouchMove:qe,onTouchStart:de,ref:Ze,tabIndex:u?-1:T,type:F},Ge,A,{children:[i,ne?S.jsx(zO,h({ref:L,center:a},N)):null]}))});function KO(e){return Z("MuiIconButton",e)}const GO=ee("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),XO=["edge","children","className","color","disabled","disableFocusRipple","size"],YO=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${z(n)}`,o&&`edge${z(o)}`,`size${z(a)}`]};return re(i,KO,t)},QO=I(fn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${z(r.color)}`],r.edge&&t[`edge${z(r.edge)}`],t[`size${z(r.size)}`]]}})(({theme:e,ownerState:t})=>h({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return h({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&h({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":h({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${GO.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),nt=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium"}=n,f=W(n,XO),p=h({},n,{edge:o,color:l,disabled:c,disableFocusRipple:u,size:d}),m=YO(p);return S.jsx(QO,h({className:B(m.root,i),centerRipple:!0,focusRipple:!u,disabled:c,ref:r},f,{ownerState:p,children:a}))});function JO(e){return Z("MuiTypography",e)}ee("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ZO=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],eC=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e,l={root:["root",a,e.align!=="inherit"&&`align${z(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return re(l,JO,i)},tC=I("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${z(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>h({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Kd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},rC={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},nC=e=>rC[e]||e,Ve=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiTypography"}),o=nC(n.color),a=Si(h({},n,{color:o})),{align:i="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:m=Kd}=a,g=W(a,ZO),v=h({},a,{align:i,color:o,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:p,variantMapping:m}),b=c||(f?"p":m[p]||Kd[p])||"span",O=eC(v);return S.jsx(tC,h({as:b,ref:r,ownerState:v,className:B(O.root,l)},g))});function oC(e){return Z("MuiAppBar",e)}ee("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const aC=["className","color","enableColorOnDark","position"],iC=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${z(t)}`,`position${z(r)}`]};return re(o,oC,n)},Bo=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,sC=I(Pn,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${z(r.position)}`],t[`color${z(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return h({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&h({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&h({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&h({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Bo(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Bo(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Bo(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Bo(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),lC=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:l="fixed"}=n,c=W(n,aC),u=h({},n,{color:a,position:l,enableColorOnDark:i}),d=iC(u);return S.jsx(sC,h({square:!0,component:"header",ownerState:u,elevation:4,className:B(d.root,o,l==="fixed"&&"mui-fixed"),ref:r},c))});var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});var Dm=Hc.default=void 0,cC=dC(s),uC=Mm;function Lm(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Lm=function(n){return n?r:t})(e)}function dC(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Lm(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function fC(e){return Object.keys(e).length===0}function pC(e=null){const t=cC.useContext(uC.ThemeContext);return!t||fC(t)?e:t}Dm=Hc.default=pC;var st="top",wt="bottom",Pt="right",lt="left",Uc="auto",wo=[st,wt,Pt,lt],pn="start",co="end",mC="clippingParents",zm="viewport",jn="popper",vC="reference",Gd=wo.reduce(function(e,t){return e.concat([t+"-"+pn,t+"-"+co])},[]),Wm=[].concat(wo,[Uc]).reduce(function(e,t){return e.concat([t,t+"-"+pn,t+"-"+co])},[]),gC="beforeRead",hC="read",yC="afterRead",bC="beforeMain",xC="main",OC="afterMain",CC="beforeWrite",_C="write",wC="afterWrite",PC=[gC,hC,yC,bC,xC,OC,CC,_C,wC];function Ut(e){return e?(e.nodeName||"").toLowerCase():null}function gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $r(e){var t=gt(e).Element;return e instanceof t||e instanceof Element}function Ot(e){var t=gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function qc(e){if(typeof ShadowRoot>"u")return!1;var t=gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function EC(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!Ot(a)||!Ut(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var l=o[i];l===!1?a.removeAttribute(i):a.setAttribute(i,l===!0?"":l)}))})}function SC(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=i.reduce(function(c,u){return c[u]="",c},{});!Ot(o)||!Ut(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const $C={name:"applyStyles",enabled:!0,phase:"write",fn:EC,effect:SC,requires:["computeStyles"]};function Vt(e){return e.split("-")[0]}var Cr=Math.max,Ea=Math.min,mn=Math.round;function Js(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Vm(){return!/^((?!chrome|android).)*safari/i.test(Js())}function vn(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&Ot(e)&&(o=e.offsetWidth>0&&mn(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&mn(n.height)/e.offsetHeight||1);var i=$r(e)?gt(e):window,l=i.visualViewport,c=!Vm()&&r,u=(n.left+(c&&l?l.offsetLeft:0))/o,d=(n.top+(c&&l?l.offsetTop:0))/a,f=n.width/o,p=n.height/a;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Kc(e){var t=vn(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Hm(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&qc(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Jt(e){return gt(e).getComputedStyle(e)}function RC(e){return["table","td","th"].indexOf(Ut(e))>=0}function dr(e){return(($r(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ji(e){return Ut(e)==="html"?e:e.assignedSlot||e.parentNode||(qc(e)?e.host:null)||dr(e)}function Xd(e){return!Ot(e)||Jt(e).position==="fixed"?null:e.offsetParent}function kC(e){var t=/firefox/i.test(Js()),r=/Trident/i.test(Js());if(r&&Ot(e)){var n=Jt(e);if(n.position==="fixed")return null}var o=Ji(e);for(qc(o)&&(o=o.host);Ot(o)&&["html","body"].indexOf(Ut(o))<0;){var a=Jt(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Po(e){for(var t=gt(e),r=Xd(e);r&&RC(r)&&Jt(r).position==="static";)r=Xd(r);return r&&(Ut(r)==="html"||Ut(r)==="body"&&Jt(r).position==="static")?t:r||kC(e)||t}function Gc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hn(e,t,r){return Cr(e,Ea(t,r))}function IC(e,t,r){var n=Hn(e,t,r);return n>r?r:n}function Um(){return{top:0,right:0,bottom:0,left:0}}function qm(e){return Object.assign({},Um(),e)}function Km(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var TC=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,qm(typeof t!="number"?t:Km(t,wo))};function jC(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,l=Vt(r.placement),c=Gc(l),u=[lt,Pt].indexOf(l)>=0,d=u?"height":"width";if(!(!a||!i)){var f=TC(o.padding,r),p=Kc(a),m=c==="y"?st:lt,g=c==="y"?wt:Pt,v=r.rects.reference[d]+r.rects.reference[c]-i[c]-r.rects.popper[d],b=i[c]-r.rects.reference[c],O=Po(a),C=O?c==="y"?O.clientHeight||0:O.clientWidth||0:0,x=v/2-b/2,y=f[m],_=C-p[d]-f[g],P=C/2-p[d]/2+x,w=Hn(y,P,_),E=c;r.modifiersData[n]=(t={},t[E]=w,t.centerOffset=w-P,t)}}function MC(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Hm(t.elements.popper,o)&&(t.elements.arrow=o))}const AC={name:"arrow",enabled:!0,phase:"main",fn:jC,effect:MC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gn(e){return e.split("-")[1]}var NC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function FC(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:mn(r*o)/o||0,y:mn(n*o)/o||0}}function Yd(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=i.x,m=p===void 0?0:p,g=i.y,v=g===void 0?0:g,b=typeof d=="function"?d({x:m,y:v}):{x:m,y:v};m=b.x,v=b.y;var O=i.hasOwnProperty("x"),C=i.hasOwnProperty("y"),x=lt,y=st,_=window;if(u){var P=Po(r),w="clientHeight",E="clientWidth";if(P===gt(r)&&(P=dr(r),Jt(P).position!=="static"&&l==="absolute"&&(w="scrollHeight",E="scrollWidth")),P=P,o===st||(o===lt||o===Pt)&&a===co){y=wt;var R=f&&P===_&&_.visualViewport?_.visualViewport.height:P[w];v-=R-n.height,v*=c?1:-1}if(o===lt||(o===st||o===wt)&&a===co){x=Pt;var $=f&&P===_&&_.visualViewport?_.visualViewport.width:P[E];m-=$-n.width,m*=c?1:-1}}var M=Object.assign({position:l},u&&NC),T=d===!0?FC({x:m,y:v},gt(r)):{x:m,y:v};if(m=T.x,v=T.y,c){var N;return Object.assign({},M,(N={},N[y]=C?"0":"",N[x]=O?"0":"",N.transform=(_.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",N))}return Object.assign({},M,(t={},t[y]=C?v+"px":"",t[x]=O?m+"px":"",t.transform="",t))}function BC(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,l=r.roundOffsets,c=l===void 0?!0:l,u={placement:Vt(t.placement),variation:gn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Yd(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Yd(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const DC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:BC,data:{}};var Do={passive:!0};function LC(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,l=i===void 0?!0:i,c=gt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(d){d.addEventListener("scroll",r.update,Do)}),l&&c.addEventListener("resize",r.update,Do),function(){a&&u.forEach(function(d){d.removeEventListener("scroll",r.update,Do)}),l&&c.removeEventListener("resize",r.update,Do)}}const zC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:LC,data:{}};var WC={left:"right",right:"left",bottom:"top",top:"bottom"};function ra(e){return e.replace(/left|right|bottom|top/g,function(t){return WC[t]})}var VC={start:"end",end:"start"};function Qd(e){return e.replace(/start|end/g,function(t){return VC[t]})}function Xc(e){var t=gt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Yc(e){return vn(dr(e)).left+Xc(e).scrollLeft}function HC(e,t){var r=gt(e),n=dr(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,l=0,c=0;if(o){a=o.width,i=o.height;var u=Vm();(u||!u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:l+Yc(e),y:c}}function UC(e){var t,r=dr(e),n=Xc(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Cr(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Cr(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+Yc(e),c=-n.scrollTop;return Jt(o||r).direction==="rtl"&&(l+=Cr(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:c}}function Qc(e){var t=Jt(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Gm(e){return["html","body","#document"].indexOf(Ut(e))>=0?e.ownerDocument.body:Ot(e)&&Qc(e)?e:Gm(Ji(e))}function Un(e,t){var r;t===void 0&&(t=[]);var n=Gm(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=gt(n),i=o?[a].concat(a.visualViewport||[],Qc(n)?n:[]):n,l=t.concat(i);return o?l:l.concat(Un(Ji(i)))}function Zs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qC(e,t){var r=vn(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Jd(e,t,r){return t===zm?Zs(HC(e,r)):$r(t)?qC(t,r):Zs(UC(dr(e)))}function KC(e){var t=Un(Ji(e)),r=["absolute","fixed"].indexOf(Jt(e).position)>=0,n=r&&Ot(e)?Po(e):e;return $r(n)?t.filter(function(o){return $r(o)&&Hm(o,n)&&Ut(o)!=="body"}):[]}function GC(e,t,r,n){var o=t==="clippingParents"?KC(e):[].concat(t),a=[].concat(o,[r]),i=a[0],l=a.reduce(function(c,u){var d=Jd(e,u,n);return c.top=Cr(d.top,c.top),c.right=Ea(d.right,c.right),c.bottom=Ea(d.bottom,c.bottom),c.left=Cr(d.left,c.left),c},Jd(e,i,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Xm(e){var t=e.reference,r=e.element,n=e.placement,o=n?Vt(n):null,a=n?gn(n):null,i=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,c;switch(o){case st:c={x:i,y:t.y-r.height};break;case wt:c={x:i,y:t.y+t.height};break;case Pt:c={x:t.x+t.width,y:l};break;case lt:c={x:t.x-r.width,y:l};break;default:c={x:t.x,y:t.y}}var u=o?Gc(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(a){case pn:c[u]=c[u]-(t[d]/2-r[d]/2);break;case co:c[u]=c[u]+(t[d]/2-r[d]/2);break}}return c}function uo(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,i=a===void 0?e.strategy:a,l=r.boundary,c=l===void 0?mC:l,u=r.rootBoundary,d=u===void 0?zm:u,f=r.elementContext,p=f===void 0?jn:f,m=r.altBoundary,g=m===void 0?!1:m,v=r.padding,b=v===void 0?0:v,O=qm(typeof b!="number"?b:Km(b,wo)),C=p===jn?vC:jn,x=e.rects.popper,y=e.elements[g?C:p],_=GC($r(y)?y:y.contextElement||dr(e.elements.popper),c,d,i),P=vn(e.elements.reference),w=Xm({reference:P,element:x,strategy:"absolute",placement:o}),E=Zs(Object.assign({},x,w)),R=p===jn?E:P,$={top:_.top-R.top+O.top,bottom:R.bottom-_.bottom+O.bottom,left:_.left-R.left+O.left,right:R.right-_.right+O.right},M=e.modifiersData.offset;if(p===jn&&M){var T=M[o];Object.keys($).forEach(function(N){var j=[Pt,wt].indexOf(N)>=0?1:-1,F=[st,wt].indexOf(N)>=0?"y":"x";$[N]+=T[F]*j})}return $}function XC(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,l=r.flipVariations,c=r.allowedAutoPlacements,u=c===void 0?Wm:c,d=gn(n),f=d?l?Gd:Gd.filter(function(g){return gn(g)===d}):wo,p=f.filter(function(g){return u.indexOf(g)>=0});p.length===0&&(p=f);var m=p.reduce(function(g,v){return g[v]=uo(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[Vt(v)],g},{});return Object.keys(m).sort(function(g,v){return m[g]-m[v]})}function YC(e){if(Vt(e)===Uc)return[];var t=ra(e);return[Qd(e),t,Qd(t)]}function QC(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,l=i===void 0?!0:i,c=r.fallbackPlacements,u=r.padding,d=r.boundary,f=r.rootBoundary,p=r.altBoundary,m=r.flipVariations,g=m===void 0?!0:m,v=r.allowedAutoPlacements,b=t.options.placement,O=Vt(b),C=O===b,x=c||(C||!g?[ra(b)]:YC(b)),y=[b].concat(x).reduce(function(G,H){return G.concat(Vt(H)===Uc?XC(t,{placement:H,boundary:d,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:v}):H)},[]),_=t.rects.reference,P=t.rects.popper,w=new Map,E=!0,R=y[0],$=0;$=0,F=j?"width":"height",A=uo(t,{placement:M,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),D=j?N?Pt:lt:N?wt:st;_[F]>P[F]&&(D=ra(D));var k=ra(D),L=[];if(a&&L.push(A[T]<=0),l&&L.push(A[D]<=0,A[k]<=0),L.every(function(G){return G})){R=M,E=!1;break}w.set(M,L)}if(E)for(var V=g?3:1,U=function(H){var Q=y.find(function(fe){var ne=w.get(fe);if(ne)return ne.slice(0,H).every(function(le){return le})});if(Q)return R=Q,"break"},ie=V;ie>0;ie--){var se=U(ie);if(se==="break")break}t.placement!==R&&(t.modifiersData[n]._skip=!0,t.placement=R,t.reset=!0)}}const JC={name:"flip",enabled:!0,phase:"main",fn:QC,requiresIfExists:["offset"],data:{_skip:!1}};function Zd(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ef(e){return[st,Pt,wt,lt].some(function(t){return e[t]>=0})}function ZC(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=uo(t,{elementContext:"reference"}),l=uo(t,{altBoundary:!0}),c=Zd(i,n),u=Zd(l,o,a),d=ef(c),f=ef(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const e_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ZC};function t_(e,t,r){var n=Vt(e),o=[lt,st].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[lt,Pt].indexOf(n)>=0?{x:l,y:i}:{x:i,y:l}}function r_(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=Wm.reduce(function(d,f){return d[f]=t_(f,t.rects,a),d},{}),l=i[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=i}const n_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:r_};function o_(e){var t=e.state,r=e.name;t.modifiersData[r]=Xm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const a_={name:"popperOffsets",enabled:!0,phase:"read",fn:o_,data:{}};function i_(e){return e==="x"?"y":"x"}function s_(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,l=i===void 0?!1:i,c=r.boundary,u=r.rootBoundary,d=r.altBoundary,f=r.padding,p=r.tether,m=p===void 0?!0:p,g=r.tetherOffset,v=g===void 0?0:g,b=uo(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),O=Vt(t.placement),C=gn(t.placement),x=!C,y=Gc(O),_=i_(y),P=t.modifiersData.popperOffsets,w=t.rects.reference,E=t.rects.popper,R=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,$=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(P){if(a){var N,j=y==="y"?st:lt,F=y==="y"?wt:Pt,A=y==="y"?"height":"width",D=P[y],k=D+b[j],L=D-b[F],V=m?-E[A]/2:0,U=C===pn?w[A]:E[A],ie=C===pn?-E[A]:-w[A],se=t.elements.arrow,G=m&&se?Kc(se):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Um(),Q=H[j],fe=H[F],ne=Hn(0,w[A],G[A]),le=x?w[A]/2-V-ne-Q-$.mainAxis:U-ne-Q-$.mainAxis,$e=x?-w[A]/2+V+ne+fe+$.mainAxis:ie+ne+fe+$.mainAxis,J=t.elements.arrow&&Po(t.elements.arrow),ge=J?y==="y"?J.clientTop||0:J.clientLeft||0:0,te=(N=M==null?void 0:M[y])!=null?N:0,pe=D+le-te-ge,de=D+$e-te,at=Hn(m?Ea(k,pe):k,D,m?Cr(L,de):L);P[y]=at,T[y]=at-D}if(l){var qe,De=y==="x"?st:lt,Je=y==="x"?wt:Pt,Re=P[_],Oe=_==="y"?"height":"width",Ke=Re+b[De],Ae=Re-b[Je],he=[st,lt].indexOf(O)!==-1,Ge=(qe=M==null?void 0:M[_])!=null?qe:0,Ze=he?Ke:Re-w[Oe]-E[Oe]-Ge+$.altAxis,rt=he?Re+w[Oe]+E[Oe]-Ge-$.altAxis:Ae,ye=m&&he?IC(Ze,Re,rt):Hn(m?Ze:Ke,Re,m?rt:Ae);P[_]=ye,T[_]=ye-Re}t.modifiersData[n]=T}}const l_={name:"preventOverflow",enabled:!0,phase:"main",fn:s_,requiresIfExists:["offset"]};function c_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function u_(e){return e===gt(e)||!Ot(e)?Xc(e):c_(e)}function d_(e){var t=e.getBoundingClientRect(),r=mn(t.width)/e.offsetWidth||1,n=mn(t.height)/e.offsetHeight||1;return r!==1||n!==1}function f_(e,t,r){r===void 0&&(r=!1);var n=Ot(t),o=Ot(t)&&d_(t),a=dr(t),i=vn(e,o,r),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((Ut(t)!=="body"||Qc(a))&&(l=u_(t)),Ot(t)?(c=vn(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Yc(a))),{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function p_(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(l){if(!r.has(l)){var c=t.get(l);c&&o(c)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function m_(e){var t=p_(e);return PC.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function v_(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function g_(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var tf={placement:"bottom",modifiers:[],strategy:"absolute"};function rf(){for(var e=arguments.length,t=new Array(e),r=0;r{a||l(x_(o)||document.body)},[o,a]),Ct(()=>{if(i&&!a)return Ca(r,i),()=>{Ca(r,null)}},[r,i,a]),a){if(s.isValidElement(n)){const u={ref:c};return s.cloneElement(n,u)}return S.jsx(s.Fragment,{children:n})}return S.jsx(s.Fragment,{children:i&&op.createPortal(n,i)})});function O_(e){return Z("MuiPopper",e)}ee("MuiPopper",["root"]);const C_=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],__=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function w_(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function el(e){return typeof e=="function"?e():e}function P_(e){return e.nodeType!==void 0}const E_=e=>{const{classes:t}=e;return re({root:["root"]},O_,t)},S_={},$_=s.forwardRef(function(t,r){var n;const{anchorEl:o,children:a,direction:i,disablePortal:l,modifiers:c,open:u,placement:d,popperOptions:f,popperRef:p,slotProps:m={},slots:g={},TransitionProps:v}=t,b=W(t,C_),O=s.useRef(null),C=Me(O,r),x=s.useRef(null),y=Me(x,p),_=s.useRef(y);Ct(()=>{_.current=y},[y]),s.useImperativeHandle(p,()=>x.current,[]);const P=w_(d,i),[w,E]=s.useState(P),[R,$]=s.useState(el(o));s.useEffect(()=>{x.current&&x.current.forceUpdate()}),s.useEffect(()=>{o&&$(el(o))},[o]),Ct(()=>{if(!R||!u)return;const F=k=>{E(k.placement)};let A=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:k})=>{F(k)}}];c!=null&&(A=A.concat(c)),f&&f.modifiers!=null&&(A=A.concat(f.modifiers));const D=b_(R,O.current,h({placement:P},f,{modifiers:A}));return _.current(D),()=>{D.destroy(),_.current(null)}},[R,l,c,u,f,P]);const M={placement:w};v!==null&&(M.TransitionProps=v);const T=E_(t),N=(n=g.root)!=null?n:"div",j=Sr({elementType:N,externalSlotProps:m.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:T.root});return S.jsx(N,h({},j,{children:typeof a=="function"?a(M):a}))}),R_=s.forwardRef(function(t,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:p=S_,popperRef:m,style:g,transition:v=!1,slotProps:b={},slots:O={}}=t,C=W(t,__),[x,y]=s.useState(!0),_=()=>{y(!1)},P=()=>{y(!0)};if(!c&&!d&&(!v||x))return null;let w;if(a)w=a;else if(n){const $=el(n);w=$&&P_($)?tt($).body:tt(null).body}const E=!d&&c&&(!v||x)?"none":void 0,R=v?{in:d,onEnter:_,onExited:P}:void 0;return S.jsx(Ym,{disablePortal:l,container:w,children:S.jsx($_,h({anchorEl:n,direction:i,disablePortal:l,modifiers:u,ref:r,open:v?!x:d,placement:f,popperOptions:p,popperRef:m,slotProps:b,slots:O},C,{style:h({position:"fixed",top:0,left:0,display:E},g),TransitionProps:R,children:o}))})}),k_=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],I_=I(R_,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Qm=s.forwardRef(function(t,r){var n;const o=Dm(),a=oe({props:t,name:"MuiPopper"}),{anchorEl:i,component:l,components:c,componentsProps:u,container:d,disablePortal:f,keepMounted:p,modifiers:m,open:g,placement:v,popperOptions:b,popperRef:O,transition:C,slots:x,slotProps:y}=a,_=W(a,k_),P=(n=x==null?void 0:x.root)!=null?n:c==null?void 0:c.Root,w=h({anchorEl:i,container:d,disablePortal:f,keepMounted:p,modifiers:m,open:g,placement:v,popperOptions:b,popperRef:O,transition:C},_);return S.jsx(I_,h({as:l,direction:o==null?void 0:o.direction,slots:{root:P},slotProps:y??u},w,{ref:r}))}),T_=er(S.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function j_(e){return Z("MuiChip",e)}const me=ee("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),M_=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],A_=e=>{const{classes:t,disabled:r,size:n,color:o,iconColor:a,onDelete:i,clickable:l,variant:c}=e,u={root:["root",c,r&&"disabled",`size${z(n)}`,`color${z(o)}`,l&&"clickable",l&&`clickableColor${z(o)}`,i&&"deletable",i&&`deletableColor${z(o)}`,`${c}${z(o)}`],label:["label",`label${z(n)}`],avatar:["avatar",`avatar${z(n)}`,`avatarColor${z(o)}`],icon:["icon",`icon${z(n)}`,`iconColor${z(a)}`],deleteIcon:["deleteIcon",`deleteIcon${z(n)}`,`deleteIconColor${z(o)}`,`deleteIcon${z(c)}Color${z(o)}`]};return re(u,j_,t)},N_=I("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:o,clickable:a,onDelete:i,size:l,variant:c}=r;return[{[`& .${me.avatar}`]:t.avatar},{[`& .${me.avatar}`]:t[`avatar${z(l)}`]},{[`& .${me.avatar}`]:t[`avatarColor${z(n)}`]},{[`& .${me.icon}`]:t.icon},{[`& .${me.icon}`]:t[`icon${z(l)}`]},{[`& .${me.icon}`]:t[`iconColor${z(o)}`]},{[`& .${me.deleteIcon}`]:t.deleteIcon},{[`& .${me.deleteIcon}`]:t[`deleteIcon${z(l)}`]},{[`& .${me.deleteIcon}`]:t[`deleteIconColor${z(n)}`]},{[`& .${me.deleteIcon}`]:t[`deleteIcon${z(c)}Color${z(n)}`]},t.root,t[`size${z(l)}`],t[`color${z(n)}`],a&&t.clickable,a&&n!=="default"&&t[`clickableColor${z(n)})`],i&&t.deletable,i&&n!=="default"&&t[`deletableColor${z(n)}`],t[c],t[`${c}${z(n)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return h({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${me.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${me.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${me.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${me.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${me.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${me.icon}`]:h({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&h({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${me.deleteIcon}`]:h({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Se(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Se(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Se(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${me.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Se(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${me.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>h({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Se(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${me.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Se(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${me.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>h({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${me.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${me.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${me.avatar}`]:{marginLeft:4},[`& .${me.avatarSmall}`]:{marginLeft:2},[`& .${me.icon}`]:{marginLeft:4},[`& .${me.iconSmall}`]:{marginLeft:2},[`& .${me.deleteIcon}`]:{marginRight:5},[`& .${me.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Se(e.palette[t.color].main,.7)}`,[`&.${me.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${me.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Se(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${me.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Se(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),F_=I("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${z(n)}`]]}})(({ownerState:e})=>h({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function nf(e){return e.key==="Backspace"||e.key==="Delete"}const Jm=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:f,label:p,onClick:m,onDelete:g,onKeyDown:v,onKeyUp:b,size:O="medium",variant:C="filled",tabIndex:x,skipFocusWhenDisabled:y=!1}=n,_=W(n,M_),P=s.useRef(null),w=Me(P,r),E=L=>{L.stopPropagation(),g&&g(L)},R=L=>{L.currentTarget===L.target&&nf(L)&&L.preventDefault(),v&&v(L)},$=L=>{L.currentTarget===L.target&&(g&&nf(L)?g(L):L.key==="Escape"&&P.current&&P.current.blur()),b&&b(L)},M=i!==!1&&m?!0:i,T=M||g?fn:c||"div",N=h({},n,{component:T,disabled:d,size:O,color:l,iconColor:s.isValidElement(f)&&f.props.color||l,onDelete:!!g,clickable:M,variant:C}),j=A_(N),F=T===fn?h({component:c||"div",focusVisibleClassName:j.focusVisible},g&&{disableRipple:!0}):{};let A=null;g&&(A=u&&s.isValidElement(u)?s.cloneElement(u,{className:B(u.props.className,j.deleteIcon),onClick:E}):S.jsx(T_,{className:B(j.deleteIcon),onClick:E}));let D=null;o&&s.isValidElement(o)&&(D=s.cloneElement(o,{className:B(j.avatar,o.props.className)}));let k=null;return f&&s.isValidElement(f)&&(k=s.cloneElement(f,{className:B(j.icon,f.props.className)})),S.jsxs(N_,h({as:T,className:B(j.root,a),disabled:M&&d?!0:void 0,onClick:m,onKeyDown:R,onKeyUp:$,ref:w,tabIndex:y&&d?-1:x,ownerState:N},F,_,{children:[D||k,S.jsx(F_,{className:B(j.label),ownerState:N,children:p}),A]}))}),B_=["onChange","maxRows","minRows","style","value"];function Lo(e){return parseInt(e,10)||0}const D_={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function L_(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const z_=s.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:l}=t,c=W(t,B_),{current:u}=s.useRef(l!=null),d=s.useRef(null),f=Me(r,d),p=s.useRef(null),m=s.useRef(null),g=s.useCallback(()=>{const O=d.current,x=Ht(O).getComputedStyle(O);if(x.width==="0px")return{outerHeightStyle:0,overflowing:!1};const y=m.current;y.style.width=x.width,y.value=O.value||t.placeholder||"x",y.value.slice(-1)===` -`&&(y.value+=" ");const _=x.boxSizing,P=Lo(x.paddingBottom)+Lo(x.paddingTop),w=Lo(x.borderBottomWidth)+Lo(x.borderTopWidth),E=y.scrollHeight;y.value="x";const R=y.scrollHeight;let $=E;a&&($=Math.max(Number(a)*R,$)),o&&($=Math.min(Number(o)*R,$)),$=Math.max($,R);const M=$+(_==="border-box"?P+w:0),T=Math.abs($-E)<=1;return{outerHeightStyle:M,overflowing:T}},[o,a,t.placeholder]),v=s.useCallback(()=>{const O=g();if(L_(O))return;const C=O.outerHeightStyle,x=d.current;p.current!==C&&(p.current=C,x.style.height=`${C}px`),x.style.overflow=O.overflowing?"hidden":""},[g]);Ct(()=>{const O=()=>{v()};let C;const x=Bi(O),y=d.current,_=Ht(y);_.addEventListener("resize",x);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(O),P.observe(y)),()=>{x.clear(),cancelAnimationFrame(C),_.removeEventListener("resize",x),P&&P.disconnect()}},[g,v]),Ct(()=>{v()});const b=O=>{u||v(),n&&n(O)};return S.jsxs(s.Fragment,{children:[S.jsx("textarea",h({value:l,onChange:b,ref:f,rows:a,style:i},c)),S.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:h({},D_.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function En({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const Jc=s.createContext(void 0);function kr(){return s.useContext(Jc)}function W_(e){return S.jsx(Z0,h({},e,{defaultTheme:Li,themeId:cn}))}function of(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Sa(e,t=!1){return e&&(of(e.value)&&e.value!==""||t&&of(e.defaultValue)&&e.defaultValue!=="")}function V_(e){return e.startAdornment}function H_(e){return Z("MuiInputBase",e)}const hn=ee("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),U_=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Zi=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${z(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},es=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},q_=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:f,size:p,startAdornment:m,type:g}=e,v={root:["root",`color${z(r)}`,n&&"disabled",o&&"error",c&&"fullWidth",i&&"focused",l&&"formControl",p&&p!=="medium"&&`size${z(p)}`,d&&"multiline",m&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return re(v,H_,t)},ts=I("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Zi})(({theme:e,ownerState:t})=>h({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${hn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&h({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),rs=I("input",{name:"MuiInputBase",slot:"Input",overridesResolver:es})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=h({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return h({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${hn.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${hn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),K_=S.jsx(W_,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Zc=s.forwardRef(function(t,r){var n;const o=oe({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:l,className:c,components:u={},componentsProps:d={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:m,endAdornment:g,fullWidth:v=!1,id:b,inputComponent:O="input",inputProps:C={},inputRef:x,maxRows:y,minRows:_,multiline:P=!1,name:w,onBlur:E,onChange:R,onClick:$,onFocus:M,onKeyDown:T,onKeyUp:N,placeholder:j,readOnly:F,renderSuffix:A,rows:D,slotProps:k={},slots:L={},startAdornment:V,type:U="text",value:ie}=o,se=W(o,U_),G=C.value!=null?C.value:ie,{current:H}=s.useRef(G!=null),Q=s.useRef(),fe=s.useCallback(ye=>{},[]),ne=Me(Q,x,C.ref,fe),[le,$e]=s.useState(!1),J=kr(),ge=En({props:o,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ge.focused=J?J.focused:le,s.useEffect(()=>{!J&&p&&le&&($e(!1),E&&E())},[J,p,le,E]);const te=J&&J.onFilled,pe=J&&J.onEmpty,de=s.useCallback(ye=>{Sa(ye)?te&&te():pe&&pe()},[te,pe]);Ct(()=>{H&&de({value:G})},[G,de,H]);const at=ye=>{if(ge.disabled){ye.stopPropagation();return}M&&M(ye),C.onFocus&&C.onFocus(ye),J&&J.onFocus?J.onFocus(ye):$e(!0)},qe=ye=>{E&&E(ye),C.onBlur&&C.onBlur(ye),J&&J.onBlur?J.onBlur(ye):$e(!1)},De=(ye,...X)=>{if(!H){const ze=ye.target||Q.current;if(ze==null)throw new Error(Qt(1));de({value:ze.value})}C.onChange&&C.onChange(ye,...X),R&&R(ye,...X)};s.useEffect(()=>{de(Q.current)},[]);const Je=ye=>{Q.current&&ye.currentTarget===ye.target&&Q.current.focus(),$&&$(ye)};let Re=O,Oe=C;P&&Re==="input"&&(D?Oe=h({type:void 0,minRows:D,maxRows:D},Oe):Oe=h({type:void 0,maxRows:y,minRows:_},Oe),Re=z_);const Ke=ye=>{de(ye.animationName==="mui-auto-fill-cancel"?Q.current:{value:"x"})};s.useEffect(()=>{J&&J.setAdornedStart(!!V)},[J,V]);const Ae=h({},o,{color:ge.color||"primary",disabled:ge.disabled,endAdornment:g,error:ge.error,focused:ge.focused,formControl:J,fullWidth:v,hiddenLabel:ge.hiddenLabel,multiline:P,size:ge.size,startAdornment:V,type:U}),he=q_(Ae),Ge=L.root||u.Root||ts,Ze=k.root||d.root||{},rt=L.input||u.Input||rs;return Oe=h({},Oe,(n=k.input)!=null?n:d.input),S.jsxs(s.Fragment,{children:[!m&&K_,S.jsxs(Ge,h({},Ze,!_a(Ge)&&{ownerState:h({},Ae,Ze.ownerState)},{ref:r,onClick:Je},se,{className:B(he.root,Ze.className,c,F&&"MuiInputBase-readOnly"),children:[V,S.jsx(Jc.Provider,{value:null,children:S.jsx(rt,h({ownerState:Ae,"aria-invalid":ge.error,"aria-describedby":a,autoComplete:i,autoFocus:l,defaultValue:f,disabled:ge.disabled,id:b,onAnimationStart:Ke,name:w,placeholder:j,readOnly:F,required:ge.required,rows:D,value:G,onKeyDown:T,onKeyUp:N,type:U},Oe,!_a(rt)&&{as:Re,ownerState:h({},Ae,Oe.ownerState)},{ref:ne,className:B(he.input,Oe.className,F&&"MuiInputBase-readOnly"),onBlur:qe,onChange:De,onFocus:at}))}),g,A?A(h({},ge,{startAdornment:V})):null]}))]})});function G_(e){return Z("MuiInput",e)}const Mn=h({},hn,ee("MuiInput",["root","underline","input"]));function X_(e){return Z("MuiOutlinedInput",e)}const rr=h({},hn,ee("MuiOutlinedInput",["root","notchedOutline","input"]));function Y_(e){return Z("MuiFilledInput",e)}const fr=h({},hn,ee("MuiFilledInput",["root","underline","input"])),Q_=er(S.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),J_=er(S.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Z_(e){return Z("MuiAvatar",e)}ee("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const ew=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],tw=e=>{const{classes:t,variant:r,colorDefault:n}=e;return re({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},Z_,t)},rw=I("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:h({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:h({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),nw=I("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),ow=I(J_,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function aw({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[o,a]=s.useState(!1);return s.useEffect(()=>{if(!r&&!n)return;a(!1);let i=!0;const l=new Image;return l.onload=()=>{i&&a("loaded")},l.onerror=()=>{i&&a("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=r,n&&(l.srcset=n),()=>{i=!1}},[e,t,r,n]),o}const tl=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:l="div",slots:c={},slotProps:u={},imgProps:d,sizes:f,src:p,srcSet:m,variant:g="circular"}=n,v=W(n,ew);let b=null;const O=aw(h({},d,{src:p,srcSet:m})),C=p||m,x=C&&O!=="error",y=h({},n,{colorDefault:!x,component:l,variant:g}),_=tw(y),[P,w]=TO("img",{className:_.img,elementType:nw,externalForwardedProps:{slots:c,slotProps:{img:h({},d,u.img)}},additionalProps:{alt:o,src:p,srcSet:m,sizes:f},ownerState:y});return x?b=S.jsx(P,h({},w)):a||a===0?b=a:C&&o?b=o[0]:b=S.jsx(ow,{ownerState:y,className:_.fallback}),S.jsx(rw,h({as:l,ownerState:y,className:B(_.root,i),ref:r},v,{children:b}))}),iw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],sw={entering:{opacity:1},entered:{opacity:1}},Zm=s.forwardRef(function(t,r){const n=Rr(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:m,onExited:g,onExiting:v,style:b,timeout:O=o,TransitionComponent:C=At}=t,x=W(t,iw),y=s.useRef(null),_=Me(y,l.ref,r),P=j=>F=>{if(j){const A=y.current;F===void 0?j(A):j(A,F)}},w=P(p),E=P((j,F)=>{Vc(j);const A=dn({style:b,timeout:O,easing:c},{mode:"enter"});j.style.webkitTransition=n.transitions.create("opacity",A),j.style.transition=n.transitions.create("opacity",A),d&&d(j,F)}),R=P(f),$=P(v),M=P(j=>{const F=dn({style:b,timeout:O,easing:c},{mode:"exit"});j.style.webkitTransition=n.transitions.create("opacity",F),j.style.transition=n.transitions.create("opacity",F),m&&m(j)}),T=P(g),N=j=>{a&&a(y.current,j)};return S.jsx(C,h({appear:i,in:u,nodeRef:y,onEnter:E,onEntered:R,onEntering:w,onExit:M,onExited:T,onExiting:$,addEndListener:N,timeout:O},x,{children:(j,F)=>s.cloneElement(l,h({style:h({opacity:0,visibility:j==="exited"&&!u?"hidden":void 0},sw[j],b,l.props.style),ref:_},F))}))});function lw(e){return Z("MuiBackdrop",e)}ee("MuiBackdrop",["root","invisible"]);const cw=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],uw=e=>{const{classes:t,invisible:r}=e;return re({root:["root",r&&"invisible"]},lw,t)},dw=I("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>h({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),ev=s.forwardRef(function(t,r){var n,o,a;const i=oe({props:t,name:"MuiBackdrop"}),{children:l,className:c,component:u="div",components:d={},componentsProps:f={},invisible:p=!1,open:m,slotProps:g={},slots:v={},TransitionComponent:b=Zm,transitionDuration:O}=i,C=W(i,cw),x=h({},i,{component:u,invisible:p}),y=uw(x),_=(n=g.root)!=null?n:f.root;return S.jsx(b,h({in:m,timeout:O},C,{children:S.jsx(dw,h({"aria-hidden":!0},_,{as:(o=(a=v.root)!=null?a:d.Root)!=null?o:u,className:B(y.root,c,_==null?void 0:_.className),ownerState:h({},x,_==null?void 0:_.ownerState),classes:y,ref:r,children:l}))}))});function fw(e){return Z("MuiButton",e)}const zo=ee("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),pw=s.createContext({}),mw=s.createContext(void 0),vw=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],gw=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e,l={root:["root",a,`${a}${z(t)}`,`size${z(o)}`,`${a}Size${z(o)}`,`color${z(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${z(o)}`],endIcon:["icon","endIcon",`iconSize${z(o)}`]},c=re(l,fw,i);return h({},i,c)},tv=e=>h({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),hw=I(fn,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${z(r.color)}`],t[`size${z(r.size)}`],t[`${r.variant}Size${z(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return h({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":h({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":h({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${zo.focusVisible}`]:h({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${zo.disabled}`]:h({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Se(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${zo.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${zo.disabled}`]:{boxShadow:"none"}}),yw=I("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${z(r.size)}`]]}})(({ownerState:e})=>h({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},tv(e))),bw=I("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${z(r.size)}`]]}})(({ownerState:e})=>h({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},tv(e))),ut=s.forwardRef(function(t,r){const n=s.useContext(pw),o=s.useContext(mw),a=io(n,t),i=oe({props:a,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:v,fullWidth:b=!1,size:O="medium",startIcon:C,type:x,variant:y="text"}=i,_=W(i,vw),P=h({},i,{color:c,component:u,disabled:f,disableElevation:p,disableFocusRipple:m,fullWidth:b,size:O,type:x,variant:y}),w=gw(P),E=C&&S.jsx(yw,{className:w.startIcon,ownerState:P,children:C}),R=g&&S.jsx(bw,{className:w.endIcon,ownerState:P,children:g}),$=o||"";return S.jsxs(hw,h({ownerState:P,className:B(n.className,w.root,d,$),component:u,disabled:f,focusRipple:!m,focusVisibleClassName:B(w.focusVisible,v),ref:r,type:x},_,{classes:w,children:[E,l,R]}))});function xw(e){return Z("MuiCard",e)}ee("MuiCard",["root"]);const Ow=["className","raised"],Cw=e=>{const{classes:t}=e;return re({root:["root"]},xw,t)},_w=I(Pn,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Eo=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=n,i=W(n,Ow),l=h({},n,{raised:a}),c=Cw(l);return S.jsx(_w,h({className:B(c.root,o),elevation:a?8:void 0,ref:r,ownerState:l},i))});function ww(e){return Z("MuiCardContent",e)}ee("MuiCardContent",["root"]);const Pw=["className","component"],Ew=e=>{const{classes:t}=e;return re({root:["root"]},ww,t)},Sw=I("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),ns=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=n,i=W(n,Pw),l=h({},n,{component:a}),c=Ew(l);return S.jsx(Sw,h({as:a,className:B(c.root,o),ownerState:l,ref:r},i))});function $w(e){return Z("PrivateSwitchBase",e)}ee("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Rw=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],kw=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${z(o)}`],input:["input"]};return re(a,$w,t)},Iw=I(fn)(({ownerState:e})=>h({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Tw=I("input",{shouldForwardProp:ot})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),jw=s.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:l,disabled:c,disableFocusRipple:u=!1,edge:d=!1,icon:f,id:p,inputProps:m,inputRef:g,name:v,onBlur:b,onChange:O,onFocus:C,readOnly:x,required:y=!1,tabIndex:_,type:P,value:w}=t,E=W(t,Rw),[R,$]=lo({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),M=kr(),T=L=>{C&&C(L),M&&M.onFocus&&M.onFocus(L)},N=L=>{b&&b(L),M&&M.onBlur&&M.onBlur(L)},j=L=>{if(L.nativeEvent.defaultPrevented)return;const V=L.target.checked;$(V),O&&O(L,V)};let F=c;M&&typeof F>"u"&&(F=M.disabled);const A=P==="checkbox"||P==="radio",D=h({},t,{checked:R,disabled:F,disableFocusRipple:u,edge:d}),k=kw(D);return S.jsxs(Iw,h({component:"span",className:B(k.root,i),centerRipple:!0,focusRipple:!u,disabled:F,tabIndex:null,role:void 0,onFocus:T,onBlur:N,ownerState:D,ref:r},E,{children:[S.jsx(Tw,h({autoFocus:n,checked:o,defaultChecked:l,className:k.input,disabled:F,id:A?p:void 0,name:v,onChange:j,readOnly:x,ref:g,required:y,ownerState:D,tabIndex:_,type:P},P==="checkbox"&&w===void 0?{}:{value:w},m)),R?a:f]}))}),Mw=er(S.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Aw=er(S.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Nw=er(S.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Fw(e){return Z("MuiCheckbox",e)}const _s=ee("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Bw=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Dw=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate",`color${z(n)}`,`size${z(o)}`]},i=re(a,Fw,t);return h({},t,i)},Lw=I(jw,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${z(r.size)}`],r.color!=="default"&&t[`color${z(r.color)}`]]}})(({theme:e,ownerState:t})=>h({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${_s.checked}, &.${_s.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${_s.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),zw=S.jsx(Aw,{}),Ww=S.jsx(Mw,{}),Vw=S.jsx(Nw,{}),$a=s.forwardRef(function(t,r){var n,o;const a=oe({props:t,name:"MuiCheckbox"}),{checkedIcon:i=zw,color:l="primary",icon:c=Ww,indeterminate:u=!1,indeterminateIcon:d=Vw,inputProps:f,size:p="medium",className:m}=a,g=W(a,Bw),v=u?d:c,b=u?d:i,O=h({},a,{color:l,indeterminate:u,size:p}),C=Dw(O);return S.jsx(Lw,h({type:"checkbox",inputProps:h({"data-indeterminate":u},f),icon:s.cloneElement(v,{fontSize:(n=v.props.fontSize)!=null?n:p}),checkedIcon:s.cloneElement(b,{fontSize:(o=b.props.fontSize)!=null?o:p}),ownerState:O,ref:r,className:B(C.root,m)},g,{classes:C}))});function Hw(e){return Z("MuiCircularProgress",e)}ee("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Uw=["className","color","disableShrink","size","style","thickness","value","variant"];let os=e=>e,af,sf,lf,cf;const nr=44,qw=On(af||(af=os` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`)),Kw=On(sf||(sf=os` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),Gw=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,`color${z(n)}`],svg:["svg"],circle:["circle",`circle${z(r)}`,o&&"circleDisableShrink"]};return re(a,Hw,t)},Xw=I("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${z(r.color)}`]]}})(({ownerState:e,theme:t})=>h({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&bi(lf||(lf=os` - animation: ${0} 1.4s linear infinite; - `),qw)),Yw=I("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Qw=I("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${z(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>h({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&bi(cf||(cf=os` - animation: ${0} 1.4s ease-in-out infinite; - `),Kw)),as=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:l=40,style:c,thickness:u=3.6,value:d=0,variant:f="indeterminate"}=n,p=W(n,Uw),m=h({},n,{color:a,disableShrink:i,size:l,thickness:u,value:d,variant:f}),g=Gw(m),v={},b={},O={};if(f==="determinate"){const C=2*Math.PI*((nr-u)/2);v.strokeDasharray=C.toFixed(3),O["aria-valuenow"]=Math.round(d),v.strokeDashoffset=`${((100-d)/100*C).toFixed(3)}px`,b.transform="rotate(-90deg)"}return S.jsx(Xw,h({className:B(g.root,o),style:h({width:l,height:l},b,c),ownerState:m,ref:r,role:"progressbar"},O,p,{children:S.jsx(Yw,{className:g.svg,ownerState:m,viewBox:`${nr/2} ${nr/2} ${nr} ${nr}`,children:S.jsx(Qw,{className:g.circle,style:v,ownerState:m,cx:nr,cy:nr,r:(nr-u)/2,fill:"none",strokeWidth:u})})}))});function Jw(e){const t=tt(e);return t.body===e?Ht(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function qn(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function uf(e){return parseInt(Ht(e).getComputedStyle(e).paddingRight,10)||0}function Zw(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function df(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,i=>{const l=a.indexOf(i)===-1,c=!Zw(i);l&&c&&qn(i,o)})}function ws(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function eP(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Jw(n)){const i=gm(tt(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${uf(n)+i}px`;const l=tt(n).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${uf(c)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=tt(n).body;else{const i=n.parentElement,l=Ht(n);a=(i==null?void 0:i.nodeName)==="HTML"&&l.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:l})=>{a?i.style.setProperty(l,a):i.style.removeProperty(l)})}}function tP(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class rP{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&qn(t.modalRef,!1);const o=tP(r);df(r,t.mount,t.modalRef,o,!0);const a=ws(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=ws(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=eP(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=ws(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&qn(t.modalRef,r),df(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&qn(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const nP=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function oP(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function aP(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function iP(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||aP(e))}function sP(e){const t=[],r=[];return Array.from(e.querySelectorAll(nP)).forEach((n,o)=>{const a=oP(n);a===-1||!iP(n)||(a===0?t.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function lP(){return!0}function cP(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=sP,isEnabled:i=lP,open:l}=e,c=s.useRef(!1),u=s.useRef(null),d=s.useRef(null),f=s.useRef(null),p=s.useRef(null),m=s.useRef(!1),g=s.useRef(null),v=Me(t.ref,g),b=s.useRef(null);s.useEffect(()=>{!l||!g.current||(m.current=!r)},[r,l]),s.useEffect(()=>{if(!l||!g.current)return;const x=tt(g.current);return g.current.contains(x.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),m.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),s.useEffect(()=>{if(!l||!g.current)return;const x=tt(g.current),y=w=>{b.current=w,!(n||!i()||w.key!=="Tab")&&x.activeElement===g.current&&w.shiftKey&&(c.current=!0,d.current&&d.current.focus())},_=()=>{const w=g.current;if(w===null)return;if(!x.hasFocus()||!i()||c.current){c.current=!1;return}if(w.contains(x.activeElement)||n&&x.activeElement!==u.current&&x.activeElement!==d.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let E=[];if((x.activeElement===u.current||x.activeElement===d.current)&&(E=a(g.current)),E.length>0){var R,$;const M=!!((R=b.current)!=null&&R.shiftKey&&(($=b.current)==null?void 0:$.key)==="Tab"),T=E[0],N=E[E.length-1];typeof T!="string"&&typeof N!="string"&&(M?N.focus():T.focus())}else w.focus()};x.addEventListener("focusin",_),x.addEventListener("keydown",y,!0);const P=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(P),x.removeEventListener("focusin",_),x.removeEventListener("keydown",y,!0)}},[r,n,o,i,l,a]);const O=x=>{f.current===null&&(f.current=x.relatedTarget),m.current=!0,p.current=x.target;const y=t.props.onFocus;y&&y(x)},C=x=>{f.current===null&&(f.current=x.relatedTarget),m.current=!0};return S.jsxs(s.Fragment,{children:[S.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:u,"data-testid":"sentinelStart"}),s.cloneElement(t,{ref:v,onFocus:O}),S.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:d,"data-testid":"sentinelEnd"})]})}function uP(e){return typeof e=="function"?e():e}function dP(e){return e?e.props.hasOwnProperty("in"):!1}const fP=new rP;function pP(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=fP,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:l,children:c,onClose:u,open:d,rootRef:f}=e,p=s.useRef({}),m=s.useRef(null),g=s.useRef(null),v=Me(g,f),[b,O]=s.useState(!d),C=dP(c);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const y=()=>tt(m.current),_=()=>(p.current.modalRef=g.current,p.current.mount=m.current,p.current),P=()=>{o.mount(_(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},w=Yt(()=>{const A=uP(t)||y().body;o.add(_(),A),g.current&&P()}),E=s.useCallback(()=>o.isTopModal(_()),[o]),R=Yt(A=>{m.current=A,A&&(d&&E()?P():g.current&&qn(g.current,x))}),$=s.useCallback(()=>{o.remove(_(),x)},[x,o]);s.useEffect(()=>()=>{$()},[$]),s.useEffect(()=>{d?w():(!C||!a)&&$()},[d,$,C,a,w]);const M=A=>D=>{var k;(k=A.onKeyDown)==null||k.call(A,D),!(D.key!=="Escape"||D.which===229||!E())&&(r||(D.stopPropagation(),u&&u(D,"escapeKeyDown")))},T=A=>D=>{var k;(k=A.onClick)==null||k.call(A,D),D.target===D.currentTarget&&u&&u(D,"backdropClick")};return{getRootProps:(A={})=>{const D=hm(e);delete D.onTransitionEnter,delete D.onTransitionExited;const k=h({},D,A);return h({role:"presentation"},k,{onKeyDown:M(k),ref:v})},getBackdropProps:(A={})=>{const D=A;return h({"aria-hidden":!0},D,{onClick:T(D),open:d})},getTransitionProps:()=>{const A=()=>{O(!1),i&&i()},D=()=>{O(!0),l&&l(),a&&$()};return{onEnter:Hs(A,c==null?void 0:c.props.onEnter),onExited:Hs(D,c==null?void 0:c.props.onExited)}},rootRef:v,portalRef:R,isTopModal:E,exited:b,hasTransition:C}}function mP(e){return Z("MuiModal",e)}ee("MuiModal",["root","hidden","backdrop"]);const vP=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],gP=e=>{const{open:t,exited:r,classes:n}=e;return re({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},mP,n)},hP=I("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>h({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),yP=I(ev,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),rv=s.forwardRef(function(t,r){var n,o,a,i,l,c;const u=oe({name:"MuiModal",props:t}),{BackdropComponent:d=yP,BackdropProps:f,className:p,closeAfterTransition:m=!1,children:g,container:v,component:b,components:O={},componentsProps:C={},disableAutoFocus:x=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:_=!1,disablePortal:P=!1,disableRestoreFocus:w=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:$=!1,onBackdropClick:M,open:T,slotProps:N,slots:j}=u,F=W(u,vP),A=h({},u,{closeAfterTransition:m,disableAutoFocus:x,disableEnforceFocus:y,disableEscapeKeyDown:_,disablePortal:P,disableRestoreFocus:w,disableScrollLock:E,hideBackdrop:R,keepMounted:$}),{getRootProps:D,getBackdropProps:k,getTransitionProps:L,portalRef:V,isTopModal:U,exited:ie,hasTransition:se}=pP(h({},A,{rootRef:r})),G=h({},A,{exited:ie}),H=gP(G),Q={};if(g.props.tabIndex===void 0&&(Q.tabIndex="-1"),se){const{onEnter:te,onExited:pe}=L();Q.onEnter=te,Q.onExited=pe}const fe=(n=(o=j==null?void 0:j.root)!=null?o:O.Root)!=null?n:hP,ne=(a=(i=j==null?void 0:j.backdrop)!=null?i:O.Backdrop)!=null?a:d,le=(l=N==null?void 0:N.root)!=null?l:C.root,$e=(c=N==null?void 0:N.backdrop)!=null?c:C.backdrop,J=Sr({elementType:fe,externalSlotProps:le,externalForwardedProps:F,getSlotProps:D,additionalProps:{ref:r,as:b},ownerState:G,className:B(p,le==null?void 0:le.className,H==null?void 0:H.root,!G.open&&G.exited&&(H==null?void 0:H.hidden))}),ge=Sr({elementType:ne,externalSlotProps:$e,additionalProps:f,getSlotProps:te=>k(h({},te,{onClick:pe=>{M&&M(pe),te!=null&&te.onClick&&te.onClick(pe)}})),className:B($e==null?void 0:$e.className,f==null?void 0:f.className,H==null?void 0:H.backdrop),ownerState:G});return!$&&!T&&(!se||ie)?null:S.jsx(Ym,{ref:V,container:v,disablePortal:P,children:S.jsxs(fe,h({},J,{children:[!R&&d?S.jsx(ne,h({},ge)):null,S.jsx(cP,{disableEnforceFocus:y,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:U,open:T,children:s.cloneElement(g,Q)})]}))})});function bP(e){return Z("MuiDialog",e)}const Ps=ee("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),nv=s.createContext({}),xP=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],OP=I(ev,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),CP=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${z(r)}`],paper:["paper",`paperScroll${z(r)}`,`paperWidth${z(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return re(i,bP,t)},_P=I(rv,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),wP=I("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${z(r.scroll)}`]]}})(({ownerState:e})=>h({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),PP=I(Pn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${z(r.scroll)}`],t[`paperWidth${z(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>h({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Ps.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Ps.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Ps.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),eu=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiDialog"}),o=Rr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,BackdropComponent:c,BackdropProps:u,children:d,className:f,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:g=!1,maxWidth:v="sm",onBackdropClick:b,onClick:O,onClose:C,open:x,PaperComponent:y=Pn,PaperProps:_={},scroll:P="paper",TransitionComponent:w=Zm,transitionDuration:E=a,TransitionProps:R}=n,$=W(n,xP),M=h({},n,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:g,maxWidth:v,scroll:P}),T=CP(M),N=s.useRef(),j=k=>{N.current=k.target===k.currentTarget},F=k=>{O&&O(k),N.current&&(N.current=null,b&&b(k),C&&C(k,"backdropClick"))},A=Oo(l),D=s.useMemo(()=>({titleId:A}),[A]);return S.jsx(_P,h({className:B(T.root,f),closeAfterTransition:!0,components:{Backdrop:OP},componentsProps:{backdrop:h({transitionDuration:E,as:c},u)},disableEscapeKeyDown:p,onClose:C,open:x,ref:r,onClick:F,ownerState:M},$,{children:S.jsx(w,h({appear:!0,in:x,timeout:E,role:"presentation"},R,{children:S.jsx(wP,{className:B(T.container),onMouseDown:j,ownerState:M,children:S.jsx(PP,h({as:y,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":A},_,{className:B(T.paper,_.className),ownerState:M,children:S.jsx(nv.Provider,{value:D,children:d})}))})}))}))});function EP(e){return Z("MuiDialogActions",e)}ee("MuiDialogActions",["root","spacing"]);const SP=["className","disableSpacing"],$P=e=>{const{classes:t,disableSpacing:r}=e;return re({root:["root",!r&&"spacing"]},EP,t)},RP=I("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>h({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),tu=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=n,i=W(n,SP),l=h({},n,{disableSpacing:a}),c=$P(l);return S.jsx(RP,h({className:B(c.root,o),ownerState:l,ref:r},i))});function kP(e){return Z("MuiDialogContent",e)}ee("MuiDialogContent",["root","dividers"]);function IP(e){return Z("MuiDialogTitle",e)}const TP=ee("MuiDialogTitle",["root"]),jP=["className","dividers"],MP=e=>{const{classes:t,dividers:r}=e;return re({root:["root",r&&"dividers"]},kP,t)},AP=I("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>h({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${TP.root} + &`]:{paddingTop:0}})),ru=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=n,i=W(n,jP),l=h({},n,{dividers:a}),c=MP(l);return S.jsx(AP,h({className:B(c.root,o),ownerState:l,ref:r},i))});function NP(e){return Z("MuiDialogContentText",e)}ee("MuiDialogContentText",["root"]);const FP=["children","className"],BP=e=>{const{classes:t}=e,n=re({root:["root"]},NP,t);return h({},t,n)},DP=I(Ve,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ov=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiDialogContentText"}),{className:o}=n,a=W(n,FP),i=BP(a);return S.jsx(DP,h({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:a,className:B(i.root,o)},n,{classes:i}))}),LP=["className","id"],zP=e=>{const{classes:t}=e;return re({root:["root"]},IP,t)},WP=I(Ve,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),nu=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=W(n,LP),l=n,c=zP(l),{titleId:u=a}=s.useContext(nv);return S.jsx(WP,h({component:"h2",className:B(c.root,o),ownerState:l,ref:r,variant:"h6",id:a??u},i))}),ff=ee("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),VP=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function HP(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=Ht(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const u=a.getComputedStyle(t);i=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let l=0,c=0;if(i&&i!=="none"&&typeof i=="string"){const u=i.split("(")[1].split(")")[0].split(",");l=parseInt(u[4],10),c=parseInt(u[5],10)}return e==="left"?o?`translateX(${o.right+l-n.left}px)`:`translateX(${a.innerWidth+l-n.left}px)`:e==="right"?o?`translateX(-${n.right-o.left-l}px)`:`translateX(-${n.left+n.width-l}px)`:e==="up"?o?`translateY(${o.bottom+c-n.top}px)`:`translateY(${a.innerHeight+c-n.top}px)`:o?`translateY(-${n.top-o.top+n.height-c}px)`:`translateY(-${n.top+n.height-c}px)`}function UP(e){return typeof e=="function"?e():e}function Wo(e,t,r){const n=UP(r),o=HP(e,t,n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const qP=s.forwardRef(function(t,r){const n=Rr(),o={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:c,container:u,direction:d="down",easing:f=o,in:p,onEnter:m,onEntered:g,onEntering:v,onExit:b,onExited:O,onExiting:C,style:x,timeout:y=a,TransitionComponent:_=At}=t,P=W(t,VP),w=s.useRef(null),E=Me(c.ref,w,r),R=k=>L=>{k&&(L===void 0?k(w.current):k(w.current,L))},$=R((k,L)=>{Wo(d,k,u),Vc(k),m&&m(k,L)}),M=R((k,L)=>{const V=dn({timeout:y,style:x,easing:f},{mode:"enter"});k.style.webkitTransition=n.transitions.create("-webkit-transform",h({},V)),k.style.transition=n.transitions.create("transform",h({},V)),k.style.webkitTransform="none",k.style.transform="none",v&&v(k,L)}),T=R(g),N=R(C),j=R(k=>{const L=dn({timeout:y,style:x,easing:f},{mode:"exit"});k.style.webkitTransition=n.transitions.create("-webkit-transform",L),k.style.transition=n.transitions.create("transform",L),Wo(d,k,u),b&&b(k)}),F=R(k=>{k.style.webkitTransition="",k.style.transition="",O&&O(k)}),A=k=>{i&&i(w.current,k)},D=s.useCallback(()=>{w.current&&Wo(d,w.current,u)},[d,u]);return s.useEffect(()=>{if(p||d==="down"||d==="right")return;const k=Bi(()=>{w.current&&Wo(d,w.current,u)}),L=Ht(w.current);return L.addEventListener("resize",k),()=>{k.clear(),L.removeEventListener("resize",k)}},[d,p,u]),s.useEffect(()=>{p||D()},[p,D]),S.jsx(_,h({nodeRef:w,onEnter:$,onEntered:T,onEntering:M,onExit:j,onExited:F,onExiting:N,addEndListener:A,appear:l,in:p,timeout:y},P,{children:(k,L)=>s.cloneElement(c,h({ref:E,style:h({visibility:k==="exited"&&!p?"hidden":void 0},x,c.props.style)},L))}))}),KP=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],GP=e=>{const{classes:t,disableUnderline:r}=e,o=re({root:["root",!r&&"underline"],input:["input"]},Y_,t);return h({},t,o)},XP=I(ts,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Zi(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return h({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${fr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${fr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${fr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${fr.disabled}, .${fr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${fr.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&h({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),YP=I(rs,{name:"MuiFilledInput",slot:"Input",overridesResolver:es})(({theme:e,ownerState:t})=>h({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),ou=s.forwardRef(function(t,r){var n,o,a,i;const l=oe({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:g={},type:v="text"}=l,b=W(l,KP),O=h({},l,{fullWidth:d,inputComponent:f,multiline:p,type:v}),C=GP(l),x={root:{ownerState:O},input:{ownerState:O}},y=m??u?Qe(x,m??u):x,_=(n=(o=g.root)!=null?o:c.Root)!=null?n:XP,P=(a=(i=g.input)!=null?i:c.Input)!=null?a:YP;return S.jsx(Zc,h({slots:{root:_,input:P},componentsProps:y,fullWidth:d,inputComponent:f,multiline:p,ref:r,type:v},b,{classes:C}))});ou.muiName="Input";function QP(e){return Z("MuiFormControl",e)}ee("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const JP=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],ZP=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${z(r)}`,n&&"fullWidth"]};return re(o,QP,t)},eE=I("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>h({},t.root,t[`margin${z(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>h({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),tE=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:f=!1,hiddenLabel:p=!1,margin:m="none",required:g=!1,size:v="medium",variant:b="outlined"}=n,O=W(n,JP),C=h({},n,{color:i,component:l,disabled:c,error:u,fullWidth:f,hiddenLabel:p,margin:m,required:g,size:v,variant:b}),x=ZP(C),[y,_]=s.useState(()=>{let N=!1;return o&&s.Children.forEach(o,j=>{if(!Zo(j,["Input","Select"]))return;const F=Zo(j,["Select"])?j.props.input:j;F&&V_(F.props)&&(N=!0)}),N}),[P,w]=s.useState(()=>{let N=!1;return o&&s.Children.forEach(o,j=>{Zo(j,["Input","Select"])&&(Sa(j.props,!0)||Sa(j.props.inputProps,!0))&&(N=!0)}),N}),[E,R]=s.useState(!1);c&&E&&R(!1);const $=d!==void 0&&!c?d:E;let M;const T=s.useMemo(()=>({adornedStart:y,setAdornedStart:_,color:i,disabled:c,error:u,filled:P,focused:$,fullWidth:f,hiddenLabel:p,size:v,onBlur:()=>{R(!1)},onEmpty:()=>{w(!1)},onFilled:()=>{w(!0)},onFocus:()=>{R(!0)},registerEffect:M,required:g,variant:b}),[y,i,c,u,P,$,f,p,M,g,v,b]);return S.jsx(Jc.Provider,{value:T,children:S.jsx(eE,h({as:l,ownerState:C,className:B(x.root,a),ref:r},O,{children:o}))})}),is=ox({createStyledComponent:I("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>oe({props:e,name:"MuiStack"})});function rE(e){return Z("MuiFormHelperText",e)}const pf=ee("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var mf;const nE=["children","className","component","disabled","error","filled","focused","margin","required","variant"],oE=e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:l,required:c}=e,u={root:["root",o&&"disabled",a&&"error",n&&`size${z(n)}`,r&&"contained",l&&"focused",i&&"filled",c&&"required"]};return re(u,rE,t)},aE=I("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${z(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>h({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${pf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${pf.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),iE=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=n,l=W(n,nE),c=kr(),u=En({props:n,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),d=h({},n,{component:i,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=oE(d);return S.jsx(aE,h({as:i,ownerState:d,className:B(f.root,a),ref:r},l,{children:o===" "?mf||(mf=S.jsx("span",{className:"notranslate",children:"​"})):o}))});function sE(e){return Z("MuiFormLabel",e)}const Kn=ee("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),lE=["children","className","color","component","disabled","error","filled","focused","required"],cE=e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:l}=e,c={root:["root",`color${z(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return re(c,sE,t)},uE=I("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>h({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>h({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Kn.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Kn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Kn.error}`]:{color:(e.vars||e).palette.error.main}})),dE=I("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Kn.error}`]:{color:(e.vars||e).palette.error.main}})),fE=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=n,l=W(n,lE),c=kr(),u=En({props:n,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),d=h({},n,{color:u.color||"primary",component:i,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=cE(d);return S.jsxs(uE,h({as:i,ownerState:d,className:B(f.root,a),ref:r},l,{children:[o,u.required&&S.jsxs(dE,{ownerState:d,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),pE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function rl(e){return`scale(${e}, ${e**2})`}const mE={entering:{opacity:1,transform:rl(1)},entered:{opacity:1,transform:"none"}},Es=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ra=s.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:g,timeout:v="auto",TransitionComponent:b=At}=t,O=W(t,pE),C=Ur(),x=s.useRef(),y=Rr(),_=s.useRef(null),P=Me(_,a.ref,r),w=F=>A=>{if(F){const D=_.current;A===void 0?F(D):F(D,A)}},E=w(d),R=w((F,A)=>{Vc(F);const{duration:D,delay:k,easing:L}=dn({style:g,timeout:v,easing:i},{mode:"enter"});let V;v==="auto"?(V=y.transitions.getAutoHeightDuration(F.clientHeight),x.current=V):V=D,F.style.transition=[y.transitions.create("opacity",{duration:V,delay:k}),y.transitions.create("transform",{duration:Es?V:V*.666,delay:k,easing:L})].join(","),c&&c(F,A)}),$=w(u),M=w(m),T=w(F=>{const{duration:A,delay:D,easing:k}=dn({style:g,timeout:v,easing:i},{mode:"exit"});let L;v==="auto"?(L=y.transitions.getAutoHeightDuration(F.clientHeight),x.current=L):L=A,F.style.transition=[y.transitions.create("opacity",{duration:L,delay:D}),y.transitions.create("transform",{duration:Es?L:L*.666,delay:Es?D:D||L*.333,easing:k})].join(","),F.style.opacity=0,F.style.transform=rl(.75),f&&f(F)}),N=w(p),j=F=>{v==="auto"&&C.start(x.current||0,F),n&&n(_.current,F)};return S.jsx(b,h({appear:o,in:l,nodeRef:_,onEnter:R,onEntered:$,onEntering:E,onExit:T,onExited:N,onExiting:M,addEndListener:j,timeout:v==="auto"?null:v},O,{children:(F,A)=>s.cloneElement(a,h({style:h({opacity:0,transform:rl(.75),visibility:F==="exited"&&!l?"hidden":void 0},mE[F],g,a.props.style),ref:P},A))}))});Ra.muiSupportAuto=!0;const vE=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],gE=e=>{const{classes:t,disableUnderline:r}=e,o=re({root:["root",!r&&"underline"],input:["input"]},G_,t);return h({},t,o)},hE=I(ts,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Zi(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),h({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Mn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Mn.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Mn.disabled}, .${Mn.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Mn.disabled}:before`]:{borderBottomStyle:"dotted"}})}),yE=I(rs,{name:"MuiInput",slot:"Input",overridesResolver:es})({}),au=s.forwardRef(function(t,r){var n,o,a,i;const l=oe({props:t,name:"MuiInput"}),{disableUnderline:c,components:u={},componentsProps:d,fullWidth:f=!1,inputComponent:p="input",multiline:m=!1,slotProps:g,slots:v={},type:b="text"}=l,O=W(l,vE),C=gE(l),y={root:{ownerState:{disableUnderline:c}}},_=g??d?Qe(g??d,y):y,P=(n=(o=v.root)!=null?o:u.Root)!=null?n:hE,w=(a=(i=v.input)!=null?i:u.Input)!=null?a:yE;return S.jsx(Zc,h({slots:{root:P,input:w},slotProps:_,fullWidth:f,inputComponent:p,multiline:m,ref:r,type:b},O,{classes:C}))});au.muiName="Input";function bE(e){return Z("MuiInputLabel",e)}ee("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const xE=["disableAnimation","margin","shrink","variant","className"],OE=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:l}=e,c={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${z(n)}`,i],asterisk:[l&&"asterisk"]},u=re(c,bE,t);return h({},t,u)},CE=I(fE,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Kn.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>h({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&h({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&h({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&h({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),_E=s.forwardRef(function(t,r){const n=oe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=n,l=W(n,xE),c=kr();let u=a;typeof u>"u"&&c&&(u=c.filled||c.focused||c.adornedStart);const d=En({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),f=h({},n,{disableAnimation:o,formControl:c,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),p=OE(f);return S.jsx(CE,h({"data-shrink":u,ownerState:f,ref:r,className:B(p.root,i)},l,{classes:p}))}),fo=s.createContext({});function wE(e){return Z("MuiList",e)}ee("MuiList",["root","padding","dense","subheader"]);const PE=["children","className","component","dense","disablePadding","subheader"],EE=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return re({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},wE,t)},SE=I("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>h({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),$E=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:l=!1,disablePadding:c=!1,subheader:u}=n,d=W(n,PE),f=s.useMemo(()=>({dense:l}),[l]),p=h({},n,{component:i,dense:l,disablePadding:c}),m=EE(p);return S.jsx(fo.Provider,{value:f,children:S.jsxs(SE,h({as:i,className:B(m.root,a),ref:r,ownerState:p},d,{children:[u,o]}))})});function RE(e){return Z("MuiListItemIcon",e)}const vf=ee("MuiListItemIcon",["root","alignItemsFlexStart"]),kE=["className"],IE=e=>{const{alignItems:t,classes:r}=e;return re({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},RE,r)},TE=I("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>h({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),av=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiListItemIcon"}),{className:o}=n,a=W(n,kE),i=s.useContext(fo),l=h({},n,{alignItems:i.alignItems}),c=IE(l);return S.jsx(TE,h({className:B(c.root,o),ownerState:l,ref:r},a))});function jE(e){return Z("MuiListItemText",e)}const ka=ee("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ME=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],AE=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return re({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},jE,t)},NE=I("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ka.primary}`]:t.primary},{[`& .${ka.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>h({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),FE=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:l=!1,primary:c,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:f}=n,p=W(n,ME),{dense:m}=s.useContext(fo);let g=c??o,v=d;const b=h({},n,{disableTypography:i,inset:l,primary:!!g,secondary:!!v,dense:m}),O=AE(b);return g!=null&&g.type!==Ve&&!i&&(g=S.jsx(Ve,h({variant:m?"body2":"body1",className:O.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:g}))),v!=null&&v.type!==Ve&&!i&&(v=S.jsx(Ve,h({variant:"body2",className:O.secondary,color:"text.secondary",display:"block"},f,{children:v}))),S.jsxs(NE,h({className:B(O.root,a),ownerState:b,ref:r},p,{children:[g,v]}))}),BE=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ss(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function gf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function iv(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function An(e,t,r,n,o,a){let i=!1,l=o(e,t,t?r:!1);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const c=n?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!iv(l,a)||c)l=o(e,l,r);else return l.focus(),!0}return!1}const sv=s.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:f="selectedMenu"}=t,p=W(t,BE),m=s.useRef(null),g=s.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ct(()=>{o&&m.current.focus()},[o]),s.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(x,{direction:y})=>{const _=!m.current.style.width;if(x.clientHeight{const y=m.current,_=x.key,P=tt(y).activeElement;if(_==="ArrowDown")x.preventDefault(),An(y,P,u,c,Ss);else if(_==="ArrowUp")x.preventDefault(),An(y,P,u,c,gf);else if(_==="Home")x.preventDefault(),An(y,null,u,c,Ss);else if(_==="End")x.preventDefault(),An(y,null,u,c,gf);else if(_.length===1){const w=g.current,E=_.toLowerCase(),R=performance.now();w.keys.length>0&&(R-w.lastTime>500?(w.keys=[],w.repeating=!0,w.previousKeyMatched=!0):w.repeating&&E!==w.keys[0]&&(w.repeating=!1)),w.lastTime=R,w.keys.push(E);const $=P&&!w.repeating&&iv(P,w);w.previousKeyMatched&&($||An(y,P,!1,c,Ss,w))?x.preventDefault():w.previousKeyMatched=!1}d&&d(x)},b=Me(m,r);let O=-1;s.Children.forEach(i,(x,y)=>{if(!s.isValidElement(x)){O===y&&(O+=1,O>=i.length&&(O=-1));return}x.props.disabled||(f==="selectedMenu"&&x.props.selected||O===-1)&&(O=y),O===y&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(O+=1,O>=i.length&&(O=-1))});const C=s.Children.map(i,(x,y)=>{if(y===O){const _={};return a&&(_.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),s.cloneElement(x,_)}return x});return S.jsx($E,h({role:"menu",ref:b,className:l,onKeyDown:v,tabIndex:o?0:-1},p,{children:C}))});function DE(e){return Z("MuiPopover",e)}ee("MuiPopover",["root","paper"]);const LE=["onEntering"],zE=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],WE=["slotProps"];function hf(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function yf(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function bf(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function $s(e){return typeof e=="function"?e():e}const VE=e=>{const{classes:t}=e;return re({root:["root"],paper:["paper"]},DE,t)},HE=I(rv,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lv=I(Pn,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),cv=s.forwardRef(function(t,r){var n,o,a;const i=oe({props:t,name:"MuiPopover"}),{action:l,anchorEl:c,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:p,className:m,container:g,elevation:v=8,marginThreshold:b=16,open:O,PaperProps:C={},slots:x,slotProps:y,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:P=Ra,transitionDuration:w="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,$=W(i.TransitionProps,LE),M=W(i,zE),T=(n=y==null?void 0:y.paper)!=null?n:C,N=s.useRef(),j=Me(N,T.ref),F=h({},i,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:b,externalPaperSlotProps:T,transformOrigin:_,TransitionComponent:P,transitionDuration:w,TransitionProps:$}),A=VE(F),D=s.useCallback(()=>{if(f==="anchorPosition")return d;const te=$s(c),de=(te&&te.nodeType===1?te:tt(N.current).body).getBoundingClientRect();return{top:de.top+hf(de,u.vertical),left:de.left+yf(de,u.horizontal)}},[c,u.horizontal,u.vertical,d,f]),k=s.useCallback(te=>({vertical:hf(te,_.vertical),horizontal:yf(te,_.horizontal)}),[_.horizontal,_.vertical]),L=s.useCallback(te=>{const pe={width:te.offsetWidth,height:te.offsetHeight},de=k(pe);if(f==="none")return{top:null,left:null,transformOrigin:bf(de)};const at=D();let qe=at.top-de.vertical,De=at.left-de.horizontal;const Je=qe+pe.height,Re=De+pe.width,Oe=Ht($s(c)),Ke=Oe.innerHeight-b,Ae=Oe.innerWidth-b;if(b!==null&&qeKe){const he=Je-Ke;qe-=he,de.vertical+=he}if(b!==null&&DeAe){const he=Re-Ae;De-=he,de.horizontal+=he}return{top:`${Math.round(qe)}px`,left:`${Math.round(De)}px`,transformOrigin:bf(de)}},[c,f,D,k,b]),[V,U]=s.useState(O),ie=s.useCallback(()=>{const te=N.current;if(!te)return;const pe=L(te);pe.top!==null&&(te.style.top=pe.top),pe.left!==null&&(te.style.left=pe.left),te.style.transformOrigin=pe.transformOrigin,U(!0)},[L]);s.useEffect(()=>(R&&window.addEventListener("scroll",ie),()=>window.removeEventListener("scroll",ie)),[c,R,ie]);const se=(te,pe)=>{E&&E(te,pe),ie()},G=()=>{U(!1)};s.useEffect(()=>{O&&ie()}),s.useImperativeHandle(l,()=>O?{updatePosition:()=>{ie()}}:null,[O,ie]),s.useEffect(()=>{if(!O)return;const te=Bi(()=>{ie()}),pe=Ht(c);return pe.addEventListener("resize",te),()=>{te.clear(),pe.removeEventListener("resize",te)}},[c,O,ie]);let H=w;w==="auto"&&!P.muiSupportAuto&&(H=void 0);const Q=g||(c?tt($s(c)).body:void 0),fe=(o=x==null?void 0:x.root)!=null?o:HE,ne=(a=x==null?void 0:x.paper)!=null?a:lv,le=Sr({elementType:ne,externalSlotProps:h({},T,{style:V?T.style:h({},T.style,{opacity:0})}),additionalProps:{elevation:v,ref:j},ownerState:F,className:B(A.paper,T==null?void 0:T.className)}),$e=Sr({elementType:fe,externalSlotProps:(y==null?void 0:y.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:Q,open:O},ownerState:F,className:B(A.root,m)}),{slotProps:J}=$e,ge=W($e,WE);return S.jsx(fe,h({},ge,!_a(fe)&&{slotProps:J,disableScrollLock:R},{children:S.jsx(P,h({appear:!0,in:O,onEntering:se,onExited:G,timeout:H},$,{children:S.jsx(ne,h({},le,{children:p}))}))}))});function UE(e){return Z("MuiMenu",e)}ee("MuiMenu",["root","paper","list"]);const qE=["onEntering"],KE=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],GE={vertical:"top",horizontal:"right"},XE={vertical:"top",horizontal:"left"},YE=e=>{const{classes:t}=e;return re({root:["root"],paper:["paper"],list:["list"]},UE,t)},QE=I(cv,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),JE=I(lv,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ZE=I(sv,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ss=s.forwardRef(function(t,r){var n,o;const a=oe({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:l,className:c,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:f,open:p,PaperProps:m={},PopoverClasses:g,transitionDuration:v="auto",TransitionProps:{onEntering:b}={},variant:O="selectedMenu",slots:C={},slotProps:x={}}=a,y=W(a.TransitionProps,qE),_=W(a,KE),P=_m(),w=h({},a,{autoFocus:i,disableAutoFocusItem:u,MenuListProps:d,onEntering:b,PaperProps:m,transitionDuration:v,TransitionProps:y,variant:O}),E=YE(w),R=i&&!u&&p,$=s.useRef(null),M=(k,L)=>{$.current&&$.current.adjustStyleForScrollbar(k,{direction:P?"rtl":"ltr"}),b&&b(k,L)},T=k=>{k.key==="Tab"&&(k.preventDefault(),f&&f(k,"tabKeyDown"))};let N=-1;s.Children.map(l,(k,L)=>{s.isValidElement(k)&&(k.props.disabled||(O==="selectedMenu"&&k.props.selected||N===-1)&&(N=L))});const j=(n=C.paper)!=null?n:JE,F=(o=x.paper)!=null?o:m,A=Sr({elementType:C.root,externalSlotProps:x.root,ownerState:w,className:[E.root,c]}),D=Sr({elementType:j,externalSlotProps:F,ownerState:w,className:E.paper});return S.jsx(QE,h({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?GE:XE,slots:{paper:j,root:C.root},slotProps:{root:A,paper:D},open:p,ref:r,transitionDuration:v,TransitionProps:h({onEntering:M},y),ownerState:w},_,{classes:g,children:S.jsx(ZE,h({onKeyDown:T,actions:$,autoFocus:i&&(N===-1||u),autoFocusItem:R,variant:O},d,{className:B(E.list,d.className),children:l}))}))});function eS(e){return Z("MuiMenuItem",e)}const Nn=ee("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),tS=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],rS=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},nS=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,c=re({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},eS,i);return h({},i,c)},oS=I(fn,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:rS})(({theme:e,ownerState:t})=>h({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Nn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Se(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Se(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Nn.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Se(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Se(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Nn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ff.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ff.inset}`]:{marginLeft:52},[`& .${ka.root}`]:{marginTop:0,marginBottom:0},[`& .${ka.inset}`]:{paddingLeft:36},[`& .${vf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&h({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${vf.root} svg`]:{fontSize:"1.25rem"}}))),ar=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:f,className:p}=n,m=W(n,tS),g=s.useContext(fo),v=s.useMemo(()=>({dense:i||g.dense||!1,disableGutters:c}),[g.dense,i,c]),b=s.useRef(null);Ct(()=>{o&&b.current&&b.current.focus()},[o]);const O=h({},n,{dense:v.dense,divider:l,disableGutters:c}),C=nS(n),x=Me(b,r);let y;return n.disabled||(y=f!==void 0?f:-1),S.jsx(fo.Provider,{value:v,children:S.jsx(oS,h({ref:x,role:d,tabIndex:y,component:a,focusVisibleClassName:B(C.focusVisible,u),className:B(C.root,p)},m,{ownerState:O,classes:C}))})});function aS(e){return Z("MuiNativeSelect",e)}const iu=ee("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),iS=["className","disabled","error","IconComponent","inputRef","variant"],sS=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,l={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${z(r)}`,a&&"iconOpen",n&&"disabled"]};return re(l,aS,t)},uv=({ownerState:e,theme:t})=>h({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":h({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${iu.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),lS=I("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ot,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${iu.multiple}`]:t.multiple}]}})(uv),dv=({ownerState:e,theme:t})=>h({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${iu.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),cS=I("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${z(r.variant)}`],r.open&&t.iconOpen]}})(dv),uS=s.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:l,variant:c="standard"}=t,u=W(t,iS),d=h({},t,{disabled:o,variant:c,error:a}),f=sS(d);return S.jsxs(s.Fragment,{children:[S.jsx(lS,h({ownerState:d,className:B(f.select,n),disabled:o,ref:l||r},u)),t.multiple?null:S.jsx(cS,{as:i,ownerState:d,className:f.icon})]})});var xf;const dS=["children","classes","className","label","notched"],fS=I("fieldset",{shouldForwardProp:ot})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),pS=I("legend",{shouldForwardProp:ot})(({ownerState:e,theme:t})=>h({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&h({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function mS(e){const{className:t,label:r,notched:n}=e,o=W(e,dS),a=r!=null&&r!=="",i=h({},e,{notched:n,withLabel:a});return S.jsx(fS,h({"aria-hidden":!0,className:t,ownerState:i},o,{children:S.jsx(pS,{ownerState:i,children:a?S.jsx("span",{children:r}):xf||(xf=S.jsx("span",{className:"notranslate",children:"​"}))})}))}const vS=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],gS=e=>{const{classes:t}=e,n=re({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},X_,t);return h({},t,n)},hS=I(ts,{shouldForwardProp:e=>ot(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Zi})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return h({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${rr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${rr.focused} .${rr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${rr.error} .${rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${rr.disabled} .${rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&h({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),yS=I(mS,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),bS=I(rs,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:es})(({theme:e,ownerState:t})=>h({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),su=s.forwardRef(function(t,r){var n,o,a,i,l;const c=oe({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:d=!1,inputComponent:f="input",label:p,multiline:m=!1,notched:g,slots:v={},type:b="text"}=c,O=W(c,vS),C=gS(c),x=kr(),y=En({props:c,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=h({},c,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:x,fullWidth:d,hiddenLabel:y.hiddenLabel,multiline:m,size:y.size,type:b}),P=(n=(o=v.root)!=null?o:u.Root)!=null?n:hS,w=(a=(i=v.input)!=null?i:u.Input)!=null?a:bS;return S.jsx(Zc,h({slots:{root:P,input:w},renderSuffix:E=>S.jsx(yS,{ownerState:_,className:C.notchedOutline,label:p!=null&&p!==""&&y.required?l||(l=S.jsxs(s.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:d,inputComponent:f,multiline:m,ref:r,type:b},O,{classes:h({},C,{notchedOutline:null})}))});su.muiName="Input";function xS(e){return Z("MuiSelect",e)}const Fn=ee("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Of;const OS=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],CS=I("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Fn.select}`]:t.select},{[`&.${Fn.select}`]:t[r.variant]},{[`&.${Fn.error}`]:t.error},{[`&.${Fn.multiple}`]:t.multiple}]}})(uv,{[`&.${Fn.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),_S=I("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${z(r.variant)}`],r.open&&t.iconOpen]}})(dv),wS=I("input",{shouldForwardProp:e=>Nm(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Cf(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function PS(e){return e==null||typeof e=="string"&&!e.trim()}const ES=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,l={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${z(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return re(l,xS,t)},SS=s.forwardRef(function(t,r){var n;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:l,children:c,className:u,defaultOpen:d,defaultValue:f,disabled:p,displayEmpty:m,error:g=!1,IconComponent:v,inputRef:b,labelId:O,MenuProps:C={},multiple:x,name:y,onBlur:_,onChange:P,onClose:w,onFocus:E,onOpen:R,open:$,readOnly:M,renderValue:T,SelectDisplayProps:N={},tabIndex:j,value:F,variant:A="standard"}=t,D=W(t,OS),[k,L]=lo({controlled:F,default:f,name:"Select"}),[V,U]=lo({controlled:$,default:d,name:"Select"}),ie=s.useRef(null),se=s.useRef(null),[G,H]=s.useState(null),{current:Q}=s.useRef($!=null),[fe,ne]=s.useState(),le=Me(r,b),$e=s.useCallback(q=>{se.current=q,q&&H(q)},[]),J=G==null?void 0:G.parentNode;s.useImperativeHandle(le,()=>({focus:()=>{se.current.focus()},node:ie.current,value:k}),[k]),s.useEffect(()=>{d&&V&&G&&!Q&&(ne(l?null:J.clientWidth),se.current.focus())},[G,l]),s.useEffect(()=>{i&&se.current.focus()},[i]),s.useEffect(()=>{if(!O)return;const q=tt(se.current).getElementById(O);if(q){const Pe=()=>{getSelection().isCollapsed&&se.current.focus()};return q.addEventListener("click",Pe),()=>{q.removeEventListener("click",Pe)}}},[O]);const ge=(q,Pe)=>{q?R&&R(Pe):w&&w(Pe),Q||(ne(l?null:J.clientWidth),U(q))},te=q=>{q.button===0&&(q.preventDefault(),se.current.focus(),ge(!0,q))},pe=q=>{ge(!1,q)},de=s.Children.toArray(c),at=q=>{const Pe=de.find(Ie=>Ie.props.value===q.target.value);Pe!==void 0&&(L(Pe.props.value),P&&P(q,Pe))},qe=q=>Pe=>{let Ie;if(Pe.currentTarget.hasAttribute("tabindex")){if(x){Ie=Array.isArray(k)?k.slice():[];const kt=k.indexOf(q.props.value);kt===-1?Ie.push(q.props.value):Ie.splice(kt,1)}else Ie=q.props.value;if(q.props.onClick&&q.props.onClick(Pe),k!==Ie&&(L(Ie),P)){const kt=Pe.nativeEvent||Pe,Tr=new kt.constructor(kt.type,kt);Object.defineProperty(Tr,"target",{writable:!0,value:{value:Ie,name:y}}),P(Tr,q)}x||ge(!1,Pe)}},De=q=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(q.key)!==-1&&(q.preventDefault(),ge(!0,q))},Je=G!==null&&V,Re=q=>{!Je&&_&&(Object.defineProperty(q,"target",{writable:!0,value:{value:k,name:y}}),_(q))};delete D["aria-invalid"];let Oe,Ke;const Ae=[];let he=!1;(Sa({value:k})||m)&&(T?Oe=T(k):he=!0);const Ge=de.map(q=>{if(!s.isValidElement(q))return null;let Pe;if(x){if(!Array.isArray(k))throw new Error(Qt(2));Pe=k.some(Ie=>Cf(Ie,q.props.value)),Pe&&he&&Ae.push(q.props.children)}else Pe=Cf(k,q.props.value),Pe&&he&&(Ke=q.props.children);return s.cloneElement(q,{"aria-selected":Pe?"true":"false",onClick:qe(q),onKeyUp:Ie=>{Ie.key===" "&&Ie.preventDefault(),q.props.onKeyUp&&q.props.onKeyUp(Ie)},role:"option",selected:Pe,value:void 0,"data-value":q.props.value})});he&&(x?Ae.length===0?Oe=null:Oe=Ae.reduce((q,Pe,Ie)=>(q.push(Pe),Ie{const{classes:t}=e;return t},lu={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ot(e)&&e!=="variant",slot:"Root"},IS=I(au,lu)(""),TS=I(su,lu)(""),jS=I(ou,lu)(""),fv=s.forwardRef(function(t,r){const n=oe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=Q_,id:f,input:p,inputProps:m,label:g,labelId:v,MenuProps:b,multiple:O=!1,native:C=!1,onClose:x,onOpen:y,open:_,renderValue:P,SelectDisplayProps:w,variant:E="outlined"}=n,R=W(n,$S),$=C?uS:SS,M=kr(),T=En({props:n,muiFormControl:M,states:["variant","error"]}),N=T.variant||E,j=h({},n,{variant:N,classes:i}),F=kS(j),A=W(F,RS),D=p||{standard:S.jsx(IS,{ownerState:j}),outlined:S.jsx(TS,{label:g,ownerState:j}),filled:S.jsx(jS,{ownerState:j})}[N],k=Me(r,D.ref);return S.jsx(s.Fragment,{children:s.cloneElement(D,h({inputComponent:$,inputProps:h({children:a,error:T.error,IconComponent:d,variant:N,type:void 0,multiple:O},C?{id:f}:{autoWidth:o,defaultOpen:c,displayEmpty:u,labelId:v,MenuProps:b,onClose:x,onOpen:y,open:_,renderValue:P,SelectDisplayProps:h({id:f},w)},m,{classes:m?Qe(A,m.classes):A},p?p.props.inputProps:{})},(O&&C||u)&&N==="outlined"?{notched:!0}:{},{ref:k,className:B(D.props.className,l,F.root)},!p&&{variant:N},R))})});fv.muiName="Select";function MS(e){return Z("MuiTooltip",e)}const ir=ee("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),AS=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function NS(e){return Math.round(e*1e5)/1e5}const FS=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:a}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${z(a.split("-")[0])}`],arrow:["arrow"]};return re(i,MS,t)},BS=I(Qm,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>h({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${ir.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ir.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ir.arrow}`]:h({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${ir.arrow}`]:h({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),DS=I("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${z(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>h({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Se(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${NS(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ir.popper}[data-popper-placement*="left"] &`]:h({transformOrigin:"right center"},t.isRtl?h({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):h({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${ir.popper}[data-popper-placement*="right"] &`]:h({transformOrigin:"left center"},t.isRtl?h({marginRight:"14px"},t.touch&&{marginRight:"24px"}):h({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${ir.popper}[data-popper-placement*="top"] &`]:h({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ir.popper}[data-popper-placement*="bottom"] &`]:h({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),LS=I("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Se(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Vo=!1;const _f=new Co;let Bn={x:0,y:0};function Ho(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Ir=s.forwardRef(function(t,r){var n,o,a,i,l,c,u,d,f,p,m,g,v,b,O,C,x,y,_;const P=oe({props:t,name:"MuiTooltip"}),{arrow:w=!1,children:E,components:R={},componentsProps:$={},describeChild:M=!1,disableFocusListener:T=!1,disableHoverListener:N=!1,disableInteractive:j=!1,disableTouchListener:F=!1,enterDelay:A=100,enterNextDelay:D=0,enterTouchDelay:k=700,followCursor:L=!1,id:V,leaveDelay:U=0,leaveTouchDelay:ie=1500,onClose:se,onOpen:G,open:H,placement:Q="bottom",PopperComponent:fe,PopperProps:ne={},slotProps:le={},slots:$e={},title:J,TransitionComponent:ge=Ra,TransitionProps:te}=P,pe=W(P,AS),de=s.isValidElement(E)?E:S.jsx("span",{children:E}),at=Rr(),qe=_m(),[De,Je]=s.useState(),[Re,Oe]=s.useState(null),Ke=s.useRef(!1),Ae=j||L,he=Ur(),Ge=Ur(),Ze=Ur(),rt=Ur(),[ye,X]=lo({controlled:H,default:!1,name:"Tooltip",state:"open"});let ze=ye;const qt=Oo(V),Rt=s.useRef(),q=Yt(()=>{Rt.current!==void 0&&(document.body.style.WebkitUserSelect=Rt.current,Rt.current=void 0),rt.clear()});s.useEffect(()=>q,[q]);const Pe=ce=>{_f.clear(),Vo=!0,X(!0),G&&!ze&&G(ce)},Ie=Yt(ce=>{_f.start(800+U,()=>{Vo=!1}),X(!1),se&&ze&&se(ce),he.start(at.transitions.duration.shortest,()=>{Ke.current=!1})}),kt=ce=>{Ke.current&&ce.type!=="touchstart"||(De&&De.removeAttribute("title"),Ge.clear(),Ze.clear(),A||Vo&&D?Ge.start(Vo?D:A,()=>{Pe(ce)}):Pe(ce))},Tr=ce=>{Ge.clear(),Ze.start(U,()=>{Ie(ce)})},{isFocusVisibleRef:ed,onBlur:nh,onFocus:oh,ref:ah}=Ac(),[,td]=s.useState(!1),rd=ce=>{nh(ce),ed.current===!1&&(td(!1),Tr(ce))},nd=ce=>{De||Je(ce.currentTarget),oh(ce),ed.current===!0&&(td(!0),kt(ce))},od=ce=>{Ke.current=!0;const ft=de.props;ft.onTouchStart&&ft.onTouchStart(ce)},ih=ce=>{od(ce),Ze.clear(),he.clear(),q(),Rt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",rt.start(k,()=>{document.body.style.WebkitUserSelect=Rt.current,kt(ce)})},sh=ce=>{de.props.onTouchEnd&&de.props.onTouchEnd(ce),q(),Ze.start(ie,()=>{Ie(ce)})};s.useEffect(()=>{if(!ze)return;function ce(ft){(ft.key==="Escape"||ft.key==="Esc")&&Ie(ft)}return document.addEventListener("keydown",ce),()=>{document.removeEventListener("keydown",ce)}},[Ie,ze]);const lh=Me(de.ref,ah,Je,r);!J&&J!==0&&(ze=!1);const fs=s.useRef(),ch=ce=>{const ft=de.props;ft.onMouseMove&&ft.onMouseMove(ce),Bn={x:ce.clientX,y:ce.clientY},fs.current&&fs.current.update()},$n={},ps=typeof J=="string";M?($n.title=!ze&&ps&&!N?J:null,$n["aria-describedby"]=ze?qt:null):($n["aria-label"]=ps?J:null,$n["aria-labelledby"]=ze&&!ps?qt:null);const It=h({},$n,pe,de.props,{className:B(pe.className,de.props.className),onTouchStart:od,ref:lh},L?{onMouseMove:ch}:{}),Rn={};F||(It.onTouchStart=ih,It.onTouchEnd=sh),N||(It.onMouseOver=Ho(kt,It.onMouseOver),It.onMouseLeave=Ho(Tr,It.onMouseLeave),Ae||(Rn.onMouseOver=kt,Rn.onMouseLeave=Tr)),T||(It.onFocus=Ho(nd,It.onFocus),It.onBlur=Ho(rd,It.onBlur),Ae||(Rn.onFocus=nd,Rn.onBlur=rd));const uh=s.useMemo(()=>{var ce;let ft=[{name:"arrow",enabled:!!Re,options:{element:Re,padding:4}}];return(ce=ne.popperOptions)!=null&&ce.modifiers&&(ft=ft.concat(ne.popperOptions.modifiers)),h({},ne.popperOptions,{modifiers:ft})},[Re,ne]),kn=h({},P,{isRtl:qe,arrow:w,disableInteractive:Ae,placement:Q,PopperComponentProp:fe,touch:Ke.current}),ms=FS(kn),ad=(n=(o=$e.popper)!=null?o:R.Popper)!=null?n:BS,id=(a=(i=(l=$e.transition)!=null?l:R.Transition)!=null?i:ge)!=null?a:Ra,sd=(c=(u=$e.tooltip)!=null?u:R.Tooltip)!=null?c:DS,ld=(d=(f=$e.arrow)!=null?f:R.Arrow)!=null?d:LS,dh=qr(ad,h({},ne,(p=le.popper)!=null?p:$.popper,{className:B(ms.popper,ne==null?void 0:ne.className,(m=(g=le.popper)!=null?g:$.popper)==null?void 0:m.className)}),kn),fh=qr(id,h({},te,(v=le.transition)!=null?v:$.transition),kn),ph=qr(sd,h({},(b=le.tooltip)!=null?b:$.tooltip,{className:B(ms.tooltip,(O=(C=le.tooltip)!=null?C:$.tooltip)==null?void 0:O.className)}),kn),mh=qr(ld,h({},(x=le.arrow)!=null?x:$.arrow,{className:B(ms.arrow,(y=(_=le.arrow)!=null?_:$.arrow)==null?void 0:y.className)}),kn);return S.jsxs(s.Fragment,{children:[s.cloneElement(de,It),S.jsx(ad,h({as:fe??Qm,placement:Q,anchorEl:L?{getBoundingClientRect:()=>({top:Bn.y,left:Bn.x,right:Bn.x,bottom:Bn.y,width:0,height:0})}:De,popperRef:fs,open:De?ze:!1,id:qt,transition:!0},Rn,dh,{popperOptions:uh,children:({TransitionProps:ce})=>S.jsx(id,h({timeout:at.transitions.duration.shorter},ce,fh,{children:S.jsxs(sd,h({},ph,{children:[J,w?S.jsx(ld,h({},mh,{ref:Oe})):null]}))}))}))]})}),zS=s.createContext(),WS=s.createContext();function VS(e){return Z("MuiTableCell",e)}const HS=ee("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),US=["align","className","component","padding","scope","size","sortDirection","variant"],qS=e=>{const{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:i}=e,l={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${z(n)}`,o!=="normal"&&`padding${z(o)}`,`size${z(a)}`]};return re(l,VS,t)},KS=I("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${z(r.size)}`],r.padding!=="normal"&&t[`padding${z(r.padding)}`],r.align!=="inherit"&&t[`align${z(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>h({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?$m(Se(e.palette.divider,1),.88):Sm(Se(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${HS.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),pt=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:l,scope:c,size:u,sortDirection:d,variant:f}=n,p=W(n,US),m=s.useContext(zS),g=s.useContext(WS),v=g&&g.variant==="head";let b;i?b=i:b=v?"th":"td";let O=c;b==="td"?O=void 0:!O&&v&&(O="col");const C=f||g&&g.variant,x=h({},n,{align:o,component:b,padding:l||(m&&m.padding?m.padding:"normal"),size:u||(m&&m.size?m.size:"medium"),sortDirection:d,stickyHeader:C==="head"&&m&&m.stickyHeader,variant:C}),y=qS(x);let _=null;return d&&(_=d==="asc"?"ascending":"descending"),S.jsx(KS,h({as:b,ref:r,className:B(y.root,a),"aria-sort":_,scope:O,ownerState:x},p))});function GS(e){return Z("MuiToolbar",e)}ee("MuiToolbar",["root","gutters","regular","dense"]);const XS=["className","component","disableGutters","variant"],YS=e=>{const{classes:t,disableGutters:r,variant:n}=e;return re({root:["root",!r&&"gutters",n]},GS,t)},QS=I("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>h({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),So=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:l="regular"}=n,c=W(n,XS),u=h({},n,{component:a,disableGutters:i,variant:l}),d=YS(u);return S.jsx(QS,h({as:a,className:B(d.root,o),ref:r,ownerState:u},c))}),TN=er(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),jN=er(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function JS(e){return Z("MuiTextField",e)}ee("MuiTextField",["root"]);const ZS=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],e$={standard:au,filled:ou,outlined:su},t$=e=>{const{classes:t}=e;return re({root:["root"]},JS,t)},r$=I(tE,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cu=s.forwardRef(function(t,r){const n=oe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:p,fullWidth:m=!1,helperText:g,id:v,InputLabelProps:b,inputProps:O,InputProps:C,inputRef:x,label:y,maxRows:_,minRows:P,multiline:w=!1,name:E,onBlur:R,onChange:$,onFocus:M,placeholder:T,required:N=!1,rows:j,select:F=!1,SelectProps:A,type:D,value:k,variant:L="outlined"}=n,V=W(n,ZS),U=h({},n,{autoFocus:a,color:c,disabled:d,error:f,fullWidth:m,multiline:w,required:N,select:F,variant:L}),ie=t$(U),se={};L==="outlined"&&(b&&typeof b.shrink<"u"&&(se.notched=b.shrink),se.label=y),F&&((!A||!A.native)&&(se.id=void 0),se["aria-describedby"]=void 0);const G=Oo(v),H=g&&G?`${G}-helper-text`:void 0,Q=y&&G?`${G}-label`:void 0,fe=e$[L],ne=S.jsx(fe,h({"aria-describedby":H,autoComplete:o,autoFocus:a,defaultValue:u,fullWidth:m,multiline:w,name:E,rows:j,maxRows:_,minRows:P,type:D,value:k,id:G,inputRef:x,onBlur:R,onChange:$,onFocus:M,placeholder:T,inputProps:O},se,C));return S.jsxs(r$,h({className:B(ie.root,l),disabled:d,error:f,fullWidth:m,ref:r,required:N,color:c,variant:L,ownerState:U},V,{children:[y!=null&&y!==""&&S.jsx(_E,h({htmlFor:G,id:Q},b,{children:y})),F?S.jsx(fv,h({"aria-describedby":H,id:G,labelId:Q,value:k,input:ne},A,{children:i})):ne,g&&S.jsx(iE,h({id:H},p,{children:g}))]}))}),n$=["getTrigger","target"];function o$(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:o}=t,a=e.current;return o&&(e.current=o.pageYOffset!==void 0?o.pageYOffset:o.scrollTop),!r&&a!==void 0&&e.currentn}const a$=typeof window<"u"?window:null;function pv(e={}){const{getTrigger:t=o$,target:r=a$}=e,n=W(e,n$),o=s.useRef(),[a,i]=s.useState(()=>t(o,n));return s.useEffect(()=>{const l=()=>{i(t(o,h({target:r},n)))};return l(),r.addEventListener("scroll",l,{passive:!0}),()=>{r.removeEventListener("scroll",l,{passive:!0})}},[r,t,JSON.stringify(n)]),a}var uu={},Rs={};const i$=Zt(vO);var wf;function Ce(){return wf||(wf=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=i$}(Rs)),Rs}var s$=ve;Object.defineProperty(uu,"__esModule",{value:!0});var du=uu.default=void 0,l$=s$(Ce()),c$=S;du=uu.default=(0,l$.default)((0,c$.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var Gn=function(){return Gn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?s.createElement(E2,null):null,t&&s.createElement(mR,null),s.createElement(L$,null))},yR=s.createElement(hR,null),bR=s.createElement(wv,null),gr="RaAppBar",xr={appBar:"".concat(gr,"-appBar"),toolbar:"".concat(gr,"-toolbar"),menuButton:"".concat(gr,"-menuButton"),menuButtonIconClosed:"".concat(gr,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(gr,"-menuButtonIconOpen"),title:"".concat(gr,"-title")},xR=I(lC,{name:gr,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(xr.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(xr.menuButton)]={marginRight:"0.2em"},t["& .".concat(xr.title)]={},t}),xu={},OR=ve;Object.defineProperty(xu,"__esModule",{value:!0});var kv=xu.default=void 0,CR=OR(Ce()),_R=S;kv=xu.default=(0,CR.default)((0,_R.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var Ou={},wR=ve;Object.defineProperty(Ou,"__esModule",{value:!0});var Iv=Ou.default=void 0,PR=wR(Ce()),ER=S;Iv=Ou.default=(0,PR.default)((0,ER.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var Yn=function(){return Yn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element");var c=n===!1?s.createElement(Nv,Fa({title:r,defaultTitle:t},o)):s.createElement(ik,Fa({title:r,defaultTitle:t,preferenceKey:n},o));return s.createElement(s.Fragment,null,op.createPortal(c,i))},ml=function(){return ml=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,$=U2(b===!1||b===void 0?void 0:!b,u||!R||w||E);cp(f==="submit"&&(c&&(c.onSuccess||c.onError)||p),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var M=s.useCallback(function(j){return Rf(void 0,void 0,void 0,function(){var F;return kf(this,function(A){switch(A.label){case 0:return y!=null&&y.save?[4,y.save(j,Zn(Zn({},c),{transform:p}))]:[3,2];case 1:F=A.sent(),A.label=2;case 2:return F!=null&&zh(F,x.setError),[2]}})})},[x.setError,y,c,p]),T=s.useCallback(function(j){return Rf(void 0,void 0,void 0,function(){return kf(this,function(F){switch(F.label){case 0:return l&&l(j),j.defaultPrevented?[2]:f!=="button"?[3,2]:(j.stopPropagation(),[4,x.handleSubmit(M)(j)]);case 1:F.sent(),F.label=2;case 2:return[2]}})})},[l,f,x,M]),N=i&&C(i,{_:i});return s.createElement(H2,Zn({variant:g,type:f,color:r,"aria-label":N,disabled:$,onClick:T},O),E?s.createElement(as,{sx:z2,size:14,thickness:3,color:"inherit"}):o,N)},z2={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},W2=s.createElement(ng,null),V2="RaSaveButton",H2=I(ut,{name:V2,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),U2=function(e,t){return typeof e>"u"?t:e},q2=function(){return Y.createElement(G2,{onClick:X2,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},K2="RaSkipNavigationButton",G2=I(Nt,{name:K2,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}}),X2=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Rl=function(){return Rl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]"u")throw new Error("DatagridRow expects an id prop");var y=lg(),_=ae(),P=ur(e);if(!P)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var w=He(e);if(!w)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var E=(!y||!y.isRowExpandable||y.isRowExpandable(P))&&i,R=Uh(w,f,y&&y.expandSingle),$=R[0],M=R[1],T=s.useState(function(){return If(E,o,c)}),N=T[0],j=T[1];s.useEffect(function(){var V=If(E,o,c);V!==N&&j(V)},[E,N,o,c]);var F=vc(),A=s.useCallback(function(V){M(),V.stopPropagation()},[M]),D=s.useCallback(function(V){!C||!p||(p(f,V),V.stopPropagation())},[f,p,C]),k=qh(),L=s.useCallback(function(V){return mI(void 0,void 0,void 0,function(){var U;return vI(this,function(ie){switch(ie.label){case 0:return V.persist(),[4,k({record:P,resource:w,link:typeof m=="function"?function(se,G){return m(se.id,G,se)}:m})];case 1:return U=ie.sent(),m==="expand"?(A(V),[2]):m==="toggleSelection"?(D(V),[2]):U===!1||U==null?[2]:(F(U,{state:{_scrollToTop:!0}}),[2])}})})},[P,w,m,F,A,D,k]);return Y.createElement(Y.Fragment,null,Y.createElement(to,Al({ref:t,className:B(a,(r={},r[K.expandable]=E,r[K.selectable]=C,r[K.clickableRow]=typeof m=="function"?!0:m,r)),key:f,style:b,hover:d,onClick:L},x),i&&Y.createElement(pt,{padding:"none",className:K.expandIconCell},E&&Y.createElement(pI,{className:B(K.expandIcon,(n={},n[K.expanded]=$,n)),expanded:$,onClick:A,expandContentId:"".concat(f,"-expand")})),c&&Y.createElement(pt,{padding:"checkbox"},Y.createElement($a,{"aria-label":_("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(K.checkbox),checked:C&&v,onClick:D,disabled:!C})),Y.Children.map(o,function(V,U){return s.isValidElement(V)?Y.createElement(sg,{key:"".concat(f,"-").concat(V.props.source||U),className:B("column-".concat(V.props.source),K.rowCell),record:P,field:V,resource:w}):null})),E&&$&&Y.createElement(to,{key:"".concat(f,"-expand"),id:"".concat(f,"-expand"),className:K.expandedPanel},Y.createElement(pt,{colSpan:N},s.isValidElement(i)?i:s.createElement(i))))}),gI=function(e,t){e.children,e.expand;var r=Nl(e,["children","expand"]);t.children,t.expand;var n=Nl(t,["children","expand"]);return Kh(r,n)},ug=s.memo(cg,gI);ug.displayName="PureDatagridRow";var Ka=function(){return Ka=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=AI&&(a=MI,i=!1,t=new RI(t));e:for(;++o0&&x.length>0&&x.every(function(y){return m.includes(y)}),onChange:C,onClick:function(y){return y.stopPropagation()}})),s.Children.map(t,function(y,_){return s.isValidElement(y)?s.createElement(CI,{className:B(K.headerCell,"column-".concat(y.props.source)),sort:d,field:y,isSorting:(d==null?void 0:d.field)===(y.props.sortBy||y.props.source),key:y.props.source||_,updateSort:O||void 0}):null})))};pg.displayName="DatagridHeader";var qI=function(e){var t=e.children,r=e.value;return Y.createElement(Lu.Provider,{value:r},t)},Wu={},KI=ve;Object.defineProperty(Wu,"__esModule",{value:!0});var mg=Wu.default=void 0,GI=KI(Ce()),XI=S;mg=Wu.default=(0,GI.default)((0,XI.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Bl=function(){return Bl=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] element instead.")})},[r]);var d=function(){if(!r)return[];var m=a.getValues();return r.filter(function(g){var v=zt(m,g.props.source);return g.props.alwaysOn||c[g.props.source]||!gg(v)})},f=s.useCallback(function(m){return u(m.currentTarget.dataset.key)},[u]),p=s.useMemo(function(){return{getSource:function(m){return m},getLabel:function(m){return"resources.".concat(o,".fields.").concat(m)}}},[o]);return s.createElement(dy,{value:p},s.createElement(gT,cr({className:t},pT(n),{onSubmit:fT}),d().map(function(m){return s.createElement(aT,{key:m.key||m.props.source,filterElement:m,handleHide:f,resource:o,className:Xa.filterFormInput})}),s.createElement("div",{className:Xa.clearFix})))},fT=function(e){return e.preventDefault(),!1},pT=function(e){e.hasCreate,e.resource;var t=Vu(e,["hasCreate","resource"]);return t},mT=function(e,t){return cr(cr({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return fy(cr({},r),n.props.source,n.props.defaultValue)},{})),e)},vT=function(e){return e.preventDefault(),e.stopPropagation(),!1},Ll="RaFilterForm",Xa={clearFix:"".concat(Ll,"-clearFix"),filterFormInput:"".concat(Ll,"-filterFormInput")},gT=I("form",{name:Ll,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flex:"0 1 auto"},t[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(Xa.clearFix)]={clear:"right"},t["& .".concat(Xa.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),hT=function(e,t){var r;return Object.keys(e).reduce(function(n,o){return n[o]=vg(e,o,t),n},(r=bp(t))!==null&&r!==void 0?r:{})},vg=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t]))return zt(r,t,"");if(e[t]instanceof Date)return zt(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(o,a){var i,l=vg(e[t],a,(i=(r||{})[t])!==null&&i!==void 0?i:{});return o[a]=l,o},{});return Object.keys(n).length?n:""}return zt(r,t,"")},gg=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return gg(e[t])}):!1},Hu={},yT=ve;Object.defineProperty(Hu,"__esModule",{value:!0});var hg=Hu.default=void 0,bT=yT(Ce()),xT=S;hg=Hu.default=(0,bT.default)((0,xT.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var OT=s.forwardRef(function(e,t){var r=e.filter,n=e.onShow,o=e.autoFocus,a=He(e),i=s.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]);return s.createElement(ar,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i,autoFocus:o,ref:t,disabled:r.props.disabled},s.createElement(eo,{label:r.props.label,source:r.props.source,resource:a}))}),Uu=function(e){return oi("".concat(e,".savedQueries"),[])},qu=function(e){return Array.isArray(e)?e.filter(function(t){return CT(t)}):[]},CT=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},_T=function(e){var t=e.open,r=e.onClose,n=ae(),o=Mt(),a=o.resource,i=o.filterValues,l=o.displayedFilters,c=o.sort,u=o.perPage,d=Uu(a),f=d[0],p=d[1],m=s.useState(""),g=m[0],v=m[1],b=function(x){v(x.target.value)},O=function(x){x.preventDefault(),C()},C=function(){var x={label:g,value:{filter:i,sort:c,perPage:u,displayedFilters:l}},y=qu(f);p(y.concat(x)),v(""),r()};return s.createElement(eu,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},s.createElement(nu,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),s.createElement(ru,null,s.createElement("form",{onSubmit:O},s.createElement(cu,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:g,onChange:b}))),s.createElement(tu,null,s.createElement(ut,{onClick:r},n("ra.action.cancel")),s.createElement(ut,{onClick:C,color:"primary"},n("ra.action.save"))))},Nf=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n must be called inside a ResourceContextProvider, or must provide a resource prop");var d=Uu(c||"")[0],f=vc(),p=Mt(),m=p.displayedFilters,g=m===void 0?{}:m,v=p.filterValues,b=p.perPage,O=p.setFilters,C=p.showFilter,x=p.sort,y=!Or(v,{}),_=qu(d),P=_.some(function(H){return Or(H.value,{filter:v,sort:x,perPage:b,displayedFilters:g})}),w=s.useState(!1),E=w[0],R=w[1],$=s.useRef();if(l===void 0)throw new Error("The component requires the prop to be set");var M=l.filter(function(H){return!H.props.alwaysOn&&!g[H.props.source]&&typeof zt(v,H.props.source)>"u"}),T=s.useCallback(function(H){H.preventDefault(),R(!0),$.current=H.currentTarget},[$,R]),N=s.useCallback(function(){R(!1)},[R]),j=s.useCallback(function(H){var Q=H.source,fe=H.defaultValue;C(Q,fe===""?void 0:fe),setTimeout(function(){var ne=document.querySelector("input[name='".concat(Q,"']"));ne&&ne.focus()},50),R(!1)},[C,R]),F=s.useState(!1),A=F[0],D=F[1],k=function(){D(!1)},L=function(){R(!1),D(!0)},V=s.useState(!1),U=V[0],ie=V[1],se=function(){ie(!1)},G=function(){R(!1),ie(!0)};return M.length===0&&_.length===0&&!y?null:s.createElement($T,zl({className:r},ET(i)),s.createElement(Nt,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:T,variant:a,size:o},s.createElement(hg,null)),s.createElement(ss,{open:E,anchorEl:$.current,onClose:N},M.map(function(H,Q){return s.createElement(OT,{key:H.props.source,filter:H,resource:c,onShow:j,autoFocus:Q===0})}),_.map(function(H,Q){return Or(H.value,{filter:v,sort:x,perPage:b,displayedFilters:g})?s.createElement(ar,{onClick:G,key:Q},u("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:H.label})):s.createElement(ar,{onClick:function(){var fe,ne;f({search:py.stringify({filter:JSON.stringify(H.value.filter),sort:(fe=H.value.sort)===null||fe===void 0?void 0:fe.field,order:(ne=H.value.sort)===null||ne===void 0?void 0:ne.order,page:1,perPage:H.value.perPage,displayedFilters:JSON.stringify(H.value.displayedFilters)})}),R(!1)},key:Q},H.label)}),y&&!P&&!n&&s.createElement(ar,{onClick:L},u("ra.saved_queries.new_label",{_:"Save current query..."})),y&&s.createElement(ar,{onClick:function(){O({},{}),R(!1)}},u("ra.action.remove_all_filters",{_:"Remove all filters"}))),!n&&s.createElement(s.Fragment,null,s.createElement(_T,{open:A,onClose:k}),s.createElement(wT,{open:U,onClose:se})))},ET=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=yg(e,["displayedFilters","filterValues","showFilter"]);return t},ST="RaFilterButton",$T=I("div",{name:ST,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),RT=my,kT=xp,IT=1,TT=2;function jT(e,t,r,n){var o=r.length,a=o,i=!n;if(e==null)return!a;for(e=Object(e);o--;){var l=r[o];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++oO-1)throw new Error(v("ra.navigation.page_out_of_boundaries",{page:E+1}));m(E+1)},[O,m,v]),x=s.useCallback(function(w){g(w.target.value)},[g]),y=s.useCallback(function(w){var E=w.from,R=w.to,$=w.count;return $===-1&&u?v("ra.navigation.partial_page_range_info",{offsetBegin:E,offsetEnd:R,_:"%{from}-%{to} of more than %{to}"}):v("ra.navigation.page_range_info",{offsetBegin:E,offsetEnd:R,total:$===-1?R:$,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[v,u]),_=s.useCallback(function(w){return v("ra.navigation.".concat(w),{_:"Go to ".concat(w," page")})},[v]);if(c)return s.createElement(So,{variant:"dense"});if(p===0||d<1||p!=null&&d>O)return a!=null,null;if(b)return s.createElement(dd,Ya({count:p??-1,rowsPerPage:f,page:d-1,onPageChange:C,rowsPerPageOptions:Sj,component:"span",labelDisplayedRows:y},ln(i)));var P=n||(!c&&p!=null?Oj:void 0);return s.createElement(dd,Ya({count:p??-1,rowsPerPage:f,page:d-1,onPageChange:C,onRowsPerPageChange:x,ActionsComponent:P,nextIconButtonProps:{disabled:!u},component:"span",labelRowsPerPage:v("ra.navigation.page_rows_per_page"),labelDisplayedRows:y,getItemAriaLabel:_,rowsPerPageOptions:r},ln(i)))}),Ej=[5,10,25,50],Sj=[],Ku={},$j=ve;Object.defineProperty(Ku,"__esModule",{value:!0});var Vl=Ku.default=void 0,Rj=$j(Ce()),kj=S;Vl=Ku.default=(0,Rj.default)((0,kj.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var Qa=function(){return Qa=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!f.message?"ra.auth.sign_in_error":f.message,{type:"error",messageArgs:{_:typeof f=="string"?f:f&&f.message?f.message:void 0}})})};return s.createElement(Nj,{onSubmit:u,mode:"onChange",noValidate:!0,className:r},s.createElement(ns,{className:Zr.content},s.createElement(Df,{autoFocus:!0,source:"username",label:l("ra.auth.username"),autoComplete:"username",validate:ud()}),s.createElement(Df,{source:"password",label:l("ra.auth.password"),type:"password",autoComplete:"current-password",validate:ud()}),s.createElement(ut,{variant:"contained",type:"submit",color:"primary",disabled:o,fullWidth:!0,className:Zr.button},o?s.createElement(as,{className:Zr.icon,size:19,thickness:3}):l("ra.auth.sign_in"))))},ca="RaLoginForm",Zr={content:"".concat(ca,"-content"),button:"".concat(ca,"-button"),icon:"".concat(ca,"-icon")},Nj=I(_p,{name:ca,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(Zr.content)]={width:300},t["& .".concat(Zr.button)]={marginTop:r.spacing(2)},t["& .".concat(Zr.icon)]={margin:r.spacing(.3)},t}),Hl=function(){return Hl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&d?Yj:r;return o?s.createElement(Jj,Gl({className:B("edit-page",a)},u),c!==!1&&s.createElement(Sn,{title:c,defaultTitle:m,preferenceKey:"".concat(p,".edit.title")}),v,s.createElement("div",{className:B(rn.main,(t={},t[rn.noActions]=!v,t))},s.createElement(l,{className:rn.card},g?o:s.createElement(ns,null," ")),n)):null},fa="RaEdit",rn={main:"".concat(fa,"-main"),noActions:"".concat(fa,"-noActions"),card:"".concat(fa,"-card")},Jj=I("div",{name:fa,overridesResolver:function(e,t){return t.root}})((Dn={},Dn["& .".concat(rn.main)]={display:"flex",alignItems:"flex-start"},Dn["& .".concat(rn.noActions)]={marginTop:"1em"},Dn["& .".concat(rn.card)]={flex:"1 1 auto"},Dn)),Xl=function(){return Xl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&b?dM:r;return!o||!v&&u?null:s.createElement(pM,Jl({className:B("show-page",a)},f),d!==!1&&s.createElement(Sn,{title:d,defaultTitle:g,preferenceKey:"".concat(m,".show.title")}),O!==!1&&O,s.createElement("div",{className:B(on.main,(t={},t[on.noActions]=!O,t))},s.createElement(l,{className:on.card},o),n))},ma="RaShow",on={main:"".concat(ma,"-main"),noActions:"".concat(ma,"-noActions"),card:"".concat(ma,"-card")},pM=I("div",{name:ma,overridesResolver:function(e,t){return t.root}})((Ln={},Ln["& .".concat(on.main)]={display:"flex"},Ln["& .".concat(on.noActions)]={marginTop:"1em"},Ln["& .".concat(on.card)]={flex:"1 1 auto"},Ln)),Zl=function(){return Zl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),EM=function(e){return e.stopPropagation()},Lf=function(e){var t=e.clickable;return s.createElement(Jm,{sx:{cursor:"inherit"},size:"small",label:s.createElement(My,null),clickable:t})},nc=function(){return nc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&Wf.call(t.callee)==="[object Function]"),n},Ms,Vf;function ZM(){if(Vf)return Ms;Vf=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Mg,o=Object.prototype.propertyIsEnumerable,a=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(p){var m=p.constructor;return m&&m.prototype===p},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!u["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{c(window[p])}catch{return!0}}catch{return!0}return!1}(),f=function(p){if(typeof window>"u"||!d)return c(p);try{return c(p)}catch{return!1}};e=function(m){var g=m!==null&&typeof m=="object",v=r.call(m)==="[object Function]",b=n(m),O=g&&r.call(m)==="[object String]",C=[];if(!g&&!v&&!b)throw new TypeError("Object.keys called on a non-object");var x=i&&v;if(O&&m.length>0&&!t.call(m,0))for(var y=0;y0)for(var _=0;_"u"||!We?ue:We(Uint8Array),wr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ue:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ue:ArrayBuffer,"%ArrayIteratorPrototype%":Dr&&We?We([][Symbol.iterator]()):ue,"%AsyncFromSyncIteratorPrototype%":ue,"%AsyncFunction%":Hr,"%AsyncGenerator%":Hr,"%AsyncGeneratorFunction%":Hr,"%AsyncIteratorPrototype%":Hr,"%Atomics%":typeof Atomics>"u"?ue:Atomics,"%BigInt%":typeof BigInt>"u"?ue:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ue:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ue:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ue:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":wA,"%eval%":eval,"%EvalError%":PA,"%Float32Array%":typeof Float32Array>"u"?ue:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ue:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ue:FinalizationRegistry,"%Function%":Fg,"%GeneratorFunction%":Hr,"%Int8Array%":typeof Int8Array>"u"?ue:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ue:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ue:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Dr&&We?We(We([][Symbol.iterator]())):ue,"%JSON%":typeof JSON=="object"?JSON:ue,"%Map%":typeof Map>"u"?ue:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Dr||!We?ue:We(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ue:Promise,"%Proxy%":typeof Proxy>"u"?ue:Proxy,"%RangeError%":EA,"%ReferenceError%":SA,"%Reflect%":typeof Reflect>"u"?ue:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ue:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Dr||!We?ue:We(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ue:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Dr&&We?We(""[Symbol.iterator]()):ue,"%Symbol%":Dr?Symbol:ue,"%SyntaxError%":yn,"%ThrowTypeError%":RA,"%TypedArray%":IA,"%TypeError%":sn,"%Uint8Array%":typeof Uint8Array>"u"?ue:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ue:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ue:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ue:Uint32Array,"%URIError%":$A,"%WeakMap%":typeof WeakMap>"u"?ue:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ue:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ue:WeakSet};if(We)try{null.error}catch(e){var TA=We(We(e));wr["%Error.prototype%"]=TA}var jA=function e(t){var r;if(t==="%AsyncFunction%")r=Ns("async function () {}");else if(t==="%GeneratorFunction%")r=Ns("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Ns("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&We&&(r=We(o.prototype))}return wr[t]=r,r},Gf={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},To=Yu,ri=Ng,MA=To.call(Function.call,Array.prototype.concat),AA=To.call(Function.apply,Array.prototype.splice),Xf=To.call(Function.call,String.prototype.replace),ni=To.call(Function.call,String.prototype.slice),NA=To.call(Function.call,RegExp.prototype.exec),FA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,BA=/\\(\\)?/g,DA=function(t){var r=ni(t,0,1),n=ni(t,-1);if(r==="%"&&n!=="%")throw new yn("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new yn("invalid intrinsic syntax, expected opening `%`");var o=[];return Xf(t,FA,function(a,i,l,c){o[o.length]=l?Xf(c,BA,"$1"):i||a}),o},LA=function(t,r){var n=t,o;if(ri(Gf,n)&&(o=Gf[n],n="%"+o[0]+"%"),ri(wr,n)){var a=wr[n];if(a===Hr&&(a=jA(n)),typeof a>"u"&&!r)throw new sn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new yn("intrinsic "+t+" does not exist!")},jo=function(t,r){if(typeof t!="string"||t.length===0)throw new sn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new sn('"allowMissing" argument must be a boolean');if(NA(/^%?[^%]*%?$/,t)===null)throw new yn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=DA(t),o=n.length>0?n[0]:"",a=LA("%"+o+"%",r),i=a.name,l=a.value,c=!1,u=a.alias;u&&(o=u[0],AA(n,MA([0,1],u)));for(var d=1,f=!0;d=n.length){var v=_r(l,p);f=!!v,f&&"get"in v&&!("originalValue"in v.get)?l=v.get:l=l[p]}else f=ri(l,p),l=l[p];f&&!c&&(wr[i]=l)}}return l},zA=jo,ha=zA("%Object.defineProperty%",!0)||!1;if(ha)try{ha({},"a",{value:1})}catch{ha=!1}var Qu=ha,WA=jo,ya=WA("%Object.getOwnPropertyDescriptor%",!0);if(ya)try{ya([],"length")}catch{ya=null}var Bg=ya,Yf=Qu,VA=Ag,Lr=Io,Qf=Bg,Dg=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Lr("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Lr("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Lr("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Lr("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Lr("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Lr("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,c=!!Qf&&Qf(t,r);if(Yf)Yf(t,r,{configurable:i===null&&c?c.configurable:!i,enumerable:o===null&&c?c.enumerable:!o,value:n,writable:a===null&&c?c.writable:!a});else if(l||!o&&!a&&!i)t[r]=n;else throw new VA("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},dc=Qu,Lg=function(){return!!dc};Lg.hasArrayLengthDefineBug=function(){if(!dc)return null;try{return dc([],"length",{value:1}).length!==1}catch{return!0}};var zg=Lg,HA=rA,UA=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",qA=Object.prototype.toString,KA=Array.prototype.concat,Jf=Dg,GA=function(e){return typeof e=="function"&&qA.call(e)==="[object Function]"},Wg=zg(),XA=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!GA(n)||!n())return}Wg?Jf(e,t,r,!0):Jf(e,t,r)},Vg=function(e,t){var r=arguments.length>2?arguments[2]:{},n=HA(t);UA&&(n=KA.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||JA(r)!==r)throw new tp("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in t&&ep){var i=ep(t,"length");i&&!i.configurable&&(o=!1),i&&!i.writable&&(a=!1)}return(o||a||!n)&&(QA?Zf(t,"length",r,!0,!0):Zf(t,"length",r)),t};(function(e){var t=Yu,r=jo,n=ZA,o=Io,a=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||t.call(i,a),c=Qu,u=r("%Math.max%");e.exports=function(p){if(typeof p!="function")throw new o("a function is required");var m=l(t,i,arguments);return n(m,1+u(0,p.length-(arguments.length-1)),!0)};var d=function(){return l(t,a,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d})(Ug);var qg=Ug.exports,eN=Io,tN=function(t){if(t==null)throw new eN(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},Kg=jo,Gg=qg,rN=Gg(Kg("String.prototype.indexOf")),nN=function(t,r){var n=Kg(t,!!r);return typeof n=="function"&&rN(t,".prototype.")>-1?Gg(n):n},oN=tN,Xg=nN,aN=Xg("Object.prototype.propertyIsEnumerable"),iN=Xg("Array.prototype.push"),Yg=function(t){var r=oN(t),n=[];for(var o in r)aN(r,o)&&iN(n,[o,r[o]]);return n},sN=Yg,Qg=function(){return typeof Object.entries=="function"?Object.entries:sN},lN=Qg,cN=Hg,uN=function(){var t=lN();return cN(Object,{entries:t},{entries:function(){return Object.entries!==t}}),t},dN=Hg,fN=qg,pN=Yg,Jg=Qg,mN=uN,Zg=fN(Jg(),Object);dN(Zg,{getPolyfill:Jg,implementation:pN,shim:mN});var vN=Zg,Ju=vN,eh=Ng,gN=function(t){},fc=String.prototype.replace,th=String.prototype.split,ba="||||",Go=function(e){var t=e%100,r=t%10;return t!==11&&r===1?0:2<=r&&r<=4&&!(t>=12&&t<=14)?1:2},rh={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:Go,chinese:function(){return 0},croatian:Go,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:Go,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2},ukrainian:Go},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function hN(e){for(var t={},r=Ju(e),n=0;n=d.length?{value:void 0,done:!0}:(u=s(d,f),this._i+=u.length,{value:u,done:!1})})},function(i,r){var e=Math.ceil,s=Math.floor;i.exports=function(u){return isNaN(u=+u)?0:(u>0?s:e)(u)}},function(i,r){i.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}},function(i,r,e){var s=e(11);i.exports=function(u,d){if(!s(u))return u;var f,l;if(d&&typeof(f=u.toString)=="function"&&!s(l=f.call(u))||typeof(f=u.valueOf)=="function"&&!s(l=f.call(u))||!d&&typeof(f=u.toString)=="function"&&!s(l=f.call(u)))return l;throw TypeError("Can't convert object to primitive value")}},function(i,r){var e={}.toString;i.exports=function(s){return e.call(s).slice(8,-1)}},function(i,r,e){var s=e(26)("keys"),u=e(17);i.exports=function(d){return s[d]||(s[d]=u(d))}},function(i,r,e){var s=e(1),u=e(3),d=u["__core-js_shared__"]||(u["__core-js_shared__"]={});(i.exports=function(f,l){return d[f]||(d[f]=l!==void 0?l:{})})("versions",[]).push({version:s.version,mode:e(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(i,r){i.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(i,r,e){var s=e(7).f,u=e(5),d=e(2)("toStringTag");i.exports=function(f,l,p){f&&!u(f=p?f:f.prototype,d)&&s(f,d,{configurable:!0,value:l})}},function(i,r,e){e(62);for(var s=e(3),u=e(6),d=e(12),f=e(2)("toStringTag"),l="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),p=0;pdocument.F=Object<\/script>"),y.close(),p=y.F;M--;)delete p.prototype[d[M]];return p()};i.exports=Object.create||function(y,E){var M;return y!==null?(l.prototype=s(y),M=new l,l.prototype=null,M[f]=y):M=p(),E===void 0?M:u(M,E)}},function(i,r,e){var s=e(5),u=e(9),d=e(57)(!1),f=e(25)("IE_PROTO");i.exports=function(l,p){var y,E=u(l),M=0,A=[];for(y in E)y!=f&&s(E,y)&&A.push(y);for(;p.length>M;)s(E,y=p[M++])&&(~d(A,y)||A.push(y));return A}},function(i,r,e){var s=e(24);i.exports=Object("z").propertyIsEnumerable(0)?Object:function(u){return s(u)=="String"?u.split(""):Object(u)}},function(i,r,e){var s=e(39),u=e(27).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(d){return s(d,u)}},function(i,r,e){var s=e(24),u=e(2)("toStringTag"),d=s(function(){return arguments}())=="Arguments";i.exports=function(f){var l,p,y;return f===void 0?"Undefined":f===null?"Null":typeof(p=function(E,M){try{return E[M]}catch{}}(l=Object(f),u))=="string"?p:d?s(l):(y=s(l))=="Object"&&typeof l.callee=="function"?"Arguments":y}},function(i,r){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch{typeof window=="object"&&(e=window)}i.exports=e},function(i,r){var e=/-?\d+(\.\d+)?%?/g;i.exports=function(s){return s.match(e)}},function(i,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.getBase16Theme=r.createStyling=r.invertTheme=void 0;var s=q(e(49)),u=q(e(76)),d=q(e(81)),f=q(e(89)),l=q(e(93)),p=function(x){if(x&&x.__esModule)return x;var O={};if(x!=null)for(var k in x)Object.prototype.hasOwnProperty.call(x,k)&&(O[k]=x[k]);return O.default=x,O}(e(94)),y=q(e(132)),E=q(e(133)),M=q(e(138)),A=e(139);function q(x){return x&&x.__esModule?x:{default:x}}var L=p.default,ee=(0,f.default)(L),T=(0,M.default)(E.default,A.rgb2yuv,function(x){var O,k=(0,d.default)(x,3),I=k[0],z=k[1],G=k[2];return[(O=I,O<.25?1:O<.5?.9-O:1.1-O),z,G]},A.yuv2rgb,y.default),U=function(x){return function(O){return{className:[O.className,x.className].filter(Boolean).join(" "),style:(0,u.default)({},O.style||{},x.style||{})}}},a=function(x,O){var k=(0,f.default)(O);for(var I in x)k.indexOf(I)===-1&&k.push(I);return k.reduce(function(z,G){return z[G]=function(g,J){if(g===void 0)return J;if(J===void 0)return g;var X=g===void 0?"undefined":(0,s.default)(g),P=J===void 0?"undefined":(0,s.default)(J);switch(X){case"string":switch(P){case"string":return[J,g].filter(Boolean).join(" ");case"object":return U({className:g,style:J});case"function":return function(ae){for(var V=arguments.length,re=Array(V>1?V-1:0),Y=1;Y1?V-1:0),Y=1;Y1?V-1:0),Y=1;Y1?V-1:0),Y=1;Y1?V-1:0),Y=1;Y2?k-2:0),z=2;z3?O-3:0),I=3;I1&&arguments[1]!==void 0?arguments[1]:{},G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},g=z.defaultBase16,J=g===void 0?L:g,X=z.base16Themes,P=X===void 0?null:X,ae=N(G,P);ae&&(G=(0,u.default)({},ae,G));var V=ee.reduce(function(ve,ke){return ve[ke]=G[ke]||J[ke],ve},{}),re=(0,f.default)(G).reduce(function(ve,ke){return ee.indexOf(ke)===-1&&(ve[ke]=G[ke]),ve},{}),Y=x(V),ce=a(re,Y);return(0,l.default)(D,2).apply(void 0,[ce].concat(k))},3),r.getBase16Theme=function(x,O){if(x&&x.extend&&(x=x.extend),typeof x=="string"){var k=x.split(":"),I=(0,d.default)(k,2),z=I[0],G=I[1];x=(O||{})[z]||p[z],G==="inverted"&&(x=F(x))}return x&&x.hasOwnProperty("base00")?x:void 0})},function(i,r,e){var s,u=typeof Reflect=="object"?Reflect:null,d=u&&typeof u.apply=="function"?u.apply:function(a,D,F){return Function.prototype.apply.call(a,D,F)};s=u&&typeof u.ownKeys=="function"?u.ownKeys:Object.getOwnPropertySymbols?function(a){return Object.getOwnPropertyNames(a).concat(Object.getOwnPropertySymbols(a))}:function(a){return Object.getOwnPropertyNames(a)};var f=Number.isNaN||function(a){return a!=a};function l(){l.init.call(this)}i.exports=l,i.exports.once=function(a,D){return new Promise(function(F,N){function x(k){a.removeListener(D,O),N(k)}function O(){typeof a.removeListener=="function"&&a.removeListener("error",x),F([].slice.call(arguments))}U(a,D,O,{once:!0}),D!=="error"&&function(k,I,z){typeof k.on=="function"&&U(k,"error",I,z)}(a,x,{once:!0})})},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var p=10;function y(a){if(typeof a!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof a)}function E(a){return a._maxListeners===void 0?l.defaultMaxListeners:a._maxListeners}function M(a,D,F,N){var x,O,k,I;if(y(F),(O=a._events)===void 0?(O=a._events=Object.create(null),a._eventsCount=0):(O.newListener!==void 0&&(a.emit("newListener",D,F.listener?F.listener:F),O=a._events),k=O[D]),k===void 0)k=O[D]=F,++a._eventsCount;else if(typeof k=="function"?k=O[D]=N?[F,k]:[k,F]:N?k.unshift(F):k.push(F),(x=E(a))>0&&k.length>x&&!k.warned){k.warned=!0;var z=new Error("Possible EventEmitter memory leak detected. "+k.length+" "+String(D)+" listeners added. Use emitter.setMaxListeners() to increase limit");z.name="MaxListenersExceededWarning",z.emitter=a,z.type=D,z.count=k.length,I=z,console&&console.warn&&console.warn(I)}return a}function A(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function q(a,D,F){var N={fired:!1,wrapFn:void 0,target:a,type:D,listener:F},x=A.bind(N);return x.listener=F,N.wrapFn=x,x}function L(a,D,F){var N=a._events;if(N===void 0)return[];var x=N[D];return x===void 0?[]:typeof x=="function"?F?[x.listener||x]:[x]:F?function(O){for(var k=new Array(O.length),I=0;I0&&(O=D[0]),O instanceof Error)throw O;var k=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw k.context=O,k}var I=x[a];if(I===void 0)return!1;if(typeof I=="function")d(I,this,D);else{var z=I.length,G=T(I,z);for(F=0;F=0;O--)if(F[O]===D||F[O].listener===D){k=F[O].listener,x=O;break}if(x<0)return this;x===0?F.shift():function(I,z){for(;z+1=0;N--)this.removeListener(a,D[N]);return this},l.prototype.listeners=function(a){return L(this,a,!0)},l.prototype.rawListeners=function(a){return L(this,a,!1)},l.listenerCount=function(a,D){return typeof a.listenerCount=="function"?a.listenerCount(D):ee.call(a,D)},l.prototype.listenerCount=ee,l.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},function(i,r,e){i.exports.Dispatcher=e(140)},function(i,r,e){i.exports=e(142)},function(i,r,e){r.__esModule=!0;var s=f(e(50)),u=f(e(65)),d=typeof u.default=="function"&&typeof s.default=="symbol"?function(l){return typeof l}:function(l){return l&&typeof u.default=="function"&&l.constructor===u.default&&l!==u.default.prototype?"symbol":typeof l};function f(l){return l&&l.__esModule?l:{default:l}}r.default=typeof u.default=="function"&&d(s.default)==="symbol"?function(l){return l===void 0?"undefined":d(l)}:function(l){return l&&typeof u.default=="function"&&l.constructor===u.default&&l!==u.default.prototype?"symbol":l===void 0?"undefined":d(l)}},function(i,r,e){i.exports={default:e(51),__esModule:!0}},function(i,r,e){e(20),e(29),i.exports=e(30).f("iterator")},function(i,r,e){var s=e(21),u=e(22);i.exports=function(d){return function(f,l){var p,y,E=String(u(f)),M=s(l),A=E.length;return M<0||M>=A?d?"":void 0:(p=E.charCodeAt(M))<55296||p>56319||M+1===A||(y=E.charCodeAt(M+1))<56320||y>57343?d?E.charAt(M):p:d?E.slice(M,M+2):y-56320+(p-55296<<10)+65536}}},function(i,r,e){var s=e(54);i.exports=function(u,d,f){if(s(u),d===void 0)return u;switch(f){case 1:return function(l){return u.call(d,l)};case 2:return function(l,p){return u.call(d,l,p)};case 3:return function(l,p,y){return u.call(d,l,p,y)}}return function(){return u.apply(d,arguments)}}},function(i,r){i.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(i,r,e){var s=e(38),u=e(16),d=e(28),f={};e(6)(f,e(2)("iterator"),function(){return this}),i.exports=function(l,p,y){l.prototype=s(f,{next:u(1,y)}),d(l,p+" Iterator")}},function(i,r,e){var s=e(7),u=e(10),d=e(13);i.exports=e(4)?Object.defineProperties:function(f,l){u(f);for(var p,y=d(l),E=y.length,M=0;E>M;)s.f(f,p=y[M++],l[p]);return f}},function(i,r,e){var s=e(9),u=e(58),d=e(59);i.exports=function(f){return function(l,p,y){var E,M=s(l),A=u(M.length),q=d(y,A);if(f&&p!=p){for(;A>q;)if((E=M[q++])!=E)return!0}else for(;A>q;q++)if((f||q in M)&&M[q]===p)return f||q||0;return!f&&-1}}},function(i,r,e){var s=e(21),u=Math.min;i.exports=function(d){return d>0?u(s(d),9007199254740991):0}},function(i,r,e){var s=e(21),u=Math.max,d=Math.min;i.exports=function(f,l){return(f=s(f))<0?u(f+l,0):d(f,l)}},function(i,r,e){var s=e(3).document;i.exports=s&&s.documentElement},function(i,r,e){var s=e(5),u=e(18),d=e(25)("IE_PROTO"),f=Object.prototype;i.exports=Object.getPrototypeOf||function(l){return l=u(l),s(l,d)?l[d]:typeof l.constructor=="function"&&l instanceof l.constructor?l.constructor.prototype:l instanceof Object?f:null}},function(i,r,e){var s=e(63),u=e(64),d=e(12),f=e(9);i.exports=e(34)(Array,"Array",function(l,p){this._t=f(l),this._i=0,this._k=p},function(){var l=this._t,p=this._k,y=this._i++;return!l||y>=l.length?(this._t=void 0,u(1)):u(0,p=="keys"?y:p=="values"?l[y]:[y,l[y]])},"values"),d.Arguments=d.Array,s("keys"),s("values"),s("entries")},function(i,r){i.exports=function(){}},function(i,r){i.exports=function(e,s){return{value:s,done:!!e}}},function(i,r,e){i.exports={default:e(66),__esModule:!0}},function(i,r,e){e(67),e(73),e(74),e(75),i.exports=e(1).Symbol},function(i,r,e){var s=e(3),u=e(5),d=e(4),f=e(15),l=e(37),p=e(68).KEY,y=e(8),E=e(26),M=e(28),A=e(17),q=e(2),L=e(30),ee=e(31),T=e(69),U=e(70),a=e(10),D=e(11),F=e(18),N=e(9),x=e(23),O=e(16),k=e(38),I=e(71),z=e(72),G=e(32),g=e(7),J=e(13),X=z.f,P=g.f,ae=I.f,V=s.Symbol,re=s.JSON,Y=re&&re.stringify,ce=q("_hidden"),ve=q("toPrimitive"),ke={}.propertyIsEnumerable,Ee=E("symbol-registry"),Oe=E("symbols"),ue=E("op-symbols"),fe=Object.prototype,se=typeof V=="function"&&!!G.f,Ne=s.QObject,Ke=!Ne||!Ne.prototype||!Ne.prototype.findChild,ze=d&&y(function(){return k(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a!=7})?function(v,C,R){var H=X(fe,C);H&&delete fe[C],P(v,C,R),H&&v!==fe&&P(fe,C,H)}:P,We=function(v){var C=Oe[v]=k(V.prototype);return C._k=v,C},Ue=se&&typeof V.iterator=="symbol"?function(v){return typeof v=="symbol"}:function(v){return v instanceof V},Te=function(v,C,R){return v===fe&&Te(ue,C,R),a(v),C=x(C,!0),a(R),u(Oe,C)?(R.enumerable?(u(v,ce)&&v[ce][C]&&(v[ce][C]=!1),R=k(R,{enumerable:O(0,!1)})):(u(v,ce)||P(v,ce,O(1,{})),v[ce][C]=!0),ze(v,C,R)):P(v,C,R)},Je=function(v,C){a(v);for(var R,H=T(C=N(C)),Q=0,K=H.length;K>Q;)Te(v,R=H[Q++],C[R]);return v},Ge=function(v){var C=ke.call(this,v=x(v,!0));return!(this===fe&&u(Oe,v)&&!u(ue,v))&&(!(C||!u(this,v)||!u(Oe,v)||u(this,ce)&&this[ce][v])||C)},Ye=function(v,C){if(v=N(v),C=x(C,!0),v!==fe||!u(Oe,C)||u(ue,C)){var R=X(v,C);return!R||!u(Oe,C)||u(v,ce)&&v[ce][C]||(R.enumerable=!0),R}},$e=function(v){for(var C,R=ae(N(v)),H=[],Q=0;R.length>Q;)u(Oe,C=R[Q++])||C==ce||C==p||H.push(C);return H},He=function(v){for(var C,R=v===fe,H=ae(R?ue:N(v)),Q=[],K=0;H.length>K;)!u(Oe,C=H[K++])||R&&!u(fe,C)||Q.push(Oe[C]);return Q};se||(l((V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor!");var v=A(arguments.length>0?arguments[0]:void 0),C=function(R){this===fe&&C.call(ue,R),u(this,ce)&&u(this[ce],v)&&(this[ce][v]=!1),ze(this,v,O(1,R))};return d&&Ke&&ze(fe,v,{configurable:!0,set:C}),We(v)}).prototype,"toString",function(){return this._k}),z.f=Ye,g.f=Te,e(41).f=I.f=$e,e(19).f=Ge,G.f=He,d&&!e(14)&&l(fe,"propertyIsEnumerable",Ge,!0),L.f=function(v){return We(q(v))}),f(f.G+f.W+f.F*!se,{Symbol:V});for(var Me="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Qe=0;Me.length>Qe;)q(Me[Qe++]);for(var me=J(q.store),S=0;me.length>S;)ee(me[S++]);f(f.S+f.F*!se,"Symbol",{for:function(v){return u(Ee,v+="")?Ee[v]:Ee[v]=V(v)},keyFor:function(v){if(!Ue(v))throw TypeError(v+" is not a symbol!");for(var C in Ee)if(Ee[C]===v)return C},useSetter:function(){Ke=!0},useSimple:function(){Ke=!1}}),f(f.S+f.F*!se,"Object",{create:function(v,C){return C===void 0?k(v):Je(k(v),C)},defineProperty:Te,defineProperties:Je,getOwnPropertyDescriptor:Ye,getOwnPropertyNames:$e,getOwnPropertySymbols:He});var m=y(function(){G.f(1)});f(f.S+f.F*m,"Object",{getOwnPropertySymbols:function(v){return G.f(F(v))}}),re&&f(f.S+f.F*(!se||y(function(){var v=V();return Y([v])!="[null]"||Y({a:v})!="{}"||Y(Object(v))!="{}"})),"JSON",{stringify:function(v){for(var C,R,H=[v],Q=1;arguments.length>Q;)H.push(arguments[Q++]);if(R=C=H[1],(D(C)||v!==void 0)&&!Ue(v))return U(C)||(C=function(K,oe){if(typeof R=="function"&&(oe=R.call(this,K,oe)),!Ue(oe))return oe}),H[1]=C,Y.apply(re,H)}}),V.prototype[ve]||e(6)(V.prototype,ve,V.prototype.valueOf),M(V,"Symbol"),M(Math,"Math",!0),M(s.JSON,"JSON",!0)},function(i,r,e){var s=e(17)("meta"),u=e(11),d=e(5),f=e(7).f,l=0,p=Object.isExtensible||function(){return!0},y=!e(8)(function(){return p(Object.preventExtensions({}))}),E=function(A){f(A,s,{value:{i:"O"+ ++l,w:{}}})},M=i.exports={KEY:s,NEED:!1,fastKey:function(A,q){if(!u(A))return typeof A=="symbol"?A:(typeof A=="string"?"S":"P")+A;if(!d(A,s)){if(!p(A))return"F";if(!q)return"E";E(A)}return A[s].i},getWeak:function(A,q){if(!d(A,s)){if(!p(A))return!0;if(!q)return!1;E(A)}return A[s].w},onFreeze:function(A){return y&&M.NEED&&p(A)&&!d(A,s)&&E(A),A}}},function(i,r,e){var s=e(13),u=e(32),d=e(19);i.exports=function(f){var l=s(f),p=u.f;if(p)for(var y,E=p(f),M=d.f,A=0;E.length>A;)M.call(f,y=E[A++])&&l.push(y);return l}},function(i,r,e){var s=e(24);i.exports=Array.isArray||function(u){return s(u)=="Array"}},function(i,r,e){var s=e(9),u=e(41).f,d={}.toString,f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];i.exports.f=function(l){return f&&d.call(l)=="[object Window]"?function(p){try{return u(p)}catch{return f.slice()}}(l):u(s(l))}},function(i,r,e){var s=e(19),u=e(16),d=e(9),f=e(23),l=e(5),p=e(35),y=Object.getOwnPropertyDescriptor;r.f=e(4)?y:function(E,M){if(E=d(E),M=f(M,!0),p)try{return y(E,M)}catch{}if(l(E,M))return u(!s.f.call(E,M),E[M])}},function(i,r){},function(i,r,e){e(31)("asyncIterator")},function(i,r,e){e(31)("observable")},function(i,r,e){r.__esModule=!0;var s,u=e(77),d=(s=u)&&s.__esModule?s:{default:s};r.default=d.default||function(f){for(var l=1;lL;)for(var U,a=p(arguments[L++]),D=ee?u(a).concat(ee(a)):u(a),F=D.length,N=0;F>N;)U=D[N++],s&&!T.call(a,U)||(A[U]=a[U]);return A}:y},function(i,r,e){r.__esModule=!0;var s=d(e(82)),u=d(e(85));function d(f){return f&&f.__esModule?f:{default:f}}r.default=function(f,l){if(Array.isArray(f))return f;if((0,s.default)(Object(f)))return function(p,y){var E=[],M=!0,A=!1,q=void 0;try{for(var L,ee=(0,u.default)(p);!(M=(L=ee.next()).done)&&(E.push(L.value),!y||E.length!==y);M=!0);}catch(T){A=!0,q=T}finally{try{!M&&ee.return&&ee.return()}finally{if(A)throw q}}return E}(f,l);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(i,r,e){i.exports={default:e(83),__esModule:!0}},function(i,r,e){e(29),e(20),i.exports=e(84)},function(i,r,e){var s=e(42),u=e(2)("iterator"),d=e(12);i.exports=e(1).isIterable=function(f){var l=Object(f);return l[u]!==void 0||"@@iterator"in l||d.hasOwnProperty(s(l))}},function(i,r,e){i.exports={default:e(86),__esModule:!0}},function(i,r,e){e(29),e(20),i.exports=e(87)},function(i,r,e){var s=e(10),u=e(88);i.exports=e(1).getIterator=function(d){var f=u(d);if(typeof f!="function")throw TypeError(d+" is not iterable!");return s(f.call(d))}},function(i,r,e){var s=e(42),u=e(2)("iterator"),d=e(12);i.exports=e(1).getIteratorMethod=function(f){if(f!=null)return f[u]||f["@@iterator"]||d[s(f)]}},function(i,r,e){i.exports={default:e(90),__esModule:!0}},function(i,r,e){e(91),i.exports=e(1).Object.keys},function(i,r,e){var s=e(18),u=e(13);e(92)("keys",function(){return function(d){return u(s(d))}})},function(i,r,e){var s=e(15),u=e(1),d=e(8);i.exports=function(f,l){var p=(u.Object||{})[f]||Object[f],y={};y[f]=l(p),s(s.S+s.F*d(function(){p(1)}),"Object",y)}},function(i,r,e){(function(s){var u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],d=/^\s+|\s+$/g,f=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,l=/\{\n\/\* \[wrapped with (.+)\] \*/,p=/,? & /,y=/^[-+]0x[0-9a-f]+$/i,E=/^0b[01]+$/i,M=/^\[object .+?Constructor\]$/,A=/^0o[0-7]+$/i,q=/^(?:0|[1-9]\d*)$/,L=parseInt,ee=typeof s=="object"&&s&&s.Object===Object&&s,T=typeof self=="object"&&self&&self.Object===Object&&self,U=ee||T||Function("return this")();function a(S,m,v){switch(v.length){case 0:return S.call(m);case 1:return S.call(m,v[0]);case 2:return S.call(m,v[0],v[1]);case 3:return S.call(m,v[0],v[1],v[2])}return S.apply(m,v)}function D(S,m){return!!(S&&S.length)&&function(v,C,R){if(C!=C)return function(K,oe,de,pe){for(var ge=K.length,be=de+-1;++be-1}function F(S){return S!=S}function N(S,m){for(var v=S.length,C=0;v--;)S[v]===m&&C++;return C}function x(S,m){for(var v=-1,C=S.length,R=0,H=[];++v2?k:void 0);function ke(S){return Me(S)?re(S):{}}function Ee(S){return!(!Me(S)||function(m){return!!J&&J in m}(S))&&(function(m){var v=Me(m)?ae.call(m):"";return v=="[object Function]"||v=="[object GeneratorFunction]"}(S)||function(m){var v=!1;if(m!=null&&typeof m.toString!="function")try{v=!!(m+"")}catch{}return v}(S)?V:M).test(function(m){if(m!=null){try{return X.call(m)}catch{}try{return m+""}catch{}}return""}(S))}function Oe(S,m,v,C){for(var R=-1,H=S.length,Q=v.length,K=-1,oe=m.length,de=Y(H-Q,0),pe=Array(oe+de),ge=!C;++K1&&le.reverse(),pe&&oe1?"& ":"")+m[C],m=m.join(v>2?", ":" "),S.replace(f,`{ +import{r as Kt,b9 as Wt,an as Ht,f as Ut,a as ot,aQ as Jt}from"./ra-CBMLOZf2.js";import{L as Gt,F as Yt,I as $t}from"./react-admin-E5WH1fyQ.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=O,D=p,N=K,l=T,R=k,I=Z,rr=M,ar=_;function nr(r,a,n){a.length?a=c(a,function(e){return ar(e)?function(u){return S(u,e.length===1?e[0]:e)}:e}):a=[rr];var i=-1;a=c(a,R(D));var t=N(r,function(e,u,f){var s=c(a,function(b){return b(e)});return{criteria:s,index:++i,value:e}});return l(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 Or=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=L,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,Or 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-CBMLOZf2.js";import{a1 as p}from"./react-admin-E5WH1fyQ.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 591e34f..05fe346 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" /> - - - - - + + + + + - +