slice-machine-ui 2.18.1-beta.6 → 2.18.1-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/out/404.html +1 -1
  2. package/out/_next/static/U9WVTg1pSTJVt94SbRE5Y/_buildManifest.js +1 -0
  3. package/out/_next/static/chunks/{248-43faecb386a16518.js → 248-a9c33f7fbe2da2f1.js} +1 -1
  4. package/out/_next/static/chunks/256-07f768a2b19b0a0e.js +4 -0
  5. package/out/_next/static/chunks/34-50c64778da33cff6.js +1 -0
  6. package/out/_next/static/chunks/344-fdb3008f4bb3b0c1.js +1 -0
  7. package/out/_next/static/chunks/429-aab52070cad2884b.js +3 -0
  8. package/out/_next/static/chunks/484-3e011e79c41f0342.js +1 -0
  9. package/out/_next/static/chunks/{489-234ed5471aa694b3.js → 489-a046ae0fa4f74435.js} +1 -1
  10. package/out/_next/static/chunks/500-d3989390f5e8da53.js +1 -0
  11. package/out/_next/static/chunks/52d4c156-89c6ec6efca0a0bb.js +1 -0
  12. package/out/_next/static/chunks/{630-bb6e3db525588f16.js → 630-eae75e90b30f201a.js} +1 -1
  13. package/out/_next/static/chunks/pages/{_app-174a369b49b73427.js → _app-1b4541325b4a29ab.js} +105 -105
  14. package/out/_next/static/chunks/pages/{changelog-ba55ed247c20dc21.js → changelog-3901f2fc937d9648.js} +1 -1
  15. package/out/_next/static/chunks/pages/changes-c58a60af39167147.js +1 -0
  16. package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-816acb31b652239b.js → [customTypeId]-af9376721beb489e.js} +1 -1
  17. package/out/_next/static/chunks/pages/{labs-78ac01d97ab02cd7.js → labs-dd04033db23a58f3.js} +1 -1
  18. package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-669d5479e81b638b.js → [pageTypeId]-a24665e91b882169.js} +1 -1
  19. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/{simulator-b127d948a17968d3.js → simulator-f237aaa755dc9a99.js} +1 -1
  20. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-c8c3e7ffb898261c.js +1 -0
  21. package/out/_next/static/chunks/pages/slices-0aaae79dcc7b8c55.js +1 -0
  22. package/out/_next/static/css/{303dad78be1eb854.css → bc89f2cd4e4781f5.css} +1 -1
  23. package/out/_next/static/css/e8e03c0d4003d1eb.css +1 -0
  24. package/out/changelog.html +1 -1
  25. package/out/changes.html +1 -1
  26. package/out/custom-types/[customTypeId].html +1 -1
  27. package/out/custom-types.html +1 -1
  28. package/out/index.html +1 -1
  29. package/out/labs.html +1 -1
  30. package/out/page-types/[pageTypeId].html +1 -1
  31. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  32. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  33. package/out/slices.html +1 -1
  34. package/package.json +3 -3
  35. package/src/features/auth/LogoutButton.tsx +42 -36
  36. package/src/features/builder/fields/contentRelationship/ContentRelationshipFieldPicker.tsx +3 -3
  37. package/src/features/changes/StatusBadge.tsx +1 -9
  38. package/src/features/customTypes/customTypesBuilder/PageSnippetDialog/PageSnippetDialog.tsx +3 -3
  39. package/src/features/customTypes/customTypesTable/CustomTypesTablePage.tsx +3 -3
  40. package/src/features/environments/actions/useSetEnvironment.ts +22 -0
  41. package/src/features/environments/useActiveEnvironment.ts +17 -9
  42. package/src/features/environments/useEnvironments.ts +11 -8
  43. package/src/features/errorBoundaries/AppStateErrorBoundary.tsx +108 -0
  44. package/src/{ErrorBoundary.tsx → features/errorBoundaries/DefaultErrorBoundary.tsx} +2 -2
  45. package/src/features/errorBoundaries/index.ts +2 -0
  46. package/src/features/labs/labsList/LabsPage.tsx +3 -3
  47. package/src/features/navigation/Navigation.tsx +7 -8
  48. package/src/features/slices/sliceBuilder/FloatingBackButton.tsx +3 -3
  49. package/src/features/sync/AutoSyncProvider.tsx +2 -2
  50. package/src/features/sync/getUnSyncChanges.ts +1 -3
  51. package/src/legacy/components/AppLayout/index.tsx +10 -85
  52. package/src/legacy/components/ChangesEmptyState/UnauthenticatedView.tsx +31 -0
  53. package/src/legacy/components/ChangesEmptyState/index.ts +1 -1
  54. package/src/legacy/components/ChangesItems/ChangesItems.tsx +3 -3
  55. package/src/legacy/components/LoginModal/index.tsx +14 -6
  56. package/src/legacy/components/Navigation/ChangesItem.tsx +44 -100
  57. package/src/legacy/components/Navigation/Environment.tsx +2 -7
  58. package/src/legacy/components/Navigation/SideNavEnvironmentSelector/SideNavEnvironmentSelector.tsx +3 -8
  59. package/src/legacy/components/Simulator/index.tsx +3 -3
  60. package/src/legacy/lib/builders/CustomTypeBuilder/TabZone/index.tsx +3 -3
  61. package/src/modules/userContext/index.ts +5 -5
  62. package/src/modules/userContext/types.ts +2 -3
  63. package/src/pages/_app.tsx +93 -95
  64. package/src/pages/changes.tsx +4 -5
  65. package/src/queryClient.tsx +24 -0
  66. package/test/__testutils__/index.tsx +13 -10
  67. package/out/_next/static/AMILL72qfLjZDeK2IRMSB/_buildManifest.js +0 -1
  68. package/out/_next/static/chunks/157-54b8336d20b41933.js +0 -3
  69. package/out/_next/static/chunks/34-8d9d9b2944824750.js +0 -1
  70. package/out/_next/static/chunks/349-7118116b93278f73.js +0 -4
  71. package/out/_next/static/chunks/50-586dc7ab5e584e76.js +0 -1
  72. package/out/_next/static/chunks/pages/changes-4c23263cdc8e59c6.js +0 -1
  73. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-11802744e89707f7.js +0 -1
  74. package/out/_next/static/chunks/pages/slices-f6552e2fbc491c4d.js +0 -1
  75. package/out/_next/static/css/cdee5b195444f185.css +0 -1
  76. package/src/features/environments/actions/setEnvironment.ts +0 -18
  77. package/src/legacy/components/ChangesEmptyState/AuthErrorPage.tsx +0 -44
  78. /package/out/_next/static/{AMILL72qfLjZDeK2IRMSB → U9WVTg1pSTJVt94SbRE5Y}/_ssgManifest.js +0 -0
