@stytch/vanilla-js 4.12.2 → 4.13.1

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 (320) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/b2b/adminPortal/package.json +6 -0
  3. package/dist/APINetworkClient.d.ts +6 -0
  4. package/dist/BootstrapDataManager.d.ts +38 -0
  5. package/dist/CaptchaProvider.d.ts +7 -0
  6. package/dist/ClientsideServicesProvider.d.ts +16 -0
  7. package/dist/HeadlessOAuthClient.d.ts +68 -0
  8. package/dist/NetworkClient.d.ts +25 -0
  9. package/dist/PKCEManager.d.ts +12 -0
  10. package/dist/StytchHeadlessClient.d.ts +45 -0
  11. package/dist/StytchUIClient.d.ts +86 -0
  12. package/dist/SubscriptionService.d.ts +111 -0
  13. package/dist/adminPortal/AdminPortalStyleConfig.d.ts +166 -0
  14. package/dist/adminPortal/AdminPortalWrapper.d.ts +6 -0
  15. package/dist/adminPortal/MainContainer.d.ts +4 -0
  16. package/dist/adminPortal/Router.d.ts +44 -0
  17. package/dist/adminPortal/StytchClientContext.d.ts +3 -0
  18. package/dist/adminPortal/components/Accordion.d.ts +6 -0
  19. package/dist/adminPortal/components/ActionMenu.d.ts +22 -0
  20. package/dist/adminPortal/components/Alert.d.ts +4 -0
  21. package/dist/adminPortal/components/Button.d.ts +6 -0
  22. package/dist/adminPortal/components/Code.d.ts +7 -0
  23. package/dist/adminPortal/components/CopyableText.d.ts +7 -0
  24. package/dist/adminPortal/components/DeleteConnection.d.ts +21 -0
  25. package/dist/adminPortal/components/EmbeddedTable.d.ts +3 -0
  26. package/dist/adminPortal/components/FlexBox.d.ts +1 -0
  27. package/dist/adminPortal/components/InfoIcon.d.ts +3 -0
  28. package/dist/adminPortal/components/Input.d.ts +5 -0
  29. package/dist/adminPortal/components/Label.d.ts +4 -0
  30. package/dist/adminPortal/components/ListEditor.d.ts +4 -0
  31. package/dist/adminPortal/components/MenuItem.d.ts +4 -0
  32. package/dist/adminPortal/components/Modal.d.ts +16 -0
  33. package/dist/adminPortal/components/PageLoadingIndicator.d.ts +2 -0
  34. package/dist/adminPortal/components/PaginatedTable.d.ts +4 -0
  35. package/dist/adminPortal/components/SearchBar.d.ts +3 -0
  36. package/dist/adminPortal/components/Select.d.ts +12 -0
  37. package/dist/adminPortal/components/SetDefaultConnection.d.ts +29 -0
  38. package/dist/adminPortal/components/SettingsContainer.d.ts +24 -0
  39. package/dist/adminPortal/components/SettingsList.d.ts +4 -0
  40. package/dist/adminPortal/components/SettingsListItem.d.ts +5 -0
  41. package/dist/adminPortal/components/SettingsSection.d.ts +6 -0
  42. package/dist/adminPortal/components/Table.d.ts +3 -0
  43. package/dist/adminPortal/components/TableActions.d.ts +5 -0
  44. package/dist/adminPortal/components/Tag.d.ts +5 -0
  45. package/dist/adminPortal/components/TagList.d.ts +4 -0
  46. package/dist/adminPortal/components/Toast.d.ts +5 -0
  47. package/dist/adminPortal/components/Tooltip.d.ts +2 -0
  48. package/dist/adminPortal/components/Typography.d.ts +4 -0
  49. package/dist/adminPortal/index.d.ts +3 -0
  50. package/dist/adminPortal/index.esm.js +5 -0
  51. package/dist/adminPortal/index.js +5 -0
  52. package/dist/adminPortal/makeAdminPortalComponentMountFn.d.ts +19 -0
  53. package/dist/adminPortal/shared/components/Accordion.d.ts +15 -0
  54. package/dist/adminPortal/shared/components/Button.d.ts +25 -0
  55. package/dist/adminPortal/shared/components/Code.d.ts +14 -0
  56. package/dist/adminPortal/shared/components/ContentSpacing.d.ts +6 -0
  57. package/dist/adminPortal/shared/components/CopyableText.d.ts +16 -0
  58. package/dist/adminPortal/shared/components/EmbeddedTable.d.ts +16 -0
  59. package/dist/adminPortal/shared/components/FlexBox.d.ts +11 -0
  60. package/dist/adminPortal/shared/components/InfoIcon.d.ts +7 -0
  61. package/dist/adminPortal/shared/components/Input.d.ts +28 -0
  62. package/dist/adminPortal/shared/components/Label.d.ts +10 -0
  63. package/dist/adminPortal/shared/components/ListEditor.d.ts +27 -0
  64. package/dist/adminPortal/shared/components/MenuItem.d.ts +14 -0
  65. package/dist/adminPortal/shared/components/Modal.d.ts +20 -0
  66. package/dist/adminPortal/shared/components/PaginatedTable.d.ts +30 -0
  67. package/dist/adminPortal/shared/components/SearchBar.d.ts +6 -0
  68. package/dist/adminPortal/shared/components/Select.d.ts +30 -0
  69. package/dist/adminPortal/shared/components/Table.d.ts +17 -0
  70. package/dist/adminPortal/shared/components/TableActions.d.ts +15 -0
  71. package/dist/adminPortal/shared/components/Tag.d.ts +4 -0
  72. package/dist/adminPortal/shared/components/Toast.d.ts +18 -0
  73. package/dist/adminPortal/shared/components/Tooltip.d.ts +12 -0
  74. package/dist/adminPortal/shared/components/Typography.d.ts +15 -0
  75. package/dist/adminPortal/shared/components/componentInjection.d.ts +48 -0
  76. package/dist/adminPortal/shared/components/constants.d.ts +3 -0
  77. package/dist/adminPortal/shared/components/types.d.ts +13 -0
  78. package/dist/adminPortal/shared/utils/clickToCopyUtils.d.ts +15 -0
  79. package/dist/adminPortal/shared/utils/composeStyles.d.ts +60 -0
  80. package/dist/adminPortal/shared/utils/keys.d.ts +74 -0
  81. package/dist/adminPortal/shared/utils/noop.d.ts +1 -0
  82. package/dist/adminPortal/shared/utils/tableUtils.d.ts +3 -0
  83. package/dist/adminPortal/shared/utils/uniqueIds.d.ts +2 -0
  84. package/dist/adminPortal/shared/utils/useToggleState.d.ts +7 -0
  85. package/dist/adminPortal/sso/AdminPortalSSO.d.ts +18 -0
  86. package/dist/adminPortal/sso/AppDetails.d.ts +5 -0
  87. package/dist/adminPortal/sso/AttributeMappingTable.d.ts +22 -0
  88. package/dist/adminPortal/sso/DetailsSection.d.ts +6 -0
  89. package/dist/adminPortal/sso/IdpInfo.d.ts +147 -0
  90. package/dist/adminPortal/sso/IdpSelect.d.ts +126 -0
  91. package/dist/adminPortal/sso/OrganizationUpdatesSection.d.ts +7 -0
  92. package/dist/adminPortal/sso/RoleAssignmentsSection.d.ts +6 -0
  93. package/dist/adminPortal/sso/SSOConnectionDetailsScreen.d.ts +4 -0
  94. package/dist/adminPortal/sso/SSOConnectionsScreen.d.ts +2 -0
  95. package/dist/adminPortal/sso/SSONewConnectionConfigureScreen.d.ts +5 -0
  96. package/dist/adminPortal/sso/SSONewConnectionScreen.d.ts +2 -0
  97. package/dist/adminPortal/sso/SSORouter.d.ts +44 -0
  98. package/dist/adminPortal/sso/TaggedConnection.d.ts +8 -0
  99. package/dist/adminPortal/sso/mountAdminPortalSSO.d.ts +15 -0
  100. package/dist/adminPortal/sso/useDisplayPagination.d.ts +14 -0
  101. package/dist/adminPortal/utils/Connection.d.ts +9 -0
  102. package/dist/adminPortal/utils/ConnectionType.d.ts +1 -0
  103. package/dist/adminPortal/utils/clickToCopyUtils.d.ts +5 -0
  104. package/dist/adminPortal/utils/collator.d.ts +1 -0
  105. package/dist/adminPortal/utils/organizationGetKey.d.ts +1 -0
  106. package/dist/adminPortal/utils/theme.d.ts +6 -0
  107. package/dist/adminPortal/utils/useAdminPortalConfig.d.ts +10 -0
  108. package/dist/adminPortal/utils/useApiNetworkClient.d.ts +2 -0
  109. package/dist/adminPortal/utils/useB2BInternals.d.ts +1 -0
  110. package/dist/adminPortal/utils/useFormState.d.ts +13 -0
  111. package/dist/adminPortal/utils/useMutateOrganization.d.ts +4 -0
  112. package/dist/adminPortal/utils/useMutateSsoConnection.d.ts +19 -0
  113. package/dist/adminPortal/utils/useMutateWithToast.d.ts +7 -0
  114. package/dist/adminPortal/utils/useNavigateAwayWarning.d.ts +1 -0
  115. package/dist/adminPortal/utils/useOrgInfo.d.ts +1 -0
  116. package/dist/adminPortal/utils/useRbac.d.ts +51 -0
  117. package/dist/adminPortal/utils/useRevalidateConnectionList.d.ts +1 -0
  118. package/dist/adminPortal/utils/useSsoConnections.d.ts +2 -0
  119. package/dist/adminPortal/utils/useStateSliceSetter.d.ts +2 -0
  120. package/dist/adminPortal/utils/useStytchClient.d.ts +1 -0
  121. package/dist/assets/CreateIcon.d.ts +6 -0
  122. package/dist/assets/amazon.d.ts +3 -0
  123. package/dist/assets/apple.d.ts +3 -0
  124. package/dist/assets/backArrow.d.ts +5 -0
  125. package/dist/assets/binance.d.ts +3 -0
  126. package/dist/assets/bitbucket.d.ts +3 -0
  127. package/dist/assets/check.d.ts +2 -0
  128. package/dist/assets/checkmark.d.ts +2 -0
  129. package/dist/assets/chevron.d.ts +3 -0
  130. package/dist/assets/coinbase.d.ts +4 -0
  131. package/dist/assets/confirmation.d.ts +2 -0
  132. package/dist/assets/copy.d.ts +3 -0
  133. package/dist/assets/cross.d.ts +2 -0
  134. package/dist/assets/discord.d.ts +3 -0
  135. package/dist/assets/errorIcon.d.ts +3 -0
  136. package/dist/assets/facebook.d.ts +3 -0
  137. package/dist/assets/figma.d.ts +3 -0
  138. package/dist/assets/genericWallet.d.ts +4 -0
  139. package/dist/assets/github.d.ts +3 -0
  140. package/dist/assets/gitlab.d.ts +3 -0
  141. package/dist/assets/gmail.d.ts +3 -0
  142. package/dist/assets/google.d.ts +3 -0
  143. package/dist/assets/linkedin.d.ts +3 -0
  144. package/dist/assets/metamask.d.ts +4 -0
  145. package/dist/assets/microsoft.d.ts +3 -0
  146. package/dist/assets/outlook.d.ts +3 -0
  147. package/dist/assets/passkeyAdded.d.ts +2 -0
  148. package/dist/assets/passkeys.d.ts +3 -0
  149. package/dist/assets/passkeysCollage.d.ts +2 -0
  150. package/dist/assets/passwordIcon.d.ts +5 -0
  151. package/dist/assets/pencil.d.ts +2 -0
  152. package/dist/assets/phantom.d.ts +3 -0
  153. package/dist/assets/salesforce.d.ts +3 -0
  154. package/dist/assets/slack.d.ts +3 -0
  155. package/dist/assets/snackbarError.d.ts +2 -0
  156. package/dist/assets/snackbarSuccess.d.ts +2 -0
  157. package/dist/assets/snapchat.d.ts +3 -0
  158. package/dist/assets/successIcon.d.ts +3 -0
  159. package/dist/assets/tiktok.d.ts +3 -0
  160. package/dist/assets/trash.d.ts +2 -0
  161. package/dist/assets/twitch.d.ts +3 -0
  162. package/dist/assets/twitter.d.ts +3 -0
  163. package/dist/assets/vessel.d.ts +4 -0
  164. package/dist/assets/warningIcon.d.ts +3 -0
  165. package/dist/assets/yahoo.d.ts +3 -0
  166. package/dist/assets/yahooLogo.d.ts +3 -0
  167. package/dist/b2b/HeadlessB2BOAuthClient.d.ts +100 -0
  168. package/dist/b2b/StytchB2BHeadlessClient.d.ts +51 -0
  169. package/dist/b2b/StytchB2BUIClient.d.ts +40 -0
  170. package/dist/b2b/index.d.ts +1 -189
  171. package/dist/b2b/index.esm.js +5598 -13879
  172. package/dist/b2b/index.headless.d.ts +1 -148
  173. package/dist/b2b/index.headless.esm.js +2 -5269
  174. package/dist/b2b/index.headless.js +98 -5253
  175. package/dist/b2b/index.js +5722 -13890
  176. package/dist/b2b/oneTap/B2BOneTapProvider.d.ts +39 -0
  177. package/dist/extractErrorMessage-Dg5V9q2V.js +4534 -0
  178. package/dist/extractErrorMessage-HqH3v6mm.js +4493 -0
  179. package/dist/index.d.ts +1 -187
  180. package/dist/index.esm.js +1 -14827
  181. package/dist/index.headless-BMU_pBP_.js +1691 -0
  182. package/dist/index.headless-Hm4-qWxa.js +1695 -0
  183. package/dist/index.headless.d.ts +1 -103
  184. package/dist/index.headless.esm.js +5086 -3920
  185. package/dist/index.headless.js +5135 -3907
  186. package/dist/index.js +1 -14807
  187. package/dist/internal-BNX5AEoW.js +5196 -0
  188. package/dist/internal-CfUZ681R.js +5106 -0
  189. package/dist/oneTap/OneTapClient.d.ts +22 -0
  190. package/dist/oneTap/OneTapProvider.d.ts +36 -0
  191. package/dist/oneTap/navigatorSupportsFedCM.d.ts +1 -0
  192. package/dist/oneTap/positionModes.d.ts +6 -0
  193. package/dist/types.d.ts +18 -0
  194. package/dist/ui/CreateWebComponent.d.ts +20 -0
  195. package/dist/ui/b2b/App.d.ts +5 -0
  196. package/dist/ui/b2b/Container.d.ts +2 -0
  197. package/dist/ui/b2b/GlobalContextProvider.d.ts +82 -0
  198. package/dist/ui/b2b/MfaState.d.ts +50 -0
  199. package/dist/ui/b2b/clearStytchSearchParams.d.ts +1 -0
  200. package/dist/ui/b2b/generateProductComponentsOrdering.d.ts +13 -0
  201. package/dist/ui/b2b/getEnabledMethods.d.ts +5 -0
  202. package/dist/ui/b2b/hooks/useIsOnlyFloatingOneTap.d.ts +1 -0
  203. package/dist/ui/b2b/mfa.d.ts +70 -0
  204. package/dist/ui/b2b/reducer.d.ts +25 -0
  205. package/dist/ui/b2b/screens/Discovery.d.ts +2 -0
  206. package/dist/ui/b2b/screens/EmailConfirmation.d.ts +2 -0
  207. package/dist/ui/b2b/screens/MFAEnrollmentSelectionScreen.d.ts +2 -0
  208. package/dist/ui/b2b/screens/MagicLinkForm.d.ts +3 -0
  209. package/dist/ui/b2b/screens/Main.d.ts +2 -0
  210. package/dist/ui/b2b/screens/OAuthButtons.d.ts +15 -0
  211. package/dist/ui/b2b/screens/PasswordAuthenticate.d.ts +7 -0
  212. package/dist/ui/b2b/screens/PasswordEmailForm.d.ts +2 -0
  213. package/dist/ui/b2b/screens/PasswordForgotForm.d.ts +2 -0
  214. package/dist/ui/b2b/screens/PasswordResetConfirmation.d.ts +2 -0
  215. package/dist/ui/b2b/screens/PasswordResetForm.d.ts +2 -0
  216. package/dist/ui/b2b/screens/PasswordSetNew.d.ts +2 -0
  217. package/dist/ui/b2b/screens/PasswordUseButton.d.ts +2 -0
  218. package/dist/ui/b2b/screens/RecoveryCodeEntryScreen.d.ts +2 -0
  219. package/dist/ui/b2b/screens/RecoveryCodeSaveScreen.d.ts +2 -0
  220. package/dist/ui/b2b/screens/SMSOTPEnrollScreen.d.ts +3 -0
  221. package/dist/ui/b2b/screens/SMSOTPEntryScreen.d.ts +2 -0
  222. package/dist/ui/b2b/screens/SSOButtons.d.ts +6 -0
  223. package/dist/ui/b2b/screens/TOTPEnrollManualScreen.d.ts +2 -0
  224. package/dist/ui/b2b/screens/TOTPEnrollQRScreen.d.ts +2 -0
  225. package/dist/ui/b2b/screens/TOTPEntryScreen.d.ts +2 -0
  226. package/dist/ui/b2b/utils.d.ts +34 -0
  227. package/dist/ui/b2c/App.d.ts +11 -0
  228. package/dist/ui/b2c/Container.d.ts +2 -0
  229. package/dist/ui/b2c/GlobalContextProvider.d.ts +83 -0
  230. package/dist/ui/b2c/reducer.d.ts +23 -0
  231. package/dist/ui/b2c/screens/Crypto/ConnectWallet.d.ts +2 -0
  232. package/dist/ui/b2c/screens/Crypto/Error.d.ts +2 -0
  233. package/dist/ui/b2c/screens/Crypto/OtherWallets.d.ts +2 -0
  234. package/dist/ui/b2c/screens/Crypto/PasskeyConfirmation.d.ts +2 -0
  235. package/dist/ui/b2c/screens/Crypto/SetupNewWallet.d.ts +2 -0
  236. package/dist/ui/b2c/screens/Crypto/SignMessage.d.ts +2 -0
  237. package/dist/ui/b2c/screens/Crypto/Success.d.ts +2 -0
  238. package/dist/ui/b2c/screens/Crypto/WalletButtons.d.ts +4 -0
  239. package/dist/ui/b2c/screens/Main/LoginForm/MagicLinkForm.d.ts +2 -0
  240. package/dist/ui/b2c/screens/Main/LoginForm/OTPForm.d.ts +16 -0
  241. package/dist/ui/b2c/screens/Main/LoginForm/PasskeyButton.d.ts +2 -0
  242. package/dist/ui/b2c/screens/Main/LoginForm/PasswordForm.d.ts +2 -0
  243. package/dist/ui/b2c/screens/Main/LoginForm/index.d.ts +2 -0
  244. package/dist/ui/b2c/screens/Main/OAuthButtons.d.ts +2 -0
  245. package/dist/ui/b2c/screens/Main/index.d.ts +2 -0
  246. package/dist/ui/b2c/screens/Passkey/PasskeyRegistrationStart.d.ts +2 -0
  247. package/dist/ui/b2c/screens/Passkey/PasskeyRegistrationSuccess.d.ts +2 -0
  248. package/dist/ui/b2c/screens/Password/MagicLinkOption.d.ts +2 -0
  249. package/dist/ui/b2c/screens/Password/PasswordAuthenticate.d.ts +2 -0
  250. package/dist/ui/b2c/screens/Password/PasswordBreached.d.ts +2 -0
  251. package/dist/ui/b2c/screens/Password/PasswordDedupe.d.ts +2 -0
  252. package/dist/ui/b2c/screens/Password/PasswordForgot.d.ts +2 -0
  253. package/dist/ui/b2c/screens/Password/PasswordNewUser.d.ts +2 -0
  254. package/dist/ui/b2c/screens/Password/PasswordSecondaryMethod.d.ts +4 -0
  255. package/dist/ui/b2c/screens/Password/PasswordSetNew.d.ts +2 -0
  256. package/dist/ui/b2c/screens/Password/PasswordlessCreate.d.ts +2 -0
  257. package/dist/ui/b2c/screens/Password/ResetPassword.d.ts +2 -0
  258. package/dist/ui/b2c/screens/Secondary/EmailConfirmation.d.ts +6 -0
  259. package/dist/ui/b2c/screens/Secondary/OTPAuthenticate.d.ts +4 -0
  260. package/dist/ui/b2c/screens/Secondary/OTPConfirmation.d.ts +2 -0
  261. package/dist/ui/b2c/screens/Secondary/PasswordCreateAuthenticate.d.ts +2 -0
  262. package/dist/ui/b2c/utils.d.ts +1 -0
  263. package/dist/ui/components/AlertBox.d.ts +8 -0
  264. package/dist/ui/components/AnimatedContainer.d.ts +5 -0
  265. package/dist/ui/components/B2BOneTap.d.ts +2 -0
  266. package/dist/ui/components/Button.d.ts +5 -0
  267. package/dist/ui/components/CircularProgress.d.ts +12 -0
  268. package/dist/ui/components/Confirmation.d.ts +2 -0
  269. package/dist/ui/components/CountrySelector.d.ts +7 -0
  270. package/dist/ui/components/Divider.d.ts +2 -0
  271. package/dist/ui/components/EditableRow.d.ts +15 -0
  272. package/dist/ui/components/EmailConfirmation.d.ts +11 -0
  273. package/dist/ui/components/EmailInput.d.ts +7 -0
  274. package/dist/ui/components/ErrorScreen.d.ts +2 -0
  275. package/dist/ui/components/ErrorText.d.ts +4 -0
  276. package/dist/ui/components/Flex.d.ts +40 -0
  277. package/dist/ui/components/InlineButton.d.ts +7 -0
  278. package/dist/ui/components/Input.d.ts +1 -0
  279. package/dist/ui/components/InsetContainer.d.ts +1 -0
  280. package/dist/ui/components/Loading.d.ts +3 -0
  281. package/dist/ui/components/LoadingBar.d.ts +4 -0
  282. package/dist/ui/components/MainContainer.d.ts +3 -0
  283. package/dist/ui/components/OAuthB2BButton.d.ts +14 -0
  284. package/dist/ui/components/OAuthButton.d.ts +14 -0
  285. package/dist/ui/components/OTPControl.d.ts +8 -0
  286. package/dist/ui/components/OTPEntry.d.ts +11 -0
  287. package/dist/ui/components/OTPInput.d.ts +6 -0
  288. package/dist/ui/components/OneTap.d.ts +18 -0
  289. package/dist/ui/components/OneTapErrorMessages.d.ts +7 -0
  290. package/dist/ui/components/PasswordError.d.ts +17 -0
  291. package/dist/ui/components/PasswordInput.d.ts +6 -0
  292. package/dist/ui/components/PasswordStrengthCheck.d.ts +4 -0
  293. package/dist/ui/components/PhoneInput.d.ts +10 -0
  294. package/dist/ui/components/SentOTPEntry.d.ts +10 -0
  295. package/dist/ui/components/Snackbar.d.ts +2 -0
  296. package/dist/ui/components/SubmitButton.d.ts +8 -0
  297. package/dist/ui/components/TOTPEntry.d.ts +8 -0
  298. package/dist/ui/components/Text.d.ts +9 -0
  299. package/dist/ui/components/VerifyEmailConfirmation.d.ts +10 -0
  300. package/dist/ui/components/WalletButton.d.ts +8 -0
  301. package/dist/ui/hooks/useIsMounted.d.ts +3 -0
  302. package/dist/ui/hooks/useIsOnlyFloatingOneTap.d.ts +1 -0
  303. package/dist/ui/hooks/usePromptPasskey.d.ts +7 -0
  304. package/dist/ui/theme.d.ts +112 -0
  305. package/dist/utils/Optional.d.ts +3 -0
  306. package/dist/utils/assertUnreachable.d.ts +1 -0
  307. package/dist/utils/crypto.d.ts +60 -0
  308. package/dist/utils/deepEqual.d.ts +1 -0
  309. package/dist/utils/extractErrorMessage.d.ts +1 -0
  310. package/dist/utils/extractErrorType.d.ts +1 -0
  311. package/dist/utils/index.d.ts +28 -0
  312. package/dist/utils/internal.d.ts +34 -0
  313. package/dist/utils/isTruthy.d.ts +3 -0
  314. package/dist/utils/oauthProviderType.d.ts +7 -0
  315. package/dist/utils/passkeys.d.ts +8 -0
  316. package/package.json +19 -17
  317. package/dist/b2b/index.esm.d.ts +0 -190
  318. package/dist/b2b/index.headless.esm.d.ts +0 -149
  319. package/dist/index.esm.d.ts +0 -188
  320. package/dist/index.headless.esm.d.ts +0 -104
