slice-machine-ui 1.22.3-beta.1 → 1.22.3-beta.3

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 (154) hide show
  1. package/components/DeleteVariationModal/index.tsx +12 -11
  2. package/components/Forms/CreateSliceModal/CreateSliceModal.tsx +2 -5
  3. package/components/Forms/RenameCustomTypeModal/RenameCustomTypeModal.tsx +9 -5
  4. package/components/Forms/RenameVariationModal/RenameVariationModal.tsx +12 -11
  5. package/components/ItemHeader/index.tsx +1 -0
  6. package/components/ListItem/index.tsx +5 -2
  7. package/components/ScreenshotChangesModal/VariationDropZone.tsx +31 -9
  8. package/components/ScreenshotChangesModal/index.tsx +3 -0
  9. package/components/ScreenshotChangesModal/useCustomScreenshot.tsx +5 -5
  10. package/components/Simulator/index.tsx +9 -3
  11. package/lib/builders/CustomTypeBuilder/SliceZone/SlicesTemplatesModal.tsx +2 -2
  12. package/lib/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModal.tsx +2 -2
  13. package/lib/builders/CustomTypeBuilder/SliceZone/index.tsx +12 -20
  14. package/lib/builders/CustomTypeBuilder/TabModal/update.tsx +3 -1
  15. package/lib/builders/CustomTypeBuilder/TabZone/index.tsx +119 -52
  16. package/lib/builders/CustomTypeBuilder/index.tsx +39 -42
  17. package/lib/builders/SliceBuilder/FieldZones/index.tsx +81 -56
  18. package/lib/builders/SliceBuilder/Sidebar/AddVariationModal.tsx +24 -16
  19. package/lib/builders/SliceBuilder/Sidebar/index.tsx +44 -46
  20. package/lib/builders/SliceBuilder/SimulatorButton/index.tsx +4 -28
  21. package/lib/builders/SliceBuilder/index.tsx +10 -96
  22. package/lib/builders/common/Zone/Card/components/Hints/CodeBlock.tsx +5 -1
  23. package/lib/builders/common/Zone/Card/components/NewField.tsx +16 -15
  24. package/lib/builders/common/Zone/Card/index.jsx +2 -0
  25. package/lib/builders/common/Zone/index.jsx +3 -1
  26. package/lib/models/common/ComponentUI.ts +0 -14
  27. package/lib/models/common/CustomType/sliceZone.ts +0 -29
  28. package/lib/models/common/CustomType/tab.ts +10 -142
  29. package/lib/models/common/widgets/Group/ListItem/index.jsx +61 -23
  30. package/out/404.html +1 -1
  31. package/out/_next/static/chunks/065a3ddb-9a38ca0d60f0bf2f.js +1 -0
  32. package/out/_next/static/chunks/183-4feb6bb3eddbc768.js +1 -0
  33. package/out/_next/static/chunks/18539003-7b2711e6c51d6fac.js +97 -0
  34. package/out/_next/static/chunks/1cc2734a-2c5b6c0367fcde86.js +1 -0
  35. package/out/_next/static/chunks/25-8fedd33ad9b6de5b.js +1 -0
  36. package/out/_next/static/chunks/318-541db69860d31138.js +1 -0
  37. package/out/_next/static/chunks/{505-3f1cf09a086dcba8.js → 376-0ed5822f8afcaa7c.js} +3 -3
  38. package/out/_next/static/chunks/4c744e84-e3161d754618373f.js +1 -0
  39. package/out/_next/static/chunks/50-cfc2514205b86001.js +1 -0
  40. package/out/_next/static/chunks/543-f8766685f7f451e2.js +1 -0
  41. package/out/_next/static/chunks/59b4e022-7a3b5554b806349f.js +1 -0
  42. package/out/_next/static/chunks/696-b12edad30a3617e5.js +31 -0
  43. package/out/_next/static/chunks/727-15cf3f2fea9a37e5.js +1 -0
  44. package/out/_next/static/chunks/731-501990ebe6a71b32.js +1 -0
  45. package/out/_next/static/chunks/787-727e3aef5d2a10a8.js +1 -0
  46. package/out/_next/static/chunks/904-ccd8ca3368ce29fc.js +1 -0
  47. package/out/_next/static/chunks/{918-38d08f1e885b222d.js → 918-5bb55fb464e34768.js} +1 -1
  48. package/out/_next/static/chunks/f36c6662-03bb5e9d9aa0b0aa.js +1 -0
  49. package/out/_next/static/chunks/pages/_app-20876abeebe0fda7.js +430 -0
  50. package/out/_next/static/chunks/pages/changelog-68d115a14f1423d7.js +1 -0
  51. package/out/_next/static/chunks/pages/changes-6f62ae7b6243a1c7.js +1 -0
  52. package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-3a37eb3373bb8823.js → [customTypeId]-3f862ad6111a1fc0.js} +1 -1
  53. package/out/_next/static/chunks/pages/{custom-types-2f5664d9492b13fb.js → custom-types-94b8f8dbf7727412.js} +1 -1
  54. package/out/_next/static/chunks/pages/{index-d8e3a2c0d712904f.js → index-64cfb8b0948ba8ef.js} +1 -1
  55. package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-733f3890c0466a05.js → [pageTypeId]-d1ffca11c42f2603.js} +1 -1
  56. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-897ca93c114a1435.js +1 -0
  57. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-e89e2e6f772a3454.js +1 -0
  58. package/out/_next/static/chunks/pages/slices-9628f8aa54968d6a.js +1 -0
  59. package/out/_next/static/css/{1bbf650dfd37ce69.css → 1aa04669758c24f4.css} +1 -1
  60. package/out/_next/static/j_voPTrYzsuLCERqtl3Hn/_buildManifest.js +1 -0
  61. package/out/changelog.html +1 -1
  62. package/out/changes.html +1 -1
  63. package/out/custom-types/[customTypeId].html +1 -1
  64. package/out/custom-types.html +1 -1
  65. package/out/index.html +1 -1
  66. package/out/labs.html +1 -1
  67. package/out/page-types/[pageTypeId].html +1 -1
  68. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  69. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  70. package/out/slices.html +1 -1
  71. package/package.json +6 -6
  72. package/pages/slices/[lib]/[sliceName]/[variation]/index.tsx +25 -11
  73. package/pages/slices/[lib]/[sliceName]/[variation]/simulator.tsx +12 -9
  74. package/src/apiClient.ts +7 -6
  75. package/src/components/CodeBlock/CodeBlock.tsx +1 -0
  76. package/src/components/Window/Window.tsx +7 -1
  77. package/src/domain/__tests__/customType.test.ts +785 -0
  78. package/src/domain/customType.ts +519 -6
  79. package/src/domain/slice.ts +166 -1
  80. package/src/features/autoSave/AutoSaveStatusIndicator.tsx +43 -0
  81. package/src/features/autoSave/useAutoSave.tsx +177 -0
  82. package/src/features/customTypes/EditDropdown.tsx +3 -0
  83. package/src/features/customTypes/actions/convertCustomToPageType.ts +2 -4
  84. package/src/features/customTypes/customTypesBuilder/CustomTypeProvider.tsx +90 -0
  85. package/src/features/customTypes/customTypesBuilder/CustomTypesBuilderPage.tsx +46 -79
  86. package/src/features/customTypes/customTypesMessages.ts +4 -0
  87. package/src/features/slices/actions/addSlicesToSliceZone.ts +2 -7
  88. package/src/features/slices/actions/uploadSliceScreenshot.ts +45 -0
  89. package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewVariationDialog.tsx +5 -5
  90. package/src/features/slices/convertLegacySlice/ConvertLegacySliceButton.tsx +4 -10
  91. package/src/features/slices/sliceBuilder/SliceBuilderProvider.tsx +110 -0
  92. package/src/features/slices/sliceBuilder/actions/deleteVariation.ts +8 -24
  93. package/src/features/slices/sliceBuilder/actions/renameVariation.ts +8 -24
  94. package/src/features/slices/sliceCards/SharedSliceCard.tsx +1 -0
  95. package/src/hooks/useCurrentSlice.tsx +4 -16
  96. package/src/hooks/useScreenshotChangesModal.ts +1 -0
  97. package/src/hooks/useServerState.ts +1 -58
  98. package/src/modules/availableCustomTypes/index.ts +8 -3
  99. package/src/modules/simulator/index.ts +0 -2
  100. package/src/modules/slices/index.ts +32 -25
  101. package/src/modules/slices/selector.ts +30 -0
  102. package/src/modules/useSliceMachineActions.ts +20 -270
  103. package/src/redux/reducer.ts +0 -4
  104. package/src/redux/saga.ts +0 -6
  105. package/src/redux/type.ts +0 -4
  106. package/test/src/modules/availableCustomTypes/index.test.ts +8 -10
  107. package/test/src/modules/simulator.test.ts +0 -2
  108. package/lib/models/common/CustomType/group.ts +0 -80
  109. package/lib/models/common/Variation.ts +0 -100
  110. package/out/_next/static/ZrWICkLApT4ZATA_akn-2/_buildManifest.js +0 -1
  111. package/out/_next/static/chunks/18539003-4460ccbfe3109578.js +0 -97
  112. package/out/_next/static/chunks/482-34cee2a2071c235f.js +0 -1
  113. package/out/_next/static/chunks/550-c80fd46fb64d1eef.js +0 -1
  114. package/out/_next/static/chunks/80-7b8a97d0122ff74a.js +0 -1
  115. package/out/_next/static/chunks/840-163f8a1040e6820d.js +0 -1
  116. package/out/_next/static/chunks/904-519dbf0f7e8c6243.js +0 -1
  117. package/out/_next/static/chunks/958-8aca174b80cb0c35.js +0 -1
  118. package/out/_next/static/chunks/pages/_app-132564608e9a9502.js +0 -458
  119. package/out/_next/static/chunks/pages/changelog-4d0f2f1222e403fe.js +0 -1
  120. package/out/_next/static/chunks/pages/changes-52c9d917808d1461.js +0 -1
  121. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-7b17cb59d0db03b5.js +0 -1
  122. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-ef11594ce026b650.js +0 -1
  123. package/out/_next/static/chunks/pages/slices-884a936a9a062a65.js +0 -1
  124. package/src/domain/__tests__/CustomTypeModel.test.ts +0 -247
  125. package/src/layouts/WithSlice.tsx +0 -26
  126. package/src/modules/screenshots/actions.ts +0 -21
  127. package/src/modules/screenshots/sagas.ts +0 -70
  128. package/src/modules/selectedCustomType/actions.ts +0 -147
  129. package/src/modules/selectedCustomType/index.ts +0 -11
  130. package/src/modules/selectedCustomType/reducer.ts +0 -287
  131. package/src/modules/selectedCustomType/sagas.ts +0 -72
  132. package/src/modules/selectedCustomType/selectors.ts +0 -33
  133. package/src/modules/selectedCustomType/stateHelpers.ts +0 -42
  134. package/src/modules/selectedCustomType/types.ts +0 -9
  135. package/src/modules/selectedSlice/actions.ts +0 -106
  136. package/src/modules/selectedSlice/reducer.ts +0 -175
  137. package/src/modules/selectedSlice/sagas.ts +0 -72
  138. package/src/modules/selectedSlice/selectors.ts +0 -55
  139. package/src/modules/selectedSlice/types.ts +0 -3
  140. package/src/modules/toaster/utils.tsx +0 -23
  141. package/test/lib/models/common/CustomType/sliceZone.test.ts +0 -49
  142. package/test/pages/custom-types.test.tsx +0 -625
  143. package/test/src/modules/selectedCustomType/__fixtures__/model.json +0 -119
  144. package/test/src/modules/selectedCustomType/reducer.test.ts +0 -322
  145. package/test/src/modules/selectedCustomType/sagas.test.ts +0 -89
  146. package/test/src/modules/selectedCustomType/selectors.test.ts +0 -54
  147. package/test/src/modules/selectedSlice/__fixtures__/mocks.json +0 -171
  148. package/test/src/modules/selectedSlice/__fixtures__/model.json +0 -35
  149. package/test/src/modules/selectedSlice/__testutils__/getRefreshStateCreatorPayloadData.ts +0 -72
  150. package/test/src/modules/selectedSlice/__testutils__/getSelectedSliceDummyData.ts +0 -30
  151. package/test/src/modules/selectedSlice/reducer.test.ts +0 -170
  152. package/test/src/modules/selectedSlice/sagas.test.ts +0 -82
  153. package/test/src/modules/toaster/utils.test.ts +0 -50
  154. /package/out/_next/static/{ZrWICkLApT4ZATA_akn-2 → j_voPTrYzsuLCERqtl3Hn}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[525],{18978:function(c,t,n){n.d(t,{Fm7:function(){return u},Zlu:function(){return a}});var r=n(68281);function u(c){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"}}]})(c)}function a(c){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"}}]})(c)}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[50],{81207:function(e){e.exports=function(e,t,n,o){var i=-1,r=null==e?0:e.length;for(o&&r&&(n=e[++i]);++i<r;)n=t(n,e[i],i,e);return n}},45981:function(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},6435:function(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},83126:function(e,t,n){var o=n(23895),i=n(33880),r=n(8435),a=n(66188);e.exports=function(e){return function(t){t=a(t);var n=i(t)?r(t):void 0,u=n?n[0]:t.charAt(0),s=n?o(n,1).join(""):t.slice(1);return u[e]()+s}}},34311:function(e,t,n){var o=n(81207),i=n(97329),r=n(11618),a=RegExp("['’]","g");e.exports=function(e){return function(t){return o(r(i(t).replace(a,"")),e,"")}}},61655:function(e,t,n){var o,i=n(6435)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=i},83559:function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},75304:function(e){var t="\ud800-\udfff",n="\\u2700-\\u27bf",o="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",r="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",u="["+r+"]",s="["+o+"]",l="[^"+t+r+"\\d+"+n+o+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",p="["+i+"]",f="(?:"+s+"|"+l+")",h="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",g="[\\ufe0e\\ufe0f]?",b="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+g+v+")*",x="(?:"+["["+n+"]",c,d].join("|")+")"+(g+v+b),y=RegExp([p+"?"+s+"+"+h+"(?="+[u,p,"$"].join("|")+")","(?:"+p+"|"+l+")+"+m+"(?="+[u,p+f,"$"].join("|")+")",p+"?"+f+"+"+h,p+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",x].join("|"),"g");e.exports=function(e){return e.match(y)||[]}},96009:function(e,t,n){var o=n(82108),i=n(34311)(function(e,t,n){return t=t.toLowerCase(),e+(n?o(t):t)});e.exports=i},82108:function(e,t,n){var o=n(66188),i=n(23779);e.exports=function(e){return i(o(e).toLowerCase())}},97329:function(e,t,n){var o=n(61655),i=n(66188),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(r,o).replace(a,"")}},23779:function(e,t,n){var o=n(83126)("toUpperCase");e.exports=o},11618:function(e,t,n){var o=n(45981),i=n(83559),r=n(66188),a=n(75304);e.exports=function(e,t,n){return(e=r(e),void 0===(t=n?void 0:t))?i(e)?a(e):o(e):e.match(t)||[]}},36131:function(e,t,n){"use strict";n.d(t,{ZP:function(){return tY}});var o,i=n(33028),r=n(59147);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r,a,u=[],s=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(u.push(o.value),u.length!==t);s=!0);}catch(c){l=!0,i=c}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(e,t)||(0,r.Z)(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=n(59740),s=n(2784),l=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],c=n(7896),d=n(9249),p=n(87371),f=n(45754),h=n(4309),m=n(51171),v=n(28165),g=n(86522),b=n(56666),x=n(28316);function y(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function O(e){return y(e).getComputedStyle(e)}function C(e){return e instanceof y(e).Node}function Z(e){return C(e)?(e.nodeName||"").toLowerCase():""}function w(e){return e instanceof y(e).HTMLElement}function I(e){return e instanceof y(e).Element}function S(e){return"undefined"!=typeof ShadowRoot&&(e instanceof y(e).ShadowRoot||e instanceof ShadowRoot)}function V(e){let{overflow:t,overflowX:n,overflowY:o,display:i}=O(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let E=Math.round;function M(e){return I(e)?e:e.contextElement}let R={x:1,y:1};function L(e){let t=M(e);if(!w(t))return R;let n=t.getBoundingClientRect(),{width:o,height:i,fallback:r}=function(e){let t=O(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=w(e),r=i?e.offsetWidth:n,a=i?e.offsetHeight:o,u=E(n)!==r||E(o)!==a;return u&&(n=r,o=a),{width:n,height:o,fallback:u}}(t),a=(r?E(n.width):n.width)/o,u=(r?E(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}let k={x:0,y:0};function D(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let r=e.getBoundingClientRect(),a=M(e),u=R;t&&(o?I(o)&&(u=L(o)):u=L(e));let s=function(e,t,n){var o,i;if(void 0===t&&(t=!0),!(!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")))return k;let r=e?y(e):window;return!n||t&&n!==r?k:{x:(null==(o=r.visualViewport)?void 0:o.offsetLeft)||0,y:(null==(i=r.visualViewport)?void 0:i.offsetTop)||0}}(a,n,o),l=(r.left+s.x)/u.x,c=(r.top+s.y)/u.y,d=r.width/u.x,p=r.height/u.y;if(a){let f=y(a),h=o&&I(o)?y(o):o,m=f.frameElement;for(;m&&o&&h!==f;){let v=L(m),g=m.getBoundingClientRect(),b=getComputedStyle(m);g.x+=(m.clientLeft+parseFloat(b.paddingLeft))*v.x,g.y+=(m.clientTop+parseFloat(b.paddingTop))*v.y,l*=v.x,c*=v.y,d*=v.x,p*=v.y,l+=g.x,c+=g.y,m=y(m).frameElement}}return{...i={width:d,height:p,x:l,y:c},top:i.y,left:i.x,right:i.x+i.width,bottom:i.y+i.height}}function P(e,t){var n;void 0===t&&(t=[]);let o=function e(t){var n;let o=function(e){var t;if("html"===Z(e))return e;let n=e.assignedSlot||e.parentNode||S(e)&&e.host||((C(e)?e.ownerDocument:e.document)||window.document).documentElement;return S(n)?n.host:n}(t);return["html","body","#document"].includes(Z(o))?o.ownerDocument.body:w(o)&&V(o)?o:e(o)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),r=y(o);return i?t.concat(r,r.visualViewport||[],V(o)?o:[]):t.concat(o,P(o))}var F=s.useLayoutEffect,T=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],A=function(){};function H(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function U(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var r=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&r.push("".concat(H(e,a)));return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var z=function(e){var t;return(t=e,Array.isArray(t))?e.filter(Boolean):"object"===(0,g.Z)(e)&&null!==e?[e]:[]},N=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=(0,u.Z)(e,T);return(0,i.Z)({},t)},B=function(e,t,n){var o=e.cx,i=e.getStyles,r=e.getClassNames,a=e.className;return{css:i(t,e),className:o(null!=n?n:{},r(t,e),a)}};function j(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function W(e){return j(e)?window.pageYOffset:e.scrollTop}function Y(e,t){if(j(e)){window.scrollTo(0,t);return}e.scrollTop=t}function G(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:A,i=W(e),r=t-i,a=0;!function t(){a+=10;var u,s,l,c,d=(u=a,r*((u=u/n-1)*u*u+1)+i);Y(e,d),a<n?window.requestAnimationFrame(t):o(e)}()}function _(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=t.offsetHeight/3;o.bottom+i>n.bottom?Y(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):o.top-i<n.top&&Y(e,Math.max(t.offsetTop-i,0))}function X(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var q="undefined"!=typeof window?window:{};q.addEventListener&&q.removeEventListener&&(q.addEventListener("p",A,{get passive(){return!0}}),q.removeEventListener("p",A,!1));function K(e){return null!=e}var J=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return Object.entries(e).filter(function(e){var t=a(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=a(t,2),o=n[0],i=n[1];return e[o]=i,e},{})},$=function(e){return"auto"===e?"bottom":e},Q=function(e,t){var n,o,r=e.placement,a=e.theme,u=a.borderRadius,s=a.spacing,l=a.colors;return(0,i.Z)((n={label:"menu"},(0,b.Z)(n,r?({bottom:"top",top:"bottom"})[r]:"bottom","100%"),(0,b.Z)(n,"position","absolute"),(0,b.Z)(n,"width","100%"),(0,b.Z)(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:u,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},ee=(0,s.createContext)(null),et=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,r=e.menuPlacement,u=e.menuPosition,l=e.menuShouldScrollIntoView,c=e.theme,d=((0,s.useContext)(ee)||{}).setPortalPlacement,p=(0,s.useRef)(null),f=(0,s.useState)(o),h=a(f,2),m=h[0],v=h[1],g=a((0,s.useState)(null),2),b=g[0],x=g[1],y=c.spacing.controlHeight;return F(function(){var e=p.current;if(e){var t="fixed"===u,i=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,i=e.placement,r=e.shouldScroll,a=e.isFixedPosition,u=e.controlHeight,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c,d=s.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,m=p.top,v=n.offsetParent.getBoundingClientRect().top,g=a?window.innerHeight:j(s)?window.innerHeight:s.clientHeight,b=W(s),x=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),O=v-y,C=g-m,Z=O+b,w=d-b-m,I=f-g+b+x,S=b+m-y;switch(i){case"auto":case"bottom":if(C>=h)return{placement:"bottom",maxHeight:t};if(w>=h&&!a)return r&&G(s,I,160),{placement:"bottom",maxHeight:t};if(!a&&w>=o||a&&C>=o)return r&&G(s,I,160),{placement:"bottom",maxHeight:a?C-x:w-x};if("auto"===i||a){var V=t,E=a?O:Z;return E>=o&&(V=Math.min(E-x-u,t)),{placement:"top",maxHeight:V}}if("bottom"===i)return r&&Y(s,I),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(Z>=h&&!a)return r&&G(s,S,160),{placement:"top",maxHeight:t};if(!a&&Z>=o||a&&O>=o){var M=t;return(!a&&Z>=o||a&&O>=o)&&(M=a?O-y:Z-y),r&&G(s,S,160),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw Error('Invalid placement provided "'.concat(i,'".'))}return l}({maxHeight:o,menuEl:e,minHeight:n,placement:r,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:y});v(i.maxHeight),x(i.placement),null==d||d(i.placement)}},[o,r,u,l,n,d,y]),t({ref:p,placerProps:(0,i.Z)((0,i.Z)({},e),{},{placement:b||$(r),maxHeight:m})})},en=function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"menu",{menu:!0}),{ref:n},o),t)},eo=function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return(0,i.Z)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},ei=function(e){var t=e.children,n=e.innerProps,o=e.innerRef,i=e.isMulti;return(0,v.tZ)("div",(0,c.Z)({},B(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),t)},er=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return(0,i.Z)({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},ea=function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),t)};ea.defaultProps={children:"No options"};var eu=function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),t)};eu.defaultProps={children:"Loading..."};var es,el,ec=function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},ed=function(e){var t=e.appendTo,n=e.children,o=e.controlElement,r=e.innerProps,u=e.menuPlacement,l=e.menuPosition,d=(0,s.useRef)(null),p=(0,s.useRef)(null),f=(0,s.useState)($(u)),h=a(f,2),m=h[0],g=h[1],b=(0,s.useMemo)(function(){return{setPortalPlacement:g}},[]),y=a((0,s.useState)(null),2),O=y[0],C=y[1],Z=(0,s.useCallback)(function(){if(o){var e,t,n={bottom:(t=o.getBoundingClientRect()).bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width},i="fixed"===l?0:window.pageYOffset,r=n[m]+i;(r!==(null==O?void 0:O.offset)||n.left!==(null==O?void 0:O.rect.left)||n.width!==(null==O?void 0:O.rect.width))&&C({offset:r,rect:n})}},[o,l,m,null==O?void 0:O.offset,null==O?void 0:O.rect.left,null==O?void 0:O.rect.width]);F(function(){Z()},[Z]);var w=(0,s.useCallback)(function(){"function"==typeof p.current&&(p.current(),p.current=null),o&&d.current&&(p.current=function(e,t,n,o){void 0===o&&(o={});let{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:a=!0,animationFrame:u=!1}=o,s=i||r?[...I(e)?P(e):e.contextElement?P(e.contextElement):[],...P(t)]:[];s.forEach(e=>{let t=!I(e)&&e.toString().includes("V");i&&(!u||t)&&e.addEventListener("scroll",n,{passive:!0}),r&&e.addEventListener("resize",n)});let l,c=null;a&&(c=new ResizeObserver(()=>{n()}),I(e)&&!u&&c.observe(e),I(e)||!e.contextElement||u||c.observe(e.contextElement),c.observe(t));let d=u?D(e):null;return u&&function t(){let o=D(e);d&&(o.x!==d.x||o.y!==d.y||o.width!==d.width||o.height!==d.height)&&n(),d=o,l=requestAnimationFrame(t)}(),n(),()=>{var e;s.forEach(e=>{i&&e.removeEventListener("scroll",n),r&&e.removeEventListener("resize",n)}),null==(e=c)||e.disconnect(),c=null,u&&cancelAnimationFrame(l)}}(o,d.current,Z,{elementResize:"ResizeObserver"in window}))},[o,Z]);F(function(){w()},[w]);var S=(0,s.useCallback)(function(e){d.current=e,w()},[w]);if(!t&&"fixed"!==l||!O)return null;var V=(0,v.tZ)("div",(0,c.Z)({ref:S},B((0,i.Z)((0,i.Z)({},e),{},{offset:O.offset,position:l,rect:O.rect}),"menuPortal",{"menu-portal":!0}),r),n);return(0,v.tZ)(ee.Provider,{value:b},t?(0,x.createPortal)(V,t):V)},ep=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},ef=function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,i=e.isRtl;return(0,v.tZ)("div",(0,c.Z)({},B(e,"container",{"--is-disabled":o,"--is-rtl":i}),n),t)},eh=function(e,t){var n=e.theme.spacing,o=e.isMulti,r=e.hasValue,a=e.selectProps.controlShouldRenderValue;return(0,i.Z)({alignItems:"center",display:o&&r&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},em=function(e){var t=e.children,n=e.innerProps,o=e.isMulti,i=e.hasValue;return(0,v.tZ)("div",(0,c.Z)({},B(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),t)},ev=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},eg=function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"indicatorsContainer",{indicators:!0}),n),t)},eb=["size"],ex={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ey=function(e){var t=e.size,n=(0,u.Z)(e,eb);return(0,v.tZ)("svg",(0,c.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ex},n))},eO=function(e){return(0,v.tZ)(ey,(0,c.Z)({size:20},e),(0,v.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},eC=function(e){return(0,v.tZ)(ey,(0,c.Z)({size:20},e),(0,v.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},eZ=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,a=o.colors;return(0,i.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*r,":hover":{color:n?a.neutral80:a.neutral40}})},ew=function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,v.tZ)(eC,null))},eI=function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,v.tZ)(eO,null))},eS=function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing.baseUnit,a=o.colors;return(0,i.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*r,marginTop:2*r})},eV=function(e){var t=e.innerProps;return(0,v.tZ)("span",(0,c.Z)({},t,B(e,"indicatorSeparator",{"indicator-separator":!0})))},eE=(0,v.F4)(o||(es=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],el||(el=es.slice(0)),o=Object.freeze(Object.defineProperties(es,{raw:{value:Object.freeze(el)}})))),eM=function(e,t){var n=e.isFocused,o=e.size,r=e.theme,a=r.colors,u=r.spacing.baseUnit;return(0,i.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*u})},eR=function(e){var t=e.delay,n=e.offset;return(0,v.tZ)("span",{css:(0,v.iv)({animation:"".concat(eE," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},eL=function(e){var t=e.innerProps,n=e.isRtl;return(0,v.tZ)("div",(0,c.Z)({},B(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,v.tZ)(eR,{delay:0,offset:n}),(0,v.tZ)(eR,{delay:160,offset:!0}),(0,v.tZ)(eR,{delay:320,offset:!n}))};eL.defaultProps={size:4};var ek,eD,eP,eF,eT,eA=function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.theme,a=r.colors,u=r.borderRadius,s=r.spacing;return(0,i.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},eH=function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.innerRef,r=e.innerProps,a=e.menuIsOpen;return(0,v.tZ)("div",(0,c.Z)({ref:i},B(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),r),t)},eU=["data"],ez=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},eN=function(e){var t=e.children,n=e.cx,o=e.getStyles,i=e.getClassNames,r=e.Heading,a=e.headingProps,u=e.innerProps,s=e.label,l=e.theme,d=e.selectProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"group",{group:!0}),u),(0,v.tZ)(r,(0,c.Z)({},a,{selectProps:d,theme:l,getStyles:o,getClassNames:i,cx:n}),s),(0,v.tZ)("div",null,t))},eB=function(e,t){var n=e.theme,o=n.colors,r=n.spacing;return(0,i.Z)({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},ej=function(e){var t=N(e);t.data;var n=(0,u.Z)(t,eU);return(0,v.tZ)("div",(0,c.Z)({},B(e,"groupHeading",{"group-heading":!0}),n))},eW=["innerRef","isDisabled","isHidden","inputClassName"],eY=function(e,t){var n=e.isDisabled,o=e.value,r=e.theme,a=r.spacing,u=r.colors;return(0,i.Z)((0,i.Z)({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},e_),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:u.neutral80})},eG={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},e_={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,i.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},eG)},eX=function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,a=n.colors;return(0,i.Z)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:r/2,margin:o.baseUnit/2})},eq=function(e,t){var n=e.theme,o=n.borderRadius,r=n.colors,a=e.cropWithEllipsis;return(0,i.Z)({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},eK=function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,a=n.colors,u=e.isFocused;return(0,i.Z)({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:u?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},eJ=function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",n,t)},e$=function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,a=e.theme,u=a.spacing,s=a.colors;return(0,i.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:r?s.neutral0:"inherit",padding:"".concat(2*u.baseUnit,"px ").concat(3*u.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?s.primary:s.primary50}})},eQ=function(e,t){var n=e.theme,o=n.spacing,r=n.colors;return(0,i.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},e0=function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing,a=o.colors;return(0,i.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},e1={ClearIndicator:eI,Control:eH,DropdownIndicator:ew,DownChevron:eC,CrossIcon:eO,Group:eN,GroupHeading:ej,IndicatorsContainer:eg,IndicatorSeparator:eV,Input:function(e){var t,n=e.cx,o=e.value,r=N(e),a=r.innerRef,s=r.isDisabled,l=r.isHidden,d=r.inputClassName,p=(0,u.Z)(r,eW);return(0,v.tZ)("div",(0,c.Z)({},B(e,"input",{"input-container":!0}),{"data-value":o||""}),(0,v.tZ)("input",(0,c.Z)({className:n({input:!0},d),ref:a,style:(0,i.Z)({label:"input",color:"inherit",background:0,opacity:l?0:1,width:"100%"},eG),disabled:s},p)))},LoadingIndicator:eL,Menu:en,MenuList:ei,MenuPortal:ed,LoadingMessage:eu,NoOptionsMessage:ea,MultiValue:function(e){var t=e.children,n=e.components,o=e.data,r=e.innerProps,a=e.isDisabled,u=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,d=n.Remove;return(0,v.tZ)(l,{data:o,innerProps:(0,i.Z)((0,i.Z)({},B(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),r),selectProps:s},(0,v.tZ)(c,{data:o,innerProps:(0,i.Z)({},B(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),(0,v.tZ)(d,{data:o,innerProps:(0,i.Z)((0,i.Z)({},B(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},u),selectProps:s}))},MultiValueContainer:eJ,MultiValueLabel:eJ,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({role:"button"},n),t||(0,v.tZ)(eO,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.isSelected,r=e.innerRef,a=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:r,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:ef,SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:em},e2=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function e6(e,t){return!!(e===t||e2(e)&&e2(t))}function e4(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!e6(e[n],t[n]))return!1;return!0}for(var e3={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},e5=function(e){return(0,v.tZ)("span",(0,c.Z)({css:e3},e))},e9={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.isDisabled,i=e.tabSelectsValue,r=e.context;switch(r){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,i=e.labels,r=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return r?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,i=e.label,r=void 0===i?"":i,a=e.selectValue,u=e.isDisabled,s=e.isSelected,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(r," focused, ").concat(l(a,n),".");if("menu"===t){var c="".concat(s?"selected":"focused").concat(u?" disabled":"");return"option ".concat(r," ").concat(c,", ").concat(l(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},e8=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,r=e.focusableOptions,a=e.isFocused,u=e.selectValue,l=e.selectProps,c=e.id,d=l.ariaLiveMessages,p=l.getOptionLabel,f=l.inputValue,h=l.isMulti,m=l.isOptionDisabled,g=l.isSearchable,b=l.menuIsOpen,x=l.options,y=l.screenReaderStatus,O=l.tabSelectsValue,C=l["aria-label"],Z=l["aria-live"],w=(0,s.useMemo)(function(){return(0,i.Z)((0,i.Z)({},e9),d||{})},[d]),I=(0,s.useMemo)(function(){var e="";if(t&&w.onChange){var n,o=t.option,r=t.options,a=t.removedValue,s=t.removedValues,l=t.value,c=a||o||(Array.isArray(l)?null:l),d=c?p(c):"",f=r||s||void 0,h=f?f.map(p):[],v=(0,i.Z)({isDisabled:c&&m(c,u),label:d,labels:h},t);e=w.onChange(v)}return e},[t,w,m,u,p]),S=(0,s.useMemo)(function(){var e="",t=n||o,i=!!(n&&u&&u.includes(n));if(t&&w.onFocus){var a={focused:t,label:p(t),isDisabled:m(t,u),isSelected:i,options:r,context:t===n?"menu":"value",selectValue:u};e=w.onFocus(a)}return e},[n,o,p,m,w,r,u]),V=(0,s.useMemo)(function(){var e="";if(b&&x.length&&w.onFilter){var t=y({count:r.length});e=w.onFilter({inputValue:f,resultsMessage:t})}return e},[r,f,b,w,x,y]),E=(0,s.useMemo)(function(){var e="";return w.guidance&&(e=w.guidance({"aria-label":C,context:o?"value":b?"menu":"input",isDisabled:n&&m(n,u),isMulti:h,isSearchable:g,tabSelectsValue:O})),e},[C,n,o,h,m,g,b,w,u,O]),M="".concat(S," ").concat(V," ").concat(E),R=(0,v.tZ)(s.Fragment,null,(0,v.tZ)("span",{id:"aria-selection"},I),(0,v.tZ)("span",{id:"aria-context"},M)),L=(null==t?void 0:t.action)==="initial-input-focus";return(0,v.tZ)(s.Fragment,null,(0,v.tZ)(e5,{id:c},L&&R),(0,v.tZ)(e5,{"aria-live":Z,"aria-atomic":"false","aria-relevant":"additions text"},a&&!L&&R))},e7=[{base:"A",letters:"AⒶA\xc0\xc1\xc2ẦẤẪẨ\xc3ĀĂẰẮẴẲȦǠ\xc4ǞẢ\xc5ǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"\xc6ǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČ\xc7ḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺE\xc8\xc9\xcaỀẾỄỂẼĒḔḖĔĖ\xcbẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾI\xcc\xcd\xceĨĪĬİ\xcfḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃ\xd1ṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄO\xd2\xd3\xd4ỒỐỖỔ\xd5ṌȬṎŌṐṒŎȮȰ\xd6ȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬ\xd8ǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊU\xd9\xda\xdbŨṸŪṺŬ\xdcǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲ\xddŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚ\xe0\xe1\xe2ầấẫẩ\xe3āăằắẵẳȧǡ\xe4ǟả\xe5ǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"\xe6ǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċč\xe7ḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔe\xe8\xe9\xeaềếễểẽēḕḗĕė\xebẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘi\xec\xed\xeeĩīĭ\xefḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹń\xf1ṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞo\xf2\xf3\xf4ồốỗổ\xf5ṍȭṏōṑṓŏȯȱ\xf6ȫỏőǒȍȏơờớỡởợọộǫǭ\xf8ǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢs\xdfśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤu\xf9\xfa\xfbũṹūṻŭ\xfcǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳ\xfdŷỹȳẏ\xffỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],te=RegExp("["+e7.map(function(e){return e.letters}).join("")+"]","g"),tt={},tn=0;tn<e7.length;tn++)for(var to=e7[tn],ti=0;ti<to.letters.length;ti++)tt[to.letters[ti]]=to.base;var tr=function(e){return e.replace(te,function(e){return tt[e]})},ta=function(e,t){void 0===t&&(t=e4);var n=null;function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var r=e.apply(this,o);return n={lastResult:r,lastArgs:o,lastThis:this},r}return o.clear=function(){n=null},o}(tr),tu=function(e){return e.replace(/^\s+|\s+$/g,"")},ts=function(e){return"".concat(e.label," ").concat(e.value)},tl=["innerRef"];function tc(e){var t=e.innerRef,n=(0,u.Z)(e,tl),o=J(n,"onExited","in","enter","exit","appear");return(0,v.tZ)("input",(0,c.Z)({ref:t},o,{css:(0,v.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var td=function(e){e.preventDefault(),e.stopPropagation()},tp=["boxSizing","height","overflow","paddingRight","position"],tf={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function th(e){e.preventDefault()}function tm(e){e.stopPropagation()}function tv(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function tg(){return"ontouchstart"in window||navigator.maxTouchPoints}var tb=!!("undefined"!=typeof window&&window.document&&window.document.createElement),tx=0,ty={capture:!1,passive:!1},tO=function(){return document.activeElement&&document.activeElement.blur()},tC={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function tZ(e){var t,n,o,i,r,a,u,l,c,d,p,f,h,m,g,b,x,y,O,C,Z,w,I,S,V,E=e.children,M=e.lockEnabled,R=e.captureEnabled,L=e.onBottomArrive,k=e.onBottomLeave,D=(n=(t={isEnabled:void 0===R||R,onBottomArrive:L,onBottomLeave:k,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}).isEnabled,o=t.onBottomArrive,i=t.onBottomLeave,r=t.onTopArrive,a=t.onTopLeave,u=(0,s.useRef)(!1),l=(0,s.useRef)(!1),c=(0,s.useRef)(0),d=(0,s.useRef)(null),p=(0,s.useCallback)(function(e,t){if(null!==d.current){var n=d.current,s=n.scrollTop,c=n.scrollHeight,p=n.clientHeight,f=d.current,h=t>0,m=c-p-s,v=!1;m>t&&u.current&&(i&&i(e),u.current=!1),h&&l.current&&(a&&a(e),l.current=!1),h&&t>m?(o&&!u.current&&o(e),f.scrollTop=c,v=!0,u.current=!0):!h&&-t>s&&(r&&!l.current&&r(e),f.scrollTop=0,v=!0,l.current=!0),v&&td(e)}},[o,i,r,a]),f=(0,s.useCallback)(function(e){p(e,e.deltaY)},[p]),h=(0,s.useCallback)(function(e){c.current=e.changedTouches[0].clientY},[]),m=(0,s.useCallback)(function(e){var t=c.current-e.changedTouches[0].clientY;p(e,t)},[p]),g=(0,s.useCallback)(function(e){if(e){var t=!1;e.addEventListener("wheel",f,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",m,t)}},[m,h,f]),b=(0,s.useCallback)(function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",m,!1))},[m,h,f]),(0,s.useEffect)(function(){if(n){var e=d.current;return g(e),function(){b(e)}}},[n,g,b]),function(e){d.current=e}),P=(y=(x={isEnabled:M}).isEnabled,C=void 0===(O=x.accountForScrollbars)||O,Z=(0,s.useRef)({}),w=(0,s.useRef)(null),I=(0,s.useCallback)(function(e){if(tb){var t=document.body,n=t&&t.style;if(C&&tp.forEach(function(e){var t=n&&n[e];Z.current[e]=t}),C&&tx<1){var o=parseInt(Z.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,r=window.innerWidth-i+o||0;Object.keys(tf).forEach(function(e){var t=tf[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(r,"px"))}t&&tg()&&(t.addEventListener("touchmove",th,ty),e&&(e.addEventListener("touchstart",tv,ty),e.addEventListener("touchmove",tm,ty))),tx+=1}},[C]),S=(0,s.useCallback)(function(e){if(tb){var t=document.body,n=t&&t.style;tx=Math.max(tx-1,0),C&&tx<1&&tp.forEach(function(e){var t=Z.current[e];n&&(n[e]=t)}),t&&tg()&&(t.removeEventListener("touchmove",th,ty),e&&(e.removeEventListener("touchstart",tv,ty),e.removeEventListener("touchmove",tm,ty)))}},[C]),(0,s.useEffect)(function(){if(y){var e=w.current;return I(e),function(){S(e)}}},[y,I,S]),function(e){w.current=e}),F=function(e){D(e),P(e)};return(0,v.tZ)(s.Fragment,null,M&&(0,v.tZ)("div",{onClick:tO,css:tC}),E(F))}var tw={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},tI=function(e){var t=e.name,n=e.onFocus;return(0,v.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:tw,value:"",onChange:function(){}})},tS=function(e){return e.label},tV=function(e){return e.label},tE=function(e){return e.value},tM=function(e){return!!e.isDisabled},tR={clearIndicator:eZ,container:ep,control:eA,dropdownIndicator:eZ,group:ez,groupHeading:eB,indicatorsContainer:ev,indicatorSeparator:eS,input:eY,loadingIndicator:eM,loadingMessage:er,menu:Q,menuList:eo,menuPortal:ec,multiValue:eX,multiValueLabel:eq,multiValueRemove:eK,noOptionsMessage:er,option:e$,placeholder:eQ,singleValue:e0,valueContainer:eh},tL={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},tk={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:X(),captureMenuScroll:!X(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,i.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:ts,trim:!0,matchFrom:"any"},void 0),o=n.ignoreCase,r=n.ignoreAccents,a=n.stringify,u=n.trim,s=n.matchFrom,l=u?tu(t):t,c=u?tu(a(e)):a(e);return o&&(l=l.toLowerCase(),c=c.toLowerCase()),r&&(l=ta(l),c=tr(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:tS,getOptionLabel:tV,getOptionValue:tE,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:tM,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function tD(e,t,n,o){var i=tU(e,t,n),r=tz(e,t,n),a=tA(e,t),u=tH(e,t);return{type:"option",data:t,isDisabled:i,isSelected:r,label:a,value:u,index:o}}function tP(e,t){return e.options.map(function(n,o){if("options"in n){var i=n.options.map(function(n,o){return tD(e,n,t,o)}).filter(function(t){return tT(e,t)});return i.length>0?{type:"group",data:n,options:i,index:o}:void 0}var r=tD(e,n,t,o);return tT(e,r)?r:void 0}).filter(K)}function tF(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,(0,m.Z)(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function tT(e,t){var n=e.inputValue,o=t.data,i=t.isSelected,r=t.label,a=t.value;return(!tB(e)||!i)&&tN(e,{label:r,value:a,data:o},void 0===n?"":n)}var tA=function(e,t){return e.getOptionLabel(t)},tH=function(e,t){return e.getOptionValue(t)};function tU(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function tz(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=tH(e,t);return n.some(function(t){return tH(e,t)===o})}function tN(e,t,n){return!e.filterOption||e.filterOption(t,n)}var tB=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},tj=1,tW=function(e){(0,f.Z)(n,e);var t=(0,h.Z)(n);function n(e){var o;if((0,d.Z)(this,n),(o=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.instancePrefix="",o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,i=n.onChange,r=n.name;t.name=r,o.ariaOnChange(e,t),i(e,t)},o.setValue=function(e,t,n){var i=o.props,r=i.closeMenuOnSelect,a=i.isMulti,u=i.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:u}),r&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t,n,i,r=o.props,a=r.blurInputOnSelect,u=r.isMulti,s=r.name,l=o.state.selectValue,c=u&&o.isOptionSelected(e,l),d=o.isOptionDisabled(e,l);if(c){var p,f=o.getOptionValue(e);o.setValue(p=l.filter(function(e){return o.getOptionValue(e)!==f}),"deselect-option",e)}else if(d){o.ariaOnChange(t=e,{action:"select-option",option:e,name:s});return}else u?o.setValue(n=[].concat((0,m.Z)(l),[e]),"select-option",e):o.setValue(i=e,"select-option");a&&o.blurInput()},o.removeValue=function(e){var t,n,i,r=o.props.isMulti,a=o.state.selectValue,u=o.getOptionValue(e),s=a.filter(function(e){return o.getOptionValue(e)!==u}),l=(i=s[0]||null,r?s:i);o.onChange(l,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e,t,n=o.state.selectValue;o.onChange((e=o.props.isMulti)?[]:null,{action:"clear",removedValues:n})},o.popValue=function(){var e,t,n,i=o.props.isMulti,r=o.state.selectValue,a=r[r.length-1],u=r.slice(0,r.length-1),s=(n=u[0]||null,i?u:n);o.onChange(s,{action:"pop-value",removedValue:a})},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return U.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return tA(o.props,e)},o.getOptionValue=function(e){return tH(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,i=tR[e](t,n);i.boxSizing="border-box";var r=o.props.styles[e];return r?r(i,t):i},o.getClassNames=function(e,t){var n,i;return null===(n=(i=o.props.classNames)[e])||void 0===n?void 0:n.call(i,t)},o.getElementId=function(e){return"".concat(o.instancePrefix,"-").concat(e)},o.getComponents=function(){var e;return e=o.props,(0,i.Z)((0,i.Z)({},e1),e.components)},o.buildCategorizedOptions=function(){return tP(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return tF(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:(0,i.Z)({value:e},t)})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},o.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!o.props.isDisabled){var t=o.props,n=t.isMulti,i=t.menuIsOpen;o.focusInput(),i?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault()}},o.onClearIndicatorMouseDown=function(e){(!e||"mousedown"!==e.type||0===e.button)&&(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&j(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-o.initialTouchX),r=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=i>5||r>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(e){!o.blockOptionHover&&o.state.focusedOption!==e&&o.setState({focusedOption:e})},o.shouldHideSelectedOptions=function(){return tB(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus()},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,i=t.backspaceRemovesValue,r=t.escapeClearsValue,a=t.inputValue,u=t.isClearable,s=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=o.state,h=f.focusedOption,m=f.focusedValue,v=f.selectValue;if(!s){if("function"==typeof c&&(c(e),e.defaultPrevented))return;switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)o.removeValue(m);else{if(!i)return;n?o.popValue():u&&o.clearValue()}break;case"Tab":if(o.isComposing||e.shiftKey||!l||!d||!h||p&&o.isOptionSelected(h,v))return;o.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h||o.isComposing)return;o.selectOption(h);break}return;case"Escape":l?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:a}),o.onMenuClose()):u&&r&&o.clearValue();break;case" ":if(a)return;if(!l){o.openMenu("first");break}if(!h)return;o.selectOption(h);break;case"ArrowUp":l?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":l?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!l)return;o.focusOption("pageup");break;case"PageDown":if(!l)return;o.focusOption("pagedown");break;case"Home":if(!l)return;o.focusOption("first");break;case"End":if(!l)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.instancePrefix="react-select-"+(o.props.instanceId||++tj),o.state.selectValue=z(e.value),e.menuIsOpen&&o.state.selectValue.length){var r=o.buildFocusableOptions(),a=r.indexOf(o.state.selectValue[0]);o.state.focusedOption=r[a]}return o}return(0,p.Z)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&_(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&o&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(_(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,i=n.isFocused,r=this.buildFocusableOptions(),a="first"===e?0:r.length-1;if(!this.props.isMulti){var u=r.indexOf(o[0]);u>-1&&(a=u)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:r[a]},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(o);o||(i=-1);var r=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?r:i-1;break;case"next":i>-1&&i<r&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var i=0,r=o.indexOf(n);n||(r=-1),"up"===e?i=r>0?r-1:o.length-1:"down"===e?i=(r+1)%o.length:"pageup"===e?(i=r-t)<0&&(i=0):"pagedown"===e?(i=r+t)>o.length-1&&(i=o.length-1):"last"===e&&(i=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(tL):(0,i.Z)((0,i.Z)({},tL),this.props.theme):tL}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,i=this.getValue,r=this.selectOption,a=this.setValue,u=this.props,s=u.isMulti,l=u.isRtl,c=u.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:i,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:c,selectOption:r,selectProps:u,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return tU(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return tz(this.props,e,t)}},{key:"filterOption",value:function(e,t){return tN(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"!=typeof this.props.formatOptionLabel)return this.getOptionLabel(e);var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,r=e.inputValue,a=e.tabIndex,u=e.form,l=e.menuIsOpen,d=e.required,p=this.getComponents().Input,f=this.state,h=f.inputIsHidden,m=f.ariaSelection,v=this.commonProps,g=o||this.getElementId("input"),b=(0,i.Z)((0,i.Z)((0,i.Z)({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox"},l&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?(null==m?void 0:m.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?s.createElement(p,(0,c.Z)({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:u,type:"text",value:r},b)):s.createElement(tc,(0,c.Z)({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:A,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:u,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,r=t.MultiValueRemove,a=t.SingleValue,u=t.Placeholder,l=this.commonProps,d=this.props,p=d.controlShouldRenderValue,f=d.isDisabled,h=d.isMulti,m=d.inputValue,v=d.placeholder,g=this.state,b=g.selectValue,x=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!p)return m?null:s.createElement(u,(0,c.Z)({},l,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),v);if(h)return b.map(function(t,a){var u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return s.createElement(n,(0,c.Z)({},l,{components:{Container:o,Label:i,Remove:r},isFocused:t===x,isDisabled:f,key:u,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(m)return null;var O=b[0];return s.createElement(a,(0,c.Z)({},l,{data:O,isDisabled:f}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,r=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return s.createElement(e,(0,c.Z)({},t,{innerProps:a,isFocused:r}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,r=this.state.isFocused;return e&&i?s.createElement(e,(0,c.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:r})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,i=this.props.isDisabled,r=this.state.isFocused;return s.createElement(n,(0,c.Z)({},o,{isDisabled:i,isFocused:r}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return s.createElement(e,(0,c.Z)({},t,{innerProps:i,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e,t=this,n=this.getComponents(),o=n.Group,i=n.GroupHeading,r=n.Menu,a=n.MenuList,u=n.MenuPortal,l=n.LoadingMessage,d=n.NoOptionsMessage,p=n.Option,f=this.commonProps,h=this.state.focusedOption,m=this.props,v=m.captureMenuScroll,g=m.inputValue,b=m.isLoading,x=m.loadingMessage,y=m.minMenuHeight,O=m.maxMenuHeight,C=m.menuIsOpen,Z=m.menuPlacement,w=m.menuPosition,I=m.menuPortalTarget,S=m.menuShouldBlockScroll,V=m.menuShouldScrollIntoView,E=m.noOptionsMessage,M=m.onMenuScrollToTop,R=m.onMenuScrollToBottom;if(!C)return null;var L=function(e,n){var o=e.type,i=e.data,r=e.isDisabled,a=e.isSelected,u=e.label,l=e.value,d=h===i,m=r?void 0:function(){return t.onOptionHover(i)},v="".concat(t.getElementId("option"),"-").concat(n);return s.createElement(p,(0,c.Z)({},f,{innerProps:{id:v,onClick:r?void 0:function(){return t.selectOption(i)},onMouseMove:m,onMouseOver:m,tabIndex:-1},data:i,isDisabled:r,isSelected:a,key:v,label:u,type:o,value:l,isFocused:d,innerRef:d?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())e=this.getCategorizedOptions().map(function(e){if("group"===e.type){var n=e.data,r=e.options,a=e.index,u="".concat(t.getElementId("group"),"-").concat(a),l="".concat(u,"-heading");return s.createElement(o,(0,c.Z)({},f,{key:u,data:n,options:r,Heading:i,headingProps:{id:l,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(e){return L(e,"".concat(a,"-").concat(e.index))}))}if("option"===e.type)return L(e,"".concat(e.index))});else if(b){var k=x({inputValue:g});if(null===k)return null;e=s.createElement(l,f,k)}else{var D=E({inputValue:g});if(null===D)return null;e=s.createElement(d,f,D)}var P={minMenuHeight:y,maxMenuHeight:O,menuPlacement:Z,menuPosition:w,menuShouldScrollIntoView:V},F=s.createElement(et,(0,c.Z)({},f,P),function(n){var o=n.ref,i=n.placerProps,u=i.placement,l=i.maxHeight;return s.createElement(r,(0,c.Z)({},f,P,{innerRef:o,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove,id:t.getElementId("listbox")},isLoading:b,placement:u}),s.createElement(tZ,{captureEnabled:v,onTopArrive:M,onBottomArrive:R,lockEnabled:S},function(n){return s.createElement(a,(0,c.Z)({},f,{innerRef:function(e){t.getMenuListRef(e),n(e)},isLoading:b,maxHeight:l,focusedOption:h}),e)}))});return I||"fixed"===w?s.createElement(u,(0,c.Z)({},f,{appendTo:I,controlElement:this.controlRef,menuPlacement:Z,menuPosition:w}),F):F}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,i=t.isMulti,r=t.name,a=t.required,u=this.state.selectValue;if(a&&!this.hasValue()&&!o)return s.createElement(tI,{name:r,onFocus:this.onValueInputFocus});if(r&&!o){if(i){if(n){var l=u.map(function(t){return e.getOptionValue(t)}).join(n);return s.createElement("input",{name:r,type:"hidden",value:l})}var c=u.length>0?u.map(function(t,n){return s.createElement("input",{key:"i-".concat(n),name:r,type:"hidden",value:e.getOptionValue(t)})}):s.createElement("input",{name:r,type:"hidden",value:""});return s.createElement("div",null,c)}var d=u[0]?this.getOptionValue(u[0]):"";return s.createElement("input",{name:r,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,r=t.isFocused,a=t.selectValue,u=this.getFocusableOptions();return s.createElement(e8,(0,c.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:i,isFocused:r,selectValue:a,focusableOptions:u}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,r=this.props,a=r.className,u=r.id,l=r.isDisabled,d=r.menuIsOpen,p=this.state.isFocused,f=this.commonProps=this.getCommonProps();return s.createElement(o,(0,c.Z)({},f,{className:a,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:p}),this.renderLiveRegion(),s.createElement(t,(0,c.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:p,menuIsOpen:d}),s.createElement(i,(0,c.Z)({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),s.createElement(n,(0,c.Z)({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o,r,a=t.prevProps,u=t.clearFocusValueOnUpdate,s=t.inputIsHiddenAfterUpdate,l=t.ariaSelection,c=t.isFocused,d=t.prevWasFocused,p=e.options,f=e.value,h=e.menuIsOpen,m=e.inputValue,v=e.isMulti,g=z(f),b={};if(a&&(f!==a.value||p!==a.options||h!==a.menuIsOpen||m!==a.inputValue)){var x,y,O,C,Z,w=h?tF(tP(e,g)):[],I=u?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,g):null,S=(Z=t.focusedOption)&&w.indexOf(Z)>-1?Z:w[0];b={selectValue:g,focusedOption:S,focusedValue:I,clearFocusValueOnUpdate:!1}}var V=l,E=c&&d;return c&&!E&&(V={value:(n=v,o=g,r=g[0]||null,n?o:r),options:g,action:"initial-input-focus"},E=!d),(null==l?void 0:l.action)==="initial-input-focus"&&(V=null),(0,i.Z)((0,i.Z)((0,i.Z)({},b),null!=s&&e!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{}),{},{prevProps:e,ariaSelection:V,prevWasFocused:E})}}]),n}(s.Component);tW.defaultProps=tk,n(2107);var tY=(0,s.forwardRef)(function(e,t){var n,o,r,d,p,f,h,m,v,g,b,x,y,O,C,Z,w,I,S,V,E,M,R,L,k,D,P,F,T=(o=e.defaultInputValue,r=e.defaultMenuIsOpen,d=e.defaultValue,p=e.inputValue,f=e.menuIsOpen,h=e.onChange,m=e.onInputChange,v=e.onMenuClose,g=e.onMenuOpen,b=e.value,x=(0,u.Z)(e,l),y=(0,s.useState)(void 0!==p?p:void 0===o?"":o),C=(O=a(y,2))[0],Z=O[1],w=(0,s.useState)(void 0!==f?f:void 0!==r&&r),S=(I=a(w,2))[0],V=I[1],E=(0,s.useState)(void 0!==b?b:void 0===d?null:d),R=(M=a(E,2))[0],L=M[1],k=(0,s.useCallback)(function(e,t){"function"==typeof h&&h(e,t),L(e)},[h]),D=(0,s.useCallback)(function(e,t){var n;"function"==typeof m&&(n=m(e,t)),Z(void 0!==n?n:e)},[m]),P=(0,s.useCallback)(function(){"function"==typeof g&&g(),V(!0)},[g]),F=(0,s.useCallback)(function(){"function"==typeof v&&v(),V(!1)},[v]),(0,i.Z)((0,i.Z)({},x),{},{inputValue:void 0!==p?p:C,menuIsOpen:void 0!==f?f:S,onChange:k,onInputChange:D,onMenuClose:F,onMenuOpen:P,value:void 0!==b?b:R}));return s.createElement(tW,(0,c.Z)({ref:t},T))})},926:function(e,t,n){"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,{Z:function(){return o}})},9249:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return o}})},87371:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(32802);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,o.Z)(i.key),i)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4309:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var o=n(95058),i=n(98621),r=n(86522),a=n(80753);function u(e){var t=(0,i.Z)();return function(){var n,i=(0,o.Z)(e);if(t){var u=(0,o.Z)(this).constructor;n=Reflect.construct(i,arguments,u)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,a.Z)(e)}(this,n)}}},45754:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(88960);function i(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&&(0,o.Z)(e,t)}},59740:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(31461);function i(e,t){if(null==e)return{};var n,i,r=(0,o.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}},51171:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(926),i=n(59147);function r(e){return function(e){if(Array.isArray(e))return(0,o.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},59147:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(926);function i(e,t){if(e){if("string"==typeof e)return(0,o.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,o.Z)(e,t)}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[543],{34543:function(t,r,n){n.d(r,{AlO:function(){return i},LFN:function(){return a},SnF:function(){return u},eR7:function(){return l},xqv:function(){return o}});var e=n(68281);function o(t){return(0,e.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"}}]})(t)}function i(t){return(0,e.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}},{tag:"polyline",attr:{points:"15 3 21 3 21 9"}},{tag:"line",attr:{x1:"10",y1:"14",x2:"21",y2:"3"}}]})(t)}function a(t){return(0,e.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"}}]})(t)}function l(t){return(0,e.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"}}]})(t)}function u(t){return(0,e.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"}}]})(t)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[898],{951:function(t,c,a){a.d(c,{$iz:function(){return u},CSE:function(){return h},IEK:function(){return i},JUs:function(){return e},Ypm:function(){return g},hOO:function(){return n},sQg:function(){return v}});var r=a(68281);function n(t){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M864 260H728l-32.4-90.8a32.07 32.07 0 0 0-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 260H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V340c0-44.2-35.8-80-80-80zM512 716c-88.4 0-160-71.6-160-160s71.6-160 160-160 160 71.6 160 160-71.6 160-160 160zm-96-160a96 96 0 1 0 192 0 96 96 0 1 0-192 0z"}}]})(t)}function h(t){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"}}]})(t)}function i(t){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attr:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]})(t)}function u(t){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]})(t)}function v(t){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attr:{d:"M464 688a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]})(t)}function e(t){return(0,r.w_)({tag:"svg",attr:{t:"1569683604581",viewBox:"0 0 1024 1024",version:"1.1"},child:[{tag:"defs",attr:{},child:[]},{tag:"path",attr:{d:"M508 280h-63.3c-3.3 0-6 2.7-6 6v340.2H433L197.4 282.6c-1.1-1.6-3-2.6-4.9-2.6H126c-3.3 0-6 2.7-6 6v464c0 3.3 2.7 6 6 6h62.7c3.3 0 6-2.7 6-6V405.1h5.7l238.2 348.3c1.1 1.6 3 2.6 5 2.6H508c3.3 0 6-2.7 6-6V286c0-3.3-2.7-6-6-6zM886 693H582c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM733.8 630c52.9 0 95.2-17.2 126.2-51.7 29.4-32.9 44-75.8 44-128.8 0-53.1-14.6-96.5-44-129.3-30.9-34.8-73.2-52.2-126.2-52.2-53.7 0-95.9 17.5-126.3 52.8-29.2 33.1-43.4 75.9-43.4 128.7 0 52.4 14.3 95.2 43.5 128.3 30.6 34.7 73 52.2 126.2 52.2z m-71.5-263.7c16.9-20.6 40.3-30.9 71.4-30.9 31.5 0 54.8 9.6 71 29.1 16.4 20.3 24.9 48.6 24.9 84.9 0 36.3-8.4 64.1-24.8 83.9-16.5 19.4-40 29.2-71.1 29.2-31.2 0-55-10.3-71.4-30.4-16.3-20.1-24.5-47.3-24.5-82.6 0.1-35.8 8.2-63 24.5-83.2z"}}]})(t)}function g(t){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 1 0 0-176 88 88 0 0 0 0 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"}}]})(t)}}}]);
@@ -0,0 +1,31 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[696],{29242:function(e,t,r){"use strict";r.d(t,{Oq:function(){return f},dO:function(){return o},jn:function(){return i},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,i=e.left;return{top:t,right:r,bottom:n,left:i,width:r-i,height:n-t,x:i,y:t,center:{x:(r+i)/2,y:(n+t)/2}}},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=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},s={top:0,right:0,bottom:0,left:0},o=function(e){var t=e.borderBox,r=e.margin,o=void 0===r?s:r,u=e.border,l=void 0===u?s:u,c=e.padding,f=void 0===c?s:c,d=n(i(t,o)),h=n(a(t,l)),p=n(a(h,f));return{marginBox:d,borderBox:n(t),paddingBox:h,contentBox:p,margin:o,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,n,i,a=e.borderBox,s=e.border,u=e.margin,l=e.padding;return o({borderBox:{top:a.top+t.y,left:a.left+t.x,bottom:a.bottom+t.y,right:a.right+t.x},border:s,margin:u,padding:l})},c=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),l(e,t)},f=function(e,t){var r={top:u(t.marginTop),right:u(t.marginRight),bottom:u(t.marginBottom),left:u(t.marginLeft)},n={top:u(t.paddingTop),right:u(t.paddingRight),bottom:u(t.paddingBottom),left:u(t.paddingLeft)},i={top:u(t.borderTopWidth),right:u(t.borderRightWidth),bottom:u(t.borderBottomWidth),left:u(t.borderLeftWidth)};return o({borderBox:e,margin:r,padding:n,border:i})},d=function(e){var t;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),i=r(1369);e.exports=function(e,t){return null!=e&&i(e,t,n)}},19950:function(e,t,r){var n=r(13940),i=r(26548),a=r(68286);e.exports=function(e,t){var r={};return t=a(t,3),i(e,function(e,i,a){n(r,t(e,i,a),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){return!!(e===t||r(e)&&r(t))}function i(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}t.Z=function(e,t){void 0===t&&(t=i);var r,n,a=[],s=!1;return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return s&&r===this&&t(i,a)||(n=e.apply(this,i),s=!0,r=this,a=i),n}}},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+$/,i=/^\d/,a=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,s=/^\s*(['"]?)(.*?)(\1)\s*$/,o=new t(512),u=new t(512),l=new t(512);function c(e){return o.get(e)||o.set(e,f(e).map(function(e){return e.replace(s,"$2")}))}function f(e){return e.match(r)||[""]}function d(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function h(e){var t,r;return!d(e)&&(e.match(i)&&!e.match(n)||a.test(e))}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,i=t.length,a=e;n<i-1;){var s=t[n];if("__proto__"===s||"constructor"===s||"prototype"===s)return e;a=a[t[n++]]}a[t[n]]=r})},getter:function(e,t){var r=c(e);return l.get(e)||l.set(e,function(e){for(var n=0,i=r.length;n<i;){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 n,i,a,s,o=e.length;for(i=0;i<o;i++)(n=e[i])&&(h(n)&&(n='"'+n+'"'),a=!(s=d(n))&&/^\d+$/.test(n),t.call(r,n,s,a,i,e))}(Array.isArray(e)?e:f(e),t,r)}}},26947:function(e,t){"use strict";var r=function(e){var t=[],r=null,n=function(){for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];t=i,!r&&(r=requestAnimationFrame(function(){r=null,e.apply(void 0,t)}))};return n.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},n};t.Z=r},92928:function(e,t,r){"use strict";r.d(t,{OK:function(){return T},td:function(){return F},x4:function(){return k},mQ:function(){return g}});var n,i=r(2784);function a(e){return function(t){return!!t.type&&t.type.tabsRole===e}}var s=a("Tab"),o=a("TabList"),u=a("TabPanel");function l(e,t){return i.Children.map(e,function(e){var r;return null===e?null:s(e)||o(e)||u(e)?t(e):e.props&&e.props.children&&"object"==typeof e.props.children?(0,i.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 i.Children.forEach(t,function(t){null!==t&&(s(t)||u(t)?r(t):t.props&&t.props.children&&"object"==typeof t.props.children&&(o(t)&&r(t),e(t.props.children,r)))})}(e,function(e){s(e)&&t++}),t}var d=["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName","environment","disableUpDownKeys","disableLeftRightKeys"];function h(e){return e&&"getAttribute"in e}function p(e){return h(e)&&e.getAttribute("data-rttab")}function m(e){return h(e)&&"true"===e.getAttribute("aria-disabled")}var v=function(e){var t=(0,i.useRef)([]),r=(0,i.useRef)([]),a=(0,i.useRef)();function h(t,r){if(!(t<0||t>=b())){var n;(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;h([].slice.call(t.parentNode.children).filter(p).indexOf(t),e);return}while(null!=(t=t.parentNode))}function E(e){if(!p(e))return!1;var t=e.parentElement;do{if(t===a.current)return!0;if(t.getAttribute("data-rttabs"))break;t=t.parentElement}while(t);return!1}e.children;var F=e.className,x=(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,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,d));return i.createElement("div",Object.assign({},_,{className:(0,c.Z)(F),onClick:w,onKeyDown:function(t){var r=e.direction,n=e.disableUpDownKeys,i=e.disableLeftRightKeys;if(E(t.target)){var a=e.selectedIndex,s=!1,o=!1;("Space"===t.code||32===t.keyCode||"Enter"===t.code||13===t.keyCode)&&(s=!0,o=!1,w(t)),(i||37!==t.keyCode&&"ArrowLeft"!==t.code)&&(n||38!==t.keyCode&&"ArrowUp"!==t.code)?(i||39!==t.keyCode&&"ArrowRight"!==t.code)&&(n||40!==t.keyCode&&"ArrowDown"!==t.code)?35===t.keyCode||"End"===t.code?(a=function(){for(var e=b();e--;)if(!m(g(e)))return e;return null}(),s=!0,o=!0):(36===t.keyCode||"Home"===t.code)&&(a=function(){for(var e=b(),t=0;t<e;t++)if(!m(g(t)))return t;return null}(),s=!0,o=!0):(a="rtl"===r?y(a):v(a),s=!0,o=!0):(a="rtl"===r?v(a):y(a),s=!0,o=!0),s&&t.preventDefault(),o&&h(a,t)}},ref:function(e){a.current=e,x&&x(e)},"data-rttabs":!0}),function(){var a=0,c=e.children,f=e.disabledTabClassName,d=e.focus,h=e.forceRenderTabPanel,p=e.selectedIndex,m=e.selectedTabClassName,v=e.selectedTabPanelClassName,y=e.environment;r.current=r.current||[];for(var w=r.current.length-b(),E=(0,i.useId)();w++<0;)r.current.push(""+E+r.current.length);return l(c,function(e){var c=e;if(o(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(r){n=!1}}(y);var E=y||("undefined"!=typeof window?window:void 0);n&&E&&(w=i.Children.toArray(e.props.children).filter(s).some(function(e,t){return E.document.activeElement===g(t)})),c=(0,i.cloneElement)(e,{children:l(e.props.children,function(e){var n="tabs-"+b,a=p===b,s={tabRef:function(e){t.current[n]=e},id:r.current[b],selected:a,focus:a&&(d||w)};return m&&(s.selectedClassName=m),f&&(s.disabledClassName=f),b++,(0,i.cloneElement)(e,s)})})}else if(u(e)){var F={id:r.current[a],selected:p===a};h&&(F.forceRender=h),v&&(F.selectedClassName=v),a++,c=(0,i.cloneElement)(e,F)}return c})}())};v.defaultProps={className:"react-tabs",focus:!1},v.propTypes={};var y=function(e,t){},b=function(e){var t,r=e.children,n=e.defaultFocus,a=e.defaultIndex,s=e.focusTabOnClick,o=e.onSelect,u=(0,i.useState)(n),l=u[0],c=u[1],d=(0,i.useState)(null===e.selectedIndex?1:0)[0],h=(0,i.useState)(1===d?a||0:null),p=h[0],m=h[1];if((0,i.useEffect)(function(){c(!1)},[]),1===d){var b=f(r);(0,i.useEffect)(function(){null!=p&&m(Math.min(p,Math.max(0,b-1)))},[b])}y(e,d);var g=function(e,t,r){("function"!=typeof o||!1!==o(e,t,r))&&(s&&c(!0),1===d&&m(e))},w=Object.assign({},e);return w.focus=l,w.onSelect=g,null!=p&&(w.selectedIndex=p),delete w.defaultFocus,delete w.defaultIndex,delete w.focusTabOnClick,i.createElement(v,w,r)};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,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,w);return i.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 F=E,x=["children","className","disabled","disabledClassName","focus","id","selected","selectedClassName","tabIndex","tabRef"],_="react-tabs__tab",D=function(e){var t,r=(0,i.useRef)(),n=e.children,a=e.className,s=e.disabled,o=e.disabledClassName,u=e.focus,l=e.id,f=e.selected,d=e.selectedClassName,h=e.tabIndex,p=e.tabRef,m=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,x);return(0,i.useEffect)(function(){f&&u&&r.current.focus()},[f,u]),i.createElement("li",Object.assign({},m,{className:(0,c.Z)(a,((t={})[d]=f,t[o]=s,t)),ref:function(e){r.current=e,p&&p(e)},role:"tab",id:"tab"+l,"aria-selected":f?"true":"false","aria-disabled":s?"true":"false","aria-controls":"panel"+l,tabIndex:h||(f?"0":null),"data-rttab":!0}),n)};D.propTypes={},D.tabsRole="Tab",D.defaultProps={className:_,disabledClassName:_+"--disabled",focus:!1,id:null,selected:!1,selectedClassName:_+"--selected"};var T=D,O=["children","className","forceRender","id","selected","selectedClassName"],S="react-tabs__tab-panel",C=function(e){var t,r=e.children,n=e.className,a=e.forceRender,s=e.id,o=e.selected,u=e.selectedClassName,l=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,O);return i.createElement("div",Object.assign({},l,{className:(0,c.Z)(n,((t={})[u]=o,t)),role:"tabpanel",id:"panel"+s,"aria-labelledby":"tab"+s}),a||o?r:null)};C.tabsRole="TabPanel",C.propTypes={},C.defaultProps={className:S,forceRender:!1,selectedClassName:S+"--selected"};var k=C},95159:function(e){function t(e,t){var r=e.length,n=Array(r),i={},a=r,s=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var i=e[r];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),o=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(!o.has(e[0])||!o.has(e[1]))throw Error("Unknown node. There is an unknown node in the supplied edges.")});a--;)i[a]||u(e[a],a,new Set);return n;function u(e,t,a){if(a.has(e)){var l;try{l=", node was:"+JSON.stringify(e)}catch(c){l=""}throw Error("Cyclic dependency"+l)}if(!o.has(e))throw Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var f=s.get(e)||new Set;if(t=(f=Array.from(f)).length){a.add(e);do{var d=f[--t];u(d,o.get(d),a)}while(t);a.delete(e)}n[--r]=e}}}e.exports=function(e){return t(function(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var i=e[r];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)},e.exports.array=t},31118:function(e,t,r){"use strict";r.d(t,{I4:function(){return s},Ye:function(){return a}});var n=r(2784);function i(e,t){var r=(0,n.useState)(function(){return{inputs:t,result:e()}})[0],i=(0,n.useRef)(!0),a=(0,n.useRef)(r),s=i.current||Boolean(t&&a.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,a.current.inputs))?a.current:{inputs:t,result:e()};return(0,n.useEffect)(function(){i.current=!1,a.current=s},[s]),s.result}var a=i,s=function(e,t){return i(function(){return e},t)}},65413:function(e,t,r){"use strict";r.r(t),r.d(t,{ArraySchema:function(){return eA},BaseSchema:function(){return Y},BooleanSchema:function(){return ee},DateSchema:function(){return em},MixedSchema:function(){return W},NumberSchema:function(){return ec},ObjectSchema:function(){return eC},StringSchema:function(){return eo},ValidationError:function(){return k},addMethod:function(){return ej},array:function(){return eR},bool:function(){return G},boolean:function(){return G},date:function(){return ep},isSchema:function(){return D},lazy:function(){return eI},mixed:function(){return J},number:function(){return el},object:function(){return ek},reach:function(){return B},ref:function(){return j},setLocale:function(){return eP},string:function(){return es}});try{w=Map}catch(n){}try{E=Set}catch(i){}function a(e){return function e(t,r,n){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 RegExp(t);if(Array.isArray(t))return t.map(a);if(w&&t instanceof w)return new Map(Array.from(t.entries()));if(E&&t instanceof E)return new Set(Array.from(t.values()));if(t instanceof Object){r.push(t);var i=Object.create(t);for(var s in n.push(i),t){var o=r.findIndex(function(e){return e===t[s]});i[s]=o>-1?n[o]:e(t[s],r,n)}return i}return t}(e,[],[])}let s=Object.prototype.toString,o=Error.prototype.toString,u=RegExp.prototype.toString,l="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",c=/^Symbol\((.*)\)(.*)$/;function f(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let r=typeof e;if("number"===r){var n;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 l.call(e).replace(c,"Symbol($1)");let i=s.call(e).slice(8,-1);return"Date"===i?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===i||e instanceof Error?"["+o.call(e)+"]":"RegExp"===i?u.call(e):null}function d(e,t){let r=f(e,t);return null!==r?r:JSON.stringify(e,function(e,r){let n=f(this[e],t);return null!==n?n:r},2)}let h={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 i=`${e} must be a \`${t}\` type, but the final value was: \`${d(r,!0)}\``+(null!=n&&n!==r?` (cast from the value \`${d(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"},p={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"},m={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"},v={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},y={isValue:"${path} field must be ${value}"},b={noUnknown:"${path} field has unspecified keys: ${unknown}"},g={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 w,E,F=Object.assign(Object.create(null),{mixed:h,string:p,number:m,date:v,object:b,array:g,boolean:y}),x=r(93352),_=r.n(x),D=e=>e&&e.__isYupSchema__,T=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!_()(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:i}=t,a="function"==typeof r?r:(...e)=>e.every(e=>e===r);this.fn=function(...e){let t=e.pop(),r=e.pop(),s=a(...e)?n:i;if(s)return"function"==typeof s?s(r):r.concat(s.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(!D(n))throw TypeError("conditions must return a schema object");return n.resolve(t)}};function O(e){return null==e?[]:[].concat(e)}function S(){return(S=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 C=/\$\{\s*(\w+)\s*\}/g;class k extends Error{static formatError(e,t){let r=t.label||t.path||"this";return(r!==t.path&&(t=S({},t,{path:r})),"string"==typeof e)?e.replace(C,(e,r)=>d(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=[],O(e).forEach(e=>{k.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,k)}}let N=e=>{let t=!1;return(...r)=>{t||(t=!0,e(...r))}};function R(e,t){let{endEarly:r,tests:n,args:i,value:a,errors:s,sort:o,path:u}=e,l=N(t),c=n.length,f=[];if(s=s||[],!c)return s.length?l(new k(s,a,u)):l(null,a);for(let d=0;d<n.length;d++){let h=n[d];h(i,function(e){if(e){if(!k.isError(e))return l(e,a);if(r)return e.value=a,l(e,a);f.push(e)}if(--c<=0){if(f.length&&(o&&f.sort(o),s.length&&f.push(...s),s=f),s.length){l(new k(s,a,u),a);return}l(null,a)}})}}var A=r(34519),I=r.n(A),$=r(17296);let P={context:"$",value:"."};function j(e,t){return new M(e,t)}class M{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]===P.context,this.isValue=this.key[0]===P.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?P.context:this.isValue?P.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&(0,$.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 L(){return(L=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 U(e){function t(t,r){let{value:n,path:i="",label:a,options:s,originalValue:o,sync:u}=t,l=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(i[r]=e[r]);return i}(t,["value","path","label","options","originalValue","sync"]),{name:c,test:f,params:d,message:h}=e,{parent:p,context:m}=s;function v(e){return M.isRef(e)?e.getValue(n,p,m):e}function y(e={}){let t=I()(L({value:n,originalValue:o,label:a,path:e.path||i},d,e.params),v),r=new k(k.formatError(e.message||h,t),n,t.path,e.type||c);return r.params=t,r}let b=L({path:i,parent:p,type:c,createError:y,resolve:v,options:s,originalValue:o},l);if(!u){try{Promise.resolve(f.call(b,n,b)).then(e=>{k.isError(e)?r(e):e?r(null,e):r(y())}).catch(r)}catch(g){r(g)}return}let w;try{var E;if(w=f.call(b,n,b),"function"==typeof(null==(E=w)?void 0:E.then))throw Error(`Validation test of type: "${b.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(F){r(F);return}k.isError(w)?r(w):w?r(null,w):r(y())}return t.OPTIONS=e,t}M.prototype.__isYupRef=!0;let z=e=>e.substr(0,e.length-1).substr(1);function V(e,t,r,n=r){let i,a,s;return t?((0,$.forEach)(t,(o,u,l)=>{let c=u?z(o):o;if((e=e.resolve({context:n,parent:i,value:r})).innerType){let f=l?parseInt(c,10):0;if(r&&f>=r.length)throw Error(`Yup.reach cannot resolve an array item at index: ${o}, in the path: ${t}. because there is no value at that index. `);i=r,r=r&&r[f],e=e.innerType}if(!l){if(!e.fields||!e.fields[c])throw Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e._type}")`);i=r,r=r&&r[c],e=e.fields[c]}a=c,s=u?"["+o+"]":"."+o}),{schema:e,parent:i,parentPath:a}):{parent:i,parentPath:t,schema:e}}var B=(e,t,r,n)=>V(e,t,r,n).schema;class q{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[,r]of this.refs)e.push(r.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(M.isRef(r)?e(r):r),[])}add(e){M.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){M.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new q;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 K(){return(K=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 Y{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 q,this._blacklist=new q,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(h.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=K({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=K({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=a(K({},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=K({},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(K({value:e},t)),n=r._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==r.isType(n)){let i=d(e),a=d(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: ${i}
4
+ `+(a!==i?`result of cast: ${a}`:""))}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:i,from:a=[],originalValue:s=e,strict:o=this.spec.strict,abortEarly:u=this.spec.abortEarly}=t,l=e;o||(l=this._cast(l,K({assert:!1},t)));let c={value:l,path:i,options:t,originalValue:s,schema:this,label:this.spec.label,sync:n,from:a},f=[];this._typeError&&f.push(this._typeError);let d=[];this._whitelistError&&d.push(this._whitelistError),this._blacklistError&&d.push(this._blacklistError),R({args:c,value:l,path:i,sync:n,tests:f,endEarly:u},e=>{if(e)return void r(e,l);R({tests:this.tests.concat(d),args:c,path:i,sync:n,value:l,endEarly:u},r)})}validate(e,t,r){let n=this.resolve(K({},t,{value:e}));return"function"==typeof r?n._validate(e,t,r):new Promise((r,i)=>n._validate(e,t,(e,t)=>{e?i(e):r(t)}))}validateSync(e,t){let r;return this.resolve(K({},t,{value:e}))._validate(e,K({},t,{sync:!0}),(e,t)=>{if(e)throw e;r=t}),r}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(k.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(r){if(k.isError(r))return!1;throw r}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):a(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=h.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=h.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=h.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let r=this.clone(),n=U(t),i=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||!i&&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=O(e).map(e=>new M(e));return n.forEach(e=>{e.isSibling&&r.deps.push(e.key)}),r.conditions.push(new T(n,t)),r}typeError(e){let t=this.clone();return t._typeError=U({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=h.oneOf){let r=this.clone();return e.forEach(e=>{r._whitelist.add(e),r._blacklist.delete(e)}),r._whitelistError=U({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=h.notOneOf){let r=this.clone();return e.forEach(e=>{r._blacklist.add(e),r._whitelist.delete(e)}),r._blacklistError=U({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,n={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)};return n}}for(let Z of(Y.prototype.__isYupSchema__=!0,["validate","validateSync"]))Y.prototype[`${Z}At`]=function(e,t,r={}){let{parent:n,parentPath:i,schema:a}=V(this,e,t,r.context);return a[Z](n&&n[i],K({},r,{parent:n,path:e}))};for(let X of["equals","is"])Y.prototype[X]=Y.prototype.oneOf;for(let H of["not","nope"])Y.prototype[H]=Y.prototype.notOneOf;Y.prototype.optional=Y.prototype.notRequired;var W=Y;function J(){return new Y}J.prototype=Y.prototype;var Q=e=>null==e;function G(){return new ee}class ee extends Y{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=y.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>Q(e)||!0===e})}isFalse(e=y.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>Q(e)||!1===e})}}G.prototype=ee.prototype;let et=/^((([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,er=/^((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,en=/^(?:[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,ei=e=>Q(e)||e===e.trim(),ea=({}).toString();function es(){return new eo}class eo extends Y{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===ea?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=p.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return Q(t)||t.length===this.resolve(e)}})}min(e,t=p.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return Q(t)||t.length>=this.resolve(e)}})}max(e,t=p.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return Q(t)||t.length<=this.resolve(e)}})}matches(e,t){let r=!1,n,i;return t&&("object"==typeof t?{excludeEmptyString:r=!1,message:n,name:i}=t:n=t),this.test({name:i||"matches",message:n||p.matches,params:{regex:e},test:t=>Q(t)||""===t&&r||-1!==t.search(e)})}email(e=p.email){return this.matches(et,{name:"email",message:e,excludeEmptyString:!0})}url(e=p.url){return this.matches(er,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=p.uuid){return this.matches(en,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=p.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:ei})}lowercase(e=p.lowercase){return this.transform(e=>Q(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>Q(e)||e===e.toLowerCase()})}uppercase(e=p.uppercase){return this.transform(e=>Q(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>Q(e)||e===e.toUpperCase()})}}es.prototype=eo.prototype;let eu=e=>e!=+e;function el(){return new ec}class ec extends Y{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&&!eu(e)}min(e,t=m.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return Q(t)||t>=this.resolve(e)}})}max(e,t=m.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return Q(t)||t<=this.resolve(e)}})}lessThan(e,t=m.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return Q(t)||t<this.resolve(e)}})}moreThan(e,t=m.moreThan){return this.test({message:t,name:"min",exclusive:!0,params:{more:e},test(t){return Q(t)||t>this.resolve(e)}})}positive(e=m.positive){return this.moreThan(0,e)}negative(e=m.negative){return this.lessThan(0,e)}integer(e=m.integer){return this.test({name:"integer",message:e,test:e=>Q(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>Q(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=>Q(t)?t:Math[e](t))}}el.prototype=ec.prototype;var ef=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let ed=new Date(""),eh=e=>"[object Date]"===Object.prototype.toString.call(e);function ep(){return new em}class em extends Y{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],i=0;if(r=ef.exec(e)){for(var a,s=0;a=n[s];++s)r[a]=+r[a]||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]&&(i=60*r[10]+r[11],"+"===r[9]&&(i=0-i)),t=Date.UTC(r[1],r[2],r[3],r[4],r[5]+i,r[6],r[7]))}else t=Date.parse?Date.parse(e):NaN;return t}(e))?ed:new Date(e)})})}_typeCheck(e){return eh(e)&&!isNaN(e.getTime())}prepareParam(e,t){let r;if(M.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=v.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return Q(e)||e>=this.resolve(r)}})}max(e,t=v.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return Q(e)||e<=this.resolve(r)}})}}em.INVALID_DATE=ed,ep.prototype=em.prototype,ep.INVALID_DATE=ed;var ev=r(57370),ey=r.n(ev),eb=r(96009),eg=r.n(eb),ew=r(19950),eE=r.n(ew),eF=r(95159),ex=r.n(eF);function e_(e,t){let r=1/0;return e.some((e,n)=>{var i;if((null==(i=t.path)?void 0:i.indexOf(e))!==-1)return r=n,!0}),r}function eD(e){return(t,r)=>e_(e,t)-e_(e,r)}function eT(){return(eT=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 eO=e=>"[object Object]"===Object.prototype.toString.call(e),eS=eD([]);class eC extends Y{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=eS,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 eO(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 i=this.fields,a=null!=(r=t.stripUnknown)?r:this.spec.noUnknown,s=this._nodes.concat(Object.keys(n).filter(e=>-1===this._nodes.indexOf(e))),o={},u=eT({},t,{parent:o,__validating:t.__validating||!1}),l=!1;for(let c of s){let f=i[c],d=_()(n,c);if(f){let h,p=n[c];u.path=(t.path?`${t.path}.`:"")+c;let m="spec"in(f=f.resolve({value:p,context:t.context,parent:o}))?f.spec:void 0,v=null==m?void 0:m.strict;if(null==m?void 0:m.strip){l=l||c in n;continue}void 0!==(h=t.__validating&&v?n[c]:f.cast(n[c],u))&&(o[c]=h)}else d&&!a&&(o[c]=n[c]);o[c]!==n[c]&&(l=!0)}return l?o:n}_validate(e,t={},r){let n=[],{sync:i,from:a=[],originalValue:s=e,abortEarly:o=this.spec.abortEarly,recursive:u=this.spec.recursive}=t;a=[{schema:this,value:s},...a],t.__validating=!0,t.originalValue=s,t.from=a,super._validate(e,t,(e,l)=>{if(e){if(!k.isError(e)||o)return void r(e,l);n.push(e)}if(!u||!eO(l)){r(n[0]||null,l);return}s=s||l;let c=this._nodes.map(e=>(r,n)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,o=this.fields[e];if(o&&"validate"in o){o.validate(l[e],eT({},t,{path:i,from:a,strict:!0,parent:l,originalValue:s[e]}),n);return}n(null)});R({sync:i,tests:c,value:l,errors:n,endEarly:o,sort:this._sortErrors,path:t.path},r)})}clone(e){let t=super.clone(e);return t.fields=eT({},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[n,i]of Object.entries(this.fields)){let a=r[n];void 0===a?r[n]=i:a instanceof Y&&i instanceof Y&&(r[n]=i.concat(a))}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=eD(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,i=new Set(t.map(([e,t])=>`${e}-${t}`));function a(e,t){let a=(0,$.split)(e)[0];n.add(a),i.has(`${t}-${a}`)||r.push([t,a])}for(let s in e)if(_()(e,s)){let o=e[s];n.add(s),M.isRef(o)&&o.isSibling?a(o.path,s):D(o)&&"deps"in o&&o.deps.forEach(e=>a(e,s))}return ex().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,$.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let a=i;return _()(i,e)&&(a=eT({},i),r||delete a[e],a[t]=n(i)),a})}noUnknown(e=!0,t=b.noUnknown){"string"==typeof e&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){var r,n;if(null==t)return!0;let i,a=(i=Object.keys((r=this.schema).fields),Object.keys(t).filter(e=>-1===i.indexOf(e)));return!e||0===a.length||this.createError({params:{unknown:a.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=b.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&eE()(t,(t,r)=>e(r)))}camelCase(){return this.transformKeys(eg())}snakeCase(){return this.transformKeys(ey())}constantCase(){return this.transformKeys(e=>ey()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=I()(this.fields,e=>e.describe()),e}}function ek(e){return new eC(e)}function eN(){return(eN=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 eR(e){return new eA(e)}ek.prototype=eC.prototype;class eA extends Y{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,i=r.map((e,r)=>{let i=this.innerType.cast(e,eN({},t,{path:`${t.path||""}[${r}]`}));return i!==e&&(n=!0),i});return n?i:r}_validate(e,t={},r){var n,i;let a=[],s=t.sync,o=t.path,u=this.innerType,l=null!=(n=t.abortEarly)?n:this.spec.abortEarly,c=null!=(i=t.recursive)?i:this.spec.recursive,f=null!=t.originalValue?t.originalValue:e;super._validate(e,t,(e,n)=>{if(e){if(!k.isError(e)||l)return void r(e,n);a.push(e)}if(!c||!u||!this._typeCheck(n)){r(a[0]||null,n);return}f=f||n;let i=Array(n.length);for(let d=0;d<n.length;d++){let h=n[d],p=`${t.path||""}[${d}]`,m=eN({},t,{path:p,strict:!0,parent:n,index:d,originalValue:f[d]});i[d]=(e,t)=>u.validate(h,m,t)}R({sync:s,path:o,value:n,errors:a,endEarly:l,tests:i},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(!D(e))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+d(e));return t.innerType=e,t}length(e,t=g.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return Q(t)||t.length===this.resolve(e)}})}min(e,t){return t=t||g.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return Q(t)||t.length>=this.resolve(e)}})}max(e,t){return t=t||g.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return Q(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 eI(e){return new e$(e)}eR.prototype=eA.prototype;class e${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(!D(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 eP(e){Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(r=>{F[t][r]=e[t][r]})})}function ej(e,t,r){if(!e||!D(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}},5446:function(e,t,r){"use strict";r.d(t,{v2:function(){return e_},j2:function(){return eD},sN:function(){return eO},qy:function(){return eC}});var n,i=r(2784),a=r.t(i,2);/**
5
+ * @reach/utils v0.18.0
6
+ *
7
+ * Copyright (c) 2018-2022, React Training LLC
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE.md file in the root directory of this source tree.
11
+ *
12
+ * @license MIT
13
+ */ function s(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}function o(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,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}"`)}}}function f(...e){return(0,i.useCallback)(t=>{for(let r of e)c(r,t)},e)}function d(e){return s()?e?e.ownerDocument:document:null}function h(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 m(){}function v(){let[,e]=(0,i.useState)(Object.create(null));return(0,i.useCallback)(()=>{e(Object.create(null))},[])}var y=s()?i.useLayoutEffect:i.useEffect;function b(e){let t=(0,i.useRef)(null);return(0,i.useEffect)(()=>{t.current=e},[e]),t.current}var g=r(28316),w=({children:e,type:t="reach-portal",containerRef:r})=>{let n=i.useRef(null),a=i.useRef(null),s=v();return i.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]),y(()=>{if(!n.current)return;let e=n.current.ownerDocument,i=r?.current||e.body;return a.current=e?.createElement(t),i.appendChild(a.current),s(),()=>{a.current&&i&&i.removeChild(a.current)}},[t,s,r]),a.current?(0,g.createPortal)(e,a.current):i.createElement("span",{ref:n})},E=({unstable_skipInitialRender:e,...t})=>{let[r,n]=i.useState(!1);return(i.useEffect(()=>{e&&n(!0)},[e]),e&&!r)?null:i.createElement(w,{...t})};E.displayName="Portal";var F=["bottom","height","left","right","top","width"],x=new Map,_=function e(){var t=[];x.forEach(function(e,r){var n,i,a=r.getBoundingClientRect();n=a,i=e.rect,void 0===n&&(n={}),void 0===i&&(i={}),F.some(function(e){return n[e]!==i[e]})&&(e.rect=a,t.push(e))}),t.forEach(function(e){e.callbacks.forEach(function(t){return t(e.rect)})}),n=window.requestAnimationFrame(e)};function D(e,t,r){let a,s;u(t)?a=t:(a=t?.observe??!0,s=t?.onChange),l(r)&&(s=r),i.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]),i.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[o,c]=i.useState(e.current),f=i.useRef(!1),d=i.useRef(!1),[h,p]=i.useState(null),m=i.useRef(s);return y(()=>{m.current=s,e.current!==o&&c(e.current)}),y(()=>{o&&!f.current&&(f.current=!0,p(o.getBoundingClientRect()))},[o]),y(()=>{var t,r;if(!a)return;let i=o;if(d.current||(d.current=!0,i=e.current),!i){console.warn("You need to place the ref");return}let s=(t=i,r=e=>{m.current?.(e),p(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&&_()},unobserve:function(){var e=x.get(t);if(e){var i=e.callbacks.indexOf(r);i>=0&&e.callbacks.splice(i,1),e.callbacks.length||x.delete(t),x.size||cancelAnimationFrame(n)}}});return s.observe(),()=>{s.unobserve()}},[a,o,e]),h}var T='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(T));return t&&S.call(e,T)&&n.unshift(e),n=n.filter(r)},N=function e(t,r,n){for(var i=[],a=Array.from(t);a.length;){var s=a.shift();if("SLOT"===s.tagName){var o=s.assignedElements(),u=o.length?o:s.children,l=e(u,!0,n);n.flatten?i.push.apply(i,l):i.push({scope:s,candidates:l})}else{S.call(s,T)&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var c=s.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(s),f=!n.shadowRootFilter||n.shadowRootFilter(s);if(c&&f){var d=e(!0===c?s.children:c.children,!0,n);n.flatten?i.push.apply(i,d):i.push({scope:s,candidates:d})}else a.unshift.apply(a,s.children)}}return i},R=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},A=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},I=function(e){return"INPUT"===e.tagName},$=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},P=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(i){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",i.message),!1}var a=$(t,e.form);return!a||a===e},j=function(e){var t;return I(e)&&"radio"===e.type&&!P(e)},M=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return 0===r&&0===n},L=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=S.call(e,"details>summary:first-of-type")?e.parentElement:e;if(S.call(i,"details:not([open]) *"))return!0;var a=C(e).host,s=(null==a?void 0:a.ownerDocument.contains(a))||e.ownerDocument.contains(e);if(r&&"full"!==r){if("non-zero-area"===r)return M(e)}else{if("function"==typeof n){for(var o=e;e;){var u=e.parentElement,l=C(e);if(u&&!u.shadowRoot&&!0===n(u))return M(e);e=e.assignedSlot?e.assignedSlot:u||l===e.ownerDocument?u:l.host}e=o}if(s)return!e.getClientRects().length}return!1},U=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},z=function(e,t){var r,n;return!(t.disabled||I(t)&&"hidden"===t.type||L(t,e)||(n=t,"DETAILS"===n.tagName&&Array.prototype.slice.apply(n.children).some(function(e){return"SUMMARY"===e.tagName}))||U(t))},V=function(e,t){return!(j(t)||0>R(t))&&!!z(e,t)},B=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},q=function e(t){var r=[],n=[];return t.forEach(function(t,i){var a=!!t.scope,s=a?t.scope:t,o=R(s,a),u=a?e(t.candidates):s;0===o?a?r.push.apply(r,u):r.push(s):n.push({documentOrder:i,tabIndex:o,item:t,isScope:a,content:u})}),n.sort(A).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(r)},K=function(e,t){var r;return r=(t=t||{}).getShadowRoot?N([e],t.includeContainer,{filter:V.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:B}):k(e,t.includeContainer,V.bind(null,t)),q(r)},Y=i.forwardRef(function({unstable_skipInitialPortalRender:e,...t},r){return i.createElement(E,{unstable_skipInitialRender:e},i.createElement(Z,{ref:r,...t}))});Y.displayName="Popover";var Z=i.forwardRef(function({as:e="div",targetRef:t,position:r=X,unstable_observableRefs:n=[],...a},s){let o=i.useRef(null),u=D(o,{observe:!a.hidden}),l=D(t,{observe:!0}),c=f(o,s);return function(e,t){let r=d(e.current);function n(n){if("Tab"!==n.key||!t.current||0!==K(t.current).length){var i,s;"Tab"===n.key&&n.shiftKey?function(e){if(!e.shiftKey)return;let t=a();return e.target===t}(n)?function(e){let r=t.current&&K(t.current),n=r&&r[r.length-1];n&&(e.preventDefault(),n.focus())}(n):function(e){let r=t.current&&K(t.current);return!!r&&0!==r.length&&e.target===r[0]}(n)?(i=n,i.preventDefault(),e.current?.focus()):(s=n,s.target===K(r)[0]&&o()):"Tab"===n.key&&(e.current&&e.current===r.activeElement?function(e){let r=t.current&&K(t.current);r&&r[0]&&(e.preventDefault(),r[0].focus())}(n):function(){let e=!!t.current&&t.current.contains(r.activeElement||null);if(e){let n=t.current&&K(t.current);return Boolean(n&&n[n.length-1]===r.activeElement)}return!1}()?function(e){let t=a();t&&(e.preventDefault(),t.focus())}(n):function(e){let n=t.current?K(r).filter(e=>!t.current.contains(e)):null;return!!n&&e.target===n[n.length-1]}(n)&&o())}}function a(){let n=K(r),i=n&&e.current?n.indexOf(e.current):-1,a=n&&n[i+1];return!(t.current&&t.current.contains(a||null))&&a}i.useEffect(()=>(r.addEventListener("keydown",n),()=>{r.removeEventListener("keydown",n)}),[]);let s=[];function o(){let e=t.current&&K(t.current);e&&(e.forEach(e=>{s.push([e,e.tabIndex]),e.tabIndex=-1}),r.addEventListener("focusin",u))}function u(){r.removeEventListener("focusin",u),s.forEach(([e,t])=>{e.tabIndex=t})}}(t,o),i.createElement(e,{"data-reach-popover":"",ref:c,...a,style:{position:"absolute",...function(e,t,r,...n){return r?e(t,r,...n.map(e=>e.current)):{visibility:"hidden"}}(r,l,u,...n),...a.style}})});Z.displayName="PopoverImpl";var X=(e,t)=>{var r,n,i;if(!e||!t)return{};let{directionRight:a,directionUp:s}=function(e,t,r=0,n=0){let i={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},a=i.right&&!i.left,s=i.left&&!i.right,o=i.bottom&&!i.top,u=i.top&&!i.bottom;return{directionRight:a,directionLeft:s,directionUp:o,directionDown:u}}(e,t);return{left:a?`${e.right-t.width+window.pageXOffset}px`:`${e.left+window.pageXOffset}px`,top:s?`${e.top-t.height+window.pageYOffset}px`:`${e.top+e.height+window.pageYOffset}px`}},H=!1,W=0;function J(){return++W}var Q=a["useId".toString()];function G({context:e,children:t,items:r,set:n}){let a=i.useCallback(({element:e,index:t,...r})=>e?(n(n=>{if(null!=t&&-1!==t)return et(n,{element:e,index:t,...r},t);if(0===n.length)return[{...r,element:e,index:0}];if(n.find(t=>t.element===e)){var i;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."),(i=n).sort((e,t)=>e.element&&t.element?ee(e.element,t.element)?-1:1:0).map((e,t)=>({...e,index:t}))}let a=function(e,t){if(!t||!e.length)return -1;let r=e.length;for(;r--;){let n=e[r].element;if(n&&ee(n,t))return r+1}return -1}(n,e),s;return -1===a?[...n,{...r,element:e,index:n.length}]:et(n,{...r,element:e,index:a},a)}),()=>{e&&n(t=>t.filter(t=>e!==t.element))}):m,[]);return i.createElement(e.Provider,{value:i.useMemo(()=>({descendants:r,registerDescendant:a}),[r,a])},t)}function ee(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function et(e,t,r){return null!=r&&r in e?[...e.slice(0,r),t,...e.slice(r)]:[...e,t]}/**
14
+ * @reach/dropdown v0.18.0
15
+ *
16
+ * Copyright (c) 2018-2022, React Training LLC
17
+ *
18
+ * This source code is licensed under the MIT license found in the
19
+ * LICENSE.md file in the root directory of this source tree.
20
+ *
21
+ * @license MIT
22
+ */ var er="CLEAR_SELECTION_INDEX",en="CLICK_MENU_ITEM",ei="CLOSE_MENU",ea="OPEN_MENU_AT_INDEX",es="OPEN_MENU_CLEARED",eo="SEARCH_FOR_ITEM",eu="SELECT_ITEM_AT_INDEX",el="SET_BUTTON_ID",ec=/**
23
+ * @reach/descendants v0.18.0
24
+ *
25
+ * Copyright (c) 2018-2022, React Training LLC
26
+ *
27
+ * This source code is licensed under the MIT license found in the
28
+ * LICENSE.md file in the root directory of this source tree.
29
+ *
30
+ * @license MIT
31
+ */ function(e,t={}){let r=i.createContext({descendants:[],registerDescendant:()=>m,...t});return r.displayName=e,r}("DropdownDescendantContext"),[ef,ed]=function(e,t){let r=i.createContext(t);function n(e){let{children:t,...n}=e,a=i.useMemo(()=>n,Object.values(n));return i.createElement(r.Provider,{value:a},t)}return r.displayName=`${e}Context`,n.displayName=`${e}Provider`,[n,function(n){let a=i.useContext(r);if(a)return a;if(t)return t;throw Error(`${n} must be rendered inside of a ${e} component.`)}]}("Dropdown"),eh={triggerId:null,isExpanded:!1,typeaheadQuery:"",selectionIndex:-1},ep=({id:e,children:t})=>{let r=i.useRef(null),n=i.useRef(null),a=i.useRef(null),[s,o]=i.useState([]),u=function(e){if(void 0!==Q){let t=Q();return e??t}let r=e??(H?J():null),[n,a]=i.useState(r);return y(()=>{null===n&&a(J())},[]),i.useEffect(()=>{!1===H&&(H=!0)},[]),e??n??void 0}(e),c=e||p("menu",u),f=p("menu-button",c),[d,h]=i.useReducer(eE,{...eh,triggerId:f}),m=i.useRef(!1),v=i.useRef([]),b=i.useRef(!1),g=i.useRef({x:0,y:0});return i.useEffect(()=>{d.isExpanded?(window.__REACH_DISABLE_TOOLTIPS=!0,window.requestAnimationFrame(()=>{ew(n.current)})):window.__REACH_DISABLE_TOOLTIPS=!1},[d.isExpanded]),i.createElement(G,{context:ec,items:s,set:o},i.createElement(ef,{dispatch:h,dropdownId:c,dropdownRef:n,mouseDownStartPosRef:g,popoverRef:a,readyToSelect:b,selectCallbacks:v,state:d,triggerClickedRef:m,triggerRef:r},l(t)?t({isExpanded:d.isExpanded,isOpen:d.isExpanded}):t))};function em({onKeyDown:e,onMouseDown:t,id:r,ref:n,...a}){let{dispatch:s,dropdownId:u,mouseDownStartPosRef:l,triggerClickedRef:c,triggerRef:d,state:{triggerId:m,isExpanded:v}}=ed("useDropdownTrigger"),y=f(d,n),b=eF(),g=i.useMemo(()=>b.findIndex(e=>!e.disabled),[b]);return i.useEffect(()=>{null!=r&&r!==m&&s({type:el,payload:r})},[m,s,r]),i.useEffect(()=>{null==r&&s({type:el,payload:p("menu-button",u)})},[u,s,r]),{data:{isExpanded:v,controls:u},props:{...a,ref:y,id:m||void 0,onKeyDown:o(e,function(e){switch(e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),s({type:ea,payload:{index:g}});break;case"Enter":case" ":s({type:ea,payload:{index:g}})}}),onMouseDown:o(t,function(e){!h(e.nativeEvent)&&(l.current={x:e.clientX,y:e.clientY},v||(c.current=!0),v?s({type:ei}):s({type:es}))}),type:"button"}}}function ev({index:e,isLink:t=!1,onClick:r,onDragStart:n,onMouseDown:a,onMouseEnter:s,onMouseLeave:u,onMouseMove:l,onMouseUp:c,onSelect:p,disabled:m,onFocus:b,valueText:g,ref:w,...E}){let{dispatch:F,dropdownRef:x,mouseDownStartPosRef:_,readyToSelect:D,selectCallbacks:T,triggerRef:O,state:{selectionIndex:S,isExpanded:C}}=ed("useDropdownItem"),k=i.useRef(null),[N,R]=i.useState(g||""),A=i.useCallback(e=>{!g&&e?.textContent&&R(e.textContent)},[g]),I=i.useRef(!1),[$,P]=function(e,t){let[r,n]=(0,i.useState)(null);return[r,(0,i.useCallback)(t=>{e.current=t,n(t)},[])]}(k,null),j=function(e,t,r){let n=v(),{registerDescendant:a,descendants:s}=i.useContext(t),o=r??s.findIndex(t=>t.element===e.element);return y(()=>(e.element||n(),a({...e,index:o})),[e,n,o,a,...Object.values(e)]),o}(i.useMemo(()=>({element:$,key:N,disabled:m,isLink:t}),[m,$,t,N]),ec,e),M=j===S&&!m,L=f(w,P,A);function U(){ew(O.current),p&&p(),F({type:en})}return T.current[j]=p,i.useEffect(()=>{if(C){let e=window.setTimeout(()=>{D.current=!0},400);return()=>{window.clearTimeout(e)}}D.current=!1},[C,D]),i.useEffect(()=>{let e=d(k.current);return e.addEventListener("mouseup",t),()=>{e.removeEventListener("mouseup",t)};function t(){I.current=!1}},[]),{data:{disabled:m},props:{id:eg(j),tabIndex:-1,...E,ref:L,"data-disabled":m?"":void 0,"data-selected":M?"":void 0,"data-valuetext":N,onClick:o(r,function(e){!h(e.nativeEvent)&&t&&(m?e.preventDefault():U())}),onDragStart:o(n,function(e){t&&e.preventDefault()}),onMouseDown:o(a,function(e){!h(e.nativeEvent)&&(t?I.current=!0:e.preventDefault())}),onMouseEnter:o(s,function(e){let t=d(x.current);M||null==j||m||(x?.current&&x.current!==t.activeElement&&k.current!==t.activeElement&&x.current.focus(),F({type:eu,payload:{index:j}}))}),onMouseLeave:o(u,function(e){F({type:er})}),onMouseMove:o(l,function(e){if(!D.current){let t=Math.abs(e.clientX-_.current.x),r=Math.abs(e.clientY-_.current.y);(t>8||r>8)&&(D.current=!0)}M||null==j||m||F({type:eu,payload:{index:j,dropdownRef:x}})}),onFocus:o(b,function(){D.current=!0,M||null==j||m||F({type:eu,payload:{index:j}})}),onMouseUp:o(c,function(e){if(!h(e.nativeEvent)){if(!D.current){D.current=!0;return}t?I.current?I.current=!1:k.current&&k.current.click():m||U()}})}}}function ey({id:e,onKeyDown:t,ref:r,...n}){let{dispatch:a,triggerRef:s,dropdownRef:u,selectCallbacks:l,dropdownId:c,state:{isExpanded:d,triggerId:h,selectionIndex:p,typeaheadQuery:m}}=ed("useDropdownItems"),v=eF(),y=f(u,r);i.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&&a({type:eu,payload:{index:e,dropdownRef:u}});let t=window.setTimeout(()=>m&&a({type:eo,payload:""}),1e3);return()=>window.clearTimeout(t)},[a,v,m,u]);let g=b(v.length),w=b(v[p]),E=b(p);i.useEffect(()=>{p>v.length-1?a({type:eu,payload:{index:v.length-1,dropdownRef:u}}):g!==v.length&&p>-1&&w&&E===p&&v[p]!==w&&a({type:eu,payload:{index:v.findIndex(e=>e.key===w?.key),dropdownRef:u}})},[u,a,v,g,w,E,p]);let F=o(function(e){let{key:t}=e;if(d)switch(t){case"Enter":case" ":let r=v.find(e=>e.index===p);r&&!r.disabled&&(e.preventDefault(),r.isLink&&r.element?r.element.click():(ew(s.current),l.current[r.index]&&l.current[r.index](),a({type:en})));break;case"Escape":ew(s.current),a({type:ei});break;case"Tab":e.preventDefault();break;default:var n;"string"==typeof t&&1===t.length&&a({type:eo,payload:m+t.toLowerCase()})}},function(e,t){let{descendants:r}=i.useContext(e),{callback:n,currentIndex:a,filter:s,key:o="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=a??-1,i=s?r.filter(s):r;if(!i.length)return;let f=i.findIndex(e=>e.index===a);function d(){return t===m().index?l?p():i[f]:i[(f+1)%i.length]}function h(){return t===p().index?l?m():i[f]:i[(f-1+i.length)%i.length]}function p(){return i[0]}function m(){return i[i.length-1]}switch(e.key){case"ArrowDown":if("vertical"===u||"both"===u){e.preventDefault();let v=d();n("option"===o?v:v[o])}break;case"ArrowUp":if("vertical"===u||"both"===u){e.preventDefault();let y=h();n("option"===o?y:y[o])}break;case"ArrowLeft":if("horizontal"===u||"both"===u){e.preventDefault();let b=(c?d:h)();n("option"===o?b:b[o])}break;case"ArrowRight":if("horizontal"===u||"both"===u){e.preventDefault();let g=(c?h:d)();n("option"===o?g:g[o])}break;case"PageUp":e.preventDefault();let w=(e.ctrlKey?h:p)();n("option"===o?w:w[o]);break;case"Home":e.preventDefault();let E=p();n("option"===o?E:E[o]);break;case"PageDown":e.preventDefault();let F=(e.ctrlKey?d:m)();n("option"===o?F:F[o]);break;case"End":e.preventDefault();let x=m();n("option"===o?x:x[o])}}}(ec,{currentIndex:p,orientation:"vertical",rotate:!1,filter:e=>!e.disabled,callback(e){a({type:eu,payload:{index:e,dropdownRef:u}})},key:"index"}));return{data:{activeDescendant:eg(p)||void 0,triggerId:h},props:{tabIndex:-1,...n,ref:y,id:c,onKeyDown:o(t,F)}}}function eb({onBlur:e,portal:t=!0,position:r,ref:n,...a}){let{triggerRef:s,triggerClickedRef:u,dispatch:l,dropdownRef:c,popoverRef:h,state:{isExpanded:p}}=ed("useDropdownPopover"),m=f(h,n);return i.useEffect(()=>{if(!p)return;let e=d(h.current);function t(e){var t,r;u.current?u.current=!1:(t=h.current,r=e.target,!!(t&&t.contains(r))||l({type:ei}))}return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}},[u,s,l,c,h,p]),{data:{portal:t,position:r,targetRef:s,isExpanded:p},props:{ref:m,hidden:!p,onBlur:o(e,e=>{!e.currentTarget.contains(e.relatedTarget)&&l({type:ei})}),...a}}}function eg(e){let{dropdownId:t}=ed("useItemId");return null!=e&&e>-1?p(`option-${e}`,t):void 0}function ew(e){e&&e.focus()}function eE(e,t={}){switch(t.type){case en:case ei:return{...e,isExpanded:!1,selectionIndex:-1};case"OPEN_MENU_AT_FIRST_ITEM":return{...e,isExpanded:!0,selectionIndex:0};case ea:return{...e,isExpanded:!0,selectionIndex:t.payload.index};case es:return{...e,isExpanded:!0,selectionIndex:-1};case eu:{let{dropdownRef:r={current:null}}=t.payload;if(t.payload.index>=0&&t.payload.index!==e.selectionIndex){if(r.current){let n=d(r.current);r.current!==n?.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 er:return{...e,selectionIndex:-1};case el:return{...e,triggerId:t.payload};case eo:if(void 0!==t.payload)return{...e,typeaheadQuery:t.payload};return e;default:return e}}function eF(){var e;return i.useContext(ec).descendants}ep.displayName="DropdownProvider",i.forwardRef(({as:e="button",...t},r)=>{let{props:n}=em({...t,ref:r});return i.createElement(e,{"data-reach-dropdown-trigger":"",...n})}).displayName="DropdownTrigger",i.forwardRef(({as:e="div",...t},r)=>{let{props:n}=ev({...t,ref:r});return i.createElement(e,{"data-reach-dropdown-item":"",...n})}).displayName="DropdownItem",i.forwardRef(({as:e="div",...t},r)=>{let{props:n}=ey({...t,ref:r});return i.createElement(e,{"data-reach-dropdown-items":"",...n})}).displayName="DropdownItems",i.forwardRef(({as:e="div",...t},r)=>{let{data:{portal:n,targetRef:a,position:s},props:o}=eb({...t,ref:r}),u={"data-reach-dropdown-popover":""};return n?i.createElement(Y,{...o,...u,as:e,targetRef:a,position:s,unstable_skipInitialPortalRender:!0}):i.createElement(e,{...o,...u})}).displayName="DropdownPopover";var ex=r(48570),e_=i.forwardRef(({as:e=i.Fragment,id:t,children:r,...n},a)=>{let s=i.useMemo(()=>{try{return(0,ex.isFragment)(i.createElement(e,null))}catch(t){return!1}},[e])?{}:{ref:a,id:t,"data-reach-menu":"",...n};return i.createElement(e,{...s},i.createElement(ep,{id:t,children:r}))});e_.displayName="Menu";var eD=i.forwardRef(({as:e="button",...t},r)=>{let{data:{isExpanded:n,controls:a},props:s}=em({...t,ref:r});return i.createElement(e,{"aria-expanded":!!n||void 0,"aria-haspopup":!0,"aria-controls":a,...s,"data-reach-menu-button":""})});eD.displayName="MenuButton";var eT=i.forwardRef(({as:e="div",...t},r)=>{let{data:{disabled:n},props:a}=ev({...t,ref:r});return i.createElement(e,{role:"menuitem",...a,"aria-disabled":n||void 0,"data-reach-menu-item":""})});eT.displayName="MenuItemImpl";var eO=i.forwardRef(({as:e="div",...t},r)=>i.createElement(eT,{...t,ref:r,as:e}));eO.displayName="MenuItem";var eS=i.forwardRef(({as:e="div",...t},r)=>{let{data:{activeDescendant:n,triggerId:a},props:s}=ey({...t,ref:r});return i.createElement(e,{"aria-activedescendant":n,"aria-labelledby":a||void 0,role:"menu",...s,"data-reach-menu-items":""})});eS.displayName="MenuItems",i.forwardRef(({as:e="a",component:t,onSelect:r,...n},a)=>(i.useEffect(()=>{t&&console.warn("[@reach/menu-button]: Please use the `as` prop instead of `component`")},[t]),i.createElement(eT,{...n,ref:a,"data-reach-menu-link":"",as:e,isLink:!0,onSelect:r||m}))).displayName="MenuLink";var eC=i.forwardRef(({portal:e=!0,...t},r)=>i.createElement(ek,{portal:e},i.createElement(eS,{...t,ref:r,"data-reach-menu-list":""})));eC.displayName="MenuList";var ek=i.forwardRef(({as:e="div",...t},r)=>{let{data:{portal:n,targetRef:a,position:s},props:o}=eb({...t,ref:r}),u={"data-reach-menu-popover":""};return n?i.createElement(Y,{...o,...u,as:e,targetRef:a,position:s,unstable_skipInitialPortalRender:!0}):i.createElement(e,{...o,...u})});ek.displayName="MenuPopover"},9849:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(77033);function i(e){var t=function(e,t){if("object"!==(0,n.Z)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==(0,n.Z)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,n.Z)(t)?t:String(t)}},77033:function(e,t,r){"use strict";function n(e){return e&&e.constructor===Symbol?"symbol":typeof e}r.d(t,{Z:function(){return n}})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[727],{54132:function(e,n,r){"use strict";r.d(n,{Z:function(){return o}});var t=r(62230),s=r(85244),i=r(98240),a=r(52322);r(2784);var l=r(75289),c=function(e){var n=e.bg,r=e.background,s=e.sx,i=e.withRadius,c=e.radius,o=e.children;return(0,a.jsx)(l.xu,{sx:(0,t.Z)({p:4,bg:n||r},i?{borderBottomLeftRadius:c,borderBottomRightRadius:c}:null,s),children:o})},o=function(e){var n=e.Header,r=void 0===n?null:n,o=e.SubHeader,d=void 0===o?null:o,u=e.Body,x=void 0===u?null:u,h=e.Footer,f=void 0===h?null:h,p=e.borderFooter,C=e.radius,m=void 0===C?"6px":C,j=e.bodySx,g=e.footerSx,v=e.sx,b=e.bg,_=e.background,y=e.children,T=(0,i.Z)(e,["Header","SubHeader","Body","Footer","borderFooter","radius","bodySx","footerSx","sx","bg","background","children"]);return(0,a.jsxs)(l.Zb,(0,s.Z)((0,t.Z)({sx:(0,t.Z)({border:function(e){var n;return"1px solid ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.borders))},borderRadius:m},void 0===v?null:v)},T),{children:[r?(0,a.jsx)(r,{radius:m}):null,d?(0,a.jsx)(d,{radius:m}):null,(0,a.jsxs)(c,{bg:b,background:_,sx:void 0===j?{}:j,withRadius:!f,children:[x?(0,a.jsx)(x,{}):null,y||null]}),f?(0,a.jsx)(c,{bg:b,background:_,sx:(0,t.Z)({},void 0!==p&&p?{borderTop:function(e){var n=e.colors;return"1px solid ".concat(String(null==n?void 0:n.borders))}}:null,void 0===g?{}:g),radius:m,withRadius:!0,children:"object"==typeof f?f:(0,a.jsx)(f,{})}):null]}))}},80131:function(e,n,r){"use strict";r.d(n,{M:function(){return L}});var t=r(62230),s=r(85244),i=r(52322),a=r(2784),l=r(75289),c=r(56580),o=r(68780),d=r(70041),u=r(17064),x=r(63397),h=r(78656),f=r(98240),p=function(e){var n=e.selected,r=(0,f.Z)(e,["selected"]);return(0,i.jsx)(l.kC,(0,t.Z)({sx:{p:"24px",mb:3,alignItems:"top",cursor:"pointer",borderRadius:"6px",backgroundColor:"grayLight",boxShadow:n?function(e){var n;return"0 0 0 2px ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.primary))}:"none","&:hover":{boxShadow:function(e){var n;return"0 0 0 2px ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.primary))}}}},r))},C=function(e){var n=e.format,r=(0,u.Z)((0,x.U$)("repeatable"),3),t=r[0],s=r[2],a=h.$[n];return(0,i.jsxs)(l.xu,{mb:2,children:[(0,i.jsxs)(p,{selected:t.value,onClick:function(){return s.setValue(!0)},children:[(0,i.jsx)(l.Y8,{checked:t.value,onChange:function(){},"data-cy":"repeatable-type-radio-btn"}),(0,i.jsxs)(l.xu,{sx:{marginLeft:2},children:["Reusable type",(0,i.jsx)(l.xu,{as:"p",sx:{fontSize:"12px",color:"textClear",mt:1},children:a.hintRepeatable})]})]}),(0,i.jsxs)(p,{selected:!t.value,onClick:function(){return s.setValue(!1)},children:[(0,i.jsx)(l.Y8,{checked:!t.value,onChange:function(){},"data-cy":"single-type-radio-btn"}),(0,i.jsxs)(l.xu,{sx:{marginLeft:2},children:["Single type",(0,i.jsx)(l.xu,{as:"p",sx:{fontSize:"12px",color:"textClear",mt:1},children:a.hintSingle})]})]})]})},m=r(90374),j=r(49471),g=r(77174),v=r(24340),b=r(32665),_=r(3098),y=r(82770),T=r(38876),S=r(75329),L=function(e){var n=e.format,r=e.origin,u=void 0===r?"table":r,x=(0,m.Z)(),f=x.createCustomType,p=x.closeModals,L=(0,c.v9)(function(e){return{customTypeIds:(0,j.W6)(e),customTypeLabels:(0,j.YS)(e),isCreateCustomTypeModalOpen:(0,g.gP)(e,v.q.CREATE_CUSTOM_TYPE),isCreatingCustomType:(0,b.hg)(e,_.z.CREATE_CUSTOM_TYPE)}}),w=L.customTypeIds,Z=L.isCreateCustomTypeModalOpen,z=L.isCreatingCustomType,k=L.customTypeLabels,H=h.$[n],R=(0,a.useState)(!0),M=R[0],E=R[1],N=function(e){var r=e.id,t=e.label,s=e.repeatable,i=t||r;y.Xe.track({event:"custom-type:created",id:r,name:i,format:n,type:s?"repeatable":"single",origin:u}),f(r,i,s,n),p(),E(!0)},I=function(e,n,r){r(M?(0,s.Z)((0,t.Z)({},n),{label:e.target.value,id:(0,T.lV)(e.target.value)}):(0,s.Z)((0,t.Z)({},n),{label:e.target.value}))},V=function(e,n){n("id",e.target.value),E(!1)};return(0,i.jsx)(o.Z,{dataCy:"create-ct-modal",isOpen:Z,widthInPx:"530px",formId:"create-custom-type",buttonLabel:"Create",close:function(){p(),E(!0)},onSubmit:N,isLoading:z,initialValues:{repeatable:!0,id:"",label:""},validate:function(e){var n=e.id,r=e.label,t={};return r&&r.length||(t.label="Cannot be empty."),!t.label&&k.includes(r)&&(t.label="".concat(H.name({start:!0,plural:!1})," name is already taken.")),n&&n.length||(t.id="ID cannot be empty."),t.id||!n||S.xo.exec(n)||(t.id="Invalid id: No special characters allowed."),!t.id&&n&&w.map(function(e){return e.toLowerCase()}).includes(n)&&(t.id='ID "'.concat(n,'" exists already.')),Object.keys(t).length>0?t:void 0},content:{title:"Create a new ".concat(H.name({start:!1,plural:!1}))},children:function(e){var r=e.errors,t=e.setValues,s=e.setFieldValue,a=e.values,c=e.touched;return(0,i.jsxs)(l.xu,{children:[(0,i.jsx)(C,{format:n}),(0,i.jsx)(d.W,{name:"label",label:"".concat(H.name({start:!0,plural:!1})," Name"),dataCy:"ct-name-input",placeholder:"A display name for the ".concat(H.name({start:!1,plural:!1})),error:c.label?r.label:void 0,onChange:function(e){return I(e,a,t)}}),(0,i.jsx)(d.W,{name:"id",dataCy:"ct-id-input",label:"".concat(H.name({start:!0,plural:!1})," ID"),placeholder:H.inputPlaceholder,error:c.id?r.id:void 0,onChange:function(e){return V(e,s)}})]})}})}},75329:function(e,n,r){"use strict";r.d(n,{Sn:function(){return l},lS:function(){return t},nG:function(){return s},pq:function(){return c},rd:function(){return a},xo:function(){return i}});var t=["components"],s=["png","jpg","jpeg"],i=/^[A-Za-z0-9]+(?:_[A-Za-z0-9]+)*$/,a="placeholders/What_are_Slices_mrvome",l="SM_HELP_VIDEOS/mock_data",c="slice-machine-simulator"},840:function(e,n,r){"use strict";r.d(n,{F:function(){return O}});var t=r(52322),s=r(2784),i=r(22715),a=r(97729),l=r.n(a),c=r(56580),o=r(22337),d=r(90374),u=r(32665),x=r(3098),h=r(80131),f=r(78656),p=r(5632),C=r(67557),m=r(50002),j=r(6277);r(64117);var g=function(e){var n=e.children;return(0,t.jsx)("div",{className:"_1ecs97dez0 _1ecs97dez5 _1ecs97d3fg _1ecs97d3mt _1ecs97df0r _1ecs97df23 _1ecs97df2h _1ecs97dezr",children:(0,t.jsx)("table",{className:"gdfsm51 _1ecs97dez0 _1ecs97dez5 _1ecs97df3p _1ecs97df4v",children:n})})},v=(0,s.createContext)("body");function b(){return(0,s.useContext)(v)}var _=function(e){var n=e.children;return(0,t.jsx)(v.Provider,{value:"head",children:(0,t.jsx)("thead",{className:"gdfsm52 _1ecs97dez0 _1ecs97dez5 _1ecs97d18 _1ecs97d8l",children:n})})},y=function(e){var n=e.children;return(0,t.jsx)(v.Provider,{value:"body",children:(0,t.jsx)("tbody",{className:"gdfsm53 _1ecs97dez0 _1ecs97dez5",children:n})})},T=function(e){var n,r=e.children,s=e.onClick,i=b();return(0,t.jsx)("tr",{className:(0,j.W)("_1ecs97dez0 _1ecs97dez5 _1ecs97df71",(n={},(0,C.Z)(n,"_1ecs97df41",!!s),(0,C.Z)(n,"_1ecs97dm _1ecs97d7z _1ecs97d3c _1ecs97dap _1ecs97d2w _1ecs97da9 _1ecs97df74 _1ecs97dfj8 _1ecs97df0d _1ecs97dfjb","body"===i),n)),onClick:function(e){var n,r=e.target;if(s&&e.currentTarget.contains(r)){var t=(0,m.JY)(r);(null===(n=null==t?void 0:t.contains(e.currentTarget))||void 0===n||n)&&s(e)}},children:r})},S=function(e){var n=e.children,r=b();return(0,t.jsx)("head"===r?"th":"td",{className:"gdfsm55 _1ecs97dez0 _1ecs97dez5 _1ecs97d3fg _1ecs97d3mt _1ecs97df2h _1ecs97dez1 _1ecs97da62 _1ecs97dadf _1ecs97df45 _1ecs97dfhi",children:(0,t.jsx)("div",{className:"gdfsm56 _1ecs97dez0 _1ecs97dez2",children:n})})},L=function(){return(0,t.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M8 28H24C25.1046 28 26 27.1046 26 26V9L21 4H8C6.89543 4 6 4.89543 6 6V26C6 27.1046 6.89543 28 8 28Z",fill:"#6E56CF"}),(0,t.jsx)("path",{d:"M23 9H26L21 4V7C21 8.10457 21.8954 9 23 9Z",fill:"#9E8CFC"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0912 12C13.2794 12 11 14.2794 11 17.0912C11 19.903 13.2794 22.1824 16.0912 22.1824C17.9763 22.1824 19.6215 21.1577 20.501 19.6372C20.6563 19.3688 20.7878 19.0849 20.8926 18.7883C20.9846 18.5279 20.8482 18.2422 20.5878 18.1502C20.3275 18.0582 20.0418 18.1947 19.9498 18.455C19.8657 18.693 19.7601 18.9209 19.6354 19.1365C18.9273 20.3606 17.6049 21.1824 16.0912 21.1824C13.8317 21.1824 12 19.3507 12 17.0912C12 14.8317 13.8317 13 16.0912 13C17.4478 13 18.6507 13.66 19.3955 14.6782H17.6216C17.3455 14.6782 17.1216 14.9021 17.1216 15.1782C17.1216 15.4544 17.3455 15.6782 17.6216 15.6782H20.2998C20.576 15.6782 20.7998 15.4544 20.7998 15.1782V12.5C20.7998 12.2239 20.576 12 20.2998 12C20.0237 12 19.7998 12.2239 19.7998 12.5V13.6032C18.8717 12.6167 17.5536 12 16.0912 12Z",fill:"white"})]})},w=function(){return(0,t.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M8 28H24C25.1046 28 26 27.1046 26 26V9L21 4H8C6.89543 4 6 4.89543 6 6V26C6 27.1046 6.89543 28 8 28Z",fill:"#6E56CF"}),(0,t.jsx)("path",{d:"M23 9H26L21 4V7C21 8.10457 21.8954 9 23 9Z",fill:"#9E8CFC"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.0869 14.6818L14.6627 12.3787C14.7183 12.1561 14.9183 12 15.1477 12C15.473 12 15.7117 12.3057 15.6328 12.6213L15.1177 14.6818H17.7232L18.299 12.3787C18.3547 12.1561 18.5547 12 18.7841 12C19.1094 12 19.3481 12.3057 19.2692 12.6213L18.754 14.6818H21C21.2761 14.6818 21.5 14.9057 21.5 15.1818C21.5 15.458 21.2761 15.6818 21 15.6818H18.504L17.8449 18.3182H20C20.2761 18.3182 20.5 18.542 20.5 18.8182C20.5 19.0943 20.2761 19.3182 20 19.3182H17.5949L17.0192 21.6213C16.9635 21.8439 16.7635 22 16.5341 22C16.2088 22 15.9701 21.6943 16.049 21.3787L16.5642 19.3182H13.9586L13.3828 21.6213C13.3272 21.8439 13.1272 22 12.8977 22C12.5724 22 12.3338 21.6943 12.4127 21.3787L12.9278 19.3182H11C10.7239 19.3182 10.5 19.0943 10.5 18.8182C10.5 18.542 10.7239 18.3182 11 18.3182H13.1778L13.8369 15.6818H12C11.7239 15.6818 11.5 15.458 11.5 15.1818C11.5 14.9057 11.7239 14.6818 12 14.6818H14.0869ZM16.8142 18.3182L17.4732 15.6818H14.8677L14.2086 18.3182H16.8142Z",fill:"white"})]})},Z=r(67445),z=r(22710),k=r(99267),H=r(17329),R=r(81038),M=r(49471),E=r(7819),N=r(14137);function I(e){return V.apply(this,arguments)}function V(){return(V=(0,z.Z)(function(e){var n,r,t;return(0,k.__generator)(this,function(s){switch(s.label){case 0:return[4,R.j.customTypes.readAllCustomTypes({format:e})];case 1:if(r=(n=s.sent()).errors,t=n.models,r.length>0)throw r;return[2,t.map(function(e){return e.model})]}})})).apply(this,arguments)}var F=r(2754),P=r(19345),A=function(e){var n,r,a,l,o,u,x=e.format,h=e.isCreatingCustomType,C=(0,d.Z)().openCreateCustomTypeModal,m=(0,p.useRouter)(),j=(r=(0,s.useCallback)(function(e){return(0,H.VA)(I,[x],e)},[x]),{customTypes:(0,H.QT)(I,[x]),updateCustomTypes:r}),v=j.customTypes,b=j.updateCustomTypes,z=v.sort(function(e,n){return e.id.localeCompare(n.id)}),k=Z.cd[x],R=f.$[x];return(u=(0,c.v9)(function(e){return{storeCustomTypes:(0,M.Ch)(e).filter(E.TG)}}).storeCustomTypes,(0,s.useEffect)(function(){var e=u.filter(function(e){return e.local.format===x});(e.length!==v.length||e.some(function(e){var n=v.find(function(n){return n.id===e.local.id});return!n||JSON.stringify(N.Dc.fromSM(e.local))!==JSON.stringify(n)}))&&b(e.map(function(e){var n=e.local;return N.Dc.fromSM(n)}))},[x,b,v,u]),0===z.length)?(0,t.jsxs)(F.R$,{style:{alignSelf:"center",marginTop:i.TV.size[72]},children:[(0,t.jsx)(F.u2,{children:(0,t.jsx)(i.Ee,{src:k.blankSlateImage,sizing:"cover"})}),(0,t.jsxs)(F.T9,{children:[(0,t.jsx)(F._T,{children:R.name({start:!0,plural:!0})}),(0,t.jsx)(F.nf,{children:R.blankSlateDescription}),(0,t.jsx)(F.Qj,{children:(0,t.jsx)(i.zx,{onClick:C,loading:h,children:"Create"})})]})]}):(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(g,{children:[(0,t.jsx)(_,{children:(0,t.jsxs)(T,{children:[(0,t.jsx)(S,{children:(0,t.jsx)(i.I5,{name:"notes",size:"medium"})}),(0,t.jsx)(S,{children:"Label"}),(0,t.jsx)(S,{children:"API ID"}),(0,t.jsx)(S,{children:"Limit"}),(0,t.jsx)(S,{})]})}),(0,t.jsx)(y,{children:z.map(function(e){var n=e.repeatable,r=e.label,s=e.id;return(0,t.jsxs)(T,{onClick:function(){m.push(Z.cd[x].getBuilderPagePathname(s))},children:[(0,t.jsx)(S,{children:n?(0,t.jsx)(L,{}):(0,t.jsx)(w,{})}),(0,t.jsx)(S,{children:r}),(0,t.jsx)(S,{children:s}),(0,t.jsx)(S,{children:n?"Reusable":"Single"}),(0,t.jsx)(S,{children:(0,t.jsx)(P._,{isChangesLocal:!1,format:x,customType:e})})]},s)})})]})})},O=function(e){var n=e.format,r=f.$[n],a=(0,d.Z)().openCreateCustomTypeModal,p=(0,c.v9)(function(e){return{isCreatingCustomType:(0,u.hg)(e,x.z.CREATE_CUSTOM_TYPE)}}).isCreatingCustomType;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l(),{children:(0,t.jsxs)("title",{children:[r.name({start:!0,plural:!0})," - Slice Machine"]})}),(0,t.jsx)(i.SV,{renderError:function(){return(0,t.jsx)(o.LN,{children:(0,t.jsx)(o.RN,{children:(0,t.jsx)(i.xu,{alignItems:"center",justifyContent:"center",children:(0,t.jsx)(i.Iq,{title:"Request failed",description:"An error occurred while fetching your ".concat(r.name({start:!1,plural:!0}),".")})})})})},children:(0,t.jsx)(s.Suspense,{fallback:(0,t.jsxs)(o.LN,{children:[(0,t.jsxs)(o.wd,{children:[(0,t.jsx)(o.Cx,{folder:r.name({start:!0,plural:!0})}),(0,t.jsx)(o.K2,{children:(0,t.jsx)(i.zx,{disabled:!0,startIcon:"add",children:"Create"})})]}),(0,t.jsx)(o.RN,{children:(0,t.jsx)(i._3,{})})]}),children:(0,t.jsxs)(o.LN,{children:[(0,t.jsxs)(o.wd,{children:[(0,t.jsx)(o.Cx,{folder:r.name({start:!0,plural:!0})}),(0,t.jsx)(o.K2,{children:(0,t.jsx)(i.zx,{"data-cy":"create-ct",loading:p,onClick:a,startIcon:"add",children:"Create"})})]}),(0,t.jsx)(o.RN,{children:(0,t.jsxs)(i.xu,{flexDirection:"column",children:[(0,t.jsx)(A,{format:n,isCreatingCustomType:p}),(0,t.jsx)(h.M,{format:n})]})})]})})})]})}},64117:function(){}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[731],{56577:function(e,n,t){"use strict";t.d(n,{z:function(){return d}});var r=t(62230),o=t(85244),i=t(98240),s=t(52322),c=t(2784),u=t(75289),a=function(e,n){return e?"".concat(e,"-").concat(n):""},l=function(e){switch(e){case"white":case"secondaryMedium":case"secondarySmall":case"secondary":return"#1A1523";default:return"grey01"}},d=(0,c.forwardRef)(function(e,n){var t=e.label,c=e.Icon,d=e.type,f=e.form,p=e.isLoading,m=void 0!==p&&p,v=e.disabled,y=e.onClick,h=e.sx,x=e.iconSize,Z=void 0===x?16:x,g=e.iconFill,j=e.variant,b=void 0===j?"primary":j,I=(0,i.Z)(e,["label","Icon","type","form","isLoading","disabled","onClick","sx","iconSize","iconFill","variant"]);return(0,s.jsx)(u.zx,(0,o.Z)((0,r.Z)({ref:n,sx:(0,r.Z)((0,o.Z)((0,r.Z)({},void 0===h?{}:h),{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px"}),m?{cursor:"wait !important"}:{}),type:d,form:f,disabled:void 0!==v&&v||m,onClick:m?void 0:y,variant:b},I),{children:m?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.$j,{size:Z,color:l(b),"data-cy":a(I["data-cy"],"spinner")}),c&&t]}):(0,s.jsxs)(s.Fragment,{children:[c&&(0,s.jsx)(c,{size:Z,fill:g,"data-cy":a(I["data-cy"],"icon")}),t]})}))})},70041:function(e,n,t){"use strict";t.d(n,{W:function(){return c}});var r=t(62230),o=t(52322);t(2784);var i=t(63397),s=t(75289),c=function(e){var n=e.name,t=e.label,c=e.placeholder,u=e.error,a=e.dataCy,l=e.onChange;return(0,o.jsxs)(s.xu,{mb:3,children:[(0,o.jsx)(s.__,{htmlFor:n,mb:2,children:t}),(0,o.jsx)(i.gN,(0,r.Z)({name:n,type:"text",placeholder:c,as:s.II,autoComplete:"off"},l?{onChange:l}:null,a?{"data-cy":a}:null)),u?(0,o.jsx)(s.xv,{"data-cy":a?"".concat(a,"-error"):"input-error",sx:{color:"error",mt:1},children:u}):null]})}},68780:function(e,n,t){"use strict";var r=t(62230),o=t(85244),i=t(52322),s=t(37149),c=t.n(s),u=t(25812),a=t(63397),l=t(75289),d=t(56577),f=t(54132);n.Z=function(e){var n=e.children,t=e.close,s=e.isOpen,p=e.formId,m=e.validate,v=e.onSubmit,y=e.widthInPx,h=e.initialValues,x=e.content.title,Z=e.cardProps,g=e.omitFooter,j=void 0!==g&&g,b=e.isLoading,I=void 0!==b&&b,T=e.buttonLabel,_=void 0===T?"Save":T,C=e.dataCy,S=e.actionMessage;return c().setAppElement("#__next"),(0,i.jsx)(u.Z,{isOpen:s,shouldCloseOnOverlayClick:!0,onRequestClose:t,contentLabel:x,style:{content:{width:null!=y?y:"900px"}},children:(0,i.jsx)(a.J9,{validateOnChange:!0,initialValues:h,validate:function(e){return m?m(e):void 0},onSubmit:function(e){v(e)},children:function(e){var s=e.isValid,c=e.isSubmitting,u=e.values,m=e.errors,v=e.touched,y=e.setFieldValue,h=e.setValues;return(0,i.jsx)(a.l0,(0,o.Z)((0,r.Z)({id:p},null!=C?{"data-cy":C}:null),{children:(0,i.jsx)(f.Z,(0,o.Z)((0,r.Z)({borderFooter:!0,footerSx:{p:3,position:"sticky",bottom:0,background:"gray"},bodySx:{px:4,py:4},sx:{border:"none"}},Z),{Header:function(e){var n=e.radius;return(0,i.jsxs)(l.kC,{sx:{position:"sticky",top:0,zIndex:1,p:"16px",pl:4,bg:"headSection",alignItems:"center",justifyContent:"space-between",borderTopLeftRadius:n,borderTopRightRadius:n,borderBottom:function(e){var n;return"1px solid ".concat(null===(n=e.colors)||void 0===n?void 0:n.borders)}},children:[(0,i.jsx)(l.X6,{sx:{fontSize:"20px"},children:x}),(0,i.jsx)(l.x8,{type:"button",onClick:t})]})},Footer:j?null:(0,i.jsxs)(l.kC,{sx:{alignItems:"space-between"},children:[(0,i.jsx)(l.kC,{sx:{fontSize:"14px",alignItems:"center"},children:"function"==typeof S?S(e):S}),(0,i.jsxs)(l.kC,{sx:{ml:"auto"},children:[(0,i.jsx)(l.zx,{mr:2,type:"button",onClick:t,variant:"secondary",disabled:c||I,children:"Cancel"}),(0,i.jsx)(d.z,{label:_,form:p,type:"submit",disabled:!s||c||I,isLoading:c||I,sx:{fontWeight:"400",paddingBlock:"8px",paddingInline:"16px",fontSize:"14px",borderRadius:"4px"}})]})]}),children:n({isValid:s,isSubmitting:c,values:u,errors:m,touched:v,setFieldValue:y,setValues:h})}))}))}})})}},38876:function(e,n,t){"use strict";t.d(n,{MP:function(){return i},T3:function(){return c},Ti:function(){return o},lV:function(){return u}});var r=/-(\w)/g;function o(e){return e.includes("-")?"['".concat(e,"']"):".".concat(e)}function i(e){return e?(e=e.replace(/_/g,"-").replace(r,function(e,n){return n?n.toUpperCase():""}))[0].toUpperCase()+e.slice(1):""}var s=/\B([A-Z])/g;function c(e){var n;return e.replace(s,"-$1").toLowerCase().replace(/-/g,"_")}var u=function(e){return e.trim().replace(/ /g,"_").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}},2754:function(e,n,t){"use strict";t.d(n,{R$:function(){return l},Qj:function(){return v},T9:function(){return f},nf:function(){return m},u2:function(){return d},_T:function(){return p}});var r=t(67557),o=t(62230),i=t(85244),s=t(98240),c=t(52322),u=t(6277),a=t(22715);t(69143);var l=function(e){var n=e.backgroundImage,t=e.style,a=(0,s.Z)(e,["backgroundImage","style"]),l=void 0!==n;return(0,c.jsx)("article",(0,i.Z)((0,o.Z)({},a),{className:(0,u.Z)("_18bjhbz0 _1ecs97dez0 _1ecs97dez1 _1ecs97dez2 _1ecs97dezb _1ecs97dfiv _1ecs97dfix _1ecs97dfiz _1ecs97d3fg _1ecs97d3mt _1ecs97df0r _1ecs97df23 _1ecs97df2h _1ecs97dezp",(0,r.Z)({},"_18bjhbz1 _1ecs97dezx _1ecs97df4v",l)),style:(0,o.Z)({backgroundImage:l?"url(".concat(n,")"):void 0},t)}))},d=function(e){return(0,c.jsx)("div",(0,i.Z)((0,o.Z)({},e),{className:"_1ecs97dez0 _1ecs97dez1 _1ecs97dez2 _1ecs97dezb _1ecs97d6r8 _1ecs97d6yl _1ecs97df29 _1ecs97df2l _1ecs97dezp"}))},f=function(e){return(0,c.jsx)("div",(0,i.Z)((0,o.Z)({},e),{className:"_18bjhbz3 _1ecs97dez0 _1ecs97dez1 _1ecs97dez2 _1ecs97dezb _1ecs97dffv"}))},p=function(e){return(0,c.jsx)(a.xv,(0,i.Z)((0,o.Z)({},e),{className:"_18bjhbz4"}))},m=function(e){return(0,c.jsx)(a.xv,(0,i.Z)((0,o.Z)({},e),{className:"_18bjhbz5",color:"grey11"}))},v=function(e){return(0,c.jsx)("div",(0,i.Z)((0,o.Z)({},e),{className:"_18bjhbz6 _1ecs97dez0 _1ecs97dez8 _1ecs97dez1 _1ecs97dez2 _1ecs97df95 _1ecs97dfdl",color:"grey"}))}},91061:function(e,n,t){"use strict";t.d(n,{AK:function(){return j},E3:function(){return m},EN:function(){return v},F$:function(){return x},GA:function(){return S},HO:function(){return Z},L4:function(){return b},Tr:function(){return p},gR:function(){return I},j6:function(){return _},kQ:function(){return T},l9:function(){return C},mf:function(){return y},vB:function(){return h},xS:function(){return g},y6:function(){return a}});var r=t(67557),o=t(62230),i=t(85244),s=t(17064),c=t(88866),u=t(98863);function a(e){var n;return null!==(n=e.format)&&void 0!==n?n:"custom"}function l(e){return Object.entries(e.json)}function d(e,n){return e.json[n]}function f(e,n){var t=d(e,n);if(void 0!==t)return Object.entries(t).find(function(e){var n=(0,s.Z)(e,2);return(n[0],n[1]).type===c.SlicesFieldType})}function p(e,n){if(t=e,d=f(t,u=n),(p=(0,s.Z)(null!=d?d:[],2))[0],null!==(a=null==(m=p[1])?void 0:m.config)&&void 0!==a?a:void 0)return e;var t,u,a,d,p,m,v=function(e,n){var t,r=l(e),o=r.findIndex(function(e){return(0,s.Z)(e,1)[0]===n}),i=r.flatMap(function(e){var n=(0,s.Z)(e,2),t=(n[0],n[1]);return Object.keys(t).filter(function(e){return t[e].type===c.SlicesFieldType})}),u=o;do t="slices".concat(0!==u?u.toString():""),u++;while(i.includes(t));return t}(e,n);return(0,i.Z)((0,o.Z)({},e),{json:(0,i.Z)((0,o.Z)({},e.json),(0,r.Z)({},n,(0,i.Z)((0,o.Z)({},e.json[n]),(0,r.Z)({},v,{type:c.SlicesFieldType,fieldset:"Slice Zone"}))))})}function m(e,n){var t=d(e,n);if(void 0===t)return e;var s=Object.keys(t).find(function(e){return t[e].type===c.SlicesFieldType});if(void 0===s)return e;var a=(0,u.ud)(t,s);return(0,i.Z)((0,o.Z)({},e),{json:(0,i.Z)((0,o.Z)({},e.json),(0,r.Z)({},n,a))})}function v(e){var n,t,s=e.customType,a=e.sectionId,l=e.sliceId,f=d(s,a);if(void 0===f)return s;var p=Object.keys(f).find(function(e){return f[e].type===c.SlicesFieldType});if(void 0===p)return s;var m=f[p];if(m.type!==c.SlicesFieldType)return s;var v=(0,u.ud)(null!==(t=null===(n=m.config)||void 0===n?void 0:n.choices)&&void 0!==t?t:{},l);return(0,i.Z)((0,o.Z)({},s),{json:(0,i.Z)((0,o.Z)({},s.json),(0,r.Z)({},a,(0,i.Z)((0,o.Z)({},f),(0,r.Z)({},p,(0,i.Z)((0,o.Z)({},m),{config:(0,i.Z)((0,o.Z)({},m.config),{choices:v})})))))})}function y(e){var n,t=(0,i.Z)((0,o.Z)({},e),{format:"page"}),r=l(e)[0];if(r){var c=(0,s.Z)(r,1)[0];t=p(t,c)}return t}function h(e,n){return(0,i.Z)((0,o.Z)({},e),{json:(0,i.Z)((0,o.Z)({},e.json),(0,r.Z)({},n,{}))})}function x(e,n){var t=(0,u.ud)(e.json,n);return(0,i.Z)((0,o.Z)({},e),{json:t})}function Z(e,n,t){if(n===t)return e;var r=Object.keys(e.json).reduce(function(r,o){return o===n?r[t]=e.json[o]:r[o]=e.json[o],r},{});return(0,i.Z)((0,o.Z)({},e),{json:r})}function g(e){var n=e.customType,t=e.sectionId,s=e.newField,c=e.newFieldId;return F({customType:n,sectionId:t,updatedSection:(0,i.Z)((0,o.Z)({},n.json[t]),(0,r.Z)({},c,s))})}function j(e){var n=e.customType,t=e.sectionId,r=e.fieldId,o=(0,u.ud)(n.json[t],r);return F({customType:n,sectionId:t,updatedSection:o})}function b(e){var n=e.customType,t=e.sectionId,r=e.previousFieldId,o=e.newFieldId,i=e.newField,s=w({fields:n.json[t],previousFieldId:r,newFieldId:o,newField:i});return F({customType:n,sectionId:t,updatedSection:s})}function I(e){var n=e.customType,t=e.sectionId,r=e.sourceIndex,o=e.destinationIndex,i=n.json[t],u=f(n,t),a=Object.fromEntries(Object.entries(i).filter(function(e){var n=(0,s.Z)(e,2);return(n[0],n[1]).type!==c.SlicesFieldType})),l=z({fields:a,sourceIndex:r,destinationIndex:o});if(void 0!==u){var d=(0,s.Z)(u,2),p=d[0],m=d[1];l[p]=m}return F({customType:n,sectionId:t,updatedSection:l})}function T(e){var n,t=e.customType,s=e.sectionId,c=e.groupFieldId,u=e.newField,a=e.newFieldId,l=k({customType:t,sectionId:s,groupFieldId:c}),d=null==l?void 0:null===(n=l.config)||void 0===n?void 0:n.fields;if(!l)return t;var f=L(l,(0,i.Z)((0,o.Z)({},d),(0,r.Z)({},a,u)));return F({customType:t,sectionId:s,updatedSection:(0,i.Z)((0,o.Z)({},t.json[s]),(0,r.Z)({},c,f))})}function _(e){var n,t=e.customType,s=e.sectionId,c=e.groupFieldId,a=e.fieldId,l=k({customType:t,sectionId:s,groupFieldId:c}),d=null==l?void 0:null===(n=l.config)||void 0===n?void 0:n.fields;if(!l||!d)return t;var f=(0,u.ud)(d,a),p=L(l,f);return F({customType:t,sectionId:s,updatedSection:(0,i.Z)((0,o.Z)({},t.json[s]),(0,r.Z)({},c,p))})}function C(e){var n,t=e.customType,s=e.sectionId,c=e.groupFieldId,u=e.previousFieldId,a=e.newFieldId,l=e.newField,d=k({customType:t,sectionId:s,groupFieldId:c}),f=null==d?void 0:null===(n=d.config)||void 0===n?void 0:n.fields;if(!d||!f)return t;var p=w({fields:f,previousFieldId:u,newFieldId:a,newField:l}),m=L(d,p);return F({customType:t,sectionId:s,updatedSection:(0,i.Z)((0,o.Z)({},t.json[s]),(0,r.Z)({},c,m))})}function S(e){var n,t=e.customType,s=e.sectionId,c=e.groupFieldId,u=e.sourceIndex,a=e.destinationIndex,l=k({customType:t,sectionId:s,groupFieldId:c}),d=null==l?void 0:null===(n=l.config)||void 0===n?void 0:n.fields;if(!l||!d)return t;var f=z({fields:d,sourceIndex:u,destinationIndex:a}),p=L(l,f);return F({customType:t,sectionId:s,updatedSection:(0,i.Z)((0,o.Z)({},t.json[s]),(0,r.Z)({},c,p))})}function F(e){var n=e.customType,t=e.sectionId,s=e.updatedSection;return(0,i.Z)((0,o.Z)({},n),{json:(0,i.Z)((0,o.Z)({},n.json),(0,r.Z)({},t,s))})}function w(e){var n=e.fields,t=e.previousFieldId,r=e.newFieldId,o=e.newField;return Object.entries(n).reduce(function(e,n){var i=(0,s.Z)(n,2),c=i[0],u=i[1];return c===t?e[r]=o:c!==r&&(e[c]=u),e},{})}function z(e){var n=e.fields,t=e.sourceIndex,r=e.destinationIndex,o=Object.entries(n),i=(0,s.Z)(o.splice(t,1),1)[0];return o.splice(r,0,i),Object.fromEntries(o)}function k(e){var n=e.customType,t=e.sectionId,r=e.groupFieldId,o=n.json[t][r];if(o.type===c.GroupFieldType)return o}function L(e,n){return(0,i.Z)((0,o.Z)({},e),{config:(0,i.Z)((0,o.Z)({},e.config),{fields:n})})}},19345:function(e,n,t){"use strict";t.d(n,{_:function(){return O}});var r=t(22710),o=t(99267),i=t(52322),s=t(2784),c=t(22715),u=t(5632),a=t(90374),l=t(88932),d=t(91061),f=t(82770),p=t(78656);function m(){return(m=(0,r.Z)(function(e,n){var t,r;return(0,o.__generator)(this,function(o){switch(o.label){case 0:t=p.$[e.format],o.label=1;case 1:return o.trys.push([1,3,,4]),r=(0,d.mf)(e),[4,(0,f.KA)(r)];case 2:return o.sent(),n(r),l.Am.success("".concat(t.name({start:!0,plural:!1})," converted to page type")),[3,4];case 3:return o.sent(),l.Am.error("Internal Error: ".concat(t.name({start:!0,plural:!1})," not converted to page type")),[3,4];case 4:return[2]}})})).apply(this,arguments)}var v=t(67445),y=t(62230),h=t(85244),x=t(75289),Z=t(68780),g=t(70041),j=t(56580),b=t(49471),I=t(81038);function T(){return(T=(0,r.Z)(function(e){var n,t,r,i,s,c,u;return(0,o.__generator)(this,function(o){switch(o.label){case 0:n=e.model,t=e.newLabel,r=e.onSuccess,i=p.$[n.format],o.label=1;case 1:return o.trys.push([1,3,,4]),s=(0,h.Z)((0,y.Z)({},n),{label:t}),[4,I.j.customTypes.renameCustomType({model:s})];case 2:return o.sent(),r(s),l.Am.success("".concat(i.name({start:!0,plural:!1})," renamed")),[3,4];case 3:return c=o.sent(),u="Internal Error: ".concat(i.name({start:!0,plural:!1})," could not be renamed"),console.error(u,c),l.Am.error(u),[3,4];case 4:return[2]}})})).apply(this,arguments)}var _=function(e){var n,t,c,u=e.isChangesLocal,l=e.customType,d=e.format,f=e.onClose,m=e.setLocalCustomType,v=null!==(n=null==l?void 0:l.label)&&void 0!==n?n:"",I=null!==(t=null==l?void 0:l.id)&&void 0!==t?t:"",_=(0,a.Z)().renameAvailableCustomTypeSuccess,C=(0,s.useState)(!1),S=C[0],F=C[1],w=(c=(0,r.Z)(function(e){return(0,o.__generator)(this,function(n){switch(n.label){case 0:if(F(!0),!(u&&m))return[3,1];return m((0,h.Z)((0,y.Z)({},l),{label:e.customTypeName})),[3,3];case 1:return[4,function(e){return T.apply(this,arguments)}({model:l,newLabel:e.customTypeName,onSuccess:_})];case 2:n.sent(),n.label=3;case 3:return F(!1),f(),[2]}})}),function(e){return c.apply(this,arguments)}),z=(0,j.v9)(function(e){return{customTypeLabels:(0,b.YS)(e)}}).customTypeLabels,k=p.$[d];return(0,i.jsx)(Z.Z,{isOpen:!0,dataCy:"rename-custom-type-modal",widthInPx:"530px",formId:"rename-custom-type-modal-".concat(I),buttonLabel:"Rename",close:f,onSubmit:function(e){w(e)},initialValues:{customTypeName:v},isLoading:S,content:{title:"Rename a ".concat(k.name({start:!1,plural:!1}))},validate:function(e){var n=e.customTypeName,t={};return n&&n.length||(t.customTypeName="Cannot be empty."),void 0!=t.customTypeName&&z.includes(n)&&v!==n&&(t.customTypeName="".concat(k.name({start:!0,plural:!1})," name is already taken.")),Object.keys(t).length>0?t:void 0},children:function(e){var n=e.errors;return(0,i.jsx)(x.xu,{children:(0,i.jsx)(g.W,{name:"customTypeName",label:"".concat(k.name({start:!0,plural:!1})," Name"),placeholder:"A display name for the ".concat(k.name({start:!1,plural:!1})),error:n.customTypeName,dataCy:"custom-type-name-input"})})}})},C=t(25812),S=t(59326),F=t(54132),w=t(65186),z=t(56577);function k(){return(k=(0,r.Z)(function(e){var n,t,r,i,s;return(0,o.__generator)(this,function(o){switch(o.label){case 0:n=e.customType,t=e.onSuccess,r=p.$[n.format],o.label=1;case 1:return o.trys.push([1,3,,4]),[4,I.j.customTypes.deleteCustomType({id:n.id})];case 2:return o.sent(),t(),l.Am.success("".concat(r.name({start:!0,plural:!1})," deleted")),[3,4];case 3:return i=o.sent(),s="Internal Error: ".concat(r.name({start:!0,plural:!1})," could not be deleted"),console.error(s,i),[3,4];case 4:return[2]}})})).apply(this,arguments)}var L=function(e){var n,t=e.customType,c=e.format,u=e.onClose,l=e.onDeleteCustomTypeSuccess,d=p.$[c],f=(0,s.useState)(!1),m=f[0],v=f[1],y=(0,a.Z)().deleteCustomTypeSuccess,h=(n=(0,r.Z)(function(){return(0,o.__generator)(this,function(e){switch(e.label){case 0:return v(!0),[4,function(e){return k.apply(this,arguments)}({customType:t,onSuccess:function(){return y(t.id)}})];case 1:return e.sent(),l(),[2]}})}),function(){return n.apply(this,arguments)}),Z=(0,S.B7)().theme;return(0,i.jsx)(C.Z,{isOpen:!0,shouldCloseOnOverlayClick:!0,style:{content:{maxWidth:612}},onRequestClose:function(){return u()},children:(0,i.jsx)(F.Z,{bodySx:{p:0,bg:"white",position:"relative",height:"100%",padding:16},footerSx:{position:"sticky",bottom:0,p:0},sx:{border:"none",overflow:"hidden"},borderFooter:!0,Header:function(){var e;return(0,i.jsxs)(x.kC,{sx:{position:"sticky",top:0,zIndex:1,p:"16px",alignItems:"center",justifyContent:"space-between",borderBottom:function(e){var n;return"1px solid ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.borders))}},children:[(0,i.jsxs)(x.kC,{sx:{alignItems:"center"},children:[(0,i.jsx)(w.$vK,{size:20,color:null===(e=Z.colors)||void 0===e?void 0:e.greyIcon}),(0,i.jsxs)(x.X6,{sx:{fontSize:"14px",fontWeight:"bold",ml:1},children:["Delete"," ",d.name({start:!1,plural:!1})]})]}),(0,i.jsx)(x.x8,{type:"button",onClick:function(){return u()}})]})},Footer:function(){return(0,i.jsxs)(x.kC,{sx:{justifyContent:"flex-end",height:64,alignItems:"center",paddingRight:16,borderTop:function(e){var n;return"1px solid ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.darkBorders))},backgroundColor:"gray"},children:[(0,i.jsx)(z.z,{label:"Cancel",variant:"secondary",onClick:function(){return u()},sx:{mr:"10px",fontWeight:"bold",color:"grey12",borderRadius:6}}),void 0!==t&&(0,i.jsx)(z.z,{label:"Delete",variant:"danger",isLoading:m,onClick:function(){h()},sx:{minHeight:39,minWidth:78}})]})},children:(0,i.jsxs)("div",{children:["This action will immediately make the following change:",(0,i.jsx)("ul",{children:(0,i.jsxs)("li",{children:["Delete the"," ",(0,i.jsxs)(x.xv,{sx:{fontWeight:"bold"},children:["customtypes/",null==t?void 0:t.id,"/"]})," ","directory."]})}),"The next time you push your changes to Prismic, the following change will happen:",(0,i.jsx)("ul",{children:(0,i.jsxs)("li",{children:["Remove the"," ",d.name({start:!1,plural:!1})," and any associated Documents from your repository."]})})]})})})},O=function(e){var n,t=e.format,l=e.customType,d=e.isChangesLocal,f=e.setLocalCustomType,p=(0,u.useRouter)(),y=(0,a.Z)().saveCustomTypeSuccess,h=(0,s.useState)(!1),x=h[0],Z=h[1],g=(0,s.useState)(!1),j=g[0],b=g[1],I=(0,s.useState)(!1),T=I[0],C=I[1],S=(n=(0,r.Z)(function(){var e,n;return(0,o.__generator)(this,function(t){switch(t.label){case 0:return C(!0),[4,function(e,n){return m.apply(this,arguments)}(l,y)];case 1:return t.sent(),e=v.cd.custom.getBuilderPagePathname(l.id),p.asPath===e&&(n=v.cd.page.getBuilderPagePathname(l.id),p.replace(n)),C(!1),[2]}})}),function(){return n.apply(this,arguments)}),F=function(){var e,n=v.cd[null!==(e=l.format)&&void 0!==e?e:"custom"].tablePagePathname;p.asPath!==n?p.replace(n):Z(!1)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(c.h_,{modal:!0,children:[(0,i.jsx)(c.$F,{disabled:T,children:(0,i.jsx)(c.hU,{color:"grey","data-testid":"editDropdown",hiddenLabel:"Custom type actions",icon:"moreVert",loading:T,variant:"solid"})}),(0,i.jsxs)(c.AW,{align:"end",children:[(0,i.jsx)(c.Xi,{startIcon:(0,i.jsx)(c.I5,{name:"edit"}),onSelect:function(){b(!0)},children:"Rename"}),"custom"===t&&!d&&(0,i.jsx)(c.Xi,{startIcon:(0,i.jsx)(c.I5,{name:"driveFileMove"}),onSelect:function(){S()},children:"Convert to page type"}),(0,i.jsx)(c.Xi,{color:"tomato",startIcon:(0,i.jsx)(c.I5,{name:"delete"}),onSelect:function(){Z(!0)},children:"Remove"})]})]}),x?(0,i.jsx)(L,{format:t,customType:l,onClose:function(){return Z(!1)},onDeleteCustomTypeSuccess:F}):null,j?(0,i.jsx)(_,{format:t,customType:l,isChangesLocal:d,onClose:function(){return b(!1)},setLocalCustomType:f}):null]})}},69143:function(){}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[787],{842:function(e,n,r){"use strict";r.d(n,{Z:function(){return P}});var i,t=r(62230),s=r(85244),o=r(52322),a=r(2784),l=r(56580),c=r(75289),d=r(54132),u=r(951),x=r(75100),p=r(25812),h=r(77174),f=r(24340),v=r(90374),g=r(22710),m=r(99267),j=r(76473),b=r(75329),C=r(40432),y=function(e){var n=e.inputFile,r=e.handleFile,i=e.children,t=e.isDragActive;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.__,{htmlFor:"input-file",variant:"buttons.white",sx:{p:2,px:0,display:"flex",justifyContent:"center",width:200,alignItems:"center",flex:1},children:i||"Select file"}),(0,o.jsx)("input",{id:"input-file",type:"file",ref:n,style:{display:"none"},accept:b.nG.map(function(e){return"image/".concat(e)}).join(","),onChange:function(e){var n;r(null===(n=e.target.files)||void 0===n?void 0:n[0],t)}})]})},F=r(32665),E=r(3098),w=r(61931),S=r(67557),I=r(88932),k=r(82770);function D(e){return _.apply(this,arguments)}function _(){return(_=(0,g.Z)(function(e){var n,r,i,o,a,l,c,d,u,x;return(0,m.__generator)(this,function(p){switch(p.label){case 0:n=e.variationId,r=e.slice,i=e.file,o=e.method,p.label=1;case 1:return p.trys.push([1,3,,4]),(a=new FormData).append("file",i),a.append("libraryName",r.from),a.append("sliceName",r.model.name),a.append("variationId",n),[4,(0,k.XQ)({libraryName:r.from,sliceId:r.model.id,variationId:n,file:i})];case 2:if(c=(l=p.sent()).errors,d=l.url,c.length>0)throw c;return k.Xe.track({event:"screenshot-taken",type:"custom",method:o}),[2,(0,s.Z)((0,t.Z)({},r),{screenshots:(0,s.Z)((0,t.Z)({},r.screenshots),(0,S.Z)({},n,{url:d}))})];case 3:return u=p.sent(),x="Screenshot not saved",console.error(x,u),I.Am.error(x),[3,4];case 4:return[2]}})})).apply(this,arguments)}var Z,R=function(){return(0,o.jsx)(c.kC,{variant:"boxes.centered",sx:{p:2,position:"absolute",height:"100%",width:"100%",background:"rgba(249, 248, 249, 0.7)",backdropFilter:"blur(5px)",zIndex:"1",pointerEvents:"none"},children:(0,o.jsxs)(c.kC,{variant:"boxes.centered",sx:{border:"1px dashed #6E56CF",height:"100%",width:"100%",borderRadius:"4px"},children:[(0,o.jsx)(M,{isActive:!0}),(0,o.jsx)(c.xv,{sx:{my:2},children:"Drop file here"}),(0,o.jsx)(c.xv,{variant:"secondary",children:"Maximum upload size file: 128Mb"})]})})},M=function(e){var n=e.isActive;return(0,o.jsx)(c.kC,{sx:{p:1,borderRadius:"50%",bg:n?"#F1EEFE":"#EDECEE",alignItems:"center",justifyContent:"center",width:"48px",height:"48px"},children:(0,o.jsx)(u.IEK,{style:{color:n?"#6E56CF":"#6F6E77",fontSize:"34px"}})})},H=function(e){var n=e.variationID,r=e.slice,i=e.imageTypes,d=void 0===i?b.nG:i,u=e.onUploadSuccess,x=r.screenshots[n],p=(0,v.Z)().openToaster,h=(0,a.useState)(!1),f=h[0],S=h[1],I=(0,a.useState)(!1),k=I[0],_=I[1];(0,j.y1)(["meta+v","ctrl+v"],function(){X()},[n,r,]);var Z,H,O,z,A,L,T,N,V=(0,v.Z)().saveSliceCustomScreenshotSuccess,P=(0,l.v9)(function(e){return{isLoadingScreenshot:(0,F.hg)(e,E.z.GENERATE_SLICE_CUSTOM_SCREENSHOT)}}).isLoadingScreenshot,U=(O=(H={onHandleFile:(Z=(0,g.Z)(function(e,i){var t,s;return(0,m.__generator)(this,function(o){switch(o.label){case 0:return[4,D({slice:r,file:e,method:i?"dragAndDrop":"upload",variationId:n})];case 1:return t=o.sent(),_(!1),(s=null==t?void 0:t.screenshots[n])&&(V(n,s,t),u&&u(t)),[2]}})}),function(e,n){return Z.apply(this,arguments)})}).onHandleFile,z=(0,a.useRef)(null),A=(0,g.Z)(function(e,n){return(0,m.__generator)(this,function(r){switch(r.label){case 0:if(!e)return[3,2];return[4,O(e,n)];case 1:r.sent(),(null==z?void 0:z.current)&&(z.current.value=""),r.label=2;case 2:return[2]}})}),{handleFile:L=function(e,n){return A.apply(this,arguments)},inputFile:z,FileInputRenderer:y,fileInputProps:{inputFile:z,handleFile:L}}),B=U.FileInputRenderer,W=U.fileInputProps,G=(T=(0,g.Z)(function(e){var i,t;return(0,m.__generator)(this,function(s){switch(s.label){case 0:if(e.size>128e6)return[2,p("File is too big. Max file size: 128Mb.",C.Jf.ERROR)];return[4,D({slice:r,file:e,method:"dragAndDrop",variationId:n})];case 1:return(t=null==(i=s.sent())?void 0:i.screenshots[n])&&(V(n,t,i),u&&u(i)),[2]}})}),function(e){return T.apply(this,arguments)}),q="function"==typeof navigator.clipboard.read,X=(N=(0,g.Z)(function(){var e,n,r,i,t;return(0,m.__generator)(this,function(s){switch(s.label){case 0:if(!q)return[2];s.label=1;case 1:return s.trys.push([1,5,,6]),[4,navigator.clipboard.read()];case 2:if(!(void 0!==(e=s.sent())[0])||!(void 0!==(n=e[0].types.find(function(e){return d.map(function(e){return"image/".concat(e)}).includes(e)}))))return[3,4];return[4,e[0].getType(n)];case 3:return r=s.sent(),i=new File([r],"file"),[2,G(i)];case 4:return[3,6];case 5:return t=s.sent(),console.error("Could not paste file",t),[3,6];case 6:return[2]}})}),function(){return N.apply(this,arguments)}),J=function(e){e.preventDefault(),S(!1);var n,r=null===(n=e.dataTransfer.files)||void 0===n?void 0:n[0];if(void 0!==r)return d.some(function(e){return"image/".concat(e)===r.type})?void G(r):p("Only files of type ".concat(d.join(", ")," are accepted."),C.Jf.ERROR)},Y=function(e){return function(n){n.preventDefault(),S(e)}},K=function(e){return function(n){n.preventDefault(),_(e)}};return(0,o.jsxs)(c.kC,{as:"form",variant:"boxes.centered",sx:{bg:"#F9F8F9",position:"relative",borderRadius:"6px",height:"320px"},onDragEnter:Y(!0),onDragLeave:Y(!1),onDragOver:Y(!0),onMouseEnter:K(!0),onMouseLeave:K(!1),onSubmit:function(e){return e.preventDefault()},onDrop:J,children:[P?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.$j,{}),(0,o.jsx)(c.xv,{sx:{my:2},children:"Uploading file ..."})]}):null,P||void 0===x?null:(0,o.jsx)(w.q,{src:x.url,sx:{width:"100%",height:"100%",maxHeight:"100%",backdropFilter:"blur(5px)"}}),P?null:(0,o.jsx)(c.kC,{sx:{p:2,position:"absolute",width:"100%",height:"100%",borderRadius:"6px",background:"#F9F8F9B2",justifyContent:"center",alignItems:"center",visibility:k||void 0===x?"visible":"hidden"},children:(0,o.jsx)(c.kC,{variant:"boxes.centered",sx:{border:"1px dashed #6E56CF",height:"100%",width:"100%",borderRadius:"4px"},children:(0,o.jsxs)(c.kC,{sx:{width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[(0,o.jsx)(M,{isActive:f}),(0,o.jsx)(c.xv,{sx:{my:2},children:q?"Paste, drop or ...":"Drop or ..."}),(0,o.jsx)(B,(0,s.Z)((0,t.Z)({},W),{isDragActive:f})),(0,o.jsx)(c.xv,{sx:{color:"greyIcon",mt:1},children:"Maximum file size: 128Mb"})]})})}),f?(0,o.jsx)(R,{}):null]})},O=function(e){return(0,o.jsxs)("svg",(0,s.Z)((0,t.Z)({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{children:[(0,o.jsxs)("g",{clipPath:"url(#clip0_5065_192538)",children:[(0,o.jsx)("path",{d:"M9.66862 19.9993C11.1406 19.9993 12.3353 18.8047 12.3353 17.3327V14.666H9.66862C8.19662 14.666 7.00195 15.8607 7.00195 17.3327C7.00195 18.8047 8.19662 19.9993 9.66862 19.9993Z",fill:"#0ACF83"}),(0,o.jsx)("path",{d:"M7.00195 12.0007C7.00195 10.5287 8.19662 9.33398 9.66862 9.33398H12.3353V14.6673H9.66862C8.19662 14.6673 7.00195 13.4727 7.00195 12.0007Z",fill:"#A259FF"}),(0,o.jsx)("path",{d:"M7.00195 6.66667C7.00195 5.19467 8.19662 4 9.66862 4H12.3353V9.33333H9.66862C8.19662 9.33333 7.00195 8.13867 7.00195 6.66667Z",fill:"#F24E1E"}),(0,o.jsx)("path",{d:"M12.334 4H15.0007C16.4727 4 17.6673 5.19467 17.6673 6.66667C17.6673 8.13867 16.4727 9.33333 15.0007 9.33333H12.334V4Z",fill:"#FF7262"}),(0,o.jsx)("path",{d:"M17.6673 12.0007C17.6673 13.4727 16.4727 14.6673 15.0007 14.6673C13.5287 14.6673 12.334 13.4727 12.334 12.0007C12.334 10.5287 13.5287 9.33398 15.0007 9.33398C16.4727 9.33398 17.6673 10.5287 17.6673 12.0007Z",fill:"#1ABCFE"})]}),(0,o.jsx)("defs",{children:(0,o.jsx)("clipPath",{id:"clip0_5065_192538",children:(0,o.jsx)("rect",{width:"10.6688",height:"16",fill:"white",transform:"translate(7 4)"})})})]}))};(Z=i||(i={})).Mac="Mac",Z.Linux="Linux",Z.Windows="Windows";var z=function(){var e=navigator.userAgent,n=i.Linux;return Object.values(i).forEach(function(r){e.includes(r)&&(n=r)}),n};r(61213);var A=function(e){var n=e.children;return(0,o.jsx)("kbd",{className:"_1nkpwww0 _1ecs97dfhg _1ecs97da62 _1ecs97dadf _1ecs97d18 _1ecs97d8l _1ecs97d3fg _1ecs97d3mt _1ecs97df23 _1ecs97df2h",children:n})},L=function(){var e,n=[i.Windows,i.Linux].includes(z())?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A,{children:"ctrl"})," + ",(0,o.jsx)(A,{children:"shift"})," + ",(0,o.jsx)(A,{children:"c"})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A,{children:"cmd"})," + ",(0,o.jsx)(A,{children:"shift"})," + ",(0,o.jsx)(A,{children:"c"})]});return(0,o.jsxs)(c.kC,{sx:{pl:"4px",alignItems:"center",color:"#000",borderRadius:"6px",fontSize:"12px",lineHeight:"24px",border:"1px solid #E4E2E4",boxShadow:"0px 1px 0px 0px rgba(0, 0, 0, 0.04)",width:"100%",minHeight:"40px"},children:[(0,o.jsx)(O,{}),(0,o.jsxs)("div",{children:["Use\xa0",n," to copy any frame as .png, then just paste it here"]})]})},T=function(e){var n=e.isValid;return(0,o.jsx)(c.kC,{sx:{p:2,border:"1px solid #E4E2E4",borderRadius:"6px",bg:"#FFF"},children:n?(0,o.jsx)(u.Ypm,{style:{fontSize:"16px"}}):(0,o.jsx)(x.j6O,{style:{fontSize:"16px",color:"#ED811C"}})})},N=function(e){var n=e.slice,r=e.onSelectVariation,i=e.variationSelector;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.X6,{as:"h4",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n.model.name}),(0,o.jsx)(c.xu,{children:(0,o.jsx)(c.xu,{as:"ul",sx:{pl:0,my:3},children:n.model.variations.map(function(e){var a=i.sliceID,l=i.variationID,d=a===n.model.id&&l===e.id;return(0,o.jsx)(c.xu,{as:"li",sx:(0,s.Z)((0,t.Z)({listStyle:"none",my:2,p:2,cursor:"pointer",borderRadius:"4px"},d&&{bg:"#EDECEE",fontWeight:"500"}),{":hover":{bg:"#EDECEE"}}),onClick:function(){return r({sliceID:n.model.id,variationID:e.id})},children:(0,o.jsxs)(c.kC,{sx:{alignItems:"center"},children:[(0,o.jsx)(T,{isValid:!!n.screenshots[e.id]}),(0,o.jsx)(c.xv,{sx:{ml:2},children:e.name})]})},"".concat(n.model.id,"-").concat(e.id))})})})]})},V=function(e,n){return e||(n.length?{sliceID:n[0].model.id,variationID:n[0].model.variations[0].id}:void 0)},P=function(e){var n=e.slices,r=e.defaultVariationSelector,i=e.onUploadSuccess,t=(0,v.Z)().closeModals,s=(0,l.v9)(function(e){return{isOpen:(0,h.gP)(e,f.q.SCREENSHOTS)}}).isOpen,u=(0,a.useState)(V(r,n)),x=u[0],g=u[1];if((0,a.useEffect)(function(){g(V(r,n))},[null==r?void 0:r.sliceID,null==r?void 0:r.variationID,s,]),0===n.length||!x)return null;var m,j="function"==typeof navigator.clipboard.read;return(0,o.jsx)(p.Z,{isOpen:s,shouldCloseOnOverlayClick:!0,onRequestClose:function(){return t()},children:(0,o.jsx)(d.Z,{radius:"0px",bodySx:{p:0,bg:"#FFF",position:"relative"},sx:{border:"none"},Header:function(e){var n=e.radius;return(0,o.jsxs)(c.kC,{sx:{position:"sticky",top:0,zIndex:1,background:"gray",p:"16px",alignItems:"center",justifyContent:"space-between",borderTopLeftRadius:n,borderTopRightRadius:n,borderBottom:function(e){var n;return"1px solid ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.borders))}},children:[(0,o.jsx)(c.X6,{sx:{fontSize:"20px"},children:"Slice screenshots"}),(0,o.jsx)(c.x8,{type:"button",onClick:function(){return t()}})]})},Footer:null,children:(0,o.jsxs)(c.xu,{sx:{display:"flex",flexWrap:"wrap",height:"100%"},children:[(0,o.jsx)(c.xu,{sx:{p:3,bg:"grey07",flexGrow:1,overflow:"auto",maxHeight:"100%",flexBasis:"sidebar"},children:n.map(function(e,n){return(0,o.jsx)(N,{slice:e,variationSelector:x,onSelectVariation:g},"".concat(e.model.id,"-").concat(n))})}),(0,o.jsxs)(c.kC,{as:"main",sx:{p:3,flexGrow:99999,flexBasis:0,flexDirection:"column",minWidth:320,gap:"8px"},children:[j?(0,o.jsx)(L,{}):void 0,(m=n.find(function(e){return e.model.id===x.sliceID}))?(0,o.jsx)(H,{variationID:x.variationID,slice:m,onUploadSuccess:i}):null]})]})})})}},61931:function(e,n,r){"use strict";r.d(n,{q:function(){return c}});var i=r(62230),t=r(52322),s=r(2784),o=r(75289),a=r(65186),l=(0,s.memo)(function(e){var n=e.src;return(0,t.jsx)(o.Ee,{src:n,alt:"Preview image",sx:{maxHeight:"100%"}})}),c=function(e){var n=e.src,r=e.sx;return(0,t.jsx)(o.kC,{sx:(0,i.Z)({position:"relative",alignItems:"center",justifyContent:"center",overflow:"hidden",backgroundImage:"url(/pattern.png)",backgroundColor:"headSection",backgroundRepeat:"repeat",backgroundSize:"20px",borderRadius:"4px"},r),children:void 0!==n?(0,t.jsx)(l,{src:n}):(0,t.jsxs)(o.xv,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,t.jsx)(a.eJU,{}),"You have no screenshot yet."]})})}},47731:function(e,n,r){"use strict";r.d(n,{H:function(){return s}});var i=r(2784),t=r(90374),s=function(){var e=(0,t.Z)().openScreenshotsModal,n=(0,i.useState)({sliceFilterFn:function(e){return e}}),r=n[0],s=n[1];return{modalPayload:r,onOpenModal:function(n){s(n),e()}}}},61213:function(){}}]);