package/out/404.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/303dad78be1eb854.css" as="style"/><link rel="stylesheet" href="/_next/static/css/303dad78be1eb854.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e0c07a2fe4908d81.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-174a369b49b73427.js" defer=""></script><script src="/_next/static/chunks/pages/_error-fedd2c6ebd3d27b9.js" defer=""></script><script src="/_next/static/AMILL72qfLjZDeK2IRMSB/_buildManifest.js" defer=""></script><script src="/_next/static/AMILL72qfLjZDeK2IRMSB/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"AMILL72qfLjZDeK2IRMSB","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/bc89f2cd4e4781f5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/bc89f2cd4e4781f5.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e0c07a2fe4908d81.js" defer=""></script><script src="/_next/static/chunks/framework-ab7ddb551c23d05a.js" defer=""></script><script src="/_next/static/chunks/main-c46f4dcf6e3174bd.js" defer=""></script><script src="/_next/static/chunks/pages/_app-1b4541325b4a29ab.js" defer=""></script><script src="/_next/static/chunks/pages/_error-fedd2c6ebd3d27b9.js" defer=""></script><script src="/_next/static/U9WVTg1pSTJVt94SbRE5Y/_buildManifest.js" defer=""></script><script src="/_next/static/U9WVTg1pSTJVt94SbRE5Y/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"U9WVTg1pSTJVt94SbRE5Y","runtimeConfig":{"sentryEnvironment":"beta"},"nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
@@ -0,0 +1 @@
1
+ self.__BUILD_MANIFEST=function(s,c,a,e,t,i,b,d,n,u,f,h,k,j,l,p,g,o,r,m,_,y){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,e,p,g,"static/chunks/pages/index-0d8cb369de720a35.js"],"/_error":["static/chunks/pages/_error-fedd2c6ebd3d27b9.js"],"/changelog":[c,t,"static/chunks/870-a72b74312773efea.js","static/chunks/pages/changelog-3901f2fc937d9648.js"],"/changes":[c,i,"static/chunks/8eec4907-b712959d9f984b68.js","static/chunks/918-fa4f2563cb5fd014.js",a,d,"static/css/d98ebc475f8423a3.css","static/chunks/pages/changes-c58a60af39167147.js"],"/custom-types":[s,e,p,g,"static/chunks/pages/custom-types-5acd56959b60346f.js"],"/custom-types/[customTypeId]":[c,n,u,f,h,s,t,b,k,o,a,e,j,l,r,m,"static/chunks/pages/custom-types/[customTypeId]-af9376721beb489e.js"],"/labs":["static/chunks/pages/labs-dd04033db23a58f3.js"],"/page-types/[pageTypeId]":[c,n,u,f,h,s,t,b,k,o,a,e,j,l,r,m,"static/chunks/pages/page-types/[pageTypeId]-a24665e91b882169.js"],"/slices":[c,i,_,s,b,y,a,d,l,"static/css/efa5152b7c0f35c0.css","static/chunks/pages/slices-0aaae79dcc7b8c55.js"],"/slices/[lib]/[sliceName]/[variation]":[c,i,n,u,f,h,_,s,t,b,k,y,"static/chunks/484-3e011e79c41f0342.js",a,j,d,"static/css/e8e03c0d4003d1eb.css","static/chunks/pages/slices/[lib]/[sliceName]/[variation]-c8c3e7ffb898261c.js"],"/slices/[lib]/[sliceName]/[variation]/simulator":[i,"static/chunks/72585f70-28b4d7d5384b3703.js","static/chunks/429-aab52070cad2884b.js","static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-f237aaa755dc9a99.js"],sortedPages:["/","/_app","/_error","/changelog","/changes","/custom-types","/custom-types/[customTypeId]","/labs","/page-types/[pageTypeId]","/slices","/slices/[lib]/[sliceName]/[variation]","/slices/[lib]/[sliceName]/[variation]/simulator"]}}("static/chunks/397-e6c340070a3bcb41.js","static/chunks/59b4e022-ef680789f7cc9b11.js","static/chunks/34-50c64778da33cff6.js","static/chunks/647-4379a741c8d85d9e.js","static/chunks/183-4ea255b867ff171b.js","static/chunks/c8eae200-966ce352f7b5d2b9.js","static/chunks/344-fdb3008f4bb3b0c1.js","static/chunks/658-8231c0b729e0124a.js","static/chunks/f36c6662-1f3a854183168b10.js","static/chunks/4c744e84-480e426e4b1cfef3.js","static/chunks/065a3ddb-9a38ca0d60f0bf2f.js","static/chunks/1cc2734a-09fb3b997ad1eb70.js","static/chunks/256-07f768a2b19b0a0e.js","static/chunks/630-eae75e90b30f201a.js","static/chunks/907-445266211c48b1a5.js","static/chunks/248-a9c33f7fbe2da2f1.js","static/css/4e475d945cf8a890.css","static/chunks/422-c9192a1dbdd2ae0e.js","static/chunks/489-a046ae0fa4f74435.js","static/css/56f2a6684a524374.css","static/chunks/52d4c156-89c6ec6efca0a0bb.js","static/chunks/500-d3989390f5e8da53.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[248],{72641:function(e,t,n){"use strict";n.d(t,{R$:function(){return i},Qj:function(){return x},T9:function(){return d},nf:function(){return h},u2:function(){return o},_T:function(){return u}});var l=n(52322),r=n(14226),a=n(6277),s=n(83478),c=n.n(s);let i=e=>{let{backgroundImage:t,style:n,...r}=e,s=void 0!==t;return(0,l.jsx)("article",{...r,className:(0,a.W)(c().root,{[c().withBackground]:s}),style:{backgroundImage:s?"url(".concat(t,")"):void 0,...n}})},o=e=>(0,l.jsx)("div",{...e,className:c().image}),d=e=>(0,l.jsx)("div",{...e,className:c().content}),u=e=>(0,l.jsx)(r.bL,{...e,variant:"h3"}),h=e=>(0,l.jsx)(r.bL,{...e,color:"grey11"}),x=e=>(0,l.jsx)("div",{...e,className:c().actions,color:"grey"})},38241:function(e,t,n){"use strict";n.d(t,{F:function(){return O}});var l=n(52322),r=n(14226),a=n(97729),s=n.n(a),c=n(2784),i=n(43388),o=n(17378),d=n(98564),u=n(62813),h=n(5632),x=n(56580),m=n(75289),p=n(77630),j=n(88932),g=n(94160),b=n(39204);async function f(e){let{id:t,label:n,repeatable:l,format:r,onSuccess:a}=e,s=d.$[r],c=(0,p.Ue)({id:t,label:n,repeatable:l,format:r});try{let{errors:e}=await (0,g.KA)({customType:c});if(e.length>0)throw e;g.Xe.track({event:"custom-type:created",id:c.id,name:n,format:r,type:l?"repeatable":"single",origin:"table"}),await a(c),j.Am.success((0,b.GX)({message:"".concat(s.name({start:!0,plural:!1})," saved successfully at "),path:"./customtypes/".concat(c.id,"/index.json")}))}catch(t){let e="Internal Error: ".concat(s.name({start:!0,plural:!1})," not saved");console.error(e,t),j.Am.error(e)}}var v=n(59294),_=n(98250),S=n(68968),y=n(59532),C=n(7974),k=n(358),w=n(78254),L=n(54597),I=n(46999),R=n(63397);let B=e=>{let{selected:t,...n}=e;return(0,l.jsx)(m.kC,{sx:{p:"24px",mb:3,alignItems:"top",cursor:"pointer",borderRadius:"6px",backgroundColor:"grayLight",boxShadow:t?e=>{var t;return"0 0 0 2px ".concat(String(null===(t=e.colors)||void 0===t?void 0:t.primary))}:"none","&:hover":{boxShadow:e=>{var t;return"0 0 0 2px ".concat(String(null===(t=e.colors)||void 0===t?void 0:t.primary))}}},...n})},N=e=>{let{format:t}=e,[n,,r]=(0,R.U$)("repeatable"),a=d.$[t];return(0,l.jsxs)(m.xu,{mb:2,children:[(0,l.jsxs)(B,{selected:n.value,onClick:()=>r.setValue(!0),children:[(0,l.jsx)(m.Y8,{checked:n.value,onChange:()=>{},"data-testid":"repeatable-type-radio-btn"}),(0,l.jsxs)(m.xu,{sx:{marginLeft:2},children:["Reusable type",(0,l.jsx)(m.xu,{as:"p",sx:{fontSize:"12px",color:"textClear",mt:1},children:a.hintRepeatable})]})]}),(0,l.jsxs)(B,{selected:!n.value,onClick:()=>r.setValue(!1),children:[(0,l.jsx)(m.Y8,{checked:!n.value,onChange:()=>{},"data-testid":"single-type-radio-btn"}),(0,l.jsxs)(m.xu,{sx:{marginLeft:2},children:["Single type",(0,l.jsx)(m.xu,{as:"p",sx:{fontSize:"12px",color:"textClear",mt:1},children:a.hintSingle})]})]})]})},z=e=>{let{format:t,isCreating:n,isOpen:r,origin:a="table",onCreateChange:s,onOpenChange:i}=e,{createCustomTypeSuccess:o}=(0,L.Z)(),{completeStep:u}=(0,_.k)(),{customTypeIds:j,customTypeLabels:g}=(0,x.v9)(e=>({customTypeIds:(0,w.W6)(e),customTypeLabels:(0,w.YS)(e)})),b=d.$[t],[R,B]=(0,c.useState)(!0),{syncChanges:z}=(0,S.g)(),E=(0,h.useRouter)(),T=async e=>{let{id:n,label:l,repeatable:r}=e;s(!0),await f({format:t,id:n,label:l,origin:a,repeatable:r,onSuccess:async e=>{o(e);let t=(0,p.y6)(e),l=v.cd[t];B(!0),await E.push({pathname:l.getBuilderPagePathname(n)}),z(),"page"===t&&u("createPageType")}}),s(!1),i(!1)},G=(e,t,n)=>{n(R?{...t,label:e.target.value,id:(0,k.lV)(e.target.value)}:{...t,label:e.target.value})},D=(e,t)=>{t("id",e.target.value),B(!1)};return(0,l.jsx)(y.Z,{testId:"create-ct-modal",isOpen:r,widthInPx:"530px",formId:"create-custom-type",buttonLabel:"Create",close:()=>{i(!1),B(!0)},onSubmit:e=>{T(e)},isLoading:n,initialValues:{repeatable:!0,id:"",label:""},validate:e=>{let{id:t,label:n}=e,l={};return n&&n.length||(l.label="Cannot be empty."),!l.label&&g.includes(n)&&(l.label="".concat(b.name({start:!0,plural:!1})," name is already taken.")),["update","insert"].includes(n.toLowerCase())&&(l.label='Name "'.concat(n,'" is reserved for Slice Machine use.')),t&&t.length||(l.id="ID cannot be empty."),["update","insert"].includes(t.toLowerCase())&&(l.id='Id "'.concat(t,'" is reserved for Slice Machine use.')),l.id||!t||C.xo.exec(t)||(l.id="Invalid id: No special characters allowed."),!l.id&&t&&j.map(e=>e.toLowerCase()).includes(t)&&(l.id='ID "'.concat(t,'" exists already.')),Object.keys(l).length>0?l:void 0},content:{title:"Create a new ".concat(b.name({start:!1,plural:!1}))},children:e=>{let{errors:n,setValues:r,setFieldValue:a,values:s,touched:c}=e;return(0,l.jsxs)(m.xu,{children:[(0,l.jsx)(N,{format:t}),(0,l.jsx)(I.W,{name:"label",label:"".concat(b.name({start:!0,plural:!1})," Name"),testId:"ct-name-input",placeholder:"A display name for the ".concat(b.name({start:!1,plural:!1})),error:c.label?n.label:void 0,onChange:e=>G(e,s,r)}),(0,l.jsx)(I.W,{name:"id",testId:"ct-id-input",label:"".concat(b.name({start:!0,plural:!1})," ID"),placeholder:b.inputPlaceholder,error:c.id?n.id:void 0,onChange:e=>D(e,a)})]})}})};var E=n(72641);let T=e=>(0,l.jsxs)("svg",{viewBox:"0 0 20 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,l.jsx)("path",{d:"m2 24h16c1.1046 0 2-.8954 2-2v-17l-5-5h-13c-1.10457 0-2 .89543-2 2v20c0 1.1046.89543 2 2 2z",fill:"#6e56cf"}),(0,l.jsx)("path",{d:"m17 5h3l-5-5v3c0 1.10457.8954 2 2 2z",fill:"#9e8cfc"}),(0,l.jsx)("path",{d:"m10.0912 8c-2.8118 0-5.0912 2.2794-5.0912 5.0912s2.2794 5.0912 5.0912 5.0912c1.8851 0 3.5303-1.0247 4.4098-2.5452.1553-.2684.2868-.5523.3916-.8489.092-.2604-.0444-.5461-.3048-.6381-.2603-.092-.546.0445-.638.3048-.0841.238-.1897.4659-.3144.6815-.7081 1.2241-2.0305 2.0459-3.5442 2.0459-2.2595 0-4.0912-1.8317-4.0912-4.0912s1.8317-4.0912 4.0912-4.0912c1.3566 0 2.5595.66 3.3043 1.6782h-1.7739c-.2761 0-.5.2239-.5.5 0 .2762.2239.5.5.5h2.6782c.2762 0 .5-.2238.5-.5v-2.6782c0-.2761-.2238-.5-.5-.5-.2761 0-.5.2239-.5.5v1.1032c-.9281-.9865-2.2462-1.6032-3.7086-1.6032z",fill:"#fff"})]}),G=e=>(0,l.jsxs)("svg",{viewBox:"0 0 20 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,l.jsx)("path",{d:"m2 24h16c1.1046 0 2-.8954 2-2v-17l-5-5h-13c-1.10457 0-2 .89543-2 2v20c0 1.1046.89543 2 2 2z",fill:"#6e56cf",fillRule:"nonzero"}),(0,l.jsx)("path",{d:"m17 5h3l-5-5v3c0 1.10457.8954 2 2 2z",fill:"#9e8cfc",fillRule:"nonzero"}),(0,l.jsx)("path",{d:"m8.0869 10.6818.5758-2.3031c.0556-.2226.2556-.3787.485-.3787.3253 0 .564.3057.4851.6213l-.5151 2.0605h2.6055l.5758-2.3031c.0557-.2226.2557-.3787.4851-.3787.3253 0 .564.3057.4851.6213l-.5152 2.0605h2.246c.2761 0 .5.2239.5.5 0 .2762-.2239.5-.5.5h-2.496l-.6591 2.6364h2.1551c.2761 0 .5.2238.5.5 0 .2761-.2239.5-.5.5h-2.4051l-.5757 2.3031c-.0557.2226-.2557.3787-.4851.3787-.3253 0-.564-.3057-.4851-.6213l.5152-2.0605h-2.6056l-.5758 2.3031c-.0556.2226-.2556.3787-.4851.3787-.3253 0-.5639-.3057-.485-.6213l.5151-2.0605h-1.9278c-.2761 0-.5-.2239-.5-.5 0-.2762.2239-.5.5-.5h2.1778l.6591-2.6364h-1.8369c-.2761 0-.5-.2238-.5-.5 0-.2761.2239-.5.5-.5zm2.7273 3.6364.659-2.6364h-2.6055l-.6591 2.6364z",fill:"#fff"})]});var D=n(60867),P=n(50477),W=n(94840),A=n(16442);let $=e=>{let{format:t,isCreatingCustomType:n,openCreateCustomTypeModal:a}=e,s=(0,h.useRouter)(),{customTypes:i,updateCustomTypes:o}=(0,P.xU)(t),u=i.sort((e,t)=>e.id.localeCompare(t.id)),m=v.cd[t],p=d.$[t];return(!function(e,t,n){let{storeCustomTypes:l}=(0,x.v9)(e=>({storeCustomTypes:(0,w.Ch)(e).filter(A.TG)}));(0,c.useEffect)(()=>{let r=l.filter(e=>{let{local:n}=e;return n.format===t});(r.length!==e.length||r.some(t=>{let n=e.find(e=>e.id===t.local.id);return!n||JSON.stringify(W.Dc.fromSM(t.local))!==JSON.stringify(n)}))&&n(r.map(e=>{let{local:t}=e;return W.Dc.fromSM(t)}))},[t,n,e,l])}(i,t,o),0===u.length)?(0,l.jsxs)(E.R$,{"data-testid":"blank-slate",style:{alignSelf:"center",marginTop:r.t.space[72]},children:[(0,l.jsx)(E.u2,{children:(0,l.jsx)(r.a_,{src:m.blankSlateImage,sizing:"cover"})}),(0,l.jsxs)(E.T9,{children:[(0,l.jsx)(E._T,{children:p.name({start:!0,plural:!0})}),(0,l.jsx)(E.nf,{children:p.blankSlateDescription}),(0,l.jsx)(E.Qj,{children:(0,l.jsx)(r.E,{onClick:a,loading:n,children:"Create"})})]})]}):(0,l.jsx)("div",{children:(0,l.jsxs)(r.bE,{columnLayout:"28px 1fr 1fr 1fr 42px",children:[(0,l.jsx)(r.bH,{children:(0,l.jsxs)(r.bI,{children:[(0,l.jsx)(r.bG,{children:(0,l.jsx)(r.aX,{name:"notes",size:"medium"})}),(0,l.jsx)(r.bG,{children:(0,l.jsx)(r.bL,{color:"grey11",variant:"small",children:"Label"})}),(0,l.jsx)(r.bG,{children:(0,l.jsx)(r.bL,{color:"grey11",variant:"small",children:"API ID"})}),(0,l.jsx)(r.bG,{children:(0,l.jsx)(r.bL,{color:"grey11",variant:"small",children:"Limit"})}),(0,l.jsx)(r.bG,{})]})}),(0,l.jsx)(r.bF,{children:u.map(e=>{let{repeatable:n,label:a,id:c}=e;return(0,l.jsxs)(r.bI,{onClick:()=>{s.push(v.cd[t].getBuilderPagePathname(c))},children:[(0,l.jsx)(r.bG,{children:n?(0,l.jsx)(T,{width:r.t.space[20]}):(0,l.jsx)(G,{width:r.t.space[20]})}),(0,l.jsx)(r.bG,{children:(0,l.jsx)(r.bL,{variant:"bold",noWrap:!0,children:a})}),(0,l.jsx)(r.bG,{children:(0,l.jsx)(r.bL,{color:"grey11",noWrap:!0,children:c})}),(0,l.jsx)(r.bG,{children:(0,l.jsx)(r.bL,{color:"grey11",noWrap:!0,children:n?"Reusable":"Single"})}),(0,l.jsx)(r.bG,{children:(0,l.jsx)(D._,{isChangesLocal:!1,format:t,customType:e})})]},c)})})]})})},O=e=>{let{format:t}=e,n=d.$[t],[a,h]=(0,c.useState)(!1),[x,m]=(0,c.useState)(!1);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s(),{children:(0,l.jsxs)("title",{children:[n.name({start:!0,plural:!0})," - Slice Machine"]})}),(0,l.jsx)(o.S,{renderError:()=>(0,l.jsx)(u.LN,{children:(0,l.jsx)(u.RN,{children:(0,l.jsx)(r.D,{alignItems:"center",justifyContent:"center",children:(0,l.jsx)(r.ax,{title:"Request failed",description:"An error occurred while fetching your ".concat(n.name({start:!1,plural:!0}),".")})})})}),children:(0,l.jsx)(c.Suspense,{fallback:(0,l.jsxs)(u.LN,{children:[(0,l.jsxs)(u.wd,{children:[(0,l.jsx)(u.Cx,{children:(0,l.jsx)(i.g,{children:n.name({start:!0,plural:!0})})}),(0,l.jsx)(u.K2,{children:(0,l.jsx)(r.E,{disabled:!0,startIcon:"add",children:"Create"})})]}),(0,l.jsx)(u.RN,{children:(0,l.jsx)(r.bg,{})})]}),children:(0,l.jsxs)(u.LN,{children:[(0,l.jsxs)(u.wd,{children:[(0,l.jsx)(u.Cx,{children:(0,l.jsx)(i.g,{children:n.name({start:!0,plural:!0})})}),(0,l.jsx)(u.K2,{children:(0,l.jsx)(r.E,{"data-testid":"create-ct",loading:a,onClick:()=>{m(!0)},startIcon:"add",children:"Create"})})]}),(0,l.jsx)(u.RN,{children:(0,l.jsxs)(r.D,{flexDirection:"column",children:[(0,l.jsx)($,{format:t,isCreatingCustomType:a,openCreateCustomTypeModal:()=>{m(!0)}}),(0,l.jsx)(z,{format:t,isCreating:a,isOpen:x,onCreateChange:h,onOpenChange:m})]})})]})})})]})}},30527:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},W:function(){return i}});var l=n(52322),r=n(2784),a=n(75289);let s=e=>{let{bg:t,background:n,sx:r,withRadius:s,radius:c,children:i}=e;return(0,l.jsx)(a.xu,{sx:{p:4,bg:t||n,...s?{borderBottomLeftRadius:c,borderBottomRightRadius:c}:null,...r},children:i})},c=(0,r.createContext)("6px"),i=()=>(0,r.useContext)(c),o=e=>{let{Header:t=null,SubHeader:n=null,Body:r=null,Footer:i=null,borderFooter:o=!1,radius:d="6px",bodySx:u={},footerSx:h={},sx:x=null,bg:m,background:p,children:j,...g}=e;return(0,l.jsx)(c.Provider,{value:d,children:(0,l.jsxs)(a.Zb,{sx:{border:e=>{var t;return"1px solid ".concat(String(null===(t=e.colors)||void 0===t?void 0:t.borders))},borderRadius:d,...x},...g,children:[t||null,n||null,(0,l.jsxs)(s,{bg:m,background:p,sx:u,withRadius:!i,children:[r?(0,l.jsx)(r,{}):null,j||null]}),i?(0,l.jsx)(s,{bg:m,background:p,sx:{...o?{borderTop:e=>{let{colors:t}=e;return"1px solid ".concat(String(null==t?void 0:t.borders))}}:null,...h},radius:d,withRadius:!0,children:"object"==typeof i?i:(0,l.jsx)(i,{})}):null]})})}},7974:function(e,t,n){"use strict";n.d(t,{Sn:function(){return c},lS:function(){return l},nG:function(){return r},pq:function(){return i},rd:function(){return s},xo:function(){return a}});let l=["components","update","insert"],r=["png","jpg","jpeg"],a=/^[A-Za-z0-9]+(?:_[A-Za-z0-9]+)*$/,s="placeholders/What_are_Slices_mrvome",c="SM_HELP_VIDEOS/mock_data",i="slice-machine-simulator"},83478:function(e){e.exports={column:"BlankSlate_column__genEe",root:"BlankSlate_root__CmSqW BlankSlate_column__genEe",fadeIn:"BlankSlate_fadeIn__mAfi5",withBackground:"BlankSlate_withBackground__mLYij",image:"BlankSlate_image__Jn90S BlankSlate_column__genEe",content:"BlankSlate_content__0Yt2d BlankSlate_column__genEe",desc:"BlankSlate_desc___Dl7e",actions:"BlankSlate_actions__OYRj4"}}}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[248],{72641:function(e,t,n){"use strict";n.d(t,{R$:function(){return i},Qj:function(){return x},T9:function(){return d},nf:function(){return h},u2:function(){return o},_T:function(){return u}});var l=n(52322),r=n(14226),a=n(6277),s=n(83478),c=n.n(s);let i=e=>{let{backgroundImage:t,style:n,...r}=e,s=void 0!==t;return(0,l.jsx)("article",{...r,className:(0,a.W)(c().root,{[c().withBackground]:s}),style:{backgroundImage:s?"url(".concat(t,")"):void 0,...n}})},o=e=>(0,l.jsx)("div",{...e,className:c().image}),d=e=>(0,l.jsx)("div",{...e,className:c().content}),u=e=>(0,l.jsx)(r.bL,{...e,variant:"h3"}),h=e=>(0,l.jsx)(r.bL,{...e,color:"grey11"}),x=e=>(0,l.jsx)("div",{...e,className:c().actions,color:"grey"})},38241:function(e,t,n){"use strict";n.d(t,{F:function(){return O}});var l=n(52322),r=n(14226),a=n(97729),s=n.n(a),c=n(2784),i=n(43388),o=n(98564),d=n(87446),u=n(58446),h=n(5632),x=n(56580),m=n(75289),p=n(77630),j=n(88932),g=n(94160),b=n(39204);async function f(e){let{id:t,label:n,repeatable:l,format:r,onSuccess:a}=e,s=o.$[r],c=(0,p.Ue)({id:t,label:n,repeatable:l,format:r});try{let{errors:e}=await (0,g.KA)({customType:c});if(e.length>0)throw e;g.Xe.track({event:"custom-type:created",id:c.id,name:n,format:r,type:l?"repeatable":"single",origin:"table"}),await a(c),j.Am.success((0,b.GX)({message:"".concat(s.name({start:!0,plural:!1})," saved successfully at "),path:"./customtypes/".concat(c.id,"/index.json")}))}catch(t){let e="Internal Error: ".concat(s.name({start:!0,plural:!1})," not saved");console.error(e,t),j.Am.error(e)}}var v=n(59294),_=n(98250),y=n(68968),S=n(59532),C=n(7974),k=n(358),w=n(78254),L=n(54597),I=n(46999),R=n(63397);let B=e=>{let{selected:t,...n}=e;return(0,l.jsx)(m.kC,{sx:{p:"24px",mb:3,alignItems:"top",cursor:"pointer",borderRadius:"6px",backgroundColor:"grayLight",boxShadow:t?e=>{var t;return"0 0 0 2px ".concat(String(null===(t=e.colors)||void 0===t?void 0:t.primary))}:"none","&:hover":{boxShadow:e=>{var t;return"0 0 0 2px ".concat(String(null===(t=e.colors)||void 0===t?void 0:t.primary))}}},...n})},N=e=>{let{format:t}=e,[n,,r]=(0,R.U$)("repeatable"),a=o.$[t];return(0,l.jsxs)(m.xu,{mb:2,children:[(0,l.jsxs)(B,{selected:n.value,onClick:()=>r.setValue(!0),children:[(0,l.jsx)(m.Y8,{checked:n.value,onChange:()=>{},"data-testid":"repeatable-type-radio-btn"}),(0,l.jsxs)(m.xu,{sx:{marginLeft:2},children:["Reusable type",(0,l.jsx)(m.xu,{as:"p",sx:{fontSize:"12px",color:"textClear",mt:1},children:a.hintRepeatable})]})]}),(0,l.jsxs)(B,{selected:!n.value,onClick:()=>r.setValue(!1),children:[(0,l.jsx)(m.Y8,{checked:!n.value,onChange:()=>{},"data-testid":"single-type-radio-btn"}),(0,l.jsxs)(m.xu,{sx:{marginLeft:2},children:["Single type",(0,l.jsx)(m.xu,{as:"p",sx:{fontSize:"12px",color:"textClear",mt:1},children:a.hintSingle})]})]})]})},z=e=>{let{format:t,isCreating:n,isOpen:r,origin:a="table",onCreateChange:s,onOpenChange:i}=e,{createCustomTypeSuccess:d}=(0,L.Z)(),{completeStep:u}=(0,_.k)(),{customTypeIds:j,customTypeLabels:g}=(0,x.v9)(e=>({customTypeIds:(0,w.W6)(e),customTypeLabels:(0,w.YS)(e)})),b=o.$[t],[R,B]=(0,c.useState)(!0),{syncChanges:z}=(0,y.g)(),E=(0,h.useRouter)(),T=async e=>{let{id:n,label:l,repeatable:r}=e;s(!0),await f({format:t,id:n,label:l,origin:a,repeatable:r,onSuccess:async e=>{d(e);let t=(0,p.y6)(e),l=v.cd[t];B(!0),await E.push({pathname:l.getBuilderPagePathname(n)}),z(),"page"===t&&u("createPageType")}}),s(!1),i(!1)},G=(e,t,n)=>{n(R?{...t,label:e.target.value,id:(0,k.lV)(e.target.value)}:{...t,label:e.target.value})},D=(e,t)=>{t("id",e.target.value),B(!1)};return(0,l.jsx)(S.Z,{testId:"create-ct-modal",isOpen:r,widthInPx:"530px",formId:"create-custom-type",buttonLabel:"Create",close:()=>{i(!1),B(!0)},onSubmit:e=>{T(e)},isLoading:n,initialValues:{repeatable:!0,id:"",label:""},validate:e=>{let{id:t,label:n}=e,l={};return n&&n.length||(l.label="Cannot be empty."),!l.label&&g.includes(n)&&(l.label="".concat(b.name({start:!0,plural:!1})," name is already taken.")),["update","insert"].includes(n.toLowerCase())&&(l.label='Name "'.concat(n,'" is reserved for Slice Machine use.')),t&&t.length||(l.id="ID cannot be empty."),["update","insert"].includes(t.toLowerCase())&&(l.id='Id "'.concat(t,'" is reserved for Slice Machine use.')),l.id||!t||C.xo.exec(t)||(l.id="Invalid id: No special characters allowed."),!l.id&&t&&j.map(e=>e.toLowerCase()).includes(t)&&(l.id='ID "'.concat(t,'" exists already.')),Object.keys(l).length>0?l:void 0},content:{title:"Create a new ".concat(b.name({start:!1,plural:!1}))},children:e=>{let{errors:n,setValues:r,setFieldValue:a,values:s,touched:c}=e;return(0,l.jsxs)(m.xu,{children:[(0,l.jsx)(N,{format:t}),(0,l.jsx)(I.W,{name:"label",label:"".concat(b.name({start:!0,plural:!1})," Name"),testId:"ct-name-input",placeholder:"A display name for the ".concat(b.name({start:!1,plural:!1})),error:c.label?n.label:void 0,onChange:e=>G(e,s,r)}),(0,l.jsx)(I.W,{name:"id",testId:"ct-id-input",label:"".concat(b.name({start:!0,plural:!1})," ID"),placeholder:b.inputPlaceholder,error:c.id?n.id:void 0,onChange:e=>D(e,a)})]})}})};var E=n(72641);let T=e=>(0,l.jsxs)("svg",{viewBox:"0 0 20 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,l.jsx)("path",{d:"m2 24h16c1.1046 0 2-.8954 2-2v-17l-5-5h-13c-1.10457 0-2 .89543-2 2v20c0 1.1046.89543 2 2 2z",fill:"#6e56cf"}),(0,l.jsx)("path",{d:"m17 5h3l-5-5v3c0 1.10457.8954 2 2 2z",fill:"#9e8cfc"}),(0,l.jsx)("path",{d:"m10.0912 8c-2.8118 0-5.0912 2.2794-5.0912 5.0912s2.2794 5.0912 5.0912 5.0912c1.8851 0 3.5303-1.0247 4.4098-2.5452.1553-.2684.2868-.5523.3916-.8489.092-.2604-.0444-.5461-.3048-.6381-.2603-.092-.546.0445-.638.3048-.0841.238-.1897.4659-.3144.6815-.7081 1.2241-2.0305 2.0459-3.5442 2.0459-2.2595 0-4.0912-1.8317-4.0912-4.0912s1.8317-4.0912 4.0912-4.0912c1.3566 0 2.5595.66 3.3043 1.6782h-1.7739c-.2761 0-.5.2239-.5.5 0 .2762.2239.5.5.5h2.6782c.2762 0 .5-.2238.5-.5v-2.6782c0-.2761-.2238-.5-.5-.5-.2761 0-.5.2239-.5.5v1.1032c-.9281-.9865-2.2462-1.6032-3.7086-1.6032z",fill:"#fff"})]}),G=e=>(0,l.jsxs)("svg",{viewBox:"0 0 20 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,l.jsx)("path",{d:"m2 24h16c1.1046 0 2-.8954 2-2v-17l-5-5h-13c-1.10457 0-2 .89543-2 2v20c0 1.1046.89543 2 2 2z",fill:"#6e56cf",fillRule:"nonzero"}),(0,l.jsx)("path",{d:"m17 5h3l-5-5v3c0 1.10457.8954 2 2 2z",fill:"#9e8cfc",fillRule:"nonzero"}),(0,l.jsx)("path",{d:"m8.0869 10.6818.5758-2.3031c.0556-.2226.2556-.3787.485-.3787.3253 0 .564.3057.4851.6213l-.5151 2.0605h2.6055l.5758-2.3031c.0557-.2226.2557-.3787.4851-.3787.3253 0 .564.3057.4851.6213l-.5152 2.0605h2.246c.2761 0 .5.2239.5.5 0 .2762-.2239.5-.5.5h-2.496l-.6591 2.6364h2.1551c.2761 0 .5.2238.5.5 0 .2761-.2239.5-.5.5h-2.4051l-.5757 2.3031c-.0557.2226-.2557.3787-.4851.3787-.3253 0-.564-.3057-.4851-.6213l.5152-2.0605h-2.6056l-.5758 2.3031c-.0556.2226-.2556.3787-.4851.3787-.3253 0-.5639-.3057-.485-.6213l.5151-2.0605h-1.9278c-.2761 0-.5-.2239-.5-.5 0-.2762.2239-.5.5-.5h2.1778l.6591-2.6364h-1.8369c-.2761 0-.5-.2238-.5-.5 0-.2761.2239-.5.5-.5zm2.7273 3.6364.659-2.6364h-2.6055l-.6591 2.6364z",fill:"#fff"})]});var D=n(60867),P=n(50477),W=n(94840),A=n(16442);let $=e=>{let{format:t,isCreatingCustomType:n,openCreateCustomTypeModal:a}=e,s=(0,h.useRouter)(),{customTypes:i,updateCustomTypes:d}=(0,P.xU)(t),u=i.sort((e,t)=>e.id.localeCompare(t.id)),m=v.cd[t],p=o.$[t];return(!function(e,t,n){let{storeCustomTypes:l}=(0,x.v9)(e=>({storeCustomTypes:(0,w.Ch)(e).filter(A.TG)}));(0,c.useEffect)(()=>{let r=l.filter(e=>{let{local:n}=e;return n.format===t});(r.length!==e.length||r.some(t=>{let n=e.find(e=>e.id===t.local.id);return!n||JSON.stringify(W.Dc.fromSM(t.local))!==JSON.stringify(n)}))&&n(r.map(e=>{let{local:t}=e;return W.Dc.fromSM(t)}))},[t,n,e,l])}(i,t,d),0===u.length)?(0,l.jsxs)(E.R$,{"data-testid":"blank-slate",style:{alignSelf:"center",marginTop:r.t.space[72]},children:[(0,l.jsx)(E.u2,{children:(0,l.jsx)(r.a_,{src:m.blankSlateImage,sizing:"cover"})}),(0,l.jsxs)(E.T9,{children:[(0,l.jsx)(E._T,{children:p.name({start:!0,plural:!0})}),(0,l.jsx)(E.nf,{children:p.blankSlateDescription}),(0,l.jsx)(E.Qj,{children:(0,l.jsx)(r.E,{onClick:a,loading:n,children:"Create"})})]})]}):(0,l.jsx)("div",{children:(0,l.jsxs)(r.bE,{columnLayout:"28px 1fr 1fr 1fr 42px",children:[(0,l.jsx)(r.bH,{children:(0,l.jsxs)(r.bI,{children:[(0,l.jsx)(r.bG,{children:(0,l.jsx)(r.aX,{name:"notes",size:"medium"})}),(0,l.jsx)(r.bG,{children:(0,l.jsx)(r.bL,{color:"grey11",variant:"small",children:"Label"})}),(0,l.jsx)(r.bG,{children:(0,l.jsx)(r.bL,{color:"grey11",variant:"small",children:"API ID"})}),(0,l.jsx)(r.bG,{children:(0,l.jsx)(r.bL,{color:"grey11",variant:"small",children:"Limit"})}),(0,l.jsx)(r.bG,{})]})}),(0,l.jsx)(r.bF,{children:u.map(e=>{let{repeatable:n,label:a,id:c}=e;return(0,l.jsxs)(r.bI,{onClick:()=>{s.push(v.cd[t].getBuilderPagePathname(c))},children:[(0,l.jsx)(r.bG,{children:n?(0,l.jsx)(T,{width:r.t.space[20]}):(0,l.jsx)(G,{width:r.t.space[20]})}),(0,l.jsx)(r.bG,{children:(0,l.jsx)(r.bL,{variant:"bold",noWrap:!0,children:a})}),(0,l.jsx)(r.bG,{children:(0,l.jsx)(r.bL,{color:"grey11",noWrap:!0,children:c})}),(0,l.jsx)(r.bG,{children:(0,l.jsx)(r.bL,{color:"grey11",noWrap:!0,children:n?"Reusable":"Single"})}),(0,l.jsx)(r.bG,{children:(0,l.jsx)(D._,{isChangesLocal:!1,format:t,customType:e})})]},c)})})]})})},O=e=>{let{format:t}=e,n=o.$[t],[a,h]=(0,c.useState)(!1),[x,m]=(0,c.useState)(!1);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s(),{children:(0,l.jsxs)("title",{children:[n.name({start:!0,plural:!0})," - Slice Machine"]})}),(0,l.jsx)(d.h,{renderError:()=>(0,l.jsx)(u.LN,{children:(0,l.jsx)(u.RN,{children:(0,l.jsx)(r.D,{alignItems:"center",justifyContent:"center",children:(0,l.jsx)(r.ax,{title:"Request failed",description:"An error occurred while fetching your ".concat(n.name({start:!1,plural:!0}),".")})})})}),children:(0,l.jsx)(c.Suspense,{fallback:(0,l.jsxs)(u.LN,{children:[(0,l.jsxs)(u.wd,{children:[(0,l.jsx)(u.Cx,{children:(0,l.jsx)(i.g,{children:n.name({start:!0,plural:!0})})}),(0,l.jsx)(u.K2,{children:(0,l.jsx)(r.E,{disabled:!0,startIcon:"add",children:"Create"})})]}),(0,l.jsx)(u.RN,{children:(0,l.jsx)(r.bg,{})})]}),children:(0,l.jsxs)(u.LN,{children:[(0,l.jsxs)(u.wd,{children:[(0,l.jsx)(u.Cx,{children:(0,l.jsx)(i.g,{children:n.name({start:!0,plural:!0})})}),(0,l.jsx)(u.K2,{children:(0,l.jsx)(r.E,{"data-testid":"create-ct",loading:a,onClick:()=>{m(!0)},startIcon:"add",children:"Create"})})]}),(0,l.jsx)(u.RN,{children:(0,l.jsxs)(r.D,{flexDirection:"column",children:[(0,l.jsx)($,{format:t,isCreatingCustomType:a,openCreateCustomTypeModal:()=>{m(!0)}}),(0,l.jsx)(z,{format:t,isCreating:a,isOpen:x,onCreateChange:h,onOpenChange:m})]})})]})})})]})}},30527:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},W:function(){return i}});var l=n(52322),r=n(2784),a=n(75289);let s=e=>{let{bg:t,background:n,sx:r,withRadius:s,radius:c,children:i}=e;return(0,l.jsx)(a.xu,{sx:{p:4,bg:t||n,...s?{borderBottomLeftRadius:c,borderBottomRightRadius:c}:null,...r},children:i})},c=(0,r.createContext)("6px"),i=()=>(0,r.useContext)(c),o=e=>{let{Header:t=null,SubHeader:n=null,Body:r=null,Footer:i=null,borderFooter:o=!1,radius:d="6px",bodySx:u={},footerSx:h={},sx:x=null,bg:m,background:p,children:j,...g}=e;return(0,l.jsx)(c.Provider,{value:d,children:(0,l.jsxs)(a.Zb,{sx:{border:e=>{var t;return"1px solid ".concat(String(null===(t=e.colors)||void 0===t?void 0:t.borders))},borderRadius:d,...x},...g,children:[t||null,n||null,(0,l.jsxs)(s,{bg:m,background:p,sx:u,withRadius:!i,children:[r?(0,l.jsx)(r,{}):null,j||null]}),i?(0,l.jsx)(s,{bg:m,background:p,sx:{...o?{borderTop:e=>{let{colors:t}=e;return"1px solid ".concat(String(null==t?void 0:t.borders))}}:null,...h},radius:d,withRadius:!0,children:"object"==typeof i?i:(0,l.jsx)(i,{})}):null]})})}},7974:function(e,t,n){"use strict";n.d(t,{Sn:function(){return c},lS:function(){return l},nG:function(){return r},pq:function(){return i},rd:function(){return s},xo:function(){return a}});let l=["components","update","insert"],r=["png","jpg","jpeg"],a=/^[A-Za-z0-9]+(?:_[A-Za-z0-9]+)*$/,s="placeholders/What_are_Slices_mrvome",c="SM_HELP_VIDEOS/mock_data",i="slice-machine-simulator"},83478:function(e){e.exports={column:"BlankSlate_column__genEe",root:"BlankSlate_root__CmSqW BlankSlate_column__genEe",fadeIn:"BlankSlate_fadeIn__mAfi5",withBackground:"BlankSlate_withBackground__mLYij",image:"BlankSlate_image__Jn90S BlankSlate_column__genEe",content:"BlankSlate_content__0Yt2d BlankSlate_column__genEe",desc:"BlankSlate_desc___Dl7e",actions:"BlankSlate_actions__OYRj4"}}}]);
@@ -0,0 +1,4 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[256],{10727:function(e,t,r){"use strict";r.d(t,{Oq:function(){return f},dO:function(){return s},jn:function(){return o},iz:function(){return d},Dz:function(){return n},cv:function(){return l},oc:function(){return c}});var n=function(e){var t=e.top,r=e.right,n=e.bottom,o=e.left;return{top:t,right:r,bottom:n,left:o,width:r-o,height:n-t,x:o,y:t,center:{x:(r+o)/2,y:(n+t)/2}}},o=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},i=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},a={top:0,right:0,bottom:0,left:0},s=function(e){var t=e.borderBox,r=e.margin,s=void 0===r?a:r,u=e.border,l=void 0===u?a:u,c=e.padding,f=void 0===c?a:c,d=n(o(t,s)),p=n(i(t,l)),h=n(i(p,f));return{marginBox:d,borderBox:n(t),paddingBox:p,contentBox:h,margin:s,border:l,padding:f}},u=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var r=Number(t);return isNaN(r)&&function(e,t){if(!e)throw Error("Invariant failed")}(!1),r},l=function(e,t){var r=e.borderBox,n=e.border,o=e.margin,i=e.padding;return s({borderBox:{top:r.top+t.y,left:r.left+t.x,bottom:r.bottom+t.y,right:r.right+t.x},border:n,margin:o,padding:i})},c=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),l(e,t)},f=function(e,t){return s({borderBox:e,margin:{top:u(t.marginTop),right:u(t.marginRight),bottom:u(t.marginBottom),left:u(t.marginLeft)},padding:{top:u(t.paddingTop),right:u(t.paddingRight),bottom:u(t.paddingBottom),left:u(t.paddingLeft)},border:{top:u(t.borderTopWidth),right:u(t.borderRightWidth),bottom:u(t.borderBottomWidth),left:u(t.borderLeftWidth)}})},d=function(e){return f(e.getBoundingClientRect(),window.getComputedStyle(e))}},32726:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,r){return null!=e&&t.call(e,r)}},93352:function(e,t,r){var n=r(32726),o=r(1369);e.exports=function(e,t){return null!=e&&o(e,t,n)}},19950:function(e,t,r){var n=r(13940),o=r(26548),i=r(68286);e.exports=function(e,t){var r={};return t=i(t,3),o(e,function(e,o,i){n(r,t(e,o,i),e)}),r}},57370:function(e,t,r){var n=r(34311)(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});e.exports=n},36631:function(e,t){"use strict";var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function n(e,t){if(e.length!==t.length)return!1;for(var n,o,i=0;i<e.length;i++)if(!((n=e[i])===(o=t[i])||r(n)&&r(o)))return!1;return!0}t.Z=function(e,t){void 0===t&&(t=n);var r,o,i=[],a=!1;return function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];return a&&r===this&&t(n,i)||(o=e.apply(this,n),a=!0,r=this,i=n),o}}},17296:function(e){"use strict";function t(e){this._maxSize=e,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(e){return this._values[e]},t.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var r=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,o=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),u=new t(512),l=new t(512);function c(e){return s.get(e)||s.set(e,f(e).map(function(e){return e.replace(a,"$2")}))}function f(e){return e.match(r)||[""]}function d(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:t,split:f,normalizePath:c,setter:function(e){var t=c(e);return u.get(e)||u.set(e,function(e,r){for(var n=0,o=t.length,i=e;n<o-1;){var a=t[n];if("__proto__"===a||"constructor"===a||"prototype"===a)return e;i=i[t[n++]]}i[t[n]]=r})},getter:function(e,t){var r=c(e);return l.get(e)||l.set(e,function(e){for(var n=0,o=r.length;n<o;){if(null==e&&t)return;e=e[r[n++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(d(t)||n.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,r){!function(e,t,r){var a,s,u,l,c,f=e.length;for(u=0;u<f;u++){(s=e[u])&&(!d(a=s)&&(a.match(o)&&!a.match(n)||i.test(a))&&(s='"'+s+'"'),l=!(c=d(s))&&/^\d+$/.test(s),t.call(r,s,c,l,u,e))}}(Array.isArray(e)?e:f(e),t,r)}}},26947:function(e,t){"use strict";t.Z=function(e){var t=[],r=null,n=function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];t=o,r||(r=requestAnimationFrame(function(){r=null,e.apply(void 0,t)}))};return n.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},n}},34543:function(e,t,r){"use strict";r.d(t,{LFN:function(){return i},SnF:function(){return s},eR7:function(){return a},xqv:function(){return o}});var n=r(68281);function o(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"16 18 22 12 16 6"}},{tag:"polyline",attr:{points:"8 6 2 12 8 18"}}]})(e)}function i(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}},{tag:"circle",attr:{cx:"8.5",cy:"8.5",r:"1.5"}},{tag:"polyline",attr:{points:"21 15 16 10 5 21"}}]})(e)}function a(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"}},{tag:"line",attr:{x1:"8",y1:"12",x2:"16",y2:"12"}}]})(e)}function s(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"8",y1:"6",x2:"21",y2:"6"}},{tag:"line",attr:{x1:"8",y1:"12",x2:"21",y2:"12"}},{tag:"line",attr:{x1:"8",y1:"18",x2:"21",y2:"18"}},{tag:"line",attr:{x1:"3",y1:"6",x2:"3.01",y2:"6"}},{tag:"line",attr:{x1:"3",y1:"12",x2:"3.01",y2:"12"}},{tag:"line",attr:{x1:"3",y1:"18",x2:"3.01",y2:"18"}}]})(e)}},92928:function(e,t,r){"use strict";r.d(t,{OK:function(){return F},x4:function(){return k},mQ:function(){return g}});var n,o=r(2784);function i(e){return function(t){return!!t.type&&t.type.tabsRole===e}}var a=i("Tab"),s=i("TabList"),u=i("TabPanel");function l(e,t){return o.Children.map(e,function(e){return null===e?null:a(e)||s(e)||u(e)?t(e):e.props&&e.props.children&&"object"==typeof e.props.children?(0,o.cloneElement)(e,Object.assign({},e.props,{children:l(e.props.children,t)})):e})}var c=r(6277);function f(e){var t=0;return!function e(t,r){return o.Children.forEach(t,function(t){null!==t&&(a(t)||u(t)?r(t):t.props&&t.props.children&&"object"==typeof t.props.children&&(s(t)&&r(t),e(t.props.children,r)))})}(e,function(e){a(e)&&t++}),t}var d=["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName","environment","disableUpDownKeys","disableLeftRightKeys"];function p(e){return e&&"getAttribute"in e}function h(e){return p(e)&&e.getAttribute("data-rttab")}function m(e){return p(e)&&"true"===e.getAttribute("aria-disabled")}var v=function(e){var t=(0,o.useRef)([]),r=(0,o.useRef)([]),i=(0,o.useRef)();function p(t,r){t<0||t>=b()||(0,e.onSelect)(t,e.selectedIndex,r)}function v(e){for(var t=b(),r=e+1;r<t;r++)if(!m(g(r)))return r;for(var n=0;n<e;n++)if(!m(g(n)))return n;return e}function y(e){for(var t=e;t--;)if(!m(g(t)))return t;for(t=b();t-- >e;)if(!m(g(t)))return t;return e}function b(){return f(e.children)}function g(e){return t.current["tabs-"+e]}function w(e){var t=e.target;do if(E(t)){if(m(t))return;p([].slice.call(t.parentNode.children).filter(h).indexOf(t),e);return}while(null!=(t=t.parentNode))}function E(e){if(!h(e))return!1;var t=e.parentElement;do{if(t===i.current)return!0;if(t.getAttribute("data-rttabs"))break;t=t.parentElement}while(t);return!1}e.children;var x=e.className,T=(e.disabledTabClassName,e.domRef),_=(e.focus,e.forceRenderTabPanel,e.onSelect,e.selectedIndex,e.selectedTabClassName,e.selectedTabPanelClassName,e.environment,e.disableUpDownKeys,e.disableLeftRightKeys,function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,d));return o.createElement("div",Object.assign({},_,{className:(0,c.Z)(x),onClick:w,onKeyDown:function(t){var r=e.direction,n=e.disableUpDownKeys,o=e.disableLeftRightKeys;if(E(t.target)){var i=e.selectedIndex,a=!1,s=!1;("Space"===t.code||32===t.keyCode||"Enter"===t.code||13===t.keyCode)&&(a=!0,s=!1,w(t)),(o||37!==t.keyCode&&"ArrowLeft"!==t.code)&&(n||38!==t.keyCode&&"ArrowUp"!==t.code)?(o||39!==t.keyCode&&"ArrowRight"!==t.code)&&(n||40!==t.keyCode&&"ArrowDown"!==t.code)?35===t.keyCode||"End"===t.code?(i=function(){for(var e=b();e--;)if(!m(g(e)))return e;return null}(),a=!0,s=!0):(36===t.keyCode||"Home"===t.code)&&(i=function(){for(var e=b(),t=0;t<e;t++)if(!m(g(t)))return t;return null}(),a=!0,s=!0):(i="rtl"===r?y(i):v(i),a=!0,s=!0):(i="rtl"===r?v(i):y(i),a=!0,s=!0),a&&t.preventDefault(),s&&p(i,t)}},ref:function(e){i.current=e,T&&T(e)},"data-rttabs":!0}),function(){var i=0,c=e.children,f=e.disabledTabClassName,d=e.focus,p=e.forceRenderTabPanel,h=e.selectedIndex,m=e.selectedTabClassName,v=e.selectedTabPanelClassName,y=e.environment;r.current=r.current||[];for(var w=r.current.length-b(),E=(0,o.useId)();w++<0;)r.current.push(""+E+r.current.length);return l(c,function(e){var c=e;if(s(e)){var b=0,w=!1;null==n&&function(e){var t=e||("undefined"!=typeof window?window:void 0);try{n=!!(void 0!==t&&t.document&&t.document.activeElement)}catch(e){n=!1}}(y);var E=y||("undefined"!=typeof window?window:void 0);n&&E&&(w=o.Children.toArray(e.props.children).filter(a).some(function(e,t){return E.document.activeElement===g(t)})),c=(0,o.cloneElement)(e,{children:l(e.props.children,function(e){var n="tabs-"+b,i=h===b,a={tabRef:function(e){t.current[n]=e},id:r.current[b],selected:i,focus:i&&(d||w)};return m&&(a.selectedClassName=m),f&&(a.disabledClassName=f),b++,(0,o.cloneElement)(e,a)})})}else if(u(e)){var x={id:r.current[i],selected:h===i};p&&(x.forceRender=p),v&&(x.selectedClassName=v),i++,c=(0,o.cloneElement)(e,x)}return c})}())};v.defaultProps={className:"react-tabs",focus:!1},v.propTypes={};var y=function(e,t){},b=function(e){var t=e.children,r=e.defaultFocus,n=e.defaultIndex,i=e.focusTabOnClick,a=e.onSelect,s=(0,o.useState)(r),u=s[0],l=s[1],c=(0,o.useState)(null===e.selectedIndex?1:0)[0],d=(0,o.useState)(1===c?n||0:null),p=d[0],h=d[1];if((0,o.useEffect)(function(){l(!1)},[]),1===c){var m=f(t);(0,o.useEffect)(function(){null!=p&&h(Math.min(p,Math.max(0,m-1)))},[m])}y(e,c);var b=Object.assign({},e);return b.focus=u,b.onSelect=function(e,t,r){("function"!=typeof a||!1!==a(e,t,r))&&(i&&l(!0),1===c&&h(e))},null!=p&&(b.selectedIndex=p),delete b.defaultFocus,delete b.defaultIndex,delete b.focusTabOnClick,o.createElement(v,b,t)};b.propTypes={},b.defaultProps={defaultFocus:!1,focusTabOnClick:!0,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null,environment:null,disableUpDownKeys:!1,disableLeftRightKeys:!1},b.tabsRole="Tabs";var g=b,w=["children","className"],E=function(e){var t=e.children,r=e.className,n=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,w);return o.createElement("ul",Object.assign({},n,{className:(0,c.Z)(r),role:"tablist"}),t)};E.tabsRole="TabList",E.propTypes={},E.defaultProps={className:"react-tabs__tab-list"};var x=["children","className","disabled","disabledClassName","focus","id","selected","selectedClassName","tabIndex","tabRef"],T="react-tabs__tab",_=function(e){var t,r=(0,o.useRef)(),n=e.children,i=e.className,a=e.disabled,s=e.disabledClassName,u=e.focus,l=e.id,f=e.selected,d=e.selectedClassName,p=e.tabIndex,h=e.tabRef,m=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,x);return(0,o.useEffect)(function(){f&&u&&r.current.focus()},[f,u]),o.createElement("li",Object.assign({},m,{className:(0,c.Z)(i,((t={})[d]=f,t[s]=a,t)),ref:function(e){r.current=e,h&&h(e)},role:"tab",id:"tab"+l,"aria-selected":f?"true":"false","aria-disabled":a?"true":"false","aria-controls":"panel"+l,tabIndex:p||(f?"0":null),"data-rttab":!0}),n)};_.propTypes={},_.tabsRole="Tab",_.defaultProps={className:T,disabledClassName:T+"--disabled",focus:!1,id:null,selected:!1,selectedClassName:T+"--selected"};var F=_,O=["children","className","forceRender","id","selected","selectedClassName"],S="react-tabs__tab-panel",C=function(e){var t,r=e.children,n=e.className,i=e.forceRender,a=e.id,s=e.selected,u=e.selectedClassName,l=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,O);return o.createElement("div",Object.assign({},l,{className:(0,c.Z)(n,((t={})[u]=s,t)),role:"tabpanel",id:"panel"+a,"aria-labelledby":"tab"+a}),i||s?r:null)};C.tabsRole="TabPanel",C.propTypes={},C.defaultProps={className:S,forceRender:!1,selectedClassName:S+"--selected"};var k=C},33710:function(e,t,r){"use strict";r.d(t,{Z:function(){return r0}});for(var n,o,i,a,s,u,l,c=r(2784),f=r(13980),d=r.n(f),p="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),h=new Uint8Array(16),m=[],v=0;v<256;++v)m[v]=(v+256).toString(16).substr(1);var y=function(e,t){var r=t||0;return[m[e[r++]],m[e[r++]],m[e[r++]],m[e[r++]],"-",m[e[r++]],m[e[r++]],"-",m[e[r++]],m[e[r++]],"-",m[e[r++]],m[e[r++]],"-",m[e[r++]],m[e[r++]],m[e[r++]],m[e[r++]],m[e[r++]],m[e[r++]]].join("")},b=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||function(){if(!p)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return p(h)})();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[n+i]=o[i];return t||y(o)};function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){x(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function E(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T(){return(T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function F(e,t){return(F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},C=function(e){return e&&e.Math==Math&&e},k=C("object"==typeof globalThis&&globalThis)||C("object"==typeof window&&window)||C("object"==typeof self&&self)||C("object"==typeof S&&S)||function(){return this}()||Function("return this")(),A={},D=function(e){try{return!!e()}catch(e){return!0}},R=!D(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),N=!D(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),j=Function.prototype.call,I=N?j.bind(j):function(){return j.apply(j,arguments)},L={},P={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,$=M&&!P.call({1:2},1);L.f=$?function(e){var t=M(this,e);return!!t&&t.enumerable}:P;var z=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},U=Function.prototype,B=U.call,V=N&&U.bind.bind(B,B),H=function(e){return N?V(e):function(){return B.apply(e,arguments)}},W=H({}.toString),q=H("".slice),Y=function(e){return q(W(e),8,-1)},K=function(e){if("Function"===Y(e))return H(e)},X=Object,Z=K("".split),J=D(function(){return!X("z").propertyIsEnumerable(0)})?function(e){return"String"==Y(e)?Z(e,""):X(e)}:X,G=function(e){return null==e},Q=TypeError,ee=function(e){if(G(e))throw Q("Can't call method on "+e);return e},et=function(e){return J(ee(e))},er="object"==typeof document&&document.all,en={all:er,IS_HTMLDDA:void 0===er&&void 0!==er},eo=en.all,ei=en.IS_HTMLDDA?function(e){return"function"==typeof e||e===eo}:function(e){return"function"==typeof e},ea=en.all,es=en.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:ei(e)||e===ea}:function(e){return"object"==typeof e?null!==e:ei(e)},eu=function(e,t){var r;return arguments.length<2?ei(r=k[e])?r:void 0:k[e]&&k[e][t]},el=K({}.isPrototypeOf),ec=eu("navigator","userAgent")||"",ef=k.process,ed=k.Deno,ep=ef&&ef.versions||ed&&ed.version,eh=ep&&ep.v8;eh&&(o=(n=eh.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&ec&&(!(n=ec.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=ec.match(/Chrome\/(\d+)/))&&(o=+n[1]);var em=o,ev=!!Object.getOwnPropertySymbols&&!D(function(){var e=Symbol();return!String(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&em&&em<41}),ey=ev&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,eb=Object,eg=ey?function(e){return"symbol"==typeof e}:function(e){var t=eu("Symbol");return ei(t)&&el(t.prototype,eb(e))},ew=String,eE=function(e){try{return ew(e)}catch(e){return"Object"}},ex=TypeError,eT=function(e){if(ei(e))return e;throw ex(eE(e)+" is not a function")},e_=TypeError,eF={exports:{}},eO=Object.defineProperty,eS=function(e,t){try{eO(k,e,{value:t,configurable:!0,writable:!0})}catch(r){k[e]=t}return t},eC="__core-js_shared__",ek=k[eC]||eS(eC,{});(eF.exports=function(e,t){return ek[e]||(ek[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var eA=Object,eD=function(e){return eA(ee(e))},eR=K({}.hasOwnProperty),eN=Object.hasOwn||function(e,t){return eR(eD(e),t)},ej=0,eI=Math.random(),eL=K(1..toString),eP=function(e){return"Symbol("+(void 0===e?"":e)+")_"+eL(++ej+eI,36)},eM=(0,eF.exports)("wks"),e$=k.Symbol,ez=e$&&e$.for,eU=ey?e$:e$&&e$.withoutSetter||eP,eB=function(e){if(!eN(eM,e)||!(ev||"string"==typeof eM[e])){var t="Symbol."+e;ev&&eN(e$,e)?eM[e]=e$[e]:ey&&ez?eM[e]=ez(t):eM[e]=eU(t)}return eM[e]},eV=function(e,t){var r=e[t];return G(r)?void 0:eT(r)},eH=function(e,t){var r,n;if("string"===t&&ei(r=e.toString)&&!es(n=I(r,e))||ei(r=e.valueOf)&&!es(n=I(r,e))||"string"!==t&&ei(r=e.toString)&&!es(n=I(r,e)))return n;throw e_("Can't convert object to primitive value")},eW=TypeError,eq=eB("toPrimitive"),eY=function(e,t){if(!es(e)||eg(e))return e;var r,n=eV(e,eq);if(n){if(void 0===t&&(t="default"),!es(r=I(n,e,t))||eg(r))return r;throw eW("Can't convert object to primitive value")}return void 0===t&&(t="number"),eH(e,t)},eK=function(e){var t=eY(e,"string");return eg(t)?t:t+""},eX=k.document,eZ=es(eX)&&es(eX.createElement),eJ=function(e){return eZ?eX.createElement(e):{}},eG=!R&&!D(function(){return 7!=Object.defineProperty(eJ("div"),"a",{get:function(){return 7}}).a}),eQ=Object.getOwnPropertyDescriptor;A.f=R?eQ:function(e,t){if(e=et(e),t=eK(t),eG)try{return eQ(e,t)}catch(e){}if(eN(e,t))return z(!I(L.f,e,t),e[t])};var e0={},e1=R&&D(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),e2=String,e9=TypeError,e5=function(e){if(es(e))return e;throw e9(e2(e)+" is not an object")},e3=TypeError,e7=Object.defineProperty,e6=Object.getOwnPropertyDescriptor,e4="enumerable",e8="configurable",te="writable";e0.f=R?e1?function(e,t,r){if(e5(e),t=eK(t),e5(r),"function"==typeof e&&"prototype"===t&&"value"in r&&te in r&&!r[te]){var n=e6(e,t);n&&n[te]&&(e[t]=r.value,r={configurable:e8 in r?r[e8]:n[e8],enumerable:e4 in r?r[e4]:n[e4],writable:!1})}return e7(e,t,r)}:e7:function(e,t,r){if(e5(e),t=eK(t),e5(r),eG)try{return e7(e,t,r)}catch(e){}if("get"in r||"set"in r)throw e3("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var tt=R?function(e,t,r){return e0.f(e,t,z(1,r))}:function(e,t,r){return e[t]=r,e},tr={exports:{}},tn=Function.prototype,to=R&&Object.getOwnPropertyDescriptor,ti=eN(tn,"name")&&(!R||R&&to(tn,"name").configurable),ta=K(Function.toString);ei(ek.inspectSource)||(ek.inspectSource=function(e){return ta(e)});var ts=ek.inspectSource,tu=k.WeakMap,tl=ei(tu)&&/native code/.test(String(tu)),tc=(0,eF.exports)("keys"),tf=function(e){return tc[e]||(tc[e]=eP(e))},td={},tp="Object already initialized",th=k.TypeError,tm=k.WeakMap;if(tl||ek.state){var tv=ek.state||(ek.state=new tm);tv.get=tv.get,tv.has=tv.has,tv.set=tv.set,i=function(e,t){if(tv.has(e))throw th(tp);return t.facade=e,tv.set(e,t),t},a=function(e){return tv.get(e)||{}},s=function(e){return tv.has(e)}}else{var ty=tf("state");td[ty]=!0,i=function(e,t){if(eN(e,ty))throw th(tp);return t.facade=e,tt(e,ty,t),t},a=function(e){return eN(e,ty)?e[ty]:{}},s=function(e){return eN(e,ty)}}var tb=a,tg=Object.defineProperty,tw=R&&!D(function(){return 8!==tg(function(){},"length",{value:8}).length}),tE=String(String).split("String"),tx=tr.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!eN(e,"name")||ti&&e.name!==t)&&(R?tg(e,"name",{value:t,configurable:!0}):e.name=t),tw&&r&&eN(r,"arity")&&e.length!==r.arity&&tg(e,"length",{value:r.arity});try{r&&eN(r,"constructor")&&r.constructor?R&&tg(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n,o=s(n=e)?a(n):i(n,{});return eN(o,"source")||(o.source=tE.join("string"==typeof t?t:"")),e};Function.prototype.toString=tx(function(){return ei(this)&&tb(this).source||ts(this)},"toString");var tT=tr.exports,t_={},tF=Math.ceil,tO=Math.floor,tS=Math.trunc||function(e){var t=+e;return(t>0?tO:tF)(t)},tC=function(e){var t=+e;return t!=t||0===t?0:tS(t)},tk=Math.max,tA=Math.min,tD=Math.min,tR=function(e){var t;return(t=e.length)>0?tD(tC(t),9007199254740991):0},tN=function(e,t){var r=tC(e);return r<0?tk(r+t,0):tA(r,t)},tj=function(e){return function(t,r,n){var o,i=et(t),a=tR(i),s=tN(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},tI={includes:tj(!0),indexOf:tj(!1)}.indexOf,tL=K([].push),tP=function(e,t){var r,n=et(e),o=0,i=[];for(r in n)!eN(td,r)&&eN(n,r)&&tL(i,r);for(;t.length>o;)eN(n,r=t[o++])&&(~tI(i,r)||tL(i,r));return i},tM=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],t$=tM.concat("length","prototype");t_.f=Object.getOwnPropertyNames||function(e){return tP(e,t$)};var tz={};tz.f=Object.getOwnPropertySymbols;var tU=K([].concat),tB=eu("Reflect","ownKeys")||function(e){var t=t_.f(e5(e)),r=tz.f;return r?tU(t,r(e)):t},tV=/#|\.prototype\./,tH=function(e,t){var r=tq[tW(e)];return r==tK||r!=tY&&(ei(t)?D(t):!!t)},tW=tH.normalize=function(e){return String(e).replace(tV,".").toLowerCase()},tq=tH.data={},tY=tH.NATIVE="N",tK=tH.POLYFILL="P",tX=A.f,tZ=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(ei(r)&&tT(r,i,n),n.global)o?e[t]=r:eS(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:e0.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},tJ=function(e,t,r){for(var n=tB(t),o=e0.f,i=A.f,a=0;a<n.length;a++){var s=n[a];eN(e,s)||r&&eN(r,s)||o(e,s,i(t,s))}},tG=K(K.bind),tQ=Array.isArray||function(e){return"Array"==Y(e)},t0=eB("toStringTag"),t1={};t1[t0]="z";var t2="[object z]"===String(t1),t9=eB("toStringTag"),t5=Object,t3="Arguments"==Y(function(){return arguments}()),t7=function(e,t){try{return e[t]}catch(e){}},t6=t2?Y:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=t7(t=t5(e),t9))?r:t3?Y(t):"Object"==(n=Y(t))&&ei(t.callee)?"Arguments":n},t4=function(){},t8=[],re=eu("Reflect","construct"),rt=/^\s*(?:class|function)\b/,rr=K(rt.exec),rn=!rt.exec(t4),ro=function(e){if(!ei(e))return!1;try{return re(t4,t8,e),!0}catch(e){return!1}},ri=function(e){if(!ei(e))return!1;switch(t6(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return rn||!!rr(rt,ts(e))}catch(e){return!0}};ri.sham=!0;var ra=!re||D(function(){var e;return ro(ro.call)||!ro(Object)||!ro(function(){e=!0})||e})?ri:ro,rs=eB("species"),ru=Array,rl=function(e){var t;return tQ(e)&&(ra(t=e.constructor)&&(t===ru||tQ(t.prototype))?t=void 0:es(t)&&null===(t=t[rs])&&(t=void 0)),void 0===t?ru:t},rc=function(e,t){return new(rl(e))(0===t?0:t)},rf=K([].push),rd=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(u,l,c,f){for(var d,p,h=eD(u),m=J(h),v=(eT(l),void 0===c?l:N?tG(l,c):function(){return l.apply(c,arguments)}),y=tR(m),b=0,g=f||rc,w=t?g(u,y):r||a?g(u,0):void 0;y>b;b++)if((s||b in m)&&(p=v(d=m[b],b,h),e)){if(t)w[b]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:rf(w,d)}else switch(e){case 4:return!1;case 7:rf(w,d)}}return i?-1:n||o?o:w}},rp={forEach:rd(0),map:rd(1),filter:rd(2),some:rd(3),every:rd(4),find:rd(5),findIndex:rd(6),filterReject:rd(7)},rh={},rm=Object.keys||function(e){return tP(e,tM)};rh.f=R&&!e1?Object.defineProperties:function(e,t){e5(e);for(var r,n=et(t),o=rm(t),i=o.length,a=0;i>a;)e0.f(e,r=o[a++],n[r]);return e};var rv=eu("document","documentElement"),ry="prototype",rb="script",rg=tf("IE_PROTO"),rw=function(){},rE=function(e){return"<"+rb+">"+e+"</"+rb+">"},rx=function(e){e.write(rE("")),e.close();var t=e.parentWindow.Object;return e=null,t},rT=function(){var e,t=eJ("iframe");return t.style.display="none",rv.appendChild(t),t.src=String("java"+rb+":"),(e=t.contentWindow.document).open(),e.write(rE("document.F=Object")),e.close(),e.F},r_=function(){try{u=new ActiveXObject("htmlfile")}catch(e){}r_="undefined"!=typeof document?document.domain&&u?rx(u):rT():rx(u);for(var e=tM.length;e--;)delete r_[ry][tM[e]];return r_()};td[rg]=!0;var rF=Object.create||function(e,t){var r;return null!==e?(rw[ry]=e5(e),r=new rw,rw[ry]=null,r[rg]=e):r=r_(),void 0===t?r:rh.f(r,t)},rO=e0.f,rS=eB("unscopables"),rC=Array.prototype;void 0==rC[rS]&&rO(rC,rS,{configurable:!0,value:rF(null)});var rk=rp.find,rA="find",rD=!0;rA in[]&&[,][rA](function(){rD=!1}),function(e,t){var r,n,o,i,a,s=e.target,u=e.global,l=e.stat;if(r=u?k:l?k[s]||eS(s,{}):(k[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=tX(r,n))&&a.value:r[n],!tH(u?n:s+(l?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;tJ(i,o)}(e.sham||o&&o.sham)&&tt(i,"sham",!0),tZ(r,n,i,e)}}({target:"Array",proto:!0,forced:rD},{find:function(e){return rk(this,e,arguments.length>1?arguments[1]:void 0)}}),rC[rS][rA]=!0;var rR="__react_tooltip_hide_event",rN="__react_tooltip_rebuild_event",rj="__react_tooltip_show_event",rI=function(e,t){var r;"function"==typeof window.CustomEvent?r=new window.CustomEvent(e,{detail:t}):(r=document.createEvent("Event")).initEvent(e,!1,!0,t),window.dispatchEvent(r)},rL=function(e,t){var r=this.state.show,n=this.props.id,o=this.isCapture(t.currentTarget),i=t.currentTarget.getAttribute("currentItem");o||t.stopPropagation(),r&&"true"===i?e||this.hideTooltip(t):(t.currentTarget.setAttribute("currentItem","true"),rP(t.currentTarget,this.getTargetArray(n)),this.showTooltip(t))},rP=function(e,t){for(var r=0;r<t.length;r++)e!==t[r]?t[r].setAttribute("currentItem","false"):t[r].setAttribute("currentItem","true")},rM={id:"9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf",set:function(e,t,r){this.id in e?e[this.id][t]=r:Object.defineProperty(e,this.id,{configurable:!0,value:x({},t,r)})},get:function(e,t){var r=e[this.id];if(void 0!==r)return r[t]}},r$=function(e){var t={};for(var r in e)"function"==typeof e[r]?t[r]=e[r].bind(e):t[r]=e[r];return t},rz=function(e,t,r){for(var n,o,i=t.respectEffect,a=t.customEvent,s=this.props.id,u=null,l=r.target;null===u&&null!==l;)o=l,u=l.getAttribute("data-tip")||null,n=l.getAttribute("data-for")||null,l=l.parentElement;if(l=o||r.target,!this.isCustomEvent(l)||void 0!==a&&a){var c=null==s&&null==n||n===s;if(null!=u&&(!(void 0!==i&&i)||"float"===this.getEffect(l))&&c){var f=r$(r);f.currentTarget=l,e(f)}}},rU=function(e,t){var r={};return e.forEach(function(e){var n=e.getAttribute(t);n&&n.split(" ").forEach(function(e){return r[e]=!0})}),r},rB=function(){return document.getElementsByTagName("body")[0]};function rV(e,t,r,n,o,i,a){var s,u=rH(r),l=u.width,c=u.height,f=rH(t),d=f.width,p=f.height,h=rW(e,t,i),m=h.mouseX,v=h.mouseY,y=rq(i,d,p,l,c),b=rY(a),g=b.extraOffsetX,w=b.extraOffsetY,E=window.innerWidth,x=window.innerHeight,T=rK(r),_=T.parentTop,F=T.parentLeft,S=function(e){return m+y[e].l+g},C=function(e){return v+y[e].t+w},k=function(e){var t;return!(0>S(t=e)||m+y[t].r+g>E||0>C(t)||v+y[t].b+w>x)},A={top:k("top"),bottom:k("bottom"),left:k("left"),right:k("right")},D=function(){var e,t=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return O(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return O(e,void 0)}}(e))){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(o.split(",").concat(n,["top","bottom","left","right"]));try{for(t.s();!(e=t.n()).done;){var r=e.value;if(A[r])return r}}catch(e){t.e(e)}finally{t.f()}return n}(),R=!1;return(D&&D!==n&&(R=!0,s=D),R)?{isNewState:!0,newState:{place:s}}:{isNewState:!1,position:{left:parseInt(S(n)-F,10),top:parseInt(C(n)-_,10)}}}var rH=function(e){var t=e.getBoundingClientRect(),r=t.height,n=t.width;return{height:parseInt(r,10),width:parseInt(n,10)}},rW=function(e,t,r){var n=t.getBoundingClientRect(),o=n.top,i=n.left,a=rH(t),s=a.width,u=a.height;return"float"===r?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:i+s/2,mouseY:o+u/2}},rq=function(e,t,r,n,o){var i,a,s,u;return"float"===e?(i={l:-(n/2),r:n/2,t:-(o+3+2),b:-3},s={l:-(n/2),r:n/2,t:15,b:o+3+2+12},u={l:-(n+3+2),r:-3,t:-(o/2),b:o/2},a={l:3,r:n+3+2,t:-(o/2),b:o/2}):"solid"===e&&(i={l:-(n/2),r:n/2,t:-(r/2+o+2),b:-(r/2)},s={l:-(n/2),r:n/2,t:r/2,b:r/2+o+2},u={l:-(n+t/2+2),r:-(t/2),t:-(o/2),b:o/2},a={l:t/2,r:n+t/2+2,t:-(o/2),b:o/2}),{top:i,bottom:s,left:u,right:a}},rY=function(e){var t=0,r=0;for(var n in"[object String]"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/'/g,'"'))),e)"top"===n?r-=parseInt(e[n],10):"bottom"===n?r+=parseInt(e[n],10):"left"===n?t-=parseInt(e[n],10):"right"===n&&(t+=parseInt(e[n],10));return{extraOffsetX:t,extraOffsetY:r}},rK=function(e){for(var t=e;t;){var r=window.getComputedStyle(t);if("none"!==r.getPropertyValue("transform")||"transform"===r.getPropertyValue("will-change"))break;t=t.parentElement}return{parentTop:t&&t.getBoundingClientRect().top||0,parentLeft:t&&t.getBoundingClientRect().left||0}};function rX(e,t,r,n){if(t)return t;if(null!=r)return r;if(null===r)return null;var o=/<br\s*\/?>/;return n&&"false"!==n&&o.test(e)?e.split(o).map(function(e,t){return c.createElement("span",{key:t,className:"multi-line"},e)}):e}function rZ(e){var t={};return Object.keys(e).filter(function(e){return/(^aria-\w+$|^role$)/.test(e)}).forEach(function(r){t[r]=e[r]}),t}function rJ(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):Array(t).fill().map(function(t){return e[t]})}var rG={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}},rQ={tooltip:3,arrow:0},r0=((((((((x(l=function(e){(function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)})(i,e);var t,r,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=_(i);return e=t?Reflect.construct(r,arguments,_(this).constructor):r.apply(this,arguments),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={uuid:e.uuid||"t"+b(),place:e.place||"top",desiredPlace:e.place||"top",type:e.type||"dark",effect:e.effect||"float",show:!1,border:!1,borderClass:"border",customColors:{},customRadius:{},offset:{},padding:e.padding,extraClass:"",html:!1,delayHide:0,delayShow:0,event:e.event||null,eventOff:e.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:rZ(e),isEmptyTip:!1,disable:!1,possibleCustomEvents:e.possibleCustomEvents||"",possibleCustomEventsOff:e.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},t.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),t.mount=!0,t.delayShowLoop=null,t.delayHideLoop=null,t.delayReshow=null,t.intervalUpdateContent=null,t}return r=[{key:"bind",value:function(e){var t=this;e.forEach(function(e){t[e]=t[e].bind(t)})}},{key:"componentDidMount",value:function(){var e=this.props;e.insecure;var t=e.resizeHide,r=e.disableInternalStyle;this.mount=!0,this.bindListener(),this.bindWindowEvents(t),r||this.injectStyles()}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(this.state.currentTarget),this.unbindWindowEvents()}},{key:"injectStyles",value:function(){var e,t=this.tooltipRef;if(t){for(var r=t.parentNode;r.parentNode;)r=r.parentNode;switch(r.constructor.name){case"Document":case"HTMLDocument":case void 0:e=r.head;break;default:e=r}if(!e.querySelector("style[data-react-tooltip]")){var n=document.createElement("style");n.textContent='.__react_component_tooltip {\n border-radius: 3px;\n display: inline-block;\n font-size: 13px;\n left: -999em;\n opacity: 0;\n position: fixed;\n pointer-events: none;\n transition: opacity 0.3s ease-out;\n top: -999em;\n visibility: hidden;\n z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n pointer-events: auto;\n}\n.__react_component_tooltip::before, .__react_component_tooltip::after {\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n}\n.__react_component_tooltip.show {\n opacity: 0.9;\n margin-top: 0;\n margin-left: 0;\n visibility: visible;\n}\n.__react_component_tooltip.place-top::before {\n bottom: 0;\n left: 50%;\n margin-left: -11px;\n}\n.__react_component_tooltip.place-bottom::before {\n top: 0;\n left: 50%;\n margin-left: -11px;\n}\n.__react_component_tooltip.place-left::before {\n right: 0;\n top: 50%;\n margin-top: -9px;\n}\n.__react_component_tooltip.place-right::before {\n left: 0;\n top: 50%;\n margin-top: -9px;\n}\n.__react_component_tooltip .multi-line {\n display: block;\n padding: 2px 0;\n text-align: center;\n}',n.setAttribute("data-react-tooltip","true"),e.appendChild(n)}}}},{key:"mouseOnToolTip",value:function(){return!!this.state.show&&!!this.tooltipRef&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(e){var t,r=[];if(e){var n=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');t='[data-tip][data-for="'.concat(n,'"]')}else t="[data-tip]:not([data-for])";return rJ(document.getElementsByTagName("*")).filter(function(e){return e.shadowRoot}).forEach(function(e){r=r.concat(rJ(e.shadowRoot.querySelectorAll(t)))}),r.concat(rJ(document.querySelectorAll(t)))}},{key:"bindListener",value:function(){var e=this,t=this.props,r=t.id,n=t.globalEventOff,o=t.isCapture,i=this.getTargetArray(r);i.forEach(function(t){null===t.getAttribute("currentItem")&&t.setAttribute("currentItem","false"),e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)}),this.isBodyMode()?this.bindBodyListener(i):i.forEach(function(t){var r=e.isCapture(t),n=e.getEffect(t);if(e.isCustomEvent(t)){e.customBindListener(t);return}t.addEventListener("mouseenter",e.showTooltip,r),t.addEventListener("focus",e.showTooltip,r),"float"===n&&t.addEventListener("mousemove",e.updateTooltip,r),t.addEventListener("mouseleave",e.hideTooltip,r),t.addEventListener("blur",e.hideTooltip,r)}),n&&(window.removeEventListener(n,this.hideTooltip),window.addEventListener(n,this.hideTooltip,o)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var e=this,t=this.props,r=t.id,n=t.globalEventOff;this.isBodyMode()?this.unbindBodyListener():this.getTargetArray(r).forEach(function(t){e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)}),n&&window.removeEventListener(n,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(e){var t=this.isCapture(e);e.removeEventListener("mouseenter",this.showTooltip,t),e.removeEventListener("mousemove",this.updateTooltip,t),e.removeEventListener("mouseleave",this.hideTooltip,t)}},{key:"getTooltipContent",value:function(){var e,t=this.props,r=t.getContent,n=t.children;return r&&(e=Array.isArray(r)?r[0]&&r[0](this.state.originTooltip):r(this.state.originTooltip)),rX(this.state.originTooltip,n,e,this.state.isMultiline)}},{key:"isEmptyTip",value:function(e){return"string"==typeof e&&""===e||null===e}},{key:"showTooltip",value:function(e,t){if(this.tooltipRef&&(!t||this.getTargetArray(this.props.id).some(function(t){return t===e.currentTarget}))){var r=this.props,n=r.multiline,o=r.getContent,i=e.currentTarget.getAttribute("data-tip"),a=e.currentTarget.getAttribute("data-multiline")||n||!1,s=e instanceof window.FocusEvent||t,u=!0;e.currentTarget.getAttribute("data-scroll-hide")?u="true"===e.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(u=this.props.scrollHide),e&&e.currentTarget&&e.currentTarget.setAttribute&&e.currentTarget.setAttribute("aria-describedby",this.props.id||this.state.uuid);var l=e.currentTarget.getAttribute("data-place")||this.props.place||"top",c=s&&"solid"||this.getEffect(e.currentTarget),f=e.currentTarget.getAttribute("data-offset")||this.props.offset||{},d=rV(e,e.currentTarget,this.tooltipRef,l.split(",")[0],l,c,f);d.position&&this.props.overridePosition&&(d.position=this.props.overridePosition(d.position,e,e.currentTarget,this.tooltipRef,l,l,c,f));var p=d.isNewState?d.newState.place:l.split(",")[0];this.clearTimer();var h=e.currentTarget,m=this.state.show?h.getAttribute("data-delay-update")||this.props.delayUpdate:0,v=this,y=function(){v.setState({originTooltip:i,isMultiline:a,desiredPlace:l,place:p,type:h.getAttribute("data-type")||v.props.type||"dark",customColors:{text:h.getAttribute("data-text-color")||v.props.textColor||null,background:h.getAttribute("data-background-color")||v.props.backgroundColor||null,border:h.getAttribute("data-border-color")||v.props.borderColor||null,arrow:h.getAttribute("data-arrow-color")||v.props.arrowColor||null},customRadius:{tooltip:h.getAttribute("data-tooltip-radius")||v.props.tooltipRadius||"3",arrow:h.getAttribute("data-arrow-radius")||v.props.arrowRadius||"0"},effect:c,offset:f,padding:h.getAttribute("data-padding")||v.props.padding,html:(h.getAttribute("data-html")?"true"===h.getAttribute("data-html"):v.props.html)||!1,delayShow:h.getAttribute("data-delay-show")||v.props.delayShow||0,delayHide:h.getAttribute("data-delay-hide")||v.props.delayHide||0,delayUpdate:h.getAttribute("data-delay-update")||v.props.delayUpdate||0,border:(h.getAttribute("data-border")?"true"===h.getAttribute("data-border"):v.props.border)||!1,borderClass:h.getAttribute("data-border-class")||v.props.borderClass||"border",extraClass:h.getAttribute("data-class")||v.props.class||v.props.className||"",disable:(h.getAttribute("data-tip-disable")?"true"===h.getAttribute("data-tip-disable"):v.props.disable)||!1,currentTarget:h},function(){u&&v.addScrollListener(v.state.currentTarget),v.updateTooltip(e),o&&Array.isArray(o)&&(v.intervalUpdateContent=setInterval(function(){if(v.mount){var e=rX(i,"",v.props.getContent[0](),a),t=v.isEmptyTip(e);v.setState({isEmptyTip:t}),v.updatePosition()}},o[1]))})};m?this.delayReshow=setTimeout(y,m):y()}}},{key:"updateTooltip",value:function(e){var t=this,r=this.state,n=r.delayShow,o=r.disable,i=this.props,a=i.afterShow,s=i.disable,u=this.getTooltipContent(),l=e.currentTarget||e.target;if(!(this.mouseOnToolTip()||this.isEmptyTip(u)||o||s)){var c=this.state.show?0:parseInt(n,10),f=function(){if(Array.isArray(u)&&u.length>0||u){var r=!t.state.show;t.setState({currentEvent:e,currentTarget:l,show:!0},function(){t.updatePosition(function(){r&&a&&a(e)})})}};this.delayShowLoop&&clearTimeout(this.delayShowLoop),c?this.delayShowLoop=setTimeout(f,c):(this.delayShowLoop=null,f())}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},o=this.state.disable,i=n.isScroll?0:this.state.delayHide,a=this.props,s=a.afterHide,u=a.disable,l=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(l)&&!o&&!u){if(t&&(!this.getTargetArray(this.props.id).some(function(t){return t===e.currentTarget})||!this.state.show))return;e&&e.currentTarget&&e.currentTarget.removeAttribute&&e.currentTarget.removeAttribute("aria-describedby");var c=function(){var t=r.state.show;if(r.mouseOnToolTip()){r.listenForTooltipExit();return}r.removeListenerForTooltipExit(),r.setState({show:!1},function(){r.removeScrollListener(r.state.currentTarget),t&&s&&s(e)})};this.clearTimer(),i?this.delayHideLoop=setTimeout(c,parseInt(i,10)):c()}}},{key:"hideTooltipOnScroll",value:function(e,t){this.hideTooltip(e,t,{isScroll:!0})}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"removeScrollListener",value:function(e){var t=this.isCapture(e);window.removeEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"updatePosition",value:function(e){var t=this,r=this.state,n=r.currentEvent,o=r.currentTarget,i=r.place,a=r.desiredPlace,s=r.effect,u=r.offset,l=this.tooltipRef,c=rV(n,o,l,i,a,s,u);if(c.position&&this.props.overridePosition&&(c.position=this.props.overridePosition(c.position,n,o,l,i,a,s,u)),c.isNewState)return this.setState(c.newState,function(){t.updatePosition(e)});e&&"function"==typeof e&&e(),l.style.left=c.position.left+"px",l.style.top=c.position.top+"px"}},{key:"clearTimer",value:function(){this.delayShowLoop&&(clearTimeout(this.delayShowLoop),this.delayShowLoop=null),this.delayHideLoop&&(clearTimeout(this.delayHideLoop),this.delayHideLoop=null),this.delayReshow&&(clearTimeout(this.delayReshow),this.delayReshow=null),this.intervalUpdateContent&&(clearInterval(this.intervalUpdateContent),this.intervalUpdateContent=null)}},{key:"hasCustomColors",value:function(){var e=this;return!!(Object.keys(this.state.customColors).find(function(t){return"border"!==t&&e.state.customColors[t]})||this.state.border&&this.state.customColors.border)}},{key:"render",value:function(){var e,t,r,n,o,a,s,u,l,f,d,p,h,m,v=this,y=this.state,b=y.extraClass,g=y.html,E=y.ariaProps,x=y.disable,_=y.uuid,F=this.getTooltipContent(),O=this.isEmptyTip(F),S=this.props.disableInternalStyle?"":(l=this.state.uuid,f=this.state.customColors,d=this.state.type,p=this.state.border,h=this.state.padding,m=this.state.customRadius,function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"8px 21px",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rQ,o=t.text,i=t.background,a=t.border,s=t.arrow,u=n.arrow,l=n.tooltip;return"\n .".concat(e," {\n color: ").concat(o,";\n background: ").concat(i,";\n border: 1px solid ").concat(a,";\n border-radius: ").concat(l,"px;\n padding: ").concat(r,";\n }\n\n .").concat(e,".place-top {\n margin-top: -10px;\n }\n .").concat(e,'.place-top::before {\n content: "";\n background-color: inherit;\n position: absolute;\n z-index: 2;\n width: 20px;\n height: 12px;\n }\n .').concat(e,'.place-top::after {\n content: "";\n position: absolute;\n width: 10px;\n height: 10px;\n border-top-right-radius: ').concat(u,"px;\n border: 1px solid ").concat(a,";\n background-color: ").concat(s,";\n z-index: -2;\n bottom: -6px;\n left: 50%;\n margin-left: -6px;\n transform: rotate(135deg);\n }\n\n .").concat(e,".place-bottom {\n margin-top: 10px;\n }\n .").concat(e,'.place-bottom::before {\n content: "";\n background-color: inherit;\n position: absolute;\n z-index: -1;\n width: 18px;\n height: 10px;\n }\n .').concat(e,'.place-bottom::after {\n content: "";\n position: absolute;\n width: 10px;\n height: 10px;\n border-top-right-radius: ').concat(u,"px;\n border: 1px solid ").concat(a,";\n background-color: ").concat(s,";\n z-index: -2;\n top: -6px;\n left: 50%;\n margin-left: -6px;\n transform: rotate(45deg);\n }\n\n .").concat(e,".place-left {\n margin-left: -10px;\n }\n .").concat(e,'.place-left::before {\n content: "";\n background-color: inherit;\n position: absolute;\n z-index: -1;\n width: 10px;\n height: 18px;\n }\n .').concat(e,'.place-left::after {\n content: "";\n position: absolute;\n width: 10px;\n height: 10px;\n border-top-right-radius: ').concat(u,"px;\n border: 1px solid ").concat(a,";\n background-color: ").concat(s,";\n z-index: -2;\n right: -6px;\n top: 50%;\n margin-top: -6px;\n transform: rotate(45deg);\n }\n\n .").concat(e,".place-right {\n margin-left: 10px;\n }\n .").concat(e,'.place-right::before {\n content: "";\n background-color: inherit;\n position: absolute;\n z-index: -1;\n width: 10px;\n height: 18px;\n }\n .').concat(e,'.place-right::after {\n content: "";\n position: absolute;\n width: 10px;\n height: 10px;\n border-top-right-radius: ').concat(u,"px;\n border: 1px solid ").concat(a,";\n background-color: ").concat(s,";\n z-index: -2;\n left: -6px;\n top: 50%;\n margin-top: -6px;\n transform: rotate(-135deg);\n }\n ")}(l,(e=f,t=d,r=p,n=e.text,o=e.background,a=e.border,s=e.arrow?e.arrow:e.background,u=rG[t]?w({},rG[t]):void 0,n&&(u.text=n),o&&(u.background=o),r&&(a?u.border=a:u.border="light"===t?"black":"white"),s&&(u.arrow=s),u),h,m)),C="__react_component_tooltip"+" ".concat(this.state.uuid)+(!this.state.show||x||O?"":" show")+(this.state.border?" "+this.state.borderClass:"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom":this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),k=this.props.wrapper;0>i.supportedWrappers.indexOf(k)&&(k=i.defaultProps.wrapper);var A=[C,b].filter(Boolean).join(" ");if(!g)return c.createElement(k,T({className:"".concat(A),id:this.props.id||_},E,{ref:function(e){return v.tooltipRef=e},"data-id":"tooltip"}),S&&c.createElement("style",{dangerouslySetInnerHTML:{__html:S},"aria-hidden":"true"}),F);var D="".concat(F).concat(S?'\n<style aria-hidden="true">'.concat(S,"</style>"):"");return c.createElement(k,T({className:"".concat(A),id:this.props.id||_,ref:function(e){return v.tooltipRef=e}},E,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:D}}))}}],n=[{key:"propTypes",get:function(){return{uuid:d().string,children:d().any,place:d().string,type:d().string,effect:d().string,offset:d().object,padding:d().string,multiline:d().bool,border:d().bool,borderClass:d().string,textColor:d().string,backgroundColor:d().string,borderColor:d().string,arrowColor:d().string,arrowRadius:d().string,tooltipRadius:d().string,insecure:d().bool,class:d().string,className:d().string,id:d().string,html:d().bool,delayHide:d().number,delayUpdate:d().number,delayShow:d().number,event:d().string,eventOff:d().string,isCapture:d().bool,globalEventOff:d().string,getContent:d().any,afterShow:d().func,afterHide:d().func,overridePosition:d().func,disable:d().bool,scrollHide:d().bool,resizeHide:d().bool,wrapper:d().string,bodyMode:d().bool,possibleCustomEvents:d().string,possibleCustomEventsOff:d().string,clickable:d().bool,disableInternalStyle:d().bool}}},{key:"getDerivedStateFromProps",value:function(e,t){var r=t.ariaProps,n=rZ(e);return Object.keys(n).some(function(e){return n[e]!==r[e]})?w(w({},t),{},{ariaProps:n}):null}}],r&&E(i.prototype,r),n&&E(i,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(c.Component),"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),x(l,"supportedWrappers",["div","span"]),x(l,"displayName","ReactTooltip"),l).prototype.bindRemovalTracker=function(){var e=this,t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(null!=t){var r=new t(function(t){for(var r=0;r<t.length;r++)for(var n=t[r],o=0;o<n.removedNodes.length;o++)if(n.removedNodes[o]===e.state.currentTarget){e.hideTooltip();return}});r.observe(window.document,{childList:!0,subtree:!0}),this.removalTracker=r}},l.prototype.unbindRemovalTracker=function(){this.removalTracker&&(this.removalTracker.disconnect(),this.removalTracker=null)},l).prototype.isBodyMode=function(){return!!this.props.bodyMode},l.prototype.bindBodyListener=function(e){var t=this,r=this.state,n=r.event,o=r.eventOff,i=r.possibleCustomEvents,a=r.possibleCustomEventsOff,s=rB(),u=rU(e,"data-event"),l=rU(e,"data-event-off");null!=n&&(u[n]=!0),null!=o&&(l[o]=!0),i.split(" ").forEach(function(e){return u[e]=!0}),a.split(" ").forEach(function(e){return l[e]=!0}),this.unbindBodyListener(s);var c=this.bodyModeListeners={};for(var f in null==n&&(c.mouseover=rz.bind(this,this.showTooltip,{}),c.mousemove=rz.bind(this,this.updateTooltip,{respectEffect:!0}),c.mouseout=rz.bind(this,this.hideTooltip,{})),u)c[f]=rz.bind(this,function(e){var r=e.currentTarget.getAttribute("data-event-off")||o;rL.call(t,r,e)},{customEvent:!0});for(var d in l)c[d]=rz.bind(this,this.hideTooltip,{customEvent:!0});for(var p in c)s.addEventListener(p,c[p])},l.prototype.unbindBodyListener=function(e){e=e||rB();var t=this.bodyModeListeners;for(var r in t)e.removeEventListener(r,t[r])},l).prototype.getEffect=function(e){return e.getAttribute("data-effect")||this.props.effect||"float"},l).prototype.isCapture=function(e){return e&&"true"===e.getAttribute("data-iscapture")||this.props.isCapture||!1},l).prototype.isCustomEvent=function(e){return this.state.event||!!e.getAttribute("data-event")},l.prototype.customBindListener=function(e){var t=this,r=this.state,n=r.event,o=r.eventOff,i=e.getAttribute("data-event")||n,a=e.getAttribute("data-event-off")||o;i.split(" ").forEach(function(r){e.removeEventListener(r,rM.get(e,r));var n=rL.bind(t,a);rM.set(e,r,n),e.addEventListener(r,n,!1)}),a&&a.split(" ").forEach(function(r){e.removeEventListener(r,t.hideTooltip),e.addEventListener(r,t.hideTooltip,!1)})},l.prototype.customUnbindListener=function(e){var t=this.state,r=t.event,n=t.eventOff,o=r||e.getAttribute("data-event"),i=n||e.getAttribute("data-event-off");e.removeEventListener(o,rM.get(e,r)),i&&e.removeEventListener(i,this.hideTooltip)},l).prototype.bindWindowEvents=function(e){window.removeEventListener(rR,this.globalHide),window.addEventListener(rR,this.globalHide,!1),window.removeEventListener(rN,this.globalRebuild),window.addEventListener(rN,this.globalRebuild,!1),window.removeEventListener(rj,this.globalShow),window.addEventListener(rj,this.globalShow,!1),e&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},l.prototype.unbindWindowEvents=function(){window.removeEventListener(rR,this.globalHide),window.removeEventListener(rN,this.globalRebuild),window.removeEventListener(rj,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},l.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()},l).hide=function(e){rI(rR,{target:e})},l.rebuild=function(){rI(rN)},l.show=function(e){rI(rj,{target:e})},l.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},l.prototype.globalShow=function(e){if(this.mount){var t=e&&e.detail&&e.detail.target&&!0||!1;this.showTooltip({currentTarget:t&&e.detail.target},!0)}},l.prototype.globalHide=function(e){if(this.mount){var t=e&&e.detail&&e.detail.target&&!0||!1;this.hideTooltip({currentTarget:t&&e.detail.target},t)}},l)},95159:function(e){function t(e,t){var r=e.length,n=Array(r),o={},i=r,a=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var o=e[r];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}(t),s=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}(e);for(t.forEach(function(e){if(!s.has(e[0])||!s.has(e[1]))throw Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||function e(t,i,u){if(u.has(t)){var l;try{l=", node was:"+JSON.stringify(t)}catch(e){l=""}throw Error("Cyclic dependency"+l)}if(!s.has(t))throw Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(t));if(!o[i]){o[i]=!0;var c=a.get(t)||new Set;if(i=(c=Array.from(c)).length){u.add(t);do{var f=c[--i];e(f,s.get(f),u)}while(i);u.delete(t)}n[--r]=t}}(e[i],i,new Set);return n}e.exports=function(e){return t(function(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var o=e[r];t.add(o[0]),t.add(o[1])}return Array.from(t)}(e),e)},e.exports.array=t},31118:function(e,t,r){"use strict";r.d(t,{I4:function(){return a},Ye:function(){return i}});var n=r(2784);function o(e,t){var r=(0,n.useState)(function(){return{inputs:t,result:e()}})[0],o=(0,n.useRef)(!0),i=(0,n.useRef)(r),a=o.current||t&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,i.current.inputs)?i.current:{inputs:t,result:e()};return(0,n.useEffect)(function(){o.current=!1,i.current=a},[a]),a.result}var i=o,a=function(e,t){return o(function(){return e},t)}},65413:function(e,t,r){"use strict";r.r(t),r.d(t,{ArraySchema:function(){return eC},BaseSchema:function(){return H},BooleanSchema:function(){return X},DateSchema:function(){return ec},MixedSchema:function(){return W},NumberSchema:function(){return ei},ObjectSchema:function(){return e_},StringSchema:function(){return er},ValidationError:function(){return C},addMethod:function(){return eR},array:function(){return eS},bool:function(){return K},boolean:function(){return K},date:function(){return el},isSchema:function(){return T},lazy:function(){return ek},mixed:function(){return q},number:function(){return eo},object:function(){return eF},reach:function(){return U},ref:function(){return I},setLocale:function(){return eD},string:function(){return et}});try{b=Map}catch(e){}try{g=Set}catch(e){}function n(e){return function e(t,r,o){if(!t||"object"!=typeof t||"function"==typeof t)return t;if(t.nodeType&&"cloneNode"in t)return t.cloneNode(!0);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(n);if(b&&t instanceof b)return new Map(Array.from(t.entries()));if(g&&t instanceof g)return new Set(Array.from(t.values()));if(t instanceof Object){r.push(t);var i=Object.create(t);for(var a in o.push(i),t){var s=r.findIndex(function(e){return e===t[a]});i[a]=s>-1?o[s]:e(t[a],r,o)}return i}return t}(e,[],[])}let o=Object.prototype.toString,i=Error.prototype.toString,a=RegExp.prototype.toString,s="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",u=/^Symbol\((.*)\)(.*)$/;function l(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let r=typeof e;if("number"===r)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return s.call(e).replace(u,"Symbol($1)");let n=o.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+i.call(e)+"]":"RegExp"===n?a.call(e):null}function c(e,t){let r=l(e,t);return null!==r?r:JSON.stringify(e,function(e,r){let n=l(this[e],t);return null!==n?n:r},2)}let f={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{let o=null!=n&&n!==r,i=`${e} must be a \`${t}\` type, but the final value was: \`${c(r,!0)}\``+(o?` (cast from the value \`${c(n,!0)}\`).`:".");return null===r&&(i+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),i},defined:"${path} must be defined"},d={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},p={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},h={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},m={isValue:"${path} field must be ${value}"},v={noUnknown:"${path} field has unspecified keys: ${unknown}"},y={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};var b,g,w=Object.assign(Object.create(null),{mixed:f,string:d,number:p,date:h,object:v,array:y,boolean:m}),E=r(93352),x=r.n(E),T=e=>e&&e.__isYupSchema__;class _{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!x()(t,"is"))throw TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:n,otherwise:o}=t,i="function"==typeof r?r:(...e)=>e.every(e=>e===r);this.fn=function(...e){let t=e.pop(),r=e.pop(),a=i(...e)?n:o;if(a)return"function"==typeof a?a(r):r.concat(a.resolve(t))}}resolve(e,t){let r=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),n=this.fn.apply(e,r.concat(e,t));if(void 0===n||n===e)return e;if(!T(n))throw TypeError("conditions must return a schema object");return n.resolve(t)}}function F(e){return null==e?[]:[].concat(e)}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let S=/\$\{\s*(\w+)\s*\}/g;class C extends Error{static formatError(e,t){let r=t.label||t.path||"this";return(r!==t.path&&(t=O({},t,{path:r})),"string"==typeof e)?e.replace(S,(e,r)=>c(t[r])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,r,n){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=r,this.type=n,this.errors=[],this.inner=[],F(e).forEach(e=>{C.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,C)}}let k=e=>{let t=!1;return(...r)=>{t||(t=!0,e(...r))}};function A(e,t){let{endEarly:r,tests:n,args:o,value:i,errors:a,sort:s,path:u}=e,l=k(t),c=n.length,f=[];if(a=a||[],!c)return a.length?l(new C(a,i,u)):l(null,i);for(let e=0;e<n.length;e++)(0,n[e])(o,function(e){if(e){if(!C.isError(e))return l(e,i);if(r)return e.value=i,l(e,i);f.push(e)}if(--c<=0){if(f.length&&(s&&f.sort(s),a.length&&f.push(...a),a=f),a.length){l(new C(a,i,u),i);return}l(null,i)}})}var D=r(34519),R=r.n(D),N=r(17296);let j={context:"$",value:"."};function I(e,t){return new L(e,t)}class L{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw TypeError("ref must be a non-empty string");this.isContext=this.key[0]===j.context,this.isValue=this.key[0]===j.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?j.context:this.isValue?j.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&(0,N.getter)(this.path,!0),this.map=t.map}getValue(e,t,r){let n=this.isContext?r:this.isValue?e:t;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}function P(){return(P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function M(e){function t(t,r){let n,{value:o,path:i="",label:a,options:s,originalValue:u,sync:l}=t,c=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}(t,["value","path","label","options","originalValue","sync"]),{name:f,test:d,params:p,message:h}=e,{parent:m,context:v}=s;function y(e){return L.isRef(e)?e.getValue(o,m,v):e}function b(e={}){let t=R()(P({value:o,originalValue:u,label:a,path:e.path||i},p,e.params),y),r=new C(C.formatError(e.message||h,t),o,t.path,e.type||f);return r.params=t,r}let g=P({path:i,parent:m,type:f,createError:b,resolve:y,options:s,originalValue:u},c);if(!l){try{Promise.resolve(d.call(g,o,g)).then(e=>{C.isError(e)?r(e):e?r(null,e):r(b())}).catch(r)}catch(e){r(e)}return}try{var w;if(n=d.call(g,o,g),"function"==typeof(null==(w=n)?void 0:w.then))throw Error(`Validation test of type: "${g.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){r(e);return}C.isError(n)?r(n):n?r(null,n):r(b())}return t.OPTIONS=e,t}L.prototype.__isYupRef=!0;let $=e=>e.substr(0,e.length-1).substr(1);function z(e,t,r,n=r){let o,i,a;return t?((0,N.forEach)(t,(s,u,l)=>{let c=u?$(s):s;if((e=e.resolve({context:n,parent:o,value:r})).innerType){let n=l?parseInt(c,10):0;if(r&&n>=r.length)throw Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);o=r,r=r&&r[n],e=e.innerType}if(!l){if(!e.fields||!e.fields[c])throw Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e._type}")`);o=r,r=r&&r[c],e=e.fields[c]}i=c,a=u?"["+s+"]":"."+s}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}var U=(e,t,r,n)=>z(e,t,r,n).schema;class B{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){let e=[];for(let t of this.list)e.push(t);for(let[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((t,r)=>t.concat(L.isRef(r)?e(r):r),[])}add(e){L.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){L.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new B;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){let r=this.clone();return e.list.forEach(e=>r.add(e)),e.refs.forEach(e=>r.add(e)),t.list.forEach(e=>r.delete(e)),t.refs.forEach(e=>r.delete(e)),r}}function V(){return(V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}class H{constructor(e){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new B,this._blacklist=new B,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(f.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=V({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=V({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=n(V({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=e.clone(),r=V({},this.spec,t.spec);return t.spec=r,t._typeError||(t._typeError=this._typeError),t._whitelistError||(t._whitelistError=this._whitelistError),t._blacklistError||(t._blacklistError=this._blacklistError),t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.tests=this.tests,t.exclusiveTests=this.exclusiveTests,t.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),t.transforms=[...this.transforms,...t.transforms],t}isType(e){return!!this.spec.nullable&&null===e||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;(t=t.clone()).conditions=[],t=(t=r.reduce((t,r)=>r.resolve(t,e),t)).resolve(e)}return t}cast(e,t={}){let r=this.resolve(V({value:e},t)),n=r._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==r.isType(n)){let o=c(e),i=c(n);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r._type}".
2
+
3
+ attempted value: ${o}
4
+ `+(i!==o?`result of cast: ${i}`:""))}return n}_cast(e,t){let r=void 0===e?e:this.transforms.reduce((t,r)=>r.call(this,t,e,this),e);return void 0===r&&(r=this.getDefault()),r}_validate(e,t={},r){let{sync:n,path:o,from:i=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:u=this.spec.abortEarly}=t,l=e;s||(l=this._cast(l,V({assert:!1},t)));let c={value:l,path:o,options:t,originalValue:a,schema:this,label:this.spec.label,sync:n,from:i},f=[];this._typeError&&f.push(this._typeError);let d=[];this._whitelistError&&d.push(this._whitelistError),this._blacklistError&&d.push(this._blacklistError),A({args:c,value:l,path:o,sync:n,tests:f,endEarly:u},e=>{if(e)return void r(e,l);A({tests:this.tests.concat(d),args:c,path:o,sync:n,value:l,endEarly:u},r)})}validate(e,t,r){let n=this.resolve(V({},t,{value:e}));return"function"==typeof r?n._validate(e,t,r):new Promise((r,o)=>n._validate(e,t,(e,t)=>{e?o(e):r(t)}))}validateSync(e,t){let r;return this.resolve(V({},t,{value:e}))._validate(e,V({},t,{sync:!0}),(e,t)=>{if(e)throw e;r=t}),r}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(C.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(C.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):n(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0==arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=f.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=f.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=f.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let r=this.clone(),n=M(t),o=t.exclusive||t.name&&!0===r.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(e=>e.OPTIONS.name!==t.name||!o&&e.OPTIONS.test!==n.OPTIONS.test),r.tests.push(n),r}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let r=this.clone(),n=F(e).map(e=>new L(e));return n.forEach(e=>{e.isSibling&&r.deps.push(e.key)}),r.conditions.push(new _(n,t)),r}typeError(e){let t=this.clone();return t._typeError=M({message:e,name:"typeError",test(e){return!!(void 0===e||this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=f.oneOf){let r=this.clone();return e.forEach(e=>{r._whitelist.add(e),r._blacklist.delete(e)}),r._whitelistError=M({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,r=t.resolveAll(this.resolve);return!!r.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:r}})}}),r}notOneOf(e,t=f.notOneOf){let r=this.clone();return e.forEach(e=>{r._blacklist.add(e),r._whitelist.delete(e)}),r._blacklistError=M({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,r=t.resolveAll(this.resolve);return!r.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:r}})}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){let e=this.clone(),{label:t,meta:r}=e.spec;return{meta:r,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,r)=>r.findIndex(t=>t.name===e.name)===t)}}}for(let e of(H.prototype.__isYupSchema__=!0,["validate","validateSync"]))H.prototype[`${e}At`]=function(t,r,n={}){let{parent:o,parentPath:i,schema:a}=z(this,t,r,n.context);return a[e](o&&o[i],V({},n,{parent:o,path:t}))};for(let e of["equals","is"])H.prototype[e]=H.prototype.oneOf;for(let e of["not","nope"])H.prototype[e]=H.prototype.notOneOf;H.prototype.optional=H.prototype.notRequired;var W=H;function q(){return new H}q.prototype=H.prototype;var Y=e=>null==e;function K(){return new X}class X extends H{constructor(){super({type:"boolean"}),this.withMutation(()=>{this.transform(function(e){if(!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}_typeCheck(e){return e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e}isTrue(e=m.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>Y(e)||!0===e})}isFalse(e=m.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>Y(e)||!1===e})}}K.prototype=X.prototype;let Z=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,J=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,G=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Q=e=>Y(e)||e===e.trim(),ee=({}).toString();function et(){return new er}class er extends H{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e)||Array.isArray(e))return e;let t=null!=e&&e.toString?e.toString():e;return t===ee?e:t})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=d.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return Y(t)||t.length===this.resolve(e)}})}min(e,t=d.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return Y(t)||t.length>=this.resolve(e)}})}max(e,t=d.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return Y(t)||t.length<=this.resolve(e)}})}matches(e,t){let r,n,o=!1;return t&&("object"==typeof t?{excludeEmptyString:o=!1,message:r,name:n}=t:r=t),this.test({name:n||"matches",message:r||d.matches,params:{regex:e},test:t=>Y(t)||""===t&&o||-1!==t.search(e)})}email(e=d.email){return this.matches(Z,{name:"email",message:e,excludeEmptyString:!0})}url(e=d.url){return this.matches(J,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=d.uuid){return this.matches(G,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=d.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:Q})}lowercase(e=d.lowercase){return this.transform(e=>Y(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>Y(e)||e===e.toLowerCase()})}uppercase(e=d.uppercase){return this.transform(e=>Y(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>Y(e)||e===e.toUpperCase()})}}et.prototype=er.prototype;let en=e=>e!=+e;function eo(){return new ei}class ei extends H{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(e){let t=e;if("string"==typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)})})}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!en(e)}min(e,t=p.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return Y(t)||t>=this.resolve(e)}})}max(e,t=p.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return Y(t)||t<=this.resolve(e)}})}lessThan(e,t=p.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return Y(t)||t<this.resolve(e)}})}moreThan(e,t=p.moreThan){return this.test({message:t,name:"min",exclusive:!0,params:{more:e},test(t){return Y(t)||t>this.resolve(e)}})}positive(e=p.positive){return this.moreThan(0,e)}negative(e=p.negative){return this.lessThan(0,e)}integer(e=p.integer){return this.test({name:"integer",message:e,test:e=>Y(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>Y(e)?e:0|e)}round(e){var t;let r=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===r.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(t=>Y(t)?t:Math[e](t))}}eo.prototype=ei.prototype;var ea=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let es=new Date(""),eu=e=>"[object Date]"===Object.prototype.toString.call(e);function el(){return new ec}class ec extends H{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:isNaN(e=function(e){var t,r,n=[1,4,5,6,7,10,11],o=0;if(r=ea.exec(e)){for(var i,a=0;i=n[a];++a)r[i]=+r[i]||0;r[2]=(+r[2]||1)-1,r[3]=+r[3]||1,r[7]=r[7]?String(r[7]).substr(0,3):0,(void 0===r[8]||""===r[8])&&(void 0===r[9]||""===r[9])?t=+new Date(r[1],r[2],r[3],r[4],r[5],r[6],r[7]):("Z"!==r[8]&&void 0!==r[9]&&(o=60*r[10]+r[11],"+"===r[9]&&(o=0-o)),t=Date.UTC(r[1],r[2],r[3],r[4],r[5]+o,r[6],r[7]))}else t=Date.parse?Date.parse(e):NaN;return t}(e))?es:new Date(e)})})}_typeCheck(e){return eu(e)&&!isNaN(e.getTime())}prepareParam(e,t){let r;if(L.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,t=h.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return Y(e)||e>=this.resolve(r)}})}max(e,t=h.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return Y(e)||e<=this.resolve(r)}})}}ec.INVALID_DATE=es,el.prototype=ec.prototype,el.INVALID_DATE=es;var ef=r(57370),ed=r.n(ef),ep=r(96009),eh=r.n(ep),em=r(19950),ev=r.n(em),ey=r(95159),eb=r.n(ey);function eg(e,t){let r=1/0;return e.some((e,n)=>{var o;if((null==(o=t.path)?void 0:o.indexOf(e))!==-1)return r=n,!0}),r}function ew(e){return(t,r)=>eg(e,t)-eg(e,r)}function eE(){return(eE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let ex=e=>"[object Object]"===Object.prototype.toString.call(e),eT=ew([]);class e_ extends H{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=eT,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}),e&&this.shape(e)})}_typeCheck(e){return ex(e)||"function"==typeof e}_cast(e,t={}){var r;let n=super._cast(e,t);if(void 0===n)return this.getDefault();if(!this._typeCheck(n))return n;let o=this.fields,i=null!=(r=t.stripUnknown)?r:this.spec.noUnknown,a=this._nodes.concat(Object.keys(n).filter(e=>-1===this._nodes.indexOf(e))),s={},u=eE({},t,{parent:s,__validating:t.__validating||!1}),l=!1;for(let e of a){let r=o[e],a=x()(n,e);if(r){let o;let i=n[e];u.path=(t.path?`${t.path}.`:"")+e;let a="spec"in(r=r.resolve({value:i,context:t.context,parent:s}))?r.spec:void 0,c=null==a?void 0:a.strict;if(null==a?void 0:a.strip){l=l||e in n;continue}void 0!==(o=t.__validating&&c?n[e]:r.cast(n[e],u))&&(s[e]=o)}else a&&!i&&(s[e]=n[e]);s[e]!==n[e]&&(l=!0)}return l?s:n}_validate(e,t={},r){let n=[],{sync:o,from:i=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:u=this.spec.recursive}=t;i=[{schema:this,value:a},...i],t.__validating=!0,t.originalValue=a,t.from=i,super._validate(e,t,(e,l)=>{if(e){if(!C.isError(e)||s)return void r(e,l);n.push(e)}if(!u||!ex(l)){r(n[0]||null,l);return}a=a||l,A({sync:o,tests:this._nodes.map(e=>(r,n)=>{let o=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,s=this.fields[e];if(s&&"validate"in s){s.validate(l[e],eE({},t,{path:o,from:i,strict:!0,parent:l,originalValue:a[e]}),n);return}n(null)}),value:l,errors:n,endEarly:s,sort:this._sortErrors,path:t.path},r)})}clone(e){let t=super.clone(e);return t.fields=eE({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),r=t.fields;for(let[e,t]of Object.entries(this.fields)){let n=r[e];void 0===n?r[e]=t:n instanceof H&&t instanceof H&&(r[e]=t.concat(n))}return t.withMutation(()=>t.shape(r,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{let r=this.fields[t];e[t]="default"in r?r.getDefault():void 0}),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let r=this.clone(),n=Object.assign(r.fields,e);return r.fields=n,r._sortErrors=ew(Object.keys(n)),t.length&&(Array.isArray(t[0])||(t=[t]),r._excludedEdges=[...r._excludedEdges,...t]),r._nodes=function(e,t=[]){let r=[],n=new Set,o=new Set(t.map(([e,t])=>`${e}-${t}`));function i(e,t){let i=(0,N.split)(e)[0];n.add(i),o.has(`${t}-${i}`)||r.push([t,i])}for(let t in e)if(x()(e,t)){let r=e[t];n.add(t),L.isRef(r)&&r.isSibling?i(r.path,t):T(r)&&"deps"in r&&r.deps.forEach(e=>i(e,t))}return eb().array(Array.from(n),r).reverse()}(n,r._excludedEdges),r}pick(e){let t={};for(let r of e)this.fields[r]&&(t[r]=this.fields[r]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){let t=this.clone(),r=t.fields;for(let n of(t.fields={},e))delete r[n];return t.withMutation(()=>t.shape(r))}from(e,t,r){let n=(0,N.getter)(e,!0);return this.transform(o=>{if(null==o)return o;let i=o;return x()(o,e)&&(i=eE({},o),r||delete i[e],i[t]=n(o)),i})}noUnknown(e=!0,t=v.noUnknown){"string"==typeof e&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){let r;if(null==t)return!0;let n=(r=Object.keys(this.schema.fields),Object.keys(t).filter(e=>-1===r.indexOf(e)));return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=v.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&ev()(t,(t,r)=>e(r)))}camelCase(){return this.transformKeys(eh())}snakeCase(){return this.transformKeys(ed())}constantCase(){return this.transformKeys(e=>ed()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=R()(this.fields,e=>e.describe()),e}}function eF(e){return new e_(e)}function eO(){return(eO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function eS(e){return new eC(e)}eF.prototype=e_.prototype;class eC extends H{constructor(e){super({type:"array"}),this.innerType=void 0,this.innerType=e,this.withMutation(()=>{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null})})}_typeCheck(e){return Array.isArray(e)}get _subType(){return this.innerType}_cast(e,t){let r=super._cast(e,t);if(!this._typeCheck(r)||!this.innerType)return r;let n=!1,o=r.map((e,r)=>{let o=this.innerType.cast(e,eO({},t,{path:`${t.path||""}[${r}]`}));return o!==e&&(n=!0),o});return n?o:r}_validate(e,t={},r){var n,o;let i=[],a=t.sync,s=t.path,u=this.innerType,l=null!=(n=t.abortEarly)?n:this.spec.abortEarly,c=null!=(o=t.recursive)?o:this.spec.recursive,f=null!=t.originalValue?t.originalValue:e;super._validate(e,t,(e,n)=>{if(e){if(!C.isError(e)||l)return void r(e,n);i.push(e)}if(!c||!u||!this._typeCheck(n)){r(i[0]||null,n);return}f=f||n;let o=Array(n.length);for(let e=0;e<n.length;e++){let r=n[e],i=`${t.path||""}[${e}]`,a=eO({},t,{path:i,strict:!0,parent:n,index:e,originalValue:f[e]});o[e]=(e,t)=>u.validate(r,a,t)}A({sync:a,path:s,value:n,errors:i,endEarly:l,tests:o},r)})}clone(e){let t=super.clone(e);return t.innerType=this.innerType,t}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!T(e))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+c(e));return t.innerType=e,t}length(e,t=y.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return Y(t)||t.length===this.resolve(e)}})}min(e,t){return t=t||y.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return Y(t)||t.length>=this.resolve(e)}})}max(e,t){return t=t||y.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return Y(t)||t.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t))}compact(e){let t=e?(t,r,n)=>!e(t,r,n):e=>!!e;return this.transform(e=>null!=e?e.filter(t):e)}describe(){let e=super.describe();return this.innerType&&(e.innerType=this.innerType.describe()),e}nullable(e=!0){return super.nullable(e)}defined(){return super.defined()}required(e){return super.required(e)}}function ek(e){return new eA(e)}eS.prototype=eC.prototype;class eA{constructor(e){this.type="lazy",this.__isYupSchema__=!0,this.__inputType=void 0,this.__outputType=void 0,this._resolve=(e,t={})=>{let r=this.builder(e,t);if(!T(r))throw TypeError("lazy() functions must return a valid schema");return r.resolve(t)},this.builder=e}resolve(e){return this._resolve(e.value,e)}cast(e,t){return this._resolve(e,t).cast(e,t)}validate(e,t,r){return this._resolve(e,t).validate(e,t,r)}validateSync(e,t){return this._resolve(e,t).validateSync(e,t)}validateAt(e,t,r){return this._resolve(t,r).validateAt(e,t,r)}validateSyncAt(e,t,r){return this._resolve(t,r).validateSyncAt(e,t,r)}describe(){return null}isValid(e,t){return this._resolve(e,t).isValid(e,t)}isValidSync(e,t){return this._resolve(e,t).isValidSync(e,t)}}function eD(e){Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(r=>{w[t][r]=e[t][r]})})}function eR(e,t,r){if(!e||!T(e.prototype))throw TypeError("You must provide a yup schema constructor function");if("string"!=typeof t)throw TypeError("A Method name must be provided");if("function"!=typeof r)throw TypeError("Method function must be provided");e.prototype[t]=r}},17998:function(e,t,r){"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{M:function(){return n}})},92211:function(e,t,r){"use strict";r.d(t,{b:function(){return i}});var n=r(2784),o=r(52322);function i(e,t=[]){let r=[],i=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(t,i){let a=n.createContext(i),s=r.length;r=[...r,i];let u=t=>{let{scope:r,children:i,...u}=t,l=r?.[e]?.[s]||a,c=n.useMemo(()=>u,Object.values(u));return(0,o.jsx)(l.Provider,{value:c,children:i})};return u.displayName=t+"Provider",[u,function(r,o){let u=o?.[e]?.[s]||a,l=n.useContext(u);if(l)return l;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(i,...t)]}},79616:function(e,t,r){"use strict";r.d(t,{z:function(){return a}});var n=r(2784),o=r(62656),i=r(61644),a=e=>{let t,r;let{present:a,children:u}=e,l=function(e){var t,r;let[o,a]=n.useState(),u=n.useRef(null),l=n.useRef(e),c=n.useRef("none"),[f,d]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>r[e][t]??e,t));return n.useEffect(()=>{let e=s(u.current);c.current="mounted"===f?e:"none"},[f]),(0,i.b)(()=>{let t=u.current,r=l.current;if(r!==e){let n=c.current,o=s(t);e?d("MOUNT"):"none"===o||t?.display==="none"?d("UNMOUNT"):r&&n!==o?d("ANIMATION_OUT"):d("UNMOUNT"),l.current=e}},[e,d]),(0,i.b)(()=>{if(o){let e;let t=o.ownerDocument.defaultView??window,r=r=>{let n=s(u.current).includes(r.animationName);if(r.target===o&&n&&(d("ANIMATION_END"),!l.current)){let r=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=r)})}},n=e=>{e.target===o&&(c.current=s(u.current))};return o.addEventListener("animationstart",n),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",n),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}d("ANIMATION_END")},[o,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:n.useCallback(e=>{u.current=e?getComputedStyle(e):null,a(e)},[])}}(a),c="function"==typeof u?u({present:l.isPresent}):n.Children.only(u),f=(0,o.e)(l.ref,(t=Object.getOwnPropertyDescriptor(c.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?c.ref:(t=Object.getOwnPropertyDescriptor(c,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?c.props.ref:c.props.ref||c.ref);return"function"==typeof u||l.isPresent?n.cloneElement(c,{ref:f}):null};function s(e){return e?.animationName||"none"}a.displayName="Presence"},27757:function(e,t,r){"use strict";r.d(t,{W:function(){return o}});var n=r(2784);function o(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},87695:function(e,t,r){"use strict";r.d(t,{T:function(){return s}});var n,o=r(2784),i=r(61644),a=(n||(n=r.t(o,2)))[" useInsertionEffect ".trim().toString()]||i.b;function s({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[i,s,u]=function({defaultProp:e,onChange:t}){let[r,n]=o.useState(e),i=o.useRef(r),s=o.useRef(t);return a(()=>{s.current=t},[t]),o.useEffect(()=>{i.current!==r&&(s.current?.(r),i.current=r)},[r,i]),[r,n,s]}({defaultProp:t,onChange:r}),l=void 0!==e,c=l?e:i;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,n])}return[c,o.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&u.current?.(r)}else s(t)},[l,e,s,u])]}Symbol("RADIX:SYNC_STATE")},61644:function(e,t,r){"use strict";r.d(t,{b:function(){return o}});var n=r(2784),o=globalThis?.document?n.useLayoutEffect:()=>{}},5446:function(e,t,r){"use strict";r.d(t,{v2:function(){return ew},j2:function(){return eE},sN:function(){return eT},qy:function(){return eF}});var n,o=r(2784),i=r.t(o,2);function a(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}function s(e,t){return r=>{if(e&&e(r),!r.defaultPrevented)return t(r)}}function u(e){return"boolean"==typeof e}function l(e){return!!(e&&"[object Function]"==({}).toString.call(e))}function c(...e){return(0,o.useCallback)(t=>{for(let r of e)!function(e,t){if(null!=e){if(l(e))e(t);else try{e.current=t}catch(r){throw Error(`Cannot assign value "${t}" to ref "${e}"`)}}}(r,t)},e)}function f(e){return a()?e?e.ownerDocument:document:null}function d(e){return"which"in e?3===e.which:"button"in e&&2===e.button}function p(...e){return e.filter(e=>null!=e).join("--")}function h(){}function m(){let[,e]=(0,o.useState)(Object.create(null));return(0,o.useCallback)(()=>{e(Object.create(null))},[])}var v=a()?o.useLayoutEffect:o.useEffect;function y(e){let t=(0,o.useRef)(null);return(0,o.useEffect)(()=>{t.current=e},[e]),t.current}var b=r(28316),g=({children:e,type:t="reach-portal",containerRef:r})=>{let n=o.useRef(null),i=o.useRef(null),a=m();return o.useEffect(()=>{null!=r&&("object"==typeof r&&"current"in r?null==r.current&&console.warn("@reach/portal: A ref was passed to the `containerRef` prop of a `Portal`, but no DOM node was attached to it. Be sure to pass the ref to a DOM component.\n\nIf you are forwarding the ref from another component, be sure to use the React.forwardRef API. See https://reactjs.org/docs/forwarding-refs.html."):console.warn("@reach/portal: Invalid value passed to the `containerRef` of a `Portal`. The portal will be appended to the document body, but if you want to attach it to another DOM node you must pass a valid React ref object to `containerRef`."))},[r]),v(()=>{if(!n.current)return;let e=n.current.ownerDocument,o=r?.current||e.body;return i.current=e?.createElement(t),o.appendChild(i.current),a(),()=>{i.current&&o&&o.removeChild(i.current)}},[t,a,r]),i.current?(0,b.createPortal)(e,i.current):o.createElement("span",{ref:n})},w=({unstable_skipInitialRender:e,...t})=>{let[r,n]=o.useState(!1);return(o.useEffect(()=>{e&&n(!0)},[e]),e&&!r)?null:o.createElement(g,{...t})};w.displayName="Portal";var E=["bottom","height","left","right","top","width"],x=new Map,T=function e(){var t=[];x.forEach(function(e,r){var n,o,i=r.getBoundingClientRect();n=i,o=e.rect,void 0===n&&(n={}),void 0===o&&(o={}),E.some(function(e){return n[e]!==o[e]})&&(e.rect=i,t.push(e))}),t.forEach(function(e){e.callbacks.forEach(function(t){return t(e.rect)})}),n=window.requestAnimationFrame(e)};function _(e,t,r){let i,a;u(t)?i=t:(i=t?.observe??!0,a=t?.onChange),l(r)&&(a=r),o.useEffect(()=>{u(t)&&console.warn("Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\nSee https://reach.tech/rect#userect-observe")},[t]),o.useEffect(()=>{l(r)&&console.warn("Passing `onChange` as the third argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `onChange` property as the second argument (`useRect(ref, { onChange })`).\nSee https://reach.tech/rect#userect-onchange")},[r]);let[s,c]=o.useState(e.current),f=o.useRef(!1),d=o.useRef(!1),[p,h]=o.useState(null),m=o.useRef(a);return v(()=>{m.current=a,e.current!==s&&c(e.current)}),v(()=>{s&&!f.current&&(f.current=!0,h(s.getBoundingClientRect()))},[s]),v(()=>{var t,r;if(!i)return;let o=s;if(d.current||(d.current=!0,o=e.current),!o){console.warn("You need to place the ref");return}let a=(t=o,r=e=>{m.current?.(e),h(e)},{observe:function(){var e=0===x.size;x.has(t)?x.get(t).callbacks.push(r):x.set(t,{rect:void 0,hasRectChanged:!1,callbacks:[r]}),e&&T()},unobserve:function(){var e=x.get(t);if(e){var o=e.callbacks.indexOf(r);o>=0&&e.callbacks.splice(o,1),e.callbacks.length||x.delete(t),x.size||cancelAnimationFrame(n)}}});return a.observe(),()=>{a.unobserve()}},[i,s,e]),p}var F='input,select,textarea,a[href],button,[tabindex]:not(slot),audio[controls],video[controls],[contenteditable]:not([contenteditable="false"]),details>summary:first-of-type,details',O="undefined"==typeof Element,S=O?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,C=!O&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},k=function(e,t,r){var n=Array.prototype.slice.apply(e.querySelectorAll(F));return t&&S.call(e,F)&&n.unshift(e),n=n.filter(r)},A=function e(t,r,n){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if("SLOT"===a.tagName){var s=a.assignedElements(),u=e(s.length?s:a.children,!0,n);n.flatten?o.push.apply(o,u):o.push({scope:a,candidates:u})}else{S.call(a,F)&&n.filter(a)&&(r||!t.includes(a))&&o.push(a);var l=a.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(a),c=!n.shadowRootFilter||n.shadowRootFilter(a);if(l&&c){var f=e(!0===l?a.children:l.children,!0,n);n.flatten?o.push.apply(o,f):o.push({scope:a,candidates:f})}else i.unshift.apply(i,a.children)}}return o},D=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},R=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},N=function(e){return"INPUT"===e.tagName},j=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},I=function(e){if(!e.name)return!0;var t,r=e.form||C(e),n=function(e){return r.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=n(window.CSS.escape(e.name));else try{t=n(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=j(t,e.form);return!o||o===e},L=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return 0===r&&0===n},P=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=S.call(e,"details>summary:first-of-type")?e.parentElement:e;if(S.call(o,"details:not([open]) *"))return!0;var i=C(e).host,a=(null==i?void 0:i.ownerDocument.contains(i))||e.ownerDocument.contains(e);if(r&&"full"!==r){if("non-zero-area"===r)return L(e)}else{if("function"==typeof n){for(var s=e;e;){var u=e.parentElement,l=C(e);if(u&&!u.shadowRoot&&!0===n(u))return L(e);e=e.assignedSlot?e.assignedSlot:u||l===e.ownerDocument?u:l.host}e=s}if(a)return!e.getClientRects().length}return!1},M=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if("LEGEND"===n.tagName)return!!S.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1},$=function(e,t){var r,n,o;return!(N(r=t)&&"radio"===r.type&&!I(r)||0>D(t))&&(n=e,!((o=t).disabled||N(o)&&"hidden"===o.type||P(o,n)||"DETAILS"===o.tagName&&Array.prototype.slice.apply(o.children).some(function(e){return"SUMMARY"===e.tagName})||M(o)))},z=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},U=function e(t){var r=[],n=[];return t.forEach(function(t,o){var i=!!t.scope,a=i?t.scope:t,s=D(a,i),u=i?e(t.candidates):a;0===s?i?r.push.apply(r,u):r.push(a):n.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:u})}),n.sort(R).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(r)},B=function(e,t){return U((t=t||{}).getShadowRoot?A([e],t.includeContainer,{filter:$.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:z}):k(e,t.includeContainer,$.bind(null,t)))},V=o.forwardRef(function({unstable_skipInitialPortalRender:e,...t},r){return o.createElement(w,{unstable_skipInitialRender:e},o.createElement(H,{ref:r,...t}))});V.displayName="Popover";var H=o.forwardRef(function({as:e="div",targetRef:t,position:r=W,unstable_observableRefs:n=[],...i},a){let s=o.useRef(null),u=_(s,{observe:!i.hidden}),l=_(t,{observe:!0}),d=c(s,a);return function(e,t){let r=f(e.current);function n(n){("Tab"!==n.key||!t.current||0!==B(t.current).length)&&("Tab"===n.key&&n.shiftKey?function(e){if(!e.shiftKey)return;let t=i();return e.target===t}(n)?function(e){let r=t.current&&B(t.current),n=r&&r[r.length-1];n&&(e.preventDefault(),n.focus())}(n):function(e){let r=t.current&&B(t.current);return!!r&&0!==r.length&&e.target===r[0]}(n)?(n.preventDefault(),e.current?.focus()):n.target===B(r)[0]&&s():"Tab"===n.key&&(e.current&&e.current===r.activeElement?function(e){let r=t.current&&B(t.current);r&&r[0]&&(e.preventDefault(),r[0].focus())}(n):function(){if(t.current&&t.current.contains(r.activeElement||null)){let e=t.current&&B(t.current);return!!(e&&e[e.length-1]===r.activeElement)}return!1}()?function(e){let t=i();t&&(e.preventDefault(),t.focus())}(n):function(e){let n=t.current?B(r).filter(e=>!t.current.contains(e)):null;return!!n&&e.target===n[n.length-1]}(n)&&s()))}function i(){let n=B(r),o=n&&e.current?n.indexOf(e.current):-1,i=n&&n[o+1];return!(t.current&&t.current.contains(i||null))&&i}o.useEffect(()=>(r.addEventListener("keydown",n),()=>{r.removeEventListener("keydown",n)}),[]);let a=[];function s(){let e=t.current&&B(t.current);e&&(e.forEach(e=>{a.push([e,e.tabIndex]),e.tabIndex=-1}),r.addEventListener("focusin",u))}function u(){r.removeEventListener("focusin",u),a.forEach(([e,t])=>{e.tabIndex=t})}}(t,s),o.createElement(e,{"data-reach-popover":"",ref:d,...i,style:{position:"absolute",...function(e,t,r,...n){return r?e(t,r,...n.map(e=>e.current)):{visibility:"hidden"}}(r,l,u,...n),...i.style}})});H.displayName="PopoverImpl";var W=(e,t)=>{if(!e||!t)return{};let{directionRight:r,directionUp:n}=function(e,t,r=0,n=0){let o={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-r,bottom:window.innerHeight<e.bottom+t.height-n,left:e.left+e.width-t.width<0},i=o.right&&!o.left;return{directionRight:i,directionLeft:o.left&&!o.right,directionUp:o.bottom&&!o.top,directionDown:o.top&&!o.bottom}}(e,t);return{left:r?`${e.right-t.width+window.pageXOffset}px`:`${e.left+window.pageXOffset}px`,top:n?`${e.top-t.height+window.pageYOffset}px`:`${e.top+e.height+window.pageYOffset}px`}},q=!1,Y=0,K=i["useId".toString()];function X({context:e,children:t,items:r,set:n}){let i=o.useCallback(({element:e,index:t,...r})=>e?(n(n=>{if(null!=t&&-1!==t)return J(n,{element:e,index:t,...r},t);if(0===n.length)return[{...r,element:e,index:0}];if(n.find(t=>t.element===e))return console.warn("[reach-ui]: `useDescendant` was called with an element that was already registered.\n\nIf you are using the `@reach/descendants` package directly, make sure to only register descendants once. Registering a descendant more than once will lead to bugs in your app.\n\nIf you are using another `reach-ui` package, this is probably our bug!\n\nTo report a bug, open a new issue:\n\n https://github.com/reach/reach-ui/issues/new?assignees=&labels=&template=Bug_report.md\n\nIMPORTANT: this check will only run in the development build, so if you see this warning please be aware that your app may crash when deployed."),n.sort((e,t)=>e.element&&t.element?Z(e.element,t.element)?-1:1:0).map((e,t)=>({...e,index:t}));let o=function(e,t){if(!t||!e.length)return -1;let r=e.length;for(;r--;){let n=e[r].element;if(n&&Z(n,t))return r+1}return -1}(n,e);return -1===o?[...n,{...r,element:e,index:n.length}]:J(n,{...r,element:e,index:o},o)}),()=>{e&&n(t=>t.filter(t=>e!==t.element))}):h,[]);return o.createElement(e.Provider,{value:o.useMemo(()=>({descendants:r,registerDescendant:i}),[r,i])},t)}function Z(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function J(e,t,r){return null!=r&&r in e?[...e.slice(0,r),t,...e.slice(r)]:[...e,t]}var G="CLEAR_SELECTION_INDEX",Q="CLICK_MENU_ITEM",ee="CLOSE_MENU",et="OPEN_MENU_AT_INDEX",er="OPEN_MENU_CLEARED",en="SEARCH_FOR_ITEM",eo="SELECT_ITEM_AT_INDEX",ei="SET_BUTTON_ID",ea=function(e,t={}){let r=o.createContext({descendants:[],registerDescendant:()=>h,...t});return r.displayName=e,r}("DropdownDescendantContext"),[es,eu]=function(e,t){let r=o.createContext(void 0);function n(e){let{children:t,...n}=e,i=o.useMemo(()=>n,Object.values(n));return o.createElement(r.Provider,{value:i},t)}return r.displayName=`${e}Context`,n.displayName=`${e}Provider`,[n,function(t){let n=o.useContext(r);if(n)return n;throw Error(`${t} must be rendered inside of a ${e} component.`)}]}("Dropdown"),el={triggerId:null,isExpanded:!1,typeaheadQuery:"",selectionIndex:-1},ec=({id:e,children:t})=>{let r=o.useRef(null),n=o.useRef(null),i=o.useRef(null),[a,s]=o.useState([]),u=function(e){if(void 0!==K){let t=K();return e??t}let t=e??(q?++Y:null),[r,n]=o.useState(t);return v(()=>{null===r&&n(++Y)},[]),o.useEffect(()=>{!1===q&&(q=!0)},[]),e??r??void 0}(e),c=e||p("menu",u),f=p("menu-button",c),[d,h]=o.useReducer(ey,{...el,triggerId:f}),m=o.useRef(!1),y=o.useRef([]),b=o.useRef(!1),g=o.useRef({x:0,y:0});return o.useEffect(()=>{d.isExpanded?(window.__REACH_DISABLE_TOOLTIPS=!0,window.requestAnimationFrame(()=>{ev(n.current)})):window.__REACH_DISABLE_TOOLTIPS=!1},[d.isExpanded]),o.createElement(X,{context:ea,items:a,set:s},o.createElement(es,{dispatch:h,dropdownId:c,dropdownRef:n,mouseDownStartPosRef:g,popoverRef:i,readyToSelect:b,selectCallbacks:y,state:d,triggerClickedRef:m,triggerRef:r},l(t)?t({isExpanded:d.isExpanded,isOpen:d.isExpanded}):t))};function ef({onKeyDown:e,onMouseDown:t,id:r,ref:n,...i}){let{dispatch:a,dropdownId:u,mouseDownStartPosRef:l,triggerClickedRef:f,triggerRef:h,state:{triggerId:m,isExpanded:v}}=eu("useDropdownTrigger"),y=c(h,n),b=eb(),g=o.useMemo(()=>b.findIndex(e=>!e.disabled),[b]);return o.useEffect(()=>{null!=r&&r!==m&&a({type:ei,payload:r})},[m,a,r]),o.useEffect(()=>{null==r&&a({type:ei,payload:p("menu-button",u)})},[u,a,r]),{data:{isExpanded:v,controls:u},props:{...i,ref:y,id:m||void 0,onKeyDown:s(e,function(e){switch(e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),a({type:et,payload:{index:g}});break;case"Enter":case" ":a({type:et,payload:{index:g}})}}),onMouseDown:s(t,function(e){d(e.nativeEvent)||(l.current={x:e.clientX,y:e.clientY},v||(f.current=!0),v?a({type:ee}):a({type:er}))}),type:"button"}}}function ed({index:e,isLink:t=!1,onClick:r,onDragStart:n,onMouseDown:i,onMouseEnter:a,onMouseLeave:u,onMouseMove:l,onMouseUp:p,onSelect:h,disabled:y,onFocus:b,valueText:g,ref:w,...E}){let{dispatch:x,dropdownRef:T,mouseDownStartPosRef:_,readyToSelect:F,selectCallbacks:O,triggerRef:S,state:{selectionIndex:C,isExpanded:k}}=eu("useDropdownItem"),A=o.useRef(null),[D,R]=o.useState(g||""),N=o.useCallback(e=>{!g&&e?.textContent&&R(e.textContent)},[g]),j=o.useRef(!1),[I,L]=function(e,t){let[r,n]=(0,o.useState)(null);return[r,(0,o.useCallback)(t=>{e.current=t,n(t)},[])]}(A,0),P=function(e,t,r){let n=m(),{registerDescendant:i,descendants:a}=o.useContext(t),s=r??a.findIndex(t=>t.element===e.element);return v(()=>(e.element||n(),i({...e,index:s})),[e,n,s,i,...Object.values(e)]),s}(o.useMemo(()=>({element:I,key:D,disabled:y,isLink:t}),[y,I,t,D]),ea,e),M=P===C&&!y,$=c(w,L,N);function z(){ev(S.current),h&&h(),x({type:Q})}return O.current[P]=h,o.useEffect(()=>{if(k){let e=window.setTimeout(()=>{F.current=!0},400);return()=>{window.clearTimeout(e)}}F.current=!1},[k,F]),o.useEffect(()=>{let e=f(A.current);return e.addEventListener("mouseup",t),()=>{e.removeEventListener("mouseup",t)};function t(){j.current=!1}},[]),{data:{disabled:y},props:{id:em(P),tabIndex:-1,...E,ref:$,"data-disabled":y?"":void 0,"data-selected":M?"":void 0,"data-valuetext":D,onClick:s(r,function(e){!d(e.nativeEvent)&&t&&(y?e.preventDefault():z())}),onDragStart:s(n,function(e){t&&e.preventDefault()}),onMouseDown:s(i,function(e){d(e.nativeEvent)||(t?j.current=!0:e.preventDefault())}),onMouseEnter:s(a,function(e){let t=f(T.current);M||null==P||y||(T?.current&&T.current!==t.activeElement&&A.current!==t.activeElement&&T.current.focus(),x({type:eo,payload:{index:P}}))}),onMouseLeave:s(u,function(e){x({type:G})}),onMouseMove:s(l,function(e){if(!F.current){let t=Math.abs(e.clientX-_.current.x),r=Math.abs(e.clientY-_.current.y);(t>8||r>8)&&(F.current=!0)}M||null==P||y||x({type:eo,payload:{index:P,dropdownRef:T}})}),onFocus:s(b,function(){F.current=!0,M||null==P||y||x({type:eo,payload:{index:P}})}),onMouseUp:s(p,function(e){if(!d(e.nativeEvent)){if(!F.current){F.current=!0;return}t?j.current?j.current=!1:A.current&&A.current.click():y||z()}})}}}function ep({id:e,onKeyDown:t,ref:r,...n}){let{dispatch:i,triggerRef:a,dropdownRef:u,selectCallbacks:l,dropdownId:f,state:{isExpanded:d,triggerId:p,selectionIndex:h,typeaheadQuery:m}}=eu("useDropdownItems"),v=eb(),b=c(u,r);o.useEffect(()=>{let e=function(e,t=""){if(!t)return null;let r=e.find(e=>!e.disabled&&e.element?.dataset?.valuetext?.toLowerCase().startsWith(t));return r?e.indexOf(r):null}(v,m);m&&null!=e&&i({type:eo,payload:{index:e,dropdownRef:u}});let t=window.setTimeout(()=>m&&i({type:en,payload:""}),1e3);return()=>window.clearTimeout(t)},[i,v,m,u]);let g=y(v.length),w=y(v[h]),E=y(h);o.useEffect(()=>{h>v.length-1?i({type:eo,payload:{index:v.length-1,dropdownRef:u}}):g!==v.length&&h>-1&&w&&E===h&&v[h]!==w&&i({type:eo,payload:{index:v.findIndex(e=>e.key===w?.key),dropdownRef:u}})},[u,i,v,g,w,E,h]);let x=s(function(e){let{key:t}=e;if(d)switch(t){case"Enter":case" ":let r=v.find(e=>e.index===h);r&&!r.disabled&&(e.preventDefault(),r.isLink&&r.element?r.element.click():(ev(a.current),l.current[r.index]&&l.current[r.index](),i({type:Q})));break;case"Escape":ev(a.current),i({type:ee});break;case"Tab":e.preventDefault();break;default:"string"==typeof t&&1===t.length&&i({type:en,payload:m+t.toLowerCase()})}},function(e,t){let{descendants:r}=o.useContext(e),{callback:n,currentIndex:i,filter:a,key:s="index",orientation:u="vertical",rotate:l=!0,rtl:c=!1}=t;return function(e){if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(e.key))return;let t=i??-1,o=a?r.filter(a):r;if(!o.length)return;let f=o.findIndex(e=>e.index===i);function d(){return t===h().index?l?o[0]:o[f]:o[(f+1)%o.length]}function p(){return t===o[0].index?l?h():o[f]:o[(f-1+o.length)%o.length]}function h(){return o[o.length-1]}switch(e.key){case"ArrowDown":if("vertical"===u||"both"===u){e.preventDefault();let t=d();n("option"===s?t:t[s])}break;case"ArrowUp":if("vertical"===u||"both"===u){e.preventDefault();let t=p();n("option"===s?t:t[s])}break;case"ArrowLeft":if("horizontal"===u||"both"===u){e.preventDefault();let t=(c?d:p)();n("option"===s?t:t[s])}break;case"ArrowRight":if("horizontal"===u||"both"===u){e.preventDefault();let t=(c?p:d)();n("option"===s?t:t[s])}break;case"PageUp":e.preventDefault();let m=(e.ctrlKey?p:function(){return o[0]})();n("option"===s?m:m[s]);break;case"Home":e.preventDefault();let v=o[0];n("option"===s?v:v[s]);break;case"PageDown":e.preventDefault();let y=(e.ctrlKey?d:h)();n("option"===s?y:y[s]);break;case"End":e.preventDefault();let b=h();n("option"===s?b:b[s])}}}(ea,{currentIndex:h,orientation:"vertical",rotate:!1,filter:e=>!e.disabled,callback:e=>{i({type:eo,payload:{index:e,dropdownRef:u}})},key:"index"}));return{data:{activeDescendant:em(h)||void 0,triggerId:p},props:{tabIndex:-1,...n,ref:b,id:f,onKeyDown:s(t,x)}}}function eh({onBlur:e,portal:t=!0,position:r,ref:n,...i}){let{triggerRef:a,triggerClickedRef:u,dispatch:l,dropdownRef:d,popoverRef:p,state:{isExpanded:h}}=eu("useDropdownPopover"),m=c(p,n);return o.useEffect(()=>{if(!h)return;let e=f(p.current);function t(e){var t,r;u.current?u.current=!1:(t=p.current,r=e.target,!(t&&t.contains(r))&&l({type:ee}))}return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}},[u,a,l,d,p,h]),{data:{portal:t,position:r,targetRef:a,isExpanded:h},props:{ref:m,hidden:!h,onBlur:s(e,e=>{e.currentTarget.contains(e.relatedTarget)||l({type:ee})}),...i}}}function em(e){let{dropdownId:t}=eu("useItemId");return null!=e&&e>-1?p(`option-${e}`,t):void 0}function ev(e){e&&e.focus()}function ey(e,t={}){switch(t.type){case Q:case ee:return{...e,isExpanded:!1,selectionIndex:-1};case"OPEN_MENU_AT_FIRST_ITEM":return{...e,isExpanded:!0,selectionIndex:0};case et:return{...e,isExpanded:!0,selectionIndex:t.payload.index};case er:return{...e,isExpanded:!0,selectionIndex:-1};case eo:{let{dropdownRef:r={current:null}}=t.payload;if(t.payload.index>=0&&t.payload.index!==e.selectionIndex){if(r.current){let e=f(r.current);r.current!==e?.activeElement&&r.current.focus()}return{...e,selectionIndex:null!=t.payload.max?Math.min(Math.max(t.payload.index,0),t.payload.max):Math.max(t.payload.index,0)}}return e}case G:return{...e,selectionIndex:-1};case ei:return{...e,triggerId:t.payload};case en:if(void 0!==t.payload)return{...e,typeaheadQuery:t.payload};return e;default:return e}}function eb(){return o.useContext(ea).descendants}ec.displayName="DropdownProvider",o.forwardRef(({as:e="button",...t},r)=>{let{props:n}=ef({...t,ref:r});return o.createElement(e,{"data-reach-dropdown-trigger":"",...n})}).displayName="DropdownTrigger",o.forwardRef(({as:e="div",...t},r)=>{let{props:n}=ed({...t,ref:r});return o.createElement(e,{"data-reach-dropdown-item":"",...n})}).displayName="DropdownItem",o.forwardRef(({as:e="div",...t},r)=>{let{props:n}=ep({...t,ref:r});return o.createElement(e,{"data-reach-dropdown-items":"",...n})}).displayName="DropdownItems",o.forwardRef(({as:e="div",...t},r)=>{let{data:{portal:n,targetRef:i,position:a},props:s}=eh({...t,ref:r}),u={"data-reach-dropdown-popover":""};return n?o.createElement(V,{...s,...u,as:e,targetRef:i,position:a,unstable_skipInitialPortalRender:!0}):o.createElement(e,{...s,...u})}).displayName="DropdownPopover";var eg=r(48570),ew=o.forwardRef(({as:e=o.Fragment,id:t,children:r,...n},i)=>{let a=o.useMemo(()=>{try{return(0,eg.isFragment)(o.createElement(e,null))}catch(e){return!1}},[e])?{}:{ref:i,id:t,"data-reach-menu":"",...n};return o.createElement(e,{...a},o.createElement(ec,{id:t,children:r}))});ew.displayName="Menu";var eE=o.forwardRef(({as:e="button",...t},r)=>{let{data:{isExpanded:n,controls:i},props:a}=ef({...t,ref:r});return o.createElement(e,{"aria-expanded":!!n||void 0,"aria-haspopup":!0,"aria-controls":i,...a,"data-reach-menu-button":""})});eE.displayName="MenuButton";var ex=o.forwardRef(({as:e="div",...t},r)=>{let{data:{disabled:n},props:i}=ed({...t,ref:r});return o.createElement(e,{role:"menuitem",...i,"aria-disabled":n||void 0,"data-reach-menu-item":""})});ex.displayName="MenuItemImpl";var eT=o.forwardRef(({as:e="div",...t},r)=>o.createElement(ex,{...t,ref:r,as:e}));eT.displayName="MenuItem";var e_=o.forwardRef(({as:e="div",...t},r)=>{let{data:{activeDescendant:n,triggerId:i},props:a}=ep({...t,ref:r});return o.createElement(e,{"aria-activedescendant":n,"aria-labelledby":i||void 0,role:"menu",...a,"data-reach-menu-items":""})});e_.displayName="MenuItems",o.forwardRef(({as:e="a",component:t,onSelect:r,...n},i)=>(o.useEffect(()=>{t&&console.warn("[@reach/menu-button]: Please use the `as` prop instead of `component`")},[t]),o.createElement(ex,{...n,ref:i,"data-reach-menu-link":"",as:e,isLink:!0,onSelect:r||h}))).displayName="MenuLink";var eF=o.forwardRef(({portal:e=!0,...t},r)=>o.createElement(eO,{portal:e},o.createElement(e_,{...t,ref:r,"data-reach-menu-list":""})));eF.displayName="MenuList";var eO=o.forwardRef(({as:e="div",...t},r)=>{let{data:{portal:n,targetRef:i,position:a},props:s}=eh({...t,ref:r}),u={"data-reach-menu-popover":""};return n?o.createElement(V,{...s,...u,as:e,targetRef:i,position:a,unstable_skipInitialPortalRender:!0}):o.createElement(e,{...s,...u})});eO.displayName="MenuPopover"}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[34],{62434:function(e,t,n){"use strict";n.d(t,{Zb:function(){return c},T$:function(){return m},eW:function(){return _},ZB:function(){return u},Lm:function(){return C}});var o=n(52322),r=n(50002),i=n(14226),a=n(6277),l=n(2784),d=n(67968),s=n.n(d);let c=e=>{let{checked:t=!1,size:n="medium",variant:i="solid",interactive:d,disabled:c,onClick:u,href:m,component:_="a",replace:C,...h}=e,x={...h,className:(0,a.W)(s().root,s()["size-".concat(n)],s()[i],{[s().interactive]:e.interactive}),"data-state":!0===t?"checked":void 0,"data-disabled":!0===e.disabled?"":void 0};return!0===e.interactive&&void 0===e.href?(0,o.jsx)("div",{...x,onClick:t=>{if(!0===e.disabled||void 0===e.onClick)return;let n=t.target;(0,r.JY)(n)===t.currentTarget&&e.onClick(t)},tabIndex:!0===e.disabled?void 0:0}):!0===e.interactive?(0,l.createElement)(_,{...x,href:e.href,onClick:e=>{let t=e.target;(0,r.JY)(t)!==e.currentTarget&&e.preventDefault()},..."a"===_?{}:{replace:e.replace}}):(0,o.jsx)("div",{...x})},u=e=>{let{className:t,component:n="img",overlay:r,...i}=e;return(0,o.jsxs)("div",{className:s().media,children:[(0,l.createElement)(n,{...i,className:(0,a.W)(s()["mediaComponent-".concat(n)],t)}),r?(0,o.jsx)("div",{className:s().mediaOverlay,children:r}):void 0]})},m=e=>(0,o.jsx)("div",{...e,className:s().actions}),_=e=>{let{action:t,loading:n=!1,startIcon:r,subtitle:a,title:l,error:d=!1,...c}=e,u=d?"tomato11":"grey11";return(0,o.jsxs)("div",{...c,className:s().footer,children:[(r||n)&&(0,o.jsxs)("div",{className:s().startIconBox,children:[n&&(0,o.jsx)(i.bg,{color:"grey11"}),!n&&r&&(0,o.jsx)(i.aX,{name:r,size:"small",color:u})]}),(0,o.jsxs)("div",{className:s().footerTexts,children:[(0,o.jsx)(i.bL,{component:"span",noWrap:!0,variant:"bold",children:l}),(0,o.jsx)(i.bL,{color:u,component:"span",noWrap:!0,variant:"small",children:a})]}),t]})},C=e=>{let{children:t,...n}=e;return(0,o.jsx)("div",{...n,className:s().status,children:(0,o.jsx)(i.bL,{align:"center",color:"inherit",component:"span",noWrap:!0,variant:"smallBold",children:t})})}},99195:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});var o=n(52322),r=n(14226),i=n(56448),a=n(93671);let l=e=>{let{badgeColor:t,badgeTitle:n,tooltipContent:l}=function(e){let t=d[e.modelType];switch(e.modelStatus){case i.GJ.New:return{badgeColor:"green",badgeTitle:"New",tooltipContent:"This ".concat(t," exists only locally. Upon sync, it will be pushed to your remote repository.")};case i.GJ.Modified:return{badgeColor:"amber",badgeTitle:"Modified",tooltipContent:"This ".concat(t," has been modified locally. Upon sync, changes will be pushed to your remote repository.")};case i.GJ.Synced:return{badgeColor:"purple",badgeTitle:"Synced",tooltipContent:"This ".concat(t," is in sync with the remote repository.")};case i.GJ.Deleted:return{badgeColor:"tomato",badgeTitle:"Deleted",tooltipContent:"This ".concat(t," has been deleted locally.")};case i.GJ.Unknown:if(!e.isOnline)return{badgeColor:"grey",badgeTitle:"Unknown",tooltipContent:"Data from the remote repository could not be fetched (no internet connection)."};if(e.authStatus===a.t.UNAUTHENTICATED)return{badgeColor:"grey",badgeTitle:"Unknown",tooltipContent:"Data from the remote repository could not be fetched (not connected to Prismic)."};default:return{badgeColor:"grey",badgeTitle:"Unknown",tooltipContent:"Data from the remote repository could not be fetched (unknown error)."}}}(e);return(0,o.jsx)(r.c3,{content:l,side:"bottom",children:(0,o.jsx)(r.m,{color:t,title:n})})},d={CustomType:"type",Slice:"slice"}},51507:function(e,t,n){"use strict";n.d(t,{b:function(){return h}});var o=n(52322),r=n(14226),i=n(39097),a=n.n(i),l=n(62434),d=n(63908),s=n(99195),c=n(27763);let u=e=>(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5.5C4 4.67157 4.67157 4 5.5 4H18.5C19.3284 4 20 4.67157 20 5.5V12.4413C20 12.4512 19.9997 12.461 19.9991 12.4707C20.0072 12.6083 19.9586 12.7485 19.8536 12.8536C19.6583 13.0488 19.3417 13.0488 19.1464 12.8536L16.3536 10.0607C16.1583 9.8654 15.8417 9.8654 15.6464 10.0607L11.8536 13.8536C11.6583 14.0488 11.3417 14.0488 11.1464 13.8536L9.35355 12.0607C9.15829 11.8654 8.84171 11.8654 8.64645 12.0607L5 15.7071V18.5C5 18.7761 5.22386 19 5.5 19H12.5C12.7761 19 13 19.2239 13 19.5C13 19.7761 12.7761 20 12.5 20H5.5C4.67157 20 4 19.3284 4 18.5V15.5003V15.4997V5.5ZM11.5 12.7929L14.9393 9.35355C15.5251 8.76777 16.4749 8.76777 17.0607 9.35355L19 11.2929V5.5C19 5.22386 18.7761 5 18.5 5H5.5C5.22386 5 5 5.22386 5 5.5V14.2929L7.93934 11.3536C8.52513 10.7678 9.47487 10.7678 10.0607 11.3536L11.5 12.7929ZM16.5 13C16.7761 13 17 13.2239 17 13.5V16H19.5C19.7761 16 20 16.2239 20 16.5C20 16.7761 19.7761 17 19.5 17H17V19.5C17 19.7761 16.7761 20 16.5 20C16.2239 20 16 19.7761 16 19.5V17H13.5C13.2239 17 13 16.7761 13 16.5C13 16.2239 13.2239 16 13.5 16H16V13.5C16 13.2239 16.2239 13 16.5 13Z",fill:"currentColor"})}),m=e=>({hash:e.hash}),_=e=>e?Object.entries(e).reduce((e,t)=>{let[n,o]=t;return o.hash?{...e,[n]:{...o,...m(o)}}:e},{}):{},C={build:e=>({...e,screenshots:_(e.screenshots)}),variation(e,t){if(e.model.variations.length)return t?e.model.variations.find(e=>e.id===t):e.model.variations[0]}},h=e=>{let t;let{action:n,isDeleted:i=!1,onUpdateScreenshot:m,selected:_=!1,slice:h,variant:p,variationId:b}=e,f=C.variation(h,b);if(!f)return null;let g=(0,d.d7)(h,f),j=!i&&!!m,y="outlined"===p,k=void 0!==b;return t="selection"===e.mode?{disabled:i,interactive:!0,onClick:()=>{e.onSelectedChange(!_)}}:i?{interactive:!1}:{component:a(),href:c.Y.getBuilderPagePathname({libraryName:h.href,sliceName:h.model.name,variationId:f.id}),interactive:!0,replace:e.replace},(0,o.jsxs)(l.Zb,{"aria-label":"".concat(h.model.name," ").concat(f.name," slice card"),checked:_,"data-testid":"shared-slice-card",...t,..."outlined"===p?{size:"small",variant:"outlined"}:{},children:[void 0!==g?(0,o.jsx)(l.ZB,{alt:"Preview image",overlay:j&&!y?(0,o.jsx)(r.D,{alignItems:"center",justifyContent:"center",children:(0,o.jsx)(x,{onClick:m})}):void 0,src:g}):(0,o.jsx)(l.ZB,{component:"div",children:(0,o.jsxs)(r.D,{alignItems:"center",flexDirection:"column",gap:8,justifyContent:"center",children:[(0,o.jsx)(r.bL,{color:"grey11",component:"span",children:"No screenshot available"}),j&&!y?(0,o.jsx)(x,{onClick:m}):void 0]})}),(0,o.jsx)(l.eW,{action:"checkbox"===n.type&&"selection"===e.mode?(0,o.jsx)("div",{onClick:e=>e.stopPropagation(),children:(0,o.jsx)(r.U,{checked:_,disabled:i,onCheckedChange:e.onSelectedChange})}):"menu"===n.type?(0,o.jsxs)(r.ar,{modal:!0,children:[(0,o.jsx)(r.av,{disabled:i,children:(0,o.jsx)(r.aZ,{hiddenLabel:"Slice actions",icon:"moreVert"})}),(0,o.jsxs)(r.as,{align:"end","data-testid":"slice-action-icon-dropdown",children:[j&&y?(0,o.jsx)(r.at,{onSelect:m,startIcon:(0,o.jsx)(u,{}),children:"Update screenshot"}):void 0,(0,o.jsx)(r.at,{onSelect:n.onRename,startIcon:(0,o.jsx)(r.aX,{name:"edit"}),children:"Rename"}),!0===n.removeDisabled&&k?(0,o.jsx)(r.c3,{content:"The slice needs to have at least one variation.",side:"bottom",stableMount:!0,children:(0,o.jsx)(v,{disabled:!0,onSelect:n.onRemove})}):(0,o.jsx)(v,{disabled:!0===n.removeDisabled,onSelect:n.onRemove})]})]}):"remove"===n.type?(0,o.jsx)(r.aZ,{icon:"close",onClick:()=>!i&&n.onRemove(),hiddenLabel:"Remove slice"}):"status"===n.type?(0,o.jsx)(s.O,{authStatus:n.authStatus,isOnline:n.isOnline,modelStatus:n.modelStatus,modelType:"Slice"}):void 0,subtitle:(0,o.jsx)(o.Fragment,{children:k?f.id:"".concat(h.model.variations.length," variation").concat(h.model.variations.length>1?"s":"")}),title:k?f.name:h.model.name}),j&&!k&&(0,d.cx)(h)>0?(0,o.jsx)(l.Lm,{children:"Missing screenshot"}):void 0]})},x=e=>(0,o.jsx)(r.E,{onClick:e.onClick,renderStartIcon:()=>(0,o.jsx)(u,{color:r.t.color.grey11}),color:"grey",children:"Update screenshot"}),v=e=>(0,o.jsx)(r.at,{...e,color:"tomato",startIcon:(0,o.jsx)(r.aX,{name:"delete"}),children:"Delete"})},27763:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});let o={getBuilderPagePathname:e=>"/slices/".concat(e.libraryName.replaceAll("/","--"),"/").concat(e.sliceName,"/").concat(e.variationId)}},30527:function(e,t,n){"use strict";n.d(t,{Z:function(){return s},W:function(){return d}});var o=n(52322),r=n(2784),i=n(75289);let a=e=>{let{bg:t,background:n,sx:r,withRadius:a,radius:l,children:d}=e;return(0,o.jsx)(i.xu,{sx:{p:4,bg:t||n,...a?{borderBottomLeftRadius:l,borderBottomRightRadius:l}:null,...r},children:d})},l=(0,r.createContext)("6px"),d=()=>(0,r.useContext)(l),s=e=>{let{Header:t=null,SubHeader:n=null,Body:r=null,Footer:d=null,borderFooter:s=!1,radius:c="6px",bodySx:u={},footerSx:m={},sx:_=null,bg:C,background:h,children:x,...v}=e;return(0,o.jsx)(l.Provider,{value:c,children:(0,o.jsxs)(i.Zb,{sx:{border:e=>{var t;return"1px solid ".concat(String(null===(t=e.colors)||void 0===t?void 0:t.borders))},borderRadius:c,..._},...v,children:[t||null,n||null,(0,o.jsxs)(a,{bg:C,background:h,sx:u,withRadius:!d,children:[r?(0,o.jsx)(r,{}):null,x||null]}),d?(0,o.jsx)(a,{bg:C,background:h,sx:{...s?{borderTop:e=>{let{colors:t}=e;return"1px solid ".concat(String(null==t?void 0:t.borders))}}:null,...m},radius:c,withRadius:!0,children:"object"==typeof d?d:(0,o.jsx)(d,{})}):null]})})}},7974:function(e,t,n){"use strict";n.d(t,{Sn:function(){return l},lS:function(){return o},nG:function(){return r},pq:function(){return d},rd:function(){return a},xo:function(){return i}});let o=["components","update","insert"],r=["png","jpg","jpeg"],i=/^[A-Za-z0-9]+(?:_[A-Za-z0-9]+)*$/,a="placeholders/What_are_Slices_mrvome",l="SM_HELP_VIDEOS/mock_data",d="slice-machine-simulator"},67968:function(e){e.exports={flex:"Card_flex__opby1",grid:"Card_grid__VAvIS",column:"Card_column__W4ACG Card_flex__opby1",root:"Card_root__YVuvU Card_column__W4ACG Card_flex__opby1","size-small":"Card_size-small__aIlxd","size-medium":"Card_size-medium__xegz0",solid:"Card_solid__GNGar",outlined:"Card_outlined__W_dxI",interactive:"Card_interactive__rXw5L",media:"Card_media__l0kHL Card_column__W4ACG Card_flex__opby1","mediaComponent-div":"Card_mediaComponent-div__Y2_PZ Card_grid__VAvIS","mediaComponent-img":"Card_mediaComponent-img__ezOTu",mediaOverlay:"Card_mediaOverlay__Aa__Q Card_grid__VAvIS",nonMedia:"Card_nonMedia__Fv3Mz Card_flex__opby1",actions:"Card_actions__XdhOt Card_nonMedia__Fv3Mz Card_flex__opby1",footer:"Card_footer__U0HS1 Card_nonMedia__Fv3Mz Card_flex__opby1",footerTexts:"Card_footerTexts__rTXup Card_column__W4ACG Card_flex__opby1",status:"Card_status__PNN2a Card_column__W4ACG Card_flex__opby1",startIconBox:"Card_startIconBox__1_L4u"}}}]);