@@ -0,0 +1,4534 @@
1
+ 'use strict';
2
+
3
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
4
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
5
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
6
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
18
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
20
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
21
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
22
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
23
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
24
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
25
+ function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
26
+ function _construct(t, e, r) { if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); var o = [null]; o.push.apply(o, e); var p = new (t.bind.apply(t, o))(); return r && _setPrototypeOf(p, r.prototype), p; }
27
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
28
+ function _isNativeFunction(fn) { try { return Function.toString.call(fn).indexOf("[native code]") !== -1; } catch (e) { return typeof fn === "function"; } }
29
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
30
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
31
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
32
+ var internal = require('./internal-BNX5AEoW.js');
33
+ var n$3,
34
+ l$4,
35
+ u$3,
36
+ i$1,
37
+ o$1,
38
+ r$4,
39
+ f$3,
40
+ e$4,
41
+ c$3 = {},
42
+ s$1 = [],
43
+ a$1 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,
44
+ h$5 = Array.isArray;
45
+ function v$4(n, l) {
46
+ for (var u in l) n[u] = l[u];
47
+ return n;
48
+ }
49
+ function p$4(n) {
50
+ var l = n.parentNode;
51
+ l && l.removeChild(n);
52
+ }
53
+ function y$3(l, u, t) {
54
+ var i,
55
+ o,
56
+ r,
57
+ f = {};
58
+ for (r in u) "key" == r ? i = u[r] : "ref" == r ? o = u[r] : f[r] = u[r];
59
+ if (arguments.length > 2 && (f.children = arguments.length > 3 ? n$3.call(arguments, 2) : t), "function" == typeof l && null != l.defaultProps) for (r in l.defaultProps) void 0 === f[r] && (f[r] = l.defaultProps[r]);
60
+ return d$3(l, f, i, o, null);
61
+ }
62
+ function d$3(n, t, i, o, r) {
63
+ var f = {
64
+ type: n,
65
+ props: t,
66
+ key: i,
67
+ ref: o,
68
+ __k: null,
69
+ __: null,
70
+ __b: 0,
71
+ __e: null,
72
+ __d: void 0,
73
+ __c: null,
74
+ constructor: void 0,
75
+ __v: null == r ? ++u$3 : r,
76
+ __i: -1,
77
+ __u: 0
78
+ };
79
+ return null == r && null != l$4.vnode && l$4.vnode(f), f;
80
+ }
81
+ function _$2() {
82
+ return {
83
+ current: null
84
+ };
85
+ }
86
+ function g$5(n) {
87
+ return n.children;
88
+ }
89
+ function b$4(n, l) {
90
+ this.props = n, this.context = l;
91
+ }
92
+ function m$4(n, l) {
93
+ if (null == l) return n.__ ? m$4(n.__, n.__i + 1) : null;
94
+ for (var u; l < n.__k.length; l++) if (null != (u = n.__k[l]) && null != u.__e) return u.__e;
95
+ return "function" == typeof n.type ? m$4(n) : null;
96
+ }
97
+ function k$6(n) {
98
+ var l, u;
99
+ if (null != (n = n.__) && null != n.__c) {
100
+ for (n.__e = n.__c.base = null, l = 0; l < n.__k.length; l++) if (null != (u = n.__k[l]) && null != u.__e) {
101
+ n.__e = n.__c.base = u.__e;
102
+ break;
103
+ }
104
+ return k$6(n);
105
+ }
106
+ }
107
+ function w$5(n) {
108
+ (!n.__d && (n.__d = !0) && i$1.push(n) && !x$5.__r++ || o$1 !== l$4.debounceRendering) && ((o$1 = l$4.debounceRendering) || r$4)(x$5);
109
+ }
110
+ function x$5() {
111
+ var n, u, t, o, r, e, c, s, a;
112
+ for (i$1.sort(f$3); n = i$1.shift();) n.__d && (u = i$1.length, o = void 0, e = (r = (t = n).__v).__e, s = [], a = [], (c = t.__P) && ((o = v$4({}, r)).__v = r.__v + 1, l$4.vnode && l$4.vnode(o), L$2(c, o, r, t.__n, void 0 !== c.ownerSVGElement, 32 & r.__u ? [e] : null, s, null == e ? m$4(r) : e, !!(32 & r.__u), a), o.__.__k[o.__i] = o, M$2(s, o, a), o.__e != e && k$6(o)), i$1.length > u && i$1.sort(f$3));
113
+ x$5.__r = 0;
114
+ }
115
+ function C$2(n, l, u, t, i, o, r, f, e, a, h) {
116
+ var v,
117
+ p,
118
+ y,
119
+ d,
120
+ _,
121
+ g = t && t.__k || s$1,
122
+ b = l.length;
123
+ for (u.__d = e, P$3(u, l, g), e = u.__d, v = 0; v < b; v++) null != (y = u.__k[v]) && "boolean" != typeof y && "function" != typeof y && (p = -1 === y.__i ? c$3 : g[y.__i] || c$3, y.__i = v, L$2(n, y, p, i, o, r, f, e, a, h), d = y.__e, y.ref && p.ref != y.ref && (p.ref && z$5(p.ref, null, y), h.push(y.ref, y.__c || d, y)), null == _ && null != d && (_ = d), 65536 & y.__u || p.__k === y.__k ? e = S$1(y, e, n) : "function" == typeof y.type && void 0 !== y.__d ? e = y.__d : d && (e = d.nextSibling), y.__d = void 0, y.__u &= -196609);
124
+ u.__d = e, u.__e = _;
125
+ }
126
+ function P$3(n, l, u) {
127
+ var t,
128
+ i,
129
+ o,
130
+ r,
131
+ f,
132
+ e = l.length,
133
+ c = u.length,
134
+ s = c,
135
+ a = 0;
136
+ for (n.__k = [], t = 0; t < e; t++) null != (i = n.__k[t] = null == (i = l[t]) || "boolean" == typeof i || "function" == typeof i ? null : "string" == typeof i || "number" == typeof i || "bigint" == typeof i || i.constructor == String ? d$3(null, i, null, null, i) : h$5(i) ? d$3(g$5, {
137
+ children: i
138
+ }, null, null, null) : i.__b > 0 ? d$3(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i) ? (i.__ = n, i.__b = n.__b + 1, f = H$3(i, u, r = t + a, s), i.__i = f, o = null, -1 !== f && (s--, (o = u[f]) && (o.__u |= 131072)), null == o || null === o.__v ? (-1 == f && a--, "function" != typeof i.type && (i.__u |= 65536)) : f !== r && (f === r + 1 ? a++ : f > r ? s > e - r ? a += f - r : a-- : a = f < r && f == r - 1 ? f - r : 0, f !== t + a && (i.__u |= 65536))) : (o = u[t]) && null == o.key && o.__e && (o.__e == n.__d && (n.__d = m$4(o)), N$2(o, o, !1), u[t] = null, s--);
139
+ if (s) for (t = 0; t < c; t++) null != (o = u[t]) && 0 == (131072 & o.__u) && (o.__e == n.__d && (n.__d = m$4(o)), N$2(o, o));
140
+ }
141
+ function S$1(n, l, u) {
142
+ var t, i;
143
+ if ("function" == typeof n.type) {
144
+ for (t = n.__k, i = 0; t && i < t.length; i++) t[i] && (t[i].__ = n, l = S$1(t[i], l, u));
145
+ return l;
146
+ }
147
+ return n.__e != l && (u.insertBefore(n.__e, l || null), l = n.__e), l && l.nextSibling;
148
+ }
149
+ function $$2(n, l) {
150
+ return l = l || [], null == n || "boolean" == typeof n || (h$5(n) ? n.some(function (n) {
151
+ $$2(n, l);
152
+ }) : l.push(n)), l;
153
+ }
154
+ function H$3(n, l, u, t) {
155
+ var i = n.key,
156
+ o = n.type,
157
+ r = u - 1,
158
+ f = u + 1,
159
+ e = l[u];
160
+ if (null === e || e && i == e.key && o === e.type) return u;
161
+ if (t > (null != e && 0 == (131072 & e.__u) ? 1 : 0)) for (; r >= 0 || f < l.length;) {
162
+ if (r >= 0) {
163
+ if ((e = l[r]) && 0 == (131072 & e.__u) && i == e.key && o === e.type) return r;
164
+ r--;
165
+ }
166
+ if (f < l.length) {
167
+ if ((e = l[f]) && 0 == (131072 & e.__u) && i == e.key && o === e.type) return f;
168
+ f++;
169
+ }
170
+ }
171
+ return -1;
172
+ }
173
+ function I$3(n, l, u) {
174
+ "-" === l[0] ? n.setProperty(l, null == u ? "" : u) : n[l] = null == u ? "" : "number" != typeof u || a$1.test(l) ? u : u + "px";
175
+ }
176
+ function T$3(n, l, u, t, i) {
177
+ var o;
178
+ n: if ("style" === l) {
179
+ if ("string" == typeof u) n.style.cssText = u;else {
180
+ if ("string" == typeof t && (n.style.cssText = t = ""), t) for (l in t) u && l in u || I$3(n.style, l, "");
181
+ if (u) for (l in u) t && u[l] === t[l] || I$3(n.style, l, u[l]);
182
+ }
183
+ } else if ("o" === l[0] && "n" === l[1]) o = l !== (l = l.replace(/(PointerCapture)$|Capture$/, "$1")), l = l.toLowerCase() in n ? l.toLowerCase().slice(2) : l.slice(2), n.l || (n.l = {}), n.l[l + o] = u, u ? t ? u.u = t.u : (u.u = Date.now(), n.addEventListener(l, o ? D$2 : A$5, o)) : n.removeEventListener(l, o ? D$2 : A$5, o);else {
184
+ if (i) l = l.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");else if ("width" !== l && "height" !== l && "href" !== l && "list" !== l && "form" !== l && "tabIndex" !== l && "download" !== l && "rowSpan" !== l && "colSpan" !== l && "role" !== l && l in n) try {
185
+ n[l] = null == u ? "" : u;
186
+ break n;
187
+ } catch (n) {}
188
+ "function" == typeof u || (null == u || !1 === u && "-" !== l[4] ? n.removeAttribute(l) : n.setAttribute(l, u));
189
+ }
190
+ }
191
+ function A$5(n) {
192
+ var u = this.l[n.type + !1];
193
+ if (n.t) {
194
+ if (n.t <= u.u) return;
195
+ } else n.t = Date.now();
196
+ return u(l$4.event ? l$4.event(n) : n);
197
+ }
198
+ function D$2(n) {
199
+ return this.l[n.type + !0](l$4.event ? l$4.event(n) : n);
200
+ }
201
+ function L$2(n, u, t, i, o, r, f, e, c, s) {
202
+ var a,
203
+ p,
204
+ y,
205
+ d,
206
+ _,
207
+ m,
208
+ k,
209
+ w,
210
+ x,
211
+ P,
212
+ S,
213
+ $,
214
+ H,
215
+ I,
216
+ T,
217
+ A = u.type;
218
+ if (void 0 !== u.constructor) return null;
219
+ 128 & t.__u && (c = !!(32 & t.__u), r = [e = u.__e = t.__e]), (a = l$4.__b) && a(u);
220
+ n: if ("function" == typeof A) try {
221
+ if (w = u.props, x = (a = A.contextType) && i[a.__c], P = a ? x ? x.props.value : a.__ : i, t.__c ? k = (p = u.__c = t.__c).__ = p.__E : ("prototype" in A && A.prototype.render ? u.__c = p = new A(w, P) : (u.__c = p = new b$4(w, P), p.constructor = A, p.render = O$1), x && x.sub(p), p.props = w, p.state || (p.state = {}), p.context = P, p.__n = i, y = p.__d = !0, p.__h = [], p._sb = []), null == p.__s && (p.__s = p.state), null != A.getDerivedStateFromProps && (p.__s == p.state && (p.__s = v$4({}, p.__s)), v$4(p.__s, A.getDerivedStateFromProps(w, p.__s))), d = p.props, _ = p.state, p.__v = u, y) null == A.getDerivedStateFromProps && null != p.componentWillMount && p.componentWillMount(), null != p.componentDidMount && p.__h.push(p.componentDidMount);else {
222
+ if (null == A.getDerivedStateFromProps && w !== d && null != p.componentWillReceiveProps && p.componentWillReceiveProps(w, P), !p.__e && (null != p.shouldComponentUpdate && !1 === p.shouldComponentUpdate(w, p.__s, P) || u.__v === t.__v)) {
223
+ for (u.__v !== t.__v && (p.props = w, p.state = p.__s, p.__d = !1), u.__e = t.__e, u.__k = t.__k, u.__k.forEach(function (n) {
224
+ n && (n.__ = u);
225
+ }), S = 0; S < p._sb.length; S++) p.__h.push(p._sb[S]);
226
+ p._sb = [], p.__h.length && f.push(p);
227
+ break n;
228
+ }
229
+ null != p.componentWillUpdate && p.componentWillUpdate(w, p.__s, P), null != p.componentDidUpdate && p.__h.push(function () {
230
+ p.componentDidUpdate(d, _, m);
231
+ });
232
+ }
233
+ if (p.context = P, p.props = w, p.__P = n, p.__e = !1, $ = l$4.__r, H = 0, "prototype" in A && A.prototype.render) {
234
+ for (p.state = p.__s, p.__d = !1, $ && $(u), a = p.render(p.props, p.state, p.context), I = 0; I < p._sb.length; I++) p.__h.push(p._sb[I]);
235
+ p._sb = [];
236
+ } else do {
237
+ p.__d = !1, $ && $(u), a = p.render(p.props, p.state, p.context), p.state = p.__s;
238
+ } while (p.__d && ++H < 25);
239
+ p.state = p.__s, null != p.getChildContext && (i = v$4(v$4({}, i), p.getChildContext())), y || null == p.getSnapshotBeforeUpdate || (m = p.getSnapshotBeforeUpdate(d, _)), C$2(n, h$5(T = null != a && a.type === g$5 && null == a.key ? a.props.children : a) ? T : [T], u, t, i, o, r, f, e, c, s), p.base = u.__e, u.__u &= -161, p.__h.length && f.push(p), k && (p.__E = p.__ = null);
240
+ } catch (n) {
241
+ u.__v = null, c || null != r ? (u.__e = e, u.__u |= c ? 160 : 32, r[r.indexOf(e)] = null) : (u.__e = t.__e, u.__k = t.__k), l$4.__e(n, u, t);
242
+ } else null == r && u.__v === t.__v ? (u.__k = t.__k, u.__e = t.__e) : u.__e = j$3(t.__e, u, t, i, o, r, f, c, s);
243
+ (a = l$4.diffed) && a(u);
244
+ }
245
+ function M$2(n, u, t) {
246
+ u.__d = void 0;
247
+ for (var i = 0; i < t.length; i++) z$5(t[i], t[++i], t[++i]);
248
+ l$4.__c && l$4.__c(u, n), n.some(function (u) {
249
+ try {
250
+ n = u.__h, u.__h = [], n.some(function (n) {
251
+ n.call(u);
252
+ });
253
+ } catch (n) {
254
+ l$4.__e(n, u.__v);
255
+ }
256
+ });
257
+ }
258
+ function j$3(l, u, t, i, o, r, f, e, s) {
259
+ var a,
260
+ v,
261
+ y,
262
+ d,
263
+ _,
264
+ g,
265
+ b,
266
+ k = t.props,
267
+ w = u.props,
268
+ x = u.type;
269
+ if ("svg" === x && (o = !0), null != r) for (a = 0; a < r.length; a++) if ((_ = r[a]) && "setAttribute" in _ == !!x && (x ? _.localName === x : 3 === _.nodeType)) {
270
+ l = _, r[a] = null;
271
+ break;
272
+ }
273
+ if (null == l) {
274
+ if (null === x) return document.createTextNode(w);
275
+ l = o ? document.createElementNS("http://www.w3.org/2000/svg", x) : document.createElement(x, w.is && w), r = null, e = !1;
276
+ }
277
+ if (null === x) k === w || e && l.data === w || (l.data = w);else {
278
+ if (r = r && n$3.call(l.childNodes), k = t.props || c$3, !e && null != r) for (k = {}, a = 0; a < l.attributes.length; a++) k[(_ = l.attributes[a]).name] = _.value;
279
+ for (a in k) _ = k[a], "children" == a || ("dangerouslySetInnerHTML" == a ? y = _ : "key" === a || a in w || T$3(l, a, null, _, o));
280
+ for (a in w) _ = w[a], "children" == a ? d = _ : "dangerouslySetInnerHTML" == a ? v = _ : "value" == a ? g = _ : "checked" == a ? b = _ : "key" === a || e && "function" != typeof _ || k[a] === _ || T$3(l, a, _, k[a], o);
281
+ if (v) e || y && (v.__html === y.__html || v.__html === l.innerHTML) || (l.innerHTML = v.__html), u.__k = [];else if (y && (l.innerHTML = ""), C$2(l, h$5(d) ? d : [d], u, t, i, o && "foreignObject" !== x, r, f, r ? r[0] : t.__k && m$4(t, 0), e, s), null != r) for (a = r.length; a--;) null != r[a] && p$4(r[a]);
282
+ e || (a = "value", void 0 !== g && (g !== l[a] || "progress" === x && !g || "option" === x && g !== k[a]) && T$3(l, a, g, k[a], !1), a = "checked", void 0 !== b && b !== l[a] && T$3(l, a, b, k[a], !1));
283
+ }
284
+ return l;
285
+ }
286
+ function z$5(n, u, t) {
287
+ try {
288
+ "function" == typeof n ? n(u) : n.current = u;
289
+ } catch (n) {
290
+ l$4.__e(n, t);
291
+ }
292
+ }
293
+ function N$2(n, u, t) {
294
+ var i, o;
295
+ if (l$4.unmount && l$4.unmount(n), (i = n.ref) && (i.current && i.current !== n.__e || z$5(i, null, u)), null != (i = n.__c)) {
296
+ if (i.componentWillUnmount) try {
297
+ i.componentWillUnmount();
298
+ } catch (n) {
299
+ l$4.__e(n, u);
300
+ }
301
+ i.base = i.__P = null, n.__c = void 0;
302
+ }
303
+ if (i = n.__k) for (o = 0; o < i.length; o++) i[o] && N$2(i[o], u, t || "function" != typeof n.type);
304
+ t || null == n.__e || p$4(n.__e), n.__ = n.__e = n.__d = void 0;
305
+ }
306
+ function O$1(n, l, u) {
307
+ return this.constructor(n, u);
308
+ }
309
+ function q$6(u, t, i) {
310
+ var o, r, f, e;
311
+ l$4.__ && l$4.__(u, t), r = (o = "function" == typeof i) ? null : i && i.__k || t.__k, f = [], e = [], L$2(t, u = (!o && i || t).__k = y$3(g$5, null, [u]), r || c$3, c$3, void 0 !== t.ownerSVGElement, !o && i ? [i] : r ? null : t.firstChild ? n$3.call(t.childNodes) : null, f, !o && i ? i : r ? r.__e : t.firstChild, o, e), M$2(f, u, e);
312
+ }
313
+ function B$4(n, l) {
314
+ q$6(n, l, B$4);
315
+ }
316
+ function E$3(l, u, t) {
317
+ var i,
318
+ o,
319
+ r,
320
+ f,
321
+ e = v$4({}, l.props);
322
+ for (r in l.type && l.type.defaultProps && (f = l.type.defaultProps), u) "key" == r ? i = u[r] : "ref" == r ? o = u[r] : e[r] = void 0 === u[r] && void 0 !== f ? f[r] : u[r];
323
+ return arguments.length > 2 && (e.children = arguments.length > 3 ? n$3.call(arguments, 2) : t), d$3(l.type, e, i || l.key, o || l.ref, null);
324
+ }
325
+ function F$4(n, l) {
326
+ var u = {
327
+ __c: l = "__cC" + e$4++,
328
+ __: n,
329
+ Consumer: function Consumer(n, l) {
330
+ return n.children(l);
331
+ },
332
+ Provider: function Provider(n) {
333
+ var u, t;
334
+ return this.getChildContext || (u = [], (t = {})[l] = this, this.getChildContext = function () {
335
+ return t;
336
+ }, this.shouldComponentUpdate = function (n) {
337
+ this.props.value !== n.value && u.some(function (n) {
338
+ n.__e = !0, w$5(n);
339
+ });
340
+ }, this.sub = function (n) {
341
+ u.push(n);
342
+ var l = n.componentWillUnmount;
343
+ n.componentWillUnmount = function () {
344
+ u.splice(u.indexOf(n), 1), l && l.call(n);
345
+ };
346
+ }), n.children;
347
+ }
348
+ };
349
+ return u.Provider.__ = u.Consumer.contextType = u;
350
+ }
351
+ n$3 = s$1.slice, l$4 = {
352
+ __e: function __e(n, l, u, t) {
353
+ for (var i, o, r; l = l.__;) if ((i = l.__c) && !i.__) try {
354
+ if ((o = i.constructor) && null != o.getDerivedStateFromError && (i.setState(o.getDerivedStateFromError(n)), r = i.__d), null != i.componentDidCatch && (i.componentDidCatch(n, t || {}), r = i.__d), r) return i.__E = i;
355
+ } catch (l) {
356
+ n = l;
357
+ }
358
+ throw n;
359
+ }
360
+ }, u$3 = 0, b$4.prototype.setState = function (n, l) {
361
+ var u;
362
+ u = null != this.__s && this.__s !== this.state ? this.__s : this.__s = v$4({}, this.state), "function" == typeof n && (n = n(v$4({}, u), this.props)), n && v$4(u, n), null != n && this.__v && (l && this._sb.push(l), w$5(this));
363
+ }, b$4.prototype.forceUpdate = function (n) {
364
+ this.__v && (this.__e = !0, n && this.__h.push(n), w$5(this));
365
+ }, b$4.prototype.render = g$5, i$1 = [], r$4 = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, f$3 = function f$3(n, l) {
366
+ return n.__v.__b - l.__v.__b;
367
+ }, x$5.__r = 0, e$4 = 0;
368
+ var t$2,
369
+ r$3,
370
+ u$2,
371
+ i,
372
+ o = 0,
373
+ f$2 = [],
374
+ c$2 = [],
375
+ e$3 = l$4.__b,
376
+ a = l$4.__r,
377
+ v$3 = l$4.diffed,
378
+ l$3 = l$4.__c,
379
+ m$3 = l$4.unmount;
380
+ function d$2(t, u) {
381
+ l$4.__h && l$4.__h(r$3, t, o || u), o = 0;
382
+ var i = r$3.__H || (r$3.__H = {
383
+ __: [],
384
+ __h: []
385
+ });
386
+ return t >= i.__.length && i.__.push({
387
+ __V: c$2
388
+ }), i.__[t];
389
+ }
390
+ function h$4(n) {
391
+ return o = 1, s(B$3, n);
392
+ }
393
+ function s(n, u, i) {
394
+ var o = d$2(t$2++, 2);
395
+ if (o.t = n, !o.__c && (o.__ = [i ? i(u) : B$3(void 0, u), function (n) {
396
+ var t = o.__N ? o.__N[0] : o.__[0],
397
+ r = o.t(t, n);
398
+ t !== r && (o.__N = [r, o.__[1]], o.__c.setState({}));
399
+ }], o.__c = r$3, !r$3.u)) {
400
+ var f = function f(n, t, r) {
401
+ if (!o.__c.__H) return !0;
402
+ var u = o.__c.__H.__.filter(function (n) {
403
+ return n.__c;
404
+ });
405
+ if (u.every(function (n) {
406
+ return !n.__N;
407
+ })) return !c || c.call(this, n, t, r);
408
+ var i = !1;
409
+ return u.forEach(function (n) {
410
+ if (n.__N) {
411
+ var t = n.__[0];
412
+ n.__ = n.__N, n.__N = void 0, t !== n.__[0] && (i = !0);
413
+ }
414
+ }), !(!i && o.__c.props === n) && (!c || c.call(this, n, t, r));
415
+ };
416
+ r$3.u = !0;
417
+ var c = r$3.shouldComponentUpdate,
418
+ e = r$3.componentWillUpdate;
419
+ r$3.componentWillUpdate = function (n, t, r) {
420
+ if (this.__e) {
421
+ var u = c;
422
+ c = void 0, f(n, t, r), c = u;
423
+ }
424
+ e && e.call(this, n, t, r);
425
+ }, r$3.shouldComponentUpdate = f;
426
+ }
427
+ return o.__N || o.__;
428
+ }
429
+ function p$3(u, i) {
430
+ var o = d$2(t$2++, 3);
431
+ !l$4.__s && z$4(o.__H, i) && (o.__ = u, o.i = i, r$3.__H.__h.push(o));
432
+ }
433
+ function y$2(u, i) {
434
+ var o = d$2(t$2++, 4);
435
+ !l$4.__s && z$4(o.__H, i) && (o.__ = u, o.i = i, r$3.__h.push(o));
436
+ }
437
+ function _$1(n) {
438
+ return o = 5, F$3(function () {
439
+ return {
440
+ current: n
441
+ };
442
+ }, []);
443
+ }
444
+ function A$4(n, t, r) {
445
+ o = 6, y$2(function () {
446
+ return "function" == typeof n ? (n(t()), function () {
447
+ return n(null);
448
+ }) : n ? (n.current = t(), function () {
449
+ return n.current = null;
450
+ }) : void 0;
451
+ }, null == r ? r : r.concat(n));
452
+ }
453
+ function F$3(n, r) {
454
+ var u = d$2(t$2++, 7);
455
+ return z$4(u.__H, r) ? (u.__V = n(), u.i = r, u.__h = n, u.__V) : u.__;
456
+ }
457
+ function T$2(n, t) {
458
+ return o = 8, F$3(function () {
459
+ return n;
460
+ }, t);
461
+ }
462
+ function q$5(n) {
463
+ var u = r$3.context[n.__c],
464
+ i = d$2(t$2++, 9);
465
+ return i.c = n, u ? (null == i.__ && (i.__ = !0, u.sub(r$3)), u.props.value) : n.__;
466
+ }
467
+ function x$4(t, r) {
468
+ l$4.useDebugValue && l$4.useDebugValue(r ? r(t) : t);
469
+ }
470
+ function P$2(n) {
471
+ var u = d$2(t$2++, 10),
472
+ i = h$4();
473
+ return u.__ = n, r$3.componentDidCatch || (r$3.componentDidCatch = function (n, t) {
474
+ u.__ && u.__(n, t), i[1](n);
475
+ }), [i[0], function () {
476
+ i[1](void 0);
477
+ }];
478
+ }
479
+ function V$2() {
480
+ var n = d$2(t$2++, 11);
481
+ if (!n.__) {
482
+ for (var u = r$3.__v; null !== u && !u.__m && null !== u.__;) u = u.__;
483
+ var i = u.__m || (u.__m = [0, 0]);
484
+ n.__ = "P" + i[0] + "-" + i[1]++;
485
+ }
486
+ return n.__;
487
+ }
488
+ function b$3() {
489
+ for (var t; t = f$2.shift();) if (t.__P && t.__H) try {
490
+ t.__H.__h.forEach(k$5), t.__H.__h.forEach(w$4), t.__H.__h = [];
491
+ } catch (r) {
492
+ t.__H.__h = [], l$4.__e(r, t.__v);
493
+ }
494
+ }
495
+ l$4.__b = function (n) {
496
+ r$3 = null, e$3 && e$3(n);
497
+ }, l$4.__r = function (n) {
498
+ a && a(n), t$2 = 0;
499
+ var i = (r$3 = n.__c).__H;
500
+ i && (u$2 === r$3 ? (i.__h = [], r$3.__h = [], i.__.forEach(function (n) {
501
+ n.__N && (n.__ = n.__N), n.__V = c$2, n.__N = n.i = void 0;
502
+ })) : (i.__h.forEach(k$5), i.__h.forEach(w$4), i.__h = [], t$2 = 0)), u$2 = r$3;
503
+ }, l$4.diffed = function (t) {
504
+ v$3 && v$3(t);
505
+ var o = t.__c;
506
+ o && o.__H && (o.__H.__h.length && (1 !== f$2.push(o) && i === l$4.requestAnimationFrame || ((i = l$4.requestAnimationFrame) || j$2)(b$3)), o.__H.__.forEach(function (n) {
507
+ n.i && (n.__H = n.i), n.__V !== c$2 && (n.__ = n.__V), n.i = void 0, n.__V = c$2;
508
+ })), u$2 = r$3 = null;
509
+ }, l$4.__c = function (t, r) {
510
+ r.some(function (t) {
511
+ try {
512
+ t.__h.forEach(k$5), t.__h = t.__h.filter(function (n) {
513
+ return !n.__ || w$4(n);
514
+ });
515
+ } catch (u) {
516
+ r.some(function (n) {
517
+ n.__h && (n.__h = []);
518
+ }), r = [], l$4.__e(u, t.__v);
519
+ }
520
+ }), l$3 && l$3(t, r);
521
+ }, l$4.unmount = function (t) {
522
+ m$3 && m$3(t);
523
+ var r,
524
+ u = t.__c;
525
+ u && u.__H && (u.__H.__.forEach(function (n) {
526
+ try {
527
+ k$5(n);
528
+ } catch (n) {
529
+ r = n;
530
+ }
531
+ }), u.__H = void 0, r && l$4.__e(r, u.__v));
532
+ };
533
+ var g$4 = "function" == typeof requestAnimationFrame;
534
+ function j$2(n) {
535
+ var t,
536
+ r = function r() {
537
+ clearTimeout(u), g$4 && cancelAnimationFrame(t), setTimeout(n);
538
+ },
539
+ u = setTimeout(r, 100);
540
+ g$4 && (t = requestAnimationFrame(r));
541
+ }
542
+ function k$5(n) {
543
+ var t = r$3,
544
+ u = n.__c;
545
+ "function" == typeof u && (n.__c = void 0, u()), r$3 = t;
546
+ }
547
+ function w$4(n) {
548
+ var t = r$3;
549
+ n.__c = n.__(), r$3 = t;
550
+ }
551
+ function z$4(n, t) {
552
+ return !n || n.length !== t.length || t.some(function (t, r) {
553
+ return t !== n[r];
554
+ });
555
+ }
556
+ function B$3(n, t) {
557
+ return "function" == typeof t ? t(n) : t;
558
+ }
559
+ function g$3(n, t) {
560
+ for (var e in t) n[e] = t[e];
561
+ return n;
562
+ }
563
+ function C$1(n, t) {
564
+ for (var e in n) if ("__source" !== e && !(e in t)) return !0;
565
+ for (var r in t) if ("__source" !== r && n[r] !== t[r]) return !0;
566
+ return !1;
567
+ }
568
+ function E$2(n) {
569
+ this.props = n;
570
+ }
571
+ function w$3(n, e) {
572
+ function r(n) {
573
+ var t = this.props.ref,
574
+ r = t == n.ref;
575
+ return !r && t && (t.call ? t(null) : t.current = null), e ? !e(this.props, n) || !r : C$1(this.props, n);
576
+ }
577
+ function u(e) {
578
+ return this.shouldComponentUpdate = r, y$3(n, e);
579
+ }
580
+ return u.displayName = "Memo(" + (n.displayName || n.name) + ")", u.prototype.isReactComponent = !0, u.__f = !0, u;
581
+ }
582
+ (E$2.prototype = new b$4()).isPureReactComponent = !0, E$2.prototype.shouldComponentUpdate = function (n, t) {
583
+ return C$1(this.props, n) || C$1(this.state, t);
584
+ };
585
+ var x$3 = l$4.__b;
586
+ l$4.__b = function (n) {
587
+ n.type && n.type.__f && n.ref && (n.props.ref = n.ref, n.ref = null), x$3 && x$3(n);
588
+ };
589
+ var R = "undefined" != typeof Symbol && Symbol["for"] && Symbol["for"]("react.forward_ref") || 3911;
590
+ function N$1(n) {
591
+ function t(t) {
592
+ var e = g$3({}, t);
593
+ return delete e.ref, n(e, t.ref || null);
594
+ }
595
+ return t.$$typeof = R, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (n.displayName || n.name) + ")", t;
596
+ }
597
+ var k$4 = function k$4(n, t) {
598
+ return null == n ? null : $$2($$2(n).map(t));
599
+ },
600
+ A$3 = {
601
+ map: k$4,
602
+ forEach: k$4,
603
+ count: function count(n) {
604
+ return n ? $$2(n).length : 0;
605
+ },
606
+ only: function only(n) {
607
+ var t = $$2(n);
608
+ if (1 !== t.length) throw "Children.only";
609
+ return t[0];
610
+ },
611
+ toArray: $$2
612
+ },
613
+ O = l$4.__e;
614
+ l$4.__e = function (n, t, e, r) {
615
+ if (n.then) for (var u, o = t; o = o.__;) if ((u = o.__c) && u.__c) return null == t.__e && (t.__e = e.__e, t.__k = e.__k), u.__c(n, t);
616
+ O(n, t, e, r);
617
+ };
618
+ var T$1 = l$4.unmount;
619
+ function F$2(n, t, e) {
620
+ return n && (n.__c && n.__c.__H && (n.__c.__H.__.forEach(function (n) {
621
+ "function" == typeof n.__c && n.__c();
622
+ }), n.__c.__H = null), null != (n = g$3({}, n)).__c && (n.__c.__P === e && (n.__c.__P = t), n.__c = null), n.__k = n.__k && n.__k.map(function (n) {
623
+ return F$2(n, t, e);
624
+ })), n;
625
+ }
626
+ function I$2(n, t, e) {
627
+ return n && e && (n.__v = null, n.__k = n.__k && n.__k.map(function (n) {
628
+ return I$2(n, t, e);
629
+ }), n.__c && n.__c.__P === t && (n.__e && e.appendChild(n.__e), n.__c.__e = !0, n.__c.__P = e)), n;
630
+ }
631
+ function L$1() {
632
+ this.__u = 0, this.t = null, this.__b = null;
633
+ }
634
+ function U$1(n) {
635
+ var t = n.__.__c;
636
+ return t && t.__a && t.__a(n);
637
+ }
638
+ function D$1(n) {
639
+ var e, r, u;
640
+ function o(o) {
641
+ if (e || (e = n()).then(function (n) {
642
+ r = n["default"] || n;
643
+ }, function (n) {
644
+ u = n;
645
+ }), u) throw u;
646
+ if (!r) throw e;
647
+ return y$3(r, o);
648
+ }
649
+ return o.displayName = "Lazy", o.__f = !0, o;
650
+ }
651
+ function M$1() {
652
+ this.u = null, this.o = null;
653
+ }
654
+ l$4.unmount = function (n) {
655
+ var t = n.__c;
656
+ t && t.__R && t.__R(), t && 32 & n.__u && (n.type = null), T$1 && T$1(n);
657
+ }, (L$1.prototype = new b$4()).__c = function (n, t) {
658
+ var e = t.__c,
659
+ r = this;
660
+ null == r.t && (r.t = []), r.t.push(e);
661
+ var u = U$1(r.__v),
662
+ o = !1,
663
+ i = function i() {
664
+ o || (o = !0, e.__R = null, u ? u(l) : l());
665
+ };
666
+ e.__R = i;
667
+ var l = function l() {
668
+ if (! --r.__u) {
669
+ if (r.state.__a) {
670
+ var n = r.state.__a;
671
+ r.__v.__k[0] = I$2(n, n.__c.__P, n.__c.__O);
672
+ }
673
+ var t;
674
+ for (r.setState({
675
+ __a: r.__b = null
676
+ }); t = r.t.pop();) t.forceUpdate();
677
+ }
678
+ };
679
+ r.__u++ || 32 & t.__u || r.setState({
680
+ __a: r.__b = r.__v.__k[0]
681
+ }), n.then(i, i);
682
+ }, L$1.prototype.componentWillUnmount = function () {
683
+ this.t = [];
684
+ }, L$1.prototype.render = function (n, e) {
685
+ if (this.__b) {
686
+ if (this.__v.__k) {
687
+ var r = document.createElement("div"),
688
+ o = this.__v.__k[0].__c;
689
+ this.__v.__k[0] = F$2(this.__b, r, o.__O = o.__P);
690
+ }
691
+ this.__b = null;
692
+ }
693
+ var i = e.__a && y$3(g$5, null, n.fallback);
694
+ return i && (i.__u &= -33), [y$3(g$5, null, e.__a ? null : n.children), i];
695
+ };
696
+ var V$1 = function V$1(n, t, e) {
697
+ if (++e[1] === e[0] && n.o["delete"](t), n.props.revealOrder && ("t" !== n.props.revealOrder[0] || !n.o.size)) for (e = n.u; e;) {
698
+ for (; e.length > 3;) e.pop()();
699
+ if (e[1] < e[0]) break;
700
+ n.u = e = e[2];
701
+ }
702
+ };
703
+ function W$1(n) {
704
+ return this.getChildContext = function () {
705
+ return n.context;
706
+ }, n.children;
707
+ }
708
+ function P$1(n) {
709
+ var e = this,
710
+ r = n.i;
711
+ e.componentWillUnmount = function () {
712
+ q$6(null, e.l), e.l = null, e.i = null;
713
+ }, e.i && e.i !== r && e.componentWillUnmount(), e.l || (e.i = r, e.l = {
714
+ nodeType: 1,
715
+ parentNode: r,
716
+ childNodes: [],
717
+ appendChild: function appendChild(n) {
718
+ this.childNodes.push(n), e.i.appendChild(n);
719
+ },
720
+ insertBefore: function insertBefore(n, t) {
721
+ this.childNodes.push(n), e.i.appendChild(n);
722
+ },
723
+ removeChild: function removeChild(n) {
724
+ this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), e.i.removeChild(n);
725
+ }
726
+ }), q$6(y$3(W$1, {
727
+ context: e.context
728
+ }, n.__v), e.l);
729
+ }
730
+ function j$1(n, e) {
731
+ var r = y$3(P$1, {
732
+ __v: n,
733
+ i: e
734
+ });
735
+ return r.containerInfo = e, r;
736
+ }
737
+ (M$1.prototype = new b$4()).__a = function (n) {
738
+ var t = this,
739
+ e = U$1(t.__v),
740
+ r = t.o.get(n);
741
+ return r[0]++, function (u) {
742
+ var o = function o() {
743
+ t.props.revealOrder ? (r.push(u), V$1(t, n, r)) : u();
744
+ };
745
+ e ? e(o) : o();
746
+ };
747
+ }, M$1.prototype.render = function (n) {
748
+ this.u = null, this.o = new Map();
749
+ var t = $$2(n.children);
750
+ n.revealOrder && "b" === n.revealOrder[0] && t.reverse();
751
+ for (var e = t.length; e--;) this.o.set(t[e], this.u = [1, 0, this.u]);
752
+ return n.children;
753
+ }, M$1.prototype.componentDidUpdate = M$1.prototype.componentDidMount = function () {
754
+ var n = this;
755
+ this.o.forEach(function (t, e) {
756
+ V$1(n, e, t);
757
+ });
758
+ };
759
+ var z$3 = "undefined" != typeof Symbol && Symbol["for"] && Symbol["for"]("react.element") || 60103,
760
+ B$2 = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,
761
+ H$2 = /^on(Ani|Tra|Tou|BeforeInp|Compo)/,
762
+ Z$1 = /[A-Z0-9]/g,
763
+ Y$1 = "undefined" != typeof document,
764
+ $$1 = function $$1(n) {
765
+ return ("undefined" != typeof Symbol && "symbol" == _typeof(Symbol()) ? /fil|che|rad/ : /fil|che|ra/).test(n);
766
+ };
767
+ function q$4(n, t, e) {
768
+ return null == t.__k && (t.textContent = ""), q$6(n, t), "function" == typeof e && e(), n ? n.__c : null;
769
+ }
770
+ function G$2(n, t, e) {
771
+ return B$4(n, t), "function" == typeof e && e(), n ? n.__c : null;
772
+ }
773
+ b$4.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function (t) {
774
+ Object.defineProperty(b$4.prototype, t, {
775
+ configurable: !0,
776
+ get: function get() {
777
+ return this["UNSAFE_" + t];
778
+ },
779
+ set: function set(n) {
780
+ Object.defineProperty(this, t, {
781
+ configurable: !0,
782
+ writable: !0,
783
+ value: n
784
+ });
785
+ }
786
+ });
787
+ });
788
+ var J$1 = l$4.event;
789
+ function K$1() {}
790
+ function Q$1() {
791
+ return this.cancelBubble;
792
+ }
793
+ function X$1() {
794
+ return this.defaultPrevented;
795
+ }
796
+ l$4.event = function (n) {
797
+ return J$1 && (n = J$1(n)), n.persist = K$1, n.isPropagationStopped = Q$1, n.isDefaultPrevented = X$1, n.nativeEvent = n;
798
+ };
799
+ var nn,
800
+ tn = {
801
+ enumerable: !1,
802
+ configurable: !0,
803
+ get: function get() {
804
+ return this["class"];
805
+ }
806
+ },
807
+ en = l$4.vnode;
808
+ l$4.vnode = function (n) {
809
+ "string" == typeof n.type && function (n) {
810
+ var t = n.props,
811
+ e = n.type,
812
+ u = {};
813
+ for (var o in t) {
814
+ var i = t[o];
815
+ if (!("value" === o && "defaultValue" in t && null == i || Y$1 && "children" === o && "noscript" === e || "class" === o || "className" === o)) {
816
+ var l = o.toLowerCase();
817
+ "defaultValue" === o && "value" in t && null == t.value ? o = "value" : "download" === o && !0 === i ? i = "" : "ondoubleclick" === l ? o = "ondblclick" : "onchange" !== l || "input" !== e && "textarea" !== e || $$1(t.type) ? "onfocus" === l ? o = "onfocusin" : "onblur" === l ? o = "onfocusout" : H$2.test(o) ? o = l : -1 === e.indexOf("-") && B$2.test(o) ? o = o.replace(Z$1, "-$&").toLowerCase() : null === i && (i = void 0) : l = o = "oninput", "oninput" === l && u[o = l] && (o = "oninputCapture"), u[o] = i;
818
+ }
819
+ }
820
+ "select" == e && u.multiple && Array.isArray(u.value) && (u.value = $$2(t.children).forEach(function (n) {
821
+ n.props.selected = -1 != u.value.indexOf(n.props.value);
822
+ })), "select" == e && null != u.defaultValue && (u.value = $$2(t.children).forEach(function (n) {
823
+ n.props.selected = u.multiple ? -1 != u.defaultValue.indexOf(n.props.value) : u.defaultValue == n.props.value;
824
+ })), t["class"] && !t.className ? (u["class"] = t["class"], Object.defineProperty(u, "className", tn)) : (t.className && !t["class"] || t["class"] && t.className) && (u["class"] = u.className = t.className), n.props = u;
825
+ }(n), n.$$typeof = z$3, en && en(n);
826
+ };
827
+ var rn = l$4.__r;
828
+ l$4.__r = function (n) {
829
+ rn && rn(n), nn = n.__c;
830
+ };
831
+ var un = l$4.diffed;
832
+ l$4.diffed = function (n) {
833
+ un && un(n);
834
+ var t = n.props,
835
+ e = n.__e;
836
+ null != e && "textarea" === n.type && "value" in t && t.value !== e.value && (e.value = null == t.value ? "" : t.value), nn = null;
837
+ };
838
+ var on = {
839
+ ReactCurrentDispatcher: {
840
+ current: {
841
+ readContext: function readContext(n) {
842
+ return nn.__n[n.__c].props.value;
843
+ }
844
+ }
845
+ }
846
+ },
847
+ ln = "17.0.2";
848
+ function cn(n) {
849
+ return y$3.bind(null, n);
850
+ }
851
+ function fn(n) {
852
+ return !!n && n.$$typeof === z$3;
853
+ }
854
+ function an(n) {
855
+ return fn(n) && n.type === g$5;
856
+ }
857
+ function sn(n) {
858
+ return fn(n) ? E$3.apply(null, arguments) : n;
859
+ }
860
+ function hn(n) {
861
+ return !!n.__k && (q$6(null, n), !0);
862
+ }
863
+ function vn(n) {
864
+ return n && (n.base || 1 === n.nodeType && n) || null;
865
+ }
866
+ var dn = function dn(n, t) {
867
+ return n(t);
868
+ },
869
+ pn = function pn(n, t) {
870
+ return n(t);
871
+ },
872
+ mn = g$5;
873
+ function yn(n) {
874
+ n();
875
+ }
876
+ function _n(n) {
877
+ return n;
878
+ }
879
+ function bn() {
880
+ return [!1, yn];
881
+ }
882
+ var Sn = y$2,
883
+ gn = fn;
884
+ function Cn(n, t) {
885
+ var e = t(),
886
+ r = h$4({
887
+ h: {
888
+ __: e,
889
+ v: t
890
+ }
891
+ }),
892
+ u = r[0].h,
893
+ o = r[1];
894
+ return y$2(function () {
895
+ u.__ = e, u.v = t, En(u) && o({
896
+ h: u
897
+ });
898
+ }, [n, e, t]), p$3(function () {
899
+ return En(u) && o({
900
+ h: u
901
+ }), n(function () {
902
+ En(u) && o({
903
+ h: u
904
+ });
905
+ });
906
+ }, [n]), e;
907
+ }
908
+ function En(n) {
909
+ var t,
910
+ e,
911
+ r = n.v,
912
+ u = n.__;
913
+ try {
914
+ var o = r();
915
+ return !((t = u) === (e = o) && (0 !== t || 1 / t == 1 / e) || t != t && e != e);
916
+ } catch (n) {
917
+ return !0;
918
+ }
919
+ }
920
+ var wn = {
921
+ useState: h$4,
922
+ useId: V$2,
923
+ useReducer: s,
924
+ useEffect: p$3,
925
+ useLayoutEffect: y$2,
926
+ useInsertionEffect: Sn,
927
+ useTransition: bn,
928
+ useDeferredValue: _n,
929
+ useSyncExternalStore: Cn,
930
+ startTransition: yn,
931
+ useRef: _$1,
932
+ useImperativeHandle: A$4,
933
+ useMemo: F$3,
934
+ useCallback: T$2,
935
+ useContext: q$5,
936
+ useDebugValue: x$4,
937
+ version: "17.0.2",
938
+ Children: A$3,
939
+ render: q$4,
940
+ hydrate: G$2,
941
+ unmountComponentAtNode: hn,
942
+ createPortal: j$1,
943
+ createElement: y$3,
944
+ createContext: F$4,
945
+ createFactory: cn,
946
+ cloneElement: sn,
947
+ createRef: _$2,
948
+ Fragment: g$5,
949
+ isValidElement: fn,
950
+ isElement: gn,
951
+ isFragment: an,
952
+ findDOMNode: vn,
953
+ Component: b$4,
954
+ PureComponent: E$2,
955
+ memo: w$3,
956
+ forwardRef: N$1,
957
+ flushSync: pn,
958
+ unstable_batchedUpdates: dn,
959
+ StrictMode: mn,
960
+ Suspense: L$1,
961
+ SuspenseList: M$1,
962
+ lazy: D$1,
963
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: on
964
+ };
965
+ var compat_module = /*#__PURE__*/Object.freeze({
966
+ __proto__: null,
967
+ Children: A$3,
968
+ Component: b$4,
969
+ Fragment: g$5,
970
+ PureComponent: E$2,
971
+ StrictMode: mn,
972
+ Suspense: L$1,
973
+ SuspenseList: M$1,
974
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: on,
975
+ cloneElement: sn,
976
+ createContext: F$4,
977
+ createElement: y$3,
978
+ createFactory: cn,
979
+ createPortal: j$1,
980
+ createRef: _$2,
981
+ "default": wn,
982
+ findDOMNode: vn,
983
+ flushSync: pn,
984
+ forwardRef: N$1,
985
+ hydrate: G$2,
986
+ isElement: gn,
987
+ isFragment: an,
988
+ isValidElement: fn,
989
+ lazy: D$1,
990
+ memo: w$3,
991
+ render: q$4,
992
+ startTransition: yn,
993
+ unmountComponentAtNode: hn,
994
+ unstable_batchedUpdates: dn,
995
+ useCallback: T$2,
996
+ useContext: q$5,
997
+ useDebugValue: x$4,
998
+ useDeferredValue: _n,
999
+ useEffect: p$3,
1000
+ useErrorBoundary: P$2,
1001
+ useId: V$2,
1002
+ useImperativeHandle: A$4,
1003
+ useInsertionEffect: Sn,
1004
+ useLayoutEffect: y$2,
1005
+ useMemo: F$3,
1006
+ useReducer: s,
1007
+ useRef: _$1,
1008
+ useState: h$4,
1009
+ useSyncExternalStore: Cn,
1010
+ useTransition: bn,
1011
+ version: ln
1012
+ });
1013
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
1014
+ function getDefaultExportFromCjs(x) {
1015
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
1016
+ }
1017
+ function getAugmentedNamespace(n) {
1018
+ if (n.__esModule) return n;
1019
+ var f = n["default"];
1020
+ if (typeof f == "function") {
1021
+ var a = function a() {
1022
+ if (this instanceof a) {
1023
+ return Reflect.construct(f, arguments, this.constructor);
1024
+ }
1025
+ return f.apply(this, arguments);
1026
+ };
1027
+ a.prototype = f.prototype;
1028
+ } else a = {};
1029
+ Object.defineProperty(a, '__esModule', {
1030
+ value: true
1031
+ });
1032
+ Object.keys(n).forEach(function (k) {
1033
+ var d = Object.getOwnPropertyDescriptor(n, k);
1034
+ Object.defineProperty(a, k, d.get ? d : {
1035
+ enumerable: true,
1036
+ get: function get() {
1037
+ return n[k];
1038
+ }
1039
+ });
1040
+ });
1041
+ return a;
1042
+ }
1043
+ var reactIs$2 = {
1044
+ exports: {}
1045
+ };
1046
+ var reactIs_production_min$1 = {};
1047
+ var b$2 = 60103,
1048
+ c$1 = 60106,
1049
+ d$1 = 60107,
1050
+ e$2 = 60108,
1051
+ f$1 = 60114,
1052
+ g$2 = 60109,
1053
+ h$3 = 60110,
1054
+ k$3 = 60112,
1055
+ l$2 = 60113,
1056
+ m$2 = 60120,
1057
+ n$2 = 60115,
1058
+ p$2 = 60116,
1059
+ q$3 = 60121,
1060
+ r$2 = 60122,
1061
+ u$1 = 60117,
1062
+ v$2 = 60129,
1063
+ w$2 = 60131;
1064
+ if ("function" === typeof Symbol && Symbol["for"]) {
1065
+ var x$2 = Symbol["for"];
1066
+ b$2 = x$2("react.element");
1067
+ c$1 = x$2("react.portal");
1068
+ d$1 = x$2("react.fragment");
1069
+ e$2 = x$2("react.strict_mode");
1070
+ f$1 = x$2("react.profiler");
1071
+ g$2 = x$2("react.provider");
1072
+ h$3 = x$2("react.context");
1073
+ k$3 = x$2("react.forward_ref");
1074
+ l$2 = x$2("react.suspense");
1075
+ m$2 = x$2("react.suspense_list");
1076
+ n$2 = x$2("react.memo");
1077
+ p$2 = x$2("react.lazy");
1078
+ q$3 = x$2("react.block");
1079
+ r$2 = x$2("react.server.block");
1080
+ u$1 = x$2("react.fundamental");
1081
+ v$2 = x$2("react.debug_trace_mode");
1082
+ w$2 = x$2("react.legacy_hidden");
1083
+ }
1084
+ function y$1(a) {
1085
+ if ("object" === _typeof(a) && null !== a) {
1086
+ var t = a.$$typeof;
1087
+ switch (t) {
1088
+ case b$2:
1089
+ switch (a = a.type, a) {
1090
+ case d$1:
1091
+ case f$1:
1092
+ case e$2:
1093
+ case l$2:
1094
+ case m$2:
1095
+ return a;
1096
+ default:
1097
+ switch (a = a && a.$$typeof, a) {
1098
+ case h$3:
1099
+ case k$3:
1100
+ case p$2:
1101
+ case n$2:
1102
+ case g$2:
1103
+ return a;
1104
+ default:
1105
+ return t;
1106
+ }
1107
+ }
1108
+ case c$1:
1109
+ return t;
1110
+ }
1111
+ }
1112
+ }
1113
+ var z$2 = g$2,
1114
+ A$2 = b$2,
1115
+ B$1 = k$3,
1116
+ C = d$1,
1117
+ D = p$2,
1118
+ E$1 = n$2,
1119
+ F$1 = c$1,
1120
+ G$1 = f$1,
1121
+ H$1 = e$2,
1122
+ I$1 = l$2;
1123
+ reactIs_production_min$1.ContextConsumer = h$3;
1124
+ reactIs_production_min$1.ContextProvider = z$2;
1125
+ reactIs_production_min$1.Element = A$2;
1126
+ reactIs_production_min$1.ForwardRef = B$1;
1127
+ reactIs_production_min$1.Fragment = C;
1128
+ reactIs_production_min$1.Lazy = D;
1129
+ reactIs_production_min$1.Memo = E$1;
1130
+ reactIs_production_min$1.Portal = F$1;
1131
+ reactIs_production_min$1.Profiler = G$1;
1132
+ reactIs_production_min$1.StrictMode = H$1;
1133
+ reactIs_production_min$1.Suspense = I$1;
1134
+ reactIs_production_min$1.isAsyncMode = function () {
1135
+ return !1;
1136
+ };
1137
+ reactIs_production_min$1.isConcurrentMode = function () {
1138
+ return !1;
1139
+ };
1140
+ reactIs_production_min$1.isContextConsumer = function (a) {
1141
+ return y$1(a) === h$3;
1142
+ };
1143
+ reactIs_production_min$1.isContextProvider = function (a) {
1144
+ return y$1(a) === g$2;
1145
+ };
1146
+ reactIs_production_min$1.isElement = function (a) {
1147
+ return "object" === _typeof(a) && null !== a && a.$$typeof === b$2;
1148
+ };
1149
+ reactIs_production_min$1.isForwardRef = function (a) {
1150
+ return y$1(a) === k$3;
1151
+ };
1152
+ reactIs_production_min$1.isFragment = function (a) {
1153
+ return y$1(a) === d$1;
1154
+ };
1155
+ reactIs_production_min$1.isLazy = function (a) {
1156
+ return y$1(a) === p$2;
1157
+ };
1158
+ reactIs_production_min$1.isMemo = function (a) {
1159
+ return y$1(a) === n$2;
1160
+ };
1161
+ reactIs_production_min$1.isPortal = function (a) {
1162
+ return y$1(a) === c$1;
1163
+ };
1164
+ reactIs_production_min$1.isProfiler = function (a) {
1165
+ return y$1(a) === f$1;
1166
+ };
1167
+ reactIs_production_min$1.isStrictMode = function (a) {
1168
+ return y$1(a) === e$2;
1169
+ };
1170
+ reactIs_production_min$1.isSuspense = function (a) {
1171
+ return y$1(a) === l$2;
1172
+ };
1173
+ reactIs_production_min$1.isValidElementType = function (a) {
1174
+ return "string" === typeof a || "function" === typeof a || a === d$1 || a === f$1 || a === v$2 || a === e$2 || a === l$2 || a === m$2 || a === w$2 || "object" === _typeof(a) && null !== a && (a.$$typeof === p$2 || a.$$typeof === n$2 || a.$$typeof === g$2 || a.$$typeof === h$3 || a.$$typeof === k$3 || a.$$typeof === u$1 || a.$$typeof === q$3 || a[0] === r$2) ? !0 : !1;
1175
+ };
1176
+ reactIs_production_min$1.typeOf = y$1;
1177
+ {
1178
+ reactIs$2.exports = reactIs_production_min$1;
1179
+ }
1180
+ var reactIsExports$1 = reactIs$2.exports;
1181
+ var shallowequal = function shallowEqual(objA, objB, compare, compareContext) {
1182
+ var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
1183
+ if (ret !== void 0) {
1184
+ return !!ret;
1185
+ }
1186
+ if (objA === objB) {
1187
+ return true;
1188
+ }
1189
+ if (_typeof(objA) !== "object" || !objA || _typeof(objB) !== "object" || !objB) {
1190
+ return false;
1191
+ }
1192
+ var keysA = Object.keys(objA);
1193
+ var keysB = Object.keys(objB);
1194
+ if (keysA.length !== keysB.length) {
1195
+ return false;
1196
+ }
1197
+ var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
1198
+ for (var idx = 0; idx < keysA.length; idx++) {
1199
+ var key = keysA[idx];
1200
+ if (!bHasOwnProperty(key)) {
1201
+ return false;
1202
+ }
1203
+ var valueA = objA[key];
1204
+ var valueB = objB[key];
1205
+ ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
1206
+ if (ret === false || ret === void 0 && valueA !== valueB) {
1207
+ return false;
1208
+ }
1209
+ }
1210
+ return true;
1211
+ };
1212
+ var h$2 = /*@__PURE__*/getDefaultExportFromCjs(shallowequal);
1213
+ function stylis_min(W) {
1214
+ function M(d, c, e, h, a) {
1215
+ for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B;) {
1216
+ g = e.charCodeAt(l);
1217
+ l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
1218
+ if (0 === b + n + v + m) {
1219
+ if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
1220
+ switch (g) {
1221
+ case 32:
1222
+ case 9:
1223
+ case 59:
1224
+ case 13:
1225
+ case 10:
1226
+ break;
1227
+ default:
1228
+ f += e.charAt(l);
1229
+ }
1230
+ g = 59;
1231
+ }
1232
+ switch (g) {
1233
+ case 123:
1234
+ f = f.trim();
1235
+ q = f.charCodeAt(0);
1236
+ k = 1;
1237
+ for (t = ++l; l < B;) {
1238
+ switch (g = e.charCodeAt(l)) {
1239
+ case 123:
1240
+ k++;
1241
+ break;
1242
+ case 125:
1243
+ k--;
1244
+ break;
1245
+ case 47:
1246
+ switch (g = e.charCodeAt(l + 1)) {
1247
+ case 42:
1248
+ case 47:
1249
+ a: {
1250
+ for (u = l + 1; u < J; ++u) {
1251
+ switch (e.charCodeAt(u)) {
1252
+ case 47:
1253
+ if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
1254
+ l = u + 1;
1255
+ break a;
1256
+ }
1257
+ break;
1258
+ case 10:
1259
+ if (47 === g) {
1260
+ l = u + 1;
1261
+ break a;
1262
+ }
1263
+ }
1264
+ }
1265
+ l = u;
1266
+ }
1267
+ }
1268
+ break;
1269
+ case 91:
1270
+ g++;
1271
+ case 40:
1272
+ g++;
1273
+ case 34:
1274
+ case 39:
1275
+ for (; l++ < J && e.charCodeAt(l) !== g;) {}
1276
+ }
1277
+ if (0 === k) break;
1278
+ l++;
1279
+ }
1280
+ k = e.substring(t, l);
1281
+ 0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
1282
+ switch (q) {
1283
+ case 64:
1284
+ 0 < r && (f = f.replace(N, ''));
1285
+ g = f.charCodeAt(1);
1286
+ switch (g) {
1287
+ case 100:
1288
+ case 109:
1289
+ case 115:
1290
+ case 45:
1291
+ r = c;
1292
+ break;
1293
+ default:
1294
+ r = O;
1295
+ }
1296
+ k = M(c, r, k, g, a + 1);
1297
+ t = k.length;
1298
+ 0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));
1299
+ if (0 < t) switch (g) {
1300
+ case 115:
1301
+ f = f.replace(da, ea);
1302
+ case 100:
1303
+ case 109:
1304
+ case 45:
1305
+ k = f + '{' + k + '}';
1306
+ break;
1307
+ case 107:
1308
+ f = f.replace(fa, '$1 $2');
1309
+ k = f + '{' + k + '}';
1310
+ k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
1311
+ break;
1312
+ default:
1313
+ k = f + k, 112 === h && (k = (p += k, ''));
1314
+ } else k = '';
1315
+ break;
1316
+ default:
1317
+ k = M(c, X(c, f, I), k, h, a + 1);
1318
+ }
1319
+ F += k;
1320
+ k = I = r = u = q = 0;
1321
+ f = '';
1322
+ g = e.charCodeAt(++l);
1323
+ break;
1324
+ case 125:
1325
+ case 59:
1326
+ f = (0 < r ? f.replace(N, '') : f).trim();
1327
+ if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) {
1328
+ case 0:
1329
+ break;
1330
+ case 64:
1331
+ if (105 === g || 99 === g) {
1332
+ G += f + e.charAt(l);
1333
+ break;
1334
+ }
1335
+ default:
1336
+ 58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
1337
+ }
1338
+ I = r = u = q = 0;
1339
+ f = '';
1340
+ g = e.charCodeAt(++l);
1341
+ }
1342
+ }
1343
+ switch (g) {
1344
+ case 13:
1345
+ case 10:
1346
+ 47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
1347
+ 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
1348
+ z = 1;
1349
+ D++;
1350
+ break;
1351
+ case 59:
1352
+ case 125:
1353
+ if (0 === b + n + v + m) {
1354
+ z++;
1355
+ break;
1356
+ }
1357
+ default:
1358
+ z++;
1359
+ y = e.charAt(l);
1360
+ switch (g) {
1361
+ case 9:
1362
+ case 32:
1363
+ if (0 === n + m + b) switch (x) {
1364
+ case 44:
1365
+ case 58:
1366
+ case 9:
1367
+ case 32:
1368
+ y = '';
1369
+ break;
1370
+ default:
1371
+ 32 !== g && (y = ' ');
1372
+ }
1373
+ break;
1374
+ case 0:
1375
+ y = '\\0';
1376
+ break;
1377
+ case 12:
1378
+ y = '\\f';
1379
+ break;
1380
+ case 11:
1381
+ y = '\\v';
1382
+ break;
1383
+ case 38:
1384
+ 0 === n + b + m && (r = I = 1, y = '\f' + y);
1385
+ break;
1386
+ case 108:
1387
+ if (0 === n + b + m + E && 0 < u) switch (l - u) {
1388
+ case 2:
1389
+ 112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
1390
+ case 8:
1391
+ 111 === K && (E = K);
1392
+ }
1393
+ break;
1394
+ case 58:
1395
+ 0 === n + b + m && (u = l);
1396
+ break;
1397
+ case 44:
1398
+ 0 === b + v + n + m && (r = 1, y += '\r');
1399
+ break;
1400
+ case 34:
1401
+ case 39:
1402
+ 0 === b && (n = n === g ? 0 : 0 === n ? g : n);
1403
+ break;
1404
+ case 91:
1405
+ 0 === n + b + v && m++;
1406
+ break;
1407
+ case 93:
1408
+ 0 === n + b + v && m--;
1409
+ break;
1410
+ case 41:
1411
+ 0 === n + b + m && v--;
1412
+ break;
1413
+ case 40:
1414
+ if (0 === n + b + m) {
1415
+ if (0 === q) switch (2 * x + 3 * K) {
1416
+ case 533:
1417
+ break;
1418
+ default:
1419
+ q = 1;
1420
+ }
1421
+ v++;
1422
+ }
1423
+ break;
1424
+ case 64:
1425
+ 0 === b + v + n + m + u + k && (k = 1);
1426
+ break;
1427
+ case 42:
1428
+ case 47:
1429
+ if (!(0 < n + m + v)) switch (b) {
1430
+ case 0:
1431
+ switch (2 * g + 3 * e.charCodeAt(l + 1)) {
1432
+ case 235:
1433
+ b = 47;
1434
+ break;
1435
+ case 220:
1436
+ t = l, b = 42;
1437
+ }
1438
+ break;
1439
+ case 42:
1440
+ 47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
1441
+ }
1442
+ }
1443
+ 0 === b && (f += y);
1444
+ }
1445
+ K = x;
1446
+ x = g;
1447
+ l++;
1448
+ }
1449
+ t = p.length;
1450
+ if (0 < t) {
1451
+ r = c;
1452
+ if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F;
1453
+ p = r.join(',') + '{' + p + '}';
1454
+ if (0 !== w * E) {
1455
+ 2 !== w || L(p, 2) || (E = 0);
1456
+ switch (E) {
1457
+ case 111:
1458
+ p = p.replace(ha, ':-moz-$1') + p;
1459
+ break;
1460
+ case 112:
1461
+ p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;
1462
+ }
1463
+ E = 0;
1464
+ }
1465
+ }
1466
+ return G + p + F;
1467
+ }
1468
+ function X(d, c, e) {
1469
+ var h = c.trim().split(ia);
1470
+ c = h;
1471
+ var a = h.length,
1472
+ m = d.length;
1473
+ switch (m) {
1474
+ case 0:
1475
+ case 1:
1476
+ var b = 0;
1477
+ for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
1478
+ c[b] = Z(d, c[b], e).trim();
1479
+ }
1480
+ break;
1481
+ default:
1482
+ var v = b = 0;
1483
+ for (c = []; b < a; ++b) {
1484
+ for (var n = 0; n < m; ++n) {
1485
+ c[v++] = Z(d[n] + ' ', h[b], e).trim();
1486
+ }
1487
+ }
1488
+ }
1489
+ return c;
1490
+ }
1491
+ function Z(d, c, e) {
1492
+ var h = c.charCodeAt(0);
1493
+ 33 > h && (h = (c = c.trim()).charCodeAt(0));
1494
+ switch (h) {
1495
+ case 38:
1496
+ return c.replace(F, '$1' + d.trim());
1497
+ case 58:
1498
+ return d.trim() + c.replace(F, '$1' + d.trim());
1499
+ default:
1500
+ if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());
1501
+ }
1502
+ return d + c;
1503
+ }
1504
+ function P(d, c, e, h) {
1505
+ var a = d + ';',
1506
+ m = 2 * c + 3 * e + 4 * h;
1507
+ if (944 === m) {
1508
+ d = a.indexOf(':', 9) + 1;
1509
+ var b = a.substring(d, a.length - 1).trim();
1510
+ b = a.substring(0, d).trim() + b + ';';
1511
+ return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
1512
+ }
1513
+ if (0 === w || 2 === w && !L(a, 1)) return a;
1514
+ switch (m) {
1515
+ case 1015:
1516
+ return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
1517
+ case 951:
1518
+ return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
1519
+ case 963:
1520
+ return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
1521
+ case 1009:
1522
+ if (100 !== a.charCodeAt(4)) break;
1523
+ case 969:
1524
+ case 942:
1525
+ return '-webkit-' + a + a;
1526
+ case 978:
1527
+ return '-webkit-' + a + '-moz-' + a + a;
1528
+ case 1019:
1529
+ case 983:
1530
+ return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
1531
+ case 883:
1532
+ if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
1533
+ if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
1534
+ break;
1535
+ case 932:
1536
+ if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {
1537
+ case 103:
1538
+ return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;
1539
+ case 115:
1540
+ return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
1541
+ case 98:
1542
+ return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
1543
+ }
1544
+ return '-webkit-' + a + '-ms-' + a + a;
1545
+ case 964:
1546
+ return '-webkit-' + a + '-ms-flex-' + a + a;
1547
+ case 1023:
1548
+ if (99 !== a.charCodeAt(8)) break;
1549
+ b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');
1550
+ return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;
1551
+ case 1005:
1552
+ return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;
1553
+ case 1e3:
1554
+ b = a.substring(13).trim();
1555
+ c = b.indexOf('-') + 1;
1556
+ switch (b.charCodeAt(0) + b.charCodeAt(c)) {
1557
+ case 226:
1558
+ b = a.replace(G, 'tb');
1559
+ break;
1560
+ case 232:
1561
+ b = a.replace(G, 'tb-rl');
1562
+ break;
1563
+ case 220:
1564
+ b = a.replace(G, 'lr');
1565
+ break;
1566
+ default:
1567
+ return a;
1568
+ }
1569
+ return '-webkit-' + a + '-ms-' + b + a;
1570
+ case 1017:
1571
+ if (-1 === a.indexOf('sticky', 9)) break;
1572
+ case 975:
1573
+ c = (a = d).length - 10;
1574
+ b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
1575
+ switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
1576
+ case 203:
1577
+ if (111 > b.charCodeAt(8)) break;
1578
+ case 115:
1579
+ a = a.replace(b, '-webkit-' + b) + ';' + a;
1580
+ break;
1581
+ case 207:
1582
+ case 102:
1583
+ a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
1584
+ }
1585
+ return a + ';';
1586
+ case 938:
1587
+ if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
1588
+ case 105:
1589
+ return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
1590
+ case 115:
1591
+ return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
1592
+ default:
1593
+ return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
1594
+ }
1595
+ break;
1596
+ case 973:
1597
+ case 989:
1598
+ if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
1599
+ case 931:
1600
+ case 953:
1601
+ if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;
1602
+ break;
1603
+ case 962:
1604
+ if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;
1605
+ }
1606
+ return a;
1607
+ }
1608
+ function L(d, c) {
1609
+ var e = d.indexOf(1 === c ? ':' : '{'),
1610
+ h = d.substring(0, 3 !== c ? e : 10);
1611
+ e = d.substring(e + 1, d.length - 1);
1612
+ return R(2 !== c ? h : h.replace(na, '$1'), e, c);
1613
+ }
1614
+ function ea(d, c) {
1615
+ var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
1616
+ return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
1617
+ }
1618
+ function H(d, c, e, h, a, m, b, v, n, q) {
1619
+ for (var g = 0, x = c, w; g < A; ++g) {
1620
+ switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
1621
+ case void 0:
1622
+ case !1:
1623
+ case !0:
1624
+ case null:
1625
+ break;
1626
+ default:
1627
+ x = w;
1628
+ }
1629
+ }
1630
+ if (x !== c) return x;
1631
+ }
1632
+ function T(d) {
1633
+ switch (d) {
1634
+ case void 0:
1635
+ case null:
1636
+ A = S.length = 0;
1637
+ break;
1638
+ default:
1639
+ if ('function' === typeof d) S[A++] = d;else if ('object' === _typeof(d)) for (var c = 0, e = d.length; c < e; ++c) {
1640
+ T(d[c]);
1641
+ } else Y = !!d | 0;
1642
+ }
1643
+ return T;
1644
+ }
1645
+ function U(d) {
1646
+ d = d.prefix;
1647
+ void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
1648
+ return U;
1649
+ }
1650
+ function B(d, c) {
1651
+ var e = d;
1652
+ 33 > e.charCodeAt(0) && (e = e.trim());
1653
+ V = e;
1654
+ e = [V];
1655
+ if (0 < A) {
1656
+ var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
1657
+ void 0 !== h && 'string' === typeof h && (c = h);
1658
+ }
1659
+ var a = M(O, e, c, 0, 0);
1660
+ 0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
1661
+ V = '';
1662
+ E = 0;
1663
+ z = D = 1;
1664
+ return a;
1665
+ }
1666
+ var ca = /^\0+/g,
1667
+ N = /[\0\r\f]/g,
1668
+ aa = /: */g,
1669
+ ka = /zoo|gra/,
1670
+ ma = /([,: ])(transform)/g,
1671
+ ia = /,\r+?/g,
1672
+ F = /([\t\r\n ])*\f?&/g,
1673
+ fa = /@(k\w+)\s*(\S*)\s*/,
1674
+ Q = /::(place)/g,
1675
+ ha = /:(read-only)/g,
1676
+ G = /[svh]\w+-[tblr]{2}/,
1677
+ da = /\(\s*(.*)\s*\)/g,
1678
+ oa = /([\s\S]*?);/g,
1679
+ ba = /-self|flex-/g,
1680
+ na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
1681
+ la = /stretch|:\s*\w+\-(?:conte|avail)/,
1682
+ ja = /([^-])(image-set\()/,
1683
+ z = 1,
1684
+ D = 1,
1685
+ E = 0,
1686
+ w = 1,
1687
+ O = [],
1688
+ S = [],
1689
+ A = 0,
1690
+ R = null,
1691
+ Y = 0,
1692
+ V = '';
1693
+ B.use = T;
1694
+ B.set = U;
1695
+ void 0 !== W && U(W);
1696
+ return B;
1697
+ }
1698
+ var unitlessKeys = {
1699
+ animationIterationCount: 1,
1700
+ borderImageOutset: 1,
1701
+ borderImageSlice: 1,
1702
+ borderImageWidth: 1,
1703
+ boxFlex: 1,
1704
+ boxFlexGroup: 1,
1705
+ boxOrdinalGroup: 1,
1706
+ columnCount: 1,
1707
+ columns: 1,
1708
+ flex: 1,
1709
+ flexGrow: 1,
1710
+ flexPositive: 1,
1711
+ flexShrink: 1,
1712
+ flexNegative: 1,
1713
+ flexOrder: 1,
1714
+ gridRow: 1,
1715
+ gridRowEnd: 1,
1716
+ gridRowSpan: 1,
1717
+ gridRowStart: 1,
1718
+ gridColumn: 1,
1719
+ gridColumnEnd: 1,
1720
+ gridColumnSpan: 1,
1721
+ gridColumnStart: 1,
1722
+ msGridRow: 1,
1723
+ msGridRowSpan: 1,
1724
+ msGridColumn: 1,
1725
+ msGridColumnSpan: 1,
1726
+ fontWeight: 1,
1727
+ lineHeight: 1,
1728
+ opacity: 1,
1729
+ order: 1,
1730
+ orphans: 1,
1731
+ tabSize: 1,
1732
+ widows: 1,
1733
+ zIndex: 1,
1734
+ zoom: 1,
1735
+ WebkitLineClamp: 1,
1736
+ fillOpacity: 1,
1737
+ floodOpacity: 1,
1738
+ stopOpacity: 1,
1739
+ strokeDasharray: 1,
1740
+ strokeDashoffset: 1,
1741
+ strokeMiterlimit: 1,
1742
+ strokeOpacity: 1,
1743
+ strokeWidth: 1
1744
+ };
1745
+ function memoize(fn) {
1746
+ var cache = Object.create(null);
1747
+ return function (arg) {
1748
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
1749
+ return cache[arg];
1750
+ };
1751
+ }
1752
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
1753
+ var isPropValid = /* #__PURE__ */memoize(function (prop) {
1754
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
1755
+ });
1756
+ var reactIs$1 = {
1757
+ exports: {}
1758
+ };
1759
+ var reactIs_production_min = {};
1760
+ var b$1 = "function" === typeof Symbol && Symbol["for"],
1761
+ c = b$1 ? Symbol["for"]("react.element") : 60103,
1762
+ d = b$1 ? Symbol["for"]("react.portal") : 60106,
1763
+ e$1 = b$1 ? Symbol["for"]("react.fragment") : 60107,
1764
+ f = b$1 ? Symbol["for"]("react.strict_mode") : 60108,
1765
+ g$1 = b$1 ? Symbol["for"]("react.profiler") : 60114,
1766
+ h$1 = b$1 ? Symbol["for"]("react.provider") : 60109,
1767
+ k$2 = b$1 ? Symbol["for"]("react.context") : 60110,
1768
+ l$1 = b$1 ? Symbol["for"]("react.async_mode") : 60111,
1769
+ m$1 = b$1 ? Symbol["for"]("react.concurrent_mode") : 60111,
1770
+ n$1 = b$1 ? Symbol["for"]("react.forward_ref") : 60112,
1771
+ p$1 = b$1 ? Symbol["for"]("react.suspense") : 60113,
1772
+ q$2 = b$1 ? Symbol["for"]("react.suspense_list") : 60120,
1773
+ r$1 = b$1 ? Symbol["for"]("react.memo") : 60115,
1774
+ t$1 = b$1 ? Symbol["for"]("react.lazy") : 60116,
1775
+ v$1 = b$1 ? Symbol["for"]("react.block") : 60121,
1776
+ w$1 = b$1 ? Symbol["for"]("react.fundamental") : 60117,
1777
+ x$1 = b$1 ? Symbol["for"]("react.responder") : 60118,
1778
+ y = b$1 ? Symbol["for"]("react.scope") : 60119;
1779
+ function z$1(a) {
1780
+ if ("object" === _typeof(a) && null !== a) {
1781
+ var u = a.$$typeof;
1782
+ switch (u) {
1783
+ case c:
1784
+ switch (a = a.type, a) {
1785
+ case l$1:
1786
+ case m$1:
1787
+ case e$1:
1788
+ case g$1:
1789
+ case f:
1790
+ case p$1:
1791
+ return a;
1792
+ default:
1793
+ switch (a = a && a.$$typeof, a) {
1794
+ case k$2:
1795
+ case n$1:
1796
+ case t$1:
1797
+ case r$1:
1798
+ case h$1:
1799
+ return a;
1800
+ default:
1801
+ return u;
1802
+ }
1803
+ }
1804
+ case d:
1805
+ return u;
1806
+ }
1807
+ }
1808
+ }
1809
+ function A$1(a) {
1810
+ return z$1(a) === m$1;
1811
+ }
1812
+ reactIs_production_min.AsyncMode = l$1;
1813
+ reactIs_production_min.ConcurrentMode = m$1;
1814
+ reactIs_production_min.ContextConsumer = k$2;
1815
+ reactIs_production_min.ContextProvider = h$1;
1816
+ reactIs_production_min.Element = c;
1817
+ reactIs_production_min.ForwardRef = n$1;
1818
+ reactIs_production_min.Fragment = e$1;
1819
+ reactIs_production_min.Lazy = t$1;
1820
+ reactIs_production_min.Memo = r$1;
1821
+ reactIs_production_min.Portal = d;
1822
+ reactIs_production_min.Profiler = g$1;
1823
+ reactIs_production_min.StrictMode = f;
1824
+ reactIs_production_min.Suspense = p$1;
1825
+ reactIs_production_min.isAsyncMode = function (a) {
1826
+ return A$1(a) || z$1(a) === l$1;
1827
+ };
1828
+ reactIs_production_min.isConcurrentMode = A$1;
1829
+ reactIs_production_min.isContextConsumer = function (a) {
1830
+ return z$1(a) === k$2;
1831
+ };
1832
+ reactIs_production_min.isContextProvider = function (a) {
1833
+ return z$1(a) === h$1;
1834
+ };
1835
+ reactIs_production_min.isElement = function (a) {
1836
+ return "object" === _typeof(a) && null !== a && a.$$typeof === c;
1837
+ };
1838
+ reactIs_production_min.isForwardRef = function (a) {
1839
+ return z$1(a) === n$1;
1840
+ };
1841
+ reactIs_production_min.isFragment = function (a) {
1842
+ return z$1(a) === e$1;
1843
+ };
1844
+ reactIs_production_min.isLazy = function (a) {
1845
+ return z$1(a) === t$1;
1846
+ };
1847
+ reactIs_production_min.isMemo = function (a) {
1848
+ return z$1(a) === r$1;
1849
+ };
1850
+ reactIs_production_min.isPortal = function (a) {
1851
+ return z$1(a) === d;
1852
+ };
1853
+ reactIs_production_min.isProfiler = function (a) {
1854
+ return z$1(a) === g$1;
1855
+ };
1856
+ reactIs_production_min.isStrictMode = function (a) {
1857
+ return z$1(a) === f;
1858
+ };
1859
+ reactIs_production_min.isSuspense = function (a) {
1860
+ return z$1(a) === p$1;
1861
+ };
1862
+ reactIs_production_min.isValidElementType = function (a) {
1863
+ return "string" === typeof a || "function" === typeof a || a === e$1 || a === m$1 || a === g$1 || a === f || a === p$1 || a === q$2 || "object" === _typeof(a) && null !== a && (a.$$typeof === t$1 || a.$$typeof === r$1 || a.$$typeof === h$1 || a.$$typeof === k$2 || a.$$typeof === n$1 || a.$$typeof === w$1 || a.$$typeof === x$1 || a.$$typeof === y || a.$$typeof === v$1);
1864
+ };
1865
+ reactIs_production_min.typeOf = z$1;
1866
+ {
1867
+ reactIs$1.exports = reactIs_production_min;
1868
+ }
1869
+ var reactIsExports = reactIs$1.exports;
1870
+ var reactIs = reactIsExports;
1871
+ var REACT_STATICS = {
1872
+ childContextTypes: true,
1873
+ contextType: true,
1874
+ contextTypes: true,
1875
+ defaultProps: true,
1876
+ displayName: true,
1877
+ getDefaultProps: true,
1878
+ getDerivedStateFromError: true,
1879
+ getDerivedStateFromProps: true,
1880
+ mixins: true,
1881
+ propTypes: true,
1882
+ type: true
1883
+ };
1884
+ var KNOWN_STATICS = {
1885
+ name: true,
1886
+ length: true,
1887
+ prototype: true,
1888
+ caller: true,
1889
+ callee: true,
1890
+ arguments: true,
1891
+ arity: true
1892
+ };
1893
+ var FORWARD_REF_STATICS = {
1894
+ '$$typeof': true,
1895
+ render: true,
1896
+ defaultProps: true,
1897
+ displayName: true,
1898
+ propTypes: true
1899
+ };
1900
+ var MEMO_STATICS = {
1901
+ '$$typeof': true,
1902
+ compare: true,
1903
+ defaultProps: true,
1904
+ displayName: true,
1905
+ propTypes: true,
1906
+ type: true
1907
+ };
1908
+ var TYPE_STATICS = {};
1909
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
1910
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
1911
+ function getStatics(component) {
1912
+ if (reactIs.isMemo(component)) {
1913
+ return MEMO_STATICS;
1914
+ }
1915
+ return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
1916
+ }
1917
+ var defineProperty = Object.defineProperty;
1918
+ var getOwnPropertyNames = Object.getOwnPropertyNames;
1919
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1920
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1921
+ var getPrototypeOf = Object.getPrototypeOf;
1922
+ var objectPrototype = Object.prototype;
1923
+ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
1924
+ if (typeof sourceComponent !== 'string') {
1925
+ if (objectPrototype) {
1926
+ var inheritedComponent = getPrototypeOf(sourceComponent);
1927
+ if (inheritedComponent && inheritedComponent !== objectPrototype) {
1928
+ hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
1929
+ }
1930
+ }
1931
+ var keys = getOwnPropertyNames(sourceComponent);
1932
+ if (getOwnPropertySymbols) {
1933
+ keys = keys.concat(getOwnPropertySymbols(sourceComponent));
1934
+ }
1935
+ var targetStatics = getStatics(targetComponent);
1936
+ var sourceStatics = getStatics(sourceComponent);
1937
+ for (var i = 0; i < keys.length; ++i) {
1938
+ var key = keys[i];
1939
+ if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
1940
+ var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
1941
+ try {
1942
+ defineProperty(targetComponent, key, descriptor);
1943
+ } catch (e) {}
1944
+ }
1945
+ }
1946
+ }
1947
+ return targetComponent;
1948
+ }
1949
+ var hoistNonReactStatics_cjs = hoistNonReactStatics;
1950
+ var hoistNonReactStatics$1 = /*@__PURE__*/getDefaultExportFromCjs(hoistNonReactStatics_cjs);
1951
+ function v() {
1952
+ return (v = Object.assign || function (e) {
1953
+ for (var t = 1; t < arguments.length; t++) {
1954
+ var n = arguments[t];
1955
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
1956
+ }
1957
+ return e;
1958
+ }).apply(this, arguments);
1959
+ }
1960
+ var g = function g(e, t) {
1961
+ for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
1962
+ return n;
1963
+ },
1964
+ S = function S(t) {
1965
+ return null !== t && "object" == _typeof(t) && "[object Object]" === (t.toString ? t.toString() : Object.prototype.toString.call(t)) && !reactIsExports$1.typeOf(t);
1966
+ },
1967
+ w = Object.freeze([]),
1968
+ E = Object.freeze({});
1969
+ function b(e) {
1970
+ return "function" == typeof e;
1971
+ }
1972
+ function _(e) {
1973
+ return e.displayName || e.name || "Component";
1974
+ }
1975
+ function N(e) {
1976
+ return e && "string" == typeof e.styledComponentId;
1977
+ }
1978
+ var A = "undefined" != typeof process && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
1979
+ I = "undefined" != typeof window && "HTMLElement" in window,
1980
+ P = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== "production");
1981
+ function j(e) {
1982
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
1983
+ throw new Error("An error occurred. See https://git.io/JUIaE#" + e + " for more information." + (n.length > 0 ? " Args: " + n.join(", ") : ""));
1984
+ }
1985
+ var T = function () {
1986
+ function e(e) {
1987
+ this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e;
1988
+ }
1989
+ var t = e.prototype;
1990
+ return t.indexOfGroup = function (e) {
1991
+ for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n];
1992
+ return t;
1993
+ }, t.insertRules = function (e, t) {
1994
+ if (e >= this.groupSizes.length) {
1995
+ for (var n = this.groupSizes, r = n.length, o = r; e >= o;) (o <<= 1) < 0 && j(16, "" + e);
1996
+ this.groupSizes = new Uint32Array(o), this.groupSizes.set(n), this.length = o;
1997
+ for (var s = r; s < o; s++) this.groupSizes[s] = 0;
1998
+ }
1999
+ for (var i = this.indexOfGroup(e + 1), a = 0, c = t.length; a < c; a++) this.tag.insertRule(i, t[a]) && (this.groupSizes[e]++, i++);
2000
+ }, t.clearGroup = function (e) {
2001
+ if (e < this.length) {
2002
+ var t = this.groupSizes[e],
2003
+ n = this.indexOfGroup(e),
2004
+ r = n + t;
2005
+ this.groupSizes[e] = 0;
2006
+ for (var o = n; o < r; o++) this.tag.deleteRule(n);
2007
+ }
2008
+ }, t.getGroup = function (e) {
2009
+ var t = "";
2010
+ if (e >= this.length || 0 === this.groupSizes[e]) return t;
2011
+ for (var n = this.groupSizes[e], r = this.indexOfGroup(e), o = r + n, s = r; s < o; s++) t += this.tag.getRule(s) + "/*!sc*/\n";
2012
+ return t;
2013
+ }, e;
2014
+ }(),
2015
+ x = new Map(),
2016
+ k$1 = new Map(),
2017
+ V = 1,
2018
+ B = function B(e) {
2019
+ if (x.has(e)) return x.get(e);
2020
+ for (; k$1.has(V);) V++;
2021
+ var t = V++;
2022
+ return x.set(e, t), k$1.set(t, e), t;
2023
+ },
2024
+ z = function z(e) {
2025
+ return k$1.get(e);
2026
+ },
2027
+ M = function M(e, t) {
2028
+ t >= V && (V = t + 1), x.set(e, t), k$1.set(t, e);
2029
+ },
2030
+ G = "style[" + A + '][data-styled-version="5.3.5"]',
2031
+ L = new RegExp("^" + A + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),
2032
+ F = function F(e, t, n) {
2033
+ for (var r, o = n.split(","), s = 0, i = o.length; s < i; s++) (r = o[s]) && e.registerName(t, r);
2034
+ },
2035
+ Y = function Y(e, t) {
2036
+ for (var n = (t.textContent || "").split("/*!sc*/\n"), r = [], o = 0, s = n.length; o < s; o++) {
2037
+ var i = n[o].trim();
2038
+ if (i) {
2039
+ var a = i.match(L);
2040
+ if (a) {
2041
+ var c = 0 | parseInt(a[1], 10),
2042
+ u = a[2];
2043
+ 0 !== c && (M(u, c), F(e, u, a[3]), e.getTag().insertRules(c, r)), r.length = 0;
2044
+ } else r.push(i);
2045
+ }
2046
+ }
2047
+ },
2048
+ q$1 = function q$1() {
2049
+ return "undefined" != typeof window && void 0 !== window.__webpack_nonce__ ? window.__webpack_nonce__ : null;
2050
+ },
2051
+ H = function H(e) {
2052
+ var t = document.head,
2053
+ n = e || t,
2054
+ r = document.createElement("style"),
2055
+ o = function (e) {
2056
+ for (var t = e.childNodes, n = t.length; n >= 0; n--) {
2057
+ var r = t[n];
2058
+ if (r && 1 === r.nodeType && r.hasAttribute(A)) return r;
2059
+ }
2060
+ }(n),
2061
+ s = void 0 !== o ? o.nextSibling : null;
2062
+ r.setAttribute(A, "active"), r.setAttribute("data-styled-version", "5.3.5");
2063
+ var i = q$1();
2064
+ return i && r.setAttribute("nonce", i), n.insertBefore(r, s), r;
2065
+ },
2066
+ $ = function () {
2067
+ function e(e) {
2068
+ var t = this.element = H(e);
2069
+ t.appendChild(document.createTextNode("")), this.sheet = function (e) {
2070
+ if (e.sheet) return e.sheet;
2071
+ for (var t = document.styleSheets, n = 0, r = t.length; n < r; n++) {
2072
+ var o = t[n];
2073
+ if (o.ownerNode === e) return o;
2074
+ }
2075
+ j(17);
2076
+ }(t), this.length = 0;
2077
+ }
2078
+ var t = e.prototype;
2079
+ return t.insertRule = function (e, t) {
2080
+ try {
2081
+ return this.sheet.insertRule(t, e), this.length++, !0;
2082
+ } catch (e) {
2083
+ return !1;
2084
+ }
2085
+ }, t.deleteRule = function (e) {
2086
+ this.sheet.deleteRule(e), this.length--;
2087
+ }, t.getRule = function (e) {
2088
+ var t = this.sheet.cssRules[e];
2089
+ return void 0 !== t && "string" == typeof t.cssText ? t.cssText : "";
2090
+ }, e;
2091
+ }(),
2092
+ W = function () {
2093
+ function e(e) {
2094
+ var t = this.element = H(e);
2095
+ this.nodes = t.childNodes, this.length = 0;
2096
+ }
2097
+ var t = e.prototype;
2098
+ return t.insertRule = function (e, t) {
2099
+ if (e <= this.length && e >= 0) {
2100
+ var n = document.createTextNode(t),
2101
+ r = this.nodes[e];
2102
+ return this.element.insertBefore(n, r || null), this.length++, !0;
2103
+ }
2104
+ return !1;
2105
+ }, t.deleteRule = function (e) {
2106
+ this.element.removeChild(this.nodes[e]), this.length--;
2107
+ }, t.getRule = function (e) {
2108
+ return e < this.length ? this.nodes[e].textContent : "";
2109
+ }, e;
2110
+ }(),
2111
+ U = function () {
2112
+ function e(e) {
2113
+ this.rules = [], this.length = 0;
2114
+ }
2115
+ var t = e.prototype;
2116
+ return t.insertRule = function (e, t) {
2117
+ return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0);
2118
+ }, t.deleteRule = function (e) {
2119
+ this.rules.splice(e, 1), this.length--;
2120
+ }, t.getRule = function (e) {
2121
+ return e < this.length ? this.rules[e] : "";
2122
+ }, e;
2123
+ }(),
2124
+ J = I,
2125
+ X = {
2126
+ isServer: !I,
2127
+ useCSSOMInjection: !P
2128
+ },
2129
+ Z = function () {
2130
+ function e(e, t, n) {
2131
+ void 0 === e && (e = E), void 0 === t && (t = {}), this.options = v({}, X, {}, e), this.gs = t, this.names = new Map(n), this.server = !!e.isServer, !this.server && I && J && (J = !1, function (e) {
2132
+ for (var t = document.querySelectorAll(G), n = 0, r = t.length; n < r; n++) {
2133
+ var o = t[n];
2134
+ o && "active" !== o.getAttribute(A) && (Y(e, o), o.parentNode && o.parentNode.removeChild(o));
2135
+ }
2136
+ }(this));
2137
+ }
2138
+ e.registerId = function (e) {
2139
+ return B(e);
2140
+ };
2141
+ var t = e.prototype;
2142
+ return t.reconstructWithOptions = function (t, n) {
2143
+ return void 0 === n && (n = !0), new e(v({}, this.options, {}, t), this.gs, n && this.names || void 0);
2144
+ }, t.allocateGSInstance = function (e) {
2145
+ return this.gs[e] = (this.gs[e] || 0) + 1;
2146
+ }, t.getTag = function () {
2147
+ return this.tag || (this.tag = (n = (t = this.options).isServer, r = t.useCSSOMInjection, o = t.target, e = n ? new U(o) : r ? new $(o) : new W(o), new T(e)));
2148
+ var e, t, n, r, o;
2149
+ }, t.hasNameForId = function (e, t) {
2150
+ return this.names.has(e) && this.names.get(e).has(t);
2151
+ }, t.registerName = function (e, t) {
2152
+ if (B(e), this.names.has(e)) this.names.get(e).add(t);else {
2153
+ var n = new Set();
2154
+ n.add(t), this.names.set(e, n);
2155
+ }
2156
+ }, t.insertRules = function (e, t, n) {
2157
+ this.registerName(e, t), this.getTag().insertRules(B(e), n);
2158
+ }, t.clearNames = function (e) {
2159
+ this.names.has(e) && this.names.get(e).clear();
2160
+ }, t.clearRules = function (e) {
2161
+ this.getTag().clearGroup(B(e)), this.clearNames(e);
2162
+ }, t.clearTag = function () {
2163
+ this.tag = void 0;
2164
+ }, t.toString = function () {
2165
+ return function (e) {
2166
+ for (var t = e.getTag(), n = t.length, r = "", o = 0; o < n; o++) {
2167
+ var s = z(o);
2168
+ if (void 0 !== s) {
2169
+ var i = e.names.get(s),
2170
+ a = t.getGroup(o);
2171
+ if (i && a && i.size) {
2172
+ var c = A + ".g" + o + '[id="' + s + '"]',
2173
+ u = "";
2174
+ void 0 !== i && i.forEach(function (e) {
2175
+ e.length > 0 && (u += e + ",");
2176
+ }), r += "" + a + c + '{content:"' + u + '"}/*!sc*/\n';
2177
+ }
2178
+ }
2179
+ }
2180
+ return r;
2181
+ }(this);
2182
+ }, e;
2183
+ }(),
2184
+ K = /(a)(d)/gi,
2185
+ Q = function Q(e) {
2186
+ return String.fromCharCode(e + (e > 25 ? 39 : 97));
2187
+ };
2188
+ function ee(e) {
2189
+ var t,
2190
+ n = "";
2191
+ for (t = Math.abs(e); t > 52; t = t / 52 | 0) n = Q(t % 52) + n;
2192
+ return (Q(t % 52) + n).replace(K, "$1-$2");
2193
+ }
2194
+ var te = function te(e, t) {
2195
+ for (var n = t.length; n;) e = 33 * e ^ t.charCodeAt(--n);
2196
+ return e;
2197
+ },
2198
+ ne = function ne(e) {
2199
+ return te(5381, e);
2200
+ };
2201
+ function re(e) {
2202
+ for (var t = 0; t < e.length; t += 1) {
2203
+ var n = e[t];
2204
+ if (b(n) && !N(n)) return !1;
2205
+ }
2206
+ return !0;
2207
+ }
2208
+ var oe = ne("5.3.5"),
2209
+ se = function () {
2210
+ function e(e, t, n) {
2211
+ this.rules = e, this.staticRulesId = "", this.isStatic = (void 0 === n || n.isStatic) && re(e), this.componentId = t, this.baseHash = te(oe, t), this.baseStyle = n, Z.registerId(t);
2212
+ }
2213
+ return e.prototype.generateAndInjectStyles = function (e, t, n) {
2214
+ var r = this.componentId,
2215
+ o = [];
2216
+ if (this.baseStyle && o.push(this.baseStyle.generateAndInjectStyles(e, t, n)), this.isStatic && !n.hash) {
2217
+ if (this.staticRulesId && t.hasNameForId(r, this.staticRulesId)) o.push(this.staticRulesId);else {
2218
+ var s = Ne(this.rules, e, t, n).join(""),
2219
+ i = ee(te(this.baseHash, s) >>> 0);
2220
+ if (!t.hasNameForId(r, i)) {
2221
+ var a = n(s, "." + i, void 0, r);
2222
+ t.insertRules(r, i, a);
2223
+ }
2224
+ o.push(i), this.staticRulesId = i;
2225
+ }
2226
+ } else {
2227
+ for (var c = this.rules.length, u = te(this.baseHash, n.hash), l = "", d = 0; d < c; d++) {
2228
+ var h = this.rules[d];
2229
+ if ("string" == typeof h) l += h;else if (h) {
2230
+ var p = Ne(h, e, t, n),
2231
+ f = Array.isArray(p) ? p.join("") : p;
2232
+ u = te(u, f + d), l += f;
2233
+ }
2234
+ }
2235
+ if (l) {
2236
+ var m = ee(u >>> 0);
2237
+ if (!t.hasNameForId(r, m)) {
2238
+ var y = n(l, "." + m, void 0, r);
2239
+ t.insertRules(r, m, y);
2240
+ }
2241
+ o.push(m);
2242
+ }
2243
+ }
2244
+ return o.join(" ");
2245
+ }, e;
2246
+ }(),
2247
+ ie = /^\s*\/\/.*$/gm,
2248
+ ae = [":", "[", ".", "#"];
2249
+ function ce(e) {
2250
+ var t,
2251
+ n,
2252
+ r,
2253
+ o,
2254
+ s = void 0 === e ? E : e,
2255
+ i = s.options,
2256
+ a = void 0 === i ? E : i,
2257
+ c = s.plugins,
2258
+ u = void 0 === c ? w : c,
2259
+ l = new stylis_min(a),
2260
+ d = [],
2261
+ h = function (e) {
2262
+ function t(t) {
2263
+ if (t) try {
2264
+ e(t + "}");
2265
+ } catch (e) {}
2266
+ }
2267
+ return function (n, r, o, s, i, a, c, u, l, d) {
2268
+ switch (n) {
2269
+ case 1:
2270
+ if (0 === l && 64 === r.charCodeAt(0)) return e(r + ";"), "";
2271
+ break;
2272
+ case 2:
2273
+ if (0 === u) return r + "/*|*/";
2274
+ break;
2275
+ case 3:
2276
+ switch (u) {
2277
+ case 102:
2278
+ case 112:
2279
+ return e(o[0] + r), "";
2280
+ default:
2281
+ return r + (0 === d ? "/*|*/" : "");
2282
+ }
2283
+ case -2:
2284
+ r.split("/*|*/}").forEach(t);
2285
+ }
2286
+ };
2287
+ }(function (e) {
2288
+ d.push(e);
2289
+ }),
2290
+ f = function f(e, r, s) {
2291
+ return 0 === r && -1 !== ae.indexOf(s[n.length]) || s.match(o) ? e : "." + t;
2292
+ };
2293
+ function m(e, s, i, a) {
2294
+ void 0 === a && (a = "&");
2295
+ var c = e.replace(ie, ""),
2296
+ u = s && i ? i + " " + s + " { " + c + " }" : c;
2297
+ return t = a, n = s, r = new RegExp("\\" + n + "\\b", "g"), o = new RegExp("(\\" + n + "\\b){2,}"), l(i || !s ? "" : s, u);
2298
+ }
2299
+ return l.use([].concat(u, [function (e, t, o) {
2300
+ 2 === e && o.length && o[0].lastIndexOf(n) > 0 && (o[0] = o[0].replace(r, f));
2301
+ }, h, function (e) {
2302
+ if (-2 === e) {
2303
+ var t = d;
2304
+ return d = [], t;
2305
+ }
2306
+ }])), m.hash = u.length ? u.reduce(function (e, t) {
2307
+ return t.name || j(15), te(e, t.name);
2308
+ }, 5381).toString() : "", m;
2309
+ }
2310
+ var ue = /*#__PURE__*/wn.createContext();
2311
+ ue.Consumer;
2312
+ var de = /*#__PURE__*/wn.createContext(),
2313
+ he = (de.Consumer, new Z()),
2314
+ pe = ce();
2315
+ function fe() {
2316
+ return q$5(ue) || he;
2317
+ }
2318
+ function me() {
2319
+ return q$5(de) || pe;
2320
+ }
2321
+ function ye(e) {
2322
+ var t = h$4(e.stylisPlugins),
2323
+ n = t[0],
2324
+ s = t[1],
2325
+ c = fe(),
2326
+ u = F$3(function () {
2327
+ var t = c;
2328
+ return e.sheet ? t = e.sheet : e.target && (t = t.reconstructWithOptions({
2329
+ target: e.target
2330
+ }, !1)), e.disableCSSOMInjection && (t = t.reconstructWithOptions({
2331
+ useCSSOMInjection: !1
2332
+ })), t;
2333
+ }, [e.disableCSSOMInjection, e.sheet, e.target]),
2334
+ l = F$3(function () {
2335
+ return ce({
2336
+ options: {
2337
+ prefix: !e.disableVendorPrefixes
2338
+ },
2339
+ plugins: n
2340
+ });
2341
+ }, [e.disableVendorPrefixes, n]);
2342
+ return p$3(function () {
2343
+ h$2(n, e.stylisPlugins) || s(e.stylisPlugins);
2344
+ }, [e.stylisPlugins]), /*#__PURE__*/wn.createElement(ue.Provider, {
2345
+ value: u
2346
+ }, /*#__PURE__*/wn.createElement(de.Provider, {
2347
+ value: l
2348
+ }, e.children));
2349
+ }
2350
+ var ve = function () {
2351
+ function e(e, t) {
2352
+ var n = this;
2353
+ this.inject = function (e, t) {
2354
+ void 0 === t && (t = pe);
2355
+ var r = n.name + t.hash;
2356
+ e.hasNameForId(n.id, r) || e.insertRules(n.id, r, t(n.rules, r, "@keyframes"));
2357
+ }, this.toString = function () {
2358
+ return j(12, String(n.name));
2359
+ }, this.name = e, this.id = "sc-keyframes-" + e, this.rules = t;
2360
+ }
2361
+ return e.prototype.getName = function (e) {
2362
+ return void 0 === e && (e = pe), this.name + e.hash;
2363
+ }, e;
2364
+ }(),
2365
+ ge = /([A-Z])/,
2366
+ Se = /([A-Z])/g,
2367
+ we = /^ms-/,
2368
+ Ee = function Ee(e) {
2369
+ return "-" + e.toLowerCase();
2370
+ };
2371
+ function be(e) {
2372
+ return ge.test(e) ? e.replace(Se, Ee).replace(we, "-ms-") : e;
2373
+ }
2374
+ var _e = function _e(e) {
2375
+ return null == e || !1 === e || "" === e;
2376
+ };
2377
+ function Ne(e, n, r, o) {
2378
+ if (Array.isArray(e)) {
2379
+ for (var s, i = [], a = 0, c = e.length; a < c; a += 1) "" !== (s = Ne(e[a], n, r, o)) && (Array.isArray(s) ? i.push.apply(i, s) : i.push(s));
2380
+ return i;
2381
+ }
2382
+ if (_e(e)) return "";
2383
+ if (N(e)) return "." + e.styledComponentId;
2384
+ if (b(e)) {
2385
+ if ("function" != typeof (l = e) || l.prototype && l.prototype.isReactComponent || !n) return e;
2386
+ var u = e(n);
2387
+ return Ne(u, n, r, o);
2388
+ }
2389
+ var l;
2390
+ return e instanceof ve ? r ? (e.inject(r, o), e.getName(o)) : e : S(e) ? function e(t, n) {
2391
+ var r,
2392
+ o,
2393
+ s = [];
2394
+ for (var i in t) t.hasOwnProperty(i) && !_e(t[i]) && (Array.isArray(t[i]) && t[i].isCss || b(t[i]) ? s.push(be(i) + ":", t[i], ";") : S(t[i]) ? s.push.apply(s, e(t[i], i)) : s.push(be(i) + ": " + (r = i, null == (o = t[i]) || "boolean" == typeof o || "" === o ? "" : "number" != typeof o || 0 === o || r in unitlessKeys ? String(o).trim() : o + "px") + ";"));
2395
+ return n ? [n + " {"].concat(s, ["}"]) : s;
2396
+ }(e) : e.toString();
2397
+ }
2398
+ var Ae = function Ae(e) {
2399
+ return Array.isArray(e) && (e.isCss = !0), e;
2400
+ };
2401
+ function Ce(e) {
2402
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
2403
+ return b(e) || S(e) ? Ae(Ne(g(w, [e].concat(n)))) : 0 === n.length && 1 === e.length && "string" == typeof e[0] ? e : Ae(Ne(g(e, n)));
2404
+ }
2405
+ var Re = function Re(e, t, n) {
2406
+ return void 0 === n && (n = E), e.theme !== n.theme && e.theme || t || n.theme;
2407
+ },
2408
+ De = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,
2409
+ je = /(^-|-$)/g;
2410
+ function Te(e) {
2411
+ return e.replace(De, "-").replace(je, "");
2412
+ }
2413
+ var xe = function xe(e) {
2414
+ return ee(ne(e) >>> 0);
2415
+ };
2416
+ function ke(e) {
2417
+ return "string" == typeof e && "production" === "production";
2418
+ }
2419
+ var Ve = function Ve(e) {
2420
+ return "function" == typeof e || "object" == _typeof(e) && null !== e && !Array.isArray(e);
2421
+ },
2422
+ Be = function Be(e) {
2423
+ return "__proto__" !== e && "constructor" !== e && "prototype" !== e;
2424
+ };
2425
+ function ze(e, t, n) {
2426
+ var r = e[n];
2427
+ Ve(t) && Ve(r) ? Me(r, t) : e[n] = t;
2428
+ }
2429
+ function Me(e) {
2430
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
2431
+ for (var o = 0, s = n; o < s.length; o++) {
2432
+ var i = s[o];
2433
+ if (Ve(i)) for (var a in i) Be(a) && ze(e, i[a], a);
2434
+ }
2435
+ return e;
2436
+ }
2437
+ var Ge = /*#__PURE__*/wn.createContext();
2438
+ Ge.Consumer;
2439
+ function Fe(e) {
2440
+ var t = q$5(Ge),
2441
+ n = F$3(function () {
2442
+ return function (e, t) {
2443
+ if (!e) return j(14);
2444
+ if (b(e)) {
2445
+ var n = e(t);
2446
+ return n;
2447
+ }
2448
+ return Array.isArray(e) || "object" != _typeof(e) ? j(8) : t ? v({}, t, {}, e) : e;
2449
+ }(e.theme, t);
2450
+ }, [e.theme, t]);
2451
+ return e.children ? /*#__PURE__*/wn.createElement(Ge.Provider, {
2452
+ value: n
2453
+ }, e.children) : null;
2454
+ }
2455
+ var Ye = {};
2456
+ function qe(e, t, n) {
2457
+ var o = N(e),
2458
+ i = !ke(e),
2459
+ a = t.attrs,
2460
+ c = void 0 === a ? w : a,
2461
+ d = t.componentId,
2462
+ h = void 0 === d ? function (e, t) {
2463
+ var n = "string" != typeof e ? "sc" : Te(e);
2464
+ Ye[n] = (Ye[n] || 0) + 1;
2465
+ var r = n + "-" + xe("5.3.5" + n + Ye[n]);
2466
+ return t ? t + "-" + r : r;
2467
+ }(t.displayName, t.parentComponentId) : d,
2468
+ p = t.displayName,
2469
+ f = void 0 === p ? function (e) {
2470
+ return ke(e) ? "styled." + e : "Styled(" + _(e) + ")";
2471
+ }(e) : p,
2472
+ g = t.displayName && t.componentId ? Te(t.displayName) + "-" + t.componentId : t.componentId || h,
2473
+ S = o && e.attrs ? Array.prototype.concat(e.attrs, c).filter(Boolean) : c,
2474
+ A = t.shouldForwardProp;
2475
+ o && e.shouldForwardProp && (A = t.shouldForwardProp ? function (n, r, o) {
2476
+ return e.shouldForwardProp(n, r, o) && t.shouldForwardProp(n, r, o);
2477
+ } : e.shouldForwardProp);
2478
+ var C,
2479
+ I = new se(n, g, o ? e.componentStyle : void 0),
2480
+ P = I.isStatic && 0 === c.length,
2481
+ O = function O(e, t) {
2482
+ return function (e, t, n, r) {
2483
+ var o = e.attrs,
2484
+ i = e.componentStyle,
2485
+ a = e.defaultProps,
2486
+ c = e.foldedComponentIds,
2487
+ d = e.shouldForwardProp,
2488
+ h = e.styledComponentId,
2489
+ p = e.target;
2490
+ var f = function (e, t, n) {
2491
+ void 0 === e && (e = E);
2492
+ var r = v({}, t, {
2493
+ theme: e
2494
+ }),
2495
+ o = {};
2496
+ return n.forEach(function (e) {
2497
+ var t,
2498
+ n,
2499
+ s,
2500
+ i = e;
2501
+ for (t in b(i) && (i = i(r)), i) r[t] = o[t] = "className" === t ? (n = o[t], s = i[t], n && s ? n + " " + s : n || s) : i[t];
2502
+ }), [r, o];
2503
+ }(Re(t, q$5(Ge), a) || E, t, o),
2504
+ y = f[0],
2505
+ g = f[1],
2506
+ S = function (e, t, n, r) {
2507
+ var o = fe(),
2508
+ s = me(),
2509
+ i = t ? e.generateAndInjectStyles(E, o, s) : e.generateAndInjectStyles(n, o, s);
2510
+ return i;
2511
+ }(i, r, y),
2512
+ w = n,
2513
+ _ = g.$as || t.$as || g.as || t.as || p,
2514
+ N = ke(_),
2515
+ A = g !== t ? v({}, t, {}, g) : t,
2516
+ C = {};
2517
+ for (var I in A) "$" !== I[0] && "as" !== I && ("forwardedAs" === I ? C.as = A[I] : (d ? d(I, isPropValid, _) : !N || isPropValid(I)) && (C[I] = A[I]));
2518
+ return t.style && g.style !== t.style && (C.style = v({}, t.style, {}, g.style)), C.className = Array.prototype.concat(c, h, S !== h ? S : null, t.className, g.className).filter(Boolean).join(" "), C.ref = w, /*#__PURE__*/y$3(_, C);
2519
+ }(C, e, t, P);
2520
+ };
2521
+ return O.displayName = f, (C = /*#__PURE__*/wn.forwardRef(O)).attrs = S, C.componentStyle = I, C.displayName = f, C.shouldForwardProp = A, C.foldedComponentIds = o ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : w, C.styledComponentId = g, C.target = o ? e.target : e, C.withComponent = function (e) {
2522
+ var r = t.componentId,
2523
+ o = function (e, t) {
2524
+ if (null == e) return {};
2525
+ var n,
2526
+ r,
2527
+ o = {},
2528
+ s = Object.keys(e);
2529
+ for (r = 0; r < s.length; r++) n = s[r], t.indexOf(n) >= 0 || (o[n] = e[n]);
2530
+ return o;
2531
+ }(t, ["componentId"]),
2532
+ s = r && r + "-" + (ke(e) ? e : Te(_(e)));
2533
+ return qe(e, v({}, o, {
2534
+ attrs: S,
2535
+ componentId: s
2536
+ }), n);
2537
+ }, Object.defineProperty(C, "defaultProps", {
2538
+ get: function get() {
2539
+ return this._foldedDefaultProps;
2540
+ },
2541
+ set: function set(t) {
2542
+ this._foldedDefaultProps = o ? Me({}, e.defaultProps, t) : t;
2543
+ }
2544
+ }), C.toString = function () {
2545
+ return "." + C.styledComponentId;
2546
+ }, i && hoistNonReactStatics$1(C, e, {
2547
+ attrs: !0,
2548
+ componentStyle: !0,
2549
+ displayName: !0,
2550
+ foldedComponentIds: !0,
2551
+ shouldForwardProp: !0,
2552
+ styledComponentId: !0,
2553
+ target: !0,
2554
+ withComponent: !0
2555
+ }), C;
2556
+ }
2557
+ var He = function He(e) {
2558
+ return function e(t, r, o) {
2559
+ if (void 0 === o && (o = E), !reactIsExports$1.isValidElementType(r)) return j(1, String(r));
2560
+ var s = function s() {
2561
+ return t(r, o, Ce.apply(void 0, arguments));
2562
+ };
2563
+ return s.withConfig = function (n) {
2564
+ return e(t, r, v({}, o, {}, n));
2565
+ }, s.attrs = function (n) {
2566
+ return e(t, r, v({}, o, {
2567
+ attrs: Array.prototype.concat(o.attrs, n).filter(Boolean)
2568
+ }));
2569
+ }, s;
2570
+ }(qe, e);
2571
+ };
2572
+ ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "textPath", "tspan"].forEach(function (e) {
2573
+ He[e] = He(e);
2574
+ });
2575
+ function Ue(e) {
2576
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
2577
+ var o = Ce.apply(void 0, [e].concat(n)).join(""),
2578
+ s = xe(o);
2579
+ return new ve(s, o);
2580
+ }
2581
+ var Ze = function Ze() {
2582
+ return q$5(Ge);
2583
+ };
2584
+ var SHADOW_DOM_ONE_TAP_MOUNT_POINT = "<div data-prompt_parent_id='g_id_onload' id='google-parent-prompt' style=''></div>";
2585
+ function CreateWebComponent(ReactComponent, webComponentName) {
2586
+ var existingRegistry = customElements.get(webComponentName);
2587
+ if (existingRegistry) {
2588
+ return existingRegistry;
2589
+ }
2590
+ var ReactWebComponent = /*#__PURE__*/function (_HTMLElement) {
2591
+ _inherits(ReactWebComponent, _HTMLElement);
2592
+ function ReactWebComponent(props) {
2593
+ var _this;
2594
+ _classCallCheck(this, ReactWebComponent);
2595
+ _this = _callSuper(this, ReactWebComponent);
2596
+ _this.props = props;
2597
+ _this.rootRef = document.createElement('div');
2598
+ _this.append(_this.rootRef);
2599
+ return _this;
2600
+ }
2601
+ _createClass(ReactWebComponent, [{
2602
+ key: "connectedCallback",
2603
+ value: function connectedCallback() {
2604
+ this.styleSlot = document.createElement('section');
2605
+ this.rootRef.appendChild(this.styleSlot);
2606
+ this.mountPoint = document.createElement('span');
2607
+ this.styleSlot.appendChild(this.mountPoint);
2608
+ this.render(this.props);
2609
+ }
2610
+ }, {
2611
+ key: "disconnectedCallback",
2612
+ value: function disconnectedCallback() {
2613
+ if (!this.mountPoint) {
2614
+ return;
2615
+ }
2616
+ wn.unmountComponentAtNode(this.mountPoint);
2617
+ }
2618
+ }, {
2619
+ key: "render",
2620
+ value: function render(props) {
2621
+ if (!this.mountPoint) {
2622
+ throw Error('Cannot render - no mount point defined');
2623
+ }
2624
+ if (!this.styleSlot) {
2625
+ throw Error('Cannot render - no style slot defined');
2626
+ }
2627
+ wn.render( /*#__PURE__*/wn.createElement(ye, {
2628
+ target: this.styleSlot
2629
+ }, /*#__PURE__*/wn.createElement(ReactComponent, Object.assign({}, props))), this.mountPoint);
2630
+ }
2631
+ }]);
2632
+ return ReactWebComponent;
2633
+ }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
2634
+ customElements.define(webComponentName, ReactWebComponent);
2635
+ return ReactWebComponent;
2636
+ }
2637
+ function CreateShadowWebComponent(ReactComponent, webComponentName) {
2638
+ var existingRegistry = customElements.get(webComponentName);
2639
+ if (existingRegistry) {
2640
+ return existingRegistry;
2641
+ }
2642
+ var ReactWebComponent = /*#__PURE__*/function (_HTMLElement2) {
2643
+ _inherits(ReactWebComponent, _HTMLElement2);
2644
+ function ReactWebComponent(props) {
2645
+ var _this2;
2646
+ _classCallCheck(this, ReactWebComponent);
2647
+ _this2 = _callSuper(this, ReactWebComponent);
2648
+ _this2.props = props;
2649
+ _this2.rootRef = _this2.attachShadow({
2650
+ mode: 'open'
2651
+ });
2652
+ return _this2;
2653
+ }
2654
+ _createClass(ReactWebComponent, [{
2655
+ key: "connectedCallback",
2656
+ value: function connectedCallback() {
2657
+ this.styleSlot = document.createElement('section');
2658
+ this.rootRef.appendChild(this.styleSlot);
2659
+ this.mountPoint = document.createElement('span');
2660
+ this.styleSlot.appendChild(this.mountPoint);
2661
+ this.render(this.props);
2662
+ }
2663
+ }, {
2664
+ key: "disconnectedCallback",
2665
+ value: function disconnectedCallback() {
2666
+ if (!this.mountPoint) {
2667
+ return;
2668
+ }
2669
+ wn.unmountComponentAtNode(this.mountPoint);
2670
+ }
2671
+ }, {
2672
+ key: "renderOneTap",
2673
+ value: function renderOneTap(props) {
2674
+ var _a, _b, _c;
2675
+ var shouldContainOneTap = (_c = (_b = (_a = props === null || props === void 0 ? void 0 : props.config) === null || _a === void 0 ? void 0 : _a.oauthOptions) === null || _b === void 0 ? void 0 : _b.providers) === null || _c === void 0 ? void 0 : _c.find(function (config) {
2676
+ return config.type === internal.OAuthProviders.Google && config.one_tap;
2677
+ });
2678
+ var containsOneTap = this.innerHTML.includes(SHADOW_DOM_ONE_TAP_MOUNT_POINT);
2679
+ if (shouldContainOneTap) {
2680
+ if (!containsOneTap) {
2681
+ this.innerHTML = SHADOW_DOM_ONE_TAP_MOUNT_POINT;
2682
+ }
2683
+ } else {
2684
+ this.innerHTML = '';
2685
+ }
2686
+ }
2687
+ }, {
2688
+ key: "render",
2689
+ value: function render(props) {
2690
+ if (!this.mountPoint) {
2691
+ throw Error('Cannot render - no mount point defined');
2692
+ }
2693
+ if (!this.styleSlot) {
2694
+ throw Error('Cannot render - no style slot defined');
2695
+ }
2696
+ this.renderOneTap(props);
2697
+ wn.render( /*#__PURE__*/wn.createElement(ye, {
2698
+ target: this.styleSlot
2699
+ }, /*#__PURE__*/wn.createElement(ReactComponent, Object.assign({}, props))), this.mountPoint);
2700
+ }
2701
+ }]);
2702
+ return ReactWebComponent;
2703
+ }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
2704
+ customElements.define(webComponentName, ReactWebComponent);
2705
+ return ReactWebComponent;
2706
+ }
2707
+ function CreateSSRSafeWebComponent(ReactComponent, webComponentName) {
2708
+ if (typeof window === 'undefined') {
2709
+ return function () {
2710
+ return null;
2711
+ };
2712
+ }
2713
+ return function (props) {
2714
+ var _a;
2715
+ var shadowDomEnabled = !!((_a = props.config) === null || _a === void 0 ? void 0 : _a.enableShadowDOM);
2716
+ if (shadowDomEnabled) {
2717
+ var Component = CreateShadowWebComponent(ReactComponent, webComponentName);
2718
+ return new Component(props);
2719
+ } else {
2720
+ var _Component = CreateWebComponent(ReactComponent, webComponentName);
2721
+ return new _Component(props);
2722
+ }
2723
+ };
2724
+ }
2725
+ var lodash_merge = {
2726
+ exports: {}
2727
+ };
2728
+ lodash_merge.exports;
2729
+ (function (module, exports) {
2730
+ var LARGE_ARRAY_SIZE = 200;
2731
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
2732
+ var HOT_COUNT = 800,
2733
+ HOT_SPAN = 16;
2734
+ var MAX_SAFE_INTEGER = 9007199254740991;
2735
+ var argsTag = '[object Arguments]',
2736
+ arrayTag = '[object Array]',
2737
+ asyncTag = '[object AsyncFunction]',
2738
+ boolTag = '[object Boolean]',
2739
+ dateTag = '[object Date]',
2740
+ errorTag = '[object Error]',
2741
+ funcTag = '[object Function]',
2742
+ genTag = '[object GeneratorFunction]',
2743
+ mapTag = '[object Map]',
2744
+ numberTag = '[object Number]',
2745
+ nullTag = '[object Null]',
2746
+ objectTag = '[object Object]',
2747
+ proxyTag = '[object Proxy]',
2748
+ regexpTag = '[object RegExp]',
2749
+ setTag = '[object Set]',
2750
+ stringTag = '[object String]',
2751
+ undefinedTag = '[object Undefined]',
2752
+ weakMapTag = '[object WeakMap]';
2753
+ var arrayBufferTag = '[object ArrayBuffer]',
2754
+ dataViewTag = '[object DataView]',
2755
+ float32Tag = '[object Float32Array]',
2756
+ float64Tag = '[object Float64Array]',
2757
+ int8Tag = '[object Int8Array]',
2758
+ int16Tag = '[object Int16Array]',
2759
+ int32Tag = '[object Int32Array]',
2760
+ uint8Tag = '[object Uint8Array]',
2761
+ uint8ClampedTag = '[object Uint8ClampedArray]',
2762
+ uint16Tag = '[object Uint16Array]',
2763
+ uint32Tag = '[object Uint32Array]';
2764
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
2765
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
2766
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
2767
+ var typedArrayTags = {};
2768
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
2769
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
2770
+ var freeGlobal = _typeof(commonjsGlobal) == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
2771
+ var freeSelf = (typeof self === "undefined" ? "undefined" : _typeof(self)) == 'object' && self && self.Object === Object && self;
2772
+ var root = freeGlobal || freeSelf || Function('return this')();
2773
+ var freeExports = exports && !exports.nodeType && exports;
2774
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
2775
+ var moduleExports = freeModule && freeModule.exports === freeExports;
2776
+ var freeProcess = moduleExports && freeGlobal.process;
2777
+ var nodeUtil = function () {
2778
+ try {
2779
+ var types = freeModule && freeModule.require && freeModule.require('util').types;
2780
+ if (types) {
2781
+ return types;
2782
+ }
2783
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
2784
+ } catch (e) {}
2785
+ }();
2786
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
2787
+ function apply(func, thisArg, args) {
2788
+ switch (args.length) {
2789
+ case 0:
2790
+ return func.call(thisArg);
2791
+ case 1:
2792
+ return func.call(thisArg, args[0]);
2793
+ case 2:
2794
+ return func.call(thisArg, args[0], args[1]);
2795
+ case 3:
2796
+ return func.call(thisArg, args[0], args[1], args[2]);
2797
+ }
2798
+ return func.apply(thisArg, args);
2799
+ }
2800
+ function baseTimes(n, iteratee) {
2801
+ var index = -1,
2802
+ result = Array(n);
2803
+ while (++index < n) {
2804
+ result[index] = iteratee(index);
2805
+ }
2806
+ return result;
2807
+ }
2808
+ function baseUnary(func) {
2809
+ return function (value) {
2810
+ return func(value);
2811
+ };
2812
+ }
2813
+ function getValue(object, key) {
2814
+ return object == null ? undefined : object[key];
2815
+ }
2816
+ function overArg(func, transform) {
2817
+ return function (arg) {
2818
+ return func(transform(arg));
2819
+ };
2820
+ }
2821
+ var arrayProto = Array.prototype,
2822
+ funcProto = Function.prototype,
2823
+ objectProto = Object.prototype;
2824
+ var coreJsData = root['__core-js_shared__'];
2825
+ var funcToString = funcProto.toString;
2826
+ var hasOwnProperty = objectProto.hasOwnProperty;
2827
+ var maskSrcKey = function () {
2828
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
2829
+ return uid ? 'Symbol(src)_1.' + uid : '';
2830
+ }();
2831
+ var nativeObjectToString = objectProto.toString;
2832
+ var objectCtorString = funcToString.call(Object);
2833
+ var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$');
2834
+ var Buffer = moduleExports ? root.Buffer : undefined,
2835
+ _Symbol = root.Symbol,
2836
+ Uint8Array = root.Uint8Array;
2837
+ Buffer ? Buffer.allocUnsafe : undefined;
2838
+ var getPrototype = overArg(Object.getPrototypeOf, Object),
2839
+ objectCreate = Object.create,
2840
+ propertyIsEnumerable = objectProto.propertyIsEnumerable,
2841
+ splice = arrayProto.splice,
2842
+ symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
2843
+ var defineProperty = function () {
2844
+ try {
2845
+ var func = getNative(Object, 'defineProperty');
2846
+ func({}, '', {});
2847
+ return func;
2848
+ } catch (e) {}
2849
+ }();
2850
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
2851
+ nativeMax = Math.max,
2852
+ nativeNow = Date.now;
2853
+ var Map = getNative(root, 'Map'),
2854
+ nativeCreate = getNative(Object, 'create');
2855
+ var baseCreate = function () {
2856
+ function object() {}
2857
+ return function (proto) {
2858
+ if (!isObject(proto)) {
2859
+ return {};
2860
+ }
2861
+ if (objectCreate) {
2862
+ return objectCreate(proto);
2863
+ }
2864
+ object.prototype = proto;
2865
+ var result = new object();
2866
+ object.prototype = undefined;
2867
+ return result;
2868
+ };
2869
+ }();
2870
+ function Hash(entries) {
2871
+ var index = -1,
2872
+ length = entries == null ? 0 : entries.length;
2873
+ this.clear();
2874
+ while (++index < length) {
2875
+ var entry = entries[index];
2876
+ this.set(entry[0], entry[1]);
2877
+ }
2878
+ }
2879
+ function hashClear() {
2880
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
2881
+ this.size = 0;
2882
+ }
2883
+ function hashDelete(key) {
2884
+ var result = this.has(key) && delete this.__data__[key];
2885
+ this.size -= result ? 1 : 0;
2886
+ return result;
2887
+ }
2888
+ function hashGet(key) {
2889
+ var data = this.__data__;
2890
+ if (nativeCreate) {
2891
+ var result = data[key];
2892
+ return result === HASH_UNDEFINED ? undefined : result;
2893
+ }
2894
+ return hasOwnProperty.call(data, key) ? data[key] : undefined;
2895
+ }
2896
+ function hashHas(key) {
2897
+ var data = this.__data__;
2898
+ return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
2899
+ }
2900
+ function hashSet(key, value) {
2901
+ var data = this.__data__;
2902
+ this.size += this.has(key) ? 0 : 1;
2903
+ data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value;
2904
+ return this;
2905
+ }
2906
+ Hash.prototype.clear = hashClear;
2907
+ Hash.prototype['delete'] = hashDelete;
2908
+ Hash.prototype.get = hashGet;
2909
+ Hash.prototype.has = hashHas;
2910
+ Hash.prototype.set = hashSet;
2911
+ function ListCache(entries) {
2912
+ var index = -1,
2913
+ length = entries == null ? 0 : entries.length;
2914
+ this.clear();
2915
+ while (++index < length) {
2916
+ var entry = entries[index];
2917
+ this.set(entry[0], entry[1]);
2918
+ }
2919
+ }
2920
+ function listCacheClear() {
2921
+ this.__data__ = [];
2922
+ this.size = 0;
2923
+ }
2924
+ function listCacheDelete(key) {
2925
+ var data = this.__data__,
2926
+ index = assocIndexOf(data, key);
2927
+ if (index < 0) {
2928
+ return false;
2929
+ }
2930
+ var lastIndex = data.length - 1;
2931
+ if (index == lastIndex) {
2932
+ data.pop();
2933
+ } else {
2934
+ splice.call(data, index, 1);
2935
+ }
2936
+ --this.size;
2937
+ return true;
2938
+ }
2939
+ function listCacheGet(key) {
2940
+ var data = this.__data__,
2941
+ index = assocIndexOf(data, key);
2942
+ return index < 0 ? undefined : data[index][1];
2943
+ }
2944
+ function listCacheHas(key) {
2945
+ return assocIndexOf(this.__data__, key) > -1;
2946
+ }
2947
+ function listCacheSet(key, value) {
2948
+ var data = this.__data__,
2949
+ index = assocIndexOf(data, key);
2950
+ if (index < 0) {
2951
+ ++this.size;
2952
+ data.push([key, value]);
2953
+ } else {
2954
+ data[index][1] = value;
2955
+ }
2956
+ return this;
2957
+ }
2958
+ ListCache.prototype.clear = listCacheClear;
2959
+ ListCache.prototype['delete'] = listCacheDelete;
2960
+ ListCache.prototype.get = listCacheGet;
2961
+ ListCache.prototype.has = listCacheHas;
2962
+ ListCache.prototype.set = listCacheSet;
2963
+ function MapCache(entries) {
2964
+ var index = -1,
2965
+ length = entries == null ? 0 : entries.length;
2966
+ this.clear();
2967
+ while (++index < length) {
2968
+ var entry = entries[index];
2969
+ this.set(entry[0], entry[1]);
2970
+ }
2971
+ }
2972
+ function mapCacheClear() {
2973
+ this.size = 0;
2974
+ this.__data__ = {
2975
+ 'hash': new Hash(),
2976
+ 'map': new (Map || ListCache)(),
2977
+ 'string': new Hash()
2978
+ };
2979
+ }
2980
+ function mapCacheDelete(key) {
2981
+ var result = getMapData(this, key)['delete'](key);
2982
+ this.size -= result ? 1 : 0;
2983
+ return result;
2984
+ }
2985
+ function mapCacheGet(key) {
2986
+ return getMapData(this, key).get(key);
2987
+ }
2988
+ function mapCacheHas(key) {
2989
+ return getMapData(this, key).has(key);
2990
+ }
2991
+ function mapCacheSet(key, value) {
2992
+ var data = getMapData(this, key),
2993
+ size = data.size;
2994
+ data.set(key, value);
2995
+ this.size += data.size == size ? 0 : 1;
2996
+ return this;
2997
+ }
2998
+ MapCache.prototype.clear = mapCacheClear;
2999
+ MapCache.prototype['delete'] = mapCacheDelete;
3000
+ MapCache.prototype.get = mapCacheGet;
3001
+ MapCache.prototype.has = mapCacheHas;
3002
+ MapCache.prototype.set = mapCacheSet;
3003
+ function Stack(entries) {
3004
+ var data = this.__data__ = new ListCache(entries);
3005
+ this.size = data.size;
3006
+ }
3007
+ function stackClear() {
3008
+ this.__data__ = new ListCache();
3009
+ this.size = 0;
3010
+ }
3011
+ function stackDelete(key) {
3012
+ var data = this.__data__,
3013
+ result = data['delete'](key);
3014
+ this.size = data.size;
3015
+ return result;
3016
+ }
3017
+ function stackGet(key) {
3018
+ return this.__data__.get(key);
3019
+ }
3020
+ function stackHas(key) {
3021
+ return this.__data__.has(key);
3022
+ }
3023
+ function stackSet(key, value) {
3024
+ var data = this.__data__;
3025
+ if (data instanceof ListCache) {
3026
+ var pairs = data.__data__;
3027
+ if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
3028
+ pairs.push([key, value]);
3029
+ this.size = ++data.size;
3030
+ return this;
3031
+ }
3032
+ data = this.__data__ = new MapCache(pairs);
3033
+ }
3034
+ data.set(key, value);
3035
+ this.size = data.size;
3036
+ return this;
3037
+ }
3038
+ Stack.prototype.clear = stackClear;
3039
+ Stack.prototype['delete'] = stackDelete;
3040
+ Stack.prototype.get = stackGet;
3041
+ Stack.prototype.has = stackHas;
3042
+ Stack.prototype.set = stackSet;
3043
+ function arrayLikeKeys(value, inherited) {
3044
+ var isArr = isArray(value),
3045
+ isArg = !isArr && isArguments(value),
3046
+ isBuff = !isArr && !isArg && isBuffer(value),
3047
+ isType = !isArr && !isArg && !isBuff && isTypedArray(value),
3048
+ skipIndexes = isArr || isArg || isBuff || isType,
3049
+ result = skipIndexes ? baseTimes(value.length, String) : [],
3050
+ length = result.length;
3051
+ for (var key in value) {
3052
+ if (!(skipIndexes && (key == 'length' || isBuff && (key == 'offset' || key == 'parent') || isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset') || isIndex(key, length)))) {
3053
+ result.push(key);
3054
+ }
3055
+ }
3056
+ return result;
3057
+ }
3058
+ function assignMergeValue(object, key, value) {
3059
+ if (value !== undefined && !eq(object[key], value) || value === undefined && !(key in object)) {
3060
+ baseAssignValue(object, key, value);
3061
+ }
3062
+ }
3063
+ function assignValue(object, key, value) {
3064
+ var objValue = object[key];
3065
+ if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === undefined && !(key in object)) {
3066
+ baseAssignValue(object, key, value);
3067
+ }
3068
+ }
3069
+ function assocIndexOf(array, key) {
3070
+ var length = array.length;
3071
+ while (length--) {
3072
+ if (eq(array[length][0], key)) {
3073
+ return length;
3074
+ }
3075
+ }
3076
+ return -1;
3077
+ }
3078
+ function baseAssignValue(object, key, value) {
3079
+ if (key == '__proto__' && defineProperty) {
3080
+ defineProperty(object, key, {
3081
+ 'configurable': true,
3082
+ 'enumerable': true,
3083
+ 'value': value,
3084
+ 'writable': true
3085
+ });
3086
+ } else {
3087
+ object[key] = value;
3088
+ }
3089
+ }
3090
+ var baseFor = createBaseFor();
3091
+ function baseGetTag(value) {
3092
+ if (value == null) {
3093
+ return value === undefined ? undefinedTag : nullTag;
3094
+ }
3095
+ return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
3096
+ }
3097
+ function baseIsArguments(value) {
3098
+ return isObjectLike(value) && baseGetTag(value) == argsTag;
3099
+ }
3100
+ function baseIsNative(value) {
3101
+ if (!isObject(value) || isMasked(value)) {
3102
+ return false;
3103
+ }
3104
+ var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
3105
+ return pattern.test(toSource(value));
3106
+ }
3107
+ function baseIsTypedArray(value) {
3108
+ return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
3109
+ }
3110
+ function baseKeysIn(object) {
3111
+ if (!isObject(object)) {
3112
+ return nativeKeysIn(object);
3113
+ }
3114
+ var isProto = isPrototype(object),
3115
+ result = [];
3116
+ for (var key in object) {
3117
+ if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
3118
+ result.push(key);
3119
+ }
3120
+ }
3121
+ return result;
3122
+ }
3123
+ function baseMerge(object, source, srcIndex, customizer, stack) {
3124
+ if (object === source) {
3125
+ return;
3126
+ }
3127
+ baseFor(source, function (srcValue, key) {
3128
+ stack || (stack = new Stack());
3129
+ if (isObject(srcValue)) {
3130
+ baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
3131
+ } else {
3132
+ var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + '', object, source, stack) : undefined;
3133
+ if (newValue === undefined) {
3134
+ newValue = srcValue;
3135
+ }
3136
+ assignMergeValue(object, key, newValue);
3137
+ }
3138
+ }, keysIn);
3139
+ }
3140
+ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
3141
+ var objValue = safeGet(object, key),
3142
+ srcValue = safeGet(source, key),
3143
+ stacked = stack.get(srcValue);
3144
+ if (stacked) {
3145
+ assignMergeValue(object, key, stacked);
3146
+ return;
3147
+ }
3148
+ var newValue = customizer ? customizer(objValue, srcValue, key + '', object, source, stack) : undefined;
3149
+ var isCommon = newValue === undefined;
3150
+ if (isCommon) {
3151
+ var isArr = isArray(srcValue),
3152
+ isBuff = !isArr && isBuffer(srcValue),
3153
+ isTyped = !isArr && !isBuff && isTypedArray(srcValue);
3154
+ newValue = srcValue;
3155
+ if (isArr || isBuff || isTyped) {
3156
+ if (isArray(objValue)) {
3157
+ newValue = objValue;
3158
+ } else if (isArrayLikeObject(objValue)) {
3159
+ newValue = copyArray(objValue);
3160
+ } else if (isBuff) {
3161
+ isCommon = false;
3162
+ newValue = cloneBuffer(srcValue);
3163
+ } else if (isTyped) {
3164
+ isCommon = false;
3165
+ newValue = cloneTypedArray(srcValue);
3166
+ } else {
3167
+ newValue = [];
3168
+ }
3169
+ } else if (isPlainObject(srcValue) || isArguments(srcValue)) {
3170
+ newValue = objValue;
3171
+ if (isArguments(objValue)) {
3172
+ newValue = toPlainObject(objValue);
3173
+ } else if (!isObject(objValue) || isFunction(objValue)) {
3174
+ newValue = initCloneObject(srcValue);
3175
+ }
3176
+ } else {
3177
+ isCommon = false;
3178
+ }
3179
+ }
3180
+ if (isCommon) {
3181
+ stack.set(srcValue, newValue);
3182
+ mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
3183
+ stack['delete'](srcValue);
3184
+ }
3185
+ assignMergeValue(object, key, newValue);
3186
+ }
3187
+ function baseRest(func, start) {
3188
+ return setToString(overRest(func, start, identity), func + '');
3189
+ }
3190
+ var baseSetToString = !defineProperty ? identity : function (func, string) {
3191
+ return defineProperty(func, 'toString', {
3192
+ 'configurable': true,
3193
+ 'enumerable': false,
3194
+ 'value': constant(string),
3195
+ 'writable': true
3196
+ });
3197
+ };
3198
+ function cloneBuffer(buffer, isDeep) {
3199
+ {
3200
+ return buffer.slice();
3201
+ }
3202
+ }
3203
+ function cloneArrayBuffer(arrayBuffer) {
3204
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
3205
+ new Uint8Array(result).set(new Uint8Array(arrayBuffer));
3206
+ return result;
3207
+ }
3208
+ function cloneTypedArray(typedArray, isDeep) {
3209
+ var buffer = cloneArrayBuffer(typedArray.buffer);
3210
+ return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
3211
+ }
3212
+ function copyArray(source, array) {
3213
+ var index = -1,
3214
+ length = source.length;
3215
+ array || (array = Array(length));
3216
+ while (++index < length) {
3217
+ array[index] = source[index];
3218
+ }
3219
+ return array;
3220
+ }
3221
+ function copyObject(source, props, object, customizer) {
3222
+ var isNew = !object;
3223
+ object || (object = {});
3224
+ var index = -1,
3225
+ length = props.length;
3226
+ while (++index < length) {
3227
+ var key = props[index];
3228
+ var newValue = undefined;
3229
+ if (newValue === undefined) {
3230
+ newValue = source[key];
3231
+ }
3232
+ if (isNew) {
3233
+ baseAssignValue(object, key, newValue);
3234
+ } else {
3235
+ assignValue(object, key, newValue);
3236
+ }
3237
+ }
3238
+ return object;
3239
+ }
3240
+ function createAssigner(assigner) {
3241
+ return baseRest(function (object, sources) {
3242
+ var index = -1,
3243
+ length = sources.length,
3244
+ customizer = length > 1 ? sources[length - 1] : undefined,
3245
+ guard = length > 2 ? sources[2] : undefined;
3246
+ customizer = assigner.length > 3 && typeof customizer == 'function' ? (length--, customizer) : undefined;
3247
+ if (guard && isIterateeCall(sources[0], sources[1], guard)) {
3248
+ customizer = length < 3 ? undefined : customizer;
3249
+ length = 1;
3250
+ }
3251
+ object = Object(object);
3252
+ while (++index < length) {
3253
+ var source = sources[index];
3254
+ if (source) {
3255
+ assigner(object, source, index, customizer);
3256
+ }
3257
+ }
3258
+ return object;
3259
+ });
3260
+ }
3261
+ function createBaseFor(fromRight) {
3262
+ return function (object, iteratee, keysFunc) {
3263
+ var index = -1,
3264
+ iterable = Object(object),
3265
+ props = keysFunc(object),
3266
+ length = props.length;
3267
+ while (length--) {
3268
+ var key = props[++index];
3269
+ if (iteratee(iterable[key], key, iterable) === false) {
3270
+ break;
3271
+ }
3272
+ }
3273
+ return object;
3274
+ };
3275
+ }
3276
+ function getMapData(map, key) {
3277
+ var data = map.__data__;
3278
+ return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map;
3279
+ }
3280
+ function getNative(object, key) {
3281
+ var value = getValue(object, key);
3282
+ return baseIsNative(value) ? value : undefined;
3283
+ }
3284
+ function getRawTag(value) {
3285
+ var isOwn = hasOwnProperty.call(value, symToStringTag),
3286
+ tag = value[symToStringTag];
3287
+ try {
3288
+ value[symToStringTag] = undefined;
3289
+ var unmasked = true;
3290
+ } catch (e) {}
3291
+ var result = nativeObjectToString.call(value);
3292
+ if (unmasked) {
3293
+ if (isOwn) {
3294
+ value[symToStringTag] = tag;
3295
+ } else {
3296
+ delete value[symToStringTag];
3297
+ }
3298
+ }
3299
+ return result;
3300
+ }
3301
+ function initCloneObject(object) {
3302
+ return typeof object.constructor == 'function' && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
3303
+ }
3304
+ function isIndex(value, length) {
3305
+ var type = _typeof(value);
3306
+ length = length == null ? MAX_SAFE_INTEGER : length;
3307
+ return !!length && (type == 'number' || type != 'symbol' && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
3308
+ }
3309
+ function isIterateeCall(value, index, object) {
3310
+ if (!isObject(object)) {
3311
+ return false;
3312
+ }
3313
+ var type = _typeof(index);
3314
+ if (type == 'number' ? isArrayLike(object) && isIndex(index, object.length) : type == 'string' && index in object) {
3315
+ return eq(object[index], value);
3316
+ }
3317
+ return false;
3318
+ }
3319
+ function isKeyable(value) {
3320
+ var type = _typeof(value);
3321
+ return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' : value === null;
3322
+ }
3323
+ function isMasked(func) {
3324
+ return !!maskSrcKey && maskSrcKey in func;
3325
+ }
3326
+ function isPrototype(value) {
3327
+ var Ctor = value && value.constructor,
3328
+ proto = typeof Ctor == 'function' && Ctor.prototype || objectProto;
3329
+ return value === proto;
3330
+ }
3331
+ function nativeKeysIn(object) {
3332
+ var result = [];
3333
+ if (object != null) {
3334
+ for (var key in Object(object)) {
3335
+ result.push(key);
3336
+ }
3337
+ }
3338
+ return result;
3339
+ }
3340
+ function objectToString(value) {
3341
+ return nativeObjectToString.call(value);
3342
+ }
3343
+ function overRest(func, start, transform) {
3344
+ start = nativeMax(start === undefined ? func.length - 1 : start, 0);
3345
+ return function () {
3346
+ var args = arguments,
3347
+ index = -1,
3348
+ length = nativeMax(args.length - start, 0),
3349
+ array = Array(length);
3350
+ while (++index < length) {
3351
+ array[index] = args[start + index];
3352
+ }
3353
+ index = -1;
3354
+ var otherArgs = Array(start + 1);
3355
+ while (++index < start) {
3356
+ otherArgs[index] = args[index];
3357
+ }
3358
+ otherArgs[start] = transform(array);
3359
+ return apply(func, this, otherArgs);
3360
+ };
3361
+ }
3362
+ function safeGet(object, key) {
3363
+ if (key === 'constructor' && typeof object[key] === 'function') {
3364
+ return;
3365
+ }
3366
+ if (key == '__proto__') {
3367
+ return;
3368
+ }
3369
+ return object[key];
3370
+ }
3371
+ var setToString = shortOut(baseSetToString);
3372
+ function shortOut(func) {
3373
+ var count = 0,
3374
+ lastCalled = 0;
3375
+ return function () {
3376
+ var stamp = nativeNow(),
3377
+ remaining = HOT_SPAN - (stamp - lastCalled);
3378
+ lastCalled = stamp;
3379
+ if (remaining > 0) {
3380
+ if (++count >= HOT_COUNT) {
3381
+ return arguments[0];
3382
+ }
3383
+ } else {
3384
+ count = 0;
3385
+ }
3386
+ return func.apply(undefined, arguments);
3387
+ };
3388
+ }
3389
+ function toSource(func) {
3390
+ if (func != null) {
3391
+ try {
3392
+ return funcToString.call(func);
3393
+ } catch (e) {}
3394
+ try {
3395
+ return func + '';
3396
+ } catch (e) {}
3397
+ }
3398
+ return '';
3399
+ }
3400
+ function eq(value, other) {
3401
+ return value === other || value !== value && other !== other;
3402
+ }
3403
+ var isArguments = baseIsArguments(function () {
3404
+ return arguments;
3405
+ }()) ? baseIsArguments : function (value) {
3406
+ return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee');
3407
+ };
3408
+ var isArray = Array.isArray;
3409
+ function isArrayLike(value) {
3410
+ return value != null && isLength(value.length) && !isFunction(value);
3411
+ }
3412
+ function isArrayLikeObject(value) {
3413
+ return isObjectLike(value) && isArrayLike(value);
3414
+ }
3415
+ var isBuffer = nativeIsBuffer || stubFalse;
3416
+ function isFunction(value) {
3417
+ if (!isObject(value)) {
3418
+ return false;
3419
+ }
3420
+ var tag = baseGetTag(value);
3421
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
3422
+ }
3423
+ function isLength(value) {
3424
+ return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
3425
+ }
3426
+ function isObject(value) {
3427
+ var type = _typeof(value);
3428
+ return value != null && (type == 'object' || type == 'function');
3429
+ }
3430
+ function isObjectLike(value) {
3431
+ return value != null && _typeof(value) == 'object';
3432
+ }
3433
+ function isPlainObject(value) {
3434
+ if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
3435
+ return false;
3436
+ }
3437
+ var proto = getPrototype(value);
3438
+ if (proto === null) {
3439
+ return true;
3440
+ }
3441
+ var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
3442
+ return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
3443
+ }
3444
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
3445
+ function toPlainObject(value) {
3446
+ return copyObject(value, keysIn(value));
3447
+ }
3448
+ function keysIn(object) {
3449
+ return isArrayLike(object) ? arrayLikeKeys(object) : baseKeysIn(object);
3450
+ }
3451
+ var merge = createAssigner(function (object, source, srcIndex) {
3452
+ baseMerge(object, source, srcIndex);
3453
+ });
3454
+ function constant(value) {
3455
+ return function () {
3456
+ return value;
3457
+ };
3458
+ }
3459
+ function identity(value) {
3460
+ return value;
3461
+ }
3462
+ function stubFalse() {
3463
+ return false;
3464
+ }
3465
+ module.exports = merge;
3466
+ })(lodash_merge, lodash_merge.exports);
3467
+ var lodash_mergeExports = lodash_merge.exports;
3468
+ var merge = /*@__PURE__*/getDefaultExportFromCjs(lodash_mergeExports);
3469
+ var shim = {
3470
+ exports: {}
3471
+ };
3472
+ var useSyncExternalStoreShim_production_min = {};
3473
+ var require$$2 = /*@__PURE__*/getAugmentedNamespace(compat_module);
3474
+ var e = require$$2;
3475
+ function h(a, b) {
3476
+ return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
3477
+ }
3478
+ var k = "function" === typeof Object.is ? Object.is : h,
3479
+ l = e.useState,
3480
+ m = e.useEffect,
3481
+ n = e.useLayoutEffect,
3482
+ p = e.useDebugValue;
3483
+ function q(a, b) {
3484
+ var d = b(),
3485
+ f = l({
3486
+ inst: {
3487
+ value: d,
3488
+ getSnapshot: b
3489
+ }
3490
+ }),
3491
+ c = f[0].inst,
3492
+ g = f[1];
3493
+ n(function () {
3494
+ c.value = d;
3495
+ c.getSnapshot = b;
3496
+ r(c) && g({
3497
+ inst: c
3498
+ });
3499
+ }, [a, d, b]);
3500
+ m(function () {
3501
+ r(c) && g({
3502
+ inst: c
3503
+ });
3504
+ return a(function () {
3505
+ r(c) && g({
3506
+ inst: c
3507
+ });
3508
+ });
3509
+ }, [a]);
3510
+ p(d);
3511
+ return d;
3512
+ }
3513
+ function r(a) {
3514
+ var b = a.getSnapshot;
3515
+ a = a.value;
3516
+ try {
3517
+ var d = b();
3518
+ return !k(a, d);
3519
+ } catch (f) {
3520
+ return !0;
3521
+ }
3522
+ }
3523
+ function t(a, b) {
3524
+ return b();
3525
+ }
3526
+ var u = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? t : q;
3527
+ useSyncExternalStoreShim_production_min.useSyncExternalStore = void 0 !== e.useSyncExternalStore ? e.useSyncExternalStore : u;
3528
+ {
3529
+ shim.exports = useSyncExternalStoreShim_production_min;
3530
+ }
3531
+ var shimExports = shim.exports;
3532
+ var SWRGlobalState = new WeakMap();
3533
+ var EMPTY_CACHE = {};
3534
+ var INITIAL_CACHE = {};
3535
+ var noop = function noop() {};
3536
+ var UNDEFINED = noop();
3537
+ var OBJECT = Object;
3538
+ var isUndefined = function isUndefined(v) {
3539
+ return v === UNDEFINED;
3540
+ };
3541
+ var isFunction = function isFunction(v) {
3542
+ return typeof v == 'function';
3543
+ };
3544
+ var mergeObjects = function mergeObjects(a, b) {
3545
+ return _objectSpread(_objectSpread({}, a), b);
3546
+ };
3547
+ var STR_UNDEFINED = 'undefined';
3548
+ var isWindowDefined = (typeof window === "undefined" ? "undefined" : _typeof(window)) != STR_UNDEFINED;
3549
+ var isDocumentDefined = (typeof document === "undefined" ? "undefined" : _typeof(document)) != STR_UNDEFINED;
3550
+ var hasRequestAnimationFrame = function hasRequestAnimationFrame() {
3551
+ return isWindowDefined && _typeof(window['requestAnimationFrame']) != STR_UNDEFINED;
3552
+ };
3553
+ var createCacheHelper = function createCacheHelper(cache, key) {
3554
+ var state = SWRGlobalState.get(cache);
3555
+ return [function () {
3556
+ return cache.get(key) || EMPTY_CACHE;
3557
+ }, function (info) {
3558
+ if (!isUndefined(key)) {
3559
+ var prev = cache.get(key);
3560
+ if (!(key in INITIAL_CACHE)) {
3561
+ INITIAL_CACHE[key] = prev;
3562
+ }
3563
+ state[5](key, mergeObjects(prev, info), prev || EMPTY_CACHE);
3564
+ }
3565
+ }, state[6], function () {
3566
+ if (!isUndefined(key)) {
3567
+ if (key in INITIAL_CACHE) return INITIAL_CACHE[key];
3568
+ }
3569
+ return cache.get(key) || EMPTY_CACHE;
3570
+ }];
3571
+ };
3572
+ var table = new WeakMap();
3573
+ var counter = 0;
3574
+ var stableHash = function stableHash(arg) {
3575
+ var type = _typeof(arg);
3576
+ var constructor = arg && arg.constructor;
3577
+ var isDate = constructor == Date;
3578
+ var result;
3579
+ var index;
3580
+ if (OBJECT(arg) === arg && !isDate && constructor != RegExp) {
3581
+ result = table.get(arg);
3582
+ if (result) return result;
3583
+ result = ++counter + '~';
3584
+ table.set(arg, result);
3585
+ if (constructor == Array) {
3586
+ result = '@';
3587
+ for (index = 0; index < arg.length; index++) {
3588
+ result += stableHash(arg[index]) + ',';
3589
+ }
3590
+ table.set(arg, result);
3591
+ }
3592
+ if (constructor == OBJECT) {
3593
+ result = '#';
3594
+ var keys = OBJECT.keys(arg).sort();
3595
+ while (!isUndefined(index = keys.pop())) {
3596
+ if (!isUndefined(arg[index])) {
3597
+ result += index + ':' + stableHash(arg[index]) + ',';
3598
+ }
3599
+ }
3600
+ table.set(arg, result);
3601
+ }
3602
+ } else {
3603
+ result = isDate ? arg.toJSON() : type == 'symbol' ? arg.toString() : type == 'string' ? JSON.stringify(arg) : '' + arg;
3604
+ }
3605
+ return result;
3606
+ };
3607
+ var online = true;
3608
+ var isOnline = function isOnline() {
3609
+ return online;
3610
+ };
3611
+ var _ref = isWindowDefined && window.addEventListener ? [window.addEventListener.bind(window), window.removeEventListener.bind(window)] : [noop, noop],
3612
+ _ref2 = _slicedToArray(_ref, 2),
3613
+ onWindowEvent = _ref2[0],
3614
+ offWindowEvent = _ref2[1];
3615
+ var isVisible = function isVisible() {
3616
+ var visibilityState = isDocumentDefined && document.visibilityState;
3617
+ return isUndefined(visibilityState) || visibilityState !== 'hidden';
3618
+ };
3619
+ var initFocus = function initFocus(callback) {
3620
+ if (isDocumentDefined) {
3621
+ document.addEventListener('visibilitychange', callback);
3622
+ }
3623
+ onWindowEvent('focus', callback);
3624
+ return function () {
3625
+ if (isDocumentDefined) {
3626
+ document.removeEventListener('visibilitychange', callback);
3627
+ }
3628
+ offWindowEvent('focus', callback);
3629
+ };
3630
+ };
3631
+ var initReconnect = function initReconnect(callback) {
3632
+ var onOnline = function onOnline() {
3633
+ online = true;
3634
+ callback();
3635
+ };
3636
+ var onOffline = function onOffline() {
3637
+ online = false;
3638
+ };
3639
+ onWindowEvent('online', onOnline);
3640
+ onWindowEvent('offline', onOffline);
3641
+ return function () {
3642
+ offWindowEvent('online', onOnline);
3643
+ offWindowEvent('offline', onOffline);
3644
+ };
3645
+ };
3646
+ var preset = {
3647
+ isOnline: isOnline,
3648
+ isVisible: isVisible
3649
+ };
3650
+ var defaultConfigOptions = {
3651
+ initFocus: initFocus,
3652
+ initReconnect: initReconnect
3653
+ };
3654
+ var IS_REACT_LEGACY = !wn.useId;
3655
+ var IS_SERVER = !isWindowDefined || 'Deno' in window;
3656
+ var rAF = function rAF(f) {
3657
+ return hasRequestAnimationFrame() ? window['requestAnimationFrame'](f) : setTimeout(f, 1);
3658
+ };
3659
+ var useIsomorphicLayoutEffect = IS_SERVER ? p$3 : y$2;
3660
+ var navigatorConnection = typeof navigator !== 'undefined' && navigator.connection;
3661
+ var slowConnection = !IS_SERVER && navigatorConnection && (['slow-2g', '2g'].includes(navigatorConnection.effectiveType) || navigatorConnection.saveData);
3662
+ var serialize = function serialize(key) {
3663
+ if (isFunction(key)) {
3664
+ try {
3665
+ key = key();
3666
+ } catch (err) {
3667
+ key = '';
3668
+ }
3669
+ }
3670
+ var args = key;
3671
+ key = typeof key == 'string' ? key : (Array.isArray(key) ? key.length : key) ? stableHash(key) : '';
3672
+ return [key, args];
3673
+ };
3674
+ var __timestamp = 0;
3675
+ var getTimestamp = function getTimestamp() {
3676
+ return ++__timestamp;
3677
+ };
3678
+ var FOCUS_EVENT = 0;
3679
+ var RECONNECT_EVENT = 1;
3680
+ var MUTATE_EVENT = 2;
3681
+ var ERROR_REVALIDATE_EVENT = 3;
3682
+ var constants = {
3683
+ __proto__: null,
3684
+ FOCUS_EVENT: FOCUS_EVENT,
3685
+ RECONNECT_EVENT: RECONNECT_EVENT,
3686
+ MUTATE_EVENT: MUTATE_EVENT,
3687
+ ERROR_REVALIDATE_EVENT: ERROR_REVALIDATE_EVENT
3688
+ };
3689
+ function internalMutate() {
3690
+ return _internalMutate.apply(this, arguments);
3691
+ }
3692
+ function _internalMutate() {
3693
+ _internalMutate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
3694
+ var _len,
3695
+ args,
3696
+ _key2,
3697
+ cache,
3698
+ _key,
3699
+ _data,
3700
+ _opts,
3701
+ options,
3702
+ populateCache,
3703
+ rollbackOnErrorOption,
3704
+ optimisticData,
3705
+ revalidate,
3706
+ rollbackOnError,
3707
+ throwOnError,
3708
+ keyFilter,
3709
+ matchedKeys,
3710
+ it,
3711
+ keyIt,
3712
+ key,
3713
+ mutateByKey,
3714
+ _mutateByKey,
3715
+ _args3 = arguments;
3716
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
3717
+ while (1) switch (_context3.prev = _context3.next) {
3718
+ case 0:
3719
+ _mutateByKey = function _mutateByKey3() {
3720
+ _mutateByKey = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_k) {
3721
+ var _serialize3, _serialize4, key, _createCacheHelper3, _createCacheHelper4, get, set, _SWRGlobalState$get5, _SWRGlobalState$get6, EVENT_REVALIDATORS, MUTATION, FETCH, revalidators, startRevalidate, data, error, beforeMutationTs, hasOptimisticData, state, displayedData, currentData, committedData, res;
3722
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
3723
+ while (1) switch (_context2.prev = _context2.next) {
3724
+ case 0:
3725
+ _serialize3 = serialize(_k), _serialize4 = _slicedToArray(_serialize3, 1), key = _serialize4[0];
3726
+ if (key) {
3727
+ _context2.next = 3;
3728
+ break;
3729
+ }
3730
+ return _context2.abrupt("return");
3731
+ case 3:
3732
+ _createCacheHelper3 = createCacheHelper(cache, key), _createCacheHelper4 = _slicedToArray(_createCacheHelper3, 2), get = _createCacheHelper4[0], set = _createCacheHelper4[1];
3733
+ _SWRGlobalState$get5 = SWRGlobalState.get(cache), _SWRGlobalState$get6 = _slicedToArray(_SWRGlobalState$get5, 3), EVENT_REVALIDATORS = _SWRGlobalState$get6[0], MUTATION = _SWRGlobalState$get6[1], FETCH = _SWRGlobalState$get6[2];
3734
+ revalidators = EVENT_REVALIDATORS[key];
3735
+ startRevalidate = function startRevalidate() {
3736
+ if (revalidate) {
3737
+ delete FETCH[key];
3738
+ if (revalidators && revalidators[0]) {
3739
+ return revalidators[0](MUTATE_EVENT).then(function () {
3740
+ return get().data;
3741
+ });
3742
+ }
3743
+ }
3744
+ return get().data;
3745
+ };
3746
+ if (!(args.length < 3)) {
3747
+ _context2.next = 9;
3748
+ break;
3749
+ }
3750
+ return _context2.abrupt("return", startRevalidate());
3751
+ case 9:
3752
+ data = _data;
3753
+ beforeMutationTs = getTimestamp();
3754
+ MUTATION[key] = [beforeMutationTs, 0];
3755
+ hasOptimisticData = !isUndefined(optimisticData);
3756
+ state = get();
3757
+ displayedData = state.data;
3758
+ currentData = state._c;
3759
+ committedData = isUndefined(currentData) ? displayedData : currentData;
3760
+ if (hasOptimisticData) {
3761
+ optimisticData = isFunction(optimisticData) ? optimisticData(committedData) : optimisticData;
3762
+ set({
3763
+ data: optimisticData,
3764
+ _c: committedData
3765
+ });
3766
+ }
3767
+ if (isFunction(data)) {
3768
+ try {
3769
+ data = data(committedData);
3770
+ } catch (err) {
3771
+ error = err;
3772
+ }
3773
+ }
3774
+ if (!(data && isFunction(data.then))) {
3775
+ _context2.next = 30;
3776
+ break;
3777
+ }
3778
+ _context2.next = 22;
3779
+ return data["catch"](function (err) {
3780
+ error = err;
3781
+ });
3782
+ case 22:
3783
+ data = _context2.sent;
3784
+ if (!(beforeMutationTs !== MUTATION[key][0])) {
3785
+ _context2.next = 29;
3786
+ break;
3787
+ }
3788
+ if (!error) {
3789
+ _context2.next = 26;
3790
+ break;
3791
+ }
3792
+ throw error;
3793
+ case 26:
3794
+ return _context2.abrupt("return", data);
3795
+ case 29:
3796
+ if (error && hasOptimisticData && rollbackOnError(error)) {
3797
+ populateCache = true;
3798
+ data = committedData;
3799
+ set({
3800
+ data: data,
3801
+ _c: UNDEFINED
3802
+ });
3803
+ }
3804
+ case 30:
3805
+ if (populateCache) {
3806
+ if (!error) {
3807
+ if (isFunction(populateCache)) {
3808
+ data = populateCache(data, committedData);
3809
+ }
3810
+ set({
3811
+ data: data,
3812
+ _c: UNDEFINED
3813
+ });
3814
+ }
3815
+ }
3816
+ MUTATION[key][1] = getTimestamp();
3817
+ _context2.next = 34;
3818
+ return startRevalidate();
3819
+ case 34:
3820
+ res = _context2.sent;
3821
+ set({
3822
+ _c: UNDEFINED
3823
+ });
3824
+ if (!error) {
3825
+ _context2.next = 40;
3826
+ break;
3827
+ }
3828
+ if (!throwOnError) {
3829
+ _context2.next = 39;
3830
+ break;
3831
+ }
3832
+ throw error;
3833
+ case 39:
3834
+ return _context2.abrupt("return");
3835
+ case 40:
3836
+ return _context2.abrupt("return", populateCache ? res : data);
3837
+ case 41:
3838
+ case "end":
3839
+ return _context2.stop();
3840
+ }
3841
+ }, _callee2);
3842
+ }));
3843
+ return _mutateByKey.apply(this, arguments);
3844
+ };
3845
+ mutateByKey = function _mutateByKey2(_x2) {
3846
+ return _mutateByKey.apply(this, arguments);
3847
+ };
3848
+ for (_len = _args3.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {
3849
+ args[_key2] = _args3[_key2];
3850
+ }
3851
+ cache = args[0], _key = args[1], _data = args[2], _opts = args[3];
3852
+ options = mergeObjects({
3853
+ populateCache: true,
3854
+ throwOnError: true
3855
+ }, typeof _opts === 'boolean' ? {
3856
+ revalidate: _opts
3857
+ } : _opts || {});
3858
+ populateCache = options.populateCache;
3859
+ rollbackOnErrorOption = options.rollbackOnError;
3860
+ optimisticData = options.optimisticData;
3861
+ revalidate = options.revalidate !== false;
3862
+ rollbackOnError = function rollbackOnError(error) {
3863
+ return typeof rollbackOnErrorOption === 'function' ? rollbackOnErrorOption(error) : rollbackOnErrorOption !== false;
3864
+ };
3865
+ throwOnError = options.throwOnError;
3866
+ if (!isFunction(_key)) {
3867
+ _context3.next = 17;
3868
+ break;
3869
+ }
3870
+ keyFilter = _key;
3871
+ matchedKeys = [];
3872
+ it = cache.keys();
3873
+ for (keyIt = it.next(); !keyIt.done; keyIt = it.next()) {
3874
+ key = keyIt.value;
3875
+ if (!/^\$(inf|sub)\$/.test(key) && keyFilter(cache.get(key)._k)) {
3876
+ matchedKeys.push(key);
3877
+ }
3878
+ }
3879
+ return _context3.abrupt("return", Promise.all(matchedKeys.map(mutateByKey)));
3880
+ case 17:
3881
+ return _context3.abrupt("return", mutateByKey(_key));
3882
+ case 18:
3883
+ case "end":
3884
+ return _context3.stop();
3885
+ }
3886
+ }, _callee3);
3887
+ }));
3888
+ return _internalMutate.apply(this, arguments);
3889
+ }
3890
+ var revalidateAllKeys = function revalidateAllKeys(revalidators, type) {
3891
+ for (var key in revalidators) {
3892
+ if (revalidators[key][0]) revalidators[key][0](type);
3893
+ }
3894
+ };
3895
+ var initCache = function initCache(provider, options) {
3896
+ if (!SWRGlobalState.has(provider)) {
3897
+ var opts = mergeObjects(defaultConfigOptions, options);
3898
+ var EVENT_REVALIDATORS = {};
3899
+ var _mutate = internalMutate.bind(UNDEFINED, provider);
3900
+ var unmount = noop;
3901
+ var subscriptions = {};
3902
+ var subscribe = function subscribe(key, callback) {
3903
+ var subs = subscriptions[key] || [];
3904
+ subscriptions[key] = subs;
3905
+ subs.push(callback);
3906
+ return function () {
3907
+ return subs.splice(subs.indexOf(callback), 1);
3908
+ };
3909
+ };
3910
+ var setter = function setter(key, value, prev) {
3911
+ provider.set(key, value);
3912
+ var subs = subscriptions[key];
3913
+ if (subs) {
3914
+ var _iterator = _createForOfIteratorHelper(subs),
3915
+ _step;
3916
+ try {
3917
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
3918
+ var _fn = _step.value;
3919
+ _fn(value, prev);
3920
+ }
3921
+ } catch (err) {
3922
+ _iterator.e(err);
3923
+ } finally {
3924
+ _iterator.f();
3925
+ }
3926
+ }
3927
+ };
3928
+ var initProvider = function initProvider() {
3929
+ if (!SWRGlobalState.has(provider)) {
3930
+ SWRGlobalState.set(provider, [EVENT_REVALIDATORS, {}, {}, {}, _mutate, setter, subscribe]);
3931
+ if (!IS_SERVER) {
3932
+ var releaseFocus = opts.initFocus(setTimeout.bind(UNDEFINED, revalidateAllKeys.bind(UNDEFINED, EVENT_REVALIDATORS, FOCUS_EVENT)));
3933
+ var releaseReconnect = opts.initReconnect(setTimeout.bind(UNDEFINED, revalidateAllKeys.bind(UNDEFINED, EVENT_REVALIDATORS, RECONNECT_EVENT)));
3934
+ unmount = function unmount() {
3935
+ releaseFocus && releaseFocus();
3936
+ releaseReconnect && releaseReconnect();
3937
+ SWRGlobalState["delete"](provider);
3938
+ };
3939
+ }
3940
+ }
3941
+ };
3942
+ initProvider();
3943
+ return [provider, _mutate, initProvider, unmount];
3944
+ }
3945
+ return [provider, SWRGlobalState.get(provider)[4]];
3946
+ };
3947
+ var onErrorRetry = function onErrorRetry(_, __, config, revalidate, opts) {
3948
+ var maxRetryCount = config.errorRetryCount;
3949
+ var currentRetryCount = opts.retryCount;
3950
+ var timeout = ~~((Math.random() + 0.5) * (1 << (currentRetryCount < 8 ? currentRetryCount : 8))) * config.errorRetryInterval;
3951
+ if (!isUndefined(maxRetryCount) && currentRetryCount > maxRetryCount) {
3952
+ return;
3953
+ }
3954
+ setTimeout(revalidate, timeout, opts);
3955
+ };
3956
+ var compare = function compare(currentData, newData) {
3957
+ return stableHash(currentData) == stableHash(newData);
3958
+ };
3959
+ var _initCache = initCache(new Map()),
3960
+ _initCache2 = _slicedToArray(_initCache, 2),
3961
+ cache = _initCache2[0],
3962
+ mutate = _initCache2[1];
3963
+ var defaultConfig = mergeObjects({
3964
+ onLoadingSlow: noop,
3965
+ onSuccess: noop,
3966
+ onError: noop,
3967
+ onErrorRetry: onErrorRetry,
3968
+ onDiscarded: noop,
3969
+ revalidateOnFocus: true,
3970
+ revalidateOnReconnect: true,
3971
+ revalidateIfStale: true,
3972
+ shouldRetryOnError: true,
3973
+ errorRetryInterval: slowConnection ? 10000 : 5000,
3974
+ focusThrottleInterval: 5 * 1000,
3975
+ dedupingInterval: 2 * 1000,
3976
+ loadingTimeout: slowConnection ? 5000 : 3000,
3977
+ compare: compare,
3978
+ isPaused: function isPaused() {
3979
+ return false;
3980
+ },
3981
+ cache: cache,
3982
+ mutate: mutate,
3983
+ fallback: {}
3984
+ }, preset);
3985
+ var mergeConfigs = function mergeConfigs(a, b) {
3986
+ var v = mergeObjects(a, b);
3987
+ if (b) {
3988
+ var u1 = a.use,
3989
+ f1 = a.fallback;
3990
+ var u2 = b.use,
3991
+ f2 = b.fallback;
3992
+ if (u1 && u2) {
3993
+ v.use = u1.concat(u2);
3994
+ }
3995
+ if (f1 && f2) {
3996
+ v.fallback = mergeObjects(f1, f2);
3997
+ }
3998
+ }
3999
+ return v;
4000
+ };
4001
+ var SWRConfigContext = F$4({});
4002
+ var enableDevtools = isWindowDefined && window.__SWR_DEVTOOLS_USE__;
4003
+ var use = enableDevtools ? window.__SWR_DEVTOOLS_USE__ : [];
4004
+ var setupDevTools = function setupDevTools() {
4005
+ if (enableDevtools) {
4006
+ window.__SWR_DEVTOOLS_REACT__ = wn;
4007
+ }
4008
+ };
4009
+ var normalize = function normalize(args) {
4010
+ return isFunction(args[1]) ? [args[0], args[1], args[2] || {}] : [args[0], null, (args[1] === null ? args[2] : args[1]) || {}];
4011
+ };
4012
+ var useSWRConfig = function useSWRConfig() {
4013
+ return mergeObjects(defaultConfig, q$5(SWRConfigContext));
4014
+ };
4015
+ var middleware = function middleware(useSWRNext) {
4016
+ return function (key_, fetcher_, config) {
4017
+ var fetcher = fetcher_ && function () {
4018
+ var key = serialize(key_)[0];
4019
+ var _SWRGlobalState$get = SWRGlobalState.get(cache),
4020
+ _SWRGlobalState$get2 = _slicedToArray(_SWRGlobalState$get, 4),
4021
+ PRELOAD = _SWRGlobalState$get2[3];
4022
+ var req = PRELOAD[key];
4023
+ if (req) {
4024
+ delete PRELOAD[key];
4025
+ return req;
4026
+ }
4027
+ return fetcher_.apply(void 0, arguments);
4028
+ };
4029
+ return useSWRNext(key_, fetcher, config);
4030
+ };
4031
+ };
4032
+ var BUILT_IN_MIDDLEWARE = use.concat(middleware);
4033
+ var withArgs = function withArgs(hook) {
4034
+ return function useSWRArgs() {
4035
+ var fallbackConfig = useSWRConfig();
4036
+ for (var _len2 = arguments.length, args = new Array(_len2), _key3 = 0; _key3 < _len2; _key3++) {
4037
+ args[_key3] = arguments[_key3];
4038
+ }
4039
+ var _normalize = normalize(args),
4040
+ _normalize2 = _slicedToArray(_normalize, 3),
4041
+ key = _normalize2[0],
4042
+ fn = _normalize2[1],
4043
+ _config = _normalize2[2];
4044
+ var config = mergeConfigs(fallbackConfig, _config);
4045
+ var next = hook;
4046
+ var use = config.use;
4047
+ var middleware = (use || []).concat(BUILT_IN_MIDDLEWARE);
4048
+ for (var _i = middleware.length; _i--;) {
4049
+ next = middleware[_i](next);
4050
+ }
4051
+ return next(key, fn || config.fetcher || null, config);
4052
+ };
4053
+ };
4054
+ var useStateWithDeps = function useStateWithDeps(state) {
4055
+ var rerender = h$4({})[1];
4056
+ var unmountedRef = _$1(false);
4057
+ var stateRef = _$1(state);
4058
+ var stateDependenciesRef = _$1({
4059
+ data: false,
4060
+ error: false,
4061
+ isValidating: false
4062
+ });
4063
+ var setState = T$2(function (payload) {
4064
+ var shouldRerender = false;
4065
+ var currentState = stateRef.current;
4066
+ for (var _2 in payload) {
4067
+ var _k2 = _2;
4068
+ if (currentState[_k2] !== payload[_k2]) {
4069
+ currentState[_k2] = payload[_k2];
4070
+ if (stateDependenciesRef.current[_k2]) {
4071
+ shouldRerender = true;
4072
+ }
4073
+ }
4074
+ }
4075
+ if (shouldRerender && !unmountedRef.current) {
4076
+ if (IS_REACT_LEGACY) {
4077
+ rerender({});
4078
+ } else {
4079
+ wn.startTransition(function () {
4080
+ return rerender({});
4081
+ });
4082
+ }
4083
+ }
4084
+ }, []);
4085
+ useIsomorphicLayoutEffect(function () {
4086
+ unmountedRef.current = false;
4087
+ return function () {
4088
+ unmountedRef.current = true;
4089
+ };
4090
+ });
4091
+ return [stateRef, stateDependenciesRef.current, setState];
4092
+ };
4093
+ var subscribeCallback = function subscribeCallback(key, callbacks, callback) {
4094
+ var keyedRevalidators = callbacks[key] || (callbacks[key] = []);
4095
+ keyedRevalidators.push(callback);
4096
+ return function () {
4097
+ var index = keyedRevalidators.indexOf(callback);
4098
+ if (index >= 0) {
4099
+ keyedRevalidators[index] = keyedRevalidators[keyedRevalidators.length - 1];
4100
+ keyedRevalidators.pop();
4101
+ }
4102
+ };
4103
+ };
4104
+ var withMiddleware = function withMiddleware(useSWR, middleware) {
4105
+ return function () {
4106
+ for (var _len3 = arguments.length, args = new Array(_len3), _key4 = 0; _key4 < _len3; _key4++) {
4107
+ args[_key4] = arguments[_key4];
4108
+ }
4109
+ var _normalize3 = normalize(args),
4110
+ _normalize4 = _slicedToArray(_normalize3, 3),
4111
+ key = _normalize4[0],
4112
+ fn = _normalize4[1],
4113
+ config = _normalize4[2];
4114
+ var uses = (config.use || []).concat(middleware);
4115
+ return useSWR(key, fn, _objectSpread(_objectSpread({}, config), {}, {
4116
+ use: uses
4117
+ }));
4118
+ };
4119
+ };
4120
+ setupDevTools();
4121
+ var WITH_DEDUPE = {
4122
+ dedupe: true
4123
+ };
4124
+ var useSWRHandler = function useSWRHandler(_key, fetcher, config) {
4125
+ var cache = config.cache,
4126
+ compare = config.compare,
4127
+ suspense = config.suspense,
4128
+ fallbackData = config.fallbackData,
4129
+ revalidateOnMount = config.revalidateOnMount,
4130
+ revalidateIfStale = config.revalidateIfStale,
4131
+ refreshInterval = config.refreshInterval,
4132
+ refreshWhenHidden = config.refreshWhenHidden,
4133
+ refreshWhenOffline = config.refreshWhenOffline,
4134
+ keepPreviousData = config.keepPreviousData;
4135
+ var _SWRGlobalState$get3 = SWRGlobalState.get(cache),
4136
+ _SWRGlobalState$get4 = _slicedToArray(_SWRGlobalState$get3, 3),
4137
+ EVENT_REVALIDATORS = _SWRGlobalState$get4[0],
4138
+ MUTATION = _SWRGlobalState$get4[1],
4139
+ FETCH = _SWRGlobalState$get4[2];
4140
+ var _serialize = serialize(_key),
4141
+ _serialize2 = _slicedToArray(_serialize, 2),
4142
+ key = _serialize2[0],
4143
+ fnArg = _serialize2[1];
4144
+ var initialMountedRef = _$1(false);
4145
+ var unmountedRef = _$1(false);
4146
+ var keyRef = _$1(key);
4147
+ var fetcherRef = _$1(fetcher);
4148
+ var configRef = _$1(config);
4149
+ var getConfig = function getConfig() {
4150
+ return configRef.current;
4151
+ };
4152
+ var isActive = function isActive() {
4153
+ return getConfig().isVisible() && getConfig().isOnline();
4154
+ };
4155
+ var _createCacheHelper = createCacheHelper(cache, key),
4156
+ _createCacheHelper2 = _slicedToArray(_createCacheHelper, 4),
4157
+ getCache = _createCacheHelper2[0],
4158
+ setCache = _createCacheHelper2[1],
4159
+ subscribeCache = _createCacheHelper2[2],
4160
+ getInitialCache = _createCacheHelper2[3];
4161
+ var stateDependencies = _$1({}).current;
4162
+ var fallback = isUndefined(fallbackData) ? config.fallback[key] : fallbackData;
4163
+ var isEqual = function isEqual(prev, current) {
4164
+ var equal = true;
4165
+ for (var _3 in stateDependencies) {
4166
+ var _t = _3;
4167
+ if (_t === 'data') {
4168
+ if (!compare(current[_t], prev[_t])) {
4169
+ if (isUndefined(prev[_t])) {
4170
+ if (!compare(current[_t], returnedData)) {
4171
+ equal = false;
4172
+ }
4173
+ } else {
4174
+ equal = false;
4175
+ }
4176
+ }
4177
+ } else {
4178
+ if (current[_t] !== prev[_t]) {
4179
+ equal = false;
4180
+ }
4181
+ }
4182
+ }
4183
+ return equal;
4184
+ };
4185
+ var getSnapshot = F$3(function () {
4186
+ var shouldStartRequest = function () {
4187
+ if (!key) return false;
4188
+ if (!fetcher) return false;
4189
+ if (!isUndefined(revalidateOnMount)) return revalidateOnMount;
4190
+ if (getConfig().isPaused()) return false;
4191
+ if (suspense) return false;
4192
+ if (!isUndefined(revalidateIfStale)) return revalidateIfStale;
4193
+ return true;
4194
+ }();
4195
+ var getSelectedCache = function getSelectedCache(state) {
4196
+ var snapshot = mergeObjects(state);
4197
+ delete snapshot._k;
4198
+ if (!shouldStartRequest) {
4199
+ return snapshot;
4200
+ }
4201
+ return _objectSpread({
4202
+ isValidating: true,
4203
+ isLoading: true
4204
+ }, snapshot);
4205
+ };
4206
+ var cachedData = getCache();
4207
+ var initialData = getInitialCache();
4208
+ var clientSnapshot = getSelectedCache(cachedData);
4209
+ var serverSnapshot = cachedData === initialData ? clientSnapshot : getSelectedCache(initialData);
4210
+ var memorizedSnapshot = clientSnapshot;
4211
+ return [function () {
4212
+ var newSnapshot = getSelectedCache(getCache());
4213
+ return isEqual(newSnapshot, memorizedSnapshot) ? memorizedSnapshot : memorizedSnapshot = newSnapshot;
4214
+ }, function () {
4215
+ return serverSnapshot;
4216
+ }];
4217
+ }, [cache, key]);
4218
+ var cached = shimExports.useSyncExternalStore(T$2(function (callback) {
4219
+ return subscribeCache(key, function (current, prev) {
4220
+ if (!isEqual(prev, current)) callback();
4221
+ });
4222
+ }, [cache, key]), getSnapshot[0], getSnapshot[1]);
4223
+ var isInitialMount = !initialMountedRef.current;
4224
+ var hasRevalidator = EVENT_REVALIDATORS[key] && EVENT_REVALIDATORS[key].length > 0;
4225
+ var cachedData = cached.data;
4226
+ var data = isUndefined(cachedData) ? fallback : cachedData;
4227
+ var error = cached.error;
4228
+ var laggyDataRef = _$1(data);
4229
+ var returnedData = keepPreviousData ? isUndefined(cachedData) ? laggyDataRef.current : cachedData : data;
4230
+ var shouldDoInitialRevalidation = function () {
4231
+ if (hasRevalidator && !isUndefined(error)) return false;
4232
+ if (isInitialMount && !isUndefined(revalidateOnMount)) return revalidateOnMount;
4233
+ if (getConfig().isPaused()) return false;
4234
+ if (suspense) return isUndefined(data) ? false : revalidateIfStale;
4235
+ return isUndefined(data) || revalidateIfStale;
4236
+ }();
4237
+ var defaultValidatingState = !!(key && fetcher && isInitialMount && shouldDoInitialRevalidation);
4238
+ var isValidating = isUndefined(cached.isValidating) ? defaultValidatingState : cached.isValidating;
4239
+ var isLoading = isUndefined(cached.isLoading) ? defaultValidatingState : cached.isLoading;
4240
+ var revalidate = T$2( /*#__PURE__*/function () {
4241
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(revalidateOpts) {
4242
+ var currentFetcher, newData, startAt, loading, opts, shouldStartNewRequest, callbackSafeguard, finalState, finishRequestAndUpdateState, cleanupState, initialState, _FETCH$key, mutationInfo, cacheData, currentConfig, shouldRetryOnError;
4243
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
4244
+ while (1) switch (_context.prev = _context.next) {
4245
+ case 0:
4246
+ currentFetcher = fetcherRef.current;
4247
+ if (!(!key || !currentFetcher || unmountedRef.current || getConfig().isPaused())) {
4248
+ _context.next = 3;
4249
+ break;
4250
+ }
4251
+ return _context.abrupt("return", false);
4252
+ case 3:
4253
+ loading = true;
4254
+ opts = revalidateOpts || {};
4255
+ shouldStartNewRequest = !FETCH[key] || !opts.dedupe;
4256
+ callbackSafeguard = function callbackSafeguard() {
4257
+ if (IS_REACT_LEGACY) {
4258
+ return !unmountedRef.current && key === keyRef.current && initialMountedRef.current;
4259
+ }
4260
+ return key === keyRef.current;
4261
+ };
4262
+ finalState = {
4263
+ isValidating: false,
4264
+ isLoading: false
4265
+ };
4266
+ finishRequestAndUpdateState = function finishRequestAndUpdateState() {
4267
+ setCache(finalState);
4268
+ };
4269
+ cleanupState = function cleanupState() {
4270
+ var requestInfo = FETCH[key];
4271
+ if (requestInfo && requestInfo[1] === startAt) {
4272
+ delete FETCH[key];
4273
+ }
4274
+ };
4275
+ initialState = {
4276
+ isValidating: true
4277
+ };
4278
+ if (isUndefined(getCache().data)) {
4279
+ initialState.isLoading = true;
4280
+ }
4281
+ _context.prev = 12;
4282
+ if (shouldStartNewRequest) {
4283
+ setCache(initialState);
4284
+ if (config.loadingTimeout && isUndefined(getCache().data)) {
4285
+ setTimeout(function () {
4286
+ if (loading && callbackSafeguard()) {
4287
+ getConfig().onLoadingSlow(key, config);
4288
+ }
4289
+ }, config.loadingTimeout);
4290
+ }
4291
+ FETCH[key] = [currentFetcher(fnArg), getTimestamp()];
4292
+ }
4293
+ _FETCH$key = _slicedToArray(FETCH[key], 2);
4294
+ newData = _FETCH$key[0];
4295
+ startAt = _FETCH$key[1];
4296
+ _context.next = 19;
4297
+ return newData;
4298
+ case 19:
4299
+ newData = _context.sent;
4300
+ if (shouldStartNewRequest) {
4301
+ setTimeout(cleanupState, config.dedupingInterval);
4302
+ }
4303
+ if (!(!FETCH[key] || FETCH[key][1] !== startAt)) {
4304
+ _context.next = 24;
4305
+ break;
4306
+ }
4307
+ if (shouldStartNewRequest) {
4308
+ if (callbackSafeguard()) {
4309
+ getConfig().onDiscarded(key);
4310
+ }
4311
+ }
4312
+ return _context.abrupt("return", false);
4313
+ case 24:
4314
+ finalState.error = UNDEFINED;
4315
+ mutationInfo = MUTATION[key];
4316
+ if (!(!isUndefined(mutationInfo) && (startAt <= mutationInfo[0] || startAt <= mutationInfo[1] || mutationInfo[1] === 0))) {
4317
+ _context.next = 30;
4318
+ break;
4319
+ }
4320
+ finishRequestAndUpdateState();
4321
+ if (shouldStartNewRequest) {
4322
+ if (callbackSafeguard()) {
4323
+ getConfig().onDiscarded(key);
4324
+ }
4325
+ }
4326
+ return _context.abrupt("return", false);
4327
+ case 30:
4328
+ cacheData = getCache().data;
4329
+ finalState.data = compare(cacheData, newData) ? cacheData : newData;
4330
+ if (shouldStartNewRequest) {
4331
+ if (callbackSafeguard()) {
4332
+ getConfig().onSuccess(newData, key, config);
4333
+ }
4334
+ }
4335
+ _context.next = 41;
4336
+ break;
4337
+ case 35:
4338
+ _context.prev = 35;
4339
+ _context.t0 = _context["catch"](12);
4340
+ cleanupState();
4341
+ currentConfig = getConfig();
4342
+ shouldRetryOnError = currentConfig.shouldRetryOnError;
4343
+ if (!currentConfig.isPaused()) {
4344
+ finalState.error = _context.t0;
4345
+ if (shouldStartNewRequest && callbackSafeguard()) {
4346
+ currentConfig.onError(_context.t0, key, currentConfig);
4347
+ if (shouldRetryOnError === true || isFunction(shouldRetryOnError) && shouldRetryOnError(_context.t0)) {
4348
+ if (isActive()) {
4349
+ currentConfig.onErrorRetry(_context.t0, key, currentConfig, function (_opts) {
4350
+ var revalidators = EVENT_REVALIDATORS[key];
4351
+ if (revalidators && revalidators[0]) {
4352
+ revalidators[0](constants.ERROR_REVALIDATE_EVENT, _opts);
4353
+ }
4354
+ }, {
4355
+ retryCount: (opts.retryCount || 0) + 1,
4356
+ dedupe: true
4357
+ });
4358
+ }
4359
+ }
4360
+ }
4361
+ }
4362
+ case 41:
4363
+ loading = false;
4364
+ finishRequestAndUpdateState();
4365
+ return _context.abrupt("return", true);
4366
+ case 44:
4367
+ case "end":
4368
+ return _context.stop();
4369
+ }
4370
+ }, _callee, null, [[12, 35]]);
4371
+ }));
4372
+ return function (_x) {
4373
+ return _ref3.apply(this, arguments);
4374
+ };
4375
+ }(), [key, cache]);
4376
+ var boundMutate = T$2(function () {
4377
+ for (var _len4 = arguments.length, args = new Array(_len4), _key5 = 0; _key5 < _len4; _key5++) {
4378
+ args[_key5] = arguments[_key5];
4379
+ }
4380
+ return internalMutate.apply(void 0, [cache, keyRef.current].concat(args));
4381
+ }, []);
4382
+ useIsomorphicLayoutEffect(function () {
4383
+ fetcherRef.current = fetcher;
4384
+ configRef.current = config;
4385
+ if (!isUndefined(cachedData)) {
4386
+ laggyDataRef.current = cachedData;
4387
+ }
4388
+ });
4389
+ useIsomorphicLayoutEffect(function () {
4390
+ if (!key) return;
4391
+ var softRevalidate = revalidate.bind(UNDEFINED, WITH_DEDUPE);
4392
+ var nextFocusRevalidatedAt = 0;
4393
+ var onRevalidate = function onRevalidate(type) {
4394
+ var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
4395
+ if (type == constants.FOCUS_EVENT) {
4396
+ var now = Date.now();
4397
+ if (getConfig().revalidateOnFocus && now > nextFocusRevalidatedAt && isActive()) {
4398
+ nextFocusRevalidatedAt = now + getConfig().focusThrottleInterval;
4399
+ softRevalidate();
4400
+ }
4401
+ } else if (type == constants.RECONNECT_EVENT) {
4402
+ if (getConfig().revalidateOnReconnect && isActive()) {
4403
+ softRevalidate();
4404
+ }
4405
+ } else if (type == constants.MUTATE_EVENT) {
4406
+ return revalidate();
4407
+ } else if (type == constants.ERROR_REVALIDATE_EVENT) {
4408
+ return revalidate(opts);
4409
+ }
4410
+ return;
4411
+ };
4412
+ var unsubEvents = subscribeCallback(key, EVENT_REVALIDATORS, onRevalidate);
4413
+ unmountedRef.current = false;
4414
+ keyRef.current = key;
4415
+ initialMountedRef.current = true;
4416
+ setCache({
4417
+ _k: fnArg
4418
+ });
4419
+ if (shouldDoInitialRevalidation) {
4420
+ if (isUndefined(data) || IS_SERVER) {
4421
+ softRevalidate();
4422
+ } else {
4423
+ rAF(softRevalidate);
4424
+ }
4425
+ }
4426
+ return function () {
4427
+ unmountedRef.current = true;
4428
+ unsubEvents();
4429
+ };
4430
+ }, [key]);
4431
+ useIsomorphicLayoutEffect(function () {
4432
+ var timer;
4433
+ function next() {
4434
+ var interval = isFunction(refreshInterval) ? refreshInterval(data) : refreshInterval;
4435
+ if (interval && timer !== -1) {
4436
+ timer = setTimeout(execute, interval);
4437
+ }
4438
+ }
4439
+ function execute() {
4440
+ if (!getCache().error && (refreshWhenHidden || getConfig().isVisible()) && (refreshWhenOffline || getConfig().isOnline())) {
4441
+ revalidate(WITH_DEDUPE).then(next);
4442
+ } else {
4443
+ next();
4444
+ }
4445
+ }
4446
+ next();
4447
+ return function () {
4448
+ if (timer) {
4449
+ clearTimeout(timer);
4450
+ timer = -1;
4451
+ }
4452
+ };
4453
+ }, [refreshInterval, refreshWhenHidden, refreshWhenOffline, key]);
4454
+ x$4(returnedData);
4455
+ if (suspense && isUndefined(data) && key) {
4456
+ if (!IS_REACT_LEGACY && IS_SERVER) {
4457
+ throw new Error('Fallback data is required when using suspense in SSR.');
4458
+ }
4459
+ fetcherRef.current = fetcher;
4460
+ configRef.current = config;
4461
+ unmountedRef.current = false;
4462
+ throw isUndefined(error) ? revalidate(WITH_DEDUPE) : error;
4463
+ }
4464
+ return {
4465
+ mutate: boundMutate,
4466
+ get data() {
4467
+ stateDependencies.data = true;
4468
+ return returnedData;
4469
+ },
4470
+ get error() {
4471
+ stateDependencies.error = true;
4472
+ return error;
4473
+ },
4474
+ get isValidating() {
4475
+ stateDependencies.isValidating = true;
4476
+ return isValidating;
4477
+ },
4478
+ get isLoading() {
4479
+ stateDependencies.isLoading = true;
4480
+ return isLoading;
4481
+ }
4482
+ };
4483
+ };
4484
+ var useSWR = withArgs(useSWRHandler);
4485
+ var extractErrorMessage = function extractErrorMessage(error) {
4486
+ if (error && _typeof(error) === 'object') {
4487
+ if ('error_message' in error && typeof error.error_message === 'string') {
4488
+ return error.error_message;
4489
+ }
4490
+ if ('message' in error && typeof error.message === 'string') {
4491
+ return error.message;
4492
+ }
4493
+ }
4494
+ };
4495
+ exports.A = A$3;
4496
+ exports.A$1 = A$4;
4497
+ exports.Cn = Cn;
4498
+ exports.CreateSSRSafeWebComponent = CreateSSRSafeWebComponent;
4499
+ exports.F = F$3;
4500
+ exports.F$1 = F$4;
4501
+ exports.Fe = Fe;
4502
+ exports.He = He;
4503
+ exports.N = N$1;
4504
+ exports.T = T$2;
4505
+ exports.UNDEFINED = UNDEFINED;
4506
+ exports.Ue = Ue;
4507
+ exports.Ze = Ze;
4508
+ exports._ = _$1;
4509
+ exports.extractErrorMessage = extractErrorMessage;
4510
+ exports.fn = fn;
4511
+ exports.g = g$5;
4512
+ exports.getAugmentedNamespace = getAugmentedNamespace;
4513
+ exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
4514
+ exports.getTimestamp = getTimestamp;
4515
+ exports.h = h$4;
4516
+ exports.hoistNonReactStatics = hoistNonReactStatics$1;
4517
+ exports.j = j$1;
4518
+ exports.merge = merge;
4519
+ exports.mergeObjects = mergeObjects;
4520
+ exports.p = p$3;
4521
+ exports.q = q$5;
4522
+ exports.require$$2 = require$$2;
4523
+ exports.serialize = serialize;
4524
+ exports.sn = sn;
4525
+ exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect;
4526
+ exports.useSWR = useSWR;
4527
+ exports.useSWRConfig = useSWRConfig;
4528
+ exports.useStateWithDeps = useStateWithDeps;
4529
+ exports.vn = vn;
4530
+ exports.w = w$3;
4531
+ exports.withMiddleware = withMiddleware;
4532
+ exports.wn = wn;
4533
+ exports.y = y$3;
4534
+ exports.y$1 = y$2;